@lostgradient/cinder 0.21.0 → 0.22.0
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/CHANGELOG.md +283 -0
- package/components.json +95 -556
- package/dist/_internal/form-field-frame.svelte.d.ts +1 -1
- package/dist/_internal/overlay.d.ts +3 -4
- package/dist/components/_internal/create-sliding-dialog-state.svelte.d.ts +23 -0
- package/dist/components/access-gate/access-gate.css +0 -13
- package/dist/components/access-gate/index.js +334 -270
- package/dist/components/alert-dialog/alert-dialog.schema.js +8 -6
- package/dist/components/alert-dialog/alert-dialog.types.d.ts +12 -4
- package/dist/components/alert-dialog/index.js +31 -7
- package/dist/components/approval-card/approval-card.svelte.d.ts +1 -1
- package/dist/components/approval-card/index.js +340 -98
- package/dist/components/area-chart/index.js +2 -2
- package/dist/components/autocomplete/autocomplete.css +5 -9
- package/dist/components/autocomplete/autocomplete.schema.js +2 -2
- package/dist/components/autocomplete/autocomplete.types.d.ts +2 -2
- package/dist/components/autocomplete/index.js +8 -5
- package/dist/components/backdrop/backdrop.svelte.d.ts +3 -3
- package/dist/components/bar-chart/index.js +2 -2
- package/dist/components/button-group/button-group.schema.js +4 -4
- package/dist/components/button-group/button-group.types.d.ts +5 -5
- package/dist/components/button-group/index.js +8 -8
- package/dist/components/calendar/calendar.schema.js +2 -2
- package/dist/components/calendar/calendar.types.d.ts +1 -1
- package/dist/components/calendar/index.js +3 -3
- package/dist/components/capability-gate/capability-gate.css +5 -14
- package/dist/components/capability-gate/capability-gate.schema.js +6 -27
- package/dist/components/capability-gate/capability-gate.types.d.ts +20 -24
- package/dist/components/capability-gate/index.js +19 -94
- package/dist/components/card/card.css +70 -0
- package/dist/components/card/card.schema.js +19 -6
- package/dist/components/card/card.svelte.d.ts +1 -1
- package/dist/components/card/card.types.d.ts +21 -2
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/card/index.js +329 -87
- package/dist/components/checkbox/index.js +31 -5
- package/dist/components/collapsible/collapsible.css +1 -5
- package/dist/components/collapsible/index.js +2 -2
- package/dist/components/color-field/color-field.css +10 -0
- package/dist/components/color-field/color-field.schema.js +4 -4
- package/dist/components/color-field/color-field.svelte.d.ts +1 -1
- package/dist/components/color-field/color-field.types.d.ts +3 -3
- package/dist/components/color-field/index.js +395 -127
- package/dist/components/color-picker/color-picker-controls.svelte.d.ts +44 -0
- package/dist/components/color-picker/color-picker.css +45 -2
- package/dist/components/color-picker/color-picker.schema.js +5 -5
- package/dist/components/color-picker/color-picker.types.d.ts +2 -2
- package/dist/components/color-picker/color-picker.utilities.d.ts +17 -0
- package/dist/components/color-picker/index.js +662 -423
- package/dist/components/color-swatch-picker/color-swatch-picker.schema.js +2 -2
- package/dist/components/color-swatch-picker/color-swatch-picker.types.d.ts +1 -1
- package/dist/components/color-swatch-picker/index.js +41 -2
- package/dist/components/combobox/combobox.css +3 -14
- package/dist/components/combobox/combobox.schema.js +2 -2
- package/dist/components/combobox/combobox.types.d.ts +1 -1
- package/dist/components/combobox/index.js +37 -8
- package/dist/components/confirm-dialog/confirm-dialog.schema.js +7 -9
- package/dist/components/confirm-dialog/confirm-dialog.svelte.d.ts +1 -1
- package/dist/components/confirm-dialog/confirm-dialog.types.d.ts +14 -10
- package/dist/components/confirm-dialog/index.js +67 -17
- package/dist/components/connection-indicator/connection-indicator.svelte.d.ts +2 -2
- package/dist/components/context-menu/index.js +6 -6
- package/dist/components/data-grid/data-grid.css +3 -8
- package/dist/components/data-grid/data-grid.types.d.ts +2 -2
- package/dist/components/data-table/index.js +32 -6
- package/dist/components/date-picker/date-picker.schema.js +2 -6
- package/dist/components/date-picker/date-picker.types.d.ts +1 -3
- package/dist/components/date-picker/index.js +812 -674
- package/dist/components/date-range-field/date-range-field.schema.js +5 -4
- package/dist/components/date-range-field/date-range-field.types.d.ts +6 -3
- package/dist/components/date-range-field/index.js +922 -784
- package/dist/components/description-list/index.js +3 -3
- package/dist/components/diff-statistics/diff-statistics.schema.js +4 -3
- package/dist/components/diff-statistics/diff-statistics.types.d.ts +5 -2
- package/dist/components/diff-statistics/index.js +6 -6
- package/dist/components/drawer/drawer.css +81 -26
- package/dist/components/drawer/drawer.schema.js +15 -8
- package/dist/components/drawer/drawer.svelte.d.ts +5 -4
- package/dist/components/drawer/drawer.types.d.ts +26 -7
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer/index.js +99 -60
- package/dist/components/dropdown/index.js +6 -6
- package/dist/components/dropdown-group/dropdown-group.schema.js +4 -4
- package/dist/components/dropdown-group/dropdown-group.types.d.ts +4 -4
- package/dist/components/dropdown-group/index.js +6 -6
- package/dist/components/empty-state/empty-state.css +0 -5
- package/dist/components/feed/feed.css +150 -50
- package/dist/components/feed/feed.schema.js +50 -4
- package/dist/components/feed/feed.svelte.d.ts +6 -5
- package/dist/components/feed/feed.types.d.ts +94 -8
- package/dist/components/feed/feed.variables.js +2 -2
- package/dist/components/feed/index.d.ts +6 -4
- package/dist/components/feed/index.js +346 -62
- package/dist/components/feed-boundary/feed-boundary.css +34 -0
- package/dist/components/{event-stream-viewer/event-stream-viewer.variables.js → feed-boundary/feed-boundary.schema.js} +31 -8
- package/dist/components/feed-boundary/feed-boundary.svelte.d.ts +17 -0
- package/dist/components/feed-boundary/feed-boundary.types.d.ts +22 -0
- package/dist/components/{blog-section/blog-section.variables.js → feed-boundary/feed-boundary.variables.js} +4 -4
- package/dist/components/feed-boundary/index.d.ts +5 -0
- package/dist/components/{typography → feed-boundary}/index.js +57 -49
- package/dist/components/feed-event/feed-event.css +114 -0
- package/dist/components/feed-event/feed-event.schema.js +10 -2
- package/dist/components/feed-event/feed-event.svelte.d.ts +1 -1
- package/dist/components/feed-event/feed-event.types.d.ts +17 -1
- package/dist/components/feed-event/feed-event.variables.js +2 -2
- package/dist/components/feed-event/index.d.ts +2 -1
- package/dist/components/feed-event/index.js +12 -3
- package/dist/components/file-upload/file-upload.schema.js +2 -2
- package/dist/components/file-upload/file-upload.types.d.ts +1 -1
- package/dist/components/file-upload/index.js +3 -3
- package/{src/components/faceted-filter-bar/faceted-filter-bar.css → dist/components/filter-bar/filter-bar.css} +14 -14
- package/dist/components/{faceted-filter-bar/faceted-filter-bar.schema.js → filter-bar/filter-bar.schema.js} +4 -4
- package/dist/components/{faceted-filter-bar/faceted-filter-bar.svelte.d.ts → filter-bar/filter-bar.svelte.d.ts} +5 -5
- package/dist/components/{faceted-filter-bar/faceted-filter-bar.types.d.ts → filter-bar/filter-bar.types.d.ts} +9 -4
- package/dist/components/{sheet/sheet.variables.js → filter-bar/filter-bar.variables.js} +4 -4
- package/dist/components/filter-bar/index.d.ts +5 -0
- package/dist/components/filter-bar/index.js +385 -0
- package/dist/components/focus-trap/focus-trap.svelte.d.ts +1 -1
- package/dist/components/focus-trap/focus-trap.utilities.svelte.d.ts +1 -1
- package/dist/components/footer/footer.css +5 -6
- package/dist/components/footer/index.js +4 -4
- package/dist/components/form-field/form-field.schema.js +4 -3
- package/dist/components/form-field/form-field.types.d.ts +6 -2
- package/dist/components/form-field/index.js +34 -8
- package/dist/components/input/index.js +37 -11
- package/dist/components/input/input.css +3 -2
- package/dist/components/input/input.schema.js +4 -3
- package/dist/components/input/input.types.d.ts +6 -2
- package/dist/components/invocation-rule-builder/index.js +42 -13
- package/dist/components/invocation-rule-builder/invocation-rule-builder.schema.js +4 -4
- package/dist/components/invocation-rule-builder/invocation-rule-builder.types.d.ts +10 -10
- package/dist/components/json-editor/index.js +31 -5
- package/dist/components/json-schema-editor/index.js +1539 -1361
- package/dist/components/json-schema-editor/json-schema-editor-impl.svelte.d.ts +1 -1
- package/dist/components/json-schema-editor/json-schema-editor-state.types.d.ts +1 -1
- package/dist/components/json-schema-editor/json-schema-editor.css +3 -39
- package/dist/components/json-schema-editor/json-schema-editor.schema.js +3 -3
- package/dist/components/json-schema-editor/json-schema-editor.types.d.ts +1 -1
- package/dist/components/json-schema-editor/property-editor-constraints.svelte.d.ts +17 -0
- package/dist/components/json-schema-editor/property-editor.constants.d.ts +6 -0
- package/dist/components/json-schema-editor/property-editor.svelte.d.ts +2 -33
- package/dist/components/json-schema-editor/property-list.svelte.d.ts +1 -1
- package/dist/components/kanban-board/index.js +5 -5
- package/dist/components/kanban-board/kanban-board-column-reorder.svelte.d.ts +1 -1
- package/dist/components/kanban-board/kanban-board.schema.js +2 -2
- package/dist/components/kanban-board/kanban-board.types.d.ts +1 -1
- package/dist/components/keyboard-shortcuts/keyboard-shortcuts.css +1 -5
- package/dist/components/keyboard-shortcuts/keyboard-shortcuts.svelte.d.ts +2 -2
- package/dist/components/line-chart/index.js +2 -2
- package/dist/components/matrix-chart/index.js +2 -2
- package/dist/components/mega-menu/mega-menu.css +5 -3
- package/dist/components/menu-bar/index.js +4 -4
- package/dist/components/menu-bar/menu-bar.schema.js +3 -3
- package/dist/components/menu-bar/menu-bar.types.d.ts +3 -3
- package/dist/components/modal/index.js +31 -7
- package/dist/components/modal/modal.css +1 -1
- package/dist/components/modal/modal.svelte.d.ts +2 -2
- package/dist/components/multi-select/index.js +31 -5
- package/dist/components/multi-select/multi-select.css +2 -6
- package/dist/components/navigation-bar/index.js +26 -43
- package/dist/components/navigation-bar/navigation-bar.css +3 -2
- package/dist/components/number-input/index.js +3 -3
- package/dist/components/number-input/number-input.schema.js +2 -2
- package/dist/components/number-input/number-input.types.d.ts +1 -1
- package/dist/components/page-header/page-header.svelte.d.ts +2 -2
- package/dist/components/phone-input/index.js +4 -4
- package/dist/components/phone-input/phone-input.schema.js +5 -4
- package/dist/components/phone-input/phone-input.types.d.ts +8 -4
- package/dist/components/pin-input/index.js +4 -4
- package/dist/components/pin-input/pin-input.schema.js +5 -4
- package/dist/components/pin-input/pin-input.types.d.ts +7 -3
- package/dist/components/popover/index.js +5 -2
- package/dist/components/popover/popover.svelte.d.ts +2 -2
- package/dist/components/portal/portal.svelte.d.ts +1 -1
- package/dist/components/pricing-card/index.js +32 -14
- package/dist/components/pricing-card/pricing-card.schema.js +5 -5
- package/dist/components/pricing-card/pricing-card.types.d.ts +9 -5
- package/dist/components/radio-group/index.js +31 -5
- package/dist/components/rating/index.js +4 -4
- package/dist/components/rating/rating.schema.js +5 -4
- package/dist/components/rating/rating.types.d.ts +7 -3
- package/dist/components/run-step-timeline/index.js +2 -2
- package/dist/components/schedule-builder/index.js +3206 -2842
- package/dist/components/schedule-builder/schedule-builder-cron-editor.d.ts +10 -0
- package/dist/components/schedule-builder/schedule-builder-cron-editor.svelte.d.ts +12 -0
- package/dist/components/schedule-builder/schedule-builder-fields.svelte.d.ts +39 -0
- package/dist/components/schedule-builder/schedule-builder.css +39 -2
- package/dist/components/schedule-builder/schedule-builder.schema.js +2 -2
- package/dist/components/schedule-builder/schedule-builder.types.d.ts +3 -3
- package/dist/components/schema-form/index.js +47 -21
- package/dist/components/schema-form/schema-form.schema.js +2 -2
- package/dist/components/schema-form/schema-form.types.d.ts +1 -1
- package/dist/components/search-field/index.js +6 -6
- package/dist/components/search-field/search-field.schema.js +5 -5
- package/dist/components/search-field/search-field.types.d.ts +3 -3
- package/dist/components/segment/index.js +2 -2
- package/dist/components/segmented-control/index.js +10 -10
- package/dist/components/segmented-control/segmented-control-state.svelte.d.ts +1 -1
- package/dist/components/segmented-control/segmented-control.schema.js +9 -7
- package/dist/components/segmented-control/segmented-control.types.d.ts +11 -6
- package/dist/components/select/index.js +35 -9
- package/dist/components/select/select.schema.js +4 -3
- package/dist/components/select/select.types.d.ts +6 -2
- package/dist/components/selectable-row/selectable-row.css +4 -3
- package/dist/components/share-card/index.js +96 -60
- package/dist/components/share-card/share-card.types.d.ts +11 -1
- package/dist/components/sidebar/index.js +100 -61
- package/dist/components/slider/index.js +2 -2
- package/dist/components/slider/slider.schema.js +2 -2
- package/dist/components/slider/slider.types.d.ts +5 -5
- package/dist/components/source-diff-viewer/index.js +101 -83
- package/dist/components/source-diff-viewer/source-diff-viewer.schema.js +11 -7
- package/dist/components/source-diff-viewer/source-diff-viewer.types.d.ts +7 -2
- package/dist/components/statistic-group/statistic-group.css +7 -0
- package/dist/components/status-dot/status-dot.types.d.ts +8 -2
- package/dist/components/steps/index.js +73 -37
- package/dist/components/steps/steps.types.d.ts +14 -4
- package/dist/components/tab-list/index.js +3 -3
- package/dist/components/tab-list/tab-list.schema.js +2 -2
- package/dist/components/tab-list/tab-list.types.d.ts +1 -1
- package/dist/components/table/index.js +2 -2
- package/dist/components/table/table.css +1 -1
- package/dist/components/table-header-cell/index.js +2 -2
- package/dist/components/table-of-contents/table-of-contents.css +1 -14
- package/dist/components/table-of-contents/table-of-contents.variables.js +1 -3
- package/dist/components/tabs/index.js +3 -3
- package/dist/components/tag-input/index.js +3 -3
- package/dist/components/tag-input/tag-input.schema.js +5 -5
- package/dist/components/tag-input/tag-input.types.d.ts +2 -2
- package/dist/components/textarea/index.js +31 -5
- package/dist/components/time-field/index.js +33 -7
- package/dist/components/time-field/time-field.css +4 -1
- package/dist/components/time-field/time-field.schema.js +2 -2
- package/dist/components/time-field/time-field.types.d.ts +1 -1
- package/dist/components/timeline/timeline.svelte.d.ts +2 -2
- package/dist/components/toggle/index.js +4 -4
- package/dist/components/toggle/toggle.css +1 -1
- package/dist/components/toggle/toggle.schema.js +5 -4
- package/dist/components/toggle/toggle.types.d.ts +8 -4
- package/dist/components/transfer-list/index.js +154 -479
- package/dist/components/transfer-list/transfer-list.css +25 -105
- package/dist/components/transfer-list/transfer-list.schema.js +6 -6
- package/dist/components/transfer-list/transfer-list.svelte.d.ts +4 -4
- package/dist/components/transfer-list/transfer-list.types.d.ts +8 -8
- package/dist/components/tree/index.js +8 -8
- package/dist/components/tree/tree.schema.js +4 -3
- package/dist/components/tree/tree.types.d.ts +5 -2
- package/dist/components/tree-item/index.js +3 -3
- package/dist/components/tree-item/tree-item.schema.js +4 -3
- package/dist/components/tree-item/tree-item.types.d.ts +5 -2
- package/dist/index.d.ts +8 -34
- package/dist/index.js +21388 -23138
- package/dist/manifest.meta.d.ts +2 -2
- package/dist/server/components/access-gate/index.js +9 -6
- package/dist/server/components/alert-dialog/index.js +3 -3
- package/dist/server/components/approval-card/index.js +5 -5
- package/dist/server/components/area-chart/index.js +4 -4
- package/dist/server/components/autocomplete/index.js +2 -2
- package/dist/server/components/avatar-group/index.js +3 -5
- package/dist/server/components/bar-chart/index.js +4 -4
- package/dist/server/components/button-group/index.js +1 -1
- package/dist/server/components/calendar/index.js +2 -2
- package/dist/server/components/capability-gate/index.js +1 -1
- package/dist/server/components/card/index.js +2 -2
- package/dist/server/components/checkbox/index.js +3 -3
- package/dist/server/components/choice-grid/index.js +2 -2
- package/dist/server/components/code-block/index.js +1 -1
- package/dist/server/components/collapsible/index.js +2 -2
- package/dist/server/components/color-field/index.js +7 -5
- package/dist/server/components/color-picker/index.js +6 -4
- package/dist/server/components/color-swatch-picker/index.js +3 -3
- package/dist/server/components/combobox/index.js +4 -4
- package/dist/server/components/confirm-dialog/index.js +5 -5
- package/dist/server/components/container/index.js +3 -5
- package/dist/server/components/context-menu/index.js +3 -3
- package/dist/server/components/copy-button/index.js +1 -1
- package/dist/server/components/data-table/index.js +5 -5
- package/dist/server/components/date-picker/index.js +8 -6
- package/dist/server/components/date-range-field/index.js +8 -6
- package/dist/server/components/description-list/index.js +1 -1
- package/dist/server/components/diff-statistics/index.js +1 -1
- package/dist/server/components/drawer/index.js +3 -3
- package/dist/server/components/dropdown/index.js +3 -3
- package/dist/server/components/dropdown-group/index.js +2 -2
- package/dist/server/components/feed/index.js +4 -3
- package/dist/server/components/feed-boundary/index.js +14 -0
- package/dist/server/components/feed-event/index.js +2 -2
- package/dist/server/components/file-upload/index.js +1 -1
- package/dist/server/components/filter-bar/index.js +13 -0
- package/dist/server/components/footer/index.js +1 -1
- package/dist/server/components/form-field/index.js +2 -2
- package/dist/server/components/icons/index.js +15 -12
- package/dist/server/components/input/index.js +3 -3
- package/dist/server/components/invocation-rule-builder/index.js +4 -4
- package/dist/server/components/json-editor/index.js +2 -2
- package/dist/server/components/json-schema-editor/index.js +14 -11
- package/dist/server/components/kanban-board/index.js +1 -1
- package/dist/server/components/line-chart/index.js +4 -4
- package/dist/server/components/matrix-chart/index.js +4 -4
- package/dist/server/components/menu-bar/index.js +2 -2
- package/dist/server/components/modal/index.js +3 -3
- package/dist/server/components/multi-select/index.js +2 -2
- package/dist/server/components/navigation-bar/index.js +1 -1
- package/dist/server/components/number-input/index.js +2 -2
- package/dist/server/components/payload-inspector/index.js +1 -1
- package/dist/server/components/phone-input/index.js +1 -1
- package/dist/server/components/pin-input/index.js +1 -1
- package/dist/server/components/popover/index.js +2 -2
- package/dist/server/components/pricing-card/index.js +3 -5
- package/dist/server/components/radio-group/index.js +2 -2
- package/dist/server/components/rating/index.js +1 -1
- package/dist/server/components/run-step-timeline/index.js +2 -2
- package/dist/server/components/schedule-builder/index.js +10 -10
- package/dist/server/components/schema-form/index.js +7 -7
- package/dist/server/components/search-field/index.js +3 -5
- package/dist/server/components/secret-value-field/index.js +1 -1
- package/dist/server/components/segment/index.js +2 -2
- package/dist/server/components/segmented-control/index.js +3 -3
- package/dist/server/components/select/index.js +3 -3
- package/dist/server/components/share-card/index.js +1 -1
- package/dist/server/components/sidebar/index.js +3 -3
- package/dist/server/components/slider/index.js +1 -1
- package/dist/server/components/source-diff-viewer/index.js +1 -1
- package/dist/server/components/statistic-group/index.js +2 -3
- package/dist/server/components/steps/index.js +1 -1
- package/dist/server/components/tab-list/index.js +2 -2
- package/dist/server/components/table/index.js +3 -3
- package/dist/server/components/table-header-cell/index.js +2 -2
- package/dist/server/components/tabs/index.js +8 -8
- package/dist/server/components/tag-input/index.js +1 -1
- package/dist/server/components/textarea/index.js +3 -3
- package/dist/server/components/time-field/index.js +3 -3
- package/dist/server/components/toggle/index.js +1 -1
- package/dist/server/components/transfer-list/index.js +2 -8
- package/dist/server/components/tree/index.js +3 -3
- package/dist/server/components/tree-item/index.js +2 -2
- package/dist/server/index.js +228 -294
- package/dist/server/{index.server-c5qj6x13.js → index.server-0whmnrvs.js} +4 -2
- package/dist/server/{index.server-j57zek3p.js → index.server-116jzzd0.js} +1 -1
- package/dist/server/index.server-15830t2j.js +581 -0
- package/dist/server/{index.server-0qqjq4dh.js → index.server-1qvmrpnx.js} +3 -3
- package/dist/server/{index.server-mrjns5eb.js → index.server-25dnjae4.js} +4 -4
- package/dist/server/{index.server-hzf509s2.js → index.server-2djn0yfs.js} +611 -346
- package/dist/server/{index.server-7sxx7645.js → index.server-2nmwsacy.js} +6 -6
- package/dist/server/index.server-2xd6aajx.js +48 -0
- package/dist/server/{index.server-2bw5fqwh.js → index.server-3dkwzkd3.js} +1 -1
- package/dist/server/{index.server-mvcsfqs9.js → index.server-3zqbgr6g.js} +2 -2
- package/dist/server/index.server-45ab0nn5.js +41 -0
- package/dist/server/{index.server-2mwr7vjg.js → index.server-4maq2ft8.js} +24 -29
- package/dist/server/index.server-4n1mxg74.js +2 -0
- package/dist/server/{index.server-mxgakpfj.js → index.server-4wweyb2e.js} +10 -2
- package/dist/server/{index.server-01bz4wmw.js → index.server-59hgwg0n.js} +7 -7
- package/dist/server/{index.server-cptwpqbr.js → index.server-5j6jv7rm.js} +1 -1
- package/dist/server/{index.server-y8m06g9p.js → index.server-5mz0e28m.js} +5 -5
- package/dist/server/{index.server-gme23wnx.js → index.server-5wmzrvvs.js} +3 -3
- package/dist/server/index.server-5wvxahbr.js +159 -0
- package/dist/server/{index.server-77p0jy71.js → index.server-60jkchq7.js} +5 -5
- package/dist/server/{index.server-6n5grdb2.js → index.server-60q52hya.js} +4 -4
- package/dist/server/{index.server-1dk15yd2.js → index.server-6kf969a0.js} +2 -2
- package/dist/server/{index.server-tmfcgx1j.js → index.server-74eakasy.js} +9 -7
- package/dist/server/{index.server-rvaw3nks.js → index.server-75jkpk5t.js} +3 -3
- package/dist/server/{index.server-0rqytc2f.js → index.server-7trweg3f.js} +20 -12
- package/dist/server/{index.server-xa8kjs78.js → index.server-84bn4nmv.js} +4 -4
- package/dist/server/{index.server-7cwcqhqd.js → index.server-86sw5ea6.js} +1 -1
- package/dist/server/{index.server-2pst4wcx.js → index.server-936tfc73.js} +1 -1
- package/dist/server/{index.server-msp145ky.js → index.server-97dpkhxs.js} +1 -1
- package/dist/server/{index.server-4y2jtvv1.js → index.server-9jh3bkpk.js} +2 -2
- package/dist/server/{index.server-fd3az8g2.js → index.server-9m7bqtev.js} +25 -16
- package/dist/server/{index.server-71zvvayv.js → index.server-9ts9xfcb.js} +5 -5
- package/dist/server/{index.server-ayhcc6z5.js → index.server-abjsjsw8.js} +1 -1
- package/dist/server/index.server-ap0pzqpw.js +37 -0
- package/dist/server/{index.server-fv23h844.js → index.server-ax2jmr1f.js} +1 -1
- package/dist/server/{index.server-xap17cfh.js → index.server-ax50etn0.js} +1 -1
- package/dist/server/{index.server-tvj0x3qy.js → index.server-bd8rcgf0.js} +381 -307
- package/dist/server/{index.server-6m4r6qzc.js → index.server-bdfkmbtv.js} +1 -1
- package/dist/server/{index.server-k9m693ty.js → index.server-beq5wvme.js} +5 -5
- package/dist/server/{index.server-nbspp00m.js → index.server-bjw3e1wh.js} +10 -10
- package/dist/server/{index.server-wxs2c5d0.js → index.server-bmjr9844.js} +4 -4
- package/dist/server/{index.server-w2jwyz17.js → index.server-br3khchh.js} +5 -5
- package/dist/server/{index.server-bmgnba9v.js → index.server-bs7zqkt0.js} +21 -3
- package/dist/server/index.server-c0x0bd83.js +9 -0
- package/dist/server/{index.server-a5zsgn3k.js → index.server-c6namd71.js} +1 -1
- package/dist/server/{index.server-kjv6v7jm.js → index.server-cczpag6c.js} +1 -1
- package/dist/server/{index.server-kfem5020.js → index.server-cekjyge2.js} +12 -35
- package/dist/server/{index.server-yevngyp5.js → index.server-cw4y49n5.js} +1 -1
- package/dist/server/{index.server-qycjqq8v.js → index.server-d53tjwj9.js} +30 -4
- package/dist/server/{index.server-6184qc69.js → index.server-drdtprjs.js} +1 -1
- package/dist/server/{index.server-2s7btgxx.js → index.server-e1vftaph.js} +7 -7
- package/dist/server/{index.server-7wsshxkg.js → index.server-e95525e1.js} +40 -1
- package/dist/server/index.server-e9mhb9wd.js +237 -0
- package/dist/server/{index.server-sgjc9gkq.js → index.server-ejdprw7f.js} +13 -10
- package/dist/server/{index.server-z2fdg8dg.js → index.server-fkw2mzze.js} +6 -6
- package/dist/server/{index.server-92sweseg.js → index.server-fm2xf0yf.js} +5 -5
- package/dist/server/{index.server-sy0vfg2g.js → index.server-gg8pgeag.js} +21 -3
- package/dist/server/{index.server-vke078fx.js → index.server-gkm85dwj.js} +3 -3
- package/dist/server/{index.server-xafa05pt.js → index.server-gtvdgp75.js} +2 -2
- package/dist/server/{index.server-dfp8jvrr.js → index.server-gv1fsa5y.js} +1 -1
- package/dist/server/{index.server-6c9144ex.js → index.server-gw9v7vs7.js} +1 -1
- package/dist/server/{index.server-ynt74xb3.js → index.server-hgy2b63w.js} +5 -5
- package/dist/server/{index.server-7kjw6qw5.js → index.server-hmns3fvr.js} +1 -1
- package/dist/server/{index.server-hfccqkjw.js → index.server-hn5ey0cq.js} +1 -1
- package/dist/server/{index.server-w8phxx00.js → index.server-j8sr82be.js} +6 -6
- package/dist/server/{index.server-td8rx9dz.js → index.server-jtcjbnad.js} +5 -5
- package/dist/server/{index.server-eyta8yd2.js → index.server-jtrd8nnn.js} +3 -3
- package/dist/server/{index.server-2qydtmtp.js → index.server-jxcxe1sp.js} +1 -1
- package/dist/server/{index.server-mknhgg07.js → index.server-k4yysh89.js} +2 -2
- package/dist/server/{index.server-wbe0dskj.js → index.server-kddp90n2.js} +1 -1
- package/dist/server/{index.server-4sr9f5r0.js → index.server-kergq7c5.js} +6 -6
- package/dist/server/{index.server-d9z0psxj.js → index.server-kf7ncaam.js} +1 -1
- package/dist/server/{index.server-7wtntdet.js → index.server-kqd2p7s5.js} +9 -9
- package/dist/server/{index.server-kr3wrv13.js → index.server-m07gsna4.js} +3 -3
- package/dist/server/{index.server-4ywb3qcm.js → index.server-m1hct64p.js} +3 -3
- package/dist/server/{index.server-49g0pm4w.js → index.server-me8yv9nf.js} +5 -5
- package/dist/server/{index.server-pctqr0zf.js → index.server-mnv8k51c.js} +96 -16
- package/dist/server/{index.server-fka21791.js → index.server-n6wm89xy.js} +25 -1
- package/dist/server/{index.server-4dfs3xwn.js → index.server-nnbqjg1j.js} +1 -1
- package/dist/server/{index.server-0p1z1kbs.js → index.server-nqd1q4pa.js} +6 -6
- package/dist/server/{index.server-xsh52hjt.js → index.server-nsdh6zgh.js} +3 -3
- package/dist/server/{index.server-hxjkfdp2.js → index.server-nwgxhrzg.js} +1 -1
- package/dist/server/{index.server-8w95jmf1.js → index.server-pp2n6def.js} +1 -1
- package/dist/server/index.server-qtayj75t.js +165 -0
- package/dist/server/{index.server-0qvwymqd.js → index.server-r09x4p9q.js} +2 -2
- package/dist/server/{index.server-yhjecwfj.js → index.server-rf9pd5mr.js} +4 -2
- package/dist/server/{index.server-2k0cnsm4.js → index.server-s2dseqdh.js} +1 -1
- package/dist/server/{index.server-1233sspt.js → index.server-s7t1fh6n.js} +1 -1
- package/dist/server/{index.server-7mhk40r3.js → index.server-sm0ydag0.js} +1 -1
- package/dist/server/{index.server-jgdtsvz2.js → index.server-sytbwe68.js} +9 -9
- package/dist/server/{index.server-cm3adbhs.js → index.server-t8rqhyz1.js} +5 -5
- package/dist/server/{index.server-scdk1we9.js → index.server-t91tbrmn.js} +5 -5
- package/dist/server/{index.server-casqzp4h.js → index.server-tg6k1bq8.js} +3 -3
- package/dist/server/{index.server-zfxb12hm.js → index.server-tkt7wm9w.js} +9 -9
- package/dist/server/{index.server-t8dts351.js → index.server-v11xmma9.js} +10 -10
- package/dist/server/{index.server-y7017ygc.js → index.server-v302j9xy.js} +18 -7
- package/dist/server/{index.server-km7pzejr.js → index.server-vdavjkqn.js} +4 -4
- package/dist/server/{index.server-jd0gmw7x.js → index.server-vspyhe5q.js} +4 -2
- package/dist/server/{index.server-36rjvy9e.js → index.server-vvs2rh1y.js} +1 -1
- package/dist/server/{index.server-g38yys7a.js → index.server-w9dtc4a2.js} +4 -4
- package/dist/server/{index.server-4kqjwvrq.js → index.server-wmeaz6qk.js} +18 -72
- package/dist/server/{index.server-1g3bqz6w.js → index.server-x0sbmhn7.js} +27 -2
- package/dist/server/{index.server-j4akck2w.js → index.server-x5zjwrnb.js} +7 -7
- package/dist/server/{index.server-fymevt3c.js → index.server-xrjcaf14.js} +12 -3
- package/dist/server/{index.server-f4pxscq5.js → index.server-yb9b2r3x.js} +1 -1
- package/dist/server/{index.server-x8c8x34n.js → index.server-yhqszmxe.js} +6 -6
- package/dist/server/{index.server-54yr0y08.js → index.server-yp7t68js.js} +1 -1
- package/dist/server/{index.server-nbq0tmx1.js → index.server-yr2ndv9a.js} +4 -2
- package/dist/server/{index.server-3ne3ekqq.js → index.server-z2vy12a0.js} +1 -1
- package/dist/server/index.server-z4g0599a.js +41 -0
- package/dist/server/{index.server-ybb5ery2.js → index.server-zg0981gk.js} +2 -2
- package/dist/server/{index.server-d70brw24.js → index.server-zkhc16nf.js} +1 -1
- package/dist/utilities/attachments.d.ts +1 -1
- package/dist/utilities/color-luminance.d.ts +2 -1
- package/dist/utilities/dialog-props.d.ts +24 -0
- package/dist/utilities/focus.d.ts +1 -1
- package/package.json +69 -481
- package/src/_internal/form-field-frame.svelte +2 -2
- package/src/_internal/form-field-provider.svelte +29 -1
- package/src/_internal/overlay.ts +4 -5
- package/src/components/_internal/create-sliding-dialog-state.svelte.ts +66 -0
- package/src/components/access-gate/access-gate.css +0 -13
- package/src/components/access-gate/access-gate.svelte +6 -2
- package/src/components/alert-dialog/alert-dialog.schema.json +6 -5
- package/src/components/alert-dialog/alert-dialog.schema.ts +7 -5
- package/src/components/alert-dialog/alert-dialog.types.ts +13 -4
- package/src/components/autocomplete/autocomplete.css +5 -9
- package/src/components/autocomplete/autocomplete.schema.json +1 -1
- package/src/components/autocomplete/autocomplete.schema.ts +1 -1
- package/src/components/autocomplete/autocomplete.svelte +3 -3
- package/src/components/autocomplete/autocomplete.types.ts +2 -2
- package/src/components/backdrop/backdrop.svelte +3 -3
- package/src/components/button-group/button-group.schema.json +3 -3
- package/src/components/button-group/button-group.schema.ts +3 -3
- package/src/components/button-group/button-group.svelte +9 -7
- package/src/components/button-group/button-group.types.ts +5 -5
- package/src/components/calendar/calendar.schema.json +1 -1
- package/src/components/calendar/calendar.schema.ts +1 -1
- package/src/components/calendar/calendar.svelte +2 -2
- package/src/components/calendar/calendar.types.ts +1 -1
- package/src/components/capability-gate/capability-gate.css +5 -14
- package/src/components/capability-gate/capability-gate.examples.json +2 -2
- package/src/components/capability-gate/capability-gate.schema.json +5 -26
- package/src/components/capability-gate/capability-gate.schema.ts +5 -26
- package/src/components/capability-gate/capability-gate.svelte +21 -51
- package/src/components/capability-gate/capability-gate.types.ts +16 -24
- package/src/components/card/card.css +70 -0
- package/src/components/card/card.examples.json +18 -0
- package/src/components/card/card.schema.json +18 -5
- package/src/components/card/card.schema.ts +18 -5
- package/src/components/card/card.svelte +134 -39
- package/src/components/card/card.types.ts +24 -2
- package/src/components/card/index.ts +1 -0
- package/src/components/collapsible/collapsible.css +1 -5
- package/src/components/collapsible/collapsible.svelte +1 -1
- package/src/components/color-field/color-field.css +10 -0
- package/src/components/color-field/color-field.examples.json +1 -1
- package/src/components/color-field/color-field.schema.json +3 -3
- package/src/components/color-field/color-field.schema.ts +3 -3
- package/src/components/color-field/color-field.svelte +74 -18
- package/src/components/color-field/color-field.types.ts +3 -3
- package/src/components/color-picker/color-picker-controls.svelte +125 -0
- package/src/components/color-picker/color-picker.css +45 -2
- package/src/components/color-picker/color-picker.schema.json +4 -4
- package/src/components/color-picker/color-picker.schema.ts +4 -4
- package/src/components/color-picker/color-picker.svelte +81 -264
- package/src/components/color-picker/color-picker.types.ts +2 -2
- package/src/components/color-picker/color-picker.utilities.ts +124 -0
- package/src/components/color-swatch-picker/color-swatch-picker.examples.json +1 -1
- package/src/components/color-swatch-picker/color-swatch-picker.schema.json +1 -1
- package/src/components/color-swatch-picker/color-swatch-picker.schema.ts +1 -1
- package/src/components/color-swatch-picker/color-swatch-picker.svelte +2 -2
- package/src/components/color-swatch-picker/color-swatch-picker.types.ts +1 -1
- package/src/components/combobox/combobox.css +3 -14
- package/src/components/combobox/combobox.schema.json +1 -1
- package/src/components/combobox/combobox.schema.ts +1 -1
- package/src/components/combobox/combobox.svelte +4 -4
- package/src/components/combobox/combobox.types.ts +1 -1
- package/src/components/command-palette/command-palette.svelte +1 -1
- package/src/components/confirm-dialog/confirm-dialog.schema.json +6 -5
- package/src/components/confirm-dialog/confirm-dialog.schema.ts +6 -5
- package/src/components/confirm-dialog/confirm-dialog.types.ts +15 -10
- package/src/components/container/container.examples.json +12 -0
- package/src/components/data-grid/data-grid.css +3 -8
- package/src/components/data-grid/data-grid.types.ts +2 -2
- package/src/components/date-picker/date-picker.schema.json +1 -5
- package/src/components/date-picker/date-picker.schema.ts +1 -5
- package/src/components/date-picker/date-picker.svelte +5 -4
- package/src/components/date-picker/date-picker.types.ts +1 -3
- package/src/components/date-range-field/date-range-field.schema.json +4 -3
- package/src/components/date-range-field/date-range-field.schema.ts +4 -3
- package/src/components/date-range-field/date-range-field.svelte +8 -8
- package/src/components/date-range-field/date-range-field.types.ts +6 -3
- package/src/components/description-list/description-list.svelte +2 -2
- package/src/components/diff-statistics/diff-statistics.examples.json +1 -1
- package/src/components/diff-statistics/diff-statistics.schema.json +3 -2
- package/src/components/diff-statistics/diff-statistics.schema.ts +3 -2
- package/src/components/diff-statistics/diff-statistics.svelte +4 -4
- package/src/components/diff-statistics/diff-statistics.types.ts +5 -2
- package/src/components/drawer/drawer.css +81 -26
- package/src/components/drawer/drawer.examples.json +8 -2
- package/src/components/drawer/drawer.schema.json +14 -7
- package/src/components/drawer/drawer.schema.ts +16 -7
- package/src/components/drawer/drawer.svelte +36 -41
- package/src/components/drawer/drawer.types.ts +26 -7
- package/src/components/drawer/index.ts +1 -1
- package/src/components/dropdown/dropdown.examples.json +1 -1
- package/src/components/dropdown-group/dropdown-group.schema.json +3 -3
- package/src/components/dropdown-group/dropdown-group.schema.ts +3 -3
- package/src/components/dropdown-group/dropdown-group.svelte +6 -6
- package/src/components/dropdown-group/dropdown-group.types.ts +4 -4
- package/src/components/empty-state/empty-state.css +0 -5
- package/src/components/feed/feed.css +150 -50
- package/src/components/feed/feed.examples.json +18 -0
- package/src/components/feed/feed.schema.json +38 -3
- package/src/components/feed/feed.schema.ts +44 -3
- package/src/components/feed/feed.svelte +191 -4
- package/src/components/feed/feed.types.ts +103 -10
- package/src/components/feed/feed.variables.json +1 -1
- package/src/components/feed/feed.variables.ts +1 -1
- package/src/components/feed/index.ts +6 -3
- package/src/components/feed-boundary/feed-boundary.css +34 -0
- package/src/components/feed-boundary/feed-boundary.examples.json +13 -0
- package/src/components/feed-boundary/feed-boundary.schema.json +24 -0
- package/src/components/feed-boundary/feed-boundary.schema.ts +31 -0
- package/src/components/feed-boundary/feed-boundary.svelte +21 -0
- package/src/components/feed-boundary/feed-boundary.types.ts +23 -0
- package/src/components/feed-boundary/index.ts +6 -0
- package/src/components/feed-event/feed-event.css +114 -0
- package/src/components/feed-event/feed-event.schema.json +7 -1
- package/src/components/feed-event/feed-event.schema.ts +7 -0
- package/src/components/feed-event/feed-event.svelte +7 -2
- package/src/components/feed-event/feed-event.types.ts +17 -1
- package/src/components/feed-event/feed-event.variables.json +1 -1
- package/src/components/feed-event/feed-event.variables.ts +1 -1
- package/src/components/feed-event/index.ts +2 -1
- package/src/components/file-upload/file-upload.examples.json +1 -1
- package/src/components/file-upload/file-upload.schema.json +1 -1
- package/src/components/file-upload/file-upload.schema.ts +1 -1
- package/src/components/file-upload/file-upload.svelte +2 -2
- package/src/components/file-upload/file-upload.types.ts +1 -1
- package/{dist/components/faceted-filter-bar/faceted-filter-bar.css → src/components/filter-bar/filter-bar.css} +14 -14
- package/src/components/filter-bar/filter-bar.examples.json +25 -0
- package/src/components/{faceted-filter-bar/faceted-filter-bar.svelte → filter-bar/filter-bar.svelte} +16 -18
- package/src/components/{faceted-filter-bar/faceted-filter-bar.types.ts → filter-bar/filter-bar.types.ts} +8 -4
- package/src/components/filter-bar/index.ts +13 -0
- package/src/components/focus-trap/focus-trap.utilities.svelte.ts +1 -1
- package/src/components/footer/footer.css +5 -6
- package/src/components/footer/footer.svelte +9 -4
- package/src/components/form-field/form-field.schema.json +3 -2
- package/src/components/form-field/form-field.schema.ts +4 -2
- package/src/components/form-field/form-field.svelte +2 -2
- package/src/components/form-field/form-field.types.ts +6 -2
- package/src/components/grid/grid.examples.json +12 -0
- package/src/components/hover-card/hover-card.svelte +2 -2
- package/src/components/input/input.css +3 -2
- package/src/components/input/input.examples.json +7 -1
- package/src/components/input/input.schema.json +3 -2
- package/src/components/input/input.schema.ts +3 -2
- package/src/components/input/input.svelte +3 -3
- package/src/components/input/input.types.ts +6 -2
- package/src/components/invocation-rule-builder/invocation-rule-builder.examples.json +4 -4
- package/src/components/invocation-rule-builder/invocation-rule-builder.schema.json +3 -3
- package/src/components/invocation-rule-builder/invocation-rule-builder.schema.ts +1 -1
- package/src/components/invocation-rule-builder/invocation-rule-builder.svelte +6 -6
- package/src/components/invocation-rule-builder/invocation-rule-builder.types.ts +10 -10
- package/src/components/json-schema-editor/form-view.svelte +1 -1
- package/src/components/json-schema-editor/json-schema-editor-impl.svelte +2 -2
- package/src/components/json-schema-editor/json-schema-editor-state.svelte.ts +1 -1
- package/src/components/json-schema-editor/json-schema-editor-state.types.ts +1 -1
- package/src/components/json-schema-editor/json-schema-editor.css +3 -39
- package/src/components/json-schema-editor/json-schema-editor.schema.json +2 -2
- package/src/components/json-schema-editor/json-schema-editor.schema.ts +2 -2
- package/src/components/json-schema-editor/json-schema-editor.types.ts +1 -1
- package/src/components/json-schema-editor/json-schema-toolbar.svelte +15 -6
- package/src/components/json-schema-editor/property-editor-constraints.svelte +102 -0
- package/src/components/json-schema-editor/property-editor.constants.ts +47 -0
- package/src/components/json-schema-editor/property-editor.svelte +24 -156
- package/src/components/json-schema-editor/property-list.svelte +17 -15
- package/src/components/kanban-board/kanban-board-column-reorder.svelte.ts +2 -2
- package/src/components/kanban-board/kanban-board.examples.json +1 -1
- package/src/components/kanban-board/kanban-board.schema.json +1 -1
- package/src/components/kanban-board/kanban-board.schema.ts +1 -1
- package/src/components/kanban-board/kanban-board.svelte +3 -3
- package/src/components/kanban-board/kanban-board.types.ts +1 -1
- package/src/components/keyboard-shortcuts/keyboard-shortcuts.css +1 -5
- package/src/components/mega-menu/mega-menu.css +5 -3
- package/src/components/menu-bar/menu-bar.schema.json +2 -2
- package/src/components/menu-bar/menu-bar.schema.ts +2 -2
- package/src/components/menu-bar/menu-bar.svelte +3 -3
- package/src/components/menu-bar/menu-bar.types.ts +3 -3
- package/src/components/modal/modal.css +1 -1
- package/src/components/modal/modal.svelte +13 -17
- package/src/components/multi-select/multi-select.css +2 -6
- package/src/components/navigation-bar/navigation-bar.css +3 -2
- package/src/components/navigation-bar/navigation-bar.svelte +25 -10
- package/src/components/number-input/number-input.examples.json +1 -1
- package/src/components/number-input/number-input.schema.json +1 -1
- package/src/components/number-input/number-input.schema.ts +1 -1
- package/src/components/number-input/number-input.svelte +5 -5
- package/src/components/number-input/number-input.types.ts +1 -1
- package/src/components/phone-input/phone-input.schema.json +4 -3
- package/src/components/phone-input/phone-input.schema.ts +4 -3
- package/src/components/phone-input/phone-input.svelte +4 -4
- package/src/components/phone-input/phone-input.types.ts +8 -4
- package/src/components/pin-input/pin-input.schema.json +4 -3
- package/src/components/pin-input/pin-input.schema.ts +4 -3
- package/src/components/pin-input/pin-input.svelte +3 -3
- package/src/components/pin-input/pin-input.types.ts +7 -3
- package/src/components/popover/popover.svelte +12 -7
- package/src/components/pricing-card/pricing-card.examples.json +8 -2
- package/src/components/pricing-card/pricing-card.schema.json +4 -4
- package/src/components/pricing-card/pricing-card.schema.ts +5 -4
- package/src/components/pricing-card/pricing-card.svelte +10 -3
- package/src/components/pricing-card/pricing-card.types.ts +9 -5
- package/src/components/rating/rating.examples.json +1 -1
- package/src/components/rating/rating.schema.json +4 -3
- package/src/components/rating/rating.schema.ts +4 -3
- package/src/components/rating/rating.svelte +4 -4
- package/src/components/rating/rating.types.ts +7 -3
- package/src/components/schedule-builder/schedule-builder-cron-editor.svelte +96 -0
- package/src/components/schedule-builder/schedule-builder-cron-editor.ts +68 -0
- package/src/components/schedule-builder/schedule-builder-fields.svelte +168 -0
- package/src/components/schedule-builder/schedule-builder.css +39 -2
- package/src/components/schedule-builder/schedule-builder.examples.json +4 -4
- package/src/components/schedule-builder/schedule-builder.schema.json +1 -1
- package/src/components/schedule-builder/schedule-builder.schema.ts +1 -1
- package/src/components/schedule-builder/schedule-builder.svelte +77 -406
- package/src/components/schedule-builder/schedule-builder.types.ts +3 -3
- package/src/components/schema-form/schema-form-body.svelte +4 -4
- package/src/components/schema-form/schema-form.examples.json +1 -1
- package/src/components/schema-form/schema-form.schema.json +1 -1
- package/src/components/schema-form/schema-form.schema.ts +1 -1
- package/src/components/schema-form/schema-form.svelte +1 -1
- package/src/components/schema-form/schema-form.types.ts +1 -1
- package/src/components/search-field/search-field.schema.json +4 -4
- package/src/components/search-field/search-field.schema.ts +5 -5
- package/src/components/search-field/search-field.svelte +4 -4
- package/src/components/search-field/search-field.types.ts +3 -3
- package/src/components/segmented-control/segmented-control-state.svelte.ts +1 -1
- package/src/components/segmented-control/segmented-control.schema.json +7 -5
- package/src/components/segmented-control/segmented-control.schema.ts +8 -5
- package/src/components/segmented-control/segmented-control.svelte +5 -5
- package/src/components/segmented-control/segmented-control.types.ts +11 -6
- package/src/components/select/select.schema.json +3 -2
- package/src/components/select/select.schema.ts +4 -2
- package/src/components/select/select.svelte +2 -2
- package/src/components/select/select.types.ts +6 -2
- package/src/components/selectable-row/selectable-row.css +4 -3
- package/src/components/share-card/share-card.svelte +3 -3
- package/src/components/share-card/share-card.types.ts +11 -1
- package/src/components/sidebar/sidebar.svelte +1 -1
- package/src/components/slider/slider.examples.json +5 -5
- package/src/components/slider/slider.schema.json +1 -1
- package/src/components/slider/slider.schema.ts +1 -1
- package/src/components/slider/slider.svelte +3 -3
- package/src/components/slider/slider.types.ts +5 -5
- package/src/components/source-diff-viewer/source-diff-viewer.schema.json +10 -6
- package/src/components/source-diff-viewer/source-diff-viewer.schema.ts +10 -5
- package/src/components/source-diff-viewer/source-diff-viewer.svelte +6 -2
- package/src/components/source-diff-viewer/source-diff-viewer.types.ts +7 -2
- package/src/components/statistic-group/statistic-group.css +7 -0
- package/src/components/statistic-group/statistic-group.examples.json +6 -0
- package/src/components/status-dot/status-dot.types.ts +8 -2
- package/src/components/steps/steps.svelte +8 -4
- package/src/components/steps/steps.types.ts +14 -4
- package/src/components/tab-list/tab-list.schema.json +1 -1
- package/src/components/tab-list/tab-list.schema.ts +1 -1
- package/src/components/tab-list/tab-list.svelte +2 -2
- package/src/components/tab-list/tab-list.types.ts +1 -1
- package/src/components/table/table.css +1 -1
- package/src/components/table-header-cell/table-header-cell.svelte +2 -2
- package/src/components/table-of-contents/table-of-contents.css +1 -14
- package/src/components/table-of-contents/table-of-contents.variables.json +0 -2
- package/src/components/table-of-contents/table-of-contents.variables.ts +0 -2
- package/src/components/tag-input/tag-input.examples.json +1 -1
- package/src/components/tag-input/tag-input.schema.json +4 -4
- package/src/components/tag-input/tag-input.schema.ts +4 -4
- package/src/components/tag-input/tag-input.svelte +2 -2
- package/src/components/tag-input/tag-input.types.ts +2 -2
- package/src/components/time-field/time-field.css +4 -1
- package/src/components/time-field/time-field.schema.json +1 -1
- package/src/components/time-field/time-field.schema.ts +1 -1
- package/src/components/time-field/time-field.svelte +2 -2
- package/src/components/time-field/time-field.types.ts +1 -1
- package/src/components/timeline/timeline.examples.json +1 -1
- package/src/components/toggle/toggle.css +1 -1
- package/src/components/toggle/toggle.examples.json +3 -3
- package/src/components/toggle/toggle.schema.json +4 -3
- package/src/components/toggle/toggle.schema.ts +4 -3
- package/src/components/toggle/toggle.svelte +3 -3
- package/src/components/toggle/toggle.types.ts +8 -4
- package/src/components/toolbar/toolbar.examples.json +1 -1
- package/src/components/transfer-list/transfer-list.css +25 -105
- package/src/components/transfer-list/transfer-list.examples.json +2 -2
- package/src/components/transfer-list/transfer-list.schema.json +5 -5
- package/src/components/transfer-list/transfer-list.schema.ts +5 -5
- package/src/components/transfer-list/transfer-list.svelte +108 -297
- package/src/components/transfer-list/transfer-list.types.ts +8 -8
- package/src/components/tree/tree.examples.json +1 -1
- package/src/components/tree/tree.schema.json +3 -2
- package/src/components/tree/tree.schema.ts +3 -2
- package/src/components/tree/tree.svelte +4 -4
- package/src/components/tree/tree.types.ts +5 -2
- package/src/components/tree-item/tree-item.schema.json +3 -2
- package/src/components/tree-item/tree-item.schema.ts +2 -1
- package/src/components/tree-item/tree-item.svelte +2 -2
- package/src/components/tree-item/tree-item.types.ts +5 -2
- package/src/index.ts +18 -91
- package/src/styles/components/_label-value.css +20 -0
- package/src/styles/components/_row-item.css +5 -0
- package/src/styles/components.css +4 -16
- package/src/styles/index.css +1 -0
- package/src/styles/tokens-base.css +2 -3
- package/src/utilities/attachments.ts +1 -1
- package/src/utilities/color-luminance.ts +49 -1
- package/src/utilities/dialog-props.ts +24 -0
- package/src/utilities/focus.ts +1 -1
- package/dist/components/_internal/person-byline.css +0 -29
- package/dist/components/_internal/person-byline.svelte.d.ts +0 -9
- package/dist/components/_internal/section-skeleton.css +0 -45
- package/dist/components/blog-section/blog-section.css +0 -56
- package/dist/components/blog-section/blog-section.schema.js +0 -142
- package/dist/components/blog-section/blog-section.svelte.d.ts +0 -19
- package/dist/components/blog-section/blog-section.types.d.ts +0 -56
- package/dist/components/blog-section/index.d.ts +0 -5
- package/dist/components/blog-section/index.js +0 -305
- package/dist/components/call-to-action-section/call-to-action-section.css +0 -54
- package/dist/components/call-to-action-section/call-to-action-section.schema.js +0 -127
- package/dist/components/call-to-action-section/call-to-action-section.svelte.d.ts +0 -19
- package/dist/components/call-to-action-section/call-to-action-section.types.d.ts +0 -64
- package/dist/components/call-to-action-section/call-to-action-section.variables.js +0 -61
- package/dist/components/call-to-action-section/index.d.ts +0 -5
- package/dist/components/call-to-action-section/index.js +0 -454
- package/dist/components/event-stream-viewer/event-stream-viewer-keys.d.ts +0 -6
- package/dist/components/event-stream-viewer/event-stream-viewer.css +0 -546
- package/dist/components/event-stream-viewer/event-stream-viewer.schema.d.ts +0 -3
- package/dist/components/event-stream-viewer/event-stream-viewer.schema.js +0 -195
- package/dist/components/event-stream-viewer/event-stream-viewer.svelte.d.ts +0 -20
- package/dist/components/event-stream-viewer/event-stream-viewer.types.d.ts +0 -202
- package/dist/components/event-stream-viewer/event-stream-viewer.variables.d.ts +0 -2
- package/dist/components/event-stream-viewer/index.d.ts +0 -5
- package/dist/components/event-stream-viewer/index.js +0 -1538
- package/dist/components/event-timeline/event-timeline-modal.d.ts +0 -5
- package/dist/components/event-timeline/event-timeline.css +0 -313
- package/dist/components/event-timeline/event-timeline.css.d.ts +0 -1
- package/dist/components/event-timeline/event-timeline.schema.d.ts +0 -3
- package/dist/components/event-timeline/event-timeline.schema.js +0 -155
- package/dist/components/event-timeline/event-timeline.svelte.d.ts +0 -20
- package/dist/components/event-timeline/event-timeline.types.d.ts +0 -75
- package/dist/components/event-timeline/event-timeline.variables.d.ts +0 -2
- package/dist/components/event-timeline/event-timeline.variables.js +0 -61
- package/dist/components/event-timeline/index.d.ts +0 -5
- package/dist/components/event-timeline/index.js +0 -4026
- package/dist/components/faceted-filter-bar/faceted-filter-bar.css.d.ts +0 -1
- package/dist/components/faceted-filter-bar/faceted-filter-bar.schema.d.ts +0 -3
- package/dist/components/faceted-filter-bar/faceted-filter-bar.variables.d.ts +0 -2
- package/dist/components/faceted-filter-bar/faceted-filter-bar.variables.js +0 -61
- package/dist/components/faceted-filter-bar/index.d.ts +0 -5
- package/dist/components/faceted-filter-bar/index.js +0 -1110
- package/dist/components/feature-section/feature-section.css +0 -130
- package/dist/components/feature-section/feature-section.css.d.ts +0 -1
- package/dist/components/feature-section/feature-section.schema.d.ts +0 -3
- package/dist/components/feature-section/feature-section.schema.js +0 -142
- package/dist/components/feature-section/feature-section.svelte.d.ts +0 -19
- package/dist/components/feature-section/feature-section.types.d.ts +0 -64
- package/dist/components/feature-section/feature-section.variables.d.ts +0 -2
- package/dist/components/feature-section/feature-section.variables.js +0 -61
- package/dist/components/feature-section/index.d.ts +0 -5
- package/dist/components/feature-section/index.js +0 -248
- package/dist/components/hero-section/hero-section.css +0 -167
- package/dist/components/hero-section/hero-section.css.d.ts +0 -1
- package/dist/components/hero-section/hero-section.schema.d.ts +0 -3
- package/dist/components/hero-section/hero-section.schema.js +0 -123
- package/dist/components/hero-section/hero-section.svelte.d.ts +0 -19
- package/dist/components/hero-section/hero-section.types.d.ts +0 -48
- package/dist/components/hero-section/hero-section.variables.d.ts +0 -2
- package/dist/components/hero-section/hero-section.variables.js +0 -61
- package/dist/components/hero-section/index.d.ts +0 -5
- package/dist/components/hero-section/index.js +0 -288
- package/dist/components/logo-cloud/index.d.ts +0 -5
- package/dist/components/logo-cloud/index.js +0 -238
- package/dist/components/logo-cloud/logo-cloud.css +0 -88
- package/dist/components/logo-cloud/logo-cloud.css.d.ts +0 -1
- package/dist/components/logo-cloud/logo-cloud.schema.d.ts +0 -3
- package/dist/components/logo-cloud/logo-cloud.schema.js +0 -123
- package/dist/components/logo-cloud/logo-cloud.svelte.d.ts +0 -19
- package/dist/components/logo-cloud/logo-cloud.types.d.ts +0 -48
- package/dist/components/logo-cloud/logo-cloud.variables.d.ts +0 -2
- package/dist/components/logo-cloud/logo-cloud.variables.js +0 -61
- package/dist/components/newsletter-section/index.d.ts +0 -5
- package/dist/components/newsletter-section/index.js +0 -1233
- package/dist/components/newsletter-section/newsletter-section.css +0 -54
- package/dist/components/newsletter-section/newsletter-section.css.d.ts +0 -1
- package/dist/components/newsletter-section/newsletter-section.schema.d.ts +0 -3
- package/dist/components/newsletter-section/newsletter-section.schema.js +0 -122
- package/dist/components/newsletter-section/newsletter-section.svelte.d.ts +0 -19
- package/dist/components/newsletter-section/newsletter-section.types.d.ts +0 -48
- package/dist/components/newsletter-section/newsletter-section.variables.d.ts +0 -2
- package/dist/components/newsletter-section/newsletter-section.variables.js +0 -61
- package/dist/components/pricing-section/index.d.ts +0 -5
- package/dist/components/pricing-section/index.js +0 -572
- package/dist/components/pricing-section/pricing-section.css +0 -55
- package/dist/components/pricing-section/pricing-section.css.d.ts +0 -1
- package/dist/components/pricing-section/pricing-section.schema.d.ts +0 -3
- package/dist/components/pricing-section/pricing-section.schema.js +0 -142
- package/dist/components/pricing-section/pricing-section.svelte.d.ts +0 -19
- package/dist/components/pricing-section/pricing-section.types.d.ts +0 -52
- package/dist/components/pricing-section/pricing-section.variables.d.ts +0 -2
- package/dist/components/pricing-section/pricing-section.variables.js +0 -61
- package/dist/components/sheet/index.d.ts +0 -5
- package/dist/components/sheet/index.js +0 -1335
- package/dist/components/sheet/sheet.css +0 -220
- package/dist/components/sheet/sheet.css.d.ts +0 -1
- package/dist/components/sheet/sheet.schema.d.ts +0 -3
- package/dist/components/sheet/sheet.schema.js +0 -115
- package/dist/components/sheet/sheet.svelte.d.ts +0 -18
- package/dist/components/sheet/sheet.types.d.ts +0 -44
- package/dist/components/sheet/sheet.variables.d.ts +0 -2
- package/dist/components/statistics-section/index.d.ts +0 -5
- package/dist/components/statistics-section/index.js +0 -417
- package/dist/components/statistics-section/statistics-section.css +0 -30
- package/dist/components/statistics-section/statistics-section.css.d.ts +0 -1
- package/dist/components/statistics-section/statistics-section.schema.d.ts +0 -3
- package/dist/components/statistics-section/statistics-section.schema.js +0 -143
- package/dist/components/statistics-section/statistics-section.svelte.d.ts +0 -19
- package/dist/components/statistics-section/statistics-section.types.d.ts +0 -63
- package/dist/components/statistics-section/statistics-section.variables.d.ts +0 -2
- package/dist/components/statistics-section/statistics-section.variables.js +0 -61
- package/dist/components/team-section/index.d.ts +0 -5
- package/dist/components/team-section/index.js +0 -4321
- package/dist/components/team-section/team-section.css +0 -54
- package/dist/components/team-section/team-section.css.d.ts +0 -1
- package/dist/components/team-section/team-section.schema.d.ts +0 -3
- package/dist/components/team-section/team-section.schema.js +0 -136
- package/dist/components/team-section/team-section.svelte.d.ts +0 -19
- package/dist/components/team-section/team-section.types.d.ts +0 -56
- package/dist/components/team-section/team-section.variables.d.ts +0 -2
- package/dist/components/team-section/team-section.variables.js +0 -61
- package/dist/components/testimonial-section/index.d.ts +0 -5
- package/dist/components/testimonial-section/index.js +0 -561
- package/dist/components/testimonial-section/testimonial-section.css +0 -41
- package/dist/components/testimonial-section/testimonial-section.css.d.ts +0 -1
- package/dist/components/testimonial-section/testimonial-section.schema.d.ts +0 -3
- package/dist/components/testimonial-section/testimonial-section.schema.js +0 -131
- package/dist/components/testimonial-section/testimonial-section.svelte.d.ts +0 -19
- package/dist/components/testimonial-section/testimonial-section.types.d.ts +0 -53
- package/dist/components/testimonial-section/testimonial-section.variables.d.ts +0 -2
- package/dist/components/testimonial-section/testimonial-section.variables.js +0 -61
- package/dist/components/typography/index.d.ts +0 -5
- package/dist/components/typography/typography.css +0 -149
- package/dist/components/typography/typography.css.d.ts +0 -1
- package/dist/components/typography/typography.schema.d.ts +0 -3
- package/dist/components/typography/typography.schema.js +0 -214
- package/dist/components/typography/typography.svelte.d.ts +0 -16
- package/dist/components/typography/typography.types.d.ts +0 -86
- package/dist/components/typography/typography.variables.d.ts +0 -2
- package/dist/components/typography/typography.variables.js +0 -61
- package/dist/server/components/blog-section/index.js +0 -14
- package/dist/server/components/call-to-action-section/index.js +0 -16
- package/dist/server/components/event-stream-viewer/index.js +0 -25
- package/dist/server/components/event-timeline/index.js +0 -22
- package/dist/server/components/faceted-filter-bar/index.js +0 -25
- package/dist/server/components/feature-section/index.js +0 -13
- package/dist/server/components/hero-section/index.js +0 -14
- package/dist/server/components/logo-cloud/index.js +0 -13
- package/dist/server/components/newsletter-section/index.js +0 -22
- package/dist/server/components/pricing-section/index.js +0 -17
- package/dist/server/components/sheet/index.js +0 -20
- package/dist/server/components/statistics-section/index.js +0 -18
- package/dist/server/components/team-section/index.js +0 -31
- package/dist/server/components/testimonial-section/index.js +0 -19
- package/dist/server/components/typography/index.js +0 -12
- package/dist/server/index.server-0j8ttfb3.js +0 -94
- package/dist/server/index.server-2eb8pcev.js +0 -295
- package/dist/server/index.server-70j8j998.js +0 -103
- package/dist/server/index.server-72d0qgdy.js +0 -126
- package/dist/server/index.server-79bg6rad.js +0 -102
- package/dist/server/index.server-7ssngbpa.js +0 -9
- package/dist/server/index.server-8s33z1q7.js +0 -106
- package/dist/server/index.server-91yqn19v.js +0 -87
- package/dist/server/index.server-9emgn750.js +0 -9
- package/dist/server/index.server-b7pq5xpd.js +0 -126
- package/dist/server/index.server-bfmd7nf6.js +0 -99
- package/dist/server/index.server-ff9zfw15.js +0 -88
- package/dist/server/index.server-hwajb8z6.js +0 -38
- package/dist/server/index.server-kmn9zrqn.js +0 -9
- package/dist/server/index.server-m1r7jk3n.js +0 -447
- package/dist/server/index.server-m9p9vfj1.js +0 -91
- package/dist/server/index.server-mgvey6vx.js +0 -384
- package/dist/server/index.server-ne3hnn6e.js +0 -56
- package/dist/server/index.server-p9w4tdax.js +0 -9
- package/dist/server/index.server-pwxe9s42.js +0 -99
- package/dist/server/index.server-v12jk4c9.js +0 -91
- package/dist/server/index.server-v6b3k6cq.js +0 -15
- package/dist/server/index.server-xqbes4jd.js +0 -397
- package/dist/server/index.server-yase1x1a.js +0 -23
- package/src/components/_internal/person-byline.css +0 -29
- package/src/components/_internal/person-byline.svelte +0 -14
- package/src/components/_internal/section-skeleton.css +0 -45
- package/src/components/blog-section/blog-section.css +0 -56
- package/src/components/blog-section/blog-section.examples.json +0 -13
- package/src/components/blog-section/blog-section.schema.json +0 -82
- package/src/components/blog-section/blog-section.schema.ts +0 -86
- package/src/components/blog-section/blog-section.svelte +0 -76
- package/src/components/blog-section/blog-section.types.ts +0 -59
- package/src/components/blog-section/index.ts +0 -6
- package/src/components/call-to-action-section/call-to-action-section.css +0 -54
- package/src/components/call-to-action-section/call-to-action-section.examples.json +0 -13
- package/src/components/call-to-action-section/call-to-action-section.schema.json +0 -67
- package/src/components/call-to-action-section/call-to-action-section.schema.ts +0 -71
- package/src/components/call-to-action-section/call-to-action-section.svelte +0 -36
- package/src/components/call-to-action-section/call-to-action-section.types.ts +0 -67
- package/src/components/call-to-action-section/index.ts +0 -10
- package/src/components/event-stream-viewer/event-stream-viewer-keys.ts +0 -74
- package/src/components/event-stream-viewer/event-stream-viewer.css +0 -546
- package/src/components/event-stream-viewer/event-stream-viewer.examples.json +0 -37
- package/src/components/event-stream-viewer/event-stream-viewer.schema.json +0 -128
- package/src/components/event-stream-viewer/event-stream-viewer.schema.ts +0 -150
- package/src/components/event-stream-viewer/event-stream-viewer.svelte +0 -395
- package/src/components/event-stream-viewer/event-stream-viewer.types.ts +0 -212
- package/src/components/event-stream-viewer/event-stream-viewer.variables.json +0 -1
- package/src/components/event-stream-viewer/event-stream-viewer.variables.ts +0 -6
- package/src/components/event-stream-viewer/index.ts +0 -17
- package/src/components/event-timeline/event-timeline-modal.ts +0 -64
- package/src/components/event-timeline/event-timeline.css +0 -313
- package/src/components/event-timeline/event-timeline.examples.json +0 -25
- package/src/components/event-timeline/event-timeline.schema.json +0 -95
- package/src/components/event-timeline/event-timeline.schema.ts +0 -99
- package/src/components/event-timeline/event-timeline.svelte +0 -503
- package/src/components/event-timeline/event-timeline.types.ts +0 -80
- package/src/components/event-timeline/event-timeline.variables.json +0 -1
- package/src/components/event-timeline/event-timeline.variables.ts +0 -3
- package/src/components/event-timeline/index.ts +0 -12
- package/src/components/faceted-filter-bar/faceted-filter-bar.examples.json +0 -25
- package/src/components/faceted-filter-bar/faceted-filter-bar.variables.json +0 -1
- package/src/components/faceted-filter-bar/faceted-filter-bar.variables.ts +0 -3
- package/src/components/faceted-filter-bar/index.ts +0 -13
- package/src/components/feature-section/feature-section.css +0 -130
- package/src/components/feature-section/feature-section.examples.json +0 -13
- package/src/components/feature-section/feature-section.schema.json +0 -82
- package/src/components/feature-section/feature-section.schema.ts +0 -86
- package/src/components/feature-section/feature-section.svelte +0 -53
- package/src/components/feature-section/feature-section.types.ts +0 -71
- package/src/components/feature-section/feature-section.variables.json +0 -1
- package/src/components/feature-section/feature-section.variables.ts +0 -3
- package/src/components/feature-section/index.ts +0 -11
- package/src/components/hero-section/hero-section.css +0 -167
- package/src/components/hero-section/hero-section.examples.json +0 -13
- package/src/components/hero-section/hero-section.schema.json +0 -63
- package/src/components/hero-section/hero-section.schema.ts +0 -67
- package/src/components/hero-section/hero-section.svelte +0 -50
- package/src/components/hero-section/hero-section.types.ts +0 -51
- package/src/components/hero-section/hero-section.variables.json +0 -1
- package/src/components/hero-section/hero-section.variables.ts +0 -3
- package/src/components/hero-section/index.ts +0 -10
- package/src/components/logo-cloud/index.ts +0 -6
- package/src/components/logo-cloud/logo-cloud.css +0 -88
- package/src/components/logo-cloud/logo-cloud.examples.json +0 -13
- package/src/components/logo-cloud/logo-cloud.schema.json +0 -63
- package/src/components/logo-cloud/logo-cloud.schema.ts +0 -67
- package/src/components/logo-cloud/logo-cloud.svelte +0 -50
- package/src/components/logo-cloud/logo-cloud.types.ts +0 -51
- package/src/components/logo-cloud/logo-cloud.variables.json +0 -1
- package/src/components/logo-cloud/logo-cloud.variables.ts +0 -3
- package/src/components/newsletter-section/index.ts +0 -6
- package/src/components/newsletter-section/newsletter-section.css +0 -54
- package/src/components/newsletter-section/newsletter-section.examples.json +0 -13
- package/src/components/newsletter-section/newsletter-section.schema.json +0 -62
- package/src/components/newsletter-section/newsletter-section.schema.ts +0 -66
- package/src/components/newsletter-section/newsletter-section.svelte +0 -58
- package/src/components/newsletter-section/newsletter-section.types.ts +0 -50
- package/src/components/newsletter-section/newsletter-section.variables.json +0 -1
- package/src/components/newsletter-section/newsletter-section.variables.ts +0 -3
- package/src/components/pricing-section/index.ts +0 -6
- package/src/components/pricing-section/pricing-section.css +0 -55
- package/src/components/pricing-section/pricing-section.examples.json +0 -13
- package/src/components/pricing-section/pricing-section.schema.json +0 -82
- package/src/components/pricing-section/pricing-section.schema.ts +0 -86
- package/src/components/pricing-section/pricing-section.svelte +0 -53
- package/src/components/pricing-section/pricing-section.types.ts +0 -55
- package/src/components/pricing-section/pricing-section.variables.json +0 -1
- package/src/components/pricing-section/pricing-section.variables.ts +0 -3
- package/src/components/sheet/index.ts +0 -6
- package/src/components/sheet/sheet.css +0 -220
- package/src/components/sheet/sheet.examples.json +0 -13
- package/src/components/sheet/sheet.schema.json +0 -53
- package/src/components/sheet/sheet.schema.ts +0 -61
- package/src/components/sheet/sheet.svelte +0 -141
- package/src/components/sheet/sheet.types.ts +0 -55
- package/src/components/sheet/sheet.variables.json +0 -1
- package/src/components/sheet/sheet.variables.ts +0 -3
- package/src/components/statistics-section/index.ts +0 -6
- package/src/components/statistics-section/statistics-section.css +0 -30
- package/src/components/statistics-section/statistics-section.examples.json +0 -13
- package/src/components/statistics-section/statistics-section.schema.json +0 -83
- package/src/components/statistics-section/statistics-section.schema.ts +0 -87
- package/src/components/statistics-section/statistics-section.svelte +0 -47
- package/src/components/statistics-section/statistics-section.types.ts +0 -72
- package/src/components/statistics-section/statistics-section.variables.json +0 -1
- package/src/components/statistics-section/statistics-section.variables.ts +0 -3
- package/src/components/team-section/index.ts +0 -6
- package/src/components/team-section/team-section.css +0 -54
- package/src/components/team-section/team-section.examples.json +0 -13
- package/src/components/team-section/team-section.schema.json +0 -76
- package/src/components/team-section/team-section.schema.ts +0 -80
- package/src/components/team-section/team-section.svelte +0 -72
- package/src/components/team-section/team-section.types.ts +0 -59
- package/src/components/team-section/team-section.variables.json +0 -1
- package/src/components/team-section/team-section.variables.ts +0 -3
- package/src/components/testimonial-section/index.ts +0 -10
- package/src/components/testimonial-section/testimonial-section.css +0 -41
- package/src/components/testimonial-section/testimonial-section.examples.json +0 -13
- package/src/components/testimonial-section/testimonial-section.schema.json +0 -71
- package/src/components/testimonial-section/testimonial-section.schema.ts +0 -75
- package/src/components/testimonial-section/testimonial-section.svelte +0 -55
- package/src/components/testimonial-section/testimonial-section.types.ts +0 -57
- package/src/components/testimonial-section/testimonial-section.variables.json +0 -1
- package/src/components/testimonial-section/testimonial-section.variables.ts +0 -3
- package/src/components/typography/index.ts +0 -6
- package/src/components/typography/typography.css +0 -149
- package/src/components/typography/typography.examples.json +0 -13
- package/src/components/typography/typography.schema.json +0 -154
- package/src/components/typography/typography.schema.ts +0 -158
- package/src/components/typography/typography.svelte +0 -45
- package/src/components/typography/typography.types.ts +0 -102
- package/src/components/typography/typography.variables.json +0 -1
- package/src/components/typography/typography.variables.ts +0 -3
- /package/dist/components/{blog-section/blog-section.css.d.ts → feed-boundary/feed-boundary.css.d.ts} +0 -0
- /package/dist/components/{blog-section/blog-section.schema.d.ts → feed-boundary/feed-boundary.schema.d.ts} +0 -0
- /package/dist/components/{blog-section/blog-section.variables.d.ts → feed-boundary/feed-boundary.variables.d.ts} +0 -0
- /package/dist/components/{call-to-action-section/call-to-action-section.css.d.ts → feed-event/feed-event.css.d.ts} +0 -0
- /package/dist/components/{event-stream-viewer/event-stream-viewer.css.d.ts → filter-bar/filter-bar.css.d.ts} +0 -0
- /package/dist/components/{call-to-action-section/call-to-action-section.schema.d.ts → filter-bar/filter-bar.schema.d.ts} +0 -0
- /package/dist/components/{call-to-action-section/call-to-action-section.variables.d.ts → filter-bar/filter-bar.variables.d.ts} +0 -0
- /package/src/components/{blog-section/blog-section.variables.json → feed-boundary/feed-boundary.variables.json} +0 -0
- /package/src/components/{blog-section/blog-section.variables.ts → feed-boundary/feed-boundary.variables.ts} +0 -0
- /package/src/components/{faceted-filter-bar/faceted-filter-bar.schema.json → filter-bar/filter-bar.schema.json} +0 -0
- /package/src/components/{faceted-filter-bar/faceted-filter-bar.schema.ts → filter-bar/filter-bar.schema.ts} +0 -0
- /package/src/components/{call-to-action-section/call-to-action-section.variables.json → filter-bar/filter-bar.variables.json} +0 -0
- /package/src/components/{call-to-action-section/call-to-action-section.variables.ts → filter-bar/filter-bar.variables.ts} +0 -0
|
@@ -263,9 +263,9 @@ async function detectOverflow(state4, options) {
|
|
|
263
263
|
} = evaluate(options, state4);
|
|
264
264
|
const paddingObject = getPaddingObject(padding);
|
|
265
265
|
const altContext = elementContext === "floating" ? "reference" : "floating";
|
|
266
|
-
const
|
|
266
|
+
const element2 = elements[altBoundary ? altContext : elementContext];
|
|
267
267
|
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
268
|
-
element: ((_await$platform$isEle = await (platform.isElement == null ? undefined : platform.isElement(
|
|
268
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? undefined : platform.isElement(element2))) != null ? _await$platform$isEle : true) ? element2 : element2.contextElement || await (platform.getDocumentElement == null ? undefined : platform.getDocumentElement(elements.floating)),
|
|
269
269
|
boundary,
|
|
270
270
|
rootBoundary,
|
|
271
271
|
strategy
|
|
@@ -418,7 +418,7 @@ var MAX_RESET_COUNT = 50, computePosition = async (reference, floating, config)
|
|
|
418
418
|
x: nextX,
|
|
419
419
|
y: nextY,
|
|
420
420
|
data,
|
|
421
|
-
reset:
|
|
421
|
+
reset: reset5
|
|
422
422
|
} = await fn({
|
|
423
423
|
x,
|
|
424
424
|
y,
|
|
@@ -439,18 +439,18 @@ var MAX_RESET_COUNT = 50, computePosition = async (reference, floating, config)
|
|
|
439
439
|
...middlewareData[name],
|
|
440
440
|
...data
|
|
441
441
|
};
|
|
442
|
-
if (
|
|
442
|
+
if (reset5 && resetCount < MAX_RESET_COUNT) {
|
|
443
443
|
resetCount++;
|
|
444
|
-
if (typeof
|
|
445
|
-
if (
|
|
446
|
-
statefulPlacement =
|
|
444
|
+
if (typeof reset5 === "object") {
|
|
445
|
+
if (reset5.placement) {
|
|
446
|
+
statefulPlacement = reset5.placement;
|
|
447
447
|
}
|
|
448
|
-
if (
|
|
449
|
-
rects =
|
|
448
|
+
if (reset5.rects) {
|
|
449
|
+
rects = reset5.rects === true ? await platform.getElementRects({
|
|
450
450
|
reference,
|
|
451
451
|
floating,
|
|
452
452
|
strategy
|
|
453
|
-
}) :
|
|
453
|
+
}) : reset5.rects;
|
|
454
454
|
}
|
|
455
455
|
({
|
|
456
456
|
x,
|
|
@@ -481,10 +481,10 @@ var MAX_RESET_COUNT = 50, computePosition = async (reference, floating, config)
|
|
|
481
481
|
middlewareData
|
|
482
482
|
} = state4;
|
|
483
483
|
const {
|
|
484
|
-
element,
|
|
484
|
+
element: element2,
|
|
485
485
|
padding = 0
|
|
486
486
|
} = evaluate(options, state4) || {};
|
|
487
|
-
if (
|
|
487
|
+
if (element2 == null) {
|
|
488
488
|
return {};
|
|
489
489
|
}
|
|
490
490
|
const paddingObject = getPaddingObject(padding);
|
|
@@ -494,14 +494,14 @@ var MAX_RESET_COUNT = 50, computePosition = async (reference, floating, config)
|
|
|
494
494
|
};
|
|
495
495
|
const axis = getAlignmentAxis(placement);
|
|
496
496
|
const length = getAxisLength(axis);
|
|
497
|
-
const arrowDimensions = await platform.getDimensions(
|
|
497
|
+
const arrowDimensions = await platform.getDimensions(element2);
|
|
498
498
|
const isYAxis = axis === "y";
|
|
499
499
|
const minProp = isYAxis ? "top" : "left";
|
|
500
500
|
const maxProp = isYAxis ? "bottom" : "right";
|
|
501
501
|
const clientProp = isYAxis ? "clientHeight" : "clientWidth";
|
|
502
502
|
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
503
503
|
const startDiff = coords[axis] - rects.reference[axis];
|
|
504
|
-
const arrowOffsetParent = await (platform.getOffsetParent == null ? undefined : platform.getOffsetParent(
|
|
504
|
+
const arrowOffsetParent = await (platform.getOffsetParent == null ? undefined : platform.getOffsetParent(element2));
|
|
505
505
|
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
506
506
|
if (!clientSize || !await (platform.isElement == null ? undefined : platform.isElement(arrowOffsetParent))) {
|
|
507
507
|
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
@@ -1136,26 +1136,26 @@ function isShadowRoot(value) {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
1138
1138
|
}
|
|
1139
|
-
function isOverflowElement(
|
|
1139
|
+
function isOverflowElement(element2) {
|
|
1140
1140
|
const {
|
|
1141
1141
|
overflow,
|
|
1142
1142
|
overflowX,
|
|
1143
1143
|
overflowY,
|
|
1144
1144
|
display
|
|
1145
|
-
} = getComputedStyle2(
|
|
1145
|
+
} = getComputedStyle2(element2);
|
|
1146
1146
|
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== "inline" && display !== "contents";
|
|
1147
1147
|
}
|
|
1148
|
-
function isTableElement(
|
|
1149
|
-
return /^(table|td|th)$/.test(getNodeName(
|
|
1148
|
+
function isTableElement(element2) {
|
|
1149
|
+
return /^(table|td|th)$/.test(getNodeName(element2));
|
|
1150
1150
|
}
|
|
1151
|
-
function isTopLayer(
|
|
1151
|
+
function isTopLayer(element2) {
|
|
1152
1152
|
try {
|
|
1153
|
-
if (
|
|
1153
|
+
if (element2.matches(":popover-open")) {
|
|
1154
1154
|
return true;
|
|
1155
1155
|
}
|
|
1156
1156
|
} catch (_e) {}
|
|
1157
1157
|
try {
|
|
1158
|
-
return
|
|
1158
|
+
return element2.matches(":modal");
|
|
1159
1159
|
} catch (_e) {
|
|
1160
1160
|
return false;
|
|
1161
1161
|
}
|
|
@@ -1164,8 +1164,8 @@ function isContainingBlock(elementOrCss) {
|
|
|
1164
1164
|
const css = isElement(elementOrCss) ? getComputedStyle2(elementOrCss) : elementOrCss;
|
|
1165
1165
|
return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || "") || containRe.test(css.contain || "");
|
|
1166
1166
|
}
|
|
1167
|
-
function getContainingBlock(
|
|
1168
|
-
let currentNode = getParentNode(
|
|
1167
|
+
function getContainingBlock(element2) {
|
|
1168
|
+
let currentNode = getParentNode(element2);
|
|
1169
1169
|
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1170
1170
|
if (isContainingBlock(currentNode)) {
|
|
1171
1171
|
return currentNode;
|
|
@@ -1185,19 +1185,19 @@ function isWebKit() {
|
|
|
1185
1185
|
function isLastTraversableNode(node) {
|
|
1186
1186
|
return /^(html|body|#document)$/.test(getNodeName(node));
|
|
1187
1187
|
}
|
|
1188
|
-
function getComputedStyle2(
|
|
1189
|
-
return getWindow(
|
|
1188
|
+
function getComputedStyle2(element2) {
|
|
1189
|
+
return getWindow(element2).getComputedStyle(element2);
|
|
1190
1190
|
}
|
|
1191
|
-
function getNodeScroll(
|
|
1192
|
-
if (isElement(
|
|
1191
|
+
function getNodeScroll(element2) {
|
|
1192
|
+
if (isElement(element2)) {
|
|
1193
1193
|
return {
|
|
1194
|
-
scrollLeft:
|
|
1195
|
-
scrollTop:
|
|
1194
|
+
scrollLeft: element2.scrollLeft,
|
|
1195
|
+
scrollTop: element2.scrollTop
|
|
1196
1196
|
};
|
|
1197
1197
|
}
|
|
1198
1198
|
return {
|
|
1199
|
-
scrollLeft:
|
|
1200
|
-
scrollTop:
|
|
1199
|
+
scrollLeft: element2.scrollX,
|
|
1200
|
+
scrollTop: element2.scrollY
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
1203
|
function getParentNode(node) {
|
|
@@ -1262,13 +1262,13 @@ __export(exports_floating_ui_dom, {
|
|
|
1262
1262
|
autoPlacement: () => autoPlacement2,
|
|
1263
1263
|
arrow: () => arrow2
|
|
1264
1264
|
});
|
|
1265
|
-
function getCssDimensions(
|
|
1266
|
-
const css = getComputedStyle2(
|
|
1265
|
+
function getCssDimensions(element2) {
|
|
1266
|
+
const css = getComputedStyle2(element2);
|
|
1267
1267
|
let width = parseFloat(css.width) || 0;
|
|
1268
1268
|
let height = parseFloat(css.height) || 0;
|
|
1269
|
-
const hasOffset = isHTMLElement(
|
|
1270
|
-
const offsetWidth = hasOffset ?
|
|
1271
|
-
const offsetHeight = hasOffset ?
|
|
1269
|
+
const hasOffset = isHTMLElement(element2);
|
|
1270
|
+
const offsetWidth = hasOffset ? element2.offsetWidth : width;
|
|
1271
|
+
const offsetHeight = hasOffset ? element2.offsetHeight : height;
|
|
1272
1272
|
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
1273
1273
|
if (shouldFallback) {
|
|
1274
1274
|
width = offsetWidth;
|
|
@@ -1280,11 +1280,11 @@ function getCssDimensions(element) {
|
|
|
1280
1280
|
$: shouldFallback
|
|
1281
1281
|
};
|
|
1282
1282
|
}
|
|
1283
|
-
function unwrapElement(
|
|
1284
|
-
return !isElement(
|
|
1283
|
+
function unwrapElement(element2) {
|
|
1284
|
+
return !isElement(element2) ? element2.contextElement : element2;
|
|
1285
1285
|
}
|
|
1286
|
-
function getScale(
|
|
1287
|
-
const domElement = unwrapElement(
|
|
1286
|
+
function getScale(element2) {
|
|
1287
|
+
const domElement = unwrapElement(element2);
|
|
1288
1288
|
if (!isHTMLElement(domElement)) {
|
|
1289
1289
|
return createCoords(1);
|
|
1290
1290
|
}
|
|
@@ -1292,10 +1292,10 @@ function getScale(element) {
|
|
|
1292
1292
|
const {
|
|
1293
1293
|
width,
|
|
1294
1294
|
height,
|
|
1295
|
-
$: $
|
|
1295
|
+
$: $9
|
|
1296
1296
|
} = getCssDimensions(domElement);
|
|
1297
|
-
let x = ($
|
|
1298
|
-
let y = ($
|
|
1297
|
+
let x = ($9 ? round(rect.width) : rect.width) / width;
|
|
1298
|
+
let y = ($9 ? round(rect.height) : rect.height) / height;
|
|
1299
1299
|
if (!x || !Number.isFinite(x)) {
|
|
1300
1300
|
x = 1;
|
|
1301
1301
|
}
|
|
@@ -1307,8 +1307,8 @@ function getScale(element) {
|
|
|
1307
1307
|
y
|
|
1308
1308
|
};
|
|
1309
1309
|
}
|
|
1310
|
-
function getVisualOffsets(
|
|
1311
|
-
const win = getWindow(
|
|
1310
|
+
function getVisualOffsets(element2) {
|
|
1311
|
+
const win = getWindow(element2);
|
|
1312
1312
|
if (!isWebKit() || !win.visualViewport) {
|
|
1313
1313
|
return noOffsets;
|
|
1314
1314
|
}
|
|
@@ -1317,24 +1317,24 @@ function getVisualOffsets(element) {
|
|
|
1317
1317
|
y: win.visualViewport.offsetTop
|
|
1318
1318
|
};
|
|
1319
1319
|
}
|
|
1320
|
-
function shouldAddVisualOffsets(
|
|
1320
|
+
function shouldAddVisualOffsets(element2, isFixed, floatingOffsetParent) {
|
|
1321
1321
|
if (isFixed === undefined) {
|
|
1322
1322
|
isFixed = false;
|
|
1323
1323
|
}
|
|
1324
|
-
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(
|
|
1324
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element2)) {
|
|
1325
1325
|
return false;
|
|
1326
1326
|
}
|
|
1327
1327
|
return isFixed;
|
|
1328
1328
|
}
|
|
1329
|
-
function getBoundingClientRect(
|
|
1329
|
+
function getBoundingClientRect(element2, includeScale, isFixedStrategy, offsetParent) {
|
|
1330
1330
|
if (includeScale === undefined) {
|
|
1331
1331
|
includeScale = false;
|
|
1332
1332
|
}
|
|
1333
1333
|
if (isFixedStrategy === undefined) {
|
|
1334
1334
|
isFixedStrategy = false;
|
|
1335
1335
|
}
|
|
1336
|
-
const clientRect =
|
|
1337
|
-
const domElement = unwrapElement(
|
|
1336
|
+
const clientRect = element2.getBoundingClientRect();
|
|
1337
|
+
const domElement = unwrapElement(element2);
|
|
1338
1338
|
let scale = createCoords(1);
|
|
1339
1339
|
if (includeScale) {
|
|
1340
1340
|
if (offsetParent) {
|
|
@@ -1342,7 +1342,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
1342
1342
|
scale = getScale(offsetParent);
|
|
1343
1343
|
}
|
|
1344
1344
|
} else {
|
|
1345
|
-
scale = getScale(
|
|
1345
|
+
scale = getScale(element2);
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
@@ -1378,10 +1378,10 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
1378
1378
|
y
|
|
1379
1379
|
});
|
|
1380
1380
|
}
|
|
1381
|
-
function getWindowScrollBarX(
|
|
1382
|
-
const leftScroll = getNodeScroll(
|
|
1381
|
+
function getWindowScrollBarX(element2, rect) {
|
|
1382
|
+
const leftScroll = getNodeScroll(element2).scrollLeft;
|
|
1383
1383
|
if (!rect) {
|
|
1384
|
-
return getBoundingClientRect(getDocumentElement(
|
|
1384
|
+
return getBoundingClientRect(getDocumentElement(element2)).left + leftScroll;
|
|
1385
1385
|
}
|
|
1386
1386
|
return rect.left + leftScroll;
|
|
1387
1387
|
}
|
|
@@ -1433,16 +1433,16 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
1433
1433
|
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
|
|
1434
1434
|
};
|
|
1435
1435
|
}
|
|
1436
|
-
function getClientRects(
|
|
1437
|
-
return Array.from(
|
|
1436
|
+
function getClientRects(element2) {
|
|
1437
|
+
return Array.from(element2.getClientRects());
|
|
1438
1438
|
}
|
|
1439
|
-
function getDocumentRect(
|
|
1440
|
-
const html = getDocumentElement(
|
|
1441
|
-
const scroll = getNodeScroll(
|
|
1442
|
-
const body =
|
|
1439
|
+
function getDocumentRect(element2) {
|
|
1440
|
+
const html = getDocumentElement(element2);
|
|
1441
|
+
const scroll = getNodeScroll(element2);
|
|
1442
|
+
const body = element2.ownerDocument.body;
|
|
1443
1443
|
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
1444
1444
|
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
1445
|
-
let x = -scroll.scrollLeft + getWindowScrollBarX(
|
|
1445
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element2);
|
|
1446
1446
|
const y = -scroll.scrollTop;
|
|
1447
1447
|
if (getComputedStyle2(body).direction === "rtl") {
|
|
1448
1448
|
x += max(html.clientWidth, body.clientWidth) - width;
|
|
@@ -1454,9 +1454,9 @@ function getDocumentRect(element) {
|
|
|
1454
1454
|
y
|
|
1455
1455
|
};
|
|
1456
1456
|
}
|
|
1457
|
-
function getViewportRect(
|
|
1458
|
-
const win = getWindow(
|
|
1459
|
-
const html = getDocumentElement(
|
|
1457
|
+
function getViewportRect(element2, strategy) {
|
|
1458
|
+
const win = getWindow(element2);
|
|
1459
|
+
const html = getDocumentElement(element2);
|
|
1460
1460
|
const visualViewport = win.visualViewport;
|
|
1461
1461
|
let width = html.clientWidth;
|
|
1462
1462
|
let height = html.clientHeight;
|
|
@@ -1491,13 +1491,13 @@ function getViewportRect(element, strategy) {
|
|
|
1491
1491
|
y
|
|
1492
1492
|
};
|
|
1493
1493
|
}
|
|
1494
|
-
function getInnerBoundingClientRect(
|
|
1495
|
-
const clientRect = getBoundingClientRect(
|
|
1496
|
-
const top = clientRect.top +
|
|
1497
|
-
const left = clientRect.left +
|
|
1498
|
-
const scale = isHTMLElement(
|
|
1499
|
-
const width =
|
|
1500
|
-
const height =
|
|
1494
|
+
function getInnerBoundingClientRect(element2, strategy) {
|
|
1495
|
+
const clientRect = getBoundingClientRect(element2, true, strategy === "fixed");
|
|
1496
|
+
const top = clientRect.top + element2.clientTop;
|
|
1497
|
+
const left = clientRect.left + element2.clientLeft;
|
|
1498
|
+
const scale = isHTMLElement(element2) ? getScale(element2) : createCoords(1);
|
|
1499
|
+
const width = element2.clientWidth * scale.x;
|
|
1500
|
+
const height = element2.clientHeight * scale.y;
|
|
1501
1501
|
const x = left * scale.x;
|
|
1502
1502
|
const y = top * scale.y;
|
|
1503
1503
|
return {
|
|
@@ -1507,16 +1507,16 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
1507
1507
|
y
|
|
1508
1508
|
};
|
|
1509
1509
|
}
|
|
1510
|
-
function getClientRectFromClippingAncestor(
|
|
1510
|
+
function getClientRectFromClippingAncestor(element2, clippingAncestor, strategy) {
|
|
1511
1511
|
let rect;
|
|
1512
1512
|
if (clippingAncestor === "viewport") {
|
|
1513
|
-
rect = getViewportRect(
|
|
1513
|
+
rect = getViewportRect(element2, strategy);
|
|
1514
1514
|
} else if (clippingAncestor === "document") {
|
|
1515
|
-
rect = getDocumentRect(getDocumentElement(
|
|
1515
|
+
rect = getDocumentRect(getDocumentElement(element2));
|
|
1516
1516
|
} else if (isElement(clippingAncestor)) {
|
|
1517
1517
|
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1518
1518
|
} else {
|
|
1519
|
-
const visualOffsets = getVisualOffsets(
|
|
1519
|
+
const visualOffsets = getVisualOffsets(element2);
|
|
1520
1520
|
rect = {
|
|
1521
1521
|
x: clippingAncestor.x - visualOffsets.x,
|
|
1522
1522
|
y: clippingAncestor.y - visualOffsets.y,
|
|
@@ -1526,29 +1526,29 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
|
|
|
1526
1526
|
}
|
|
1527
1527
|
return rectToClientRect(rect);
|
|
1528
1528
|
}
|
|
1529
|
-
function hasFixedPositionAncestor(
|
|
1530
|
-
const parentNode = getParentNode(
|
|
1529
|
+
function hasFixedPositionAncestor(element2, stopNode) {
|
|
1530
|
+
const parentNode = getParentNode(element2);
|
|
1531
1531
|
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1532
1532
|
return false;
|
|
1533
1533
|
}
|
|
1534
1534
|
return getComputedStyle2(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1535
1535
|
}
|
|
1536
|
-
function getClippingElementAncestors(
|
|
1537
|
-
const cachedResult = cache.get(
|
|
1536
|
+
function getClippingElementAncestors(element2, cache) {
|
|
1537
|
+
const cachedResult = cache.get(element2);
|
|
1538
1538
|
if (cachedResult) {
|
|
1539
1539
|
return cachedResult;
|
|
1540
1540
|
}
|
|
1541
|
-
let result = getOverflowAncestors(
|
|
1541
|
+
let result = getOverflowAncestors(element2, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
|
|
1542
1542
|
let currentContainingBlockComputedStyle = null;
|
|
1543
|
-
const elementIsFixed = getComputedStyle2(
|
|
1544
|
-
let currentNode = elementIsFixed ? getParentNode(
|
|
1543
|
+
const elementIsFixed = getComputedStyle2(element2).position === "fixed";
|
|
1544
|
+
let currentNode = elementIsFixed ? getParentNode(element2) : element2;
|
|
1545
1545
|
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1546
1546
|
const computedStyle = getComputedStyle2(currentNode);
|
|
1547
1547
|
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1548
1548
|
if (!currentNodeIsContaining && computedStyle.position === "fixed") {
|
|
1549
1549
|
currentContainingBlockComputedStyle = null;
|
|
1550
1550
|
}
|
|
1551
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === "absolute" || currentContainingBlockComputedStyle.position === "fixed") || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(
|
|
1551
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === "absolute" || currentContainingBlockComputedStyle.position === "fixed") || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element2, currentNode);
|
|
1552
1552
|
if (shouldDropCurrentNode) {
|
|
1553
1553
|
result = result.filter((ancestor) => ancestor !== currentNode);
|
|
1554
1554
|
} else {
|
|
@@ -1556,25 +1556,25 @@ function getClippingElementAncestors(element, cache) {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
currentNode = getParentNode(currentNode);
|
|
1558
1558
|
}
|
|
1559
|
-
cache.set(
|
|
1559
|
+
cache.set(element2, result);
|
|
1560
1560
|
return result;
|
|
1561
1561
|
}
|
|
1562
1562
|
function getClippingRect(_ref) {
|
|
1563
1563
|
let {
|
|
1564
|
-
element,
|
|
1564
|
+
element: element2,
|
|
1565
1565
|
boundary,
|
|
1566
1566
|
rootBoundary,
|
|
1567
1567
|
strategy
|
|
1568
1568
|
} = _ref;
|
|
1569
|
-
const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(
|
|
1569
|
+
const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element2) ? [] : getClippingElementAncestors(element2, this._c) : [].concat(boundary);
|
|
1570
1570
|
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
1571
|
-
const firstRect = getClientRectFromClippingAncestor(
|
|
1571
|
+
const firstRect = getClientRectFromClippingAncestor(element2, clippingAncestors[0], strategy);
|
|
1572
1572
|
let top = firstRect.top;
|
|
1573
1573
|
let right = firstRect.right;
|
|
1574
1574
|
let bottom = firstRect.bottom;
|
|
1575
1575
|
let left = firstRect.left;
|
|
1576
1576
|
for (let i = 1;i < clippingAncestors.length; i++) {
|
|
1577
|
-
const rect = getClientRectFromClippingAncestor(
|
|
1577
|
+
const rect = getClientRectFromClippingAncestor(element2, clippingAncestors[i], strategy);
|
|
1578
1578
|
top = max(rect.top, top);
|
|
1579
1579
|
right = min(rect.right, right);
|
|
1580
1580
|
bottom = min(rect.bottom, bottom);
|
|
@@ -1587,21 +1587,21 @@ function getClippingRect(_ref) {
|
|
|
1587
1587
|
y: top
|
|
1588
1588
|
};
|
|
1589
1589
|
}
|
|
1590
|
-
function getDimensions(
|
|
1590
|
+
function getDimensions(element2) {
|
|
1591
1591
|
const {
|
|
1592
1592
|
width,
|
|
1593
1593
|
height
|
|
1594
|
-
} = getCssDimensions(
|
|
1594
|
+
} = getCssDimensions(element2);
|
|
1595
1595
|
return {
|
|
1596
1596
|
width,
|
|
1597
1597
|
height
|
|
1598
1598
|
};
|
|
1599
1599
|
}
|
|
1600
|
-
function getRectRelativeToOffsetParent(
|
|
1600
|
+
function getRectRelativeToOffsetParent(element2, offsetParent, strategy) {
|
|
1601
1601
|
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1602
1602
|
const documentElement = getDocumentElement(offsetParent);
|
|
1603
1603
|
const isFixed = strategy === "fixed";
|
|
1604
|
-
const rect = getBoundingClientRect(
|
|
1604
|
+
const rect = getBoundingClientRect(element2, true, isFixed, offsetParent);
|
|
1605
1605
|
let scroll = {
|
|
1606
1606
|
scrollLeft: 0,
|
|
1607
1607
|
scrollTop: 0
|
|
@@ -1635,29 +1635,29 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
1635
1635
|
height: rect.height
|
|
1636
1636
|
};
|
|
1637
1637
|
}
|
|
1638
|
-
function isStaticPositioned(
|
|
1639
|
-
return getComputedStyle2(
|
|
1638
|
+
function isStaticPositioned(element2) {
|
|
1639
|
+
return getComputedStyle2(element2).position === "static";
|
|
1640
1640
|
}
|
|
1641
|
-
function getTrueOffsetParent(
|
|
1642
|
-
if (!isHTMLElement(
|
|
1641
|
+
function getTrueOffsetParent(element2, polyfill) {
|
|
1642
|
+
if (!isHTMLElement(element2) || getComputedStyle2(element2).position === "fixed") {
|
|
1643
1643
|
return null;
|
|
1644
1644
|
}
|
|
1645
1645
|
if (polyfill) {
|
|
1646
|
-
return polyfill(
|
|
1646
|
+
return polyfill(element2);
|
|
1647
1647
|
}
|
|
1648
|
-
let rawOffsetParent =
|
|
1649
|
-
if (getDocumentElement(
|
|
1648
|
+
let rawOffsetParent = element2.offsetParent;
|
|
1649
|
+
if (getDocumentElement(element2) === rawOffsetParent) {
|
|
1650
1650
|
rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
|
1651
1651
|
}
|
|
1652
1652
|
return rawOffsetParent;
|
|
1653
1653
|
}
|
|
1654
|
-
function getOffsetParent(
|
|
1655
|
-
const win = getWindow(
|
|
1656
|
-
if (isTopLayer(
|
|
1654
|
+
function getOffsetParent(element2, polyfill) {
|
|
1655
|
+
const win = getWindow(element2);
|
|
1656
|
+
if (isTopLayer(element2)) {
|
|
1657
1657
|
return win;
|
|
1658
1658
|
}
|
|
1659
|
-
if (!isHTMLElement(
|
|
1660
|
-
let svgOffsetParent = getParentNode(
|
|
1659
|
+
if (!isHTMLElement(element2)) {
|
|
1660
|
+
let svgOffsetParent = getParentNode(element2);
|
|
1661
1661
|
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
1662
1662
|
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
1663
1663
|
return svgOffsetParent;
|
|
@@ -1666,25 +1666,25 @@ function getOffsetParent(element, polyfill) {
|
|
|
1666
1666
|
}
|
|
1667
1667
|
return win;
|
|
1668
1668
|
}
|
|
1669
|
-
let offsetParent = getTrueOffsetParent(
|
|
1669
|
+
let offsetParent = getTrueOffsetParent(element2, polyfill);
|
|
1670
1670
|
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
1671
1671
|
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1672
1672
|
}
|
|
1673
1673
|
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
1674
1674
|
return win;
|
|
1675
1675
|
}
|
|
1676
|
-
return offsetParent || getContainingBlock(
|
|
1676
|
+
return offsetParent || getContainingBlock(element2) || win;
|
|
1677
1677
|
}
|
|
1678
|
-
function isRTL(
|
|
1679
|
-
return getComputedStyle2(
|
|
1678
|
+
function isRTL(element2) {
|
|
1679
|
+
return getComputedStyle2(element2).direction === "rtl";
|
|
1680
1680
|
}
|
|
1681
1681
|
function rectsAreEqual(a, b) {
|
|
1682
1682
|
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
1683
1683
|
}
|
|
1684
|
-
function observeMove(
|
|
1684
|
+
function observeMove(element2, onMove) {
|
|
1685
1685
|
let io = null;
|
|
1686
1686
|
let timeoutId;
|
|
1687
|
-
const
|
|
1687
|
+
const root5 = getDocumentElement(element2);
|
|
1688
1688
|
function cleanup() {
|
|
1689
1689
|
var _io;
|
|
1690
1690
|
clearTimeout(timeoutId);
|
|
@@ -1699,7 +1699,7 @@ function observeMove(element, onMove) {
|
|
|
1699
1699
|
threshold = 1;
|
|
1700
1700
|
}
|
|
1701
1701
|
cleanup();
|
|
1702
|
-
const elementRectForRootMargin =
|
|
1702
|
+
const elementRectForRootMargin = element2.getBoundingClientRect();
|
|
1703
1703
|
const {
|
|
1704
1704
|
left,
|
|
1705
1705
|
top,
|
|
@@ -1713,8 +1713,8 @@ function observeMove(element, onMove) {
|
|
|
1713
1713
|
return;
|
|
1714
1714
|
}
|
|
1715
1715
|
const insetTop = floor(top);
|
|
1716
|
-
const insetRight = floor(
|
|
1717
|
-
const insetBottom = floor(
|
|
1716
|
+
const insetRight = floor(root5.clientWidth - (left + width));
|
|
1717
|
+
const insetBottom = floor(root5.clientHeight - (top + height));
|
|
1718
1718
|
const insetLeft = floor(left);
|
|
1719
1719
|
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
1720
1720
|
const options = {
|
|
@@ -1736,7 +1736,7 @@ function observeMove(element, onMove) {
|
|
|
1736
1736
|
refresh(false, ratio);
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
|
-
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin,
|
|
1739
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element2.getBoundingClientRect())) {
|
|
1740
1740
|
refresh();
|
|
1741
1741
|
}
|
|
1742
1742
|
isFirstUpdate = false;
|
|
@@ -1744,12 +1744,12 @@ function observeMove(element, onMove) {
|
|
|
1744
1744
|
try {
|
|
1745
1745
|
io = new IntersectionObserver(handleObserve, {
|
|
1746
1746
|
...options,
|
|
1747
|
-
root:
|
|
1747
|
+
root: root5.ownerDocument
|
|
1748
1748
|
});
|
|
1749
1749
|
} catch (_e) {
|
|
1750
1750
|
io = new IntersectionObserver(handleObserve, options);
|
|
1751
1751
|
}
|
|
1752
|
-
io.observe(
|
|
1752
|
+
io.observe(element2);
|
|
1753
1753
|
}
|
|
1754
1754
|
refresh(true);
|
|
1755
1755
|
return cleanup;
|
|
@@ -2899,8 +2899,118 @@ import"@lostgradient/cinder/date-picker/styles";
|
|
|
2899
2899
|
|
|
2900
2900
|
// src/components/date-picker/date-picker.svelte
|
|
2901
2901
|
import"svelte/internal/disclose-version";
|
|
2902
|
-
import * as $
|
|
2902
|
+
import * as $11 from "svelte/internal/client";
|
|
2903
|
+
|
|
2904
|
+
// ../../node_modules/lucide-svelte/dist/icons/calendar-days.svelte
|
|
2905
|
+
import"svelte/internal/disclose-version";
|
|
2906
|
+
import"svelte/internal/flags/legacy";
|
|
2907
|
+
import * as $5 from "svelte/internal/client";
|
|
2908
|
+
|
|
2909
|
+
// ../../node_modules/lucide-svelte/dist/Icon.svelte
|
|
2910
|
+
import"svelte/internal/disclose-version";
|
|
2911
|
+
import"svelte/internal/flags/legacy";
|
|
2912
|
+
import * as $4 from "svelte/internal/client";
|
|
2913
|
+
|
|
2914
|
+
// ../../node_modules/lucide-svelte/dist/defaultAttributes.js
|
|
2915
|
+
var defaultAttributes = {
|
|
2916
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2917
|
+
width: 24,
|
|
2918
|
+
height: 24,
|
|
2919
|
+
viewBox: "0 0 24 24",
|
|
2920
|
+
fill: "none",
|
|
2921
|
+
stroke: "currentColor",
|
|
2922
|
+
"stroke-width": 2,
|
|
2923
|
+
"stroke-linecap": "round",
|
|
2924
|
+
"stroke-linejoin": "round"
|
|
2925
|
+
};
|
|
2926
|
+
var defaultAttributes_default = defaultAttributes;
|
|
2903
2927
|
|
|
2928
|
+
// ../../node_modules/lucide-svelte/dist/Icon.svelte
|
|
2929
|
+
var root2 = $4.from_svg(`<svg><!><!></svg>`);
|
|
2930
|
+
function Icon($$anchor, $$props) {
|
|
2931
|
+
const $$sanitized_props = $4.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
2932
|
+
const $$restProps = $4.legacy_rest_props($$sanitized_props, [
|
|
2933
|
+
"name",
|
|
2934
|
+
"color",
|
|
2935
|
+
"size",
|
|
2936
|
+
"strokeWidth",
|
|
2937
|
+
"absoluteStrokeWidth",
|
|
2938
|
+
"iconNode"
|
|
2939
|
+
]);
|
|
2940
|
+
$4.push($$props, false);
|
|
2941
|
+
let name = $4.prop($$props, "name", 8, undefined);
|
|
2942
|
+
let color = $4.prop($$props, "color", 8, "currentColor");
|
|
2943
|
+
let size = $4.prop($$props, "size", 8, 24);
|
|
2944
|
+
let strokeWidth = $4.prop($$props, "strokeWidth", 8, 2);
|
|
2945
|
+
let absoluteStrokeWidth = $4.prop($$props, "absoluteStrokeWidth", 8, false);
|
|
2946
|
+
let iconNode = $4.prop($$props, "iconNode", 24, () => []);
|
|
2947
|
+
const mergeClasses = (...classes) => classes.filter((className, index2, array) => {
|
|
2948
|
+
return Boolean(className) && array.indexOf(className) === index2;
|
|
2949
|
+
}).join(" ");
|
|
2950
|
+
$4.init();
|
|
2951
|
+
var svg = root2();
|
|
2952
|
+
$4.attribute_effect(svg, ($0, $1) => ({
|
|
2953
|
+
...defaultAttributes_default,
|
|
2954
|
+
...$$restProps,
|
|
2955
|
+
width: size(),
|
|
2956
|
+
height: size(),
|
|
2957
|
+
stroke: color(),
|
|
2958
|
+
"stroke-width": $0,
|
|
2959
|
+
class: $1
|
|
2960
|
+
}), [
|
|
2961
|
+
() => ($4.deep_read_state(absoluteStrokeWidth()), $4.deep_read_state(strokeWidth()), $4.deep_read_state(size()), $4.untrack(() => absoluteStrokeWidth() ? Number(strokeWidth()) * 24 / Number(size()) : strokeWidth())),
|
|
2962
|
+
() => ($4.deep_read_state(name()), $4.deep_read_state($$sanitized_props), $4.untrack(() => mergeClasses("lucide-icon", "lucide", name() ? `lucide-${name()}` : "", $$sanitized_props.class)))
|
|
2963
|
+
]);
|
|
2964
|
+
var node = $4.child(svg);
|
|
2965
|
+
$4.each(node, 1, iconNode, $4.index, ($$anchor2, $$item) => {
|
|
2966
|
+
var $$array = $4.derived(() => $4.to_array($4.get($$item), 2));
|
|
2967
|
+
let tag = () => $4.get($$array)[0];
|
|
2968
|
+
let attrs = () => $4.get($$array)[1];
|
|
2969
|
+
var fragment = $4.comment();
|
|
2970
|
+
var node_1 = $4.first_child(fragment);
|
|
2971
|
+
$4.element(node_1, tag, true, ($$element, $$anchor3) => {
|
|
2972
|
+
$4.attribute_effect($$element, () => ({ ...attrs() }));
|
|
2973
|
+
});
|
|
2974
|
+
$4.append($$anchor2, fragment);
|
|
2975
|
+
});
|
|
2976
|
+
var node_2 = $4.sibling(node);
|
|
2977
|
+
$4.slot(node_2, $$props, "default", {}, null);
|
|
2978
|
+
$4.reset(svg);
|
|
2979
|
+
$4.append($$anchor, svg);
|
|
2980
|
+
$4.pop();
|
|
2981
|
+
}
|
|
2982
|
+
|
|
2983
|
+
// ../../node_modules/lucide-svelte/dist/icons/calendar-days.svelte
|
|
2984
|
+
function Calendar_days($$anchor, $$props) {
|
|
2985
|
+
const $$sanitized_props = $5.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
2986
|
+
const iconNode = [
|
|
2987
|
+
["path", { d: "M8 2v4" }],
|
|
2988
|
+
["path", { d: "M16 2v4" }],
|
|
2989
|
+
[
|
|
2990
|
+
"rect",
|
|
2991
|
+
{ width: "18", height: "18", x: "3", y: "4", rx: "2" }
|
|
2992
|
+
],
|
|
2993
|
+
["path", { d: "M3 10h18" }],
|
|
2994
|
+
["path", { d: "M8 14h.01" }],
|
|
2995
|
+
["path", { d: "M12 14h.01" }],
|
|
2996
|
+
["path", { d: "M16 14h.01" }],
|
|
2997
|
+
["path", { d: "M8 18h.01" }],
|
|
2998
|
+
["path", { d: "M12 18h.01" }],
|
|
2999
|
+
["path", { d: "M16 18h.01" }]
|
|
3000
|
+
];
|
|
3001
|
+
Icon($$anchor, $5.spread_props({ name: "calendar-days" }, () => $$sanitized_props, {
|
|
3002
|
+
get iconNode() {
|
|
3003
|
+
return iconNode;
|
|
3004
|
+
},
|
|
3005
|
+
children: ($$anchor2, $$slotProps) => {
|
|
3006
|
+
var fragment_1 = $5.comment();
|
|
3007
|
+
var node = $5.first_child(fragment_1);
|
|
3008
|
+
$5.slot(node, $$props, "default", {}, null);
|
|
3009
|
+
$5.append($$anchor2, fragment_1);
|
|
3010
|
+
},
|
|
3011
|
+
$$slots: { default: true }
|
|
3012
|
+
}));
|
|
3013
|
+
}
|
|
2904
3014
|
// src/_internal/date-value.ts
|
|
2905
3015
|
function isLeapYear(year) {
|
|
2906
3016
|
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
@@ -2956,7 +3066,7 @@ function normalizeDateValue(value, granularity) {
|
|
|
2956
3066
|
|
|
2957
3067
|
// src/_internal/form-field-frame.svelte
|
|
2958
3068
|
import"svelte/internal/disclose-version";
|
|
2959
|
-
import * as $
|
|
3069
|
+
import * as $7 from "svelte/internal/client";
|
|
2960
3070
|
|
|
2961
3071
|
// src/_internal/field-control.ts
|
|
2962
3072
|
function describeId(fieldId, hasDescription) {
|
|
@@ -2998,7 +3108,7 @@ function resolveFieldControl(input) {
|
|
|
2998
3108
|
|
|
2999
3109
|
// src/_internal/form-field-provider.svelte
|
|
3000
3110
|
import"svelte/internal/disclose-version";
|
|
3001
|
-
import * as $
|
|
3111
|
+
import * as $6 from "svelte/internal/client";
|
|
3002
3112
|
|
|
3003
3113
|
// src/_internal/form-field-context.ts
|
|
3004
3114
|
import { createContext } from "svelte";
|
|
@@ -3023,13 +3133,39 @@ var getFormFieldContext = optionalContext(getFormFieldContextStrict);
|
|
|
3023
3133
|
|
|
3024
3134
|
// src/_internal/form-field-provider.svelte
|
|
3025
3135
|
function Form_field_provider($$anchor, $$props) {
|
|
3026
|
-
$
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3136
|
+
$6.push($$props, true);
|
|
3137
|
+
const forwardedContext = {
|
|
3138
|
+
get controlId() {
|
|
3139
|
+
return $$props.context.controlId;
|
|
3140
|
+
},
|
|
3141
|
+
get labelId() {
|
|
3142
|
+
return $$props.context.labelId;
|
|
3143
|
+
},
|
|
3144
|
+
get describedBy() {
|
|
3145
|
+
return $$props.context.describedBy;
|
|
3146
|
+
},
|
|
3147
|
+
get descriptionId() {
|
|
3148
|
+
return $$props.context.descriptionId;
|
|
3149
|
+
},
|
|
3150
|
+
get errorId() {
|
|
3151
|
+
return $$props.context.errorId;
|
|
3152
|
+
},
|
|
3153
|
+
get invalid() {
|
|
3154
|
+
return $$props.context.invalid;
|
|
3155
|
+
},
|
|
3156
|
+
get required() {
|
|
3157
|
+
return $$props.context.required;
|
|
3158
|
+
},
|
|
3159
|
+
get disabled() {
|
|
3160
|
+
return $$props.context.disabled;
|
|
3161
|
+
}
|
|
3162
|
+
};
|
|
3163
|
+
setFormFieldContext(forwardedContext);
|
|
3164
|
+
var fragment = $6.comment();
|
|
3165
|
+
var node = $6.first_child(fragment);
|
|
3166
|
+
$6.snippet(node, () => $$props.children);
|
|
3167
|
+
$6.append($$anchor, fragment);
|
|
3168
|
+
$6.pop();
|
|
3033
3169
|
}
|
|
3034
3170
|
|
|
3035
3171
|
// src/_internal/form-field-frame.svelte
|
|
@@ -3039,7 +3175,7 @@ var rest_excludes2 = new Set([
|
|
|
3039
3175
|
"$$legacy",
|
|
3040
3176
|
"id",
|
|
3041
3177
|
"label",
|
|
3042
|
-
"
|
|
3178
|
+
"labelVisible",
|
|
3043
3179
|
"description",
|
|
3044
3180
|
"error",
|
|
3045
3181
|
"required",
|
|
@@ -3063,39 +3199,39 @@ var rest_excludes2 = new Set([
|
|
|
3063
3199
|
"after",
|
|
3064
3200
|
"message"
|
|
3065
3201
|
]);
|
|
3066
|
-
var
|
|
3067
|
-
var root_1 = $
|
|
3068
|
-
var root_2 = $
|
|
3069
|
-
var root_3 = $
|
|
3070
|
-
var root_4 = $
|
|
3071
|
-
var root_5 = $
|
|
3202
|
+
var root3 = $7.from_html(`<span class="cinder-_required-marker" aria-hidden="true">*</span>`);
|
|
3203
|
+
var root_1 = $7.from_html(`<label> <!></label>`);
|
|
3204
|
+
var root_2 = $7.from_html(`<div><!> <!> <!></div>`);
|
|
3205
|
+
var root_3 = $7.from_html(`<p> </p>`);
|
|
3206
|
+
var root_4 = $7.from_html(`<p aria-live="polite"> </p>`);
|
|
3207
|
+
var root_5 = $7.from_html(`<div><!> <!> <!> <!> <!></div>`);
|
|
3072
3208
|
function Form_field_frame($$anchor, $$props) {
|
|
3073
|
-
$
|
|
3074
|
-
let
|
|
3075
|
-
const labelId = $
|
|
3076
|
-
const descriptionId = $
|
|
3077
|
-
const errorId2 = $
|
|
3078
|
-
const describedBy = $
|
|
3079
|
-
const invalid = $
|
|
3080
|
-
const needsControlWrapper = $
|
|
3209
|
+
$7.push($$props, true);
|
|
3210
|
+
let labelVisible = $7.prop($$props, "labelVisible", 3, true), required = $7.prop($$props, "required", 3, false), disabled = $7.prop($$props, "disabled", 3, false), controlLeading = $7.prop($$props, "controlLeading", 3, false), controlTrailing = $7.prop($$props, "controlTrailing", 3, false), controlNativeDate = $7.prop($$props, "controlNativeDate", 3, false), controlDisabled = $7.prop($$props, "controlDisabled", 3, false), controlInvalid = $7.prop($$props, "controlInvalid", 3, false), fullWidth = $7.prop($$props, "fullWidth", 3, false), errorAlwaysMounted = $7.prop($$props, "errorAlwaysMounted", 3, false), rest = $7.rest_props($$props, rest_excludes2);
|
|
3211
|
+
const labelId = $7.derived(() => $$props.label ? `${$$props.id}-label` : undefined);
|
|
3212
|
+
const descriptionId = $7.derived(() => $$props.descriptionId ?? describeId($$props.id, !!$$props.description));
|
|
3213
|
+
const errorId2 = $7.derived(() => $$props.errorId ?? errorId($$props.id, !!$$props.error));
|
|
3214
|
+
const describedBy = $7.derived(() => composeDescribedBy($7.get(descriptionId), $7.get(errorId2)));
|
|
3215
|
+
const invalid = $7.derived(() => ariaInvalid(!!$$props.error));
|
|
3216
|
+
const needsControlWrapper = $7.derived(() => !!$$props.controlClass || !!$$props.before || !!$$props.after);
|
|
3081
3217
|
const context = {
|
|
3082
3218
|
get controlId() {
|
|
3083
3219
|
return $$props.id;
|
|
3084
3220
|
},
|
|
3085
3221
|
get labelId() {
|
|
3086
|
-
return $
|
|
3222
|
+
return $7.get(labelId);
|
|
3087
3223
|
},
|
|
3088
3224
|
get describedBy() {
|
|
3089
|
-
return $
|
|
3225
|
+
return $7.get(describedBy);
|
|
3090
3226
|
},
|
|
3091
3227
|
get descriptionId() {
|
|
3092
|
-
return $
|
|
3228
|
+
return $7.get(descriptionId);
|
|
3093
3229
|
},
|
|
3094
3230
|
get errorId() {
|
|
3095
|
-
return $
|
|
3231
|
+
return $7.get(errorId2);
|
|
3096
3232
|
},
|
|
3097
3233
|
get invalid() {
|
|
3098
|
-
return $
|
|
3234
|
+
return $7.get(invalid);
|
|
3099
3235
|
},
|
|
3100
3236
|
get required() {
|
|
3101
3237
|
return required();
|
|
@@ -3105,99 +3241,99 @@ function Form_field_frame($$anchor, $$props) {
|
|
|
3105
3241
|
}
|
|
3106
3242
|
};
|
|
3107
3243
|
var div = root_5();
|
|
3108
|
-
$
|
|
3244
|
+
$7.attribute_effect(div, ($0) => ({
|
|
3109
3245
|
...rest,
|
|
3110
3246
|
class: $0,
|
|
3111
3247
|
"data-cinder-full-width": fullWidth() ? "" : undefined
|
|
3112
3248
|
}), [() => classNames("cinder-form-field", $$props.class)]);
|
|
3113
|
-
var node = $
|
|
3249
|
+
var node = $7.child(div);
|
|
3114
3250
|
{
|
|
3115
3251
|
var consequent_1 = ($$anchor2) => {
|
|
3116
3252
|
var label_1 = root_1();
|
|
3117
|
-
var text = $
|
|
3118
|
-
var node_1 = $
|
|
3253
|
+
var text = $7.child(label_1);
|
|
3254
|
+
var node_1 = $7.sibling(text);
|
|
3119
3255
|
{
|
|
3120
3256
|
var consequent = ($$anchor3) => {
|
|
3121
|
-
var span =
|
|
3122
|
-
$
|
|
3257
|
+
var span = root3();
|
|
3258
|
+
$7.append($$anchor3, span);
|
|
3123
3259
|
};
|
|
3124
|
-
$
|
|
3260
|
+
$7.if(node_1, ($$render) => {
|
|
3125
3261
|
if (required())
|
|
3126
3262
|
$$render(consequent);
|
|
3127
3263
|
});
|
|
3128
3264
|
}
|
|
3129
|
-
$
|
|
3130
|
-
$
|
|
3131
|
-
$
|
|
3132
|
-
$
|
|
3133
|
-
$
|
|
3134
|
-
$
|
|
3135
|
-
$
|
|
3265
|
+
$7.reset(label_1);
|
|
3266
|
+
$7.template_effect(($0) => {
|
|
3267
|
+
$7.set_attribute(label_1, "id", $7.get(labelId));
|
|
3268
|
+
$7.set_attribute(label_1, "for", $$props.id);
|
|
3269
|
+
$7.set_class(label_1, 1, $0);
|
|
3270
|
+
$7.set_attribute(label_1, "data-disabled", disabled() || undefined);
|
|
3271
|
+
$7.set_text(text, `${$$props.label ?? ""} `);
|
|
3136
3272
|
}, [
|
|
3137
|
-
() => $
|
|
3273
|
+
() => $7.clsx(classNames("cinder-form-field__label", $$props.labelClass, !labelVisible() && "cinder-sr-only"))
|
|
3138
3274
|
]);
|
|
3139
|
-
$
|
|
3275
|
+
$7.append($$anchor2, label_1);
|
|
3140
3276
|
};
|
|
3141
|
-
$
|
|
3277
|
+
$7.if(node, ($$render) => {
|
|
3142
3278
|
if ($$props.label)
|
|
3143
3279
|
$$render(consequent_1);
|
|
3144
3280
|
});
|
|
3145
3281
|
}
|
|
3146
|
-
var node_2 = $
|
|
3282
|
+
var node_2 = $7.sibling(node, 2);
|
|
3147
3283
|
{
|
|
3148
3284
|
var consequent_4 = ($$anchor2) => {
|
|
3149
3285
|
var div_1 = root_2();
|
|
3150
|
-
var node_3 = $
|
|
3286
|
+
var node_3 = $7.child(div_1);
|
|
3151
3287
|
{
|
|
3152
3288
|
var consequent_2 = ($$anchor3) => {
|
|
3153
|
-
var fragment = $
|
|
3154
|
-
var node_4 = $
|
|
3155
|
-
$
|
|
3156
|
-
$
|
|
3289
|
+
var fragment = $7.comment();
|
|
3290
|
+
var node_4 = $7.first_child(fragment);
|
|
3291
|
+
$7.snippet(node_4, () => $$props.before);
|
|
3292
|
+
$7.append($$anchor3, fragment);
|
|
3157
3293
|
};
|
|
3158
|
-
$
|
|
3294
|
+
$7.if(node_3, ($$render) => {
|
|
3159
3295
|
if ($$props.before)
|
|
3160
3296
|
$$render(consequent_2);
|
|
3161
3297
|
});
|
|
3162
3298
|
}
|
|
3163
|
-
var node_5 = $
|
|
3299
|
+
var node_5 = $7.sibling(node_3, 2);
|
|
3164
3300
|
Form_field_provider(node_5, {
|
|
3165
3301
|
get context() {
|
|
3166
3302
|
return context;
|
|
3167
3303
|
},
|
|
3168
3304
|
children: ($$anchor3, $$slotProps) => {
|
|
3169
|
-
var fragment_1 = $
|
|
3170
|
-
var node_6 = $
|
|
3171
|
-
$
|
|
3172
|
-
$
|
|
3305
|
+
var fragment_1 = $7.comment();
|
|
3306
|
+
var node_6 = $7.first_child(fragment_1);
|
|
3307
|
+
$7.snippet(node_6, () => $$props.control);
|
|
3308
|
+
$7.append($$anchor3, fragment_1);
|
|
3173
3309
|
},
|
|
3174
3310
|
$$slots: { default: true }
|
|
3175
3311
|
});
|
|
3176
|
-
var node_7 = $
|
|
3312
|
+
var node_7 = $7.sibling(node_5, 2);
|
|
3177
3313
|
{
|
|
3178
3314
|
var consequent_3 = ($$anchor3) => {
|
|
3179
|
-
var fragment_2 = $
|
|
3180
|
-
var node_8 = $
|
|
3181
|
-
$
|
|
3182
|
-
$
|
|
3315
|
+
var fragment_2 = $7.comment();
|
|
3316
|
+
var node_8 = $7.first_child(fragment_2);
|
|
3317
|
+
$7.snippet(node_8, () => $$props.after);
|
|
3318
|
+
$7.append($$anchor3, fragment_2);
|
|
3183
3319
|
};
|
|
3184
|
-
$
|
|
3320
|
+
$7.if(node_7, ($$render) => {
|
|
3185
3321
|
if ($$props.after)
|
|
3186
3322
|
$$render(consequent_3);
|
|
3187
3323
|
});
|
|
3188
3324
|
}
|
|
3189
|
-
$
|
|
3190
|
-
$
|
|
3191
|
-
$
|
|
3192
|
-
$
|
|
3193
|
-
$
|
|
3194
|
-
$
|
|
3195
|
-
$
|
|
3196
|
-
$
|
|
3325
|
+
$7.reset(div_1);
|
|
3326
|
+
$7.template_effect(($0) => {
|
|
3327
|
+
$7.set_class(div_1, 1, $0);
|
|
3328
|
+
$7.set_attribute(div_1, "data-leading", controlLeading() ? "" : undefined);
|
|
3329
|
+
$7.set_attribute(div_1, "data-trailing", controlTrailing() ? "" : undefined);
|
|
3330
|
+
$7.set_attribute(div_1, "data-native-date", controlNativeDate() ? "" : undefined);
|
|
3331
|
+
$7.set_attribute(div_1, "data-disabled", controlDisabled() ? "" : undefined);
|
|
3332
|
+
$7.set_attribute(div_1, "data-invalid", controlInvalid() ? "" : undefined);
|
|
3197
3333
|
}, [
|
|
3198
|
-
() => $
|
|
3334
|
+
() => $7.clsx(classNames("cinder-form-field__control", $$props.controlClass))
|
|
3199
3335
|
]);
|
|
3200
|
-
$
|
|
3336
|
+
$7.append($$anchor2, div_1);
|
|
3201
3337
|
};
|
|
3202
3338
|
var alternate = ($$anchor2) => {
|
|
3203
3339
|
Form_field_provider($$anchor2, {
|
|
@@ -3205,84 +3341,84 @@ function Form_field_frame($$anchor, $$props) {
|
|
|
3205
3341
|
return context;
|
|
3206
3342
|
},
|
|
3207
3343
|
children: ($$anchor3, $$slotProps) => {
|
|
3208
|
-
var fragment_4 = $
|
|
3209
|
-
var node_9 = $
|
|
3210
|
-
$
|
|
3211
|
-
$
|
|
3344
|
+
var fragment_4 = $7.comment();
|
|
3345
|
+
var node_9 = $7.first_child(fragment_4);
|
|
3346
|
+
$7.snippet(node_9, () => $$props.control);
|
|
3347
|
+
$7.append($$anchor3, fragment_4);
|
|
3212
3348
|
},
|
|
3213
3349
|
$$slots: { default: true }
|
|
3214
3350
|
});
|
|
3215
3351
|
};
|
|
3216
|
-
$
|
|
3217
|
-
if ($
|
|
3352
|
+
$7.if(node_2, ($$render) => {
|
|
3353
|
+
if ($7.get(needsControlWrapper))
|
|
3218
3354
|
$$render(consequent_4);
|
|
3219
3355
|
else
|
|
3220
3356
|
$$render(alternate, -1);
|
|
3221
3357
|
});
|
|
3222
3358
|
}
|
|
3223
|
-
var node_10 = $
|
|
3359
|
+
var node_10 = $7.sibling(node_2, 2);
|
|
3224
3360
|
{
|
|
3225
3361
|
var consequent_5 = ($$anchor2) => {
|
|
3226
3362
|
var p = root_3();
|
|
3227
|
-
var text_1 = $
|
|
3228
|
-
$
|
|
3229
|
-
$
|
|
3230
|
-
$
|
|
3231
|
-
$
|
|
3232
|
-
$
|
|
3363
|
+
var text_1 = $7.child(p, true);
|
|
3364
|
+
$7.reset(p);
|
|
3365
|
+
$7.template_effect(($0) => {
|
|
3366
|
+
$7.set_attribute(p, "id", $7.get(descriptionId));
|
|
3367
|
+
$7.set_class(p, 1, $0);
|
|
3368
|
+
$7.set_text(text_1, $$props.description);
|
|
3233
3369
|
}, [
|
|
3234
|
-
() => $
|
|
3370
|
+
() => $7.clsx(classNames("cinder-form-field__description", $$props.descriptionClass))
|
|
3235
3371
|
]);
|
|
3236
|
-
$
|
|
3372
|
+
$7.append($$anchor2, p);
|
|
3237
3373
|
};
|
|
3238
|
-
$
|
|
3374
|
+
$7.if(node_10, ($$render) => {
|
|
3239
3375
|
if ($$props.description)
|
|
3240
3376
|
$$render(consequent_5);
|
|
3241
3377
|
});
|
|
3242
3378
|
}
|
|
3243
|
-
var node_11 = $
|
|
3379
|
+
var node_11 = $7.sibling(node_10, 2);
|
|
3244
3380
|
{
|
|
3245
3381
|
var consequent_6 = ($$anchor2) => {
|
|
3246
|
-
var fragment_5 = $
|
|
3247
|
-
var node_12 = $
|
|
3248
|
-
$
|
|
3249
|
-
$
|
|
3382
|
+
var fragment_5 = $7.comment();
|
|
3383
|
+
var node_12 = $7.first_child(fragment_5);
|
|
3384
|
+
$7.snippet(node_12, () => $$props.message);
|
|
3385
|
+
$7.append($$anchor2, fragment_5);
|
|
3250
3386
|
};
|
|
3251
|
-
$
|
|
3387
|
+
$7.if(node_11, ($$render) => {
|
|
3252
3388
|
if ($$props.message)
|
|
3253
3389
|
$$render(consequent_6);
|
|
3254
3390
|
});
|
|
3255
3391
|
}
|
|
3256
|
-
var node_13 = $
|
|
3392
|
+
var node_13 = $7.sibling(node_11, 2);
|
|
3257
3393
|
{
|
|
3258
3394
|
var consequent_7 = ($$anchor2) => {
|
|
3259
3395
|
var p_1 = root_4();
|
|
3260
|
-
var text_2 = $
|
|
3261
|
-
$
|
|
3262
|
-
$
|
|
3263
|
-
$
|
|
3264
|
-
$
|
|
3265
|
-
$
|
|
3266
|
-
$
|
|
3396
|
+
var text_2 = $7.child(p_1, true);
|
|
3397
|
+
$7.reset(p_1);
|
|
3398
|
+
$7.template_effect(($0) => {
|
|
3399
|
+
$7.set_attribute(p_1, "id", $7.get(errorId2));
|
|
3400
|
+
$7.set_class(p_1, 1, $0);
|
|
3401
|
+
$7.set_attribute(p_1, "data-cinder-error", $$props.error ? "" : undefined);
|
|
3402
|
+
$7.set_text(text_2, $$props.error ?? "");
|
|
3267
3403
|
}, [
|
|
3268
|
-
() => $
|
|
3404
|
+
() => $7.clsx(classNames("cinder-form-field__error", $$props.errorClass))
|
|
3269
3405
|
]);
|
|
3270
|
-
$
|
|
3406
|
+
$7.append($$anchor2, p_1);
|
|
3271
3407
|
};
|
|
3272
|
-
$
|
|
3408
|
+
$7.if(node_13, ($$render) => {
|
|
3273
3409
|
if ($$props.error || errorAlwaysMounted())
|
|
3274
3410
|
$$render(consequent_7);
|
|
3275
3411
|
});
|
|
3276
3412
|
}
|
|
3277
|
-
$
|
|
3278
|
-
$
|
|
3279
|
-
$
|
|
3413
|
+
$7.reset(div);
|
|
3414
|
+
$7.append($$anchor, div);
|
|
3415
|
+
$7.pop();
|
|
3280
3416
|
}
|
|
3281
3417
|
|
|
3282
3418
|
// src/components/calendar/calendar.svelte
|
|
3283
3419
|
import"svelte/internal/disclose-version";
|
|
3284
|
-
import * as $
|
|
3285
|
-
import { tick, untrack as
|
|
3420
|
+
import * as $8 from "svelte/internal/client";
|
|
3421
|
+
import { tick, untrack as untrack3 } from "svelte";
|
|
3286
3422
|
var rest_excludes3 = new Set([
|
|
3287
3423
|
"$$slots",
|
|
3288
3424
|
"$$events",
|
|
@@ -3297,16 +3433,16 @@ var rest_excludes3 = new Set([
|
|
|
3297
3433
|
"label",
|
|
3298
3434
|
"disabled",
|
|
3299
3435
|
"class",
|
|
3300
|
-
"
|
|
3436
|
+
"onValueChange",
|
|
3301
3437
|
"disabledDate"
|
|
3302
3438
|
]);
|
|
3303
|
-
var
|
|
3304
|
-
var root_12 = $
|
|
3305
|
-
var root_22 = $
|
|
3306
|
-
var root_32 = $
|
|
3439
|
+
var root4 = $8.from_html(`<span class="cinder-calendar__weekday"> </span>`);
|
|
3440
|
+
var root_12 = $8.from_html(`<div role="gridcell" class="cinder-calendar__gridcell"><button type="button" class="cinder-calendar__day"> </button></div>`);
|
|
3441
|
+
var root_22 = $8.from_html(`<div role="row" class="cinder-calendar__grid-row"></div>`);
|
|
3442
|
+
var root_32 = $8.from_html(`<div><div class="cinder-calendar__header"><button type="button" class="cinder-calendar__nav" aria-label="Previous month">‹</button> <p class="cinder-calendar__title"> </p> <button type="button" class="cinder-calendar__nav" aria-label="Next month">›</button></div> <div class="cinder-calendar__weekdays" aria-hidden="true"></div> <div class="cinder-calendar__grid" role="grid" tabindex="-1"></div></div>`);
|
|
3307
3443
|
function Calendar($$anchor, $$props) {
|
|
3308
|
-
const generatedId = $
|
|
3309
|
-
$
|
|
3444
|
+
const generatedId = $8.props_id();
|
|
3445
|
+
$8.push($$props, true);
|
|
3310
3446
|
const WEEKDAY_INDEXES = [0, 1, 2, 3, 4, 5, 6];
|
|
3311
3447
|
const MINIMUM_CALENDAR_YEAR = 0;
|
|
3312
3448
|
const MAXIMUM_CALENDAR_YEAR = 9999;
|
|
@@ -3316,10 +3452,10 @@ function Calendar($$anchor, $$props) {
|
|
|
3316
3452
|
date.setUTCFullYear(year, monthValue, day);
|
|
3317
3453
|
return date;
|
|
3318
3454
|
}
|
|
3319
|
-
let value = $
|
|
3320
|
-
const rootId = $
|
|
3321
|
-
const titleId = $
|
|
3322
|
-
const monthGridId = $
|
|
3455
|
+
let value = $8.prop($$props, "value", 15, undefined), firstDayOfWeek = $8.prop($$props, "firstDayOfWeek", 3, 0), locale = $8.prop($$props, "locale", 3, "en-US"), label = $8.prop($$props, "label", 3, "Calendar"), disabled = $8.prop($$props, "disabled", 3, false), rest = $8.rest_props($$props, rest_excludes3);
|
|
3456
|
+
const rootId = $8.derived(() => $$props.id ?? generatedId);
|
|
3457
|
+
const titleId = $8.derived(() => `${$8.get(rootId)}-title`);
|
|
3458
|
+
const monthGridId = $8.derived(() => `${$8.get(rootId)}-grid`);
|
|
3323
3459
|
function parseISODate(iso) {
|
|
3324
3460
|
if (!iso)
|
|
3325
3461
|
return null;
|
|
@@ -3395,11 +3531,11 @@ function Calendar($$anchor, $$props) {
|
|
|
3395
3531
|
return fallbackIso;
|
|
3396
3532
|
}
|
|
3397
3533
|
const initialTodayIso = localTodayIso();
|
|
3398
|
-
const initialAnchorIso =
|
|
3399
|
-
const initialFocusedIso =
|
|
3400
|
-
let todayIso = $
|
|
3401
|
-
$
|
|
3402
|
-
const refresh = () => $
|
|
3534
|
+
const initialAnchorIso = untrack3(() => resolveAnchorIso(value(), $$props.month, initialTodayIso));
|
|
3535
|
+
const initialFocusedIso = untrack3(() => initialAnchorIso);
|
|
3536
|
+
let todayIso = $8.state($8.proxy(localTodayIso()));
|
|
3537
|
+
$8.user_effect(() => {
|
|
3538
|
+
const refresh = () => $8.set(todayIso, localTodayIso(), true);
|
|
3403
3539
|
const timer = setInterval(refresh, 60000);
|
|
3404
3540
|
document.addEventListener("visibilitychange", refresh);
|
|
3405
3541
|
return () => {
|
|
@@ -3407,35 +3543,35 @@ function Calendar($$anchor, $$props) {
|
|
|
3407
3543
|
document.removeEventListener("visibilitychange", refresh);
|
|
3408
3544
|
};
|
|
3409
3545
|
});
|
|
3410
|
-
const anchorIso = $
|
|
3411
|
-
const anchorDate = $
|
|
3412
|
-
let visibleMonthDate = $
|
|
3413
|
-
let focusedIso = $
|
|
3414
|
-
let lastSyncedAnchorIso = $
|
|
3415
|
-
const focusedDayId = $
|
|
3416
|
-
$
|
|
3417
|
-
if ($
|
|
3546
|
+
const anchorIso = $8.derived(() => resolveAnchorIso(value(), $$props.month, untrack3(() => $8.get(todayIso))));
|
|
3547
|
+
const anchorDate = $8.derived(() => parseISODate($8.get(anchorIso)) ?? parseISODate($8.get(todayIso)));
|
|
3548
|
+
let visibleMonthDate = $8.state($8.proxy(startOfMonth(parseISODate(initialAnchorIso) ?? parseISODate(initialTodayIso))));
|
|
3549
|
+
let focusedIso = $8.state($8.proxy(initialFocusedIso));
|
|
3550
|
+
let lastSyncedAnchorIso = $8.state($8.proxy(initialAnchorIso));
|
|
3551
|
+
const focusedDayId = $8.derived(() => `${$8.get(monthGridId)}-day-${$8.get(focusedIso)}`);
|
|
3552
|
+
$8.user_effect(() => {
|
|
3553
|
+
if ($8.get(anchorIso) === $8.get(lastSyncedAnchorIso))
|
|
3418
3554
|
return;
|
|
3419
|
-
$
|
|
3420
|
-
$
|
|
3421
|
-
$
|
|
3555
|
+
$8.set(visibleMonthDate, startOfMonth($8.get(anchorDate)), true);
|
|
3556
|
+
$8.set(focusedIso, $8.get(anchorIso), true);
|
|
3557
|
+
$8.set(lastSyncedAnchorIso, $8.get(anchorIso), true);
|
|
3422
3558
|
});
|
|
3423
|
-
const monthLabel = $
|
|
3559
|
+
const monthLabel = $8.derived(() => new Intl.DateTimeFormat(locale(), {
|
|
3424
3560
|
month: "long",
|
|
3425
3561
|
year: "numeric",
|
|
3426
|
-
era: $
|
|
3562
|
+
era: $8.get(visibleMonthDate).getUTCFullYear() <= 0 ? "short" : undefined,
|
|
3427
3563
|
timeZone: "UTC"
|
|
3428
|
-
}).format($
|
|
3429
|
-
const weekdayLabels = $
|
|
3430
|
-
const dayIndex = (
|
|
3564
|
+
}).format($8.get(visibleMonthDate)));
|
|
3565
|
+
const weekdayLabels = $8.derived(() => WEEKDAY_INDEXES.map((index2) => {
|
|
3566
|
+
const dayIndex = (index2 + firstDayOfWeek()) % 7;
|
|
3431
3567
|
const base = createCalendarDate(2024, 0, 7 + dayIndex);
|
|
3432
3568
|
return new Intl.DateTimeFormat(locale(), { weekday: "short", timeZone: "UTC" }).format(base);
|
|
3433
3569
|
}));
|
|
3434
|
-
const cells = $
|
|
3435
|
-
const first = startOfMonth($
|
|
3570
|
+
const cells = $8.derived(() => {
|
|
3571
|
+
const first = startOfMonth($8.get(visibleMonthDate));
|
|
3436
3572
|
const gridStart = startOfWeek(first, firstDayOfWeek());
|
|
3437
3573
|
const selectedIso = value();
|
|
3438
|
-
const focused = $
|
|
3574
|
+
const focused = $8.get(focusedIso);
|
|
3439
3575
|
const dayLabelFmt = new Intl.DateTimeFormat(locale(), {
|
|
3440
3576
|
weekday: "long",
|
|
3441
3577
|
year: "numeric",
|
|
@@ -3452,14 +3588,14 @@ function Calendar($$anchor, $$props) {
|
|
|
3452
3588
|
timeZone: "UTC"
|
|
3453
3589
|
});
|
|
3454
3590
|
const next = [];
|
|
3455
|
-
for (let
|
|
3456
|
-
const date = addDays(gridStart,
|
|
3591
|
+
for (let index2 = 0;index2 < 42; index2 += 1) {
|
|
3592
|
+
const date = addDays(gridStart, index2);
|
|
3457
3593
|
const supported = isSupportedCalendarDate(date);
|
|
3458
3594
|
const iso = supported ? toISODate(date) : "";
|
|
3459
3595
|
next.push({
|
|
3460
3596
|
iso,
|
|
3461
3597
|
day: date.getUTCDate(),
|
|
3462
|
-
inMonth: date.getUTCMonth() === $
|
|
3598
|
+
inMonth: date.getUTCMonth() === $8.get(visibleMonthDate).getUTCMonth(),
|
|
3463
3599
|
disabled: disabled() || !supported || isDateDisabled(iso),
|
|
3464
3600
|
focused: iso === focused,
|
|
3465
3601
|
selected: iso === selectedIso,
|
|
@@ -3468,10 +3604,10 @@ function Calendar($$anchor, $$props) {
|
|
|
3468
3604
|
}
|
|
3469
3605
|
return next;
|
|
3470
3606
|
});
|
|
3471
|
-
const rows = $
|
|
3607
|
+
const rows = $8.derived(() => {
|
|
3472
3608
|
const next = [];
|
|
3473
|
-
for (let
|
|
3474
|
-
next.push($
|
|
3609
|
+
for (let index2 = 0;index2 < $8.get(cells).length; index2 += 7) {
|
|
3610
|
+
next.push($8.get(cells).slice(index2, index2 + 7));
|
|
3475
3611
|
}
|
|
3476
3612
|
return next;
|
|
3477
3613
|
});
|
|
@@ -3486,23 +3622,23 @@ function Calendar($$anchor, $$props) {
|
|
|
3486
3622
|
const clamped = parseISODate(iso);
|
|
3487
3623
|
if (!clamped)
|
|
3488
3624
|
return;
|
|
3489
|
-
$
|
|
3490
|
-
$
|
|
3625
|
+
$8.set(focusedIso, iso, true);
|
|
3626
|
+
$8.set(visibleMonthDate, startOfMonth(clamped), true);
|
|
3491
3627
|
if (!moveDomFocus)
|
|
3492
3628
|
return;
|
|
3493
3629
|
await tick();
|
|
3494
|
-
const target = document.getElementById($
|
|
3630
|
+
const target = document.getElementById($8.get(focusedDayId));
|
|
3495
3631
|
target?.focus();
|
|
3496
3632
|
}
|
|
3497
3633
|
function commitDate(iso) {
|
|
3498
3634
|
if (disabled() || !parseISODate(iso) || isDateDisabled(iso))
|
|
3499
3635
|
return;
|
|
3500
3636
|
value(iso);
|
|
3501
|
-
$
|
|
3502
|
-
$$props.
|
|
3637
|
+
$8.set(focusedIso, iso, true);
|
|
3638
|
+
$$props.onValueChange?.(iso);
|
|
3503
3639
|
}
|
|
3504
3640
|
async function moveFocusedByDays(delta) {
|
|
3505
|
-
const base = parseISODate($
|
|
3641
|
+
const base = parseISODate($8.get(focusedIso)) ?? $8.get(visibleMonthDate);
|
|
3506
3642
|
const next = addDays(base, delta);
|
|
3507
3643
|
await focusDate(toISODate(next), true);
|
|
3508
3644
|
}
|
|
@@ -3511,7 +3647,7 @@ function Calendar($$anchor, $$props) {
|
|
|
3511
3647
|
return createCalendarDate(year, monthValue, Math.min(day, lastDay));
|
|
3512
3648
|
}
|
|
3513
3649
|
async function moveFocusedByMonths(delta, moveDomFocus = true) {
|
|
3514
|
-
const base = parseISODate($
|
|
3650
|
+
const base = parseISODate($8.get(focusedIso)) ?? $8.get(visibleMonthDate);
|
|
3515
3651
|
const monthStart = addMonths(startOfMonth(base), delta);
|
|
3516
3652
|
const candidate = clampDayToMonth(monthStart.getUTCFullYear(), monthStart.getUTCMonth(), base.getUTCDate());
|
|
3517
3653
|
await focusDate(toISODate(candidate), moveDomFocus);
|
|
@@ -3538,14 +3674,14 @@ function Calendar($$anchor, $$props) {
|
|
|
3538
3674
|
break;
|
|
3539
3675
|
case "Home": {
|
|
3540
3676
|
event2.preventDefault();
|
|
3541
|
-
const focused = parseISODate($
|
|
3677
|
+
const focused = parseISODate($8.get(focusedIso)) ?? $8.get(visibleMonthDate);
|
|
3542
3678
|
const weekStart = startOfWeek(focused, firstDayOfWeek());
|
|
3543
3679
|
await focusDate(toISODate(weekStart), true);
|
|
3544
3680
|
break;
|
|
3545
3681
|
}
|
|
3546
3682
|
case "End": {
|
|
3547
3683
|
event2.preventDefault();
|
|
3548
|
-
const focused = parseISODate($
|
|
3684
|
+
const focused = parseISODate($8.get(focusedIso)) ?? $8.get(visibleMonthDate);
|
|
3549
3685
|
const weekEnd = addDays(startOfWeek(focused, firstDayOfWeek()), 6);
|
|
3550
3686
|
await focusDate(toISODate(weekEnd), true);
|
|
3551
3687
|
break;
|
|
@@ -3561,14 +3697,14 @@ function Calendar($$anchor, $$props) {
|
|
|
3561
3697
|
case "Enter":
|
|
3562
3698
|
case " ":
|
|
3563
3699
|
event2.preventDefault();
|
|
3564
|
-
commitDate($
|
|
3700
|
+
commitDate($8.get(focusedIso));
|
|
3565
3701
|
break;
|
|
3566
3702
|
default:
|
|
3567
3703
|
break;
|
|
3568
3704
|
}
|
|
3569
3705
|
}
|
|
3570
3706
|
function canGoPrevMonth() {
|
|
3571
|
-
const prev = addMonths($
|
|
3707
|
+
const prev = addMonths($8.get(visibleMonthDate), -1);
|
|
3572
3708
|
if (!isSupportedCalendarDate(prev))
|
|
3573
3709
|
return false;
|
|
3574
3710
|
if (!$$props.min)
|
|
@@ -3577,7 +3713,7 @@ function Calendar($$anchor, $$props) {
|
|
|
3577
3713
|
return toISODate(monthEnd) >= $$props.min;
|
|
3578
3714
|
}
|
|
3579
3715
|
function canGoNextMonth() {
|
|
3580
|
-
const next = addMonths($
|
|
3716
|
+
const next = addMonths($8.get(visibleMonthDate), 1);
|
|
3581
3717
|
if (!isSupportedCalendarDate(next))
|
|
3582
3718
|
return false;
|
|
3583
3719
|
if (!$$props.max)
|
|
@@ -3586,88 +3722,88 @@ function Calendar($$anchor, $$props) {
|
|
|
3586
3722
|
return toISODate(monthStart) <= $$props.max;
|
|
3587
3723
|
}
|
|
3588
3724
|
var div = root_32();
|
|
3589
|
-
$
|
|
3590
|
-
var div_1 = $
|
|
3591
|
-
var button = $
|
|
3592
|
-
var p = $
|
|
3593
|
-
var text = $
|
|
3594
|
-
$
|
|
3595
|
-
var button_1 = $
|
|
3596
|
-
$
|
|
3597
|
-
var div_2 = $
|
|
3598
|
-
$
|
|
3599
|
-
var span =
|
|
3600
|
-
var text_1 = $
|
|
3601
|
-
$
|
|
3602
|
-
$
|
|
3603
|
-
$
|
|
3725
|
+
$8.attribute_effect(div, ($0) => ({ ...rest, "aria-label": label(), class: $0 }), [() => classNames("cinder-calendar", $$props.class)]);
|
|
3726
|
+
var div_1 = $8.child(div);
|
|
3727
|
+
var button = $8.child(div_1);
|
|
3728
|
+
var p = $8.sibling(button, 2);
|
|
3729
|
+
var text = $8.child(p, true);
|
|
3730
|
+
$8.reset(p);
|
|
3731
|
+
var button_1 = $8.sibling(p, 2);
|
|
3732
|
+
$8.reset(div_1);
|
|
3733
|
+
var div_2 = $8.sibling(div_1, 2);
|
|
3734
|
+
$8.each(div_2, 20, () => $8.get(weekdayLabels), (weekday) => weekday, ($$anchor2, weekday) => {
|
|
3735
|
+
var span = root4();
|
|
3736
|
+
var text_1 = $8.child(span, true);
|
|
3737
|
+
$8.reset(span);
|
|
3738
|
+
$8.template_effect(() => $8.set_text(text_1, weekday));
|
|
3739
|
+
$8.append($$anchor2, span);
|
|
3604
3740
|
});
|
|
3605
|
-
$
|
|
3606
|
-
var div_3 = $
|
|
3607
|
-
$
|
|
3741
|
+
$8.reset(div_2);
|
|
3742
|
+
var div_3 = $8.sibling(div_2, 2);
|
|
3743
|
+
$8.each(div_3, 23, () => $8.get(rows), (row, rowIndex) => row[0]?.iso || rowIndex, ($$anchor2, row) => {
|
|
3608
3744
|
var div_4 = root_22();
|
|
3609
|
-
$
|
|
3745
|
+
$8.each(div_4, 23, () => $8.get(row), (cell, cellIndex) => cell.iso || cellIndex, ($$anchor3, cell) => {
|
|
3610
3746
|
var div_5 = root_12();
|
|
3611
|
-
var button_2 = $
|
|
3612
|
-
var text_2 = $
|
|
3613
|
-
$
|
|
3614
|
-
$
|
|
3615
|
-
$
|
|
3616
|
-
$
|
|
3617
|
-
$
|
|
3618
|
-
$
|
|
3619
|
-
$
|
|
3620
|
-
$
|
|
3621
|
-
$
|
|
3622
|
-
$
|
|
3623
|
-
$
|
|
3624
|
-
$
|
|
3625
|
-
$
|
|
3747
|
+
var button_2 = $8.child(div_5);
|
|
3748
|
+
var text_2 = $8.child(button_2, true);
|
|
3749
|
+
$8.reset(button_2);
|
|
3750
|
+
$8.reset(div_5);
|
|
3751
|
+
$8.template_effect(() => {
|
|
3752
|
+
$8.set_attribute(div_5, "aria-selected", $8.get(cell).selected || undefined);
|
|
3753
|
+
$8.set_attribute(button_2, "id", $8.get(cell).iso ? `${$8.get(monthGridId)}-day-${$8.get(cell).iso}` : undefined);
|
|
3754
|
+
$8.set_attribute(button_2, "data-outside", $8.get(cell).inMonth ? undefined : "");
|
|
3755
|
+
$8.set_attribute(button_2, "data-selected", $8.get(cell).selected ? "" : undefined);
|
|
3756
|
+
$8.set_attribute(button_2, "data-focused", $8.get(cell).focused ? "" : undefined);
|
|
3757
|
+
$8.set_attribute(button_2, "aria-current", $8.get(cell).iso === $8.get(todayIso) ? "date" : undefined);
|
|
3758
|
+
$8.set_attribute(button_2, "aria-label", $8.get(cell).ariaLabel);
|
|
3759
|
+
$8.set_attribute(button_2, "aria-disabled", $8.get(cell).disabled ? "true" : undefined);
|
|
3760
|
+
$8.set_attribute(button_2, "tabindex", $8.get(cell).focused ? 0 : -1);
|
|
3761
|
+
$8.set_text(text_2, $8.get(cell).day);
|
|
3626
3762
|
});
|
|
3627
|
-
$
|
|
3628
|
-
commitDate($
|
|
3763
|
+
$8.delegated("click", button_2, () => {
|
|
3764
|
+
commitDate($8.get(cell).iso);
|
|
3629
3765
|
});
|
|
3630
|
-
$
|
|
3631
|
-
if ($
|
|
3632
|
-
$
|
|
3766
|
+
$8.event("focus", button_2, () => {
|
|
3767
|
+
if ($8.get(cell).iso)
|
|
3768
|
+
$8.set(focusedIso, $8.get(cell).iso, true);
|
|
3633
3769
|
});
|
|
3634
|
-
$
|
|
3770
|
+
$8.append($$anchor3, div_5);
|
|
3635
3771
|
});
|
|
3636
|
-
$
|
|
3637
|
-
$
|
|
3772
|
+
$8.reset(div_4);
|
|
3773
|
+
$8.append($$anchor2, div_4);
|
|
3638
3774
|
});
|
|
3639
|
-
$
|
|
3640
|
-
$
|
|
3641
|
-
$
|
|
3775
|
+
$8.reset(div_3);
|
|
3776
|
+
$8.reset(div);
|
|
3777
|
+
$8.template_effect(($0, $1) => {
|
|
3642
3778
|
button.disabled = $0;
|
|
3643
|
-
$
|
|
3644
|
-
$
|
|
3779
|
+
$8.set_attribute(p, "id", $8.get(titleId));
|
|
3780
|
+
$8.set_text(text, $8.get(monthLabel));
|
|
3645
3781
|
button_1.disabled = $1;
|
|
3646
|
-
$
|
|
3647
|
-
$
|
|
3782
|
+
$8.set_attribute(div_3, "id", $8.get(monthGridId));
|
|
3783
|
+
$8.set_attribute(div_3, "aria-labelledby", $8.get(titleId));
|
|
3648
3784
|
}, [
|
|
3649
3785
|
() => disabled() || !canGoPrevMonth(),
|
|
3650
3786
|
() => disabled() || !canGoNextMonth()
|
|
3651
3787
|
]);
|
|
3652
|
-
$
|
|
3788
|
+
$8.delegated("click", button, () => {
|
|
3653
3789
|
moveFocusedByMonths(-1, false);
|
|
3654
3790
|
});
|
|
3655
|
-
$
|
|
3791
|
+
$8.delegated("click", button_1, () => {
|
|
3656
3792
|
moveFocusedByMonths(1, false);
|
|
3657
3793
|
});
|
|
3658
|
-
$
|
|
3659
|
-
$
|
|
3660
|
-
$
|
|
3794
|
+
$8.delegated("keydown", div_3, handleKeydown);
|
|
3795
|
+
$8.append($$anchor, div);
|
|
3796
|
+
$8.pop();
|
|
3661
3797
|
}
|
|
3662
|
-
$
|
|
3798
|
+
$8.delegate(["click", "keydown"]);
|
|
3663
3799
|
|
|
3664
3800
|
// src/components/popover/popover.svelte
|
|
3665
3801
|
import"svelte/internal/disclose-version";
|
|
3666
|
-
import * as $
|
|
3667
|
-
import { onDestroy, untrack as
|
|
3802
|
+
import * as $10 from "svelte/internal/client";
|
|
3803
|
+
import { onDestroy, untrack as untrack4 } from "svelte";
|
|
3668
3804
|
|
|
3669
3805
|
// src/_internal/anchored-overlay.svelte.ts
|
|
3670
|
-
import * as $
|
|
3806
|
+
import * as $9 from "svelte/internal/client";
|
|
3671
3807
|
var DEFAULT_PLACEMENT = "bottom-start";
|
|
3672
3808
|
var DEFAULT_OFFSET = 8;
|
|
3673
3809
|
var DEFAULT_SHIFT_PADDING = 8;
|
|
@@ -3728,34 +3864,34 @@ function cacheFloatingUiModule(load) {
|
|
|
3728
3864
|
return floatingUiModulePromise;
|
|
3729
3865
|
}
|
|
3730
3866
|
function createAnchoredOverlay(options) {
|
|
3731
|
-
let positionReady = $
|
|
3732
|
-
let positionStyle = $
|
|
3733
|
-
let availableHeightStyle = $
|
|
3734
|
-
let resolvedPlacement = $
|
|
3735
|
-
let arrowStyle = $
|
|
3736
|
-
$
|
|
3867
|
+
let positionReady = $9.state(false);
|
|
3868
|
+
let positionStyle = $9.state("");
|
|
3869
|
+
let availableHeightStyle = $9.state("");
|
|
3870
|
+
let resolvedPlacement = $9.state($9.proxy(options.placement?.() ?? DEFAULT_PLACEMENT));
|
|
3871
|
+
let arrowStyle = $9.state("");
|
|
3872
|
+
$9.user_effect(() => {
|
|
3737
3873
|
const anchor = options.anchor();
|
|
3738
3874
|
const panel = options.panel();
|
|
3739
3875
|
if (!anchor || !panel)
|
|
3740
3876
|
return;
|
|
3741
3877
|
cacheFloatingUiModule(() => Promise.resolve().then(() => (init_floating_ui_dom(), exports_floating_ui_dom))).catch(() => {});
|
|
3742
3878
|
});
|
|
3743
|
-
$
|
|
3879
|
+
$9.user_effect(() => {
|
|
3744
3880
|
if (!options.open()) {
|
|
3745
|
-
$
|
|
3746
|
-
$
|
|
3747
|
-
$
|
|
3748
|
-
$
|
|
3749
|
-
$
|
|
3881
|
+
$9.set(positionReady, false);
|
|
3882
|
+
$9.set(positionStyle, "");
|
|
3883
|
+
$9.set(availableHeightStyle, "");
|
|
3884
|
+
$9.set(arrowStyle, "");
|
|
3885
|
+
$9.set(resolvedPlacement, options.placement?.() ?? DEFAULT_PLACEMENT, true);
|
|
3750
3886
|
return;
|
|
3751
3887
|
}
|
|
3752
3888
|
const anchor = options.anchor();
|
|
3753
3889
|
const panel = options.panel();
|
|
3754
3890
|
if (!anchor || !panel) {
|
|
3755
|
-
$
|
|
3756
|
-
$
|
|
3757
|
-
$
|
|
3758
|
-
$
|
|
3891
|
+
$9.set(positionReady, false);
|
|
3892
|
+
$9.set(positionStyle, "");
|
|
3893
|
+
$9.set(availableHeightStyle, "");
|
|
3894
|
+
$9.set(arrowStyle, "");
|
|
3759
3895
|
return;
|
|
3760
3896
|
}
|
|
3761
3897
|
const placement = options.placement?.() ?? DEFAULT_PLACEMENT;
|
|
@@ -3791,7 +3927,7 @@ function createAnchoredOverlay(options) {
|
|
|
3791
3927
|
return;
|
|
3792
3928
|
const currentGeneration = ++generation;
|
|
3793
3929
|
if (!sizeEnabled) {
|
|
3794
|
-
$
|
|
3930
|
+
$9.set(availableHeightStyle, "");
|
|
3795
3931
|
panel.style.removeProperty("max-block-size");
|
|
3796
3932
|
}
|
|
3797
3933
|
const middleware = [
|
|
@@ -3805,7 +3941,7 @@ function createAnchoredOverlay(options) {
|
|
|
3805
3941
|
apply({ availableHeight }) {
|
|
3806
3942
|
if (!isAnchoredOverlayWriteCurrent(currentGeneration, generation, cancelled))
|
|
3807
3943
|
return;
|
|
3808
|
-
$
|
|
3944
|
+
$9.set(availableHeightStyle, applyAnchoredOverlayMaxBlockSize(panel, availableHeight, sizeMaxBlockSize), true);
|
|
3809
3945
|
}
|
|
3810
3946
|
}));
|
|
3811
3947
|
}
|
|
@@ -3824,25 +3960,25 @@ function createAnchoredOverlay(options) {
|
|
|
3824
3960
|
} catch {
|
|
3825
3961
|
if (cancelled || currentGeneration !== generation)
|
|
3826
3962
|
return;
|
|
3827
|
-
$
|
|
3828
|
-
$
|
|
3829
|
-
$
|
|
3830
|
-
$
|
|
3963
|
+
$9.set(positionReady, false);
|
|
3964
|
+
$9.set(positionStyle, "");
|
|
3965
|
+
$9.set(arrowStyle, "");
|
|
3966
|
+
$9.set(resolvedPlacement, placement, true);
|
|
3831
3967
|
return;
|
|
3832
3968
|
}
|
|
3833
3969
|
if (cancelled || currentGeneration !== generation)
|
|
3834
3970
|
return;
|
|
3835
3971
|
const widthStyle = getAnchoredOverlayWidthStyle(widthMode, anchor.getBoundingClientRect());
|
|
3836
|
-
$
|
|
3972
|
+
$9.set(positionStyle, [
|
|
3837
3973
|
`position: ${strategy};`,
|
|
3838
3974
|
`left: ${result.x}px;`,
|
|
3839
3975
|
`top: ${result.y}px;`,
|
|
3840
|
-
$
|
|
3976
|
+
$9.get(availableHeightStyle) ? `max-block-size: ${$9.get(availableHeightStyle)};` : "",
|
|
3841
3977
|
widthStyle
|
|
3842
3978
|
].filter(Boolean).join(" "), true);
|
|
3843
|
-
$
|
|
3844
|
-
$
|
|
3845
|
-
$
|
|
3979
|
+
$9.set(resolvedPlacement, result.placement, true);
|
|
3980
|
+
$9.set(arrowStyle, arrowVisible ? getArrowStyle(result.middlewareData.arrow) : "", true);
|
|
3981
|
+
$9.set(positionReady, true);
|
|
3846
3982
|
};
|
|
3847
3983
|
stopAutoUpdate = autoUpdate2(anchor, panel, updatePosition);
|
|
3848
3984
|
if (boundary && boundary !== anchor && boundary !== panel && typeof ResizeObserver !== "undefined") {
|
|
@@ -3854,11 +3990,11 @@ function createAnchoredOverlay(options) {
|
|
|
3854
3990
|
})().catch((error) => {
|
|
3855
3991
|
if (cancelled)
|
|
3856
3992
|
return;
|
|
3857
|
-
$
|
|
3858
|
-
$
|
|
3859
|
-
$
|
|
3860
|
-
$
|
|
3861
|
-
$
|
|
3993
|
+
$9.set(positionReady, false);
|
|
3994
|
+
$9.set(positionStyle, "");
|
|
3995
|
+
$9.set(availableHeightStyle, "");
|
|
3996
|
+
$9.set(arrowStyle, "");
|
|
3997
|
+
$9.set(resolvedPlacement, placement, true);
|
|
3862
3998
|
reportAnchoredOverlaySetupError(error);
|
|
3863
3999
|
});
|
|
3864
4000
|
return () => {
|
|
@@ -3866,25 +4002,25 @@ function createAnchoredOverlay(options) {
|
|
|
3866
4002
|
stopAutoUpdate?.();
|
|
3867
4003
|
boundaryResizeObserver?.disconnect();
|
|
3868
4004
|
panel.style.removeProperty("max-block-size");
|
|
3869
|
-
$
|
|
3870
|
-
$
|
|
3871
|
-
$
|
|
3872
|
-
$
|
|
3873
|
-
$
|
|
4005
|
+
$9.set(positionReady, false);
|
|
4006
|
+
$9.set(positionStyle, "");
|
|
4007
|
+
$9.set(availableHeightStyle, "");
|
|
4008
|
+
$9.set(arrowStyle, "");
|
|
4009
|
+
$9.set(resolvedPlacement, placement, true);
|
|
3874
4010
|
};
|
|
3875
4011
|
});
|
|
3876
4012
|
return {
|
|
3877
4013
|
get positionReady() {
|
|
3878
|
-
return $
|
|
4014
|
+
return $9.get(positionReady);
|
|
3879
4015
|
},
|
|
3880
4016
|
get positionStyle() {
|
|
3881
|
-
return $
|
|
4017
|
+
return $9.get(positionStyle);
|
|
3882
4018
|
},
|
|
3883
4019
|
get resolvedPlacement() {
|
|
3884
|
-
return $
|
|
4020
|
+
return $9.get(resolvedPlacement);
|
|
3885
4021
|
},
|
|
3886
4022
|
get arrowStyle() {
|
|
3887
|
-
return $
|
|
4023
|
+
return $9.get(arrowStyle);
|
|
3888
4024
|
}
|
|
3889
4025
|
};
|
|
3890
4026
|
}
|
|
@@ -3901,9 +4037,9 @@ function pushEscapeHandler(handler) {
|
|
|
3901
4037
|
if (released)
|
|
3902
4038
|
return;
|
|
3903
4039
|
released = true;
|
|
3904
|
-
const
|
|
3905
|
-
if (
|
|
3906
|
-
escapeStack.splice(
|
|
4040
|
+
const index2 = escapeStack.lastIndexOf(handler);
|
|
4041
|
+
if (index2 !== -1)
|
|
4042
|
+
escapeStack.splice(index2, 1);
|
|
3907
4043
|
if (escapeStack.length === 0 && typeof window !== "undefined") {
|
|
3908
4044
|
window.removeEventListener("keydown", onEscapeKeydown, { capture: true });
|
|
3909
4045
|
}
|
|
@@ -3983,16 +4119,16 @@ var sequentialFocusCandidateSelector = [
|
|
|
3983
4119
|
"[contenteditable]",
|
|
3984
4120
|
"[tabindex]"
|
|
3985
4121
|
].join(", ");
|
|
3986
|
-
function getSequentialFocusTargets(
|
|
3987
|
-
if (!
|
|
4122
|
+
function getSequentialFocusTargets(root5, range) {
|
|
4123
|
+
if (!root5)
|
|
3988
4124
|
return [];
|
|
3989
|
-
const composedElements = collectComposedElements(
|
|
4125
|
+
const composedElements = collectComposedElements(root5);
|
|
3990
4126
|
const relativeIndex = range ? composedElements.indexOf(range.relativeTo) : -1;
|
|
3991
4127
|
if (range && relativeIndex === -1)
|
|
3992
4128
|
return [];
|
|
3993
4129
|
const tierReference = range?.tierReference ?? range?.relativeTo;
|
|
3994
|
-
const positionOf = range ? new Map(composedElements.map((
|
|
3995
|
-
const candidates = composedElements.filter(isSequentialFocusTarget).filter((
|
|
4130
|
+
const positionOf = range ? new Map(composedElements.map((element2, index2) => [element2, index2])) : null;
|
|
4131
|
+
const candidates = composedElements.filter(isSequentialFocusTarget).filter((element2) => !range || isSequentialFocusTarget(tierReference) && isSequentiallyAfterReference(element2, tierReference, range.direction, (positionOf?.get(element2) ?? -1) - relativeIndex)).filter((element2) => element2.matches(sequentialFocusCandidateSelector)).filter(isSequentialCandidate);
|
|
3996
4132
|
const radios = [];
|
|
3997
4133
|
for (const candidate of candidates) {
|
|
3998
4134
|
if (!isRadio(candidate))
|
|
@@ -4035,33 +4171,33 @@ function getSequentialFocusTargets(root4, range) {
|
|
|
4035
4171
|
return leftTabIndex - rightTabIndex;
|
|
4036
4172
|
});
|
|
4037
4173
|
}
|
|
4038
|
-
function collectComposedElements(
|
|
4174
|
+
function collectComposedElements(root5) {
|
|
4039
4175
|
const elements = [];
|
|
4040
4176
|
const visited = new Set;
|
|
4041
|
-
const visit = (
|
|
4042
|
-
if (visited.has(
|
|
4177
|
+
const visit = (element2, fromSlot = false) => {
|
|
4178
|
+
if (visited.has(element2))
|
|
4043
4179
|
return;
|
|
4044
|
-
if (!fromSlot &&
|
|
4180
|
+
if (!fromSlot && element2.assignedSlot)
|
|
4045
4181
|
return;
|
|
4046
|
-
visited.add(
|
|
4047
|
-
elements.push(
|
|
4048
|
-
if (isSlotElement(
|
|
4049
|
-
if (
|
|
4050
|
-
for (const
|
|
4051
|
-
visit(
|
|
4182
|
+
visited.add(element2);
|
|
4183
|
+
elements.push(element2);
|
|
4184
|
+
if (isSlotElement(element2)) {
|
|
4185
|
+
if (element2.assignedNodes({ flatten: false }).length > 0) {
|
|
4186
|
+
for (const child5 of element2.assignedElements({ flatten: true }))
|
|
4187
|
+
visit(child5, true);
|
|
4052
4188
|
return;
|
|
4053
4189
|
}
|
|
4054
4190
|
}
|
|
4055
|
-
const childRoot =
|
|
4056
|
-
for (const
|
|
4057
|
-
visit(
|
|
4191
|
+
const childRoot = element2.shadowRoot ?? element2;
|
|
4192
|
+
for (const child5 of Array.from(childRoot.children))
|
|
4193
|
+
visit(child5);
|
|
4058
4194
|
};
|
|
4059
|
-
for (const
|
|
4060
|
-
visit(
|
|
4195
|
+
for (const child5 of Array.from(root5.children))
|
|
4196
|
+
visit(child5);
|
|
4061
4197
|
return elements;
|
|
4062
4198
|
}
|
|
4063
|
-
function isSlotElement(
|
|
4064
|
-
return
|
|
4199
|
+
function isSlotElement(element2) {
|
|
4200
|
+
return element2.localName === "slot" && typeof Reflect.get(element2, "assignedElements") === "function" && typeof Reflect.get(element2, "assignedNodes") === "function";
|
|
4065
4201
|
}
|
|
4066
4202
|
function isSequentialCandidate(candidate) {
|
|
4067
4203
|
const explicitTabIndexValue = getExplicitTabIndexValue(candidate);
|
|
@@ -4075,22 +4211,22 @@ function isSequentialCandidate(candidate) {
|
|
|
4075
4211
|
return false;
|
|
4076
4212
|
return true;
|
|
4077
4213
|
}
|
|
4078
|
-
function hasNativeSequentialDefault(
|
|
4079
|
-
return
|
|
4214
|
+
function hasNativeSequentialDefault(element2) {
|
|
4215
|
+
return element2.matches('button, input:not([type="hidden"]), a[href], area[href], select, textarea, summary, frame, iframe') || element2.matches("audio[controls], video[controls], embed[src]") || element2.matches("object") && (element2.getAttribute("data")?.trim().length ?? 0) > 0 || isHtmlElementNode(element2) && isEditingHost(element2);
|
|
4080
4216
|
}
|
|
4081
|
-
function isRadio(
|
|
4082
|
-
return isHtmlElementNode(
|
|
4217
|
+
function isRadio(element2) {
|
|
4218
|
+
return isHtmlElementNode(element2) && element2.localName === "input" && element2.getAttribute("type")?.toLowerCase() === "radio";
|
|
4083
4219
|
}
|
|
4084
|
-
function getFormOwner(
|
|
4085
|
-
const formValue = "form" in
|
|
4220
|
+
function getFormOwner(element2) {
|
|
4221
|
+
const formValue = "form" in element2 ? Reflect.get(element2, "form") : null;
|
|
4086
4222
|
return isHtmlElementNode(formValue) ? formValue : null;
|
|
4087
4223
|
}
|
|
4088
|
-
function sequentialTabIndexValue(
|
|
4089
|
-
return Math.max(0, getTabIndexValue(
|
|
4224
|
+
function sequentialTabIndexValue(element2) {
|
|
4225
|
+
return Math.max(0, getTabIndexValue(element2));
|
|
4090
4226
|
}
|
|
4091
|
-
function isSequentiallyAfterReference(
|
|
4227
|
+
function isSequentiallyAfterReference(element2, reference, direction, relativePosition) {
|
|
4092
4228
|
const referenceTabIndex = getTabIndexValue(reference);
|
|
4093
|
-
const elementTabIndex = getTabIndexValue(
|
|
4229
|
+
const elementTabIndex = getTabIndexValue(element2);
|
|
4094
4230
|
const referenceIsPositive = referenceTabIndex > 0;
|
|
4095
4231
|
const elementIsPositive = elementTabIndex > 0;
|
|
4096
4232
|
if (direction === "after") {
|
|
@@ -4116,8 +4252,8 @@ function isSequentiallyAfterReference(element, reference, direction, relativePos
|
|
|
4116
4252
|
return true;
|
|
4117
4253
|
return relativePosition < 0;
|
|
4118
4254
|
}
|
|
4119
|
-
function getTabIndexValue(
|
|
4120
|
-
return getExplicitTabIndexValue(
|
|
4255
|
+
function getTabIndexValue(element2) {
|
|
4256
|
+
return getExplicitTabIndexValue(element2) ?? (hasNativeSequentialDefault(element2) ? 0 : -1);
|
|
4121
4257
|
}
|
|
4122
4258
|
function findSequentialEntryTarget(candidates, referenceTabIndex, direction) {
|
|
4123
4259
|
if (direction === "after") {
|
|
@@ -4133,8 +4269,8 @@ function findSequentialEntryTarget(candidates, referenceTabIndex, direction) {
|
|
|
4133
4269
|
return candidateTabIndex > 0 && candidateTabIndex <= referenceTabIndex;
|
|
4134
4270
|
}) ?? null;
|
|
4135
4271
|
}
|
|
4136
|
-
function getExplicitTabIndexValue(
|
|
4137
|
-
const rawValue =
|
|
4272
|
+
function getExplicitTabIndexValue(element2) {
|
|
4273
|
+
const rawValue = element2.getAttribute("tabindex");
|
|
4138
4274
|
if (rawValue !== null) {
|
|
4139
4275
|
const match = /^[\t\n\f\r ]*([+-]?\d+)/.exec(rawValue);
|
|
4140
4276
|
if (match?.[1]) {
|
|
@@ -4144,11 +4280,11 @@ function getExplicitTabIndexValue(element) {
|
|
|
4144
4280
|
}
|
|
4145
4281
|
return null;
|
|
4146
4282
|
}
|
|
4147
|
-
function isEditingHost(
|
|
4148
|
-
return hasContentEditableState(
|
|
4283
|
+
function isEditingHost(element2) {
|
|
4284
|
+
return hasContentEditableState(element2) && !hasContentEditableState(element2.parentElement);
|
|
4149
4285
|
}
|
|
4150
|
-
function hasContentEditableState(
|
|
4151
|
-
for (let current =
|
|
4286
|
+
function hasContentEditableState(element2) {
|
|
4287
|
+
for (let current = element2;current; current = current.parentElement) {
|
|
4152
4288
|
const value = current.getAttribute("contenteditable")?.toLowerCase();
|
|
4153
4289
|
if (value === "" || value === "true" || value === "plaintext-only")
|
|
4154
4290
|
return true;
|
|
@@ -4157,15 +4293,15 @@ function hasContentEditableState(element) {
|
|
|
4157
4293
|
}
|
|
4158
4294
|
return false;
|
|
4159
4295
|
}
|
|
4160
|
-
function isFirstDetailsSummary(
|
|
4161
|
-
const details =
|
|
4162
|
-
return details?.tagName === "DETAILS" && Array.from(details.children).find((
|
|
4296
|
+
function isFirstDetailsSummary(element2) {
|
|
4297
|
+
const details = element2.parentElement;
|
|
4298
|
+
return details?.tagName === "DETAILS" && Array.from(details.children).find((child5) => child5.tagName === "SUMMARY") === element2;
|
|
4163
4299
|
}
|
|
4164
|
-
function isInsideClosedDetails(
|
|
4165
|
-
let current = composedParentElement(
|
|
4300
|
+
function isInsideClosedDetails(element2) {
|
|
4301
|
+
let current = composedParentElement(element2);
|
|
4166
4302
|
while (current) {
|
|
4167
|
-
const summary = Array.from(current.children).find((
|
|
4168
|
-
if (current.tagName === "DETAILS" && !current.hasAttribute("open") && !(summary && composedContains(summary,
|
|
4303
|
+
const summary = Array.from(current.children).find((child5) => child5.tagName === "SUMMARY");
|
|
4304
|
+
if (current.tagName === "DETAILS" && !current.hasAttribute("open") && !(summary && composedContains(summary, element2)))
|
|
4169
4305
|
return true;
|
|
4170
4306
|
current = composedParentElement(current);
|
|
4171
4307
|
}
|
|
@@ -4178,8 +4314,8 @@ function composedContains(ancestor, descendant) {
|
|
|
4178
4314
|
}
|
|
4179
4315
|
return false;
|
|
4180
4316
|
}
|
|
4181
|
-
function closestComposed(
|
|
4182
|
-
let candidate =
|
|
4317
|
+
function closestComposed(element2, selector) {
|
|
4318
|
+
let candidate = element2;
|
|
4183
4319
|
while (candidate) {
|
|
4184
4320
|
if (candidate.matches(selector))
|
|
4185
4321
|
return candidate;
|
|
@@ -4187,10 +4323,10 @@ function closestComposed(element, selector) {
|
|
|
4187
4323
|
}
|
|
4188
4324
|
return null;
|
|
4189
4325
|
}
|
|
4190
|
-
function isRendered(
|
|
4326
|
+
function isRendered(element2) {
|
|
4191
4327
|
if (typeof getComputedStyle !== "function")
|
|
4192
4328
|
return true;
|
|
4193
|
-
let candidate =
|
|
4329
|
+
let candidate = element2;
|
|
4194
4330
|
while (candidate) {
|
|
4195
4331
|
const style = getComputedStyle(candidate);
|
|
4196
4332
|
if (style.display === "none" || style.visibility === "hidden" || style.visibility === "collapse")
|
|
@@ -4199,26 +4335,26 @@ function isRendered(element) {
|
|
|
4199
4335
|
}
|
|
4200
4336
|
return true;
|
|
4201
4337
|
}
|
|
4202
|
-
function composedParentElement(
|
|
4203
|
-
return assignedSlotFor(
|
|
4338
|
+
function composedParentElement(element2) {
|
|
4339
|
+
return assignedSlotFor(element2) ?? element2.parentElement ?? shadowHost(element2.getRootNode());
|
|
4204
4340
|
}
|
|
4205
|
-
function assignedSlotFor(
|
|
4206
|
-
if (isElementNode(
|
|
4207
|
-
return
|
|
4208
|
-
const shadowRoot =
|
|
4341
|
+
function assignedSlotFor(element2) {
|
|
4342
|
+
if (isElementNode(element2.assignedSlot))
|
|
4343
|
+
return element2.assignedSlot;
|
|
4344
|
+
const shadowRoot = element2.parentElement?.shadowRoot;
|
|
4209
4345
|
if (!shadowRoot)
|
|
4210
4346
|
return null;
|
|
4211
|
-
for (const
|
|
4212
|
-
if (isSlotElement(
|
|
4213
|
-
return
|
|
4347
|
+
for (const slot3 of shadowRoot.querySelectorAll("slot")) {
|
|
4348
|
+
if (isSlotElement(slot3) && slot3.assignedElements({ flatten: true }).includes(element2)) {
|
|
4349
|
+
return slot3;
|
|
4214
4350
|
}
|
|
4215
4351
|
}
|
|
4216
4352
|
return null;
|
|
4217
4353
|
}
|
|
4218
|
-
function shadowHost(
|
|
4219
|
-
if (!("host" in
|
|
4354
|
+
function shadowHost(root5) {
|
|
4355
|
+
if (!("host" in root5))
|
|
4220
4356
|
return null;
|
|
4221
|
-
const host =
|
|
4357
|
+
const host = root5.host;
|
|
4222
4358
|
return isElementNode(host) ? host : null;
|
|
4223
4359
|
}
|
|
4224
4360
|
function isElementNode(value) {
|
|
@@ -4255,9 +4391,9 @@ function createBodyScrollLock() {
|
|
|
4255
4391
|
return release;
|
|
4256
4392
|
};
|
|
4257
4393
|
}
|
|
4258
|
-
function isInsideEventPath(event2,
|
|
4394
|
+
function isInsideEventPath(event2, element2) {
|
|
4259
4395
|
const path = event2.composedPath();
|
|
4260
|
-
return path.some((entry) => entry instanceof Node &&
|
|
4396
|
+
return path.some((entry) => entry instanceof Node && element2.contains(entry));
|
|
4261
4397
|
}
|
|
4262
4398
|
function createClickOutside(options) {
|
|
4263
4399
|
const { handler, enabled = true, eventType = "click", capture = true, ignoreRefs } = options;
|
|
@@ -4277,8 +4413,8 @@ function createClickOutside(options) {
|
|
|
4277
4413
|
return;
|
|
4278
4414
|
if (ignoreRefs) {
|
|
4279
4415
|
for (const ref of ignoreRefs) {
|
|
4280
|
-
const
|
|
4281
|
-
if (
|
|
4416
|
+
const element2 = ref();
|
|
4417
|
+
if (element2 && isInsideEventPath(event2, element2))
|
|
4282
4418
|
return;
|
|
4283
4419
|
}
|
|
4284
4420
|
}
|
|
@@ -4439,14 +4575,14 @@ function overflowFadeEdges(axis) {
|
|
|
4439
4575
|
}
|
|
4440
4576
|
|
|
4441
4577
|
// src/components/popover/popover.svelte
|
|
4442
|
-
var
|
|
4443
|
-
var root_13 = $
|
|
4444
|
-
var root_23 = $
|
|
4445
|
-
var root_33 = $
|
|
4578
|
+
var root5 = $10.from_html(`<div class="cinder-popover__trigger"><!></div>`);
|
|
4579
|
+
var root_13 = $10.from_html(`<span class="cinder-popover__arrow" aria-hidden="true"></span>`);
|
|
4580
|
+
var root_23 = $10.from_html(`<div></div> <div tabindex="-1"><!> <!></div>`, 1);
|
|
4581
|
+
var root_33 = $10.from_html(`<!> <!>`, 1);
|
|
4446
4582
|
function Popover($$anchor, $$props) {
|
|
4447
|
-
const generatedPanelId = $
|
|
4448
|
-
$
|
|
4449
|
-
let open = $
|
|
4583
|
+
const generatedPanelId = $10.props_id();
|
|
4584
|
+
$10.push($$props, true);
|
|
4585
|
+
let open = $10.prop($$props, "open", 15, false), placement = $10.prop($$props, "placement", 3, "bottom-start"), offset3 = $10.prop($$props, "offset", 3, 8), arrowVisible = $10.prop($$props, "arrowVisible", 3, false), triggerRef = $10.prop($$props, "triggerRef", 3, null), role = $10.prop($$props, "role", 3, "dialog"), focusManagement = $10.prop($$props, "focusManagement", 3, "panel"), outsideClickIgnoreRefs = $10.prop($$props, "outsideClickIgnoreRefs", 19, () => []), wireTriggerAria = $10.prop($$props, "wireTriggerAria", 3, true), closeOnEscape = $10.prop($$props, "closeOnEscape", 3, true), widthMode = $10.prop($$props, "widthMode", 3, "content");
|
|
4450
4586
|
const FOCUSABLE_SELECTOR = 'button:not([disabled]), a[href], [tabindex]:not([tabindex="-1"]), input:not([disabled]), select:not([disabled]), textarea:not([disabled])';
|
|
4451
4587
|
function findFirstFocusable(container) {
|
|
4452
4588
|
if (!container)
|
|
@@ -4459,55 +4595,58 @@ function Popover($$anchor, $$props) {
|
|
|
4459
4595
|
}
|
|
4460
4596
|
return null;
|
|
4461
4597
|
}
|
|
4462
|
-
let triggerWrapper = $
|
|
4463
|
-
let portalScopeElement = $
|
|
4464
|
-
let panelElement = $
|
|
4465
|
-
let arrowElement = $
|
|
4466
|
-
const panelId = $
|
|
4467
|
-
const anchorElement = $
|
|
4468
|
-
|
|
4469
|
-
|
|
4598
|
+
let triggerWrapper = $10.state(undefined);
|
|
4599
|
+
let portalScopeElement = $10.state(undefined);
|
|
4600
|
+
let panelElement = $10.state(undefined);
|
|
4601
|
+
let arrowElement = $10.state(undefined);
|
|
4602
|
+
const panelId = $10.derived(() => $$props.id ?? generatedPanelId);
|
|
4603
|
+
const anchorElement = $10.derived(() => {
|
|
4604
|
+
open();
|
|
4605
|
+
return triggerRef() && triggerRef().isConnected ? triggerRef() : findFirstFocusable($10.get(triggerWrapper)) ?? null;
|
|
4606
|
+
});
|
|
4607
|
+
const resolvedAriaLabel = $10.derived(() => $$props.ariaLabelledby ? undefined : role() === "dialog" ? $$props.label ?? "Popover" : $$props.label);
|
|
4608
|
+
let mounted = $10.state(false);
|
|
4470
4609
|
let capturedFocus = null;
|
|
4471
4610
|
let resolvedAnchorAtOpen = null;
|
|
4472
|
-
let pendingInitialFocus = $
|
|
4473
|
-
let openSessionFocusManagement = $
|
|
4611
|
+
let pendingInitialFocus = $10.state(false);
|
|
4612
|
+
let openSessionFocusManagement = $10.state("panel");
|
|
4474
4613
|
let isDestroyed = false;
|
|
4475
4614
|
onDestroy(() => {
|
|
4476
4615
|
isDestroyed = true;
|
|
4477
4616
|
});
|
|
4478
4617
|
const portalScopeAttachment = createPortalAttachment({
|
|
4479
4618
|
target: () => {
|
|
4480
|
-
if (!$
|
|
4619
|
+
if (!$10.get(anchorElement))
|
|
4481
4620
|
return document.body;
|
|
4482
4621
|
try {
|
|
4483
|
-
return findNearestOpenTopLayer($
|
|
4622
|
+
return findNearestOpenTopLayer($10.get(anchorElement)) ?? document.body;
|
|
4484
4623
|
} catch {
|
|
4485
4624
|
return document.body;
|
|
4486
4625
|
}
|
|
4487
4626
|
},
|
|
4488
4627
|
inheritAttributes: true,
|
|
4489
|
-
source: () => $
|
|
4628
|
+
source: () => $10.get(anchorElement) ?? null
|
|
4490
4629
|
});
|
|
4491
4630
|
const panelPortalAttachment = createPortalAttachment({
|
|
4492
|
-
disabled: () => !$
|
|
4493
|
-
target: () => $
|
|
4631
|
+
disabled: () => !$10.get(portalScopeElement),
|
|
4632
|
+
target: () => $10.get(portalScopeElement),
|
|
4494
4633
|
inheritAttributes: false
|
|
4495
4634
|
});
|
|
4496
|
-
const inheritedPortalStyle = createInheritedPortalStyle(() => $
|
|
4635
|
+
const inheritedPortalStyle = createInheritedPortalStyle(() => $10.get(anchorElement), () => $10.get(mounted) && open());
|
|
4497
4636
|
const anchoredOverlay = createAnchoredOverlay({
|
|
4498
4637
|
open: () => open(),
|
|
4499
|
-
anchor: () => $
|
|
4500
|
-
panel: () => $
|
|
4501
|
-
arrow: () => $
|
|
4638
|
+
anchor: () => $10.get(anchorElement),
|
|
4639
|
+
panel: () => $10.get(panelElement),
|
|
4640
|
+
arrow: () => $10.get(arrowElement),
|
|
4502
4641
|
placement: () => placement(),
|
|
4503
4642
|
offset: () => offset3(),
|
|
4504
4643
|
arrowVisible: () => arrowVisible(),
|
|
4505
4644
|
widthMode: () => widthMode()
|
|
4506
4645
|
});
|
|
4507
|
-
$
|
|
4508
|
-
$
|
|
4646
|
+
$10.user_effect(() => {
|
|
4647
|
+
$10.set(mounted, true);
|
|
4509
4648
|
});
|
|
4510
|
-
const dismissOnOutsideMousedown = $
|
|
4649
|
+
const dismissOnOutsideMousedown = $10.derived(() => createClickOutside({
|
|
4511
4650
|
handler: () => {
|
|
4512
4651
|
open(false);
|
|
4513
4652
|
},
|
|
@@ -4516,53 +4655,53 @@ function Popover($$anchor, $$props) {
|
|
|
4516
4655
|
capture: true,
|
|
4517
4656
|
ignoreRefs: [
|
|
4518
4657
|
() => resolvedAnchorAtOpen ?? null,
|
|
4519
|
-
() => $
|
|
4658
|
+
() => $10.get(portalScopeElement) ?? null,
|
|
4520
4659
|
...outsideClickIgnoreRefs()
|
|
4521
4660
|
]
|
|
4522
4661
|
}));
|
|
4523
4662
|
function moveFocusIntoPanel() {
|
|
4524
|
-
if (isDestroyed || !$
|
|
4663
|
+
if (isDestroyed || !$10.get(panelElement))
|
|
4525
4664
|
return false;
|
|
4526
|
-
const focusable = $$props.initialFocus?.($
|
|
4527
|
-
const target = focusable && $
|
|
4665
|
+
const focusable = $$props.initialFocus?.($10.get(panelElement)) ?? findFirstFocusable($10.get(panelElement));
|
|
4666
|
+
const target = focusable && $10.get(panelElement).contains(focusable) ? focusable : $10.get(panelElement);
|
|
4528
4667
|
target.focus();
|
|
4529
4668
|
if (document.activeElement === target)
|
|
4530
4669
|
return true;
|
|
4531
|
-
const fallback = focusable ? findFirstFocusable($
|
|
4670
|
+
const fallback = focusable ? findFirstFocusable($10.get(panelElement)) : null;
|
|
4532
4671
|
if (fallback && fallback !== target) {
|
|
4533
4672
|
fallback.focus();
|
|
4534
4673
|
if (document.activeElement === fallback)
|
|
4535
4674
|
return true;
|
|
4536
4675
|
}
|
|
4537
|
-
$
|
|
4538
|
-
return document.activeElement === $
|
|
4676
|
+
$10.get(panelElement).focus();
|
|
4677
|
+
return document.activeElement === $10.get(panelElement);
|
|
4539
4678
|
}
|
|
4540
|
-
$
|
|
4679
|
+
$10.user_effect(() => {
|
|
4541
4680
|
if (!open())
|
|
4542
4681
|
return;
|
|
4543
|
-
if (!$
|
|
4682
|
+
if (!$10.get(anchorElement))
|
|
4544
4683
|
return;
|
|
4545
|
-
$
|
|
4546
|
-
if ($
|
|
4684
|
+
$10.set(openSessionFocusManagement, untrack4(() => focusManagement()), true);
|
|
4685
|
+
if ($10.get(openSessionFocusManagement) === "panel") {
|
|
4547
4686
|
capturedFocus = captureFocus();
|
|
4548
|
-
$
|
|
4687
|
+
$10.set(pendingInitialFocus, true);
|
|
4549
4688
|
} else {
|
|
4550
4689
|
capturedFocus = null;
|
|
4551
|
-
$
|
|
4690
|
+
$10.set(pendingInitialFocus, false);
|
|
4552
4691
|
}
|
|
4553
|
-
resolvedAnchorAtOpen =
|
|
4692
|
+
resolvedAnchorAtOpen = untrack4(() => $10.get(anchorElement));
|
|
4554
4693
|
const releaseEscape = closeOnEscape() ? pushEscapeHandler(() => {
|
|
4555
4694
|
open(false);
|
|
4556
4695
|
}) : () => {};
|
|
4557
4696
|
return () => {
|
|
4558
4697
|
releaseEscape();
|
|
4559
|
-
$
|
|
4698
|
+
$10.set(pendingInitialFocus, false);
|
|
4560
4699
|
if (isDestroyed) {
|
|
4561
4700
|
capturedFocus = null;
|
|
4562
4701
|
resolvedAnchorAtOpen = null;
|
|
4563
4702
|
return;
|
|
4564
4703
|
}
|
|
4565
|
-
if ($
|
|
4704
|
+
if ($10.get(openSessionFocusManagement) === "panel") {
|
|
4566
4705
|
const candidates = [triggerRef(), resolvedAnchorAtOpen, capturedFocus];
|
|
4567
4706
|
for (const candidate of candidates) {
|
|
4568
4707
|
if (restoreFocusTo(candidate))
|
|
@@ -4573,21 +4712,21 @@ function Popover($$anchor, $$props) {
|
|
|
4573
4712
|
resolvedAnchorAtOpen = null;
|
|
4574
4713
|
};
|
|
4575
4714
|
});
|
|
4576
|
-
$
|
|
4715
|
+
$10.user_effect(() => {
|
|
4577
4716
|
if (isDestroyed)
|
|
4578
4717
|
return;
|
|
4579
|
-
if ($
|
|
4718
|
+
if ($10.get(openSessionFocusManagement) !== "panel")
|
|
4580
4719
|
return;
|
|
4581
|
-
if (!open() || !$
|
|
4720
|
+
if (!open() || !$10.get(panelElement) || !$10.get(anchorElement) || !anchoredOverlay.positionReady || !$10.get(pendingInitialFocus)) {
|
|
4582
4721
|
return;
|
|
4583
4722
|
}
|
|
4584
4723
|
if (moveFocusIntoPanel())
|
|
4585
|
-
$
|
|
4724
|
+
$10.set(pendingInitialFocus, false);
|
|
4586
4725
|
});
|
|
4587
|
-
$
|
|
4726
|
+
$10.user_effect(() => {
|
|
4588
4727
|
if (!open())
|
|
4589
4728
|
return;
|
|
4590
|
-
if (!$
|
|
4729
|
+
if (!$10.get(anchorElement)) {
|
|
4591
4730
|
devWarn("[cinder/popover] open without a trigger anchor. " + "Provide either a `trigger` snippet with a focusable child or a `triggerRef`.");
|
|
4592
4731
|
}
|
|
4593
4732
|
if (role() === "dialog" && !$$props.label && !$$props.ariaLabelledby) {
|
|
@@ -4597,10 +4736,10 @@ function Popover($$anchor, $$props) {
|
|
|
4597
4736
|
devWarn('[cinder/popover] role="listbox" only sets the surface role. ' + 'You must render role="option" children and own selection/keyboard semantics. ' + "See popover.a11y.md §Role.");
|
|
4598
4737
|
}
|
|
4599
4738
|
});
|
|
4600
|
-
$
|
|
4739
|
+
$10.user_effect(() => {
|
|
4601
4740
|
if (!wireTriggerAria())
|
|
4602
4741
|
return;
|
|
4603
|
-
const target = $
|
|
4742
|
+
const target = $10.get(anchorElement);
|
|
4604
4743
|
if (!target)
|
|
4605
4744
|
return;
|
|
4606
4745
|
const prior = {
|
|
@@ -4615,7 +4754,7 @@ function Popover($$anchor, $$props) {
|
|
|
4615
4754
|
else
|
|
4616
4755
|
target.removeAttribute("aria-haspopup");
|
|
4617
4756
|
if (open())
|
|
4618
|
-
target.setAttribute("aria-controls", $
|
|
4757
|
+
target.setAttribute("aria-controls", $10.get(panelId));
|
|
4619
4758
|
else
|
|
4620
4759
|
target.removeAttribute("aria-controls");
|
|
4621
4760
|
return () => {
|
|
@@ -4632,76 +4771,76 @@ function Popover($$anchor, $$props) {
|
|
|
4632
4771
|
};
|
|
4633
4772
|
});
|
|
4634
4773
|
var fragment = root_33();
|
|
4635
|
-
var node = $
|
|
4774
|
+
var node = $10.first_child(fragment);
|
|
4636
4775
|
{
|
|
4637
4776
|
var consequent = ($$anchor2) => {
|
|
4638
|
-
var div =
|
|
4639
|
-
var node_1 = $
|
|
4640
|
-
$
|
|
4641
|
-
$
|
|
4642
|
-
$
|
|
4643
|
-
$
|
|
4644
|
-
$
|
|
4777
|
+
var div = root5();
|
|
4778
|
+
var node_1 = $10.child(div);
|
|
4779
|
+
$10.snippet(node_1, () => $$props.trigger);
|
|
4780
|
+
$10.reset(div);
|
|
4781
|
+
$10.bind_this(div, ($$value) => $10.set(triggerWrapper, $$value), () => $10.get(triggerWrapper));
|
|
4782
|
+
$10.template_effect(() => $10.set_attribute(div, "data-cinder-portal-owner", open() ? `${$10.get(panelId)}-scope` : undefined));
|
|
4783
|
+
$10.append($$anchor2, div);
|
|
4645
4784
|
};
|
|
4646
|
-
$
|
|
4785
|
+
$10.if(node, ($$render) => {
|
|
4647
4786
|
if ($$props.trigger)
|
|
4648
4787
|
$$render(consequent);
|
|
4649
4788
|
});
|
|
4650
4789
|
}
|
|
4651
|
-
var node_2 = $
|
|
4790
|
+
var node_2 = $10.sibling(node, 2);
|
|
4652
4791
|
{
|
|
4653
4792
|
var consequent_2 = ($$anchor2) => {
|
|
4654
4793
|
var fragment_1 = root_23();
|
|
4655
|
-
var div_1 = $
|
|
4656
|
-
$
|
|
4657
|
-
$
|
|
4658
|
-
var div_2 = $
|
|
4659
|
-
var node_3 = $
|
|
4660
|
-
$
|
|
4661
|
-
var node_4 = $
|
|
4794
|
+
var div_1 = $10.first_child(fragment_1);
|
|
4795
|
+
$10.bind_this(div_1, ($$value) => $10.set(portalScopeElement, $$value), () => $10.get(portalScopeElement));
|
|
4796
|
+
$10.attach(div_1, () => portalScopeAttachment);
|
|
4797
|
+
var div_2 = $10.sibling(div_1, 2);
|
|
4798
|
+
var node_3 = $10.child(div_2);
|
|
4799
|
+
$10.snippet(node_3, () => $$props.children);
|
|
4800
|
+
var node_4 = $10.sibling(node_3, 2);
|
|
4662
4801
|
{
|
|
4663
4802
|
var consequent_1 = ($$anchor3) => {
|
|
4664
4803
|
var span = root_13();
|
|
4665
|
-
$
|
|
4666
|
-
$
|
|
4667
|
-
$
|
|
4804
|
+
$10.bind_this(span, ($$value) => $10.set(arrowElement, $$value), () => $10.get(arrowElement));
|
|
4805
|
+
$10.template_effect(() => $10.set_style(span, anchoredOverlay.arrowStyle));
|
|
4806
|
+
$10.append($$anchor3, span);
|
|
4668
4807
|
};
|
|
4669
|
-
$
|
|
4808
|
+
$10.if(node_4, ($$render) => {
|
|
4670
4809
|
if (arrowVisible())
|
|
4671
4810
|
$$render(consequent_1);
|
|
4672
4811
|
});
|
|
4673
4812
|
}
|
|
4674
|
-
$
|
|
4675
|
-
$
|
|
4676
|
-
$
|
|
4677
|
-
$
|
|
4678
|
-
$
|
|
4679
|
-
$
|
|
4680
|
-
$
|
|
4681
|
-
$
|
|
4682
|
-
$
|
|
4683
|
-
$
|
|
4684
|
-
$
|
|
4685
|
-
$
|
|
4686
|
-
$
|
|
4687
|
-
$
|
|
4688
|
-
$
|
|
4689
|
-
$
|
|
4690
|
-
$
|
|
4691
|
-
$
|
|
4813
|
+
$10.reset(div_2);
|
|
4814
|
+
$10.bind_this(div_2, ($$value) => $10.set(panelElement, $$value), () => $10.get(panelElement));
|
|
4815
|
+
$10.attach(div_2, () => panelPortalAttachment);
|
|
4816
|
+
$10.attach(div_2, () => $10.get(dismissOnOutsideMousedown));
|
|
4817
|
+
$10.template_effect(($0, $1) => {
|
|
4818
|
+
$10.set_attribute(div_1, "id", `${$10.get(panelId)}-scope`);
|
|
4819
|
+
$10.set_class(div_1, 1, $0);
|
|
4820
|
+
$10.set_style(div_1, `display: contents;${inheritedPortalStyle.style}`);
|
|
4821
|
+
$10.set_attribute(div_2, "id", $10.get(panelId));
|
|
4822
|
+
$10.set_attribute(div_2, "role", role());
|
|
4823
|
+
$10.set_attribute(div_2, "aria-label", $10.get(resolvedAriaLabel));
|
|
4824
|
+
$10.set_attribute(div_2, "aria-labelledby", $$props.ariaLabelledby);
|
|
4825
|
+
$10.set_attribute(div_2, "aria-hidden", anchoredOverlay.positionReady ? undefined : "true");
|
|
4826
|
+
$10.set_class(div_2, 1, $1);
|
|
4827
|
+
$10.set_attribute(div_2, "data-cinder-portal-owner", `${$10.get(panelId)}-scope`);
|
|
4828
|
+
$10.set_attribute(div_2, "data-cinder-placement", anchoredOverlay.resolvedPlacement);
|
|
4829
|
+
$10.set_attribute(div_2, "data-cinder-position-ready", anchoredOverlay.positionReady);
|
|
4830
|
+
$10.set_style(div_2, anchoredOverlay.positionStyle);
|
|
4692
4831
|
}, [
|
|
4693
|
-
() => $
|
|
4694
|
-
() => $
|
|
4832
|
+
() => $10.clsx(classNames("cinder-popover__portal-scope", $$props.portalScopeClass)),
|
|
4833
|
+
() => $10.clsx(classNames("cinder-_floating-surface", "cinder-popover", $$props.class))
|
|
4695
4834
|
]);
|
|
4696
|
-
$
|
|
4835
|
+
$10.append($$anchor2, fragment_1);
|
|
4697
4836
|
};
|
|
4698
|
-
$
|
|
4699
|
-
if ($
|
|
4837
|
+
$10.if(node_2, ($$render) => {
|
|
4838
|
+
if ($10.get(mounted) && open() && $10.get(anchorElement))
|
|
4700
4839
|
$$render(consequent_2);
|
|
4701
4840
|
});
|
|
4702
4841
|
}
|
|
4703
|
-
$
|
|
4704
|
-
$
|
|
4842
|
+
$10.append($$anchor, fragment);
|
|
4843
|
+
$10.pop();
|
|
4705
4844
|
}
|
|
4706
4845
|
|
|
4707
4846
|
// src/components/date-picker/date-picker.svelte
|
|
@@ -4722,162 +4861,161 @@ var rest_excludes4 = new Set([
|
|
|
4722
4861
|
"class",
|
|
4723
4862
|
"aria-describedby",
|
|
4724
4863
|
"aria-invalid",
|
|
4725
|
-
"
|
|
4726
|
-
"triggerLabel"
|
|
4864
|
+
"onValueChange"
|
|
4727
4865
|
]);
|
|
4728
|
-
var
|
|
4729
|
-
var root_14 = $
|
|
4730
|
-
var root_24 = $
|
|
4866
|
+
var root6 = $11.from_html(`<div class="cinder-date-picker__time"><label class="cinder-date-picker__time-label">Time</label> <input class="cinder-date-picker__time-input" type="time"/></div>`);
|
|
4867
|
+
var root_14 = $11.from_html(`<!> <!>`, 1);
|
|
4868
|
+
var root_24 = $11.from_html(`<div class="cinder-date-picker__control"><input class="cinder-date-picker__input" type="text"/> <button type="button" class="cinder-date-picker__trigger"><!></button></div> <!>`, 1);
|
|
4731
4869
|
function Date_picker($$anchor, $$props) {
|
|
4732
|
-
$
|
|
4870
|
+
$11.push($$props, true);
|
|
4733
4871
|
const dateControl = ($$anchor2) => {
|
|
4734
4872
|
var fragment = root_24();
|
|
4735
|
-
var div = $
|
|
4736
|
-
var input = $
|
|
4737
|
-
$
|
|
4738
|
-
$
|
|
4739
|
-
var button = $
|
|
4740
|
-
var
|
|
4741
|
-
|
|
4742
|
-
$
|
|
4743
|
-
$
|
|
4744
|
-
|
|
4873
|
+
var div = $11.first_child(fragment);
|
|
4874
|
+
var input = $11.child(div);
|
|
4875
|
+
$11.remove_input_defaults(input);
|
|
4876
|
+
$11.bind_this(input, ($$value) => $11.set(inputElement, $$value), () => $11.get(inputElement));
|
|
4877
|
+
var button = $11.sibling(input, 2);
|
|
4878
|
+
var node = $11.child(button);
|
|
4879
|
+
Calendar_days(node, { class: "cinder-icon-sm", "aria-hidden": "true" });
|
|
4880
|
+
$11.reset(button);
|
|
4881
|
+
$11.bind_this(button, ($$value) => $11.set(triggerElement, $$value), () => $11.get(triggerElement));
|
|
4882
|
+
$11.reset(div);
|
|
4883
|
+
var node_1 = $11.sibling(div, 2);
|
|
4745
4884
|
{
|
|
4746
|
-
let $0 = $
|
|
4747
|
-
let $1 = $
|
|
4748
|
-
Popover(
|
|
4885
|
+
let $0 = $11.derived(() => $11.get(triggerElement) ?? $11.get(inputElement));
|
|
4886
|
+
let $1 = $11.derived(() => $$props.label ? `${$$props.label} calendar` : "Date picker calendar");
|
|
4887
|
+
Popover(node_1, {
|
|
4749
4888
|
get triggerRef() {
|
|
4750
|
-
return $
|
|
4889
|
+
return $11.get($0);
|
|
4751
4890
|
},
|
|
4752
4891
|
role: "dialog",
|
|
4753
4892
|
get label() {
|
|
4754
|
-
return $
|
|
4893
|
+
return $11.get($1);
|
|
4755
4894
|
},
|
|
4756
4895
|
focusManagement: "panel",
|
|
4757
4896
|
initialFocus: focusCalendarDay,
|
|
4758
|
-
outsideClickIgnoreRefs: [() => $
|
|
4897
|
+
outsideClickIgnoreRefs: [() => $11.get(inputElement)],
|
|
4759
4898
|
widthMode: "content",
|
|
4760
4899
|
class: "cinder-date-picker__panel",
|
|
4761
4900
|
get open() {
|
|
4762
|
-
return $
|
|
4901
|
+
return $11.get(open);
|
|
4763
4902
|
},
|
|
4764
4903
|
set open($$value) {
|
|
4765
|
-
$
|
|
4904
|
+
$11.set(open, $$value, true);
|
|
4766
4905
|
},
|
|
4767
4906
|
children: ($$anchor3, $$slotProps) => {
|
|
4768
4907
|
var fragment_1 = root_14();
|
|
4769
|
-
var
|
|
4908
|
+
var node_2 = $11.first_child(fragment_1);
|
|
4770
4909
|
{
|
|
4771
|
-
let $02 = $
|
|
4772
|
-
let $12 = $
|
|
4773
|
-
Calendar(
|
|
4910
|
+
let $02 = $11.derived(() => $11.get(normalizedMin)?.slice(0, 10));
|
|
4911
|
+
let $12 = $11.derived(() => $11.get(normalizedMax)?.slice(0, 10));
|
|
4912
|
+
Calendar(node_2, {
|
|
4774
4913
|
get value() {
|
|
4775
|
-
return $
|
|
4914
|
+
return $11.get(selectedDate);
|
|
4776
4915
|
},
|
|
4777
4916
|
get min() {
|
|
4778
|
-
return $
|
|
4917
|
+
return $11.get($02);
|
|
4779
4918
|
},
|
|
4780
4919
|
get max() {
|
|
4781
|
-
return $
|
|
4920
|
+
return $11.get($12);
|
|
4782
4921
|
},
|
|
4783
|
-
|
|
4922
|
+
onValueChange: handleCalendarChange,
|
|
4784
4923
|
get disabled() {
|
|
4785
4924
|
return disabled();
|
|
4786
4925
|
}
|
|
4787
4926
|
});
|
|
4788
4927
|
}
|
|
4789
|
-
var
|
|
4928
|
+
var node_3 = $11.sibling(node_2, 2);
|
|
4790
4929
|
{
|
|
4791
4930
|
var consequent = ($$anchor4) => {
|
|
4792
|
-
var div_1 =
|
|
4793
|
-
var label_1 = $
|
|
4794
|
-
var input_1 = $
|
|
4795
|
-
$
|
|
4796
|
-
$
|
|
4797
|
-
$
|
|
4798
|
-
$
|
|
4799
|
-
$
|
|
4800
|
-
$
|
|
4801
|
-
$
|
|
4802
|
-
$
|
|
4803
|
-
$
|
|
4804
|
-
input_1.disabled = disabled() || !$
|
|
4931
|
+
var div_1 = root6();
|
|
4932
|
+
var label_1 = $11.child(div_1);
|
|
4933
|
+
var input_1 = $11.sibling(label_1, 2);
|
|
4934
|
+
$11.remove_input_defaults(input_1);
|
|
4935
|
+
$11.reset(div_1);
|
|
4936
|
+
$11.template_effect(() => {
|
|
4937
|
+
$11.set_attribute(label_1, "for", `${$$props.id}-time`);
|
|
4938
|
+
$11.set_attribute(input_1, "id", `${$$props.id}-time`);
|
|
4939
|
+
$11.set_attribute(input_1, "step", $11.get(step));
|
|
4940
|
+
$11.set_value(input_1, $11.get(selectedTime));
|
|
4941
|
+
$11.set_attribute(input_1, "min", $11.get(timeMin));
|
|
4942
|
+
$11.set_attribute(input_1, "max", $11.get(timeMax));
|
|
4943
|
+
input_1.disabled = disabled() || !$11.get(selectedDate);
|
|
4805
4944
|
});
|
|
4806
|
-
$
|
|
4807
|
-
$
|
|
4945
|
+
$11.delegated("change", input_1, handleTimeChange);
|
|
4946
|
+
$11.append($$anchor4, div_1);
|
|
4808
4947
|
};
|
|
4809
|
-
$
|
|
4948
|
+
$11.if(node_3, ($$render) => {
|
|
4810
4949
|
if (granularity() !== "day")
|
|
4811
4950
|
$$render(consequent);
|
|
4812
4951
|
});
|
|
4813
4952
|
}
|
|
4814
|
-
$
|
|
4953
|
+
$11.append($$anchor3, fragment_1);
|
|
4815
4954
|
},
|
|
4816
4955
|
$$slots: { default: true }
|
|
4817
4956
|
});
|
|
4818
4957
|
}
|
|
4819
|
-
$
|
|
4820
|
-
$
|
|
4821
|
-
$
|
|
4822
|
-
$
|
|
4823
|
-
$
|
|
4824
|
-
$
|
|
4825
|
-
$
|
|
4826
|
-
$
|
|
4958
|
+
$11.template_effect(() => {
|
|
4959
|
+
$11.set_attribute(div, "data-invalid", $11.get(invalid) ? "" : undefined);
|
|
4960
|
+
$11.set_attribute(input, "id", $$props.id);
|
|
4961
|
+
$11.set_value(input, $11.get(normalizedValue) ?? "");
|
|
4962
|
+
$11.set_attribute(input, "min", $11.get(normalizedMin));
|
|
4963
|
+
$11.set_attribute(input, "max", $11.get(normalizedMax));
|
|
4964
|
+
$11.set_attribute(input, "step", granularity() === "day" ? undefined : $11.get(step));
|
|
4965
|
+
$11.set_attribute(input, "placeholder", $11.get(resolvedPlaceholder));
|
|
4827
4966
|
input.disabled = disabled();
|
|
4828
|
-
$
|
|
4829
|
-
$
|
|
4830
|
-
$
|
|
4967
|
+
$11.set_attribute(input, "aria-invalid", $11.get(invalid));
|
|
4968
|
+
$11.set_attribute(input, "aria-describedby", $11.get(describedById));
|
|
4969
|
+
$11.set_attribute(button, "aria-label", $$props.label ? `Open ${$$props.label} calendar` : "Open date picker");
|
|
4831
4970
|
button.disabled = disabled();
|
|
4832
|
-
$9.set_text(text, triggerLabel());
|
|
4833
4971
|
});
|
|
4834
|
-
$
|
|
4835
|
-
$
|
|
4836
|
-
$
|
|
4972
|
+
$11.delegated("input", input, handleInput);
|
|
4973
|
+
$11.delegated("change", input, handleInputChange);
|
|
4974
|
+
$11.delegated("click", button, () => {
|
|
4837
4975
|
if (!disabled())
|
|
4838
|
-
$
|
|
4976
|
+
$11.set(open, true);
|
|
4839
4977
|
});
|
|
4840
|
-
$
|
|
4978
|
+
$11.append($$anchor2, fragment);
|
|
4841
4979
|
};
|
|
4842
|
-
let value = $
|
|
4843
|
-
let open = $
|
|
4844
|
-
let inputElement = $
|
|
4845
|
-
let triggerElement = $
|
|
4846
|
-
const normalizedValue = $
|
|
4847
|
-
const normalizedMin = $
|
|
4848
|
-
const normalizedMax = $
|
|
4849
|
-
const selectedDate = $
|
|
4850
|
-
const selectedTime = $
|
|
4851
|
-
let hasInputValidityError = $
|
|
4852
|
-
const step = $
|
|
4853
|
-
const invalid = $
|
|
4854
|
-
const resolvedPlaceholder = $
|
|
4855
|
-
function updateInputValidity(
|
|
4856
|
-
const current =
|
|
4980
|
+
let value = $11.prop($$props, "value", 15, undefined), placeholder = $11.prop($$props, "placeholder", 3, "YYYY-MM-DD"), granularity = $11.prop($$props, "granularity", 3, "day"), disabled = $11.prop($$props, "disabled", 3, false), rest = $11.rest_props($$props, rest_excludes4);
|
|
4981
|
+
let open = $11.state(false);
|
|
4982
|
+
let inputElement = $11.state(null);
|
|
4983
|
+
let triggerElement = $11.state(null);
|
|
4984
|
+
const normalizedValue = $11.derived(() => normalizeDateValue(value(), granularity()));
|
|
4985
|
+
const normalizedMin = $11.derived(() => normalizeDateValue($$props.min, granularity()));
|
|
4986
|
+
const normalizedMax = $11.derived(() => normalizeDateValue($$props.max, granularity()));
|
|
4987
|
+
const selectedDate = $11.derived(() => $11.get(normalizedValue)?.slice(0, 10));
|
|
4988
|
+
const selectedTime = $11.derived(() => granularity() === "day" ? undefined : $11.get(normalizedValue)?.slice(11) ?? (granularity() === "second" ? "00:00:00" : granularity() === "minute" ? "00:00" : "00:00"));
|
|
4989
|
+
let hasInputValidityError = $11.state(false);
|
|
4990
|
+
const step = $11.derived(() => granularity() === "second" ? 1 : granularity() === "minute" ? 60 : 3600);
|
|
4991
|
+
const invalid = $11.derived(() => $$props.error || $11.get(hasInputValidityError) ? "true" : $$props["aria-invalid"] === true || $$props["aria-invalid"] === "true" ? "true" : undefined);
|
|
4992
|
+
const resolvedPlaceholder = $11.derived(() => placeholder() === "YYYY-MM-DD" && granularity() !== "day" ? granularity() === "hour" ? "YYYY-MM-DDTHH:00" : granularity() === "minute" ? "YYYY-MM-DDTHH:mm" : "YYYY-MM-DDTHH:mm:ss" : placeholder());
|
|
4993
|
+
function updateInputValidity(element2) {
|
|
4994
|
+
const current = element2.value;
|
|
4857
4995
|
const normalizedCurrent = normalizeDateValue(current || undefined, granularity());
|
|
4858
4996
|
const valid = current === "" || normalizedCurrent === current && clampToBounds(normalizedCurrent) === normalizedCurrent;
|
|
4859
|
-
$
|
|
4860
|
-
|
|
4997
|
+
$11.set(hasInputValidityError, !valid);
|
|
4998
|
+
element2.setCustomValidity(valid ? "" : "Enter a valid date within the allowed range.");
|
|
4861
4999
|
}
|
|
4862
|
-
$
|
|
4863
|
-
$
|
|
4864
|
-
if (!$
|
|
5000
|
+
$11.user_effect(() => {
|
|
5001
|
+
$11.get(normalizedValue);
|
|
5002
|
+
if (!$11.get(inputElement))
|
|
4865
5003
|
return;
|
|
4866
|
-
updateInputValidity($
|
|
5004
|
+
updateInputValidity($11.get(inputElement));
|
|
4867
5005
|
});
|
|
4868
|
-
$
|
|
4869
|
-
if (!$
|
|
5006
|
+
$11.user_effect(() => {
|
|
5007
|
+
if (!$11.get(inputElement))
|
|
4870
5008
|
return;
|
|
4871
|
-
const
|
|
4872
|
-
const form =
|
|
5009
|
+
const element2 = $11.get(inputElement);
|
|
5010
|
+
const form = element2.form;
|
|
4873
5011
|
if (!form)
|
|
4874
5012
|
return;
|
|
4875
5013
|
function handleFormReset() {
|
|
4876
5014
|
queueMicrotask(() => {
|
|
4877
|
-
if ($
|
|
5015
|
+
if ($11.get(inputElement) !== element2)
|
|
4878
5016
|
return;
|
|
4879
|
-
value(normalizeDateValue(
|
|
4880
|
-
updateInputValidity(
|
|
5017
|
+
value(normalizeDateValue(element2.value || undefined, granularity()));
|
|
5018
|
+
updateInputValidity(element2);
|
|
4881
5019
|
});
|
|
4882
5020
|
}
|
|
4883
5021
|
form.addEventListener("reset", handleFormReset);
|
|
@@ -4885,43 +5023,43 @@ function Date_picker($$anchor, $$props) {
|
|
|
4885
5023
|
form.removeEventListener("reset", handleFormReset);
|
|
4886
5024
|
};
|
|
4887
5025
|
});
|
|
4888
|
-
const describedById = $
|
|
5026
|
+
const describedById = $11.derived(() => [
|
|
4889
5027
|
$$props["aria-describedby"],
|
|
4890
5028
|
$$props.description ? `${$$props.id}-description` : undefined,
|
|
4891
5029
|
$$props.error ? `${$$props.id}-error` : undefined
|
|
4892
5030
|
].filter(Boolean).join(" ") || undefined);
|
|
4893
|
-
$
|
|
4894
|
-
if (value() === $
|
|
5031
|
+
$11.user_effect(() => {
|
|
5032
|
+
if (value() === $11.get(normalizedValue))
|
|
4895
5033
|
return;
|
|
4896
|
-
emit($
|
|
5034
|
+
emit($11.get(normalizedValue));
|
|
4897
5035
|
});
|
|
4898
5036
|
function emit(next) {
|
|
4899
5037
|
value(next);
|
|
4900
|
-
$$props.
|
|
5038
|
+
$$props.onValueChange?.(next);
|
|
4901
5039
|
}
|
|
4902
5040
|
function clampToBounds(next) {
|
|
4903
5041
|
if (!next)
|
|
4904
5042
|
return;
|
|
4905
|
-
if ($
|
|
4906
|
-
return $
|
|
4907
|
-
if ($
|
|
4908
|
-
return $
|
|
5043
|
+
if ($11.get(normalizedMin) && next < $11.get(normalizedMin))
|
|
5044
|
+
return $11.get(normalizedMin);
|
|
5045
|
+
if ($11.get(normalizedMax) && next > $11.get(normalizedMax))
|
|
5046
|
+
return $11.get(normalizedMax);
|
|
4909
5047
|
return next;
|
|
4910
5048
|
}
|
|
4911
5049
|
function handleCalendarChange(nextDate) {
|
|
4912
5050
|
if (granularity() === "day") {
|
|
4913
5051
|
emit(clampToBounds(nextDate));
|
|
4914
|
-
$
|
|
5052
|
+
$11.set(open, false);
|
|
4915
5053
|
return;
|
|
4916
5054
|
}
|
|
4917
|
-
const existingTime = $
|
|
5055
|
+
const existingTime = $11.get(selectedTime) ?? (granularity() === "second" ? "00:00:00" : "00:00");
|
|
4918
5056
|
emit(clampToBounds(normalizeDateValue(`${nextDate}T${existingTime}`, granularity())));
|
|
4919
5057
|
}
|
|
4920
5058
|
function handleTimeChange(event2) {
|
|
4921
5059
|
const target = event2.currentTarget;
|
|
4922
|
-
if (!$
|
|
5060
|
+
if (!$11.get(selectedDate))
|
|
4923
5061
|
return;
|
|
4924
|
-
emit(clampToBounds(normalizeDateValue(`${$
|
|
5062
|
+
emit(clampToBounds(normalizeDateValue(`${$11.get(selectedDate)}T${target.value}`, granularity())));
|
|
4925
5063
|
}
|
|
4926
5064
|
function handleInputChange(event2) {
|
|
4927
5065
|
const target = event2.currentTarget;
|
|
@@ -4943,26 +5081,26 @@ function Date_picker($$anchor, $$props) {
|
|
|
4943
5081
|
emit(normalizedDraft);
|
|
4944
5082
|
}
|
|
4945
5083
|
}
|
|
4946
|
-
function focusCalendarDay(panel, date = $
|
|
5084
|
+
function focusCalendarDay(panel, date = $11.get(selectedDate)) {
|
|
4947
5085
|
return date && panel.querySelector(`.cinder-calendar__day[id$="-day-${date}"]:not([disabled])`) || panel.querySelector('.cinder-calendar__day[data-focused], .cinder-calendar__day[tabindex="0"]');
|
|
4948
5086
|
}
|
|
4949
|
-
const timeMin = $
|
|
4950
|
-
if (granularity() === "day" || !$
|
|
5087
|
+
const timeMin = $11.derived(() => {
|
|
5088
|
+
if (granularity() === "day" || !$11.get(selectedDate) || !$11.get(normalizedMin))
|
|
4951
5089
|
return;
|
|
4952
|
-
if (!$
|
|
5090
|
+
if (!$11.get(normalizedMin).startsWith(`${$11.get(selectedDate)}T`))
|
|
4953
5091
|
return;
|
|
4954
|
-
return $
|
|
5092
|
+
return $11.get(normalizedMin).slice(11);
|
|
4955
5093
|
});
|
|
4956
|
-
const timeMax = $
|
|
4957
|
-
if (granularity() === "day" || !$
|
|
5094
|
+
const timeMax = $11.derived(() => {
|
|
5095
|
+
if (granularity() === "day" || !$11.get(selectedDate) || !$11.get(normalizedMax))
|
|
4958
5096
|
return;
|
|
4959
|
-
if (!$
|
|
5097
|
+
if (!$11.get(normalizedMax).startsWith(`${$11.get(selectedDate)}T`))
|
|
4960
5098
|
return;
|
|
4961
|
-
return $
|
|
5099
|
+
return $11.get(normalizedMax).slice(11);
|
|
4962
5100
|
});
|
|
4963
5101
|
{
|
|
4964
|
-
let $0 = $
|
|
4965
|
-
Form_field_frame($$anchor, $
|
|
5102
|
+
let $0 = $11.derived(() => classNames("cinder-date-picker", $$props.class));
|
|
5103
|
+
Form_field_frame($$anchor, $11.spread_props(() => rest, {
|
|
4966
5104
|
get id() {
|
|
4967
5105
|
return $$props.id;
|
|
4968
5106
|
},
|
|
@@ -4979,7 +5117,7 @@ function Date_picker($$anchor, $$props) {
|
|
|
4979
5117
|
return disabled();
|
|
4980
5118
|
},
|
|
4981
5119
|
get class() {
|
|
4982
|
-
return $
|
|
5120
|
+
return $11.get($0);
|
|
4983
5121
|
},
|
|
4984
5122
|
labelClass: "cinder-date-picker__label",
|
|
4985
5123
|
descriptionClass: "cinder-date-picker__description",
|
|
@@ -4989,9 +5127,9 @@ function Date_picker($$anchor, $$props) {
|
|
|
4989
5127
|
}
|
|
4990
5128
|
}));
|
|
4991
5129
|
}
|
|
4992
|
-
$
|
|
5130
|
+
$11.pop();
|
|
4993
5131
|
}
|
|
4994
|
-
$
|
|
5132
|
+
$11.delegate(["input", "change", "click"]);
|
|
4995
5133
|
|
|
4996
5134
|
// src/components/date-picker/index.ts
|
|
4997
5135
|
var date_picker_default = Date_picker;
|
|
@@ -5000,4 +5138,4 @@ export {
|
|
|
5000
5138
|
Date_picker as DatePicker
|
|
5001
5139
|
};
|
|
5002
5140
|
|
|
5003
|
-
//# debugId=
|
|
5141
|
+
//# debugId=60C8BF9E450EE55E64756E2164756E21
|