@gradient-ui/core 0.8.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +60 -261
- package/dist/BaseOverlay-DgBWbJbs.cjs +1 -0
- package/dist/BaseOverlay-DzJ37TCS.js +216 -0
- package/dist/GAvatar-CN3PHGY_.js +202 -0
- package/dist/GAvatar-Dj6hSgL3.cjs +1 -0
- package/dist/GButton.vue_vue_type_style_index_0_lang-D9qRus1m.js +141 -0
- package/dist/GButton.vue_vue_type_style_index_0_lang-tGLnt3_R.cjs +1 -0
- package/dist/GCheckGroup-B3gZ9p6e.cjs +1 -0
- package/dist/GCheckGroup-DDkxtEj2.js +132 -0
- package/dist/GCheckIndicator-C-adGOcb.cjs +1 -0
- package/dist/GCheckIndicator-yvipPkWi.js +264 -0
- package/dist/GCheckbox.vue_vue_type_script_setup_true_lang-BrQE29bm.js +68 -0
- package/dist/GCheckbox.vue_vue_type_script_setup_true_lang-hjvutORC.cjs +1 -0
- package/dist/GCheckboxGroup.vue_vue_type_script_setup_true_lang-ChPcOQYQ.js +143 -0
- package/dist/GCheckboxGroup.vue_vue_type_script_setup_true_lang-CjPc-fNv.cjs +1 -0
- package/dist/GDropdown-CmBNk0jK.cjs +1 -0
- package/dist/GDropdown-TVH93Obq.js +126 -0
- package/dist/GExpandTransition.vue_vue_type_script_setup_true_lang-Ccl2Cemo.cjs +1 -0
- package/dist/GExpandTransition.vue_vue_type_script_setup_true_lang-ztMeJVQO.js +170 -0
- package/dist/GForm.vue_vue_type_style_index_0_lang-BzOWdjzk.cjs +1 -0
- package/dist/GForm.vue_vue_type_style_index_0_lang-DpPM5snQ.js +149 -0
- package/dist/GGradientMaterial.vue_vue_type_style_index_0_lang-ChRL7BIo.js +119 -0
- package/dist/GGradientMaterial.vue_vue_type_style_index_0_lang-DJcGdEVi.cjs +1 -0
- package/dist/GInput.vue_vue_type_script_setup_true_lang-BHM4W0S8.js +143 -0
- package/dist/GInput.vue_vue_type_script_setup_true_lang-dMjIUhb1.cjs +1 -0
- package/dist/GLoading.vue_vue_type_style_index_0_lang-BNOsRA0v.js +97 -0
- package/dist/GLoading.vue_vue_type_style_index_0_lang-KmMjjwpE.cjs +1 -0
- package/dist/GRadio.vue_vue_type_script_setup_true_lang-DNRTDtF2.cjs +1 -0
- package/dist/GRadio.vue_vue_type_script_setup_true_lang-kE-52Aj1.js +182 -0
- package/dist/GSwitch.vue_vue_type_script_setup_true_lang-BZXxiyLT.js +68 -0
- package/dist/GSwitch.vue_vue_type_script_setup_true_lang-DC8vyW7e.cjs +1 -0
- package/dist/GTable.vue_vue_type_style_index_1_lang-BECleEMi.js +828 -0
- package/dist/GTable.vue_vue_type_style_index_1_lang-DgaYCTxJ.cjs +1 -0
- package/dist/GTextarea.vue_vue_type_script_setup_true_lang-CyuCJwv6.cjs +1 -0
- package/dist/GTextarea.vue_vue_type_script_setup_true_lang-zSTso23Z.js +84 -0
- package/dist/GTransition.vue_vue_type_script_setup_true_lang-CHGSgsZ0.js +143 -0
- package/dist/GTransition.vue_vue_type_script_setup_true_lang-CgELPmMA.cjs +1 -0
- package/dist/GTransitionGroup.vue_vue_type_script_setup_true_lang-CDu6W6-X.js +23 -0
- package/dist/GTransitionGroup.vue_vue_type_script_setup_true_lang-DDh0rXP7.cjs +1 -0
- package/dist/PLA-B2QljfgE.cjs +1 -0
- package/dist/PLA-DePtRzKl.js +10 -0
- package/dist/_plugin-vue_export-helper-B--vMWp3.js +9 -0
- package/dist/_plugin-vue_export-helper-D_jf5u0r.cjs +1 -0
- package/dist/actionSurface-BkFPXb-Z.js +123 -0
- package/dist/actionSurface-Db2TksPm.cjs +1 -0
- package/dist/appScopedState-BCzeQW7Y.js +15 -0
- package/dist/appScopedState-D0zgOLf5.cjs +1 -0
- package/dist/booleanControl-BrOrGYvg.js +71 -0
- package/dist/booleanControl-uPXEckMZ.cjs +1 -0
- package/dist/camelToKebabCase-BFm1Zwmu.cjs +1 -0
- package/dist/camelToKebabCase-nw6sbguT.js +6 -0
- package/dist/clientLifecycle-DlIZRy4I.cjs +1 -0
- package/dist/clientLifecycle-NZQzL_eH.js +12 -0
- package/dist/color-8SkPDCIp.cjs +1 -0
- package/dist/color-WJmhRKJ_.js +26 -0
- package/dist/colorResolver-BBj51UAZ.js +90 -0
- package/dist/colorResolver-C6PTz0S8.cjs +1 -0
- package/dist/component-names.cjs +1 -0
- package/dist/component-names.mjs +79 -0
- package/dist/components/BaseOverlay.cjs +1 -0
- package/dist/components/BaseOverlay.mjs +5 -0
- package/dist/components/GAlert.cjs +1 -0
- package/dist/components/GAlert.mjs +126 -0
- package/dist/components/GAside.cjs +1 -0
- package/dist/components/GAside.mjs +90 -0
- package/dist/components/GAsideGroup.cjs +1 -0
- package/dist/components/GAsideGroup.mjs +99 -0
- package/dist/components/GAsideItem.cjs +1 -0
- package/dist/components/GAsideItem.mjs +123 -0
- package/dist/components/GAvatar.cjs +1 -0
- package/dist/components/GAvatar.mjs +5 -0
- package/dist/components/GAvatarGroup.cjs +1 -0
- package/dist/components/GAvatarGroup.mjs +66 -0
- package/dist/components/GBadge.cjs +1 -0
- package/dist/components/GBadge.mjs +141 -0
- package/dist/components/GButton.cjs +1 -0
- package/dist/components/GButton.mjs +4 -0
- package/dist/components/GCard.cjs +1 -0
- package/dist/components/GCard.mjs +235 -0
- package/dist/components/GCheckbox.cjs +1 -0
- package/dist/components/GCheckbox.mjs +4 -0
- package/dist/components/GCheckboxGroup.cjs +1 -0
- package/dist/components/GCheckboxGroup.mjs +4 -0
- package/dist/components/GChip.cjs +1 -0
- package/dist/components/GChip.mjs +133 -0
- package/dist/components/GCombobox.cjs +1 -0
- package/dist/components/GCombobox.mjs +477 -0
- package/dist/components/GDivider.cjs +1 -0
- package/dist/components/GDivider.mjs +189 -0
- package/dist/components/GDrawer.cjs +1 -0
- package/dist/components/GDrawer.mjs +151 -0
- package/dist/components/GDropdownGroup.cjs +1 -0
- package/dist/components/GDropdownGroup.mjs +24 -0
- package/dist/components/GExpandTransition.cjs +1 -0
- package/dist/components/GExpandTransition.mjs +4 -0
- package/dist/components/GExpansion.cjs +1 -0
- package/dist/components/GExpansion.mjs +321 -0
- package/dist/components/GExpansionGroup.cjs +1 -0
- package/dist/components/GExpansionGroup.mjs +95 -0
- package/dist/components/GFAB.cjs +1 -0
- package/dist/components/GFAB.mjs +142 -0
- package/dist/components/GForm.cjs +1 -0
- package/dist/components/GForm.mjs +4 -0
- package/dist/components/GGradient.cjs +1 -0
- package/dist/components/GGradient.mjs +158 -0
- package/dist/components/GGradientMaterial.cjs +1 -0
- package/dist/components/GGradientMaterial.mjs +4 -0
- package/dist/components/GIcon.cjs +1 -0
- package/dist/components/GIcon.mjs +35 -0
- package/dist/components/GImg.cjs +1 -0
- package/dist/components/GImg.mjs +167 -0
- package/dist/components/GInput.cjs +1 -0
- package/dist/components/GInput.mjs +4 -0
- package/dist/components/GLoading.cjs +1 -0
- package/dist/components/GLoading.mjs +4 -0
- package/dist/components/GMenu.cjs +1 -0
- package/dist/components/GMenu.mjs +274 -0
- package/dist/components/GModal.cjs +1 -0
- package/dist/components/GModal.mjs +141 -0
- package/dist/components/GNavGroup.cjs +1 -0
- package/dist/components/GNavGroup.mjs +99 -0
- package/dist/components/GNavItem.cjs +1 -0
- package/dist/components/GNavItem.mjs +124 -0
- package/dist/components/GNavList.cjs +1 -0
- package/dist/components/GNavList.mjs +82 -0
- package/dist/components/GNavbar.cjs +1 -0
- package/dist/components/GNavbar.mjs +172 -0
- package/dist/components/GNavbarItem.cjs +1 -0
- package/dist/components/GNavbarItem.mjs +120 -0
- package/dist/components/GNavbarMenu.cjs +1 -0
- package/dist/components/GNavbarMenu.mjs +147 -0
- package/dist/components/GNavbarSubItem.cjs +1 -0
- package/dist/components/GNavbarSubItem.mjs +96 -0
- package/dist/components/GProgress.cjs +1 -0
- package/dist/components/GProgress.mjs +135 -0
- package/dist/components/GQuickActions.cjs +1 -0
- package/dist/components/GQuickActions.mjs +157 -0
- package/dist/components/GRadio.cjs +1 -0
- package/dist/components/GRadio.mjs +4 -0
- package/dist/components/GSelect.cjs +1 -0
- package/dist/components/GSelect.mjs +145 -0
- package/dist/components/GSnackbar.cjs +1 -0
- package/dist/components/GSnackbar.mjs +285 -0
- package/dist/components/GSquircle.cjs +1 -0
- package/dist/components/GSquircle.mjs +180 -0
- package/dist/components/GStepPanel.cjs +1 -0
- package/dist/components/GStepPanel.mjs +156 -0
- package/dist/components/GStepper.cjs +1 -0
- package/dist/components/GStepper.mjs +335 -0
- package/dist/components/GStepperActions.cjs +1 -0
- package/dist/components/GStepperActions.mjs +61 -0
- package/dist/components/GSwitch.cjs +1 -0
- package/dist/components/GSwitch.mjs +4 -0
- package/dist/components/GTab.cjs +1 -0
- package/dist/components/GTab.mjs +105 -0
- package/dist/components/GTabList.cjs +1 -0
- package/dist/components/GTabList.mjs +28 -0
- package/dist/components/GTabPanel.cjs +1 -0
- package/dist/components/GTabPanel.mjs +35 -0
- package/dist/components/GTabPanels.cjs +1 -0
- package/dist/components/GTabPanels.mjs +24 -0
- package/dist/components/GTable.cjs +1 -0
- package/dist/components/GTable.mjs +4 -0
- package/dist/components/GTabs.cjs +1 -0
- package/dist/components/GTabs.mjs +73 -0
- package/dist/components/GText.cjs +1 -0
- package/dist/components/GText.mjs +59 -0
- package/dist/components/GTextarea.cjs +1 -0
- package/dist/components/GTextarea.mjs +4 -0
- package/dist/components/GTooltip.cjs +1 -0
- package/dist/components/GTooltip.mjs +65 -0
- package/dist/components/GTransition.cjs +1 -0
- package/dist/components/GTransition.mjs +4 -0
- package/dist/components/GTransitionGroup.cjs +1 -0
- package/dist/components/GTransitionGroup.mjs +4 -0
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +135 -78
- package/dist/context-D_uVf3Ih.cjs +1 -0
- package/dist/context-DmyyyTi-.js +164 -0
- package/dist/context-FLWxn0X1.js +8 -0
- package/dist/context-obVnJalQ.cjs +1 -0
- package/dist/control-B3T1H83D.js +53 -0
- package/dist/control-C5Ws5lp3.cjs +1 -0
- package/dist/controller-DTFaTta0.cjs +1 -0
- package/dist/controller-Dk9Wd1Sr.js +101 -0
- package/dist/createComponentId-CK5eUecc.cjs +1 -0
- package/dist/createComponentId-CrqdDHC3.js +5 -0
- package/dist/createId-t3ke7cZx.js +5 -0
- package/dist/createId-tM8qn_N_.cjs +1 -0
- package/dist/cssTokens-CR4OxIND.js +75 -0
- package/dist/cssTokens-gELrmYNj.cjs +5 -0
- package/dist/defaults-DJ6ZV1Qc.js +51 -0
- package/dist/defaults-aVtmQF-9.cjs +1 -0
- package/dist/density-C3E1eUQ3.cjs +1 -0
- package/dist/density-Ci15Ek7T.js +15 -0
- package/dist/di-BXJSJc_E.js +12 -0
- package/dist/di-Czemfti1.cjs +1 -0
- package/dist/directives.cjs +1 -1
- package/dist/directives.mjs +8 -8
- package/dist/disabled-B_bAKgaM.cjs +1 -0
- package/dist/disabled-CAV056h6.js +12 -0
- package/dist/environment-Dr5kpq3D.cjs +1 -0
- package/dist/environment-o0e-UUbv.js +13 -0
- package/dist/fieldControl-BgVt1Hh1.js +144 -0
- package/dist/fieldControl-CIJMnu2j.cjs +1 -0
- package/dist/floatingTrigger-B_K4a4Fz.cjs +1 -0
- package/dist/floatingTrigger-CyvZ-aQ6.js +275 -0
- package/dist/glass-CJjbKWWO.js +20 -0
- package/dist/glass-CZEblMo2.cjs +1 -0
- package/dist/gradient-Bf_C3oqp.cjs +1 -0
- package/dist/gradient-Cesrzb2-.js +138 -0
- package/dist/gradientMaterial-BEhJP5b1.js +141 -0
- package/dist/gradientMaterial-DrttA9E_.cjs +1 -0
- package/dist/groupContext-C2lbjfsf.cjs +1 -0
- package/dist/groupContext-CBceOY6B.js +14 -0
- package/dist/groupContext-DU6dxh4q.cjs +1 -0
- package/dist/groupContext-vS5bHonI.js +14 -0
- package/dist/head-BMx6G1g4.js +45 -0
- package/dist/head-u-LV2RM9.cjs +2 -0
- package/dist/icon-C1AhpC8p.js +66 -0
- package/dist/icon-DgrRDU9A.cjs +1 -0
- package/dist/id-Cjq3OT0R.js +5 -0
- package/dist/id-EYQallpf.cjs +1 -0
- package/dist/index-71vxBpir.js +53 -0
- package/dist/index-8uDgLBTF.cjs +1 -0
- package/dist/index-BDHATTpo.js +141 -0
- package/dist/index-DQ6stZ3U.js +97 -0
- package/dist/index-Dd_8Hfjk.cjs +1 -0
- package/dist/index-YvJ0cd3f.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +315 -224
- package/dist/item-BiO-0FYg.cjs +1 -0
- package/dist/item-Cm_rJTEH.js +47 -0
- package/dist/layerStack-Bn2nFt2F.cjs +1 -0
- package/dist/layerStack-C926It64.js +86 -0
- package/dist/mask-BGVqqZXk.cjs +1 -0
- package/dist/mask-D4VYR8fo.js +541 -0
- package/dist/material-CkThdnz0.cjs +1 -0
- package/dist/material-Cn0l9r_y.js +182 -0
- package/dist/materialSurface-BZWqxSOo.cjs +1 -0
- package/dist/materialSurface-DKWanYUC.js +57 -0
- package/dist/menuContext-COshJAv-.js +14 -0
- package/dist/menuContext-DqTLm_y8.cjs +1 -0
- package/dist/mount-CqN_WfIk.js +58 -0
- package/dist/mount-qFaEMFZj.cjs +1 -0
- package/dist/palette-CH8mtBoc.js +3779 -0
- package/dist/palette-WOebHg01.cjs +316 -0
- package/dist/plugin.cjs +1 -0
- package/dist/plugin.mjs +24 -0
- package/dist/propsFactory-DT6-QS4L.cjs +1 -0
- package/dist/propsFactory-FM5RGbLN.js +13 -0
- package/dist/px-B-cyF02Z.js +8 -0
- package/dist/px-CVkec5Jf.cjs +1 -0
- package/dist/rounded-BneJO7vz.cjs +1 -0
- package/dist/rounded-CKhFFdmx.js +12 -0
- package/dist/routerLink-BhTEISct.cjs +1 -0
- package/dist/routerLink-p0fsQRNq.js +11 -0
- package/dist/runtime-DBDKFxqD.js +22 -0
- package/dist/runtime-DjqHzhfc.cjs +1 -0
- package/dist/scheme-C0jQNw-v.cjs +299 -0
- package/dist/scheme-Dp9cSd1s.js +1406 -0
- package/dist/selected-CEdYQtXH.cjs +1 -0
- package/dist/selected-DPdzuMh_.js +20 -0
- package/dist/selectionController-Cq7OffKP.js +98 -0
- package/dist/selectionController-D_SzzLi7.cjs +1 -0
- package/dist/selectionModel-B_tgk_Aa.cjs +1 -0
- package/dist/selectionModel-DMATNQOo.js +76 -0
- package/dist/services.cjs +1 -1
- package/dist/services.mjs +10 -3
- package/dist/size-BSjg5E6f.cjs +1 -0
- package/dist/size-C-WH-uPa.js +16 -0
- package/dist/ssr.cjs +1 -0
- package/dist/ssr.mjs +31 -0
- package/dist/state-CUskk7oG.cjs +1 -0
- package/dist/state-zMDQLwyB.js +12 -0
- package/dist/stateIcon-B8wmjxgd.js +98 -0
- package/dist/stateIcon-BxT3Loel.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/surface-NFdB950M.cjs +1 -0
- package/dist/surface-i-1vm2j3.js +99 -0
- package/dist/surfaceColor-BlDoAKoV.cjs +1 -0
- package/dist/surfaceColor-Cic675ry.js +34 -0
- package/dist/surfaceMaterial-B1a1iV02.js +39 -0
- package/dist/surfaceMaterial-JpbVongH.cjs +1 -0
- package/dist/tagName-D8HI-Yqc.js +40 -0
- package/dist/tagName-EmIHK0fg.cjs +1 -0
- package/dist/teleport-6ZRoZ2JT.js +26 -0
- package/dist/teleport-Bj9Z7LhE.cjs +1 -0
- package/dist/textFieldComponent-Ct4Z0dFr.cjs +1 -0
- package/dist/textFieldComponent-gnbYgrX0.js +217 -0
- package/dist/textFieldControl-Cxnq3lo4.js +80 -0
- package/dist/textFieldControl-D0-pdxIY.cjs +1 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +60 -59
- package/dist/tokenInputKeyboard-DBcgGd7c.js +108 -0
- package/dist/tokenInputKeyboard-DqEV34Li.cjs +1 -0
- package/dist/transition-BPMUkgHY.cjs +1 -0
- package/dist/transition-DVGMCo2o.js +108 -0
- package/dist/types/componentNames.d.ts +5 -0
- package/dist/types/components/GGroup/GGroup.vue.d.ts +11 -9
- package/dist/types/components/GGroup/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +55 -53
- package/dist/types/components/transitions/GExpandTransition.vue.d.ts +26 -32
- package/dist/types/components/transitions/GTransition.vue.d.ts +26 -32
- package/dist/types/components/transitions/GTransitionGroup.vue.d.ts +26 -32
- package/dist/types/components/transitions/TransitionExpansion.vue.d.ts +2 -8
- package/dist/types/components/transitions/TransitionOverlay.vue.d.ts +2 -8
- package/dist/types/components/transitions/TransitionRotate.vue.d.ts +2 -8
- package/dist/types/components/transitions/TransitionScale.vue.d.ts +2 -8
- package/dist/types/components/transitions/TransitionStaggerTranslate.vue.d.ts +2 -8
- package/dist/types/components/transitions/index.d.ts +3 -3
- package/dist/types/components/ui/BaseFloating/BaseFloating.vue.d.ts +45 -53
- package/dist/types/components/ui/BaseFloating/index.d.ts +1 -1
- package/dist/types/components/ui/BaseOverlay/BaseOverlay.vue.d.ts +62 -71
- package/dist/types/components/ui/BaseOverlay/index.d.ts +1 -1
- package/dist/types/components/ui/BaseOverlay/types.d.ts +24 -24
- package/dist/types/components/ui/GAction/GAction.vue.d.ts +1 -1
- package/dist/types/components/ui/GAction/index.d.ts +1 -1
- package/dist/types/components/ui/GAction/types.d.ts +15 -15
- package/dist/types/components/ui/GAlert/GAlert.vue.d.ts +177 -183
- package/dist/types/components/ui/GAlert/index.d.ts +1 -1
- package/dist/types/components/ui/GAlert/types.d.ts +151 -151
- package/dist/types/components/ui/GAside/GAside.vue.d.ts +26 -24
- package/dist/types/components/ui/GAside/GAsideGroup.vue.d.ts +11 -9
- package/dist/types/components/ui/GAside/GAsideItem.vue.d.ts +16 -14
- package/dist/types/components/ui/GAside/context.d.ts +2 -2
- package/dist/types/components/ui/GAside/groupContext.d.ts +1 -1
- package/dist/types/components/ui/GAside/index.d.ts +4 -4
- package/dist/types/components/ui/GAside/types.d.ts +28 -28
- package/dist/types/components/ui/GAvatar/GAvatar.vue.d.ts +262 -268
- package/dist/types/components/ui/GAvatar/GAvatarGroup.vue.d.ts +43 -49
- package/dist/types/components/ui/GAvatar/index.d.ts +3 -3
- package/dist/types/components/ui/GAvatar/types.d.ts +163 -163
- package/dist/types/components/ui/GBadge/GBadge.vue.d.ts +367 -373
- package/dist/types/components/ui/GBadge/index.d.ts +2 -2
- package/dist/types/components/ui/GBadge/types.d.ts +153 -153
- package/dist/types/components/ui/GButton/GButton.vue.d.ts +252 -258
- package/dist/types/components/ui/GButton/index.d.ts +2 -2
- package/dist/types/components/ui/GButton/types.d.ts +149 -149
- package/dist/types/components/ui/GCard/GCard.vue.d.ts +215 -221
- package/dist/types/components/ui/GCard/index.d.ts +2 -2
- package/dist/types/components/ui/GCard/types.d.ts +160 -160
- package/dist/types/components/ui/GCheckControl/GCheckControl.vue.d.ts +86 -92
- package/dist/types/components/ui/GCheckControl/GCheckGroup.vue.d.ts +77 -83
- package/dist/types/components/ui/GCheckControl/GCheckIndicator.vue.d.ts +17 -10
- package/dist/types/components/ui/GCheckControl/index.d.ts +3 -3
- package/dist/types/components/ui/GCheckbox/GCheckbox.vue.d.ts +10 -211
- package/dist/types/components/ui/GCheckbox/index.d.ts +2 -2
- package/dist/types/components/ui/GCheckbox/types.d.ts +1 -1
- package/dist/types/components/ui/GCheckboxGroup/GCheckboxGroup.vue.d.ts +12 -10
- package/dist/types/components/ui/GCheckboxGroup/index.d.ts +2 -2
- package/dist/types/components/ui/GCheckboxGroup/types.d.ts +2 -2
- package/dist/types/components/ui/GChip/GChip.vue.d.ts +218 -224
- package/dist/types/components/ui/GChip/index.d.ts +2 -2
- package/dist/types/components/ui/GChip/types.d.ts +140 -140
- package/dist/types/components/ui/GCombobox/GCombobox.vue.d.ts +12 -10
- package/dist/types/components/ui/GCombobox/index.d.ts +2 -2
- package/dist/types/components/ui/GCombobox/types.d.ts +11 -11
- package/dist/types/components/ui/GDivider/GDivider.vue.d.ts +445 -451
- package/dist/types/components/ui/GDivider/index.d.ts +2 -2
- package/dist/types/components/ui/GDivider/types.d.ts +186 -186
- package/dist/types/components/ui/GDrawer/GDrawer.vue.d.ts +135 -141
- package/dist/types/components/ui/GDrawer/index.d.ts +2 -2
- package/dist/types/components/ui/GDrawer/types.d.ts +44 -44
- package/dist/types/components/ui/GDropdown/GDropdown.vue.d.ts +94 -102
- package/dist/types/components/ui/GDropdown/index.d.ts +1 -1
- package/dist/types/components/ui/GDropdown/types.d.ts +40 -40
- package/dist/types/components/ui/GDropdownGroup/GDropdownGroup.vue.d.ts +3 -9
- package/dist/types/components/ui/GDropdownGroup/index.d.ts +2 -2
- package/dist/types/components/ui/GDropdownSelect/GDropdownSelect.vue.d.ts +11 -9
- package/dist/types/components/ui/GDropdownSelect/types.d.ts +2 -2
- package/dist/types/components/ui/GExpansion/GExpansion.vue.d.ts +51 -49
- package/dist/types/components/ui/GExpansion/index.d.ts +1 -1
- package/dist/types/components/ui/GExpansion/types.d.ts +154 -154
- package/dist/types/components/ui/GExpansionGroup/GExpansionGroup.vue.d.ts +17 -15
- package/dist/types/components/ui/GExpansionGroup/index.d.ts +1 -1
- package/dist/types/components/ui/GExpansionGroup/types.d.ts +7 -7
- package/dist/types/components/ui/GFAB/GFAB.vue.d.ts +81 -87
- package/dist/types/components/ui/GFAB/index.d.ts +1 -1
- package/dist/types/components/ui/GFAB/types.d.ts +57 -57
- package/dist/types/components/ui/GFieldBase/GFieldBase.vue.d.ts +64 -70
- package/dist/types/components/ui/GFieldBase/props.d.ts +81 -81
- package/dist/types/components/ui/GForm/GForm.vue.d.ts +32 -40
- package/dist/types/components/ui/GForm/index.d.ts +2 -2
- package/dist/types/components/ui/GForm/types.d.ts +10 -10
- package/dist/types/components/ui/GGradient/GGradient.vue.d.ts +96 -102
- package/dist/types/components/ui/GGradient/GGradientBorderLayer.vue.d.ts +10 -4
- package/dist/types/components/ui/GGradient/index.d.ts +2 -2
- package/dist/types/components/ui/GGradient/types.d.ts +4 -4
- package/dist/types/components/ui/GGradientMaterial/GGradientMaterial.vue.d.ts +84 -90
- package/dist/types/components/ui/GGradientMaterial/index.d.ts +2 -2
- package/dist/types/components/ui/GGradientMaterial/types.d.ts +15 -15
- package/dist/types/components/ui/GIcon/GIcon.vue.d.ts +5 -5
- package/dist/types/components/ui/GIcon/index.d.ts +2 -2
- package/dist/types/components/ui/GIcon/sets/MdiIconSet.vue.d.ts +1 -1
- package/dist/types/components/ui/GIcon/types.d.ts +1 -1
- package/dist/types/components/ui/GIcon.vue.d.ts +2 -2
- package/dist/types/components/ui/GImg/GImg.vue.d.ts +266 -0
- package/dist/types/components/ui/GImg/index.d.ts +2 -0
- package/dist/types/components/ui/GImg/types.d.ts +174 -0
- package/dist/types/components/ui/GInput/GInput.vue.d.ts +14 -323
- package/dist/types/components/ui/GInput/SwitchPassword.vue.d.ts +2 -2
- package/dist/types/components/ui/GInput/index.d.ts +2 -2
- package/dist/types/components/ui/GInput/types.d.ts +2 -2
- package/dist/types/components/ui/GLoading/GLoading.vue.d.ts +30 -36
- package/dist/types/components/ui/GLoading/types.d.ts +9 -9
- package/dist/types/components/ui/GMenu/GMenu.vue.d.ts +18 -24
- package/dist/types/components/ui/GMenu/GSubmenu.vue.d.ts +16 -259
- package/dist/types/components/ui/GMenu/index.d.ts +1 -1
- package/dist/types/components/ui/GMenuItem/GMenuItem.vue.d.ts +89 -95
- package/dist/types/components/ui/GMenuItem/types.d.ts +32 -32
- package/dist/types/components/ui/GModal/GModal.vue.d.ts +139 -145
- package/dist/types/components/ui/GModal/index.d.ts +2 -2
- package/dist/types/components/ui/GModal/types.d.ts +48 -48
- package/dist/types/components/ui/GNavList/GNavGroup.vue.d.ts +11 -9
- package/dist/types/components/ui/GNavList/GNavItem.vue.d.ts +16 -14
- package/dist/types/components/ui/GNavList/GNavList.vue.d.ts +24 -22
- package/dist/types/components/ui/GNavList/context.d.ts +2 -2
- package/dist/types/components/ui/GNavList/groupContext.d.ts +1 -1
- package/dist/types/components/ui/GNavList/index.d.ts +4 -4
- package/dist/types/components/ui/GNavList/types.d.ts +27 -27
- package/dist/types/components/ui/GNavbar/GNavbar.vue.d.ts +16 -14
- package/dist/types/components/ui/GNavbar/GNavbarItem.vue.d.ts +20 -18
- package/dist/types/components/ui/GNavbar/GNavbarMenu.vue.d.ts +20 -18
- package/dist/types/components/ui/GNavbar/GNavbarSubItem.vue.d.ts +14 -12
- package/dist/types/components/ui/GNavbar/context.d.ts +2 -2
- package/dist/types/components/ui/GNavbar/index.d.ts +5 -5
- package/dist/types/components/ui/GNavbar/menuContext.d.ts +1 -1
- package/dist/types/components/ui/GNavbar/types.d.ts +30 -30
- package/dist/types/components/ui/GProgress/GProgress.vue.d.ts +83 -91
- package/dist/types/components/ui/GProgress/index.d.ts +1 -1
- package/dist/types/components/ui/GProgress/types.d.ts +16 -16
- package/dist/types/components/ui/GQuickActions/GQuickActions.vue.d.ts +26 -32
- package/dist/types/components/ui/GQuickActions/index.d.ts +2 -2
- package/dist/types/components/ui/GQuickActions/types.d.ts +3 -3
- package/dist/types/components/ui/GRadio/GRadio.vue.d.ts +12 -10
- package/dist/types/components/ui/GRadio/GRadioItem.vue.d.ts +13 -11
- package/dist/types/components/ui/GRadio/index.d.ts +3 -3
- package/dist/types/components/ui/GRadio/types.d.ts +2 -2
- package/dist/types/components/ui/GSelect/GSelect.vue.d.ts +12 -10
- package/dist/types/components/ui/GSelect/index.d.ts +2 -2
- package/dist/types/components/ui/GSelect/types.d.ts +10 -10
- package/dist/types/components/ui/GSelectItem.vue.d.ts +5 -11
- package/dist/types/components/ui/GSnackbar/GSnackbar.vue.d.ts +411 -417
- package/dist/types/components/ui/GSnackbar/index.d.ts +2 -2
- package/dist/types/components/ui/GSnackbar/types.d.ts +164 -164
- package/dist/types/components/ui/GSquircle/GSquircle.vue.d.ts +8 -14
- package/dist/types/components/ui/GSquircle/index.d.ts +1 -1
- package/dist/types/components/ui/GSquircle/types.d.ts +5 -5
- package/dist/types/components/ui/GStepper/GStepItem.vue.d.ts +8 -6
- package/dist/types/components/ui/GStepper/GStepPanel.vue.d.ts +35 -33
- package/dist/types/components/ui/GStepper/GStepper.vue.d.ts +32 -30
- package/dist/types/components/ui/GStepper/GStepperActions.vue.d.ts +9 -7
- package/dist/types/components/ui/GStepper/context.d.ts +4 -4
- package/dist/types/components/ui/GStepper/index.d.ts +4 -4
- package/dist/types/components/ui/GStepper/types.d.ts +182 -182
- package/dist/types/components/ui/GSwitch/GSwitch.vue.d.ts +10 -211
- package/dist/types/components/ui/GSwitch/index.d.ts +2 -2
- package/dist/types/components/ui/GSwitch/types.d.ts +1 -1
- package/dist/types/components/ui/GTable/GTable.vue.d.ts +61 -59
- package/dist/types/components/ui/GTable/GTableBody.vue.d.ts +8 -6
- package/dist/types/components/ui/GTable/GTableCell.vue.d.ts +9 -7
- package/dist/types/components/ui/GTable/GTableExpandedRow.vue.d.ts +10 -8
- package/dist/types/components/ui/GTable/GTableHead.vue.d.ts +9 -7
- package/dist/types/components/ui/GTable/GTableRow.vue.d.ts +8 -6
- package/dist/types/components/ui/GTable/context.d.ts +1 -1
- package/dist/types/components/ui/GTable/index.d.ts +3 -3
- package/dist/types/components/ui/GTable/types.d.ts +161 -161
- package/dist/types/components/ui/GTable/useTable.d.ts +3 -3
- package/dist/types/components/ui/GTable/useTableExpansion.d.ts +1 -1
- package/dist/types/components/ui/GTable/useTableSpans.d.ts +1 -1
- package/dist/types/components/ui/GTabs/GTab.vue.d.ts +14 -12
- package/dist/types/components/ui/GTabs/GTabList.vue.d.ts +3 -9
- package/dist/types/components/ui/GTabs/GTabPanel.vue.d.ts +9 -7
- package/dist/types/components/ui/GTabs/GTabPanels.vue.d.ts +6 -12
- package/dist/types/components/ui/GTabs/GTabs.vue.d.ts +24 -22
- package/dist/types/components/ui/GTabs/context.d.ts +3 -3
- package/dist/types/components/ui/GTabs/index.d.ts +6 -6
- package/dist/types/components/ui/GTabs/types.d.ts +24 -24
- package/dist/types/components/ui/GText/GText.vue.d.ts +5 -10
- package/dist/types/components/ui/GText/index.d.ts +1 -1
- package/dist/types/components/ui/GText/types.d.ts +1 -1
- package/dist/types/components/ui/GTextarea/GTextarea.vue.d.ts +14 -290
- package/dist/types/components/ui/GTextarea/index.d.ts +2 -2
- package/dist/types/components/ui/GTextarea/types.d.ts +2 -2
- package/dist/types/components/ui/GToggleButton/GToggleButton.vue.d.ts +10 -760
- package/dist/types/components/ui/GToggleButton/index.d.ts +2 -2
- package/dist/types/components/ui/GToggleButton/types.d.ts +127 -127
- package/dist/types/components/ui/GTooltip/GTooltip.vue.d.ts +79 -85
- package/dist/types/components/ui/GTooltip/index.d.ts +1 -1
- package/dist/types/components/ui/GTooltip/types.d.ts +37 -37
- package/dist/types/directives/gradientIcon.d.ts +1 -1
- package/dist/types/directives/gradientText.d.ts +2 -2
- package/dist/types/directives/index.d.ts +13 -13
- package/dist/types/directives/loading.d.ts +5 -5
- package/dist/types/directives/mask.d.ts +1 -1
- package/dist/types/directives/ripple.d.ts +1 -1
- package/dist/types/directives/specular.d.ts +1 -1
- package/dist/types/index.d.ts +13 -17
- package/dist/types/plugin.d.ts +15 -0
- package/dist/types/services/context.d.ts +8 -0
- package/dist/types/services/index.d.ts +4 -2
- package/dist/types/services/runtime.d.ts +5 -0
- package/dist/types/services/useLoading.d.ts +5 -2
- package/dist/types/services/useSnackbar.d.ts +5 -2
- package/dist/types/ssr/index.d.ts +2 -0
- package/dist/types/ssr/use/appScopedState.d.ts +1 -0
- package/dist/types/ssr/use/clientLifecycle.d.ts +2 -0
- package/dist/types/ssr/use/hydration.d.ts +2 -0
- package/dist/types/ssr/use/id.d.ts +1 -0
- package/dist/types/ssr/use/index.d.ts +6 -0
- package/dist/types/ssr/use/teleport.d.ts +11 -0
- package/dist/types/ssr/use/viewport.d.ts +12 -0
- package/dist/types/ssr/utils/environment.d.ts +11 -0
- package/dist/types/ssr/utils/head.d.ts +28 -0
- package/dist/types/ssr/utils/index.d.ts +3 -0
- package/dist/types/ssr/utils/mount.d.ts +21 -0
- package/dist/types/theme/color.d.ts +1 -1
- package/dist/types/theme/colorSystem.d.ts +3 -3
- package/dist/types/theme/cssTokens.d.ts +3 -2
- package/dist/types/theme/default.d.ts +13 -6
- package/dist/types/theme/index.d.ts +7 -6
- package/dist/types/theme/palette.d.ts +1 -1
- package/dist/types/theme/scheme.d.ts +1 -1
- package/dist/types/theme/types.d.ts +1 -1
- package/dist/types/types/CommonTypes.d.ts +2 -2
- package/dist/types/use/PLA.d.ts +1 -1
- package/dist/types/use/actionProps.d.ts +15 -15
- package/dist/types/use/actionSurface.d.ts +45 -45
- package/dist/types/use/appendTarget.d.ts +2 -1
- package/dist/types/use/breakpoints/index.d.ts +10 -1
- package/dist/types/use/check/booleanControl.d.ts +13 -13
- package/dist/types/use/check/index.d.ts +6 -6
- package/dist/types/use/check/optionGroup.d.ts +7 -7
- package/dist/types/use/check/types.d.ts +55 -55
- package/dist/types/use/color.d.ts +2 -2
- package/dist/types/use/colorResolver.d.ts +2 -2
- package/dist/types/use/density.d.ts +1 -1
- package/dist/types/use/expansion/controller.d.ts +1 -1
- package/dist/types/use/expansion/di.d.ts +1 -1
- package/dist/types/use/expansion/index.d.ts +3 -3
- package/dist/types/use/floating.d.ts +18 -18
- package/dist/types/use/floatingLayer.d.ts +1 -1
- package/dist/types/use/form/control.d.ts +1 -1
- package/dist/types/use/form/props.d.ts +25 -25
- package/dist/types/use/form/textFieldComponent.d.ts +1 -3
- package/dist/types/use/form/textFieldControl.d.ts +7 -7
- package/dist/types/use/glass.d.ts +2 -2
- package/dist/types/use/gradient.d.ts +81 -81
- package/dist/types/use/gradientGlow.d.ts +7 -7
- package/dist/types/use/gradientMaterial.d.ts +3 -3
- package/dist/types/use/gradientRuntime.d.ts +2 -2
- package/dist/types/use/gradientRuntimeRegistry.d.ts +1 -1
- package/dist/types/use/gradientSurface.d.ts +5 -5
- package/dist/types/use/group/di.d.ts +1 -1
- package/dist/types/use/group/groupController.d.ts +1 -1
- package/dist/types/use/index.d.ts +23 -22
- package/dist/types/use/input/index.d.ts +4 -4
- package/dist/types/use/input/props.d.ts +71 -71
- package/dist/types/use/layerStack.d.ts +3 -3
- package/dist/types/use/material.d.ts +9 -9
- package/dist/types/use/materialSurface.d.ts +103 -103
- package/dist/types/use/menu.d.ts +5 -5
- package/dist/types/use/menuContext.d.ts +1 -1
- package/dist/types/use/navigation/controller.d.ts +1 -1
- package/dist/types/use/navigation/index.d.ts +4 -4
- package/dist/types/use/navigation/item.d.ts +1 -1
- package/dist/types/use/navigation/keyboard.d.ts +1 -1
- package/dist/types/use/open.d.ts +1 -1
- package/dist/types/use/overlay.d.ts +18 -18
- package/dist/types/use/placement.d.ts +2 -2
- package/dist/types/use/px.d.ts +1 -1
- package/dist/types/use/select/comboboxController.d.ts +9 -9
- package/dist/types/use/select/commit.d.ts +2 -2
- package/dist/types/use/select/controller.d.ts +9 -9
- package/dist/types/use/select/creatable.d.ts +1 -1
- package/dist/types/use/select/fieldControl.d.ts +7 -7
- package/dist/types/use/select/filter.d.ts +1 -1
- package/dist/types/use/select/items.d.ts +1 -1
- package/dist/types/use/select/listboxKeyboard.d.ts +1 -1
- package/dist/types/use/select/menuItems.d.ts +2 -2
- package/dist/types/use/select/menuSlot.d.ts +2 -2
- package/dist/types/use/select/modelFallbackItems.d.ts +2 -2
- package/dist/types/use/select/selection.d.ts +1 -1
- package/dist/types/use/select/selectionController.d.ts +1 -1
- package/dist/types/use/select/selectionSummary.d.ts +1 -1
- package/dist/types/use/select/tokenInputKeyboard.d.ts +1 -1
- package/dist/types/use/selected.d.ts +1 -1
- package/dist/types/use/size.d.ts +2 -2
- package/dist/types/use/state.d.ts +1 -1
- package/dist/types/use/stateIcon.d.ts +1 -1
- package/dist/types/use/stepper/controller.d.ts +1 -1
- package/dist/types/use/stepper/index.d.ts +1 -1
- package/dist/types/use/surface.d.ts +26 -26
- package/dist/types/use/surfaceColor.d.ts +3 -3
- package/dist/types/use/surfaceMaterial.d.ts +8 -8
- package/dist/types/use/textarea/index.d.ts +2 -2
- package/dist/types/use/textarea/props.d.ts +69 -69
- package/dist/types/use/transition.d.ts +5 -5
- package/dist/types/use/variant.d.ts +1 -1
- package/dist/types/utils/createComponentId.d.ts +1 -1
- package/dist/types/utils/createId.d.ts +1 -1
- package/dist/types-BItiZqNo.cjs +1 -0
- package/dist/types-BPZPPi6n.cjs +1 -0
- package/dist/types-BZSR5qEq.js +69 -0
- package/dist/types-CAh-uxuw.js +113 -0
- package/dist/types-Ce2Qoz6Q.js +90 -0
- package/dist/types-DGs8vjIX.cjs +1 -0
- package/dist/types-D_HgEWtj.js +95 -0
- package/dist/types-DmWFHzOk.js +80 -0
- package/dist/types-DsVDdHxP.cjs +1 -0
- package/dist/types-cjs/componentNames.d.cts +5 -0
- package/dist/types-cjs/components/GGroup/GGroup.vue.d.cts +24 -0
- package/dist/types-cjs/components/GGroup/index.d.cts +1 -0
- package/dist/types-cjs/components/GGroup/types.d.cts +0 -0
- package/dist/types-cjs/components/index.d.cts +55 -0
- package/dist/types-cjs/components/transitions/GExpandTransition.vue.d.cts +234 -0
- package/dist/types-cjs/components/transitions/GTransition.vue.d.cts +234 -0
- package/dist/types-cjs/components/transitions/GTransitionGroup.vue.d.cts +218 -0
- package/dist/types-cjs/components/transitions/TransitionExpansion.vue.d.cts +18 -0
- package/dist/types-cjs/components/transitions/TransitionOverlay.vue.d.cts +15 -0
- package/dist/types-cjs/components/transitions/TransitionRotate.vue.d.cts +11 -0
- package/dist/types-cjs/components/transitions/TransitionScale.vue.d.cts +15 -0
- package/dist/types-cjs/components/transitions/TransitionStaggerTranslate.vue.d.cts +11 -0
- package/dist/types-cjs/components/transitions/index.d.cts +3 -0
- package/dist/types-cjs/components/ui/BaseFloating/BaseFloating.vue.d.cts +237 -0
- package/dist/types-cjs/components/ui/BaseFloating/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/BaseFloating/types.d.cts +0 -0
- package/dist/types-cjs/components/ui/BaseOverlay/BaseOverlay.vue.d.cts +228 -0
- package/dist/types-cjs/components/ui/BaseOverlay/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/BaseOverlay/types.d.cts +108 -0
- package/dist/types-cjs/components/ui/GAction/GAction.vue.d.cts +2 -0
- package/dist/types-cjs/components/ui/GAction/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GAction/types.d.cts +33 -0
- package/dist/types-cjs/components/ui/GAlert/GAlert.vue.d.cts +756 -0
- package/dist/types-cjs/components/ui/GAlert/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GAlert/types.d.cts +400 -0
- package/dist/types-cjs/components/ui/GAside/GAside.vue.d.cts +50 -0
- package/dist/types-cjs/components/ui/GAside/GAsideGroup.vue.d.cts +30 -0
- package/dist/types-cjs/components/ui/GAside/GAsideItem.vue.d.cts +37 -0
- package/dist/types-cjs/components/ui/GAside/context.d.cts +15 -0
- package/dist/types-cjs/components/ui/GAside/groupContext.d.cts +7 -0
- package/dist/types-cjs/components/ui/GAside/index.d.cts +4 -0
- package/dist/types-cjs/components/ui/GAside/types.d.cts +273 -0
- package/dist/types-cjs/components/ui/GAvatar/GAvatar.vue.d.cts +867 -0
- package/dist/types-cjs/components/ui/GAvatar/GAvatarGroup.vue.d.cts +188 -0
- package/dist/types-cjs/components/ui/GAvatar/index.d.cts +3 -0
- package/dist/types-cjs/components/ui/GAvatar/types.d.cts +585 -0
- package/dist/types-cjs/components/ui/GBadge/GBadge.vue.d.cts +786 -0
- package/dist/types-cjs/components/ui/GBadge/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GBadge/types.d.cts +422 -0
- package/dist/types-cjs/components/ui/GButton/GButton.vue.d.cts +820 -0
- package/dist/types-cjs/components/ui/GButton/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GButton/types.d.cts +457 -0
- package/dist/types-cjs/components/ui/GCard/GCard.vue.d.cts +943 -0
- package/dist/types-cjs/components/ui/GCard/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GCard/types.d.cts +519 -0
- package/dist/types-cjs/components/ui/GCheckControl/GCheckControl.vue.d.cts +242 -0
- package/dist/types-cjs/components/ui/GCheckControl/GCheckGroup.vue.d.cts +184 -0
- package/dist/types-cjs/components/ui/GCheckControl/GCheckIndicator.vue.d.cts +28 -0
- package/dist/types-cjs/components/ui/GCheckControl/index.d.cts +3 -0
- package/dist/types-cjs/components/ui/GCheckbox/GCheckbox.vue.d.cts +27 -0
- package/dist/types-cjs/components/ui/GCheckbox/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GCheckbox/types.d.cts +1 -0
- package/dist/types-cjs/components/ui/GCheckboxGroup/GCheckboxGroup.vue.d.cts +26 -0
- package/dist/types-cjs/components/ui/GCheckboxGroup/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GCheckboxGroup/types.d.cts +12 -0
- package/dist/types-cjs/components/ui/GChip/GChip.vue.d.cts +731 -0
- package/dist/types-cjs/components/ui/GChip/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GChip/types.d.cts +403 -0
- package/dist/types-cjs/components/ui/GCombobox/GCombobox.vue.d.cts +39 -0
- package/dist/types-cjs/components/ui/GCombobox/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GCombobox/types.d.cts +59 -0
- package/dist/types-cjs/components/ui/GDivider/GDivider.vue.d.cts +959 -0
- package/dist/types-cjs/components/ui/GDivider/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GDivider/types.d.cts +518 -0
- package/dist/types-cjs/components/ui/GDrawer/GDrawer.vue.d.cts +429 -0
- package/dist/types-cjs/components/ui/GDrawer/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GDrawer/types.d.cts +205 -0
- package/dist/types-cjs/components/ui/GDropdown/GDropdown.vue.d.cts +418 -0
- package/dist/types-cjs/components/ui/GDropdown/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GDropdown/types.d.cts +208 -0
- package/dist/types-cjs/components/ui/GDropdownGroup/GDropdownGroup.vue.d.cts +23 -0
- package/dist/types-cjs/components/ui/GDropdownGroup/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GDropdownGroup/types.d.cts +10 -0
- package/dist/types-cjs/components/ui/GDropdownSelect/GDropdownSelect.vue.d.cts +19 -0
- package/dist/types-cjs/components/ui/GDropdownSelect/index.d.cts +0 -0
- package/dist/types-cjs/components/ui/GDropdownSelect/types.d.cts +14 -0
- package/dist/types-cjs/components/ui/GExpansion/GExpansion.vue.d.cts +110 -0
- package/dist/types-cjs/components/ui/GExpansion/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GExpansion/types.d.cts +479 -0
- package/dist/types-cjs/components/ui/GExpansionGroup/GExpansionGroup.vue.d.cts +34 -0
- package/dist/types-cjs/components/ui/GExpansionGroup/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GExpansionGroup/types.d.cts +61 -0
- package/dist/types-cjs/components/ui/GFAB/GFAB.vue.d.cts +415 -0
- package/dist/types-cjs/components/ui/GFAB/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GFAB/types.d.cts +247 -0
- package/dist/types-cjs/components/ui/GFieldBase/GFieldBase.vue.d.cts +312 -0
- package/dist/types-cjs/components/ui/GFieldBase/props.d.cts +256 -0
- package/dist/types-cjs/components/ui/GForm/GForm.vue.d.cts +148 -0
- package/dist/types-cjs/components/ui/GForm/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GForm/types.d.cts +107 -0
- package/dist/types-cjs/components/ui/GGradient/GGradient.vue.d.cts +362 -0
- package/dist/types-cjs/components/ui/GGradient/GGradientBorderLayer.vue.d.cts +17 -0
- package/dist/types-cjs/components/ui/GGradient/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GGradient/types.d.cts +23 -0
- package/dist/types-cjs/components/ui/GGradientMaterial/GGradientMaterial.vue.d.cts +251 -0
- package/dist/types-cjs/components/ui/GGradientMaterial/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GGradientMaterial/types.d.cts +140 -0
- package/dist/types-cjs/components/ui/GIcon/GIcon.vue.d.cts +31 -0
- package/dist/types-cjs/components/ui/GIcon/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GIcon/sets/MdiIconSet.vue.d.cts +3 -0
- package/dist/types-cjs/components/ui/GIcon/types.d.cts +24 -0
- package/dist/types-cjs/components/ui/GIcon.vue.d.cts +6 -0
- package/dist/types-cjs/components/ui/GImg/GImg.vue.d.cts +266 -0
- package/dist/types-cjs/components/ui/GImg/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GImg/types.d.cts +174 -0
- package/dist/types-cjs/components/ui/GInput/GInput.vue.d.cts +33 -0
- package/dist/types-cjs/components/ui/GInput/SwitchPassword.vue.d.cts +9 -0
- package/dist/types-cjs/components/ui/GInput/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GInput/types.d.cts +8 -0
- package/dist/types-cjs/components/ui/GLoading/GLoading.vue.d.cts +128 -0
- package/dist/types-cjs/components/ui/GLoading/types.d.cts +63 -0
- package/dist/types-cjs/components/ui/GMenu/GMenu.vue.d.cts +87 -0
- package/dist/types-cjs/components/ui/GMenu/GSubmenu.vue.d.cts +26 -0
- package/dist/types-cjs/components/ui/GMenu/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GMenu/types.d.cts +0 -0
- package/dist/types-cjs/components/ui/GMenuItem/GMenuItem.vue.d.cts +175 -0
- package/dist/types-cjs/components/ui/GMenuItem/index.d.cts +0 -0
- package/dist/types-cjs/components/ui/GMenuItem/types.d.cts +93 -0
- package/dist/types-cjs/components/ui/GModal/GModal.vue.d.cts +420 -0
- package/dist/types-cjs/components/ui/GModal/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GModal/types.d.cts +198 -0
- package/dist/types-cjs/components/ui/GNavList/GNavGroup.vue.d.cts +30 -0
- package/dist/types-cjs/components/ui/GNavList/GNavItem.vue.d.cts +37 -0
- package/dist/types-cjs/components/ui/GNavList/GNavList.vue.d.cts +42 -0
- package/dist/types-cjs/components/ui/GNavList/context.d.cts +15 -0
- package/dist/types-cjs/components/ui/GNavList/groupContext.d.cts +7 -0
- package/dist/types-cjs/components/ui/GNavList/index.d.cts +4 -0
- package/dist/types-cjs/components/ui/GNavList/types.d.cts +249 -0
- package/dist/types-cjs/components/ui/GNavbar/GNavbar.vue.d.cts +36 -0
- package/dist/types-cjs/components/ui/GNavbar/GNavbarItem.vue.d.cts +41 -0
- package/dist/types-cjs/components/ui/GNavbar/GNavbarMenu.vue.d.cts +43 -0
- package/dist/types-cjs/components/ui/GNavbar/GNavbarSubItem.vue.d.cts +42 -0
- package/dist/types-cjs/components/ui/GNavbar/context.d.cts +17 -0
- package/dist/types-cjs/components/ui/GNavbar/index.d.cts +5 -0
- package/dist/types-cjs/components/ui/GNavbar/menuContext.d.cts +9 -0
- package/dist/types-cjs/components/ui/GNavbar/types.d.cts +330 -0
- package/dist/types-cjs/components/ui/GProgress/GProgress.vue.d.cts +194 -0
- package/dist/types-cjs/components/ui/GProgress/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GProgress/types.d.cts +121 -0
- package/dist/types-cjs/components/ui/GQuickActions/GQuickActions.vue.d.cts +40 -0
- package/dist/types-cjs/components/ui/GQuickActions/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GQuickActions/types.d.cts +19 -0
- package/dist/types-cjs/components/ui/GRadio/GRadio.vue.d.cts +26 -0
- package/dist/types-cjs/components/ui/GRadio/GRadioItem.vue.d.cts +34 -0
- package/dist/types-cjs/components/ui/GRadio/index.d.cts +3 -0
- package/dist/types-cjs/components/ui/GRadio/types.d.cts +12 -0
- package/dist/types-cjs/components/ui/GSelect/GSelect.vue.d.cts +31 -0
- package/dist/types-cjs/components/ui/GSelect/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GSelect/types.d.cts +38 -0
- package/dist/types-cjs/components/ui/GSelectItem.vue.d.cts +43 -0
- package/dist/types-cjs/components/ui/GSnackbar/GSnackbar.vue.d.cts +986 -0
- package/dist/types-cjs/components/ui/GSnackbar/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GSnackbar/types.d.cts +515 -0
- package/dist/types-cjs/components/ui/GSquircle/GSquircle.vue.d.cts +19 -0
- package/dist/types-cjs/components/ui/GSquircle/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GSquircle/types.d.cts +20 -0
- package/dist/types-cjs/components/ui/GStepper/GStepItem.vue.d.cts +18 -0
- package/dist/types-cjs/components/ui/GStepper/GStepPanel.vue.d.cts +78 -0
- package/dist/types-cjs/components/ui/GStepper/GStepper.vue.d.cts +65 -0
- package/dist/types-cjs/components/ui/GStepper/GStepperActions.vue.d.cts +24 -0
- package/dist/types-cjs/components/ui/GStepper/context.d.cts +42 -0
- package/dist/types-cjs/components/ui/GStepper/index.d.cts +4 -0
- package/dist/types-cjs/components/ui/GStepper/types.d.cts +708 -0
- package/dist/types-cjs/components/ui/GSwitch/GSwitch.vue.d.cts +27 -0
- package/dist/types-cjs/components/ui/GSwitch/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GSwitch/types.d.cts +1 -0
- package/dist/types-cjs/components/ui/GTable/GTable.vue.d.cts +193 -0
- package/dist/types-cjs/components/ui/GTable/GTableBody.vue.d.cts +71 -0
- package/dist/types-cjs/components/ui/GTable/GTableCell.vue.d.cts +37 -0
- package/dist/types-cjs/components/ui/GTable/GTableExpandedRow.vue.d.cts +27 -0
- package/dist/types-cjs/components/ui/GTable/GTableHead.vue.d.cts +32 -0
- package/dist/types-cjs/components/ui/GTable/GTableRow.vue.d.cts +42 -0
- package/dist/types-cjs/components/ui/GTable/context.d.cts +25 -0
- package/dist/types-cjs/components/ui/GTable/index.d.cts +3 -0
- package/dist/types-cjs/components/ui/GTable/types.d.cts +670 -0
- package/dist/types-cjs/components/ui/GTable/useTable.d.cts +22 -0
- package/dist/types-cjs/components/ui/GTable/useTableExpansion.d.cts +17 -0
- package/dist/types-cjs/components/ui/GTable/useTableSpans.d.cts +12 -0
- package/dist/types-cjs/components/ui/GTabs/GTab.vue.d.cts +29 -0
- package/dist/types-cjs/components/ui/GTabs/GTabList.vue.d.cts +32 -0
- package/dist/types-cjs/components/ui/GTabs/GTabPanel.vue.d.cts +22 -0
- package/dist/types-cjs/components/ui/GTabs/GTabPanels.vue.d.cts +30 -0
- package/dist/types-cjs/components/ui/GTabs/GTabs.vue.d.cts +42 -0
- package/dist/types-cjs/components/ui/GTabs/context.d.cts +28 -0
- package/dist/types-cjs/components/ui/GTabs/index.d.cts +6 -0
- package/dist/types-cjs/components/ui/GTabs/types.d.cts +214 -0
- package/dist/types-cjs/components/ui/GText/GText.vue.d.cts +12 -0
- package/dist/types-cjs/components/ui/GText/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GText/types.d.cts +8 -0
- package/dist/types-cjs/components/ui/GTextarea/GTextarea.vue.d.cts +33 -0
- package/dist/types-cjs/components/ui/GTextarea/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GTextarea/types.d.cts +6 -0
- package/dist/types-cjs/components/ui/GToggleButton/GToggleButton.vue.d.cts +27 -0
- package/dist/types-cjs/components/ui/GToggleButton/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GToggleButton/types.d.cts +425 -0
- package/dist/types-cjs/components/ui/GTooltip/GTooltip.vue.d.cts +353 -0
- package/dist/types-cjs/components/ui/GTooltip/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GTooltip/types.d.cts +179 -0
- package/dist/types-cjs/directives/gradientIcon.d.cts +4 -0
- package/dist/types-cjs/directives/gradientText.d.cts +17 -0
- package/dist/types-cjs/directives/index.d.cts +13 -0
- package/dist/types-cjs/directives/loading.d.cts +19 -0
- package/dist/types-cjs/directives/mask.d.cts +13 -0
- package/dist/types-cjs/directives/ripple.d.cts +30 -0
- package/dist/types-cjs/directives/specular.d.cts +34 -0
- package/dist/types-cjs/directives/tooltip.d.cts +10 -0
- package/dist/types-cjs/index.d.cts +17 -0
- package/dist/types-cjs/package.json +3 -0
- package/dist/types-cjs/plugin.d.cts +15 -0
- package/dist/types-cjs/services/context.d.cts +8 -0
- package/dist/types-cjs/services/index.d.cts +4 -0
- package/dist/types-cjs/services/runtime.d.cts +5 -0
- package/dist/types-cjs/services/useLoading.d.cts +11 -0
- package/dist/types-cjs/services/useSnackbar.d.cts +25 -0
- package/dist/types-cjs/ssr/index.d.cts +2 -0
- package/dist/types-cjs/ssr/use/appScopedState.d.cts +1 -0
- package/dist/types-cjs/ssr/use/clientLifecycle.d.cts +2 -0
- package/dist/types-cjs/ssr/use/hydration.d.cts +2 -0
- package/dist/types-cjs/ssr/use/id.d.cts +1 -0
- package/dist/types-cjs/ssr/use/index.d.cts +6 -0
- package/dist/types-cjs/ssr/use/teleport.d.cts +11 -0
- package/dist/types-cjs/ssr/use/viewport.d.cts +12 -0
- package/dist/types-cjs/ssr/utils/environment.d.cts +11 -0
- package/dist/types-cjs/ssr/utils/head.d.cts +28 -0
- package/dist/types-cjs/ssr/utils/index.d.cts +3 -0
- package/dist/types-cjs/ssr/utils/mount.d.cts +21 -0
- package/dist/types-cjs/theme/color.d.cts +11 -0
- package/dist/types-cjs/theme/colorSeeds.d.cts +22 -0
- package/dist/types-cjs/theme/colorSystem.d.cts +12 -0
- package/dist/types-cjs/theme/cssTokens.d.cts +8 -0
- package/dist/types-cjs/theme/default.d.cts +51 -0
- package/dist/types-cjs/theme/gradient.d.cts +1 -0
- package/dist/types-cjs/theme/index.d.cts +13 -0
- package/dist/types-cjs/theme/palette.d.cts +13 -0
- package/dist/types-cjs/theme/scheme.d.cts +2 -0
- package/dist/types-cjs/theme/types.d.cts +11 -0
- package/dist/types-cjs/types/Colors.d.cts +2 -0
- package/dist/types-cjs/types/CommonTypes.d.cts +26 -0
- package/dist/types-cjs/types/UtilityTypes.d.cts +2 -0
- package/dist/types-cjs/use/PLA.d.cts +101 -0
- package/dist/types-cjs/use/actionProps.d.cts +38 -0
- package/dist/types-cjs/use/actionSurface.d.cts +200 -0
- package/dist/types-cjs/use/appendTarget.d.cts +5 -0
- package/dist/types-cjs/use/bodyScrollLock.d.cts +2 -0
- package/dist/types-cjs/use/booleanProp.d.cts +2 -0
- package/dist/types-cjs/use/breakpoints/index.d.cts +36 -0
- package/dist/types-cjs/use/check/booleanControl.d.cts +61 -0
- package/dist/types-cjs/use/check/groupFocus.d.cts +17 -0
- package/dist/types-cjs/use/check/index.d.cts +6 -0
- package/dist/types-cjs/use/check/optionGroup.d.cts +36 -0
- package/dist/types-cjs/use/check/selection.d.cts +2 -0
- package/dist/types-cjs/use/check/types.d.cts +496 -0
- package/dist/types-cjs/use/color.d.cts +20 -0
- package/dist/types-cjs/use/colorResolver.d.cts +16 -0
- package/dist/types-cjs/use/controllableOpen.d.cts +10 -0
- package/dist/types-cjs/use/defaults.d.cts +12 -0
- package/dist/types-cjs/use/density.d.cts +16 -0
- package/dist/types-cjs/use/disabled.d.cts +12 -0
- package/dist/types-cjs/use/dropdownContext.d.cts +9 -0
- package/dist/types-cjs/use/expansion/controller.d.cts +12 -0
- package/dist/types-cjs/use/expansion/di.d.cts +5 -0
- package/dist/types-cjs/use/expansion/index.d.cts +3 -0
- package/dist/types-cjs/use/expansion/types.d.cts +11 -0
- package/dist/types-cjs/use/floating.d.cts +120 -0
- package/dist/types-cjs/use/floatingDismiss.d.cts +10 -0
- package/dist/types-cjs/use/floatingLayer.d.cts +12 -0
- package/dist/types-cjs/use/floatingTrigger.d.cts +27 -0
- package/dist/types-cjs/use/focused.d.cts +12 -0
- package/dist/types-cjs/use/form/context.d.cts +8 -0
- package/dist/types-cjs/use/form/control.d.cts +21 -0
- package/dist/types-cjs/use/form/fieldKeyboard.d.cts +19 -0
- package/dist/types-cjs/use/form/props.d.cts +121 -0
- package/dist/types-cjs/use/form/textFieldComponent.d.cts +12 -0
- package/dist/types-cjs/use/form/textFieldControl.d.cts +71 -0
- package/dist/types-cjs/use/glass.d.cts +24 -0
- package/dist/types-cjs/use/gradient.d.cts +291 -0
- package/dist/types-cjs/use/gradientGlow.d.cts +48 -0
- package/dist/types-cjs/use/gradientMaterial.d.cts +21 -0
- package/dist/types-cjs/use/gradientRuntime.d.cts +11 -0
- package/dist/types-cjs/use/gradientRuntimeRegistry.d.cts +8 -0
- package/dist/types-cjs/use/gradientSurface.d.cts +50 -0
- package/dist/types-cjs/use/group/di.d.cts +5 -0
- package/dist/types-cjs/use/group/groupController.d.cts +10 -0
- package/dist/types-cjs/use/group/types.d.cts +9 -0
- package/dist/types-cjs/use/highlighted.d.cts +12 -0
- package/dist/types-cjs/use/icon.d.cts +22 -0
- package/dist/types-cjs/use/index.d.cts +23 -0
- package/dist/types-cjs/use/input/control.d.cts +10 -0
- package/dist/types-cjs/use/input/emits.d.cts +8 -0
- package/dist/types-cjs/use/input/index.d.cts +4 -0
- package/dist/types-cjs/use/input/props.d.cts +163 -0
- package/dist/types-cjs/use/items.d.cts +20 -0
- package/dist/types-cjs/use/layerStack.d.cts +15 -0
- package/dist/types-cjs/use/mask/index.d.cts +24 -0
- package/dist/types-cjs/use/material.d.cts +113 -0
- package/dist/types-cjs/use/materialSurface.d.cts +382 -0
- package/dist/types-cjs/use/menu.d.cts +49 -0
- package/dist/types-cjs/use/menuContext.d.cts +6 -0
- package/dist/types-cjs/use/navigation/controller.d.cts +14 -0
- package/dist/types-cjs/use/navigation/index.d.cts +4 -0
- package/dist/types-cjs/use/navigation/item.d.cts +9 -0
- package/dist/types-cjs/use/navigation/keyboard.d.cts +4 -0
- package/dist/types-cjs/use/navigation/types.d.cts +42 -0
- package/dist/types-cjs/use/open.d.cts +2 -0
- package/dist/types-cjs/use/overlay.d.cts +111 -0
- package/dist/types-cjs/use/placement.d.cts +16 -0
- package/dist/types-cjs/use/px.d.cts +4 -0
- package/dist/types-cjs/use/rounded.d.cts +12 -0
- package/dist/types-cjs/use/routerLink.d.cts +10 -0
- package/dist/types-cjs/use/select/comboboxController.d.cts +36 -0
- package/dist/types-cjs/use/select/commit.d.cts +23 -0
- package/dist/types-cjs/use/select/controller.d.cts +23 -0
- package/dist/types-cjs/use/select/creatable.d.cts +18 -0
- package/dist/types-cjs/use/select/fieldControl.d.cts +59 -0
- package/dist/types-cjs/use/select/filter.d.cts +14 -0
- package/dist/types-cjs/use/select/items.d.cts +14 -0
- package/dist/types-cjs/use/select/listboxKeyboard.d.cts +9 -0
- package/dist/types-cjs/use/select/menuItems.d.cts +11 -0
- package/dist/types-cjs/use/select/menuSlot.d.cts +5 -0
- package/dist/types-cjs/use/select/modelFallbackItems.d.cts +12 -0
- package/dist/types-cjs/use/select/search.d.cts +14 -0
- package/dist/types-cjs/use/select/searchFieldControl.d.cts +24 -0
- package/dist/types-cjs/use/select/selection.d.cts +12 -0
- package/dist/types-cjs/use/select/selectionController.d.cts +19 -0
- package/dist/types-cjs/use/select/selectionSummary.d.cts +8 -0
- package/dist/types-cjs/use/select/tokenInputKeyboard.d.cts +11 -0
- package/dist/types-cjs/use/select/types.d.cts +24 -0
- package/dist/types-cjs/use/selected.d.cts +17 -0
- package/dist/types-cjs/use/selectionModel.d.cts +19 -0
- package/dist/types-cjs/use/size.d.cts +16 -0
- package/dist/types-cjs/use/slots.d.cts +15 -0
- package/dist/types-cjs/use/state.d.cts +13 -0
- package/dist/types-cjs/use/stateIcon.d.cts +9 -0
- package/dist/types-cjs/use/stepper/controller.d.cts +20 -0
- package/dist/types-cjs/use/stepper/index.d.cts +1 -0
- package/dist/types-cjs/use/surface.d.cts +128 -0
- package/dist/types-cjs/use/surfaceColor.d.cts +19 -0
- package/dist/types-cjs/use/surfaceMaterial.d.cts +45 -0
- package/dist/types-cjs/use/tagName.d.cts +47 -0
- package/dist/types-cjs/use/textarea/index.d.cts +2 -0
- package/dist/types-cjs/use/textarea/props.d.cts +144 -0
- package/dist/types-cjs/use/transition.d.cts +156 -0
- package/dist/types-cjs/use/variant.d.cts +16 -0
- package/dist/types-cjs/use/visibleProps.d.cts +1 -0
- package/dist/types-cjs/use/zIndex.d.cts +10 -0
- package/dist/types-cjs/utils/camelToKebabCase.d.cts +1 -0
- package/dist/types-cjs/utils/createComponentId.d.cts +1 -0
- package/dist/types-cjs/utils/createId.d.cts +1 -0
- package/dist/types-cjs/utils/propsFactory.d.cts +29 -0
- package/dist/types-l8OJZAJz.cjs +1 -0
- package/dist/use.cjs +1 -1
- package/dist/use.mjs +80 -55
- package/dist/useSnackbar-CGt0lJDk.js +245 -0
- package/dist/useSnackbar-CRUtXt4_.cjs +1 -0
- package/dist/variant-BvBpmTET.cjs +1 -0
- package/dist/variant-Fpx1q_TY.js +15 -0
- package/dist/viewport-BhvdzcLi.cjs +1 -0
- package/dist/viewport-DhX6inI4.js +11 -0
- package/package.json +358 -28
- package/dist/GLoading.vue_vue_type_style_index_0_lang-BbVYszn2.js +0 -468
- package/dist/GLoading.vue_vue_type_style_index_0_lang-DW5X0giH.cjs +0 -1
- package/dist/GSwitch.vue_vue_type_script_setup_true_lang-BPwF9Kug.js +0 -8734
- package/dist/GSwitch.vue_vue_type_script_setup_true_lang-C45EmRhx.cjs +0 -1
- package/dist/camelToKebabCase-BQDotaQm.cjs +0 -316
- package/dist/camelToKebabCase-BWbQb81D.js +0 -3783
- package/dist/default--73FwpwZ.cjs +0 -4
- package/dist/default-DlsS6GI_.js +0 -58
- package/dist/defaults-BlTdRhHs.cjs +0 -1
- package/dist/defaults-DMi34V8q.js +0 -51
- package/dist/index-Cs3XQ3JB.js +0 -97
- package/dist/index-DN5ngVtp.cjs +0 -1
- package/dist/index-DVHKm06w.cjs +0 -1
- package/dist/index-DeFv4BdJ.js +0 -418
- package/dist/mask-669nMf98.js +0 -936
- package/dist/mask-Bh_UkcCe.cjs +0 -1
- package/dist/materialSurface-BbFTyJuA.js +0 -634
- package/dist/materialSurface-DOfA2E9c.cjs +0 -1
- package/dist/scheme-CZ0a0X5e.cjs +0 -299
- package/dist/scheme-Dqwdqg6N.js +0 -1405
- package/dist/surface-C3w1Rz6V.js +0 -291
- package/dist/surface-DB9flb-h.cjs +0 -1
- package/dist/useSnackbar-6OiYxhJA.cjs +0 -1
- package/dist/useSnackbar-BYPu4tJ4.js +0 -922
|
@@ -0,0 +1,828 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, createCommentVNode, Fragment, renderList, normalizeStyle, normalizeClass, renderSlot, createTextVNode, toDisplayString, provide, inject, unref, normalizeProps, guardReactiveProps, createVNode, withModifiers, createBlock, createSlots, withCtx, mergeProps, withDirectives, vShow, useSlots, ref, watch } from "vue";
|
|
2
|
+
import { m as makeDensityProps, u as useDensity } from "./density-Ci15Ek7T.js";
|
|
3
|
+
import { m as makeMaterialSurfaceProps, u as useMaterialSurface } from "./materialSurface-DKWanYUC.js";
|
|
4
|
+
import GGradient from "./components/GGradient.mjs";
|
|
5
|
+
import { m as makeSurfaceTextureProps } from "./surface-i-1vm2j3.js";
|
|
6
|
+
import { p as propsFactory } from "./propsFactory-FM5RGbLN.js";
|
|
7
|
+
import { _ as _sfc_main$6 } from "./GButton.vue_vue_type_style_index_0_lang-D9qRus1m.js";
|
|
8
|
+
import "./GTransition.vue_vue_type_script_setup_true_lang-CHGSgsZ0.js";
|
|
9
|
+
import { _ as _sfc_main$7 } from "./GExpandTransition.vue_vue_type_script_setup_true_lang-ztMeJVQO.js";
|
|
10
|
+
import "./GTransitionGroup.vue_vue_type_script_setup_true_lang-CDu6W6-X.js";
|
|
11
|
+
const makeTableProps = propsFactory({
|
|
12
|
+
...makeMaterialSurfaceProps(),
|
|
13
|
+
...makeSurfaceTextureProps(),
|
|
14
|
+
...makeDensityProps(),
|
|
15
|
+
headers: {
|
|
16
|
+
type: Array,
|
|
17
|
+
default: () => []
|
|
18
|
+
},
|
|
19
|
+
items: {
|
|
20
|
+
type: Array,
|
|
21
|
+
default: () => []
|
|
22
|
+
},
|
|
23
|
+
itemKey: {
|
|
24
|
+
type: [String, Function],
|
|
25
|
+
default: "id"
|
|
26
|
+
},
|
|
27
|
+
variant: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "tonal"
|
|
30
|
+
},
|
|
31
|
+
color: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "primary"
|
|
34
|
+
},
|
|
35
|
+
rounded: Boolean,
|
|
36
|
+
stickyHeader: Boolean,
|
|
37
|
+
fixedLayout: Boolean,
|
|
38
|
+
hover: Boolean,
|
|
39
|
+
clickableRows: Boolean,
|
|
40
|
+
striped: Boolean,
|
|
41
|
+
bordered: Boolean,
|
|
42
|
+
hideHeader: Boolean,
|
|
43
|
+
caption: String,
|
|
44
|
+
hideCaption: Boolean,
|
|
45
|
+
ariaLabel: String,
|
|
46
|
+
ariaLabelledby: String,
|
|
47
|
+
loading: Boolean,
|
|
48
|
+
loadingRows: {
|
|
49
|
+
type: Number,
|
|
50
|
+
default: 3
|
|
51
|
+
},
|
|
52
|
+
emptyText: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: "No data"
|
|
55
|
+
},
|
|
56
|
+
elevation: Boolean,
|
|
57
|
+
showExpand: Boolean,
|
|
58
|
+
expanded: {
|
|
59
|
+
type: Array,
|
|
60
|
+
default: () => []
|
|
61
|
+
},
|
|
62
|
+
singleExpand: Boolean,
|
|
63
|
+
expandOnRowClick: Boolean,
|
|
64
|
+
spans: {
|
|
65
|
+
type: Array,
|
|
66
|
+
default: () => []
|
|
67
|
+
},
|
|
68
|
+
cellProps: Function,
|
|
69
|
+
rowProps: Function,
|
|
70
|
+
headerProps: Function
|
|
71
|
+
}), _hoisted_1$5 = { class: "g-table__head" }, _hoisted_2$5 = { class: "g-table__row g-table__row_header" }, _hoisted_3$3 = {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: "g-table__header g-table__header_expand",
|
|
74
|
+
scope: "col"
|
|
75
|
+
}, _hoisted_4$3 = ["colspan", "rowspan"], _hoisted_5$2 = { class: "g-table__header-content" }, _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
76
|
+
name: "GTableHead",
|
|
77
|
+
__name: "GTableHead",
|
|
78
|
+
props: {
|
|
79
|
+
headers: {},
|
|
80
|
+
showExpand: { type: Boolean },
|
|
81
|
+
getHeaderStyle: { type: Function },
|
|
82
|
+
getHeaderAlign: { type: Function },
|
|
83
|
+
getHeaderAttrs: { type: Function },
|
|
84
|
+
getColumnFixedAttrs: { type: Function },
|
|
85
|
+
getHeaderSlotName: { type: Function }
|
|
86
|
+
},
|
|
87
|
+
setup(__props) {
|
|
88
|
+
const props = __props, headerCells = computed(
|
|
89
|
+
() => props.headers.map((header, index) => ({
|
|
90
|
+
header,
|
|
91
|
+
index,
|
|
92
|
+
attrs: props.getHeaderAttrs(header, index),
|
|
93
|
+
fixedAttrs: props.getColumnFixedAttrs(header, index)
|
|
94
|
+
}))
|
|
95
|
+
);
|
|
96
|
+
return (_ctx, _cache) => (openBlock(), createElementBlock("thead", _hoisted_1$5, [
|
|
97
|
+
createElementVNode("tr", _hoisted_2$5, [
|
|
98
|
+
__props.showExpand ? (openBlock(), createElementBlock("th", _hoisted_3$3)) : createCommentVNode("", !0),
|
|
99
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(headerCells.value, (cell) => (openBlock(), createElementBlock(Fragment, {
|
|
100
|
+
key: String(cell.header.key)
|
|
101
|
+
}, [
|
|
102
|
+
cell.attrs.hidden ? createCommentVNode("", !0) : (openBlock(), createElementBlock("th", {
|
|
103
|
+
key: 0,
|
|
104
|
+
class: normalizeClass(["g-table__header", [
|
|
105
|
+
`g-table__header_align-${__props.getHeaderAlign(cell.header)}`,
|
|
106
|
+
{
|
|
107
|
+
"g-table__header_nowrap": cell.header.nowrap,
|
|
108
|
+
"g-table__header_shrink": cell.header.shrink,
|
|
109
|
+
[`g-table__header_state-${cell.attrs.state}`]: cell.attrs.state
|
|
110
|
+
},
|
|
111
|
+
cell.fixedAttrs.class,
|
|
112
|
+
cell.header.headerClass,
|
|
113
|
+
cell.attrs.class
|
|
114
|
+
]]),
|
|
115
|
+
style: normalizeStyle([
|
|
116
|
+
__props.getHeaderStyle(cell.header),
|
|
117
|
+
cell.fixedAttrs.style,
|
|
118
|
+
cell.attrs.style
|
|
119
|
+
]),
|
|
120
|
+
colspan: cell.attrs.colspan,
|
|
121
|
+
rowspan: cell.attrs.rowspan,
|
|
122
|
+
scope: "col"
|
|
123
|
+
}, [
|
|
124
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
125
|
+
renderSlot(_ctx.$slots, __props.getHeaderSlotName(cell.header), {
|
|
126
|
+
header: cell.header,
|
|
127
|
+
index: cell.index
|
|
128
|
+
}, () => [
|
|
129
|
+
renderSlot(_ctx.$slots, "header", {
|
|
130
|
+
header: cell.header,
|
|
131
|
+
index: cell.index
|
|
132
|
+
}, () => [
|
|
133
|
+
createTextVNode(toDisplayString(cell.header.title), 1)
|
|
134
|
+
])
|
|
135
|
+
])
|
|
136
|
+
])
|
|
137
|
+
], 14, _hoisted_4$3))
|
|
138
|
+
], 64))), 128))
|
|
139
|
+
])
|
|
140
|
+
]));
|
|
141
|
+
}
|
|
142
|
+
}), GTableSymbol = Symbol("GTable"), provideTableContext = (context) => {
|
|
143
|
+
provide(GTableSymbol, context);
|
|
144
|
+
}, useTableContext = () => {
|
|
145
|
+
const context = inject(GTableSymbol);
|
|
146
|
+
if (!context)
|
|
147
|
+
throw new Error("GTable context is missing");
|
|
148
|
+
return context;
|
|
149
|
+
}, _hoisted_1$4 = ["colspan", "rowspan"], _hoisted_2$4 = { class: "g-table__cell-content" }, _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
150
|
+
name: "GTableCell",
|
|
151
|
+
__name: "GTableCell",
|
|
152
|
+
props: {
|
|
153
|
+
item: {},
|
|
154
|
+
header: {},
|
|
155
|
+
rowIndex: {},
|
|
156
|
+
columnIndex: {}
|
|
157
|
+
},
|
|
158
|
+
setup(__props) {
|
|
159
|
+
const props = __props, table = useTableContext(), cellContext = computed(
|
|
160
|
+
() => table.getCellContext(
|
|
161
|
+
props.item,
|
|
162
|
+
props.header,
|
|
163
|
+
props.rowIndex,
|
|
164
|
+
props.columnIndex
|
|
165
|
+
)
|
|
166
|
+
), cellAttrs = computed(() => table.getCellAttrs(cellContext.value)), fixedAttrs = computed(
|
|
167
|
+
() => table.getColumnFixedAttrs(props.header, props.columnIndex)
|
|
168
|
+
);
|
|
169
|
+
return (_ctx, _cache) => cellAttrs.value.hidden ? createCommentVNode("", !0) : (openBlock(), createElementBlock("td", {
|
|
170
|
+
key: 0,
|
|
171
|
+
class: normalizeClass(["g-table__cell", [
|
|
172
|
+
`g-table__cell_align-${unref(table).getAlign(__props.header)}`,
|
|
173
|
+
{
|
|
174
|
+
"g-table__cell_nowrap": __props.header.nowrap,
|
|
175
|
+
"g-table__cell_shrink": __props.header.shrink,
|
|
176
|
+
[`g-table__cell_state-${cellAttrs.value.state}`]: cellAttrs.value.state
|
|
177
|
+
},
|
|
178
|
+
fixedAttrs.value.class,
|
|
179
|
+
__props.header.cellClass,
|
|
180
|
+
cellAttrs.value.class
|
|
181
|
+
]]),
|
|
182
|
+
style: normalizeStyle([fixedAttrs.value.style, cellAttrs.value.style]),
|
|
183
|
+
colspan: cellAttrs.value.colspan,
|
|
184
|
+
rowspan: cellAttrs.value.rowspan,
|
|
185
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(table).onCellClick(cellContext.value, $event))
|
|
186
|
+
}, [
|
|
187
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
188
|
+
renderSlot(_ctx.$slots, unref(table).getItemSlotName(__props.header), normalizeProps(guardReactiveProps(cellContext.value)), () => [
|
|
189
|
+
renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(cellContext.value)), () => [
|
|
190
|
+
createTextVNode(toDisplayString(cellContext.value.value), 1)
|
|
191
|
+
])
|
|
192
|
+
])
|
|
193
|
+
])
|
|
194
|
+
], 14, _hoisted_1$4));
|
|
195
|
+
}
|
|
196
|
+
}), _hoisted_1$3 = ["tabindex"], _hoisted_2$3 = {
|
|
197
|
+
key: 0,
|
|
198
|
+
class: "g-table__cell g-table__cell_expand"
|
|
199
|
+
}, _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
200
|
+
name: "GTableRow",
|
|
201
|
+
__name: "GTableRow",
|
|
202
|
+
props: {
|
|
203
|
+
item: {},
|
|
204
|
+
rowIndex: {},
|
|
205
|
+
showExpand: { type: Boolean }
|
|
206
|
+
},
|
|
207
|
+
setup(__props) {
|
|
208
|
+
const props = __props, table = useTableContext(), rowContext = computed(
|
|
209
|
+
() => table.getRowContext(props.item, props.rowIndex)
|
|
210
|
+
), rowAttrs = computed(
|
|
211
|
+
() => table.getRowAttrs(props.item, props.rowIndex)
|
|
212
|
+
), onKeydown = (event) => {
|
|
213
|
+
table.rowInteractive.value && (event.key !== "Enter" && event.key !== " " || (event.preventDefault(), !(event.key === " " && event.repeat) && table.onRowClick(props.item, props.rowIndex, event)));
|
|
214
|
+
};
|
|
215
|
+
return (_ctx, _cache) => (openBlock(), createElementBlock("tr", {
|
|
216
|
+
class: normalizeClass(["g-table__row", [
|
|
217
|
+
{
|
|
218
|
+
"g-table__row_expanded": rowContext.value.expanded,
|
|
219
|
+
"g-table__row_interactive": unref(table).rowInteractive.value,
|
|
220
|
+
[`g-table__row_state-${rowAttrs.value.state}`]: rowAttrs.value.state
|
|
221
|
+
},
|
|
222
|
+
rowAttrs.value.class
|
|
223
|
+
]]),
|
|
224
|
+
style: normalizeStyle(rowAttrs.value.style),
|
|
225
|
+
tabindex: unref(table).rowInteractive.value ? 0 : void 0,
|
|
226
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(table).onRowClick(__props.item, __props.rowIndex, $event)),
|
|
227
|
+
onKeydown
|
|
228
|
+
}, [
|
|
229
|
+
__props.showExpand ? (openBlock(), createElementBlock("td", _hoisted_2$3, [
|
|
230
|
+
renderSlot(_ctx.$slots, "expand", normalizeProps(guardReactiveProps(unref(table).getRowContext(__props.item, __props.rowIndex))), () => [
|
|
231
|
+
createVNode(_sfc_main$6, {
|
|
232
|
+
"aria-expanded": unref(table).isRowExpanded(__props.item, __props.rowIndex),
|
|
233
|
+
"icon-button": unref(table).isRowExpanded(__props.item, __props.rowIndex) ? "chevron-up" : "chevron-down",
|
|
234
|
+
class: "g-table__expand-button",
|
|
235
|
+
ripple: !1,
|
|
236
|
+
size: "s",
|
|
237
|
+
variant: "text",
|
|
238
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => unref(table).toggleExpanded(__props.item, __props.rowIndex), ["stop"]))
|
|
239
|
+
}, null, 8, ["aria-expanded", "icon-button"])
|
|
240
|
+
])
|
|
241
|
+
])) : createCommentVNode("", !0),
|
|
242
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(table).headers.value, (header, columnIndex) => (openBlock(), createBlock(_sfc_main$4, {
|
|
243
|
+
key: String(header.key),
|
|
244
|
+
"column-index": columnIndex,
|
|
245
|
+
header,
|
|
246
|
+
item: __props.item,
|
|
247
|
+
"row-index": __props.rowIndex
|
|
248
|
+
}, createSlots({
|
|
249
|
+
item: withCtx((slotProps) => [
|
|
250
|
+
renderSlot(_ctx.$slots, "item", mergeProps({ ref_for: !0 }, slotProps), () => [
|
|
251
|
+
createTextVNode(toDisplayString(slotProps.value), 1)
|
|
252
|
+
])
|
|
253
|
+
]),
|
|
254
|
+
_: 2
|
|
255
|
+
}, [
|
|
256
|
+
renderList(unref(table).headers.value, (headerSlot) => ({
|
|
257
|
+
name: unref(table).getItemSlotName(headerSlot),
|
|
258
|
+
fn: withCtx((slotProps) => [
|
|
259
|
+
renderSlot(_ctx.$slots, unref(table).getItemSlotName(headerSlot), mergeProps({ ref_for: !0 }, slotProps))
|
|
260
|
+
])
|
|
261
|
+
}))
|
|
262
|
+
]), 1032, ["column-index", "header", "item", "row-index"]))), 128))
|
|
263
|
+
], 46, _hoisted_1$3));
|
|
264
|
+
}
|
|
265
|
+
}), _hoisted_1$2 = { class: "g-table__row g-table__row_expanded-content" }, _hoisted_2$2 = ["colspan"], _hoisted_3$2 = {
|
|
266
|
+
key: 0,
|
|
267
|
+
class: "g-table__expanded-body"
|
|
268
|
+
}, _hoisted_4$2 = { class: "g-table__expanded-content" }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
269
|
+
name: "GTableExpandedRow",
|
|
270
|
+
__name: "GTableExpandedRow",
|
|
271
|
+
props: {
|
|
272
|
+
item: {},
|
|
273
|
+
rowIndex: {}
|
|
274
|
+
},
|
|
275
|
+
setup(__props) {
|
|
276
|
+
const table = useTableContext();
|
|
277
|
+
return (_ctx, _cache) => (openBlock(), createElementBlock("tr", _hoisted_1$2, [
|
|
278
|
+
createElementVNode("td", {
|
|
279
|
+
class: "g-table__cell g-table__cell_expanded",
|
|
280
|
+
colspan: unref(table).columnCount.value
|
|
281
|
+
}, [
|
|
282
|
+
createVNode(unref(_sfc_main$7), {
|
|
283
|
+
duration: 240,
|
|
284
|
+
onAfterLeave: _cache[0] || (_cache[0] = ($event) => unref(table).onExpandedAfterLeave(__props.item, __props.rowIndex))
|
|
285
|
+
}, {
|
|
286
|
+
default: withCtx(() => [
|
|
287
|
+
unref(table).shouldRenderExpandedRow(__props.item, __props.rowIndex) ? withDirectives((openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
288
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
289
|
+
renderSlot(_ctx.$slots, "expanded-row", normalizeProps(guardReactiveProps({
|
|
290
|
+
...unref(table).getRowContext(__props.item, __props.rowIndex),
|
|
291
|
+
headers: unref(table).headers.value
|
|
292
|
+
})))
|
|
293
|
+
])
|
|
294
|
+
], 512)), [
|
|
295
|
+
[vShow, unref(table).isRowExpanded(__props.item, __props.rowIndex)]
|
|
296
|
+
]) : createCommentVNode("", !0)
|
|
297
|
+
]),
|
|
298
|
+
_: 3
|
|
299
|
+
})
|
|
300
|
+
], 8, _hoisted_2$2)
|
|
301
|
+
]));
|
|
302
|
+
}
|
|
303
|
+
}), _hoisted_1$1 = { class: "g-table__body" }, _hoisted_2$1 = {
|
|
304
|
+
key: 1,
|
|
305
|
+
class: "g-table__row g-table__row_state"
|
|
306
|
+
}, _hoisted_3$1 = ["colspan"], _hoisted_4$1 = {
|
|
307
|
+
"aria-hidden": "true",
|
|
308
|
+
class: "g-table__skeleton"
|
|
309
|
+
}, _hoisted_5$1 = {
|
|
310
|
+
key: 2,
|
|
311
|
+
class: "g-table__row g-table__row_state"
|
|
312
|
+
}, _hoisted_6 = ["colspan"], _hoisted_7 = { class: "g-table__empty" }, _hoisted_8 = { class: "g-table__empty-text" }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
313
|
+
name: "GTableBody",
|
|
314
|
+
__name: "GTableBody",
|
|
315
|
+
props: {
|
|
316
|
+
hasRows: { type: Boolean },
|
|
317
|
+
loading: { type: Boolean },
|
|
318
|
+
loadingRows: {},
|
|
319
|
+
emptyText: {},
|
|
320
|
+
showExpand: { type: Boolean },
|
|
321
|
+
hasExpandedRowSlot: { type: Boolean }
|
|
322
|
+
},
|
|
323
|
+
setup(__props) {
|
|
324
|
+
const slots = useSlots(), table = useTableContext();
|
|
325
|
+
return (_ctx, _cache) => (openBlock(), createElementBlock("tbody", _hoisted_1$1, [
|
|
326
|
+
unref(slots).body ? renderSlot(_ctx.$slots, "body", {
|
|
327
|
+
columnCount: unref(table).columnCount.value,
|
|
328
|
+
classes: unref(table).bodySlotClasses,
|
|
329
|
+
getCellContext: unref(table).getCellContext,
|
|
330
|
+
getRowContext: unref(table).getRowContext,
|
|
331
|
+
headers: unref(table).headers.value,
|
|
332
|
+
items: unref(table).items.value
|
|
333
|
+
}, void 0, void 0, 0) : __props.loading ? (openBlock(), createElementBlock("tr", _hoisted_2$1, [
|
|
334
|
+
createElementVNode("td", {
|
|
335
|
+
class: "g-table__cell g-table__cell_state",
|
|
336
|
+
colspan: unref(table).columnCount.value
|
|
337
|
+
}, [
|
|
338
|
+
renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
339
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
340
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(__props.loadingRows, (row) => (openBlock(), createElementBlock("span", {
|
|
341
|
+
key: row,
|
|
342
|
+
class: "g-table__skeleton-row"
|
|
343
|
+
}))), 128))
|
|
344
|
+
])
|
|
345
|
+
])
|
|
346
|
+
], 8, _hoisted_3$1)
|
|
347
|
+
])) : __props.hasRows ? (openBlock(!0), createElementBlock(Fragment, { key: 3 }, renderList(unref(table).items.value, (item, rowIndex) => (openBlock(), createElementBlock(Fragment, {
|
|
348
|
+
key: unref(table).getItemKey(item, rowIndex)
|
|
349
|
+
}, [
|
|
350
|
+
unref(slots).row ? renderSlot(_ctx.$slots, "row", mergeProps({ ref_for: !0 }, {
|
|
351
|
+
...unref(table).getRowContext(item, rowIndex),
|
|
352
|
+
headers: unref(table).headers.value
|
|
353
|
+
}), void 0, void 0, 0) : (openBlock(), createBlock(_sfc_main$3, {
|
|
354
|
+
key: 1,
|
|
355
|
+
item,
|
|
356
|
+
"row-index": rowIndex,
|
|
357
|
+
"show-expand": __props.showExpand
|
|
358
|
+
}, createSlots({
|
|
359
|
+
item: withCtx((slotProps) => [
|
|
360
|
+
renderSlot(_ctx.$slots, "item", mergeProps({ ref_for: !0 }, slotProps), () => [
|
|
361
|
+
createTextVNode(toDisplayString(slotProps.value), 1)
|
|
362
|
+
])
|
|
363
|
+
]),
|
|
364
|
+
_: 2
|
|
365
|
+
}, [
|
|
366
|
+
unref(slots).expand ? {
|
|
367
|
+
name: "expand",
|
|
368
|
+
fn: withCtx((slotProps) => [
|
|
369
|
+
renderSlot(_ctx.$slots, "expand", mergeProps({ ref_for: !0 }, slotProps))
|
|
370
|
+
]),
|
|
371
|
+
key: "0"
|
|
372
|
+
} : void 0,
|
|
373
|
+
renderList(unref(table).headers.value, (header) => ({
|
|
374
|
+
name: unref(table).getItemSlotName(header),
|
|
375
|
+
fn: withCtx((slotProps) => [
|
|
376
|
+
renderSlot(_ctx.$slots, unref(table).getItemSlotName(header), mergeProps({ ref_for: !0 }, slotProps))
|
|
377
|
+
])
|
|
378
|
+
}))
|
|
379
|
+
]), 1032, ["item", "row-index", "show-expand"])),
|
|
380
|
+
__props.showExpand && __props.hasExpandedRowSlot ? (openBlock(), createBlock(_sfc_main$2, {
|
|
381
|
+
key: 2,
|
|
382
|
+
item,
|
|
383
|
+
"row-index": rowIndex
|
|
384
|
+
}, {
|
|
385
|
+
"expanded-row": withCtx((slotProps) => [
|
|
386
|
+
renderSlot(_ctx.$slots, "expanded-row", mergeProps({ ref_for: !0 }, slotProps))
|
|
387
|
+
]),
|
|
388
|
+
_: 3
|
|
389
|
+
}, 8, ["item", "row-index"])) : createCommentVNode("", !0)
|
|
390
|
+
], 64))), 128)) : (openBlock(), createElementBlock("tr", _hoisted_5$1, [
|
|
391
|
+
createElementVNode("td", {
|
|
392
|
+
class: "g-table__cell g-table__cell_state",
|
|
393
|
+
colspan: unref(table).columnCount.value
|
|
394
|
+
}, [
|
|
395
|
+
createElementVNode("div", _hoisted_7, [
|
|
396
|
+
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
397
|
+
createElementVNode("span", _hoisted_8, toDisplayString(__props.emptyText), 1)
|
|
398
|
+
])
|
|
399
|
+
])
|
|
400
|
+
], 8, _hoisted_6)
|
|
401
|
+
]))
|
|
402
|
+
]));
|
|
403
|
+
}
|
|
404
|
+
}), useTable = (props) => {
|
|
405
|
+
const resolvedHeaders = computed(() => props.headers ?? []), resolvedItems = computed(() => props.items ?? []), columnCount = computed(
|
|
406
|
+
() => resolvedHeaders.value.length + (props.showExpand ? 1 : 0)
|
|
407
|
+
), hasRows = computed(() => resolvedItems.value.length > 0), bodySlotClasses = {
|
|
408
|
+
nativeRow: "g-table__native-row",
|
|
409
|
+
nativeCell: "g-table__native-cell",
|
|
410
|
+
nativeCellCenter: "g-table__native-cell g-table__native-cell_align-center",
|
|
411
|
+
nativeCellEnd: "g-table__native-cell g-table__native-cell_align-end",
|
|
412
|
+
groupCell: "g-table__native-cell g-table__native-cell_group"
|
|
413
|
+
}, toCssSize = (value) => typeof value == "number" ? `${value}px` : value, toCssOffset = (value) => toCssSize(value) ?? "0px", getColumnSize = (header) => header.width ?? header.minWidth, getFixedStartOffset = (index) => {
|
|
414
|
+
const headersOffset = resolvedHeaders.value.slice(0, index).filter((header) => header.fixed === "start").map((header) => toCssOffset(getColumnSize(header))), offsets = props.showExpand ? ["56px", ...headersOffset] : headersOffset;
|
|
415
|
+
return offsets.length > 0 ? `calc(${offsets.join(" + ")})` : "0px";
|
|
416
|
+
}, getFixedEndOffset = (index) => {
|
|
417
|
+
const offsets = resolvedHeaders.value.slice(index + 1).filter((header) => header.fixed === "end").map((header) => toCssOffset(getColumnSize(header)));
|
|
418
|
+
return offsets.length > 0 ? `calc(${offsets.join(" + ")})` : "0px";
|
|
419
|
+
}, getColumnFixedAttrs = (header, index) => header.fixed ? {
|
|
420
|
+
class: [
|
|
421
|
+
"g-table__column_fixed",
|
|
422
|
+
`g-table__column_fixed-${header.fixed}`
|
|
423
|
+
],
|
|
424
|
+
style: {
|
|
425
|
+
[header.fixed === "start" ? "left" : "right"]: header.fixed === "start" ? getFixedStartOffset(index) : getFixedEndOffset(index)
|
|
426
|
+
}
|
|
427
|
+
} : {}, getHeaderStyle = (header) => ({
|
|
428
|
+
width: toCssSize(header.width),
|
|
429
|
+
minWidth: toCssSize(header.minWidth),
|
|
430
|
+
maxWidth: toCssSize(header.maxWidth)
|
|
431
|
+
}), getValueByPath = (item, key) => typeof key != "string" ? item[key] : key.split(".").reduce((value, pathKey) => {
|
|
432
|
+
if (!(value == null || typeof value != "object"))
|
|
433
|
+
return value[pathKey];
|
|
434
|
+
}, item), getItemKey = (item, index) => {
|
|
435
|
+
if (typeof props.itemKey == "function")
|
|
436
|
+
return props.itemKey(item, index);
|
|
437
|
+
const value = getValueByPath(item, props.itemKey ?? "id");
|
|
438
|
+
return typeof value == "string" || typeof value == "number" ? value : index;
|
|
439
|
+
}, getCellValue = (item, header, rowIndex) => {
|
|
440
|
+
const value = header.value ? header.value(item, rowIndex) : getValueByPath(item, header.key);
|
|
441
|
+
return header.format ? header.format(value, item, rowIndex) : value;
|
|
442
|
+
}, getCellContext = (item, header, rowIndex, columnIndex) => ({
|
|
443
|
+
item,
|
|
444
|
+
header,
|
|
445
|
+
value: getCellValue(item, header, rowIndex),
|
|
446
|
+
rowIndex,
|
|
447
|
+
columnIndex,
|
|
448
|
+
headers: resolvedHeaders.value
|
|
449
|
+
}), getHeaderAttrs = (header, index) => {
|
|
450
|
+
var _a;
|
|
451
|
+
return ((_a = props.headerProps) == null ? void 0 : _a.call(props, header, index)) ?? {};
|
|
452
|
+
}, getAlign = (header) => header.align ?? "start";
|
|
453
|
+
return {
|
|
454
|
+
resolvedHeaders,
|
|
455
|
+
resolvedItems,
|
|
456
|
+
columnCount,
|
|
457
|
+
hasRows,
|
|
458
|
+
bodySlotClasses,
|
|
459
|
+
getHeaderStyle,
|
|
460
|
+
getItemKey,
|
|
461
|
+
getCellContext,
|
|
462
|
+
getHeaderAttrs,
|
|
463
|
+
getColumnFixedAttrs,
|
|
464
|
+
getAlign,
|
|
465
|
+
getHeaderAlign: (header) => header.headerAlign ?? getAlign(header),
|
|
466
|
+
getHeaderSlotName: (header) => `header.${String(header.key)}`,
|
|
467
|
+
getItemSlotName: (header) => `item.${String(header.key)}`
|
|
468
|
+
};
|
|
469
|
+
}, useTableExpansion = ({
|
|
470
|
+
props,
|
|
471
|
+
hasExpandedRowSlot,
|
|
472
|
+
getItemKey,
|
|
473
|
+
emitUpdateExpanded,
|
|
474
|
+
emitExpand
|
|
475
|
+
}) => {
|
|
476
|
+
const expandedSet = computed(() => new Set(props.expanded ?? [])), mountedExpandedRows = ref(
|
|
477
|
+
new Set(props.expanded ?? [])
|
|
478
|
+
), toggleExpanded = (item, index) => {
|
|
479
|
+
if (!props.showExpand) return;
|
|
480
|
+
const key = getItemKey(item, index), next = new Set(props.singleExpand ? [] : props.expanded), isExpanded = expandedSet.value.has(key);
|
|
481
|
+
isExpanded ? next.delete(key) : next.add(key);
|
|
482
|
+
const nextValue = Array.from(next);
|
|
483
|
+
emitUpdateExpanded(nextValue), emitExpand(item, !isExpanded);
|
|
484
|
+
}, isRowExpanded = (item, index) => expandedSet.value.has(getItemKey(item, index)), isExpandedRowMounted = (item, index) => mountedExpandedRows.value.has(getItemKey(item, index)), shouldRenderExpandedRow = (item, index) => !!(props.showExpand && hasExpandedRowSlot.value && isExpandedRowMounted(item, index)), onExpandedAfterLeave = (item, index) => {
|
|
485
|
+
const next = new Set(mountedExpandedRows.value);
|
|
486
|
+
next.delete(getItemKey(item, index)), mountedExpandedRows.value = next;
|
|
487
|
+
};
|
|
488
|
+
return watch(
|
|
489
|
+
() => props.expanded ?? [],
|
|
490
|
+
(value) => {
|
|
491
|
+
mountedExpandedRows.value = /* @__PURE__ */ new Set([
|
|
492
|
+
...mountedExpandedRows.value,
|
|
493
|
+
...value
|
|
494
|
+
]);
|
|
495
|
+
},
|
|
496
|
+
{ immediate: !0 }
|
|
497
|
+
), {
|
|
498
|
+
expandedSet,
|
|
499
|
+
toggleExpanded,
|
|
500
|
+
isRowExpanded,
|
|
501
|
+
shouldRenderExpandedRow,
|
|
502
|
+
onExpandedAfterLeave
|
|
503
|
+
};
|
|
504
|
+
}, mergeCellAttrs = (baseAttrs, nextAttrs) => ({
|
|
505
|
+
colspan: nextAttrs.colspan ?? baseAttrs.colspan,
|
|
506
|
+
rowspan: nextAttrs.rowspan ?? baseAttrs.rowspan,
|
|
507
|
+
hidden: !!(baseAttrs.hidden || nextAttrs.hidden),
|
|
508
|
+
class: [baseAttrs.class, nextAttrs.class],
|
|
509
|
+
style: [baseAttrs.style, nextAttrs.style]
|
|
510
|
+
}), useTableSpans = ({
|
|
511
|
+
props,
|
|
512
|
+
resolvedHeaders,
|
|
513
|
+
resolvedItems,
|
|
514
|
+
getRowContext
|
|
515
|
+
}) => {
|
|
516
|
+
const isSpanOriginRow = (span, item, rowIndex) => {
|
|
517
|
+
const rowContext = getRowContext(item, rowIndex);
|
|
518
|
+
return typeof span.row == "function" ? span.row(rowContext) : span.row === rowContext.key || span.row === rowIndex;
|
|
519
|
+
}, getSpanOriginRowIndex = (span) => resolvedItems.value.findIndex(
|
|
520
|
+
(item, rowIndex) => isSpanOriginRow(span, item, rowIndex)
|
|
521
|
+
), getSpanOriginColumnIndex = (span) => resolvedHeaders.value.findIndex(
|
|
522
|
+
(header) => String(header.key) === String(span.column)
|
|
523
|
+
), getSpanAttrs = (context) => {
|
|
524
|
+
const spans = props.spans ?? [];
|
|
525
|
+
for (const span of spans) {
|
|
526
|
+
const rowIndex = getSpanOriginRowIndex(span), columnIndex = getSpanOriginColumnIndex(span), colspan = span.colspan ?? 1, rowspan = span.rowspan ?? 1;
|
|
527
|
+
if (rowIndex < 0 || columnIndex < 0) continue;
|
|
528
|
+
const isOrigin = context.rowIndex === rowIndex && context.columnIndex === columnIndex, isCovered = context.rowIndex >= rowIndex && context.rowIndex < rowIndex + rowspan && context.columnIndex >= columnIndex && context.columnIndex < columnIndex + colspan;
|
|
529
|
+
if (isOrigin) return span;
|
|
530
|
+
if (isCovered) return { hidden: !0 };
|
|
531
|
+
}
|
|
532
|
+
return {};
|
|
533
|
+
};
|
|
534
|
+
return { getCellAttrs: (context) => {
|
|
535
|
+
var _a;
|
|
536
|
+
const spanAttrs = getSpanAttrs(context), customAttrs = ((_a = props.cellProps) == null ? void 0 : _a.call(props, context)) ?? {};
|
|
537
|
+
return mergeCellAttrs(spanAttrs, customAttrs);
|
|
538
|
+
} };
|
|
539
|
+
}, _hoisted_1 = {
|
|
540
|
+
key: 0,
|
|
541
|
+
class: "g-table__top"
|
|
542
|
+
}, _hoisted_2 = { class: "g-table__scroller" }, _hoisted_3 = ["aria-label", "aria-labelledby"], _hoisted_4 = {
|
|
543
|
+
key: 0,
|
|
544
|
+
class: "g-table__col g-table__col_expand"
|
|
545
|
+
}, _hoisted_5 = {
|
|
546
|
+
key: 1,
|
|
547
|
+
class: "g-table__bottom"
|
|
548
|
+
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
549
|
+
__name: "GTable",
|
|
550
|
+
props: makeTableProps(),
|
|
551
|
+
emits: ["update:expanded", "expand", "row-click", "cell-click"],
|
|
552
|
+
setup(__props, { emit: __emit }) {
|
|
553
|
+
const props = __props, tableProps = props, densityClass = useDensity(props, "g-table"), emit = __emit, slots = useSlots(), {
|
|
554
|
+
getMorphBlobStyle,
|
|
555
|
+
morphBlobs,
|
|
556
|
+
morphEnabled,
|
|
557
|
+
materialFrameProps,
|
|
558
|
+
surfaceStyles,
|
|
559
|
+
surfaceMaterialMorphBlobClasses,
|
|
560
|
+
surfaceMaterialMorphClasses,
|
|
561
|
+
surfaceOverlayClasses,
|
|
562
|
+
surfaceUnderlayClasses,
|
|
563
|
+
surfaceTextureClasses,
|
|
564
|
+
surfaceContentClasses
|
|
565
|
+
} = useMaterialSurface(props, "g-table"), tableFrameProps = computed(() => ({
|
|
566
|
+
...materialFrameProps.value,
|
|
567
|
+
borderRadius: props.borderRadius ?? (props.rounded ? 20 : 12)
|
|
568
|
+
})), hasExpandedRowSlot = computed(
|
|
569
|
+
() => !!slots.expandedRow || !!slots["expanded-row"]
|
|
570
|
+
), table = useTable(tableProps), {
|
|
571
|
+
resolvedHeaders,
|
|
572
|
+
resolvedItems,
|
|
573
|
+
columnCount,
|
|
574
|
+
hasRows,
|
|
575
|
+
bodySlotClasses,
|
|
576
|
+
getHeaderStyle,
|
|
577
|
+
getItemKey,
|
|
578
|
+
getCellContext,
|
|
579
|
+
getHeaderAttrs,
|
|
580
|
+
getColumnFixedAttrs,
|
|
581
|
+
getAlign,
|
|
582
|
+
getHeaderAlign,
|
|
583
|
+
getHeaderSlotName,
|
|
584
|
+
getItemSlotName
|
|
585
|
+
} = table, headerSlotHeaders = computed(
|
|
586
|
+
() => resolvedHeaders.value.filter(
|
|
587
|
+
(header) => slots[getHeaderSlotName(header)]
|
|
588
|
+
)
|
|
589
|
+
), itemSlotHeaders = computed(
|
|
590
|
+
() => resolvedHeaders.value.filter((header) => slots[getItemSlotName(header)])
|
|
591
|
+
), rowInteractive = computed(
|
|
592
|
+
() => props.clickableRows || props.expandOnRowClick
|
|
593
|
+
), hasFixedStart = computed(
|
|
594
|
+
() => resolvedHeaders.value.some((header) => header.fixed === "start")
|
|
595
|
+
), hasFixedEnd = computed(
|
|
596
|
+
() => resolvedHeaders.value.some((header) => header.fixed === "end")
|
|
597
|
+
), expansion = useTableExpansion({
|
|
598
|
+
props: tableProps,
|
|
599
|
+
hasExpandedRowSlot,
|
|
600
|
+
getItemKey,
|
|
601
|
+
emitUpdateExpanded: (value) => emit("update:expanded", value),
|
|
602
|
+
emitExpand: (item, expanded) => emit("expand", item, expanded)
|
|
603
|
+
}), {
|
|
604
|
+
toggleExpanded,
|
|
605
|
+
isRowExpanded,
|
|
606
|
+
shouldRenderExpandedRow,
|
|
607
|
+
onExpandedAfterLeave
|
|
608
|
+
} = expansion, getRowContext = (item, index) => {
|
|
609
|
+
const key = getItemKey(item, index);
|
|
610
|
+
return {
|
|
611
|
+
item,
|
|
612
|
+
index,
|
|
613
|
+
key,
|
|
614
|
+
expanded: isRowExpanded(item, index),
|
|
615
|
+
toggleExpanded: () => toggleExpanded(item, index)
|
|
616
|
+
};
|
|
617
|
+
}, getRowAttrs = (item, index) => {
|
|
618
|
+
var _a;
|
|
619
|
+
return ((_a = tableProps.rowProps) == null ? void 0 : _a.call(tableProps, getRowContext(item, index))) ?? {};
|
|
620
|
+
}, { getCellAttrs } = useTableSpans({
|
|
621
|
+
props: tableProps,
|
|
622
|
+
resolvedHeaders,
|
|
623
|
+
resolvedItems,
|
|
624
|
+
getRowContext
|
|
625
|
+
});
|
|
626
|
+
return provideTableContext({
|
|
627
|
+
headers: resolvedHeaders,
|
|
628
|
+
items: resolvedItems,
|
|
629
|
+
columnCount,
|
|
630
|
+
bodySlotClasses,
|
|
631
|
+
rowInteractive,
|
|
632
|
+
getItemKey,
|
|
633
|
+
getRowContext,
|
|
634
|
+
getRowAttrs,
|
|
635
|
+
getCellContext,
|
|
636
|
+
getCellAttrs,
|
|
637
|
+
getColumnFixedAttrs,
|
|
638
|
+
getAlign,
|
|
639
|
+
getItemSlotName,
|
|
640
|
+
isRowExpanded,
|
|
641
|
+
shouldRenderExpandedRow,
|
|
642
|
+
onExpandedAfterLeave,
|
|
643
|
+
toggleExpanded,
|
|
644
|
+
onRowClick: (item, index, event) => {
|
|
645
|
+
props.expandOnRowClick && toggleExpanded(item, index), emit("row-click", item, event);
|
|
646
|
+
},
|
|
647
|
+
onCellClick: (context, event) => {
|
|
648
|
+
emit("cell-click", context, event);
|
|
649
|
+
}
|
|
650
|
+
}), (_ctx, _cache) => (openBlock(), createBlock(GGradient, mergeProps({ class: "g-table__frame" }, tableFrameProps.value), {
|
|
651
|
+
default: withCtx(() => [
|
|
652
|
+
createElementVNode("div", {
|
|
653
|
+
class: normalizeClass(["g-table", [
|
|
654
|
+
`g-table_${props.variant}`,
|
|
655
|
+
unref(densityClass),
|
|
656
|
+
{
|
|
657
|
+
"g-table_rounded": props.rounded,
|
|
658
|
+
"g-table_sticky-header": props.stickyHeader,
|
|
659
|
+
"g-table_fixed-layout": props.fixedLayout,
|
|
660
|
+
"g-table_hover": props.hover,
|
|
661
|
+
"g-table_clickable-rows": rowInteractive.value,
|
|
662
|
+
"g-table_striped": props.striped,
|
|
663
|
+
"g-table_bordered": props.bordered,
|
|
664
|
+
"g-table_loading": props.loading,
|
|
665
|
+
"g-table_elevation": props.elevation,
|
|
666
|
+
[`g-table_texture-${props.texture}`]: props.texture !== "none",
|
|
667
|
+
"g-table_has-fixed-start": hasFixedStart.value,
|
|
668
|
+
"g-table_has-fixed-end": hasFixedEnd.value,
|
|
669
|
+
"g-table_expand-on-row-click": props.expandOnRowClick
|
|
670
|
+
}
|
|
671
|
+
]]),
|
|
672
|
+
style: normalizeStyle(unref(surfaceStyles))
|
|
673
|
+
}, [
|
|
674
|
+
createElementVNode("span", {
|
|
675
|
+
class: normalizeClass(unref(surfaceUnderlayClasses))
|
|
676
|
+
}, null, 2),
|
|
677
|
+
unref(morphEnabled) ? (openBlock(), createElementBlock("span", {
|
|
678
|
+
key: 0,
|
|
679
|
+
class: normalizeClass(unref(surfaceMaterialMorphClasses)),
|
|
680
|
+
"aria-hidden": "true"
|
|
681
|
+
}, [
|
|
682
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(morphBlobs), (blob, index) => (openBlock(), createElementBlock("span", {
|
|
683
|
+
key: index,
|
|
684
|
+
class: normalizeClass(unref(surfaceMaterialMorphBlobClasses)),
|
|
685
|
+
style: normalizeStyle(unref(getMorphBlobStyle)(blob))
|
|
686
|
+
}, null, 6))), 128))
|
|
687
|
+
], 2)) : createCommentVNode("", !0),
|
|
688
|
+
createElementVNode("span", {
|
|
689
|
+
class: normalizeClass(unref(surfaceOverlayClasses))
|
|
690
|
+
}, null, 2),
|
|
691
|
+
createElementVNode("span", {
|
|
692
|
+
class: normalizeClass(unref(surfaceTextureClasses))
|
|
693
|
+
}, null, 2),
|
|
694
|
+
createElementVNode("div", {
|
|
695
|
+
class: normalizeClass(["g-table__content", unref(surfaceContentClasses)])
|
|
696
|
+
}, [
|
|
697
|
+
unref(slots).top ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
698
|
+
renderSlot(_ctx.$slots, "top")
|
|
699
|
+
])) : createCommentVNode("", !0),
|
|
700
|
+
createElementVNode("div", _hoisted_2, [
|
|
701
|
+
createElementVNode("table", {
|
|
702
|
+
class: "g-table__table",
|
|
703
|
+
"aria-label": props.ariaLabel,
|
|
704
|
+
"aria-labelledby": props.ariaLabelledby
|
|
705
|
+
}, [
|
|
706
|
+
props.caption || unref(slots).caption ? (openBlock(), createElementBlock("caption", {
|
|
707
|
+
key: 0,
|
|
708
|
+
class: normalizeClass(["g-table__caption", {
|
|
709
|
+
"g-table__caption_hidden": props.hideCaption
|
|
710
|
+
}])
|
|
711
|
+
}, [
|
|
712
|
+
renderSlot(_ctx.$slots, "caption", {}, () => [
|
|
713
|
+
createTextVNode(toDisplayString(props.caption), 1)
|
|
714
|
+
])
|
|
715
|
+
], 2)) : createCommentVNode("", !0),
|
|
716
|
+
createElementVNode("colgroup", null, [
|
|
717
|
+
props.showExpand ? (openBlock(), createElementBlock("col", _hoisted_4)) : createCommentVNode("", !0),
|
|
718
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(resolvedHeaders), (header) => (openBlock(), createElementBlock("col", {
|
|
719
|
+
key: String(header.key),
|
|
720
|
+
class: normalizeClass(["g-table__col", {
|
|
721
|
+
"g-table__col_shrink": header.shrink
|
|
722
|
+
}]),
|
|
723
|
+
style: normalizeStyle(unref(getHeaderStyle)(header))
|
|
724
|
+
}, null, 6))), 128))
|
|
725
|
+
]),
|
|
726
|
+
props.hideHeader ? createCommentVNode("", !0) : (openBlock(), createBlock(_sfc_main$5, {
|
|
727
|
+
key: 1,
|
|
728
|
+
"get-column-fixed-attrs": unref(getColumnFixedAttrs),
|
|
729
|
+
"get-header-align": unref(getHeaderAlign),
|
|
730
|
+
"get-header-attrs": unref(getHeaderAttrs),
|
|
731
|
+
"get-header-slot-name": unref(getHeaderSlotName),
|
|
732
|
+
"get-header-style": unref(getHeaderStyle),
|
|
733
|
+
headers: unref(resolvedHeaders),
|
|
734
|
+
"show-expand": props.showExpand
|
|
735
|
+
}, createSlots({
|
|
736
|
+
header: withCtx((slotProps) => [
|
|
737
|
+
renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps(slotProps)), () => [
|
|
738
|
+
createTextVNode(toDisplayString(slotProps.header.title), 1)
|
|
739
|
+
])
|
|
740
|
+
]),
|
|
741
|
+
_: 2
|
|
742
|
+
}, [
|
|
743
|
+
renderList(headerSlotHeaders.value, (header) => ({
|
|
744
|
+
name: unref(getHeaderSlotName)(header),
|
|
745
|
+
fn: withCtx((slotProps) => [
|
|
746
|
+
renderSlot(_ctx.$slots, unref(getHeaderSlotName)(header), normalizeProps(guardReactiveProps(slotProps)), () => [
|
|
747
|
+
renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps(slotProps)), () => [
|
|
748
|
+
createTextVNode(toDisplayString(slotProps.header.title), 1)
|
|
749
|
+
])
|
|
750
|
+
])
|
|
751
|
+
])
|
|
752
|
+
}))
|
|
753
|
+
]), 1032, ["get-column-fixed-attrs", "get-header-align", "get-header-attrs", "get-header-slot-name", "get-header-style", "headers", "show-expand"])),
|
|
754
|
+
createVNode(_sfc_main$1, {
|
|
755
|
+
"empty-text": props.emptyText,
|
|
756
|
+
"has-expanded-row-slot": hasExpandedRowSlot.value,
|
|
757
|
+
"has-rows": unref(hasRows),
|
|
758
|
+
loading: props.loading,
|
|
759
|
+
"loading-rows": props.loadingRows,
|
|
760
|
+
"show-expand": props.showExpand
|
|
761
|
+
}, createSlots({
|
|
762
|
+
loading: withCtx(() => [
|
|
763
|
+
renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
764
|
+
_cache[0] || (_cache[0] = createTextVNode("Loading...", -1))
|
|
765
|
+
])
|
|
766
|
+
]),
|
|
767
|
+
empty: withCtx(() => [
|
|
768
|
+
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
769
|
+
createTextVNode(toDisplayString(props.emptyText), 1)
|
|
770
|
+
])
|
|
771
|
+
]),
|
|
772
|
+
item: withCtx((slotProps) => [
|
|
773
|
+
renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(slotProps)), () => [
|
|
774
|
+
createTextVNode(toDisplayString(slotProps.value), 1)
|
|
775
|
+
])
|
|
776
|
+
]),
|
|
777
|
+
_: 2
|
|
778
|
+
}, [
|
|
779
|
+
unref(slots).body ? {
|
|
780
|
+
name: "body",
|
|
781
|
+
fn: withCtx((slotProps) => [
|
|
782
|
+
renderSlot(_ctx.$slots, "body", normalizeProps(guardReactiveProps(slotProps)))
|
|
783
|
+
]),
|
|
784
|
+
key: "0"
|
|
785
|
+
} : void 0,
|
|
786
|
+
unref(slots).row ? {
|
|
787
|
+
name: "row",
|
|
788
|
+
fn: withCtx((slotProps) => [
|
|
789
|
+
renderSlot(_ctx.$slots, "row", normalizeProps(guardReactiveProps(slotProps)))
|
|
790
|
+
]),
|
|
791
|
+
key: "1"
|
|
792
|
+
} : void 0,
|
|
793
|
+
unref(slots).expand ? {
|
|
794
|
+
name: "expand",
|
|
795
|
+
fn: withCtx((slotProps) => [
|
|
796
|
+
renderSlot(_ctx.$slots, "expand", normalizeProps(guardReactiveProps(slotProps)))
|
|
797
|
+
]),
|
|
798
|
+
key: "2"
|
|
799
|
+
} : void 0,
|
|
800
|
+
renderList(itemSlotHeaders.value, (header) => ({
|
|
801
|
+
name: unref(getItemSlotName)(header),
|
|
802
|
+
fn: withCtx((slotProps) => [
|
|
803
|
+
renderSlot(_ctx.$slots, unref(getItemSlotName)(header), normalizeProps(guardReactiveProps(slotProps)))
|
|
804
|
+
])
|
|
805
|
+
})),
|
|
806
|
+
hasExpandedRowSlot.value ? {
|
|
807
|
+
name: "expanded-row",
|
|
808
|
+
fn: withCtx((slotProps) => [
|
|
809
|
+
renderSlot(_ctx.$slots, "expanded-row", normalizeProps(guardReactiveProps(slotProps)))
|
|
810
|
+
]),
|
|
811
|
+
key: "3"
|
|
812
|
+
} : void 0
|
|
813
|
+
]), 1032, ["empty-text", "has-expanded-row-slot", "has-rows", "loading", "loading-rows", "show-expand"])
|
|
814
|
+
], 8, _hoisted_3)
|
|
815
|
+
]),
|
|
816
|
+
unref(slots).bottom ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
817
|
+
renderSlot(_ctx.$slots, "bottom")
|
|
818
|
+
])) : createCommentVNode("", !0)
|
|
819
|
+
], 2)
|
|
820
|
+
], 6)
|
|
821
|
+
]),
|
|
822
|
+
_: 3
|
|
823
|
+
}, 16));
|
|
824
|
+
}
|
|
825
|
+
});
|
|
826
|
+
export {
|
|
827
|
+
_sfc_main as _
|
|
828
|
+
};
|