@slotted/react 0.1.0-beta.43 → 0.1.0-beta.45
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/dist/action-sheet-q1UXXruJ.js +360 -0
- package/dist/action-sheet.js +1 -1
- package/dist/{app-shell-DsWhsSMU.js → app-shell-BBPY0_KK.js} +215 -194
- package/dist/app-shell.js +1 -1
- package/dist/{attachment-TZykYNu5.js → attachment-DJDXJrCx.js} +1 -1
- package/dist/attachment.js +1 -1
- package/dist/{button-BMRInd-t.js → button-DS_HpPy0.js} +1 -1
- package/dist/button.js +2 -2
- package/dist/{calendar-YQ784o4d.js → calendar-BO5teotM.js} +1 -1
- package/dist/calendar.js +1 -1
- package/dist/{cascader-fq8fNWSr.js → cascader-BbhADVGt.js} +134 -131
- package/dist/cascader.js +1 -1
- package/dist/{chart-vedR0BDN.js → chart-C4uPgUW8.js} +2 -2
- package/dist/chart.js +1 -1
- package/dist/{checkbox-DsJhlB5c.js → checkbox-D8HZG0be.js} +3 -3
- package/dist/{checkbox-group-pvX9R_yS.js → checkbox-group-5zuE2Kd1.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{clock-DzkQa57Q.js → clock-DeJgwYbZ.js} +1 -1
- package/dist/clock.js +1 -1
- package/dist/{code-block-Cy548yk7.js → code-block-H0lmVVnY.js} +1 -1
- package/dist/code-block.js +1 -1
- package/dist/{color-picker-i-MJ5VVs.js → color-picker-fiLSUBjj.js} +23 -18
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-D028QbfO.js → column-manager-Cc72e1j-.js} +143 -143
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-599heRN_.js → combobox-DMtXrMYE.js} +1 -1
- package/dist/combobox.js +1 -1
- package/dist/{command-palette-Bgf5tfCI.js → command-palette-DwjkexvN.js} +15 -7
- package/dist/command-palette.js +1 -1
- package/dist/{context-menu-WM_tT9hz.js → context-menu-CRRp-PhP.js} +12 -6
- package/dist/context-menu.js +1 -1
- package/dist/{currency-field-rS36pjCO.js → currency-field-Cxr8MT75.js} +1 -1
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-Dh2Q3IQv.js → dashboard-grid-_3H4G0dP.js} +339 -333
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-DUft3rJb.js → data-grid-BlElqHOU.js} +19 -19
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-Dv3orBtf.js → data-list-5zvM-DUz.js} +4 -3
- package/dist/data-list.js +1 -1
- package/dist/{date-field-BZ5JcvXJ.js → date-field-CjlOWVRA.js} +1 -1
- package/dist/date-field.js +1 -1
- package/dist/{date-picker-BvEbsbJC.js → date-picker-BoIHK8_U.js} +4 -4
- package/dist/date-picker.js +2 -2
- package/dist/{date-range-picker-uIr-yReE.js → date-range-picker-DzuuvudX.js} +5 -5
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-DDs3mV9Z.js → datetime-field-PSEOgzfN.js} +1 -1
- package/dist/datetime-field.js +1 -1
- package/dist/{datetime-picker-DDYXqrjm.js → datetime-picker-BUhSr8yp.js} +7 -7
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-CFTHW771.js → datetime-range-picker-DXllehEN.js} +7 -7
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{description-list-D8iTzgC0.js → description-list-1USVlDj3.js} +5 -1
- package/dist/description-list.js +1 -1
- package/dist/{detail-panel-Cke3ZFU3.js → detail-panel-Czs05E_D.js} +52 -50
- package/dist/detail-panel.js +1 -1
- package/dist/docs/action-sheet.examples.md +1 -1
- package/dist/docs/action-sheet.json +3 -3
- package/dist/docs/action-sheet.md +2 -2
- package/dist/docs/app-shell.examples.md +353 -301
- package/dist/docs/app-shell.json +14 -13
- package/dist/docs/app-shell.md +13 -8
- package/dist/docs/avatar-group.examples.md +790 -0
- package/dist/docs/avatar-group.json +9 -9
- package/dist/docs/avatar-group.md +17 -516
- package/dist/docs/avatar.json +6 -6
- package/dist/docs/avatar.md +43 -10
- package/dist/docs/badge.json +1 -1
- package/dist/docs/badge.md +15 -3
- package/dist/docs/button.json +2 -0
- package/dist/docs/button.md +1 -1
- package/dist/docs/calendar.json +0 -1
- package/dist/docs/calendar.md +1 -1
- package/dist/docs/carousel.json +2 -0
- package/dist/docs/carousel.md +1 -1
- package/dist/docs/clock.json +4 -4
- package/dist/docs/clock.md +2 -2
- package/dist/docs/collapsible.json +10 -1
- package/dist/docs/collapsible.md +1 -1
- package/dist/docs/color-picker.json +14 -1
- package/dist/docs/color-picker.md +2 -1
- package/dist/docs/description-list.json +7 -0
- package/dist/docs/description-list.md +1 -0
- package/dist/docs/drawer.examples.md +1 -1
- package/dist/docs/drawer.json +4 -4
- package/dist/docs/entity-picker.examples.md +123 -0
- package/dist/docs/entity-picker.json +9 -9
- package/dist/docs/entity-picker.md +15 -0
- package/dist/docs/event-calendar.json +7 -0
- package/dist/docs/event-calendar.md +1 -0
- package/dist/docs/filter-bar.json +1 -0
- package/dist/docs/filter-bar.md +1 -1
- package/dist/docs/floating-panel.json +7 -3
- package/dist/docs/floating-panel.md +23 -5
- package/dist/docs/hover-card.json +8 -1
- package/dist/docs/hover-card.md +5 -1
- package/dist/docs/import-export-center.examples.md +1 -1
- package/dist/docs/import-export-center.json +3 -13
- package/dist/docs/import-export-center.md +2 -3
- package/dist/docs/inline-message.json +8 -8
- package/dist/docs/inline-message.md +37 -31
- package/dist/docs/inline.json +1 -1
- package/dist/docs/inline.md +4 -1
- package/dist/docs/list-item.json +3 -0
- package/dist/docs/list-item.md +1 -1
- package/dist/docs/markdown.json +1 -1
- package/dist/docs/markdown.md +5 -1
- package/dist/docs/media-viewer.examples.md +1 -1
- package/dist/docs/media-viewer.json +1 -1
- package/dist/docs/menu.examples.md +14 -2
- package/dist/docs/menu.json +1 -1
- package/dist/docs/message-scroller.examples.md +230 -64
- package/dist/docs/message-scroller.json +11 -11
- package/dist/docs/message-scroller.md +18 -5
- package/dist/docs/message.examples.md +14 -4
- package/dist/docs/message.json +7 -5
- package/dist/docs/message.md +6 -2
- package/dist/docs/navigation-menu.examples.md +16 -7
- package/dist/docs/navigation-menu.json +6 -6
- package/dist/docs/navigation-menu.md +1 -1
- package/dist/docs/page-header.examples.md +79 -58
- package/dist/docs/page-header.json +10 -2
- package/dist/docs/page-header.md +1 -1
- package/dist/docs/page.examples.md +31 -13
- package/dist/docs/page.json +1 -1
- package/dist/docs/popover.json +17 -2
- package/dist/docs/popover.md +2 -0
- package/dist/docs/progress-indicator.json +10 -1
- package/dist/docs/progress-indicator.md +2 -1
- package/dist/docs/saved-views.examples.md +2 -13
- package/dist/docs/saved-views.json +8 -8
- package/dist/docs/saved-views.md +0 -1
- package/dist/docs/section.examples.md +25 -22
- package/dist/docs/section.json +1 -1
- package/dist/docs/segmented-control.json +2 -0
- package/dist/docs/segmented-control.md +1 -1
- package/dist/docs/side-navigation.examples.md +6 -1
- package/dist/docs/side-navigation.json +1 -1
- package/dist/docs/skeleton.json +2 -2
- package/dist/docs/skeleton.md +2 -2
- package/dist/docs/stat-card.examples.md +4 -4
- package/dist/docs/stat-card.json +4 -4
- package/dist/docs/status-indicator.json +0 -1
- package/dist/docs/status-indicator.md +1 -1
- package/dist/docs/stepper.json +1 -1
- package/dist/docs/stepper.md +2 -8
- package/dist/docs/table.json +2 -1
- package/dist/docs/table.md +2 -2
- package/dist/docs/tabs.examples.md +6 -4
- package/dist/docs/tabs.json +7 -5
- package/dist/docs/tabs.md +2 -2
- package/dist/docs/timeline.examples.md +6 -1
- package/dist/docs/timeline.json +1 -1
- package/dist/docs/toggle-group.json +2 -0
- package/dist/docs/toggle-group.md +1 -1
- package/dist/docs/toggle.json +2 -0
- package/dist/docs/toggle.md +1 -1
- package/dist/docs/tokens.md +8 -0
- package/dist/docs/toolbar.examples.md +529 -0
- package/dist/docs/toolbar.json +14 -14
- package/dist/docs/toolbar.md +29 -458
- package/dist/docs/tooltip.examples.md +46 -0
- package/dist/docs/tooltip.json +23 -0
- package/dist/docs/tooltip.md +2 -0
- package/dist/docs/top-navigation.examples.md +200 -98
- package/dist/docs/top-navigation.json +12 -12
- package/dist/docs/top-navigation.md +6 -1
- package/dist/docs/tree.examples.md +5 -2
- package/dist/docs/tree.json +2 -2
- package/dist/docs/typography.json +1 -1
- package/dist/docs/typography.md +33 -20
- package/dist/docs/visually-hidden.json +3 -3
- package/dist/docs/visually-hidden.md +68 -41
- package/dist/docs/wizard.json +1 -0
- package/dist/docs/wizard.md +1 -1
- package/dist/drawer-JP3p-QZB.js +879 -0
- package/dist/drawer.js +1 -1
- package/dist/{entity-picker-C78f3Z0o.js → entity-picker-BWpuo-mp.js} +334 -330
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-DJPoCi-O.js → event-calendar-Bxx8eoGK.js} +10 -6
- package/dist/event-calendar.js +1 -1
- package/dist/{field-C-HRhke0.js → field-N0TiMbaI.js} +2 -2
- package/dist/{field-group-CU0PasvW.js → field-group-BrnE6FvP.js} +1 -1
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/{filter-bar-D61wiQFP.js → filter-bar-nQH58RVl.js} +361 -347
- package/dist/filter-bar.js +1 -1
- package/dist/{hover-card-CTItbEfH.js → hover-card-D9-rb9ts.js} +67 -63
- package/dist/hover-card.js +1 -1
- package/dist/{icon-button-N8Madx6i.js → icon-button-DzPkQamc.js} +0 -1
- package/dist/import-export-center-BpGga5jr.js +869 -0
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +88 -88
- package/dist/{listbox-ZqiJ2yer.js → listbox-3XVusnCr.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{loading-overlay-BxIktMtQ.js → loading-overlay-BzycGqQA.js} +1 -1
- package/dist/loading-overlay.js +1 -1
- package/dist/{markdown-8CtV4k44.js → markdown-BMda5ino.js} +13 -13
- package/dist/markdown.js +1 -1
- package/dist/{multi-select-Dc2d6dDB.js → multi-select-IpsZvoQ2.js} +1 -1
- package/dist/multi-select.js +1 -1
- package/dist/{navigation-menu-parts-CRLmigjy.js → navigation-menu-parts-D-vsDdEF.js} +5 -1
- package/dist/navigation-menu.js +1 -1
- package/dist/{notification-center-BngAw_kt.js → notification-center-CTSfrh9K.js} +3 -3
- package/dist/notification-center.js +1 -1
- package/dist/{number-field-BQ54hXmk.js → number-field-Cp33JMGB.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-DRooqa3f.js → otp-input-CEP60HOi.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{page-header-jeAIQSZM.js → page-header-DK896DGD.js} +2 -2
- package/dist/page-header.js +1 -1
- package/dist/{picker-frame-B6sPCP5Y.js → picker-frame-C3Fhjfaj.js} +1 -1
- package/dist/popover-DED1MTi-.js +615 -0
- package/dist/popover.js +1 -1
- package/dist/{progress-indicator-DRr0Gj6w.js → progress-indicator-Co8e7M5K.js} +6 -3
- package/dist/progress-indicator.js +1 -1
- package/dist/{prompt-composer-tYIs39rn.js → prompt-composer-CwjvdgBR.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-AW3xcYYh.js → radio-group-D6bOV_ea.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-h3qdHLNi.js → rating-D8BvDdjM.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{saved-views-nqn0SDXn.js → saved-views-D-CP7JIE.js} +8 -5
- package/dist/saved-views.js +1 -1
- package/dist/{segmented-control-BSMVjukr.js → segmented-control-BLcGhQ4J.js} +2 -2
- package/dist/segmented-control.js +1 -1
- package/dist/{select-d448Wkzb.js → select-Dbc3ng0M.js} +2 -2
- package/dist/{select-tags-3792weoq.js → select-tags-D0SMDPBX.js} +25 -24
- package/dist/select.js +1 -1
- package/dist/{side-navigation-BQzBxz2B.js → side-navigation-Dw3-P12f.js} +3 -3
- package/dist/side-navigation.js +1 -1
- package/dist/{skeleton-DeEOmm1y.js → skeleton-DTqt2GEv.js} +27 -20
- package/dist/skeleton.js +1 -1
- package/dist/{slider-DQ2CnxTO.js → slider-COLWTaxi.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{split-button-D4MPKSB2.js → split-button-Czr2D3HP.js} +1 -1
- package/dist/split-button.js +1 -1
- package/dist/{stat-card-BpGZiFbG.js → stat-card-D6NMjkZM.js} +1 -1
- package/dist/stat-card.js +1 -1
- package/dist/styles/accordion.css +1 -1
- package/dist/styles/action-bar.css +2 -2
- package/dist/styles/action-sheet.css +5 -3
- package/dist/styles/app-shell.css +3 -3
- package/dist/styles/attachment.css +3 -3
- package/dist/styles/avatar-group.css +1 -1
- package/dist/styles/badge.css +1 -1
- package/dist/styles/breadcrumb.css +1 -1
- package/dist/styles/button.css +2 -2
- package/dist/styles/calendar.css +1 -1
- package/dist/styles/card.css +1 -1
- package/dist/styles/carousel.css +1 -1
- package/dist/styles/cascader.css +7 -7
- package/dist/styles/chart.css +6 -4
- package/dist/styles/checkbox-group.css +6 -2
- package/dist/styles/checkbox.css +7 -3
- package/dist/styles/clock.css +1 -1
- package/dist/styles/code-block.css +2 -2
- package/dist/styles/collapsible.css +2 -2
- package/dist/styles/color-picker.css +9 -5
- package/dist/styles/column-manager.css +9 -9
- package/dist/styles/combobox.css +7 -3
- package/dist/styles/command-palette.css +5 -5
- package/dist/styles/context-menu.css +1 -1
- package/dist/styles/currency-field.css +7 -3
- package/dist/styles/dashboard-grid.css +7 -7
- package/dist/styles/data-grid.css +19 -19
- package/dist/styles/data-list.css +9 -9
- package/dist/styles/date-field.css +7 -3
- package/dist/styles/date-picker.css +8 -4
- package/dist/styles/date-range-picker.css +8 -4
- package/dist/styles/datetime-field.css +7 -3
- package/dist/styles/datetime-picker.css +10 -6
- package/dist/styles/datetime-range-picker.css +9 -5
- package/dist/styles/description-list.css +1 -1
- package/dist/styles/detail-panel.css +7 -7
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/divider.css +1 -1
- package/dist/styles/drawer.css +5 -1
- package/dist/styles/entity-picker.css +10 -8
- package/dist/styles/event-calendar.css +12 -8
- package/dist/styles/field-group.css +6 -2
- package/dist/styles/field.css +6 -2
- package/dist/styles/filter-bar.css +20 -20
- package/dist/styles/floating-panel.css +1 -1
- package/dist/styles/hover-card.css +5 -1
- package/dist/styles/import-export-center.css +24 -24
- package/dist/styles/index.css +89 -87
- package/dist/styles/inline.css +1 -1
- package/dist/styles/kbd.css +1 -1
- package/dist/styles/list-item.css +1 -1
- package/dist/styles/listbox.css +7 -3
- package/dist/styles/loading-overlay.css +3 -3
- package/dist/styles/markdown.css +8 -8
- package/dist/styles/media-viewer.css +2 -2
- package/dist/styles/menu.css +1 -1
- package/dist/styles/menubar.css +2 -2
- package/dist/styles/message-scroller.css +1 -1
- package/dist/styles/message.css +1 -1
- package/dist/styles/multi-select.css +9 -7
- package/dist/styles/navigation-menu.css +1 -1
- package/dist/styles/notification-center.css +5 -5
- package/dist/styles/number-field.css +7 -3
- package/dist/styles/otp-input.css +7 -3
- package/dist/styles/page-header.css +4 -4
- package/dist/styles/pagination.css +1 -1
- package/dist/styles/popover.css +5 -1
- package/dist/styles/progress-indicator.css +2 -2
- package/dist/styles/prompt-composer.css +6 -4
- package/dist/styles/radio-group.css +7 -3
- package/dist/styles/rating.css +7 -3
- package/dist/styles/saved-views.css +8 -6
- package/dist/styles/section.css +1 -1
- package/dist/styles/segmented-control.css +7 -3
- package/dist/styles/select.css +8 -4
- package/dist/styles/side-navigation.css +4 -4
- package/dist/styles/skeleton.css +1 -1
- package/dist/styles/slider.css +6 -2
- package/dist/styles/split-button.css +3 -3
- package/dist/styles/stat-card.css +2 -2
- package/dist/styles/status-indicator.css +1 -1
- package/dist/styles/stepper.css +1 -1
- package/dist/styles/switch.css +6 -6
- package/dist/styles/table-of-contents.css +1 -1
- package/dist/styles/table.css +18 -18
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/tag.css +1 -1
- package/dist/styles/tags-input.css +8 -4
- package/dist/styles/text-field.css +7 -3
- package/dist/styles/textarea.css +7 -3
- package/dist/styles/time-field.css +7 -3
- package/dist/styles/time-picker.css +8 -4
- package/dist/styles/time-range-picker.css +8 -4
- package/dist/styles/timeline.css +2 -2
- package/dist/styles/toast.css +3 -3
- package/dist/styles/toggle-group.css +7 -3
- package/dist/styles/toggle.css +1 -1
- package/dist/styles/toolbar.css +2 -2
- package/dist/styles/top-navigation.css +5 -5
- package/dist/styles/tour.css +3 -3
- package/dist/styles/transfer.css +9 -9
- package/dist/styles/tree.css +1 -1
- package/dist/styles/upload.css +10 -6
- package/dist/styles/wizard.css +8 -8
- package/dist/styles.css +1 -1
- package/dist/{switch-DxMukg7F.js → switch-CEbZkLlX.js} +2 -2
- package/dist/switch.js +1 -1
- package/dist/{table-BecApjeD.js → table-BU7XsbQX.js} +169 -162
- package/dist/{table-of-contents-kFr_3Dzs.js → table-of-contents-C410GoEC.js} +1 -1
- package/dist/table-of-contents.js +1 -1
- package/dist/table.js +1 -1
- package/dist/{tags-input-CqCeLtk-.js → tags-input-BdjkB19P.js} +260 -257
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-CMOkJ9Z6.js → text-field-QJnu-rln.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-DfqPfXTr.js → textarea-DsrXI3xB.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-GyLQsxcc.js → time-field-DlZdMsNw.js} +1 -1
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-CGHPnust.js → time-picker-WmeCIySv.js} +5 -5
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-BMRtAqPy.js → time-range-picker-CwSbsJPt.js} +6 -6
- package/dist/time-range-picker.js +1 -1
- package/dist/{toast-aM_ga1mc.js → toast-C3xLEFDE.js} +1 -1
- package/dist/toast.js +1 -1
- package/dist/{toggle-group-DZEWkVRo.js → toggle-group-SP_W-yeh.js} +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/toolbar-BniP4i1C.js +249 -0
- package/dist/toolbar.js +1 -1
- package/dist/tooltip-UPICnTij.js +418 -0
- package/dist/tooltip.js +1 -1
- package/dist/{top-navigation-YSEQzBhD.js → top-navigation--OcOpGCy.js} +3 -3
- package/dist/top-navigation.js +1 -1
- package/dist/{tour-ALH5CYMY.js → tour-7-TXdrMv.js} +2 -2
- package/dist/tour.js +1 -1
- package/dist/{transfer-Cv5yQuTN.js → transfer-DX6umI2M.js} +6 -6
- package/dist/transfer.js +1 -1
- package/dist/types/action-sheet/action-sheet-parts.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell.d.ts.map +1 -1
- package/dist/types/cascader/cascader-surface.d.ts +6 -1
- package/dist/types/cascader/cascader-surface.d.ts.map +1 -1
- package/dist/types/cascader/cascader.d.ts.map +1 -1
- package/dist/types/clock/clock.types.d.ts +5 -2
- package/dist/types/clock/clock.types.d.ts.map +1 -1
- package/dist/types/color-picker/color-picker.d.ts.map +1 -1
- package/dist/types/column-manager/column-manager.d.ts.map +1 -1
- package/dist/types/command-palette/command-palette.d.ts.map +1 -1
- package/dist/types/context-menu/context-menu.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-grid.types.d.ts +2 -1
- package/dist/types/dashboard-grid/dashboard-grid.types.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-widget.d.ts.map +1 -1
- package/dist/types/data-list/data-list.d.ts.map +1 -1
- package/dist/types/description-list/description-list-parts.d.ts.map +1 -1
- package/dist/types/detail-panel/detail-panel-parts.d.ts.map +1 -1
- package/dist/types/drawer/drawer-parts.d.ts +8 -3
- package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
- package/dist/types/drawer/drawer.types.d.ts +2 -1
- package/dist/types/drawer/drawer.types.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar.d.ts.map +1 -1
- package/dist/types/filter-bar/filter-bar-rules.d.ts.map +1 -1
- package/dist/types/hover-card/hover-card.d.ts.map +1 -1
- package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
- package/dist/types/navigation-menu/navigation-menu-parts.d.ts.map +1 -1
- package/dist/types/popover/index.d.ts +1 -1
- package/dist/types/popover/index.d.ts.map +1 -1
- package/dist/types/popover/popover-defaults.d.ts.map +1 -1
- package/dist/types/popover/popover-parts.d.ts +2 -1
- package/dist/types/popover/popover-parts.d.ts.map +1 -1
- package/dist/types/popover/popover.d.ts +1 -1
- package/dist/types/popover/popover.d.ts.map +1 -1
- package/dist/types/popover/popover.types.d.ts +20 -0
- package/dist/types/popover/popover.types.d.ts.map +1 -1
- package/dist/types/progress-indicator/progress-bar.d.ts.map +1 -1
- package/dist/types/saved-views/saved-views.d.ts +1 -0
- package/dist/types/saved-views/saved-views.d.ts.map +1 -1
- package/dist/types/select/select-tags.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton-region-context.d.ts +2 -0
- package/dist/types/skeleton/skeleton-region-context.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton-region.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton-text.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton.d.ts.map +1 -1
- package/dist/types/table/table-parts.d.ts.map +1 -1
- package/dist/types/tags-input/tags-input.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar.types.d.ts +1 -1
- package/dist/types/toolbar/toolbar.types.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip-defaults.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip-parts.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip.d.ts +1 -1
- package/dist/types/tooltip/tooltip.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip.types.d.ts +17 -0
- package/dist/types/tooltip/tooltip.types.d.ts.map +1 -1
- package/dist/types/tour/tour.d.ts.map +1 -1
- package/dist/{upload-CuMOaPK3.js → upload-BtD1nLHa.js} +2 -2
- package/dist/upload.js +1 -1
- package/dist/{use-date-picker-DdSX3RE4.js → use-date-picker-CwH791Jm.js} +2 -2
- package/dist/{use-picker-draft-I_pxqYsc.js → use-picker-draft-BnLS4lDY.js} +1 -1
- package/dist/wizard-6PTtBoi4.js +838 -0
- package/dist/wizard.js +1 -1
- package/package.json +6 -6
- package/dist/action-sheet-BouG2qh_.js +0 -360
- package/dist/drawer-CQagePr_.js +0 -830
- package/dist/import-export-center-mqvmlzwB.js +0 -875
- package/dist/popover-1DlOu95x.js +0 -576
- package/dist/toolbar-BP7ka6lN.js +0 -243
- package/dist/tooltip-DrFiRlH8.js +0 -411
- package/dist/wizard-Dfryz1id.js +0 -838
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
2
|
import { n as t, t as n } from "./icon-D04-_QFA.js";
|
|
3
3
|
import { _ as r, c as i, d as a, g as o, n as s, p as c, t as l } from "./menu-parts-DXs5YuUA.js";
|
|
4
|
+
import { n as u, t as d } from "./icon-button-DzPkQamc.js";
|
|
4
5
|
/* empty css */
|
|
5
|
-
import { n as u, t as d } from "./icon-button-N8Madx6i.js";
|
|
6
6
|
import { a as f, c as p, i as m, o as ee, s as h } from "./card-DO3Kfl_t.js";
|
|
7
|
-
import { a as g, d as _, f as v, l as y, p as b, r as x } from "./popover-
|
|
8
|
-
import { i as S, o as C, r as w } from "./skeleton-
|
|
7
|
+
import { a as g, d as _, f as v, l as y, p as b, r as x } from "./popover-DED1MTi-.js";
|
|
8
|
+
import { i as S, o as C, r as w } from "./skeleton-DTqt2GEv.js";
|
|
9
9
|
import { i as te, n as ne, o as re, r as ie, t as ae } from "./result-state-Ct9AB01a.js";
|
|
10
10
|
import { i as oe } from "./typography-77WM-zPA.js";
|
|
11
11
|
import { keyedProps as se, selectorKeyProps as ce, withSelectorKey as T } from "@slotted/core/selector-key";
|
|
12
12
|
import { createControllable as E } from "@slotted/core/state";
|
|
13
|
-
import { Children as le, Fragment as ue, createContext as D, isValidElement as de, memo as fe, useCallback as O, useContext as k, useEffect as
|
|
14
|
-
import { Fragment as
|
|
15
|
-
import { dashboardGridMessages as
|
|
16
|
-
import { getLiveAnnouncer as
|
|
17
|
-
import { createDragController as
|
|
18
|
-
import { DASHBOARD_SUBROWS as
|
|
13
|
+
import { Children as le, Fragment as ue, createContext as D, isValidElement as de, memo as fe, useCallback as O, useContext as k, useEffect as pe, useId as me, useImperativeHandle as he, useLayoutEffect as ge, useMemo as A, useRef as j, useState as M } from "react";
|
|
14
|
+
import { Fragment as _e, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
15
|
+
import { dashboardGridMessages as ve, dragMessages as ye } from "@slotted/core/i18n";
|
|
16
|
+
import { getLiveAnnouncer as be } from "@slotted/core/live-announcer";
|
|
17
|
+
import { createDragController as xe } from "@slotted/core/drag";
|
|
18
|
+
import { DASHBOARD_SUBROWS as Se, cellAt as Ce, dashboardKeyIntent as F, gridStyle as we, handleShortcuts as Te, layoutsEqual as Ee, materializeLayout as I, measureTiles as De, moveTile as Oe, moveTileBy as ke, observeContentSpan as Ae, parseDashboardLayout as je, parseDuration as Me, playFlip as L, playResize as R, resizeTileBy as Ne, resizeTileInClass as Pe, resolveColumns as Fe, resolveTiles as Ie, serializeDashboardLayout as Le, setTileHidden as Re, sizeClassOf as ze, spanFromTravel as Be, swapTiles as Ve, tileStyle as He } from "@slotted/core/dashboard-grid";
|
|
19
19
|
//#region src/dashboard-grid/dashboard-grid-context.ts
|
|
20
|
-
var
|
|
20
|
+
var Ue = D(null), We = [
|
|
21
21
|
"value",
|
|
22
22
|
"title",
|
|
23
23
|
"rows",
|
|
@@ -30,25 +30,25 @@ var He = D(null), Ue = [
|
|
|
30
30
|
"movable",
|
|
31
31
|
"resizable",
|
|
32
32
|
"removable"
|
|
33
|
-
],
|
|
34
|
-
function
|
|
35
|
-
let t = k(
|
|
33
|
+
], Ge = D(null);
|
|
34
|
+
function Ke(e) {
|
|
35
|
+
let t = k(Ue);
|
|
36
36
|
if (t === null) throw Error(`${e} must be rendered inside a DashboardGrid`);
|
|
37
37
|
return t;
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/dashboard-grid/dashboard-grid-defaults.tsx
|
|
41
|
-
var
|
|
41
|
+
var qe = {
|
|
42
42
|
columns: 12,
|
|
43
43
|
editBar: !0,
|
|
44
44
|
headingLevel: "auto"
|
|
45
|
-
},
|
|
46
|
-
function
|
|
47
|
-
return k(
|
|
45
|
+
}, Je = D(qe);
|
|
46
|
+
function Ye() {
|
|
47
|
+
return k(Je);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
let n =
|
|
51
|
-
return /* @__PURE__ */
|
|
49
|
+
function Xe({ children: e, ...t }) {
|
|
50
|
+
let n = Ye();
|
|
51
|
+
return /* @__PURE__ */ N(Je.Provider, {
|
|
52
52
|
value: {
|
|
53
53
|
columns: t.columns ?? n.columns,
|
|
54
54
|
editBar: t.editBar ?? n.editBar,
|
|
@@ -59,9 +59,9 @@ function Ye({ children: e, ...t }) {
|
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region src/dashboard-grid/dashboard-grid.tsx
|
|
62
|
-
var
|
|
63
|
-
function
|
|
64
|
-
let [i, a] =
|
|
62
|
+
var Ze = [], Qe = "dashboard-grid", $e = "\0placeholder";
|
|
63
|
+
function et(e, t, n, r = Object.is) {
|
|
64
|
+
let [i, a] = M(t), o = e === void 0 ? i : e, s = j({
|
|
65
65
|
controlled: e,
|
|
66
66
|
value: o,
|
|
67
67
|
onRequest: n,
|
|
@@ -86,16 +86,16 @@ function $e(e, t, n, r = Object.is) {
|
|
|
86
86
|
}).request(e, t, n) && (s.current.value = e, a(e)), u;
|
|
87
87
|
}, [])];
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function tt(e) {
|
|
90
90
|
return e.detail === 0 ? "keyboard" : "pointer";
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function nt(e) {
|
|
93
93
|
return e === null || typeof getComputedStyle != "function" ? "ltr" : getComputedStyle(e).direction === "rtl" ? "rtl" : "ltr";
|
|
94
94
|
}
|
|
95
|
-
function nt(e, t) {
|
|
96
|
-
return e !== null && e.clientWidth > 0 ? Re(e.clientWidth, t) : "expanded";
|
|
97
|
-
}
|
|
98
95
|
function rt(e, t) {
|
|
96
|
+
return e !== null && e.clientWidth > 0 ? ze(e.clientWidth, t) : "expanded";
|
|
97
|
+
}
|
|
98
|
+
function it(e, t) {
|
|
99
99
|
let n = e.rows === "auto" ? t.get(e.value) : void 0;
|
|
100
100
|
return {
|
|
101
101
|
key: e.value,
|
|
@@ -111,8 +111,8 @@ function rt(e, t) {
|
|
|
111
111
|
...e.removable === void 0 ? {} : { removable: e.removable }
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
let n = getComputedStyle(e), r = parseFloat(n.columnGap) || 0, i = (e.clientWidth - r * (t - 1)) / Math.max(1, t), a = (parseFloat(n.gridAutoRows) || 0) *
|
|
114
|
+
function at(e, t) {
|
|
115
|
+
let n = getComputedStyle(e), r = parseFloat(n.columnGap) || 0, i = (e.clientWidth - r * (t - 1)) / Math.max(1, t), a = (parseFloat(n.gridAutoRows) || 0) * Se;
|
|
116
116
|
return {
|
|
117
117
|
columns: t,
|
|
118
118
|
track: i,
|
|
@@ -121,7 +121,7 @@ function it(e, t) {
|
|
|
121
121
|
rowGap: r
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function ot(e, t, n) {
|
|
125
125
|
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
126
126
|
return {
|
|
127
127
|
inlineStart: n ? i.right - r.right : r.left - i.left,
|
|
@@ -130,38 +130,38 @@ function at(e, t, n) {
|
|
|
130
130
|
blockSize: r.height
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
var
|
|
133
|
+
var z = [
|
|
134
134
|
"inset-inline-start",
|
|
135
135
|
"inset-block-start",
|
|
136
136
|
"inline-size",
|
|
137
137
|
"block-size",
|
|
138
138
|
"translate"
|
|
139
139
|
];
|
|
140
|
-
function
|
|
140
|
+
function st(e, t) {
|
|
141
141
|
e.style.setProperty("inset-inline-start", `${t.inlineStart}px`), e.style.setProperty("inset-block-start", `${t.blockStart}px`), e.style.setProperty("inline-size", `${t.inlineSize}px`), e.style.setProperty("block-size", `${t.blockSize}px`);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
if (e !== void 0) for (let t of
|
|
143
|
+
function ct(e) {
|
|
144
|
+
if (e !== void 0) for (let t of z) e.style.removeProperty(t);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function lt(e, t = []) {
|
|
147
147
|
return le.forEach(e, (e) => {
|
|
148
|
-
de(e) && e.type === ue ?
|
|
148
|
+
de(e) && e.type === ue ? lt(e.props.children, t) : t.push(e);
|
|
149
149
|
}), t;
|
|
150
150
|
}
|
|
151
|
-
function lt(e, t) {
|
|
152
|
-
return e !== void 0 && Ue.every((n) => e[n] === t[n]);
|
|
153
|
-
}
|
|
154
151
|
function ut(e, t) {
|
|
152
|
+
return e !== void 0 && We.every((n) => e[n] === t[n]);
|
|
153
|
+
}
|
|
154
|
+
function dt(e, t) {
|
|
155
155
|
let n = Object.keys(e.tile), r = Object.keys(e.can);
|
|
156
156
|
return e.order === t.order && e.dragging === t.dragging && e.resizing === t.resizing && e.edge === t.edge && e.readout === t.readout && n.every((n) => e.tile[n] === t.tile[n]) && r.every((n) => e.can[n] === t.can[n]);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
let oe =
|
|
160
|
-
let t =
|
|
161
|
-
return t === void 0 && (t = (t) =>
|
|
162
|
-
}, []), { declarations:
|
|
158
|
+
function ft({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, defaultEditing: p = !1, defaultLayout: m = Ze, editBar: ee, editing: h, expandedFrom: g, headingLevel: _, layout: v, messages: y, onEditingChange: b, onLayoutChange: x, ref: S, render: C, style: w, ...ne }) {
|
|
159
|
+
let oe = Ye(), E = e(ve, y), le = e(ye), D = A(() => Fe(f ?? oe.columns), [f, oe.columns]), fe = ee ?? oe.editBar, k = _ ?? oe.headingLevel, Se = `${me()}-edit-status`, [Te, je] = M(() => /* @__PURE__ */ new Map()), Le = j(/* @__PURE__ */ new Map()), ze = O((e) => {
|
|
160
|
+
let t = Le.current.get(e);
|
|
161
|
+
return t === void 0 && (t = (t) => je((n) => ut(n.get(e), t) ? n : new Map(n).set(e, t)), Le.current.set(e, t)), t;
|
|
162
|
+
}, []), { declarations: We, elements: Ke, pending: qe } = A(() => {
|
|
163
163
|
let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), n = [], r = 0;
|
|
164
|
-
for (let i of
|
|
164
|
+
for (let i of lt(d)) {
|
|
165
165
|
if (!de(i)) continue;
|
|
166
166
|
let { value: a } = i.props;
|
|
167
167
|
if (typeof a == "string") {
|
|
@@ -169,10 +169,10 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
169
169
|
e.set(a, i.props), t.set(a, i);
|
|
170
170
|
continue;
|
|
171
171
|
}
|
|
172
|
-
let o = r++, s = /* @__PURE__ */
|
|
173
|
-
value:
|
|
172
|
+
let o = r++, s = /* @__PURE__ */ N(Ge.Provider, {
|
|
173
|
+
value: ze(o),
|
|
174
174
|
children: i
|
|
175
|
-
}, `host-${o}`), c =
|
|
175
|
+
}, `host-${o}`), c = Te.get(o);
|
|
176
176
|
if (c === void 0 || e.has(c.value)) {
|
|
177
177
|
n.push(s);
|
|
178
178
|
continue;
|
|
@@ -186,13 +186,13 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
186
186
|
};
|
|
187
187
|
}, [
|
|
188
188
|
d,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
]), [
|
|
192
|
-
V,
|
|
189
|
+
Te,
|
|
190
|
+
ze
|
|
191
|
+
]), [Je, Xe] = M(() => /* @__PURE__ */ new Map()), z = A(() => [...We.values()].map((e) => it(e, Je)), [We, Je]), ft = A(() => new Map([...We].map(([e, t]) => [e, t.title])), [We]), [B, pt] = et(v, m, x, Ee), [V, mt] = et(h, p, b), H = A(() => Ie(B, z, D), [
|
|
193
192
|
B,
|
|
193
|
+
z,
|
|
194
194
|
D
|
|
195
|
-
]),
|
|
195
|
+
]), U = A(() => H.filter((e) => !e.hidden), [H]), [W, ht] = M(null), G = j(null), [K, gt] = M(null), _t = j(null), vt = j(null), q = j(/* @__PURE__ */ new Map()), yt = j(/* @__PURE__ */ new Map()), bt = j(/* @__PURE__ */ new Map()), [xt, St] = M(0), Ct = O((e, t, n) => {
|
|
196
196
|
let r = e.get(t);
|
|
197
197
|
if (n === null) {
|
|
198
198
|
if (r === void 0) return;
|
|
@@ -202,63 +202,63 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
202
202
|
e.set(t, n);
|
|
203
203
|
}
|
|
204
204
|
St((e) => e + 1);
|
|
205
|
-
}, []), wt = O((e, t) => Ct(q.current, e, t), [Ct]), Tt = O((e, t) => Ct(yt.current, e, t), [Ct]), Et = O((e, t) => Ct(bt.current, e, t), [Ct]), Dt = [...
|
|
206
|
-
|
|
205
|
+
}, []), wt = O((e, t) => Ct(q.current, e, t), [Ct]), Tt = O((e, t) => Ct(yt.current, e, t), [Ct]), Et = O((e, t) => Ct(bt.current, e, t), [Ct]), Dt = [...We.values()].filter((e) => e.rows === "auto").map((e) => e.value).join("\n");
|
|
206
|
+
pe(() => {
|
|
207
207
|
let e = _t.current;
|
|
208
208
|
if (e === null || Dt === "") return;
|
|
209
209
|
let t = Dt.split("\n").map((t) => {
|
|
210
210
|
let n = bt.current.get(t);
|
|
211
|
-
return n === void 0 ? () => {} :
|
|
211
|
+
return n === void 0 ? () => {} : Ae(n, e, (e) => Xe((n) => new Map(n).set(t, e)));
|
|
212
212
|
});
|
|
213
213
|
return () => {
|
|
214
214
|
for (let e of t) e();
|
|
215
215
|
};
|
|
216
216
|
}, [Dt, xt]);
|
|
217
|
-
let [Ot, kt] =
|
|
218
|
-
|
|
217
|
+
let [Ot, kt] = M(null), J = Ot ?? "expanded";
|
|
218
|
+
pe(() => {
|
|
219
219
|
if (!K || typeof ResizeObserver > "u") return;
|
|
220
|
-
let e = () => kt(K.clientWidth > 0 ?
|
|
220
|
+
let e = () => kt(K.clientWidth > 0 ? rt(K, g) : null), t = new ResizeObserver(e);
|
|
221
221
|
return t.observe(K), e(), () => t.disconnect();
|
|
222
222
|
}, [K, g]);
|
|
223
|
-
let At =
|
|
224
|
-
let e = new Map(q.current), t =
|
|
225
|
-
t !== void 0 && e.delete(t), vt.current && e.set(
|
|
223
|
+
let At = j(null), jt = j(null), Y = j(null), Mt = O(() => {
|
|
224
|
+
let e = new Map(q.current), t = G.current?.key;
|
|
225
|
+
t !== void 0 && e.delete(t), vt.current && e.set($e, vt.current), At.current = De(e);
|
|
226
226
|
}, []), X = O((e) => {
|
|
227
|
-
Mt(),
|
|
227
|
+
Mt(), G.current = e, ht(e);
|
|
228
228
|
}, [Mt]), Nt = O((e) => {
|
|
229
229
|
let t = K?.ownerDocument;
|
|
230
|
-
t && e !== "" &&
|
|
231
|
-
}, [K]), Z =
|
|
232
|
-
layout:
|
|
233
|
-
widgets:
|
|
230
|
+
t && e !== "" && be(t).announce(e);
|
|
231
|
+
}, [K]), Z = j({
|
|
232
|
+
layout: B,
|
|
233
|
+
widgets: z,
|
|
234
234
|
grid: D,
|
|
235
|
-
tiles:
|
|
236
|
-
visible:
|
|
235
|
+
tiles: H,
|
|
236
|
+
visible: U,
|
|
237
237
|
t: E,
|
|
238
238
|
dragT: le,
|
|
239
|
-
titles:
|
|
240
|
-
editing:
|
|
239
|
+
titles: ft,
|
|
240
|
+
editing: V
|
|
241
241
|
});
|
|
242
242
|
Z.current = {
|
|
243
|
-
layout:
|
|
244
|
-
widgets:
|
|
243
|
+
layout: B,
|
|
244
|
+
widgets: z,
|
|
245
245
|
grid: D,
|
|
246
|
-
tiles:
|
|
247
|
-
visible:
|
|
246
|
+
tiles: H,
|
|
247
|
+
visible: U,
|
|
248
248
|
t: E,
|
|
249
249
|
dragT: le,
|
|
250
|
-
titles:
|
|
251
|
-
editing:
|
|
250
|
+
titles: ft,
|
|
251
|
+
editing: V
|
|
252
252
|
};
|
|
253
253
|
let Q = O((e) => Z.current.titles.get(e) ?? e, []), $ = O((e, t, n, r, i) => {
|
|
254
|
-
let a = Z.current, o =
|
|
255
|
-
return !
|
|
254
|
+
let a = Z.current, o = I(e, a.widgets, a.grid);
|
|
255
|
+
return !Ee(o, I(a.layout, a.widgets, a.grid)) && (At.current === null && Mt(), pt(o, t, r, { change: n }) ? (Nt(i(o)), !0) : (At.current = null, !1));
|
|
256
256
|
}, [
|
|
257
257
|
Nt,
|
|
258
258
|
Mt,
|
|
259
|
-
|
|
260
|
-
]), Pt = O(() =>
|
|
261
|
-
let r = Z.current, i =
|
|
259
|
+
pt
|
|
260
|
+
]), Pt = O(() => rt(K, g), [K, g]), Ft = O((e, t) => (n) => {
|
|
261
|
+
let r = Z.current, i = Ie(n, r.widgets, r.grid).filter((e) => !e.hidden), a = i.findIndex((t) => t.key === e), o = i[a];
|
|
262
262
|
return o === void 0 ? "" : t === "expanded" ? r.t("moved", {
|
|
263
263
|
title: Q(e),
|
|
264
264
|
row: o.y + 1,
|
|
@@ -269,14 +269,14 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
269
269
|
total: i.length
|
|
270
270
|
});
|
|
271
271
|
}, [Q]), It = O((e, t) => (n) => {
|
|
272
|
-
let r = Z.current, i =
|
|
272
|
+
let r = Z.current, i = Ie(n, r.widgets, r.grid).find((t) => t.key === e);
|
|
273
273
|
return i === void 0 ? "" : r.t("resized", {
|
|
274
274
|
title: Q(e),
|
|
275
275
|
columns: t === "medium" ? i.medium : i.w,
|
|
276
276
|
rows: i.h
|
|
277
277
|
});
|
|
278
278
|
}, [Q]), Lt = O((e, t, n, r) => {
|
|
279
|
-
let i = Z.current, a = Pt(), o =
|
|
279
|
+
let i = Z.current, a = Pt(), o = ke(i.layout, i.widgets, i.grid, e, t, a);
|
|
280
280
|
Y.current = e, $(o, n, {
|
|
281
281
|
kind: "move",
|
|
282
282
|
key: e
|
|
@@ -286,7 +286,7 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
286
286
|
Ft,
|
|
287
287
|
Pt
|
|
288
288
|
]), Rt = O((e, t, n, r) => {
|
|
289
|
-
let i = Z.current, a = Pt(), o =
|
|
289
|
+
let i = Z.current, a = Pt(), o = Ne(i.layout, i.widgets, i.grid, e, t, a);
|
|
290
290
|
Y.current = e, $(o, n, {
|
|
291
291
|
kind: "resize",
|
|
292
292
|
key: e
|
|
@@ -299,8 +299,8 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
299
299
|
let r = Z.current, i = r.visible.findIndex((t) => t.key === e), a = r.visible[i];
|
|
300
300
|
if (a === void 0 || !a.removable) return;
|
|
301
301
|
let o = r.visible[i + 1] ?? r.visible[i - 1];
|
|
302
|
-
Y.current = o?.key ?? `${
|
|
303
|
-
let s =
|
|
302
|
+
Y.current = o?.key ?? `${Qe}:add`;
|
|
303
|
+
let s = Re(r.layout, r.widgets, r.grid, e, !0);
|
|
304
304
|
$(s, t, {
|
|
305
305
|
kind: "hide",
|
|
306
306
|
key: e
|
|
@@ -308,39 +308,39 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
308
308
|
}, [$, Q]), Bt = O((e, t, n) => {
|
|
309
309
|
let r = Z.current;
|
|
310
310
|
Y.current = e;
|
|
311
|
-
let i =
|
|
311
|
+
let i = Re(r.layout, r.widgets, r.grid, e, !1);
|
|
312
312
|
$(i, t, {
|
|
313
313
|
kind: "show",
|
|
314
314
|
key: e
|
|
315
315
|
}, n, () => r.t("shown", { title: Q(e) }));
|
|
316
|
-
}, [$, Q]), Vt =
|
|
317
|
-
|
|
318
|
-
if (
|
|
316
|
+
}, [$, Q]), Vt = j(null), Ht = j(null), Ut = j(!1);
|
|
317
|
+
ge(() => {
|
|
318
|
+
if (V && !Ut.current) {
|
|
319
319
|
let e = Z.current;
|
|
320
|
-
Vt.current =
|
|
320
|
+
Vt.current = I(e.layout, e.widgets, e.grid), Ht.current = K?.ownerDocument.activeElement ?? null;
|
|
321
321
|
}
|
|
322
|
-
if (!
|
|
322
|
+
if (!V && Ut.current) {
|
|
323
323
|
let e = K?.ownerDocument, t = e?.activeElement ?? null, n = t === null || t === e?.body || !t.isConnected, r = Ht.current;
|
|
324
324
|
n && r instanceof HTMLElement && r.isConnected && r.focus(), Vt.current = null, Ht.current = null;
|
|
325
325
|
}
|
|
326
|
-
Ut.current =
|
|
327
|
-
}, [
|
|
326
|
+
Ut.current = V;
|
|
327
|
+
}, [V, K]);
|
|
328
328
|
let Wt = O((e, t) => {
|
|
329
|
-
|
|
330
|
-
}, [
|
|
329
|
+
mt(!1, e, t);
|
|
330
|
+
}, [mt]), Gt = O((e, t) => {
|
|
331
331
|
let n = Z.current, r = Vt.current;
|
|
332
332
|
r !== null && $(r, "dismiss", {
|
|
333
333
|
kind: "cancel",
|
|
334
334
|
key: null
|
|
335
|
-
}, t, () => n.t("cancelled")),
|
|
336
|
-
}, [$,
|
|
335
|
+
}, t, () => n.t("cancelled")), mt(!1, e, t);
|
|
336
|
+
}, [$, mt]), Kt = O((e, t) => {
|
|
337
337
|
let n = Z.current;
|
|
338
338
|
$(m, e, {
|
|
339
339
|
kind: "reset",
|
|
340
340
|
key: null
|
|
341
341
|
}, t, () => n.t("resetDone"));
|
|
342
342
|
}, [$, m]), qt = O((e, t) => {
|
|
343
|
-
let n =
|
|
343
|
+
let n = F(t, nt(t.currentTarget));
|
|
344
344
|
if (n === null) return;
|
|
345
345
|
let r = Z.current.visible.find((t) => t.key === e);
|
|
346
346
|
if (r === void 0) return;
|
|
@@ -354,14 +354,14 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
354
354
|
zt,
|
|
355
355
|
Lt,
|
|
356
356
|
Rt
|
|
357
|
-
]), Jt =
|
|
357
|
+
]), Jt = j(null), Yt = O((e, t, n) => {
|
|
358
358
|
if (n.button !== 0 || Jt.current !== null) return;
|
|
359
359
|
let r = Z.current, i = r.visible.find((t) => t.key === e), a = _t.current, o = q.current.get(e);
|
|
360
360
|
if (i === void 0 || !i.resizable || a === null || o === void 0) return;
|
|
361
361
|
n.preventDefault(), n.stopPropagation();
|
|
362
362
|
let s = Pt();
|
|
363
363
|
if (s === "compact") return;
|
|
364
|
-
let c = n.currentTarget, l =
|
|
364
|
+
let c = n.currentTarget, l = nt(a) === "rtl", u = at(a, r.grid[s]), d = ot(o, a, l), f = {
|
|
365
365
|
x: n.clientX,
|
|
366
366
|
y: n.clientY
|
|
367
367
|
}, p = s === "medium" ? i.medium : i.w, m = t === "start" || t === "bottom-start", ee = t === "end" || t === "bottom-end", h = t !== "start" && t !== "end", g = {
|
|
@@ -369,8 +369,8 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
369
369
|
y: i.y,
|
|
370
370
|
w: p,
|
|
371
371
|
h: i.h
|
|
372
|
-
}, _ =
|
|
373
|
-
|
|
372
|
+
}, _ = I(r.layout, r.widgets, r.grid);
|
|
373
|
+
st(o, d), X({
|
|
374
374
|
kind: "resize",
|
|
375
375
|
key: e,
|
|
376
376
|
edge: t,
|
|
@@ -382,12 +382,12 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
382
382
|
o.style.setProperty("inline-size", `${y}px`), o.style.setProperty("block-size", `${b}px`);
|
|
383
383
|
let x = m ? d.inlineSize - y : 0;
|
|
384
384
|
o.style.setProperty("translate", `${l ? -x : x}px 0px`);
|
|
385
|
-
let S =
|
|
385
|
+
let S = Be({
|
|
386
386
|
span: p,
|
|
387
387
|
track: u.track,
|
|
388
388
|
gap: u.columnGap,
|
|
389
389
|
travel: y - d.inlineSize
|
|
390
|
-
}), C = h ?
|
|
390
|
+
}), C = h ? Be({
|
|
391
391
|
span: i.h,
|
|
392
392
|
track: u.row,
|
|
393
393
|
gap: u.rowGap,
|
|
@@ -401,7 +401,7 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
401
401
|
h: C
|
|
402
402
|
};
|
|
403
403
|
let te = Z.current;
|
|
404
|
-
_ =
|
|
404
|
+
_ = Pe(te.layout, te.widgets, te.grid, e, g, s), X({
|
|
405
405
|
kind: "resize",
|
|
406
406
|
key: e,
|
|
407
407
|
edge: t,
|
|
@@ -419,7 +419,7 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
419
419
|
width: r.width,
|
|
420
420
|
height: r.height
|
|
421
421
|
}
|
|
422
|
-
},
|
|
422
|
+
}, ct(o), X(null), t && $(_, "pointer", {
|
|
423
423
|
kind: "resize",
|
|
424
424
|
key: e
|
|
425
425
|
}, n, It(e, s));
|
|
@@ -435,9 +435,9 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
435
435
|
X,
|
|
436
436
|
Pt
|
|
437
437
|
]);
|
|
438
|
-
|
|
438
|
+
pe(() => () => Jt.current?.(), []), pe(() => {
|
|
439
439
|
let e = _t.current;
|
|
440
|
-
if (!K || !
|
|
440
|
+
if (!K || !V || e === null) return;
|
|
441
441
|
let t = K.ownerDocument, n = () => Z.current.visible.map((e) => e.key), r = null, i = null, a = "expanded", o = !1, s = null, c = (t) => {
|
|
442
442
|
let n = t.target?.closest("[data-part=\"widget\"]"), i = n?.dataset.key;
|
|
443
443
|
if (!n || i === void 0 || n.parentElement !== e) return;
|
|
@@ -453,13 +453,13 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
453
453
|
e.addEventListener("pointerdown", c, !0);
|
|
454
454
|
let l = (e, t) => {
|
|
455
455
|
let n = Z.current;
|
|
456
|
-
if (t.startsWith("swap:")) return
|
|
456
|
+
if (t.startsWith("swap:")) return Ve(n.layout, n.widgets, n.grid, e, t.slice(5));
|
|
457
457
|
let [r, i] = t.split(",").map(Number);
|
|
458
|
-
return
|
|
458
|
+
return Oe(n.layout, n.widgets, n.grid, e, {
|
|
459
459
|
x: r ?? 0,
|
|
460
460
|
y: i ?? 0
|
|
461
461
|
});
|
|
462
|
-
}, u =
|
|
462
|
+
}, u = xe({
|
|
463
463
|
document: t,
|
|
464
464
|
restoreFocus: !1,
|
|
465
465
|
preview: !1,
|
|
@@ -476,7 +476,7 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
476
476
|
if (n === void 0 || r === null || s === null) return null;
|
|
477
477
|
let c = e.getBoundingClientRect();
|
|
478
478
|
if (a === "expanded") {
|
|
479
|
-
let e = t.x - r.grabX, a = t.y - r.grabY, l = Z.current.visible.find((e) => e.key === n), u = l ? l.w * s.track + (l.w - 1) * s.columnGap : 0, d = o ? e + u - s.track / 2 : e + s.track / 2, f =
|
|
479
|
+
let e = t.x - r.grabX, a = t.y - r.grabY, l = Z.current.visible.find((e) => e.key === n), u = l ? l.w * s.track + (l.w - 1) * s.columnGap : 0, d = o ? e + u - s.track / 2 : e + s.track / 2, f = Ce({
|
|
480
480
|
x: d,
|
|
481
481
|
y: a + s.row / 2
|
|
482
482
|
}, {
|
|
@@ -499,7 +499,7 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
499
499
|
}
|
|
500
500
|
return i === null ? null : {
|
|
501
501
|
kind: "on",
|
|
502
|
-
container:
|
|
502
|
+
container: Qe,
|
|
503
503
|
key: i
|
|
504
504
|
};
|
|
505
505
|
},
|
|
@@ -519,7 +519,7 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
519
519
|
}, r, Ft(i, a)));
|
|
520
520
|
}
|
|
521
521
|
}), d = u.registerContainer({
|
|
522
|
-
key:
|
|
522
|
+
key: Qe,
|
|
523
523
|
items: n,
|
|
524
524
|
orientation: "grid",
|
|
525
525
|
targets: ["on"],
|
|
@@ -547,19 +547,19 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
547
547
|
}
|
|
548
548
|
};
|
|
549
549
|
}
|
|
550
|
-
|
|
550
|
+
ct(e), f = t.reason === "pointer" || t.reason === null, window.setTimeout(() => {
|
|
551
551
|
f = !1;
|
|
552
|
-
}, 0), p = null, i = null,
|
|
552
|
+
}, 0), p = null, i = null, G.current?.kind === "move" && X(null);
|
|
553
553
|
}
|
|
554
554
|
return;
|
|
555
555
|
}
|
|
556
556
|
let n = t.items[0];
|
|
557
557
|
if (n === void 0 || r === null) return;
|
|
558
558
|
let c = q.current.get(n);
|
|
559
|
-
c !== void 0 && (p === null && (p = n, a =
|
|
559
|
+
c !== void 0 && (p === null && (p = n, a = rt(K), o = nt(e) === "rtl", s = at(e, Z.current.grid[a]), st(c, ot(c, e, o)), X({
|
|
560
560
|
kind: "move",
|
|
561
561
|
key: n,
|
|
562
|
-
preview:
|
|
562
|
+
preview: I(Z.current.layout, Z.current.widgets, Z.current.grid)
|
|
563
563
|
})), t.point !== null && c.style.setProperty("translate", `${t.point.x - r.x}px ${t.point.y - r.y}px`));
|
|
564
564
|
}), h = [];
|
|
565
565
|
for (let e of Z.current.visible) {
|
|
@@ -568,12 +568,12 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
568
568
|
if (t === void 0) continue;
|
|
569
569
|
let n = bt.current.get(e.key), r = yt.current.get(e.key);
|
|
570
570
|
n && h.push(u.attachDraggable(t, {
|
|
571
|
-
container:
|
|
571
|
+
container: Qe,
|
|
572
572
|
key: e.key,
|
|
573
573
|
handle: () => n,
|
|
574
574
|
canDrag: (e) => e.pointerType !== "touch"
|
|
575
575
|
})), r && h.push(u.attachDraggable(t, {
|
|
576
|
-
container:
|
|
576
|
+
container: Qe,
|
|
577
577
|
key: e.key,
|
|
578
578
|
handle: () => r,
|
|
579
579
|
delay: { touch: 0 }
|
|
@@ -585,45 +585,45 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
585
585
|
};
|
|
586
586
|
}, [
|
|
587
587
|
K,
|
|
588
|
-
|
|
588
|
+
V,
|
|
589
589
|
xt,
|
|
590
590
|
$,
|
|
591
591
|
Ft,
|
|
592
592
|
X,
|
|
593
593
|
Q
|
|
594
594
|
]);
|
|
595
|
-
let Xt =
|
|
596
|
-
V,
|
|
595
|
+
let Xt = A(() => JSON.stringify(I(B, z, D)), [
|
|
597
596
|
B,
|
|
597
|
+
z,
|
|
598
598
|
D
|
|
599
599
|
]);
|
|
600
|
-
|
|
600
|
+
ge(() => {
|
|
601
601
|
if (K === null) return;
|
|
602
602
|
let e = getComputedStyle(K), t = {
|
|
603
|
-
duration:
|
|
603
|
+
duration: Me(e.getPropertyValue("--slotted-duration-medium")),
|
|
604
604
|
easing: e.getPropertyValue("--slotted-easing-standard").trim() || "ease"
|
|
605
605
|
}, n = At.current;
|
|
606
606
|
if (n !== null) {
|
|
607
607
|
At.current = null;
|
|
608
|
-
let e = new Map(q.current), r =
|
|
609
|
-
r !== void 0 && e.delete(r), vt.current && e.set(
|
|
608
|
+
let e = new Map(q.current), r = G.current?.key;
|
|
609
|
+
r !== void 0 && e.delete(r), vt.current && e.set($e, vt.current), L(e, n, t);
|
|
610
610
|
}
|
|
611
611
|
let r = jt.current;
|
|
612
|
-
if (r !== null &&
|
|
612
|
+
if (r !== null && G.current === null) {
|
|
613
613
|
jt.current = null;
|
|
614
614
|
let e = q.current.get(r.key);
|
|
615
|
-
e &&
|
|
615
|
+
e && R(e, r.box, t);
|
|
616
616
|
}
|
|
617
617
|
let i = Y.current;
|
|
618
618
|
if (i === null) return;
|
|
619
619
|
Y.current = null;
|
|
620
|
-
let a = i === `${
|
|
620
|
+
let a = i === `${Qe}:add` ? K.querySelector("[data-part=\"add\"]") : Z.current.editing ? yt.current.get(i) : null;
|
|
621
621
|
a && a !== K.ownerDocument.activeElement && a.focus();
|
|
622
622
|
}, [
|
|
623
623
|
Xt,
|
|
624
|
-
|
|
624
|
+
W,
|
|
625
625
|
K
|
|
626
|
-
]),
|
|
626
|
+
]), he(S, () => ({
|
|
627
627
|
get element() {
|
|
628
628
|
return K;
|
|
629
629
|
},
|
|
@@ -637,15 +637,15 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
637
637
|
Wt,
|
|
638
638
|
K
|
|
639
639
|
]);
|
|
640
|
-
let Zt =
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
640
|
+
let Zt = A(() => W === null ? H : Ie(W.preview, z, D), [
|
|
641
|
+
W,
|
|
642
|
+
H,
|
|
643
|
+
z,
|
|
644
644
|
D
|
|
645
|
-
]), Qt =
|
|
646
|
-
let e = /* @__PURE__ */ new Map(), t =
|
|
647
|
-
for (let t of
|
|
648
|
-
let r = (e) =>
|
|
645
|
+
]), Qt = A(() => Zt.filter((e) => !e.hidden), [Zt]), $t = A(() => {
|
|
646
|
+
let e = /* @__PURE__ */ new Map(), t = I(B, z, D), n = (e) => !Ee(I(e, z, D), t);
|
|
647
|
+
for (let t of U) {
|
|
648
|
+
let r = (e) => V && n(ke(B, z, D, t.key, e, J)), i = (e, r) => V && n(Ne(B, z, D, t.key, {
|
|
649
649
|
columns: e,
|
|
650
650
|
rows: r
|
|
651
651
|
}, J));
|
|
@@ -662,47 +662,47 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
662
662
|
}
|
|
663
663
|
return e;
|
|
664
664
|
}, [
|
|
665
|
-
|
|
666
|
-
H,
|
|
665
|
+
U,
|
|
667
666
|
V,
|
|
668
667
|
B,
|
|
668
|
+
z,
|
|
669
669
|
D,
|
|
670
670
|
J
|
|
671
|
-
]), en =
|
|
671
|
+
]), en = j(/* @__PURE__ */ new Map()), tn = A(() => {
|
|
672
672
|
let e = /* @__PURE__ */ new Map(), t = new Map(Qt.map((e, t) => [e.key, t]));
|
|
673
|
-
for (let n of
|
|
674
|
-
let r = Zt.find((e) => e.key === n.key) ?? n, i =
|
|
673
|
+
for (let n of U) {
|
|
674
|
+
let r = Zt.find((e) => e.key === n.key) ?? n, i = W !== null && W.key === n.key, a = i && W.kind === "resize", o = {
|
|
675
675
|
tile: r,
|
|
676
|
-
order:
|
|
677
|
-
dragging: i &&
|
|
676
|
+
order: W === null || J === "expanded" ? void 0 : t.get(n.key),
|
|
677
|
+
dragging: i && W.kind === "move",
|
|
678
678
|
resizing: a,
|
|
679
|
-
edge: a ?
|
|
679
|
+
edge: a ? W.edge : null,
|
|
680
680
|
readout: a ? E("size", {
|
|
681
|
-
columns:
|
|
681
|
+
columns: W.sizeClass === "medium" ? r.medium : r.w,
|
|
682
682
|
rows: r.h
|
|
683
683
|
}) : null,
|
|
684
684
|
can: $t.get(n.key)
|
|
685
685
|
}, s = en.current.get(n.key);
|
|
686
|
-
e.set(n.key, s !== void 0 &&
|
|
686
|
+
e.set(n.key, s !== void 0 && dt(s, o) ? s : o);
|
|
687
687
|
}
|
|
688
688
|
return e;
|
|
689
689
|
}, [
|
|
690
690
|
Zt,
|
|
691
691
|
Qt,
|
|
692
|
+
U,
|
|
692
693
|
W,
|
|
693
|
-
G,
|
|
694
694
|
E,
|
|
695
695
|
$t,
|
|
696
696
|
J
|
|
697
697
|
]);
|
|
698
|
-
|
|
698
|
+
ge(() => {
|
|
699
699
|
en.current = tn;
|
|
700
700
|
}, [tn]);
|
|
701
|
-
let nn =
|
|
702
|
-
editing:
|
|
701
|
+
let nn = A(() => ({
|
|
702
|
+
editing: V,
|
|
703
703
|
t: E,
|
|
704
704
|
headingLevel: k,
|
|
705
|
-
statusId:
|
|
705
|
+
statusId: Se,
|
|
706
706
|
sizeClass: J,
|
|
707
707
|
slots: tn,
|
|
708
708
|
registerWidget: wt,
|
|
@@ -714,10 +714,10 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
714
714
|
onHandleKeyDown: qt,
|
|
715
715
|
onResizePointerDown: Yt
|
|
716
716
|
}), [
|
|
717
|
-
|
|
717
|
+
V,
|
|
718
718
|
E,
|
|
719
719
|
k,
|
|
720
|
-
|
|
720
|
+
Se,
|
|
721
721
|
J,
|
|
722
722
|
tn,
|
|
723
723
|
wt,
|
|
@@ -728,134 +728,134 @@ function dt({ "aria-label": o, "aria-labelledby": c, children: d, columns: f, de
|
|
|
728
728
|
zt,
|
|
729
729
|
qt,
|
|
730
730
|
Yt
|
|
731
|
-
]), rn =
|
|
731
|
+
]), rn = H.filter((e) => e.hidden), an = /* @__PURE__ */ N("p", {
|
|
732
732
|
"data-part": "edit-status",
|
|
733
733
|
"data-part-edit-status": "",
|
|
734
|
-
id:
|
|
734
|
+
id: Se,
|
|
735
735
|
...fe ? {} : {
|
|
736
736
|
"data-ui": "visually-hidden",
|
|
737
737
|
...ce("ui", "visually-hidden")
|
|
738
738
|
},
|
|
739
739
|
children: E("editStatus")
|
|
740
|
-
}), on = rn.length === 0 ? null : /* @__PURE__ */
|
|
740
|
+
}), on = rn.length === 0 ? null : /* @__PURE__ */ P(r, { children: [/* @__PURE__ */ N(s, { render: ({ ref: e, ...r }) => /* @__PURE__ */ N(u, {
|
|
741
741
|
...r,
|
|
742
742
|
size: "sm",
|
|
743
743
|
variant: "outline",
|
|
744
744
|
tone: "secondary",
|
|
745
|
-
start: /* @__PURE__ */
|
|
746
|
-
render: (t) => /* @__PURE__ */
|
|
745
|
+
start: /* @__PURE__ */ N(n, { children: /* @__PURE__ */ N(t, { name: "plus" }) }),
|
|
746
|
+
render: (t) => /* @__PURE__ */ N("button", {
|
|
747
747
|
...T(t, "part", "add"),
|
|
748
748
|
ref: e
|
|
749
749
|
}),
|
|
750
750
|
children: E("add")
|
|
751
|
-
}) }), /* @__PURE__ */
|
|
751
|
+
}) }), /* @__PURE__ */ N(l, { children: rn.map((e) => /* @__PURE__ */ N(i, {
|
|
752
752
|
onSelect: (t) => Bt(e.key, t.reason === "keyboard" ? "keyboard" : "pointer", t.source),
|
|
753
|
-
children: /* @__PURE__ */
|
|
754
|
-
}, e.key)) })] }), sn = (e, t, n) => /* @__PURE__ */
|
|
753
|
+
children: /* @__PURE__ */ N(a, { children: Q(e.key) })
|
|
754
|
+
}, e.key)) })] }), sn = (e, t, n) => /* @__PURE__ */ N(u, {
|
|
755
755
|
size: "sm",
|
|
756
756
|
tone: e === "done" ? "accent" : "secondary",
|
|
757
757
|
variant: e === "done" ? "solid" : e === "cancel" ? "outline" : "ghost",
|
|
758
758
|
onClick: n,
|
|
759
|
-
render: (t) => /* @__PURE__ */
|
|
759
|
+
render: (t) => /* @__PURE__ */ N("button", { ...T(t, "part", e) }),
|
|
760
760
|
children: t
|
|
761
|
-
}), cn =
|
|
761
|
+
}), cn = W === null ? null : Zt.find((e) => e.key === W.key), ln = se({
|
|
762
762
|
...ne,
|
|
763
763
|
style: {
|
|
764
|
-
...
|
|
764
|
+
...we(D),
|
|
765
765
|
...w
|
|
766
766
|
},
|
|
767
767
|
"data-ui": "dashboard-grid",
|
|
768
768
|
"data-part": "root",
|
|
769
|
-
...
|
|
769
|
+
...V ? { "data-editing": "" } : {},
|
|
770
770
|
...Ot === null ? {} : { "data-size-class": Ot },
|
|
771
771
|
ref: gt,
|
|
772
|
-
children: /* @__PURE__ */
|
|
773
|
-
|
|
772
|
+
children: /* @__PURE__ */ P(_e, { children: [
|
|
773
|
+
V && fe ? /* @__PURE__ */ P("div", {
|
|
774
774
|
"data-part": "edit-bar",
|
|
775
775
|
"data-part-edit-bar": "",
|
|
776
776
|
role: "group",
|
|
777
777
|
"aria-label": E("editBar"),
|
|
778
|
-
children: [an, /* @__PURE__ */
|
|
778
|
+
children: [an, /* @__PURE__ */ P("div", {
|
|
779
779
|
"data-part": "edit-actions",
|
|
780
780
|
"data-part-edit-actions": "",
|
|
781
781
|
children: [
|
|
782
782
|
on,
|
|
783
|
-
sn("reset", E("reset"), (e) => Kt(
|
|
784
|
-
sn("cancel", E("cancel"), (e) => Gt(
|
|
783
|
+
sn("reset", E("reset"), (e) => Kt(tt(e), e.nativeEvent)),
|
|
784
|
+
sn("cancel", E("cancel"), (e) => Gt(tt(e), e.nativeEvent)),
|
|
785
785
|
sn("done", E("done"), (e) => Wt("submit", e.nativeEvent))
|
|
786
786
|
]
|
|
787
787
|
})]
|
|
788
788
|
}) : null,
|
|
789
|
-
|
|
790
|
-
/* @__PURE__ */
|
|
789
|
+
V && !fe ? an : null,
|
|
790
|
+
/* @__PURE__ */ P("ul", {
|
|
791
791
|
ref: _t,
|
|
792
792
|
"data-part": "grid",
|
|
793
793
|
"data-part-grid": "",
|
|
794
|
-
...
|
|
794
|
+
...W === null ? {} : { "data-gesture": "" },
|
|
795
795
|
role: "list",
|
|
796
796
|
"aria-label": o,
|
|
797
797
|
"aria-labelledby": c,
|
|
798
|
-
hidden:
|
|
799
|
-
children: [/* @__PURE__ */
|
|
798
|
+
hidden: U.length === 0 || void 0,
|
|
799
|
+
children: [/* @__PURE__ */ P(Ge.Provider, {
|
|
800
800
|
value: null,
|
|
801
|
-
children: [
|
|
802
|
-
}), cn ? /* @__PURE__ */
|
|
801
|
+
children: [U.map((e) => /* @__PURE__ */ N(ue, { children: Ke.get(e.key) }, e.key)), qe]
|
|
802
|
+
}), cn ? /* @__PURE__ */ N("li", {
|
|
803
803
|
ref: vt,
|
|
804
804
|
"data-part": "placeholder",
|
|
805
805
|
"data-part-placeholder": "",
|
|
806
806
|
"aria-hidden": "true",
|
|
807
807
|
style: {
|
|
808
|
-
...
|
|
808
|
+
...He(cn),
|
|
809
809
|
...J === "expanded" ? {} : { order: Qt.findIndex((e) => e.key === cn.key) }
|
|
810
810
|
}
|
|
811
811
|
}) : null]
|
|
812
812
|
}),
|
|
813
|
-
|
|
813
|
+
U.length === 0 ? /* @__PURE__ */ N("div", {
|
|
814
814
|
"data-part": "empty",
|
|
815
815
|
"data-part-empty": "",
|
|
816
|
-
children: /* @__PURE__ */
|
|
816
|
+
children: /* @__PURE__ */ N(ae, {
|
|
817
817
|
status: "empty",
|
|
818
818
|
reach: "section",
|
|
819
819
|
live: "polite",
|
|
820
|
-
children: /* @__PURE__ */
|
|
820
|
+
children: /* @__PURE__ */ P(ie, { children: [/* @__PURE__ */ N(re, { children: E("empty") }), V ? /* @__PURE__ */ N(te, { children: E("emptyEditing") }) : null] })
|
|
821
821
|
})
|
|
822
822
|
}) : null
|
|
823
823
|
] })
|
|
824
824
|
});
|
|
825
|
-
return /* @__PURE__ */
|
|
825
|
+
return /* @__PURE__ */ N(Ue.Provider, {
|
|
826
826
|
value: nn,
|
|
827
|
-
children: C === void 0 ? /* @__PURE__ */
|
|
827
|
+
children: C === void 0 ? /* @__PURE__ */ N("div", { ...ln }) : C(ln)
|
|
828
828
|
});
|
|
829
829
|
}
|
|
830
830
|
//#endregion
|
|
831
831
|
//#region src/dashboard-grid/dashboard-widget-help.tsx
|
|
832
|
-
function
|
|
833
|
-
return /* @__PURE__ */
|
|
832
|
+
function B({ children: e, label: r, title: i }) {
|
|
833
|
+
return /* @__PURE__ */ P(v, {
|
|
834
834
|
align: "start",
|
|
835
835
|
presentation: "auto",
|
|
836
836
|
side: "bottom",
|
|
837
837
|
size: "sm",
|
|
838
|
-
children: [/* @__PURE__ */
|
|
838
|
+
children: [/* @__PURE__ */ N(_, { render: (e) => /* @__PURE__ */ N(d, {
|
|
839
839
|
...e,
|
|
840
840
|
"aria-label": r,
|
|
841
841
|
inline: !0,
|
|
842
|
-
render: (e) => /* @__PURE__ */
|
|
842
|
+
render: (e) => /* @__PURE__ */ N("button", { ...T(e, "part", "help") }),
|
|
843
843
|
size: "sm",
|
|
844
844
|
tone: "secondary",
|
|
845
845
|
variant: "ghost",
|
|
846
|
-
children: /* @__PURE__ */
|
|
847
|
-
}) }), /* @__PURE__ */
|
|
846
|
+
children: /* @__PURE__ */ N(n, { children: /* @__PURE__ */ N(t, { name: "circle-info" }) })
|
|
847
|
+
}) }), /* @__PURE__ */ N(y, { children: /* @__PURE__ */ N(pt, {
|
|
848
848
|
label: r,
|
|
849
849
|
title: i,
|
|
850
850
|
children: e
|
|
851
851
|
}) })]
|
|
852
852
|
});
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function pt({ children: e, label: t, title: n }) {
|
|
855
855
|
let { sheet: r } = b();
|
|
856
|
-
return /* @__PURE__ */
|
|
856
|
+
return /* @__PURE__ */ N(g, {
|
|
857
857
|
"aria-label": r ? n : t,
|
|
858
|
-
children: /* @__PURE__ */
|
|
858
|
+
children: /* @__PURE__ */ N(x, { children: /* @__PURE__ */ N("div", {
|
|
859
859
|
"data-part": "help-note",
|
|
860
860
|
"data-part-help-note": "",
|
|
861
861
|
children: e
|
|
@@ -864,33 +864,33 @@ function ft({ children: e, label: t, title: n }) {
|
|
|
864
864
|
}
|
|
865
865
|
//#endregion
|
|
866
866
|
//#region src/dashboard-grid/dashboard-widget.tsx
|
|
867
|
-
var
|
|
867
|
+
var V = [
|
|
868
868
|
"start",
|
|
869
869
|
"end",
|
|
870
870
|
"bottom",
|
|
871
871
|
"bottom-start",
|
|
872
872
|
"bottom-end"
|
|
873
873
|
];
|
|
874
|
-
function
|
|
874
|
+
function mt(e, t) {
|
|
875
875
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
876
876
|
}
|
|
877
|
-
var
|
|
878
|
-
function
|
|
879
|
-
let a =
|
|
877
|
+
var H = (e) => e.reason === "keyboard" ? "keyboard" : "pointer";
|
|
878
|
+
function U({ register: e, triggerRef: r, ...i }) {
|
|
879
|
+
let a = j(r);
|
|
880
880
|
a.current = r;
|
|
881
881
|
let o = O((t) => {
|
|
882
|
-
e(t),
|
|
882
|
+
e(t), mt(a.current, t);
|
|
883
883
|
}, [e]);
|
|
884
|
-
return /* @__PURE__ */
|
|
884
|
+
return /* @__PURE__ */ N("button", {
|
|
885
885
|
...T(i, "part", "handle"),
|
|
886
886
|
type: "button",
|
|
887
887
|
ref: o,
|
|
888
|
-
children: /* @__PURE__ */
|
|
888
|
+
children: /* @__PURE__ */ N(n, { children: /* @__PURE__ */ N(t, { name: "grip-horizontal" }) })
|
|
889
889
|
});
|
|
890
890
|
}
|
|
891
|
-
function
|
|
892
|
-
let { value: m, title: ee } = p, h =
|
|
893
|
-
|
|
891
|
+
function W({ headingLevel: e, defaultColumns: t, defaultRows: n, minColumns: r, maxColumns: i, minRows: a, maxRows: o, rows: s, movable: c, resizable: l, removable: u, loading: d = !1, ref: f, ...p }) {
|
|
892
|
+
let { value: m, title: ee } = p, h = Ke("DashboardWidget"), g = k(Ge);
|
|
893
|
+
ge(() => {
|
|
894
894
|
g?.({
|
|
895
895
|
value: m,
|
|
896
896
|
title: ee,
|
|
@@ -920,18 +920,18 @@ function G({ headingLevel: e, defaultColumns: t, defaultRows: n, minColumns: r,
|
|
|
920
920
|
l,
|
|
921
921
|
u
|
|
922
922
|
]);
|
|
923
|
-
let _ = oe(), v = h.slots.get(m), y = `${
|
|
923
|
+
let _ = oe(), v = h.slots.get(m), y = `${me()}-title`, b = `${y}-description`, x = C(), S = w({
|
|
924
924
|
delay: x.delay ?? 0,
|
|
925
925
|
loading: d,
|
|
926
926
|
minDuration: x.minDuration ?? 0
|
|
927
927
|
}), { registerWidget: te, registerHandle: ne, registerCard: re } = h, ie = O((e) => {
|
|
928
|
-
te(m, e),
|
|
928
|
+
te(m, e), mt(f, e);
|
|
929
929
|
}, [
|
|
930
930
|
f,
|
|
931
931
|
te,
|
|
932
932
|
m
|
|
933
933
|
]), ae = O((e) => re(m, e), [re, m]), se = O((e) => ne(m, e), [ne, m]), ce = e ?? h.headingLevel, T = ce === "auto" ? Math.max(2, _) : ce;
|
|
934
|
-
return v === void 0 ? null : /* @__PURE__ */
|
|
934
|
+
return v === void 0 ? null : /* @__PURE__ */ N(ht, {
|
|
935
935
|
...p,
|
|
936
936
|
headingLevel: T,
|
|
937
937
|
rows: s,
|
|
@@ -953,25 +953,25 @@ function G({ headingLevel: e, defaultColumns: t, defaultRows: n, minColumns: r,
|
|
|
953
953
|
onResizePointerDown: h.onResizePointerDown
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
|
-
var
|
|
957
|
-
let { tile:
|
|
956
|
+
var ht = fe(function({ rows: e, value: g, title: _, description: v, help: y, children: b, headingLevel: x, busy: C = !1, status: w = "ready", skeleton: oe, emptyTitle: ce, emptyDescription: E, emptyAction: le, errorTitle: ue, errorDescription: D, onRetry: de, detailHref: fe, renderDetail: O, onDetail: k, actions: pe, footer: me, fill: he, size: ge, render: A, style: j, drawnSlot: M, painted: ve, titleId: ye, descriptionId: be, setWidget: xe, setCard: Se, setHandle: Ce, t: F, editing: we, sizeClass: Ee, statusId: I, move: De, resize: Oe, hide: ke, onHandleKeyDown: Ae, onResizePointerDown: je, ...Me }) {
|
|
957
|
+
let { tile: L, can: R } = M, Ne = `h${x}`, Pe = { title: _ }, Fe = Ee !== "expanded", Ie = G(y), Le = G(v), Re = /* @__PURE__ */ N(Ne, {
|
|
958
958
|
"data-part": "title",
|
|
959
959
|
"data-part-title": "",
|
|
960
|
-
id:
|
|
960
|
+
id: ye,
|
|
961
961
|
children: _
|
|
962
|
-
}),
|
|
963
|
-
"aria-label":
|
|
962
|
+
}), ze = fe === void 0 ? k === void 0 ? null : /* @__PURE__ */ N(d, {
|
|
963
|
+
"aria-label": F("detail", Pe),
|
|
964
964
|
size: "sm",
|
|
965
965
|
tone: "secondary",
|
|
966
966
|
variant: "ghost",
|
|
967
967
|
onClick: k,
|
|
968
|
-
render: (e) => /* @__PURE__ */
|
|
969
|
-
children: /* @__PURE__ */
|
|
968
|
+
render: (e) => /* @__PURE__ */ N("button", { ...T(e, "part", "detail") }),
|
|
969
|
+
children: /* @__PURE__ */ N(n, {
|
|
970
970
|
directional: !0,
|
|
971
|
-
children: /* @__PURE__ */
|
|
971
|
+
children: /* @__PURE__ */ N(t, { name: "external" })
|
|
972
972
|
})
|
|
973
|
-
}) : /* @__PURE__ */
|
|
974
|
-
"aria-label":
|
|
973
|
+
}) : /* @__PURE__ */ N(d, {
|
|
974
|
+
"aria-label": F("detail", Pe),
|
|
975
975
|
size: "sm",
|
|
976
976
|
tone: "secondary",
|
|
977
977
|
variant: "ghost",
|
|
@@ -981,187 +981,193 @@ var mt = fe(function({ rows: e, value: g, title: _, description: v, help: y, chi
|
|
|
981
981
|
href: fe,
|
|
982
982
|
onClick: k
|
|
983
983
|
};
|
|
984
|
-
return O === void 0 ? /* @__PURE__ */
|
|
984
|
+
return O === void 0 ? /* @__PURE__ */ N("a", { ...r }) : O(r);
|
|
985
985
|
},
|
|
986
|
-
children: /* @__PURE__ */
|
|
986
|
+
children: /* @__PURE__ */ N(n, {
|
|
987
987
|
directional: !0,
|
|
988
|
-
children: /* @__PURE__ */
|
|
988
|
+
children: /* @__PURE__ */ N(t, { name: "external" })
|
|
989
989
|
})
|
|
990
|
-
}),
|
|
990
|
+
}), Be = (e) => (t) => De(g, e, H(t), t.source), Ve = (e, t) => (n) => Oe(g, {
|
|
991
991
|
columns: e,
|
|
992
992
|
rows: t
|
|
993
|
-
},
|
|
994
|
-
onKeyDown: (e) =>
|
|
995
|
-
render: ({ ref: e, ...t }) => /* @__PURE__ */
|
|
993
|
+
}, H(n), n.source), Ue = L.resizable && Ee !== "compact", We = we && (L.movable || Ue || L.removable) ? /* @__PURE__ */ P(r, { children: [/* @__PURE__ */ N(s, {
|
|
994
|
+
onKeyDown: (e) => Ae(g, e),
|
|
995
|
+
render: ({ ref: e, ...t }) => /* @__PURE__ */ N(U, {
|
|
996
996
|
...t,
|
|
997
|
-
"aria-label":
|
|
998
|
-
"aria-describedby":
|
|
999
|
-
"aria-keyshortcuts":
|
|
1000
|
-
register:
|
|
997
|
+
"aria-label": F("handle", Pe),
|
|
998
|
+
"aria-describedby": I,
|
|
999
|
+
"aria-keyshortcuts": Te(L.removable),
|
|
1000
|
+
register: Ce,
|
|
1001
1001
|
triggerRef: e
|
|
1002
1002
|
})
|
|
1003
|
-
}), /* @__PURE__ */
|
|
1004
|
-
|
|
1005
|
-
/* @__PURE__ */
|
|
1006
|
-
disabled: !
|
|
1007
|
-
onSelect:
|
|
1008
|
-
children: [/* @__PURE__ */
|
|
1003
|
+
}), /* @__PURE__ */ P(l, { children: [
|
|
1004
|
+
L.movable ? /* @__PURE__ */ P(_e, { children: [
|
|
1005
|
+
/* @__PURE__ */ P(i, {
|
|
1006
|
+
disabled: !R.up,
|
|
1007
|
+
onSelect: Be("up"),
|
|
1008
|
+
children: [/* @__PURE__ */ N(a, { children: F("moveUp") }), /* @__PURE__ */ N(c, { keys: "Alt+ArrowUp" })]
|
|
1009
1009
|
}),
|
|
1010
|
-
/* @__PURE__ */
|
|
1011
|
-
disabled: !
|
|
1012
|
-
onSelect:
|
|
1013
|
-
children: [/* @__PURE__ */
|
|
1010
|
+
/* @__PURE__ */ P(i, {
|
|
1011
|
+
disabled: !R.down,
|
|
1012
|
+
onSelect: Be("down"),
|
|
1013
|
+
children: [/* @__PURE__ */ N(a, { children: F("moveDown") }), /* @__PURE__ */ N(c, { keys: "Alt+ArrowDown" })]
|
|
1014
1014
|
}),
|
|
1015
|
-
|
|
1016
|
-
disabled: !
|
|
1017
|
-
onSelect:
|
|
1018
|
-
children: [/* @__PURE__ */
|
|
1019
|
-
}), /* @__PURE__ */
|
|
1020
|
-
disabled: !
|
|
1021
|
-
onSelect:
|
|
1022
|
-
children: [/* @__PURE__ */
|
|
1015
|
+
Fe ? null : /* @__PURE__ */ P(_e, { children: [/* @__PURE__ */ P(i, {
|
|
1016
|
+
disabled: !R.left,
|
|
1017
|
+
onSelect: Be("left"),
|
|
1018
|
+
children: [/* @__PURE__ */ N(a, { children: F("moveStart") }), /* @__PURE__ */ N(c, { keys: "Alt+ArrowLeft" })]
|
|
1019
|
+
}), /* @__PURE__ */ P(i, {
|
|
1020
|
+
disabled: !R.right,
|
|
1021
|
+
onSelect: Be("right"),
|
|
1022
|
+
children: [/* @__PURE__ */ N(a, { children: F("moveEnd") }), /* @__PURE__ */ N(c, { keys: "Alt+ArrowRight" })]
|
|
1023
1023
|
})] })
|
|
1024
1024
|
] }) : null,
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
/* @__PURE__ */
|
|
1028
|
-
disabled: !
|
|
1029
|
-
onSelect:
|
|
1030
|
-
children: [/* @__PURE__ */
|
|
1025
|
+
L.movable && Ue ? /* @__PURE__ */ N(o, {}) : null,
|
|
1026
|
+
Ue ? /* @__PURE__ */ P(_e, { children: [
|
|
1027
|
+
/* @__PURE__ */ P(i, {
|
|
1028
|
+
disabled: !R.wider,
|
|
1029
|
+
onSelect: Ve(1, 0),
|
|
1030
|
+
children: [/* @__PURE__ */ N(a, { children: F("wider") }), /* @__PURE__ */ N(c, { keys: "Shift+ArrowRight" })]
|
|
1031
1031
|
}),
|
|
1032
|
-
/* @__PURE__ */
|
|
1033
|
-
disabled: !
|
|
1034
|
-
onSelect:
|
|
1035
|
-
children: [/* @__PURE__ */
|
|
1032
|
+
/* @__PURE__ */ P(i, {
|
|
1033
|
+
disabled: !R.narrower,
|
|
1034
|
+
onSelect: Ve(-1, 0),
|
|
1035
|
+
children: [/* @__PURE__ */ N(a, { children: F("narrower") }), /* @__PURE__ */ N(c, { keys: "Shift+ArrowLeft" })]
|
|
1036
1036
|
}),
|
|
1037
|
-
/* @__PURE__ */
|
|
1038
|
-
disabled: !
|
|
1039
|
-
onSelect:
|
|
1040
|
-
children: [/* @__PURE__ */
|
|
1037
|
+
/* @__PURE__ */ P(i, {
|
|
1038
|
+
disabled: !R.taller,
|
|
1039
|
+
onSelect: Ve(0, 1),
|
|
1040
|
+
children: [/* @__PURE__ */ N(a, { children: F("taller") }), /* @__PURE__ */ N(c, { keys: "Shift+ArrowDown" })]
|
|
1041
1041
|
}),
|
|
1042
|
-
/* @__PURE__ */
|
|
1043
|
-
disabled: !
|
|
1044
|
-
onSelect:
|
|
1045
|
-
children: [/* @__PURE__ */
|
|
1042
|
+
/* @__PURE__ */ P(i, {
|
|
1043
|
+
disabled: !R.shorter,
|
|
1044
|
+
onSelect: Ve(0, -1),
|
|
1045
|
+
children: [/* @__PURE__ */ N(a, { children: F("shorter") }), /* @__PURE__ */ N(c, { keys: "Shift+ArrowUp" })]
|
|
1046
1046
|
})
|
|
1047
1047
|
] }) : null,
|
|
1048
|
-
|
|
1048
|
+
L.removable ? /* @__PURE__ */ P(_e, { children: [L.movable || Ue ? /* @__PURE__ */ N(o, {}) : null, /* @__PURE__ */ P(i, {
|
|
1049
1049
|
tone: "danger",
|
|
1050
|
-
onSelect: (e) =>
|
|
1051
|
-
children: [/* @__PURE__ */
|
|
1050
|
+
onSelect: (e) => ke(g, "remove", e.source),
|
|
1051
|
+
children: [/* @__PURE__ */ N(a, { children: F("hide") }), /* @__PURE__ */ N(c, { keys: "Delete" })]
|
|
1052
1052
|
})] }) : null
|
|
1053
|
-
] })] }) : null,
|
|
1053
|
+
] })] }) : null, Ge = (e) => /* @__PURE__ */ N("div", {
|
|
1054
1054
|
"data-part": "message",
|
|
1055
1055
|
"data-part-message": "",
|
|
1056
|
-
children: /* @__PURE__ */
|
|
1056
|
+
children: /* @__PURE__ */ P(ae, {
|
|
1057
1057
|
status: e,
|
|
1058
1058
|
reach: "section",
|
|
1059
1059
|
align: "center",
|
|
1060
1060
|
live: e === "error" ? "polite" : "off",
|
|
1061
1061
|
children: [
|
|
1062
|
-
/* @__PURE__ */
|
|
1063
|
-
e === "empty" && le !== void 0 ? /* @__PURE__ */
|
|
1064
|
-
e === "error" && de !== void 0 ? /* @__PURE__ */
|
|
1062
|
+
/* @__PURE__ */ P(ie, { children: [/* @__PURE__ */ N(re, { children: e === "empty" ? ce ?? F("emptyTitle") : ue ?? F("errorTitle") }), (e === "empty" ? E : D) === void 0 ? null : /* @__PURE__ */ N(te, { children: e === "empty" ? E : D })] }),
|
|
1063
|
+
e === "empty" && le !== void 0 ? /* @__PURE__ */ N(ne, { children: le }) : null,
|
|
1064
|
+
e === "error" && de !== void 0 ? /* @__PURE__ */ N(ne, { children: /* @__PURE__ */ N(u, {
|
|
1065
1065
|
size: "sm",
|
|
1066
1066
|
tone: "secondary",
|
|
1067
1067
|
variant: "outline",
|
|
1068
|
-
start: /* @__PURE__ */
|
|
1068
|
+
start: /* @__PURE__ */ N(n, { children: /* @__PURE__ */ N(t, { name: "rotate-ccw" }) }),
|
|
1069
1069
|
onClick: de,
|
|
1070
|
-
render: (e) => /* @__PURE__ */
|
|
1071
|
-
children:
|
|
1070
|
+
render: (e) => /* @__PURE__ */ N("button", { ...T(e, "part", "retry") }),
|
|
1071
|
+
children: F("retry")
|
|
1072
1072
|
}) }) : null
|
|
1073
1073
|
]
|
|
1074
1074
|
})
|
|
1075
|
-
}),
|
|
1075
|
+
}), Ke = ve ? /* @__PURE__ */ N("div", {
|
|
1076
1076
|
"data-part": "skeleton",
|
|
1077
1077
|
"data-part-skeleton": "",
|
|
1078
|
-
children: oe ?? /* @__PURE__ */
|
|
1079
|
-
}) : w === "empty" ?
|
|
1080
|
-
...
|
|
1078
|
+
children: oe ?? /* @__PURE__ */ N(S, { shape: "block" })
|
|
1079
|
+
}) : w === "empty" ? Ge("empty") : w === "error" ? Ge("error") : b, qe = se({
|
|
1080
|
+
...Me,
|
|
1081
1081
|
style: {
|
|
1082
|
-
...
|
|
1083
|
-
...
|
|
1084
|
-
...
|
|
1082
|
+
...He(L),
|
|
1083
|
+
...M.order === void 0 ? {} : { order: M.order },
|
|
1084
|
+
...j
|
|
1085
1085
|
},
|
|
1086
1086
|
"data-part": "widget",
|
|
1087
1087
|
"data-key": g,
|
|
1088
1088
|
"data-rows": e,
|
|
1089
1089
|
"data-status": w,
|
|
1090
|
-
...
|
|
1091
|
-
...
|
|
1092
|
-
...
|
|
1093
|
-
...
|
|
1094
|
-
...
|
|
1095
|
-
ref:
|
|
1096
|
-
children: /* @__PURE__ */
|
|
1097
|
-
/* @__PURE__ */
|
|
1098
|
-
fill:
|
|
1099
|
-
size:
|
|
1100
|
-
render: (e) => /* @__PURE__ */
|
|
1090
|
+
...ve ? { "data-loading": "" } : {},
|
|
1091
|
+
...L.movable ? { "data-movable": "" } : {},
|
|
1092
|
+
...L.resizable ? { "data-resizable": "" } : {},
|
|
1093
|
+
...M.dragging ? { "data-dragging": "" } : {},
|
|
1094
|
+
...M.resizing ? { "data-resizing": "" } : {},
|
|
1095
|
+
ref: xe,
|
|
1096
|
+
children: /* @__PURE__ */ P(_e, { children: [
|
|
1097
|
+
/* @__PURE__ */ P(p, {
|
|
1098
|
+
fill: he,
|
|
1099
|
+
size: ge,
|
|
1100
|
+
render: (e) => /* @__PURE__ */ N("article", {
|
|
1101
1101
|
...e,
|
|
1102
|
-
ref:
|
|
1103
|
-
"aria-labelledby":
|
|
1104
|
-
"aria-describedby":
|
|
1105
|
-
"aria-busy":
|
|
1102
|
+
ref: Se,
|
|
1103
|
+
"aria-labelledby": ye,
|
|
1104
|
+
"aria-describedby": Le ? be : void 0,
|
|
1105
|
+
"aria-busy": ve || C || void 0
|
|
1106
1106
|
}),
|
|
1107
1107
|
children: [
|
|
1108
|
-
/* @__PURE__ */
|
|
1109
|
-
|
|
1108
|
+
/* @__PURE__ */ P(m, { children: [
|
|
1109
|
+
Ie ? /* @__PURE__ */ P("div", {
|
|
1110
1110
|
"data-part": "title-row",
|
|
1111
1111
|
"data-part-title-row": "",
|
|
1112
|
-
children: [
|
|
1113
|
-
label:
|
|
1112
|
+
children: [Re, /* @__PURE__ */ N(B, {
|
|
1113
|
+
label: F("help", Pe),
|
|
1114
1114
|
title: _,
|
|
1115
1115
|
children: y
|
|
1116
1116
|
})]
|
|
1117
|
-
}),
|
|
1118
|
-
|
|
1117
|
+
}) : Re,
|
|
1118
|
+
Le ? /* @__PURE__ */ N("p", {
|
|
1119
1119
|
"data-part": "description",
|
|
1120
1120
|
"data-part-description": "",
|
|
1121
|
-
id:
|
|
1121
|
+
id: be,
|
|
1122
1122
|
children: v
|
|
1123
|
-
}),
|
|
1124
|
-
|
|
1123
|
+
}) : null,
|
|
1124
|
+
G(pe) || ze !== null ? /* @__PURE__ */ P(h, { children: [pe, ze] }) : null
|
|
1125
1125
|
] }),
|
|
1126
|
-
/* @__PURE__ */
|
|
1126
|
+
/* @__PURE__ */ P(ee, { children: [C && !ve ? /* @__PURE__ */ N("span", {
|
|
1127
1127
|
"data-part": "busy-indicator",
|
|
1128
1128
|
"data-part-busy-indicator": "",
|
|
1129
1129
|
"aria-hidden": "true"
|
|
1130
|
-
}) : null,
|
|
1131
|
-
|
|
1130
|
+
}) : null, Ke] }),
|
|
1131
|
+
G(me) ? /* @__PURE__ */ N(f, { children: me }) : null
|
|
1132
1132
|
]
|
|
1133
1133
|
}),
|
|
1134
|
-
|
|
1135
|
-
|
|
1134
|
+
We,
|
|
1135
|
+
we && Ue ? V.map((e) => /* @__PURE__ */ N("span", {
|
|
1136
1136
|
"data-part": "resize-handle",
|
|
1137
1137
|
"data-part-resize-handle": "",
|
|
1138
1138
|
"data-edge": e,
|
|
1139
|
-
...
|
|
1139
|
+
...M.edge === e ? { "data-active": "" } : {},
|
|
1140
1140
|
"aria-hidden": "true",
|
|
1141
|
-
onPointerDown: (t) =>
|
|
1141
|
+
onPointerDown: (t) => je(g, e, t)
|
|
1142
1142
|
}, e)) : null,
|
|
1143
|
-
|
|
1143
|
+
M.readout === null ? null : /* @__PURE__ */ N("span", {
|
|
1144
1144
|
"data-part": "size-readout",
|
|
1145
1145
|
"data-part-size-readout": "",
|
|
1146
|
-
"data-edge":
|
|
1146
|
+
"data-edge": M.edge ?? void 0,
|
|
1147
1147
|
"aria-hidden": "true",
|
|
1148
|
-
children:
|
|
1148
|
+
children: M.readout
|
|
1149
1149
|
})
|
|
1150
1150
|
] })
|
|
1151
1151
|
});
|
|
1152
|
-
return
|
|
1153
|
-
})
|
|
1154
|
-
function
|
|
1152
|
+
return A === void 0 ? /* @__PURE__ */ N("li", { ...qe }) : A(qe);
|
|
1153
|
+
});
|
|
1154
|
+
function G(e) {
|
|
1155
|
+
return e != null && e !== !1 && e !== "";
|
|
1156
|
+
}
|
|
1157
|
+
//#endregion
|
|
1158
|
+
//#region src/dashboard-grid/use-persisted-dashboard-layout.ts
|
|
1159
|
+
var K = [];
|
|
1160
|
+
function gt() {
|
|
1155
1161
|
try {
|
|
1156
1162
|
return typeof window > "u" ? null : window.localStorage;
|
|
1157
1163
|
} catch {
|
|
1158
1164
|
return null;
|
|
1159
1165
|
}
|
|
1160
1166
|
}
|
|
1161
|
-
function
|
|
1162
|
-
let i =
|
|
1163
|
-
return
|
|
1164
|
-
if (r !== void 0) return r(() => o(
|
|
1167
|
+
function _t({ key: e, storage: t, defaultLayout: n = K, subscribe: r }) {
|
|
1168
|
+
let i = A(() => t === void 0 ? gt() : t, [t]), [a, o] = M(() => vt(i, e, n));
|
|
1169
|
+
return pe(() => {
|
|
1170
|
+
if (r !== void 0) return r(() => o(vt(i, e, n)));
|
|
1165
1171
|
}, [
|
|
1166
1172
|
n,
|
|
1167
1173
|
e,
|
|
@@ -1173,7 +1179,7 @@ function gt({ key: e, storage: t, defaultLayout: n = ht, subscribe: r }) {
|
|
|
1173
1179
|
onLayoutChange: O((t) => {
|
|
1174
1180
|
o(t);
|
|
1175
1181
|
try {
|
|
1176
|
-
i?.setItem(e,
|
|
1182
|
+
i?.setItem(e, Le(t));
|
|
1177
1183
|
} catch {}
|
|
1178
1184
|
}, [e, i]),
|
|
1179
1185
|
clear: O(() => {
|
|
@@ -1188,14 +1194,14 @@ function gt({ key: e, storage: t, defaultLayout: n = ht, subscribe: r }) {
|
|
|
1188
1194
|
])
|
|
1189
1195
|
};
|
|
1190
1196
|
}
|
|
1191
|
-
function
|
|
1197
|
+
function vt(e, t, n) {
|
|
1192
1198
|
let r;
|
|
1193
1199
|
try {
|
|
1194
1200
|
r = e?.getItem(t) ?? null;
|
|
1195
1201
|
} catch {
|
|
1196
1202
|
r = null;
|
|
1197
1203
|
}
|
|
1198
|
-
return (r === null ? null :
|
|
1204
|
+
return (r === null ? null : je(r)) ?? n;
|
|
1199
1205
|
}
|
|
1200
1206
|
//#endregion
|
|
1201
|
-
export {
|
|
1207
|
+
export { Xe as a, qe as i, W as n, Ye as o, ft as r, _t as t };
|