@slotted/react 0.1.0-beta.1 → 0.1.0-beta.3
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/README.md +4 -0
- package/dist/{action-bar-C7cGnEyJ.js → action-bar-OACchRZw.js} +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/{action-sheet-D8Glxl7l.js → action-sheet-C60BWUW8.js} +1 -1
- package/dist/action-sheet.js +1 -1
- package/dist/{app-shell-CXwma4XA.js → app-shell-CmYvnu_7.js} +310 -310
- package/dist/app-shell.js +1 -1
- package/dist/button-Db9f3Bxn.js +99 -0
- package/dist/button.js +2 -2
- package/dist/cascader-D1AhTyBL.js +1097 -0
- package/dist/cascader.js +1 -1
- package/dist/chart-O0ZhkzJe.js +966 -0
- package/dist/chart.js +1 -1
- package/dist/{checkbox-CwUOc-3u.js → checkbox-DfxFHZaU.js} +3 -3
- package/dist/{checkbox-group-BYTjgAcX.js → checkbox-group-9sDgrV5Z.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{color-picker-BlPR4g4H.js → color-picker-CwbWzCKg.js} +4 -4
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-CNZ7Xk5_.js → column-manager-CTtizVhm.js} +6 -6
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-C46GRqAA.js → combobox-BVMI9lg8.js} +296 -292
- package/dist/combobox.js +1 -1
- package/dist/{command-palette-BqRyNR9Y.js → command-palette-DFLbSOiv.js} +1 -1
- package/dist/command-palette.js +1 -1
- package/dist/{context-menu-DMiHdggw.js → context-menu-BuST6W94.js} +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/currency-field-DD9A5U3D.js +455 -0
- package/dist/currency-field.js +1 -1
- package/dist/dashboard-grid-CBMP_-JV.js +1043 -0
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-BUgOJuGp.js → data-grid-BKaGMqIm.js} +19 -19
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-2xfDpHVC.js → data-list-oICmxGkA.js} +5 -5
- package/dist/data-list.js +1 -1
- package/dist/{date-field-D_kLLTfL.js → date-field-CYcN6diW.js} +1 -1
- package/dist/date-field.js +1 -1
- package/dist/date-picker-4X-_2ltN.js +264 -0
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker-CNOAtHwU.js +471 -0
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-T1gNdJ7t.js → datetime-field-B8TrmsDK.js} +1 -1
- package/dist/datetime-field.js +1 -1
- package/dist/datetime-picker-HDVlUhzy.js +629 -0
- package/dist/datetime-picker.js +1 -1
- package/dist/datetime-range-picker-IqOFJtdW.js +994 -0
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{dialog-Dmy-m_pe.js → dialog-BHYDDj1S.js} +112 -113
- package/dist/dialog.js +1 -1
- package/dist/docs/AGENTS.snippet.md +10 -0
- package/dist/docs/app-shell.json +1 -1
- package/dist/docs/button-group.json +1 -0
- package/dist/docs/button-group.md +1 -1
- package/dist/docs/button.json +45 -11
- package/dist/docs/button.md +10 -6
- package/dist/docs/chart.json +7 -0
- package/dist/docs/chart.md +1 -0
- package/dist/docs/currency-field.json +32 -1
- package/dist/docs/currency-field.md +4 -1
- package/dist/docs/dialog.examples.md +26 -0
- package/dist/docs/dialog.json +14 -2
- package/dist/docs/dialog.md +1 -1
- package/dist/docs/event-calendar.json +7 -0
- package/dist/docs/event-calendar.md +1 -0
- package/dist/docs/guidelines/README.md +27 -0
- package/dist/docs/guidelines/async-feedback.md +108 -0
- package/dist/docs/guidelines/browsing.md +74 -0
- package/dist/docs/guidelines/builders.md +97 -0
- package/dist/docs/guidelines/composition.md +129 -0
- package/dist/docs/guidelines/conversations.md +59 -0
- package/dist/docs/guidelines/errors-and-conflicts.md +71 -0
- package/dist/docs/guidelines/forms.md +192 -0
- package/dist/docs/guidelines/index.md +121 -0
- package/dist/docs/guidelines/layout-alignment.md +95 -0
- package/dist/docs/guidelines/ledgers.md +45 -0
- package/dist/docs/guidelines/list-pages.md +165 -0
- package/dist/docs/guidelines/overviews.md +66 -0
- package/dist/docs/guidelines/own-elements.md +115 -0
- package/dist/docs/guidelines/reading-permissions.md +55 -0
- package/dist/docs/guidelines/record-pages.md +178 -0
- package/dist/docs/guidelines/reports.md +123 -0
- package/dist/docs/guidelines/shell-composition.md +94 -0
- package/dist/docs/guidelines/workspaces.md +46 -0
- package/dist/docs/index.md +12 -0
- package/dist/docs/list.json +26 -1
- package/dist/docs/list.md +4 -1
- package/dist/docs/popover.json +1 -1
- package/dist/docs/progress-indicator.json +1 -2
- package/dist/docs/progress-indicator.md +2 -2
- package/dist/docs/segmented-control.json +29 -1
- package/dist/docs/segmented-control.md +17 -1
- package/dist/docs/side-navigation.json +2 -2
- package/dist/docs/side-navigation.md +19 -4
- package/dist/docs/skills/build-own-element/SKILL.md +90 -0
- package/dist/docs/skills/compose-screen/SKILL.md +76 -0
- package/dist/docs/skills/index.md +9 -0
- package/dist/docs/skills/review-screen/SKILL.md +70 -0
- package/dist/docs/skills/theme-app/SKILL.md +79 -0
- package/dist/docs/skills/waiting-states/SKILL.md +139 -0
- package/dist/docs/split-button.json +1 -0
- package/dist/docs/split-button.md +1 -1
- package/dist/docs/stat-card.json +2 -0
- package/dist/docs/stat-card.md +1 -1
- package/dist/docs/table.examples.md +1 -1
- package/dist/docs/table.json +78 -2
- package/dist/docs/table.md +12 -1
- package/dist/docs/tabs.examples.md +1 -1
- package/dist/docs/tabs.json +2 -5
- package/dist/docs/tabs.md +1 -1
- package/dist/docs/toggle-group.json +14 -3
- package/dist/docs/toggle-group.md +3 -3
- package/dist/docs/toggle.json +12 -3
- package/dist/docs/toggle.md +3 -3
- package/dist/docs/tokens.md +448 -0
- package/dist/docs/top-navigation.examples.md +23 -5
- package/dist/docs/top-navigation.json +2 -2
- package/dist/docs/tour.json +1 -1
- package/dist/drawer-LXM44eso.js +757 -0
- package/dist/drawer.js +1 -1
- package/dist/entity-picker-CPDd73JR.js +1110 -0
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-BFdeGfC-.js → event-calendar-CnF3iIZD.js} +391 -390
- package/dist/event-calendar.js +1 -1
- package/dist/{field-BJh5HI7w.js → field-NJaCxl2h.js} +1 -1
- package/dist/{field-group-BDaspQPh.js → field-group-hAzVa2O9.js} +1 -1
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/{filter-bar-b2Q9BZHf.js → filter-bar-D_xDcAp2.js} +20 -20
- package/dist/filter-bar.js +1 -1
- package/dist/{hover-card-CSDbA6zd.js → hover-card-BJE5dtaQ.js} +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/{icon-button-TnvMhK4o.js → icon-button-CCWkCDMs.js} +26 -24
- package/dist/import-export-center-DpY2DGBZ.js +813 -0
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +85 -84
- package/dist/{list-C1Y8MWp2.js → list-WsQ6ZzCa.js} +16 -12
- package/dist/{list-item-DN_mcouU.js → list-item-DpCwZIrd.js} +1 -1
- package/dist/list-item.js +1 -1
- package/dist/list.js +1 -1
- package/dist/{listbox-4WvqR0JF.js → listbox-Dv856z9I.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{loading-overlay-B83XFctM.js → loading-overlay-COfnckse.js} +73 -73
- package/dist/loading-overlay.js +1 -1
- package/dist/{markdown-CpfDn1LF.js → markdown-CeG8mUbI.js} +2 -2
- package/dist/markdown.js +1 -1
- package/dist/menu-parts-W58pVNUt.js +786 -0
- package/dist/menu.js +1 -1
- package/dist/{menubar-CtGavUTO.js → menubar-b2CruimJ.js} +1 -1
- package/dist/menubar.js +1 -1
- package/dist/{multi-select-CfzsvAeI.js → multi-select-DQ5ds0fX.js} +432 -437
- package/dist/multi-select.js +1 -1
- package/dist/{notification-center-C4pEHJ3h.js → notification-center-Sz54IziY.js} +2 -2
- package/dist/notification-center.js +1 -1
- package/dist/{number-field-J_koud1r.js → number-field-BFIAmv-z.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-Bf8JUiVR.js → otp-input-BNQhuKaT.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/popover-Be7JWbGJ.js +475 -0
- package/dist/popover.js +1 -1
- package/dist/press-selection-DjOllE2B.js +29 -0
- package/dist/press-selection.js +2 -0
- package/dist/{prompt-composer-B7MMcER0.js → prompt-composer-BxpdkTpZ.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-BFpjhDkV.js → radio-group-BaVIP9UH.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-D1EsADFM.js → rating-DYBQBzwB.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{saved-views-BueW-Lyb.js → saved-views-DlE_--Z9.js} +5 -5
- package/dist/saved-views.js +1 -1
- package/dist/{segmented-control-Cy_5D3Nj.js → segmented-control-DmuOGiu6.js} +28 -24
- package/dist/segmented-control.js +1 -1
- package/dist/{select-UTwKjheK.js → select-DOFqPy26.js} +334 -347
- package/dist/select.js +1 -1
- package/dist/{side-navigation-YUiJRpng.js → side-navigation-CBLtCzuJ.js} +186 -187
- package/dist/side-navigation.js +1 -1
- package/dist/{slider-B432T6nD.js → slider-DTes4HLF.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{split-button-DHF3v3PJ.js → split-button-CPgHiy9G.js} +2 -2
- package/dist/split-button.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/{switch-4MHwKmkz.js → switch-DQzuIhPX.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/{table-CzBIw9ng.js → table-Cipi2c5X.js} +206 -173
- package/dist/table.js +2 -2
- package/dist/{tags-input-DLdHLWrH.js → tags-input-CcOkm0AW.js} +1 -1
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-BktZbmzD.js → text-field-DLfIZ0fk.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-JAK2RJl0.js → textarea-CBJBJBi6.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-DCG_VtGO.js → time-field-DrhiCtUl.js} +1 -1
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-DuT1tf5-.js → time-picker-CRQsMJbQ.js} +102 -102
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-HwBvrrXN.js → time-range-picker-DlZJsj1e.js} +202 -202
- package/dist/time-range-picker.js +1 -1
- package/dist/{toast-wI8BtPY5.js → toast-Bf3e0AgC.js} +157 -157
- package/dist/toast.js +1 -1
- package/dist/toggle-group-7iBR9Rn1.js +142 -0
- package/dist/toggle-group.js +1 -1
- package/dist/{toolbar-CDQTydDx.js → toolbar-DDZpEftQ.js} +1 -1
- package/dist/toolbar.js +1 -1
- package/dist/{tooltip-BggqPDcW.js → tooltip-DbKTPe_i.js} +108 -109
- package/dist/tooltip.js +1 -1
- package/dist/{top-navigation-COQZsNqW.js → top-navigation-e-tWMGNr.js} +255 -256
- package/dist/top-navigation.js +1 -1
- package/dist/{tour-C11DmYTC.js → tour-BTdt716T.js} +180 -180
- package/dist/tour.js +1 -1
- package/dist/{transfer-JA9TWjAw.js → transfer-CqZOTLMP.js} +6 -6
- package/dist/transfer.js +1 -1
- package/dist/types/app-shell/app-shell.d.ts.map +1 -1
- package/dist/types/button/button-link.d.ts +1 -1
- package/dist/types/button/button-link.d.ts.map +1 -1
- package/dist/types/button/button-root.d.ts +5 -3
- package/dist/types/button/button-root.d.ts.map +1 -1
- package/dist/types/button/button.constants.d.ts +2 -1
- package/dist/types/button/button.constants.d.ts.map +1 -1
- package/dist/types/button/button.d.ts +1 -1
- package/dist/types/button/button.d.ts.map +1 -1
- package/dist/types/button/button.types.d.ts +9 -2
- package/dist/types/button/button.types.d.ts.map +1 -1
- package/dist/types/button/index.d.ts +1 -1
- package/dist/types/button/index.d.ts.map +1 -1
- package/dist/types/button/toggle-button.d.ts +1 -1
- package/dist/types/button/toggle-button.d.ts.map +1 -1
- package/dist/types/chart/chart.d.ts.map +1 -1
- package/dist/types/combobox/combobox-collection.d.ts +1 -0
- package/dist/types/combobox/combobox-collection.d.ts.map +1 -1
- package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
- package/dist/types/combobox/combobox.d.ts.map +1 -1
- package/dist/types/currency-field/currency-field.d.ts +1 -1
- package/dist/types/currency-field/currency-field.d.ts.map +1 -1
- package/dist/types/currency-field/currency-field.types.d.ts +14 -0
- package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
- package/dist/types/currency-field/index.d.ts +1 -1
- package/dist/types/currency-field/index.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-grid.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-widget.d.ts +1 -1
- package/dist/types/dashboard-grid/dashboard-widget.d.ts.map +1 -1
- package/dist/types/dialog/dialog-demo.d.ts +8 -0
- package/dist/types/dialog/dialog-demo.d.ts.map +1 -1
- package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar.d.ts +1 -1
- package/dist/types/event-calendar/event-calendar.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar.types.d.ts +6 -0
- package/dist/types/event-calendar/event-calendar.types.d.ts.map +1 -1
- package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/list/index.d.ts +1 -1
- package/dist/types/list/index.d.ts.map +1 -1
- package/dist/types/list/list-parts.d.ts +1 -1
- package/dist/types/list/list-parts.d.ts.map +1 -1
- package/dist/types/list/list.types.d.ts +12 -0
- package/dist/types/list/list.types.d.ts.map +1 -1
- package/dist/types/menu/menu.types.d.ts +3 -1
- package/dist/types/menu/menu.types.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-collection.d.ts +0 -2
- package/dist/types/multi-select/multi-select-collection.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select.d.ts.map +1 -1
- package/dist/types/press-selection/index.d.ts +3 -0
- package/dist/types/press-selection/index.d.ts.map +1 -0
- package/dist/types/press-selection/press-selection.d.ts +23 -0
- package/dist/types/press-selection/press-selection.d.ts.map +1 -0
- package/dist/types/segmented-control/index.d.ts +1 -1
- package/dist/types/segmented-control/index.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control-defaults.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control.d.ts +1 -1
- package/dist/types/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control.types.d.ts +10 -0
- package/dist/types/segmented-control/segmented-control.types.d.ts.map +1 -1
- package/dist/types/select/select-collection.d.ts +0 -2
- package/dist/types/select/select-collection.d.ts.map +1 -1
- package/dist/types/select/select.d.ts.map +1 -1
- package/dist/types/table/index.d.ts +2 -2
- package/dist/types/table/index.d.ts.map +1 -1
- package/dist/types/table/table-parts.d.ts +8 -2
- package/dist/types/table/table-parts.d.ts.map +1 -1
- package/dist/types/table/table.types.d.ts +28 -1
- package/dist/types/table/table.types.d.ts.map +1 -1
- package/dist/types/toggle/toggle.types.d.ts +1 -1
- package/dist/types/toggle/toggle.types.d.ts.map +1 -1
- package/dist/types/toggle-group/toggle-group.d.ts.map +1 -1
- package/dist/types/toggle-group/toggle-group.types.d.ts +6 -1
- package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
- package/dist/{upload-Bq_UiyMr.js → upload-DjnlVR8y.js} +2 -2
- package/dist/upload.js +1 -1
- package/dist/{wizard-B4GrlEqh.js → wizard-BxA08vXt.js} +1 -1
- package/dist/wizard.js +1 -1
- package/package.json +12 -7
- package/dist/button-DakQ-7Tm.js +0 -97
- package/dist/cascader-CARCYdHh.js +0 -1097
- package/dist/chart-BNzfIfQe.js +0 -948
- package/dist/currency-field-B7OZ0hk7.js +0 -436
- package/dist/dashboard-grid-nfhEewA4.js +0 -1005
- package/dist/date-picker-DQ5SIhdA.js +0 -264
- package/dist/date-range-picker-lpB08hK_.js +0 -471
- package/dist/datetime-picker-0F0kDW-8.js +0 -629
- package/dist/datetime-range-picker-ClnEleth.js +0 -994
- package/dist/drawer-Ci3wuCVa.js +0 -758
- package/dist/entity-picker-UGhbVwkC.js +0 -1111
- package/dist/import-export-center-D8xbCLWs.js +0 -813
- package/dist/menu-parts-BQej6eU9.js +0 -787
- package/dist/popover-DE22lSpV.js +0 -476
- package/dist/react-dom-DzrKNxo6.js +0 -273
- package/dist/toggle-group-DQBlI1TV.js +0 -140
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
import { n as e, t } from "./icon-T9Yt4tnm.js";
|
|
2
2
|
import { r as n } from "./i18n-DpW8lqJ1.js";
|
|
3
|
-
import { n as r } from "./icon-button-
|
|
4
|
-
import { a as i, i as a, n as o, r as s } from "./tooltip-
|
|
5
|
-
import { t as c } from "./checkbox-
|
|
3
|
+
import { n as r } from "./icon-button-CCWkCDMs.js";
|
|
4
|
+
import { a as i, i as a, n as o, r as s } from "./tooltip-DbKTPe_i.js";
|
|
5
|
+
import { t as c } from "./checkbox-DfxFHZaU.js";
|
|
6
6
|
import { i as l } from "./skeleton-2LSpg84Z.js";
|
|
7
|
-
import { t as u } from "./text-field-
|
|
8
|
-
import { a as d, d as f, f as p, l as m } from "./popover-
|
|
7
|
+
import { t as u } from "./text-field-DLfIZ0fk.js";
|
|
8
|
+
import { a as d, d as f, f as p, l as m } from "./popover-Be7JWbGJ.js";
|
|
9
9
|
import { t as h } from "./visually-hidden-CE6u5JLW.js";
|
|
10
|
-
import { t as g } from "./date-picker-
|
|
11
|
-
import { t as _ } from "./date-range-picker-
|
|
12
|
-
import { t as ee } from "./datetime-picker-
|
|
13
|
-
import { t as te } from "./datetime-range-picker-
|
|
14
|
-
import { t as ne } from "./number-field-
|
|
15
|
-
import { c as re, i as ie, n as ae, o as oe, s as v } from "./select-
|
|
16
|
-
import { t as y } from "./time-picker-
|
|
17
|
-
import { t as se } from "./time-range-picker-
|
|
18
|
-
import { n as ce, t as b } from "./radio-group-
|
|
19
|
-
import { t as x } from "./tags-input-
|
|
10
|
+
import { t as g } from "./date-picker-4X-_2ltN.js";
|
|
11
|
+
import { t as _ } from "./date-range-picker-CNOAtHwU.js";
|
|
12
|
+
import { t as ee } from "./datetime-picker-HDVlUhzy.js";
|
|
13
|
+
import { t as te } from "./datetime-range-picker-IqOFJtdW.js";
|
|
14
|
+
import { t as ne } from "./number-field-BFIAmv-z.js";
|
|
15
|
+
import { c as re, i as ie, n as ae, o as oe, s as v } from "./select-DOFqPy26.js";
|
|
16
|
+
import { t as y } from "./time-picker-CRQsMJbQ.js";
|
|
17
|
+
import { t as se } from "./time-range-picker-DlZJsj1e.js";
|
|
18
|
+
import { n as ce, t as b } from "./radio-group-BaVIP9UH.js";
|
|
19
|
+
import { t as x } from "./tags-input-CcOkm0AW.js";
|
|
20
20
|
import { createControllable as le } from "@slotted/core/state";
|
|
21
21
|
import { createContext as S, useCallback as C, useContext as w, useEffect as ue, useId as de, useImperativeHandle as T, useMemo as E, useRef as D, useState as O } from "react";
|
|
22
22
|
import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
23
23
|
import { createScrollAffordance as M } from "@slotted/core/overflow";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
24
|
+
import { isRowAction as fe } from "@slotted/core/pointer-intent";
|
|
25
|
+
import { tableMessages as pe } from "@slotted/core/i18n";
|
|
26
|
+
import { getLiveAnnouncer as me } from "@slotted/core/live-announcer";
|
|
27
|
+
import { isPlainDate as he, isPlainDateTime as N, isPlainTime as ge, parseISODate as P, parseISODateTime as F, parseISOTime as I, toISODate as _e, toISOTime as L } from "@slotted/core/date";
|
|
28
|
+
import { createFilter as ve, nextSelection as ye } from "@slotted/core/collection";
|
|
29
|
+
import { defaultOperator as be, describeFilter as xe, emptyFilter as Se, isConditionActive as R, isFilterActive as Ce, normalizeFilter as we, operandCount as z, operatorsFor as B, serializeFilter as V, withCondition as Te, withJoin as Ee } from "@slotted/core/filter";
|
|
29
30
|
//#region src/table/table-defaults.tsx
|
|
30
|
-
var
|
|
31
|
-
function
|
|
32
|
-
return w(
|
|
31
|
+
var De = S({});
|
|
32
|
+
function H() {
|
|
33
|
+
return w(De);
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
-
let n =
|
|
36
|
-
return /* @__PURE__ */ A(
|
|
35
|
+
function U({ children: e, ...t }) {
|
|
36
|
+
let n = H();
|
|
37
|
+
return /* @__PURE__ */ A(De.Provider, {
|
|
37
38
|
value: {
|
|
38
39
|
cellAlign: t.cellAlign ?? n.cellAlign,
|
|
39
40
|
columns: t.columns ?? n.columns,
|
|
@@ -56,14 +57,14 @@ function K() {
|
|
|
56
57
|
if (e === void 0) throw Error("Every Table part must be rendered inside Table.");
|
|
57
58
|
return e;
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function Oe() {
|
|
60
61
|
return w(G);
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
-
let v =
|
|
63
|
+
function q({ children: e, columns: t, defaultExpanded: r, defaultSort: i, defaultValue: a, expanded: o, layout: s, loading: c, messages: l, onExpandedChange: u, onSortChange: d, onValueChange: f, ref: p, render: m, selectionMode: h, sort: g, cellAlign: _, stickyFooter: ee, stickyHeader: te, stickyTo: ne, striped: re, value: ie, variant: ae, ...oe }) {
|
|
64
|
+
let v = H(), y = n(pe, l), se = de(), [ce, b] = O(i ?? null), [x, S] = O(a ?? []), [w, ue] = O(r ?? []), T = D(null), E = D(void 0), k = g === void 0 ? ce : g, j = ie ?? x, M = o ?? w, fe = t ?? v.columns ?? 1, he = s ?? v.layout ?? "auto", N = h ?? v.selectionMode ?? "none", ge = (te ?? v.stickyHeader ?? !1) === !0, P = (ee ?? v.stickyFooter ?? !1) === !0, F = _ ?? v.cellAlign ?? "center", I = ne ?? v.stickyTo ?? "scroll", _e = (re ?? v.striped ?? !1) === !0, L = ae ?? v.variant ?? "ruled", ve = C((e) => {
|
|
64
65
|
T.current = e, typeof p == "function" ? p(e) : p != null && (p.current = e);
|
|
65
|
-
}, [p]),
|
|
66
|
-
function
|
|
66
|
+
}, [p]), be = C(() => [...T.current?.querySelectorAll("[data-part=\"body\"] > [data-part=\"row\"][data-value]") ?? []].filter((e) => !e.hasAttribute("data-disabled")).map((e) => e.getAttribute("data-value") ?? ""), []);
|
|
67
|
+
function xe(e, t, n) {
|
|
67
68
|
le({
|
|
68
69
|
controlled: ie,
|
|
69
70
|
initial: j,
|
|
@@ -71,14 +72,14 @@ function Oe({ children: e, columns: t, defaultExpanded: r, defaultSort: i, defau
|
|
|
71
72
|
onRequest: (e) => f?.(e.value, e)
|
|
72
73
|
}).request(e, t, n) && S(e);
|
|
73
74
|
}
|
|
74
|
-
let
|
|
75
|
-
columns:
|
|
75
|
+
let Se = {
|
|
76
|
+
columns: fe,
|
|
76
77
|
expanded: M,
|
|
77
78
|
id: se,
|
|
78
79
|
isExpanded: (e) => M.includes(e),
|
|
79
80
|
isSelected: (e) => j.includes(e),
|
|
80
81
|
loading: c === !0,
|
|
81
|
-
rows:
|
|
82
|
+
rows: be,
|
|
82
83
|
requestSort(e, t) {
|
|
83
84
|
let n = k?.column === e ? k.direction === "ascending" ? {
|
|
84
85
|
column: e,
|
|
@@ -92,7 +93,7 @@ function Oe({ children: e, columns: t, defaultExpanded: r, defaultSort: i, defau
|
|
|
92
93
|
equals: (e, t) => e?.column === t?.column && e?.direction === t?.direction,
|
|
93
94
|
onRequest: (e) => d?.(e.value, e)
|
|
94
95
|
}), i = n === null ? "clear" : "pointer", a = r.request(n, i, t), o = t?.currentTarget?.textContent?.trim() ?? e, s = n === null ? y("sortCleared", { column: o }) : n.direction === "ascending" ? y("sortedAscending", { column: o }) : y("sortedDescending", { column: o });
|
|
95
|
-
|
|
96
|
+
me(T.current?.ownerDocument).announce(s), a && b(n);
|
|
96
97
|
},
|
|
97
98
|
selectionMode: N,
|
|
98
99
|
sort: k,
|
|
@@ -107,29 +108,29 @@ function Oe({ children: e, columns: t, defaultExpanded: r, defaultSort: i, defau
|
|
|
107
108
|
}).request(n, "pointer", t) && ue(n);
|
|
108
109
|
},
|
|
109
110
|
toggleSelected(e, { range: t, source: n }) {
|
|
110
|
-
let r =
|
|
111
|
+
let r = ye({
|
|
111
112
|
action: t && N === "multiple" ? "range" : "toggle",
|
|
112
113
|
anchor: E.current,
|
|
113
114
|
behavior: "toggle",
|
|
114
115
|
key: e,
|
|
115
|
-
keys:
|
|
116
|
+
keys: be(),
|
|
116
117
|
mode: N,
|
|
117
118
|
selected: j
|
|
118
119
|
});
|
|
119
|
-
t || (E.current = e),
|
|
120
|
+
t || (E.current = e), xe(r.selected, t ? "select" : "pointer", n);
|
|
120
121
|
},
|
|
121
122
|
toggleSelectAll(e) {
|
|
122
|
-
let t =
|
|
123
|
+
let t = ye({
|
|
123
124
|
action: "all",
|
|
124
|
-
keys:
|
|
125
|
+
keys: be(),
|
|
125
126
|
mode: N,
|
|
126
127
|
selected: j
|
|
127
128
|
});
|
|
128
|
-
|
|
129
|
+
xe(t.selected, t.selected.length === 0 ? "clear" : "select", e);
|
|
129
130
|
},
|
|
130
131
|
t: y,
|
|
131
132
|
value: j
|
|
132
|
-
},
|
|
133
|
+
}, R = {
|
|
133
134
|
...oe,
|
|
134
135
|
children: e,
|
|
135
136
|
"data-cell-align": F,
|
|
@@ -142,16 +143,16 @@ function Oe({ children: e, columns: t, defaultExpanded: r, defaultSort: i, defau
|
|
|
142
143
|
..._e ? { "data-striped": "" } : {},
|
|
143
144
|
"data-ui": "table",
|
|
144
145
|
"data-variant": L,
|
|
145
|
-
ref:
|
|
146
|
+
ref: ve
|
|
146
147
|
};
|
|
147
148
|
return /* @__PURE__ */ A(G.Provider, {
|
|
148
|
-
value:
|
|
149
|
-
children: m === void 0 ? /* @__PURE__ */ A("div", { ...
|
|
149
|
+
value: Se,
|
|
150
|
+
children: m === void 0 ? /* @__PURE__ */ A("div", { ...R }) : m(R)
|
|
150
151
|
});
|
|
151
152
|
}
|
|
152
153
|
//#endregion
|
|
153
154
|
//#region src/table/table-content.tsx
|
|
154
|
-
function
|
|
155
|
+
function ke({ children: e, handleRef: t, ref: n, scrollLabelledBy: r, scrollProps: i, totalRowCount: a, ...o }) {
|
|
155
156
|
let s = K(), [c, l] = O(null), [u, d] = O({
|
|
156
157
|
overflowing: !1,
|
|
157
158
|
atStart: !0,
|
|
@@ -192,12 +193,12 @@ function q({ children: e, handleRef: t, ref: n, scrollLabelledBy: r, scrollProps
|
|
|
192
193
|
}
|
|
193
194
|
//#endregion
|
|
194
195
|
//#region src/table/table-parts.tsx
|
|
195
|
-
var
|
|
196
|
-
function je() {
|
|
197
|
-
return w(Ae);
|
|
198
|
-
}
|
|
196
|
+
var Ae = S(void 0), je = S(void 0);
|
|
199
197
|
function Me() {
|
|
200
|
-
|
|
198
|
+
return w(je);
|
|
199
|
+
}
|
|
200
|
+
function Ne() {
|
|
201
|
+
let e = w(Ae);
|
|
201
202
|
if (e === void 0) throw Error("TableSelect, TableExpander and TableRowHeader belong inside TableRow.");
|
|
202
203
|
return e;
|
|
203
204
|
}
|
|
@@ -214,73 +215,81 @@ function J({ align: e, blockAlign: t, numeric: n, sticky: r, stickyOffset: i, te
|
|
|
214
215
|
} }
|
|
215
216
|
};
|
|
216
217
|
}
|
|
217
|
-
function
|
|
218
|
+
function Pe({ ref: e, ...t }) {
|
|
218
219
|
return /* @__PURE__ */ A("caption", {
|
|
219
220
|
...t,
|
|
220
221
|
"data-part": "caption",
|
|
221
222
|
ref: e
|
|
222
223
|
});
|
|
223
224
|
}
|
|
224
|
-
function
|
|
225
|
+
function Fe({ ref: e, ...t }) {
|
|
225
226
|
return /* @__PURE__ */ A("thead", {
|
|
226
227
|
...t,
|
|
227
228
|
"data-part": "head",
|
|
228
229
|
ref: e
|
|
229
230
|
});
|
|
230
231
|
}
|
|
231
|
-
function
|
|
232
|
+
function Ie({ ref: e, ...t }) {
|
|
232
233
|
return /* @__PURE__ */ A("tbody", {
|
|
233
234
|
...t,
|
|
234
235
|
"data-part": "body",
|
|
235
236
|
ref: e
|
|
236
237
|
});
|
|
237
238
|
}
|
|
238
|
-
function
|
|
239
|
+
function Le({ ref: e, ...t }) {
|
|
239
240
|
return /* @__PURE__ */ A("tfoot", {
|
|
240
241
|
...t,
|
|
241
242
|
"data-part": "summary",
|
|
242
243
|
ref: e
|
|
243
244
|
});
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
+
function Re({ ref: e, ...t }) {
|
|
246
247
|
return /* @__PURE__ */ A("div", {
|
|
247
248
|
...t,
|
|
248
249
|
"data-part": "footer",
|
|
249
250
|
ref: e
|
|
250
251
|
});
|
|
251
252
|
}
|
|
252
|
-
function
|
|
253
|
-
let
|
|
254
|
-
|
|
253
|
+
function ze({ children: e, current: t, disabled: n, interactive: r, onAction: i, onClick: a, ref: o, render: s, rowIndex: c, value: l, ...u }) {
|
|
254
|
+
let d = K(), f = l !== void 0 && d.isSelected(l), p = l !== void 0 && d.isExpanded(l), m = r ?? i !== void 0, h = i === void 0 ? a : (e) => {
|
|
255
|
+
a?.(e), !(e.defaultPrevented || n === !0) && fe(e.currentTarget, e.target) && i(e);
|
|
256
|
+
}, g = {
|
|
257
|
+
...u,
|
|
255
258
|
children: e,
|
|
256
|
-
...t === !0 ? {
|
|
257
|
-
|
|
259
|
+
...t === !0 ? {
|
|
260
|
+
"aria-current": "true",
|
|
261
|
+
"data-current": ""
|
|
262
|
+
} : {},
|
|
263
|
+
...n === !0 ? { "data-disabled": "" } : {},
|
|
264
|
+
...p ? { "data-expanded": "" } : {},
|
|
265
|
+
...m ? { "data-interactive": "" } : {},
|
|
266
|
+
...h === void 0 ? {} : { onClick: h },
|
|
258
267
|
"data-part": "row",
|
|
259
|
-
...
|
|
260
|
-
...
|
|
261
|
-
...
|
|
262
|
-
},
|
|
263
|
-
detailId: `${
|
|
264
|
-
disabled:
|
|
265
|
-
expanded:
|
|
266
|
-
selected:
|
|
267
|
-
value:
|
|
268
|
+
...f ? { "data-selected": "" } : {},
|
|
269
|
+
...l === void 0 ? {} : { "data-value": l },
|
|
270
|
+
...c === void 0 ? {} : { "aria-rowindex": c }
|
|
271
|
+
}, _ = {
|
|
272
|
+
detailId: `${d.id}detail${l ?? ""}`,
|
|
273
|
+
disabled: n === !0,
|
|
274
|
+
expanded: p,
|
|
275
|
+
selected: f,
|
|
276
|
+
value: l
|
|
268
277
|
};
|
|
269
|
-
return /* @__PURE__ */ A(
|
|
270
|
-
value:
|
|
271
|
-
children:
|
|
272
|
-
...
|
|
273
|
-
ref:
|
|
274
|
-
}) :
|
|
278
|
+
return /* @__PURE__ */ A(Ae.Provider, {
|
|
279
|
+
value: _,
|
|
280
|
+
children: s === void 0 ? /* @__PURE__ */ A("tr", {
|
|
281
|
+
...g,
|
|
282
|
+
ref: o
|
|
283
|
+
}) : s(g)
|
|
275
284
|
});
|
|
276
285
|
}
|
|
277
|
-
function
|
|
286
|
+
function Be(e, ...t) {
|
|
278
287
|
for (let n of t) typeof n == "function" ? n(e) : n != null && (n.current = e);
|
|
279
288
|
}
|
|
280
|
-
function
|
|
289
|
+
function Ve({ header: e }) {
|
|
281
290
|
return /* @__PURE__ */ A(k, { children: (e.current?.textContent ?? "").trim() });
|
|
282
291
|
}
|
|
283
|
-
function
|
|
292
|
+
function He({ align: e, blockAlign: t, children: n, column: r, numeric: c, ref: l, scope: u, sticky: d, stickyOffset: f, style: p, text: m, ...h }) {
|
|
284
293
|
let g = K(), _ = D(null), ee = r !== void 0 && g.sort?.column === r, te = {
|
|
285
294
|
...h,
|
|
286
295
|
...J({
|
|
@@ -296,7 +305,7 @@ function Ve({ align: e, blockAlign: t, children: n, column: r, numeric: c, ref:
|
|
|
296
305
|
"data-part": "column-header",
|
|
297
306
|
scope: u ?? "col"
|
|
298
307
|
};
|
|
299
|
-
return /* @__PURE__ */ A(
|
|
308
|
+
return /* @__PURE__ */ A(je.Provider, {
|
|
300
309
|
value: r,
|
|
301
310
|
children: /* @__PURE__ */ j(i, {
|
|
302
311
|
describes: "none",
|
|
@@ -308,14 +317,14 @@ function Ve({ align: e, blockAlign: t, children: n, column: r, numeric: c, ref:
|
|
|
308
317
|
render: (e) => /* @__PURE__ */ A("th", {
|
|
309
318
|
...e,
|
|
310
319
|
ref: (t) => {
|
|
311
|
-
e.ref?.(t), _.current = t,
|
|
320
|
+
e.ref?.(t), _.current = t, Be(t, l);
|
|
312
321
|
}
|
|
313
322
|
})
|
|
314
|
-
}), /* @__PURE__ */ A(s, { children: /* @__PURE__ */ A(o, { children: /* @__PURE__ */ A(
|
|
323
|
+
}), /* @__PURE__ */ A(s, { children: /* @__PURE__ */ A(o, { children: /* @__PURE__ */ A(Ve, { header: _ }) }) })]
|
|
315
324
|
})
|
|
316
325
|
});
|
|
317
326
|
}
|
|
318
|
-
function
|
|
327
|
+
function Ue({ align: e, blockAlign: t, numeric: n, ref: r, scope: i, sticky: a, stickyOffset: o, style: s, text: c, ...l }) {
|
|
319
328
|
return /* @__PURE__ */ A("th", {
|
|
320
329
|
...l,
|
|
321
330
|
...J({
|
|
@@ -331,7 +340,7 @@ function He({ align: e, blockAlign: t, numeric: n, ref: r, scope: i, sticky: a,
|
|
|
331
340
|
scope: i ?? "row"
|
|
332
341
|
});
|
|
333
342
|
}
|
|
334
|
-
function
|
|
343
|
+
function We({ align: e, blockAlign: t, numeric: n, ref: r, sticky: i, stickyOffset: a, style: o, text: s, ...c }) {
|
|
335
344
|
return /* @__PURE__ */ A("td", {
|
|
336
345
|
...c,
|
|
337
346
|
...J({
|
|
@@ -346,8 +355,8 @@ function Ue({ align: e, blockAlign: t, numeric: n, ref: r, sticky: i, stickyOffs
|
|
|
346
355
|
ref: r
|
|
347
356
|
});
|
|
348
357
|
}
|
|
349
|
-
function
|
|
350
|
-
let c = K(), l = w(
|
|
358
|
+
function Ge({ children: n, column: r, onClick: i, ref: a, render: o, ...s }) {
|
|
359
|
+
let c = K(), l = w(je), u = r ?? l;
|
|
351
360
|
function d(e) {
|
|
352
361
|
i?.(e), !(e.defaultPrevented || u === void 0) && c.requestSort(u, e);
|
|
353
362
|
}
|
|
@@ -363,15 +372,15 @@ function We({ children: n, column: r, onClick: i, ref: a, render: o, ...s }) {
|
|
|
363
372
|
ref: a
|
|
364
373
|
}) : o(f);
|
|
365
374
|
}
|
|
366
|
-
function
|
|
375
|
+
function Ke({ ref: e, ...t }) {
|
|
367
376
|
return /* @__PURE__ */ A("span", {
|
|
368
377
|
...t,
|
|
369
378
|
"data-part": "column-actions",
|
|
370
379
|
ref: e
|
|
371
380
|
});
|
|
372
381
|
}
|
|
373
|
-
function
|
|
374
|
-
let d = K(), f =
|
|
382
|
+
function qe({ align: e, blockAlign: t, numeric: n, ref: r, sticky: i, stickyOffset: a, style: o, text: s, value: l, ...u }) {
|
|
383
|
+
let d = K(), f = Ne(), p = l ?? f.value;
|
|
375
384
|
return /* @__PURE__ */ A("td", {
|
|
376
385
|
...u,
|
|
377
386
|
...J({
|
|
@@ -399,7 +408,7 @@ function Ke({ align: e, blockAlign: t, numeric: n, ref: r, sticky: i, stickyOffs
|
|
|
399
408
|
})
|
|
400
409
|
});
|
|
401
410
|
}
|
|
402
|
-
function
|
|
411
|
+
function Je({ align: e, blockAlign: t, numeric: n, ref: r, sticky: i, stickyOffset: a, style: o, text: s, ...l }) {
|
|
403
412
|
let u = K(), d = u.value.length;
|
|
404
413
|
return /* @__PURE__ */ A("th", {
|
|
405
414
|
...l,
|
|
@@ -422,8 +431,8 @@ function qe({ align: e, blockAlign: t, numeric: n, ref: r, sticky: i, stickyOffs
|
|
|
422
431
|
})
|
|
423
432
|
});
|
|
424
433
|
}
|
|
425
|
-
function
|
|
426
|
-
let o = K(), s =
|
|
434
|
+
function Ye({ onClick: n, ref: r, value: i, ...a }) {
|
|
435
|
+
let o = K(), s = Ne(), c = i ?? s.value, l = c !== void 0 && o.isExpanded(c);
|
|
427
436
|
function u(e) {
|
|
428
437
|
n?.(e), !(e.defaultPrevented || c === void 0) && o.toggleExpanded(c, e);
|
|
429
438
|
}
|
|
@@ -439,7 +448,7 @@ function Je({ onClick: n, ref: r, value: i, ...a }) {
|
|
|
439
448
|
type: "button"
|
|
440
449
|
});
|
|
441
450
|
}
|
|
442
|
-
function
|
|
451
|
+
function Xe({ children: e, colSpan: t, ref: n, value: r, ...i }) {
|
|
443
452
|
let a = K();
|
|
444
453
|
return a.isExpanded(r) ? /* @__PURE__ */ A("tr", {
|
|
445
454
|
...i,
|
|
@@ -453,7 +462,31 @@ function Ye({ children: e, colSpan: t, ref: n, value: r, ...i }) {
|
|
|
453
462
|
})
|
|
454
463
|
}) : null;
|
|
455
464
|
}
|
|
456
|
-
function
|
|
465
|
+
function Ze({ children: e, colSpan: t, end: n, ref: r, sticky: i, ...a }) {
|
|
466
|
+
let o = K();
|
|
467
|
+
return /* @__PURE__ */ A("tr", {
|
|
468
|
+
...a,
|
|
469
|
+
"data-part": "group-row",
|
|
470
|
+
...i === !0 ? { "data-sticky": "" } : {},
|
|
471
|
+
ref: r,
|
|
472
|
+
children: /* @__PURE__ */ A("th", {
|
|
473
|
+
colSpan: t ?? o.columns,
|
|
474
|
+
"data-part": "group-header",
|
|
475
|
+
scope: "rowgroup",
|
|
476
|
+
children: /* @__PURE__ */ j("div", {
|
|
477
|
+
"data-part": "group-content",
|
|
478
|
+
children: [/* @__PURE__ */ A("span", {
|
|
479
|
+
"data-part": "group-start",
|
|
480
|
+
children: e
|
|
481
|
+
}), n == null ? null : /* @__PURE__ */ A("span", {
|
|
482
|
+
"data-part": "group-end",
|
|
483
|
+
children: n
|
|
484
|
+
})]
|
|
485
|
+
})
|
|
486
|
+
})
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
function Qe({ colSpan: e, ref: t, ...n }) {
|
|
457
490
|
let r = K();
|
|
458
491
|
return /* @__PURE__ */ A("td", {
|
|
459
492
|
...n,
|
|
@@ -462,7 +495,7 @@ function Xe({ colSpan: e, ref: t, ...n }) {
|
|
|
462
495
|
ref: t
|
|
463
496
|
});
|
|
464
497
|
}
|
|
465
|
-
function
|
|
498
|
+
function $e({ children: e, ref: t, skeletonRows: n, ...r }) {
|
|
466
499
|
let i = K();
|
|
467
500
|
return /* @__PURE__ */ A("tbody", {
|
|
468
501
|
...r,
|
|
@@ -483,7 +516,7 @@ function Ze({ children: e, ref: t, skeletonRows: n, ...r }) {
|
|
|
483
516
|
}
|
|
484
517
|
//#endregion
|
|
485
518
|
//#region src/table/table-filter.tsx
|
|
486
|
-
function
|
|
519
|
+
function et() {
|
|
487
520
|
return /* @__PURE__ */ A("svg", {
|
|
488
521
|
"aria-hidden": "true",
|
|
489
522
|
fill: "none",
|
|
@@ -495,79 +528,79 @@ function Qe() {
|
|
|
495
528
|
children: /* @__PURE__ */ A("path", { d: "M22 3H2l8 9.46V19l4 2v-8.54L22 3z" })
|
|
496
529
|
});
|
|
497
530
|
}
|
|
498
|
-
function
|
|
531
|
+
function tt(e, t) {
|
|
499
532
|
return V(e) === V(t);
|
|
500
533
|
}
|
|
501
534
|
function Y({ body: e, kind: t, operandName: n, operators: i, props: a, rangeOperand: o, singleCondition: s }) {
|
|
502
|
-
let { align: c, collisionPadding: l, columnLabel: u, conditions: h = 2, defaultOpen: g, defaultOperator: _, defaultValue: ee, label: te, mount: ne, onOpenChange: y, onValueChange: se, open: x, portal: S, renderOperand: C, side: w, sideOffset: ue, value: T } = a, E = K(), M =
|
|
503
|
-
function
|
|
504
|
-
|
|
535
|
+
let { align: c, collisionPadding: l, columnLabel: u, conditions: h = 2, defaultOpen: g, defaultOperator: _, defaultValue: ee, label: te, mount: ne, onOpenChange: y, onValueChange: se, open: x, portal: S, renderOperand: C, side: w, sideOffset: ue, value: T } = a, E = K(), M = Me(), fe = de(), [pe, he] = O(ee ?? null), N = T === void 0 ? pe : T, ge = _ ?? be(t), P = () => Se(t, ge), [F, I] = O(N ?? P()), [_e, L] = O(!1), ve = x ?? _e, ye = D(null), B = E.t, V = u ?? M ?? "", De = Ce(N), H = s ? 1 : h;
|
|
536
|
+
function U(e) {
|
|
537
|
+
me(ye.current?.ownerDocument).announce(e);
|
|
505
538
|
}
|
|
506
|
-
let
|
|
507
|
-
join: (e) =>
|
|
508
|
-
operator: (e) =>
|
|
539
|
+
let W = {
|
|
540
|
+
join: (e) => B(`filterJoins.${e}`),
|
|
541
|
+
operator: (e) => B(`filterOperators.${e}`)
|
|
509
542
|
};
|
|
510
|
-
function
|
|
543
|
+
function G(e, t, n) {
|
|
511
544
|
le({
|
|
512
545
|
controlled: T,
|
|
513
546
|
initial: N,
|
|
514
|
-
equals:
|
|
547
|
+
equals: tt,
|
|
515
548
|
onRequest: (e) => se?.(e.value, e)
|
|
516
549
|
}).request(e, t, n) && he(e);
|
|
517
550
|
}
|
|
518
551
|
function Oe(e, t) {
|
|
519
552
|
x === void 0 && L(e), y?.(e, t), I(N ?? P());
|
|
520
553
|
}
|
|
521
|
-
let q = (e) => F.conditions[e] ?? { operator: ge }, ke = q(0), Ae =
|
|
522
|
-
function
|
|
523
|
-
let n = q(e), r =
|
|
554
|
+
let q = (e) => F.conditions[e] ?? { operator: ge }, ke = q(0), Ae = H === 2 && R(t, ke);
|
|
555
|
+
function je(e, t) {
|
|
556
|
+
let n = q(e), r = z(n.operator), i = z(t), a = {
|
|
524
557
|
operator: t,
|
|
525
558
|
...i >= 1 && r >= 1 ? { value: n.value } : {},
|
|
526
559
|
...i === 2 && r === 2 ? { end: n.end } : {}
|
|
527
560
|
};
|
|
528
|
-
I(
|
|
529
|
-
operator:
|
|
561
|
+
I(Te(F, e, a)), i !== r && U(B("filterOperands", {
|
|
562
|
+
operator: W.operator(t),
|
|
530
563
|
count: i
|
|
531
564
|
}));
|
|
532
565
|
}
|
|
533
|
-
function
|
|
534
|
-
let i = q(e), a =
|
|
566
|
+
function Ne(e, n, r) {
|
|
567
|
+
let i = q(e), a = R(t, i), o = n === 0 ? {
|
|
535
568
|
...i,
|
|
536
569
|
value: r
|
|
537
570
|
} : {
|
|
538
571
|
...i,
|
|
539
572
|
end: r
|
|
540
573
|
};
|
|
541
|
-
I(
|
|
574
|
+
I(Te(F, e, o)), e === 0 && H === 2 && !a && R(t, o) && U(B("filterConditionAdded"));
|
|
542
575
|
}
|
|
543
|
-
function
|
|
544
|
-
let i = q(e), a =
|
|
576
|
+
function J(e, n, r) {
|
|
577
|
+
let i = q(e), a = R(t, i), o = {
|
|
545
578
|
...i,
|
|
546
579
|
value: n,
|
|
547
580
|
end: r
|
|
548
581
|
};
|
|
549
|
-
I(
|
|
582
|
+
I(Te(F, e, o)), e === 0 && H === 2 && !a && R(t, o) && U(B("filterConditionAdded"));
|
|
550
583
|
}
|
|
551
584
|
function Pe(e, t) {
|
|
552
|
-
let n =
|
|
553
|
-
|
|
554
|
-
column:
|
|
555
|
-
filter:
|
|
556
|
-
}) :
|
|
585
|
+
let n = we(F);
|
|
586
|
+
G(n, t, e), U(n ? B("filterApplied", {
|
|
587
|
+
column: V,
|
|
588
|
+
filter: xe(n, W)
|
|
589
|
+
}) : B("filterCleared", { column: V })), x === void 0 && L(!1), y?.(!1, e);
|
|
557
590
|
}
|
|
558
591
|
function Fe(e) {
|
|
559
|
-
I(P()),
|
|
592
|
+
I(P()), U(B("filterCleared", { column: V })), G(null, "clear", e), x === void 0 && L(!1), y?.(!1, e);
|
|
560
593
|
}
|
|
561
|
-
let Ie = te ?? (
|
|
562
|
-
column:
|
|
563
|
-
filter:
|
|
564
|
-
}) :
|
|
594
|
+
let Ie = te ?? (De ? B("filterApplied", {
|
|
595
|
+
column: V,
|
|
596
|
+
filter: xe(N, W)
|
|
597
|
+
}) : B("filterColumn", { column: V }).trim());
|
|
565
598
|
function Le(r) {
|
|
566
|
-
let a = q(r), s =
|
|
599
|
+
let a = q(r), s = z(a.operator), c = (e) => ({
|
|
567
600
|
apply: () => Pe(null, "keyboard"),
|
|
568
601
|
index: e,
|
|
569
|
-
label:
|
|
570
|
-
onValueChange: (t) =>
|
|
602
|
+
label: B(s === 2 ? e === 0 ? "filterFrom" : "filterTo" : "filterValue"),
|
|
603
|
+
onValueChange: (t) => Ne(r, e, t),
|
|
571
604
|
operator: a.operator,
|
|
572
605
|
value: (e === 0 ? a.value : a.end) ?? null
|
|
573
606
|
});
|
|
@@ -579,18 +612,18 @@ function Y({ body: e, kind: t, operandName: n, operators: i, props: a, rangeOper
|
|
|
579
612
|
children: /* @__PURE__ */ j(re, {
|
|
580
613
|
fullWidth: !0,
|
|
581
614
|
items: i.map((e) => ({
|
|
582
|
-
label:
|
|
615
|
+
label: W.operator(e),
|
|
583
616
|
value: e
|
|
584
617
|
})),
|
|
585
|
-
onValueChange: (e) =>
|
|
618
|
+
onValueChange: (e) => je(r, e),
|
|
586
619
|
size: "sm",
|
|
587
620
|
value: a.operator,
|
|
588
621
|
children: [/* @__PURE__ */ A(oe, {
|
|
589
|
-
"aria-label":
|
|
622
|
+
"aria-label": B("filterOperator"),
|
|
590
623
|
children: /* @__PURE__ */ A(v, {})
|
|
591
624
|
}), /* @__PURE__ */ A(ie, { children: i.map((e) => /* @__PURE__ */ A(ae, {
|
|
592
625
|
value: e,
|
|
593
|
-
children:
|
|
626
|
+
children: W.operator(e)
|
|
594
627
|
}, e)) })]
|
|
595
628
|
})
|
|
596
629
|
}), s === 0 ? null : /* @__PURE__ */ A("div", {
|
|
@@ -599,12 +632,12 @@ function Y({ body: e, kind: t, operandName: n, operators: i, props: a, rangeOper
|
|
|
599
632
|
...n === void 0 || C ? {} : { "data-operand": n },
|
|
600
633
|
...o && s === 2 && !C ? { "data-range": "" } : {},
|
|
601
634
|
children: C ? Array.from({ length: s }, (e, t) => C(c(t))) : e({
|
|
602
|
-
announce:
|
|
635
|
+
announce: U,
|
|
603
636
|
apply: () => Pe(null, "keyboard"),
|
|
604
637
|
condition: a,
|
|
605
|
-
setOperand: (e, t) =>
|
|
606
|
-
setOperands: (e, t) =>
|
|
607
|
-
t:
|
|
638
|
+
setOperand: (e, t) => Ne(r, e, t),
|
|
639
|
+
setOperands: (e, t) => J(r, e, t),
|
|
640
|
+
t: B
|
|
608
641
|
})
|
|
609
642
|
})]
|
|
610
643
|
}, r);
|
|
@@ -623,9 +656,9 @@ function Y({ body: e, kind: t, operandName: n, operators: i, props: a, rangeOper
|
|
|
623
656
|
...e,
|
|
624
657
|
"aria-label": Ie,
|
|
625
658
|
"data-part": "filter",
|
|
626
|
-
...
|
|
659
|
+
...De ? { "data-filtered": "" } : {},
|
|
627
660
|
type: "button",
|
|
628
|
-
children: /* @__PURE__ */ A(
|
|
661
|
+
children: /* @__PURE__ */ A(et, {})
|
|
629
662
|
}) }), /* @__PURE__ */ A(m, { children: /* @__PURE__ */ A(d, {
|
|
630
663
|
"aria-label": Ie,
|
|
631
664
|
children: /* @__PURE__ */ j("div", {
|
|
@@ -633,42 +666,42 @@ function Y({ body: e, kind: t, operandName: n, operators: i, props: a, rangeOper
|
|
|
633
666
|
"data-part": "filter-panel",
|
|
634
667
|
"data-ui": "table",
|
|
635
668
|
id: fe,
|
|
636
|
-
ref:
|
|
669
|
+
ref: ye,
|
|
637
670
|
children: [
|
|
638
671
|
Le(0),
|
|
639
672
|
Ae ? /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ j("div", {
|
|
640
673
|
"data-part": "filter-join",
|
|
641
674
|
children: [/* @__PURE__ */ A("span", {
|
|
642
675
|
"data-label": "",
|
|
643
|
-
children:
|
|
676
|
+
children: B("filterJoin")
|
|
644
677
|
}), /* @__PURE__ */ j(ce, {
|
|
645
|
-
"aria-label":
|
|
646
|
-
onValueChange: (e) => I(
|
|
678
|
+
"aria-label": B("filterJoin"),
|
|
679
|
+
onValueChange: (e) => I(Ee(F, e)),
|
|
647
680
|
orientation: "horizontal",
|
|
648
681
|
size: "sm",
|
|
649
682
|
value: F.join,
|
|
650
683
|
children: [/* @__PURE__ */ A(b, {
|
|
651
684
|
value: "and",
|
|
652
|
-
children:
|
|
685
|
+
children: W.join("and")
|
|
653
686
|
}), /* @__PURE__ */ A(b, {
|
|
654
687
|
value: "or",
|
|
655
|
-
children:
|
|
688
|
+
children: W.join("or")
|
|
656
689
|
})]
|
|
657
690
|
})]
|
|
658
691
|
}), Le(1)] }) : null,
|
|
659
692
|
/* @__PURE__ */ j("div", {
|
|
660
693
|
"data-part": "filter-actions",
|
|
661
694
|
children: [/* @__PURE__ */ A(r, {
|
|
662
|
-
disabled: !
|
|
695
|
+
disabled: !Ce(F),
|
|
663
696
|
onClick: (e) => Fe(e),
|
|
664
697
|
size: "sm",
|
|
665
698
|
tone: "secondary",
|
|
666
699
|
variant: "ghost",
|
|
667
|
-
children:
|
|
700
|
+
children: B("filterClear")
|
|
668
701
|
}), /* @__PURE__ */ A(r, {
|
|
669
702
|
onClick: (e) => Pe(e, "pointer"),
|
|
670
703
|
size: "sm",
|
|
671
|
-
children:
|
|
704
|
+
children: B("filterApply")
|
|
672
705
|
})]
|
|
673
706
|
})
|
|
674
707
|
]
|
|
@@ -682,9 +715,9 @@ function X(e) {
|
|
|
682
715
|
};
|
|
683
716
|
}
|
|
684
717
|
function Z(e, t) {
|
|
685
|
-
return t ??
|
|
718
|
+
return t ?? B(e);
|
|
686
719
|
}
|
|
687
|
-
function
|
|
720
|
+
function nt(e) {
|
|
688
721
|
return /* @__PURE__ */ A(Y, {
|
|
689
722
|
body: ({ apply: e, condition: t, setOperand: n, t: r }) => /* @__PURE__ */ A(u, {
|
|
690
723
|
"aria-label": r("filterValue"),
|
|
@@ -700,14 +733,14 @@ function et(e) {
|
|
|
700
733
|
...e.conditions === void 0 ? {} : { conditions: e.conditions }
|
|
701
734
|
});
|
|
702
735
|
}
|
|
703
|
-
function
|
|
736
|
+
function rt(e) {
|
|
704
737
|
let { format: t, locale: n, step: r } = e;
|
|
705
738
|
return /* @__PURE__ */ A(Y, {
|
|
706
|
-
body: ({ apply: e, condition: i, setOperand: a, t: o }) => /* @__PURE__ */ A(k, { children: [0, 1].slice(0,
|
|
707
|
-
"aria-label":
|
|
739
|
+
body: ({ apply: e, condition: i, setOperand: a, t: o }) => /* @__PURE__ */ A(k, { children: [0, 1].slice(0, z(i.operator)).map((s) => /* @__PURE__ */ A(ne, {
|
|
740
|
+
"aria-label": z(i.operator) === 2 ? o(s === 0 ? "filterFrom" : "filterTo") : o("filterValue"),
|
|
708
741
|
onKeyDown: X(e),
|
|
709
742
|
onValueChange: (e) => a(s, e),
|
|
710
|
-
placeholder:
|
|
743
|
+
placeholder: z(i.operator) === 2 ? o(s === 0 ? "filterFrom" : "filterTo") : o("filterValue"),
|
|
711
744
|
size: "sm",
|
|
712
745
|
value: (s === 0 ? i.value : i.end) ?? null,
|
|
713
746
|
...t === void 0 ? {} : { format: t },
|
|
@@ -720,10 +753,10 @@ function tt(e) {
|
|
|
720
753
|
...e.conditions === void 0 ? {} : { conditions: e.conditions }
|
|
721
754
|
});
|
|
722
755
|
}
|
|
723
|
-
function
|
|
724
|
-
let { locale: t, max: n, min: r, presets: i } = e, a = (e) => e ?
|
|
756
|
+
function it(e) {
|
|
757
|
+
let { locale: t, max: n, min: r, presets: i } = e, a = (e) => e ? P(String(e)) : null, o = (e) => he(e) ? _e(e) : null;
|
|
725
758
|
return /* @__PURE__ */ A(Y, {
|
|
726
|
-
body: ({ apply: e, condition: s, setOperand: c, setOperands: l, t: u }) =>
|
|
759
|
+
body: ({ apply: e, condition: s, setOperand: c, setOperands: l, t: u }) => z(s.operator) === 2 ? /* @__PURE__ */ A(_, {
|
|
727
760
|
messages: {
|
|
728
761
|
end: u("filterTo"),
|
|
729
762
|
start: u("filterFrom")
|
|
@@ -759,15 +792,15 @@ function nt(e) {
|
|
|
759
792
|
function Q(e) {
|
|
760
793
|
if (!e) return null;
|
|
761
794
|
let t = String(e);
|
|
762
|
-
return
|
|
795
|
+
return I(/^\d{2}$/.test(t) ? `${t}:00` : t);
|
|
763
796
|
}
|
|
764
797
|
function $(e) {
|
|
765
798
|
if (!e) return null;
|
|
766
799
|
let t = String(e);
|
|
767
|
-
return /^\d{4}-\d{2}-\d{2}$/.test(t) ?
|
|
800
|
+
return /^\d{4}-\d{2}-\d{2}$/.test(t) ? F(`${t}T00:00`) : /^\d{4}-\d{2}-\d{2}T\d{2}$/.test(t) ? F(`${t}:00`) : F(t);
|
|
768
801
|
}
|
|
769
|
-
function
|
|
770
|
-
let { granularity: t, hourCycle: n, locale: r, max: i, min: a, options: o, presets: s, step: c } = e, l = (e) =>
|
|
802
|
+
function at(e) {
|
|
803
|
+
let { granularity: t, hourCycle: n, locale: r, max: i, min: a, options: o, presets: s, step: c } = e, l = (e) => ge(e) ? L(e, t ?? "minute") : null, u = {
|
|
771
804
|
...t === void 0 ? {} : { granularity: t },
|
|
772
805
|
...n === void 0 ? {} : { hourCycle: n },
|
|
773
806
|
...r === void 0 ? {} : { locale: r },
|
|
@@ -777,7 +810,7 @@ function rt(e) {
|
|
|
777
810
|
...Q(i) ? { max: Q(i) } : {}
|
|
778
811
|
};
|
|
779
812
|
return /* @__PURE__ */ A(Y, {
|
|
780
|
-
body: ({ apply: e, condition: t, setOperand: n, setOperands: r, t: i }) =>
|
|
813
|
+
body: ({ apply: e, condition: t, setOperand: n, setOperands: r, t: i }) => z(t.operator) === 2 ? /* @__PURE__ */ A(se, {
|
|
781
814
|
messages: {
|
|
782
815
|
start: i("filterFrom"),
|
|
783
816
|
end: i("filterTo")
|
|
@@ -805,8 +838,8 @@ function rt(e) {
|
|
|
805
838
|
...e.conditions === void 0 ? {} : { conditions: e.conditions }
|
|
806
839
|
});
|
|
807
840
|
}
|
|
808
|
-
function
|
|
809
|
-
let { granularity: t, hourCycle: n, locale: r, max: i, min: a, presets: o, step: s, timeZone: c } = e, l = (e) =>
|
|
841
|
+
function ot(e) {
|
|
842
|
+
let { granularity: t, hourCycle: n, locale: r, max: i, min: a, presets: o, step: s, timeZone: c } = e, l = (e) => N(e) ? `${_e(e.date)}T${L(e.time, t ?? "minute")}` : null, u = {
|
|
810
843
|
...t === void 0 ? {} : { granularity: t },
|
|
811
844
|
...n === void 0 ? {} : { hourCycle: n },
|
|
812
845
|
...r === void 0 ? {} : { locale: r },
|
|
@@ -816,7 +849,7 @@ function it(e) {
|
|
|
816
849
|
...$(i) ? { max: $(i) } : {}
|
|
817
850
|
};
|
|
818
851
|
return /* @__PURE__ */ A(Y, {
|
|
819
|
-
body: ({ apply: e, condition: t, setOperand: n, setOperands: r, t: i }) =>
|
|
852
|
+
body: ({ apply: e, condition: t, setOperand: n, setOperands: r, t: i }) => z(t.operator) === 2 ? /* @__PURE__ */ A(te, {
|
|
820
853
|
messages: {
|
|
821
854
|
start: i("filterFrom"),
|
|
822
855
|
end: i("filterTo")
|
|
@@ -844,7 +877,7 @@ function it(e) {
|
|
|
844
877
|
...e.conditions === void 0 ? {} : { conditions: e.conditions }
|
|
845
878
|
});
|
|
846
879
|
}
|
|
847
|
-
function
|
|
880
|
+
function st(e) {
|
|
848
881
|
return /* @__PURE__ */ A(Y, {
|
|
849
882
|
body: ({ condition: e, setOperand: t, t: n }) => /* @__PURE__ */ j(ce, {
|
|
850
883
|
"aria-label": n("filterValue"),
|
|
@@ -866,16 +899,16 @@ function at(e) {
|
|
|
866
899
|
...e.conditions === void 0 ? {} : { conditions: e.conditions }
|
|
867
900
|
});
|
|
868
901
|
}
|
|
869
|
-
function
|
|
902
|
+
function ct(e) {
|
|
870
903
|
let { operand: t = "list", options: n = [], searchThreshold: r = 8, searchable: i } = e;
|
|
871
904
|
return /* @__PURE__ */ A(Y, {
|
|
872
|
-
body: ({ announce: e, apply: a, condition: o, setOperand: s, t: c }) => t === "tags" ? /* @__PURE__ */ A(
|
|
905
|
+
body: ({ announce: e, apply: a, condition: o, setOperand: s, t: c }) => t === "tags" ? /* @__PURE__ */ A(lt, {
|
|
873
906
|
apply: a,
|
|
874
907
|
chosen: o.value ?? [],
|
|
875
908
|
onChange: (e) => s(0, e),
|
|
876
909
|
options: n,
|
|
877
910
|
t: c
|
|
878
|
-
}) : /* @__PURE__ */ A(
|
|
911
|
+
}) : /* @__PURE__ */ A(ut, {
|
|
879
912
|
announce: e,
|
|
880
913
|
chosen: o.value ?? [],
|
|
881
914
|
onChange: (e) => s(0, e),
|
|
@@ -891,7 +924,7 @@ function ot(e) {
|
|
|
891
924
|
singleCondition: !0
|
|
892
925
|
});
|
|
893
926
|
}
|
|
894
|
-
function
|
|
927
|
+
function lt({ apply: e, chosen: t, onChange: n, options: r, t: i }) {
|
|
895
928
|
let a = de(), o = E(() => new Map(r.map((e) => [e.value, e])), [r]), s = r.length > 0;
|
|
896
929
|
return /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(x, {
|
|
897
930
|
"aria-label": i("filterValue"),
|
|
@@ -916,8 +949,8 @@ function st({ apply: e, chosen: t, onChange: n, options: r, t: i }) {
|
|
|
916
949
|
}, e.value))
|
|
917
950
|
}) : null] });
|
|
918
951
|
}
|
|
919
|
-
function
|
|
920
|
-
let s = de(), [l, d] = O(""), f = E(() =>
|
|
952
|
+
function ut({ announce: e, chosen: t, onChange: n, options: r, searchThreshold: i, searchable: a, t: o }) {
|
|
953
|
+
let s = de(), [l, d] = O(""), f = E(() => ve({ sensitivity: "base" }), []), p = (e) => e === "" ? r : r.filter((t) => f.contains(t.label ?? t.value, e)), m = p(l), h = m.filter((e) => t.includes(e.value)), g = a ?? r.length >= i;
|
|
921
954
|
return /* @__PURE__ */ j(k, { children: [g ? /* @__PURE__ */ A("div", {
|
|
922
955
|
"data-part": "filter-search",
|
|
923
956
|
children: /* @__PURE__ */ A(u, {
|
|
@@ -967,4 +1000,4 @@ function ct({ announce: e, chosen: t, onChange: n, options: r, searchThreshold:
|
|
|
967
1000
|
})] });
|
|
968
1001
|
}
|
|
969
1002
|
//#endregion
|
|
970
|
-
export {
|
|
1003
|
+
export { q as A, Je as C, Ne as D, Me as E, K as M, U as N, ke as O, H as P, qe as S, Le as T, Ze as _, ct as a, ze as b, Ie as c, Ke as d, He as f, Re as g, Ye as h, rt as i, Oe as j, W as k, Pe as l, Qe as m, it as n, nt as o, Xe as p, ot as r, at as s, st as t, We as u, Fe as v, Ge as w, Ue as x, $e as y };
|