frontile 0.18.0-alpha.2 → 0.18.0-alpha.20
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/declarations/-private/control-blur.d.ts +63 -0
- package/declarations/-private/dialog.d.ts +15 -0
- package/declarations/-private/dom.d.ts +3 -0
- package/declarations/-private/get-config.d.ts +2 -0
- package/declarations/-private/intent-icons.d.ts +9 -0
- package/declarations/-private/manager.d.ts +20 -0
- package/declarations/-private/notification-stack.d.ts +76 -0
- package/declarations/-private/notification.d.ts +40 -0
- package/declarations/-private/timer.d.ts +12 -0
- package/declarations/-private/types.d.ts +126 -0
- package/declarations/buttons.d.ts +1 -0
- package/declarations/collections.d.ts +1 -0
- package/declarations/components/buttons/button-group.d.ts +24 -0
- package/declarations/components/buttons/button.d.ts +88 -0
- package/declarations/components/buttons/chip.d.ts +85 -0
- package/declarations/components/buttons/close-button.d.ts +55 -0
- package/declarations/components/buttons/index.d.ts +6 -0
- package/declarations/components/buttons/segmented-control/item.d.ts +50 -0
- package/declarations/components/buttons/segmented-control/segmented-control.d.ts +210 -0
- package/declarations/components/buttons/segmented-control.d.ts +3 -0
- package/declarations/components/buttons/toggle-button.d.ts +28 -0
- package/declarations/components/collections/calendar/calendar.d.ts +585 -0
- package/declarations/components/collections/calendar/day-cell.d.ts +19 -0
- package/declarations/components/collections/calendar/header.d.ts +56 -0
- package/declarations/components/collections/calendar/icons.d.ts +14 -0
- package/declarations/components/collections/calendar/month-grid.d.ts +36 -0
- package/declarations/components/collections/calendar/types.d.ts +94 -0
- package/declarations/components/collections/calendar/utils.d.ts +51 -0
- package/declarations/components/collections/calendar/year-grid.d.ts +32 -0
- package/declarations/components/collections/calendar.d.ts +3 -0
- package/declarations/components/collections/command/command.d.ts +195 -0
- package/declarations/components/collections/command/dialog.d.ts +44 -0
- package/declarations/components/collections/command/footer.d.ts +61 -0
- package/declarations/components/collections/command/index.d.ts +6 -0
- package/declarations/components/collections/command/input.d.ts +131 -0
- package/declarations/components/collections/command/list.d.ts +135 -0
- package/declarations/components/collections/command.d.ts +2 -0
- package/declarations/components/collections/dropdown/dropdown.d.ts +190 -0
- package/declarations/components/collections/dropdown/menu-context.d.ts +64 -0
- package/declarations/components/collections/dropdown/sub.d.ts +195 -0
- package/declarations/components/collections/dropdown.d.ts +2 -0
- package/declarations/components/collections/index.d.ts +5 -0
- package/declarations/components/collections/listbox/group.d.ts +62 -0
- package/declarations/components/collections/listbox/item.d.ts +140 -0
- package/declarations/components/collections/listbox/listbox.d.ts +102 -0
- package/declarations/components/collections/listbox.d.ts +2 -0
- package/declarations/components/collections/simple-table/body.d.ts +481 -0
- package/declarations/components/collections/simple-table/cell.d.ts +479 -0
- package/declarations/components/collections/simple-table/column.d.ts +471 -0
- package/declarations/components/collections/simple-table/footer.d.ts +482 -0
- package/declarations/components/collections/simple-table/header.d.ts +482 -0
- package/declarations/components/collections/simple-table/index.d.ts +498 -0
- package/declarations/components/collections/simple-table/row.d.ts +483 -0
- package/declarations/components/collections/table/cell-default.d.ts +43 -0
- package/declarations/components/collections/table/cell-for.d.ts +38 -0
- package/declarations/components/collections/table/cell-rendering-context.d.ts +24 -0
- package/declarations/components/collections/table/checkbox.d.ts +50 -0
- package/declarations/components/collections/table/column-visibility.d.ts +468 -0
- package/declarations/components/collections/table/icons.d.ts +11 -0
- package/declarations/components/collections/table/index.d.ts +4 -0
- package/declarations/components/collections/table/sort-button.d.ts +465 -0
- package/declarations/components/collections/table/table.d.ts +627 -0
- package/declarations/components/collections/table/types.d.ts +58 -0
- package/declarations/components/collections/table/utils.d.ts +6 -0
- package/declarations/components/collections/table.d.ts +2 -0
- package/declarations/components/disclosure/accordion/accordion.d.ts +247 -0
- package/declarations/components/disclosure/accordion/item.d.ts +96 -0
- package/declarations/components/disclosure/accordion.d.ts +3 -0
- package/declarations/components/disclosure/icons.d.ts +9 -0
- package/declarations/components/disclosure/index.d.ts +1 -0
- package/declarations/components/forms/autocomplete.d.ts +446 -0
- package/declarations/components/forms/checkbox-group.d.ts +62 -0
- package/declarations/components/forms/checkbox.d.ts +62 -0
- package/declarations/components/forms/field-types.d.ts +14 -0
- package/declarations/components/forms/field.d.ts +87 -0
- package/declarations/components/forms/form-control.d.ts +101 -0
- package/declarations/components/forms/form-description.d.ts +30 -0
- package/declarations/components/forms/form-feedback.d.ts +64 -0
- package/declarations/components/forms/form.d.ts +255 -0
- package/declarations/components/forms/icons.d.ts +7 -0
- package/declarations/components/forms/index.d.ts +20 -0
- package/declarations/components/forms/input-otp.d.ts +321 -0
- package/declarations/components/forms/input.d.ts +188 -0
- package/declarations/components/forms/label.d.ts +53 -0
- package/declarations/components/forms/native-select.d.ts +251 -0
- package/declarations/components/forms/radio-group.d.ts +64 -0
- package/declarations/components/forms/radio.d.ts +68 -0
- package/declarations/components/forms/select/end-content.d.ts +31 -0
- package/declarations/components/forms/select/native-mirror.d.ts +44 -0
- package/declarations/components/forms/select/select.d.ts +454 -0
- package/declarations/components/forms/select/selected-items.d.ts +80 -0
- package/declarations/components/forms/select/trigger.d.ts +81 -0
- package/declarations/components/forms/select/types.d.ts +431 -0
- package/declarations/components/forms/select.d.ts +2 -0
- package/declarations/components/forms/switch.d.ts +152 -0
- package/declarations/components/forms/textarea.d.ts +104 -0
- package/declarations/components/navigation/external-link.d.ts +94 -0
- package/declarations/components/navigation/index.d.ts +4 -0
- package/declarations/components/navigation/pagination/icons.d.ts +13 -0
- package/declarations/components/navigation/pagination/pagination.d.ts +279 -0
- package/declarations/components/navigation/pagination/range.d.ts +34 -0
- package/declarations/components/navigation/pagination.d.ts +3 -0
- package/declarations/components/navigation/tab-nav/item.d.ts +79 -0
- package/declarations/components/navigation/tab-nav/tab-nav.d.ts +165 -0
- package/declarations/components/navigation/tab-nav.d.ts +3 -0
- package/declarations/components/navigation/tabs/panel.d.ts +28 -0
- package/declarations/components/navigation/tabs/tab.d.ts +46 -0
- package/declarations/components/navigation/tabs/tabs.d.ts +227 -0
- package/declarations/components/navigation/tabs.d.ts +4 -0
- package/declarations/components/notifications/icons.d.ts +9 -0
- package/declarations/components/notifications/index.d.ts +12 -0
- package/declarations/components/notifications/notification-card.d.ts +100 -0
- package/declarations/components/notifications/notifications-container.d.ts +148 -0
- package/declarations/components/overlays/backdrop.d.ts +39 -0
- package/declarations/components/overlays/drawer/body.d.ts +17 -0
- package/declarations/components/overlays/drawer/drag-handle.d.ts +26 -0
- package/declarations/components/overlays/drawer/footer.d.ts +17 -0
- package/declarations/components/overlays/drawer/header.d.ts +140 -0
- package/declarations/components/overlays/drawer/selectors.d.ts +22 -0
- package/declarations/components/overlays/drawer.d.ts +293 -0
- package/declarations/components/overlays/index.d.ts +14 -0
- package/declarations/components/overlays/modal/body.d.ts +17 -0
- package/declarations/components/overlays/modal/footer.d.ts +17 -0
- package/declarations/components/overlays/modal/header.d.ts +35 -0
- package/declarations/components/overlays/modal.d.ts +146 -0
- package/declarations/components/overlays/mount-animation.d.ts +81 -0
- package/declarations/components/overlays/overlay.d.ts +218 -0
- package/declarations/components/overlays/popover.d.ts +452 -0
- package/declarations/components/overlays/portal-target.d.ts +19 -0
- package/declarations/components/overlays/portal.d.ts +38 -0
- package/declarations/components/overlays/tooltip.d.ts +401 -0
- package/declarations/components/status/alert.d.ts +134 -0
- package/declarations/components/status/index.d.ts +2 -0
- package/declarations/components/status/progress-bar.d.ts +115 -0
- package/declarations/components/utilities/avatar.d.ts +90 -0
- package/declarations/components/utilities/collapsible.d.ts +64 -0
- package/declarations/components/utilities/divider.d.ts +25 -0
- package/declarations/components/utilities/index.d.ts +15 -0
- package/declarations/components/utilities/kbd.d.ts +92 -0
- package/declarations/components/utilities/skeleton.d.ts +31 -0
- package/declarations/components/utilities/spinner.d.ts +26 -0
- package/declarations/components/utilities/visually-hidden.d.ts +9 -0
- package/declarations/disclosure.d.ts +1 -0
- package/declarations/forms.d.ts +1 -0
- package/declarations/index.d.ts +9 -7
- package/declarations/modifiers/drag-to-dismiss.d.ts +22 -0
- package/declarations/modifiers/press.d.ts +55 -0
- package/declarations/navigation.d.ts +1 -0
- package/declarations/notifications.d.ts +1 -0
- package/declarations/overlays.d.ts +1 -0
- package/declarations/services/notifications.d.ts +20 -0
- package/declarations/status.d.ts +1 -0
- package/declarations/template-registry.d.ts +55 -2
- package/declarations/test-support.d.ts +3 -0
- package/declarations/utilities.d.ts +1 -0
- package/declarations/utils/deferred-work.d.ts +24 -0
- package/declarations/utils/filter.d.ts +87 -0
- package/declarations/utils/forms-utils-index.d.ts +3 -0
- package/declarations/utils/keys.d.ts +52 -0
- package/declarations/utils/listManager.d.ts +158 -0
- package/declarations/utils/nested-data.d.ts +44 -0
- package/declarations/utils/prefers-reduced-motion.d.ts +3 -0
- package/declarations/utils/ref.d.ts +14 -0
- package/declarations/utils/roving-focus.d.ts +66 -0
- package/declarations/utils/safe-area.d.ts +52 -0
- package/declarations/utils/safe-styles.d.ts +2 -0
- package/declarations/utils/selection-indicator.d.ts +65 -0
- package/declarations/utils/standard-validator.d.ts +176 -0
- package/declarations/utils/toggle.d.ts +9 -0
- package/dist/_app_/services/notifications.js +1 -0
- package/dist/buttons.js +8 -0
- package/dist/buttons.js.map +1 -0
- package/dist/collections.js +13 -0
- package/dist/collections.js.map +1 -0
- package/dist/components/buttons/button-group.js +31 -0
- package/dist/components/buttons/button-group.js.map +1 -0
- package/dist/components/buttons/button.js +120 -0
- package/dist/components/buttons/button.js.map +1 -0
- package/dist/components/buttons/chip.js +44 -0
- package/dist/components/buttons/chip.js.map +1 -0
- package/dist/components/buttons/close-button.js +84 -0
- package/dist/components/buttons/close-button.js.map +1 -0
- package/dist/components/buttons/index.js +8 -0
- package/dist/components/buttons/index.js.map +1 -0
- package/dist/components/buttons/segmented-control/item.js +55 -0
- package/dist/components/buttons/segmented-control/item.js.map +1 -0
- package/dist/components/buttons/segmented-control/segmented-control.js +175 -0
- package/dist/components/buttons/segmented-control/segmented-control.js.map +1 -0
- package/dist/components/buttons/segmented-control.js +3 -0
- package/dist/components/buttons/segmented-control.js.map +1 -0
- package/dist/components/buttons/toggle-button.js +40 -0
- package/dist/components/buttons/toggle-button.js.map +1 -0
- package/dist/components/collections/calendar/calendar.js +808 -0
- package/dist/components/collections/calendar/calendar.js.map +1 -0
- package/dist/components/collections/calendar/day-cell.js +16 -0
- package/dist/components/collections/calendar/day-cell.js.map +1 -0
- package/dist/components/collections/calendar/header.js +48 -0
- package/dist/components/collections/calendar/header.js.map +1 -0
- package/dist/components/collections/calendar/icons.js +23 -0
- package/dist/components/collections/calendar/icons.js.map +1 -0
- package/dist/components/collections/calendar/month-grid.js +14 -0
- package/dist/components/collections/calendar/month-grid.js.map +1 -0
- package/dist/components/collections/calendar/types.js +2 -0
- package/dist/components/collections/calendar/types.js.map +1 -0
- package/dist/components/collections/calendar/utils.js +199 -0
- package/dist/components/collections/calendar/utils.js.map +1 -0
- package/dist/components/collections/calendar/year-grid.js +117 -0
- package/dist/components/collections/calendar/year-grid.js.map +1 -0
- package/dist/components/collections/calendar.js +2 -0
- package/dist/components/collections/calendar.js.map +1 -0
- package/dist/components/collections/command/command.js +263 -0
- package/dist/components/collections/command/command.js.map +1 -0
- package/dist/components/collections/command/dialog.js +100 -0
- package/dist/components/collections/command/dialog.js.map +1 -0
- package/dist/components/collections/command/footer.js +60 -0
- package/dist/components/collections/command/footer.js.map +1 -0
- package/dist/components/collections/command/index.js +6 -0
- package/dist/components/collections/command/index.js.map +1 -0
- package/dist/components/collections/command/input.js +45 -0
- package/dist/components/collections/command/input.js.map +1 -0
- package/dist/components/collections/command/list.js +70 -0
- package/dist/components/collections/command/list.js.map +1 -0
- package/dist/components/collections/command.js +6 -0
- package/dist/components/collections/command.js.map +1 -0
- package/dist/components/collections/dropdown/dropdown.js +206 -0
- package/dist/components/collections/dropdown/dropdown.js.map +1 -0
- package/dist/components/collections/dropdown/menu-context.js +62 -0
- package/dist/components/collections/dropdown/menu-context.js.map +1 -0
- package/dist/components/collections/dropdown/sub.js +256 -0
- package/dist/components/collections/dropdown/sub.js.map +1 -0
- package/dist/components/collections/dropdown.js +2 -0
- package/dist/components/collections/dropdown.js.map +1 -0
- package/dist/components/collections/index.js +13 -0
- package/dist/components/collections/index.js.map +1 -0
- package/dist/components/collections/listbox/group.js +60 -0
- package/dist/components/collections/listbox/group.js.map +1 -0
- package/dist/components/collections/listbox/item.js +197 -0
- package/dist/components/collections/listbox/item.js.map +1 -0
- package/dist/components/collections/listbox/listbox.js +187 -0
- package/dist/components/collections/listbox/listbox.js.map +1 -0
- package/dist/components/collections/listbox.js +4 -0
- package/dist/components/collections/listbox.js.map +1 -0
- package/dist/components/collections/simple-table/body.js +32 -0
- package/dist/components/collections/simple-table/body.js.map +1 -0
- package/dist/components/collections/simple-table/cell.js +27 -0
- package/dist/components/collections/simple-table/cell.js.map +1 -0
- package/dist/components/collections/simple-table/column.js +26 -0
- package/dist/components/collections/simple-table/column.js.map +1 -0
- package/dist/components/collections/simple-table/footer.js +44 -0
- package/dist/components/collections/simple-table/footer.js.map +1 -0
- package/dist/components/collections/simple-table/header.js +44 -0
- package/dist/components/collections/simple-table/header.js.map +1 -0
- package/dist/components/collections/simple-table/index.js +60 -0
- package/dist/components/collections/simple-table/index.js.map +1 -0
- package/dist/components/collections/simple-table/row.js +33 -0
- package/dist/components/collections/simple-table/row.js.map +1 -0
- package/dist/components/collections/table/cell-default.js +39 -0
- package/dist/components/collections/table/cell-default.js.map +1 -0
- package/dist/components/collections/table/cell-for.js +34 -0
- package/dist/components/collections/table/cell-for.js.map +1 -0
- package/dist/components/collections/table/cell-rendering-context.js +39 -0
- package/dist/components/collections/table/cell-rendering-context.js.map +1 -0
- package/dist/components/collections/table/checkbox.js +53 -0
- package/dist/components/collections/table/checkbox.js.map +1 -0
- package/dist/components/collections/table/column-visibility.js +58 -0
- package/dist/components/collections/table/column-visibility.js.map +1 -0
- package/dist/components/collections/table/icons.js +19 -0
- package/dist/components/collections/table/icons.js.map +1 -0
- package/dist/components/collections/table/index.js +3 -0
- package/dist/components/collections/table/index.js.map +1 -0
- package/dist/components/collections/table/sort-button.js +32 -0
- package/dist/components/collections/table/sort-button.js.map +1 -0
- package/dist/components/collections/table/table.js +488 -0
- package/dist/components/collections/table/table.js.map +1 -0
- package/dist/components/collections/table/types.js +2 -0
- package/dist/components/collections/table/types.js.map +1 -0
- package/dist/components/collections/table/utils.js +19 -0
- package/dist/components/collections/table/utils.js.map +1 -0
- package/dist/components/collections/table.js +3 -0
- package/dist/components/collections/table.js.map +1 -0
- package/dist/components/disclosure/accordion/accordion.js +225 -0
- package/dist/components/disclosure/accordion/accordion.js.map +1 -0
- package/dist/components/disclosure/accordion/item.js +86 -0
- package/dist/components/disclosure/accordion/item.js.map +1 -0
- package/dist/components/disclosure/accordion.js +3 -0
- package/dist/components/disclosure/accordion.js.map +1 -0
- package/dist/components/disclosure/icons.js +13 -0
- package/dist/components/disclosure/icons.js.map +1 -0
- package/dist/components/disclosure/index.js +3 -0
- package/dist/components/disclosure/index.js.map +1 -0
- package/dist/components/forms/autocomplete.js +351 -0
- package/dist/components/forms/autocomplete.js.map +1 -0
- package/dist/components/forms/checkbox-group.js +29 -0
- package/dist/components/forms/checkbox-group.js.map +1 -0
- package/dist/components/forms/checkbox.js +50 -0
- package/dist/components/forms/checkbox.js.map +1 -0
- package/dist/components/forms/field-types.js +2 -0
- package/dist/components/forms/field-types.js.map +1 -0
- package/dist/components/forms/field.js +105 -0
- package/dist/components/forms/field.js.map +1 -0
- package/dist/components/forms/form-control.js +70 -0
- package/dist/components/forms/form-control.js.map +1 -0
- package/dist/components/forms/form-description.js +24 -0
- package/dist/components/forms/form-description.js.map +1 -0
- package/dist/components/forms/form-feedback.js +53 -0
- package/dist/components/forms/form-feedback.js.map +1 -0
- package/dist/components/forms/form.js +397 -0
- package/dist/components/forms/form.js.map +1 -0
- package/dist/components/forms/icons.js +13 -0
- package/dist/components/forms/icons.js.map +1 -0
- package/dist/components/forms/index.js +20 -0
- package/dist/components/forms/index.js.map +1 -0
- package/dist/components/forms/input-otp.js +407 -0
- package/dist/components/forms/input-otp.js.map +1 -0
- package/dist/components/forms/input.js +137 -0
- package/dist/components/forms/input.js.map +1 -0
- package/dist/components/forms/label.js +23 -0
- package/dist/components/forms/label.js.map +1 -0
- package/dist/components/forms/native-select.js +134 -0
- package/dist/components/forms/native-select.js.map +1 -0
- package/dist/components/forms/radio-group.js +29 -0
- package/dist/components/forms/radio-group.js.map +1 -0
- package/dist/components/forms/radio.js +49 -0
- package/dist/components/forms/radio.js.map +1 -0
- package/dist/components/forms/select/end-content.js +24 -0
- package/dist/components/forms/select/end-content.js.map +1 -0
- package/dist/components/forms/select/native-mirror.js +29 -0
- package/dist/components/forms/select/native-mirror.js.map +1 -0
- package/dist/components/forms/select/select.js +629 -0
- package/dist/components/forms/select/select.js.map +1 -0
- package/dist/components/forms/select/selected-items.js +63 -0
- package/dist/components/forms/select/selected-items.js.map +1 -0
- package/dist/components/forms/select/trigger.js +30 -0
- package/dist/components/forms/select/trigger.js.map +1 -0
- package/dist/components/forms/select/types.js +2 -0
- package/dist/components/forms/select/types.js.map +1 -0
- package/dist/components/forms/select.js +2 -0
- package/dist/components/forms/select.js.map +1 -0
- package/dist/components/forms/switch.js +63 -0
- package/dist/components/forms/switch.js.map +1 -0
- package/dist/components/forms/textarea.js +53 -0
- package/dist/components/forms/textarea.js.map +1 -0
- package/dist/components/navigation/external-link.js +107 -0
- package/dist/components/navigation/external-link.js.map +1 -0
- package/dist/components/navigation/index.js +9 -0
- package/dist/components/navigation/index.js.map +1 -0
- package/dist/components/navigation/pagination/icons.js +23 -0
- package/dist/components/navigation/pagination/icons.js.map +1 -0
- package/dist/components/navigation/pagination/pagination.js +216 -0
- package/dist/components/navigation/pagination/pagination.js.map +1 -0
- package/dist/components/navigation/pagination/range.js +58 -0
- package/dist/components/navigation/pagination/range.js.map +1 -0
- package/dist/components/navigation/pagination.js +3 -0
- package/dist/components/navigation/pagination.js.map +1 -0
- package/dist/components/navigation/tab-nav/item.js +90 -0
- package/dist/components/navigation/tab-nav/item.js.map +1 -0
- package/dist/components/navigation/tab-nav/tab-nav.js +79 -0
- package/dist/components/navigation/tab-nav/tab-nav.js.map +1 -0
- package/dist/components/navigation/tab-nav.js +3 -0
- package/dist/components/navigation/tab-nav.js.map +1 -0
- package/dist/components/navigation/tabs/panel.js +23 -0
- package/dist/components/navigation/tabs/panel.js.map +1 -0
- package/dist/components/navigation/tabs/tab.js +45 -0
- package/dist/components/navigation/tabs/tab.js.map +1 -0
- package/dist/components/navigation/tabs/tabs.js +156 -0
- package/dist/components/navigation/tabs/tabs.js.map +1 -0
- package/dist/components/navigation/tabs.js +4 -0
- package/dist/components/navigation/tabs.js.map +1 -0
- package/dist/components/notifications/index.js +5 -0
- package/dist/components/notifications/index.js.map +1 -0
- package/dist/components/notifications/notification-card.js +16 -0
- package/dist/components/notifications/notification-card.js.map +1 -0
- package/dist/components/notifications/notifications-container.js +269 -0
- package/dist/components/notifications/notifications-container.js.map +1 -0
- package/dist/components/overlays/backdrop.js +44 -0
- package/dist/components/overlays/backdrop.js.map +1 -0
- package/dist/components/overlays/drawer/body.js +18 -0
- package/dist/components/overlays/drawer/body.js.map +1 -0
- package/dist/components/overlays/drawer/drag-handle.js +18 -0
- package/dist/components/overlays/drawer/drag-handle.js.map +1 -0
- package/dist/components/overlays/drawer/footer.js +18 -0
- package/dist/components/overlays/drawer/footer.js.map +1 -0
- package/dist/components/overlays/drawer/header.js +61 -0
- package/dist/components/overlays/drawer/header.js.map +1 -0
- package/dist/components/overlays/drawer/selectors.js +29 -0
- package/dist/components/overlays/drawer/selectors.js.map +1 -0
- package/dist/components/overlays/drawer.js +175 -0
- package/dist/components/overlays/drawer.js.map +1 -0
- package/dist/components/overlays/index.js +15 -0
- package/dist/components/overlays/index.js.map +1 -0
- package/dist/components/overlays/modal/body.js +18 -0
- package/dist/components/overlays/modal/body.js.map +1 -0
- package/dist/components/overlays/modal/footer.js +18 -0
- package/dist/components/overlays/modal/footer.js.map +1 -0
- package/dist/components/overlays/modal/header.js +25 -0
- package/dist/components/overlays/modal/header.js.map +1 -0
- package/dist/components/overlays/modal.js +129 -0
- package/dist/components/overlays/modal.js.map +1 -0
- package/dist/components/overlays/mount-animation.js +146 -0
- package/dist/components/overlays/mount-animation.js.map +1 -0
- package/dist/components/overlays/overlay.js +321 -0
- package/dist/components/overlays/overlay.js.map +1 -0
- package/dist/components/overlays/popover.js +647 -0
- package/dist/components/overlays/popover.js.map +1 -0
- package/dist/components/overlays/portal-target.js +10 -0
- package/dist/components/overlays/portal-target.js.map +1 -0
- package/dist/components/overlays/portal.js +111 -0
- package/dist/components/overlays/portal.js.map +1 -0
- package/dist/components/overlays/tooltip.js +377 -0
- package/dist/components/overlays/tooltip.js.map +1 -0
- package/dist/components/status/alert.js +146 -0
- package/dist/components/status/alert.js.map +1 -0
- package/dist/components/status/index.js +3 -0
- package/dist/components/status/index.js.map +1 -0
- package/dist/components/status/progress-bar.js +126 -0
- package/dist/components/status/progress-bar.js.map +1 -0
- package/dist/components/utilities/avatar.js +48 -0
- package/dist/components/utilities/avatar.js.map +1 -0
- package/dist/components/utilities/collapsible.js +210 -0
- package/dist/components/utilities/collapsible.js.map +1 -0
- package/dist/components/utilities/divider.js +37 -0
- package/dist/components/utilities/divider.js.map +1 -0
- package/dist/components/utilities/index.js +16 -0
- package/dist/components/utilities/index.js.map +1 -0
- package/dist/components/utilities/kbd.js +88 -0
- package/dist/components/utilities/kbd.js.map +1 -0
- package/dist/components/utilities/skeleton.js +14 -0
- package/dist/components/utilities/skeleton.js.map +1 -0
- package/dist/components/utilities/spinner.js +14 -0
- package/dist/components/utilities/spinner.js.map +1 -0
- package/dist/components/utilities/visually-hidden.js +10 -0
- package/dist/components/utilities/visually-hidden.js.map +1 -0
- package/dist/control-blur-C8OnSQR5.js +124 -0
- package/dist/control-blur-C8OnSQR5.js.map +1 -0
- package/dist/dialog-CreV7aPQ.js +27 -0
- package/dist/dialog-CreV7aPQ.js.map +1 -0
- package/dist/disclosure.js +3 -0
- package/dist/disclosure.js.map +1 -0
- package/dist/dom-cKWVvtkd.js +116 -0
- package/dist/dom-cKWVvtkd.js.map +1 -0
- package/dist/forms.js +20 -0
- package/dist/forms.js.map +1 -0
- package/dist/index.js +83 -7
- package/dist/index.js.map +1 -1
- package/dist/intent-icons-DpEViO8C.js +19 -0
- package/dist/intent-icons-DpEViO8C.js.map +1 -0
- package/dist/manager-CDIZzrQ9.js +388 -0
- package/dist/manager-CDIZzrQ9.js.map +1 -0
- package/dist/modifiers/drag-to-dismiss.js +392 -0
- package/dist/modifiers/drag-to-dismiss.js.map +1 -0
- package/dist/modifiers/press.js +321 -0
- package/dist/modifiers/press.js.map +1 -0
- package/dist/navigation.js +9 -0
- package/dist/navigation.js.map +1 -0
- package/dist/notification-card-D5fd-Sxa.js +330 -0
- package/dist/notification-card-D5fd-Sxa.js.map +1 -0
- package/dist/notifications.js +5 -0
- package/dist/notifications.js.map +1 -0
- package/dist/overlays.js +15 -0
- package/dist/overlays.js.map +1 -0
- package/dist/runtime--fcdnjmJ-BOdRhmsS.js +67 -0
- package/dist/runtime--fcdnjmJ-BOdRhmsS.js.map +1 -0
- package/dist/services/notifications.js +38 -0
- package/dist/services/notifications.js.map +1 -0
- package/dist/status.js +3 -0
- package/dist/status.js.map +1 -0
- package/dist/test-support.js +1316 -0
- package/dist/test-support.js.map +1 -0
- package/dist/utilities.js +16 -0
- package/dist/utilities.js.map +1 -0
- package/dist/utils/deferred-work.js +66 -0
- package/dist/utils/deferred-work.js.map +1 -0
- package/dist/utils/filter.js +166 -0
- package/dist/utils/filter.js.map +1 -0
- package/dist/utils/forms-utils-index.js +24 -0
- package/dist/utils/forms-utils-index.js.map +1 -0
- package/dist/utils/keys.js +259 -0
- package/dist/utils/keys.js.map +1 -0
- package/dist/utils/listManager.js +759 -0
- package/dist/utils/listManager.js.map +1 -0
- package/dist/utils/nested-data.js +196 -0
- package/dist/utils/nested-data.js.map +1 -0
- package/dist/utils/prefers-reduced-motion.js +21 -0
- package/dist/utils/prefers-reduced-motion.js.map +1 -0
- package/dist/utils/ref.js +32 -0
- package/dist/utils/ref.js.map +1 -0
- package/dist/utils/roving-focus.js +206 -0
- package/dist/utils/roving-focus.js.map +1 -0
- package/dist/utils/safe-area.js +133 -0
- package/dist/utils/safe-area.js.map +1 -0
- package/dist/utils/safe-styles.js +15 -0
- package/dist/utils/safe-styles.js.map +1 -0
- package/dist/utils/selection-indicator.js +189 -0
- package/dist/utils/selection-indicator.js.map +1 -0
- package/dist/utils/standard-validator.js +232 -0
- package/dist/utils/standard-validator.js.map +1 -0
- package/dist/utils/toggle.js +46 -0
- package/dist/utils/toggle.js.map +1 -0
- package/package.json +77 -21
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell-default.js","sources":["../../../../src/components/collections/table/cell-default.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport type { CellRenderingContext } from './cell-rendering-context';\nimport type { Column, Row } from './types';\n\ninterface CellDefaultSignature<T> {\n Args: {\n /**\n * The Column object for the current cell\n */\n column: Column<T>;\n\n /**\n * Registry to check for claimed keys\n */\n registry: CellRenderingContext;\n\n /**\n * Optional array of keys to exclude from default rendering\n * (alternative to using the registry system)\n */\n except?: string[];\n };\n\n Blocks: {\n default: [];\n };\n}\n\n/**\n * Default/fallback rendering component for table cells. Only renders its content\n * when no CellForComponent has claimed the current column key.\n *\n * Usage:\n * ```hbs\n * <c.Default>\n * Default: {{c.value}}\n * </c.Default>\n *\n * <!-- Or with explicit exclusions -->\n * <c.Default @except={{array \"status\" \"actions\"}}>\n * {{c.value}}\n * </c.Default>\n * ```\n */\nexport default class CellDefaultComponent<T> extends Component<\n CellDefaultSignature<T>\n> {\n get shouldRender(): boolean {\n const currentKey = this.args.column.key;\n\n // Check explicit exclusions first\n if (this.args.except?.includes(currentKey)) {\n return false;\n }\n\n // Check if any CellForComponent has claimed this key\n return !this.args.registry.isKeyClaimed(currentKey);\n }\n\n <template>\n {{#if this.shouldRender}}\n {{yield}}\n {{/if}}\n </template>\n}\n"],"names":["CellDefaultComponent","Component","shouldRender","currentKey","args","column","key","except","includes","registry","isKeyClaimed","setComponentTemplate","precompileTemplate","strictMode"],"mappings":";;;;AA4BA;;;;;;;;;;;;;;;AAeC;AACc,MAAMA,oBAAA,SAAgCC,UAC9B;EAErB,IAAIC,YAAAA,GAAwB;IAC1B,MAAMC,aAAa,IAAI,CAACC,IAAI,CAACC,MAAM,CAACC,GAAG;AAEvC;IACA,IAAI,IAAI,CAACF,IAAI,CAACG,MAAM,EAAEC,SAASL,UAAA,CAAA,EAAa;AAC1C,MAAA,OAAO,KAAA;AACT,IAAA;AAEA;IACA,OAAO,CAAC,IAAI,CAACC,IAAI,CAACK,QAAQ,CAACC,YAAY,CAACP,UAAA,CAAA;AAC1C,EAAA;AAEA,EAAA;IAAAQ,oBAAA,CAAAC,kBAAA,CAAA,iDAAA,EAIA;MAAAC,UAAA,EAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
3
|
+
import { setComponentTemplate } from '@ember/component';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Conditional rendering component for table cells. Only renders its content
|
|
7
|
+
* when the current column key matches the specified @key argument.
|
|
8
|
+
*
|
|
9
|
+
* Usage:
|
|
10
|
+
* ```hbs
|
|
11
|
+
* <c.For @key="status">
|
|
12
|
+
* <StatusBadge @status={{c.value}} />
|
|
13
|
+
* </c.For>
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
class CellForComponent extends Component {
|
|
17
|
+
get shouldRender() {
|
|
18
|
+
const matches = this.args.column.key === this.args.key;
|
|
19
|
+
// If this component matches the current column, claim the key
|
|
20
|
+
// so that CellDefaultComponent knows not to render
|
|
21
|
+
if (matches) {
|
|
22
|
+
this.args.registry.claimKey(this.args.key);
|
|
23
|
+
}
|
|
24
|
+
return matches;
|
|
25
|
+
}
|
|
26
|
+
static {
|
|
27
|
+
setComponentTemplate(precompileTemplate("{{#if this.shouldRender}}\n {{yield}}\n{{/if}}", {
|
|
28
|
+
strictMode: true
|
|
29
|
+
}), this);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { CellForComponent as default };
|
|
34
|
+
//# sourceMappingURL=cell-for.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell-for.js","sources":["../../../../src/components/collections/table/cell-for.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport type { CellRenderingContext } from './cell-rendering-context';\nimport type { Column, Row, ColumnConfig, ColumnKeys } from './types';\n\ninterface CellForSignature<\n T,\n TColumns extends ColumnConfig<T>[] = ColumnConfig<T>[]\n> {\n Args: {\n /**\n * The column key to match against the current column.\n * When used with defineColumns(), this is type-checked against available column keys.\n */\n key: ColumnKeys<TColumns>;\n\n /**\n * The column object for the current cell\n */\n column: Column<T>;\n\n /**\n * Registry to track claimed keys\n */\n registry: CellRenderingContext;\n };\n\n Blocks: {\n default: [];\n };\n}\n\n/**\n * Conditional rendering component for table cells. Only renders its content\n * when the current column key matches the specified @key argument.\n *\n * Usage:\n * ```hbs\n * <c.For @key=\"status\">\n * <StatusBadge @status={{c.value}} />\n * </c.For>\n * ```\n */\nexport default class CellForComponent<\n T,\n TColumns extends ColumnConfig<T>[] = ColumnConfig<T>[]\n> extends Component<CellForSignature<T, TColumns>> {\n get shouldRender(): boolean {\n const matches = this.args.column.key === this.args.key;\n\n // If this component matches the current column, claim the key\n // so that CellDefaultComponent knows not to render\n if (matches) {\n this.args.registry.claimKey(this.args.key);\n }\n\n return matches;\n }\n\n <template>\n {{#if this.shouldRender}}\n {{yield}}\n {{/if}}\n </template>\n}\n"],"names":["CellForComponent","Component","shouldRender","matches","args","column","key","registry","claimKey","setComponentTemplate","precompileTemplate","strictMode"],"mappings":";;;;AA+BA;;;;;;;;;;;AAWe,MAAMA,gBAAA,SAGXC,SAAA,CAA8B;EACtC,IAAIC,YAAAA,GAAwB;AAC1B,IAAA,MAAMC,OAAA,GAAU,IAAI,CAACC,IAAI,CAACC,MAAM,CAACC,GAAG,KAAK,IAAI,CAACF,IAAI,CAACE,GAAG;AAEtD;AACA;AACA,IAAA,IAAIH,OAAA,EAAS;AACX,MAAA,IAAI,CAACC,IAAI,CAACG,QAAQ,CAACC,QAAQ,CAAC,IAAI,CAACJ,IAAI,CAACE,GAAG,CAAA;AAC3C,IAAA;AAEA,IAAA,OAAOH,OAAA;AACT,EAAA;AAEA,EAAA;IAAAM,oBAAA,CAAAC,kBAAA,CAAA,iDAAA,EAIA;MAAAC,UAAA,EAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context class to track which column keys have been claimed by CellForComponent
|
|
3
|
+
* instances during cell rendering. This enables CellDefaultComponent to only
|
|
4
|
+
* render when no specific column renderer has claimed the current column key.
|
|
5
|
+
*/
|
|
6
|
+
class CellRenderingContext {
|
|
7
|
+
claimedKeys = new Set();
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Mark a column key as claimed by a CellForComponent
|
|
11
|
+
*/
|
|
12
|
+
claimKey(key) {
|
|
13
|
+
this.claimedKeys.add(key);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Check if a column key has been claimed by any CellForComponent
|
|
18
|
+
*/
|
|
19
|
+
isKeyClaimed(key) {
|
|
20
|
+
return this.claimedKeys.has(key);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Reset the claimed keys (called between cell renders)
|
|
25
|
+
*/
|
|
26
|
+
reset() {
|
|
27
|
+
this.claimedKeys.clear();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Get all claimed keys (useful for debugging)
|
|
32
|
+
*/
|
|
33
|
+
get claimedKeysList() {
|
|
34
|
+
return Array.from(this.claimedKeys);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { CellRenderingContext };
|
|
39
|
+
//# sourceMappingURL=cell-rendering-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell-rendering-context.js","sources":["../../../../src/components/collections/table/cell-rendering-context.ts"],"sourcesContent":["/**\n * Context class to track which column keys have been claimed by CellForComponent\n * instances during cell rendering. This enables CellDefaultComponent to only\n * render when no specific column renderer has claimed the current column key.\n */\nexport class CellRenderingContext {\n private claimedKeys = new Set<string>();\n\n /**\n * Mark a column key as claimed by a CellForComponent\n */\n claimKey(key: string): void {\n this.claimedKeys.add(key);\n }\n\n /**\n * Check if a column key has been claimed by any CellForComponent\n */\n isKeyClaimed(key: string): boolean {\n return this.claimedKeys.has(key);\n }\n\n /**\n * Reset the claimed keys (called between cell renders)\n */\n reset(): void {\n this.claimedKeys.clear();\n }\n\n /**\n * Get all claimed keys (useful for debugging)\n */\n get claimedKeysList(): string[] {\n return Array.from(this.claimedKeys);\n }\n}\n"],"names":["CellRenderingContext","claimedKeys","Set","claimKey","key","add","isKeyClaimed","has","reset","clear","claimedKeysList","Array","from"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACO,MAAMA,oBAAoB,CAAC;AACxBC,EAAAA,WAAW,GAAG,IAAIC,GAAG,EAAU;;AAEvC;AACF;AACA;EACEC,QAAQA,CAACC,GAAW,EAAQ;AAC1B,IAAA,IAAI,CAACH,WAAW,CAACI,GAAG,CAACD,GAAG,CAAC;AAC3B,EAAA;;AAEA;AACF;AACA;EACEE,YAAYA,CAACF,GAAW,EAAW;AACjC,IAAA,OAAO,IAAI,CAACH,WAAW,CAACM,GAAG,CAACH,GAAG,CAAC;AAClC,EAAA;;AAEA;AACF;AACA;AACEI,EAAAA,KAAKA,GAAS;AACZ,IAAA,IAAI,CAACP,WAAW,CAACQ,KAAK,EAAE;AAC1B,EAAA;;AAEA;AACF;AACA;EACE,IAAIC,eAAeA,GAAa;AAC9B,IAAA,OAAOC,KAAK,CAACC,IAAI,CAAC,IAAI,CAACX,WAAW,CAAC;AACrC,EAAA;AACF;;;;"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { action } from '@ember/object';
|
|
3
|
+
import { on } from '@ember/modifier';
|
|
4
|
+
import { modifier } from 'ember-modifier';
|
|
5
|
+
import { useStyles } from '@frontile/theme';
|
|
6
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
7
|
+
import { setComponentTemplate } from '@ember/component';
|
|
8
|
+
import { a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-BOdRhmsS.js';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Internal checkbox component for table selection.
|
|
12
|
+
* Simplified version without FormControl wrapper.
|
|
13
|
+
*/
|
|
14
|
+
class Checkbox extends Component {
|
|
15
|
+
get isChecked() {
|
|
16
|
+
return !!this.args.checked;
|
|
17
|
+
}
|
|
18
|
+
handleChange(event) {
|
|
19
|
+
if (this.args.disabled) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const target = event.target;
|
|
23
|
+
const value = target.checked;
|
|
24
|
+
if (typeof this.args.onChange === 'function') {
|
|
25
|
+
this.args.onChange(value, event);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
static {
|
|
29
|
+
decorateMethodV2(this.prototype, "handleChange", [action]);
|
|
30
|
+
}
|
|
31
|
+
get classes() {
|
|
32
|
+
const {
|
|
33
|
+
checkbox
|
|
34
|
+
} = useStyles();
|
|
35
|
+
return checkbox({
|
|
36
|
+
size: this.args.size
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
setIndeterminate = modifier((element, [indeterminate]) => {
|
|
40
|
+
element.indeterminate = !!indeterminate;
|
|
41
|
+
});
|
|
42
|
+
static {
|
|
43
|
+
setComponentTemplate(precompileTemplate("<input {{on \"change\" this.handleChange}} {{this.setIndeterminate @indeterminate}} type=\"checkbox\" checked={{this.isChecked}} disabled={{@disabled}} class={{this.classes.input class=@classes.input}} aria-label={{@ariaLabel}} aria-labelledby={{@ariaLabelledby}} aria-checked={{if @indeterminate \"mixed\" (if this.isChecked \"true\" \"false\")}} ...attributes />", {
|
|
44
|
+
strictMode: true,
|
|
45
|
+
scope: () => ({
|
|
46
|
+
on
|
|
47
|
+
})
|
|
48
|
+
}), this);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { Checkbox, Checkbox as default };
|
|
53
|
+
//# sourceMappingURL=checkbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.js","sources":["../../../../src/components/collections/table/checkbox.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { on } from '@ember/modifier';\nimport { modifier } from 'ember-modifier';\nimport {\n useStyles,\n type CheckboxVariants,\n type CheckboxSlots,\n type SlotsToClasses\n} from '@frontile/theme';\n\ninterface CheckboxSignature {\n Args: {\n checked?: boolean;\n indeterminate?: boolean;\n disabled?: boolean;\n onChange?: (checked: boolean, event: Event) => void;\n size?: CheckboxVariants['size'];\n classes?: SlotsToClasses<CheckboxSlots>;\n ariaLabel?: string;\n ariaLabelledby?: string;\n };\n Element: HTMLInputElement;\n}\n\n/**\n * Internal checkbox component for table selection.\n * Simplified version without FormControl wrapper.\n */\nclass Checkbox extends Component<CheckboxSignature> {\n get isChecked(): boolean {\n return !!this.args.checked;\n }\n\n @action handleChange(event: Event): void {\n if (this.args.disabled) {\n return;\n }\n\n const target = event.target as HTMLInputElement;\n const value = target.checked;\n\n if (typeof this.args.onChange === 'function') {\n this.args.onChange(value, event);\n }\n }\n\n get classes() {\n const { checkbox } = useStyles();\n return checkbox({\n size: this.args.size\n });\n }\n\n setIndeterminate = modifier(\n (element: HTMLInputElement, [indeterminate]: [boolean | undefined]) => {\n element.indeterminate = !!indeterminate;\n }\n );\n\n <template>\n <input\n {{on \"change\" this.handleChange}}\n {{this.setIndeterminate @indeterminate}}\n type=\"checkbox\"\n checked={{this.isChecked}}\n disabled={{@disabled}}\n class={{this.classes.input class=@classes.input}}\n aria-label={{@ariaLabel}}\n aria-labelledby={{@ariaLabelledby}}\n aria-checked={{if\n @indeterminate\n \"mixed\"\n (if this.isChecked \"true\" \"false\")\n }}\n ...attributes\n />\n </template>\n}\n\nexport { Checkbox, type CheckboxSignature };\nexport default Checkbox;\n"],"names":["Checkbox","Component","isChecked","args","checked","handleChange","event","disabled","target","value","onChange","n","prototype","action","classes","checkbox","useStyles","size","setIndeterminate","modifier","element","indeterminate","setComponentTemplate","precompileTemplate","strictMode","scope","on"],"mappings":";;;;;;;;;AAyBA;;;;AAIA,MAAMA,iBAAiBC,SAAA,CAAU;EAC/B,IAAIC,SAAAA,GAAqB;AACvB,IAAA,OAAO,CAAC,CAAC,IAAI,CAACC,IAAI,CAACC,OAAO;AAC5B,EAAA;EAEQC,YAAAA,CAAaC,KAAY,EAAQ;AACvC,IAAA,IAAI,IAAI,CAACH,IAAI,CAACI,QAAQ,EAAE;AACtB,MAAA;AACF,IAAA;AAEA,IAAA,MAAMC,MAAA,GAASF,KAAA,CAAME,MAAU;AAC/B,IAAA,MAAMC,KAAA,GAAQD,OAAOJ,OAAO;IAE5B,IAAI,OAAO,IAAI,CAACD,IAAI,CAACO,QAAQ,KAAK,UAAA,EAAY;MAC5C,IAAI,CAACP,IAAI,CAACO,QAAQ,CAACD,KAAA,EAAOH,KAAA,CAAA;AAC5B,IAAA;AACF,EAAA;AAAA,EAAA;IAAAK,gBAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CAXCC,MAAA,CAAA,CAAA;AAAA;EAaD,IAAIC,OAAAA,GAAU;IACZ,MAAM;AAAEC,MAAAA;KAAU,GAAGC,SAAA,EAAA;AACrB,IAAA,OAAOD,QAAA,CAAS;AACdE,MAAAA,IAAA,EAAM,IAAI,CAACd,IAAI,CAACc;AAClB,KAAA,CAAA;AACF,EAAA;EAEAC,gBAAA,GAAmBC,QAAA,CACjB,CAACC,OAAS,EAAkB,CAACC,aAAA,CAAqC,KAAA;AAChED,IAAAA,OAAA,CAAQC,aAAa,GAAG,CAAC,CAACA,aAAA;AAC5B,EAAA,CAAA,CAAA;AAGF,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAAA,8WAAA,EAiBA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { action } from '@ember/object';
|
|
3
|
+
import { useStyles } from '@frontile/theme';
|
|
4
|
+
import { Dropdown } from '../dropdown/dropdown.js';
|
|
5
|
+
import { isVisible, show, hide } from '@universal-ember/table/plugins/column-visibility';
|
|
6
|
+
import { ColumnVisibilityIcon } from './icons.js';
|
|
7
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
8
|
+
import { setComponentTemplate } from '@ember/component';
|
|
9
|
+
import { a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-BOdRhmsS.js';
|
|
10
|
+
|
|
11
|
+
class ColumnVisibility extends Component {
|
|
12
|
+
get styles() {
|
|
13
|
+
const {
|
|
14
|
+
table
|
|
15
|
+
} = useStyles();
|
|
16
|
+
return table();
|
|
17
|
+
}
|
|
18
|
+
get size() {
|
|
19
|
+
return this.args.size ?? 'xs';
|
|
20
|
+
}
|
|
21
|
+
get columns() {
|
|
22
|
+
return this.args.tableInstance?.columns.values() || [];
|
|
23
|
+
}
|
|
24
|
+
get selectedKeys() {
|
|
25
|
+
return this.columns.filter(column => isVisible(column)).map(column => column.key);
|
|
26
|
+
}
|
|
27
|
+
get allColumnKeys() {
|
|
28
|
+
return this.columns.map(column => column.key);
|
|
29
|
+
}
|
|
30
|
+
handleSelectionChange(selectedKeys) {
|
|
31
|
+
this.columns.forEach(column => {
|
|
32
|
+
if (selectedKeys.includes(column.key)) {
|
|
33
|
+
if (!isVisible(column)) {
|
|
34
|
+
show(column);
|
|
35
|
+
}
|
|
36
|
+
} else {
|
|
37
|
+
if (isVisible(column)) {
|
|
38
|
+
hide(column);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
static {
|
|
44
|
+
decorateMethodV2(this.prototype, "handleSelectionChange", [action]);
|
|
45
|
+
}
|
|
46
|
+
static {
|
|
47
|
+
setComponentTemplate(precompileTemplate("<Dropdown @closeOnItemSelect={{false}} ...attributes>\n <:default as |d|>\n <d.Trigger @intent=\"default\" @size={{this.size}} @class={{(this.styles.columnVisibilityButton)}}>\n\n {{#if (has-block \"icon\")}}\n {{yield to=\"icon\"}}\n {{else}}\n <ColumnVisibilityIcon class={{(this.styles.columnVisibilityIcon)}} />\n {{/if}}\n {{yield}}\n </d.Trigger>\n\n <d.Menu @selectionMode=\"multiple\" @selectedKeys={{this.selectedKeys}} @onSelectionChange={{this.handleSelectionChange}} as |Item|>\n {{#each @tableInstance.columns as |column|}}\n <Item @key={{column.key}}>\n {{column.name}}\n </Item>\n {{/each}}\n </d.Menu>\n </:default>\n</Dropdown>", {
|
|
48
|
+
strictMode: true,
|
|
49
|
+
scope: () => ({
|
|
50
|
+
Dropdown,
|
|
51
|
+
ColumnVisibilityIcon
|
|
52
|
+
})
|
|
53
|
+
}), this);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { ColumnVisibility as default };
|
|
58
|
+
//# sourceMappingURL=column-visibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-visibility.js","sources":["../../../../src/components/collections/table/column-visibility.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { useStyles } from '@frontile/theme';\nimport { Dropdown } from '../dropdown';\nimport {\n hide,\n show,\n isVisible\n} from '@universal-ember/table/plugins/column-visibility';\nimport { ColumnVisibilityIcon } from './icons';\nimport type { Table, Column } from './types';\n\ninterface ColumnVisibilitySignature<T> {\n Args: {\n /** Universal-ember table instance */\n tableInstance?: Table<T>;\n /** Size of the column visibility button. @defaultValue 'xs' */\n size?: 'xs' | 'sm' | 'lg' | 'xl';\n };\n Element: HTMLUListElement;\n Blocks: {\n default: [];\n icon: [];\n };\n}\n\nexport default class ColumnVisibility<T> extends Component<\n ColumnVisibilitySignature<T>\n> {\n get styles() {\n const { table } = useStyles();\n return table();\n }\n\n get size() {\n return this.args.size ?? 'xs';\n }\n\n get columns() {\n return this.args.tableInstance?.columns.values() || [];\n }\n\n get selectedKeys() {\n return this.columns\n .filter((column: Column<T>) => isVisible(column))\n .map((column: Column<T>) => column.key);\n }\n\n get allColumnKeys() {\n return this.columns.map((column: Column<T>) => column.key);\n }\n\n @action\n handleSelectionChange(selectedKeys: string[]) {\n this.columns.forEach((column: Column<T>) => {\n if (selectedKeys.includes(column.key)) {\n if (!isVisible(column)) {\n show(column);\n }\n } else {\n if (isVisible(column)) {\n hide(column);\n }\n }\n });\n }\n\n <template>\n <Dropdown @closeOnItemSelect={{false}} ...attributes>\n <:default as |d|>\n <d.Trigger\n @intent=\"default\"\n @size={{this.size}}\n @class={{(this.styles.columnVisibilityButton)}}\n >\n\n {{#if (has-block \"icon\")}}\n {{yield to=\"icon\"}}\n {{else}}\n <ColumnVisibilityIcon\n class={{(this.styles.columnVisibilityIcon)}}\n />\n {{/if}}\n {{yield}}\n </d.Trigger>\n\n <d.Menu\n @selectionMode=\"multiple\"\n @selectedKeys={{this.selectedKeys}}\n @onSelectionChange={{this.handleSelectionChange}}\n as |Item|\n >\n {{#each @tableInstance.columns as |column|}}\n <Item @key={{column.key}}>\n {{column.name}}\n </Item>\n {{/each}}\n </d.Menu>\n </:default>\n </Dropdown>\n </template>\n}\n"],"names":["ColumnVisibility","Component","styles","table","useStyles","size","args","columns","tableInstance","values","selectedKeys","filter","column","isVisible","map","key","allColumnKeys","handleSelectionChange","forEach","includes","show","hide","n","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","Dropdown","ColumnVisibilityIcon"],"mappings":";;;;;;;;;;AA0Be,MAAMA,gBAAA,SAA4BC,SAAA,CACrB;EAE1B,IAAIC,MAAAA,GAAS;IACX,MAAM;AAAEC,MAAAA;KAAO,GAAGC,SAAA,EAAA;IAClB,OAAOD,KAAA,EAAA;AACT,EAAA;EAEA,IAAIE,IAAAA,GAAO;AACT,IAAA,OAAO,IAAI,CAACC,IAAI,CAACD,IAAI,IAAI,IAAA;AAC3B,EAAA;EAEA,IAAIE,OAAAA,GAAU;AACZ,IAAA,OAAO,IAAI,CAACD,IAAI,CAACE,aAAa,EAAED,OAAA,CAAQE,YAAY,EAAE;AACxD,EAAA;EAEA,IAAIC,YAAAA,GAAe;IACjB,OAAO,IAAI,CAACH,OAAO,CAChBI,MAAM,CAAEC,UAAsBC,SAAA,CAAUD,MAAA,CAAA,CAAA,CACxCE,GAAG,CAAEF,MAAe,IAAOA,OAAOG,GAAG,CAAA;AAC1C,EAAA;EAEA,IAAIC,aAAAA,GAAgB;IAClB,OAAO,IAAI,CAACT,OAAO,CAACO,GAAG,CAAEF,MAAe,IAAOA,MAAA,CAAOG,GAAG,CAAA;AAC3D,EAAA;EAGAE,qBAAAA,CAAsBP,YAAsB,EAAE;AAC5C,IAAA,IAAI,CAACH,OAAO,CAACW,OAAO,CAAEN,MAAe,IAAA;MACnC,IAAIF,YAAA,CAAaS,QAAQ,CAACP,MAAA,CAAOG,GAAG,CAAA,EAAG;AACrC,QAAA,IAAI,CAACF,UAAUD,MAAA,CAAA,EAAS;UACtBQ,IAAA,CAAKR,MAAA,CAAA;AACP,QAAA;AACF,MAAA,CAAA,MAAO;AACL,QAAA,IAAIC,UAAUD,MAAA,CAAA,EAAS;UACrBS,IAAA,CAAKT,MAAA,CAAA;AACP,QAAA;AACF,MAAA;AACF,IAAA,CAAA,CAAA;AACF,EAAA;AAAA,EAAA;IAAAU,gBAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,uBAAA,EAAA,CAbCC,MAAA,CAAA,CAAA;AAAA;AAeD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAAA,utBAAA,EAiCA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,QAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
2
|
+
import { setComponentTemplate } from '@ember/component';
|
|
3
|
+
import templateOnly from '@ember/component/template-only';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Icon components used in the table component
|
|
7
|
+
*/
|
|
8
|
+
const ChevronUpIcon = setComponentTemplate(precompileTemplate("<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" ...attributes>\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m4.5 15.75 7.5-7.5 7.5 7.5\" />\n</svg>", {
|
|
9
|
+
strictMode: true
|
|
10
|
+
}), templateOnly());
|
|
11
|
+
const ChevronDownIcon = setComponentTemplate(precompileTemplate("<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" ...attributes>\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m19.5 8.25-7.5 7.5-7.5-7.5\" />\n</svg>", {
|
|
12
|
+
strictMode: true
|
|
13
|
+
}), templateOnly());
|
|
14
|
+
const ColumnVisibilityIcon = setComponentTemplate(precompileTemplate("<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" ...attributes>\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z\" />\n</svg>", {
|
|
15
|
+
strictMode: true
|
|
16
|
+
}), templateOnly());
|
|
17
|
+
|
|
18
|
+
export { ChevronDownIcon, ChevronUpIcon, ColumnVisibilityIcon };
|
|
19
|
+
//# sourceMappingURL=icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.js","sources":["../../../../src/components/collections/table/icons.gts"],"sourcesContent":["/**\n * Icon components used in the table component\n */\nimport type { TOC } from '@ember/component/template-only';\n\ninterface IconSignature {\n Element: SVGElement;\n}\n\nexport const ChevronUpIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m4.5 15.75 7.5-7.5 7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronDownIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"\n />\n </svg>\n</template>;\n\nexport const ColumnVisibilityIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z\"\n />\n </svg>\n</template>;\n"],"names":["ChevronUpIcon","setComponentTemplate","precompileTemplate","strictMode","templateOnly","ChevronDownIcon","ColumnVisibilityIcon"],"mappings":";;;;AAAA;;;MASaA,aAAmB,GAAAC,oBAAA,CAAiBC,kBAAA,CAAA,mPAAA,EAejD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGC,eAAqB,GAAAJ,oBAAA,CAAiBC,kBAAA,CAAA,mPAAA,EAenD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGE,oBAA0B,GAAAL,oBAAA,CAAiBC,kBAAA,CAAA,gYAAA,EAexD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { useStyles } from '@frontile/theme';
|
|
3
|
+
import press from '../../../modifiers/press.js';
|
|
4
|
+
import { ChevronDownIcon, ChevronUpIcon } from './icons.js';
|
|
5
|
+
import { SortDirection } from '@universal-ember/table/plugins/data-sorting';
|
|
6
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
7
|
+
import { setComponentTemplate } from '@ember/component';
|
|
8
|
+
|
|
9
|
+
class SortButton extends Component {
|
|
10
|
+
get styles() {
|
|
11
|
+
const {
|
|
12
|
+
table
|
|
13
|
+
} = useStyles();
|
|
14
|
+
return table();
|
|
15
|
+
}
|
|
16
|
+
get showUpIcon() {
|
|
17
|
+
return this.args.sortDirection === SortDirection.Ascending;
|
|
18
|
+
}
|
|
19
|
+
static {
|
|
20
|
+
setComponentTemplate(precompileTemplate("<button type=\"button\" class=\"{{(this.styles.sortButton)}}\" data-sort-direction={{@sortDirection}} data-sorted=\"{{@isSorted}}\" {{press @onSort}} ...attributes>\n <span>\n {{@column.name}}\n </span>\n {{#if this.showUpIcon}}\n <ChevronUpIcon class={{(this.styles.sortIcon)}} data-sorted=\"{{@isSorted}}\" aria-hidden=\"true\" />\n {{else}}\n <ChevronDownIcon class={{(this.styles.sortIcon)}} data-sorted=\"{{@isSorted}}\" aria-hidden=\"true\" />\n {{/if}}\n</button>", {
|
|
21
|
+
strictMode: true,
|
|
22
|
+
scope: () => ({
|
|
23
|
+
press,
|
|
24
|
+
ChevronUpIcon,
|
|
25
|
+
ChevronDownIcon
|
|
26
|
+
})
|
|
27
|
+
}), this);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { SortButton as default };
|
|
32
|
+
//# sourceMappingURL=sort-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-button.js","sources":["../../../../src/components/collections/table/sort-button.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { useStyles } from '@frontile/theme';\nimport { press } from '../../../modifiers/press';\nimport { ChevronUpIcon, ChevronDownIcon } from './icons';\nimport { SortDirection } from './types';\nimport type { Column } from './types';\n\ninterface SortButtonSignature<T> {\n Args: {\n /** The column to render the sort button for */\n column: Column<T>;\n /** Current sort direction for this column */\n sortDirection: SortDirection;\n /** Whether this column is currently sorted */\n isSorted: boolean;\n /** Click handler for sorting */\n onSort: () => void;\n };\n Element: HTMLButtonElement;\n}\n\nexport default class SortButton<T> extends Component<SortButtonSignature<T>> {\n get styles() {\n const { table } = useStyles();\n return table();\n }\n\n get showUpIcon() {\n return this.args.sortDirection === SortDirection.Ascending;\n }\n\n <template>\n <button\n type=\"button\"\n class=\"{{(this.styles.sortButton)}}\"\n data-sort-direction={{@sortDirection}}\n data-sorted=\"{{@isSorted}}\"\n {{press @onSort}}\n ...attributes\n >\n <span>\n {{@column.name}}\n </span>\n {{#if this.showUpIcon}}\n <ChevronUpIcon\n class={{(this.styles.sortIcon)}}\n data-sorted=\"{{@isSorted}}\"\n aria-hidden=\"true\"\n />\n {{else}}\n <ChevronDownIcon\n class={{(this.styles.sortIcon)}}\n data-sorted=\"{{@isSorted}}\"\n aria-hidden=\"true\"\n />\n {{/if}}\n </button>\n </template>\n}\n"],"names":["SortButton","Component","styles","table","useStyles","showUpIcon","args","sortDirection","SortDirection","Ascending","setComponentTemplate","precompileTemplate","strictMode","scope","press","ChevronUpIcon","ChevronDownIcon"],"mappings":";;;;;;;;AAqBe,MAAMA,UAAA,SAAsBC,SAAA,CAA8B;EACvE,IAAIC,MAAAA,GAAS;IACX,MAAM;AAAEC,MAAAA;KAAO,GAAGC,SAAA,EAAA;IAClB,OAAOD,KAAA,EAAA;AACT,EAAA;EAEA,IAAIE,UAAAA,GAAa;IACf,OAAO,IAAI,CAACC,IAAI,CAACC,aAAa,KAAKC,cAAcC,SAAS;AAC5D,EAAA;AAEA,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAAA,seAAA,EA0BA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,KAAA;QAAAC,aAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
|