@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,7 +2899,7 @@ import"@lostgradient/cinder/date-range-field/styles";
|
|
|
2899
2899
|
|
|
2900
2900
|
// src/components/date-range-field/date-range-field.svelte
|
|
2901
2901
|
import"svelte/internal/disclose-version";
|
|
2902
|
-
import * as $
|
|
2902
|
+
import * as $12 from "svelte/internal/client";
|
|
2903
2903
|
|
|
2904
2904
|
// src/_internal/date-value.ts
|
|
2905
2905
|
function isLeapYear(year) {
|
|
@@ -2956,12 +2956,122 @@ function normalizeDateValue(value, granularity) {
|
|
|
2956
2956
|
|
|
2957
2957
|
// src/components/date-picker/date-picker.svelte
|
|
2958
2958
|
import"svelte/internal/disclose-version";
|
|
2959
|
-
import * as $
|
|
2959
|
+
import * as $11 from "svelte/internal/client";
|
|
2960
2960
|
|
|
2961
|
-
//
|
|
2961
|
+
// ../../node_modules/lucide-svelte/dist/icons/calendar-days.svelte
|
|
2962
2962
|
import"svelte/internal/disclose-version";
|
|
2963
|
+
import"svelte/internal/flags/legacy";
|
|
2963
2964
|
import * as $5 from "svelte/internal/client";
|
|
2964
2965
|
|
|
2966
|
+
// ../../node_modules/lucide-svelte/dist/Icon.svelte
|
|
2967
|
+
import"svelte/internal/disclose-version";
|
|
2968
|
+
import"svelte/internal/flags/legacy";
|
|
2969
|
+
import * as $4 from "svelte/internal/client";
|
|
2970
|
+
|
|
2971
|
+
// ../../node_modules/lucide-svelte/dist/defaultAttributes.js
|
|
2972
|
+
var defaultAttributes = {
|
|
2973
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2974
|
+
width: 24,
|
|
2975
|
+
height: 24,
|
|
2976
|
+
viewBox: "0 0 24 24",
|
|
2977
|
+
fill: "none",
|
|
2978
|
+
stroke: "currentColor",
|
|
2979
|
+
"stroke-width": 2,
|
|
2980
|
+
"stroke-linecap": "round",
|
|
2981
|
+
"stroke-linejoin": "round"
|
|
2982
|
+
};
|
|
2983
|
+
var defaultAttributes_default = defaultAttributes;
|
|
2984
|
+
|
|
2985
|
+
// ../../node_modules/lucide-svelte/dist/Icon.svelte
|
|
2986
|
+
var root2 = $4.from_svg(`<svg><!><!></svg>`);
|
|
2987
|
+
function Icon($$anchor, $$props) {
|
|
2988
|
+
const $$sanitized_props = $4.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
2989
|
+
const $$restProps = $4.legacy_rest_props($$sanitized_props, [
|
|
2990
|
+
"name",
|
|
2991
|
+
"color",
|
|
2992
|
+
"size",
|
|
2993
|
+
"strokeWidth",
|
|
2994
|
+
"absoluteStrokeWidth",
|
|
2995
|
+
"iconNode"
|
|
2996
|
+
]);
|
|
2997
|
+
$4.push($$props, false);
|
|
2998
|
+
let name = $4.prop($$props, "name", 8, undefined);
|
|
2999
|
+
let color = $4.prop($$props, "color", 8, "currentColor");
|
|
3000
|
+
let size = $4.prop($$props, "size", 8, 24);
|
|
3001
|
+
let strokeWidth = $4.prop($$props, "strokeWidth", 8, 2);
|
|
3002
|
+
let absoluteStrokeWidth = $4.prop($$props, "absoluteStrokeWidth", 8, false);
|
|
3003
|
+
let iconNode = $4.prop($$props, "iconNode", 24, () => []);
|
|
3004
|
+
const mergeClasses = (...classes) => classes.filter((className, index2, array) => {
|
|
3005
|
+
return Boolean(className) && array.indexOf(className) === index2;
|
|
3006
|
+
}).join(" ");
|
|
3007
|
+
$4.init();
|
|
3008
|
+
var svg = root2();
|
|
3009
|
+
$4.attribute_effect(svg, ($0, $1) => ({
|
|
3010
|
+
...defaultAttributes_default,
|
|
3011
|
+
...$$restProps,
|
|
3012
|
+
width: size(),
|
|
3013
|
+
height: size(),
|
|
3014
|
+
stroke: color(),
|
|
3015
|
+
"stroke-width": $0,
|
|
3016
|
+
class: $1
|
|
3017
|
+
}), [
|
|
3018
|
+
() => ($4.deep_read_state(absoluteStrokeWidth()), $4.deep_read_state(strokeWidth()), $4.deep_read_state(size()), $4.untrack(() => absoluteStrokeWidth() ? Number(strokeWidth()) * 24 / Number(size()) : strokeWidth())),
|
|
3019
|
+
() => ($4.deep_read_state(name()), $4.deep_read_state($$sanitized_props), $4.untrack(() => mergeClasses("lucide-icon", "lucide", name() ? `lucide-${name()}` : "", $$sanitized_props.class)))
|
|
3020
|
+
]);
|
|
3021
|
+
var node = $4.child(svg);
|
|
3022
|
+
$4.each(node, 1, iconNode, $4.index, ($$anchor2, $$item) => {
|
|
3023
|
+
var $$array = $4.derived(() => $4.to_array($4.get($$item), 2));
|
|
3024
|
+
let tag = () => $4.get($$array)[0];
|
|
3025
|
+
let attrs = () => $4.get($$array)[1];
|
|
3026
|
+
var fragment = $4.comment();
|
|
3027
|
+
var node_1 = $4.first_child(fragment);
|
|
3028
|
+
$4.element(node_1, tag, true, ($$element, $$anchor3) => {
|
|
3029
|
+
$4.attribute_effect($$element, () => ({ ...attrs() }));
|
|
3030
|
+
});
|
|
3031
|
+
$4.append($$anchor2, fragment);
|
|
3032
|
+
});
|
|
3033
|
+
var node_2 = $4.sibling(node);
|
|
3034
|
+
$4.slot(node_2, $$props, "default", {}, null);
|
|
3035
|
+
$4.reset(svg);
|
|
3036
|
+
$4.append($$anchor, svg);
|
|
3037
|
+
$4.pop();
|
|
3038
|
+
}
|
|
3039
|
+
|
|
3040
|
+
// ../../node_modules/lucide-svelte/dist/icons/calendar-days.svelte
|
|
3041
|
+
function Calendar_days($$anchor, $$props) {
|
|
3042
|
+
const $$sanitized_props = $5.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
3043
|
+
const iconNode = [
|
|
3044
|
+
["path", { d: "M8 2v4" }],
|
|
3045
|
+
["path", { d: "M16 2v4" }],
|
|
3046
|
+
[
|
|
3047
|
+
"rect",
|
|
3048
|
+
{ width: "18", height: "18", x: "3", y: "4", rx: "2" }
|
|
3049
|
+
],
|
|
3050
|
+
["path", { d: "M3 10h18" }],
|
|
3051
|
+
["path", { d: "M8 14h.01" }],
|
|
3052
|
+
["path", { d: "M12 14h.01" }],
|
|
3053
|
+
["path", { d: "M16 14h.01" }],
|
|
3054
|
+
["path", { d: "M8 18h.01" }],
|
|
3055
|
+
["path", { d: "M12 18h.01" }],
|
|
3056
|
+
["path", { d: "M16 18h.01" }]
|
|
3057
|
+
];
|
|
3058
|
+
Icon($$anchor, $5.spread_props({ name: "calendar-days" }, () => $$sanitized_props, {
|
|
3059
|
+
get iconNode() {
|
|
3060
|
+
return iconNode;
|
|
3061
|
+
},
|
|
3062
|
+
children: ($$anchor2, $$slotProps) => {
|
|
3063
|
+
var fragment_1 = $5.comment();
|
|
3064
|
+
var node = $5.first_child(fragment_1);
|
|
3065
|
+
$5.slot(node, $$props, "default", {}, null);
|
|
3066
|
+
$5.append($$anchor2, fragment_1);
|
|
3067
|
+
},
|
|
3068
|
+
$$slots: { default: true }
|
|
3069
|
+
}));
|
|
3070
|
+
}
|
|
3071
|
+
// src/_internal/form-field-frame.svelte
|
|
3072
|
+
import"svelte/internal/disclose-version";
|
|
3073
|
+
import * as $7 from "svelte/internal/client";
|
|
3074
|
+
|
|
2965
3075
|
// src/_internal/field-control.ts
|
|
2966
3076
|
function describeId(fieldId, hasDescription) {
|
|
2967
3077
|
return hasDescription ? `${fieldId}-description` : undefined;
|
|
@@ -3002,7 +3112,7 @@ function resolveFieldControl(input) {
|
|
|
3002
3112
|
|
|
3003
3113
|
// src/_internal/form-field-provider.svelte
|
|
3004
3114
|
import"svelte/internal/disclose-version";
|
|
3005
|
-
import * as $
|
|
3115
|
+
import * as $6 from "svelte/internal/client";
|
|
3006
3116
|
|
|
3007
3117
|
// src/_internal/form-field-context.ts
|
|
3008
3118
|
import { createContext } from "svelte";
|
|
@@ -3027,13 +3137,39 @@ var getFormFieldContext = optionalContext(getFormFieldContextStrict);
|
|
|
3027
3137
|
|
|
3028
3138
|
// src/_internal/form-field-provider.svelte
|
|
3029
3139
|
function Form_field_provider($$anchor, $$props) {
|
|
3030
|
-
$
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3140
|
+
$6.push($$props, true);
|
|
3141
|
+
const forwardedContext = {
|
|
3142
|
+
get controlId() {
|
|
3143
|
+
return $$props.context.controlId;
|
|
3144
|
+
},
|
|
3145
|
+
get labelId() {
|
|
3146
|
+
return $$props.context.labelId;
|
|
3147
|
+
},
|
|
3148
|
+
get describedBy() {
|
|
3149
|
+
return $$props.context.describedBy;
|
|
3150
|
+
},
|
|
3151
|
+
get descriptionId() {
|
|
3152
|
+
return $$props.context.descriptionId;
|
|
3153
|
+
},
|
|
3154
|
+
get errorId() {
|
|
3155
|
+
return $$props.context.errorId;
|
|
3156
|
+
},
|
|
3157
|
+
get invalid() {
|
|
3158
|
+
return $$props.context.invalid;
|
|
3159
|
+
},
|
|
3160
|
+
get required() {
|
|
3161
|
+
return $$props.context.required;
|
|
3162
|
+
},
|
|
3163
|
+
get disabled() {
|
|
3164
|
+
return $$props.context.disabled;
|
|
3165
|
+
}
|
|
3166
|
+
};
|
|
3167
|
+
setFormFieldContext(forwardedContext);
|
|
3168
|
+
var fragment = $6.comment();
|
|
3169
|
+
var node = $6.first_child(fragment);
|
|
3170
|
+
$6.snippet(node, () => $$props.children);
|
|
3171
|
+
$6.append($$anchor, fragment);
|
|
3172
|
+
$6.pop();
|
|
3037
3173
|
}
|
|
3038
3174
|
|
|
3039
3175
|
// src/_internal/form-field-frame.svelte
|
|
@@ -3043,7 +3179,7 @@ var rest_excludes2 = new Set([
|
|
|
3043
3179
|
"$$legacy",
|
|
3044
3180
|
"id",
|
|
3045
3181
|
"label",
|
|
3046
|
-
"
|
|
3182
|
+
"labelVisible",
|
|
3047
3183
|
"description",
|
|
3048
3184
|
"error",
|
|
3049
3185
|
"required",
|
|
@@ -3067,39 +3203,39 @@ var rest_excludes2 = new Set([
|
|
|
3067
3203
|
"after",
|
|
3068
3204
|
"message"
|
|
3069
3205
|
]);
|
|
3070
|
-
var
|
|
3071
|
-
var root_1 = $
|
|
3072
|
-
var root_2 = $
|
|
3073
|
-
var root_3 = $
|
|
3074
|
-
var root_4 = $
|
|
3075
|
-
var root_5 = $
|
|
3206
|
+
var root3 = $7.from_html(`<span class="cinder-_required-marker" aria-hidden="true">*</span>`);
|
|
3207
|
+
var root_1 = $7.from_html(`<label> <!></label>`);
|
|
3208
|
+
var root_2 = $7.from_html(`<div><!> <!> <!></div>`);
|
|
3209
|
+
var root_3 = $7.from_html(`<p> </p>`);
|
|
3210
|
+
var root_4 = $7.from_html(`<p aria-live="polite"> </p>`);
|
|
3211
|
+
var root_5 = $7.from_html(`<div><!> <!> <!> <!> <!></div>`);
|
|
3076
3212
|
function Form_field_frame($$anchor, $$props) {
|
|
3077
|
-
$
|
|
3078
|
-
let
|
|
3079
|
-
const labelId = $
|
|
3080
|
-
const descriptionId = $
|
|
3081
|
-
const errorId2 = $
|
|
3082
|
-
const describedBy = $
|
|
3083
|
-
const invalid = $
|
|
3084
|
-
const needsControlWrapper = $
|
|
3213
|
+
$7.push($$props, true);
|
|
3214
|
+
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);
|
|
3215
|
+
const labelId = $7.derived(() => $$props.label ? `${$$props.id}-label` : undefined);
|
|
3216
|
+
const descriptionId = $7.derived(() => $$props.descriptionId ?? describeId($$props.id, !!$$props.description));
|
|
3217
|
+
const errorId2 = $7.derived(() => $$props.errorId ?? errorId($$props.id, !!$$props.error));
|
|
3218
|
+
const describedBy = $7.derived(() => composeDescribedBy($7.get(descriptionId), $7.get(errorId2)));
|
|
3219
|
+
const invalid = $7.derived(() => ariaInvalid(!!$$props.error));
|
|
3220
|
+
const needsControlWrapper = $7.derived(() => !!$$props.controlClass || !!$$props.before || !!$$props.after);
|
|
3085
3221
|
const context = {
|
|
3086
3222
|
get controlId() {
|
|
3087
3223
|
return $$props.id;
|
|
3088
3224
|
},
|
|
3089
3225
|
get labelId() {
|
|
3090
|
-
return $
|
|
3226
|
+
return $7.get(labelId);
|
|
3091
3227
|
},
|
|
3092
3228
|
get describedBy() {
|
|
3093
|
-
return $
|
|
3229
|
+
return $7.get(describedBy);
|
|
3094
3230
|
},
|
|
3095
3231
|
get descriptionId() {
|
|
3096
|
-
return $
|
|
3232
|
+
return $7.get(descriptionId);
|
|
3097
3233
|
},
|
|
3098
3234
|
get errorId() {
|
|
3099
|
-
return $
|
|
3235
|
+
return $7.get(errorId2);
|
|
3100
3236
|
},
|
|
3101
3237
|
get invalid() {
|
|
3102
|
-
return $
|
|
3238
|
+
return $7.get(invalid);
|
|
3103
3239
|
},
|
|
3104
3240
|
get required() {
|
|
3105
3241
|
return required();
|
|
@@ -3109,99 +3245,99 @@ function Form_field_frame($$anchor, $$props) {
|
|
|
3109
3245
|
}
|
|
3110
3246
|
};
|
|
3111
3247
|
var div = root_5();
|
|
3112
|
-
$
|
|
3248
|
+
$7.attribute_effect(div, ($0) => ({
|
|
3113
3249
|
...rest,
|
|
3114
3250
|
class: $0,
|
|
3115
3251
|
"data-cinder-full-width": fullWidth() ? "" : undefined
|
|
3116
3252
|
}), [() => classNames("cinder-form-field", $$props.class)]);
|
|
3117
|
-
var node = $
|
|
3253
|
+
var node = $7.child(div);
|
|
3118
3254
|
{
|
|
3119
3255
|
var consequent_1 = ($$anchor2) => {
|
|
3120
3256
|
var label_1 = root_1();
|
|
3121
|
-
var text = $
|
|
3122
|
-
var node_1 = $
|
|
3257
|
+
var text = $7.child(label_1);
|
|
3258
|
+
var node_1 = $7.sibling(text);
|
|
3123
3259
|
{
|
|
3124
3260
|
var consequent = ($$anchor3) => {
|
|
3125
|
-
var span =
|
|
3126
|
-
$
|
|
3261
|
+
var span = root3();
|
|
3262
|
+
$7.append($$anchor3, span);
|
|
3127
3263
|
};
|
|
3128
|
-
$
|
|
3264
|
+
$7.if(node_1, ($$render) => {
|
|
3129
3265
|
if (required())
|
|
3130
3266
|
$$render(consequent);
|
|
3131
3267
|
});
|
|
3132
3268
|
}
|
|
3133
|
-
$
|
|
3134
|
-
$
|
|
3135
|
-
$
|
|
3136
|
-
$
|
|
3137
|
-
$
|
|
3138
|
-
$
|
|
3139
|
-
$
|
|
3269
|
+
$7.reset(label_1);
|
|
3270
|
+
$7.template_effect(($0) => {
|
|
3271
|
+
$7.set_attribute(label_1, "id", $7.get(labelId));
|
|
3272
|
+
$7.set_attribute(label_1, "for", $$props.id);
|
|
3273
|
+
$7.set_class(label_1, 1, $0);
|
|
3274
|
+
$7.set_attribute(label_1, "data-disabled", disabled() || undefined);
|
|
3275
|
+
$7.set_text(text, `${$$props.label ?? ""} `);
|
|
3140
3276
|
}, [
|
|
3141
|
-
() => $
|
|
3277
|
+
() => $7.clsx(classNames("cinder-form-field__label", $$props.labelClass, !labelVisible() && "cinder-sr-only"))
|
|
3142
3278
|
]);
|
|
3143
|
-
$
|
|
3279
|
+
$7.append($$anchor2, label_1);
|
|
3144
3280
|
};
|
|
3145
|
-
$
|
|
3281
|
+
$7.if(node, ($$render) => {
|
|
3146
3282
|
if ($$props.label)
|
|
3147
3283
|
$$render(consequent_1);
|
|
3148
3284
|
});
|
|
3149
3285
|
}
|
|
3150
|
-
var node_2 = $
|
|
3286
|
+
var node_2 = $7.sibling(node, 2);
|
|
3151
3287
|
{
|
|
3152
3288
|
var consequent_4 = ($$anchor2) => {
|
|
3153
3289
|
var div_1 = root_2();
|
|
3154
|
-
var node_3 = $
|
|
3290
|
+
var node_3 = $7.child(div_1);
|
|
3155
3291
|
{
|
|
3156
3292
|
var consequent_2 = ($$anchor3) => {
|
|
3157
|
-
var fragment = $
|
|
3158
|
-
var node_4 = $
|
|
3159
|
-
$
|
|
3160
|
-
$
|
|
3293
|
+
var fragment = $7.comment();
|
|
3294
|
+
var node_4 = $7.first_child(fragment);
|
|
3295
|
+
$7.snippet(node_4, () => $$props.before);
|
|
3296
|
+
$7.append($$anchor3, fragment);
|
|
3161
3297
|
};
|
|
3162
|
-
$
|
|
3298
|
+
$7.if(node_3, ($$render) => {
|
|
3163
3299
|
if ($$props.before)
|
|
3164
3300
|
$$render(consequent_2);
|
|
3165
3301
|
});
|
|
3166
3302
|
}
|
|
3167
|
-
var node_5 = $
|
|
3303
|
+
var node_5 = $7.sibling(node_3, 2);
|
|
3168
3304
|
Form_field_provider(node_5, {
|
|
3169
3305
|
get context() {
|
|
3170
3306
|
return context;
|
|
3171
3307
|
},
|
|
3172
3308
|
children: ($$anchor3, $$slotProps) => {
|
|
3173
|
-
var fragment_1 = $
|
|
3174
|
-
var node_6 = $
|
|
3175
|
-
$
|
|
3176
|
-
$
|
|
3309
|
+
var fragment_1 = $7.comment();
|
|
3310
|
+
var node_6 = $7.first_child(fragment_1);
|
|
3311
|
+
$7.snippet(node_6, () => $$props.control);
|
|
3312
|
+
$7.append($$anchor3, fragment_1);
|
|
3177
3313
|
},
|
|
3178
3314
|
$$slots: { default: true }
|
|
3179
3315
|
});
|
|
3180
|
-
var node_7 = $
|
|
3316
|
+
var node_7 = $7.sibling(node_5, 2);
|
|
3181
3317
|
{
|
|
3182
3318
|
var consequent_3 = ($$anchor3) => {
|
|
3183
|
-
var fragment_2 = $
|
|
3184
|
-
var node_8 = $
|
|
3185
|
-
$
|
|
3186
|
-
$
|
|
3319
|
+
var fragment_2 = $7.comment();
|
|
3320
|
+
var node_8 = $7.first_child(fragment_2);
|
|
3321
|
+
$7.snippet(node_8, () => $$props.after);
|
|
3322
|
+
$7.append($$anchor3, fragment_2);
|
|
3187
3323
|
};
|
|
3188
|
-
$
|
|
3324
|
+
$7.if(node_7, ($$render) => {
|
|
3189
3325
|
if ($$props.after)
|
|
3190
3326
|
$$render(consequent_3);
|
|
3191
3327
|
});
|
|
3192
3328
|
}
|
|
3193
|
-
$
|
|
3194
|
-
$
|
|
3195
|
-
$
|
|
3196
|
-
$
|
|
3197
|
-
$
|
|
3198
|
-
$
|
|
3199
|
-
$
|
|
3200
|
-
$
|
|
3329
|
+
$7.reset(div_1);
|
|
3330
|
+
$7.template_effect(($0) => {
|
|
3331
|
+
$7.set_class(div_1, 1, $0);
|
|
3332
|
+
$7.set_attribute(div_1, "data-leading", controlLeading() ? "" : undefined);
|
|
3333
|
+
$7.set_attribute(div_1, "data-trailing", controlTrailing() ? "" : undefined);
|
|
3334
|
+
$7.set_attribute(div_1, "data-native-date", controlNativeDate() ? "" : undefined);
|
|
3335
|
+
$7.set_attribute(div_1, "data-disabled", controlDisabled() ? "" : undefined);
|
|
3336
|
+
$7.set_attribute(div_1, "data-invalid", controlInvalid() ? "" : undefined);
|
|
3201
3337
|
}, [
|
|
3202
|
-
() => $
|
|
3338
|
+
() => $7.clsx(classNames("cinder-form-field__control", $$props.controlClass))
|
|
3203
3339
|
]);
|
|
3204
|
-
$
|
|
3340
|
+
$7.append($$anchor2, div_1);
|
|
3205
3341
|
};
|
|
3206
3342
|
var alternate = ($$anchor2) => {
|
|
3207
3343
|
Form_field_provider($$anchor2, {
|
|
@@ -3209,84 +3345,84 @@ function Form_field_frame($$anchor, $$props) {
|
|
|
3209
3345
|
return context;
|
|
3210
3346
|
},
|
|
3211
3347
|
children: ($$anchor3, $$slotProps) => {
|
|
3212
|
-
var fragment_4 = $
|
|
3213
|
-
var node_9 = $
|
|
3214
|
-
$
|
|
3215
|
-
$
|
|
3348
|
+
var fragment_4 = $7.comment();
|
|
3349
|
+
var node_9 = $7.first_child(fragment_4);
|
|
3350
|
+
$7.snippet(node_9, () => $$props.control);
|
|
3351
|
+
$7.append($$anchor3, fragment_4);
|
|
3216
3352
|
},
|
|
3217
3353
|
$$slots: { default: true }
|
|
3218
3354
|
});
|
|
3219
3355
|
};
|
|
3220
|
-
$
|
|
3221
|
-
if ($
|
|
3356
|
+
$7.if(node_2, ($$render) => {
|
|
3357
|
+
if ($7.get(needsControlWrapper))
|
|
3222
3358
|
$$render(consequent_4);
|
|
3223
3359
|
else
|
|
3224
3360
|
$$render(alternate, -1);
|
|
3225
3361
|
});
|
|
3226
3362
|
}
|
|
3227
|
-
var node_10 = $
|
|
3363
|
+
var node_10 = $7.sibling(node_2, 2);
|
|
3228
3364
|
{
|
|
3229
3365
|
var consequent_5 = ($$anchor2) => {
|
|
3230
3366
|
var p = root_3();
|
|
3231
|
-
var text_1 = $
|
|
3232
|
-
$
|
|
3233
|
-
$
|
|
3234
|
-
$
|
|
3235
|
-
$
|
|
3236
|
-
$
|
|
3367
|
+
var text_1 = $7.child(p, true);
|
|
3368
|
+
$7.reset(p);
|
|
3369
|
+
$7.template_effect(($0) => {
|
|
3370
|
+
$7.set_attribute(p, "id", $7.get(descriptionId));
|
|
3371
|
+
$7.set_class(p, 1, $0);
|
|
3372
|
+
$7.set_text(text_1, $$props.description);
|
|
3237
3373
|
}, [
|
|
3238
|
-
() => $
|
|
3374
|
+
() => $7.clsx(classNames("cinder-form-field__description", $$props.descriptionClass))
|
|
3239
3375
|
]);
|
|
3240
|
-
$
|
|
3376
|
+
$7.append($$anchor2, p);
|
|
3241
3377
|
};
|
|
3242
|
-
$
|
|
3378
|
+
$7.if(node_10, ($$render) => {
|
|
3243
3379
|
if ($$props.description)
|
|
3244
3380
|
$$render(consequent_5);
|
|
3245
3381
|
});
|
|
3246
3382
|
}
|
|
3247
|
-
var node_11 = $
|
|
3383
|
+
var node_11 = $7.sibling(node_10, 2);
|
|
3248
3384
|
{
|
|
3249
3385
|
var consequent_6 = ($$anchor2) => {
|
|
3250
|
-
var fragment_5 = $
|
|
3251
|
-
var node_12 = $
|
|
3252
|
-
$
|
|
3253
|
-
$
|
|
3386
|
+
var fragment_5 = $7.comment();
|
|
3387
|
+
var node_12 = $7.first_child(fragment_5);
|
|
3388
|
+
$7.snippet(node_12, () => $$props.message);
|
|
3389
|
+
$7.append($$anchor2, fragment_5);
|
|
3254
3390
|
};
|
|
3255
|
-
$
|
|
3391
|
+
$7.if(node_11, ($$render) => {
|
|
3256
3392
|
if ($$props.message)
|
|
3257
3393
|
$$render(consequent_6);
|
|
3258
3394
|
});
|
|
3259
3395
|
}
|
|
3260
|
-
var node_13 = $
|
|
3396
|
+
var node_13 = $7.sibling(node_11, 2);
|
|
3261
3397
|
{
|
|
3262
3398
|
var consequent_7 = ($$anchor2) => {
|
|
3263
3399
|
var p_1 = root_4();
|
|
3264
|
-
var text_2 = $
|
|
3265
|
-
$
|
|
3266
|
-
$
|
|
3267
|
-
$
|
|
3268
|
-
$
|
|
3269
|
-
$
|
|
3270
|
-
$
|
|
3400
|
+
var text_2 = $7.child(p_1, true);
|
|
3401
|
+
$7.reset(p_1);
|
|
3402
|
+
$7.template_effect(($0) => {
|
|
3403
|
+
$7.set_attribute(p_1, "id", $7.get(errorId2));
|
|
3404
|
+
$7.set_class(p_1, 1, $0);
|
|
3405
|
+
$7.set_attribute(p_1, "data-cinder-error", $$props.error ? "" : undefined);
|
|
3406
|
+
$7.set_text(text_2, $$props.error ?? "");
|
|
3271
3407
|
}, [
|
|
3272
|
-
() => $
|
|
3408
|
+
() => $7.clsx(classNames("cinder-form-field__error", $$props.errorClass))
|
|
3273
3409
|
]);
|
|
3274
|
-
$
|
|
3410
|
+
$7.append($$anchor2, p_1);
|
|
3275
3411
|
};
|
|
3276
|
-
$
|
|
3412
|
+
$7.if(node_13, ($$render) => {
|
|
3277
3413
|
if ($$props.error || errorAlwaysMounted())
|
|
3278
3414
|
$$render(consequent_7);
|
|
3279
3415
|
});
|
|
3280
3416
|
}
|
|
3281
|
-
$
|
|
3282
|
-
$
|
|
3283
|
-
$
|
|
3417
|
+
$7.reset(div);
|
|
3418
|
+
$7.append($$anchor, div);
|
|
3419
|
+
$7.pop();
|
|
3284
3420
|
}
|
|
3285
3421
|
|
|
3286
3422
|
// src/components/calendar/calendar.svelte
|
|
3287
3423
|
import"svelte/internal/disclose-version";
|
|
3288
|
-
import * as $
|
|
3289
|
-
import { tick, untrack as
|
|
3424
|
+
import * as $8 from "svelte/internal/client";
|
|
3425
|
+
import { tick, untrack as untrack3 } from "svelte";
|
|
3290
3426
|
var rest_excludes3 = new Set([
|
|
3291
3427
|
"$$slots",
|
|
3292
3428
|
"$$events",
|
|
@@ -3301,16 +3437,16 @@ var rest_excludes3 = new Set([
|
|
|
3301
3437
|
"label",
|
|
3302
3438
|
"disabled",
|
|
3303
3439
|
"class",
|
|
3304
|
-
"
|
|
3440
|
+
"onValueChange",
|
|
3305
3441
|
"disabledDate"
|
|
3306
3442
|
]);
|
|
3307
|
-
var
|
|
3308
|
-
var root_12 = $
|
|
3309
|
-
var root_22 = $
|
|
3310
|
-
var root_32 = $
|
|
3443
|
+
var root4 = $8.from_html(`<span class="cinder-calendar__weekday"> </span>`);
|
|
3444
|
+
var root_12 = $8.from_html(`<div role="gridcell" class="cinder-calendar__gridcell"><button type="button" class="cinder-calendar__day"> </button></div>`);
|
|
3445
|
+
var root_22 = $8.from_html(`<div role="row" class="cinder-calendar__grid-row"></div>`);
|
|
3446
|
+
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>`);
|
|
3311
3447
|
function Calendar($$anchor, $$props) {
|
|
3312
|
-
const generatedId = $
|
|
3313
|
-
$
|
|
3448
|
+
const generatedId = $8.props_id();
|
|
3449
|
+
$8.push($$props, true);
|
|
3314
3450
|
const WEEKDAY_INDEXES = [0, 1, 2, 3, 4, 5, 6];
|
|
3315
3451
|
const MINIMUM_CALENDAR_YEAR = 0;
|
|
3316
3452
|
const MAXIMUM_CALENDAR_YEAR = 9999;
|
|
@@ -3320,10 +3456,10 @@ function Calendar($$anchor, $$props) {
|
|
|
3320
3456
|
date.setUTCFullYear(year, monthValue, day);
|
|
3321
3457
|
return date;
|
|
3322
3458
|
}
|
|
3323
|
-
let value = $
|
|
3324
|
-
const rootId = $
|
|
3325
|
-
const titleId = $
|
|
3326
|
-
const monthGridId = $
|
|
3459
|
+
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);
|
|
3460
|
+
const rootId = $8.derived(() => $$props.id ?? generatedId);
|
|
3461
|
+
const titleId = $8.derived(() => `${$8.get(rootId)}-title`);
|
|
3462
|
+
const monthGridId = $8.derived(() => `${$8.get(rootId)}-grid`);
|
|
3327
3463
|
function parseISODate(iso) {
|
|
3328
3464
|
if (!iso)
|
|
3329
3465
|
return null;
|
|
@@ -3399,11 +3535,11 @@ function Calendar($$anchor, $$props) {
|
|
|
3399
3535
|
return fallbackIso;
|
|
3400
3536
|
}
|
|
3401
3537
|
const initialTodayIso = localTodayIso();
|
|
3402
|
-
const initialAnchorIso =
|
|
3403
|
-
const initialFocusedIso =
|
|
3404
|
-
let todayIso = $
|
|
3405
|
-
$
|
|
3406
|
-
const refresh = () => $
|
|
3538
|
+
const initialAnchorIso = untrack3(() => resolveAnchorIso(value(), $$props.month, initialTodayIso));
|
|
3539
|
+
const initialFocusedIso = untrack3(() => initialAnchorIso);
|
|
3540
|
+
let todayIso = $8.state($8.proxy(localTodayIso()));
|
|
3541
|
+
$8.user_effect(() => {
|
|
3542
|
+
const refresh = () => $8.set(todayIso, localTodayIso(), true);
|
|
3407
3543
|
const timer = setInterval(refresh, 60000);
|
|
3408
3544
|
document.addEventListener("visibilitychange", refresh);
|
|
3409
3545
|
return () => {
|
|
@@ -3411,35 +3547,35 @@ function Calendar($$anchor, $$props) {
|
|
|
3411
3547
|
document.removeEventListener("visibilitychange", refresh);
|
|
3412
3548
|
};
|
|
3413
3549
|
});
|
|
3414
|
-
const anchorIso = $
|
|
3415
|
-
const anchorDate = $
|
|
3416
|
-
let visibleMonthDate = $
|
|
3417
|
-
let focusedIso = $
|
|
3418
|
-
let lastSyncedAnchorIso = $
|
|
3419
|
-
const focusedDayId = $
|
|
3420
|
-
$
|
|
3421
|
-
if ($
|
|
3550
|
+
const anchorIso = $8.derived(() => resolveAnchorIso(value(), $$props.month, untrack3(() => $8.get(todayIso))));
|
|
3551
|
+
const anchorDate = $8.derived(() => parseISODate($8.get(anchorIso)) ?? parseISODate($8.get(todayIso)));
|
|
3552
|
+
let visibleMonthDate = $8.state($8.proxy(startOfMonth(parseISODate(initialAnchorIso) ?? parseISODate(initialTodayIso))));
|
|
3553
|
+
let focusedIso = $8.state($8.proxy(initialFocusedIso));
|
|
3554
|
+
let lastSyncedAnchorIso = $8.state($8.proxy(initialAnchorIso));
|
|
3555
|
+
const focusedDayId = $8.derived(() => `${$8.get(monthGridId)}-day-${$8.get(focusedIso)}`);
|
|
3556
|
+
$8.user_effect(() => {
|
|
3557
|
+
if ($8.get(anchorIso) === $8.get(lastSyncedAnchorIso))
|
|
3422
3558
|
return;
|
|
3423
|
-
$
|
|
3424
|
-
$
|
|
3425
|
-
$
|
|
3559
|
+
$8.set(visibleMonthDate, startOfMonth($8.get(anchorDate)), true);
|
|
3560
|
+
$8.set(focusedIso, $8.get(anchorIso), true);
|
|
3561
|
+
$8.set(lastSyncedAnchorIso, $8.get(anchorIso), true);
|
|
3426
3562
|
});
|
|
3427
|
-
const monthLabel = $
|
|
3563
|
+
const monthLabel = $8.derived(() => new Intl.DateTimeFormat(locale(), {
|
|
3428
3564
|
month: "long",
|
|
3429
3565
|
year: "numeric",
|
|
3430
|
-
era: $
|
|
3566
|
+
era: $8.get(visibleMonthDate).getUTCFullYear() <= 0 ? "short" : undefined,
|
|
3431
3567
|
timeZone: "UTC"
|
|
3432
|
-
}).format($
|
|
3433
|
-
const weekdayLabels = $
|
|
3434
|
-
const dayIndex = (
|
|
3568
|
+
}).format($8.get(visibleMonthDate)));
|
|
3569
|
+
const weekdayLabels = $8.derived(() => WEEKDAY_INDEXES.map((index2) => {
|
|
3570
|
+
const dayIndex = (index2 + firstDayOfWeek()) % 7;
|
|
3435
3571
|
const base = createCalendarDate(2024, 0, 7 + dayIndex);
|
|
3436
3572
|
return new Intl.DateTimeFormat(locale(), { weekday: "short", timeZone: "UTC" }).format(base);
|
|
3437
3573
|
}));
|
|
3438
|
-
const cells = $
|
|
3439
|
-
const first = startOfMonth($
|
|
3574
|
+
const cells = $8.derived(() => {
|
|
3575
|
+
const first = startOfMonth($8.get(visibleMonthDate));
|
|
3440
3576
|
const gridStart = startOfWeek(first, firstDayOfWeek());
|
|
3441
3577
|
const selectedIso = value();
|
|
3442
|
-
const focused = $
|
|
3578
|
+
const focused = $8.get(focusedIso);
|
|
3443
3579
|
const dayLabelFmt = new Intl.DateTimeFormat(locale(), {
|
|
3444
3580
|
weekday: "long",
|
|
3445
3581
|
year: "numeric",
|
|
@@ -3456,14 +3592,14 @@ function Calendar($$anchor, $$props) {
|
|
|
3456
3592
|
timeZone: "UTC"
|
|
3457
3593
|
});
|
|
3458
3594
|
const next = [];
|
|
3459
|
-
for (let
|
|
3460
|
-
const date = addDays(gridStart,
|
|
3595
|
+
for (let index2 = 0;index2 < 42; index2 += 1) {
|
|
3596
|
+
const date = addDays(gridStart, index2);
|
|
3461
3597
|
const supported = isSupportedCalendarDate(date);
|
|
3462
3598
|
const iso = supported ? toISODate(date) : "";
|
|
3463
3599
|
next.push({
|
|
3464
3600
|
iso,
|
|
3465
3601
|
day: date.getUTCDate(),
|
|
3466
|
-
inMonth: date.getUTCMonth() === $
|
|
3602
|
+
inMonth: date.getUTCMonth() === $8.get(visibleMonthDate).getUTCMonth(),
|
|
3467
3603
|
disabled: disabled() || !supported || isDateDisabled(iso),
|
|
3468
3604
|
focused: iso === focused,
|
|
3469
3605
|
selected: iso === selectedIso,
|
|
@@ -3472,10 +3608,10 @@ function Calendar($$anchor, $$props) {
|
|
|
3472
3608
|
}
|
|
3473
3609
|
return next;
|
|
3474
3610
|
});
|
|
3475
|
-
const rows = $
|
|
3611
|
+
const rows = $8.derived(() => {
|
|
3476
3612
|
const next = [];
|
|
3477
|
-
for (let
|
|
3478
|
-
next.push($
|
|
3613
|
+
for (let index2 = 0;index2 < $8.get(cells).length; index2 += 7) {
|
|
3614
|
+
next.push($8.get(cells).slice(index2, index2 + 7));
|
|
3479
3615
|
}
|
|
3480
3616
|
return next;
|
|
3481
3617
|
});
|
|
@@ -3490,23 +3626,23 @@ function Calendar($$anchor, $$props) {
|
|
|
3490
3626
|
const clamped = parseISODate(iso);
|
|
3491
3627
|
if (!clamped)
|
|
3492
3628
|
return;
|
|
3493
|
-
$
|
|
3494
|
-
$
|
|
3629
|
+
$8.set(focusedIso, iso, true);
|
|
3630
|
+
$8.set(visibleMonthDate, startOfMonth(clamped), true);
|
|
3495
3631
|
if (!moveDomFocus)
|
|
3496
3632
|
return;
|
|
3497
3633
|
await tick();
|
|
3498
|
-
const target = document.getElementById($
|
|
3634
|
+
const target = document.getElementById($8.get(focusedDayId));
|
|
3499
3635
|
target?.focus();
|
|
3500
3636
|
}
|
|
3501
3637
|
function commitDate(iso) {
|
|
3502
3638
|
if (disabled() || !parseISODate(iso) || isDateDisabled(iso))
|
|
3503
3639
|
return;
|
|
3504
3640
|
value(iso);
|
|
3505
|
-
$
|
|
3506
|
-
$$props.
|
|
3641
|
+
$8.set(focusedIso, iso, true);
|
|
3642
|
+
$$props.onValueChange?.(iso);
|
|
3507
3643
|
}
|
|
3508
3644
|
async function moveFocusedByDays(delta) {
|
|
3509
|
-
const base = parseISODate($
|
|
3645
|
+
const base = parseISODate($8.get(focusedIso)) ?? $8.get(visibleMonthDate);
|
|
3510
3646
|
const next = addDays(base, delta);
|
|
3511
3647
|
await focusDate(toISODate(next), true);
|
|
3512
3648
|
}
|
|
@@ -3515,7 +3651,7 @@ function Calendar($$anchor, $$props) {
|
|
|
3515
3651
|
return createCalendarDate(year, monthValue, Math.min(day, lastDay));
|
|
3516
3652
|
}
|
|
3517
3653
|
async function moveFocusedByMonths(delta, moveDomFocus = true) {
|
|
3518
|
-
const base = parseISODate($
|
|
3654
|
+
const base = parseISODate($8.get(focusedIso)) ?? $8.get(visibleMonthDate);
|
|
3519
3655
|
const monthStart = addMonths(startOfMonth(base), delta);
|
|
3520
3656
|
const candidate = clampDayToMonth(monthStart.getUTCFullYear(), monthStart.getUTCMonth(), base.getUTCDate());
|
|
3521
3657
|
await focusDate(toISODate(candidate), moveDomFocus);
|
|
@@ -3542,14 +3678,14 @@ function Calendar($$anchor, $$props) {
|
|
|
3542
3678
|
break;
|
|
3543
3679
|
case "Home": {
|
|
3544
3680
|
event2.preventDefault();
|
|
3545
|
-
const focused = parseISODate($
|
|
3681
|
+
const focused = parseISODate($8.get(focusedIso)) ?? $8.get(visibleMonthDate);
|
|
3546
3682
|
const weekStart = startOfWeek(focused, firstDayOfWeek());
|
|
3547
3683
|
await focusDate(toISODate(weekStart), true);
|
|
3548
3684
|
break;
|
|
3549
3685
|
}
|
|
3550
3686
|
case "End": {
|
|
3551
3687
|
event2.preventDefault();
|
|
3552
|
-
const focused = parseISODate($
|
|
3688
|
+
const focused = parseISODate($8.get(focusedIso)) ?? $8.get(visibleMonthDate);
|
|
3553
3689
|
const weekEnd = addDays(startOfWeek(focused, firstDayOfWeek()), 6);
|
|
3554
3690
|
await focusDate(toISODate(weekEnd), true);
|
|
3555
3691
|
break;
|
|
@@ -3565,14 +3701,14 @@ function Calendar($$anchor, $$props) {
|
|
|
3565
3701
|
case "Enter":
|
|
3566
3702
|
case " ":
|
|
3567
3703
|
event2.preventDefault();
|
|
3568
|
-
commitDate($
|
|
3704
|
+
commitDate($8.get(focusedIso));
|
|
3569
3705
|
break;
|
|
3570
3706
|
default:
|
|
3571
3707
|
break;
|
|
3572
3708
|
}
|
|
3573
3709
|
}
|
|
3574
3710
|
function canGoPrevMonth() {
|
|
3575
|
-
const prev = addMonths($
|
|
3711
|
+
const prev = addMonths($8.get(visibleMonthDate), -1);
|
|
3576
3712
|
if (!isSupportedCalendarDate(prev))
|
|
3577
3713
|
return false;
|
|
3578
3714
|
if (!$$props.min)
|
|
@@ -3581,7 +3717,7 @@ function Calendar($$anchor, $$props) {
|
|
|
3581
3717
|
return toISODate(monthEnd) >= $$props.min;
|
|
3582
3718
|
}
|
|
3583
3719
|
function canGoNextMonth() {
|
|
3584
|
-
const next = addMonths($
|
|
3720
|
+
const next = addMonths($8.get(visibleMonthDate), 1);
|
|
3585
3721
|
if (!isSupportedCalendarDate(next))
|
|
3586
3722
|
return false;
|
|
3587
3723
|
if (!$$props.max)
|
|
@@ -3590,101 +3726,92 @@ function Calendar($$anchor, $$props) {
|
|
|
3590
3726
|
return toISODate(monthStart) <= $$props.max;
|
|
3591
3727
|
}
|
|
3592
3728
|
var div = root_32();
|
|
3593
|
-
$
|
|
3594
|
-
var div_1 = $
|
|
3595
|
-
var button = $
|
|
3596
|
-
var p = $
|
|
3597
|
-
var text = $
|
|
3598
|
-
$
|
|
3599
|
-
var button_1 = $
|
|
3600
|
-
$
|
|
3601
|
-
var div_2 = $
|
|
3602
|
-
$
|
|
3603
|
-
var span =
|
|
3604
|
-
var text_1 = $
|
|
3605
|
-
$
|
|
3606
|
-
$
|
|
3607
|
-
$
|
|
3729
|
+
$8.attribute_effect(div, ($0) => ({ ...rest, "aria-label": label(), class: $0 }), [() => classNames("cinder-calendar", $$props.class)]);
|
|
3730
|
+
var div_1 = $8.child(div);
|
|
3731
|
+
var button = $8.child(div_1);
|
|
3732
|
+
var p = $8.sibling(button, 2);
|
|
3733
|
+
var text = $8.child(p, true);
|
|
3734
|
+
$8.reset(p);
|
|
3735
|
+
var button_1 = $8.sibling(p, 2);
|
|
3736
|
+
$8.reset(div_1);
|
|
3737
|
+
var div_2 = $8.sibling(div_1, 2);
|
|
3738
|
+
$8.each(div_2, 20, () => $8.get(weekdayLabels), (weekday) => weekday, ($$anchor2, weekday) => {
|
|
3739
|
+
var span = root4();
|
|
3740
|
+
var text_1 = $8.child(span, true);
|
|
3741
|
+
$8.reset(span);
|
|
3742
|
+
$8.template_effect(() => $8.set_text(text_1, weekday));
|
|
3743
|
+
$8.append($$anchor2, span);
|
|
3608
3744
|
});
|
|
3609
|
-
$
|
|
3610
|
-
var div_3 = $
|
|
3611
|
-
$
|
|
3745
|
+
$8.reset(div_2);
|
|
3746
|
+
var div_3 = $8.sibling(div_2, 2);
|
|
3747
|
+
$8.each(div_3, 23, () => $8.get(rows), (row, rowIndex) => row[0]?.iso || rowIndex, ($$anchor2, row) => {
|
|
3612
3748
|
var div_4 = root_22();
|
|
3613
|
-
$
|
|
3749
|
+
$8.each(div_4, 23, () => $8.get(row), (cell, cellIndex) => cell.iso || cellIndex, ($$anchor3, cell) => {
|
|
3614
3750
|
var div_5 = root_12();
|
|
3615
|
-
var button_2 = $
|
|
3616
|
-
var text_2 = $
|
|
3617
|
-
$
|
|
3618
|
-
$
|
|
3619
|
-
$
|
|
3620
|
-
$
|
|
3621
|
-
$
|
|
3622
|
-
$
|
|
3623
|
-
$
|
|
3624
|
-
$
|
|
3625
|
-
$
|
|
3626
|
-
$
|
|
3627
|
-
$
|
|
3628
|
-
$
|
|
3629
|
-
$
|
|
3751
|
+
var button_2 = $8.child(div_5);
|
|
3752
|
+
var text_2 = $8.child(button_2, true);
|
|
3753
|
+
$8.reset(button_2);
|
|
3754
|
+
$8.reset(div_5);
|
|
3755
|
+
$8.template_effect(() => {
|
|
3756
|
+
$8.set_attribute(div_5, "aria-selected", $8.get(cell).selected || undefined);
|
|
3757
|
+
$8.set_attribute(button_2, "id", $8.get(cell).iso ? `${$8.get(monthGridId)}-day-${$8.get(cell).iso}` : undefined);
|
|
3758
|
+
$8.set_attribute(button_2, "data-outside", $8.get(cell).inMonth ? undefined : "");
|
|
3759
|
+
$8.set_attribute(button_2, "data-selected", $8.get(cell).selected ? "" : undefined);
|
|
3760
|
+
$8.set_attribute(button_2, "data-focused", $8.get(cell).focused ? "" : undefined);
|
|
3761
|
+
$8.set_attribute(button_2, "aria-current", $8.get(cell).iso === $8.get(todayIso) ? "date" : undefined);
|
|
3762
|
+
$8.set_attribute(button_2, "aria-label", $8.get(cell).ariaLabel);
|
|
3763
|
+
$8.set_attribute(button_2, "aria-disabled", $8.get(cell).disabled ? "true" : undefined);
|
|
3764
|
+
$8.set_attribute(button_2, "tabindex", $8.get(cell).focused ? 0 : -1);
|
|
3765
|
+
$8.set_text(text_2, $8.get(cell).day);
|
|
3630
3766
|
});
|
|
3631
|
-
$
|
|
3632
|
-
commitDate($
|
|
3767
|
+
$8.delegated("click", button_2, () => {
|
|
3768
|
+
commitDate($8.get(cell).iso);
|
|
3633
3769
|
});
|
|
3634
|
-
$
|
|
3635
|
-
if ($
|
|
3636
|
-
$
|
|
3770
|
+
$8.event("focus", button_2, () => {
|
|
3771
|
+
if ($8.get(cell).iso)
|
|
3772
|
+
$8.set(focusedIso, $8.get(cell).iso, true);
|
|
3637
3773
|
});
|
|
3638
|
-
$
|
|
3774
|
+
$8.append($$anchor3, div_5);
|
|
3639
3775
|
});
|
|
3640
|
-
$
|
|
3641
|
-
$
|
|
3776
|
+
$8.reset(div_4);
|
|
3777
|
+
$8.append($$anchor2, div_4);
|
|
3642
3778
|
});
|
|
3643
|
-
$
|
|
3644
|
-
$
|
|
3645
|
-
$
|
|
3779
|
+
$8.reset(div_3);
|
|
3780
|
+
$8.reset(div);
|
|
3781
|
+
$8.template_effect(($0, $1) => {
|
|
3646
3782
|
button.disabled = $0;
|
|
3647
|
-
$
|
|
3648
|
-
$
|
|
3783
|
+
$8.set_attribute(p, "id", $8.get(titleId));
|
|
3784
|
+
$8.set_text(text, $8.get(monthLabel));
|
|
3649
3785
|
button_1.disabled = $1;
|
|
3650
|
-
$
|
|
3651
|
-
$
|
|
3786
|
+
$8.set_attribute(div_3, "id", $8.get(monthGridId));
|
|
3787
|
+
$8.set_attribute(div_3, "aria-labelledby", $8.get(titleId));
|
|
3652
3788
|
}, [
|
|
3653
3789
|
() => disabled() || !canGoPrevMonth(),
|
|
3654
3790
|
() => disabled() || !canGoNextMonth()
|
|
3655
3791
|
]);
|
|
3656
|
-
$
|
|
3792
|
+
$8.delegated("click", button, () => {
|
|
3657
3793
|
moveFocusedByMonths(-1, false);
|
|
3658
3794
|
});
|
|
3659
|
-
$
|
|
3795
|
+
$8.delegated("click", button_1, () => {
|
|
3660
3796
|
moveFocusedByMonths(1, false);
|
|
3661
3797
|
});
|
|
3662
|
-
$
|
|
3663
|
-
$
|
|
3664
|
-
$
|
|
3798
|
+
$8.delegated("keydown", div_3, handleKeydown);
|
|
3799
|
+
$8.append($$anchor, div);
|
|
3800
|
+
$8.pop();
|
|
3665
3801
|
}
|
|
3666
|
-
$
|
|
3802
|
+
$8.delegate(["click", "keydown"]);
|
|
3667
3803
|
|
|
3668
3804
|
// src/components/popover/popover.svelte
|
|
3669
3805
|
import"svelte/internal/disclose-version";
|
|
3670
|
-
import * as $
|
|
3671
|
-
import { onDestroy, untrack as
|
|
3806
|
+
import * as $10 from "svelte/internal/client";
|
|
3807
|
+
import { onDestroy, untrack as untrack4 } from "svelte";
|
|
3672
3808
|
|
|
3673
3809
|
// src/_internal/anchored-overlay.svelte.ts
|
|
3674
|
-
import * as $
|
|
3810
|
+
import * as $9 from "svelte/internal/client";
|
|
3675
3811
|
var DEFAULT_PLACEMENT = "bottom-start";
|
|
3676
3812
|
var DEFAULT_OFFSET = 8;
|
|
3677
3813
|
var DEFAULT_SHIFT_PADDING = 8;
|
|
3678
3814
|
var DEFAULT_ARROW_PADDING = 6;
|
|
3679
|
-
function getPlacementSide(placement) {
|
|
3680
|
-
if (placement.startsWith("top"))
|
|
3681
|
-
return "top";
|
|
3682
|
-
if (placement.startsWith("right"))
|
|
3683
|
-
return "right";
|
|
3684
|
-
if (placement.startsWith("left"))
|
|
3685
|
-
return "left";
|
|
3686
|
-
return "bottom";
|
|
3687
|
-
}
|
|
3688
3815
|
function getAnchoredOverlayWidthStyle(widthMode, anchorRect) {
|
|
3689
3816
|
if (widthMode === "none")
|
|
3690
3817
|
return "";
|
|
@@ -3715,15 +3842,12 @@ function applyAnchoredOverlayMaxBlockSize(panel, availableHeight, maximumBlockSi
|
|
|
3715
3842
|
function isAnchoredOverlayWriteCurrent(positioningGeneration, latestGeneration, cancelled) {
|
|
3716
3843
|
return !cancelled && positioningGeneration === latestGeneration;
|
|
3717
3844
|
}
|
|
3718
|
-
function getArrowStyle(
|
|
3845
|
+
function getArrowStyle(data) {
|
|
3719
3846
|
if (!data)
|
|
3720
3847
|
return "";
|
|
3721
|
-
const side = getPlacementSide(placement);
|
|
3722
|
-
const staticSide = { top: "bottom", right: "left", bottom: "top", left: "right" }[side];
|
|
3723
3848
|
return [
|
|
3724
3849
|
data.x != null ? `left: ${data.x}px;` : "",
|
|
3725
|
-
data.y != null ? `top: ${data.y}px;` : ""
|
|
3726
|
-
staticSide ? `${staticSide}: -4px;` : ""
|
|
3850
|
+
data.y != null ? `top: ${data.y}px;` : ""
|
|
3727
3851
|
].filter(Boolean).join(" ");
|
|
3728
3852
|
}
|
|
3729
3853
|
function reportAnchoredOverlaySetupError(error) {
|
|
@@ -3735,28 +3859,43 @@ function reportAnchoredOverlaySetupError(error) {
|
|
|
3735
3859
|
throw error;
|
|
3736
3860
|
}, 0);
|
|
3737
3861
|
}
|
|
3862
|
+
var floatingUiModulePromise;
|
|
3863
|
+
function cacheFloatingUiModule(load) {
|
|
3864
|
+
floatingUiModulePromise ??= load().catch((error) => {
|
|
3865
|
+
floatingUiModulePromise = undefined;
|
|
3866
|
+
throw error;
|
|
3867
|
+
});
|
|
3868
|
+
return floatingUiModulePromise;
|
|
3869
|
+
}
|
|
3738
3870
|
function createAnchoredOverlay(options) {
|
|
3739
|
-
let positionReady = $
|
|
3740
|
-
let positionStyle = $
|
|
3741
|
-
let availableHeightStyle = $
|
|
3742
|
-
let resolvedPlacement = $
|
|
3743
|
-
let arrowStyle = $
|
|
3744
|
-
$
|
|
3871
|
+
let positionReady = $9.state(false);
|
|
3872
|
+
let positionStyle = $9.state("");
|
|
3873
|
+
let availableHeightStyle = $9.state("");
|
|
3874
|
+
let resolvedPlacement = $9.state($9.proxy(options.placement?.() ?? DEFAULT_PLACEMENT));
|
|
3875
|
+
let arrowStyle = $9.state("");
|
|
3876
|
+
$9.user_effect(() => {
|
|
3877
|
+
const anchor = options.anchor();
|
|
3878
|
+
const panel = options.panel();
|
|
3879
|
+
if (!anchor || !panel)
|
|
3880
|
+
return;
|
|
3881
|
+
cacheFloatingUiModule(() => Promise.resolve().then(() => (init_floating_ui_dom(), exports_floating_ui_dom))).catch(() => {});
|
|
3882
|
+
});
|
|
3883
|
+
$9.user_effect(() => {
|
|
3745
3884
|
if (!options.open()) {
|
|
3746
|
-
$
|
|
3747
|
-
$
|
|
3748
|
-
$
|
|
3749
|
-
$
|
|
3750
|
-
$
|
|
3885
|
+
$9.set(positionReady, false);
|
|
3886
|
+
$9.set(positionStyle, "");
|
|
3887
|
+
$9.set(availableHeightStyle, "");
|
|
3888
|
+
$9.set(arrowStyle, "");
|
|
3889
|
+
$9.set(resolvedPlacement, options.placement?.() ?? DEFAULT_PLACEMENT, true);
|
|
3751
3890
|
return;
|
|
3752
3891
|
}
|
|
3753
3892
|
const anchor = options.anchor();
|
|
3754
3893
|
const panel = options.panel();
|
|
3755
3894
|
if (!anchor || !panel) {
|
|
3756
|
-
$
|
|
3757
|
-
$
|
|
3758
|
-
$
|
|
3759
|
-
$
|
|
3895
|
+
$9.set(positionReady, false);
|
|
3896
|
+
$9.set(positionStyle, "");
|
|
3897
|
+
$9.set(availableHeightStyle, "");
|
|
3898
|
+
$9.set(arrowStyle, "");
|
|
3760
3899
|
return;
|
|
3761
3900
|
}
|
|
3762
3901
|
const placement = options.placement?.() ?? DEFAULT_PLACEMENT;
|
|
@@ -3784,7 +3923,7 @@ function createAnchoredOverlay(options) {
|
|
|
3784
3923
|
offset: offsetMiddleware,
|
|
3785
3924
|
size: sizeMiddleware,
|
|
3786
3925
|
shift: shift3
|
|
3787
|
-
} = await Promise.resolve().then(() => (init_floating_ui_dom(), exports_floating_ui_dom));
|
|
3926
|
+
} = await cacheFloatingUiModule(() => Promise.resolve().then(() => (init_floating_ui_dom(), exports_floating_ui_dom)));
|
|
3788
3927
|
if (cancelled)
|
|
3789
3928
|
return;
|
|
3790
3929
|
const updatePosition = async () => {
|
|
@@ -3792,7 +3931,7 @@ function createAnchoredOverlay(options) {
|
|
|
3792
3931
|
return;
|
|
3793
3932
|
const currentGeneration = ++generation;
|
|
3794
3933
|
if (!sizeEnabled) {
|
|
3795
|
-
$
|
|
3934
|
+
$9.set(availableHeightStyle, "");
|
|
3796
3935
|
panel.style.removeProperty("max-block-size");
|
|
3797
3936
|
}
|
|
3798
3937
|
const middleware = [
|
|
@@ -3806,7 +3945,7 @@ function createAnchoredOverlay(options) {
|
|
|
3806
3945
|
apply({ availableHeight }) {
|
|
3807
3946
|
if (!isAnchoredOverlayWriteCurrent(currentGeneration, generation, cancelled))
|
|
3808
3947
|
return;
|
|
3809
|
-
$
|
|
3948
|
+
$9.set(availableHeightStyle, applyAnchoredOverlayMaxBlockSize(panel, availableHeight, sizeMaxBlockSize), true);
|
|
3810
3949
|
}
|
|
3811
3950
|
}));
|
|
3812
3951
|
}
|
|
@@ -3825,25 +3964,25 @@ function createAnchoredOverlay(options) {
|
|
|
3825
3964
|
} catch {
|
|
3826
3965
|
if (cancelled || currentGeneration !== generation)
|
|
3827
3966
|
return;
|
|
3828
|
-
$
|
|
3829
|
-
$
|
|
3830
|
-
$
|
|
3831
|
-
$
|
|
3967
|
+
$9.set(positionReady, false);
|
|
3968
|
+
$9.set(positionStyle, "");
|
|
3969
|
+
$9.set(arrowStyle, "");
|
|
3970
|
+
$9.set(resolvedPlacement, placement, true);
|
|
3832
3971
|
return;
|
|
3833
3972
|
}
|
|
3834
3973
|
if (cancelled || currentGeneration !== generation)
|
|
3835
3974
|
return;
|
|
3836
3975
|
const widthStyle = getAnchoredOverlayWidthStyle(widthMode, anchor.getBoundingClientRect());
|
|
3837
|
-
$
|
|
3976
|
+
$9.set(positionStyle, [
|
|
3838
3977
|
`position: ${strategy};`,
|
|
3839
3978
|
`left: ${result.x}px;`,
|
|
3840
3979
|
`top: ${result.y}px;`,
|
|
3841
|
-
$
|
|
3980
|
+
$9.get(availableHeightStyle) ? `max-block-size: ${$9.get(availableHeightStyle)};` : "",
|
|
3842
3981
|
widthStyle
|
|
3843
3982
|
].filter(Boolean).join(" "), true);
|
|
3844
|
-
$
|
|
3845
|
-
$
|
|
3846
|
-
$
|
|
3983
|
+
$9.set(resolvedPlacement, result.placement, true);
|
|
3984
|
+
$9.set(arrowStyle, arrowVisible ? getArrowStyle(result.middlewareData.arrow) : "", true);
|
|
3985
|
+
$9.set(positionReady, true);
|
|
3847
3986
|
};
|
|
3848
3987
|
stopAutoUpdate = autoUpdate2(anchor, panel, updatePosition);
|
|
3849
3988
|
if (boundary && boundary !== anchor && boundary !== panel && typeof ResizeObserver !== "undefined") {
|
|
@@ -3855,11 +3994,11 @@ function createAnchoredOverlay(options) {
|
|
|
3855
3994
|
})().catch((error) => {
|
|
3856
3995
|
if (cancelled)
|
|
3857
3996
|
return;
|
|
3858
|
-
$
|
|
3859
|
-
$
|
|
3860
|
-
$
|
|
3861
|
-
$
|
|
3862
|
-
$
|
|
3997
|
+
$9.set(positionReady, false);
|
|
3998
|
+
$9.set(positionStyle, "");
|
|
3999
|
+
$9.set(availableHeightStyle, "");
|
|
4000
|
+
$9.set(arrowStyle, "");
|
|
4001
|
+
$9.set(resolvedPlacement, placement, true);
|
|
3863
4002
|
reportAnchoredOverlaySetupError(error);
|
|
3864
4003
|
});
|
|
3865
4004
|
return () => {
|
|
@@ -3867,25 +4006,25 @@ function createAnchoredOverlay(options) {
|
|
|
3867
4006
|
stopAutoUpdate?.();
|
|
3868
4007
|
boundaryResizeObserver?.disconnect();
|
|
3869
4008
|
panel.style.removeProperty("max-block-size");
|
|
3870
|
-
$
|
|
3871
|
-
$
|
|
3872
|
-
$
|
|
3873
|
-
$
|
|
3874
|
-
$
|
|
4009
|
+
$9.set(positionReady, false);
|
|
4010
|
+
$9.set(positionStyle, "");
|
|
4011
|
+
$9.set(availableHeightStyle, "");
|
|
4012
|
+
$9.set(arrowStyle, "");
|
|
4013
|
+
$9.set(resolvedPlacement, placement, true);
|
|
3875
4014
|
};
|
|
3876
4015
|
});
|
|
3877
4016
|
return {
|
|
3878
4017
|
get positionReady() {
|
|
3879
|
-
return $
|
|
4018
|
+
return $9.get(positionReady);
|
|
3880
4019
|
},
|
|
3881
4020
|
get positionStyle() {
|
|
3882
|
-
return $
|
|
4021
|
+
return $9.get(positionStyle);
|
|
3883
4022
|
},
|
|
3884
4023
|
get resolvedPlacement() {
|
|
3885
|
-
return $
|
|
4024
|
+
return $9.get(resolvedPlacement);
|
|
3886
4025
|
},
|
|
3887
4026
|
get arrowStyle() {
|
|
3888
|
-
return $
|
|
4027
|
+
return $9.get(arrowStyle);
|
|
3889
4028
|
}
|
|
3890
4029
|
};
|
|
3891
4030
|
}
|
|
@@ -3902,9 +4041,9 @@ function pushEscapeHandler(handler) {
|
|
|
3902
4041
|
if (released)
|
|
3903
4042
|
return;
|
|
3904
4043
|
released = true;
|
|
3905
|
-
const
|
|
3906
|
-
if (
|
|
3907
|
-
escapeStack.splice(
|
|
4044
|
+
const index2 = escapeStack.lastIndexOf(handler);
|
|
4045
|
+
if (index2 !== -1)
|
|
4046
|
+
escapeStack.splice(index2, 1);
|
|
3908
4047
|
if (escapeStack.length === 0 && typeof window !== "undefined") {
|
|
3909
4048
|
window.removeEventListener("keydown", onEscapeKeydown, { capture: true });
|
|
3910
4049
|
}
|
|
@@ -3984,16 +4123,16 @@ var sequentialFocusCandidateSelector = [
|
|
|
3984
4123
|
"[contenteditable]",
|
|
3985
4124
|
"[tabindex]"
|
|
3986
4125
|
].join(", ");
|
|
3987
|
-
function getSequentialFocusTargets(
|
|
3988
|
-
if (!
|
|
4126
|
+
function getSequentialFocusTargets(root5, range) {
|
|
4127
|
+
if (!root5)
|
|
3989
4128
|
return [];
|
|
3990
|
-
const composedElements = collectComposedElements(
|
|
4129
|
+
const composedElements = collectComposedElements(root5);
|
|
3991
4130
|
const relativeIndex = range ? composedElements.indexOf(range.relativeTo) : -1;
|
|
3992
4131
|
if (range && relativeIndex === -1)
|
|
3993
4132
|
return [];
|
|
3994
4133
|
const tierReference = range?.tierReference ?? range?.relativeTo;
|
|
3995
|
-
const positionOf = range ? new Map(composedElements.map((
|
|
3996
|
-
const candidates = composedElements.filter(isSequentialFocusTarget).filter((
|
|
4134
|
+
const positionOf = range ? new Map(composedElements.map((element2, index2) => [element2, index2])) : null;
|
|
4135
|
+
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);
|
|
3997
4136
|
const radios = [];
|
|
3998
4137
|
for (const candidate of candidates) {
|
|
3999
4138
|
if (!isRadio(candidate))
|
|
@@ -4036,33 +4175,33 @@ function getSequentialFocusTargets(root4, range) {
|
|
|
4036
4175
|
return leftTabIndex - rightTabIndex;
|
|
4037
4176
|
});
|
|
4038
4177
|
}
|
|
4039
|
-
function collectComposedElements(
|
|
4178
|
+
function collectComposedElements(root5) {
|
|
4040
4179
|
const elements = [];
|
|
4041
4180
|
const visited = new Set;
|
|
4042
|
-
const visit = (
|
|
4043
|
-
if (visited.has(
|
|
4181
|
+
const visit = (element2, fromSlot = false) => {
|
|
4182
|
+
if (visited.has(element2))
|
|
4044
4183
|
return;
|
|
4045
|
-
if (!fromSlot &&
|
|
4184
|
+
if (!fromSlot && element2.assignedSlot)
|
|
4046
4185
|
return;
|
|
4047
|
-
visited.add(
|
|
4048
|
-
elements.push(
|
|
4049
|
-
if (isSlotElement(
|
|
4050
|
-
if (
|
|
4051
|
-
for (const
|
|
4052
|
-
visit(
|
|
4186
|
+
visited.add(element2);
|
|
4187
|
+
elements.push(element2);
|
|
4188
|
+
if (isSlotElement(element2)) {
|
|
4189
|
+
if (element2.assignedNodes({ flatten: false }).length > 0) {
|
|
4190
|
+
for (const child5 of element2.assignedElements({ flatten: true }))
|
|
4191
|
+
visit(child5, true);
|
|
4053
4192
|
return;
|
|
4054
4193
|
}
|
|
4055
4194
|
}
|
|
4056
|
-
const childRoot =
|
|
4057
|
-
for (const
|
|
4058
|
-
visit(
|
|
4195
|
+
const childRoot = element2.shadowRoot ?? element2;
|
|
4196
|
+
for (const child5 of Array.from(childRoot.children))
|
|
4197
|
+
visit(child5);
|
|
4059
4198
|
};
|
|
4060
|
-
for (const
|
|
4061
|
-
visit(
|
|
4199
|
+
for (const child5 of Array.from(root5.children))
|
|
4200
|
+
visit(child5);
|
|
4062
4201
|
return elements;
|
|
4063
4202
|
}
|
|
4064
|
-
function isSlotElement(
|
|
4065
|
-
return
|
|
4203
|
+
function isSlotElement(element2) {
|
|
4204
|
+
return element2.localName === "slot" && typeof Reflect.get(element2, "assignedElements") === "function" && typeof Reflect.get(element2, "assignedNodes") === "function";
|
|
4066
4205
|
}
|
|
4067
4206
|
function isSequentialCandidate(candidate) {
|
|
4068
4207
|
const explicitTabIndexValue = getExplicitTabIndexValue(candidate);
|
|
@@ -4076,22 +4215,22 @@ function isSequentialCandidate(candidate) {
|
|
|
4076
4215
|
return false;
|
|
4077
4216
|
return true;
|
|
4078
4217
|
}
|
|
4079
|
-
function hasNativeSequentialDefault(
|
|
4080
|
-
return
|
|
4218
|
+
function hasNativeSequentialDefault(element2) {
|
|
4219
|
+
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);
|
|
4081
4220
|
}
|
|
4082
|
-
function isRadio(
|
|
4083
|
-
return isHtmlElementNode(
|
|
4221
|
+
function isRadio(element2) {
|
|
4222
|
+
return isHtmlElementNode(element2) && element2.localName === "input" && element2.getAttribute("type")?.toLowerCase() === "radio";
|
|
4084
4223
|
}
|
|
4085
|
-
function getFormOwner(
|
|
4086
|
-
const formValue = "form" in
|
|
4224
|
+
function getFormOwner(element2) {
|
|
4225
|
+
const formValue = "form" in element2 ? Reflect.get(element2, "form") : null;
|
|
4087
4226
|
return isHtmlElementNode(formValue) ? formValue : null;
|
|
4088
4227
|
}
|
|
4089
|
-
function sequentialTabIndexValue(
|
|
4090
|
-
return Math.max(0, getTabIndexValue(
|
|
4228
|
+
function sequentialTabIndexValue(element2) {
|
|
4229
|
+
return Math.max(0, getTabIndexValue(element2));
|
|
4091
4230
|
}
|
|
4092
|
-
function isSequentiallyAfterReference(
|
|
4231
|
+
function isSequentiallyAfterReference(element2, reference, direction, relativePosition) {
|
|
4093
4232
|
const referenceTabIndex = getTabIndexValue(reference);
|
|
4094
|
-
const elementTabIndex = getTabIndexValue(
|
|
4233
|
+
const elementTabIndex = getTabIndexValue(element2);
|
|
4095
4234
|
const referenceIsPositive = referenceTabIndex > 0;
|
|
4096
4235
|
const elementIsPositive = elementTabIndex > 0;
|
|
4097
4236
|
if (direction === "after") {
|
|
@@ -4117,8 +4256,8 @@ function isSequentiallyAfterReference(element, reference, direction, relativePos
|
|
|
4117
4256
|
return true;
|
|
4118
4257
|
return relativePosition < 0;
|
|
4119
4258
|
}
|
|
4120
|
-
function getTabIndexValue(
|
|
4121
|
-
return getExplicitTabIndexValue(
|
|
4259
|
+
function getTabIndexValue(element2) {
|
|
4260
|
+
return getExplicitTabIndexValue(element2) ?? (hasNativeSequentialDefault(element2) ? 0 : -1);
|
|
4122
4261
|
}
|
|
4123
4262
|
function findSequentialEntryTarget(candidates, referenceTabIndex, direction) {
|
|
4124
4263
|
if (direction === "after") {
|
|
@@ -4134,8 +4273,8 @@ function findSequentialEntryTarget(candidates, referenceTabIndex, direction) {
|
|
|
4134
4273
|
return candidateTabIndex > 0 && candidateTabIndex <= referenceTabIndex;
|
|
4135
4274
|
}) ?? null;
|
|
4136
4275
|
}
|
|
4137
|
-
function getExplicitTabIndexValue(
|
|
4138
|
-
const rawValue =
|
|
4276
|
+
function getExplicitTabIndexValue(element2) {
|
|
4277
|
+
const rawValue = element2.getAttribute("tabindex");
|
|
4139
4278
|
if (rawValue !== null) {
|
|
4140
4279
|
const match = /^[\t\n\f\r ]*([+-]?\d+)/.exec(rawValue);
|
|
4141
4280
|
if (match?.[1]) {
|
|
@@ -4145,11 +4284,11 @@ function getExplicitTabIndexValue(element) {
|
|
|
4145
4284
|
}
|
|
4146
4285
|
return null;
|
|
4147
4286
|
}
|
|
4148
|
-
function isEditingHost(
|
|
4149
|
-
return hasContentEditableState(
|
|
4287
|
+
function isEditingHost(element2) {
|
|
4288
|
+
return hasContentEditableState(element2) && !hasContentEditableState(element2.parentElement);
|
|
4150
4289
|
}
|
|
4151
|
-
function hasContentEditableState(
|
|
4152
|
-
for (let current =
|
|
4290
|
+
function hasContentEditableState(element2) {
|
|
4291
|
+
for (let current = element2;current; current = current.parentElement) {
|
|
4153
4292
|
const value = current.getAttribute("contenteditable")?.toLowerCase();
|
|
4154
4293
|
if (value === "" || value === "true" || value === "plaintext-only")
|
|
4155
4294
|
return true;
|
|
@@ -4158,15 +4297,15 @@ function hasContentEditableState(element) {
|
|
|
4158
4297
|
}
|
|
4159
4298
|
return false;
|
|
4160
4299
|
}
|
|
4161
|
-
function isFirstDetailsSummary(
|
|
4162
|
-
const details =
|
|
4163
|
-
return details?.tagName === "DETAILS" && Array.from(details.children).find((
|
|
4300
|
+
function isFirstDetailsSummary(element2) {
|
|
4301
|
+
const details = element2.parentElement;
|
|
4302
|
+
return details?.tagName === "DETAILS" && Array.from(details.children).find((child5) => child5.tagName === "SUMMARY") === element2;
|
|
4164
4303
|
}
|
|
4165
|
-
function isInsideClosedDetails(
|
|
4166
|
-
let current = composedParentElement(
|
|
4304
|
+
function isInsideClosedDetails(element2) {
|
|
4305
|
+
let current = composedParentElement(element2);
|
|
4167
4306
|
while (current) {
|
|
4168
|
-
const summary = Array.from(current.children).find((
|
|
4169
|
-
if (current.tagName === "DETAILS" && !current.hasAttribute("open") && !(summary && composedContains(summary,
|
|
4307
|
+
const summary = Array.from(current.children).find((child5) => child5.tagName === "SUMMARY");
|
|
4308
|
+
if (current.tagName === "DETAILS" && !current.hasAttribute("open") && !(summary && composedContains(summary, element2)))
|
|
4170
4309
|
return true;
|
|
4171
4310
|
current = composedParentElement(current);
|
|
4172
4311
|
}
|
|
@@ -4179,8 +4318,8 @@ function composedContains(ancestor, descendant) {
|
|
|
4179
4318
|
}
|
|
4180
4319
|
return false;
|
|
4181
4320
|
}
|
|
4182
|
-
function closestComposed(
|
|
4183
|
-
let candidate =
|
|
4321
|
+
function closestComposed(element2, selector) {
|
|
4322
|
+
let candidate = element2;
|
|
4184
4323
|
while (candidate) {
|
|
4185
4324
|
if (candidate.matches(selector))
|
|
4186
4325
|
return candidate;
|
|
@@ -4188,10 +4327,10 @@ function closestComposed(element, selector) {
|
|
|
4188
4327
|
}
|
|
4189
4328
|
return null;
|
|
4190
4329
|
}
|
|
4191
|
-
function isRendered(
|
|
4330
|
+
function isRendered(element2) {
|
|
4192
4331
|
if (typeof getComputedStyle !== "function")
|
|
4193
4332
|
return true;
|
|
4194
|
-
let candidate =
|
|
4333
|
+
let candidate = element2;
|
|
4195
4334
|
while (candidate) {
|
|
4196
4335
|
const style = getComputedStyle(candidate);
|
|
4197
4336
|
if (style.display === "none" || style.visibility === "hidden" || style.visibility === "collapse")
|
|
@@ -4200,26 +4339,26 @@ function isRendered(element) {
|
|
|
4200
4339
|
}
|
|
4201
4340
|
return true;
|
|
4202
4341
|
}
|
|
4203
|
-
function composedParentElement(
|
|
4204
|
-
return assignedSlotFor(
|
|
4342
|
+
function composedParentElement(element2) {
|
|
4343
|
+
return assignedSlotFor(element2) ?? element2.parentElement ?? shadowHost(element2.getRootNode());
|
|
4205
4344
|
}
|
|
4206
|
-
function assignedSlotFor(
|
|
4207
|
-
if (isElementNode(
|
|
4208
|
-
return
|
|
4209
|
-
const shadowRoot =
|
|
4345
|
+
function assignedSlotFor(element2) {
|
|
4346
|
+
if (isElementNode(element2.assignedSlot))
|
|
4347
|
+
return element2.assignedSlot;
|
|
4348
|
+
const shadowRoot = element2.parentElement?.shadowRoot;
|
|
4210
4349
|
if (!shadowRoot)
|
|
4211
4350
|
return null;
|
|
4212
|
-
for (const
|
|
4213
|
-
if (isSlotElement(
|
|
4214
|
-
return
|
|
4351
|
+
for (const slot3 of shadowRoot.querySelectorAll("slot")) {
|
|
4352
|
+
if (isSlotElement(slot3) && slot3.assignedElements({ flatten: true }).includes(element2)) {
|
|
4353
|
+
return slot3;
|
|
4215
4354
|
}
|
|
4216
4355
|
}
|
|
4217
4356
|
return null;
|
|
4218
4357
|
}
|
|
4219
|
-
function shadowHost(
|
|
4220
|
-
if (!("host" in
|
|
4358
|
+
function shadowHost(root5) {
|
|
4359
|
+
if (!("host" in root5))
|
|
4221
4360
|
return null;
|
|
4222
|
-
const host =
|
|
4361
|
+
const host = root5.host;
|
|
4223
4362
|
return isElementNode(host) ? host : null;
|
|
4224
4363
|
}
|
|
4225
4364
|
function isElementNode(value) {
|
|
@@ -4256,9 +4395,9 @@ function createBodyScrollLock() {
|
|
|
4256
4395
|
return release;
|
|
4257
4396
|
};
|
|
4258
4397
|
}
|
|
4259
|
-
function isInsideEventPath(event2,
|
|
4398
|
+
function isInsideEventPath(event2, element2) {
|
|
4260
4399
|
const path = event2.composedPath();
|
|
4261
|
-
return path.some((entry) => entry instanceof Node &&
|
|
4400
|
+
return path.some((entry) => entry instanceof Node && element2.contains(entry));
|
|
4262
4401
|
}
|
|
4263
4402
|
function createClickOutside(options) {
|
|
4264
4403
|
const { handler, enabled = true, eventType = "click", capture = true, ignoreRefs } = options;
|
|
@@ -4278,8 +4417,8 @@ function createClickOutside(options) {
|
|
|
4278
4417
|
return;
|
|
4279
4418
|
if (ignoreRefs) {
|
|
4280
4419
|
for (const ref of ignoreRefs) {
|
|
4281
|
-
const
|
|
4282
|
-
if (
|
|
4420
|
+
const element2 = ref();
|
|
4421
|
+
if (element2 && isInsideEventPath(event2, element2))
|
|
4283
4422
|
return;
|
|
4284
4423
|
}
|
|
4285
4424
|
}
|
|
@@ -4314,36 +4453,118 @@ function overflowFade() {
|
|
|
4314
4453
|
});
|
|
4315
4454
|
};
|
|
4316
4455
|
const resizeObserver = new ResizeObserver(scheduleUpdate);
|
|
4317
|
-
|
|
4318
|
-
const
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4456
|
+
resizeObserver.observe(node);
|
|
4457
|
+
const mutationObserver = typeof MutationObserver === "undefined" ? null : new MutationObserver(scheduleUpdate);
|
|
4458
|
+
mutationObserver?.observe(node, {
|
|
4459
|
+
childList: true,
|
|
4460
|
+
subtree: true,
|
|
4461
|
+
characterData: true,
|
|
4462
|
+
attributes: true,
|
|
4463
|
+
attributeFilter: ["hidden", "class", "style", "aria-hidden", "src"]
|
|
4464
|
+
});
|
|
4465
|
+
node.addEventListener("scroll", scheduleUpdate, { passive: true });
|
|
4466
|
+
update();
|
|
4467
|
+
return () => {
|
|
4468
|
+
if (frame)
|
|
4469
|
+
cancelFrame(frame);
|
|
4470
|
+
resizeObserver.disconnect();
|
|
4471
|
+
mutationObserver?.disconnect();
|
|
4472
|
+
node.removeEventListener("scroll", scheduleUpdate);
|
|
4323
4473
|
};
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4474
|
+
};
|
|
4475
|
+
}
|
|
4476
|
+
var OVERFLOW_SHADOW_ATTRIBUTE = {
|
|
4477
|
+
inline: "data-cinder-overflows-inline",
|
|
4478
|
+
block: "data-cinder-overflows-block"
|
|
4479
|
+
};
|
|
4480
|
+
function overflowShadow(axis) {
|
|
4481
|
+
const attributeName = OVERFLOW_SHADOW_ATTRIBUTE[axis];
|
|
4482
|
+
return (node) => {
|
|
4483
|
+
if (typeof ResizeObserver === "undefined") {
|
|
4484
|
+
node.removeAttribute(attributeName);
|
|
4485
|
+
return;
|
|
4486
|
+
}
|
|
4487
|
+
const update = () => {
|
|
4488
|
+
const overflows = axis === "inline" ? node.scrollWidth - node.clientWidth > 1 : node.scrollHeight - node.clientHeight > 1;
|
|
4489
|
+
node.toggleAttribute(attributeName, overflows);
|
|
4335
4490
|
};
|
|
4336
|
-
|
|
4337
|
-
const
|
|
4338
|
-
|
|
4339
|
-
|
|
4491
|
+
const requestFrame = typeof requestAnimationFrame === "function" ? requestAnimationFrame : (callback) => window.setTimeout(() => callback(performance.now()));
|
|
4492
|
+
const cancelFrame = typeof cancelAnimationFrame === "function" ? cancelAnimationFrame : (handle) => window.clearTimeout(handle);
|
|
4493
|
+
let frame = 0;
|
|
4494
|
+
const scheduleUpdate = () => {
|
|
4495
|
+
if (frame)
|
|
4496
|
+
return;
|
|
4497
|
+
frame = requestFrame(() => {
|
|
4498
|
+
frame = 0;
|
|
4499
|
+
update();
|
|
4500
|
+
});
|
|
4501
|
+
};
|
|
4502
|
+
const resizeObserver = new ResizeObserver(scheduleUpdate);
|
|
4503
|
+
resizeObserver.observe(node);
|
|
4504
|
+
const mutationObserver = typeof MutationObserver === "undefined" ? null : new MutationObserver(scheduleUpdate);
|
|
4505
|
+
mutationObserver?.observe(node, {
|
|
4506
|
+
childList: true,
|
|
4507
|
+
subtree: true,
|
|
4508
|
+
characterData: true,
|
|
4509
|
+
attributes: true,
|
|
4510
|
+
attributeFilter: ["hidden", "class", "style", "aria-hidden", "src"]
|
|
4340
4511
|
});
|
|
4512
|
+
update();
|
|
4513
|
+
return () => {
|
|
4514
|
+
if (frame)
|
|
4515
|
+
cancelFrame(frame);
|
|
4516
|
+
resizeObserver.disconnect();
|
|
4517
|
+
mutationObserver?.disconnect();
|
|
4518
|
+
};
|
|
4519
|
+
};
|
|
4520
|
+
}
|
|
4521
|
+
var OVERFLOW_FADE_START_ATTRIBUTE = {
|
|
4522
|
+
block: "data-cinder-overflows-start",
|
|
4523
|
+
inline: "data-cinder-overflows-inline-start"
|
|
4524
|
+
};
|
|
4525
|
+
var OVERFLOW_FADE_END_ATTRIBUTE = {
|
|
4526
|
+
block: "data-cinder-overflows",
|
|
4527
|
+
inline: "data-cinder-overflows-inline-end"
|
|
4528
|
+
};
|
|
4529
|
+
function overflowFadeEdges(axis) {
|
|
4530
|
+
const startAttribute = OVERFLOW_FADE_START_ATTRIBUTE[axis];
|
|
4531
|
+
const endAttribute = OVERFLOW_FADE_END_ATTRIBUTE[axis];
|
|
4532
|
+
return (node) => {
|
|
4533
|
+
if (typeof ResizeObserver === "undefined") {
|
|
4534
|
+
node.removeAttribute(startAttribute);
|
|
4535
|
+
node.removeAttribute(endAttribute);
|
|
4536
|
+
return;
|
|
4537
|
+
}
|
|
4538
|
+
const update = () => {
|
|
4539
|
+
const scrollPosition = axis === "block" ? node.scrollTop : node.scrollLeft;
|
|
4540
|
+
const contentExtent = axis === "block" ? node.scrollHeight : node.scrollWidth;
|
|
4541
|
+
const viewportExtent = axis === "block" ? node.clientHeight : node.clientWidth;
|
|
4542
|
+
const overflows = contentExtent - viewportExtent > 1;
|
|
4543
|
+
const atStart = scrollPosition <= 1;
|
|
4544
|
+
const atEnd = scrollPosition + viewportExtent >= contentExtent - 1;
|
|
4545
|
+
node.toggleAttribute(startAttribute, overflows && !atStart);
|
|
4546
|
+
node.toggleAttribute(endAttribute, overflows && !atEnd);
|
|
4547
|
+
};
|
|
4548
|
+
const requestFrame = typeof requestAnimationFrame === "function" ? requestAnimationFrame : (callback) => window.setTimeout(() => callback(performance.now()));
|
|
4549
|
+
const cancelFrame = typeof cancelAnimationFrame === "function" ? cancelAnimationFrame : (handle) => window.clearTimeout(handle);
|
|
4550
|
+
let frame = 0;
|
|
4551
|
+
const scheduleUpdate = () => {
|
|
4552
|
+
if (frame)
|
|
4553
|
+
return;
|
|
4554
|
+
frame = requestFrame(() => {
|
|
4555
|
+
frame = 0;
|
|
4556
|
+
update();
|
|
4557
|
+
});
|
|
4558
|
+
};
|
|
4559
|
+
const resizeObserver = new ResizeObserver(scheduleUpdate);
|
|
4560
|
+
resizeObserver.observe(node);
|
|
4561
|
+
const mutationObserver = typeof MutationObserver === "undefined" ? null : new MutationObserver(scheduleUpdate);
|
|
4341
4562
|
mutationObserver?.observe(node, {
|
|
4342
4563
|
childList: true,
|
|
4343
4564
|
subtree: true,
|
|
4344
4565
|
characterData: true,
|
|
4345
4566
|
attributes: true,
|
|
4346
|
-
attributeFilter: ["hidden", "class", "style", "aria-hidden"]
|
|
4567
|
+
attributeFilter: ["hidden", "class", "style", "aria-hidden", "src"]
|
|
4347
4568
|
});
|
|
4348
4569
|
node.addEventListener("scroll", scheduleUpdate, { passive: true });
|
|
4349
4570
|
update();
|
|
@@ -4351,7 +4572,6 @@ function overflowFade() {
|
|
|
4351
4572
|
if (frame)
|
|
4352
4573
|
cancelFrame(frame);
|
|
4353
4574
|
resizeObserver.disconnect();
|
|
4354
|
-
observedElements.clear();
|
|
4355
4575
|
mutationObserver?.disconnect();
|
|
4356
4576
|
node.removeEventListener("scroll", scheduleUpdate);
|
|
4357
4577
|
};
|
|
@@ -4359,14 +4579,14 @@ function overflowFade() {
|
|
|
4359
4579
|
}
|
|
4360
4580
|
|
|
4361
4581
|
// src/components/popover/popover.svelte
|
|
4362
|
-
var
|
|
4363
|
-
var root_13 = $
|
|
4364
|
-
var root_23 = $
|
|
4365
|
-
var root_33 = $
|
|
4582
|
+
var root5 = $10.from_html(`<div class="cinder-popover__trigger"><!></div>`);
|
|
4583
|
+
var root_13 = $10.from_html(`<span class="cinder-popover__arrow" aria-hidden="true"></span>`);
|
|
4584
|
+
var root_23 = $10.from_html(`<div></div> <div tabindex="-1"><!> <!></div>`, 1);
|
|
4585
|
+
var root_33 = $10.from_html(`<!> <!>`, 1);
|
|
4366
4586
|
function Popover($$anchor, $$props) {
|
|
4367
|
-
const generatedPanelId = $
|
|
4368
|
-
$
|
|
4369
|
-
let open = $
|
|
4587
|
+
const generatedPanelId = $10.props_id();
|
|
4588
|
+
$10.push($$props, true);
|
|
4589
|
+
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");
|
|
4370
4590
|
const FOCUSABLE_SELECTOR = 'button:not([disabled]), a[href], [tabindex]:not([tabindex="-1"]), input:not([disabled]), select:not([disabled]), textarea:not([disabled])';
|
|
4371
4591
|
function findFirstFocusable(container) {
|
|
4372
4592
|
if (!container)
|
|
@@ -4379,55 +4599,58 @@ function Popover($$anchor, $$props) {
|
|
|
4379
4599
|
}
|
|
4380
4600
|
return null;
|
|
4381
4601
|
}
|
|
4382
|
-
let triggerWrapper = $
|
|
4383
|
-
let portalScopeElement = $
|
|
4384
|
-
let panelElement = $
|
|
4385
|
-
let arrowElement = $
|
|
4386
|
-
const panelId = $
|
|
4387
|
-
const anchorElement = $
|
|
4388
|
-
|
|
4389
|
-
|
|
4602
|
+
let triggerWrapper = $10.state(undefined);
|
|
4603
|
+
let portalScopeElement = $10.state(undefined);
|
|
4604
|
+
let panelElement = $10.state(undefined);
|
|
4605
|
+
let arrowElement = $10.state(undefined);
|
|
4606
|
+
const panelId = $10.derived(() => $$props.id ?? generatedPanelId);
|
|
4607
|
+
const anchorElement = $10.derived(() => {
|
|
4608
|
+
open();
|
|
4609
|
+
return triggerRef() && triggerRef().isConnected ? triggerRef() : findFirstFocusable($10.get(triggerWrapper)) ?? null;
|
|
4610
|
+
});
|
|
4611
|
+
const resolvedAriaLabel = $10.derived(() => $$props.ariaLabelledby ? undefined : role() === "dialog" ? $$props.label ?? "Popover" : $$props.label);
|
|
4612
|
+
let mounted = $10.state(false);
|
|
4390
4613
|
let capturedFocus = null;
|
|
4391
4614
|
let resolvedAnchorAtOpen = null;
|
|
4392
|
-
let pendingInitialFocus = $
|
|
4393
|
-
let openSessionFocusManagement = $
|
|
4615
|
+
let pendingInitialFocus = $10.state(false);
|
|
4616
|
+
let openSessionFocusManagement = $10.state("panel");
|
|
4394
4617
|
let isDestroyed = false;
|
|
4395
4618
|
onDestroy(() => {
|
|
4396
4619
|
isDestroyed = true;
|
|
4397
4620
|
});
|
|
4398
4621
|
const portalScopeAttachment = createPortalAttachment({
|
|
4399
4622
|
target: () => {
|
|
4400
|
-
if (!$
|
|
4623
|
+
if (!$10.get(anchorElement))
|
|
4401
4624
|
return document.body;
|
|
4402
4625
|
try {
|
|
4403
|
-
return findNearestOpenTopLayer($
|
|
4626
|
+
return findNearestOpenTopLayer($10.get(anchorElement)) ?? document.body;
|
|
4404
4627
|
} catch {
|
|
4405
4628
|
return document.body;
|
|
4406
4629
|
}
|
|
4407
4630
|
},
|
|
4408
4631
|
inheritAttributes: true,
|
|
4409
|
-
source: () => $
|
|
4632
|
+
source: () => $10.get(anchorElement) ?? null
|
|
4410
4633
|
});
|
|
4411
4634
|
const panelPortalAttachment = createPortalAttachment({
|
|
4412
|
-
disabled: () => !$
|
|
4413
|
-
target: () => $
|
|
4635
|
+
disabled: () => !$10.get(portalScopeElement),
|
|
4636
|
+
target: () => $10.get(portalScopeElement),
|
|
4414
4637
|
inheritAttributes: false
|
|
4415
4638
|
});
|
|
4416
|
-
const inheritedPortalStyle = createInheritedPortalStyle(() => $
|
|
4639
|
+
const inheritedPortalStyle = createInheritedPortalStyle(() => $10.get(anchorElement), () => $10.get(mounted) && open());
|
|
4417
4640
|
const anchoredOverlay = createAnchoredOverlay({
|
|
4418
4641
|
open: () => open(),
|
|
4419
|
-
anchor: () => $
|
|
4420
|
-
panel: () => $
|
|
4421
|
-
arrow: () => $
|
|
4642
|
+
anchor: () => $10.get(anchorElement),
|
|
4643
|
+
panel: () => $10.get(panelElement),
|
|
4644
|
+
arrow: () => $10.get(arrowElement),
|
|
4422
4645
|
placement: () => placement(),
|
|
4423
4646
|
offset: () => offset3(),
|
|
4424
4647
|
arrowVisible: () => arrowVisible(),
|
|
4425
4648
|
widthMode: () => widthMode()
|
|
4426
4649
|
});
|
|
4427
|
-
$
|
|
4428
|
-
$
|
|
4650
|
+
$10.user_effect(() => {
|
|
4651
|
+
$10.set(mounted, true);
|
|
4429
4652
|
});
|
|
4430
|
-
const dismissOnOutsideMousedown = $
|
|
4653
|
+
const dismissOnOutsideMousedown = $10.derived(() => createClickOutside({
|
|
4431
4654
|
handler: () => {
|
|
4432
4655
|
open(false);
|
|
4433
4656
|
},
|
|
@@ -4436,53 +4659,53 @@ function Popover($$anchor, $$props) {
|
|
|
4436
4659
|
capture: true,
|
|
4437
4660
|
ignoreRefs: [
|
|
4438
4661
|
() => resolvedAnchorAtOpen ?? null,
|
|
4439
|
-
() => $
|
|
4662
|
+
() => $10.get(portalScopeElement) ?? null,
|
|
4440
4663
|
...outsideClickIgnoreRefs()
|
|
4441
4664
|
]
|
|
4442
4665
|
}));
|
|
4443
4666
|
function moveFocusIntoPanel() {
|
|
4444
|
-
if (isDestroyed || !$
|
|
4667
|
+
if (isDestroyed || !$10.get(panelElement))
|
|
4445
4668
|
return false;
|
|
4446
|
-
const focusable = $$props.initialFocus?.($
|
|
4447
|
-
const target = focusable && $
|
|
4669
|
+
const focusable = $$props.initialFocus?.($10.get(panelElement)) ?? findFirstFocusable($10.get(panelElement));
|
|
4670
|
+
const target = focusable && $10.get(panelElement).contains(focusable) ? focusable : $10.get(panelElement);
|
|
4448
4671
|
target.focus();
|
|
4449
4672
|
if (document.activeElement === target)
|
|
4450
4673
|
return true;
|
|
4451
|
-
const fallback = focusable ? findFirstFocusable($
|
|
4674
|
+
const fallback = focusable ? findFirstFocusable($10.get(panelElement)) : null;
|
|
4452
4675
|
if (fallback && fallback !== target) {
|
|
4453
4676
|
fallback.focus();
|
|
4454
4677
|
if (document.activeElement === fallback)
|
|
4455
4678
|
return true;
|
|
4456
4679
|
}
|
|
4457
|
-
$
|
|
4458
|
-
return document.activeElement === $
|
|
4680
|
+
$10.get(panelElement).focus();
|
|
4681
|
+
return document.activeElement === $10.get(panelElement);
|
|
4459
4682
|
}
|
|
4460
|
-
$
|
|
4683
|
+
$10.user_effect(() => {
|
|
4461
4684
|
if (!open())
|
|
4462
4685
|
return;
|
|
4463
|
-
if (!$
|
|
4686
|
+
if (!$10.get(anchorElement))
|
|
4464
4687
|
return;
|
|
4465
|
-
$
|
|
4466
|
-
if ($
|
|
4688
|
+
$10.set(openSessionFocusManagement, untrack4(() => focusManagement()), true);
|
|
4689
|
+
if ($10.get(openSessionFocusManagement) === "panel") {
|
|
4467
4690
|
capturedFocus = captureFocus();
|
|
4468
|
-
$
|
|
4691
|
+
$10.set(pendingInitialFocus, true);
|
|
4469
4692
|
} else {
|
|
4470
4693
|
capturedFocus = null;
|
|
4471
|
-
$
|
|
4694
|
+
$10.set(pendingInitialFocus, false);
|
|
4472
4695
|
}
|
|
4473
|
-
resolvedAnchorAtOpen =
|
|
4696
|
+
resolvedAnchorAtOpen = untrack4(() => $10.get(anchorElement));
|
|
4474
4697
|
const releaseEscape = closeOnEscape() ? pushEscapeHandler(() => {
|
|
4475
4698
|
open(false);
|
|
4476
4699
|
}) : () => {};
|
|
4477
4700
|
return () => {
|
|
4478
4701
|
releaseEscape();
|
|
4479
|
-
$
|
|
4702
|
+
$10.set(pendingInitialFocus, false);
|
|
4480
4703
|
if (isDestroyed) {
|
|
4481
4704
|
capturedFocus = null;
|
|
4482
4705
|
resolvedAnchorAtOpen = null;
|
|
4483
4706
|
return;
|
|
4484
4707
|
}
|
|
4485
|
-
if ($
|
|
4708
|
+
if ($10.get(openSessionFocusManagement) === "panel") {
|
|
4486
4709
|
const candidates = [triggerRef(), resolvedAnchorAtOpen, capturedFocus];
|
|
4487
4710
|
for (const candidate of candidates) {
|
|
4488
4711
|
if (restoreFocusTo(candidate))
|
|
@@ -4493,21 +4716,21 @@ function Popover($$anchor, $$props) {
|
|
|
4493
4716
|
resolvedAnchorAtOpen = null;
|
|
4494
4717
|
};
|
|
4495
4718
|
});
|
|
4496
|
-
$
|
|
4719
|
+
$10.user_effect(() => {
|
|
4497
4720
|
if (isDestroyed)
|
|
4498
4721
|
return;
|
|
4499
|
-
if ($
|
|
4722
|
+
if ($10.get(openSessionFocusManagement) !== "panel")
|
|
4500
4723
|
return;
|
|
4501
|
-
if (!open() || !$
|
|
4724
|
+
if (!open() || !$10.get(panelElement) || !$10.get(anchorElement) || !anchoredOverlay.positionReady || !$10.get(pendingInitialFocus)) {
|
|
4502
4725
|
return;
|
|
4503
4726
|
}
|
|
4504
4727
|
if (moveFocusIntoPanel())
|
|
4505
|
-
$
|
|
4728
|
+
$10.set(pendingInitialFocus, false);
|
|
4506
4729
|
});
|
|
4507
|
-
$
|
|
4730
|
+
$10.user_effect(() => {
|
|
4508
4731
|
if (!open())
|
|
4509
4732
|
return;
|
|
4510
|
-
if (!$
|
|
4733
|
+
if (!$10.get(anchorElement)) {
|
|
4511
4734
|
devWarn("[cinder/popover] open without a trigger anchor. " + "Provide either a `trigger` snippet with a focusable child or a `triggerRef`.");
|
|
4512
4735
|
}
|
|
4513
4736
|
if (role() === "dialog" && !$$props.label && !$$props.ariaLabelledby) {
|
|
@@ -4517,10 +4740,10 @@ function Popover($$anchor, $$props) {
|
|
|
4517
4740
|
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.");
|
|
4518
4741
|
}
|
|
4519
4742
|
});
|
|
4520
|
-
$
|
|
4743
|
+
$10.user_effect(() => {
|
|
4521
4744
|
if (!wireTriggerAria())
|
|
4522
4745
|
return;
|
|
4523
|
-
const target = $
|
|
4746
|
+
const target = $10.get(anchorElement);
|
|
4524
4747
|
if (!target)
|
|
4525
4748
|
return;
|
|
4526
4749
|
const prior = {
|
|
@@ -4535,7 +4758,7 @@ function Popover($$anchor, $$props) {
|
|
|
4535
4758
|
else
|
|
4536
4759
|
target.removeAttribute("aria-haspopup");
|
|
4537
4760
|
if (open())
|
|
4538
|
-
target.setAttribute("aria-controls", $
|
|
4761
|
+
target.setAttribute("aria-controls", $10.get(panelId));
|
|
4539
4762
|
else
|
|
4540
4763
|
target.removeAttribute("aria-controls");
|
|
4541
4764
|
return () => {
|
|
@@ -4552,76 +4775,76 @@ function Popover($$anchor, $$props) {
|
|
|
4552
4775
|
};
|
|
4553
4776
|
});
|
|
4554
4777
|
var fragment = root_33();
|
|
4555
|
-
var node = $
|
|
4778
|
+
var node = $10.first_child(fragment);
|
|
4556
4779
|
{
|
|
4557
4780
|
var consequent = ($$anchor2) => {
|
|
4558
|
-
var div =
|
|
4559
|
-
var node_1 = $
|
|
4560
|
-
$
|
|
4561
|
-
$
|
|
4562
|
-
$
|
|
4563
|
-
$
|
|
4564
|
-
$
|
|
4781
|
+
var div = root5();
|
|
4782
|
+
var node_1 = $10.child(div);
|
|
4783
|
+
$10.snippet(node_1, () => $$props.trigger);
|
|
4784
|
+
$10.reset(div);
|
|
4785
|
+
$10.bind_this(div, ($$value) => $10.set(triggerWrapper, $$value), () => $10.get(triggerWrapper));
|
|
4786
|
+
$10.template_effect(() => $10.set_attribute(div, "data-cinder-portal-owner", open() ? `${$10.get(panelId)}-scope` : undefined));
|
|
4787
|
+
$10.append($$anchor2, div);
|
|
4565
4788
|
};
|
|
4566
|
-
$
|
|
4789
|
+
$10.if(node, ($$render) => {
|
|
4567
4790
|
if ($$props.trigger)
|
|
4568
4791
|
$$render(consequent);
|
|
4569
4792
|
});
|
|
4570
4793
|
}
|
|
4571
|
-
var node_2 = $
|
|
4794
|
+
var node_2 = $10.sibling(node, 2);
|
|
4572
4795
|
{
|
|
4573
4796
|
var consequent_2 = ($$anchor2) => {
|
|
4574
4797
|
var fragment_1 = root_23();
|
|
4575
|
-
var div_1 = $
|
|
4576
|
-
$
|
|
4577
|
-
$
|
|
4578
|
-
var div_2 = $
|
|
4579
|
-
var node_3 = $
|
|
4580
|
-
$
|
|
4581
|
-
var node_4 = $
|
|
4798
|
+
var div_1 = $10.first_child(fragment_1);
|
|
4799
|
+
$10.bind_this(div_1, ($$value) => $10.set(portalScopeElement, $$value), () => $10.get(portalScopeElement));
|
|
4800
|
+
$10.attach(div_1, () => portalScopeAttachment);
|
|
4801
|
+
var div_2 = $10.sibling(div_1, 2);
|
|
4802
|
+
var node_3 = $10.child(div_2);
|
|
4803
|
+
$10.snippet(node_3, () => $$props.children);
|
|
4804
|
+
var node_4 = $10.sibling(node_3, 2);
|
|
4582
4805
|
{
|
|
4583
4806
|
var consequent_1 = ($$anchor3) => {
|
|
4584
4807
|
var span = root_13();
|
|
4585
|
-
$
|
|
4586
|
-
$
|
|
4587
|
-
$
|
|
4808
|
+
$10.bind_this(span, ($$value) => $10.set(arrowElement, $$value), () => $10.get(arrowElement));
|
|
4809
|
+
$10.template_effect(() => $10.set_style(span, anchoredOverlay.arrowStyle));
|
|
4810
|
+
$10.append($$anchor3, span);
|
|
4588
4811
|
};
|
|
4589
|
-
$
|
|
4812
|
+
$10.if(node_4, ($$render) => {
|
|
4590
4813
|
if (arrowVisible())
|
|
4591
4814
|
$$render(consequent_1);
|
|
4592
4815
|
});
|
|
4593
4816
|
}
|
|
4594
|
-
$
|
|
4595
|
-
$
|
|
4596
|
-
$
|
|
4597
|
-
$
|
|
4598
|
-
$
|
|
4599
|
-
$
|
|
4600
|
-
$
|
|
4601
|
-
$
|
|
4602
|
-
$
|
|
4603
|
-
$
|
|
4604
|
-
$
|
|
4605
|
-
$
|
|
4606
|
-
$
|
|
4607
|
-
$
|
|
4608
|
-
$
|
|
4609
|
-
$
|
|
4610
|
-
$
|
|
4611
|
-
$
|
|
4817
|
+
$10.reset(div_2);
|
|
4818
|
+
$10.bind_this(div_2, ($$value) => $10.set(panelElement, $$value), () => $10.get(panelElement));
|
|
4819
|
+
$10.attach(div_2, () => panelPortalAttachment);
|
|
4820
|
+
$10.attach(div_2, () => $10.get(dismissOnOutsideMousedown));
|
|
4821
|
+
$10.template_effect(($0, $1) => {
|
|
4822
|
+
$10.set_attribute(div_1, "id", `${$10.get(panelId)}-scope`);
|
|
4823
|
+
$10.set_class(div_1, 1, $0);
|
|
4824
|
+
$10.set_style(div_1, `display: contents;${inheritedPortalStyle.style}`);
|
|
4825
|
+
$10.set_attribute(div_2, "id", $10.get(panelId));
|
|
4826
|
+
$10.set_attribute(div_2, "role", role());
|
|
4827
|
+
$10.set_attribute(div_2, "aria-label", $10.get(resolvedAriaLabel));
|
|
4828
|
+
$10.set_attribute(div_2, "aria-labelledby", $$props.ariaLabelledby);
|
|
4829
|
+
$10.set_attribute(div_2, "aria-hidden", anchoredOverlay.positionReady ? undefined : "true");
|
|
4830
|
+
$10.set_class(div_2, 1, $1);
|
|
4831
|
+
$10.set_attribute(div_2, "data-cinder-portal-owner", `${$10.get(panelId)}-scope`);
|
|
4832
|
+
$10.set_attribute(div_2, "data-cinder-placement", anchoredOverlay.resolvedPlacement);
|
|
4833
|
+
$10.set_attribute(div_2, "data-cinder-position-ready", anchoredOverlay.positionReady);
|
|
4834
|
+
$10.set_style(div_2, anchoredOverlay.positionStyle);
|
|
4612
4835
|
}, [
|
|
4613
|
-
() => $
|
|
4614
|
-
() => $
|
|
4836
|
+
() => $10.clsx(classNames("cinder-popover__portal-scope", $$props.portalScopeClass)),
|
|
4837
|
+
() => $10.clsx(classNames("cinder-_floating-surface", "cinder-popover", $$props.class))
|
|
4615
4838
|
]);
|
|
4616
|
-
$
|
|
4839
|
+
$10.append($$anchor2, fragment_1);
|
|
4617
4840
|
};
|
|
4618
|
-
$
|
|
4619
|
-
if ($
|
|
4841
|
+
$10.if(node_2, ($$render) => {
|
|
4842
|
+
if ($10.get(mounted) && open() && $10.get(anchorElement))
|
|
4620
4843
|
$$render(consequent_2);
|
|
4621
4844
|
});
|
|
4622
4845
|
}
|
|
4623
|
-
$
|
|
4624
|
-
$
|
|
4846
|
+
$10.append($$anchor, fragment);
|
|
4847
|
+
$10.pop();
|
|
4625
4848
|
}
|
|
4626
4849
|
|
|
4627
4850
|
// src/components/date-picker/date-picker.svelte
|
|
@@ -4642,162 +4865,161 @@ var rest_excludes4 = new Set([
|
|
|
4642
4865
|
"class",
|
|
4643
4866
|
"aria-describedby",
|
|
4644
4867
|
"aria-invalid",
|
|
4645
|
-
"
|
|
4646
|
-
"triggerLabel"
|
|
4868
|
+
"onValueChange"
|
|
4647
4869
|
]);
|
|
4648
|
-
var
|
|
4649
|
-
var root_14 = $
|
|
4650
|
-
var root_24 = $
|
|
4870
|
+
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>`);
|
|
4871
|
+
var root_14 = $11.from_html(`<!> <!>`, 1);
|
|
4872
|
+
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);
|
|
4651
4873
|
function Date_picker($$anchor, $$props) {
|
|
4652
|
-
$
|
|
4874
|
+
$11.push($$props, true);
|
|
4653
4875
|
const dateControl = ($$anchor2) => {
|
|
4654
4876
|
var fragment = root_24();
|
|
4655
|
-
var div = $
|
|
4656
|
-
var input = $
|
|
4657
|
-
$
|
|
4658
|
-
$
|
|
4659
|
-
var button = $
|
|
4660
|
-
var
|
|
4661
|
-
|
|
4662
|
-
$
|
|
4663
|
-
$
|
|
4664
|
-
|
|
4877
|
+
var div = $11.first_child(fragment);
|
|
4878
|
+
var input = $11.child(div);
|
|
4879
|
+
$11.remove_input_defaults(input);
|
|
4880
|
+
$11.bind_this(input, ($$value) => $11.set(inputElement, $$value), () => $11.get(inputElement));
|
|
4881
|
+
var button = $11.sibling(input, 2);
|
|
4882
|
+
var node = $11.child(button);
|
|
4883
|
+
Calendar_days(node, { class: "cinder-icon-sm", "aria-hidden": "true" });
|
|
4884
|
+
$11.reset(button);
|
|
4885
|
+
$11.bind_this(button, ($$value) => $11.set(triggerElement, $$value), () => $11.get(triggerElement));
|
|
4886
|
+
$11.reset(div);
|
|
4887
|
+
var node_1 = $11.sibling(div, 2);
|
|
4665
4888
|
{
|
|
4666
|
-
let $0 = $
|
|
4667
|
-
let $1 = $
|
|
4668
|
-
Popover(
|
|
4889
|
+
let $0 = $11.derived(() => $11.get(triggerElement) ?? $11.get(inputElement));
|
|
4890
|
+
let $1 = $11.derived(() => $$props.label ? `${$$props.label} calendar` : "Date picker calendar");
|
|
4891
|
+
Popover(node_1, {
|
|
4669
4892
|
get triggerRef() {
|
|
4670
|
-
return $
|
|
4893
|
+
return $11.get($0);
|
|
4671
4894
|
},
|
|
4672
4895
|
role: "dialog",
|
|
4673
4896
|
get label() {
|
|
4674
|
-
return $
|
|
4897
|
+
return $11.get($1);
|
|
4675
4898
|
},
|
|
4676
4899
|
focusManagement: "panel",
|
|
4677
4900
|
initialFocus: focusCalendarDay,
|
|
4678
|
-
outsideClickIgnoreRefs: [() => $
|
|
4901
|
+
outsideClickIgnoreRefs: [() => $11.get(inputElement)],
|
|
4679
4902
|
widthMode: "content",
|
|
4680
4903
|
class: "cinder-date-picker__panel",
|
|
4681
4904
|
get open() {
|
|
4682
|
-
return $
|
|
4905
|
+
return $11.get(open);
|
|
4683
4906
|
},
|
|
4684
4907
|
set open($$value) {
|
|
4685
|
-
$
|
|
4908
|
+
$11.set(open, $$value, true);
|
|
4686
4909
|
},
|
|
4687
4910
|
children: ($$anchor3, $$slotProps) => {
|
|
4688
4911
|
var fragment_1 = root_14();
|
|
4689
|
-
var
|
|
4912
|
+
var node_2 = $11.first_child(fragment_1);
|
|
4690
4913
|
{
|
|
4691
|
-
let $02 = $
|
|
4692
|
-
let $12 = $
|
|
4693
|
-
Calendar(
|
|
4914
|
+
let $02 = $11.derived(() => $11.get(normalizedMin)?.slice(0, 10));
|
|
4915
|
+
let $12 = $11.derived(() => $11.get(normalizedMax)?.slice(0, 10));
|
|
4916
|
+
Calendar(node_2, {
|
|
4694
4917
|
get value() {
|
|
4695
|
-
return $
|
|
4918
|
+
return $11.get(selectedDate);
|
|
4696
4919
|
},
|
|
4697
4920
|
get min() {
|
|
4698
|
-
return $
|
|
4921
|
+
return $11.get($02);
|
|
4699
4922
|
},
|
|
4700
4923
|
get max() {
|
|
4701
|
-
return $
|
|
4924
|
+
return $11.get($12);
|
|
4702
4925
|
},
|
|
4703
|
-
|
|
4926
|
+
onValueChange: handleCalendarChange,
|
|
4704
4927
|
get disabled() {
|
|
4705
4928
|
return disabled();
|
|
4706
4929
|
}
|
|
4707
4930
|
});
|
|
4708
4931
|
}
|
|
4709
|
-
var
|
|
4932
|
+
var node_3 = $11.sibling(node_2, 2);
|
|
4710
4933
|
{
|
|
4711
4934
|
var consequent = ($$anchor4) => {
|
|
4712
|
-
var div_1 =
|
|
4713
|
-
var label_1 = $
|
|
4714
|
-
var input_1 = $
|
|
4715
|
-
$
|
|
4716
|
-
$
|
|
4717
|
-
$
|
|
4718
|
-
$
|
|
4719
|
-
$
|
|
4720
|
-
$
|
|
4721
|
-
$
|
|
4722
|
-
$
|
|
4723
|
-
$
|
|
4724
|
-
input_1.disabled = disabled() || !$
|
|
4935
|
+
var div_1 = root6();
|
|
4936
|
+
var label_1 = $11.child(div_1);
|
|
4937
|
+
var input_1 = $11.sibling(label_1, 2);
|
|
4938
|
+
$11.remove_input_defaults(input_1);
|
|
4939
|
+
$11.reset(div_1);
|
|
4940
|
+
$11.template_effect(() => {
|
|
4941
|
+
$11.set_attribute(label_1, "for", `${$$props.id}-time`);
|
|
4942
|
+
$11.set_attribute(input_1, "id", `${$$props.id}-time`);
|
|
4943
|
+
$11.set_attribute(input_1, "step", $11.get(step));
|
|
4944
|
+
$11.set_value(input_1, $11.get(selectedTime));
|
|
4945
|
+
$11.set_attribute(input_1, "min", $11.get(timeMin));
|
|
4946
|
+
$11.set_attribute(input_1, "max", $11.get(timeMax));
|
|
4947
|
+
input_1.disabled = disabled() || !$11.get(selectedDate);
|
|
4725
4948
|
});
|
|
4726
|
-
$
|
|
4727
|
-
$
|
|
4949
|
+
$11.delegated("change", input_1, handleTimeChange);
|
|
4950
|
+
$11.append($$anchor4, div_1);
|
|
4728
4951
|
};
|
|
4729
|
-
$
|
|
4952
|
+
$11.if(node_3, ($$render) => {
|
|
4730
4953
|
if (granularity() !== "day")
|
|
4731
4954
|
$$render(consequent);
|
|
4732
4955
|
});
|
|
4733
4956
|
}
|
|
4734
|
-
$
|
|
4957
|
+
$11.append($$anchor3, fragment_1);
|
|
4735
4958
|
},
|
|
4736
4959
|
$$slots: { default: true }
|
|
4737
4960
|
});
|
|
4738
4961
|
}
|
|
4739
|
-
$
|
|
4740
|
-
$
|
|
4741
|
-
$
|
|
4742
|
-
$
|
|
4743
|
-
$
|
|
4744
|
-
$
|
|
4745
|
-
$
|
|
4746
|
-
$
|
|
4962
|
+
$11.template_effect(() => {
|
|
4963
|
+
$11.set_attribute(div, "data-invalid", $11.get(invalid) ? "" : undefined);
|
|
4964
|
+
$11.set_attribute(input, "id", $$props.id);
|
|
4965
|
+
$11.set_value(input, $11.get(normalizedValue) ?? "");
|
|
4966
|
+
$11.set_attribute(input, "min", $11.get(normalizedMin));
|
|
4967
|
+
$11.set_attribute(input, "max", $11.get(normalizedMax));
|
|
4968
|
+
$11.set_attribute(input, "step", granularity() === "day" ? undefined : $11.get(step));
|
|
4969
|
+
$11.set_attribute(input, "placeholder", $11.get(resolvedPlaceholder));
|
|
4747
4970
|
input.disabled = disabled();
|
|
4748
|
-
$
|
|
4749
|
-
$
|
|
4750
|
-
$
|
|
4971
|
+
$11.set_attribute(input, "aria-invalid", $11.get(invalid));
|
|
4972
|
+
$11.set_attribute(input, "aria-describedby", $11.get(describedById));
|
|
4973
|
+
$11.set_attribute(button, "aria-label", $$props.label ? `Open ${$$props.label} calendar` : "Open date picker");
|
|
4751
4974
|
button.disabled = disabled();
|
|
4752
|
-
$9.set_text(text, triggerLabel());
|
|
4753
4975
|
});
|
|
4754
|
-
$
|
|
4755
|
-
$
|
|
4756
|
-
$
|
|
4976
|
+
$11.delegated("input", input, handleInput);
|
|
4977
|
+
$11.delegated("change", input, handleInputChange);
|
|
4978
|
+
$11.delegated("click", button, () => {
|
|
4757
4979
|
if (!disabled())
|
|
4758
|
-
$
|
|
4980
|
+
$11.set(open, true);
|
|
4759
4981
|
});
|
|
4760
|
-
$
|
|
4982
|
+
$11.append($$anchor2, fragment);
|
|
4761
4983
|
};
|
|
4762
|
-
let value = $
|
|
4763
|
-
let open = $
|
|
4764
|
-
let inputElement = $
|
|
4765
|
-
let triggerElement = $
|
|
4766
|
-
const normalizedValue = $
|
|
4767
|
-
const normalizedMin = $
|
|
4768
|
-
const normalizedMax = $
|
|
4769
|
-
const selectedDate = $
|
|
4770
|
-
const selectedTime = $
|
|
4771
|
-
let hasInputValidityError = $
|
|
4772
|
-
const step = $
|
|
4773
|
-
const invalid = $
|
|
4774
|
-
const resolvedPlaceholder = $
|
|
4775
|
-
function updateInputValidity(
|
|
4776
|
-
const current =
|
|
4984
|
+
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);
|
|
4985
|
+
let open = $11.state(false);
|
|
4986
|
+
let inputElement = $11.state(null);
|
|
4987
|
+
let triggerElement = $11.state(null);
|
|
4988
|
+
const normalizedValue = $11.derived(() => normalizeDateValue(value(), granularity()));
|
|
4989
|
+
const normalizedMin = $11.derived(() => normalizeDateValue($$props.min, granularity()));
|
|
4990
|
+
const normalizedMax = $11.derived(() => normalizeDateValue($$props.max, granularity()));
|
|
4991
|
+
const selectedDate = $11.derived(() => $11.get(normalizedValue)?.slice(0, 10));
|
|
4992
|
+
const selectedTime = $11.derived(() => granularity() === "day" ? undefined : $11.get(normalizedValue)?.slice(11) ?? (granularity() === "second" ? "00:00:00" : granularity() === "minute" ? "00:00" : "00:00"));
|
|
4993
|
+
let hasInputValidityError = $11.state(false);
|
|
4994
|
+
const step = $11.derived(() => granularity() === "second" ? 1 : granularity() === "minute" ? 60 : 3600);
|
|
4995
|
+
const invalid = $11.derived(() => $$props.error || $11.get(hasInputValidityError) ? "true" : $$props["aria-invalid"] === true || $$props["aria-invalid"] === "true" ? "true" : undefined);
|
|
4996
|
+
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());
|
|
4997
|
+
function updateInputValidity(element2) {
|
|
4998
|
+
const current = element2.value;
|
|
4777
4999
|
const normalizedCurrent = normalizeDateValue(current || undefined, granularity());
|
|
4778
5000
|
const valid = current === "" || normalizedCurrent === current && clampToBounds(normalizedCurrent) === normalizedCurrent;
|
|
4779
|
-
$
|
|
4780
|
-
|
|
5001
|
+
$11.set(hasInputValidityError, !valid);
|
|
5002
|
+
element2.setCustomValidity(valid ? "" : "Enter a valid date within the allowed range.");
|
|
4781
5003
|
}
|
|
4782
|
-
$
|
|
4783
|
-
$
|
|
4784
|
-
if (!$
|
|
5004
|
+
$11.user_effect(() => {
|
|
5005
|
+
$11.get(normalizedValue);
|
|
5006
|
+
if (!$11.get(inputElement))
|
|
4785
5007
|
return;
|
|
4786
|
-
updateInputValidity($
|
|
5008
|
+
updateInputValidity($11.get(inputElement));
|
|
4787
5009
|
});
|
|
4788
|
-
$
|
|
4789
|
-
if (!$
|
|
5010
|
+
$11.user_effect(() => {
|
|
5011
|
+
if (!$11.get(inputElement))
|
|
4790
5012
|
return;
|
|
4791
|
-
const
|
|
4792
|
-
const form =
|
|
5013
|
+
const element2 = $11.get(inputElement);
|
|
5014
|
+
const form = element2.form;
|
|
4793
5015
|
if (!form)
|
|
4794
5016
|
return;
|
|
4795
5017
|
function handleFormReset() {
|
|
4796
5018
|
queueMicrotask(() => {
|
|
4797
|
-
if ($
|
|
5019
|
+
if ($11.get(inputElement) !== element2)
|
|
4798
5020
|
return;
|
|
4799
|
-
value(normalizeDateValue(
|
|
4800
|
-
updateInputValidity(
|
|
5021
|
+
value(normalizeDateValue(element2.value || undefined, granularity()));
|
|
5022
|
+
updateInputValidity(element2);
|
|
4801
5023
|
});
|
|
4802
5024
|
}
|
|
4803
5025
|
form.addEventListener("reset", handleFormReset);
|
|
@@ -4805,43 +5027,43 @@ function Date_picker($$anchor, $$props) {
|
|
|
4805
5027
|
form.removeEventListener("reset", handleFormReset);
|
|
4806
5028
|
};
|
|
4807
5029
|
});
|
|
4808
|
-
const describedById = $
|
|
5030
|
+
const describedById = $11.derived(() => [
|
|
4809
5031
|
$$props["aria-describedby"],
|
|
4810
5032
|
$$props.description ? `${$$props.id}-description` : undefined,
|
|
4811
5033
|
$$props.error ? `${$$props.id}-error` : undefined
|
|
4812
5034
|
].filter(Boolean).join(" ") || undefined);
|
|
4813
|
-
$
|
|
4814
|
-
if (value() === $
|
|
5035
|
+
$11.user_effect(() => {
|
|
5036
|
+
if (value() === $11.get(normalizedValue))
|
|
4815
5037
|
return;
|
|
4816
|
-
emit($
|
|
5038
|
+
emit($11.get(normalizedValue));
|
|
4817
5039
|
});
|
|
4818
5040
|
function emit(next) {
|
|
4819
5041
|
value(next);
|
|
4820
|
-
$$props.
|
|
5042
|
+
$$props.onValueChange?.(next);
|
|
4821
5043
|
}
|
|
4822
5044
|
function clampToBounds(next) {
|
|
4823
5045
|
if (!next)
|
|
4824
5046
|
return;
|
|
4825
|
-
if ($
|
|
4826
|
-
return $
|
|
4827
|
-
if ($
|
|
4828
|
-
return $
|
|
5047
|
+
if ($11.get(normalizedMin) && next < $11.get(normalizedMin))
|
|
5048
|
+
return $11.get(normalizedMin);
|
|
5049
|
+
if ($11.get(normalizedMax) && next > $11.get(normalizedMax))
|
|
5050
|
+
return $11.get(normalizedMax);
|
|
4829
5051
|
return next;
|
|
4830
5052
|
}
|
|
4831
5053
|
function handleCalendarChange(nextDate) {
|
|
4832
5054
|
if (granularity() === "day") {
|
|
4833
5055
|
emit(clampToBounds(nextDate));
|
|
4834
|
-
$
|
|
5056
|
+
$11.set(open, false);
|
|
4835
5057
|
return;
|
|
4836
5058
|
}
|
|
4837
|
-
const existingTime = $
|
|
5059
|
+
const existingTime = $11.get(selectedTime) ?? (granularity() === "second" ? "00:00:00" : "00:00");
|
|
4838
5060
|
emit(clampToBounds(normalizeDateValue(`${nextDate}T${existingTime}`, granularity())));
|
|
4839
5061
|
}
|
|
4840
5062
|
function handleTimeChange(event2) {
|
|
4841
5063
|
const target = event2.currentTarget;
|
|
4842
|
-
if (!$
|
|
5064
|
+
if (!$11.get(selectedDate))
|
|
4843
5065
|
return;
|
|
4844
|
-
emit(clampToBounds(normalizeDateValue(`${$
|
|
5066
|
+
emit(clampToBounds(normalizeDateValue(`${$11.get(selectedDate)}T${target.value}`, granularity())));
|
|
4845
5067
|
}
|
|
4846
5068
|
function handleInputChange(event2) {
|
|
4847
5069
|
const target = event2.currentTarget;
|
|
@@ -4863,26 +5085,26 @@ function Date_picker($$anchor, $$props) {
|
|
|
4863
5085
|
emit(normalizedDraft);
|
|
4864
5086
|
}
|
|
4865
5087
|
}
|
|
4866
|
-
function focusCalendarDay(panel, date = $
|
|
5088
|
+
function focusCalendarDay(panel, date = $11.get(selectedDate)) {
|
|
4867
5089
|
return date && panel.querySelector(`.cinder-calendar__day[id$="-day-${date}"]:not([disabled])`) || panel.querySelector('.cinder-calendar__day[data-focused], .cinder-calendar__day[tabindex="0"]');
|
|
4868
5090
|
}
|
|
4869
|
-
const timeMin = $
|
|
4870
|
-
if (granularity() === "day" || !$
|
|
5091
|
+
const timeMin = $11.derived(() => {
|
|
5092
|
+
if (granularity() === "day" || !$11.get(selectedDate) || !$11.get(normalizedMin))
|
|
4871
5093
|
return;
|
|
4872
|
-
if (!$
|
|
5094
|
+
if (!$11.get(normalizedMin).startsWith(`${$11.get(selectedDate)}T`))
|
|
4873
5095
|
return;
|
|
4874
|
-
return $
|
|
5096
|
+
return $11.get(normalizedMin).slice(11);
|
|
4875
5097
|
});
|
|
4876
|
-
const timeMax = $
|
|
4877
|
-
if (granularity() === "day" || !$
|
|
5098
|
+
const timeMax = $11.derived(() => {
|
|
5099
|
+
if (granularity() === "day" || !$11.get(selectedDate) || !$11.get(normalizedMax))
|
|
4878
5100
|
return;
|
|
4879
|
-
if (!$
|
|
5101
|
+
if (!$11.get(normalizedMax).startsWith(`${$11.get(selectedDate)}T`))
|
|
4880
5102
|
return;
|
|
4881
|
-
return $
|
|
5103
|
+
return $11.get(normalizedMax).slice(11);
|
|
4882
5104
|
});
|
|
4883
5105
|
{
|
|
4884
|
-
let $0 = $
|
|
4885
|
-
Form_field_frame($$anchor, $
|
|
5106
|
+
let $0 = $11.derived(() => classNames("cinder-date-picker", $$props.class));
|
|
5107
|
+
Form_field_frame($$anchor, $11.spread_props(() => rest, {
|
|
4886
5108
|
get id() {
|
|
4887
5109
|
return $$props.id;
|
|
4888
5110
|
},
|
|
@@ -4899,7 +5121,7 @@ function Date_picker($$anchor, $$props) {
|
|
|
4899
5121
|
return disabled();
|
|
4900
5122
|
},
|
|
4901
5123
|
get class() {
|
|
4902
|
-
return $
|
|
5124
|
+
return $11.get($0);
|
|
4903
5125
|
},
|
|
4904
5126
|
labelClass: "cinder-date-picker__label",
|
|
4905
5127
|
descriptionClass: "cinder-date-picker__description",
|
|
@@ -4909,9 +5131,9 @@ function Date_picker($$anchor, $$props) {
|
|
|
4909
5131
|
}
|
|
4910
5132
|
}));
|
|
4911
5133
|
}
|
|
4912
|
-
$
|
|
5134
|
+
$11.pop();
|
|
4913
5135
|
}
|
|
4914
|
-
$
|
|
5136
|
+
$11.delegate(["input", "change", "click"]);
|
|
4915
5137
|
|
|
4916
5138
|
// src/components/date-range-field/date-range-field.svelte
|
|
4917
5139
|
var rest_excludes5 = new Set([
|
|
@@ -4925,22 +5147,22 @@ var rest_excludes5 = new Set([
|
|
|
4925
5147
|
"endLabel",
|
|
4926
5148
|
"granularity",
|
|
4927
5149
|
"presets",
|
|
4928
|
-
"
|
|
5150
|
+
"presetsVisible",
|
|
4929
5151
|
"description",
|
|
4930
5152
|
"error",
|
|
4931
5153
|
"disabled",
|
|
4932
5154
|
"class",
|
|
4933
|
-
"
|
|
5155
|
+
"onValueChange",
|
|
4934
5156
|
"aria-describedby"
|
|
4935
5157
|
]);
|
|
4936
|
-
var
|
|
4937
|
-
var root_15 = $
|
|
4938
|
-
var root_25 = $
|
|
4939
|
-
var root_34 = $
|
|
4940
|
-
var root_42 = $
|
|
5158
|
+
var root7 = $12.from_html(`<p class="cinder-date-range-field__legend"> </p>`);
|
|
5159
|
+
var root_15 = $12.from_html(`<button type="button" class="cinder-date-range-field__preset-btn"> </button>`);
|
|
5160
|
+
var root_25 = $12.from_html(`<div class="cinder-date-range-field__presets" role="group" aria-label="Date range presets"></div>`);
|
|
5161
|
+
var root_34 = $12.from_html(`<p class="cinder-date-range-field__description"> </p>`);
|
|
5162
|
+
var root_42 = $12.from_html(`<div><!> <!> <div class="cinder-date-range-field__inputs"><div class="cinder-date-range-field__input-group"><!></div> <span class="cinder-date-range-field__separator" aria-hidden="true">–</span> <div class="cinder-date-range-field__input-group"><!></div></div> <!> <p class="cinder-date-range-field__error" aria-live="polite"> </p></div>`);
|
|
4941
5163
|
function Date_range_field($$anchor, $$props) {
|
|
4942
|
-
$
|
|
4943
|
-
let value = $
|
|
5164
|
+
$12.push($$props, true);
|
|
5165
|
+
let value = $12.prop($$props, "value", 31, () => $12.proxy({ start: undefined, end: undefined })), granularity = $12.prop($$props, "granularity", 3, "day"), presetsVisible = $12.prop($$props, "presetsVisible", 3, true), disabled = $12.prop($$props, "disabled", 3, false), rest = $12.rest_props($$props, rest_excludes5);
|
|
4944
5166
|
const defaultPresets = [
|
|
4945
5167
|
{
|
|
4946
5168
|
id: "today",
|
|
@@ -4980,26 +5202,26 @@ function Date_range_field($$anchor, $$props) {
|
|
|
4980
5202
|
}
|
|
4981
5203
|
}
|
|
4982
5204
|
];
|
|
4983
|
-
const resolvedPresets = $
|
|
4984
|
-
let selectedPresetSnapshot = $
|
|
4985
|
-
const startId = $
|
|
4986
|
-
const endId = $
|
|
4987
|
-
const legendId = $
|
|
4988
|
-
const descriptionId = $
|
|
4989
|
-
const errId = $
|
|
4990
|
-
const describedBy = $
|
|
4991
|
-
const activePresetId = $
|
|
5205
|
+
const resolvedPresets = $12.derived(() => $$props.presets ?? defaultPresets);
|
|
5206
|
+
let selectedPresetSnapshot = $12.state(null);
|
|
5207
|
+
const startId = $12.derived(() => `${$$props.id}-start`);
|
|
5208
|
+
const endId = $12.derived(() => `${$$props.id}-end`);
|
|
5209
|
+
const legendId = $12.derived(() => $$props.label ? `${$$props.id}-legend` : undefined);
|
|
5210
|
+
const descriptionId = $12.derived(() => describeId($$props.id, !!$$props.description));
|
|
5211
|
+
const errId = $12.derived(() => errorId($$props.id, !!$$props.error));
|
|
5212
|
+
const describedBy = $12.derived(() => composeDescribedBy($12.get(descriptionId), $12.get(errId), $$props["aria-describedby"]));
|
|
5213
|
+
const activePresetId = $12.derived(() => {
|
|
4992
5214
|
const normalizedValue2 = normalizeDateRangeValue(value(), granularity());
|
|
4993
|
-
const snapshot = $
|
|
5215
|
+
const snapshot = $12.get(selectedPresetSnapshot);
|
|
4994
5216
|
if (snapshot && dateRangeValuesMatch(snapshot.value, normalizedValue2)) {
|
|
4995
|
-
const selectedPreset = $
|
|
5217
|
+
const selectedPreset = $12.get(resolvedPresets).find((preset) => {
|
|
4996
5218
|
return preset.id === snapshot.id && preset === snapshot.preset;
|
|
4997
5219
|
});
|
|
4998
5220
|
if (selectedPreset) {
|
|
4999
5221
|
return snapshot.id;
|
|
5000
5222
|
}
|
|
5001
5223
|
}
|
|
5002
|
-
const match = $
|
|
5224
|
+
const match = $12.get(resolvedPresets).find((preset) => {
|
|
5003
5225
|
const resolved = normalizeDateRangeValue(preset.resolve(), granularity());
|
|
5004
5226
|
return dateRangeValuesMatch(resolved, normalizedValue2);
|
|
5005
5227
|
});
|
|
@@ -5049,191 +5271,191 @@ function Date_range_field($$anchor, $$props) {
|
|
|
5049
5271
|
end: nextValue.end ? normalizeDateValue(nextValue.end, nextGranularity) : undefined
|
|
5050
5272
|
};
|
|
5051
5273
|
}
|
|
5052
|
-
const normalizedValue = $
|
|
5053
|
-
$
|
|
5054
|
-
if (dateRangeValuesMatch(value(), $
|
|
5274
|
+
const normalizedValue = $12.derived(() => normalizeDateRangeValue(value(), granularity()));
|
|
5275
|
+
$12.user_effect(() => {
|
|
5276
|
+
if (dateRangeValuesMatch(value(), $12.get(normalizedValue)))
|
|
5055
5277
|
return;
|
|
5056
|
-
value($
|
|
5057
|
-
$$props.
|
|
5278
|
+
value($12.get(normalizedValue));
|
|
5279
|
+
$$props.onValueChange?.($12.get(normalizedValue));
|
|
5058
5280
|
});
|
|
5059
|
-
const defaultStartLabel = $
|
|
5060
|
-
const defaultEndLabel = $
|
|
5061
|
-
const resolvedStartLabel = $
|
|
5062
|
-
const resolvedEndLabel = $
|
|
5281
|
+
const defaultStartLabel = $12.derived(() => granularity() === "day" ? "Start date" : "Start date and time");
|
|
5282
|
+
const defaultEndLabel = $12.derived(() => granularity() === "day" ? "End date" : "End date and time");
|
|
5283
|
+
const resolvedStartLabel = $12.derived(() => $$props.startLabel ?? $12.get(defaultStartLabel));
|
|
5284
|
+
const resolvedEndLabel = $12.derived(() => $$props.endLabel ?? $12.get(defaultEndLabel));
|
|
5063
5285
|
function handlePresetClick(preset) {
|
|
5064
5286
|
if (disabled())
|
|
5065
5287
|
return;
|
|
5066
5288
|
const next = normalizeDateRangeValue(preset.resolve(), granularity());
|
|
5067
|
-
$
|
|
5289
|
+
$12.set(selectedPresetSnapshot, { id: preset.id, preset, value: next });
|
|
5068
5290
|
value(next);
|
|
5069
|
-
$$props.
|
|
5291
|
+
$$props.onValueChange?.(next);
|
|
5070
5292
|
}
|
|
5071
5293
|
function handleStartChange(nextStart) {
|
|
5072
5294
|
const next = normalizeDateRangeValue({ start: nextStart, end: value().end }, granularity());
|
|
5073
|
-
$
|
|
5295
|
+
$12.set(selectedPresetSnapshot, null);
|
|
5074
5296
|
value(next);
|
|
5075
|
-
$$props.
|
|
5297
|
+
$$props.onValueChange?.(next);
|
|
5076
5298
|
}
|
|
5077
5299
|
function handleEndChange(nextEnd) {
|
|
5078
5300
|
const next = normalizeDateRangeValue({ start: value().start, end: nextEnd }, granularity());
|
|
5079
|
-
$
|
|
5301
|
+
$12.set(selectedPresetSnapshot, null);
|
|
5080
5302
|
value(next);
|
|
5081
|
-
$$props.
|
|
5303
|
+
$$props.onValueChange?.(next);
|
|
5082
5304
|
}
|
|
5083
|
-
const hasError = $
|
|
5305
|
+
const hasError = $12.derived(() => !!$$props.error);
|
|
5084
5306
|
var div = root_42();
|
|
5085
|
-
$
|
|
5307
|
+
$12.attribute_effect(div, ($0) => ({
|
|
5086
5308
|
...rest,
|
|
5087
5309
|
class: $0,
|
|
5088
5310
|
role: "group",
|
|
5089
|
-
"aria-labelledby": $
|
|
5090
|
-
"aria-describedby": $
|
|
5311
|
+
"aria-labelledby": $12.get(legendId),
|
|
5312
|
+
"aria-describedby": $12.get(describedBy)
|
|
5091
5313
|
}), [() => classNames("cinder-date-range-field", $$props.class)]);
|
|
5092
|
-
var node = $
|
|
5314
|
+
var node = $12.child(div);
|
|
5093
5315
|
{
|
|
5094
5316
|
var consequent = ($$anchor2) => {
|
|
5095
|
-
var p =
|
|
5096
|
-
var text = $
|
|
5097
|
-
$
|
|
5098
|
-
$
|
|
5099
|
-
$
|
|
5100
|
-
$
|
|
5101
|
-
$
|
|
5317
|
+
var p = root7();
|
|
5318
|
+
var text = $12.child(p, true);
|
|
5319
|
+
$12.reset(p);
|
|
5320
|
+
$12.template_effect(() => {
|
|
5321
|
+
$12.set_attribute(p, "id", $12.get(legendId));
|
|
5322
|
+
$12.set_attribute(p, "data-disabled", disabled() || undefined);
|
|
5323
|
+
$12.set_text(text, $$props.label);
|
|
5102
5324
|
});
|
|
5103
|
-
$
|
|
5325
|
+
$12.append($$anchor2, p);
|
|
5104
5326
|
};
|
|
5105
|
-
$
|
|
5327
|
+
$12.if(node, ($$render) => {
|
|
5106
5328
|
if ($$props.label)
|
|
5107
5329
|
$$render(consequent);
|
|
5108
5330
|
});
|
|
5109
5331
|
}
|
|
5110
|
-
var node_1 = $
|
|
5332
|
+
var node_1 = $12.sibling(node, 2);
|
|
5111
5333
|
{
|
|
5112
5334
|
var consequent_1 = ($$anchor2) => {
|
|
5113
5335
|
var div_1 = root_25();
|
|
5114
|
-
$
|
|
5336
|
+
$12.each(div_1, 21, () => $12.get(resolvedPresets), (preset) => preset.id, ($$anchor3, preset) => {
|
|
5115
5337
|
var button = root_15();
|
|
5116
|
-
var text_1 = $
|
|
5117
|
-
$
|
|
5118
|
-
$
|
|
5119
|
-
$
|
|
5338
|
+
var text_1 = $12.child(button, true);
|
|
5339
|
+
$12.reset(button);
|
|
5340
|
+
$12.template_effect(() => {
|
|
5341
|
+
$12.set_attribute(button, "aria-pressed", $12.get(activePresetId) === $12.get(preset).id);
|
|
5120
5342
|
button.disabled = disabled();
|
|
5121
|
-
$
|
|
5343
|
+
$12.set_text(text_1, $12.get(preset).label);
|
|
5122
5344
|
});
|
|
5123
|
-
$
|
|
5124
|
-
$
|
|
5345
|
+
$12.delegated("click", button, () => handlePresetClick($12.get(preset)));
|
|
5346
|
+
$12.append($$anchor3, button);
|
|
5125
5347
|
});
|
|
5126
|
-
$
|
|
5127
|
-
$
|
|
5128
|
-
$
|
|
5348
|
+
$12.reset(div_1);
|
|
5349
|
+
$12.template_effect(() => $12.set_attribute(div_1, "aria-disabled", disabled() || undefined));
|
|
5350
|
+
$12.append($$anchor2, div_1);
|
|
5129
5351
|
};
|
|
5130
|
-
$
|
|
5131
|
-
if (
|
|
5352
|
+
$12.if(node_1, ($$render) => {
|
|
5353
|
+
if (presetsVisible())
|
|
5132
5354
|
$$render(consequent_1);
|
|
5133
5355
|
});
|
|
5134
5356
|
}
|
|
5135
|
-
var div_2 = $
|
|
5136
|
-
var div_3 = $
|
|
5137
|
-
var node_2 = $
|
|
5357
|
+
var div_2 = $12.sibling(node_1, 2);
|
|
5358
|
+
var div_3 = $12.child(div_2);
|
|
5359
|
+
var node_2 = $12.child(div_3);
|
|
5138
5360
|
{
|
|
5139
|
-
let $0 = $
|
|
5140
|
-
let $1 = $
|
|
5361
|
+
let $0 = $12.derived(() => $12.get(normalizedValue).end ?? undefined);
|
|
5362
|
+
let $1 = $12.derived(() => $12.get(hasError) ? "true" : undefined);
|
|
5141
5363
|
Date_picker(node_2, {
|
|
5142
5364
|
get id() {
|
|
5143
|
-
return $
|
|
5365
|
+
return $12.get(startId);
|
|
5144
5366
|
},
|
|
5145
5367
|
class: "cinder-date-range-field__date-picker",
|
|
5146
5368
|
get granularity() {
|
|
5147
5369
|
return granularity();
|
|
5148
5370
|
},
|
|
5149
5371
|
get value() {
|
|
5150
|
-
return $
|
|
5372
|
+
return $12.get(normalizedValue).start;
|
|
5151
5373
|
},
|
|
5152
5374
|
get label() {
|
|
5153
|
-
return $
|
|
5375
|
+
return $12.get(resolvedStartLabel);
|
|
5154
5376
|
},
|
|
5155
5377
|
get max() {
|
|
5156
|
-
return $
|
|
5378
|
+
return $12.get($0);
|
|
5157
5379
|
},
|
|
5158
5380
|
get disabled() {
|
|
5159
5381
|
return disabled();
|
|
5160
5382
|
},
|
|
5161
5383
|
get "aria-invalid"() {
|
|
5162
|
-
return $
|
|
5384
|
+
return $12.get($1);
|
|
5163
5385
|
},
|
|
5164
5386
|
get "aria-describedby"() {
|
|
5165
|
-
return $
|
|
5387
|
+
return $12.get(describedBy);
|
|
5166
5388
|
},
|
|
5167
|
-
|
|
5389
|
+
onValueChange: (next) => handleStartChange(next)
|
|
5168
5390
|
});
|
|
5169
5391
|
}
|
|
5170
|
-
$
|
|
5171
|
-
var div_4 = $
|
|
5172
|
-
var node_3 = $
|
|
5392
|
+
$12.reset(div_3);
|
|
5393
|
+
var div_4 = $12.sibling(div_3, 4);
|
|
5394
|
+
var node_3 = $12.child(div_4);
|
|
5173
5395
|
{
|
|
5174
|
-
let $0 = $
|
|
5175
|
-
let $1 = $
|
|
5396
|
+
let $0 = $12.derived(() => $12.get(normalizedValue).start ?? undefined);
|
|
5397
|
+
let $1 = $12.derived(() => $12.get(hasError) ? "true" : undefined);
|
|
5176
5398
|
Date_picker(node_3, {
|
|
5177
5399
|
get id() {
|
|
5178
|
-
return $
|
|
5400
|
+
return $12.get(endId);
|
|
5179
5401
|
},
|
|
5180
5402
|
class: "cinder-date-range-field__date-picker",
|
|
5181
5403
|
get granularity() {
|
|
5182
5404
|
return granularity();
|
|
5183
5405
|
},
|
|
5184
5406
|
get value() {
|
|
5185
|
-
return $
|
|
5407
|
+
return $12.get(normalizedValue).end;
|
|
5186
5408
|
},
|
|
5187
5409
|
get label() {
|
|
5188
|
-
return $
|
|
5410
|
+
return $12.get(resolvedEndLabel);
|
|
5189
5411
|
},
|
|
5190
5412
|
get min() {
|
|
5191
|
-
return $
|
|
5413
|
+
return $12.get($0);
|
|
5192
5414
|
},
|
|
5193
5415
|
get disabled() {
|
|
5194
5416
|
return disabled();
|
|
5195
5417
|
},
|
|
5196
5418
|
get "aria-invalid"() {
|
|
5197
|
-
return $
|
|
5419
|
+
return $12.get($1);
|
|
5198
5420
|
},
|
|
5199
5421
|
get "aria-describedby"() {
|
|
5200
|
-
return $
|
|
5422
|
+
return $12.get(describedBy);
|
|
5201
5423
|
},
|
|
5202
|
-
|
|
5424
|
+
onValueChange: (next) => handleEndChange(next)
|
|
5203
5425
|
});
|
|
5204
5426
|
}
|
|
5205
|
-
$
|
|
5206
|
-
$
|
|
5207
|
-
var node_4 = $
|
|
5427
|
+
$12.reset(div_4);
|
|
5428
|
+
$12.reset(div_2);
|
|
5429
|
+
var node_4 = $12.sibling(div_2, 2);
|
|
5208
5430
|
{
|
|
5209
5431
|
var consequent_2 = ($$anchor2) => {
|
|
5210
5432
|
var p_1 = root_34();
|
|
5211
|
-
var text_2 = $
|
|
5212
|
-
$
|
|
5213
|
-
$
|
|
5214
|
-
$
|
|
5215
|
-
$
|
|
5433
|
+
var text_2 = $12.child(p_1, true);
|
|
5434
|
+
$12.reset(p_1);
|
|
5435
|
+
$12.template_effect(() => {
|
|
5436
|
+
$12.set_attribute(p_1, "id", $12.get(descriptionId));
|
|
5437
|
+
$12.set_text(text_2, $$props.description);
|
|
5216
5438
|
});
|
|
5217
|
-
$
|
|
5439
|
+
$12.append($$anchor2, p_1);
|
|
5218
5440
|
};
|
|
5219
|
-
$
|
|
5441
|
+
$12.if(node_4, ($$render) => {
|
|
5220
5442
|
if ($$props.description)
|
|
5221
5443
|
$$render(consequent_2);
|
|
5222
5444
|
});
|
|
5223
5445
|
}
|
|
5224
|
-
var p_2 = $
|
|
5225
|
-
var text_3 = $
|
|
5226
|
-
$
|
|
5227
|
-
$
|
|
5228
|
-
$
|
|
5229
|
-
$
|
|
5230
|
-
$
|
|
5231
|
-
$
|
|
5446
|
+
var p_2 = $12.sibling(node_4, 2);
|
|
5447
|
+
var text_3 = $12.child(p_2, true);
|
|
5448
|
+
$12.reset(p_2);
|
|
5449
|
+
$12.reset(div);
|
|
5450
|
+
$12.template_effect(() => {
|
|
5451
|
+
$12.set_attribute(p_2, "id", $12.get(errId));
|
|
5452
|
+
$12.set_attribute(p_2, "data-cinder-error", $12.get(hasError) || undefined);
|
|
5453
|
+
$12.set_text(text_3, $$props.error ?? "");
|
|
5232
5454
|
});
|
|
5233
|
-
$
|
|
5234
|
-
$
|
|
5455
|
+
$12.append($$anchor, div);
|
|
5456
|
+
$12.pop();
|
|
5235
5457
|
}
|
|
5236
|
-
$
|
|
5458
|
+
$12.delegate(["click"]);
|
|
5237
5459
|
|
|
5238
5460
|
// src/components/date-range-field/index.ts
|
|
5239
5461
|
var date_range_field_default = Date_range_field;
|
|
@@ -5242,4 +5464,4 @@ export {
|
|
|
5242
5464
|
Date_range_field as DateRangeField
|
|
5243
5465
|
};
|
|
5244
5466
|
|
|
5245
|
-
//# debugId=
|
|
5467
|
+
//# debugId=D55235EE4BB177E164756E2164756E21
|