@slotted/angular 0.1.0-beta.3 → 0.1.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/AGENTS.snippet.md +3 -1
- package/docs/accordion.json +5 -5
- package/docs/accordion.md +12 -12
- package/docs/action-bar.json +23 -22
- package/docs/action-bar.md +30 -30
- package/docs/action-sheet.json +391 -64
- package/docs/action-sheet.md +259 -0
- package/docs/alert.json +31 -14
- package/docs/alert.md +29 -18
- package/docs/app-shell.examples.md +8 -8
- package/docs/app-shell.json +38 -21
- package/docs/app-shell.md +9 -7
- package/docs/avatar-group.json +1 -1
- package/docs/avatar-group.md +1 -1
- package/docs/avatar.json +32 -11
- package/docs/avatar.md +13 -11
- package/docs/badge.json +10 -4
- package/docs/badge.md +5 -5
- package/docs/breadcrumb.json +2 -2
- package/docs/breadcrumb.md +2 -2
- package/docs/button-group.json +2 -1
- package/docs/button-group.md +2 -2
- package/docs/button.examples.md +15 -0
- package/docs/button.json +134 -14
- package/docs/button.md +32 -8
- package/docs/calendar.json +31 -6
- package/docs/calendar.md +9 -6
- package/docs/card.json +3 -2
- package/docs/card.md +3 -3
- package/docs/carousel.json +10 -10
- package/docs/carousel.md +11 -11
- package/docs/cascader.json +2 -0
- package/docs/cascader.md +1 -1
- package/docs/chart.examples.md +45 -31
- package/docs/chart.json +40 -35
- package/docs/chart.md +7 -7
- package/docs/checkbox-group.examples.md +13 -13
- package/docs/checkbox-group.json +7 -7
- package/docs/checkbox-group.md +2 -2
- package/docs/checkbox.examples.md +7 -7
- package/docs/checkbox.json +6 -6
- package/docs/checkbox.md +3 -3
- package/docs/code-block.json +93 -93
- package/docs/code-block.md +70 -70
- package/docs/collapsible.json +12 -11
- package/docs/collapsible.md +20 -20
- package/docs/color-picker.json +26 -26
- package/docs/color-picker.md +16 -16
- package/docs/combobox.json +6 -2
- package/docs/combobox.md +3 -3
- package/docs/command-palette.json +2 -0
- package/docs/command-palette.md +1 -1
- package/docs/context-menu.json +1 -1
- package/docs/context-menu.md +1 -1
- package/docs/currency-field.examples.md +3 -3
- package/docs/currency-field.json +14 -6
- package/docs/currency-field.md +6 -5
- package/docs/dashboard-grid.json +53 -10
- package/docs/dashboard-grid.md +18 -6
- package/docs/data-grid.examples.md +3 -3
- package/docs/data-grid.json +37 -11
- package/docs/data-grid.md +2 -1
- package/docs/data-grid.props.md +7 -5
- package/docs/data-list.json +2 -1
- package/docs/data-list.md +1 -1
- package/docs/date-field.json +12 -4
- package/docs/date-field.md +8 -7
- package/docs/date-picker.examples.md +36 -0
- package/docs/date-picker.json +32 -5
- package/docs/date-picker.md +7 -5
- package/docs/date-range-picker.json +11 -0
- package/docs/date-range-picker.md +2 -1
- package/docs/datetime-field.json +5 -4
- package/docs/datetime-field.md +10 -10
- package/docs/datetime-picker.json +11 -1
- package/docs/datetime-picker.md +2 -1
- package/docs/datetime-range-picker.examples.md +3 -3
- package/docs/datetime-range-picker.json +14 -3
- package/docs/datetime-range-picker.md +4 -3
- package/docs/description-list.json +16 -7
- package/docs/description-list.md +8 -7
- package/docs/detail-panel.json +14 -12
- package/docs/detail-panel.md +20 -15
- package/docs/dialog.examples.md +143 -141
- package/docs/dialog.json +58 -24
- package/docs/dialog.md +6 -4
- package/docs/dialog.props.md +9 -7
- package/docs/drawer.examples.md +14 -14
- package/docs/drawer.json +44 -17
- package/docs/drawer.md +10 -8
- package/docs/entity-picker.json +22 -4
- package/docs/entity-picker.md +8 -6
- package/docs/event-calendar.examples.md +3 -3
- package/docs/event-calendar.json +5 -5
- package/docs/event-calendar.md +4 -4
- package/docs/field-group.json +21 -6
- package/docs/field-group.md +14 -12
- package/docs/field.examples.md +3 -3
- package/docs/field.json +20 -5
- package/docs/field.md +4 -2
- package/docs/filter-bar.json +118 -118
- package/docs/filter-bar.md +79 -79
- package/docs/form.json +24 -12
- package/docs/form.md +15 -13
- package/docs/fullscreen.json +4 -4
- package/docs/fullscreen.md +7 -7
- package/docs/guidelines/README.md +2 -2
- package/docs/guidelines/async-feedback.md +25 -4
- package/docs/guidelines/builders.md +1 -1
- package/docs/guidelines/composition.md +37 -11
- package/docs/guidelines/conversations.md +1 -1
- package/docs/guidelines/errors-and-conflicts.md +7 -6
- package/docs/guidelines/forms.md +111 -1
- package/docs/guidelines/index.md +27 -7
- package/docs/guidelines/layout-alignment.md +24 -14
- package/docs/guidelines/list-pages.md +44 -3
- package/docs/guidelines/overviews.md +39 -9
- package/docs/guidelines/own-elements.md +8 -8
- package/docs/guidelines/reading-permissions.md +2 -2
- package/docs/guidelines/record-pages.md +1 -1
- package/docs/guidelines/reports.md +1 -1
- package/docs/highlight.json +9 -9
- package/docs/highlight.md +14 -14
- package/docs/icon.json +5 -3
- package/docs/icon.md +4 -4
- package/docs/image.json +3 -3
- package/docs/image.md +3 -3
- package/docs/import-export-center.json +24 -23
- package/docs/import-export-center.md +18 -18
- package/docs/index.md +3 -2
- package/docs/inline-message.json +34 -21
- package/docs/inline-message.md +32 -30
- package/docs/inline.json +1 -1
- package/docs/inline.md +1 -1
- package/docs/kbd.json +5 -2
- package/docs/kbd.md +3 -3
- package/docs/link.json +22 -6
- package/docs/link.md +9 -7
- package/docs/list-item.json +20 -4
- package/docs/list-item.md +20 -17
- package/docs/list.examples.md +907 -0
- package/docs/list.json +121 -33
- package/docs/list.md +73 -137
- package/docs/listbox.json +1 -2
- package/docs/listbox.md +2 -2
- package/docs/loading-overlay.json +3 -3
- package/docs/loading-overlay.md +3 -3
- package/docs/markdown.json +86 -79
- package/docs/markdown.md +66 -65
- package/docs/media-viewer.json +521 -0
- package/docs/media-viewer.md +188 -0
- package/docs/menu.json +15 -1
- package/docs/menu.md +3 -1
- package/docs/message-scroller.json +2 -2
- package/docs/message-scroller.md +1 -1
- package/docs/message.json +18 -12
- package/docs/message.md +20 -20
- package/docs/multi-select.json +4 -1
- package/docs/multi-select.md +1 -1
- package/docs/navigation-menu.json +1 -0
- package/docs/navigation-menu.md +1 -1
- package/docs/notification-center.json +21 -16
- package/docs/notification-center.md +20 -24
- package/docs/number-field.examples.md +3 -3
- package/docs/number-field.json +4 -3
- package/docs/number-field.md +1 -1
- package/docs/otp-input.json +11 -10
- package/docs/otp-input.md +14 -14
- package/docs/page-header.json +31 -14
- package/docs/page-header.md +25 -25
- package/docs/page.json +4 -2
- package/docs/page.md +3 -2
- package/docs/pagination.json +2 -2
- package/docs/pagination.md +1 -1
- package/docs/popover.examples.md +1 -1
- package/docs/popover.json +5 -3
- package/docs/popover.md +2 -2
- package/docs/progress-indicator.json +7 -5
- package/docs/progress-indicator.md +7 -7
- package/docs/prompt-composer.json +53 -6
- package/docs/prompt-composer.md +12 -6
- package/docs/prose.json +1 -1
- package/docs/prose.md +1 -1
- package/docs/radio-group.examples.md +19 -19
- package/docs/radio-group.json +12 -12
- package/docs/radio-group.md +3 -3
- package/docs/rating.json +28 -26
- package/docs/rating.md +28 -37
- package/docs/result-state.json +13 -12
- package/docs/result-state.md +18 -18
- package/docs/saved-views.json +1 -1
- package/docs/scroll-area.json +266 -64
- package/docs/scroll-area.md +188 -0
- package/docs/section.json +44 -22
- package/docs/section.md +34 -31
- package/docs/segmented-control.json +21 -25
- package/docs/segmented-control.md +33 -33
- package/docs/select.json +4 -0
- package/docs/select.md +1 -1
- package/docs/side-navigation.json +1 -0
- package/docs/side-navigation.md +1 -1
- package/docs/skeleton.json +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/skills/build-own-element/SKILL.md +9 -9
- package/docs/skills/compose-screen/SKILL.md +59 -18
- package/docs/skills/index.md +2 -2
- package/docs/skills/review-screen/SKILL.md +29 -17
- package/docs/skills/theme-app/SKILL.md +66 -20
- package/docs/skills/waiting-states/SKILL.md +15 -11
- package/docs/slider.json +8 -8
- package/docs/slider.md +12 -12
- package/docs/sparkline.json +12 -9
- package/docs/sparkline.md +9 -9
- package/docs/split-button.json +14 -12
- package/docs/split-button.md +28 -30
- package/docs/splitter.json +279 -64
- package/docs/splitter.md +215 -0
- package/docs/stack.json +1 -1
- package/docs/stack.md +1 -1
- package/docs/stat-card.json +36 -9
- package/docs/stat-card.md +11 -8
- package/docs/status-indicator.json +22 -11
- package/docs/status-indicator.md +8 -6
- package/docs/stepper.json +4 -4
- package/docs/stepper.md +4 -4
- package/docs/switch.json +5 -5
- package/docs/switch.md +7 -7
- package/docs/table-of-contents.json +13 -12
- package/docs/table-of-contents.md +14 -14
- package/docs/table.examples.md +3 -3
- package/docs/table.json +17 -3
- package/docs/table.md +3 -1
- package/docs/tabs.json +16 -3
- package/docs/tabs.md +3 -2
- package/docs/tag.json +38 -26
- package/docs/tag.md +17 -17
- package/docs/tags-input.json +30 -3
- package/docs/tags-input.md +5 -2
- package/docs/text-field.examples.md +6 -6
- package/docs/text-field.json +6 -5
- package/docs/text-field.md +2 -2
- package/docs/textarea.examples.md +7 -7
- package/docs/textarea.json +4 -3
- package/docs/textarea.md +1 -1
- package/docs/time-field.json +4 -3
- package/docs/time-field.md +7 -7
- package/docs/time-picker.json +15 -5
- package/docs/time-picker.md +8 -7
- package/docs/time-range-picker.examples.md +5 -5
- package/docs/time-range-picker.json +15 -4
- package/docs/time-range-picker.md +3 -2
- package/docs/timeline.json +138 -132
- package/docs/timeline.md +125 -125
- package/docs/toast.json +15 -7
- package/docs/toast.md +8 -8
- package/docs/toggle-group.json +12 -12
- package/docs/toggle-group.md +28 -28
- package/docs/toggle.json +8 -8
- package/docs/toggle.md +7 -7
- package/docs/tokens.md +53 -26
- package/docs/toolbar.json +11 -11
- package/docs/toolbar.md +23 -23
- package/docs/tooltip.json +4 -3
- package/docs/tooltip.md +4 -4
- package/docs/top-navigation.examples.md +11 -15
- package/docs/top-navigation.json +9 -9
- package/docs/top-navigation.md +7 -7
- package/docs/tour.json +10 -9
- package/docs/tour.md +7 -7
- package/docs/typography.json +6 -4
- package/docs/typography.md +5 -5
- package/docs/upload.examples.md +3 -3
- package/docs/upload.json +9 -9
- package/docs/upload.md +4 -4
- package/fesm2022/slotted-angular-accordion.mjs +4 -2
- package/fesm2022/slotted-angular-accordion.mjs.map +1 -1
- package/fesm2022/slotted-angular-action-bar.mjs +27 -12
- package/fesm2022/slotted-angular-action-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-action-sheet.mjs +48 -29
- package/fesm2022/slotted-angular-action-sheet.mjs.map +1 -1
- package/fesm2022/slotted-angular-alert.mjs +56 -18
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-app-shell.mjs +85 -56
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-aspect-ratio.mjs +4 -2
- package/fesm2022/slotted-angular-aspect-ratio.mjs.map +1 -1
- package/fesm2022/slotted-angular-attachment.mjs +33 -22
- package/fesm2022/slotted-angular-attachment.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar-group.mjs +13 -10
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +17 -10
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +15 -11
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs +27 -19
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/slotted-angular-button-group.mjs +8 -5
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +163 -28
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-calendar.mjs +263 -65
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +19 -17
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-carousel.mjs +22 -11
- package/fesm2022/slotted-angular-carousel.mjs.map +1 -1
- package/fesm2022/slotted-angular-cascader.mjs +179 -65
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +26 -5
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox-group.mjs +5 -3
- package/fesm2022/slotted-angular-checkbox-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +14 -9
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-code-block.mjs +30 -16
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +21 -16
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-color-picker.mjs +83 -28
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +71 -32
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-combobox.mjs +108 -35
- package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
- package/fesm2022/slotted-angular-command-palette.mjs +162 -54
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
- package/fesm2022/slotted-angular-container.mjs +6 -4
- package/fesm2022/slotted-angular-container.mjs.map +1 -1
- package/fesm2022/slotted-angular-context-menu.mjs +5 -4
- package/fesm2022/slotted-angular-context-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-currency-field.mjs +100 -34
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +384 -88
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +461 -129
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-list.mjs +83 -50
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-field.mjs +78 -27
- package/fesm2022/slotted-angular-date-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +135 -40
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs +68 -22
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs +49 -17
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs +64 -29
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +144 -54
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +47 -24
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs +48 -30
- package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -1
- package/fesm2022/slotted-angular-dialog.mjs +81 -39
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
- package/fesm2022/slotted-angular-divider.mjs +7 -5
- package/fesm2022/slotted-angular-divider.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +236 -105
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-entity-picker.mjs +474 -75
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-event-calendar.mjs +262 -105
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-field-group.mjs +30 -9
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-field.mjs +49 -18
- package/fesm2022/slotted-angular-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-filter-bar.mjs +111 -44
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-form.mjs +48 -17
- package/fesm2022/slotted-angular-form.mjs.map +1 -1
- package/fesm2022/slotted-angular-fullscreen.mjs +14 -8
- package/fesm2022/slotted-angular-fullscreen.mjs.map +1 -1
- package/fesm2022/slotted-angular-grid.mjs +6 -4
- package/fesm2022/slotted-angular-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-highlight.mjs +6 -4
- package/fesm2022/slotted-angular-highlight.mjs.map +1 -1
- package/fesm2022/slotted-angular-hover-card.mjs +5 -4
- package/fesm2022/slotted-angular-hover-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-icon.mjs +191 -90
- package/fesm2022/slotted-angular-icon.mjs.map +1 -1
- package/fesm2022/slotted-angular-image.mjs +13 -10
- package/fesm2022/slotted-angular-image.mjs.map +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs +185 -109
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +98 -23
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline.mjs +7 -5
- package/fesm2022/slotted-angular-inline.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs +11 -7
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-link.mjs +13 -4
- package/fesm2022/slotted-angular-link.mjs.map +1 -1
- package/fesm2022/slotted-angular-list-item.mjs +63 -23
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +15 -11
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +41 -23
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +62 -25
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
- package/fesm2022/slotted-angular-markdown.mjs +57 -31
- package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
- package/fesm2022/slotted-angular-media-viewer.mjs +962 -0
- package/fesm2022/slotted-angular-media-viewer.mjs.map +1 -0
- package/fesm2022/slotted-angular-menu.mjs +62 -39
- package/fesm2022/slotted-angular-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-menubar.mjs +6 -3
- package/fesm2022/slotted-angular-menubar.mjs.map +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs +35 -16
- package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -1
- package/fesm2022/slotted-angular-message.mjs +119 -51
- package/fesm2022/slotted-angular-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-multi-select.mjs +163 -60
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-navigation-menu.mjs +34 -26
- package/fesm2022/slotted-angular-navigation-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +111 -68
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +24 -12
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs +14 -9
- package/fesm2022/slotted-angular-otp-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-page-header.mjs +90 -48
- package/fesm2022/slotted-angular-page-header.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +60 -12
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-pagination.mjs +35 -22
- package/fesm2022/slotted-angular-pagination.mjs.map +1 -1
- package/fesm2022/slotted-angular-popover.mjs +34 -21
- package/fesm2022/slotted-angular-popover.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +238 -54
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-prompt-composer.mjs +132 -22
- package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -1
- package/fesm2022/slotted-angular-prose.mjs +14 -11
- package/fesm2022/slotted-angular-prose.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +17 -11
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +143 -87
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-result-state.mjs +16 -12
- package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs +43 -16
- package/fesm2022/slotted-angular-saved-views.mjs.map +1 -1
- package/fesm2022/slotted-angular-scroll-area.mjs +13 -5
- package/fesm2022/slotted-angular-scroll-area.mjs.map +1 -1
- package/fesm2022/slotted-angular-section.mjs +81 -19
- package/fesm2022/slotted-angular-section.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +16 -10
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +189 -69
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-side-navigation.mjs +46 -35
- package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-skeleton.mjs +32 -16
- package/fesm2022/slotted-angular-skeleton.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +34 -14
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-sparkline.mjs +41 -14
- package/fesm2022/slotted-angular-sparkline.mjs.map +1 -1
- package/fesm2022/slotted-angular-split-button.mjs +37 -11
- package/fesm2022/slotted-angular-split-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-splitter.mjs +11 -9
- package/fesm2022/slotted-angular-splitter.mjs.map +1 -1
- package/fesm2022/slotted-angular-stack.mjs +6 -4
- package/fesm2022/slotted-angular-stack.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +120 -41
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +51 -20
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-stepper.mjs +40 -15
- package/fesm2022/slotted-angular-stepper.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs +15 -10
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table-of-contents.mjs +29 -21
- package/fesm2022/slotted-angular-table-of-contents.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +162 -79
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tabs.mjs +42 -18
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +20 -13
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +254 -29
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-text-field.mjs +55 -15
- package/fesm2022/slotted-angular-text-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-textarea.mjs +5 -3
- package/fesm2022/slotted-angular-textarea.mjs.map +1 -1
- package/fesm2022/slotted-angular-theme.mjs +6 -3
- package/fesm2022/slotted-angular-theme.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-field.mjs +48 -14
- package/fesm2022/slotted-angular-time-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-picker.mjs +55 -20
- package/fesm2022/slotted-angular-time-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-range-picker.mjs +142 -52
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-timeline.mjs +147 -64
- package/fesm2022/slotted-angular-timeline.mjs.map +1 -1
- package/fesm2022/slotted-angular-toast.mjs +50 -38
- package/fesm2022/slotted-angular-toast.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle-group.mjs +10 -6
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle.mjs +9 -4
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
- package/fesm2022/slotted-angular-toolbar.mjs +27 -12
- package/fesm2022/slotted-angular-toolbar.mjs.map +1 -1
- package/fesm2022/slotted-angular-tooltip.mjs +15 -6
- package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
- package/fesm2022/slotted-angular-top-navigation.mjs +64 -44
- package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +49 -24
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-transfer.mjs +69 -30
- package/fesm2022/slotted-angular-transfer.mjs.map +1 -1
- package/fesm2022/slotted-angular-tree.mjs +80 -26
- package/fesm2022/slotted-angular-tree.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +9 -5
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +127 -59
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/fesm2022/slotted-angular-visually-hidden.mjs +4 -2
- package/fesm2022/slotted-angular-visually-hidden.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +169 -71
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +19 -3
- package/types/slotted-angular-accordion.d.ts.map +1 -1
- package/types/slotted-angular-action-bar.d.ts +2 -0
- package/types/slotted-angular-action-bar.d.ts.map +1 -1
- package/types/slotted-angular-action-sheet.d.ts.map +1 -1
- package/types/slotted-angular-alert.d.ts +17 -8
- package/types/slotted-angular-alert.d.ts.map +1 -1
- package/types/slotted-angular-app-shell.d.ts +10 -8
- package/types/slotted-angular-app-shell.d.ts.map +1 -1
- package/types/slotted-angular-aspect-ratio.d.ts.map +1 -1
- package/types/slotted-angular-attachment.d.ts +2 -1
- package/types/slotted-angular-attachment.d.ts.map +1 -1
- package/types/slotted-angular-avatar-group.d.ts +3 -3
- package/types/slotted-angular-avatar-group.d.ts.map +1 -1
- package/types/slotted-angular-avatar.d.ts +17 -9
- package/types/slotted-angular-avatar.d.ts.map +1 -1
- package/types/slotted-angular-badge.d.ts +4 -4
- package/types/slotted-angular-badge.d.ts.map +1 -1
- package/types/slotted-angular-breadcrumb.d.ts +1 -1
- package/types/slotted-angular-breadcrumb.d.ts.map +1 -1
- package/types/slotted-angular-button-group.d.ts +2 -2
- package/types/slotted-angular-button-group.d.ts.map +1 -1
- package/types/slotted-angular-button.d.ts +45 -12
- package/types/slotted-angular-button.d.ts.map +1 -1
- package/types/slotted-angular-calendar.d.ts +43 -2
- package/types/slotted-angular-calendar.d.ts.map +1 -1
- package/types/slotted-angular-card.d.ts +1 -1
- package/types/slotted-angular-card.d.ts.map +1 -1
- package/types/slotted-angular-carousel.d.ts.map +1 -1
- package/types/slotted-angular-cascader.d.ts.map +1 -1
- package/types/slotted-angular-chart.d.ts +14 -11
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-checkbox-group.d.ts.map +1 -1
- package/types/slotted-angular-checkbox.d.ts +1 -1
- package/types/slotted-angular-checkbox.d.ts.map +1 -1
- package/types/slotted-angular-code-block.d.ts +3 -2
- package/types/slotted-angular-code-block.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +3 -2
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-color-picker.d.ts +6 -6
- package/types/slotted-angular-color-picker.d.ts.map +1 -1
- package/types/slotted-angular-column-manager.d.ts +1 -1
- package/types/slotted-angular-column-manager.d.ts.map +1 -1
- package/types/slotted-angular-combobox.d.ts +6 -1
- package/types/slotted-angular-combobox.d.ts.map +1 -1
- package/types/slotted-angular-command-palette.d.ts +10 -1
- package/types/slotted-angular-command-palette.d.ts.map +1 -1
- package/types/slotted-angular-container.d.ts.map +1 -1
- package/types/slotted-angular-context-menu.d.ts.map +1 -1
- package/types/slotted-angular-currency-field.d.ts +40 -14
- package/types/slotted-angular-currency-field.d.ts.map +1 -1
- package/types/slotted-angular-dashboard-grid.d.ts +65 -7
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-grid.d.ts +63 -5
- package/types/slotted-angular-data-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-list.d.ts.map +1 -1
- package/types/slotted-angular-date-field.d.ts +12 -1
- package/types/slotted-angular-date-field.d.ts.map +1 -1
- package/types/slotted-angular-date-picker.d.ts +39 -12
- package/types/slotted-angular-date-picker.d.ts.map +1 -1
- package/types/slotted-angular-date-range-picker.d.ts +1 -1
- package/types/slotted-angular-date-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-field.d.ts.map +1 -1
- package/types/slotted-angular-datetime-picker.d.ts +1 -1
- package/types/slotted-angular-datetime-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-range-picker.d.ts +2 -2
- package/types/slotted-angular-datetime-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-description-list.d.ts +12 -4
- package/types/slotted-angular-description-list.d.ts.map +1 -1
- package/types/slotted-angular-detail-panel.d.ts.map +1 -1
- package/types/slotted-angular-dialog.d.ts +11 -3
- package/types/slotted-angular-dialog.d.ts.map +1 -1
- package/types/slotted-angular-divider.d.ts.map +1 -1
- package/types/slotted-angular-drawer.d.ts +29 -3
- package/types/slotted-angular-drawer.d.ts.map +1 -1
- package/types/slotted-angular-entity-picker.d.ts +63 -15
- package/types/slotted-angular-entity-picker.d.ts.map +1 -1
- package/types/slotted-angular-event-calendar.d.ts.map +1 -1
- package/types/slotted-angular-field-group.d.ts +10 -2
- package/types/slotted-angular-field-group.d.ts.map +1 -1
- package/types/slotted-angular-field.d.ts +12 -4
- package/types/slotted-angular-field.d.ts.map +1 -1
- package/types/slotted-angular-filter-bar.d.ts.map +1 -1
- package/types/slotted-angular-form.d.ts +11 -2
- package/types/slotted-angular-form.d.ts.map +1 -1
- package/types/slotted-angular-fullscreen.d.ts.map +1 -1
- package/types/slotted-angular-grid.d.ts.map +1 -1
- package/types/slotted-angular-highlight.d.ts +1 -1
- package/types/slotted-angular-highlight.d.ts.map +1 -1
- package/types/slotted-angular-hover-card.d.ts.map +1 -1
- package/types/slotted-angular-icon.d.ts +15 -5
- package/types/slotted-angular-icon.d.ts.map +1 -1
- package/types/slotted-angular-image.d.ts.map +1 -1
- package/types/slotted-angular-import-export-center.d.ts +9 -9
- package/types/slotted-angular-import-export-center.d.ts.map +1 -1
- package/types/slotted-angular-inline-message.d.ts +32 -31
- package/types/slotted-angular-inline-message.d.ts.map +1 -1
- package/types/slotted-angular-inline.d.ts +1 -1
- package/types/slotted-angular-inline.d.ts.map +1 -1
- package/types/slotted-angular-kbd.d.ts +1 -1
- package/types/slotted-angular-kbd.d.ts.map +1 -1
- package/types/slotted-angular-link.d.ts +8 -2
- package/types/slotted-angular-link.d.ts.map +1 -1
- package/types/slotted-angular-list-item.d.ts +5 -1
- package/types/slotted-angular-list-item.d.ts.map +1 -1
- package/types/slotted-angular-list.d.ts +1 -1
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-listbox.d.ts +2 -2
- package/types/slotted-angular-listbox.d.ts.map +1 -1
- package/types/slotted-angular-loading-overlay.d.ts +3 -3
- package/types/slotted-angular-loading-overlay.d.ts.map +1 -1
- package/types/slotted-angular-markdown.d.ts +6 -1
- package/types/slotted-angular-markdown.d.ts.map +1 -1
- package/types/slotted-angular-media-viewer.d.ts +140 -0
- package/types/slotted-angular-media-viewer.d.ts.map +1 -0
- package/types/slotted-angular-menu.d.ts +17 -3
- package/types/slotted-angular-menu.d.ts.map +1 -1
- package/types/slotted-angular-menubar.d.ts +5 -4
- package/types/slotted-angular-menubar.d.ts.map +1 -1
- package/types/slotted-angular-message-scroller.d.ts +1 -1
- package/types/slotted-angular-message-scroller.d.ts.map +1 -1
- package/types/slotted-angular-message.d.ts +1 -1
- package/types/slotted-angular-message.d.ts.map +1 -1
- package/types/slotted-angular-multi-select.d.ts +6 -1
- package/types/slotted-angular-multi-select.d.ts.map +1 -1
- package/types/slotted-angular-navigation-menu.d.ts.map +1 -1
- package/types/slotted-angular-notification-center.d.ts +5 -5
- package/types/slotted-angular-notification-center.d.ts.map +1 -1
- package/types/slotted-angular-number-field.d.ts.map +1 -1
- package/types/slotted-angular-otp-input.d.ts +1 -1
- package/types/slotted-angular-otp-input.d.ts.map +1 -1
- package/types/slotted-angular-page-header.d.ts +15 -6
- package/types/slotted-angular-page-header.d.ts.map +1 -1
- package/types/slotted-angular-page.d.ts +7 -1
- package/types/slotted-angular-page.d.ts.map +1 -1
- package/types/slotted-angular-pagination.d.ts.map +1 -1
- package/types/slotted-angular-popover.d.ts.map +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +10 -3
- package/types/slotted-angular-progress-indicator.d.ts.map +1 -1
- package/types/slotted-angular-prompt-composer.d.ts +35 -3
- package/types/slotted-angular-prompt-composer.d.ts.map +1 -1
- package/types/slotted-angular-prose.d.ts.map +1 -1
- package/types/slotted-angular-radio-group.d.ts +2 -2
- package/types/slotted-angular-radio-group.d.ts.map +1 -1
- package/types/slotted-angular-rating.d.ts +3 -3
- package/types/slotted-angular-rating.d.ts.map +1 -1
- package/types/slotted-angular-result-state.d.ts +1 -1
- package/types/slotted-angular-result-state.d.ts.map +1 -1
- package/types/slotted-angular-saved-views.d.ts.map +1 -1
- package/types/slotted-angular-scroll-area.d.ts.map +1 -1
- package/types/slotted-angular-section.d.ts +14 -4
- package/types/slotted-angular-section.d.ts.map +1 -1
- package/types/slotted-angular-segmented-control.d.ts +2 -2
- package/types/slotted-angular-segmented-control.d.ts.map +1 -1
- package/types/slotted-angular-select.d.ts +13 -2
- package/types/slotted-angular-select.d.ts.map +1 -1
- package/types/slotted-angular-side-navigation.d.ts.map +1 -1
- package/types/slotted-angular-skeleton.d.ts.map +1 -1
- package/types/slotted-angular-slider.d.ts.map +1 -1
- package/types/slotted-angular-sparkline.d.ts +7 -1
- package/types/slotted-angular-sparkline.d.ts.map +1 -1
- package/types/slotted-angular-split-button.d.ts +2 -2
- package/types/slotted-angular-split-button.d.ts.map +1 -1
- package/types/slotted-angular-splitter.d.ts.map +1 -1
- package/types/slotted-angular-stack.d.ts.map +1 -1
- package/types/slotted-angular-stat-card.d.ts +31 -7
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
- package/types/slotted-angular-status-indicator.d.ts +15 -5
- package/types/slotted-angular-status-indicator.d.ts.map +1 -1
- package/types/slotted-angular-stepper.d.ts +2 -1
- package/types/slotted-angular-stepper.d.ts.map +1 -1
- package/types/slotted-angular-switch.d.ts +1 -1
- package/types/slotted-angular-switch.d.ts.map +1 -1
- package/types/slotted-angular-table-of-contents.d.ts.map +1 -1
- package/types/slotted-angular-table.d.ts +21 -4
- package/types/slotted-angular-table.d.ts.map +1 -1
- package/types/slotted-angular-tabs.d.ts +4 -5
- package/types/slotted-angular-tabs.d.ts.map +1 -1
- package/types/slotted-angular-tag.d.ts +5 -5
- package/types/slotted-angular-tag.d.ts.map +1 -1
- package/types/slotted-angular-tags-input.d.ts +34 -2
- package/types/slotted-angular-tags-input.d.ts.map +1 -1
- package/types/slotted-angular-text-field.d.ts.map +1 -1
- package/types/slotted-angular-textarea.d.ts.map +1 -1
- package/types/slotted-angular-theme.d.ts +8 -6
- package/types/slotted-angular-theme.d.ts.map +1 -1
- package/types/slotted-angular-time-field.d.ts.map +1 -1
- package/types/slotted-angular-time-picker.d.ts +1 -1
- package/types/slotted-angular-time-picker.d.ts.map +1 -1
- package/types/slotted-angular-time-range-picker.d.ts +2 -2
- package/types/slotted-angular-time-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-timeline.d.ts +1 -1
- package/types/slotted-angular-timeline.d.ts.map +1 -1
- package/types/slotted-angular-toast.d.ts +9 -7
- package/types/slotted-angular-toast.d.ts.map +1 -1
- package/types/slotted-angular-toggle-group.d.ts +1 -1
- package/types/slotted-angular-toggle-group.d.ts.map +1 -1
- package/types/slotted-angular-toggle.d.ts +1 -1
- package/types/slotted-angular-toggle.d.ts.map +1 -1
- package/types/slotted-angular-toolbar.d.ts +2 -0
- package/types/slotted-angular-toolbar.d.ts.map +1 -1
- package/types/slotted-angular-tooltip.d.ts.map +1 -1
- package/types/slotted-angular-top-navigation.d.ts.map +1 -1
- package/types/slotted-angular-tour.d.ts +2 -2
- package/types/slotted-angular-tour.d.ts.map +1 -1
- package/types/slotted-angular-transfer.d.ts.map +1 -1
- package/types/slotted-angular-tree.d.ts.map +1 -1
- package/types/slotted-angular-typography.d.ts +1 -1
- package/types/slotted-angular-typography.d.ts.map +1 -1
- package/types/slotted-angular-upload.d.ts +4 -2
- package/types/slotted-angular-upload.d.ts.map +1 -1
- package/types/slotted-angular-visually-hidden.d.ts.map +1 -1
- package/types/slotted-angular-wizard.d.ts +1 -1
- package/types/slotted-angular-wizard.d.ts.map +1 -1
package/docs/filter-bar.md
CHANGED
|
@@ -75,50 +75,50 @@ Excerpt — not a complete module
|
|
|
75
75
|
|
|
76
76
|
| Name | Type | Default | Applies to | Description |
|
|
77
77
|
| --- | --- | --- | --- | --- |
|
|
78
|
-
| `fields` | `FilterBarField[]` | — | FilterBar |
|
|
79
|
-
| `value` | `model<FilterGroup \| null \| undefined>` | — | FilterBar | [(value)]:
|
|
80
|
-
| `defaultValue` | `FilterGroup \| null` | — | FilterBar |
|
|
81
|
-
| `query` | `model<string \| undefined>` | — | FilterBar | [(query)]:
|
|
82
|
-
| `defaultQuery` | `string` | | FilterBar |
|
|
83
|
-
| `presets` | `FilterBarPreset[]` | — | FilterBar |
|
|
84
|
-
| `preset` | `model<string \| null \| undefined>` | — | FilterBar | [(preset)]:
|
|
85
|
-
| `defaultPreset` | `string \| null` | null | FilterBar |
|
|
86
|
-
| `open` | `model<boolean \| undefined>` | — | FilterBar | [(open)]:
|
|
87
|
-
| `defaultOpen` | `boolean` | false | FilterBar |
|
|
88
|
-
| `revealed` | `model<boolean \| undefined>` | — | FilterBar | [(revealed)]:
|
|
89
|
-
| `defaultRevealed` | `boolean` | false | FilterBar |
|
|
90
|
-
| `apply` | `'live' \| 'manual'` | live | FilterBar |
|
|
91
|
-
| `sticky` | `boolean` | false | FilterBar |
|
|
92
|
-
| `container` | `Element \| null` | — | FilterBar |
|
|
93
|
-
| `size` | `'sm' \| 'md' \| 'lg'` | md | FilterBar |
|
|
94
|
-
| `queryDelay` | `number` | 320 | FilterBar |
|
|
95
|
-
| `chipLimit` | `number` | 6 | FilterBar | Chips
|
|
96
|
-
| `shortcut` | `string \| null` | null | FilterBar |
|
|
97
|
-
| `disabled` | `boolean` | false | FilterBar |
|
|
98
|
-
| `readOnly` | `boolean` | false | FilterBar |
|
|
99
|
-
| `loading` | `boolean` | false | FilterBar |
|
|
100
|
-
| `count` | `number` | — | FilterBar |
|
|
101
|
-
| `total` | `number` | — | FilterBar |
|
|
102
|
-
| `messages` | `Partial<FilterBarMessages>` | — | FilterBar |
|
|
103
|
-
| `savePresetEnabled` | `boolean` | false | FilterBar |
|
|
104
|
-
| `ng-template[slFilterBarOperand]` | `
|
|
105
|
-
| `[slFilterBarEnd]` | `
|
|
106
|
-
| `ng-template[slFilterBarOperand]` | `let-field, let-operator="operator", let-value="value", let-set="set", let-apply="apply"` | — | FilterBar |
|
|
107
|
-
| `[slFilterBarEnd]` | `ng-content` | — | FilterBar |
|
|
108
|
-
| `exportAs` | `slFilterBar` | — | FilterBar |
|
|
109
|
-
| `provideFilterBarDefaults()` | `apply \| chipLimit \| queryDelay \| shortcut \| size` | — | Injector |
|
|
110
|
-
| `id, aria-label, dir, data-*, (keydown)` | `
|
|
78
|
+
| `fields` | `FilterBarField[]` | — | FilterBar | The filterable fields: key, label, kind, icon (glyph name or TemplateRef), operators, pinned, required, defaultValue, section, options, searchable |
|
|
79
|
+
| `value` | `model<FilterGroup \| null \| undefined>` | — | FilterBar | [(value)]: the tree the consumer owns. Present means controlled, for the life of the bar |
|
|
80
|
+
| `defaultValue` | `FilterGroup \| null` | — | FilterBar | Where an uncontrolled bar starts, read once |
|
|
81
|
+
| `query` | `model<string \| undefined>` | — | FilterBar | [(query)]: the global search |
|
|
82
|
+
| `defaultQuery` | `string` | | FilterBar | The search an uncontrolled bar starts with |
|
|
83
|
+
| `presets` | `FilterBarPreset[]` | — | FilterBar | The saved views: key, label, value |
|
|
84
|
+
| `preset` | `model<string \| null \| undefined>` | — | FilterBar | [(preset)]: the current view |
|
|
85
|
+
| `defaultPreset` | `string \| null` | null | FilterBar | The view it starts with |
|
|
86
|
+
| `open` | `model<boolean \| undefined>` | — | FilterBar | [(open)]: whether the builder is open |
|
|
87
|
+
| `defaultOpen` | `boolean` | false | FilterBar | Whether it starts open |
|
|
88
|
+
| `revealed` | `model<boolean \| undefined>` | — | FilterBar | [(revealed)]: whether the folded chips are in view |
|
|
89
|
+
| `defaultRevealed` | `boolean` | false | FilterBar | Whether they start in view |
|
|
90
|
+
| `apply` | `'live' \| 'manual'` | live | FilterBar | Requests on every edit, or edits a draft until Apply |
|
|
91
|
+
| `sticky` | `boolean` | false | FilterBar | Sticks under the page header and adds its height to what follows |
|
|
92
|
+
| `container` | `Element \| null` | — | FilterBar | A parent for the builder drawer only, instead of the shared portal root |
|
|
93
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | md | FilterBar | The step of the controls |
|
|
94
|
+
| `queryDelay` | `number` | 320 | FilterBar | Milliseconds the search and a text operand wait under live |
|
|
95
|
+
| `chipLimit` | `number` | 6 | FilterBar | Chips in view before folding |
|
|
96
|
+
| `shortcut` | `string \| null` | null | FilterBar | The document key that focuses the search, outside an editable field |
|
|
97
|
+
| `disabled` | `boolean` | false | FilterBar | Turns off every control |
|
|
98
|
+
| `readOnly` | `boolean` | false | FilterBar | Every condition reachable and readable, none changeable: no X, add, clear or empty pills |
|
|
99
|
+
| `loading` | `boolean` | false | FilterBar | Keeps the width, turns off Apply, spinner in place of the count |
|
|
100
|
+
| `count` | `number` | — | FilterBar | How many rows the filter kept |
|
|
101
|
+
| `total` | `number` | — | FilterBar | How many there are |
|
|
102
|
+
| `messages` | `Partial<FilterBarMessages>` | — | FilterBar | Words over those of the current locale, key by key: the landmark name (bar), the controls, the chip names, the count and the announcements |
|
|
103
|
+
| `savePresetEnabled` | `boolean` | false | FilterBar | Draws "Save as view…" in the builder and emits savePreset |
|
|
104
|
+
| `ng-template[slFilterBarOperand]` | `projection` | — | FilterBar | Replaces the operand control of the named field, or of every field with "*" |
|
|
105
|
+
| `[slFilterBarEnd]` | `projection` | — | FilterBar | The consumer’s controls in the end slot |
|
|
106
|
+
| `ng-template[slFilterBarOperand]` | `let-field, let-operator="operator", let-value="value", let-set="set", let-apply="apply"` | — | FilterBar | The seam table uses: date-range-picker on a between, tags-input on a large set |
|
|
107
|
+
| `[slFilterBarEnd]` | `ng-content` | — | FilterBar | The end slot: a sort, a column picker, outside the toolbar ring |
|
|
108
|
+
| `exportAs` | `slFilterBar` | — | FilterBar | Reaches the instance from the template: #bar="slFilterBar" and bar.focusSearch() or bar.openBuilder() |
|
|
109
|
+
| `provideFilterBarDefaults()` | `apply \| chipLimit \| queryDelay \| shortcut \| size` | — | Injector | Decides once for everything below; an input on the bar wins |
|
|
110
|
+
| `id, aria-label, dir, data-*, (keydown)` | `native attributes` | — | FilterBar | Stay on the host element; aria-label names the landmark, the consumer’s listener runs alongside the family’s |
|
|
111
111
|
|
|
112
112
|
## Events
|
|
113
113
|
|
|
114
114
|
| Name | Payload | When |
|
|
115
115
|
| --- | --- | --- |
|
|
116
|
-
| `(valueChangeRequest)` | `ChangeRequest<FilterGroup \| null>` |
|
|
117
|
-
| `(queryChangeRequest)` | `ChangeRequest<string>` |
|
|
118
|
-
| `(presetChangeRequest)` | `ChangeRequest<string \| null>` |
|
|
119
|
-
| `(savePreset)` | `FilterGroup \| null` |
|
|
120
|
-
| `(openChangeRequest)` | `ChangeRequest<boolean>` |
|
|
121
|
-
| `(revealedChangeRequest)` | `ChangeRequest<boolean>` |
|
|
116
|
+
| `(valueChangeRequest)` | `ChangeRequest<FilterGroup \| null>` | Before the tree moves; [(value)] is the other half, the value. The reason is pointer, keyboard, clear, remove, select, submit or programmatic; cancelling moves nothing. The tree arrives normalized: no incomplete rules, null when nothing is left. |
|
|
117
|
+
| `(queryChangeRequest)` | `ChangeRequest<string>` | After queryDelay under live, or with submit under manual; clear when Escape or the field’s X clears it. [(query)] is the value. |
|
|
118
|
+
| `(presetChangeRequest)` | `ChangeRequest<string \| null>` | When a view is chosen in the select, with select; clear when the select is emptied. [(preset)] is the value. |
|
|
119
|
+
| `(savePreset)` | `FilterGroup \| null` | When the reader presses "Save as view…" in the builder, drawn by savePresetEnabled. The family does not save: it asks. |
|
|
120
|
+
| `(openChangeRequest)` | `ChangeRequest<boolean>` | Before the builder opens or closes: pointer, keyboard, escape, outsidePress, dismiss, submit, programmatic. [(open)] is the value. |
|
|
121
|
+
| `(revealedChangeRequest)` | `ChangeRequest<boolean>` | Before the folded chips appear or fold again. [(revealed)] is the value. |
|
|
122
122
|
|
|
123
123
|
## Axes and defaults
|
|
124
124
|
|
|
@@ -130,12 +130,12 @@ Excerpt — not a complete module
|
|
|
130
130
|
|
|
131
131
|
## Rules
|
|
132
132
|
|
|
133
|
-
-
|
|
134
|
-
-
|
|
135
|
-
-
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
133
|
+
- The root is role="search", not role="toolbar": the APG Toolbar pattern asks a toolbar to avoid controls that need the arrows, and the search field is one. The search is the first tab stop and the toolbar the second — two stops however many fields there are; the APG note on multi-row toolbars lets the arrows move from row to row.
|
|
134
|
+
- A chip is role="group" named "<field>: <phrase>", the same phrase describeFilter gives to the table announcement, and ", incomplete" while the value is missing. The operator has aria-haspopup="menu", the value aria-haspopup="dialog" and the name with the whole list, the X "Remove <field>". Delete and Backspace on any segment remove with the reason remove and focus goes to the segment of the same role on the next chip, the previous one, or Add filter.
|
|
135
|
+
- A pill has aria-haspopup="dialog"; under readOnly the toolbar carries aria-description="Read only" and the segments keep their stop with aria-disabled, and a locked value names the whole list the popover no longer shows.
|
|
136
|
+
- The count is itself the live region, in polite, so the effect of a filter is heard; applying, clearing, removing a chip and choosing a view are announced by the shared live-announcer.
|
|
137
|
+
- The builder is a drawer: modal, Escape closes and discards, focus returns to the trigger. Each group is a fieldset with a legend, each rule three named controls — Field, Operator, Value or From and To.
|
|
138
|
+
- Below 36rem the operator, more, add and clear leave the focus ring with visibility hidden, not only the drawing: a stop where nothing is seen is a stop that does not exist. The builder’s closed cards take the three controls out of the ring the same way; the card’s phrase has aria-expanded and aria-controls.
|
|
139
139
|
|
|
140
140
|
## Tokens
|
|
141
141
|
|
|
@@ -143,9 +143,9 @@ Excerpt — not a complete module
|
|
|
143
143
|
|
|
144
144
|
## Examples
|
|
145
145
|
|
|
146
|
-
###
|
|
146
|
+
### The bar over the table, and the same rule in both places
|
|
147
147
|
|
|
148
|
-
|
|
148
|
+
The consumer applies the tree with createFilterGroupPredicate and createSearchPredicate; the table below shrinks and the count says by how much. The Status column filter in the header edits the same object as the bar’s Status chip.
|
|
149
149
|
|
|
150
150
|
Excerpt — not a complete module
|
|
151
151
|
|
|
@@ -157,9 +157,9 @@ const kept = computed(() => {
|
|
|
157
157
|
});
|
|
158
158
|
```
|
|
159
159
|
|
|
160
|
-
###
|
|
160
|
+
### Pinned fields: a dashed place that becomes a chip
|
|
161
161
|
|
|
162
|
-
pinned
|
|
162
|
+
pinned keeps the field always in view. Without a condition it is a dashed pill with + and the name — a place waiting to be filled; pressed, it gives way to the field’s chip, in the same place, incomplete and with the value popover open. Removing the condition brings the pill back.
|
|
163
163
|
|
|
164
164
|
Excerpt — not a complete module
|
|
165
165
|
|
|
@@ -177,9 +177,9 @@ const FIELDS: FilterBarField[] = [
|
|
|
177
177
|
];
|
|
178
178
|
```
|
|
179
179
|
|
|
180
|
-
###
|
|
180
|
+
### Each condition written in segments
|
|
181
181
|
|
|
182
|
-
|
|
182
|
+
A chip is the condition’s phrase in segments: the field with its glyph, the lighter operator, the value, and the X. The operator opens a menu, the value a popover with the operand only — changing the comparison does not reopen the values. A long list writes two values and the rest as a number (Paid, Refunded +2), whole in the name and the title; a list of one reads as equality. Add filter creates the chip at once, dashed until it has a value, and left out of the emitted value until then. Beyond chipLimit the chips fold behind +n more.
|
|
183
183
|
|
|
184
184
|
Excerpt — not a complete module
|
|
185
185
|
|
|
@@ -187,9 +187,9 @@ Excerpt — not a complete module
|
|
|
187
187
|
<div slFilterBar chipLimit="6" [fields]="fields" [value]="filter"></div>
|
|
188
188
|
```
|
|
189
189
|
|
|
190
|
-
###
|
|
190
|
+
### The builder in a drawer
|
|
191
191
|
|
|
192
|
-
Add filter,
|
|
192
|
+
Add filter, a group chip or Filters (n) open the whole tree in a drawer; on a phone the drawer rises from the bottom as a sheet. Wider than 30rem each rule is a row of field, operator, operand and X; narrower, a card with the phrase that expands in place, one at a time. Apply requests the tree with the reason submit, Cancel and Escape discard.
|
|
193
193
|
|
|
194
194
|
Excerpt — not a complete module
|
|
195
195
|
|
|
@@ -200,12 +200,12 @@ Excerpt — not a complete module
|
|
|
200
200
|
[fields]="fields"
|
|
201
201
|
(openChangeRequest)="log($event.reason)"
|
|
202
202
|
></div>
|
|
203
|
-
<button slButton type="button" (click)="bar.openBuilder()">
|
|
203
|
+
<button slButton type="button" (click)="bar.openBuilder()">Open the builder</button>
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
-
###
|
|
206
|
+
### Nested AND/OR groups
|
|
207
207
|
|
|
208
|
-
|
|
208
|
+
A group inside a group is a box over the sunken surface, with the opposite join and the trash that removes it; in a narrow builder it becomes a rail on the start edge, which costs ten pixels per level instead of eighty. On the bar it appears as a single chip, with the phrase in parentheses, that opens the builder.
|
|
209
209
|
|
|
210
210
|
Excerpt — not a complete module
|
|
211
211
|
|
|
@@ -235,9 +235,9 @@ const filter: FilterGroup = {
|
|
|
235
235
|
};
|
|
236
236
|
```
|
|
237
237
|
|
|
238
|
-
###
|
|
238
|
+
### Applying in a batch
|
|
239
239
|
|
|
240
|
-
|
|
240
|
+
With apply="manual" each edit goes to a draft: the root becomes data-dirty, Reset discards, Apply requests the tree and the query with the reason submit. Enter on an operand applies. It is the Go of Fiori and the batch of Carbon.
|
|
241
241
|
|
|
242
242
|
Excerpt — not a complete module
|
|
243
243
|
|
|
@@ -251,9 +251,9 @@ Excerpt — not a complete module
|
|
|
251
251
|
></div>
|
|
252
252
|
```
|
|
253
253
|
|
|
254
|
-
###
|
|
254
|
+
### A required field with a default
|
|
255
255
|
|
|
256
|
-
required
|
|
256
|
+
required pins the field and gives it a defaultValue: Clear returns it to the default instead of erasing it, the chip has no X, and an Apply with the field empty is refused — the chip stays dashed and data-invalid, and the message is announced.
|
|
257
257
|
|
|
258
258
|
Excerpt — not a complete module
|
|
259
259
|
|
|
@@ -268,9 +268,9 @@ const company: FilterBarField = {
|
|
|
268
268
|
};
|
|
269
269
|
```
|
|
270
270
|
|
|
271
|
-
###
|
|
271
|
+
### Saved views
|
|
272
272
|
|
|
273
|
-
presets
|
|
273
|
+
presets appears as a select at the end of the bar: choosing one replaces the tree with the reason select; editing afterwards keeps the chosen view and marks the root data-dirty. Saving belongs to the application — onPresetSave hands over the tree, and the application asks for the name.
|
|
274
274
|
|
|
275
275
|
Excerpt — not a complete module
|
|
276
276
|
|
|
@@ -285,9 +285,9 @@ Excerpt — not a complete module
|
|
|
285
285
|
></div>
|
|
286
286
|
```
|
|
287
287
|
|
|
288
|
-
###
|
|
288
|
+
### The global search
|
|
289
289
|
|
|
290
|
-
|
|
290
|
+
The query is the only field that belongs to no column. Debounced by queryDelay under live; Escape clears with the reason clear; shortcut is the document key that reaches the field, drawn inside it with kbd — and hidden where the primary input is a touch screen, where there is no key to press.
|
|
291
291
|
|
|
292
292
|
Excerpt — not a complete module
|
|
293
293
|
|
|
@@ -295,9 +295,9 @@ Excerpt — not a complete module
|
|
|
295
295
|
<div slFilterBar [fields]="fields" [(query)]="query" queryDelay="120" shortcut="/"></div>
|
|
296
296
|
```
|
|
297
297
|
|
|
298
|
-
###
|
|
298
|
+
### The state in a URL
|
|
299
299
|
|
|
300
|
-
toFilterBarParams
|
|
300
|
+
toFilterBarParams writes f=and(…) and q=; fromFilterBarParams reads them back, and an f.<column> written by a table without a bar becomes a top-level group. parseFilterGroup is total: a marker from an older version degrades to no filter.
|
|
301
301
|
|
|
302
302
|
Excerpt — not a complete module
|
|
303
303
|
|
|
@@ -307,9 +307,9 @@ history.replaceState(null, '', `?${params}`);
|
|
|
307
307
|
const restored = fromFilterBarParams(location.search);
|
|
308
308
|
```
|
|
309
309
|
|
|
310
|
-
###
|
|
310
|
+
### The count as a live region
|
|
311
311
|
|
|
312
|
-
count
|
|
312
|
+
count and total are the consumer’s numbers, written in the figures of the current locale. The part is aria-live="polite", so a change in the filter is heard as its effect; with loading the count gives way to a spinner and aria-busy.
|
|
313
313
|
|
|
314
314
|
Excerpt — not a complete module
|
|
315
315
|
|
|
@@ -317,9 +317,9 @@ Excerpt — not a complete module
|
|
|
317
317
|
<div slFilterBar count="128" [fields]="fields" [loading]="fetching()" total="3412"></div>
|
|
318
318
|
```
|
|
319
319
|
|
|
320
|
-
###
|
|
320
|
+
### On a phone: a row that scrolls sideways and a sheet
|
|
321
321
|
|
|
322
|
-
|
|
322
|
+
Below 36rem the search sits on top and the bar becomes a row that scrolls sideways: Filters (n) first, every chip — the folded ones too —, then the empty pills; the chip cut at the edge says the row continues. Each chip has three targets: the field, the value with the operator’s words, the X. Tapping a value, a pill or Filters opens the builder as a sheet, with the rule’s card open. Resize the stage.
|
|
323
323
|
|
|
324
324
|
Excerpt — not a complete module
|
|
325
325
|
|
|
@@ -329,9 +329,9 @@ Excerpt — not a complete module
|
|
|
329
329
|
</div>
|
|
330
330
|
```
|
|
331
331
|
|
|
332
|
-
###
|
|
332
|
+
### Stuck under the page header
|
|
333
333
|
|
|
334
|
-
sticky
|
|
334
|
+
sticky reads --slotted-page-sticky-top, sticks the bar there, and adds its own height to the property on the parent element for what comes next — a table with a sticky header sticks below the bar, not below the title.
|
|
335
335
|
|
|
336
336
|
Excerpt — not a complete module
|
|
337
337
|
|
|
@@ -342,9 +342,9 @@ Excerpt — not a complete module
|
|
|
342
342
|
</table>
|
|
343
343
|
```
|
|
344
344
|
|
|
345
|
-
###
|
|
345
|
+
### Disabled, loading, read only
|
|
346
346
|
|
|
347
|
-
disabled
|
|
347
|
+
disabled turns off every control and keeps the width; loading keeps the controls, turns off Apply and puts the spinner in place of the count; readOnly leaves every condition reachable and readable — the segments keep their stop with aria-disabled — and draws no X, add, clear or empty pills.
|
|
348
348
|
|
|
349
349
|
Excerpt — not a complete module
|
|
350
350
|
|
|
@@ -353,9 +353,9 @@ Excerpt — not a complete module
|
|
|
353
353
|
<div slFilterBar [fields]="fields" loading></div>
|
|
354
354
|
```
|
|
355
355
|
|
|
356
|
-
###
|
|
356
|
+
### Content the family did not choose
|
|
357
357
|
|
|
358
|
-
|
|
358
|
+
A value of eleven items writes two and the rest as a number, whole in the title and in the accessible name; a long value truncates at 12rem; an Arabic label next to an ISO date does not reorder the date, because field, operator and value are isolated runs; an unknown field is an invalid, removable chip.
|
|
359
359
|
|
|
360
360
|
Excerpt — not a complete module
|
|
361
361
|
|
|
@@ -368,13 +368,13 @@ Excerpt — not a complete module
|
|
|
368
368
|
></div>
|
|
369
369
|
```
|
|
370
370
|
|
|
371
|
-
###
|
|
371
|
+
### Keyboard
|
|
372
372
|
|
|
373
|
-
Tab:
|
|
373
|
+
Tab: the search, then the bar — two stops. The arrows move through every control of the bar, segment by segment, from row to row and mirrored in RTL; Home and End at the ends. Enter on the operator opens the menu, on the value the popover; Delete on any segment removes the condition with the reason remove and focus goes to the same segment of the next chip; Escape clears the search or closes the surface.
|
|
374
374
|
|
|
375
375
|
Excerpt — not a complete module
|
|
376
376
|
|
|
377
377
|
```html
|
|
378
|
-
<!-- "Amount filter removed" —
|
|
378
|
+
<!-- "Amount filter removed" — and focus moves to the next chip, or to Add filter when none is left. -->
|
|
379
379
|
<div slFilterBar [fields]="fields" (valueChangeRequest)="log($event.reason === 'remove')"></div>
|
|
380
380
|
```
|
package/docs/form.json
CHANGED
|
@@ -60,14 +60,15 @@
|
|
|
60
60
|
"summary-title",
|
|
61
61
|
"summary-list",
|
|
62
62
|
"summary-item",
|
|
63
|
-
"actions"
|
|
63
|
+
"actions",
|
|
64
|
+
"aside"
|
|
64
65
|
]
|
|
65
66
|
}
|
|
66
67
|
},
|
|
67
68
|
"docs": {
|
|
68
69
|
"form": {
|
|
69
70
|
"imports": {
|
|
70
|
-
"source": "import {\n provideFormDefaults,\n provideFormErrorMessages,\n SlForm,\n SlFormActions,\n SlFormSummary,\n} from '@slotted/angular/form';",
|
|
71
|
+
"source": "import {\n provideFormDefaults,\n provideFormErrorMessages,\n SlForm,\n SlFormActions,\n SlFormAside,\n SlFormSummary,\n} from '@slotted/angular/form';",
|
|
71
72
|
"selector": "form[slForm]",
|
|
72
73
|
"exportAs": "slForm"
|
|
73
74
|
},
|
|
@@ -107,6 +108,12 @@
|
|
|
107
108
|
"element": "the element carrying slFormActions",
|
|
108
109
|
"required": false,
|
|
109
110
|
"purpose": "The row a form’s actions stand in, aligned to the reading end. Below 360 container pixels it becomes a column of full-width actions with the primary one first — a reader’s thumb is at the bottom of a phone and their eye at the end of a row. It carries data-ui=\"form\" beside its data-part, so a nested family’s actions — a section’s — keep their own row."
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"part": "aside",
|
|
114
|
+
"element": "the element carrying slFormAside",
|
|
115
|
+
"required": false,
|
|
116
|
+
"purpose": "What the form says about the whole record — a live preview, a summary in words, a help panel. From a form 75rem wide it stands beside the column of fields, --slotted-form-aside-size (20rem) wide at the end, and sticks under --slotted-page-sticky-top while the fields scroll; below that it follows in source order, so write it after the last field. With or without it, the fields, the summary and the actions stand at most --slotted-form-measure (40rem) wide."
|
|
110
117
|
}
|
|
111
118
|
],
|
|
112
119
|
"api": [
|
|
@@ -262,6 +269,7 @@
|
|
|
262
269
|
}
|
|
263
270
|
},
|
|
264
271
|
"tokens": [
|
|
272
|
+
"--slotted-action-gap",
|
|
265
273
|
"--slotted-border-width-thick",
|
|
266
274
|
"--slotted-control-border-width",
|
|
267
275
|
"--slotted-control-font-family",
|
|
@@ -272,7 +280,11 @@
|
|
|
272
280
|
"--slotted-font-family-heading",
|
|
273
281
|
"--slotted-font-family-sans",
|
|
274
282
|
"--slotted-font-weight-semibold",
|
|
283
|
+
"--slotted-form-aside-size",
|
|
275
284
|
"--slotted-form-color",
|
|
285
|
+
"--slotted-form-field-gap",
|
|
286
|
+
"--slotted-form-measure",
|
|
287
|
+
"--slotted-form-section-gap",
|
|
276
288
|
"--slotted-form-summary-background",
|
|
277
289
|
"--slotted-form-summary-border-color",
|
|
278
290
|
"--slotted-form-summary-color",
|
|
@@ -284,10 +296,10 @@
|
|
|
284
296
|
"--slotted-space-1",
|
|
285
297
|
"--slotted-space-2",
|
|
286
298
|
"--slotted-space-3",
|
|
287
|
-
"--slotted-space-4",
|
|
288
299
|
"--slotted-space-5",
|
|
289
300
|
"--slotted-space-6",
|
|
290
301
|
"--slotted-space-8",
|
|
302
|
+
"--slotted-space-9",
|
|
291
303
|
"--slotted-text",
|
|
292
304
|
"--slotted-tone-danger-border",
|
|
293
305
|
"--slotted-tone-danger-surface",
|
|
@@ -297,9 +309,9 @@
|
|
|
297
309
|
{
|
|
298
310
|
"id": "playground",
|
|
299
311
|
"title": "Playground",
|
|
300
|
-
"note": "A form of two fields with the family’s whole lifecycle on it. Submit it empty: the platform’s own messages appear in the summary, focus moves there, and each link jumps to the field it names.",
|
|
312
|
+
"note": "A form of two fields with the family’s whole lifecycle on it. Submit it empty: the platform’s own messages appear in the summary, focus moves there, and each link jumps to the field it names. Two fields written one after the other inside the form stand apart by --slotted-form-field-gap (space-6 by default), and two field groups by --slotted-form-section-gap (space-9 by default); a layout the page draws itself — a Grid, a Stack — keeps its own gap.",
|
|
301
313
|
"language": "html",
|
|
302
|
-
"source": "<form slForm (formSubmit)=\"save($event.values)\">\n <div slField>\n <label slFieldLabel>Nome completo</label>\n <div slTextField><input slTextFieldInput name=\"nome\" required /></div>\n </div>\n <div slFormActions>\n <button slButton type=\"submit\">
|
|
314
|
+
"source": "<form slForm (formSubmit)=\"save($event.values)\">\n <div slField>\n <label slFieldLabel>Nome completo</label>\n <div slTextField><input slTextFieldInput name=\"nome\" required /></div>\n </div>\n <div slFormActions>\n <button slButton type=\"submit\">Save</button>\n </div>\n</form>\n",
|
|
303
315
|
"verdict": "excerpt"
|
|
304
316
|
},
|
|
305
317
|
{
|
|
@@ -323,7 +335,7 @@
|
|
|
323
335
|
"title": "The region a reader is sent to",
|
|
324
336
|
"note": "The four things the sourced error summary states a summary must do: focus moves to it, it carries a heading, it links to each answer in error, and its messages are the same strings the fields show. errorFocus=\"control\" skips it and goes to the first field instead.",
|
|
325
337
|
"language": "html",
|
|
326
|
-
"source": "<form slForm [messages]=\"{ summaryTitle: 'Corrija estes campos' }\">…</form>\n\n<!-- Somewhere else on the page, under a heading of your own. -->\n<form slForm summary=\"none\">\n <h1>
|
|
338
|
+
"source": "<form slForm [messages]=\"{ summaryTitle: 'Corrija estes campos' }\">…</form>\n\n<!-- Somewhere else on the page, under a heading of your own. -->\n<form slForm summary=\"none\">\n <h1>Order</h1>\n <div slFormSummary></div>\n</form>\n",
|
|
327
339
|
"verdict": "excerpt"
|
|
328
340
|
},
|
|
329
341
|
{
|
|
@@ -331,7 +343,7 @@
|
|
|
331
343
|
"title": "Submission, and the second press that does nothing",
|
|
332
344
|
"note": "The submit event hands back a pending() for work that takes time and an errors() for what the server answered. A second submit while one is pending is refused — the defect a double-clicked button produces in a bare form.",
|
|
333
345
|
"language": "ts",
|
|
334
|
-
"source": "class CheckoutPage {\n save(request: { values: Record<string, unknown>; pending: (work: Promise<unknown>) => void }) {\n request.pending(\n firstValueFrom(this.
|
|
346
|
+
"source": "class CheckoutPage {\n save(request: { values: Record<string, unknown>; pending: (work: Promise<unknown>) => void }) {\n request.pending(\n firstValueFrom(this.orders.create(request.values)).then((answer) => answer.errors),\n );\n }\n}\n",
|
|
335
347
|
"verdict": "excerpt"
|
|
336
348
|
},
|
|
337
349
|
{
|
|
@@ -339,7 +351,7 @@
|
|
|
339
351
|
"title": "The row the actions stand in",
|
|
340
352
|
"note": "end is the default, between pushes a destructive action away from the one beside it, and stretch shares the row. Narrow the column below 360 pixels and every alignment becomes the same column of full-width actions, primary first.",
|
|
341
353
|
"language": "html",
|
|
342
|
-
"source": "<div slFormActions>\n <button slButton type=\"button\" tone=\"secondary\" variant=\"ghost\">
|
|
354
|
+
"source": "<div slFormActions>\n <button slButton type=\"button\" tone=\"secondary\" variant=\"ghost\">Cancel</button>\n <button slButton type=\"submit\">Save changes</button>\n</div>\n\n<div slFormActions align=\"between\">…</div>\n",
|
|
343
355
|
"verdict": "excerpt"
|
|
344
356
|
},
|
|
345
357
|
{
|
|
@@ -347,7 +359,7 @@
|
|
|
347
359
|
"title": "Every state the family carries",
|
|
348
360
|
"note": "data-invalid while anything is wrong, data-loading and aria-busy while a submit is in flight, data-disabled when the consumer says so. The form does not dim itself while it saves: a form that hid its own values would hide what the reader is waiting on.",
|
|
349
361
|
"language": "html",
|
|
350
|
-
"source": "<form slForm [loading]=\"saving()\" #checkout=\"slForm\">\n <div slFormActions>\n <button slButton type=\"submit\" [loading]=\"saving()\">
|
|
362
|
+
"source": "<form slForm [loading]=\"saving()\" #checkout=\"slForm\">\n <div slFormActions>\n <button slButton type=\"submit\" [loading]=\"saving()\">Save</button>\n </div>\n</form>\n",
|
|
351
363
|
"verdict": "excerpt"
|
|
352
364
|
},
|
|
353
365
|
{
|
|
@@ -355,7 +367,7 @@
|
|
|
355
367
|
"title": "Eleven errors, and one for a field that is not there",
|
|
356
368
|
"note": "The list scrolls past twelve lines rather than truncating, and an error naming a control the form does not hold keeps its place without a link. Both are cases a real server produces and none of the surveyed implementations answers.",
|
|
357
369
|
"language": "html",
|
|
358
|
-
"source": "<form slForm [errors]=\"{ cupom: '
|
|
370
|
+
"source": "<form slForm [errors]=\"{ cupom: 'The coupon provided has expired', email: 'Invalid address' }\">\n <div slField>\n <label slFieldLabel>Email</label>\n <div slTextField><input slTextFieldInput name=\"email\" /></div>\n </div>\n</form>\n",
|
|
359
371
|
"verdict": "excerpt"
|
|
360
372
|
},
|
|
361
373
|
{
|
|
@@ -363,7 +375,7 @@
|
|
|
363
375
|
"title": "Setting it once, reaching past it, and guarding it",
|
|
364
376
|
"note": "Two injection tokens carry what an application decides once: how its forms behave, and the sentence of a validator the application adds. exportAs reaches the four actions a value cannot express, and guardUnsaved registers a beforeunload nothing surveyed ships.",
|
|
365
377
|
"language": "ts",
|
|
366
|
-
"source": "providers: [\n provideFormDefaults({ validate: 'blur' }),\n provideFormErrorMessages({\n cnpj: () => '
|
|
378
|
+
"source": "providers: [\n provideFormDefaults({ validate: 'blur' }),\n provideFormErrorMessages({\n cnpj: () => 'Invalid EIN.',\n }),\n];\n",
|
|
367
379
|
"verdict": "excerpt"
|
|
368
380
|
},
|
|
369
381
|
{
|
|
@@ -371,7 +383,7 @@
|
|
|
371
383
|
"title": "What a reader hears, and where focus goes",
|
|
372
384
|
"note": "Tab into the form, submit it empty, and follow what happens: the region announces itself, takes focus, and each link moves focus to the control it names without changing the address bar. Every message in the summary is the same string the field shows.",
|
|
373
385
|
"language": "html",
|
|
374
|
-
"source": "<form slForm [errors]=\"{ email: '
|
|
386
|
+
"source": "<form slForm [errors]=\"{ email: 'The address must contain an at sign' }\">\n <div slField [invalid]=\"true\">\n <label slFieldLabel>Email</label>\n <div slTextField><input slTextFieldInput name=\"email\" /></div>\n <p slFieldError>The address must contain an at sign</p>\n </div>\n</form>\n",
|
|
375
387
|
"verdict": "excerpt"
|
|
376
388
|
}
|
|
377
389
|
]
|