diff --git a/.changeset/confirm-choose.md b/.changeset/confirm-choose.md deleted file mode 100644 index d422e19a..00000000 --- a/.changeset/confirm-choose.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@wirecore/wirelayer-vue': minor -'@wirecore/wirelayer-react': minor -'@wirecore/wirelayer-native': minor ---- - -New `choose()` next to `confirm()`: it asks the same way in the app-wide `ConfirmDialog` but tells the buttons from -closing – it resolves with `'confirm'`, `'cancel'` (the cancel button) or `'dismiss'` (Escape, the close button, the -back button on Android, a newer request). For dialogs whose second button is an action of its own ("No, assign by -hand", "Discard"), where closing should do nothing. `confirm()` and `prompt()` stay as they are; new type -`ConfirmChoice`. Story _Choose_ in every Storybook; the PrimeVue migration guide names it under _Pitfalls_. diff --git a/.changeset/countdown-clock.md b/.changeset/countdown-clock.md deleted file mode 100644 index 9bfa8728..00000000 --- a/.changeset/countdown-clock.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@wirecore/wirelayer-recipes': minor -'@wirecore/wirelayer-css': minor -'@wirecore/wirelayer-vue': minor -'@wirecore/wirelayer-react': minor -'@wirecore/wirelayer-native': minor ---- - -Countdown: `format="clock"` shows the time as a clock – "05:12:33" instead of "05 Hrs 12 Min 33 Sec". The units stay -for screen readers (`sr-only`; on iOS and Android the timer reads its value text as before), the colons are hidden from -them. With `variant="boxed"` one box surrounds the whole clock. New recipe variant `format` and slot `separator`; story -_Clock_ in every Storybook. diff --git a/.changeset/data-table-edit-input-props.md b/.changeset/data-table-edit-input-props.md deleted file mode 100644 index 71ea036c..00000000 --- a/.changeset/data-table-edit-input-props.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@wirecore/wirelayer-vue': minor -'@wirecore/wirelayer-react': minor ---- - -DataTable: settings for the built-in cell editors, like `filterInputProps` for the filters. - -- New column option `editInputProps` (type `DataTableEditInputOptions`): `number` editors take `min`, `max`, `step`, - `allowDecimal` (false: whole numbers only) and `formatOptions` (e.g. a currency, with the numberInput feature); - `select` editors `filter` (a search in the list) and `clearable` (a cleared choice is `null`); `multiSelect` editors - `filter`, `clearable`, `maxShown` and `selectAll`; `placeholder` for all. -- `commit: 'confirm'` in `editInputProps` of a `select` editor: in the cell mode the choice only counts on Enter (on - the closed field), Tab or leaving the cell, not right when it is picked – for columns where a slip of the mouse costs. -- `editable` also takes a function `(row) => boolean`: rows it answers false for get no editor at all (the cell shows - its value, Tab skips it, pasting reports it as read-only), instead of rejecting the value in `validate`. diff --git a/.changeset/data-table-filter-select-all-format.md b/.changeset/data-table-filter-select-all-format.md deleted file mode 100644 index e8f54df7..00000000 --- a/.changeset/data-table-filter-select-all-format.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@wirecore/wirelayer-vue': patch -'@wirecore/wirelayer-react': patch ---- - -DataTable filters: `filterInputProps` takes `selectAll` (multiSelect filters: an entry that selects all choices, as on -MultiSelect) and `formatOptions` (number filters with the numberInput feature, e.g. -`{ style: 'currency', currency: 'EUR' }`). The list of a multiSelect filter in the filter row no longer starts with an -"All" choice – the empty field already shows "All", and "Select all" would have chosen it as well. diff --git a/.changeset/data-table-footer-top.md b/.changeset/data-table-footer-top.md deleted file mode 100644 index 28f0180f..00000000 --- a/.changeset/data-table-footer-top.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@wirecore/wirelayer-recipes': minor -'@wirecore/wirelayer-css': minor -'@wirecore/wirelayer-vue': minor -'@wirecore/wirelayer-react': minor ---- - -DataTable: `footerPosition="top"` shows the totals row (`aggregate`, `footer`, own footer cells) right below the -headers instead of below the rows – with `scrollHeight` it stays in view with the sticky headers. The line separates it -from the rows below (recipe variant `footerTop`). Story _Totals on top_. diff --git a/.changeset/data-table-header-hint.md b/.changeset/data-table-header-hint.md deleted file mode 100644 index 16fb10db..00000000 --- a/.changeset/data-table-header-hint.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@wirecore/wirelayer-recipes': minor -'@wirecore/wirelayer-css': minor -'@wirecore/wirelayer-vue': minor -'@wirecore/wirelayer-react': minor ---- - -DataTable: the column option `headerHint` explains a column – an (i) button next to the header shows the text -(Toggletip, outside the sort button), and screen readers get it as the description of the column header. The button is -no taller than the header text (recipe slots `headHint` and `headHintIcon`), so the header row keeps its height. Story -_Header hint_. diff --git a/.changeset/data-table-multi-sort-default.md b/.changeset/data-table-multi-sort-default.md deleted file mode 100644 index 1962022b..00000000 --- a/.changeset/data-table-multi-sort-default.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@wirecore/wirelayer-recipes': minor -'@wirecore/wirelayer-vue': minor -'@wirecore/wirelayer-react': minor ---- - -DataTable: sorting by several columns can be set once for the whole app. The `dataTable` recipe gets a variant -`multiSort` without classes of its own – `{ dataTable: { defaultVariants: { multiSort: true } } }` in the -RecipesProvider/ConfigProvider lets Shift+click (and the column menu) sort every table by further columns, as -`sortMode="multiple"` did on a single table; `sortMode` on a table still wins. As in the multiple mode, `sorting` -(`v-model:sorting`, `onSortingChange`) is then an array. diff --git a/.changeset/data-table-search-placeholder.md b/.changeset/data-table-search-placeholder.md deleted file mode 100644 index abf754a8..00000000 --- a/.changeset/data-table-search-placeholder.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@wirecore/wirelayer-vue': patch -'@wirecore/wirelayer-react': patch ---- - -DataTable: `searchPlaceholder` sets the text of the empty search field and its name for screen readers ("Find a club" -instead of "Search …" and "Search "); `searchInputAttrs` passes more attributes to the search input, e.g. -`{ 'data-tour': 'search' }` as the target of a Tour step. diff --git a/.changeset/date-input-partial-value.md b/.changeset/date-input-partial-value.md deleted file mode 100644 index f01ef1e6..00000000 --- a/.changeset/date-input-partial-value.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@wirecore/wirelayer-recipes': patch -'@wirecore/wirelayer-vue': patch -'@wirecore/wirelayer-react': patch ---- - -DatePicker, DateRangePicker, MonthPicker and YearPicker: a date with a part emptied is no longer kept. Ark's segmented -field only reports a change when every part is filled or every part is empty – deleting the year of "12.05.1990" left -the old date in the model, a form saved it although the field showed "12.05.JJJJ". Now the field reports the dates -before the incomplete one (`null` for a single date, only the start for a range) right after the key or when it is left, -so a required field fails; the typed parts stay. Completing the date reports it again, also when it is the same as -before. - -- The parts of the date and time fields (also TimePicker, TimeRangePicker and the times below the calendar) announce - their changes in the language of the app instead of Ark's English ("Jahr, Leer" instead of "Year, Empty"): the part - names from `dateSegments`, the new text `dateInput.empty` in every bundled language. -- New helpers in the recipes: `partialDateIndex(root)` and `translateDateAnnouncements(element, texts)`. diff --git a/.changeset/dialog-close-outside-default.md b/.changeset/dialog-close-outside-default.md deleted file mode 100644 index da4e000f..00000000 --- a/.changeset/dialog-close-outside-default.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@wirecore/wirelayer-recipes': minor -'@wirecore/wirelayer-vue': minor -'@wirecore/wirelayer-react': minor ---- - -Dialog and Drawer: whether a click outside closes them can be set once for the whole app. The `dialog` and `drawer` -recipes get a variant `closeOnInteractOutside` without classes of its own – `{ dialog: { defaultVariants: { -closeOnInteractOutside: false } }, drawer: { defaultVariants: { closeOnInteractOutside: false } } }` in the -RecipesProvider/ConfigProvider keeps every modal dialog and drawer open on a click outside (no lost input in form -dialogs); the prop on a single `Dialog` or `Drawer` still wins. - -- `openDialog()` follows the default of the `dialog` recipe; its option `closeOnInteractOutside` wins over it. -- `confirm()` and `prompt()` are alertdialogs and never close on a click outside – unchanged. -- Docs: _Customizing_ lists the new default, the PrimeVue migration guide names it under _Pitfalls_. React Native has no - RecipesProvider, the prop stays on the single dialog there. diff --git a/.changeset/native-data-table-search-hint-totals.md b/.changeset/native-data-table-search-hint-totals.md deleted file mode 100644 index 14588741..00000000 --- a/.changeset/native-data-table-search-hint-totals.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@wirecore/wirelayer-recipes': minor -'@wirecore/wirelayer-native': minor ---- - -React Native DataTable, like the web: `searchPlaceholder` sets the text and name of the search field; the column option -`headerHint` puts an (i) button with an explanation next to the header (table layout); `footerPosition="top"` shows the -totals right below the headers (cards: the total card before the cards). Recipe slots `headerWithHint` and `headerHint`, variant -`footerTop`; story _Totals on top_. diff --git a/.changeset/sortable-pointer-drag.md b/.changeset/sortable-pointer-drag.md deleted file mode 100644 index 93679ca3..00000000 --- a/.changeset/sortable-pointer-drag.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@wirecore/wirelayer-recipes': patch -'@wirecore/wirelayer-css': patch -'@wirecore/wirelayer-vue': patch -'@wirecore/wirelayer-react': patch ---- - -Sortable: a drag with the mouse no longer gets stuck. The handle listened for the pointer itself; once the dragged item -moved in the DOM (to another place, above all into another list) the browser ended the pointer capture, the release -landed elsewhere and the item stayed picked up (`data-grabbed`). The controller now follows the press on the document -until it ends. - -- Near the edge of a scrolling area (or the window) a drag scrolls it – the innermost area that can still scroll that - way, then the ones around it. -- A copy of the item follows the pointer while it is dragged (recipe slot `preview`, `aria-hidden` and inert), also on - the way out of a source list (`clone`), where nothing showed until the pointer was over a target. -- New story _Scrolling_; browser tests for drags across several places, into another list and near the edge. diff --git a/.changeset/tags-input-all-suggestions.md b/.changeset/tags-input-all-suggestions.md deleted file mode 100644 index 70320074..00000000 --- a/.changeset/tags-input-all-suggestions.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@wirecore/wirelayer-recipes': minor -'@wirecore/wirelayer-css': minor -'@wirecore/wirelayer-vue': minor -'@wirecore/wirelayer-react': minor ---- - -TagsInput: every suggestion without typing. `openOnFocus` opens the suggestions when the field gets the focus or is -clicked; `trigger` adds a button with an arrow at the end of the field that opens and closes them ("Show suggestions", -not a tab stop – Arrow down does the same, the focus stays in the field). New recipe slots `trigger` and -`triggerIcon`; story _All suggestions_. diff --git a/packages/blocks-react/CHANGELOG.md b/packages/blocks-react/CHANGELOG.md index dfbcdee7..9d0ac231 100644 --- a/packages/blocks-react/CHANGELOG.md +++ b/packages/blocks-react/CHANGELOG.md @@ -1,5 +1,25 @@ # @wirecore/wirelayer-blocks-react +## 0.2.15 + +### Patch Changes + +- Updated dependencies [8e91c91] +- Updated dependencies [092ac0e] +- Updated dependencies [9b8629d] +- Updated dependencies [ea451bb] +- Updated dependencies [693adb4] +- Updated dependencies [c10e906] +- Updated dependencies [ce8a9ae] +- Updated dependencies [3b3d56d] +- Updated dependencies [cc2c66c] +- Updated dependencies [83aa41e] +- Updated dependencies [3d79a05] +- Updated dependencies [a348907] +- Updated dependencies [1c190d0] + - @wirecore/wirelayer-react@0.15.0 + - @wirecore/wirelayer-recipes@0.14.0 + ## 0.2.14 ### Patch Changes diff --git a/packages/blocks-react/package.json b/packages/blocks-react/package.json index 1b8a2d7f..3dd03098 100644 --- a/packages/blocks-react/package.json +++ b/packages/blocks-react/package.json @@ -1,6 +1,6 @@ { "name": "@wirecore/wirelayer-blocks-react", - "version": "0.2.14", + "version": "0.2.15", "description": "Page blocks for React (site header, CTA section, mode toggle, sign-in form and layout) and the condition builder, built on @wirecore/wirelayer-react", "license": "MIT", "repository": { diff --git a/packages/blocks-vue/CHANGELOG.md b/packages/blocks-vue/CHANGELOG.md index c0742774..0f85d8fb 100644 --- a/packages/blocks-vue/CHANGELOG.md +++ b/packages/blocks-vue/CHANGELOG.md @@ -1,5 +1,25 @@ # @wirecore/wirelayer-blocks-vue +## 0.2.15 + +### Patch Changes + +- Updated dependencies [8e91c91] +- Updated dependencies [092ac0e] +- Updated dependencies [9b8629d] +- Updated dependencies [ea451bb] +- Updated dependencies [693adb4] +- Updated dependencies [c10e906] +- Updated dependencies [ce8a9ae] +- Updated dependencies [3b3d56d] +- Updated dependencies [cc2c66c] +- Updated dependencies [83aa41e] +- Updated dependencies [3d79a05] +- Updated dependencies [a348907] +- Updated dependencies [1c190d0] + - @wirecore/wirelayer-vue@0.15.0 + - @wirecore/wirelayer-recipes@0.14.0 + ## 0.2.14 ### Patch Changes diff --git a/packages/blocks-vue/package.json b/packages/blocks-vue/package.json index b714c4a6..c5e64bd6 100644 --- a/packages/blocks-vue/package.json +++ b/packages/blocks-vue/package.json @@ -1,6 +1,6 @@ { "name": "@wirecore/wirelayer-blocks-vue", - "version": "0.2.14", + "version": "0.2.15", "description": "Page blocks for Vue (site header, CTA section, mode toggle, sign-in form and layout) and the condition builder, built on @wirecore/wirelayer-vue", "license": "MIT", "repository": { diff --git a/packages/css/CHANGELOG.md b/packages/css/CHANGELOG.md index da24b79a..874242db 100644 --- a/packages/css/CHANGELOG.md +++ b/packages/css/CHANGELOG.md @@ -1,5 +1,38 @@ # @wirecore/wirelayer-css +## 0.14.0 + +### Minor Changes + +- 092ac0e: Countdown: `format="clock"` shows the time as a clock – "05:12:33" instead of "05 Hrs 12 Min 33 Sec". The units stay + for screen readers (`sr-only`; on iOS and Android the timer reads its value text as before), the colons are hidden from + them. With `variant="boxed"` one box surrounds the whole clock. New recipe variant `format` and slot `separator`; story + _Clock_ in every Storybook. +- 693adb4: DataTable: `footerPosition="top"` shows the totals row (`aggregate`, `footer`, own footer cells) right below the + headers instead of below the rows – with `scrollHeight` it stays in view with the sticky headers. The line separates it + from the rows below (recipe variant `footerTop`). Story _Totals on top_. +- c10e906: DataTable: the column option `headerHint` explains a column – an (i) button next to the header shows the text + (Toggletip, outside the sort button), and screen readers get it as the description of the column header. The button is + no taller than the header text (recipe slots `headHint` and `headHintIcon`), so the header row keeps its height. Story + _Header hint_. +- 1c190d0: TagsInput: every suggestion without typing. `openOnFocus` opens the suggestions when the field gets the focus or is + clicked; `trigger` adds a button with an arrow at the end of the field that opens and closes them ("Show suggestions", + not a tab stop – Arrow down does the same, the focus stays in the field). New recipe slots `trigger` and + `triggerIcon`; story _All suggestions_. + +### Patch Changes + +- a348907: Sortable: a drag with the mouse no longer gets stuck. The handle listened for the pointer itself; once the dragged item + moved in the DOM (to another place, above all into another list) the browser ended the pointer capture, the release + landed elsewhere and the item stayed picked up (`data-grabbed`). The controller now follows the press on the document + until it ends. + + - Near the edge of a scrolling area (or the window) a drag scrolls it – the innermost area that can still scroll that + way, then the ones around it. + - A copy of the item follows the pointer while it is dragged (recipe slot `preview`, `aria-hidden` and inert), also on + the way out of a source list (`clone`), where nothing showed until the pointer was over a target. + - New story _Scrolling_; browser tests for drags across several places, into another list and near the edge. + ## 0.13.0 ### Minor Changes diff --git a/packages/css/package.json b/packages/css/package.json index 546a592f..41bf417d 100644 --- a/packages/css/package.json +++ b/packages/css/package.json @@ -1,6 +1,6 @@ { "name": "@wirecore/wirelayer-css", - "version": "0.13.0", + "version": "0.14.0", "description": "WireLayer components as plain CSS classes (.wc-*) for HTML and server templates", "license": "MIT", "repository": { diff --git a/packages/native/CHANGELOG.md b/packages/native/CHANGELOG.md index 0e1583f0..255fd7f7 100644 --- a/packages/native/CHANGELOG.md +++ b/packages/native/CHANGELOG.md @@ -1,5 +1,36 @@ # @wirecore/wirelayer-native +## 0.10.0 + +### Minor Changes + +- 8e91c91: New `choose()` next to `confirm()`: it asks the same way in the app-wide `ConfirmDialog` but tells the buttons from + closing – it resolves with `'confirm'`, `'cancel'` (the cancel button) or `'dismiss'` (Escape, the close button, the + back button on Android, a newer request). For dialogs whose second button is an action of its own ("No, assign by + hand", "Discard"), where closing should do nothing. `confirm()` and `prompt()` stay as they are; new type + `ConfirmChoice`. Story _Choose_ in every Storybook; the PrimeVue migration guide names it under _Pitfalls_. +- 092ac0e: Countdown: `format="clock"` shows the time as a clock – "05:12:33" instead of "05 Hrs 12 Min 33 Sec". The units stay + for screen readers (`sr-only`; on iOS and Android the timer reads its value text as before), the colons are hidden from + them. With `variant="boxed"` one box surrounds the whole clock. New recipe variant `format` and slot `separator`; story + _Clock_ in every Storybook. +- 3d79a05: React Native DataTable, like the web: `searchPlaceholder` sets the text and name of the search field; the column option + `headerHint` puts an (i) button with an explanation next to the header (table layout); `footerPosition="top"` shows the + totals right below the headers (cards: the total card before the cards). Recipe slots `headerWithHint` and `headerHint`, variant + `footerTop`; story _Totals on top_. + +### Patch Changes + +- Updated dependencies [092ac0e] +- Updated dependencies [693adb4] +- Updated dependencies [c10e906] +- Updated dependencies [ce8a9ae] +- Updated dependencies [cc2c66c] +- Updated dependencies [83aa41e] +- Updated dependencies [3d79a05] +- Updated dependencies [a348907] +- Updated dependencies [1c190d0] + - @wirecore/wirelayer-recipes@0.14.0 + ## 0.9.1 ### Patch Changes diff --git a/packages/native/package.json b/packages/native/package.json index 302f4d42..125c7c9f 100644 --- a/packages/native/package.json +++ b/packages/native/package.json @@ -1,6 +1,6 @@ { "name": "@wirecore/wirelayer-native", - "version": "0.9.1", + "version": "0.10.0", "description": "WireLayer components for React Native (Expo) with Uniwind", "license": "MIT", "repository": { diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 2fd315d3..9c5494b3 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,100 @@ # @wirecore/wirelayer-react +## 0.15.0 + +### Minor Changes + +- 8e91c91: New `choose()` next to `confirm()`: it asks the same way in the app-wide `ConfirmDialog` but tells the buttons from + closing – it resolves with `'confirm'`, `'cancel'` (the cancel button) or `'dismiss'` (Escape, the close button, the + back button on Android, a newer request). For dialogs whose second button is an action of its own ("No, assign by + hand", "Discard"), where closing should do nothing. `confirm()` and `prompt()` stay as they are; new type + `ConfirmChoice`. Story _Choose_ in every Storybook; the PrimeVue migration guide names it under _Pitfalls_. +- 092ac0e: Countdown: `format="clock"` shows the time as a clock – "05:12:33" instead of "05 Hrs 12 Min 33 Sec". The units stay + for screen readers (`sr-only`; on iOS and Android the timer reads its value text as before), the colons are hidden from + them. With `variant="boxed"` one box surrounds the whole clock. New recipe variant `format` and slot `separator`; story + _Clock_ in every Storybook. +- 9b8629d: DataTable: settings for the built-in cell editors, like `filterInputProps` for the filters. + + - New column option `editInputProps` (type `DataTableEditInputOptions`): `number` editors take `min`, `max`, `step`, + `allowDecimal` (false: whole numbers only) and `formatOptions` (e.g. a currency, with the numberInput feature); + `select` editors `filter` (a search in the list) and `clearable` (a cleared choice is `null`); `multiSelect` editors + `filter`, `clearable`, `maxShown` and `selectAll`; `placeholder` for all. + - `commit: 'confirm'` in `editInputProps` of a `select` editor: in the cell mode the choice only counts on Enter (on + the closed field), Tab or leaving the cell, not right when it is picked – for columns where a slip of the mouse costs. + - `editable` also takes a function `(row) => boolean`: rows it answers false for get no editor at all (the cell shows + its value, Tab skips it, pasting reports it as read-only), instead of rejecting the value in `validate`. + +- 693adb4: DataTable: `footerPosition="top"` shows the totals row (`aggregate`, `footer`, own footer cells) right below the + headers instead of below the rows – with `scrollHeight` it stays in view with the sticky headers. The line separates it + from the rows below (recipe variant `footerTop`). Story _Totals on top_. +- c10e906: DataTable: the column option `headerHint` explains a column – an (i) button next to the header shows the text + (Toggletip, outside the sort button), and screen readers get it as the description of the column header. The button is + no taller than the header text (recipe slots `headHint` and `headHintIcon`), so the header row keeps its height. Story + _Header hint_. +- ce8a9ae: DataTable: sorting by several columns can be set once for the whole app. The `dataTable` recipe gets a variant + `multiSort` without classes of its own – `{ dataTable: { defaultVariants: { multiSort: true } } }` in the + RecipesProvider/ConfigProvider lets Shift+click (and the column menu) sort every table by further columns, as + `sortMode="multiple"` did on a single table; `sortMode` on a table still wins. As in the multiple mode, `sorting` + (`v-model:sorting`, `onSortingChange`) is then an array. +- 83aa41e: Dialog and Drawer: whether a click outside closes them can be set once for the whole app. The `dialog` and `drawer` + recipes get a variant `closeOnInteractOutside` without classes of its own – `{ dialog: { defaultVariants: { +closeOnInteractOutside: false } }, drawer: { defaultVariants: { closeOnInteractOutside: false } } }` in the + RecipesProvider/ConfigProvider keeps every modal dialog and drawer open on a click outside (no lost input in form + dialogs); the prop on a single `Dialog` or `Drawer` still wins. + + - `openDialog()` follows the default of the `dialog` recipe; its option `closeOnInteractOutside` wins over it. + - `confirm()` and `prompt()` are alertdialogs and never close on a click outside – unchanged. + - Docs: _Customizing_ lists the new default, the PrimeVue migration guide names it under _Pitfalls_. React Native has no + RecipesProvider, the prop stays on the single dialog there. + +- 1c190d0: TagsInput: every suggestion without typing. `openOnFocus` opens the suggestions when the field gets the focus or is + clicked; `trigger` adds a button with an arrow at the end of the field that opens and closes them ("Show suggestions", + not a tab stop – Arrow down does the same, the focus stays in the field). New recipe slots `trigger` and + `triggerIcon`; story _All suggestions_. + +### Patch Changes + +- ea451bb: DataTable filters: `filterInputProps` takes `selectAll` (multiSelect filters: an entry that selects all choices, as on + MultiSelect) and `formatOptions` (number filters with the numberInput feature, e.g. + `{ style: 'currency', currency: 'EUR' }`). The list of a multiSelect filter in the filter row no longer starts with an + "All" choice – the empty field already shows "All", and "Select all" would have chosen it as well. +- 3b3d56d: DataTable: `searchPlaceholder` sets the text of the empty search field and its name for screen readers ("Find a club" + instead of "Search …" and "Search "); `searchInputAttrs` passes more attributes to the search input, e.g. + `{ 'data-tour': 'search' }` as the target of a Tour step. +- cc2c66c: DatePicker, DateRangePicker, MonthPicker and YearPicker: a date with a part emptied is no longer kept. Ark's segmented + field only reports a change when every part is filled or every part is empty – deleting the year of "12.05.1990" left + the old date in the model, a form saved it although the field showed "12.05.JJJJ". Now the field reports the dates + before the incomplete one (`null` for a single date, only the start for a range) right after the key or when it is left, + so a required field fails; the typed parts stay. Completing the date reports it again, also when it is the same as + before. + + - The parts of the date and time fields (also TimePicker, TimeRangePicker and the times below the calendar) announce + their changes in the language of the app instead of Ark's English ("Jahr, Leer" instead of "Year, Empty"): the part + names from `dateSegments`, the new text `dateInput.empty` in every bundled language. + - New helpers in the recipes: `partialDateIndex(root)` and `translateDateAnnouncements(element, texts)`. + +- a348907: Sortable: a drag with the mouse no longer gets stuck. The handle listened for the pointer itself; once the dragged item + moved in the DOM (to another place, above all into another list) the browser ended the pointer capture, the release + landed elsewhere and the item stayed picked up (`data-grabbed`). The controller now follows the press on the document + until it ends. + + - Near the edge of a scrolling area (or the window) a drag scrolls it – the innermost area that can still scroll that + way, then the ones around it. + - A copy of the item follows the pointer while it is dragged (recipe slot `preview`, `aria-hidden` and inert), also on + the way out of a source list (`clone`), where nothing showed until the pointer was over a target. + - New story _Scrolling_; browser tests for drags across several places, into another list and near the edge. + +- Updated dependencies [092ac0e] +- Updated dependencies [693adb4] +- Updated dependencies [c10e906] +- Updated dependencies [ce8a9ae] +- Updated dependencies [cc2c66c] +- Updated dependencies [83aa41e] +- Updated dependencies [3d79a05] +- Updated dependencies [a348907] +- Updated dependencies [1c190d0] + - @wirecore/wirelayer-recipes@0.14.0 + ## 0.14.0 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index e961f927..5b23ad01 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@wirecore/wirelayer-react", - "version": "0.14.0", + "version": "0.15.0", "description": "WireLayer components for React", "license": "MIT", "repository": { diff --git a/packages/recipes/CHANGELOG.md b/packages/recipes/CHANGELOG.md index df4fd51e..606e21cf 100644 --- a/packages/recipes/CHANGELOG.md +++ b/packages/recipes/CHANGELOG.md @@ -1,5 +1,70 @@ # @wirecore/wirelayer-recipes +## 0.14.0 + +### Minor Changes + +- 092ac0e: Countdown: `format="clock"` shows the time as a clock – "05:12:33" instead of "05 Hrs 12 Min 33 Sec". The units stay + for screen readers (`sr-only`; on iOS and Android the timer reads its value text as before), the colons are hidden from + them. With `variant="boxed"` one box surrounds the whole clock. New recipe variant `format` and slot `separator`; story + _Clock_ in every Storybook. +- 693adb4: DataTable: `footerPosition="top"` shows the totals row (`aggregate`, `footer`, own footer cells) right below the + headers instead of below the rows – with `scrollHeight` it stays in view with the sticky headers. The line separates it + from the rows below (recipe variant `footerTop`). Story _Totals on top_. +- c10e906: DataTable: the column option `headerHint` explains a column – an (i) button next to the header shows the text + (Toggletip, outside the sort button), and screen readers get it as the description of the column header. The button is + no taller than the header text (recipe slots `headHint` and `headHintIcon`), so the header row keeps its height. Story + _Header hint_. +- ce8a9ae: DataTable: sorting by several columns can be set once for the whole app. The `dataTable` recipe gets a variant + `multiSort` without classes of its own – `{ dataTable: { defaultVariants: { multiSort: true } } }` in the + RecipesProvider/ConfigProvider lets Shift+click (and the column menu) sort every table by further columns, as + `sortMode="multiple"` did on a single table; `sortMode` on a table still wins. As in the multiple mode, `sorting` + (`v-model:sorting`, `onSortingChange`) is then an array. +- 83aa41e: Dialog and Drawer: whether a click outside closes them can be set once for the whole app. The `dialog` and `drawer` + recipes get a variant `closeOnInteractOutside` without classes of its own – `{ dialog: { defaultVariants: { +closeOnInteractOutside: false } }, drawer: { defaultVariants: { closeOnInteractOutside: false } } }` in the + RecipesProvider/ConfigProvider keeps every modal dialog and drawer open on a click outside (no lost input in form + dialogs); the prop on a single `Dialog` or `Drawer` still wins. + + - `openDialog()` follows the default of the `dialog` recipe; its option `closeOnInteractOutside` wins over it. + - `confirm()` and `prompt()` are alertdialogs and never close on a click outside – unchanged. + - Docs: _Customizing_ lists the new default, the PrimeVue migration guide names it under _Pitfalls_. React Native has no + RecipesProvider, the prop stays on the single dialog there. + +- 3d79a05: React Native DataTable, like the web: `searchPlaceholder` sets the text and name of the search field; the column option + `headerHint` puts an (i) button with an explanation next to the header (table layout); `footerPosition="top"` shows the + totals right below the headers (cards: the total card before the cards). Recipe slots `headerWithHint` and `headerHint`, variant + `footerTop`; story _Totals on top_. +- 1c190d0: TagsInput: every suggestion without typing. `openOnFocus` opens the suggestions when the field gets the focus or is + clicked; `trigger` adds a button with an arrow at the end of the field that opens and closes them ("Show suggestions", + not a tab stop – Arrow down does the same, the focus stays in the field). New recipe slots `trigger` and + `triggerIcon`; story _All suggestions_. + +### Patch Changes + +- cc2c66c: DatePicker, DateRangePicker, MonthPicker and YearPicker: a date with a part emptied is no longer kept. Ark's segmented + field only reports a change when every part is filled or every part is empty – deleting the year of "12.05.1990" left + the old date in the model, a form saved it although the field showed "12.05.JJJJ". Now the field reports the dates + before the incomplete one (`null` for a single date, only the start for a range) right after the key or when it is left, + so a required field fails; the typed parts stay. Completing the date reports it again, also when it is the same as + before. + + - The parts of the date and time fields (also TimePicker, TimeRangePicker and the times below the calendar) announce + their changes in the language of the app instead of Ark's English ("Jahr, Leer" instead of "Year, Empty"): the part + names from `dateSegments`, the new text `dateInput.empty` in every bundled language. + - New helpers in the recipes: `partialDateIndex(root)` and `translateDateAnnouncements(element, texts)`. + +- a348907: Sortable: a drag with the mouse no longer gets stuck. The handle listened for the pointer itself; once the dragged item + moved in the DOM (to another place, above all into another list) the browser ended the pointer capture, the release + landed elsewhere and the item stayed picked up (`data-grabbed`). The controller now follows the press on the document + until it ends. + + - Near the edge of a scrolling area (or the window) a drag scrolls it – the innermost area that can still scroll that + way, then the ones around it. + - A copy of the item follows the pointer while it is dragged (recipe slot `preview`, `aria-hidden` and inert), also on + the way out of a source list (`clone`), where nothing showed until the pointer was over a target. + - New story _Scrolling_; browser tests for drags across several places, into another list and near the edge. + ## 0.13.0 ### Minor Changes diff --git a/packages/recipes/package.json b/packages/recipes/package.json index d72728ba..782e7e6b 100644 --- a/packages/recipes/package.json +++ b/packages/recipes/package.json @@ -1,6 +1,6 @@ { "name": "@wirecore/wirelayer-recipes", - "version": "0.13.0", + "version": "0.14.0", "description": "Framework-agnostic WireLayer component recipes (tailwind-variants)", "license": "MIT", "repository": { diff --git a/packages/vue/CHANGELOG.md b/packages/vue/CHANGELOG.md index 3a499b24..537a7b77 100644 --- a/packages/vue/CHANGELOG.md +++ b/packages/vue/CHANGELOG.md @@ -1,5 +1,100 @@ # @wirecore/wirelayer-vue +## 0.15.0 + +### Minor Changes + +- 8e91c91: New `choose()` next to `confirm()`: it asks the same way in the app-wide `ConfirmDialog` but tells the buttons from + closing – it resolves with `'confirm'`, `'cancel'` (the cancel button) or `'dismiss'` (Escape, the close button, the + back button on Android, a newer request). For dialogs whose second button is an action of its own ("No, assign by + hand", "Discard"), where closing should do nothing. `confirm()` and `prompt()` stay as they are; new type + `ConfirmChoice`. Story _Choose_ in every Storybook; the PrimeVue migration guide names it under _Pitfalls_. +- 092ac0e: Countdown: `format="clock"` shows the time as a clock – "05:12:33" instead of "05 Hrs 12 Min 33 Sec". The units stay + for screen readers (`sr-only`; on iOS and Android the timer reads its value text as before), the colons are hidden from + them. With `variant="boxed"` one box surrounds the whole clock. New recipe variant `format` and slot `separator`; story + _Clock_ in every Storybook. +- 9b8629d: DataTable: settings for the built-in cell editors, like `filterInputProps` for the filters. + + - New column option `editInputProps` (type `DataTableEditInputOptions`): `number` editors take `min`, `max`, `step`, + `allowDecimal` (false: whole numbers only) and `formatOptions` (e.g. a currency, with the numberInput feature); + `select` editors `filter` (a search in the list) and `clearable` (a cleared choice is `null`); `multiSelect` editors + `filter`, `clearable`, `maxShown` and `selectAll`; `placeholder` for all. + - `commit: 'confirm'` in `editInputProps` of a `select` editor: in the cell mode the choice only counts on Enter (on + the closed field), Tab or leaving the cell, not right when it is picked – for columns where a slip of the mouse costs. + - `editable` also takes a function `(row) => boolean`: rows it answers false for get no editor at all (the cell shows + its value, Tab skips it, pasting reports it as read-only), instead of rejecting the value in `validate`. + +- 693adb4: DataTable: `footerPosition="top"` shows the totals row (`aggregate`, `footer`, own footer cells) right below the + headers instead of below the rows – with `scrollHeight` it stays in view with the sticky headers. The line separates it + from the rows below (recipe variant `footerTop`). Story _Totals on top_. +- c10e906: DataTable: the column option `headerHint` explains a column – an (i) button next to the header shows the text + (Toggletip, outside the sort button), and screen readers get it as the description of the column header. The button is + no taller than the header text (recipe slots `headHint` and `headHintIcon`), so the header row keeps its height. Story + _Header hint_. +- ce8a9ae: DataTable: sorting by several columns can be set once for the whole app. The `dataTable` recipe gets a variant + `multiSort` without classes of its own – `{ dataTable: { defaultVariants: { multiSort: true } } }` in the + RecipesProvider/ConfigProvider lets Shift+click (and the column menu) sort every table by further columns, as + `sortMode="multiple"` did on a single table; `sortMode` on a table still wins. As in the multiple mode, `sorting` + (`v-model:sorting`, `onSortingChange`) is then an array. +- 83aa41e: Dialog and Drawer: whether a click outside closes them can be set once for the whole app. The `dialog` and `drawer` + recipes get a variant `closeOnInteractOutside` without classes of its own – `{ dialog: { defaultVariants: { +closeOnInteractOutside: false } }, drawer: { defaultVariants: { closeOnInteractOutside: false } } }` in the + RecipesProvider/ConfigProvider keeps every modal dialog and drawer open on a click outside (no lost input in form + dialogs); the prop on a single `Dialog` or `Drawer` still wins. + + - `openDialog()` follows the default of the `dialog` recipe; its option `closeOnInteractOutside` wins over it. + - `confirm()` and `prompt()` are alertdialogs and never close on a click outside – unchanged. + - Docs: _Customizing_ lists the new default, the PrimeVue migration guide names it under _Pitfalls_. React Native has no + RecipesProvider, the prop stays on the single dialog there. + +- 1c190d0: TagsInput: every suggestion without typing. `openOnFocus` opens the suggestions when the field gets the focus or is + clicked; `trigger` adds a button with an arrow at the end of the field that opens and closes them ("Show suggestions", + not a tab stop – Arrow down does the same, the focus stays in the field). New recipe slots `trigger` and + `triggerIcon`; story _All suggestions_. + +### Patch Changes + +- ea451bb: DataTable filters: `filterInputProps` takes `selectAll` (multiSelect filters: an entry that selects all choices, as on + MultiSelect) and `formatOptions` (number filters with the numberInput feature, e.g. + `{ style: 'currency', currency: 'EUR' }`). The list of a multiSelect filter in the filter row no longer starts with an + "All" choice – the empty field already shows "All", and "Select all" would have chosen it as well. +- 3b3d56d: DataTable: `searchPlaceholder` sets the text of the empty search field and its name for screen readers ("Find a club" + instead of "Search …" and "Search "); `searchInputAttrs` passes more attributes to the search input, e.g. + `{ 'data-tour': 'search' }` as the target of a Tour step. +- cc2c66c: DatePicker, DateRangePicker, MonthPicker and YearPicker: a date with a part emptied is no longer kept. Ark's segmented + field only reports a change when every part is filled or every part is empty – deleting the year of "12.05.1990" left + the old date in the model, a form saved it although the field showed "12.05.JJJJ". Now the field reports the dates + before the incomplete one (`null` for a single date, only the start for a range) right after the key or when it is left, + so a required field fails; the typed parts stay. Completing the date reports it again, also when it is the same as + before. + + - The parts of the date and time fields (also TimePicker, TimeRangePicker and the times below the calendar) announce + their changes in the language of the app instead of Ark's English ("Jahr, Leer" instead of "Year, Empty"): the part + names from `dateSegments`, the new text `dateInput.empty` in every bundled language. + - New helpers in the recipes: `partialDateIndex(root)` and `translateDateAnnouncements(element, texts)`. + +- a348907: Sortable: a drag with the mouse no longer gets stuck. The handle listened for the pointer itself; once the dragged item + moved in the DOM (to another place, above all into another list) the browser ended the pointer capture, the release + landed elsewhere and the item stayed picked up (`data-grabbed`). The controller now follows the press on the document + until it ends. + + - Near the edge of a scrolling area (or the window) a drag scrolls it – the innermost area that can still scroll that + way, then the ones around it. + - A copy of the item follows the pointer while it is dragged (recipe slot `preview`, `aria-hidden` and inert), also on + the way out of a source list (`clone`), where nothing showed until the pointer was over a target. + - New story _Scrolling_; browser tests for drags across several places, into another list and near the edge. + +- Updated dependencies [092ac0e] +- Updated dependencies [693adb4] +- Updated dependencies [c10e906] +- Updated dependencies [ce8a9ae] +- Updated dependencies [cc2c66c] +- Updated dependencies [83aa41e] +- Updated dependencies [3d79a05] +- Updated dependencies [a348907] +- Updated dependencies [1c190d0] + - @wirecore/wirelayer-recipes@0.14.0 + ## 0.14.0 ### Minor Changes diff --git a/packages/vue/package.json b/packages/vue/package.json index 7d510a1f..52e2189b 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@wirecore/wirelayer-vue", - "version": "0.14.0", + "version": "0.15.0", "description": "WireLayer components for Vue 3", "license": "MIT", "repository": {