@lostgradient/cinder 0.20.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 +445 -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 +505 -162
- package/dist/components/approval-card/approval-card.css +3 -0
- package/dist/components/approval-card/approval-card.svelte.d.ts +1 -1
- package/dist/components/approval-card/index.js +741 -216
- package/dist/components/area-chart/index.js +253 -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 +131 -44
- package/dist/components/avatar-group/index.js +185 -81
- package/dist/components/backdrop/backdrop.svelte.d.ts +3 -3
- package/dist/components/bar-chart/index.js +253 -2
- package/dist/components/button/button.css +13 -3
- 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.css +3 -0
- 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/carousel/carousel.css +40 -6
- package/dist/components/carousel/carousel.schema.js +43 -2
- package/dist/components/carousel/carousel.svelte.d.ts +25 -4
- package/dist/components/carousel/carousel.types.d.ts +43 -2
- package/dist/components/carousel/carousel.variables.js +7 -2
- package/dist/components/carousel/index.d.ts +1 -1
- package/dist/components/carousel/index.js +2018 -351
- package/dist/components/checkbox/checkbox.css +1 -1
- package/dist/components/checkbox/index.js +31 -5
- package/dist/components/checkbox-group/checkbox-group.css +1 -1
- package/dist/components/chip/chip.css +3 -0
- package/dist/components/code-block/code-block.css +35 -2
- package/dist/components/code-block/code-block.schema.js +9 -1
- package/dist/components/code-block/code-block.types.d.ts +8 -0
- package/dist/components/code-block/index.js +263 -4
- package/dist/components/collapsible/collapsible.css +1 -5
- package/dist/components/collapsible/index.js +2 -2
- package/dist/components/color-field/color-field.css +11 -1
- 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 +46 -3
- 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 +7 -15
- 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 +160 -47
- package/dist/components/command-menu/index.js +20 -17
- 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 +557 -188
- package/dist/components/connection-indicator/connection-indicator.css +3 -2
- package/dist/components/connection-indicator/connection-indicator.svelte.d.ts +2 -2
- package/dist/components/context-menu/index.js +129 -45
- package/dist/components/copy-button/copy-button.css +4 -1
- package/dist/components/data-grid/data-grid.css +6 -8
- package/dist/components/data-grid/data-grid.types.d.ts +2 -2
- package/dist/components/data-table/index.js +283 -6
- package/dist/components/date-picker/date-picker.css +1 -1
- 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 +933 -711
- package/dist/components/date-range-field/date-range-field.css +7 -1
- 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 +1043 -821
- package/dist/components/description-list/index.js +3 -3
- package/dist/components/diff-statistics/diff-statistics.css +2 -2
- 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 +99 -36
- 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 +203 -83
- package/dist/components/dropdown/dropdown.css +1 -1
- package/dist/components/dropdown/index.js +129 -45
- 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/dropdown-menu/index.js +20 -17
- 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 -5
- 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/focus-trap/index.js +105 -24
- package/dist/components/footer/footer.css +5 -6
- package/dist/components/footer/index.js +4 -4
- package/dist/components/form-field/form-field.css +1 -1
- 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/hover-card/hover-card.css +45 -1
- package/dist/components/hover-card/index.js +144 -19
- package/dist/components/inline-loading/inline-loading.css +2 -2
- package/dist/components/input/index.js +37 -11
- package/dist/components/input/input.css +4 -3
- 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 +165 -52
- package/dist/components/invocation-rule-builder/invocation-rule-builder.css +18 -0
- 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-editor/json-editor.css +4 -1
- package/dist/components/json-schema-editor/index.js +1668 -1406
- 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/json-viewer/json-viewer.css +5 -2
- package/dist/components/kanban-board/index.js +6 -6
- package/dist/components/kanban-board/kanban-board-column-reorder.svelte.d.ts +1 -1
- package/dist/components/kanban-board/kanban-board.css +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 +253 -2
- package/dist/components/marquee/marquee.css +3 -0
- package/dist/components/matrix-chart/index.js +253 -2
- package/dist/components/mega-menu/mega-menu.css +5 -3
- package/dist/components/menu-bar/index.js +23 -20
- package/dist/components/menu-bar/menu-bar.css +3 -0
- 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/meter/index.js +13 -3
- package/dist/components/modal/index.js +471 -130
- package/dist/components/modal/modal.css +56 -24
- package/dist/components/modal/modal.svelte.d.ts +2 -2
- package/dist/components/multi-select/index.js +3581 -469
- package/dist/components/multi-select/multi-select.css +6 -16
- package/dist/components/navigation-bar/index.js +45 -59
- package/dist/components/navigation-bar/navigation-bar.css +3 -2
- package/dist/components/navigation-item/navigation-item.css +3 -0
- 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/pagination/pagination.css +3 -0
- package/dist/components/permission-matrix/index.js +252 -1
- package/dist/components/permission-matrix/permission-matrix.css +15 -0
- package/dist/components/phone-input/index.js +4 -4
- package/dist/components/phone-input/phone-input.css +1 -1
- 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.css +10 -2
- 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 +128 -41
- 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/qr-code/qr-code.css +1 -1
- package/dist/components/radio-group/index.js +31 -5
- package/dist/components/radio-group/radio-group.css +1 -1
- package/dist/components/rating/index.js +4 -4
- package/dist/components/rating/rating.css +1 -1
- 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.css +1 -1
- 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/scroll-area/index.js +526 -22
- package/dist/components/scroll-area/scroll-area.css +30 -0
- package/dist/components/scroll-area/scroll-area.schema.js +9 -1
- package/dist/components/scroll-area/scroll-area.types.d.ts +17 -0
- 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/secret-value-field/secret-value-field.css +11 -1
- 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.css +12 -2
- 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.css +4 -1
- 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/selection-popover/index.js +149 -40
- package/dist/components/selection-popover/selection-popover.css +3 -0
- package/dist/components/selection-popover/virtual-keyboard-dismissal.svelte.d.ts +14 -0
- 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 +204 -84
- 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/sortable-list/index.js +2 -2
- package/dist/components/sortable-list/sortable-list.css +14 -9
- 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/speed-dial/index.js +20 -17
- package/dist/components/statistic/statistic.css +2 -2
- package/dist/components/statistic-group/statistic-group.css +9 -2
- package/dist/components/status-dot/status-dot.css +2 -2
- 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 +253 -2
- package/dist/components/table/table.css +16 -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.css +1 -1
- 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/textarea/textarea.css +4 -1
- package/dist/components/time-field/index.js +33 -7
- package/dist/components/time-field/time-field.css +8 -2
- 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/tooltip/index.js +130 -46
- package/dist/components/tooltip/tooltip.schema.js +7 -3
- package/dist/components/tooltip/tooltip.types.d.ts +20 -2
- package/dist/components/transfer-list/index.js +395 -468
- package/dist/components/transfer-list/transfer-list.css +31 -93
- 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 +26346 -27455
- 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 +7 -4
- package/dist/server/components/approval-card/index.js +13 -12
- package/dist/server/components/area-chart/index.js +8 -6
- package/dist/server/components/autocomplete/index.js +7 -7
- package/dist/server/components/avatar-group/index.js +8 -10
- package/dist/server/components/bar-chart/index.js +8 -6
- 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/carousel/index.js +6 -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 +6 -4
- 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 +9 -9
- package/dist/server/components/command-menu/index.js +5 -5
- package/dist/server/components/confirm-dialog/index.js +9 -6
- package/dist/server/components/container/index.js +3 -5
- package/dist/server/components/context-menu/index.js +9 -9
- package/dist/server/components/copy-button/index.js +1 -1
- package/dist/server/components/data-table/index.js +9 -7
- package/dist/server/components/date-picker/index.js +13 -11
- package/dist/server/components/date-range-field/index.js +13 -11
- 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 +5 -5
- package/dist/server/components/dropdown/index.js +9 -9
- package/dist/server/components/dropdown-group/index.js +2 -2
- package/dist/server/components/dropdown-menu/index.js +6 -6
- 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/focus-trap/index.js +3 -3
- package/dist/server/components/footer/index.js +1 -1
- package/dist/server/components/form-field/index.js +2 -2
- package/dist/server/components/hover-card/index.js +7 -6
- 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 +9 -9
- package/dist/server/components/json-editor/index.js +2 -2
- package/dist/server/components/json-schema-editor/index.js +19 -16
- package/dist/server/components/kanban-board/index.js +2 -2
- package/dist/server/components/line-chart/index.js +8 -6
- package/dist/server/components/matrix-chart/index.js +8 -6
- package/dist/server/components/menu-bar/index.js +7 -7
- package/dist/server/components/meter/index.js +1 -1
- package/dist/server/components/modal/index.js +7 -4
- package/dist/server/components/multi-select/index.js +10 -3
- package/dist/server/components/navigation-bar/index.js +5 -5
- package/dist/server/components/number-input/index.js +2 -2
- package/dist/server/components/payload-inspector/index.js +1 -1
- package/dist/server/components/permission-matrix/index.js +4 -2
- 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 +7 -7
- package/dist/server/components/portal/index.js +3 -3
- 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 +3 -3
- package/dist/server/components/schedule-builder/index.js +10 -10
- package/dist/server/components/schema-form/index.js +7 -7
- package/dist/server/components/scroll-area/index.js +8 -2
- 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/selection-popover/index.js +6 -6
- package/dist/server/components/share-card/index.js +1 -1
- package/dist/server/components/sidebar/index.js +6 -6
- package/dist/server/components/slider/index.js +1 -1
- package/dist/server/components/sortable-list/index.js +2 -2
- package/dist/server/components/source-diff-viewer/index.js +1 -1
- package/dist/server/components/speed-dial/index.js +6 -6
- package/dist/server/components/speed-dial-action/index.js +4 -4
- 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 +7 -5
- 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/toast-region/index.js +3 -3
- package/dist/server/components/toggle/index.js +1 -1
- package/dist/server/components/tooltip/index.js +6 -6
- package/dist/server/components/transfer-list/index.js +4 -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 +256 -321
- package/dist/server/{index.server-gbj2zt1q.js → index.server-03ndc3td.js} +1 -1
- package/dist/server/{index.server-c5qj6x13.js → index.server-0whmnrvs.js} +4 -2
- package/dist/server/{index.server-sqtgjjc3.js → index.server-116jzzd0.js} +1 -1
- package/dist/server/index.server-15830t2j.js +581 -0
- package/dist/server/{index.server-b36zkjsr.js → index.server-1cnz5ax1.js} +30 -6
- 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-2n185esx.js → index.server-2h45p8kd.js} +2 -2
- package/dist/server/{index.server-rd908evp.js → index.server-2nmwsacy.js} +8 -8
- package/dist/server/index.server-2xd6aajx.js +48 -0
- package/dist/server/{index.server-xtx9sey2.js → index.server-3dkwzkd3.js} +1 -1
- package/dist/server/{index.server-4bdnshs1.js → index.server-3e8n2sry.js} +2 -2
- 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-rxvbt0y3.js → index.server-4w0rydct.js} +1 -1
- package/dist/server/{index.server-mxgakpfj.js → index.server-4wweyb2e.js} +10 -2
- package/dist/server/{index.server-dvd8t7ds.js → index.server-59hgwg0n.js} +7 -7
- package/dist/server/{index.server-aerjcjgw.js → index.server-5j6jv7rm.js} +1 -1
- package/dist/server/{index.server-k1625sfw.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-x93qnzqm.js → index.server-60jkchq7.js} +6 -6
- package/dist/server/{index.server-6n5grdb2.js → index.server-60q52hya.js} +4 -4
- package/dist/server/{index.server-mw3z3nfz.js → index.server-64dvhh7s.js} +8 -2
- package/dist/server/{index.server-w9tnnse5.js → index.server-6771g0q4.js} +4 -4
- package/dist/server/{index.server-jxy33axv.js → index.server-6e5cj9hs.js} +1 -1
- package/dist/server/{index.server-1dk15yd2.js → index.server-6kf969a0.js} +2 -2
- package/dist/server/{index.server-gp0jh4cx.js → index.server-6z6s8qz8.js} +1 -1
- 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-cepvcyxn.js → index.server-7kez94sz.js} +17 -6
- 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-1br18a82.js → index.server-8t53gqe7.js} +3 -3
- 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-wsbwydct.js → index.server-9m7bqtev.js} +27 -18
- package/dist/server/{index.server-zt8d7yer.js → index.server-9n2bc545.js} +1 -1
- package/dist/server/{index.server-71zvvayv.js → index.server-9ts9xfcb.js} +5 -5
- package/dist/server/{index.server-bprjmaxb.js → index.server-a5w1wy5w.js} +1 -1
- package/dist/server/{index.server-nsqx19rk.js → index.server-a8gpnzgg.js} +6 -6
- package/dist/server/{index.server-edx404az.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-8wb8g3w1.js → index.server-bd8rcgf0.js} +382 -308
- 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-ktwnf9vg.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-vqb9m9hq.js → index.server-br3khchh.js} +7 -7
- 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-t6dkkfxk.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-znrr9zve.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-dpe08kr7.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-vb58jd7c.js → index.server-grq89cv5.js} +1 -1
- 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-5p5r6t6n.js → index.server-j8sr82be.js} +7 -7
- package/dist/server/index.server-ja3fmd29.js +211 -0
- package/dist/server/{index.server-r147w5z4.js → index.server-jtcjbnad.js} +6 -6
- package/dist/server/{index.server-eyta8yd2.js → index.server-jtrd8nnn.js} +3 -3
- package/dist/server/{index.server-jwrnsnxk.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-dpyw7nad.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-66amt15s.js → index.server-kszs0qx5.js} +25 -2
- 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-429t1qje.js → index.server-n6wm89xy.js} +27 -3
- package/dist/server/{index.server-4dfs3xwn.js → index.server-nnbqjg1j.js} +1 -1
- package/dist/server/{index.server-1qr1qkjb.js → index.server-nqd1q4pa.js} +7 -7
- package/dist/server/{index.server-j15z5xn7.js → index.server-nsdh6zgh.js} +3 -3
- package/dist/server/{index.server-74g52t91.js → index.server-nwgxhrzg.js} +1 -1
- package/dist/server/{index.server-xanhe43k.js → index.server-pee1wa4g.js} +1 -1
- package/dist/server/{index.server-jnp8yqgj.js → index.server-pp2n6def.js} +1 -1
- package/dist/server/{index.server-dqt9we67.js → index.server-q7r53g7z.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-1p7b8y48.js → index.server-rf9pd5mr.js} +9 -7
- package/dist/server/{index.server-3gm8s994.js → index.server-s2dseqdh.js} +31 -3
- package/dist/server/{index.server-1233sspt.js → index.server-s7t1fh6n.js} +1 -1
- package/dist/server/{index.server-rgcepyhr.js → index.server-sfbna82r.js} +1 -1
- package/dist/server/{index.server-7mhk40r3.js → index.server-sm0ydag0.js} +1 -1
- package/dist/server/{index.server-wm3t5yw7.js → index.server-sxkkaj8b.js} +13 -3
- 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-1xq7j9dj.js → index.server-t91tbrmn.js} +10 -10
- package/dist/server/{index.server-casqzp4h.js → index.server-tg6k1bq8.js} +3 -3
- package/dist/server/{index.server-3g76h7z7.js → index.server-th1tsad4.js} +62 -26
- package/dist/server/{index.server-4nh4arvs.js → index.server-tkt7wm9w.js} +31 -49
- package/dist/server/{index.server-ak9pqjfw.js → index.server-tpny5pjk.js} +224 -91
- 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-29sg0ywf.js → index.server-w5f4ex0f.js} +9 -6
- 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-r5y5t888.js → index.server-x5zjwrnb.js} +8 -8
- package/dist/server/{index.server-tj2erfba.js → index.server-x6hbm4je.js} +2 -2
- 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-f02vwrw5.js → index.server-yr2ndv9a.js} +29 -17
- 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-32p6dz3e.js → index.server-zg0981gk.js} +2 -2
- package/dist/server/{index.server-85dr75be.js → index.server-zkhc16nf.js} +1 -1
- package/dist/utilities/attachments.d.ts +64 -2
- package/dist/utilities/color-luminance.d.ts +2 -1
- package/dist/utilities/dialog-props.d.ts +24 -0
- package/dist/utilities/drag-scroll-physics.d.ts +48 -0
- package/dist/utilities/focus.d.ts +1 -1
- package/dist/utilities/use-drag-scroll.svelte.d.ts +26 -0
- package/dist/utilities/use-drag-scroll.types.d.ts +15 -0
- package/dist/utilities/use-fine-pointer.svelte.d.ts +12 -0
- package/dist/utilities/use-fine-pointer.types.d.ts +4 -0
- package/package.json +70 -482
- package/src/_internal/anchored-overlay.svelte.ts +48 -26
- 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/_sortable-item.svelte +21 -2
- 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/approval-card/approval-card.css +3 -0
- 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/avatar-group/avatar-group.svelte +46 -17
- package/src/components/backdrop/backdrop.svelte +3 -3
- package/src/components/button/button.css +13 -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.css +3 -0
- 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/carousel/carousel.css +40 -6
- package/src/components/carousel/carousel.examples.json +6 -0
- package/src/components/carousel/carousel.schema.json +42 -1
- package/src/components/carousel/carousel.schema.ts +49 -1
- package/src/components/carousel/carousel.svelte +311 -136
- package/src/components/carousel/carousel.types.ts +47 -2
- package/src/components/carousel/carousel.variables.json +6 -1
- package/src/components/carousel/carousel.variables.ts +6 -1
- package/src/components/carousel/index.ts +1 -0
- package/src/components/checkbox/checkbox.css +1 -1
- package/src/components/checkbox-group/checkbox-group.css +1 -1
- package/src/components/chip/chip.css +3 -0
- package/src/components/code-block/code-block.css +35 -2
- package/src/components/code-block/code-block.schema.json +4 -0
- package/src/components/code-block/code-block.schema.ts +5 -0
- package/src/components/code-block/code-block.svelte +12 -2
- package/src/components/code-block/code-block.types.ts +8 -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 +11 -1
- 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 +46 -3
- 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 +7 -15
- 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/connection-indicator/connection-indicator.css +3 -2
- package/src/components/container/container.examples.json +12 -0
- package/src/components/copy-button/copy-button.css +4 -1
- package/src/components/data-grid/data-grid.css +6 -8
- package/src/components/data-grid/data-grid.types.ts +2 -2
- package/src/components/date-picker/date-picker.css +1 -1
- 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.css +7 -1
- 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.css +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 +99 -36
- 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 +41 -42
- package/src/components/drawer/drawer.types.ts +26 -7
- package/src/components/drawer/index.ts +1 -1
- package/src/components/dropdown/dropdown.css +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.css +1 -1
- 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.css +45 -1
- package/src/components/hover-card/hover-card.svelte +64 -2
- package/src/components/inline-loading/inline-loading.css +2 -2
- package/src/components/input/input.css +4 -3
- 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.css +18 -0
- 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-editor/json-editor.css +4 -1
- 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/json-viewer/json-viewer.css +5 -2
- package/src/components/kanban-board/kanban-board-column-reorder.svelte.ts +2 -2
- package/src/components/kanban-board/kanban-board.css +1 -1
- 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/marquee/marquee.css +3 -0
- package/src/components/mega-menu/mega-menu.css +5 -3
- package/src/components/menu-bar/menu-bar.css +3 -0
- 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/meter/meter.svelte +19 -4
- package/src/components/meter/meter.types.ts +4 -0
- package/src/components/modal/modal.css +56 -24
- package/src/components/modal/modal.svelte +55 -99
- package/src/components/multi-select/multi-select.css +6 -16
- package/src/components/multi-select/multi-select.svelte +43 -0
- package/src/components/navigation-bar/navigation-bar.css +3 -2
- package/src/components/navigation-bar/navigation-bar.svelte +25 -10
- package/src/components/navigation-item/navigation-item.css +3 -0
- 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/pagination/pagination.css +3 -0
- package/src/components/permission-matrix/permission-matrix.css +15 -0
- package/src/components/permission-matrix/permission-matrix.svelte +6 -1
- package/src/components/phone-input/phone-input.css +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.css +10 -2
- 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/qr-code/qr-code.css +1 -1
- package/src/components/radio-group/radio-group.css +1 -1
- package/src/components/rating/rating.css +1 -1
- 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.css +1 -1
- 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/scroll-area/scroll-area.css +30 -0
- package/src/components/scroll-area/scroll-area.schema.json +8 -0
- package/src/components/scroll-area/scroll-area.schema.ts +10 -0
- package/src/components/scroll-area/scroll-area.svelte +44 -2
- package/src/components/scroll-area/scroll-area.types.ts +17 -0
- 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/secret-value-field/secret-value-field.css +11 -1
- package/src/components/segmented-control/segmented-control-state.svelte.ts +1 -1
- package/src/components/segmented-control/segmented-control.css +12 -2
- 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.css +4 -1
- 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/selection-popover/selection-popover.css +3 -0
- package/src/components/selection-popover/selection-popover.svelte +32 -0
- package/src/components/selection-popover/virtual-keyboard-dismissal.svelte.ts +16 -0
- 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/sortable-list/sortable-list.css +14 -9
- 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/statistic.css +2 -2
- package/src/components/statistic-group/statistic-group.css +9 -2
- package/src/components/statistic-group/statistic-group.examples.json +6 -0
- package/src/components/status-dot/status-dot.css +2 -2
- 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 +16 -1
- package/src/components/table/table.svelte +2 -0
- 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.css +1 -1
- 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/textarea/textarea.css +4 -1
- package/src/components/time-field/time-field.css +8 -2
- 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/tooltip/tooltip.schema.json +6 -2
- package/src/components/tooltip/tooltip.schema.ts +8 -2
- package/src/components/tooltip/tooltip.svelte +124 -23
- package/src/components/tooltip/tooltip.types.ts +20 -2
- package/src/components/transfer-list/transfer-list.css +31 -93
- 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 +109 -295
- 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/_control-item.css +3 -0
- package/src/styles/components/_field-label.css +1 -1
- package/src/styles/components/_input-frame.css +3 -0
- package/src/styles/components/_label-value.css +20 -0
- package/src/styles/components/_row-item.css +5 -0
- package/src/styles/components/_scroll-fade.css +317 -0
- package/src/styles/components/_status-surface.css +21 -1
- package/src/styles/components.css +9 -16
- package/src/styles/index.css +2 -0
- package/src/styles/tokens-base.css +209 -72
- package/src/styles/utilities.css +10 -1
- package/src/utilities/attachments.ts +203 -27
- package/src/utilities/color-luminance.ts +49 -1
- package/src/utilities/dialog-props.ts +24 -0
- package/src/utilities/drag-scroll-physics.ts +82 -0
- package/src/utilities/focus.ts +1 -1
- package/src/utilities/use-drag-scroll.svelte.ts +186 -0
- package/src/utilities/use-drag-scroll.types.ts +17 -0
- package/src/utilities/use-fine-pointer.svelte.ts +23 -0
- package/src/utilities/use-fine-pointer.types.ts +4 -0
- 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 -521
- 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 -310
- 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 -3942
- 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 -1254
- package/dist/components/sheet/sheet.css +0 -212
- 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 -4217
- 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-70j8j998.js +0 -103
- package/dist/server/index.server-79bg6rad.js +0 -102
- package/dist/server/index.server-7r9d6g1c.js +0 -397
- 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-bfmd7nf6.js +0 -99
- package/dist/server/index.server-ff9zfw15.js +0 -88
- package/dist/server/index.server-g8j7wnpa.js +0 -9
- package/dist/server/index.server-hwajb8z6.js +0 -38
- package/dist/server/index.server-jj0tkfqp.js +0 -126
- 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-v3t6v21s.js +0 -295
- package/dist/server/index.server-v6b3k6cq.js +0 -15
- package/dist/server/index.server-yase1x1a.js +0 -23
- package/dist/server/index.server-z53avp9h.js +0 -126
- 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 -521
- 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 -3
- 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 -310
- 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 -212
- 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";
|
|
2903
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;
|
|
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,101 +3722,92 @@ 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;
|
|
3674
3810
|
var DEFAULT_ARROW_PADDING = 6;
|
|
3675
|
-
function getPlacementSide(placement) {
|
|
3676
|
-
if (placement.startsWith("top"))
|
|
3677
|
-
return "top";
|
|
3678
|
-
if (placement.startsWith("right"))
|
|
3679
|
-
return "right";
|
|
3680
|
-
if (placement.startsWith("left"))
|
|
3681
|
-
return "left";
|
|
3682
|
-
return "bottom";
|
|
3683
|
-
}
|
|
3684
3811
|
function getAnchoredOverlayWidthStyle(widthMode, anchorRect) {
|
|
3685
3812
|
if (widthMode === "none")
|
|
3686
3813
|
return "";
|
|
@@ -3711,15 +3838,12 @@ function applyAnchoredOverlayMaxBlockSize(panel, availableHeight, maximumBlockSi
|
|
|
3711
3838
|
function isAnchoredOverlayWriteCurrent(positioningGeneration, latestGeneration, cancelled) {
|
|
3712
3839
|
return !cancelled && positioningGeneration === latestGeneration;
|
|
3713
3840
|
}
|
|
3714
|
-
function getArrowStyle(
|
|
3841
|
+
function getArrowStyle(data) {
|
|
3715
3842
|
if (!data)
|
|
3716
3843
|
return "";
|
|
3717
|
-
const side = getPlacementSide(placement);
|
|
3718
|
-
const staticSide = { top: "bottom", right: "left", bottom: "top", left: "right" }[side];
|
|
3719
3844
|
return [
|
|
3720
3845
|
data.x != null ? `left: ${data.x}px;` : "",
|
|
3721
|
-
data.y != null ? `top: ${data.y}px;` : ""
|
|
3722
|
-
staticSide ? `${staticSide}: -4px;` : ""
|
|
3846
|
+
data.y != null ? `top: ${data.y}px;` : ""
|
|
3723
3847
|
].filter(Boolean).join(" ");
|
|
3724
3848
|
}
|
|
3725
3849
|
function reportAnchoredOverlaySetupError(error) {
|
|
@@ -3731,28 +3855,43 @@ function reportAnchoredOverlaySetupError(error) {
|
|
|
3731
3855
|
throw error;
|
|
3732
3856
|
}, 0);
|
|
3733
3857
|
}
|
|
3858
|
+
var floatingUiModulePromise;
|
|
3859
|
+
function cacheFloatingUiModule(load) {
|
|
3860
|
+
floatingUiModulePromise ??= load().catch((error) => {
|
|
3861
|
+
floatingUiModulePromise = undefined;
|
|
3862
|
+
throw error;
|
|
3863
|
+
});
|
|
3864
|
+
return floatingUiModulePromise;
|
|
3865
|
+
}
|
|
3734
3866
|
function createAnchoredOverlay(options) {
|
|
3735
|
-
let positionReady = $
|
|
3736
|
-
let positionStyle = $
|
|
3737
|
-
let availableHeightStyle = $
|
|
3738
|
-
let resolvedPlacement = $
|
|
3739
|
-
let arrowStyle = $
|
|
3740
|
-
$
|
|
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(() => {
|
|
3873
|
+
const anchor = options.anchor();
|
|
3874
|
+
const panel = options.panel();
|
|
3875
|
+
if (!anchor || !panel)
|
|
3876
|
+
return;
|
|
3877
|
+
cacheFloatingUiModule(() => Promise.resolve().then(() => (init_floating_ui_dom(), exports_floating_ui_dom))).catch(() => {});
|
|
3878
|
+
});
|
|
3879
|
+
$9.user_effect(() => {
|
|
3741
3880
|
if (!options.open()) {
|
|
3742
|
-
$
|
|
3743
|
-
$
|
|
3744
|
-
$
|
|
3745
|
-
$
|
|
3746
|
-
$
|
|
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);
|
|
3747
3886
|
return;
|
|
3748
3887
|
}
|
|
3749
3888
|
const anchor = options.anchor();
|
|
3750
3889
|
const panel = options.panel();
|
|
3751
3890
|
if (!anchor || !panel) {
|
|
3752
|
-
$
|
|
3753
|
-
$
|
|
3754
|
-
$
|
|
3755
|
-
$
|
|
3891
|
+
$9.set(positionReady, false);
|
|
3892
|
+
$9.set(positionStyle, "");
|
|
3893
|
+
$9.set(availableHeightStyle, "");
|
|
3894
|
+
$9.set(arrowStyle, "");
|
|
3756
3895
|
return;
|
|
3757
3896
|
}
|
|
3758
3897
|
const placement = options.placement?.() ?? DEFAULT_PLACEMENT;
|
|
@@ -3780,7 +3919,7 @@ function createAnchoredOverlay(options) {
|
|
|
3780
3919
|
offset: offsetMiddleware,
|
|
3781
3920
|
size: sizeMiddleware,
|
|
3782
3921
|
shift: shift3
|
|
3783
|
-
} = await Promise.resolve().then(() => (init_floating_ui_dom(), exports_floating_ui_dom));
|
|
3922
|
+
} = await cacheFloatingUiModule(() => Promise.resolve().then(() => (init_floating_ui_dom(), exports_floating_ui_dom)));
|
|
3784
3923
|
if (cancelled)
|
|
3785
3924
|
return;
|
|
3786
3925
|
const updatePosition = async () => {
|
|
@@ -3788,7 +3927,7 @@ function createAnchoredOverlay(options) {
|
|
|
3788
3927
|
return;
|
|
3789
3928
|
const currentGeneration = ++generation;
|
|
3790
3929
|
if (!sizeEnabled) {
|
|
3791
|
-
$
|
|
3930
|
+
$9.set(availableHeightStyle, "");
|
|
3792
3931
|
panel.style.removeProperty("max-block-size");
|
|
3793
3932
|
}
|
|
3794
3933
|
const middleware = [
|
|
@@ -3802,7 +3941,7 @@ function createAnchoredOverlay(options) {
|
|
|
3802
3941
|
apply({ availableHeight }) {
|
|
3803
3942
|
if (!isAnchoredOverlayWriteCurrent(currentGeneration, generation, cancelled))
|
|
3804
3943
|
return;
|
|
3805
|
-
$
|
|
3944
|
+
$9.set(availableHeightStyle, applyAnchoredOverlayMaxBlockSize(panel, availableHeight, sizeMaxBlockSize), true);
|
|
3806
3945
|
}
|
|
3807
3946
|
}));
|
|
3808
3947
|
}
|
|
@@ -3821,25 +3960,25 @@ function createAnchoredOverlay(options) {
|
|
|
3821
3960
|
} catch {
|
|
3822
3961
|
if (cancelled || currentGeneration !== generation)
|
|
3823
3962
|
return;
|
|
3824
|
-
$
|
|
3825
|
-
$
|
|
3826
|
-
$
|
|
3827
|
-
$
|
|
3963
|
+
$9.set(positionReady, false);
|
|
3964
|
+
$9.set(positionStyle, "");
|
|
3965
|
+
$9.set(arrowStyle, "");
|
|
3966
|
+
$9.set(resolvedPlacement, placement, true);
|
|
3828
3967
|
return;
|
|
3829
3968
|
}
|
|
3830
3969
|
if (cancelled || currentGeneration !== generation)
|
|
3831
3970
|
return;
|
|
3832
3971
|
const widthStyle = getAnchoredOverlayWidthStyle(widthMode, anchor.getBoundingClientRect());
|
|
3833
|
-
$
|
|
3972
|
+
$9.set(positionStyle, [
|
|
3834
3973
|
`position: ${strategy};`,
|
|
3835
3974
|
`left: ${result.x}px;`,
|
|
3836
3975
|
`top: ${result.y}px;`,
|
|
3837
|
-
$
|
|
3976
|
+
$9.get(availableHeightStyle) ? `max-block-size: ${$9.get(availableHeightStyle)};` : "",
|
|
3838
3977
|
widthStyle
|
|
3839
3978
|
].filter(Boolean).join(" "), true);
|
|
3840
|
-
$
|
|
3841
|
-
$
|
|
3842
|
-
$
|
|
3979
|
+
$9.set(resolvedPlacement, result.placement, true);
|
|
3980
|
+
$9.set(arrowStyle, arrowVisible ? getArrowStyle(result.middlewareData.arrow) : "", true);
|
|
3981
|
+
$9.set(positionReady, true);
|
|
3843
3982
|
};
|
|
3844
3983
|
stopAutoUpdate = autoUpdate2(anchor, panel, updatePosition);
|
|
3845
3984
|
if (boundary && boundary !== anchor && boundary !== panel && typeof ResizeObserver !== "undefined") {
|
|
@@ -3851,11 +3990,11 @@ function createAnchoredOverlay(options) {
|
|
|
3851
3990
|
})().catch((error) => {
|
|
3852
3991
|
if (cancelled)
|
|
3853
3992
|
return;
|
|
3854
|
-
$
|
|
3855
|
-
$
|
|
3856
|
-
$
|
|
3857
|
-
$
|
|
3858
|
-
$
|
|
3993
|
+
$9.set(positionReady, false);
|
|
3994
|
+
$9.set(positionStyle, "");
|
|
3995
|
+
$9.set(availableHeightStyle, "");
|
|
3996
|
+
$9.set(arrowStyle, "");
|
|
3997
|
+
$9.set(resolvedPlacement, placement, true);
|
|
3859
3998
|
reportAnchoredOverlaySetupError(error);
|
|
3860
3999
|
});
|
|
3861
4000
|
return () => {
|
|
@@ -3863,25 +4002,25 @@ function createAnchoredOverlay(options) {
|
|
|
3863
4002
|
stopAutoUpdate?.();
|
|
3864
4003
|
boundaryResizeObserver?.disconnect();
|
|
3865
4004
|
panel.style.removeProperty("max-block-size");
|
|
3866
|
-
$
|
|
3867
|
-
$
|
|
3868
|
-
$
|
|
3869
|
-
$
|
|
3870
|
-
$
|
|
4005
|
+
$9.set(positionReady, false);
|
|
4006
|
+
$9.set(positionStyle, "");
|
|
4007
|
+
$9.set(availableHeightStyle, "");
|
|
4008
|
+
$9.set(arrowStyle, "");
|
|
4009
|
+
$9.set(resolvedPlacement, placement, true);
|
|
3871
4010
|
};
|
|
3872
4011
|
});
|
|
3873
4012
|
return {
|
|
3874
4013
|
get positionReady() {
|
|
3875
|
-
return $
|
|
4014
|
+
return $9.get(positionReady);
|
|
3876
4015
|
},
|
|
3877
4016
|
get positionStyle() {
|
|
3878
|
-
return $
|
|
4017
|
+
return $9.get(positionStyle);
|
|
3879
4018
|
},
|
|
3880
4019
|
get resolvedPlacement() {
|
|
3881
|
-
return $
|
|
4020
|
+
return $9.get(resolvedPlacement);
|
|
3882
4021
|
},
|
|
3883
4022
|
get arrowStyle() {
|
|
3884
|
-
return $
|
|
4023
|
+
return $9.get(arrowStyle);
|
|
3885
4024
|
}
|
|
3886
4025
|
};
|
|
3887
4026
|
}
|
|
@@ -3898,9 +4037,9 @@ function pushEscapeHandler(handler) {
|
|
|
3898
4037
|
if (released)
|
|
3899
4038
|
return;
|
|
3900
4039
|
released = true;
|
|
3901
|
-
const
|
|
3902
|
-
if (
|
|
3903
|
-
escapeStack.splice(
|
|
4040
|
+
const index2 = escapeStack.lastIndexOf(handler);
|
|
4041
|
+
if (index2 !== -1)
|
|
4042
|
+
escapeStack.splice(index2, 1);
|
|
3904
4043
|
if (escapeStack.length === 0 && typeof window !== "undefined") {
|
|
3905
4044
|
window.removeEventListener("keydown", onEscapeKeydown, { capture: true });
|
|
3906
4045
|
}
|
|
@@ -3980,16 +4119,16 @@ var sequentialFocusCandidateSelector = [
|
|
|
3980
4119
|
"[contenteditable]",
|
|
3981
4120
|
"[tabindex]"
|
|
3982
4121
|
].join(", ");
|
|
3983
|
-
function getSequentialFocusTargets(
|
|
3984
|
-
if (!
|
|
4122
|
+
function getSequentialFocusTargets(root5, range) {
|
|
4123
|
+
if (!root5)
|
|
3985
4124
|
return [];
|
|
3986
|
-
const composedElements = collectComposedElements(
|
|
4125
|
+
const composedElements = collectComposedElements(root5);
|
|
3987
4126
|
const relativeIndex = range ? composedElements.indexOf(range.relativeTo) : -1;
|
|
3988
4127
|
if (range && relativeIndex === -1)
|
|
3989
4128
|
return [];
|
|
3990
4129
|
const tierReference = range?.tierReference ?? range?.relativeTo;
|
|
3991
|
-
const positionOf = range ? new Map(composedElements.map((
|
|
3992
|
-
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);
|
|
3993
4132
|
const radios = [];
|
|
3994
4133
|
for (const candidate of candidates) {
|
|
3995
4134
|
if (!isRadio(candidate))
|
|
@@ -4032,33 +4171,33 @@ function getSequentialFocusTargets(root4, range) {
|
|
|
4032
4171
|
return leftTabIndex - rightTabIndex;
|
|
4033
4172
|
});
|
|
4034
4173
|
}
|
|
4035
|
-
function collectComposedElements(
|
|
4174
|
+
function collectComposedElements(root5) {
|
|
4036
4175
|
const elements = [];
|
|
4037
4176
|
const visited = new Set;
|
|
4038
|
-
const visit = (
|
|
4039
|
-
if (visited.has(
|
|
4177
|
+
const visit = (element2, fromSlot = false) => {
|
|
4178
|
+
if (visited.has(element2))
|
|
4040
4179
|
return;
|
|
4041
|
-
if (!fromSlot &&
|
|
4180
|
+
if (!fromSlot && element2.assignedSlot)
|
|
4042
4181
|
return;
|
|
4043
|
-
visited.add(
|
|
4044
|
-
elements.push(
|
|
4045
|
-
if (isSlotElement(
|
|
4046
|
-
if (
|
|
4047
|
-
for (const
|
|
4048
|
-
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);
|
|
4049
4188
|
return;
|
|
4050
4189
|
}
|
|
4051
4190
|
}
|
|
4052
|
-
const childRoot =
|
|
4053
|
-
for (const
|
|
4054
|
-
visit(
|
|
4191
|
+
const childRoot = element2.shadowRoot ?? element2;
|
|
4192
|
+
for (const child5 of Array.from(childRoot.children))
|
|
4193
|
+
visit(child5);
|
|
4055
4194
|
};
|
|
4056
|
-
for (const
|
|
4057
|
-
visit(
|
|
4195
|
+
for (const child5 of Array.from(root5.children))
|
|
4196
|
+
visit(child5);
|
|
4058
4197
|
return elements;
|
|
4059
4198
|
}
|
|
4060
|
-
function isSlotElement(
|
|
4061
|
-
return
|
|
4199
|
+
function isSlotElement(element2) {
|
|
4200
|
+
return element2.localName === "slot" && typeof Reflect.get(element2, "assignedElements") === "function" && typeof Reflect.get(element2, "assignedNodes") === "function";
|
|
4062
4201
|
}
|
|
4063
4202
|
function isSequentialCandidate(candidate) {
|
|
4064
4203
|
const explicitTabIndexValue = getExplicitTabIndexValue(candidate);
|
|
@@ -4072,22 +4211,22 @@ function isSequentialCandidate(candidate) {
|
|
|
4072
4211
|
return false;
|
|
4073
4212
|
return true;
|
|
4074
4213
|
}
|
|
4075
|
-
function hasNativeSequentialDefault(
|
|
4076
|
-
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);
|
|
4077
4216
|
}
|
|
4078
|
-
function isRadio(
|
|
4079
|
-
return isHtmlElementNode(
|
|
4217
|
+
function isRadio(element2) {
|
|
4218
|
+
return isHtmlElementNode(element2) && element2.localName === "input" && element2.getAttribute("type")?.toLowerCase() === "radio";
|
|
4080
4219
|
}
|
|
4081
|
-
function getFormOwner(
|
|
4082
|
-
const formValue = "form" in
|
|
4220
|
+
function getFormOwner(element2) {
|
|
4221
|
+
const formValue = "form" in element2 ? Reflect.get(element2, "form") : null;
|
|
4083
4222
|
return isHtmlElementNode(formValue) ? formValue : null;
|
|
4084
4223
|
}
|
|
4085
|
-
function sequentialTabIndexValue(
|
|
4086
|
-
return Math.max(0, getTabIndexValue(
|
|
4224
|
+
function sequentialTabIndexValue(element2) {
|
|
4225
|
+
return Math.max(0, getTabIndexValue(element2));
|
|
4087
4226
|
}
|
|
4088
|
-
function isSequentiallyAfterReference(
|
|
4227
|
+
function isSequentiallyAfterReference(element2, reference, direction, relativePosition) {
|
|
4089
4228
|
const referenceTabIndex = getTabIndexValue(reference);
|
|
4090
|
-
const elementTabIndex = getTabIndexValue(
|
|
4229
|
+
const elementTabIndex = getTabIndexValue(element2);
|
|
4091
4230
|
const referenceIsPositive = referenceTabIndex > 0;
|
|
4092
4231
|
const elementIsPositive = elementTabIndex > 0;
|
|
4093
4232
|
if (direction === "after") {
|
|
@@ -4113,8 +4252,8 @@ function isSequentiallyAfterReference(element, reference, direction, relativePos
|
|
|
4113
4252
|
return true;
|
|
4114
4253
|
return relativePosition < 0;
|
|
4115
4254
|
}
|
|
4116
|
-
function getTabIndexValue(
|
|
4117
|
-
return getExplicitTabIndexValue(
|
|
4255
|
+
function getTabIndexValue(element2) {
|
|
4256
|
+
return getExplicitTabIndexValue(element2) ?? (hasNativeSequentialDefault(element2) ? 0 : -1);
|
|
4118
4257
|
}
|
|
4119
4258
|
function findSequentialEntryTarget(candidates, referenceTabIndex, direction) {
|
|
4120
4259
|
if (direction === "after") {
|
|
@@ -4130,8 +4269,8 @@ function findSequentialEntryTarget(candidates, referenceTabIndex, direction) {
|
|
|
4130
4269
|
return candidateTabIndex > 0 && candidateTabIndex <= referenceTabIndex;
|
|
4131
4270
|
}) ?? null;
|
|
4132
4271
|
}
|
|
4133
|
-
function getExplicitTabIndexValue(
|
|
4134
|
-
const rawValue =
|
|
4272
|
+
function getExplicitTabIndexValue(element2) {
|
|
4273
|
+
const rawValue = element2.getAttribute("tabindex");
|
|
4135
4274
|
if (rawValue !== null) {
|
|
4136
4275
|
const match = /^[\t\n\f\r ]*([+-]?\d+)/.exec(rawValue);
|
|
4137
4276
|
if (match?.[1]) {
|
|
@@ -4141,11 +4280,11 @@ function getExplicitTabIndexValue(element) {
|
|
|
4141
4280
|
}
|
|
4142
4281
|
return null;
|
|
4143
4282
|
}
|
|
4144
|
-
function isEditingHost(
|
|
4145
|
-
return hasContentEditableState(
|
|
4283
|
+
function isEditingHost(element2) {
|
|
4284
|
+
return hasContentEditableState(element2) && !hasContentEditableState(element2.parentElement);
|
|
4146
4285
|
}
|
|
4147
|
-
function hasContentEditableState(
|
|
4148
|
-
for (let current =
|
|
4286
|
+
function hasContentEditableState(element2) {
|
|
4287
|
+
for (let current = element2;current; current = current.parentElement) {
|
|
4149
4288
|
const value = current.getAttribute("contenteditable")?.toLowerCase();
|
|
4150
4289
|
if (value === "" || value === "true" || value === "plaintext-only")
|
|
4151
4290
|
return true;
|
|
@@ -4154,15 +4293,15 @@ function hasContentEditableState(element) {
|
|
|
4154
4293
|
}
|
|
4155
4294
|
return false;
|
|
4156
4295
|
}
|
|
4157
|
-
function isFirstDetailsSummary(
|
|
4158
|
-
const details =
|
|
4159
|
-
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;
|
|
4160
4299
|
}
|
|
4161
|
-
function isInsideClosedDetails(
|
|
4162
|
-
let current = composedParentElement(
|
|
4300
|
+
function isInsideClosedDetails(element2) {
|
|
4301
|
+
let current = composedParentElement(element2);
|
|
4163
4302
|
while (current) {
|
|
4164
|
-
const summary = Array.from(current.children).find((
|
|
4165
|
-
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)))
|
|
4166
4305
|
return true;
|
|
4167
4306
|
current = composedParentElement(current);
|
|
4168
4307
|
}
|
|
@@ -4175,8 +4314,8 @@ function composedContains(ancestor, descendant) {
|
|
|
4175
4314
|
}
|
|
4176
4315
|
return false;
|
|
4177
4316
|
}
|
|
4178
|
-
function closestComposed(
|
|
4179
|
-
let candidate =
|
|
4317
|
+
function closestComposed(element2, selector) {
|
|
4318
|
+
let candidate = element2;
|
|
4180
4319
|
while (candidate) {
|
|
4181
4320
|
if (candidate.matches(selector))
|
|
4182
4321
|
return candidate;
|
|
@@ -4184,10 +4323,10 @@ function closestComposed(element, selector) {
|
|
|
4184
4323
|
}
|
|
4185
4324
|
return null;
|
|
4186
4325
|
}
|
|
4187
|
-
function isRendered(
|
|
4326
|
+
function isRendered(element2) {
|
|
4188
4327
|
if (typeof getComputedStyle !== "function")
|
|
4189
4328
|
return true;
|
|
4190
|
-
let candidate =
|
|
4329
|
+
let candidate = element2;
|
|
4191
4330
|
while (candidate) {
|
|
4192
4331
|
const style = getComputedStyle(candidate);
|
|
4193
4332
|
if (style.display === "none" || style.visibility === "hidden" || style.visibility === "collapse")
|
|
@@ -4196,26 +4335,26 @@ function isRendered(element) {
|
|
|
4196
4335
|
}
|
|
4197
4336
|
return true;
|
|
4198
4337
|
}
|
|
4199
|
-
function composedParentElement(
|
|
4200
|
-
return assignedSlotFor(
|
|
4338
|
+
function composedParentElement(element2) {
|
|
4339
|
+
return assignedSlotFor(element2) ?? element2.parentElement ?? shadowHost(element2.getRootNode());
|
|
4201
4340
|
}
|
|
4202
|
-
function assignedSlotFor(
|
|
4203
|
-
if (isElementNode(
|
|
4204
|
-
return
|
|
4205
|
-
const shadowRoot =
|
|
4341
|
+
function assignedSlotFor(element2) {
|
|
4342
|
+
if (isElementNode(element2.assignedSlot))
|
|
4343
|
+
return element2.assignedSlot;
|
|
4344
|
+
const shadowRoot = element2.parentElement?.shadowRoot;
|
|
4206
4345
|
if (!shadowRoot)
|
|
4207
4346
|
return null;
|
|
4208
|
-
for (const
|
|
4209
|
-
if (isSlotElement(
|
|
4210
|
-
return
|
|
4347
|
+
for (const slot3 of shadowRoot.querySelectorAll("slot")) {
|
|
4348
|
+
if (isSlotElement(slot3) && slot3.assignedElements({ flatten: true }).includes(element2)) {
|
|
4349
|
+
return slot3;
|
|
4211
4350
|
}
|
|
4212
4351
|
}
|
|
4213
4352
|
return null;
|
|
4214
4353
|
}
|
|
4215
|
-
function shadowHost(
|
|
4216
|
-
if (!("host" in
|
|
4354
|
+
function shadowHost(root5) {
|
|
4355
|
+
if (!("host" in root5))
|
|
4217
4356
|
return null;
|
|
4218
|
-
const host =
|
|
4357
|
+
const host = root5.host;
|
|
4219
4358
|
return isElementNode(host) ? host : null;
|
|
4220
4359
|
}
|
|
4221
4360
|
function isElementNode(value) {
|
|
@@ -4252,9 +4391,9 @@ function createBodyScrollLock() {
|
|
|
4252
4391
|
return release;
|
|
4253
4392
|
};
|
|
4254
4393
|
}
|
|
4255
|
-
function isInsideEventPath(event2,
|
|
4394
|
+
function isInsideEventPath(event2, element2) {
|
|
4256
4395
|
const path = event2.composedPath();
|
|
4257
|
-
return path.some((entry) => entry instanceof Node &&
|
|
4396
|
+
return path.some((entry) => entry instanceof Node && element2.contains(entry));
|
|
4258
4397
|
}
|
|
4259
4398
|
function createClickOutside(options) {
|
|
4260
4399
|
const { handler, enabled = true, eventType = "click", capture = true, ignoreRefs } = options;
|
|
@@ -4274,8 +4413,8 @@ function createClickOutside(options) {
|
|
|
4274
4413
|
return;
|
|
4275
4414
|
if (ignoreRefs) {
|
|
4276
4415
|
for (const ref of ignoreRefs) {
|
|
4277
|
-
const
|
|
4278
|
-
if (
|
|
4416
|
+
const element2 = ref();
|
|
4417
|
+
if (element2 && isInsideEventPath(event2, element2))
|
|
4279
4418
|
return;
|
|
4280
4419
|
}
|
|
4281
4420
|
}
|
|
@@ -4310,36 +4449,118 @@ function overflowFade() {
|
|
|
4310
4449
|
});
|
|
4311
4450
|
};
|
|
4312
4451
|
const resizeObserver = new ResizeObserver(scheduleUpdate);
|
|
4313
|
-
|
|
4314
|
-
const
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4452
|
+
resizeObserver.observe(node);
|
|
4453
|
+
const mutationObserver = typeof MutationObserver === "undefined" ? null : new MutationObserver(scheduleUpdate);
|
|
4454
|
+
mutationObserver?.observe(node, {
|
|
4455
|
+
childList: true,
|
|
4456
|
+
subtree: true,
|
|
4457
|
+
characterData: true,
|
|
4458
|
+
attributes: true,
|
|
4459
|
+
attributeFilter: ["hidden", "class", "style", "aria-hidden", "src"]
|
|
4460
|
+
});
|
|
4461
|
+
node.addEventListener("scroll", scheduleUpdate, { passive: true });
|
|
4462
|
+
update();
|
|
4463
|
+
return () => {
|
|
4464
|
+
if (frame)
|
|
4465
|
+
cancelFrame(frame);
|
|
4466
|
+
resizeObserver.disconnect();
|
|
4467
|
+
mutationObserver?.disconnect();
|
|
4468
|
+
node.removeEventListener("scroll", scheduleUpdate);
|
|
4319
4469
|
};
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4470
|
+
};
|
|
4471
|
+
}
|
|
4472
|
+
var OVERFLOW_SHADOW_ATTRIBUTE = {
|
|
4473
|
+
inline: "data-cinder-overflows-inline",
|
|
4474
|
+
block: "data-cinder-overflows-block"
|
|
4475
|
+
};
|
|
4476
|
+
function overflowShadow(axis) {
|
|
4477
|
+
const attributeName = OVERFLOW_SHADOW_ATTRIBUTE[axis];
|
|
4478
|
+
return (node) => {
|
|
4479
|
+
if (typeof ResizeObserver === "undefined") {
|
|
4480
|
+
node.removeAttribute(attributeName);
|
|
4481
|
+
return;
|
|
4482
|
+
}
|
|
4483
|
+
const update = () => {
|
|
4484
|
+
const overflows = axis === "inline" ? node.scrollWidth - node.clientWidth > 1 : node.scrollHeight - node.clientHeight > 1;
|
|
4485
|
+
node.toggleAttribute(attributeName, overflows);
|
|
4331
4486
|
};
|
|
4332
|
-
|
|
4333
|
-
const
|
|
4334
|
-
|
|
4335
|
-
|
|
4487
|
+
const requestFrame = typeof requestAnimationFrame === "function" ? requestAnimationFrame : (callback) => window.setTimeout(() => callback(performance.now()));
|
|
4488
|
+
const cancelFrame = typeof cancelAnimationFrame === "function" ? cancelAnimationFrame : (handle) => window.clearTimeout(handle);
|
|
4489
|
+
let frame = 0;
|
|
4490
|
+
const scheduleUpdate = () => {
|
|
4491
|
+
if (frame)
|
|
4492
|
+
return;
|
|
4493
|
+
frame = requestFrame(() => {
|
|
4494
|
+
frame = 0;
|
|
4495
|
+
update();
|
|
4496
|
+
});
|
|
4497
|
+
};
|
|
4498
|
+
const resizeObserver = new ResizeObserver(scheduleUpdate);
|
|
4499
|
+
resizeObserver.observe(node);
|
|
4500
|
+
const mutationObserver = typeof MutationObserver === "undefined" ? null : new MutationObserver(scheduleUpdate);
|
|
4501
|
+
mutationObserver?.observe(node, {
|
|
4502
|
+
childList: true,
|
|
4503
|
+
subtree: true,
|
|
4504
|
+
characterData: true,
|
|
4505
|
+
attributes: true,
|
|
4506
|
+
attributeFilter: ["hidden", "class", "style", "aria-hidden", "src"]
|
|
4336
4507
|
});
|
|
4508
|
+
update();
|
|
4509
|
+
return () => {
|
|
4510
|
+
if (frame)
|
|
4511
|
+
cancelFrame(frame);
|
|
4512
|
+
resizeObserver.disconnect();
|
|
4513
|
+
mutationObserver?.disconnect();
|
|
4514
|
+
};
|
|
4515
|
+
};
|
|
4516
|
+
}
|
|
4517
|
+
var OVERFLOW_FADE_START_ATTRIBUTE = {
|
|
4518
|
+
block: "data-cinder-overflows-start",
|
|
4519
|
+
inline: "data-cinder-overflows-inline-start"
|
|
4520
|
+
};
|
|
4521
|
+
var OVERFLOW_FADE_END_ATTRIBUTE = {
|
|
4522
|
+
block: "data-cinder-overflows",
|
|
4523
|
+
inline: "data-cinder-overflows-inline-end"
|
|
4524
|
+
};
|
|
4525
|
+
function overflowFadeEdges(axis) {
|
|
4526
|
+
const startAttribute = OVERFLOW_FADE_START_ATTRIBUTE[axis];
|
|
4527
|
+
const endAttribute = OVERFLOW_FADE_END_ATTRIBUTE[axis];
|
|
4528
|
+
return (node) => {
|
|
4529
|
+
if (typeof ResizeObserver === "undefined") {
|
|
4530
|
+
node.removeAttribute(startAttribute);
|
|
4531
|
+
node.removeAttribute(endAttribute);
|
|
4532
|
+
return;
|
|
4533
|
+
}
|
|
4534
|
+
const update = () => {
|
|
4535
|
+
const scrollPosition = axis === "block" ? node.scrollTop : node.scrollLeft;
|
|
4536
|
+
const contentExtent = axis === "block" ? node.scrollHeight : node.scrollWidth;
|
|
4537
|
+
const viewportExtent = axis === "block" ? node.clientHeight : node.clientWidth;
|
|
4538
|
+
const overflows = contentExtent - viewportExtent > 1;
|
|
4539
|
+
const atStart = scrollPosition <= 1;
|
|
4540
|
+
const atEnd = scrollPosition + viewportExtent >= contentExtent - 1;
|
|
4541
|
+
node.toggleAttribute(startAttribute, overflows && !atStart);
|
|
4542
|
+
node.toggleAttribute(endAttribute, overflows && !atEnd);
|
|
4543
|
+
};
|
|
4544
|
+
const requestFrame = typeof requestAnimationFrame === "function" ? requestAnimationFrame : (callback) => window.setTimeout(() => callback(performance.now()));
|
|
4545
|
+
const cancelFrame = typeof cancelAnimationFrame === "function" ? cancelAnimationFrame : (handle) => window.clearTimeout(handle);
|
|
4546
|
+
let frame = 0;
|
|
4547
|
+
const scheduleUpdate = () => {
|
|
4548
|
+
if (frame)
|
|
4549
|
+
return;
|
|
4550
|
+
frame = requestFrame(() => {
|
|
4551
|
+
frame = 0;
|
|
4552
|
+
update();
|
|
4553
|
+
});
|
|
4554
|
+
};
|
|
4555
|
+
const resizeObserver = new ResizeObserver(scheduleUpdate);
|
|
4556
|
+
resizeObserver.observe(node);
|
|
4557
|
+
const mutationObserver = typeof MutationObserver === "undefined" ? null : new MutationObserver(scheduleUpdate);
|
|
4337
4558
|
mutationObserver?.observe(node, {
|
|
4338
4559
|
childList: true,
|
|
4339
4560
|
subtree: true,
|
|
4340
4561
|
characterData: true,
|
|
4341
4562
|
attributes: true,
|
|
4342
|
-
attributeFilter: ["hidden", "class", "style", "aria-hidden"]
|
|
4563
|
+
attributeFilter: ["hidden", "class", "style", "aria-hidden", "src"]
|
|
4343
4564
|
});
|
|
4344
4565
|
node.addEventListener("scroll", scheduleUpdate, { passive: true });
|
|
4345
4566
|
update();
|
|
@@ -4347,7 +4568,6 @@ function overflowFade() {
|
|
|
4347
4568
|
if (frame)
|
|
4348
4569
|
cancelFrame(frame);
|
|
4349
4570
|
resizeObserver.disconnect();
|
|
4350
|
-
observedElements.clear();
|
|
4351
4571
|
mutationObserver?.disconnect();
|
|
4352
4572
|
node.removeEventListener("scroll", scheduleUpdate);
|
|
4353
4573
|
};
|
|
@@ -4355,14 +4575,14 @@ function overflowFade() {
|
|
|
4355
4575
|
}
|
|
4356
4576
|
|
|
4357
4577
|
// src/components/popover/popover.svelte
|
|
4358
|
-
var
|
|
4359
|
-
var root_13 = $
|
|
4360
|
-
var root_23 = $
|
|
4361
|
-
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);
|
|
4362
4582
|
function Popover($$anchor, $$props) {
|
|
4363
|
-
const generatedPanelId = $
|
|
4364
|
-
$
|
|
4365
|
-
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");
|
|
4366
4586
|
const FOCUSABLE_SELECTOR = 'button:not([disabled]), a[href], [tabindex]:not([tabindex="-1"]), input:not([disabled]), select:not([disabled]), textarea:not([disabled])';
|
|
4367
4587
|
function findFirstFocusable(container) {
|
|
4368
4588
|
if (!container)
|
|
@@ -4375,55 +4595,58 @@ function Popover($$anchor, $$props) {
|
|
|
4375
4595
|
}
|
|
4376
4596
|
return null;
|
|
4377
4597
|
}
|
|
4378
|
-
let triggerWrapper = $
|
|
4379
|
-
let portalScopeElement = $
|
|
4380
|
-
let panelElement = $
|
|
4381
|
-
let arrowElement = $
|
|
4382
|
-
const panelId = $
|
|
4383
|
-
const anchorElement = $
|
|
4384
|
-
|
|
4385
|
-
|
|
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);
|
|
4386
4609
|
let capturedFocus = null;
|
|
4387
4610
|
let resolvedAnchorAtOpen = null;
|
|
4388
|
-
let pendingInitialFocus = $
|
|
4389
|
-
let openSessionFocusManagement = $
|
|
4611
|
+
let pendingInitialFocus = $10.state(false);
|
|
4612
|
+
let openSessionFocusManagement = $10.state("panel");
|
|
4390
4613
|
let isDestroyed = false;
|
|
4391
4614
|
onDestroy(() => {
|
|
4392
4615
|
isDestroyed = true;
|
|
4393
4616
|
});
|
|
4394
4617
|
const portalScopeAttachment = createPortalAttachment({
|
|
4395
4618
|
target: () => {
|
|
4396
|
-
if (!$
|
|
4619
|
+
if (!$10.get(anchorElement))
|
|
4397
4620
|
return document.body;
|
|
4398
4621
|
try {
|
|
4399
|
-
return findNearestOpenTopLayer($
|
|
4622
|
+
return findNearestOpenTopLayer($10.get(anchorElement)) ?? document.body;
|
|
4400
4623
|
} catch {
|
|
4401
4624
|
return document.body;
|
|
4402
4625
|
}
|
|
4403
4626
|
},
|
|
4404
4627
|
inheritAttributes: true,
|
|
4405
|
-
source: () => $
|
|
4628
|
+
source: () => $10.get(anchorElement) ?? null
|
|
4406
4629
|
});
|
|
4407
4630
|
const panelPortalAttachment = createPortalAttachment({
|
|
4408
|
-
disabled: () => !$
|
|
4409
|
-
target: () => $
|
|
4631
|
+
disabled: () => !$10.get(portalScopeElement),
|
|
4632
|
+
target: () => $10.get(portalScopeElement),
|
|
4410
4633
|
inheritAttributes: false
|
|
4411
4634
|
});
|
|
4412
|
-
const inheritedPortalStyle = createInheritedPortalStyle(() => $
|
|
4635
|
+
const inheritedPortalStyle = createInheritedPortalStyle(() => $10.get(anchorElement), () => $10.get(mounted) && open());
|
|
4413
4636
|
const anchoredOverlay = createAnchoredOverlay({
|
|
4414
4637
|
open: () => open(),
|
|
4415
|
-
anchor: () => $
|
|
4416
|
-
panel: () => $
|
|
4417
|
-
arrow: () => $
|
|
4638
|
+
anchor: () => $10.get(anchorElement),
|
|
4639
|
+
panel: () => $10.get(panelElement),
|
|
4640
|
+
arrow: () => $10.get(arrowElement),
|
|
4418
4641
|
placement: () => placement(),
|
|
4419
4642
|
offset: () => offset3(),
|
|
4420
4643
|
arrowVisible: () => arrowVisible(),
|
|
4421
4644
|
widthMode: () => widthMode()
|
|
4422
4645
|
});
|
|
4423
|
-
$
|
|
4424
|
-
$
|
|
4646
|
+
$10.user_effect(() => {
|
|
4647
|
+
$10.set(mounted, true);
|
|
4425
4648
|
});
|
|
4426
|
-
const dismissOnOutsideMousedown = $
|
|
4649
|
+
const dismissOnOutsideMousedown = $10.derived(() => createClickOutside({
|
|
4427
4650
|
handler: () => {
|
|
4428
4651
|
open(false);
|
|
4429
4652
|
},
|
|
@@ -4432,53 +4655,53 @@ function Popover($$anchor, $$props) {
|
|
|
4432
4655
|
capture: true,
|
|
4433
4656
|
ignoreRefs: [
|
|
4434
4657
|
() => resolvedAnchorAtOpen ?? null,
|
|
4435
|
-
() => $
|
|
4658
|
+
() => $10.get(portalScopeElement) ?? null,
|
|
4436
4659
|
...outsideClickIgnoreRefs()
|
|
4437
4660
|
]
|
|
4438
4661
|
}));
|
|
4439
4662
|
function moveFocusIntoPanel() {
|
|
4440
|
-
if (isDestroyed || !$
|
|
4663
|
+
if (isDestroyed || !$10.get(panelElement))
|
|
4441
4664
|
return false;
|
|
4442
|
-
const focusable = $$props.initialFocus?.($
|
|
4443
|
-
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);
|
|
4444
4667
|
target.focus();
|
|
4445
4668
|
if (document.activeElement === target)
|
|
4446
4669
|
return true;
|
|
4447
|
-
const fallback = focusable ? findFirstFocusable($
|
|
4670
|
+
const fallback = focusable ? findFirstFocusable($10.get(panelElement)) : null;
|
|
4448
4671
|
if (fallback && fallback !== target) {
|
|
4449
4672
|
fallback.focus();
|
|
4450
4673
|
if (document.activeElement === fallback)
|
|
4451
4674
|
return true;
|
|
4452
4675
|
}
|
|
4453
|
-
$
|
|
4454
|
-
return document.activeElement === $
|
|
4676
|
+
$10.get(panelElement).focus();
|
|
4677
|
+
return document.activeElement === $10.get(panelElement);
|
|
4455
4678
|
}
|
|
4456
|
-
$
|
|
4679
|
+
$10.user_effect(() => {
|
|
4457
4680
|
if (!open())
|
|
4458
4681
|
return;
|
|
4459
|
-
if (!$
|
|
4682
|
+
if (!$10.get(anchorElement))
|
|
4460
4683
|
return;
|
|
4461
|
-
$
|
|
4462
|
-
if ($
|
|
4684
|
+
$10.set(openSessionFocusManagement, untrack4(() => focusManagement()), true);
|
|
4685
|
+
if ($10.get(openSessionFocusManagement) === "panel") {
|
|
4463
4686
|
capturedFocus = captureFocus();
|
|
4464
|
-
$
|
|
4687
|
+
$10.set(pendingInitialFocus, true);
|
|
4465
4688
|
} else {
|
|
4466
4689
|
capturedFocus = null;
|
|
4467
|
-
$
|
|
4690
|
+
$10.set(pendingInitialFocus, false);
|
|
4468
4691
|
}
|
|
4469
|
-
resolvedAnchorAtOpen =
|
|
4692
|
+
resolvedAnchorAtOpen = untrack4(() => $10.get(anchorElement));
|
|
4470
4693
|
const releaseEscape = closeOnEscape() ? pushEscapeHandler(() => {
|
|
4471
4694
|
open(false);
|
|
4472
4695
|
}) : () => {};
|
|
4473
4696
|
return () => {
|
|
4474
4697
|
releaseEscape();
|
|
4475
|
-
$
|
|
4698
|
+
$10.set(pendingInitialFocus, false);
|
|
4476
4699
|
if (isDestroyed) {
|
|
4477
4700
|
capturedFocus = null;
|
|
4478
4701
|
resolvedAnchorAtOpen = null;
|
|
4479
4702
|
return;
|
|
4480
4703
|
}
|
|
4481
|
-
if ($
|
|
4704
|
+
if ($10.get(openSessionFocusManagement) === "panel") {
|
|
4482
4705
|
const candidates = [triggerRef(), resolvedAnchorAtOpen, capturedFocus];
|
|
4483
4706
|
for (const candidate of candidates) {
|
|
4484
4707
|
if (restoreFocusTo(candidate))
|
|
@@ -4489,21 +4712,21 @@ function Popover($$anchor, $$props) {
|
|
|
4489
4712
|
resolvedAnchorAtOpen = null;
|
|
4490
4713
|
};
|
|
4491
4714
|
});
|
|
4492
|
-
$
|
|
4715
|
+
$10.user_effect(() => {
|
|
4493
4716
|
if (isDestroyed)
|
|
4494
4717
|
return;
|
|
4495
|
-
if ($
|
|
4718
|
+
if ($10.get(openSessionFocusManagement) !== "panel")
|
|
4496
4719
|
return;
|
|
4497
|
-
if (!open() || !$
|
|
4720
|
+
if (!open() || !$10.get(panelElement) || !$10.get(anchorElement) || !anchoredOverlay.positionReady || !$10.get(pendingInitialFocus)) {
|
|
4498
4721
|
return;
|
|
4499
4722
|
}
|
|
4500
4723
|
if (moveFocusIntoPanel())
|
|
4501
|
-
$
|
|
4724
|
+
$10.set(pendingInitialFocus, false);
|
|
4502
4725
|
});
|
|
4503
|
-
$
|
|
4726
|
+
$10.user_effect(() => {
|
|
4504
4727
|
if (!open())
|
|
4505
4728
|
return;
|
|
4506
|
-
if (!$
|
|
4729
|
+
if (!$10.get(anchorElement)) {
|
|
4507
4730
|
devWarn("[cinder/popover] open without a trigger anchor. " + "Provide either a `trigger` snippet with a focusable child or a `triggerRef`.");
|
|
4508
4731
|
}
|
|
4509
4732
|
if (role() === "dialog" && !$$props.label && !$$props.ariaLabelledby) {
|
|
@@ -4513,10 +4736,10 @@ function Popover($$anchor, $$props) {
|
|
|
4513
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.");
|
|
4514
4737
|
}
|
|
4515
4738
|
});
|
|
4516
|
-
$
|
|
4739
|
+
$10.user_effect(() => {
|
|
4517
4740
|
if (!wireTriggerAria())
|
|
4518
4741
|
return;
|
|
4519
|
-
const target = $
|
|
4742
|
+
const target = $10.get(anchorElement);
|
|
4520
4743
|
if (!target)
|
|
4521
4744
|
return;
|
|
4522
4745
|
const prior = {
|
|
@@ -4531,7 +4754,7 @@ function Popover($$anchor, $$props) {
|
|
|
4531
4754
|
else
|
|
4532
4755
|
target.removeAttribute("aria-haspopup");
|
|
4533
4756
|
if (open())
|
|
4534
|
-
target.setAttribute("aria-controls", $
|
|
4757
|
+
target.setAttribute("aria-controls", $10.get(panelId));
|
|
4535
4758
|
else
|
|
4536
4759
|
target.removeAttribute("aria-controls");
|
|
4537
4760
|
return () => {
|
|
@@ -4548,76 +4771,76 @@ function Popover($$anchor, $$props) {
|
|
|
4548
4771
|
};
|
|
4549
4772
|
});
|
|
4550
4773
|
var fragment = root_33();
|
|
4551
|
-
var node = $
|
|
4774
|
+
var node = $10.first_child(fragment);
|
|
4552
4775
|
{
|
|
4553
4776
|
var consequent = ($$anchor2) => {
|
|
4554
|
-
var div =
|
|
4555
|
-
var node_1 = $
|
|
4556
|
-
$
|
|
4557
|
-
$
|
|
4558
|
-
$
|
|
4559
|
-
$
|
|
4560
|
-
$
|
|
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);
|
|
4561
4784
|
};
|
|
4562
|
-
$
|
|
4785
|
+
$10.if(node, ($$render) => {
|
|
4563
4786
|
if ($$props.trigger)
|
|
4564
4787
|
$$render(consequent);
|
|
4565
4788
|
});
|
|
4566
4789
|
}
|
|
4567
|
-
var node_2 = $
|
|
4790
|
+
var node_2 = $10.sibling(node, 2);
|
|
4568
4791
|
{
|
|
4569
4792
|
var consequent_2 = ($$anchor2) => {
|
|
4570
4793
|
var fragment_1 = root_23();
|
|
4571
|
-
var div_1 = $
|
|
4572
|
-
$
|
|
4573
|
-
$
|
|
4574
|
-
var div_2 = $
|
|
4575
|
-
var node_3 = $
|
|
4576
|
-
$
|
|
4577
|
-
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);
|
|
4578
4801
|
{
|
|
4579
4802
|
var consequent_1 = ($$anchor3) => {
|
|
4580
4803
|
var span = root_13();
|
|
4581
|
-
$
|
|
4582
|
-
$
|
|
4583
|
-
$
|
|
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);
|
|
4584
4807
|
};
|
|
4585
|
-
$
|
|
4808
|
+
$10.if(node_4, ($$render) => {
|
|
4586
4809
|
if (arrowVisible())
|
|
4587
4810
|
$$render(consequent_1);
|
|
4588
4811
|
});
|
|
4589
4812
|
}
|
|
4590
|
-
$
|
|
4591
|
-
$
|
|
4592
|
-
$
|
|
4593
|
-
$
|
|
4594
|
-
$
|
|
4595
|
-
$
|
|
4596
|
-
$
|
|
4597
|
-
$
|
|
4598
|
-
$
|
|
4599
|
-
$
|
|
4600
|
-
$
|
|
4601
|
-
$
|
|
4602
|
-
$
|
|
4603
|
-
$
|
|
4604
|
-
$
|
|
4605
|
-
$
|
|
4606
|
-
$
|
|
4607
|
-
$
|
|
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);
|
|
4608
4831
|
}, [
|
|
4609
|
-
() => $
|
|
4610
|
-
() => $
|
|
4832
|
+
() => $10.clsx(classNames("cinder-popover__portal-scope", $$props.portalScopeClass)),
|
|
4833
|
+
() => $10.clsx(classNames("cinder-_floating-surface", "cinder-popover", $$props.class))
|
|
4611
4834
|
]);
|
|
4612
|
-
$
|
|
4835
|
+
$10.append($$anchor2, fragment_1);
|
|
4613
4836
|
};
|
|
4614
|
-
$
|
|
4615
|
-
if ($
|
|
4837
|
+
$10.if(node_2, ($$render) => {
|
|
4838
|
+
if ($10.get(mounted) && open() && $10.get(anchorElement))
|
|
4616
4839
|
$$render(consequent_2);
|
|
4617
4840
|
});
|
|
4618
4841
|
}
|
|
4619
|
-
$
|
|
4620
|
-
$
|
|
4842
|
+
$10.append($$anchor, fragment);
|
|
4843
|
+
$10.pop();
|
|
4621
4844
|
}
|
|
4622
4845
|
|
|
4623
4846
|
// src/components/date-picker/date-picker.svelte
|
|
@@ -4638,162 +4861,161 @@ var rest_excludes4 = new Set([
|
|
|
4638
4861
|
"class",
|
|
4639
4862
|
"aria-describedby",
|
|
4640
4863
|
"aria-invalid",
|
|
4641
|
-
"
|
|
4642
|
-
"triggerLabel"
|
|
4864
|
+
"onValueChange"
|
|
4643
4865
|
]);
|
|
4644
|
-
var
|
|
4645
|
-
var root_14 = $
|
|
4646
|
-
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);
|
|
4647
4869
|
function Date_picker($$anchor, $$props) {
|
|
4648
|
-
$
|
|
4870
|
+
$11.push($$props, true);
|
|
4649
4871
|
const dateControl = ($$anchor2) => {
|
|
4650
4872
|
var fragment = root_24();
|
|
4651
|
-
var div = $
|
|
4652
|
-
var input = $
|
|
4653
|
-
$
|
|
4654
|
-
$
|
|
4655
|
-
var button = $
|
|
4656
|
-
var
|
|
4657
|
-
|
|
4658
|
-
$
|
|
4659
|
-
$
|
|
4660
|
-
|
|
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);
|
|
4661
4884
|
{
|
|
4662
|
-
let $0 = $
|
|
4663
|
-
let $1 = $
|
|
4664
|
-
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, {
|
|
4665
4888
|
get triggerRef() {
|
|
4666
|
-
return $
|
|
4889
|
+
return $11.get($0);
|
|
4667
4890
|
},
|
|
4668
4891
|
role: "dialog",
|
|
4669
4892
|
get label() {
|
|
4670
|
-
return $
|
|
4893
|
+
return $11.get($1);
|
|
4671
4894
|
},
|
|
4672
4895
|
focusManagement: "panel",
|
|
4673
4896
|
initialFocus: focusCalendarDay,
|
|
4674
|
-
outsideClickIgnoreRefs: [() => $
|
|
4897
|
+
outsideClickIgnoreRefs: [() => $11.get(inputElement)],
|
|
4675
4898
|
widthMode: "content",
|
|
4676
4899
|
class: "cinder-date-picker__panel",
|
|
4677
4900
|
get open() {
|
|
4678
|
-
return $
|
|
4901
|
+
return $11.get(open);
|
|
4679
4902
|
},
|
|
4680
4903
|
set open($$value) {
|
|
4681
|
-
$
|
|
4904
|
+
$11.set(open, $$value, true);
|
|
4682
4905
|
},
|
|
4683
4906
|
children: ($$anchor3, $$slotProps) => {
|
|
4684
4907
|
var fragment_1 = root_14();
|
|
4685
|
-
var
|
|
4908
|
+
var node_2 = $11.first_child(fragment_1);
|
|
4686
4909
|
{
|
|
4687
|
-
let $02 = $
|
|
4688
|
-
let $12 = $
|
|
4689
|
-
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, {
|
|
4690
4913
|
get value() {
|
|
4691
|
-
return $
|
|
4914
|
+
return $11.get(selectedDate);
|
|
4692
4915
|
},
|
|
4693
4916
|
get min() {
|
|
4694
|
-
return $
|
|
4917
|
+
return $11.get($02);
|
|
4695
4918
|
},
|
|
4696
4919
|
get max() {
|
|
4697
|
-
return $
|
|
4920
|
+
return $11.get($12);
|
|
4698
4921
|
},
|
|
4699
|
-
|
|
4922
|
+
onValueChange: handleCalendarChange,
|
|
4700
4923
|
get disabled() {
|
|
4701
4924
|
return disabled();
|
|
4702
4925
|
}
|
|
4703
4926
|
});
|
|
4704
4927
|
}
|
|
4705
|
-
var
|
|
4928
|
+
var node_3 = $11.sibling(node_2, 2);
|
|
4706
4929
|
{
|
|
4707
4930
|
var consequent = ($$anchor4) => {
|
|
4708
|
-
var div_1 =
|
|
4709
|
-
var label_1 = $
|
|
4710
|
-
var input_1 = $
|
|
4711
|
-
$
|
|
4712
|
-
$
|
|
4713
|
-
$
|
|
4714
|
-
$
|
|
4715
|
-
$
|
|
4716
|
-
$
|
|
4717
|
-
$
|
|
4718
|
-
$
|
|
4719
|
-
$
|
|
4720
|
-
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);
|
|
4721
4944
|
});
|
|
4722
|
-
$
|
|
4723
|
-
$
|
|
4945
|
+
$11.delegated("change", input_1, handleTimeChange);
|
|
4946
|
+
$11.append($$anchor4, div_1);
|
|
4724
4947
|
};
|
|
4725
|
-
$
|
|
4948
|
+
$11.if(node_3, ($$render) => {
|
|
4726
4949
|
if (granularity() !== "day")
|
|
4727
4950
|
$$render(consequent);
|
|
4728
4951
|
});
|
|
4729
4952
|
}
|
|
4730
|
-
$
|
|
4953
|
+
$11.append($$anchor3, fragment_1);
|
|
4731
4954
|
},
|
|
4732
4955
|
$$slots: { default: true }
|
|
4733
4956
|
});
|
|
4734
4957
|
}
|
|
4735
|
-
$
|
|
4736
|
-
$
|
|
4737
|
-
$
|
|
4738
|
-
$
|
|
4739
|
-
$
|
|
4740
|
-
$
|
|
4741
|
-
$
|
|
4742
|
-
$
|
|
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));
|
|
4743
4966
|
input.disabled = disabled();
|
|
4744
|
-
$
|
|
4745
|
-
$
|
|
4746
|
-
$
|
|
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");
|
|
4747
4970
|
button.disabled = disabled();
|
|
4748
|
-
$9.set_text(text, triggerLabel());
|
|
4749
4971
|
});
|
|
4750
|
-
$
|
|
4751
|
-
$
|
|
4752
|
-
$
|
|
4972
|
+
$11.delegated("input", input, handleInput);
|
|
4973
|
+
$11.delegated("change", input, handleInputChange);
|
|
4974
|
+
$11.delegated("click", button, () => {
|
|
4753
4975
|
if (!disabled())
|
|
4754
|
-
$
|
|
4976
|
+
$11.set(open, true);
|
|
4755
4977
|
});
|
|
4756
|
-
$
|
|
4978
|
+
$11.append($$anchor2, fragment);
|
|
4757
4979
|
};
|
|
4758
|
-
let value = $
|
|
4759
|
-
let open = $
|
|
4760
|
-
let inputElement = $
|
|
4761
|
-
let triggerElement = $
|
|
4762
|
-
const normalizedValue = $
|
|
4763
|
-
const normalizedMin = $
|
|
4764
|
-
const normalizedMax = $
|
|
4765
|
-
const selectedDate = $
|
|
4766
|
-
const selectedTime = $
|
|
4767
|
-
let hasInputValidityError = $
|
|
4768
|
-
const step = $
|
|
4769
|
-
const invalid = $
|
|
4770
|
-
const resolvedPlaceholder = $
|
|
4771
|
-
function updateInputValidity(
|
|
4772
|
-
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;
|
|
4773
4995
|
const normalizedCurrent = normalizeDateValue(current || undefined, granularity());
|
|
4774
4996
|
const valid = current === "" || normalizedCurrent === current && clampToBounds(normalizedCurrent) === normalizedCurrent;
|
|
4775
|
-
$
|
|
4776
|
-
|
|
4997
|
+
$11.set(hasInputValidityError, !valid);
|
|
4998
|
+
element2.setCustomValidity(valid ? "" : "Enter a valid date within the allowed range.");
|
|
4777
4999
|
}
|
|
4778
|
-
$
|
|
4779
|
-
$
|
|
4780
|
-
if (!$
|
|
5000
|
+
$11.user_effect(() => {
|
|
5001
|
+
$11.get(normalizedValue);
|
|
5002
|
+
if (!$11.get(inputElement))
|
|
4781
5003
|
return;
|
|
4782
|
-
updateInputValidity($
|
|
5004
|
+
updateInputValidity($11.get(inputElement));
|
|
4783
5005
|
});
|
|
4784
|
-
$
|
|
4785
|
-
if (!$
|
|
5006
|
+
$11.user_effect(() => {
|
|
5007
|
+
if (!$11.get(inputElement))
|
|
4786
5008
|
return;
|
|
4787
|
-
const
|
|
4788
|
-
const form =
|
|
5009
|
+
const element2 = $11.get(inputElement);
|
|
5010
|
+
const form = element2.form;
|
|
4789
5011
|
if (!form)
|
|
4790
5012
|
return;
|
|
4791
5013
|
function handleFormReset() {
|
|
4792
5014
|
queueMicrotask(() => {
|
|
4793
|
-
if ($
|
|
5015
|
+
if ($11.get(inputElement) !== element2)
|
|
4794
5016
|
return;
|
|
4795
|
-
value(normalizeDateValue(
|
|
4796
|
-
updateInputValidity(
|
|
5017
|
+
value(normalizeDateValue(element2.value || undefined, granularity()));
|
|
5018
|
+
updateInputValidity(element2);
|
|
4797
5019
|
});
|
|
4798
5020
|
}
|
|
4799
5021
|
form.addEventListener("reset", handleFormReset);
|
|
@@ -4801,43 +5023,43 @@ function Date_picker($$anchor, $$props) {
|
|
|
4801
5023
|
form.removeEventListener("reset", handleFormReset);
|
|
4802
5024
|
};
|
|
4803
5025
|
});
|
|
4804
|
-
const describedById = $
|
|
5026
|
+
const describedById = $11.derived(() => [
|
|
4805
5027
|
$$props["aria-describedby"],
|
|
4806
5028
|
$$props.description ? `${$$props.id}-description` : undefined,
|
|
4807
5029
|
$$props.error ? `${$$props.id}-error` : undefined
|
|
4808
5030
|
].filter(Boolean).join(" ") || undefined);
|
|
4809
|
-
$
|
|
4810
|
-
if (value() === $
|
|
5031
|
+
$11.user_effect(() => {
|
|
5032
|
+
if (value() === $11.get(normalizedValue))
|
|
4811
5033
|
return;
|
|
4812
|
-
emit($
|
|
5034
|
+
emit($11.get(normalizedValue));
|
|
4813
5035
|
});
|
|
4814
5036
|
function emit(next) {
|
|
4815
5037
|
value(next);
|
|
4816
|
-
$$props.
|
|
5038
|
+
$$props.onValueChange?.(next);
|
|
4817
5039
|
}
|
|
4818
5040
|
function clampToBounds(next) {
|
|
4819
5041
|
if (!next)
|
|
4820
5042
|
return;
|
|
4821
|
-
if ($
|
|
4822
|
-
return $
|
|
4823
|
-
if ($
|
|
4824
|
-
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);
|
|
4825
5047
|
return next;
|
|
4826
5048
|
}
|
|
4827
5049
|
function handleCalendarChange(nextDate) {
|
|
4828
5050
|
if (granularity() === "day") {
|
|
4829
5051
|
emit(clampToBounds(nextDate));
|
|
4830
|
-
$
|
|
5052
|
+
$11.set(open, false);
|
|
4831
5053
|
return;
|
|
4832
5054
|
}
|
|
4833
|
-
const existingTime = $
|
|
5055
|
+
const existingTime = $11.get(selectedTime) ?? (granularity() === "second" ? "00:00:00" : "00:00");
|
|
4834
5056
|
emit(clampToBounds(normalizeDateValue(`${nextDate}T${existingTime}`, granularity())));
|
|
4835
5057
|
}
|
|
4836
5058
|
function handleTimeChange(event2) {
|
|
4837
5059
|
const target = event2.currentTarget;
|
|
4838
|
-
if (!$
|
|
5060
|
+
if (!$11.get(selectedDate))
|
|
4839
5061
|
return;
|
|
4840
|
-
emit(clampToBounds(normalizeDateValue(`${$
|
|
5062
|
+
emit(clampToBounds(normalizeDateValue(`${$11.get(selectedDate)}T${target.value}`, granularity())));
|
|
4841
5063
|
}
|
|
4842
5064
|
function handleInputChange(event2) {
|
|
4843
5065
|
const target = event2.currentTarget;
|
|
@@ -4859,26 +5081,26 @@ function Date_picker($$anchor, $$props) {
|
|
|
4859
5081
|
emit(normalizedDraft);
|
|
4860
5082
|
}
|
|
4861
5083
|
}
|
|
4862
|
-
function focusCalendarDay(panel, date = $
|
|
5084
|
+
function focusCalendarDay(panel, date = $11.get(selectedDate)) {
|
|
4863
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"]');
|
|
4864
5086
|
}
|
|
4865
|
-
const timeMin = $
|
|
4866
|
-
if (granularity() === "day" || !$
|
|
5087
|
+
const timeMin = $11.derived(() => {
|
|
5088
|
+
if (granularity() === "day" || !$11.get(selectedDate) || !$11.get(normalizedMin))
|
|
4867
5089
|
return;
|
|
4868
|
-
if (!$
|
|
5090
|
+
if (!$11.get(normalizedMin).startsWith(`${$11.get(selectedDate)}T`))
|
|
4869
5091
|
return;
|
|
4870
|
-
return $
|
|
5092
|
+
return $11.get(normalizedMin).slice(11);
|
|
4871
5093
|
});
|
|
4872
|
-
const timeMax = $
|
|
4873
|
-
if (granularity() === "day" || !$
|
|
5094
|
+
const timeMax = $11.derived(() => {
|
|
5095
|
+
if (granularity() === "day" || !$11.get(selectedDate) || !$11.get(normalizedMax))
|
|
4874
5096
|
return;
|
|
4875
|
-
if (!$
|
|
5097
|
+
if (!$11.get(normalizedMax).startsWith(`${$11.get(selectedDate)}T`))
|
|
4876
5098
|
return;
|
|
4877
|
-
return $
|
|
5099
|
+
return $11.get(normalizedMax).slice(11);
|
|
4878
5100
|
});
|
|
4879
5101
|
{
|
|
4880
|
-
let $0 = $
|
|
4881
|
-
Form_field_frame($$anchor, $
|
|
5102
|
+
let $0 = $11.derived(() => classNames("cinder-date-picker", $$props.class));
|
|
5103
|
+
Form_field_frame($$anchor, $11.spread_props(() => rest, {
|
|
4882
5104
|
get id() {
|
|
4883
5105
|
return $$props.id;
|
|
4884
5106
|
},
|
|
@@ -4895,7 +5117,7 @@ function Date_picker($$anchor, $$props) {
|
|
|
4895
5117
|
return disabled();
|
|
4896
5118
|
},
|
|
4897
5119
|
get class() {
|
|
4898
|
-
return $
|
|
5120
|
+
return $11.get($0);
|
|
4899
5121
|
},
|
|
4900
5122
|
labelClass: "cinder-date-picker__label",
|
|
4901
5123
|
descriptionClass: "cinder-date-picker__description",
|
|
@@ -4905,9 +5127,9 @@ function Date_picker($$anchor, $$props) {
|
|
|
4905
5127
|
}
|
|
4906
5128
|
}));
|
|
4907
5129
|
}
|
|
4908
|
-
$
|
|
5130
|
+
$11.pop();
|
|
4909
5131
|
}
|
|
4910
|
-
$
|
|
5132
|
+
$11.delegate(["input", "change", "click"]);
|
|
4911
5133
|
|
|
4912
5134
|
// src/components/date-picker/index.ts
|
|
4913
5135
|
var date_picker_default = Date_picker;
|
|
@@ -4916,4 +5138,4 @@ export {
|
|
|
4916
5138
|
Date_picker as DatePicker
|
|
4917
5139
|
};
|
|
4918
5140
|
|
|
4919
|
-
//# debugId=
|
|
5141
|
+
//# debugId=60C8BF9E450EE55E64756E2164756E21
|