@zeedhi/vuetify 3.0.11 → 3.1.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.
Files changed (227) hide show
  1. package/dist/zd-vuetify.css +60 -58
  2. package/dist/zd-vuetify.min.css +1 -1
  3. package/dist/zd-vuetify.min.js +14 -14
  4. package/dist/zd-vuetify.mjs +1061 -792
  5. package/environments.json +16 -0
  6. package/package.json +3 -3
  7. package/src/components/index.ts +3 -1
  8. package/src/components/zd-alert/ZdAlert.ts +1 -1
  9. package/src/components/zd-badge/ZdBadge.ts +1 -1
  10. package/src/components/zd-breadcrumbs/ZdBreadcrumbs.ts +2 -1
  11. package/src/components/zd-button/ZdButton.ts +1 -1
  12. package/src/components/zd-button-group/ZdButtonGroup.ts +1 -1
  13. package/src/components/zd-card/ZdCard.ts +1 -1
  14. package/src/components/zd-card/ZdCard.vue +2 -2
  15. package/src/components/zd-carousel/ZdCarousel.ts +3 -1
  16. package/src/components/zd-checkbox/ZdCheckbox.ts +1 -1
  17. package/src/components/zd-checkbox-multiple/ZdCheckboxMultiple.ts +3 -1
  18. package/src/components/zd-chip/ZdChip.ts +1 -1
  19. package/src/components/zd-code-viewer/ZdCodeViewer.ts +1 -1
  20. package/src/components/zd-col/ZdCol.ts +1 -1
  21. package/src/components/zd-collapse-card/ZdCollapseCard.ts +3 -1
  22. package/src/components/zd-component/ZdComponent.ts +23 -1
  23. package/src/components/zd-component/ZdComponentRender.ts +2 -0
  24. package/src/components/zd-container/ZdContainer.ts +1 -1
  25. package/src/components/zd-currency/ZdCurrency.ts +1 -1
  26. package/src/components/zd-date-input/ZdDateInput.ts +1 -1
  27. package/src/components/zd-date-range/ZdDateRange.ts +1 -1
  28. package/src/components/zd-divider/ZdDivider.ts +1 -1
  29. package/src/components/zd-dropdown/ZdDropdown.ts +2 -1
  30. package/src/components/zd-dropdown/ZdDropdown.vue +1 -1
  31. package/src/components/zd-footer/ZdFooter.ts +1 -1
  32. package/src/components/zd-form/ZdForm.ts +2 -1
  33. package/src/components/zd-frame/ZdFrame.ts +3 -1
  34. package/src/components/zd-frame-page/ZdFramePage.ts +1 -1
  35. package/src/components/zd-frame-page/ZdFramePage.vue +1 -1
  36. package/src/components/zd-grid/ZdGrid.ts +10 -2
  37. package/src/components/zd-grid/ZdGrid.vue +1 -1
  38. package/src/components/zd-grid/cell/ZdGridCellContent.vue +5 -7
  39. package/src/components/zd-grid/column-header/ZdGridColumnHeader.vue +4 -7
  40. package/src/components/zd-grid-editable/ZdGridEditable.ts +9 -2
  41. package/src/components/zd-grid-editable/cell/ZdGridEditableCell.vue +1 -0
  42. package/src/components/zd-header/ZdHeader.ts +4 -1
  43. package/src/components/zd-icon/ZdIcon.ts +1 -1
  44. package/src/components/zd-image/ZdImage.ts +1 -1
  45. package/src/components/zd-increment/ZdIncrement.ts +1 -1
  46. package/src/components/zd-input/ZdInput.ts +10 -3
  47. package/src/components/zd-iterable/ZdIterable.ts +2 -0
  48. package/src/components/zd-iterable/zd-iterable-columns-button/ZdIterableColumnsButton.ts +6 -1
  49. package/src/components/zd-iterable/zd-iterable-page-info/ZdIterablePageInfo.ts +1 -1
  50. package/src/components/zd-iterable/zd-iterable-page-size/ZdIterablePageSize.ts +2 -1
  51. package/src/components/zd-iterable/zd-iterable-pagination/ZdIterablePagination.ts +8 -3
  52. package/src/components/zd-iterable/zd-search/ZdSearch.ts +1 -1
  53. package/src/components/zd-iterable-component-render/ZdIterableComponentRender.ts +12 -1
  54. package/src/components/zd-layout/ZdLayout.ts +1 -1
  55. package/src/components/zd-list/ZdList.scss +3 -0
  56. package/src/components/zd-list/ZdList.ts +2 -1
  57. package/src/components/zd-list/ZdListGroup.ts +2 -1
  58. package/src/components/zd-list/ZdListGroup.vue +14 -16
  59. package/src/components/zd-list/ZdListItem.ts +1 -1
  60. package/src/components/zd-loading/ZdLoading.ts +1 -1
  61. package/src/components/zd-loading/ZdLoading.vue +30 -53
  62. package/src/components/zd-login/ZdLogin.ts +3 -1
  63. package/src/components/zd-login/ZdLoginButton.ts +1 -1
  64. package/src/components/zd-main/ZdMain.ts +1 -1
  65. package/src/components/zd-master-detail/ZdMasterDetail.ts +1 -1
  66. package/src/components/zd-menu/ZdMenu.ts +9 -4
  67. package/src/components/zd-menu/ZdMenu.vue +6 -5
  68. package/src/components/zd-menu/ZdMenuButton.ts +1 -1
  69. package/src/components/zd-menu/ZdMenuGroup.ts +2 -1
  70. package/src/components/zd-menu/ZdMenuLink.ts +1 -1
  71. package/src/components/zd-menu/ZdMenuSeparator.ts +1 -1
  72. package/src/components/zd-modal/ZdModal.ts +1 -21
  73. package/src/components/zd-modal/ZdModal.vue +18 -77
  74. package/src/components/zd-modal/ZdModalCard.ts +100 -0
  75. package/src/components/zd-modal/ZdModalCard.vue +47 -0
  76. package/src/components/zd-modal/ZdModalCloseButton.ts +1 -1
  77. package/src/components/zd-month/ZdMonth.ts +1 -1
  78. package/src/components/zd-number-input/ZdNumberInput.ts +1 -1
  79. package/src/components/zd-password/ZdPassword.ts +1 -1
  80. package/src/components/zd-progress/ZdProgress.ts +2 -1
  81. package/src/components/zd-radio/ZdRadio.ts +2 -1
  82. package/src/components/zd-row/ZdRow.ts +1 -1
  83. package/src/components/zd-select/ZdSelect.ts +10 -2
  84. package/src/components/zd-select/ZdSelect.vue +2 -6
  85. package/src/components/zd-select-multiple/ZdSelectMultiple.ts +6 -1
  86. package/src/components/zd-select-multiple/ZdSelectMultiple.vue +1 -1
  87. package/src/components/zd-svg-map/ZdSvgMap.ts +1 -1
  88. package/src/components/zd-switch/ZdSwitch.ts +1 -1
  89. package/src/components/zd-table/ZdTable.ts +1 -1
  90. package/src/components/zd-tabs/ZdTab.ts +1 -1
  91. package/src/components/zd-tabs/ZdTabItem.vue +1 -0
  92. package/src/components/zd-tabs/ZdTabs.ts +4 -3
  93. package/src/components/zd-tabs/ZdTabs.vue +14 -5
  94. package/src/components/zd-tag/ZdTag.ts +1 -1
  95. package/src/components/zd-text/ZdText.ts +1 -1
  96. package/src/components/zd-text-input/ZdTextInput.ts +1 -1
  97. package/src/components/zd-text-input/ZdTextInput.vue +2 -2
  98. package/src/components/zd-textarea/ZdTextarea.ts +5 -1
  99. package/src/components/zd-textarea/ZdTextarea.vue +5 -2
  100. package/src/components/zd-time/ZdTime.ts +1 -1
  101. package/src/components/zd-tooltip/ZdTooltip.ts +1 -1
  102. package/src/components/zd-tooltip-overflow/ZdTooltipOverflow.vue +45 -0
  103. package/src/components/zd-tree/ZdTree.ts +5 -1
  104. package/src/components/zd-tree-grid/ZdTreeGrid.ts +2 -1
  105. package/src/composables/columnDrag.ts +9 -11
  106. package/src/composables/tableNavigation.ts +5 -1
  107. package/src/composables/useTooltipManager.ts +24 -0
  108. package/src/directives/index.ts +1 -0
  109. package/src/directives/v-tooltip-overflow.ts +97 -0
  110. package/src/index.ts +11 -0
  111. package/src/styles/_zd-input.scss +3 -2
  112. package/src/utils/fillHeight.ts +3 -2
  113. package/src/utils/index.ts +1 -0
  114. package/src/utils/plugins/getIconPlugin.ts +4 -3
  115. package/src/utils/tooltip-overflow/index.ts +2 -0
  116. package/src/utils/tooltip-overflow/install.ts +27 -0
  117. package/src/utils/tooltip-overflow/uninstall.ts +32 -0
  118. package/types/components/zd-alert/ZdAlert.d.ts +429 -351
  119. package/types/components/zd-badge/ZdBadge.d.ts +235 -211
  120. package/types/components/zd-breadcrumbs/ZdBreadcrumbs.d.ts +249 -222
  121. package/types/components/zd-button/ZdButton.d.ts +251 -227
  122. package/types/components/zd-button-group/ZdButtonGroup.d.ts +227 -212
  123. package/types/components/zd-card/ZdCard.d.ts +246 -222
  124. package/types/components/zd-carousel/ZdCarousel.d.ts +705 -701
  125. package/types/components/zd-checkbox/ZdCheckbox.d.ts +41 -14
  126. package/types/components/zd-checkbox-multiple/ZdCheckboxMultiple.d.ts +779 -746
  127. package/types/components/zd-chip/ZdChip.d.ts +246 -222
  128. package/types/components/zd-code-viewer/ZdCodeViewer.d.ts +264 -234
  129. package/types/components/zd-col/ZdCol.d.ts +244 -220
  130. package/types/components/zd-collapse-card/ZdCollapseCard.d.ts +541 -457
  131. package/types/components/zd-component/ZdComponent.d.ts +12 -5
  132. package/types/components/zd-component/ZdComponentRender.d.ts +12 -4
  133. package/types/components/zd-container/ZdContainer.d.ts +247 -223
  134. package/types/components/zd-currency/ZdCurrency.d.ts +765 -738
  135. package/types/components/zd-date-input/ZdDateInput.d.ts +62 -29
  136. package/types/components/zd-date-range/ZdDateRange.d.ts +776 -749
  137. package/types/components/zd-dialog/ZdDialog.d.ts +36 -12
  138. package/types/components/zd-divider/ZdDivider.d.ts +244 -220
  139. package/types/components/zd-dropdown/ZdDropdown.d.ts +342 -324
  140. package/types/components/zd-footer/ZdFooter.d.ts +624 -562
  141. package/types/components/zd-form/ZdForm.d.ts +12 -4
  142. package/types/components/zd-frame/ZdFrame.d.ts +13 -4
  143. package/types/components/zd-frame-page/ZdFramePage.d.ts +242 -215
  144. package/types/components/zd-grid/ZdGrid.d.ts +4500 -4527
  145. package/types/components/zd-grid/cell/ZdGridAction.d.ts +2 -2
  146. package/types/components/zd-grid/cell/ZdGridCell.d.ts +4 -4
  147. package/types/components/zd-grid/cell/ZdGridCellContent.d.ts +4 -4
  148. package/types/components/zd-grid/column-header/ZdGridColumnHeader.d.ts +2 -2
  149. package/types/components/zd-grid/composables/grid-instance.d.ts +1927 -1238
  150. package/types/components/zd-grid/footer/ZdGridFooter.d.ts +1927 -1238
  151. package/types/components/zd-grid/row/ZdGridRow.d.ts +6 -6
  152. package/types/components/zd-grid/toolbar/ZdGridToolbar.d.ts +1927 -1238
  153. package/types/components/zd-grid-editable/ZdGridEditable.d.ts +5102 -6303
  154. package/types/components/zd-grid-editable/cell/ZdGridEditableCell.d.ts +341 -341
  155. package/types/components/zd-grid-editable/row/ZdGridEditableRow.d.ts +6 -6
  156. package/types/components/zd-header/ZdHeader.d.ts +640 -582
  157. package/types/components/zd-icon/ZdIcon.d.ts +39 -15
  158. package/types/components/zd-image/ZdImage.d.ts +241 -220
  159. package/types/components/zd-increment/ZdIncrement.d.ts +765 -738
  160. package/types/components/zd-input/ZdInput.d.ts +15 -6
  161. package/types/components/zd-iterable/ZdIterable.d.ts +26 -12
  162. package/types/components/zd-iterable/ZdIterableNoData.d.ts +1927 -1238
  163. package/types/components/zd-iterable/zd-iterable-columns-button/ZdIterableColumnsButton.d.ts +753 -470
  164. package/types/components/zd-iterable/zd-iterable-page-info/ZdIterablePageInfo.d.ts +750 -461
  165. package/types/components/zd-iterable/zd-iterable-page-size/ZdIterablePageSize.d.ts +1659 -987
  166. package/types/components/zd-iterable/zd-iterable-pagination/ZdIterablePagination.d.ts +762 -470
  167. package/types/components/zd-iterable/zd-search/ZdSearch.d.ts +50 -23
  168. package/types/components/zd-iterable-component-render/ZdIterableComponentRender.d.ts +1224 -1080
  169. package/types/components/zd-layout/ZdLayout.d.ts +243 -222
  170. package/types/components/zd-list/ZdList.d.ts +671 -432
  171. package/types/components/zd-list/ZdListGroup.d.ts +809 -570
  172. package/types/components/zd-list/ZdListItem.d.ts +424 -294
  173. package/types/components/zd-loading/ZdLoading.d.ts +35 -14
  174. package/types/components/zd-login/ZdLogin.d.ts +455 -425
  175. package/types/components/zd-login/ZdLoginButton.d.ts +678 -654
  176. package/types/components/zd-main/ZdMain.d.ts +241 -220
  177. package/types/components/zd-master-detail/ZdMasterDetail.d.ts +261 -237
  178. package/types/components/zd-menu/ZdMenu.d.ts +1257 -3206
  179. package/types/components/zd-menu/ZdMenuButton.d.ts +244 -220
  180. package/types/components/zd-menu/ZdMenuGroup.d.ts +1219 -5391
  181. package/types/components/zd-menu/ZdMenuLink.d.ts +2042 -9432
  182. package/types/components/zd-menu/ZdMenuSeparator.d.ts +244 -220
  183. package/types/components/zd-modal/ZdModal.d.ts +0 -2
  184. package/types/components/zd-modal/ZdModalCard.d.ts +125 -0
  185. package/types/components/zd-modal/ZdModalCloseButton.d.ts +244 -220
  186. package/types/components/zd-month/ZdMonth.d.ts +774 -747
  187. package/types/components/zd-number-input/ZdNumberInput.d.ts +766 -739
  188. package/types/components/zd-password/ZdPassword.d.ts +765 -738
  189. package/types/components/zd-progress/ZdProgress.d.ts +363 -336
  190. package/types/components/zd-radio/ZdRadio.d.ts +44 -14
  191. package/types/components/zd-row/ZdRow.d.ts +244 -220
  192. package/types/components/zd-select/ZdSelect.d.ts +17 -5
  193. package/types/components/zd-select-multiple/ZdSelectMultiple.d.ts +17 -5
  194. package/types/components/zd-svg-map/ZdSvgMap.d.ts +37 -13
  195. package/types/components/zd-switch/ZdSwitch.d.ts +764 -737
  196. package/types/components/zd-table/ZdTable.d.ts +547 -346
  197. package/types/components/zd-tabs/ZdTab.d.ts +233 -156
  198. package/types/components/zd-tabs/ZdTabItem.d.ts +36 -12
  199. package/types/components/zd-tabs/ZdTabs.d.ts +492 -306
  200. package/types/components/zd-tag/ZdTag.d.ts +244 -220
  201. package/types/components/zd-text/ZdText.d.ts +264 -234
  202. package/types/components/zd-text-input/ZdTextInput.d.ts +41 -14
  203. package/types/components/zd-textarea/ZdTextarea.d.ts +55 -15
  204. package/types/components/zd-time/ZdTime.d.ts +774 -747
  205. package/types/components/zd-toggleable/ZdToggleable.d.ts +13 -4
  206. package/types/components/zd-tooltip/ZdTooltip.d.ts +250 -226
  207. package/types/components/zd-tree/ZdTree.d.ts +799 -763
  208. package/types/components/zd-tree/ZdTreeAfterTitle.d.ts +3 -3
  209. package/types/components/zd-tree/ZdTreeCheckbox.d.ts +5 -5
  210. package/types/components/zd-tree-grid/ZdTreeGrid.d.ts +2230 -2214
  211. package/types/components/zd-tree-grid/cell/ZdTreeGridCell.d.ts +4 -4
  212. package/types/components/zd-tree-grid/row/ZdTreeGridRow.d.ts +6 -6
  213. package/types/composables/cellSelection.d.ts +2 -264
  214. package/types/composables/gridColumns.d.ts +200 -147
  215. package/types/composables/gridSorting.d.ts +1 -1
  216. package/types/composables/tableNavigation.d.ts +3 -2
  217. package/types/composables/useTooltipManager.d.ts +13 -0
  218. package/types/directives/index.d.ts +1 -0
  219. package/types/directives/v-tooltip-overflow.d.ts +12 -0
  220. package/types/index.d.ts +1 -0
  221. package/types/utils/fillHeight.d.ts +1 -1
  222. package/types/utils/index.d.ts +1 -0
  223. package/types/utils/tooltip-overflow/index.d.ts +2 -0
  224. package/types/utils/tooltip-overflow/install.d.ts +13 -0
  225. package/types/utils/tooltip-overflow/uninstall.d.ts +14 -0
  226. package/src/components/tooltip-overflow/ZdTooltipOverflow.ts +0 -63
  227. package/src/components/tooltip-overflow/ZdTooltipOverflow.vue +0 -63
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import { Icons, AlertService, Alert, Badge, Breadcrumbs, ButtonGroup, Button, Card, Carousel as Carousel$1, Form, Input, CheckboxMultiple, Checkbox, Chip, CodeViewer, Col, CollapseCard, Container, TextInput, NumberInput, AutoNumeric, Currency, DateInput, DateRange, DialogService, Divider, Dropdown, Footer, ChildNotFoundError, Frame, FramePage, Grid, GridEditable, Toggleable, Header, Icon as Icon$1, Image, Increment, IterableComponentRender, IterableColumnsButton, IterablePageInfo, Select, IterablePageSize, IterablePagination, Search, Layout, List, ListItem, ListGroup, Loading, LoadingService, Login, LoginButton, Main, MasterDetail, Menu, MenuButton, MenuGroup, MenuLink, MenuSeparator, ModalService, ModalCloseButton, Month, Password, Progress, Radio, Row, SelectMultiple, SvgMap, Switch, Table, Tab, Tabs, Tag, Text, Textarea, Time, Tooltip, TreeGrid, Tree, initTheme } from "@zeedhi/common";
5
5
  import { Config, Event as Event$1, Mask, Utils, DateHelper, I18n, InstanceNotFoundError, FormatterParserProvider, KeyMap, Metadata, dayjs, ViewService } from "@zeedhi/core";
6
- import { defineComponent, h, ref, computed, onMounted, onBeforeUnmount, watchEffect, resolveComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, withDirectives, createCommentVNode, Fragment, renderList, createBlock, normalizeStyle, withModifiers, renderSlot, toDisplayString, createTextVNode, withCtx, vShow, useTemplateRef, onUnmounted, resolveDynamicComponent, mergeProps, createVNode, getCurrentInstance, reactive, inject, provide, onBeforeMount, watch, nextTick, toHandlers, createSlots, shallowReactive, toRefs, useId, onUpdated, cloneVNode, withKeys, normalizeProps, guardReactiveProps, useSlots, isMemoSame, resolveDirective } from "vue";
6
+ import { defineComponent, h, ref, computed, onMounted, onBeforeUnmount, watchEffect, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, withModifiers, renderSlot, createCommentVNode, toDisplayString, createTextVNode, createBlock, withCtx, withDirectives, vShow, unref, resolveDynamicComponent, mergeProps, createVNode, render, useTemplateRef, getCurrentInstance, reactive, watch, inject, provide, onBeforeMount, onUnmounted, nextTick, toHandlers, createSlots, shallowReactive, toRefs, onUpdated, useId, cloneVNode, withKeys, normalizeProps, guardReactiveProps, useSlots, resolveDirective, isMemoSame } from "vue";
7
7
  import { useTheme, useDisplay, createVuetify } from "vuetify";
8
8
  import * as components$1 from "vuetify/components";
9
9
  import * as directives from "vuetify/directives";
@@ -168,8 +168,8 @@ var PrismEditor = /* @__PURE__ */ defineComponent({
168
168
  selectionEnd
169
169
  });
170
170
  },
171
- _getLines: function _getLines(text, position) {
172
- return text.substring(0, position).split("\n");
171
+ _getLines: function _getLines(text2, position) {
172
+ return text2.substring(0, position).split("\n");
173
173
  },
174
174
  _applyEdits: function _applyEdits(record) {
175
175
  var input = this.$refs.textarea;
@@ -400,7 +400,7 @@ var PrismEditor = /* @__PURE__ */ defineComponent({
400
400
  }
401
401
  }
402
402
  },
403
- render: function render() {
403
+ render: function render2() {
404
404
  var _this3 = this;
405
405
  var lineNumberWidthCalculator = h("div", {
406
406
  "class": "prism-editor__line-width-calc",
@@ -952,97 +952,35 @@ const He = (f, E) => {
952
952
  };
953
953
  }
954
954
  });
955
- const _sfc_main$v = defineComponent({
956
- props: {
957
- overflow: {
958
- type: [String, Number]
959
- },
960
- value: {
961
- type: [String, Number, Boolean]
962
- },
963
- classes: {
964
- type: Array,
965
- default: () => []
966
- },
967
- styles: {
968
- type: Array,
969
- default: () => []
970
- },
971
- tag: {
972
- type: String,
973
- default: "span"
974
- }
975
- },
976
- emits: ["click"],
977
- setup(props, { emit }) {
978
- let observer;
979
- const labelRef = useTemplateRef("value");
980
- const clientWidth = ref(0);
981
- onMounted(() => {
982
- observer = new ResizeObserver(() => {
983
- if (labelRef.value) {
984
- clientWidth.value = labelRef.value.clientWidth;
985
- }
986
- });
987
- if (labelRef.value) observer.observe(labelRef.value);
988
- });
989
- onUnmounted(() => {
990
- if (observer) observer.disconnect();
991
- });
992
- const tooltipDisabled = computed(() => {
993
- const labelEl = labelRef.value;
994
- if (!labelEl) return true;
995
- const overflow = clientWidth.value < labelEl.scrollWidth;
996
- return !(overflow || Number.isInteger(props.overflow));
997
- });
998
- const click = (event) => {
999
- emit("click", event);
1000
- };
1001
- const isNumber = (overflow) => {
1002
- return typeof overflow === "number" || !Number.isNaN(Number(overflow));
955
+ const text = ref("");
956
+ const targetElement = ref(null);
957
+ function useTooltipManager() {
958
+ const showTooltip = (element, content2) => {
959
+ targetElement.value = element;
960
+ text.value = content2;
961
+ };
962
+ const hideTooltip = () => {
963
+ targetElement.value = null;
964
+ };
965
+ const isVisible = computed(() => targetElement.value !== null);
966
+ return { isVisible, text, targetElement, showTooltip, hideTooltip };
967
+ }
968
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
969
+ __name: "ZdTooltipOverflow",
970
+ setup(__props) {
971
+ const { isVisible, text: text2, targetElement: targetElement2 } = useTooltipManager();
972
+ return (_ctx, _cache) => {
973
+ const _component_v_tooltip = resolveComponent("v-tooltip");
974
+ return openBlock(), createBlock(_component_v_tooltip, {
975
+ "model-value": unref(isVisible),
976
+ activator: unref(targetElement2),
977
+ text: unref(text2),
978
+ location: "bottom",
979
+ openOnClick: false
980
+ }, null, 8, ["model-value", "activator", "text"]);
1003
981
  };
1004
- return { tooltipDisabled, click, isNumber };
1005
982
  }
1006
983
  });
1007
- const _export_sfc = (sfc, props) => {
1008
- const target = sfc.__vccOpts || sfc;
1009
- for (const [key, val] of props) {
1010
- target[key] = val;
1011
- }
1012
- return target;
1013
- };
1014
- function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
1015
- const _component_v_tooltip = resolveComponent("v-tooltip");
1016
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), mergeProps({
1017
- ref: "value"
1018
- }, {
1019
- class: [
1020
- "zd-tooltip-overflow",
1021
- {
1022
- "zd-tooltip-overflow--hidden": _ctx.overflow === "hidden",
1023
- "zd-tooltip-overflow--wrap": _ctx.overflow === "wrap",
1024
- "zd-tooltip-overflow--ellipsis": _ctx.overflow === "ellipsis"
1025
- },
1026
- _ctx.isNumber(_ctx.overflow) ? `zd-tooltip-overflow--clamp zd-tooltip-overflow--clamp-${_ctx.overflow}` : "",
1027
- ..._ctx.classes
1028
- ],
1029
- style: _ctx.styles,
1030
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.click($event))
1031
- }), {
1032
- default: withCtx(() => [
1033
- createVNode(_component_v_tooltip, {
1034
- location: "bottom",
1035
- openOnClick: false,
1036
- text: _ctx.$t(String(_ctx.value)),
1037
- disabled: _ctx.tooltipDisabled,
1038
- activator: "parent"
1039
- }, null, 8, ["text", "disabled"]),
1040
- renderSlot(_ctx.$slots, "default")
1041
- ]),
1042
- _: 3
1043
- }, 16, ["class", "style"]);
1044
- }
1045
- const ZdTooltipOverflow = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$1v]]);
1046
984
  const component = defineComponent({
1047
985
  props: {
1048
986
  childProps: {
@@ -1067,7 +1005,14 @@ const component = defineComponent({
1067
1005
  };
1068
1006
  }
1069
1007
  });
1070
- function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
1008
+ const _export_sfc = (sfc, props) => {
1009
+ const target = sfc.__vccOpts || sfc;
1010
+ for (const [key, val] of props) {
1011
+ target[key] = val;
1012
+ }
1013
+ return target;
1014
+ };
1015
+ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
1071
1016
  return openBlock(), createBlock(resolveDynamicComponent(_ctx.childProps.component), mergeProps(_ctx.childProps, {
1072
1017
  parent: _ctx.parent,
1073
1018
  onMouseenter: _cache[0] || (_cache[0] = ($event) => _ctx.reemitEvent($event, "mouseenter")),
@@ -1079,7 +1024,7 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
1079
1024
  onBlur: _cache[6] || (_cache[6] = ($event) => _ctx.reemitEvent($event, "blur"))
1080
1025
  }), null, 16, ["parent"]);
1081
1026
  }
1082
- const ZdActivatorWrapper = /* @__PURE__ */ _export_sfc(component, [["render", _sfc_render$1u]]);
1027
+ const ZdActivatorWrapper = /* @__PURE__ */ _export_sfc(component, [["render", _sfc_render$1v]]);
1083
1028
  const _IconRenderer = class _IconRenderer {
1084
1029
  static getIconHtml(iconName, vuetify) {
1085
1030
  const IconRender = {
@@ -1126,7 +1071,7 @@ function getIconPlugin(name) {
1126
1071
  return str.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map((x) => x.toLowerCase()).join("-");
1127
1072
  };
1128
1073
  const toCamelCase = (str) => {
1129
- return str.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, (_m, chr) => chr.toUpperCase());
1074
+ return str.replace(/[^a-zA-Z0-9]+(.)/g, (_m, chr) => chr.toUpperCase()).replace(/^[A-Z]/, (m) => m.toLowerCase()).replace(/[^a-zA-Z0-9]/g, "");
1130
1075
  };
1131
1076
  const camelizedName = toCamelCase(name);
1132
1077
  const kebabName = toKebabCase(name);
@@ -1145,7 +1090,7 @@ function styleObjectPlugin(style) {
1145
1090
  }
1146
1091
  return objectStyle;
1147
1092
  }
1148
- function setFillHeight(element) {
1093
+ function setFillHeight(element, fillHeight = false) {
1149
1094
  const parent = element.parentElement;
1150
1095
  if (parent) {
1151
1096
  parent.style.display = "flex";
@@ -1153,7 +1098,8 @@ function setFillHeight(element) {
1153
1098
  Array.from(parent.children).forEach((child) => {
1154
1099
  const childElement = child;
1155
1100
  if (childElement === element) {
1156
- childElement.style.flex = "1 1 0";
1101
+ const flexBasis = typeof fillHeight === "string" ? fillHeight : "0";
1102
+ childElement.style.flex = `1 1 ${flexBasis}`;
1157
1103
  childElement.style.overflowY = "auto";
1158
1104
  } else {
1159
1105
  childElement.style.flex = "0 0 auto";
@@ -1182,6 +1128,29 @@ const mergeDictionaries = (dictArray) => {
1182
1128
  function buildProps(props) {
1183
1129
  return props;
1184
1130
  }
1131
+ function installTooltipOverflow(app) {
1132
+ const tooltipContainer = document.createElement("div");
1133
+ tooltipContainer.id = "zeedhi-tooltip-container";
1134
+ const tooltipVNode = createVNode(_sfc_main$w);
1135
+ tooltipVNode.appContext = app._context;
1136
+ render(tooltipVNode, tooltipContainer);
1137
+ document.body.appendChild(tooltipContainer);
1138
+ return {
1139
+ container: tooltipContainer,
1140
+ vNode: tooltipVNode
1141
+ };
1142
+ }
1143
+ function setupTooltipOverflowCleanup(app, cleanupData) {
1144
+ const { container } = cleanupData;
1145
+ const originalUnmount = app.unmount;
1146
+ app.unmount = () => {
1147
+ render(null, container);
1148
+ if (container.parentNode) {
1149
+ container.parentNode.removeChild(container);
1150
+ }
1151
+ originalUnmount();
1152
+ };
1153
+ }
1185
1154
  const ZdComponentProps = buildProps({
1186
1155
  allowDuplicate: {
1187
1156
  type: [String, Boolean],
@@ -1195,7 +1164,8 @@ const ZdComponentProps = buildProps({
1195
1164
  type: [String, Array],
1196
1165
  default() {
1197
1166
  return [];
1198
- }
1167
+ },
1168
+ watch: false
1199
1169
  },
1200
1170
  cssClass: {
1201
1171
  type: String,
@@ -1214,13 +1184,15 @@ const ZdComponentProps = buildProps({
1214
1184
  type: Object,
1215
1185
  default() {
1216
1186
  return {};
1217
- }
1187
+ },
1188
+ watch: false
1218
1189
  },
1219
1190
  events: {
1220
1191
  type: Object,
1221
1192
  default() {
1222
1193
  return {};
1223
- }
1194
+ },
1195
+ watch: false
1224
1196
  },
1225
1197
  instanceObject: {
1226
1198
  type: Object
@@ -1233,7 +1205,8 @@ const ZdComponentProps = buildProps({
1233
1205
  type: Object,
1234
1206
  default() {
1235
1207
  return {};
1236
- }
1208
+ },
1209
+ watch: false
1237
1210
  },
1238
1211
  light: {
1239
1212
  // deprecated
@@ -1245,7 +1218,8 @@ const ZdComponentProps = buildProps({
1245
1218
  required: true
1246
1219
  },
1247
1220
  parent: {
1248
- type: Object
1221
+ type: Object,
1222
+ watch: false
1249
1223
  },
1250
1224
  tabStop: {
1251
1225
  type: [String, Boolean],
@@ -1292,7 +1266,7 @@ function useComponentLifeCycles(instance, createdFromObject, root2) {
1292
1266
  if (!rootElement) {
1293
1267
  Logger.warn("root element not found");
1294
1268
  }
1295
- if (instance.fillHeight && rootElement.value) setFillHeight(rootElement.value);
1269
+ if (instance.fillHeight && rootElement.value) setFillHeight(rootElement.value, instance.fillHeight);
1296
1270
  if (rootElement.value) assignViewFocusFn(rootElement.value, instance);
1297
1271
  if (instance.autofocus && !instance.isFocused) {
1298
1272
  instance.setFocus();
@@ -1312,7 +1286,7 @@ function useComponentLifeCycles(instance, createdFromObject, root2) {
1312
1286
  }
1313
1287
  });
1314
1288
  }
1315
- function useCreateInstance(props, ctx, ObjectClass, checkParentTypeFn) {
1289
+ function useCreateInstance(props, ctx, ObjectClass, propsDefs = {}, checkParentTypeFn) {
1316
1290
  const { parents, addChild } = useVueParentComponent();
1317
1291
  const root2 = useTemplateRef("root");
1318
1292
  let instanceObj;
@@ -1366,6 +1340,17 @@ function useCreateInstance(props, ctx, ObjectClass, checkParentTypeFn) {
1366
1340
  });
1367
1341
  }
1368
1342
  const instance = reactive(instanceObj);
1343
+ Object.keys(props).forEach((key) => {
1344
+ if (!(key in instance)) return;
1345
+ if (typeof props[key] === "function") return;
1346
+ if (propsDefs[key] && !propsDefs[key].watch) return;
1347
+ watch(
1348
+ () => props[key],
1349
+ (value) => {
1350
+ instance[key] = value;
1351
+ }
1352
+ );
1353
+ });
1369
1354
  addChild({ instance, props });
1370
1355
  if (!createdFromObject) instance.onCreated();
1371
1356
  useComponentLifeCycles(instance, createdFromObject, root2);
@@ -1424,10 +1409,12 @@ const ZdComponentRenderProps = buildProps({
1424
1409
  type: [String, Array],
1425
1410
  default() {
1426
1411
  return [];
1427
- }
1412
+ },
1413
+ watch: false
1428
1414
  },
1429
1415
  component: {
1430
- type: String
1416
+ type: String,
1417
+ watch: false
1431
1418
  }
1432
1419
  });
1433
1420
  const ZdAlertProps$1 = buildProps({
@@ -1441,7 +1428,7 @@ const alertComponent = defineComponent({
1441
1428
  props: ZdAlertProps$1,
1442
1429
  inheritAttrs: false,
1443
1430
  setup(props, ctx) {
1444
- const { instance, root: root2 } = useCreateInstance(props, ctx, Alert);
1431
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Alert, ZdAlertProps$1);
1445
1432
  const manager = AlertService.instantiateManager(props.multiple);
1446
1433
  const managerProxy = reactive(manager);
1447
1434
  AlertService.registerManager(managerProxy);
@@ -1528,7 +1515,7 @@ const alertComponent = defineComponent({
1528
1515
  });
1529
1516
  const _hoisted_1$F = { class: "zd-alert-wrapper" };
1530
1517
  const _hoisted_2$l = ["innerHTML"];
1531
- function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
1518
+ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
1532
1519
  const _component_v_btn = resolveComponent("v-btn");
1533
1520
  const _component_v_snackbar = resolveComponent("v-snackbar");
1534
1521
  return openBlock(), createElementBlock("div", _hoisted_1$F, [
@@ -1581,7 +1568,7 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
1581
1568
  }), 128))
1582
1569
  ]);
1583
1570
  }
1584
- const ZdAlert = /* @__PURE__ */ _export_sfc(alertComponent, [["render", _sfc_render$1t]]);
1571
+ const ZdAlert = /* @__PURE__ */ _export_sfc(alertComponent, [["render", _sfc_render$1u]]);
1585
1572
  const ZdBadgeProps$1 = buildProps({
1586
1573
  ...ZdComponentRenderProps,
1587
1574
  badge: {
@@ -1597,7 +1584,7 @@ const badgeComponent = defineComponent({
1597
1584
  props: ZdBadgeProps$1,
1598
1585
  inheritAttrs: false,
1599
1586
  setup(props, ctx) {
1600
- const { instance, root: root2 } = useCreateInstance(props, ctx, Badge);
1587
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Badge, ZdBadgeProps$1);
1601
1588
  return {
1602
1589
  instance,
1603
1590
  root: root2
@@ -1605,7 +1592,7 @@ const badgeComponent = defineComponent({
1605
1592
  }
1606
1593
  });
1607
1594
  const _hoisted_1$E = { class: "zd-badge__wrapper" };
1608
- function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
1595
+ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
1609
1596
  const _component_v_badge = resolveComponent("v-badge");
1610
1597
  return openBlock(), createElementBlock("div", _hoisted_1$E, [
1611
1598
  withDirectives(createVNode(_component_v_badge, {
@@ -1639,7 +1626,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
1639
1626
  ])
1640
1627
  ]);
1641
1628
  }
1642
- const ZdBadge = /* @__PURE__ */ _export_sfc(badgeComponent, [["render", _sfc_render$1s]]);
1629
+ const ZdBadge = /* @__PURE__ */ _export_sfc(badgeComponent, [["render", _sfc_render$1t]]);
1643
1630
  var slotPattern;
1644
1631
  function useTranslation() {
1645
1632
  const instance = currentInstance();
@@ -1696,7 +1683,8 @@ const ZdBreadcrumbsProps$1 = buildProps({
1696
1683
  },
1697
1684
  items: {
1698
1685
  type: [Array, String],
1699
- default: () => []
1686
+ default: () => [],
1687
+ watch: false
1700
1688
  },
1701
1689
  large: {
1702
1690
  type: [Boolean, String],
@@ -1711,7 +1699,7 @@ const breadcrumbsComponent = defineComponent({
1711
1699
  props: ZdBreadcrumbsProps$1,
1712
1700
  inheritAttrs: false,
1713
1701
  setup(props, ctx) {
1714
- const { instance, root: root2 } = useCreateInstance(props, ctx, Breadcrumbs);
1702
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Breadcrumbs, ZdBreadcrumbsProps$1);
1715
1703
  const { t } = useTranslation();
1716
1704
  const getTranslatedItems = () => {
1717
1705
  return instance.items.map((item) => {
@@ -1730,7 +1718,7 @@ const breadcrumbsComponent = defineComponent({
1730
1718
  }
1731
1719
  });
1732
1720
  const _hoisted_1$D = { key: 1 };
1733
- function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
1721
+ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
1734
1722
  const _component_v_icon = resolveComponent("v-icon");
1735
1723
  const _component_v_breadcrumbs = resolveComponent("v-breadcrumbs");
1736
1724
  return withDirectives((openBlock(), createBlock(_component_v_breadcrumbs, {
@@ -1762,7 +1750,7 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
1762
1750
  [vShow, _ctx.instance.isVisible]
1763
1751
  ]);
1764
1752
  }
1765
- const ZdBreadcrumbs = /* @__PURE__ */ _export_sfc(breadcrumbsComponent, [["render", _sfc_render$1r]]);
1753
+ const ZdBreadcrumbs = /* @__PURE__ */ _export_sfc(breadcrumbsComponent, [["render", _sfc_render$1s]]);
1766
1754
  function useDensity({
1767
1755
  instance
1768
1756
  }) {
@@ -1844,12 +1832,12 @@ const ZdButtonGroupProps$1 = buildProps({
1844
1832
  default: () => []
1845
1833
  }
1846
1834
  });
1847
- const _sfc_main$u = defineComponent({
1835
+ const _sfc_main$v = defineComponent({
1848
1836
  name: "ZdButtonGroup",
1849
1837
  props: ZdButtonGroupProps$1,
1850
1838
  inheritAttrs: false,
1851
1839
  setup(props, ctx) {
1852
- const { instance, root: root2 } = useCreateInstance(props, ctx, ButtonGroup);
1840
+ const { instance, root: root2 } = useCreateInstance(props, ctx, ButtonGroup, ZdButtonGroupProps$1);
1853
1841
  const { density } = useDensity({ instance });
1854
1842
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
1855
1843
  function change() {
@@ -1874,7 +1862,7 @@ const _sfc_main$u = defineComponent({
1874
1862
  };
1875
1863
  }
1876
1864
  });
1877
- function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
1865
+ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
1878
1866
  const _component_v_btn_toggle = resolveComponent("v-btn-toggle");
1879
1867
  return openBlock(), createBlock(_component_v_btn_toggle, mergeProps({
1880
1868
  ref: "root",
@@ -1927,7 +1915,7 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
1927
1915
  _: 3
1928
1916
  }, 16, ["id", "modelValue", "class", "style", "divided", "rounded", "tile", "theme", "density", "onUpdate:modelValue"]);
1929
1917
  }
1930
- const ZdButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$1q]]);
1918
+ const ZdButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$1r]]);
1931
1919
  const ZdButtonProps$1 = buildProps({
1932
1920
  ...ZdComponentRenderProps,
1933
1921
  absolute: {
@@ -2135,7 +2123,7 @@ const buttonComponent = defineComponent({
2135
2123
  props: ZdButtonProps$1,
2136
2124
  inheritAttrs: false,
2137
2125
  setup(props, ctx) {
2138
- const { instance, root: root2 } = useCreateInstance(props, ctx, Button);
2126
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Button, ZdButtonProps$1);
2139
2127
  const buttonScope = useButtonInstance$1({ instance, root: root2 });
2140
2128
  return {
2141
2129
  ...buttonScope,
@@ -2144,7 +2132,7 @@ const buttonComponent = defineComponent({
2144
2132
  };
2145
2133
  }
2146
2134
  });
2147
- function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
2135
+ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
2148
2136
  const _component_v_btn = resolveComponent("v-btn");
2149
2137
  return withDirectives((openBlock(), createBlock(_component_v_btn, mergeProps({
2150
2138
  "data-test": "button",
@@ -2206,7 +2194,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
2206
2194
  [vShow, _ctx.instance.isVisible]
2207
2195
  ]);
2208
2196
  }
2209
- const ZdButton = /* @__PURE__ */ _export_sfc(buttonComponent, [["render", _sfc_render$1p]]);
2197
+ const ZdButton = /* @__PURE__ */ _export_sfc(buttonComponent, [["render", _sfc_render$1q]]);
2210
2198
  const HeightProps = {
2211
2199
  fillHeight: {
2212
2200
  type: [Boolean, String],
@@ -2344,7 +2332,7 @@ const cardComponent = defineComponent({
2344
2332
  props: ZdCardProps$1,
2345
2333
  inheritAttrs: false,
2346
2334
  setup(props, ctx) {
2347
- const { instance, root: root2 } = useCreateInstance(props, ctx, Card);
2335
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Card, ZdCardProps$1);
2348
2336
  const { click, focus, blur, mouseenter, mouseleave, mouseout, mouseover } = useGetMethods(instance, root2);
2349
2337
  const getVariant = () => instance.variant || instance.outlined && "outlined" || instance.flat && "flat" || "elevated";
2350
2338
  return {
@@ -2361,7 +2349,7 @@ const cardComponent = defineComponent({
2361
2349
  };
2362
2350
  }
2363
2351
  });
2364
- function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
2352
+ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
2365
2353
  const _component_v_card = resolveComponent("v-card");
2366
2354
  return withDirectives((openBlock(), createBlock(_component_v_card, {
2367
2355
  ref: "root",
@@ -2425,7 +2413,7 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
2425
2413
  [vShow, _ctx.instance.isVisible]
2426
2414
  ]);
2427
2415
  }
2428
- const ZdCard = /* @__PURE__ */ _export_sfc(cardComponent, [["render", _sfc_render$1o]]);
2416
+ const ZdCard = /* @__PURE__ */ _export_sfc(cardComponent, [["render", _sfc_render$1p]]);
2429
2417
  /**
2430
2418
  * Vue 3 Carousel 0.17.0
2431
2419
  * (c) 2025
@@ -4045,7 +4033,8 @@ const ZdCarouselProps$1 = buildProps({
4045
4033
  iconName: "next",
4046
4034
  icon: true,
4047
4035
  large: true
4048
- })
4036
+ }),
4037
+ watch: false
4049
4038
  },
4050
4039
  prevButton: {
4051
4040
  type: Object,
@@ -4055,7 +4044,8 @@ const ZdCarouselProps$1 = buildProps({
4055
4044
  iconName: "prev",
4056
4045
  icon: true,
4057
4046
  large: true
4058
- })
4047
+ }),
4048
+ watch: false
4059
4049
  }
4060
4050
  });
4061
4051
  const carouselComponent = defineComponent({
@@ -4068,7 +4058,7 @@ const carouselComponent = defineComponent({
4068
4058
  Navigation
4069
4059
  },
4070
4060
  setup(props, ctx) {
4071
- const { instance, root: root2 } = useCreateInstance(props, ctx, Carousel$1);
4061
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Carousel$1, ZdCarouselProps$1);
4072
4062
  const carouselRef = ref(null);
4073
4063
  const resizeObserver = ref(null);
4074
4064
  const lastEvent = ref(void 0);
@@ -4181,7 +4171,7 @@ const _hoisted_4$5 = {
4181
4171
  key: 2,
4182
4172
  class: "progress-bar"
4183
4173
  };
4184
- function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
4174
+ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
4185
4175
  const _component_slide = resolveComponent("slide");
4186
4176
  const _component_Navigation = resolveComponent("Navigation");
4187
4177
  const _component_Pagination = resolveComponent("Pagination");
@@ -4293,7 +4283,7 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
4293
4283
  }, 16, ["items-to-show", "items-to-scroll", "wrap-around", "autoplay", "pause-autoplay-on-hover", "transition", "mouse-drag", "touch-drag", "wheel-control", "keys-control", "initial-slide", "modelValue"])
4294
4284
  ], 14, _hoisted_1$C)) : createCommentVNode("", true);
4295
4285
  }
4296
- const ZdCarousel = /* @__PURE__ */ _export_sfc(carouselComponent, [["render", _sfc_render$1n]]);
4286
+ const ZdCarousel = /* @__PURE__ */ _export_sfc(carouselComponent, [["render", _sfc_render$1o]]);
4297
4287
  const ZdInputProps = buildProps({
4298
4288
  ...ZdComponentRenderProps,
4299
4289
  ...HeightProps,
@@ -4379,7 +4369,8 @@ const ZdInputProps = buildProps({
4379
4369
  },
4380
4370
  validations: {
4381
4371
  type: [Object, String],
4382
- default: {}
4372
+ default: {},
4373
+ watch: false
4383
4374
  },
4384
4375
  value: {
4385
4376
  default: null
@@ -4394,7 +4385,7 @@ defineComponent({
4394
4385
  props: ZdInputProps,
4395
4386
  inheritAttrs: false,
4396
4387
  setup(props, ctx) {
4397
- const { instance, root: root2 } = useCreateInputInstance(props, ctx, Input);
4388
+ const { instance, root: root2 } = useCreateInputInstance(props, ctx, Input, ZdInputProps);
4398
4389
  const inputScope = useInput(instance, ctx, root2);
4399
4390
  return {
4400
4391
  ...inputScope,
@@ -4418,7 +4409,6 @@ function useInput(instance, ctx, root2) {
4418
4409
  const input = () => {
4419
4410
  const rootElement = getRootElement(root2);
4420
4411
  emit("update:value", instance.value);
4421
- emit("input", instance.value);
4422
4412
  instance.input(void 0, rootElement.value);
4423
4413
  };
4424
4414
  const change = () => {
@@ -4443,11 +4433,17 @@ function useInput(instance, ctx, root2) {
4443
4433
  root: root2
4444
4434
  };
4445
4435
  }
4446
- function useCreateInputInstance(props, ctx, ObjectClass) {
4436
+ function useCreateInputInstance(props, ctx, ObjectClass, propsDefs) {
4447
4437
  const checkParentType = (parentInstance) => {
4448
4438
  return !!(parentInstance && parentInstance instanceof Form);
4449
4439
  };
4450
- return useCreateInstance(props, ctx, ObjectClass, checkParentType);
4440
+ return useCreateInstance(
4441
+ props,
4442
+ ctx,
4443
+ ObjectClass,
4444
+ propsDefs,
4445
+ checkParentType
4446
+ );
4451
4447
  }
4452
4448
  const CheckboxMultipleProps$1 = buildProps({
4453
4449
  ...ZdInputProps,
@@ -4465,7 +4461,8 @@ const CheckboxMultipleProps$1 = buildProps({
4465
4461
  },
4466
4462
  datasource: {
4467
4463
  type: Object,
4468
- default: {}
4464
+ default: {},
4465
+ watch: false
4469
4466
  },
4470
4467
  returnObject: {
4471
4468
  type: [Boolean, String],
@@ -4473,19 +4470,20 @@ const CheckboxMultipleProps$1 = buildProps({
4473
4470
  },
4474
4471
  value: {
4475
4472
  type: [Array, String],
4476
- default: () => []
4473
+ default: () => [],
4474
+ watch: false
4477
4475
  },
4478
4476
  vertical: {
4479
4477
  type: [Boolean, String],
4480
4478
  default: true
4481
4479
  }
4482
4480
  });
4483
- const _sfc_main$t = defineComponent({
4481
+ const _sfc_main$u = defineComponent({
4484
4482
  name: "ZdCheckboxMultiple",
4485
4483
  props: CheckboxMultipleProps$1,
4486
4484
  inheritAttrs: false,
4487
4485
  setup(props, ctx) {
4488
- const { instance, root: root2 } = useCreateInstance(props, ctx, CheckboxMultiple);
4486
+ const { instance, root: root2 } = useCreateInstance(props, ctx, CheckboxMultiple, CheckboxMultipleProps$1);
4489
4487
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
4490
4488
  const checkboxHorizontalColumns = computed(() => {
4491
4489
  const columns = Number(instance.columns);
@@ -4508,7 +4506,7 @@ const _sfc_main$t = defineComponent({
4508
4506
  });
4509
4507
  const _hoisted_1$B = ["id"];
4510
4508
  const _hoisted_2$j = { class: "zd-checkbox-label" };
4511
- function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
4509
+ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
4512
4510
  var _a;
4513
4511
  const _component_v_checkbox = resolveComponent("v-checkbox");
4514
4512
  return withDirectives((openBlock(), createElementBlock("div", {
@@ -4560,7 +4558,7 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
4560
4558
  [vShow, _ctx.instance.isVisible]
4561
4559
  ]);
4562
4560
  }
4563
- const ZdCheckboxMultiple = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$1m]]);
4561
+ const ZdCheckboxMultiple = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$1n]]);
4564
4562
  const ZdToggleableProps = buildProps({
4565
4563
  ...ZdInputProps,
4566
4564
  falseValue: {
@@ -4579,7 +4577,7 @@ const checkboxComponent = defineComponent({
4579
4577
  props: ZdCheckboxProps$1,
4580
4578
  inheritAttrs: false,
4581
4579
  setup(props, ctx) {
4582
- const { instance, root: root2 } = useCreateInstance(props, ctx, Checkbox);
4580
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Checkbox, ZdCheckboxProps$1);
4583
4581
  const checkboxScope = useCheckbox$1(instance, ctx, root2);
4584
4582
  return {
4585
4583
  ...checkboxScope
@@ -4600,7 +4598,7 @@ function useCheckbox$1(instance, ctx, root2) {
4600
4598
  checkboxChange
4601
4599
  };
4602
4600
  }
4603
- function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
4601
+ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
4604
4602
  const _component_v_checkbox = resolveComponent("v-checkbox");
4605
4603
  return withDirectives((openBlock(), createBlock(_component_v_checkbox, mergeProps({
4606
4604
  ref: "root",
@@ -4640,7 +4638,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
4640
4638
  [vShow, _ctx.instance.isVisible]
4641
4639
  ]);
4642
4640
  }
4643
- const ZdCheckbox = /* @__PURE__ */ _export_sfc(checkboxComponent, [["render", _sfc_render$1l]]);
4641
+ const ZdCheckbox = /* @__PURE__ */ _export_sfc(checkboxComponent, [["render", _sfc_render$1m]]);
4644
4642
  const ZdButtonProps = buildProps({
4645
4643
  ...ZdComponentRenderProps,
4646
4644
  absolute: {
@@ -4848,7 +4846,7 @@ defineComponent({
4848
4846
  props: ZdButtonProps,
4849
4847
  inheritAttrs: false,
4850
4848
  setup(props, ctx) {
4851
- const { instance, root: root2 } = useCreateInstance(props, ctx, Button);
4849
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Button, ZdButtonProps);
4852
4850
  const buttonScope = useButtonInstance({ instance, root: root2 });
4853
4851
  return {
4854
4852
  ...buttonScope,
@@ -4913,7 +4911,7 @@ const chipComponent = defineComponent({
4913
4911
  props: ZdChipProps$1,
4914
4912
  inheritAttrs: false,
4915
4913
  setup(props, ctx) {
4916
- const { instance, root: root2 } = useCreateInstance(props, ctx, Chip);
4914
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Chip, ZdChipProps$1);
4917
4915
  const { blur, focus, click, mouseenter, mouseleave } = useGetMethods(instance, root2);
4918
4916
  const variant = computed(() => {
4919
4917
  if (instance.outlined) return "outlined";
@@ -4944,7 +4942,7 @@ const _hoisted_1$A = {
4944
4942
  key: 1,
4945
4943
  class: "zd-chip__label"
4946
4944
  };
4947
- function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
4945
+ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
4948
4946
  const _component_v_icon = resolveComponent("v-icon");
4949
4947
  const _component_v_chip = resolveComponent("v-chip");
4950
4948
  return openBlock(), createBlock(_component_v_chip, mergeProps({
@@ -5003,7 +5001,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
5003
5001
  _: 3
5004
5002
  }, 16, ["id", "class", "ripple", "closable", "name", "rounded", "value", "size", "variant", "border", "elevation", "width"]);
5005
5003
  }
5006
- const ZdChip = /* @__PURE__ */ _export_sfc(chipComponent, [["render", _sfc_render$1k]]);
5004
+ const ZdChip = /* @__PURE__ */ _export_sfc(chipComponent, [["render", _sfc_render$1l]]);
5007
5005
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
5008
5006
  function getDefaultExportFromCjs(x) {
5009
5007
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -5582,9 +5580,9 @@ var prism = { exports: {} };
5582
5580
  * @example
5583
5581
  * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
5584
5582
  */
5585
- highlight: function(text, grammar, language) {
5583
+ highlight: function(text2, grammar, language) {
5586
5584
  var env = {
5587
- code: text,
5585
+ code: text2,
5588
5586
  grammar,
5589
5587
  language
5590
5588
  };
@@ -5620,7 +5618,7 @@ var prism = { exports: {} };
5620
5618
  * }
5621
5619
  * });
5622
5620
  */
5623
- tokenize: function(text, grammar) {
5621
+ tokenize: function(text2, grammar) {
5624
5622
  var rest = grammar.rest;
5625
5623
  if (rest) {
5626
5624
  for (var token in rest) {
@@ -5629,8 +5627,8 @@ var prism = { exports: {} };
5629
5627
  delete grammar.rest;
5630
5628
  }
5631
5629
  var tokenList = new LinkedList();
5632
- addAfter(tokenList, tokenList.head, text);
5633
- matchGrammar(text, tokenList, grammar, tokenList.head, 0);
5630
+ addAfter(tokenList, tokenList.head, text2);
5631
+ matchGrammar(text2, tokenList, grammar, tokenList.head, 0);
5634
5632
  return toArray2(tokenList);
5635
5633
  },
5636
5634
  /**
@@ -5719,9 +5717,9 @@ var prism = { exports: {} };
5719
5717
  }
5720
5718
  return "<" + env.tag + ' class="' + env.classes.join(" ") + '"' + attributes + ">" + env.content + "</" + env.tag + ">";
5721
5719
  };
5722
- function matchPattern(pattern, pos, text, lookbehind) {
5720
+ function matchPattern(pattern, pos, text2, lookbehind) {
5723
5721
  pattern.lastIndex = pos;
5724
- var match = pattern.exec(text);
5722
+ var match = pattern.exec(text2);
5725
5723
  if (match && lookbehind && match[1]) {
5726
5724
  var lookbehindLength = match[1].length;
5727
5725
  match.index += lookbehindLength;
@@ -5729,7 +5727,7 @@ var prism = { exports: {} };
5729
5727
  }
5730
5728
  return match;
5731
5729
  }
5732
- function matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {
5730
+ function matchGrammar(text2, tokenList, grammar, startNode, startPos, rematch) {
5733
5731
  for (var token in grammar) {
5734
5732
  if (!grammar.hasOwnProperty(token) || !grammar[token]) {
5735
5733
  continue;
@@ -5755,7 +5753,7 @@ var prism = { exports: {} };
5755
5753
  break;
5756
5754
  }
5757
5755
  var str = currentNode.value;
5758
- if (tokenList.length > text.length) {
5756
+ if (tokenList.length > text2.length) {
5759
5757
  return;
5760
5758
  }
5761
5759
  if (str instanceof Token) {
@@ -5764,8 +5762,8 @@ var prism = { exports: {} };
5764
5762
  var removeCount = 1;
5765
5763
  var match;
5766
5764
  if (greedy) {
5767
- match = matchPattern(pattern, pos, text, lookbehind);
5768
- if (!match || match.index >= text.length) {
5765
+ match = matchPattern(pattern, pos, text2, lookbehind);
5766
+ if (!match || match.index >= text2.length) {
5769
5767
  break;
5770
5768
  }
5771
5769
  var from = match.index;
@@ -5786,7 +5784,7 @@ var prism = { exports: {} };
5786
5784
  p += k.value.length;
5787
5785
  }
5788
5786
  removeCount--;
5789
- str = text.slice(pos, p);
5787
+ str = text2.slice(pos, p);
5790
5788
  match.index -= pos;
5791
5789
  } else {
5792
5790
  match = matchPattern(pattern, 0, str, lookbehind);
@@ -5818,7 +5816,7 @@ var prism = { exports: {} };
5818
5816
  cause: token + "," + j,
5819
5817
  reach
5820
5818
  };
5821
- matchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);
5819
+ matchGrammar(text2, tokenList, grammar, currentNode.prev, pos, nestedRematch);
5822
5820
  if (rematch && nestedRematch.reach > rematch.reach) {
5823
5821
  rematch.reach = nestedRematch.reach;
5824
5822
  }
@@ -6407,11 +6405,11 @@ var prism = { exports: {} };
6407
6405
  }
6408
6406
  loadFile(
6409
6407
  src,
6410
- function(text) {
6408
+ function(text2) {
6411
6409
  pre.setAttribute(STATUS_ATTR, STATUS_LOADED);
6412
6410
  var range = parseRange(pre.getAttribute("data-range"));
6413
6411
  if (range) {
6414
- var lines = text.split(/\r\n?|\n/g);
6412
+ var lines = text2.split(/\r\n?|\n/g);
6415
6413
  var start = range[0];
6416
6414
  var end = range[1] == null ? lines.length : range[1];
6417
6415
  if (start < 0) {
@@ -6422,12 +6420,12 @@ var prism = { exports: {} };
6422
6420
  end += lines.length;
6423
6421
  }
6424
6422
  end = Math.max(0, Math.min(end, lines.length));
6425
- text = lines.slice(start, end).join("\n");
6423
+ text2 = lines.slice(start, end).join("\n");
6426
6424
  if (!pre.hasAttribute("data-start")) {
6427
6425
  pre.setAttribute("data-start", String(start + 1));
6428
6426
  }
6429
6427
  }
6430
- code.textContent = text;
6428
+ code.textContent = text2;
6431
6429
  Prism2.highlightElement(code);
6432
6430
  },
6433
6431
  function(error) {
@@ -6560,7 +6558,7 @@ const codeViewerComponent = defineComponent({
6560
6558
  props: ZdCodeViewerProps$1,
6561
6559
  inheritAttrs: false,
6562
6560
  setup(props, ctx) {
6563
- const { instance, root: root2 } = useCreateInstance(props, ctx, CodeViewer);
6561
+ const { instance, root: root2 } = useCreateInstance(props, ctx, CodeViewer, ZdCodeViewerProps$1);
6564
6562
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
6565
6563
  const highlight = (code, language) => Prism$1.highlight(code, Prism$1.languages[props.language], language);
6566
6564
  instance.setViewHighlight(highlight);
@@ -6590,7 +6588,7 @@ const _hoisted_2$i = {
6590
6588
  const _hoisted_3$8 = { class: "zd-code-viewer-code" };
6591
6589
  const _hoisted_4$4 = ["innerHTML"];
6592
6590
  const _hoisted_5$4 = { class: "zd-code-viewer-clipboard-button" };
6593
- function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
6591
+ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
6594
6592
  const _component_v_icon = resolveComponent("v-icon");
6595
6593
  const _component_v_tooltip = resolveComponent("v-tooltip");
6596
6594
  return withDirectives((openBlock(), createElementBlock("div", {
@@ -6659,7 +6657,7 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
6659
6657
  [vShow, _ctx.instance.isVisible]
6660
6658
  ]);
6661
6659
  }
6662
- const ZdCodeViewer = /* @__PURE__ */ _export_sfc(codeViewerComponent, [["render", _sfc_render$1j]]);
6660
+ const ZdCodeViewer = /* @__PURE__ */ _export_sfc(codeViewerComponent, [["render", _sfc_render$1k]]);
6663
6661
  const ZdColProps$1 = buildProps({
6664
6662
  ...ZdComponentRenderProps,
6665
6663
  ...HeightProps,
@@ -6685,7 +6683,7 @@ const colComponent = defineComponent({
6685
6683
  props: ZdColProps$1,
6686
6684
  inheritAttrs: false,
6687
6685
  setup(props, ctx) {
6688
- const { instance, root: root2 } = useCreateInstance(props, ctx, Col);
6686
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Col, ZdColProps$1);
6689
6687
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
6690
6688
  return {
6691
6689
  instance,
@@ -6698,7 +6696,7 @@ const colComponent = defineComponent({
6698
6696
  };
6699
6697
  }
6700
6698
  });
6701
- function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
6699
+ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
6702
6700
  const _component_v_col = resolveComponent("v-col");
6703
6701
  return withDirectives((openBlock(), createBlock(_component_v_col, {
6704
6702
  id: _ctx.instance.name,
@@ -6726,7 +6724,7 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
6726
6724
  [vShow, _ctx.instance.isVisible]
6727
6725
  ]);
6728
6726
  }
6729
- const ZdCol = /* @__PURE__ */ _export_sfc(colComponent, [["render", _sfc_render$1i]]);
6727
+ const ZdCol = /* @__PURE__ */ _export_sfc(colComponent, [["render", _sfc_render$1j]]);
6730
6728
  const ZdCardProps = buildProps({
6731
6729
  ...ZdComponentRenderProps,
6732
6730
  ...HeightProps,
@@ -6834,7 +6832,7 @@ defineComponent({
6834
6832
  props: ZdCardProps,
6835
6833
  inheritAttrs: false,
6836
6834
  setup(props, ctx) {
6837
- const { instance, root: root2 } = useCreateInstance(props, ctx, Card);
6835
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Card, ZdCardProps);
6838
6836
  const { click, focus, blur, mouseenter, mouseleave, mouseout, mouseover } = useGetMethods(instance, root2);
6839
6837
  const getVariant = () => instance.variant || instance.outlined && "outlined" || instance.flat && "flat" || "elevated";
6840
6838
  return {
@@ -6859,7 +6857,8 @@ const ZdCollapseCardProps$1 = {
6859
6857
  },
6860
6858
  expandButton: {
6861
6859
  type: [Object, String],
6862
- default: () => void 0
6860
+ default: () => void 0,
6861
+ watch: false
6863
6862
  },
6864
6863
  expanded: {
6865
6864
  type: [Boolean, String],
@@ -6867,7 +6866,8 @@ const ZdCollapseCardProps$1 = {
6867
6866
  },
6868
6867
  header: {
6869
6868
  type: [Array, String],
6870
- default: () => []
6869
+ default: () => [],
6870
+ watch: false
6871
6871
  },
6872
6872
  hideAction: {
6873
6873
  type: [Boolean, String],
@@ -6896,7 +6896,7 @@ const collapseCardComponent = defineComponent({
6896
6896
  inheritAttrs: false,
6897
6897
  setup(props, ctx) {
6898
6898
  var _a;
6899
- const { instance, root: root2 } = useCreateInstance(props, ctx, CollapseCard);
6899
+ const { instance, root: root2 } = useCreateInstance(props, ctx, CollapseCard, ZdCollapseCardProps$1);
6900
6900
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
6901
6901
  const background = computed(() => ({
6902
6902
  background: `url(${instance.img}) center center / cover no-repeat`
@@ -6932,7 +6932,7 @@ const collapseCardComponent = defineComponent({
6932
6932
  };
6933
6933
  }
6934
6934
  });
6935
- function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
6935
+ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
6936
6936
  const _component_v_icon = resolveComponent("v-icon");
6937
6937
  const _component_v_expansion_panel_title = resolveComponent("v-expansion-panel-title");
6938
6938
  const _component_v_expansion_panel_text = resolveComponent("v-expansion-panel-text");
@@ -7033,7 +7033,7 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
7033
7033
  _: 3
7034
7034
  }, 8, ["id", "class", "dark", "light", "style", "model-value", "color"]);
7035
7035
  }
7036
- const ZdCollapseCard = /* @__PURE__ */ _export_sfc(collapseCardComponent, [["render", _sfc_render$1h]]);
7036
+ const ZdCollapseCard = /* @__PURE__ */ _export_sfc(collapseCardComponent, [["render", _sfc_render$1i]]);
7037
7037
  const ZdContainerProps$1 = buildProps({
7038
7038
  ...ZdComponentRenderProps,
7039
7039
  ...HeightProps,
@@ -7055,7 +7055,7 @@ const containerComponent = defineComponent({
7055
7055
  props: ZdContainerProps$1,
7056
7056
  inheritAttrs: false,
7057
7057
  setup(props, ctx) {
7058
- const { instance, root: root2 } = useCreateInstance(props, ctx, Container);
7058
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Container, ZdContainerProps$1);
7059
7059
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
7060
7060
  return {
7061
7061
  instance,
@@ -7068,7 +7068,7 @@ const containerComponent = defineComponent({
7068
7068
  };
7069
7069
  }
7070
7070
  });
7071
- function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
7071
+ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
7072
7072
  const _component_v_container = resolveComponent("v-container");
7073
7073
  return withDirectives((openBlock(), createBlock(_component_v_container, {
7074
7074
  id: _ctx.instance.name,
@@ -7104,7 +7104,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
7104
7104
  [vShow, _ctx.instance.isVisible]
7105
7105
  ]);
7106
7106
  }
7107
- const ZdContainer = /* @__PURE__ */ _export_sfc(containerComponent, [["render", _sfc_render$1g]]);
7107
+ const ZdContainer = /* @__PURE__ */ _export_sfc(containerComponent, [["render", _sfc_render$1h]]);
7108
7108
  function useMaska(instance, options) {
7109
7109
  const currentMask = ref("");
7110
7110
  const getCurrentMask = (value) => {
@@ -7185,7 +7185,7 @@ defineComponent({
7185
7185
  props: ZdTextInputProps$1,
7186
7186
  inheritAttrs: false,
7187
7187
  setup(props, ctx) {
7188
- const { instance, root: root2 } = useCreateInstance(props, ctx, TextInput);
7188
+ const { instance, root: root2 } = useCreateInstance(props, ctx, TextInput, ZdTextInputProps$1);
7189
7189
  const textInputScope = useTextInput$1(instance, ctx, root2);
7190
7190
  const { maskOptions } = useMaska(instance, { disable: props.disableMaska });
7191
7191
  return {
@@ -7312,7 +7312,7 @@ defineComponent({
7312
7312
  props: ZdNumberInputProps$1,
7313
7313
  inheritAttrs: false,
7314
7314
  setup(props, ctx) {
7315
- const { instance, root: root2 } = useCreateInstance(props, ctx, NumberInput);
7315
+ const { instance, root: root2 } = useCreateInstance(props, ctx, NumberInput, ZdNumberInputProps$1);
7316
7316
  const autoNumericInit = ref(false);
7317
7317
  onMounted(() => {
7318
7318
  var _a;
@@ -7380,14 +7380,14 @@ const ZdCurrencyProps$1 = buildProps({
7380
7380
  const currencyComponent = defineComponent({
7381
7381
  props: ZdCurrencyProps$1,
7382
7382
  setup(props, ctx) {
7383
- const { instance, root: root2 } = useCreateInstance(props, ctx, Currency);
7383
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Currency, ZdCurrencyProps$1);
7384
7384
  return {
7385
7385
  instance,
7386
7386
  root: root2
7387
7387
  };
7388
7388
  }
7389
7389
  });
7390
- function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
7390
+ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
7391
7391
  const _component_zd_number_input = resolveComponent("zd-number-input");
7392
7392
  return openBlock(), createBlock(_component_zd_number_input, {
7393
7393
  id: _ctx.instance.name,
@@ -7396,7 +7396,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
7396
7396
  "instance-object": _ctx.instance
7397
7397
  }, null, 8, ["id", "instance-object"]);
7398
7398
  }
7399
- const ZdCurrency = /* @__PURE__ */ _export_sfc(currencyComponent, [["render", _sfc_render$1f]]);
7399
+ const ZdCurrency = /* @__PURE__ */ _export_sfc(currencyComponent, [["render", _sfc_render$1g]]);
7400
7400
  function useIsMobile() {
7401
7401
  const isMobile = computed(() => {
7402
7402
  return Utils.isMobile();
@@ -7621,7 +7621,7 @@ const dateInputComponent = defineComponent({
7621
7621
  props: ZdDateInputProps$1,
7622
7622
  inheritAttrs: false,
7623
7623
  setup(props, ctx) {
7624
- const { instance, root: root2 } = useCreateInputInstance(props, ctx, DateInput);
7624
+ const { instance, root: root2 } = useCreateInputInstance(props, ctx, DateInput, ZdDateInputProps$1);
7625
7625
  const textInputScope = useTextInput$1(instance, ctx, root2);
7626
7626
  const picker = ref(null);
7627
7627
  const { isMobile } = useIsMobile();
@@ -7694,7 +7694,7 @@ const dateInputComponent = defineComponent({
7694
7694
  };
7695
7695
  }
7696
7696
  });
7697
- function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
7697
+ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
7698
7698
  const _component_zd_activator_wrapper = resolveComponent("zd-activator-wrapper");
7699
7699
  const _component_zd_button = resolveComponent("zd-button");
7700
7700
  const _component_v_date_picker = resolveComponent("v-date-picker");
@@ -7822,7 +7822,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
7822
7822
  _: 1
7823
7823
  }, 8, ["name", "grid"]);
7824
7824
  }
7825
- const ZdDateInput = /* @__PURE__ */ _export_sfc(dateInputComponent, [["render", _sfc_render$1e]]);
7825
+ const ZdDateInput = /* @__PURE__ */ _export_sfc(dateInputComponent, [["render", _sfc_render$1f]]);
7826
7826
  const ZdDateRangeProps$1 = {
7827
7827
  ...ZdTextInputProps$1,
7828
7828
  allowedDates: {
@@ -7928,12 +7928,12 @@ const ZdDateRangeProps$1 = {
7928
7928
  default: "none"
7929
7929
  }
7930
7930
  };
7931
- const _sfc_main$s = defineComponent({
7931
+ const _sfc_main$t = defineComponent({
7932
7932
  name: "ZdDateRange",
7933
7933
  props: ZdDateRangeProps$1,
7934
7934
  inheritAttrs: false,
7935
7935
  setup(props, ctx) {
7936
- const { instance, root: root2 } = useCreateInputInstance(props, ctx, DateRange);
7936
+ const { instance, root: root2 } = useCreateInputInstance(props, ctx, DateRange, ZdDateRangeProps$1);
7937
7937
  const picker = ref(null);
7938
7938
  const { isMobile } = useIsMobile();
7939
7939
  const { pickerValue } = usePickerValue(instance);
@@ -7991,7 +7991,7 @@ const _sfc_main$s = defineComponent({
7991
7991
  };
7992
7992
  }
7993
7993
  });
7994
- function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
7994
+ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
7995
7995
  const _component_zd_activator_wrapper = resolveComponent("zd-activator-wrapper");
7996
7996
  const _component_zd_button = resolveComponent("zd-button");
7997
7997
  const _component_v_date_picker = resolveComponent("v-date-picker");
@@ -8110,7 +8110,7 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
8110
8110
  _: 1
8111
8111
  }, 8, ["name"]);
8112
8112
  }
8113
- const ZdDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$1d]]);
8113
+ const ZdDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$1e]]);
8114
8114
  const ZdDialogProps$1 = buildProps({
8115
8115
  ...ZdComponentRenderProps
8116
8116
  });
@@ -8137,7 +8137,7 @@ const dialogComponent = defineComponent({
8137
8137
  };
8138
8138
  }
8139
8139
  });
8140
- function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
8140
+ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
8141
8141
  const _component_v_icon = resolveComponent("v-icon");
8142
8142
  const _component_v_spacer = resolveComponent("v-spacer");
8143
8143
  const _component_v_card_title = resolveComponent("v-card-title");
@@ -8213,7 +8213,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
8213
8213
  _: 1
8214
8214
  }, 8, ["id", "modelValue", "max-width", "persistent", "theme"]);
8215
8215
  }
8216
- const ZdDialog = /* @__PURE__ */ _export_sfc(dialogComponent, [["render", _sfc_render$1c]]);
8216
+ const ZdDialog = /* @__PURE__ */ _export_sfc(dialogComponent, [["render", _sfc_render$1d]]);
8217
8217
  const ZdDividerProps$1 = buildProps({
8218
8218
  ...ZdComponentRenderProps,
8219
8219
  inset: {
@@ -8229,14 +8229,14 @@ const dividerComponent = defineComponent({
8229
8229
  props: ZdDividerProps$1,
8230
8230
  inheritAttrs: false,
8231
8231
  setup(props, ctx) {
8232
- const { instance, root: root2 } = useCreateInstance(props, ctx, Divider);
8232
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Divider, ZdDividerProps$1);
8233
8233
  return {
8234
8234
  instance,
8235
8235
  root: root2
8236
8236
  };
8237
8237
  }
8238
8238
  });
8239
- function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
8239
+ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
8240
8240
  const _component_v_divider = resolveComponent("v-divider");
8241
8241
  return withDirectives((openBlock(), createBlock(_component_v_divider, {
8242
8242
  id: _ctx.instance.name,
@@ -8251,7 +8251,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
8251
8251
  [vShow, _ctx.instance.isVisible]
8252
8252
  ]);
8253
8253
  }
8254
- const ZdDivider = /* @__PURE__ */ _export_sfc(dividerComponent, [["render", _sfc_render$1b]]);
8254
+ const ZdDivider = /* @__PURE__ */ _export_sfc(dividerComponent, [["render", _sfc_render$1c]]);
8255
8255
  const ZdDropdownProps$1 = buildProps({
8256
8256
  ...ZdComponentRenderProps,
8257
8257
  absolute: {
@@ -8259,7 +8259,8 @@ const ZdDropdownProps$1 = buildProps({
8259
8259
  default: false
8260
8260
  },
8261
8261
  activator: {
8262
- type: [Object, String]
8262
+ type: [Object, String],
8263
+ watch: false
8263
8264
  },
8264
8265
  closeOnContentClick: {
8265
8266
  type: [Boolean, String],
@@ -8324,7 +8325,7 @@ const dropdown = defineComponent({
8324
8325
  ZdActivatorWrapper
8325
8326
  },
8326
8327
  setup(props, ctx) {
8327
- const { instance, root: root2 } = useCreateInstance(props, ctx, Dropdown);
8328
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Dropdown, ZdDropdownProps$1);
8328
8329
  const cssVars = computed(() => {
8329
8330
  return {
8330
8331
  "--cursor": instance.cursor
@@ -8338,7 +8339,7 @@ const dropdown = defineComponent({
8338
8339
  };
8339
8340
  }
8340
8341
  });
8341
- function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
8342
+ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
8342
8343
  const _component_zd_activator_wrapper = resolveComponent("zd-activator-wrapper");
8343
8344
  const _component_v_list_item = resolveComponent("v-list-item");
8344
8345
  const _component_v_list = resolveComponent("v-list");
@@ -8414,7 +8415,7 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
8414
8415
  _: 3
8415
8416
  }, 8, ["id", "name", "closeOnContentClick", "disabled", "max-height", "max-width", "min-height", "min-width", "openOnClick", "openOnHover", "location", "target", "persistent", "modelValue"]);
8416
8417
  }
8417
- const ZdDropdown = /* @__PURE__ */ _export_sfc(dropdown, [["render", _sfc_render$1a]]);
8418
+ const ZdDropdown = /* @__PURE__ */ _export_sfc(dropdown, [["render", _sfc_render$1b]]);
8418
8419
  const ZdFooterProps$1 = buildProps({
8419
8420
  ...ZdComponentRenderProps,
8420
8421
  ...HeightProps,
@@ -8460,7 +8461,7 @@ const FooterComponent = defineComponent({
8460
8461
  props: ZdFooterProps$1,
8461
8462
  inheritAttrs: false,
8462
8463
  setup(props, ctx) {
8463
- const { instance, root: root2 } = useCreateInstance(props, ctx, Footer);
8464
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Footer, ZdFooterProps$1);
8464
8465
  const { click, mouseenter, mouseleave, mouseout, mouseover } = useGetMethods(instance, root2);
8465
8466
  return {
8466
8467
  instance,
@@ -8486,7 +8487,7 @@ const _hoisted_3$7 = {
8486
8487
  key: 2,
8487
8488
  class: "zd-footer-slot-right"
8488
8489
  };
8489
- function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
8490
+ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
8490
8491
  const _component_v_col = resolveComponent("v-col");
8491
8492
  const _component_v_footer = resolveComponent("v-footer");
8492
8493
  return withDirectives((openBlock(), createBlock(_component_v_footer, {
@@ -8573,7 +8574,7 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
8573
8574
  [vShow, _ctx.instance.isVisible]
8574
8575
  ]);
8575
8576
  }
8576
- const ZdFooter = /* @__PURE__ */ _export_sfc(FooterComponent, [["render", _sfc_render$19]]);
8577
+ const ZdFooter = /* @__PURE__ */ _export_sfc(FooterComponent, [["render", _sfc_render$1a]]);
8577
8578
  const ZdFormProps$1 = buildProps({
8578
8579
  ...ZdComponentRenderProps,
8579
8580
  ...HeightProps,
@@ -8594,14 +8595,15 @@ const ZdFormProps$1 = buildProps({
8594
8595
  type: Object,
8595
8596
  default() {
8596
8597
  return {};
8597
- }
8598
+ },
8599
+ watch: false
8598
8600
  }
8599
8601
  });
8600
8602
  const formComponent = defineComponent({
8601
8603
  props: ZdFormProps$1,
8602
8604
  inheritAttrs: false,
8603
8605
  setup(props, ctx) {
8604
- const { instance, root: root2 } = useCreateInstance(props, ctx, Form);
8606
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Form, ZdFormProps$1);
8605
8607
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
8606
8608
  const submit = (event) => {
8607
8609
  const form = root2.value;
@@ -8650,7 +8652,7 @@ const formComponent = defineComponent({
8650
8652
  };
8651
8653
  }
8652
8654
  });
8653
- function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
8655
+ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
8654
8656
  const _component_v_col = resolveComponent("v-col");
8655
8657
  const _component_v_row = resolveComponent("v-row");
8656
8658
  const _component_v_form = resolveComponent("v-form");
@@ -8713,7 +8715,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
8713
8715
  [vShow, _ctx.instance.isVisible]
8714
8716
  ]);
8715
8717
  }
8716
- const ZdForm = /* @__PURE__ */ _export_sfc(formComponent, [["render", _sfc_render$18]]);
8718
+ const ZdForm = /* @__PURE__ */ _export_sfc(formComponent, [["render", _sfc_render$19]]);
8717
8719
  const ZdFrameProps$1 = buildProps({
8718
8720
  ...ZdComponentProps,
8719
8721
  path: {
@@ -8735,11 +8737,13 @@ const ZdFrameProps$1 = buildProps({
8735
8737
  },
8736
8738
  override: {
8737
8739
  type: Object,
8738
- default: () => ({})
8740
+ default: () => ({}),
8741
+ watch: false
8739
8742
  },
8740
8743
  overrideNamedProps: {
8741
8744
  type: Object,
8742
- default: () => ({})
8745
+ default: () => ({}),
8746
+ watch: false
8743
8747
  },
8744
8748
  cache: {
8745
8749
  type: [Boolean, String],
@@ -8783,7 +8787,7 @@ defineComponent({
8783
8787
  props: ZdFrameProps$1,
8784
8788
  inheritAttrs: false,
8785
8789
  setup(props, ctx) {
8786
- const { instance, root: root2 } = useCreateInstance(props, ctx, Frame);
8790
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Frame, ZdFrameProps$1);
8787
8791
  return { instance, root: root2 };
8788
8792
  }
8789
8793
  });
@@ -8798,21 +8802,21 @@ const framePageComponent = defineComponent({
8798
8802
  props: ZdFramePageProps$1,
8799
8803
  inheritAttrs: false,
8800
8804
  setup(props, ctx) {
8801
- const { instance, root: root2 } = useCreateInstance(props, ctx, FramePage);
8805
+ const { instance, root: root2 } = useCreateInstance(props, ctx, FramePage, ZdFramePageProps$1);
8802
8806
  return { instance, root: root2 };
8803
8807
  }
8804
8808
  });
8805
- function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
8809
+ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
8806
8810
  const _component_zd_frame = resolveComponent("zd-frame");
8807
8811
  return openBlock(), createBlock(_component_zd_frame, {
8808
8812
  id: `${_ctx.instance.name}_frame_page`,
8809
8813
  name: `${_ctx.instance.name}_frame_page`,
8810
8814
  path: _ctx.instance.path,
8811
8815
  "instance-object": _ctx.instance,
8812
- class: "zd-frame-page"
8813
- }, null, 8, ["id", "name", "path", "instance-object"]);
8816
+ cssClass: `zd-frame-page ${_ctx.instance.cssClass || ""}`
8817
+ }, null, 8, ["id", "name", "path", "instance-object", "cssClass"]);
8814
8818
  }
8815
- const ZdFramePage = /* @__PURE__ */ _export_sfc(framePageComponent, [["render", _sfc_render$17]]);
8819
+ const ZdFramePage = /* @__PURE__ */ _export_sfc(framePageComponent, [["render", _sfc_render$18]]);
8816
8820
  const ZdFrameProps = buildProps({
8817
8821
  ...ZdComponentProps,
8818
8822
  path: {
@@ -8834,11 +8838,13 @@ const ZdFrameProps = buildProps({
8834
8838
  },
8835
8839
  override: {
8836
8840
  type: Object,
8837
- default: () => ({})
8841
+ default: () => ({}),
8842
+ watch: false
8838
8843
  },
8839
8844
  overrideNamedProps: {
8840
8845
  type: Object,
8841
- default: () => ({})
8846
+ default: () => ({}),
8847
+ watch: false
8842
8848
  },
8843
8849
  cache: {
8844
8850
  type: [Boolean, String],
@@ -8882,12 +8888,12 @@ const frameComponent = defineComponent({
8882
8888
  props: ZdFrameProps,
8883
8889
  inheritAttrs: false,
8884
8890
  setup(props, ctx) {
8885
- const { instance, root: root2 } = useCreateInstance(props, ctx, Frame);
8891
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Frame, ZdFrameProps);
8886
8892
  return { instance, root: root2 };
8887
8893
  }
8888
8894
  });
8889
8895
  const _hoisted_1$x = ["id"];
8890
- function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
8896
+ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
8891
8897
  const _component_v_progress_circular = resolveComponent("v-progress-circular");
8892
8898
  return withDirectives((openBlock(), createElementBlock("div", {
8893
8899
  id: _ctx.instance.name,
@@ -8913,7 +8919,7 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
8913
8919
  [vShow, _ctx.instance.isVisible]
8914
8920
  ]);
8915
8921
  }
8916
- const ZdFrame = /* @__PURE__ */ _export_sfc(frameComponent, [["render", _sfc_render$16]]);
8922
+ const ZdFrame = /* @__PURE__ */ _export_sfc(frameComponent, [["render", _sfc_render$17]]);
8917
8923
  function useCellSelection({
8918
8924
  instance
8919
8925
  }) {
@@ -8945,109 +8951,90 @@ function useCellSelection({
8945
8951
  };
8946
8952
  }
8947
8953
  /**!
8948
- * Sortable 1.15.6
8954
+ * Sortable 1.15.7
8949
8955
  * @author RubaXa <trash@rubaxa.org>
8950
8956
  * @author owenm <owen23355@gmail.com>
8951
8957
  * @license MIT
8952
8958
  */
8953
- function ownKeys(object, enumerableOnly) {
8954
- var keys = Object.keys(object);
8955
- if (Object.getOwnPropertySymbols) {
8956
- var symbols = Object.getOwnPropertySymbols(object);
8957
- if (enumerableOnly) {
8958
- symbols = symbols.filter(function(sym) {
8959
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
8960
- });
8961
- }
8962
- keys.push.apply(keys, symbols);
8963
- }
8964
- return keys;
8959
+ function _defineProperty(e, r, t) {
8960
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
8961
+ value: t,
8962
+ enumerable: true,
8963
+ configurable: true,
8964
+ writable: true
8965
+ }) : e[r] = t, e;
8965
8966
  }
8966
- function _objectSpread2(target) {
8967
- for (var i = 1; i < arguments.length; i++) {
8968
- var source = arguments[i] != null ? arguments[i] : {};
8969
- if (i % 2) {
8970
- ownKeys(Object(source), true).forEach(function(key) {
8971
- _defineProperty(target, key, source[key]);
8972
- });
8973
- } else if (Object.getOwnPropertyDescriptors) {
8974
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8975
- } else {
8976
- ownKeys(Object(source)).forEach(function(key) {
8977
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8978
- });
8967
+ function _extends() {
8968
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
8969
+ for (var e = 1; e < arguments.length; e++) {
8970
+ var t = arguments[e];
8971
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
8979
8972
  }
8980
- }
8981
- return target;
8973
+ return n;
8974
+ }, _extends.apply(null, arguments);
8982
8975
  }
8983
- function _typeof(obj) {
8984
- "@babel/helpers - typeof";
8985
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
8986
- _typeof = function(obj2) {
8987
- return typeof obj2;
8988
- };
8989
- } else {
8990
- _typeof = function(obj2) {
8991
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
8992
- };
8976
+ function ownKeys(e, r) {
8977
+ var t = Object.keys(e);
8978
+ if (Object.getOwnPropertySymbols) {
8979
+ var o = Object.getOwnPropertySymbols(e);
8980
+ r && (o = o.filter(function(r2) {
8981
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
8982
+ })), t.push.apply(t, o);
8993
8983
  }
8994
- return _typeof(obj);
8984
+ return t;
8995
8985
  }
8996
- function _defineProperty(obj, key, value) {
8997
- if (key in obj) {
8998
- Object.defineProperty(obj, key, {
8999
- value,
9000
- enumerable: true,
9001
- configurable: true,
9002
- writable: true
8986
+ function _objectSpread2(e) {
8987
+ for (var r = 1; r < arguments.length; r++) {
8988
+ var t = null != arguments[r] ? arguments[r] : {};
8989
+ r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
8990
+ _defineProperty(e, r2, t[r2]);
8991
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
8992
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
9003
8993
  });
9004
- } else {
9005
- obj[key] = value;
9006
- }
9007
- return obj;
9008
- }
9009
- function _extends() {
9010
- _extends = Object.assign || function(target) {
9011
- for (var i = 1; i < arguments.length; i++) {
9012
- var source = arguments[i];
9013
- for (var key in source) {
9014
- if (Object.prototype.hasOwnProperty.call(source, key)) {
9015
- target[key] = source[key];
9016
- }
9017
- }
9018
- }
9019
- return target;
9020
- };
9021
- return _extends.apply(this, arguments);
9022
- }
9023
- function _objectWithoutPropertiesLoose(source, excluded) {
9024
- if (source == null) return {};
9025
- var target = {};
9026
- var sourceKeys = Object.keys(source);
9027
- var key, i;
9028
- for (i = 0; i < sourceKeys.length; i++) {
9029
- key = sourceKeys[i];
9030
- if (excluded.indexOf(key) >= 0) continue;
9031
- target[key] = source[key];
9032
8994
  }
9033
- return target;
8995
+ return e;
9034
8996
  }
9035
- function _objectWithoutProperties(source, excluded) {
9036
- if (source == null) return {};
9037
- var target = _objectWithoutPropertiesLoose(source, excluded);
9038
- var key, i;
8997
+ function _objectWithoutProperties(e, t) {
8998
+ if (null == e) return {};
8999
+ var o, r, i = _objectWithoutPropertiesLoose(e, t);
9039
9000
  if (Object.getOwnPropertySymbols) {
9040
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
9041
- for (i = 0; i < sourceSymbolKeys.length; i++) {
9042
- key = sourceSymbolKeys[i];
9043
- if (excluded.indexOf(key) >= 0) continue;
9044
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
9045
- target[key] = source[key];
9046
- }
9001
+ var n = Object.getOwnPropertySymbols(e);
9002
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
9047
9003
  }
9048
- return target;
9004
+ return i;
9005
+ }
9006
+ function _objectWithoutPropertiesLoose(r, e) {
9007
+ if (null == r) return {};
9008
+ var t = {};
9009
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
9010
+ if (-1 !== e.indexOf(n)) continue;
9011
+ t[n] = r[n];
9012
+ }
9013
+ return t;
9014
+ }
9015
+ function _toPrimitive(t, r) {
9016
+ if ("object" != typeof t || !t) return t;
9017
+ var e = t[Symbol.toPrimitive];
9018
+ if (void 0 !== e) {
9019
+ var i = e.call(t, r);
9020
+ if ("object" != typeof i) return i;
9021
+ throw new TypeError("@@toPrimitive must return a primitive value.");
9022
+ }
9023
+ return ("string" === r ? String : Number)(t);
9049
9024
  }
9050
- var version = "1.15.6";
9025
+ function _toPropertyKey(t) {
9026
+ var i = _toPrimitive(t, "string");
9027
+ return "symbol" == typeof i ? i : i + "";
9028
+ }
9029
+ function _typeof(o) {
9030
+ "@babel/helpers - typeof";
9031
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
9032
+ return typeof o2;
9033
+ } : function(o2) {
9034
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
9035
+ }, _typeof(o);
9036
+ }
9037
+ var version = "1.15.7";
9051
9038
  function userAgent(pattern) {
9052
9039
  if (typeof window !== "undefined" && window.navigator) {
9053
9040
  return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
@@ -9088,7 +9075,7 @@ function matches(el, selector) {
9088
9075
  return false;
9089
9076
  }
9090
9077
  function getParentOrHost(el) {
9091
- return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
9078
+ return el.host && el !== document && el.host.nodeType && el.host !== el ? el.host : el.parentNode;
9092
9079
  }
9093
9080
  function closest(el, selector, ctx, includeCTX) {
9094
9081
  if (el) {
@@ -10573,8 +10560,11 @@ Sortable.prototype = /** @lends Sortable.prototype */
10573
10560
  _nulling: function _nulling() {
10574
10561
  pluginEvent2("nulling", this);
10575
10562
  rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;
10576
- savedInputChecked.forEach(function(el) {
10577
- el.checked = true;
10563
+ var el = this.el;
10564
+ savedInputChecked.forEach(function(checkEl) {
10565
+ if (el.contains(checkEl)) {
10566
+ checkEl.checked = true;
10567
+ }
10578
10568
  });
10579
10569
  savedInputChecked.length = lastDx = lastDy = 0;
10580
10570
  },
@@ -11123,11 +11113,12 @@ function useColumnDrag({
11123
11113
  const checkMove = (event) => {
11124
11114
  return event.related.classList.contains("sort-handle");
11125
11115
  };
11116
+ let sortableInstance = null;
11126
11117
  const initDragColumns = () => {
11127
11118
  var _a;
11128
11119
  const tr = (_a = rootEl2.value) == null ? void 0 : _a.querySelector("thead tr");
11129
11120
  if (tr) {
11130
- Sortable.create(tr, {
11121
+ sortableInstance = Sortable.create(tr, {
11131
11122
  onEnd: sortColumns,
11132
11123
  onMove: checkMove,
11133
11124
  handle: ".sort-handle",
@@ -11136,16 +11127,7 @@ function useColumnDrag({
11136
11127
  }
11137
11128
  };
11138
11129
  const destroyDragColumns = () => {
11139
- var _a;
11140
- const tr = (_a = rootEl2.value) == null ? void 0 : _a.querySelector("thead tr");
11141
- if (tr) {
11142
- Sortable.create(tr, {
11143
- onEnd: sortColumns,
11144
- onMove: checkMove,
11145
- handle: ".sort-handle",
11146
- scroll: false
11147
- }).destroy();
11148
- }
11130
+ sortableInstance == null ? void 0 : sortableInstance.destroy();
11149
11131
  };
11150
11132
  const sortColumns = (event) => {
11151
11133
  var _a, _b;
@@ -11184,6 +11166,9 @@ function useColumnDrag({
11184
11166
  const getColumnsDOMOrder = () => {
11185
11167
  return orderHeaders(instance.columns);
11186
11168
  };
11169
+ onUnmounted(() => {
11170
+ destroyDragColumns();
11171
+ });
11187
11172
  return {};
11188
11173
  }
11189
11174
  function useColumnResize({
@@ -11625,7 +11610,8 @@ function useHasSlot() {
11625
11610
  }
11626
11611
  function useTableNavigation({
11627
11612
  instance,
11628
- rootEl: rootEl2
11613
+ rootEl: rootEl2,
11614
+ isNavigableRow
11629
11615
  }) {
11630
11616
  const navigate = (direction, event) => {
11631
11617
  if (direction === "up" || direction === "down") {
@@ -11699,7 +11685,9 @@ function useTableNavigation({
11699
11685
  return getArrayFromElementTag("TD", node);
11700
11686
  };
11701
11687
  const getArrayFromTrElement = (node) => {
11702
- return getArrayFromElementTag("TR", node).filter(isElementVisible);
11688
+ return getArrayFromElementTag("TR", node).filter(
11689
+ (element) => isElementVisible(element) && ((isNavigableRow == null ? void 0 : isNavigableRow(element)) ?? true)
11690
+ );
11703
11691
  };
11704
11692
  const findNextTd = (direction, trIndex, tdIndex, trCollection) => {
11705
11693
  const up = direction === "up";
@@ -11839,8 +11827,8 @@ class RowNotFoundError extends ZeedhiError {
11839
11827
  }
11840
11828
  class NotProvidedError extends ZeedhiError {
11841
11829
  constructor(provides) {
11842
- const text = Array.isArray(provides) ? provides.join(", ") : provides;
11843
- super(`component requires ${text} to be provided`);
11830
+ const text2 = Array.isArray(provides) ? provides.join(", ") : provides;
11831
+ super(`component requires ${text2} to be provided`);
11844
11832
  this.name = "NotProvidedError";
11845
11833
  }
11846
11834
  }
@@ -11850,13 +11838,15 @@ const ZdIterableProps = buildProps({
11850
11838
  type: Array,
11851
11839
  default() {
11852
11840
  return [];
11853
- }
11841
+ },
11842
+ watch: false
11854
11843
  },
11855
11844
  datasource: {
11856
11845
  type: Object,
11857
11846
  defaut() {
11858
11847
  return {};
11859
- }
11848
+ },
11849
+ watch: false
11860
11850
  },
11861
11851
  pageSizes: {
11862
11852
  type: [String, Array],
@@ -11901,7 +11891,8 @@ const ZdGridProps$1 = buildProps({
11901
11891
  },
11902
11892
  disableSelection: {
11903
11893
  type: [String, Function],
11904
- default: void 0
11894
+ default: void 0,
11895
+ watch: false
11905
11896
  },
11906
11897
  dragColumns: {
11907
11898
  type: [Boolean, String],
@@ -11909,7 +11900,8 @@ const ZdGridProps$1 = buildProps({
11909
11900
  },
11910
11901
  errorSlot: {
11911
11902
  type: Array,
11912
- default: () => []
11903
+ default: () => [],
11904
+ watch: false
11913
11905
  },
11914
11906
  fillHeight: {
11915
11907
  type: [Boolean, String],
@@ -11937,7 +11929,8 @@ const ZdGridProps$1 = buildProps({
11937
11929
  }
11938
11930
  ]
11939
11931
  }
11940
- ]
11932
+ ],
11933
+ watch: false
11941
11934
  },
11942
11935
  headerBackground: {
11943
11936
  type: String
@@ -11979,7 +11972,8 @@ const ZdGridProps$1 = buildProps({
11979
11972
  cssClass: "no-data",
11980
11973
  text: "NO_DATA"
11981
11974
  }
11982
- ]
11975
+ ],
11976
+ watch: false
11983
11977
  },
11984
11978
  noDataText: {
11985
11979
  type: String,
@@ -11994,7 +11988,8 @@ const ZdGridProps$1 = buildProps({
11994
11988
  cssClass: "no-result",
11995
11989
  text: "NO_RESULT"
11996
11990
  }
11997
- ]
11991
+ ],
11992
+ watch: false
11998
11993
  },
11999
11994
  noResultsText: {
12000
11995
  type: String,
@@ -12037,7 +12032,8 @@ const ZdGridProps$1 = buildProps({
12037
12032
  component: "ZdSearch",
12038
12033
  cssClass: "zd-grid-search"
12039
12034
  }
12040
- ]
12035
+ ],
12036
+ watch: false
12041
12037
  },
12042
12038
  width: {
12043
12039
  type: [Number, String],
@@ -12052,7 +12048,7 @@ defineComponent({
12052
12048
  props: ZdGridProps$1,
12053
12049
  inheritAttrs: false,
12054
12050
  setup(props, ctx) {
12055
- const { instance, root: root2 } = useCreateInstance(props, ctx, Grid);
12051
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Grid, ZdGridProps$1);
12056
12052
  const gridScope = useGridInstance$1({ instance, root: root2 });
12057
12053
  const cellClick = ({ row, column, event }) => {
12058
12054
  instance.cellClick(row, column, event, gridScope.rootEl.value);
@@ -12072,13 +12068,14 @@ defineComponent({
12072
12068
  function useGridInstance$1({
12073
12069
  instance,
12074
12070
  root: root2,
12075
- renderedData
12071
+ renderedData,
12072
+ isNavigableRow
12076
12073
  }) {
12077
12074
  var _a, _b;
12078
12075
  useWatchUrl(instance);
12079
12076
  const rootEl2 = getRootElement(root2);
12080
12077
  useColumnDrag({ instance, rootEl: rootEl2 });
12081
- useTableNavigation({ instance, rootEl: rootEl2 });
12078
+ useTableNavigation({ instance, rootEl: rootEl2, isNavigableRow });
12082
12079
  const { updateFixedColumns, fixedLeft, fixedRight } = useFixedColumns({ instance, rootEl: rootEl2 });
12083
12080
  const { resizeMouseDownHandler, resizeClickHandler, calcWidth } = useColumnResize({
12084
12081
  instance,
@@ -12187,10 +12184,11 @@ const ZdGridEditableProps$1 = buildProps({
12187
12184
  function useGridEditableInstance$1({
12188
12185
  instance,
12189
12186
  root: root2,
12190
- renderedData
12187
+ renderedData,
12188
+ isNavigableRow
12191
12189
  }) {
12192
12190
  const rootEl2 = getRootElement(root2);
12193
- const gridScope = useGridInstance$1({ instance, root: root2, renderedData });
12191
+ const gridScope = useGridInstance$1({ instance, root: root2, renderedData, isNavigableRow });
12194
12192
  const { doubleClick } = useDoubleClick();
12195
12193
  const editingCell = ref(null);
12196
12194
  const isEditing = ({ row, column }) => {
@@ -12321,7 +12319,12 @@ const gridEditableComponent = defineComponent({
12321
12319
  props: ZdGridEditableProps$1,
12322
12320
  inheritAttrs: false,
12323
12321
  setup(props, ctx) {
12324
- const { instance, root: root2 } = useCreateInstance(props, ctx, GridEditable);
12322
+ const { instance, root: root2 } = useCreateInstance(
12323
+ props,
12324
+ ctx,
12325
+ GridEditable,
12326
+ ZdGridEditableProps$1
12327
+ );
12325
12328
  const gridEditableScope = useGridEditableInstance$1({ instance, root: root2 });
12326
12329
  return {
12327
12330
  ...gridEditableScope,
@@ -12332,7 +12335,7 @@ const gridEditableComponent = defineComponent({
12332
12335
  });
12333
12336
  const _hoisted_1$w = ["colspan"];
12334
12337
  const _hoisted_2$g = ["colspan"];
12335
- function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
12338
+ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
12336
12339
  const _component_zd_grid_toolbar = resolveComponent("zd-grid-toolbar");
12337
12340
  const _component_zd_grid_header_row = resolveComponent("zd-grid-header-row");
12338
12341
  const _component_zd_grid_editable_row = resolveComponent("zd-grid-editable-row");
@@ -12492,8 +12495,8 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
12492
12495
  [vShow, _ctx.instance.isVisible]
12493
12496
  ]);
12494
12497
  }
12495
- const ZdGridEditable = /* @__PURE__ */ _export_sfc(gridEditableComponent, [["render", _sfc_render$15]]);
12496
- const _sfc_main$r = defineComponent({
12498
+ const ZdGridEditable = /* @__PURE__ */ _export_sfc(gridEditableComponent, [["render", _sfc_render$16]]);
12499
+ const _sfc_main$s = defineComponent({
12497
12500
  props: {
12498
12501
  row: {
12499
12502
  type: Object,
@@ -12644,7 +12647,7 @@ const _hoisted_4$3 = {
12644
12647
  class: "zd-grid__cell-inline-edit"
12645
12648
  };
12646
12649
  const _hoisted_5$3 = { key: 3 };
12647
- function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
12650
+ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
12648
12651
  const _component_v_skeleton_loader = resolveComponent("v-skeleton-loader");
12649
12652
  const _component_v_icon = resolveComponent("v-icon");
12650
12653
  const _component_zd_grid_cell_content = resolveComponent("zd-grid-cell-content");
@@ -12734,8 +12737,8 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
12734
12737
  }, null, 8, ["actions"]))
12735
12738
  ], 46, _hoisted_1$v);
12736
12739
  }
12737
- const ZdGridEditableCell = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$14]]);
12738
- const _sfc_main$q = defineComponent({
12740
+ const ZdGridEditableCell = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$15]]);
12741
+ const _sfc_main$r = defineComponent({
12739
12742
  props: {
12740
12743
  isSelected: {
12741
12744
  type: Boolean,
@@ -12832,7 +12835,7 @@ const _sfc_main$q = defineComponent({
12832
12835
  };
12833
12836
  }
12834
12837
  });
12835
- function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
12838
+ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
12836
12839
  const _component_zd_grid_checkbox = resolveComponent("zd-grid-checkbox");
12837
12840
  const _component_zd_grid_editable_cell = resolveComponent("zd-grid-editable-cell");
12838
12841
  const _component_table_row = resolveComponent("table-row");
@@ -12878,7 +12881,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
12878
12881
  _: 3
12879
12882
  }, 8, ["isSelected", "isCurrentRow"]);
12880
12883
  }
12881
- const ZdGridEditableRow = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$13]]);
12884
+ const ZdGridEditableRow = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$14]]);
12882
12885
  const ZdGridProps = buildProps({
12883
12886
  ...ZdIterableProps,
12884
12887
  cellSelection: {
@@ -12891,7 +12894,8 @@ const ZdGridProps = buildProps({
12891
12894
  },
12892
12895
  disableSelection: {
12893
12896
  type: [String, Function],
12894
- default: void 0
12897
+ default: void 0,
12898
+ watch: false
12895
12899
  },
12896
12900
  dragColumns: {
12897
12901
  type: [Boolean, String],
@@ -12899,7 +12903,8 @@ const ZdGridProps = buildProps({
12899
12903
  },
12900
12904
  errorSlot: {
12901
12905
  type: Array,
12902
- default: () => []
12906
+ default: () => [],
12907
+ watch: false
12903
12908
  },
12904
12909
  fillHeight: {
12905
12910
  type: [Boolean, String],
@@ -12927,7 +12932,8 @@ const ZdGridProps = buildProps({
12927
12932
  }
12928
12933
  ]
12929
12934
  }
12930
- ]
12935
+ ],
12936
+ watch: false
12931
12937
  },
12932
12938
  headerBackground: {
12933
12939
  type: String
@@ -12969,7 +12975,8 @@ const ZdGridProps = buildProps({
12969
12975
  cssClass: "no-data",
12970
12976
  text: "NO_DATA"
12971
12977
  }
12972
- ]
12978
+ ],
12979
+ watch: false
12973
12980
  },
12974
12981
  noDataText: {
12975
12982
  type: String,
@@ -12984,7 +12991,8 @@ const ZdGridProps = buildProps({
12984
12991
  cssClass: "no-result",
12985
12992
  text: "NO_RESULT"
12986
12993
  }
12987
- ]
12994
+ ],
12995
+ watch: false
12988
12996
  },
12989
12997
  noResultsText: {
12990
12998
  type: String,
@@ -13027,7 +13035,8 @@ const ZdGridProps = buildProps({
13027
13035
  component: "ZdSearch",
13028
13036
  cssClass: "zd-grid-search"
13029
13037
  }
13030
- ]
13038
+ ],
13039
+ watch: false
13031
13040
  },
13032
13041
  width: {
13033
13042
  type: [Number, String],
@@ -13042,7 +13051,7 @@ const gridComponent = defineComponent({
13042
13051
  props: ZdGridProps,
13043
13052
  inheritAttrs: false,
13044
13053
  setup(props, ctx) {
13045
- const { instance, root: root2 } = useCreateInstance(props, ctx, Grid);
13054
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Grid, ZdGridProps);
13046
13055
  const gridScope = useGridInstance({ instance, root: root2 });
13047
13056
  const cellClick = ({ row, column, event }) => {
13048
13057
  instance.cellClick(row, column, event, gridScope.rootEl.value);
@@ -13062,13 +13071,14 @@ const gridComponent = defineComponent({
13062
13071
  function useGridInstance({
13063
13072
  instance,
13064
13073
  root: root2,
13065
- renderedData
13074
+ renderedData,
13075
+ isNavigableRow
13066
13076
  }) {
13067
13077
  var _a, _b;
13068
13078
  useWatchUrl(instance);
13069
13079
  const rootEl2 = getRootElement(root2);
13070
13080
  useColumnDrag({ instance, rootEl: rootEl2 });
13071
- useTableNavigation({ instance, rootEl: rootEl2 });
13081
+ useTableNavigation({ instance, rootEl: rootEl2, isNavigableRow });
13072
13082
  const { updateFixedColumns, fixedLeft, fixedRight } = useFixedColumns({ instance, rootEl: rootEl2 });
13073
13083
  const { resizeMouseDownHandler, resizeClickHandler, calcWidth } = useColumnResize({
13074
13084
  instance,
@@ -13154,7 +13164,7 @@ function useGridInstance({
13154
13164
  }
13155
13165
  const _hoisted_1$u = ["colspan"];
13156
13166
  const _hoisted_2$e = ["colspan"];
13157
- function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
13167
+ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
13158
13168
  const _component_zd_grid_toolbar = resolveComponent("zd-grid-toolbar");
13159
13169
  const _component_zd_grid_header_row = resolveComponent("zd-grid-header-row");
13160
13170
  const _component_zd_grid_row = resolveComponent("zd-grid-row");
@@ -13310,8 +13320,8 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
13310
13320
  [vShow, _ctx.instance.isVisible]
13311
13321
  ]);
13312
13322
  }
13313
- const ZdGrid = /* @__PURE__ */ _export_sfc(gridComponent, [["render", _sfc_render$12]]);
13314
- const _sfc_main$p = defineComponent({
13323
+ const ZdGrid = /* @__PURE__ */ _export_sfc(gridComponent, [["render", _sfc_render$13]]);
13324
+ const _sfc_main$q = defineComponent({
13315
13325
  props: {
13316
13326
  actions: {
13317
13327
  type: Array,
@@ -13323,7 +13333,7 @@ const _sfc_main$p = defineComponent({
13323
13333
  }
13324
13334
  });
13325
13335
  const _hoisted_1$t = { class: "zd-grid__action-cell" };
13326
- function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
13336
+ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
13327
13337
  return openBlock(), createElementBlock("div", _hoisted_1$t, [
13328
13338
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.actions, (child) => {
13329
13339
  return openBlock(), createBlock(resolveDynamicComponent(child.component), mergeProps({
@@ -13332,8 +13342,8 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
13332
13342
  }), 128))
13333
13343
  ]);
13334
13344
  }
13335
- const ZdGridAction = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$11]]);
13336
- const _sfc_main$o = defineComponent({
13345
+ const ZdGridAction = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$12]]);
13346
+ const _sfc_main$p = defineComponent({
13337
13347
  props: {
13338
13348
  row: {
13339
13349
  type: Object,
@@ -13391,7 +13401,7 @@ const _sfc_main$o = defineComponent({
13391
13401
  }
13392
13402
  });
13393
13403
  const _hoisted_1$s = ["tabindex"];
13394
- function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
13404
+ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
13395
13405
  const _component_v_skeleton_loader = resolveComponent("v-skeleton-loader");
13396
13406
  const _component_zd_grid_cell_content = resolveComponent("zd-grid-cell-content");
13397
13407
  const _component_zd_grid_action = resolveComponent("zd-grid-action");
@@ -13433,8 +13443,8 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
13433
13443
  }, null, 8, ["actions"]))
13434
13444
  ], 46, _hoisted_1$s);
13435
13445
  }
13436
- const ZdGridCell = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$10]]);
13437
- const _sfc_main$n = defineComponent({
13446
+ const ZdGridCell = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$11]]);
13447
+ const _sfc_main$o = defineComponent({
13438
13448
  props: {
13439
13449
  column: {
13440
13450
  type: Object,
@@ -13494,33 +13504,29 @@ const _sfc_main$n = defineComponent({
13494
13504
  };
13495
13505
  }
13496
13506
  });
13497
- function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
13498
- const _component_zd_tooltip_overflow = resolveComponent("zd-tooltip-overflow");
13499
- return openBlock(), createBlock(_component_zd_tooltip_overflow, {
13500
- overflow: _ctx.column.overflow,
13501
- value: _ctx.value,
13502
- classes: [
13507
+ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
13508
+ const _directive_tooltip_overflow = resolveDirective("tooltip-overflow");
13509
+ return withDirectives((openBlock(), createElementBlock("span", {
13510
+ class: normalizeClass([
13503
13511
  "zd-grid__cell-content",
13504
13512
  ..._ctx.cssClass
13505
- ],
13506
- styles: [{
13507
- ..._ctx.cssStyle,
13508
- width: _ctx.width
13509
- }]
13510
- }, {
13511
- default: withCtx(() => [
13512
- renderSlot(_ctx.$slots, "default", {
13513
- value: _ctx.value,
13514
- formattedValue: _ctx.formattedValue
13515
- }, () => [
13516
- createTextVNode(toDisplayString(_ctx.value), 1)
13517
- ])
13518
13513
  ]),
13519
- _: 3
13520
- }, 8, ["overflow", "value", "classes", "styles"]);
13514
+ style: normalizeStyle([{
13515
+ width: _ctx.width
13516
+ }])
13517
+ }, [
13518
+ renderSlot(_ctx.$slots, "default", {
13519
+ value: _ctx.value,
13520
+ formattedValue: _ctx.formattedValue
13521
+ }, () => [
13522
+ createTextVNode(toDisplayString(_ctx.value), 1)
13523
+ ])
13524
+ ], 6)), [
13525
+ [_directive_tooltip_overflow, _ctx.value]
13526
+ ]);
13521
13527
  }
13522
- const ZdGridCellContent = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$$]]);
13523
- const _sfc_main$m = defineComponent({
13528
+ const ZdGridCellContent = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$10]]);
13529
+ const _sfc_main$n = defineComponent({
13524
13530
  props: {
13525
13531
  cellSelection: {
13526
13532
  type: Boolean,
@@ -13558,7 +13564,7 @@ const _sfc_main$m = defineComponent({
13558
13564
  }
13559
13565
  });
13560
13566
  const _hoisted_1$r = ["tabindex"];
13561
- function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
13567
+ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
13562
13568
  const _component_v_checkbox = resolveComponent("v-checkbox");
13563
13569
  return openBlock(), createElementBlock("td", {
13564
13570
  tabindex: _ctx.cellSelection ? 0 : "",
@@ -13587,8 +13593,8 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
13587
13593
  }, null, 8, ["disabled", "true-icon", "false-icon", "indeterminate-icon", "model-value", "indeterminate", "onClick"])
13588
13594
  ], 42, _hoisted_1$r);
13589
13595
  }
13590
- const ZdGridCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$_]]);
13591
- const _sfc_main$l = defineComponent({
13596
+ const ZdGridCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$$]]);
13597
+ const _sfc_main$m = defineComponent({
13592
13598
  props: {
13593
13599
  action: {
13594
13600
  type: Boolean,
@@ -13656,12 +13662,12 @@ const _sfc_main$l = defineComponent({
13656
13662
  }
13657
13663
  });
13658
13664
  const _hoisted_1$q = { class: "zd-grid__header-name" };
13659
- function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
13665
+ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
13660
13666
  const _component_v_spacer = resolveComponent("v-spacer");
13661
13667
  const _component_zd_grid_sort = resolveComponent("zd-grid-sort");
13662
- const _component_zd_tooltip_overflow = resolveComponent("zd-tooltip-overflow");
13663
13668
  const _component_zd_grid_helper = resolveComponent("zd-grid-helper");
13664
13669
  const _component_zd_grid_header_icon = resolveComponent("zd-grid-header-icon");
13670
+ const _directive_tooltip_overflow = resolveDirective("tooltip-overflow");
13665
13671
  return openBlock(), createElementBlock("span", {
13666
13672
  ref: "headerCell",
13667
13673
  class: normalizeClass([
@@ -13686,20 +13692,20 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
13686
13692
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.click($event))
13687
13693
  }, null, 8, ["orderIndex", "icon", "hidden"])) : createCommentVNode("", true)
13688
13694
  ], 64)) : createCommentVNode("", true),
13689
- createVNode(_component_zd_tooltip_overflow, {
13690
- overflow: _ctx.overflow,
13691
- value: _ctx.label,
13692
- classes: [
13693
- "zd-grid__header-name"
13694
- ],
13695
+ withDirectives((openBlock(), createElementBlock("span", {
13696
+ class: "zd-grid__header-name",
13695
13697
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.click($event))
13696
- }, {
13697
- default: withCtx(() => [
13698
- createTextVNode(toDisplayString(_ctx.$t(_ctx.label)) + " ", 1),
13699
- renderSlot(_ctx.$slots, "label")
13700
- ]),
13701
- _: 3
13702
- }, 8, ["overflow", "value"]),
13698
+ }, [
13699
+ createTextVNode(toDisplayString(_ctx.$t(_ctx.label)) + " ", 1),
13700
+ renderSlot(_ctx.$slots, "label")
13701
+ ])), [
13702
+ [
13703
+ _directive_tooltip_overflow,
13704
+ _ctx.label,
13705
+ void 0,
13706
+ { ellipsis: true }
13707
+ ]
13708
+ ]),
13703
13709
  _ctx.helperText ? (openBlock(), createBlock(_component_zd_grid_helper, {
13704
13710
  key: 1,
13705
13711
  "helper-text": _ctx.helperText
@@ -13734,8 +13740,8 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
13734
13740
  }, null, 8, ["hidden"])) : createCommentVNode("", true)
13735
13741
  ], 6);
13736
13742
  }
13737
- const ZdGridColumnHeader = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$Z]]);
13738
- const _sfc_main$k = defineComponent({
13743
+ const ZdGridColumnHeader = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$_]]);
13744
+ const _sfc_main$l = defineComponent({
13739
13745
  props: {
13740
13746
  icon: {
13741
13747
  type: String,
@@ -13765,7 +13771,7 @@ const _sfc_main$k = defineComponent({
13765
13771
  return { click, mousedown };
13766
13772
  }
13767
13773
  });
13768
- function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
13774
+ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
13769
13775
  const _component_v_icon = resolveComponent("v-icon");
13770
13776
  return openBlock(), createElementBlock("span", {
13771
13777
  class: normalizeClass([
@@ -13783,8 +13789,8 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
13783
13789
  }, null, 8, ["color", "icon"])
13784
13790
  ], 34);
13785
13791
  }
13786
- const ZdGridHeaderIcon = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$Y]]);
13787
- const _sfc_main$j = defineComponent({
13792
+ const ZdGridHeaderIcon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$Z]]);
13793
+ const _sfc_main$k = defineComponent({
13788
13794
  props: {
13789
13795
  selectable: {
13790
13796
  type: Boolean,
@@ -13888,7 +13894,7 @@ const _sfc_main$j = defineComponent({
13888
13894
  }
13889
13895
  });
13890
13896
  const _hoisted_1$p = ["column-name", "index"];
13891
- function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
13897
+ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
13892
13898
  const _component_v_checkbox = resolveComponent("v-checkbox");
13893
13899
  const _component_zd_grid_column_header = resolveComponent("zd-grid-column-header");
13894
13900
  const _component_v_hover = resolveComponent("v-hover");
@@ -13975,8 +13981,8 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
13975
13981
  }), 128))
13976
13982
  ]);
13977
13983
  }
13978
- const ZdGridHeaderRow = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$X]]);
13979
- const _sfc_main$i = defineComponent({
13984
+ const ZdGridHeaderRow = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$Y]]);
13985
+ const _sfc_main$j = defineComponent({
13980
13986
  props: {
13981
13987
  orderIndex: {
13982
13988
  type: Number,
@@ -14011,7 +14017,7 @@ const _hoisted_1$o = {
14011
14017
  key: 0,
14012
14018
  class: "zd-grid__sort-order"
14013
14019
  };
14014
- function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
14020
+ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
14015
14021
  const _component_v_icon = resolveComponent("v-icon");
14016
14022
  return openBlock(), createElementBlock("span", {
14017
14023
  class: normalizeClass([
@@ -14031,8 +14037,8 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
14031
14037
  _ctx.orderIndex >= 0 ? (openBlock(), createElementBlock("span", _hoisted_1$o, toDisplayString(_ctx.orderIndex + 1), 1)) : createCommentVNode("", true)
14032
14038
  ], 2);
14033
14039
  }
14034
- const ZdGridSort = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$W]]);
14035
- const _sfc_main$h = defineComponent({
14040
+ const ZdGridSort = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$X]]);
14041
+ const _sfc_main$i = defineComponent({
14036
14042
  props: {},
14037
14043
  setup(props) {
14038
14044
  var _a;
@@ -14047,7 +14053,7 @@ const _sfc_main$h = defineComponent({
14047
14053
  }
14048
14054
  });
14049
14055
  const _hoisted_1$n = ["id"];
14050
- function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
14056
+ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
14051
14057
  return _ctx.instance.footerSlot.length || _ctx.hasDefaultSlot ? (openBlock(), createElementBlock("div", {
14052
14058
  key: 0,
14053
14059
  id: `${_ctx.instance.name}-footer`,
@@ -14062,7 +14068,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
14062
14068
  renderSlot(_ctx.$slots, "default")
14063
14069
  ], 8, _hoisted_1$n)) : createCommentVNode("", true);
14064
14070
  }
14065
- const ZdGridFooter = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$V]]);
14071
+ const ZdGridFooter = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$W]]);
14066
14072
  const gridHelper = defineComponent({
14067
14073
  props: {
14068
14074
  helperText: {
@@ -14073,7 +14079,7 @@ const gridHelper = defineComponent({
14073
14079
  },
14074
14080
  inheritAttrs: false
14075
14081
  });
14076
- function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
14082
+ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
14077
14083
  const _component_zd_grid_header_icon = resolveComponent("zd-grid-header-icon");
14078
14084
  const _component_v_tooltip = resolveComponent("v-tooltip");
14079
14085
  return openBlock(), createBlock(_component_v_tooltip, {
@@ -14090,8 +14096,8 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
14090
14096
  _: 1
14091
14097
  }, 8, ["text"]);
14092
14098
  }
14093
- const ZdGridHelper = /* @__PURE__ */ _export_sfc(gridHelper, [["render", _sfc_render$U]]);
14094
- const _sfc_main$g = defineComponent({
14099
+ const ZdGridHelper = /* @__PURE__ */ _export_sfc(gridHelper, [["render", _sfc_render$V]]);
14100
+ const _sfc_main$h = defineComponent({
14095
14101
  props: {
14096
14102
  isSelected: {
14097
14103
  type: Boolean
@@ -14115,7 +14121,7 @@ const _sfc_main$g = defineComponent({
14115
14121
  };
14116
14122
  }
14117
14123
  });
14118
- function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
14124
+ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
14119
14125
  return openBlock(), createElementBlock("tr", {
14120
14126
  class: normalizeClass([
14121
14127
  "zd-grid__row",
@@ -14130,8 +14136,8 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
14130
14136
  renderSlot(_ctx.$slots, "default")
14131
14137
  ], 2);
14132
14138
  }
14133
- const TableRow = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$T]]);
14134
- const _sfc_main$f = defineComponent({
14139
+ const TableRow = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$U]]);
14140
+ const _sfc_main$g = defineComponent({
14135
14141
  props: {
14136
14142
  isSelected: {
14137
14143
  type: Boolean,
@@ -14200,7 +14206,7 @@ const _sfc_main$f = defineComponent({
14200
14206
  };
14201
14207
  }
14202
14208
  });
14203
- function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
14209
+ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
14204
14210
  const _component_zd_grid_checkbox = resolveComponent("zd-grid-checkbox");
14205
14211
  const _component_zd_grid_cell = resolveComponent("zd-grid-cell");
14206
14212
  const _component_table_row = resolveComponent("table-row");
@@ -14221,7 +14227,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
14221
14227
  }, null, 8, ["disabled", "isSelected", "cellSelection", "isCurrent"])) : createCommentVNode("", true),
14222
14228
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (column, index2, ___, _cached) => {
14223
14229
  const _memo = [_ctx.row, column, _ctx.fixedLeft, _ctx.fixedRight, _ctx.cellSelection, _ctx.isCurrent({ row: _ctx.row, column })];
14224
- if (_cached && _cached.key === column.name && isMemoSame(_cached, _memo)) return _cached;
14230
+ if (_cached && _cached.el && _cached.key === column.name && isMemoSame(_cached, _memo)) return _cached;
14225
14231
  const _item = (openBlock(), createBlock(_component_zd_grid_cell, {
14226
14232
  key: column.name,
14227
14233
  row: _ctx.row,
@@ -14254,8 +14260,8 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
14254
14260
  _: 3
14255
14261
  }, 8, ["isSelected", "isCurrentRow"]);
14256
14262
  }
14257
- const ZdGridRow = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$S]]);
14258
- const _sfc_main$e = defineComponent({
14263
+ const ZdGridRow = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$T]]);
14264
+ const _sfc_main$f = defineComponent({
14259
14265
  props: {},
14260
14266
  setup() {
14261
14267
  var _a;
@@ -14270,7 +14276,7 @@ const _sfc_main$e = defineComponent({
14270
14276
  });
14271
14277
  const _hoisted_1$m = ["id"];
14272
14278
  const _hoisted_2$d = { class: "zd-grid__toolbar-content" };
14273
- function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
14279
+ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
14274
14280
  return _ctx.instance.toolbarSlot.length || _ctx.hasDefaultSlot ? (openBlock(), createElementBlock("div", {
14275
14281
  key: 0,
14276
14282
  id: _ctx.instance.name + "-top",
@@ -14288,7 +14294,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
14288
14294
  ])
14289
14295
  ], 8, _hoisted_1$m)) : createCommentVNode("", true);
14290
14296
  }
14291
- const ZdGridToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$R]]);
14297
+ const ZdGridToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$S]]);
14292
14298
  const ZdHeaderProps$1 = buildProps({
14293
14299
  ...ZdComponentRenderProps,
14294
14300
  ...HeightProps,
@@ -14303,7 +14309,8 @@ const ZdHeaderProps$1 = buildProps({
14303
14309
  },
14304
14310
  centerSlot: {
14305
14311
  type: Array,
14306
- default: () => []
14312
+ default: () => [],
14313
+ watch: false
14307
14314
  },
14308
14315
  color: {
14309
14316
  type: String,
@@ -14323,7 +14330,8 @@ const ZdHeaderProps$1 = buildProps({
14323
14330
  },
14324
14331
  leftSlot: {
14325
14332
  type: Array,
14326
- default: () => []
14333
+ default: () => [],
14334
+ watch: false
14327
14335
  },
14328
14336
  padless: {
14329
14337
  type: [Boolean, String],
@@ -14331,7 +14339,8 @@ const ZdHeaderProps$1 = buildProps({
14331
14339
  },
14332
14340
  rightSlot: {
14333
14341
  type: Array,
14334
- default: () => []
14342
+ default: () => [],
14343
+ watch: false
14335
14344
  },
14336
14345
  // Zeedhi 3.0
14337
14346
  image: {
@@ -14347,7 +14356,7 @@ const headerComponent = defineComponent({
14347
14356
  props: ZdHeaderProps$1,
14348
14357
  inheritAttrs: false,
14349
14358
  setup(props, ctx) {
14350
- const { instance, root: root2 } = useCreateInstance(props, ctx, Header);
14359
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Header, ZdHeaderProps$1);
14351
14360
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
14352
14361
  const centerSlot = ref(null);
14353
14362
  const getSlotsMinHeight = (height) => {
@@ -14387,7 +14396,7 @@ const _hoisted_3$5 = {
14387
14396
  key: 2,
14388
14397
  class: "zd-header-slot-right"
14389
14398
  };
14390
- function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
14399
+ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
14391
14400
  const _component_v_col = resolveComponent("v-col");
14392
14401
  return withDirectives((openBlock(), createBlock(resolveDynamicComponent(_ctx.instance.app ? "v-app-bar" : "v-toolbar"), {
14393
14402
  ref: "root",
@@ -14484,7 +14493,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
14484
14493
  [vShow, _ctx.instance.isVisible]
14485
14494
  ]);
14486
14495
  }
14487
- const ZdHeader = /* @__PURE__ */ _export_sfc(headerComponent, [["render", _sfc_render$Q]]);
14496
+ const ZdHeader = /* @__PURE__ */ _export_sfc(headerComponent, [["render", _sfc_render$R]]);
14488
14497
  const ZdIconProps$1 = buildProps({
14489
14498
  ...ZdComponentRenderProps,
14490
14499
  color: {
@@ -14531,7 +14540,7 @@ const iconComponent = defineComponent({
14531
14540
  props: ZdIconProps$1,
14532
14541
  inheritAttrs: false,
14533
14542
  setup(props, ctx) {
14534
- const { instance, root: root2 } = useCreateInstance(props, ctx, Icon$1);
14543
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Icon$1, ZdIconProps$1);
14535
14544
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
14536
14545
  return {
14537
14546
  instance,
@@ -14542,7 +14551,7 @@ const iconComponent = defineComponent({
14542
14551
  };
14543
14552
  }
14544
14553
  });
14545
- function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
14554
+ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
14546
14555
  const _component_v_icon = resolveComponent("v-icon");
14547
14556
  return withDirectives((openBlock(), createBlock(_component_v_icon, mergeProps({
14548
14557
  id: _ctx.instance.name,
@@ -14571,7 +14580,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
14571
14580
  [vShow, _ctx.instance.isVisible]
14572
14581
  ]);
14573
14582
  }
14574
- const ZdIcon = /* @__PURE__ */ _export_sfc(iconComponent, [["render", _sfc_render$P]]);
14583
+ const ZdIcon = /* @__PURE__ */ _export_sfc(iconComponent, [["render", _sfc_render$Q]]);
14575
14584
  const ZdImageProps$1 = buildProps({
14576
14585
  ...ZdComponentProps,
14577
14586
  ...HeightProps,
@@ -14601,7 +14610,7 @@ const imageComponent = defineComponent({
14601
14610
  props: ZdImageProps$1,
14602
14611
  inheritAttrs: false,
14603
14612
  setup(props, ctx) {
14604
- const { instance, root: root2 } = useCreateInstance(props, ctx, Image);
14613
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Image, ZdImageProps$1);
14605
14614
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
14606
14615
  return {
14607
14616
  instance,
@@ -14615,7 +14624,7 @@ const imageComponent = defineComponent({
14615
14624
  }
14616
14625
  });
14617
14626
  const _hoisted_1$k = ["id", "name"];
14618
- function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
14627
+ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
14619
14628
  const _component_zd_text = resolveComponent("zd-text");
14620
14629
  return withDirectives((openBlock(), createElementBlock("span", {
14621
14630
  id: _ctx.instance.name,
@@ -14667,7 +14676,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
14667
14676
  [vShow, _ctx.instance.isVisible]
14668
14677
  ]);
14669
14678
  }
14670
- const ZdImage = /* @__PURE__ */ _export_sfc(imageComponent, [["render", _sfc_render$O]]);
14679
+ const ZdImage = /* @__PURE__ */ _export_sfc(imageComponent, [["render", _sfc_render$P]]);
14671
14680
  const ZdIncrementProps$1 = buildProps({
14672
14681
  ...ZdNumberInputProps$1,
14673
14682
  maxValue: {
@@ -14683,12 +14692,12 @@ const ZdIncrementProps$1 = buildProps({
14683
14692
  default: 1
14684
14693
  }
14685
14694
  });
14686
- const _sfc_main$d = defineComponent({
14695
+ const _sfc_main$e = defineComponent({
14687
14696
  name: "ZdIncrement",
14688
14697
  props: ZdIncrementProps$1,
14689
14698
  inheritAttrs: false,
14690
14699
  setup(props, ctx) {
14691
- const { instance, root: root2 } = useCreateInstance(props, ctx, Increment);
14700
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Increment, ZdIncrementProps$1);
14692
14701
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
14693
14702
  return {
14694
14703
  instance,
@@ -14701,7 +14710,7 @@ const _sfc_main$d = defineComponent({
14701
14710
  };
14702
14711
  }
14703
14712
  });
14704
- function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
14713
+ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
14705
14714
  const _component_zd_number_input = resolveComponent("zd-number-input");
14706
14715
  return openBlock(), createBlock(_component_zd_number_input, {
14707
14716
  id: _ctx.instance.name,
@@ -14711,23 +14720,26 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
14711
14720
  "instance-object": _ctx.instance
14712
14721
  }, null, 8, ["id", "instance-object"]);
14713
14722
  }
14714
- const ZdIncrement = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$N]]);
14723
+ const ZdIncrement = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$O]]);
14715
14724
  const ZdIterableComponentRenderProps = buildProps({
14716
14725
  ...ZdIterableProps,
14717
14726
  footerSlot: {
14718
14727
  type: Array,
14719
14728
  default() {
14720
14729
  return [];
14721
- }
14730
+ },
14731
+ watch: false
14722
14732
  },
14723
14733
  toolbarSlot: {
14724
14734
  type: Array,
14725
14735
  default() {
14726
14736
  return [];
14727
- }
14737
+ },
14738
+ watch: false
14728
14739
  },
14729
14740
  componentMetadata: {
14730
- type: [Object, String]
14741
+ type: [Object, String],
14742
+ watch: false
14731
14743
  },
14732
14744
  rowPropName: {
14733
14745
  type: String,
@@ -14737,7 +14749,8 @@ const ZdIterableComponentRenderProps = buildProps({
14737
14749
  type: Array,
14738
14750
  default() {
14739
14751
  return [];
14740
- }
14752
+ },
14753
+ watch: false
14741
14754
  },
14742
14755
  noDataSlot: {
14743
14756
  type: Array,
@@ -14748,7 +14761,8 @@ const ZdIterableComponentRenderProps = buildProps({
14748
14761
  cssClass: "no-data",
14749
14762
  text: "NO_DATA"
14750
14763
  }
14751
- ]
14764
+ ],
14765
+ watch: false
14752
14766
  },
14753
14767
  noResultSlot: {
14754
14768
  type: Array,
@@ -14759,7 +14773,8 @@ const ZdIterableComponentRenderProps = buildProps({
14759
14773
  cssClass: "no-result",
14760
14774
  text: "NO_RESULT"
14761
14775
  }
14762
- ]
14776
+ ],
14777
+ watch: false
14763
14778
  },
14764
14779
  height: {
14765
14780
  type: [Number, String],
@@ -14794,7 +14809,12 @@ const iterableComponentRender = defineComponent({
14794
14809
  props: ZdIterableComponentRenderProps,
14795
14810
  inheritAttrs: false,
14796
14811
  setup(props, ctx) {
14797
- const { instance, root: root2 } = useCreateInstance(props, ctx, IterableComponentRender);
14812
+ const { instance, root: root2 } = useCreateInstance(
14813
+ props,
14814
+ ctx,
14815
+ IterableComponentRender,
14816
+ ZdIterableComponentRenderProps
14817
+ );
14798
14818
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
14799
14819
  onMounted(() => {
14800
14820
  var _a;
@@ -14830,7 +14850,7 @@ const _hoisted_7$2 = {
14830
14850
  key: 1,
14831
14851
  class: "zd-iterable-footer"
14832
14852
  };
14833
- function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
14853
+ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
14834
14854
  const _component_v_progress_circular = resolveComponent("v-progress-circular");
14835
14855
  return _ctx.instance.isVisible ? (openBlock(), createElementBlock("div", {
14836
14856
  key: 0,
@@ -14915,8 +14935,8 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
14915
14935
  ])) : createCommentVNode("", true)
14916
14936
  ], 14, _hoisted_1$j)) : createCommentVNode("", true);
14917
14937
  }
14918
- const ZdIterableComponentRender = /* @__PURE__ */ _export_sfc(iterableComponentRender, [["render", _sfc_render$M]]);
14919
- const _sfc_main$c = defineComponent({
14938
+ const ZdIterableComponentRender = /* @__PURE__ */ _export_sfc(iterableComponentRender, [["render", _sfc_render$N]]);
14939
+ const _sfc_main$d = defineComponent({
14920
14940
  props: {},
14921
14941
  setup(props) {
14922
14942
  var _a, _b, _c;
@@ -14939,7 +14959,7 @@ const _hoisted_2$a = {
14939
14959
  key: 1,
14940
14960
  class: "error--text"
14941
14961
  };
14942
- function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
14962
+ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
14943
14963
  return openBlock(), createElementBlock("div", {
14944
14964
  id: _ctx.instance.name
14945
14965
  }, [
@@ -14973,7 +14993,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
14973
14993
  ], 64)) : createCommentVNode("", true)
14974
14994
  ], 8, _hoisted_1$i);
14975
14995
  }
14976
- const ZdIterableNoData = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$L]]);
14996
+ const ZdIterableNoData = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$M]]);
14977
14997
  const ZdIterableColumnsButtonProps$1 = {
14978
14998
  ...ZdButtonProps,
14979
14999
  iterableComponentName: {
@@ -14996,7 +15016,12 @@ const iterableColumnsButton = defineComponent({
14996
15016
  name: "ZdIterableColumnsButton",
14997
15017
  props: ZdIterableColumnsButtonProps$1,
14998
15018
  setup(props, ctx) {
14999
- const { instance } = useCreateInstance(props, ctx, IterableColumnsButton);
15019
+ const { instance } = useCreateInstance(
15020
+ props,
15021
+ ctx,
15022
+ IterableColumnsButton,
15023
+ ZdIterableColumnsButtonProps$1
15024
+ );
15000
15025
  const getEvents = (on2) => {
15001
15026
  const events = { ...instance.events };
15002
15027
  Object.keys(on2).forEach((eventName) => {
@@ -15016,7 +15041,7 @@ const iterableColumnsButton = defineComponent({
15016
15041
  };
15017
15042
  }
15018
15043
  });
15019
- function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
15044
+ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
15020
15045
  const _component_zd_activator_wrapper = resolveComponent("zd-activator-wrapper");
15021
15046
  const _component_zd_checkbox = resolveComponent("zd-checkbox");
15022
15047
  const _component_v_list_item = resolveComponent("v-list-item");
@@ -15067,7 +15092,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
15067
15092
  _: 1
15068
15093
  }, 8, ["id", "class", "style"]);
15069
15094
  }
15070
- const ZdIterableColumnsButton = /* @__PURE__ */ _export_sfc(iterableColumnsButton, [["render", _sfc_render$K]]);
15095
+ const ZdIterableColumnsButton = /* @__PURE__ */ _export_sfc(iterableColumnsButton, [["render", _sfc_render$L]]);
15071
15096
  const ZdIterablePageInfoProps = {
15072
15097
  ...ZdComponentRenderProps,
15073
15098
  iterableComponentName: {
@@ -15075,18 +15100,18 @@ const ZdIterablePageInfoProps = {
15075
15100
  }
15076
15101
  // Zeedhi 3.0
15077
15102
  };
15078
- const _sfc_main$b = defineComponent({
15103
+ const _sfc_main$c = defineComponent({
15079
15104
  props: ZdIterablePageInfoProps,
15080
15105
  inheritAttrs: false,
15081
15106
  setup(props, ctx) {
15082
- const { instance } = useCreateInstance(props, ctx, IterablePageInfo);
15107
+ const { instance } = useCreateInstance(props, ctx, IterablePageInfo, ZdIterablePageInfoProps);
15083
15108
  return {
15084
15109
  instance
15085
15110
  };
15086
15111
  }
15087
15112
  });
15088
15113
  const _hoisted_1$h = ["id"];
15089
- function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
15114
+ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
15090
15115
  return withDirectives((openBlock(), createElementBlock("span", {
15091
15116
  id: _ctx.instance.name,
15092
15117
  class: normalizeClass([
@@ -15097,7 +15122,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
15097
15122
  [vShow, _ctx.instance.isVisible]
15098
15123
  ]);
15099
15124
  }
15100
- const ZdIterablePageInfo = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$J]]);
15125
+ const ZdIterablePageInfo = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$K]]);
15101
15126
  const ZdSelectProps$1 = buildProps({
15102
15127
  ...ZdTextInputProps$1,
15103
15128
  appendIcon: {
@@ -15146,7 +15171,8 @@ const ZdSelectProps$1 = buildProps({
15146
15171
  },
15147
15172
  datasource: {
15148
15173
  type: Object,
15149
- default: () => ({})
15174
+ default: () => ({}),
15175
+ watch: false
15150
15176
  },
15151
15177
  value: {
15152
15178
  type: [String, Number, Object],
@@ -15162,11 +15188,13 @@ const ZdSelectProps$1 = buildProps({
15162
15188
  },
15163
15189
  itemAfterSlot: {
15164
15190
  type: Array,
15165
- default: () => []
15191
+ default: () => [],
15192
+ watch: false
15166
15193
  },
15167
15194
  itemBeforeSlot: {
15168
15195
  type: Array,
15169
- default: () => []
15196
+ default: () => [],
15197
+ watch: false
15170
15198
  },
15171
15199
  manualMode: {
15172
15200
  type: [Boolean, String],
@@ -15190,7 +15218,12 @@ defineComponent({
15190
15218
  props: ZdSelectProps$1,
15191
15219
  inheritAttrs: false,
15192
15220
  setup(props, ctx) {
15193
- const { instance, root: root2 } = useCreateInputInstance(props, ctx, Select);
15221
+ const { instance, root: root2 } = useCreateInputInstance(
15222
+ props,
15223
+ ctx,
15224
+ Select,
15225
+ ZdSelectProps$1
15226
+ );
15194
15227
  const selectScope = useSelect$1(instance, ctx, root2);
15195
15228
  return {
15196
15229
  ...selectScope
@@ -15205,7 +15238,7 @@ function useSelect$1(instance, ctx, root2) {
15205
15238
  const hasItemBeforeSlot = !!slots.itemBeforeSlot;
15206
15239
  const hasItemAfterSlot = !!slots.itemAfterSlot;
15207
15240
  const items = computed(() => {
15208
- const data2 = instance.items;
15241
+ const data2 = instance.items || [];
15209
15242
  const disabledValues = instance.disabledItems.map((item) => {
15210
15243
  if (item && typeof item === "object") {
15211
15244
  return item[instance.dataValue];
@@ -15228,11 +15261,11 @@ function useSelect$1(instance, ctx, root2) {
15228
15261
  if (!instance.dataTextDiscrete) {
15229
15262
  return formattedDataText(item);
15230
15263
  }
15231
- const text = selectFormatterFn(item, {
15264
+ const text2 = selectFormatterFn(item, {
15232
15265
  dataText: instance.dataTextDiscrete,
15233
15266
  dataTextSeparator: instance.dataTextSeparator
15234
15267
  });
15235
- return text;
15268
+ return text2;
15236
15269
  };
15237
15270
  const selectChange = (value) => {
15238
15271
  const rootElement = getRootElement(root2);
@@ -15307,15 +15340,16 @@ const ZdIterablePageSizeProps = {
15307
15340
  type: [Boolean, String]
15308
15341
  },
15309
15342
  validations: {
15310
- type: [Object, String]
15343
+ type: [Object, String],
15344
+ watch: false
15311
15345
  }
15312
15346
  // Zeedhi 3.0
15313
15347
  };
15314
- const _sfc_main$a = defineComponent({
15348
+ const _sfc_main$b = defineComponent({
15315
15349
  props: ZdIterablePageSizeProps,
15316
15350
  inheritAttrs: false,
15317
15351
  setup(props, ctx) {
15318
- const { instance } = useCreateInstance(props, ctx, IterablePageSize);
15352
+ const { instance } = useCreateInstance(props, ctx, IterablePageSize, ZdIterablePageSizeProps);
15319
15353
  onMounted(() => {
15320
15354
  const data2 = instance.iterableComponent.pageSizes.map((size) => ({ value: size }));
15321
15355
  instance.updateData(data2).then(() => {
@@ -15330,7 +15364,7 @@ const _sfc_main$a = defineComponent({
15330
15364
  };
15331
15365
  }
15332
15366
  });
15333
- function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
15367
+ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
15334
15368
  const _component_zd_select = resolveComponent("zd-select");
15335
15369
  return openBlock(), createBlock(_component_zd_select, {
15336
15370
  id: _ctx.instance.name,
@@ -15340,8 +15374,8 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
15340
15374
  cssClass: `${_ctx.instance.cssClass} zd-iterable-page-size`
15341
15375
  }, null, 8, ["id", "instance-object", "cssClass"]);
15342
15376
  }
15343
- const ZdIterablePageSize = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$I]]);
15344
- const ZdSearchProps$1 = {
15377
+ const ZdIterablePageSize = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$J]]);
15378
+ const ZdIterablePaginationProps = {
15345
15379
  ...ZdTextInputProps$1,
15346
15380
  iterableComponentName: {
15347
15381
  type: String
@@ -15363,17 +15397,22 @@ const ZdSearchProps$1 = {
15363
15397
  }
15364
15398
  // Zeedhi 3.0
15365
15399
  };
15366
- const _sfc_main$9 = defineComponent({
15367
- props: ZdSearchProps$1,
15400
+ const _sfc_main$a = defineComponent({
15401
+ props: ZdIterablePaginationProps,
15368
15402
  inheritAttrs: false,
15369
15403
  setup(props, ctx) {
15370
- const { instance } = useCreateInstance(props, ctx, IterablePagination);
15404
+ const { instance } = useCreateInstance(
15405
+ props,
15406
+ ctx,
15407
+ IterablePagination,
15408
+ ZdIterablePaginationProps
15409
+ );
15371
15410
  return {
15372
15411
  instance
15373
15412
  };
15374
15413
  }
15375
15414
  });
15376
- function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
15415
+ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
15377
15416
  const _component_v_pagination = resolveComponent("v-pagination");
15378
15417
  return withDirectives((openBlock(), createBlock(_component_v_pagination, {
15379
15418
  id: _ctx.instance.name,
@@ -15398,7 +15437,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
15398
15437
  [vShow, _ctx.instance.isVisible]
15399
15438
  ]);
15400
15439
  }
15401
- const ZdIterablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$H]]);
15440
+ const ZdIterablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$I]]);
15402
15441
  const ZdSearchProps = {
15403
15442
  ...ZdTextInputProps$1,
15404
15443
  iterableComponentName: {
@@ -15426,18 +15465,18 @@ const ZdSearchProps = {
15426
15465
  }
15427
15466
  // Zeedhi 3.0
15428
15467
  };
15429
- const _sfc_main$8 = defineComponent({
15468
+ const _sfc_main$9 = defineComponent({
15430
15469
  props: ZdSearchProps,
15431
15470
  inheritAttrs: false,
15432
15471
  setup(props, ctx) {
15433
- const { instance, root: root2 } = useCreateInstance(props, ctx, Search);
15472
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Search, ZdSearchProps);
15434
15473
  const textInputScope = useTextInput$1(instance, ctx, root2);
15435
15474
  return {
15436
15475
  ...textInputScope
15437
15476
  };
15438
15477
  }
15439
15478
  });
15440
- function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
15479
+ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
15441
15480
  const _component_zd_text_input = resolveComponent("zd-text-input");
15442
15481
  return openBlock(), createBlock(_component_zd_text_input, {
15443
15482
  id: _ctx.instance.name,
@@ -15447,7 +15486,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
15447
15486
  "instance-object": _ctx.instance
15448
15487
  }, null, 8, ["id", "cssClass", "instance-object"]);
15449
15488
  }
15450
- const ZdSearch = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$G]]);
15489
+ const ZdSearch = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$H]]);
15451
15490
  const ZdLayoutProps$1 = buildProps({
15452
15491
  ...ZdComponentProps,
15453
15492
  fullHeight: {
@@ -15471,7 +15510,7 @@ const layoutComponent = defineComponent({
15471
15510
  props: ZdLayoutProps$1,
15472
15511
  inheritAttrs: false,
15473
15512
  setup(props, ctx) {
15474
- const { instance, root: root2 } = useCreateInstance(props, ctx, Layout);
15513
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Layout, ZdLayoutProps$1);
15475
15514
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
15476
15515
  return {
15477
15516
  instance,
@@ -15484,7 +15523,7 @@ const layoutComponent = defineComponent({
15484
15523
  };
15485
15524
  }
15486
15525
  });
15487
- function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15526
+ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
15488
15527
  const _component_v_main = resolveComponent("v-main");
15489
15528
  const _component_v_layout = resolveComponent("v-layout");
15490
15529
  return openBlock(), createBlock(_component_v_layout, {
@@ -15508,7 +15547,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15508
15547
  _: 1
15509
15548
  }, 8, ["name", "full-height", "class"]);
15510
15549
  }
15511
- const ZdLayout = /* @__PURE__ */ _export_sfc(layoutComponent, [["render", _sfc_render$F]]);
15550
+ const ZdLayout = /* @__PURE__ */ _export_sfc(layoutComponent, [["render", _sfc_render$G]]);
15512
15551
  const ZdListProps$1 = buildProps({
15513
15552
  ...ZdComponentRenderProps,
15514
15553
  dense: {
@@ -15569,14 +15608,15 @@ const ZdListProps$1 = buildProps({
15569
15608
  },
15570
15609
  items: {
15571
15610
  type: Array,
15572
- default: () => []
15611
+ default: () => [],
15612
+ watch: false
15573
15613
  }
15574
15614
  });
15575
15615
  const listComponent = defineComponent({
15576
15616
  props: ZdListProps$1,
15577
15617
  inheritAttrs: false,
15578
15618
  setup(props, ctx) {
15579
- const { instance, root: root2 } = useCreateInstance(props, ctx, List);
15619
+ const { instance, root: root2 } = useCreateInstance(props, ctx, List, ZdListProps$1);
15580
15620
  const isLastItem = (index2) => {
15581
15621
  return index2 + 1 === instance.items.length;
15582
15622
  };
@@ -15587,7 +15627,7 @@ const listComponent = defineComponent({
15587
15627
  };
15588
15628
  }
15589
15629
  });
15590
- function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
15630
+ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
15591
15631
  const _component_v_divider = resolveComponent("v-divider");
15592
15632
  const _component_v_list = resolveComponent("v-list");
15593
15633
  return withDirectives((openBlock(), createBlock(_component_v_list, {
@@ -15629,7 +15669,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
15629
15669
  [vShow, _ctx.instance.isVisible]
15630
15670
  ]);
15631
15671
  }
15632
- const ZdList = /* @__PURE__ */ _export_sfc(listComponent, [["render", _sfc_render$E]]);
15672
+ const ZdList = /* @__PURE__ */ _export_sfc(listComponent, [["render", _sfc_render$F]]);
15633
15673
  const ZdListItemProps$1 = buildProps({
15634
15674
  ...ZdComponentRenderProps,
15635
15675
  appendIcon: {
@@ -15677,7 +15717,7 @@ defineComponent({
15677
15717
  props: ZdListItemProps$1,
15678
15718
  inheritAttrs: false,
15679
15719
  setup(props, ctx) {
15680
- const { instance, root: root2 } = useCreateInstance(props, ctx, ListItem);
15720
+ const { instance, root: root2 } = useCreateInstance(props, ctx, ListItem, ZdListItemProps$1);
15681
15721
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
15682
15722
  return {
15683
15723
  instance,
@@ -15702,14 +15742,15 @@ const ZdListGroupProps = buildProps({
15702
15742
  },
15703
15743
  items: {
15704
15744
  type: [Array, String],
15705
- default: () => []
15745
+ default: () => [],
15746
+ watch: false
15706
15747
  }
15707
15748
  });
15708
15749
  const listGroupComponent = defineComponent({
15709
15750
  props: ZdListGroupProps,
15710
15751
  inheritAttrs: false,
15711
15752
  setup(props, ctx) {
15712
- const { instance, root: root2 } = useCreateInstance(props, ctx, ListGroup);
15753
+ const { instance, root: root2 } = useCreateInstance(props, ctx, ListGroup, ZdListGroupProps);
15713
15754
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
15714
15755
  return {
15715
15756
  instance,
@@ -15722,7 +15763,7 @@ const listGroupComponent = defineComponent({
15722
15763
  };
15723
15764
  }
15724
15765
  });
15725
- function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
15766
+ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
15726
15767
  const _component_v_icon = resolveComponent("v-icon");
15727
15768
  const _component_v_list_item = resolveComponent("v-list-item");
15728
15769
  const _component_v_list = resolveComponent("v-list");
@@ -15731,7 +15772,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
15731
15772
  ref: "root",
15732
15773
  id: _ctx.instance.name
15733
15774
  }, {
15734
- activator: withCtx(({ props }) => [
15775
+ activator: withCtx(({ props, isOpen }) => [
15735
15776
  createVNode(_component_v_list_item, mergeProps(props, {
15736
15777
  class: "d-flex align-center",
15737
15778
  title: _ctx.instance.title,
@@ -15749,11 +15790,11 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
15749
15790
  _: 1
15750
15791
  })) : createCommentVNode("", true)
15751
15792
  ]),
15752
- append: withCtx(({ isActive }) => [
15793
+ append: withCtx(() => [
15753
15794
  renderSlot(_ctx.$slots, "rightField"),
15754
15795
  _ctx.instance.rightField && !_ctx.$slots.rightField ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.instance.rightField.component), mergeProps({ key: 0 }, _ctx.instance.rightField, { parent: _ctx.instance }), null, 16, ["parent"])) : (openBlock(), createBlock(_component_v_icon, {
15755
15796
  key: 1,
15756
- class: normalizeClass(["ml-2 rotate-icon", { "rotate-180": isActive }])
15797
+ class: normalizeClass(["ml-2 rotate-icon", { "rotate-180": isOpen }])
15757
15798
  }, {
15758
15799
  default: withCtx(() => [
15759
15800
  createTextVNode(toDisplayString(_ctx.$getIcon(_ctx.instance.appendIcon)), 1)
@@ -15761,8 +15802,8 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
15761
15802
  _: 1
15762
15803
  }, 8, ["class"]))
15763
15804
  ]),
15764
- _: 3
15765
- }, 16, ["title", "subtitle"])
15805
+ _: 2
15806
+ }, 1040, ["title", "subtitle"])
15766
15807
  ]),
15767
15808
  default: withCtx(() => [
15768
15809
  createVNode(_component_v_list, {
@@ -15785,7 +15826,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
15785
15826
  _: 3
15786
15827
  }, 8, ["id"]);
15787
15828
  }
15788
- const ZdListGroup = /* @__PURE__ */ _export_sfc(listGroupComponent, [["render", _sfc_render$D]]);
15829
+ const ZdListGroup = /* @__PURE__ */ _export_sfc(listGroupComponent, [["render", _sfc_render$E]]);
15789
15830
  const ZdListItemProps = buildProps({
15790
15831
  ...ZdComponentRenderProps,
15791
15832
  appendIcon: {
@@ -15833,7 +15874,7 @@ const listItemComponent = defineComponent({
15833
15874
  props: ZdListItemProps,
15834
15875
  inheritAttrs: false,
15835
15876
  setup(props, ctx) {
15836
- const { instance, root: root2 } = useCreateInstance(props, ctx, ListItem);
15877
+ const { instance, root: root2 } = useCreateInstance(props, ctx, ListItem, ZdListItemProps);
15837
15878
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
15838
15879
  return {
15839
15880
  instance,
@@ -15854,7 +15895,7 @@ const _hoisted_2$9 = {
15854
15895
  key: 0,
15855
15896
  class: "v-list-item__icon"
15856
15897
  };
15857
- function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
15898
+ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
15858
15899
  const _component_v_icon = resolveComponent("v-icon");
15859
15900
  const _component_v_list_item = resolveComponent("v-list-item");
15860
15901
  return withDirectives((openBlock(), createBlock(_component_v_list_item, {
@@ -15899,7 +15940,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
15899
15940
  [vShow, _ctx.instance.isVisible]
15900
15941
  ]);
15901
15942
  }
15902
- const ZdListItem = /* @__PURE__ */ _export_sfc(listItemComponent, [["render", _sfc_render$C]]);
15943
+ const ZdListItem = /* @__PURE__ */ _export_sfc(listItemComponent, [["render", _sfc_render$D]]);
15903
15944
  const ZdLoadingProps$1 = buildProps({
15904
15945
  ...ZdComponentProps,
15905
15946
  image: {
@@ -15939,7 +15980,7 @@ const loadingComponent = defineComponent({
15939
15980
  props: ZdLoadingProps$1,
15940
15981
  inheritAttrs: false,
15941
15982
  setup(props, ctx) {
15942
- const { root: root2 } = useCreateInstance(props, ctx, Loading);
15983
+ const { root: root2 } = useCreateInstance(props, ctx, Loading, ZdLoadingProps$1);
15943
15984
  const loading = useLoading$1(Loading, props);
15944
15985
  LoadingService.loading = loading;
15945
15986
  const parseToPixel = (number) => {
@@ -15962,10 +16003,10 @@ const _hoisted_1$f = {
15962
16003
  };
15963
16004
  const _hoisted_2$8 = {
15964
16005
  key: 0,
15965
- class: "center-div zd-loading"
16006
+ class: "center-div"
15966
16007
  };
15967
16008
  const _hoisted_3$3 = ["innerHTML"];
15968
- function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
16009
+ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
15969
16010
  const _component_v_progress_circular = resolveComponent("v-progress-circular");
15970
16011
  const _component_v_img = resolveComponent("v-img");
15971
16012
  const _component_v_overlay = resolveComponent("v-overlay");
@@ -15978,7 +16019,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
15978
16019
  persistent: "",
15979
16020
  "z-index": _ctx.zIndex,
15980
16021
  style: normalizeStyle([_ctx.cssStyle]),
15981
- class: normalizeClass([_ctx.cssClass]),
16022
+ class: normalizeClass([_ctx.cssClass, "zd-loading"]),
15982
16023
  theme: _ctx.loading.theme
15983
16024
  }, {
15984
16025
  default: withCtx(() => [
@@ -15997,7 +16038,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
15997
16038
  }, null, 8, ["src", "width"])),
15998
16039
  createElementVNode("div", {
15999
16040
  innerHTML: _ctx.$sanitize(_ctx.$t(_ctx.loading.text)),
16000
- class: "h3 text",
16041
+ class: "zd-loading__text",
16001
16042
  style: normalizeStyle("color: " + _ctx.textColor + ";")
16002
16043
  }, null, 12, _hoisted_3$3)
16003
16044
  ])) : createCommentVNode("", true)
@@ -16006,7 +16047,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
16006
16047
  }, 8, ["id", "opacity", "modelValue", "z-index", "style", "class", "theme"])
16007
16048
  ], 512);
16008
16049
  }
16009
- const ZdLoading = /* @__PURE__ */ _export_sfc(loadingComponent, [["render", _sfc_render$B]]);
16050
+ const ZdLoading = /* @__PURE__ */ _export_sfc(loadingComponent, [["render", _sfc_render$C]]);
16010
16051
  const ZdLoginProps$1 = buildProps({
16011
16052
  ...ZdComponentRenderProps,
16012
16053
  backgroundStyle: {
@@ -16015,7 +16056,8 @@ const ZdLoginProps$1 = buildProps({
16015
16056
  },
16016
16057
  bottomLink: {
16017
16058
  type: Array,
16018
- default: () => []
16059
+ default: () => [],
16060
+ watch: false
16019
16061
  },
16020
16062
  cardWidth: {
16021
16063
  type: [String, Number],
@@ -16055,14 +16097,15 @@ const ZdLoginProps$1 = buildProps({
16055
16097
  },
16056
16098
  socialLogin: {
16057
16099
  type: Array,
16058
- default: () => []
16100
+ default: () => [],
16101
+ watch: false
16059
16102
  }
16060
16103
  });
16061
16104
  const loginComponent = defineComponent({
16062
16105
  props: ZdLoginProps$1,
16063
16106
  inheritAttrs: false,
16064
16107
  setup(props, ctx) {
16065
- const { instance, root: root2 } = useCreateInstance(props, ctx, Login);
16108
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Login, ZdLoginProps$1);
16066
16109
  return {
16067
16110
  instance,
16068
16111
  root: root2
@@ -16084,7 +16127,7 @@ const _hoisted_7$1 = {
16084
16127
  };
16085
16128
  const _hoisted_8 = ["src"];
16086
16129
  const _hoisted_9 = ["src"];
16087
- function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
16130
+ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
16088
16131
  const _component_v_form = resolveComponent("v-form");
16089
16132
  const _component_v_card = resolveComponent("v-card");
16090
16133
  return withDirectives((openBlock(), createElementBlock("div", {
@@ -16190,7 +16233,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
16190
16233
  [vShow, _ctx.instance.isVisible]
16191
16234
  ]);
16192
16235
  }
16193
- const ZdLogin = /* @__PURE__ */ _export_sfc(loginComponent, [["render", _sfc_render$A]]);
16236
+ const ZdLogin = /* @__PURE__ */ _export_sfc(loginComponent, [["render", _sfc_render$B]]);
16194
16237
  const ZdLoginButtonProps$1 = buildProps({
16195
16238
  ...ZdButtonProps,
16196
16239
  authUrl: {
@@ -16206,14 +16249,14 @@ const loginButtonComponent = defineComponent({
16206
16249
  props: ZdLoginButtonProps$1,
16207
16250
  inheritAttrs: false,
16208
16251
  setup(props, ctx) {
16209
- const { instance, root: root2 } = useCreateInstance(props, ctx, LoginButton);
16252
+ const { instance, root: root2 } = useCreateInstance(props, ctx, LoginButton, ZdLoginButtonProps$1);
16210
16253
  return {
16211
16254
  instance,
16212
16255
  root: root2
16213
16256
  };
16214
16257
  }
16215
16258
  });
16216
- function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
16259
+ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
16217
16260
  const _component_zd_button = resolveComponent("zd-button");
16218
16261
  return openBlock(), createBlock(_component_zd_button, {
16219
16262
  id: _ctx.instance.name,
@@ -16223,7 +16266,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
16223
16266
  "instance-object": _ctx.instance
16224
16267
  }, null, 8, ["id", "instance-object"]);
16225
16268
  }
16226
- const ZdLoginButton = /* @__PURE__ */ _export_sfc(loginButtonComponent, [["render", _sfc_render$z]]);
16269
+ const ZdLoginButton = /* @__PURE__ */ _export_sfc(loginButtonComponent, [["render", _sfc_render$A]]);
16227
16270
  const ZdMainProps$1 = buildProps({
16228
16271
  ...ZdComponentProps,
16229
16272
  scrollable: {
@@ -16239,7 +16282,7 @@ const mainComponent = defineComponent({
16239
16282
  props: ZdMainProps$1,
16240
16283
  inheritAttrs: false,
16241
16284
  setup(props, ctx) {
16242
- const { instance, root: root2 } = useCreateInstance(props, ctx, Main);
16285
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Main, ZdMainProps$1);
16243
16286
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
16244
16287
  return {
16245
16288
  instance,
@@ -16252,7 +16295,7 @@ const mainComponent = defineComponent({
16252
16295
  };
16253
16296
  }
16254
16297
  });
16255
- function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
16298
+ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
16256
16299
  const _component_v_main = resolveComponent("v-main");
16257
16300
  return openBlock(), createBlock(_component_v_main, {
16258
16301
  name: _ctx.instance.name,
@@ -16270,7 +16313,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
16270
16313
  _: 1
16271
16314
  }, 8, ["name", "scrollable", "style"]);
16272
16315
  }
16273
- const ZdMain = /* @__PURE__ */ _export_sfc(mainComponent, [["render", _sfc_render$y]]);
16316
+ const ZdMain = /* @__PURE__ */ _export_sfc(mainComponent, [["render", _sfc_render$z]]);
16274
16317
  const ZdMasterDetailProps$1 = buildProps({
16275
16318
  ...ZdComponentRenderProps,
16276
16319
  config: {
@@ -16302,7 +16345,7 @@ const masterDetailComponent = defineComponent({
16302
16345
  props: ZdMasterDetailProps$1,
16303
16346
  inheritAttrs: false,
16304
16347
  setup(props, ctx) {
16305
- const { instance, root: root2 } = useCreateInstance(props, ctx, MasterDetail);
16348
+ const { instance, root: root2 } = useCreateInstance(props, ctx, MasterDetail, ZdMasterDetailProps$1);
16306
16349
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
16307
16350
  return {
16308
16351
  instance,
@@ -16314,7 +16357,7 @@ const masterDetailComponent = defineComponent({
16314
16357
  }
16315
16358
  });
16316
16359
  const _hoisted_1$d = ["id"];
16317
- function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
16360
+ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
16318
16361
  return withDirectives((openBlock(), createElementBlock("div", {
16319
16362
  ref: "root",
16320
16363
  id: _ctx.instance.name,
@@ -16340,7 +16383,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
16340
16383
  [vShow, _ctx.instance.isVisible]
16341
16384
  ]);
16342
16385
  }
16343
- const ZdMasterDetail = /* @__PURE__ */ _export_sfc(masterDetailComponent, [["render", _sfc_render$x]]);
16386
+ const ZdMasterDetail = /* @__PURE__ */ _export_sfc(masterDetailComponent, [["render", _sfc_render$y]]);
16344
16387
  var FUNC_ERROR_TEXT = "Expected a function";
16345
16388
  var NAN = 0 / 0;
16346
16389
  var symbolTag = "[object Symbol]";
@@ -16508,7 +16551,7 @@ const ZdMenuProps$1 = buildProps({
16508
16551
  },
16509
16552
  miniWidth: {
16510
16553
  type: [Number, String],
16511
- default: 58
16554
+ default: 50
16512
16555
  },
16513
16556
  temporary: {
16514
16557
  type: [Boolean, String],
@@ -16536,7 +16579,8 @@ const ZdMenuProps$1 = buildProps({
16536
16579
  },
16537
16580
  topSlot: {
16538
16581
  type: Array,
16539
- default: () => []
16582
+ default: () => [],
16583
+ watch: false
16540
16584
  },
16541
16585
  width: {
16542
16586
  type: [Number, String],
@@ -16552,7 +16596,8 @@ const ZdMenuProps$1 = buildProps({
16552
16596
  },
16553
16597
  items: {
16554
16598
  type: Array,
16555
- default: () => []
16599
+ default: () => [],
16600
+ watch: false
16556
16601
  },
16557
16602
  // Zeedhi 3.x
16558
16603
  permanent: {
@@ -16564,9 +16609,10 @@ const menuComponent = defineComponent({
16564
16609
  props: ZdMenuProps$1,
16565
16610
  inheritAttrs: false,
16566
16611
  setup(props, ctx) {
16567
- const { instance, root: root2 } = useCreateInstance(props, ctx, Menu);
16612
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Menu, ZdMenuProps$1);
16568
16613
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
16569
16614
  const { mobile } = useDisplay();
16615
+ const menuTheme = computed(() => instance.theme);
16570
16616
  const checkMiniVariant = () => {
16571
16617
  return !!(!instance.opened && instance.mini || instance.miniState && !instance.mouseOver && instance.miniState && !mobile || instance.miniState && instance.mini);
16572
16618
  };
@@ -16726,6 +16772,7 @@ const menuComponent = defineComponent({
16726
16772
  mouseleave,
16727
16773
  searchInputProps,
16728
16774
  navigationKeyMapping,
16775
+ menuTheme,
16729
16776
  // methods
16730
16777
  checkMiniVariant,
16731
16778
  showSlotOnHover
@@ -16737,7 +16784,7 @@ const _hoisted_2$6 = {
16737
16784
  key: 0,
16738
16785
  class: "zd-menu-top-slot"
16739
16786
  };
16740
- function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
16787
+ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
16741
16788
  const _component_v_tooltip = resolveComponent("v-tooltip");
16742
16789
  const _component_zd_text_input = resolveComponent("zd-text-input");
16743
16790
  const _component_v_list = resolveComponent("v-list");
@@ -16753,7 +16800,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
16753
16800
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.instance.showTooltip = $event),
16754
16801
  attach: _ctx.instance.tooltipAnchor,
16755
16802
  "content-props": _ctx.instance.tooltipContentProps,
16756
- theme: _ctx.instance.theme,
16803
+ theme: _ctx.menuTheme,
16757
16804
  location: "end",
16758
16805
  class: "zd-menu-tooltip"
16759
16806
  }, {
@@ -16778,9 +16825,9 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
16778
16825
  width: _ctx.instance.width,
16779
16826
  absolute: !!_ctx.instance.absolute,
16780
16827
  rail: _ctx.instance.miniState,
16781
- theme: _ctx.instance.theme,
16828
+ theme: _ctx.menuTheme,
16782
16829
  "rail-width": _ctx.instance.miniWidth,
16783
- "expand-on-hover": true,
16830
+ "expand-on-hover": !_ctx.instance.mini,
16784
16831
  permanent: !!_ctx.instance.permanent,
16785
16832
  "disable-route-watcher": _ctx.instance.disableRouteWatcher
16786
16833
  }), {
@@ -16789,7 +16836,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
16789
16836
  nav: "",
16790
16837
  dense: _ctx.instance.dense,
16791
16838
  expand: "",
16792
- theme: _ctx.instance.theme
16839
+ theme: _ctx.menuTheme
16793
16840
  }, {
16794
16841
  default: withCtx(() => [
16795
16842
  _ctx.instance.topSlot.length || _ctx.instance.showSearch || !!_ctx.$slots.topSlot ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2$6, [
@@ -16823,7 +16870,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
16823
16870
  [vShow, _ctx.instance.isVisible]
16824
16871
  ]);
16825
16872
  }
16826
- const ZdMenu = /* @__PURE__ */ _export_sfc(menuComponent, [["render", _sfc_render$w]]);
16873
+ const ZdMenu = /* @__PURE__ */ _export_sfc(menuComponent, [["render", _sfc_render$x]]);
16827
16874
  const ZdMenuButtonProps$1 = buildProps({
16828
16875
  ...ZdButtonProps,
16829
16876
  menuName: {
@@ -16847,7 +16894,7 @@ const menuButtonComponent = defineComponent({
16847
16894
  props: ZdMenuButtonProps$1,
16848
16895
  inheritAttrs: false,
16849
16896
  setup(props, ctx) {
16850
- const { instance, root: root2 } = useCreateInstance(props, ctx, MenuButton);
16897
+ const { instance, root: root2 } = useCreateInstance(props, ctx, MenuButton, ZdMenuButtonProps$1);
16851
16898
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
16852
16899
  return {
16853
16900
  instance,
@@ -16860,7 +16907,7 @@ const menuButtonComponent = defineComponent({
16860
16907
  };
16861
16908
  }
16862
16909
  });
16863
- function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
16910
+ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
16864
16911
  const _component_zd_button = resolveComponent("zd-button");
16865
16912
  return openBlock(), createBlock(_component_zd_button, {
16866
16913
  id: _ctx.instance.name,
@@ -16870,7 +16917,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
16870
16917
  name: "menu-button"
16871
16918
  }, null, 8, ["id", "instance-object"]);
16872
16919
  }
16873
- const ZdMenuButton = /* @__PURE__ */ _export_sfc(menuButtonComponent, [["render", _sfc_render$v]]);
16920
+ const ZdMenuButton = /* @__PURE__ */ _export_sfc(menuButtonComponent, [["render", _sfc_render$w]]);
16874
16921
  const ZdMenuProps = buildProps({
16875
16922
  ...ZdComponentRenderProps,
16876
16923
  app: {
@@ -16911,7 +16958,7 @@ const ZdMenuProps = buildProps({
16911
16958
  },
16912
16959
  miniWidth: {
16913
16960
  type: [Number, String],
16914
- default: 58
16961
+ default: 50
16915
16962
  },
16916
16963
  temporary: {
16917
16964
  type: [Boolean, String],
@@ -16939,7 +16986,8 @@ const ZdMenuProps = buildProps({
16939
16986
  },
16940
16987
  topSlot: {
16941
16988
  type: Array,
16942
- default: () => []
16989
+ default: () => [],
16990
+ watch: false
16943
16991
  },
16944
16992
  width: {
16945
16993
  type: [Number, String],
@@ -16955,7 +17003,8 @@ const ZdMenuProps = buildProps({
16955
17003
  },
16956
17004
  items: {
16957
17005
  type: Array,
16958
- default: () => []
17006
+ default: () => [],
17007
+ watch: false
16959
17008
  },
16960
17009
  // Zeedhi 3.x
16961
17010
  permanent: {
@@ -16986,9 +17035,10 @@ defineComponent({
16986
17035
  props: ZdMenuProps,
16987
17036
  inheritAttrs: false,
16988
17037
  setup(props, ctx) {
16989
- const { instance, root: root2 } = useCreateInstance(props, ctx, Menu);
17038
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Menu, ZdMenuProps);
16990
17039
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
16991
17040
  const { mobile } = useDisplay();
17041
+ const menuTheme = computed(() => instance.theme);
16992
17042
  const checkMiniVariant = () => {
16993
17043
  return !!(!instance.opened && instance.mini || instance.miniState && !instance.mouseOver && instance.miniState && !mobile || instance.miniState && instance.mini);
16994
17044
  };
@@ -17148,6 +17198,7 @@ defineComponent({
17148
17198
  mouseleave,
17149
17199
  searchInputProps,
17150
17200
  navigationKeyMapping,
17201
+ menuTheme,
17151
17202
  // methods
17152
17203
  checkMiniVariant,
17153
17204
  showSlotOnHover
@@ -17170,7 +17221,8 @@ const ZdMenuGroupProps$1 = buildProps({
17170
17221
  },
17171
17222
  items: {
17172
17223
  type: Array,
17173
- default: () => []
17224
+ default: () => [],
17225
+ watch: false
17174
17226
  },
17175
17227
  menuLevel: {
17176
17228
  type: Number,
@@ -17194,7 +17246,7 @@ const menuGroupComponent = defineComponent({
17194
17246
  props: ZdMenuGroupProps$1,
17195
17247
  inheritAttrs: false,
17196
17248
  setup(props, ctx) {
17197
- const { instance, root: root2 } = useCreateInstance(props, ctx, MenuGroup);
17249
+ const { instance, root: root2 } = useCreateInstance(props, ctx, MenuGroup, ZdMenuGroupProps$1);
17198
17250
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
17199
17251
  const mouseEnter = () => {
17200
17252
  const rootElement = getRootElement(root2);
@@ -17213,7 +17265,7 @@ const menuGroupComponent = defineComponent({
17213
17265
  };
17214
17266
  }
17215
17267
  });
17216
- function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
17268
+ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
17217
17269
  const _component_v_list_item = resolveComponent("v-list-item");
17218
17270
  const _component_v_list_group = resolveComponent("v-list-group");
17219
17271
  return withDirectives((openBlock(), createBlock(_component_v_list_group, {
@@ -17258,7 +17310,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
17258
17310
  [vShow, _ctx.instance.isVisible && !(_ctx.miniVariant && _ctx.menuLevel !== 1)]
17259
17311
  ]);
17260
17312
  }
17261
- const ZdMenuGroup = /* @__PURE__ */ _export_sfc(menuGroupComponent, [["render", _sfc_render$u]]);
17313
+ const ZdMenuGroup = /* @__PURE__ */ _export_sfc(menuGroupComponent, [["render", _sfc_render$v]]);
17262
17314
  const ZdMenuLinkProps$1 = buildProps({
17263
17315
  ...ZdComponentRenderProps,
17264
17316
  route: {
@@ -17291,7 +17343,7 @@ const menuLinkComponent = defineComponent({
17291
17343
  props: ZdMenuLinkProps$1,
17292
17344
  inheritAttrs: false,
17293
17345
  setup(props, ctx) {
17294
- const { instance, root: root2 } = useCreateInstance(props, ctx, MenuLink);
17346
+ const { instance, root: root2 } = useCreateInstance(props, ctx, MenuLink, ZdMenuLinkProps$1);
17295
17347
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
17296
17348
  const mouseEnter = () => {
17297
17349
  const rootElement = getRootElement(root2);
@@ -17314,7 +17366,7 @@ const menuLinkComponent = defineComponent({
17314
17366
  };
17315
17367
  }
17316
17368
  });
17317
- function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
17369
+ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
17318
17370
  const _component_v_list_item = resolveComponent("v-list-item");
17319
17371
  return withDirectives((openBlock(), createBlock(_component_v_list_item, {
17320
17372
  id: _ctx.instance.name,
@@ -17335,7 +17387,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
17335
17387
  [vShow, _ctx.instance.isVisible && !(_ctx.miniVariant && _ctx.menuLevel !== 1)]
17336
17388
  ]);
17337
17389
  }
17338
- const ZdMenuLink = /* @__PURE__ */ _export_sfc(menuLinkComponent, [["render", _sfc_render$t]]);
17390
+ const ZdMenuLink = /* @__PURE__ */ _export_sfc(menuLinkComponent, [["render", _sfc_render$u]]);
17339
17391
  const ZdMenuSeparatorProps$1 = buildProps({
17340
17392
  ...ZdComponentRenderProps
17341
17393
  });
@@ -17343,7 +17395,7 @@ const menuSeparatorComponent = defineComponent({
17343
17395
  props: ZdMenuSeparatorProps$1,
17344
17396
  inheritAttrs: false,
17345
17397
  setup(props, ctx) {
17346
- const { instance, root: root2 } = useCreateInstance(props, ctx, MenuSeparator);
17398
+ const { instance, root: root2 } = useCreateInstance(props, ctx, MenuSeparator, ZdMenuSeparatorProps$1);
17347
17399
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
17348
17400
  return {
17349
17401
  instance,
@@ -17356,7 +17408,7 @@ const menuSeparatorComponent = defineComponent({
17356
17408
  };
17357
17409
  }
17358
17410
  });
17359
- function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
17411
+ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
17360
17412
  const _component_v_divider = resolveComponent("v-divider");
17361
17413
  return withDirectives((openBlock(), createBlock(_component_v_divider, {
17362
17414
  id: _ctx.instance.name,
@@ -17366,8 +17418,8 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
17366
17418
  [vShow, _ctx.instance.isVisible]
17367
17419
  ]);
17368
17420
  }
17369
- const ZdMenuSeparator = /* @__PURE__ */ _export_sfc(menuSeparatorComponent, [["render", _sfc_render$s]]);
17370
- const _sfc_main$7 = defineComponent({
17421
+ const ZdMenuSeparator = /* @__PURE__ */ _export_sfc(menuSeparatorComponent, [["render", _sfc_render$t]]);
17422
+ const _sfc_main$8 = defineComponent({
17371
17423
  inheritAttrs: false,
17372
17424
  setup() {
17373
17425
  ModalService.modals = reactive([]);
@@ -17377,10 +17429,6 @@ const _sfc_main$7 = defineComponent({
17377
17429
  let modalDragged;
17378
17430
  let elDragged = null;
17379
17431
  let dragHandle = null;
17380
- const getGridClasses = (grid) => Object.keys(grid).reduce((previous, key) => `${previous} zd-col-${key}-${grid[key]}`, "");
17381
- const getSizeClass = (modal) => {
17382
- return !modal.fullscreen ? getGridClasses(modal.grid) : "";
17383
- };
17384
17432
  const initializeModalPosition = (modalEl) => {
17385
17433
  const rect = modalEl.getBoundingClientRect();
17386
17434
  const computedStyle = window.getComputedStyle(modalEl);
@@ -17393,8 +17441,8 @@ const _sfc_main$7 = defineComponent({
17393
17441
  var _a;
17394
17442
  if (!modal) return;
17395
17443
  const dragHandleClass = (_a = modal.dragHandle) == null ? void 0 : _a.replace(".", "");
17396
- const targetElement = event.target;
17397
- if (dragHandleClass && !targetElement.classList.contains(dragHandleClass)) {
17444
+ const targetElement2 = event.target;
17445
+ if (dragHandleClass && !targetElement2.classList.contains(dragHandleClass)) {
17398
17446
  return;
17399
17447
  }
17400
17448
  const modalEl = el.parentElement;
@@ -17450,16 +17498,6 @@ const _sfc_main$7 = defineComponent({
17450
17498
  y: event.clientY
17451
17499
  };
17452
17500
  };
17453
- const getContentClass = (modal) => {
17454
- const classes = [
17455
- "zd-modal-content",
17456
- getSizeClass(modal),
17457
- modal.cssClass,
17458
- modal.draggable ? "zd-modal-draggable" : "",
17459
- modal.draggable && !modal.dragHandle ? "zd-modal-draggable-handle" : ""
17460
- ];
17461
- return classes.join(" ");
17462
- };
17463
17501
  const registerDragEvents = (modal, el) => {
17464
17502
  if (!el || !(el instanceof HTMLElement)) return;
17465
17503
  dragHandle = modal.dragHandle ? el.querySelector(modal.dragHandle) : el;
@@ -17474,8 +17512,6 @@ const _sfc_main$7 = defineComponent({
17474
17512
  };
17475
17513
  return {
17476
17514
  modals,
17477
- dragStart: dragStart2,
17478
- getContentClass,
17479
17515
  registerDragEvents,
17480
17516
  unregisterDragEvents
17481
17517
  };
@@ -17485,12 +17521,8 @@ const _hoisted_1$b = {
17485
17521
  class: "zd-modal",
17486
17522
  ref: "root"
17487
17523
  };
17488
- function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
17489
- const _component_v_card_title = resolveComponent("v-card-title");
17490
- const _component_v_layout = resolveComponent("v-layout");
17491
- const _component_v_container = resolveComponent("v-container");
17492
- const _component_v_card_text = resolveComponent("v-card-text");
17493
- const _component_v_card = resolveComponent("v-card");
17524
+ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
17525
+ const _component_zd_modal_card = resolveComponent("zd-modal-card");
17494
17526
  const _component_v_dialog = resolveComponent("v-dialog");
17495
17527
  return openBlock(), createElementBlock("div", _hoisted_1$b, [
17496
17528
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.modals, (modal) => {
@@ -17505,66 +17537,182 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
17505
17537
  theme: modal.theme
17506
17538
  }, {
17507
17539
  default: withCtx(() => [
17508
- createVNode(_component_v_card, {
17509
- class: normalizeClass([
17510
- "zd-modal-card",
17511
- "zd-modal-card-" + modal.name,
17512
- "zd-display-flex",
17513
- "zd-flex-column",
17514
- modal.cssClass,
17515
- _ctx.getContentClass(modal)
17516
- ]),
17517
- style: normalizeStyle(modal.cssStyle),
17518
- ref_for: true,
17519
- ref: "modalRef",
17520
- onVnodeMounted: ($event) => modal.draggable && _ctx.registerDragEvents(modal, $event.el),
17521
- onVnodeDestroyed: ($event) => _ctx.unregisterDragEvents(modal, $event.el)
17540
+ createVNode(_component_zd_modal_card, {
17541
+ name: modal.name,
17542
+ title: modal.title,
17543
+ children: modal.children,
17544
+ "css-class": modal.cssClass,
17545
+ "css-style": modal.cssStyle,
17546
+ fullscreen: modal.fullscreen,
17547
+ grid: modal.grid,
17548
+ draggable: modal.draggable,
17549
+ "drag-handle": modal.dragHandle,
17550
+ parent: modal,
17551
+ "register-drag-events": _ctx.registerDragEvents,
17552
+ "unregister-drag-events": _ctx.unregisterDragEvents
17522
17553
  }, {
17523
17554
  default: withCtx(() => [
17524
- modal.title ? (openBlock(), createBlock(_component_v_card_title, {
17525
- key: 0,
17526
- class: "zd-theme-font-title zd-modal-title"
17527
- }, {
17528
- default: withCtx(() => [
17529
- createTextVNode(toDisplayString(_ctx.$t(modal.title)), 1)
17530
- ]),
17531
- _: 2
17532
- }, 1024)) : createCommentVNode("", true),
17533
- createVNode(_component_v_card_text, { class: "zd-modal-card-text" }, {
17534
- default: withCtx(() => [
17535
- createVNode(_component_v_container, {
17536
- fluid: "",
17537
- class: "zd-modal-container"
17538
- }, {
17539
- default: withCtx(() => [
17540
- createVNode(_component_v_layout, { style: { "flex-direction": "column" } }, {
17541
- default: withCtx(() => [
17542
- (openBlock(true), createElementBlock(Fragment, null, renderList(modal.children, (child) => {
17543
- return openBlock(), createBlock(resolveDynamicComponent(child.component), mergeProps({ ref_for: true }, child, {
17544
- key: child.name,
17545
- parent: modal
17546
- }), null, 16, ["parent"]);
17547
- }), 128)),
17548
- renderSlot(_ctx.$slots, "default")
17549
- ]),
17550
- _: 2
17551
- }, 1024)
17552
- ]),
17553
- _: 2
17554
- }, 1024)
17555
- ]),
17556
- _: 2
17557
- }, 1024)
17555
+ renderSlot(_ctx.$slots, "default")
17558
17556
  ]),
17559
- _: 2
17560
- }, 1032, ["class", "style", "onVnodeMounted", "onVnodeDestroyed"])
17557
+ _: 3
17558
+ }, 8, ["name", "title", "children", "css-class", "css-style", "fullscreen", "grid", "draggable", "drag-handle", "parent", "register-drag-events", "unregister-drag-events"])
17561
17559
  ]),
17562
17560
  _: 2
17563
17561
  }, 1032, ["modelValue", "onUpdate:modelValue", "id", "persistent", "fullscreen", "theme"]);
17564
17562
  }), 128))
17565
17563
  ], 512);
17566
17564
  }
17567
- const ZdModal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$r]]);
17565
+ const ZdModal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$s]]);
17566
+ const _sfc_main$7 = defineComponent({
17567
+ inheritAttrs: false,
17568
+ props: {
17569
+ name: {
17570
+ type: String,
17571
+ required: true
17572
+ },
17573
+ title: {
17574
+ type: String,
17575
+ required: false
17576
+ },
17577
+ children: {
17578
+ type: Array,
17579
+ required: false,
17580
+ default: () => []
17581
+ },
17582
+ cssClass: {
17583
+ type: String,
17584
+ required: false,
17585
+ default: ""
17586
+ },
17587
+ cssStyle: {
17588
+ type: String,
17589
+ required: false,
17590
+ default: ""
17591
+ },
17592
+ fullscreen: {
17593
+ type: Boolean,
17594
+ required: false,
17595
+ default: false
17596
+ },
17597
+ grid: {
17598
+ type: Object,
17599
+ required: false,
17600
+ default: () => ({})
17601
+ },
17602
+ draggable: {
17603
+ type: Boolean,
17604
+ required: false,
17605
+ default: false
17606
+ },
17607
+ dragHandle: {
17608
+ type: String,
17609
+ required: false
17610
+ },
17611
+ parent: {
17612
+ type: Object,
17613
+ required: false
17614
+ },
17615
+ registerDragEvents: {
17616
+ type: Function,
17617
+ required: false
17618
+ },
17619
+ unregisterDragEvents: {
17620
+ type: Function,
17621
+ required: false
17622
+ }
17623
+ },
17624
+ setup(props) {
17625
+ const getGridClasses = (grid) => Object.keys(grid).reduce((previous, key) => `${previous} zd-col-${key}-${grid[key]}`, "");
17626
+ const getSizeClass = () => {
17627
+ return !props.fullscreen ? getGridClasses(props.grid) : "";
17628
+ };
17629
+ const getContentClass = () => {
17630
+ const classes = [
17631
+ getSizeClass(),
17632
+ props.cssClass,
17633
+ props.draggable ? "zd-modal-draggable" : "",
17634
+ props.draggable && !props.dragHandle ? "zd-modal-draggable-handle" : ""
17635
+ ];
17636
+ return classes.join(" ");
17637
+ };
17638
+ const handleMounted = (modal, el) => {
17639
+ modal.onMounted(el);
17640
+ if (props.draggable && props.registerDragEvents) {
17641
+ props.registerDragEvents(modal, el);
17642
+ }
17643
+ };
17644
+ const handleDestroyed = (modal, el) => {
17645
+ if (props.draggable && props.unregisterDragEvents) {
17646
+ props.unregisterDragEvents(modal, el);
17647
+ }
17648
+ };
17649
+ return {
17650
+ getContentClass,
17651
+ handleMounted,
17652
+ handleDestroyed
17653
+ };
17654
+ }
17655
+ });
17656
+ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
17657
+ const _component_v_card_title = resolveComponent("v-card-title");
17658
+ const _component_v_layout = resolveComponent("v-layout");
17659
+ const _component_v_container = resolveComponent("v-container");
17660
+ const _component_v_card_text = resolveComponent("v-card-text");
17661
+ const _component_v_card = resolveComponent("v-card");
17662
+ return openBlock(), createBlock(_component_v_card, {
17663
+ class: normalizeClass([
17664
+ "zd-modal-card",
17665
+ "zd-modal-card-" + _ctx.name,
17666
+ "zd-display-flex",
17667
+ "zd-flex-column",
17668
+ _ctx.cssClass,
17669
+ _ctx.getContentClass()
17670
+ ]),
17671
+ style: normalizeStyle(_ctx.cssStyle),
17672
+ ref: "root",
17673
+ onVnodeMounted: _cache[0] || (_cache[0] = ($event) => _ctx.parent && _ctx.handleMounted(_ctx.parent, $event.el)),
17674
+ onVnodeDestroyed: _cache[1] || (_cache[1] = ($event) => _ctx.parent && _ctx.handleDestroyed(_ctx.parent, $event.el))
17675
+ }, {
17676
+ default: withCtx(() => [
17677
+ _ctx.title ? (openBlock(), createBlock(_component_v_card_title, {
17678
+ key: 0,
17679
+ class: "zd-theme-font-title zd-modal-title"
17680
+ }, {
17681
+ default: withCtx(() => [
17682
+ createTextVNode(toDisplayString(_ctx.$t(_ctx.title)), 1)
17683
+ ]),
17684
+ _: 1
17685
+ })) : createCommentVNode("", true),
17686
+ createVNode(_component_v_card_text, { class: "zd-modal-card-text" }, {
17687
+ default: withCtx(() => [
17688
+ createVNode(_component_v_container, {
17689
+ fluid: "",
17690
+ class: "zd-modal-container"
17691
+ }, {
17692
+ default: withCtx(() => [
17693
+ createVNode(_component_v_layout, { style: { "flex-direction": "column" } }, {
17694
+ default: withCtx(() => [
17695
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.children, (child) => {
17696
+ return openBlock(), createBlock(resolveDynamicComponent(child.component), mergeProps({ ref_for: true }, child, {
17697
+ key: child.name,
17698
+ parent: _ctx.parent
17699
+ }), null, 16, ["parent"]);
17700
+ }), 128)),
17701
+ renderSlot(_ctx.$slots, "default")
17702
+ ]),
17703
+ _: 3
17704
+ })
17705
+ ]),
17706
+ _: 3
17707
+ })
17708
+ ]),
17709
+ _: 3
17710
+ })
17711
+ ]),
17712
+ _: 3
17713
+ }, 8, ["class", "style"]);
17714
+ }
17715
+ const ZdModalCard = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$r]]);
17568
17716
  const ZdModalCloseButtonProps$1 = buildProps({
17569
17717
  ...ZdButtonProps,
17570
17718
  modalName: {
@@ -17588,7 +17736,7 @@ const modalCloseButton = defineComponent({
17588
17736
  props: ZdModalCloseButtonProps$1,
17589
17737
  inheritAttrs: false,
17590
17738
  setup(props, ctx) {
17591
- const { instance, root: root2 } = useCreateInstance(props, ctx, ModalCloseButton);
17739
+ const { instance, root: root2 } = useCreateInstance(props, ctx, ModalCloseButton, ZdModalCloseButtonProps$1);
17592
17740
  return {
17593
17741
  instance,
17594
17742
  root: root2
@@ -17698,7 +17846,7 @@ defineComponent({
17698
17846
  props: ZdDateInputProps,
17699
17847
  inheritAttrs: false,
17700
17848
  setup(props, ctx) {
17701
- const { instance, root: root2 } = useCreateInputInstance(props, ctx, DateInput);
17849
+ const { instance, root: root2 } = useCreateInputInstance(props, ctx, DateInput, ZdDateInputProps);
17702
17850
  const textInputScope = useTextInput$1(instance, ctx, root2);
17703
17851
  const picker = ref(null);
17704
17852
  const { isMobile } = useIsMobile();
@@ -17785,7 +17933,7 @@ const _sfc_main$6 = defineComponent({
17785
17933
  props: ZdMonthProps$1,
17786
17934
  inheritAttrs: false,
17787
17935
  setup(props, ctx) {
17788
- const { instance, root: root2 } = useCreateInstance(props, ctx, Month);
17936
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Month, ZdMonthProps$1);
17789
17937
  watch(
17790
17938
  () => instance.viewMode,
17791
17939
  () => {
@@ -17829,7 +17977,7 @@ const numberInputComponent = defineComponent({
17829
17977
  props: ZdNumberInputProps,
17830
17978
  inheritAttrs: false,
17831
17979
  setup(props, ctx) {
17832
- const { instance, root: root2 } = useCreateInstance(props, ctx, NumberInput);
17980
+ const { instance, root: root2 } = useCreateInstance(props, ctx, NumberInput, ZdNumberInputProps);
17833
17981
  const autoNumericInit = ref(false);
17834
17982
  onMounted(() => {
17835
17983
  var _a;
@@ -17912,7 +18060,7 @@ const passwordComponent = defineComponent({
17912
18060
  props: ZdPasswordProps$1,
17913
18061
  inheritAttrs: false,
17914
18062
  setup(props, ctx) {
17915
- const { instance, root: root2 } = useCreateInstance(props, ctx, Password);
18063
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Password, ZdPasswordProps$1);
17916
18064
  return {
17917
18065
  instance,
17918
18066
  root: root2
@@ -17953,7 +18101,8 @@ const ZdProgressProps$1 = buildProps({
17953
18101
  },
17954
18102
  centerSlot: {
17955
18103
  type: [Array, String],
17956
- default: () => []
18104
+ default: () => [],
18105
+ watch: false
17957
18106
  },
17958
18107
  value: {
17959
18108
  type: [Number, String],
@@ -17964,7 +18113,7 @@ const progressComponent = defineComponent({
17964
18113
  props: ZdProgressProps$1,
17965
18114
  inheritAttrs: false,
17966
18115
  setup(props, ctx) {
17967
- const { instance, root: root2 } = useCreateInstance(props, ctx, Progress);
18116
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Progress, ZdProgressProps$1);
17968
18117
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
17969
18118
  return {
17970
18119
  instance,
@@ -18023,7 +18172,8 @@ const ZdRadioProps$1 = buildProps({
18023
18172
  type: Object,
18024
18173
  defaut() {
18025
18174
  return {};
18026
- }
18175
+ },
18176
+ watch: false
18027
18177
  },
18028
18178
  dataValue: {
18029
18179
  type: String,
@@ -18038,7 +18188,7 @@ const radioComponent = defineComponent({
18038
18188
  props: ZdRadioProps$1,
18039
18189
  inheritAttrs: false,
18040
18190
  setup(props, ctx) {
18041
- const { instance, root: root2 } = useCreateInstance(props, ctx, Radio);
18191
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Radio, ZdRadioProps$1);
18042
18192
  const radioScope = useRadio$1(instance, ctx, root2);
18043
18193
  return {
18044
18194
  ...radioScope
@@ -18133,7 +18283,7 @@ const rowComponent = defineComponent({
18133
18283
  props: ZdRowProps$1,
18134
18284
  inheritAttrs: false,
18135
18285
  setup(props, ctx) {
18136
- const { instance, root: root2 } = useCreateInstance(props, ctx, Row);
18286
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Row, ZdRowProps$1);
18137
18287
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
18138
18288
  return {
18139
18289
  instance,
@@ -18209,7 +18359,12 @@ const selectMultipleComponent = defineComponent({
18209
18359
  props: ZdSelectMultipleProps$1,
18210
18360
  inheritAttrs: false,
18211
18361
  setup(props, ctx) {
18212
- const { instance, root: root2 } = useCreateInputInstance(props, ctx, SelectMultiple);
18362
+ const { instance, root: root2 } = useCreateInputInstance(
18363
+ props,
18364
+ ctx,
18365
+ SelectMultiple,
18366
+ ZdSelectMultipleProps$1
18367
+ );
18213
18368
  const selectScope = useSelect$1(instance, ctx, root2);
18214
18369
  const element = ref();
18215
18370
  const checkboxItem = ref([]);
@@ -18307,7 +18462,7 @@ const selectMultipleComponent = defineComponent({
18307
18462
  instance.onSelectAll(!allSelected.value, event, instance.value);
18308
18463
  });
18309
18464
  };
18310
- const checkOverflow = () => {
18465
+ const checkOverflow2 = () => {
18311
18466
  const chips = getChips();
18312
18467
  if (chips.length > 0) {
18313
18468
  const firstChip = chips[0];
@@ -18373,7 +18528,7 @@ const selectMultipleComponent = defineComponent({
18373
18528
  expandedMode.value = true;
18374
18529
  nextTick(() => {
18375
18530
  expandedMode.value = false;
18376
- if (!checkOverflow()) {
18531
+ if (!checkOverflow2()) {
18377
18532
  calcDisplay(true);
18378
18533
  }
18379
18534
  });
@@ -18417,7 +18572,7 @@ const selectMultipleComponent = defineComponent({
18417
18572
  if (!instance.limit && rows !== 1) {
18418
18573
  rows = 1;
18419
18574
  calcDisplay();
18420
- nextTick(() => checkOverflow());
18575
+ nextTick(() => checkOverflow2());
18421
18576
  } else {
18422
18577
  refreshDisplay();
18423
18578
  }
@@ -18526,7 +18681,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
18526
18681
  "zd-select-multiple",
18527
18682
  {
18528
18683
  "zd-no-label": !_ctx.instance.showLabel,
18529
- "zd-no-helper": !_ctx.instance.showHelper && !(_ctx.instance.alwaysShowError && _ctx.$refs.root && _ctx.$refs.root.errorBucket.length),
18684
+ "zd-no-helper": !_ctx.instance.showHelper && !(_ctx.instance.alwaysShowError && _ctx.$refs.root && _ctx.$refs.root.errorMessages.length),
18530
18685
  "zd-no-border": !_ctx.instance.showBorder,
18531
18686
  "zd-dense": _ctx.instance.dense,
18532
18687
  "zd-select-multiple-autocomplete": _ctx.instance.autocomplete,
@@ -18809,7 +18964,8 @@ const ZdSelectProps = buildProps({
18809
18964
  },
18810
18965
  datasource: {
18811
18966
  type: Object,
18812
- default: () => ({})
18967
+ default: () => ({}),
18968
+ watch: false
18813
18969
  },
18814
18970
  value: {
18815
18971
  type: [String, Number, Object],
@@ -18825,11 +18981,13 @@ const ZdSelectProps = buildProps({
18825
18981
  },
18826
18982
  itemAfterSlot: {
18827
18983
  type: Array,
18828
- default: () => []
18984
+ default: () => [],
18985
+ watch: false
18829
18986
  },
18830
18987
  itemBeforeSlot: {
18831
18988
  type: Array,
18832
- default: () => []
18989
+ default: () => [],
18990
+ watch: false
18833
18991
  },
18834
18992
  manualMode: {
18835
18993
  type: [Boolean, String],
@@ -18853,7 +19011,12 @@ const selectComponent = defineComponent({
18853
19011
  props: ZdSelectProps,
18854
19012
  inheritAttrs: false,
18855
19013
  setup(props, ctx) {
18856
- const { instance, root: root2 } = useCreateInputInstance(props, ctx, Select);
19014
+ const { instance, root: root2 } = useCreateInputInstance(
19015
+ props,
19016
+ ctx,
19017
+ Select,
19018
+ ZdSelectProps
19019
+ );
18857
19020
  const selectScope = useSelect(instance, ctx, root2);
18858
19021
  return {
18859
19022
  ...selectScope
@@ -18868,7 +19031,7 @@ function useSelect(instance, ctx, root2) {
18868
19031
  const hasItemBeforeSlot = !!slots.itemBeforeSlot;
18869
19032
  const hasItemAfterSlot = !!slots.itemAfterSlot;
18870
19033
  const items = computed(() => {
18871
- const data2 = instance.items;
19034
+ const data2 = instance.items || [];
18872
19035
  const disabledValues = instance.disabledItems.map((item) => {
18873
19036
  if (item && typeof item === "object") {
18874
19037
  return item[instance.dataValue];
@@ -18891,11 +19054,11 @@ function useSelect(instance, ctx, root2) {
18891
19054
  if (!instance.dataTextDiscrete) {
18892
19055
  return formattedDataText(item);
18893
19056
  }
18894
- const text = selectFormatterFn(item, {
19057
+ const text2 = selectFormatterFn(item, {
18895
19058
  dataText: instance.dataTextDiscrete,
18896
19059
  dataTextSeparator: instance.dataTextSeparator
18897
19060
  });
18898
- return text;
19061
+ return text2;
18899
19062
  };
18900
19063
  const selectChange = (value) => {
18901
19064
  const rootElement = getRootElement(root2);
@@ -18966,7 +19129,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
18966
19129
  "zd-text-input",
18967
19130
  {
18968
19131
  "zd-no-label": !_ctx.instance.showLabel,
18969
- "zd-no-helper": !_ctx.instance.showHelper && !(_ctx.instance.alwaysShowError && _ctx.$refs.instance && _ctx.$refs.instance.errorBucket.length),
19132
+ "zd-no-helper": !_ctx.instance.showHelper && !(_ctx.instance.alwaysShowError && _ctx.$refs.root && _ctx.$refs.root.errorMessages.length),
18970
19133
  "zd-no-border": !_ctx.instance.showBorder,
18971
19134
  "zd-dense": _ctx.instance.dense,
18972
19135
  "zd-select-autocomplete": _ctx.instance.autocomplete,
@@ -19159,7 +19322,7 @@ const _sfc_main$5 = defineComponent({
19159
19322
  inheritAttrs: false,
19160
19323
  setup(props, ctx) {
19161
19324
  const container = ref(null);
19162
- const { instance, root: root2 } = useCreateInputInstance(props, ctx, SvgMap);
19325
+ const { instance, root: root2 } = useCreateInputInstance(props, ctx, SvgMap, ZdSvgMapProps$1);
19163
19326
  const componentScope = useGetMethods(instance, root2);
19164
19327
  const theme = useTheme();
19165
19328
  const showTooltip = ref(false);
@@ -19388,7 +19551,7 @@ const switchComponent = defineComponent({
19388
19551
  props: ZdSwitchProps$1,
19389
19552
  inheritAttrs: false,
19390
19553
  setup(props, ctx) {
19391
- const { instance, root: root2 } = useCreateInstance(props, ctx, Switch);
19554
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Switch, ZdSwitchProps$1);
19392
19555
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
19393
19556
  const switchChange = (value) => {
19394
19557
  const rootElement = getRootElement(root2);
@@ -19474,7 +19637,7 @@ const tableComponent = defineComponent({
19474
19637
  props: ZdTableProps$1,
19475
19638
  inheritAttrs: false,
19476
19639
  setup(props, ctx) {
19477
- const { instance, root: root2 } = useCreateInstance(props, ctx, Table);
19640
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Table, ZdTableProps$1);
19478
19641
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
19479
19642
  return {
19480
19643
  instance,
@@ -19606,7 +19769,7 @@ const tabComponent = defineComponent({
19606
19769
  props: ZdTabProps$1,
19607
19770
  inheritAttrs: false,
19608
19771
  setup(props, ctx) {
19609
- const { instance, root: root2 } = useCreateInstance(props, ctx, Tab);
19772
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Tab, ZdTabProps$1);
19610
19773
  const { density } = useDensity({ instance });
19611
19774
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
19612
19775
  const clickTab = (event) => {
@@ -19712,7 +19875,8 @@ const ZdTabsProps$1 = buildProps({
19712
19875
  },
19713
19876
  tabs: {
19714
19877
  type: [Array],
19715
- default: () => []
19878
+ default: () => [],
19879
+ watch: false
19716
19880
  },
19717
19881
  color: {
19718
19882
  type: [String],
@@ -19746,12 +19910,12 @@ const tabsComponent = defineComponent({
19746
19910
  props: ZdTabsProps$1,
19747
19911
  inheritAttrs: false,
19748
19912
  setup(props, ctx) {
19749
- const { instance, root: root2 } = useCreateInstance(props, ctx, Tabs);
19913
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Tabs, ZdTabsProps$1);
19750
19914
  const { density } = useDensity({ instance });
19751
19915
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
19752
- const change = (event) => {
19916
+ const change = () => {
19753
19917
  const rootElement = getRootElement(root2);
19754
- instance.change(event, rootElement.value);
19918
+ instance.change(new Event("change"), rootElement.value);
19755
19919
  };
19756
19920
  const keydown = (event, index2) => {
19757
19921
  const rootElement = getRootElement(root2);
@@ -19795,9 +19959,11 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
19795
19959
  }, [
19796
19960
  createVNode(_component_v_tabs, {
19797
19961
  modelValue: _ctx.instance.activeTab,
19798
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.instance.activeTab = $event),
19962
+ "onUpdate:modelValue": [
19963
+ _cache[0] || (_cache[0] = ($event) => _ctx.instance.activeTab = $event),
19964
+ _ctx.change
19965
+ ],
19799
19966
  "show-arrows": "",
19800
- onChange: _cache[1] || (_cache[1] = ($event) => _ctx.change($event)),
19801
19967
  theme: _ctx.instance.theme,
19802
19968
  color: _ctx.instance.color,
19803
19969
  "bg-color": _ctx.instance.backgroudColor,
@@ -19823,10 +19989,10 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
19823
19989
  }), 128))
19824
19990
  ]),
19825
19991
  _: 1
19826
- }, 8, ["modelValue", "theme", "color", "bg-color", "density", "direction", "disabled", "grow", "max"]),
19992
+ }, 8, ["modelValue", "onUpdate:modelValue", "theme", "color", "bg-color", "density", "direction", "disabled", "grow", "max"]),
19827
19993
  createVNode(_component_v_window, {
19828
19994
  modelValue: _ctx.instance.activeTab,
19829
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.instance.activeTab = $event)
19995
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.instance.activeTab = $event)
19830
19996
  }, {
19831
19997
  default: withCtx(() => [
19832
19998
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.instance.tabs, (tab, index2) => {
@@ -19866,7 +20032,7 @@ const tagComponent = defineComponent({
19866
20032
  props: ZdTagProps$1,
19867
20033
  inheritAttrs: false,
19868
20034
  setup(props, ctx) {
19869
- const { instance, root: root2 } = useCreateInstance(props, ctx, Tag);
20035
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Tag, ZdTagProps$1);
19870
20036
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
19871
20037
  return {
19872
20038
  instance,
@@ -19961,7 +20127,7 @@ const textInputComponent = defineComponent({
19961
20127
  props: ZdTextInputProps,
19962
20128
  inheritAttrs: false,
19963
20129
  setup(props, ctx) {
19964
- const { instance, root: root2 } = useCreateInstance(props, ctx, TextInput);
20130
+ const { instance, root: root2 } = useCreateInstance(props, ctx, TextInput, ZdTextInputProps);
19965
20131
  const textInputScope = useTextInput(instance, ctx, root2);
19966
20132
  const { maskOptions } = useMaska(instance, { disable: props.disableMaska });
19967
20133
  return {
@@ -20087,7 +20253,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
20087
20253
  {
20088
20254
  "zd-dense": _ctx.instance.dense,
20089
20255
  "zd-no-border": !_ctx.instance.showBorder,
20090
- "zd-no-helper": !_ctx.instance.showHelper && !(_ctx.instance.alwaysShowError && _ctx.$refs.instance && _ctx.$refs.instance.errorBucket.length),
20256
+ "zd-no-helper": !_ctx.instance.showHelper && !(_ctx.instance.alwaysShowError && _ctx.$refs.root && _ctx.$refs.root.errorMessages.length),
20091
20257
  "zd-no-label": !_ctx.instance.showLabel,
20092
20258
  "zd-text-input--suffix": !!_ctx.instance.suffix,
20093
20259
  "zd-text-input--prepend-icon": !!_ctx.instance.prependIcon && !_ctx.instance.prefix,
@@ -20165,7 +20331,7 @@ const textComponent = defineComponent({
20165
20331
  props: ZdTextProps$1,
20166
20332
  inheritAttrs: false,
20167
20333
  setup(props, ctx) {
20168
- const { instance, root: root2 } = useCreateInstance(props, ctx, Text);
20334
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Text, ZdTextProps$1);
20169
20335
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
20170
20336
  return {
20171
20337
  instance,
@@ -20254,6 +20420,10 @@ const ZdTextareaProps$1 = buildProps({
20254
20420
  type: [Number, String],
20255
20421
  default: 5
20256
20422
  },
20423
+ maxRows: {
20424
+ type: [Number, String],
20425
+ default: 10
20426
+ },
20257
20427
  height: {
20258
20428
  type: [String, Number],
20259
20429
  default: "auto"
@@ -20267,7 +20437,7 @@ const textareaComponent = defineComponent({
20267
20437
  props: ZdTextareaProps$1,
20268
20438
  inheritAttrs: false,
20269
20439
  setup(props, ctx) {
20270
- const { instance, root: root2 } = useCreateInstance(props, ctx, Textarea);
20440
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Textarea, ZdTextareaProps$1);
20271
20441
  const { click, mouseenter, mouseleave, focus, blur } = useGetMethods(instance, root2);
20272
20442
  const textInputScope = useTextInput$1(instance, ctx, root2);
20273
20443
  return {
@@ -20298,7 +20468,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
20298
20468
  "zd-clearable-append-icon": _ctx.instance.clearable && _ctx.instance.appendIcon,
20299
20469
  "zd-clearable": _ctx.instance.clearable,
20300
20470
  "zd-no-border": !_ctx.instance.showBorder,
20301
- "zd-no-helper": !_ctx.instance.showHelper && !(_ctx.instance.alwaysShowError && _ctx.$refs.instance && _ctx.$refs.instance.errorBucket.length),
20471
+ "zd-no-helper": !_ctx.instance.showHelper && !(_ctx.instance.alwaysShowError && _ctx.$refs.root && _ctx.$refs.root.errorMessages.length),
20302
20472
  "zd-no-label": !_ctx.instance.showLabel,
20303
20473
  "zd-text-input--prepend-icon": !!_ctx.instance.prependIcon && !_ctx.instance.prefix,
20304
20474
  "v-textarea--no-resize": !_ctx.instance.resize,
@@ -20351,6 +20521,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
20351
20521
  rounded: _ctx.instance.rounded,
20352
20522
  rowHeight: _ctx.instance.rowHeight,
20353
20523
  rows: _ctx.instance.rows,
20524
+ maxRows: _ctx.instance.maxRows,
20354
20525
  rules: _ctx.instance.rules,
20355
20526
  singleLine: true,
20356
20527
  type: _ctx.instance.type,
@@ -20432,7 +20603,7 @@ const _sfc_main$4 = defineComponent({
20432
20603
  name: "ZdTime",
20433
20604
  props: ZdTimeProps$1,
20434
20605
  setup(props, ctx) {
20435
- const { instance, root: root2 } = useCreateInstance(props, ctx, Time);
20606
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Time, ZdTimeProps$1);
20436
20607
  const { isMobile } = useIsMobile();
20437
20608
  const textInputInstance = ref(null);
20438
20609
  const pickerRef = ref(null);
@@ -20668,7 +20839,7 @@ const tooltipComponent = defineComponent({
20668
20839
  ZdActivatorWrapper
20669
20840
  },
20670
20841
  setup(props, ctx) {
20671
- const { instance, root: root2 } = useCreateInstance(props, ctx, Tooltip);
20842
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Tooltip, ZdTooltipProps$1);
20672
20843
  const getLocation = () => {
20673
20844
  if (instance.right) return "right";
20674
20845
  if (instance.left) return "left";
@@ -20745,14 +20916,15 @@ const ZdTreeGridProps = buildProps({
20745
20916
  },
20746
20917
  footerSlot: {
20747
20918
  type: Array,
20748
- default: () => []
20919
+ default: () => [],
20920
+ watch: false
20749
20921
  }
20750
20922
  });
20751
20923
  const treeGridComponent = defineComponent({
20752
20924
  props: ZdTreeGridProps,
20753
20925
  inheritAttrs: false,
20754
20926
  setup(props, ctx) {
20755
- const { instance, root: root2 } = useCreateInstance(props, ctx, TreeGrid);
20927
+ const { instance, root: root2 } = useCreateInstance(props, ctx, TreeGrid, ZdTreeGridProps);
20756
20928
  const gridScope = useGridInstance$1({ instance, root: root2 });
20757
20929
  const cellClick = ({ row, column, event }) => {
20758
20930
  instance.cellClick(row, column, event, gridScope.rootEl.value);
@@ -21030,13 +21202,13 @@ const _sfc_main$3 = defineComponent({
21030
21202
  const expandIconClick = (event) => {
21031
21203
  emit("expandIconClick", event);
21032
21204
  };
21033
- const highlightSearchResult = (text) => {
21034
- if (typeof text !== "string") return text;
21205
+ const highlightSearchResult = (text2) => {
21206
+ if (typeof text2 !== "string") return text2;
21035
21207
  if (gridInstance.datasource.search) {
21036
21208
  const reg = new RegExp(gridInstance.datasource.search, "gi");
21037
- return text.replace(reg, (value) => `<span class="search-result">${value}</span>`);
21209
+ return text2.replace(reg, (value) => `<span class="search-result">${value}</span>`);
21038
21210
  }
21039
- return text;
21211
+ return text2;
21040
21212
  };
21041
21213
  return {
21042
21214
  tabindex,
@@ -21241,7 +21413,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
21241
21413
  }, null, 8, ["disabled", "isSelected", "cellSelection", "isCurrent", "indeterminate"])) : createCommentVNode("", true),
21242
21414
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (column, i, ___, _cached) => {
21243
21415
  const _memo = [_ctx.row, column, _ctx.fixedLeft, _ctx.fixedRight, _ctx.cellSelection, _ctx.isCurrent({ row: _ctx.row, column })];
21244
- if (_cached && _cached.key === column.name && isMemoSame(_cached, _memo)) return _cached;
21416
+ if (_cached && _cached.el && _cached.key === column.name && isMemoSame(_cached, _memo)) return _cached;
21245
21417
  const _item = (openBlock(), createBlock(_component_zd_tree_grid_cell, {
21246
21418
  key: column.name,
21247
21419
  row: _ctx.row,
@@ -21449,19 +21621,23 @@ const ZdTreeProps$1 = buildProps({
21449
21621
  },
21450
21622
  afterTitleSlot: {
21451
21623
  type: [String, Object],
21452
- default: () => []
21624
+ default: () => [],
21625
+ watch: false
21453
21626
  },
21454
21627
  toolbarSlot: {
21455
21628
  type: Array,
21456
- default: () => []
21629
+ default: () => [],
21630
+ watch: false
21457
21631
  },
21458
21632
  titleSlot: {
21459
21633
  type: Array,
21460
- default: () => []
21634
+ default: () => [],
21635
+ watch: false
21461
21636
  },
21462
21637
  datasource: {
21463
21638
  type: Object,
21464
- default: () => ({})
21639
+ default: () => ({}),
21640
+ watch: false
21465
21641
  },
21466
21642
  parentField: {
21467
21643
  type: String,
@@ -21527,7 +21703,7 @@ const _sfc_main = defineComponent({
21527
21703
  setup(props, ctx) {
21528
21704
  var _a;
21529
21705
  const treeRef = ref();
21530
- const { instance, root: root2 } = useCreateInstance(props, ctx, Tree);
21706
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Tree, ZdTreeProps$1);
21531
21707
  const selectedNodesTitle = ref("");
21532
21708
  const beforeNodeState = ref({});
21533
21709
  const proxy = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
@@ -21919,7 +22095,7 @@ defineComponent({
21919
22095
  props: ZdChipProps,
21920
22096
  inheritAttrs: false,
21921
22097
  setup(props, ctx) {
21922
- const { instance, root: root2 } = useCreateInstance(props, ctx, Chip);
22098
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Chip, ZdChipProps);
21923
22099
  const { blur, focus, click, mouseenter, mouseleave } = useGetMethods(instance, root2);
21924
22100
  const variant = computed(() => {
21925
22101
  if (instance.outlined) return "outlined";
@@ -21957,7 +22133,7 @@ defineComponent({
21957
22133
  props: ZdAlertProps,
21958
22134
  inheritAttrs: false,
21959
22135
  setup(props, ctx) {
21960
- const { instance, root: root2 } = useCreateInstance(props, ctx, Alert);
22136
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Alert, ZdAlertProps);
21961
22137
  const manager = AlertService.instantiateManager(props.multiple);
21962
22138
  const managerProxy = reactive(manager);
21963
22139
  AlertService.registerManager(managerProxy);
@@ -22078,7 +22254,8 @@ const ZdBreadcrumbsProps = buildProps({
22078
22254
  },
22079
22255
  items: {
22080
22256
  type: [Array, String],
22081
- default: () => []
22257
+ default: () => [],
22258
+ watch: false
22082
22259
  },
22083
22260
  large: {
22084
22261
  type: [Boolean, String],
@@ -22093,7 +22270,7 @@ defineComponent({
22093
22270
  props: ZdBreadcrumbsProps,
22094
22271
  inheritAttrs: false,
22095
22272
  setup(props, ctx) {
22096
- const { instance, root: root2 } = useCreateInstance(props, ctx, Breadcrumbs);
22273
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Breadcrumbs, ZdBreadcrumbsProps);
22097
22274
  const { t } = useTranslation();
22098
22275
  const getTranslatedItems = () => {
22099
22276
  return instance.items.map((item) => {
@@ -22126,7 +22303,7 @@ defineComponent({
22126
22303
  props: ZdBadgeProps,
22127
22304
  inheritAttrs: false,
22128
22305
  setup(props, ctx) {
22129
- const { instance, root: root2 } = useCreateInstance(props, ctx, Badge);
22306
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Badge, ZdBadgeProps);
22130
22307
  return {
22131
22308
  instance,
22132
22309
  root: root2
@@ -22209,7 +22386,7 @@ defineComponent({
22209
22386
  props: ZdButtonGroupProps,
22210
22387
  inheritAttrs: false,
22211
22388
  setup(props, ctx) {
22212
- const { instance, root: root2 } = useCreateInstance(props, ctx, ButtonGroup);
22389
+ const { instance, root: root2 } = useCreateInstance(props, ctx, ButtonGroup, ZdButtonGroupProps);
22213
22390
  const { density } = useDensity({ instance });
22214
22391
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
22215
22392
  function change() {
@@ -22347,7 +22524,8 @@ const ZdCarouselProps = buildProps({
22347
22524
  iconName: "next",
22348
22525
  icon: true,
22349
22526
  large: true
22350
- })
22527
+ }),
22528
+ watch: false
22351
22529
  },
22352
22530
  prevButton: {
22353
22531
  type: Object,
@@ -22357,7 +22535,8 @@ const ZdCarouselProps = buildProps({
22357
22535
  iconName: "prev",
22358
22536
  icon: true,
22359
22537
  large: true
22360
- })
22538
+ }),
22539
+ watch: false
22361
22540
  }
22362
22541
  });
22363
22542
  defineComponent({
@@ -22370,7 +22549,7 @@ defineComponent({
22370
22549
  Navigation
22371
22550
  },
22372
22551
  setup(props, ctx) {
22373
- const { instance, root: root2 } = useCreateInstance(props, ctx, Carousel$1);
22552
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Carousel$1, ZdCarouselProps);
22374
22553
  const carouselRef = ref(null);
22375
22554
  const resizeObserver = ref(null);
22376
22555
  const lastEvent = ref(void 0);
@@ -22483,7 +22662,7 @@ defineComponent({
22483
22662
  props: ZdCheckboxProps,
22484
22663
  inheritAttrs: false,
22485
22664
  setup(props, ctx) {
22486
- const { instance, root: root2 } = useCreateInstance(props, ctx, Checkbox);
22665
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Checkbox, ZdCheckboxProps);
22487
22666
  const checkboxScope = useCheckbox(instance, ctx, root2);
22488
22667
  return {
22489
22668
  ...checkboxScope
@@ -22529,7 +22708,7 @@ defineComponent({
22529
22708
  props: ZdCodeViewerProps,
22530
22709
  inheritAttrs: false,
22531
22710
  setup(props, ctx) {
22532
- const { instance, root: root2 } = useCreateInstance(props, ctx, CodeViewer);
22711
+ const { instance, root: root2 } = useCreateInstance(props, ctx, CodeViewer, ZdCodeViewerProps);
22533
22712
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
22534
22713
  const highlight = (code, language) => Prism$1.highlight(code, Prism$1.languages[props.language], language);
22535
22714
  instance.setViewHighlight(highlight);
@@ -22575,7 +22754,7 @@ defineComponent({
22575
22754
  props: ZdColProps,
22576
22755
  inheritAttrs: false,
22577
22756
  setup(props, ctx) {
22578
- const { instance, root: root2 } = useCreateInstance(props, ctx, Col);
22757
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Col, ZdColProps);
22579
22758
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
22580
22759
  return {
22581
22760
  instance,
@@ -22609,7 +22788,7 @@ defineComponent({
22609
22788
  props: ZdContainerProps,
22610
22789
  inheritAttrs: false,
22611
22790
  setup(props, ctx) {
22612
- const { instance, root: root2 } = useCreateInstance(props, ctx, Container);
22791
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Container, ZdContainerProps);
22613
22792
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
22614
22793
  return {
22615
22794
  instance,
@@ -22637,7 +22816,7 @@ defineComponent({
22637
22816
  props: ZdDividerProps,
22638
22817
  inheritAttrs: false,
22639
22818
  setup(props, ctx) {
22640
- const { instance, root: root2 } = useCreateInstance(props, ctx, Divider);
22819
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Divider, ZdDividerProps);
22641
22820
  return {
22642
22821
  instance,
22643
22822
  root: root2
@@ -22664,14 +22843,15 @@ const ZdFormProps = buildProps({
22664
22843
  type: Object,
22665
22844
  default() {
22666
22845
  return {};
22667
- }
22846
+ },
22847
+ watch: false
22668
22848
  }
22669
22849
  });
22670
22850
  defineComponent({
22671
22851
  props: ZdFormProps,
22672
22852
  inheritAttrs: false,
22673
22853
  setup(props, ctx) {
22674
- const { instance, root: root2 } = useCreateInstance(props, ctx, Form);
22854
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Form, ZdFormProps);
22675
22855
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
22676
22856
  const submit = (event) => {
22677
22857
  const form = root2.value;
@@ -22765,7 +22945,7 @@ defineComponent({
22765
22945
  props: ZdFooterProps,
22766
22946
  inheritAttrs: false,
22767
22947
  setup(props, ctx) {
22768
- const { instance, root: root2 } = useCreateInstance(props, ctx, Footer);
22948
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Footer, ZdFooterProps);
22769
22949
  const { click, mouseenter, mouseleave, mouseout, mouseover } = useGetMethods(instance, root2);
22770
22950
  return {
22771
22951
  instance,
@@ -22789,7 +22969,7 @@ defineComponent({
22789
22969
  props: ZdFramePageProps,
22790
22970
  inheritAttrs: false,
22791
22971
  setup(props, ctx) {
22792
- const { instance, root: root2 } = useCreateInstance(props, ctx, FramePage);
22972
+ const { instance, root: root2 } = useCreateInstance(props, ctx, FramePage, ZdFramePageProps);
22793
22973
  return { instance, root: root2 };
22794
22974
  }
22795
22975
  });
@@ -22807,7 +22987,8 @@ const ZdHeaderProps = buildProps({
22807
22987
  },
22808
22988
  centerSlot: {
22809
22989
  type: Array,
22810
- default: () => []
22990
+ default: () => [],
22991
+ watch: false
22811
22992
  },
22812
22993
  color: {
22813
22994
  type: String,
@@ -22827,7 +23008,8 @@ const ZdHeaderProps = buildProps({
22827
23008
  },
22828
23009
  leftSlot: {
22829
23010
  type: Array,
22830
- default: () => []
23011
+ default: () => [],
23012
+ watch: false
22831
23013
  },
22832
23014
  padless: {
22833
23015
  type: [Boolean, String],
@@ -22835,7 +23017,8 @@ const ZdHeaderProps = buildProps({
22835
23017
  },
22836
23018
  rightSlot: {
22837
23019
  type: Array,
22838
- default: () => []
23020
+ default: () => [],
23021
+ watch: false
22839
23022
  },
22840
23023
  // Zeedhi 3.0
22841
23024
  image: {
@@ -22851,7 +23034,7 @@ defineComponent({
22851
23034
  props: ZdHeaderProps,
22852
23035
  inheritAttrs: false,
22853
23036
  setup(props, ctx) {
22854
- const { instance, root: root2 } = useCreateInstance(props, ctx, Header);
23037
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Header, ZdHeaderProps);
22855
23038
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
22856
23039
  const centerSlot = ref(null);
22857
23040
  const getSlotsMinHeight = (height) => {
@@ -22924,7 +23107,7 @@ defineComponent({
22924
23107
  props: ZdIconProps,
22925
23108
  inheritAttrs: false,
22926
23109
  setup(props, ctx) {
22927
- const { instance, root: root2 } = useCreateInstance(props, ctx, Icon$1);
23110
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Icon$1, ZdIconProps);
22928
23111
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
22929
23112
  return {
22930
23113
  instance,
@@ -22964,7 +23147,7 @@ defineComponent({
22964
23147
  props: ZdImageProps,
22965
23148
  inheritAttrs: false,
22966
23149
  setup(props, ctx) {
22967
- const { instance, root: root2 } = useCreateInstance(props, ctx, Image);
23150
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Image, ZdImageProps);
22968
23151
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
22969
23152
  return {
22970
23153
  instance,
@@ -23000,7 +23183,7 @@ defineComponent({
23000
23183
  props: ZdLayoutProps,
23001
23184
  inheritAttrs: false,
23002
23185
  setup(props, ctx) {
23003
- const { instance, root: root2 } = useCreateInstance(props, ctx, Layout);
23186
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Layout, ZdLayoutProps);
23004
23187
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
23005
23188
  return {
23006
23189
  instance,
@@ -23028,7 +23211,7 @@ defineComponent({
23028
23211
  props: ZdMainProps,
23029
23212
  inheritAttrs: false,
23030
23213
  setup(props, ctx) {
23031
- const { instance, root: root2 } = useCreateInstance(props, ctx, Main);
23214
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Main, ZdMainProps);
23032
23215
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
23033
23216
  return {
23034
23217
  instance,
@@ -23064,7 +23247,7 @@ defineComponent({
23064
23247
  props: ZdMenuButtonProps,
23065
23248
  inheritAttrs: false,
23066
23249
  setup(props, ctx) {
23067
- const { instance, root: root2 } = useCreateInstance(props, ctx, MenuButton);
23250
+ const { instance, root: root2 } = useCreateInstance(props, ctx, MenuButton, ZdMenuButtonProps);
23068
23251
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
23069
23252
  return {
23070
23253
  instance,
@@ -23093,7 +23276,8 @@ const ZdMenuGroupProps = buildProps({
23093
23276
  },
23094
23277
  items: {
23095
23278
  type: Array,
23096
- default: () => []
23279
+ default: () => [],
23280
+ watch: false
23097
23281
  },
23098
23282
  menuLevel: {
23099
23283
  type: Number,
@@ -23117,7 +23301,7 @@ defineComponent({
23117
23301
  props: ZdMenuGroupProps,
23118
23302
  inheritAttrs: false,
23119
23303
  setup(props, ctx) {
23120
- const { instance, root: root2 } = useCreateInstance(props, ctx, MenuGroup);
23304
+ const { instance, root: root2 } = useCreateInstance(props, ctx, MenuGroup, ZdMenuGroupProps);
23121
23305
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
23122
23306
  const mouseEnter = () => {
23123
23307
  const rootElement = getRootElement(root2);
@@ -23168,7 +23352,7 @@ defineComponent({
23168
23352
  props: ZdMenuLinkProps,
23169
23353
  inheritAttrs: false,
23170
23354
  setup(props, ctx) {
23171
- const { instance, root: root2 } = useCreateInstance(props, ctx, MenuLink);
23355
+ const { instance, root: root2 } = useCreateInstance(props, ctx, MenuLink, ZdMenuLinkProps);
23172
23356
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
23173
23357
  const mouseEnter = () => {
23174
23358
  const rootElement = getRootElement(root2);
@@ -23198,7 +23382,7 @@ defineComponent({
23198
23382
  props: ZdMenuSeparatorProps,
23199
23383
  inheritAttrs: false,
23200
23384
  setup(props, ctx) {
23201
- const { instance, root: root2 } = useCreateInstance(props, ctx, MenuSeparator);
23385
+ const { instance, root: root2 } = useCreateInstance(props, ctx, MenuSeparator, ZdMenuSeparatorProps);
23202
23386
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
23203
23387
  return {
23204
23388
  instance,
@@ -23225,7 +23409,8 @@ const ZdRadioProps = buildProps({
23225
23409
  type: Object,
23226
23410
  defaut() {
23227
23411
  return {};
23228
- }
23412
+ },
23413
+ watch: false
23229
23414
  },
23230
23415
  dataValue: {
23231
23416
  type: String,
@@ -23240,7 +23425,7 @@ defineComponent({
23240
23425
  props: ZdRadioProps,
23241
23426
  inheritAttrs: false,
23242
23427
  setup(props, ctx) {
23243
- const { instance, root: root2 } = useCreateInstance(props, ctx, Radio);
23428
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Radio, ZdRadioProps);
23244
23429
  const radioScope = useRadio(instance, ctx, root2);
23245
23430
  return {
23246
23431
  ...radioScope
@@ -23284,7 +23469,7 @@ defineComponent({
23284
23469
  props: ZdRowProps,
23285
23470
  inheritAttrs: false,
23286
23471
  setup(props, ctx) {
23287
- const { instance, root: root2 } = useCreateInstance(props, ctx, Row);
23472
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Row, ZdRowProps);
23288
23473
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
23289
23474
  return {
23290
23475
  instance,
@@ -23319,7 +23504,7 @@ defineComponent({
23319
23504
  props: ZdTableProps,
23320
23505
  inheritAttrs: false,
23321
23506
  setup(props, ctx) {
23322
- const { instance, root: root2 } = useCreateInstance(props, ctx, Table);
23507
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Table, ZdTableProps);
23323
23508
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
23324
23509
  return {
23325
23510
  instance,
@@ -23387,7 +23572,7 @@ defineComponent({
23387
23572
  props: ZdTabProps,
23388
23573
  inheritAttrs: false,
23389
23574
  setup(props, ctx) {
23390
- const { instance, root: root2 } = useCreateInstance(props, ctx, Tab);
23575
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Tab, ZdTabProps);
23391
23576
  const { density } = useDensity({ instance });
23392
23577
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
23393
23578
  const clickTab = (event) => {
@@ -23433,7 +23618,8 @@ const ZdTabsProps = buildProps({
23433
23618
  },
23434
23619
  tabs: {
23435
23620
  type: [Array],
23436
- default: () => []
23621
+ default: () => [],
23622
+ watch: false
23437
23623
  },
23438
23624
  color: {
23439
23625
  type: [String],
@@ -23467,12 +23653,12 @@ defineComponent({
23467
23653
  props: ZdTabsProps,
23468
23654
  inheritAttrs: false,
23469
23655
  setup(props, ctx) {
23470
- const { instance, root: root2 } = useCreateInstance(props, ctx, Tabs);
23656
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Tabs, ZdTabsProps);
23471
23657
  const { density } = useDensity({ instance });
23472
23658
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
23473
- const change = (event) => {
23659
+ const change = () => {
23474
23660
  const rootElement = getRootElement(root2);
23475
- instance.change(event, rootElement.value);
23661
+ instance.change(new Event("change"), rootElement.value);
23476
23662
  };
23477
23663
  const keydown = (event, index2) => {
23478
23664
  const rootElement = getRootElement(root2);
@@ -23512,7 +23698,7 @@ defineComponent({
23512
23698
  props: ZdTagProps,
23513
23699
  inheritAttrs: false,
23514
23700
  setup(props, ctx) {
23515
- const { instance, root: root2 } = useCreateInstance(props, ctx, Tag);
23701
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Tag, ZdTagProps);
23516
23702
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
23517
23703
  return {
23518
23704
  instance,
@@ -23544,7 +23730,7 @@ defineComponent({
23544
23730
  props: ZdTextProps,
23545
23731
  inheritAttrs: false,
23546
23732
  setup(props, ctx) {
23547
- const { instance, root: root2 } = useCreateInstance(props, ctx, Text);
23733
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Text, ZdTextProps);
23548
23734
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
23549
23735
  return {
23550
23736
  instance,
@@ -23594,7 +23780,7 @@ defineComponent({
23594
23780
  props: ZdLoadingProps,
23595
23781
  inheritAttrs: false,
23596
23782
  setup(props, ctx) {
23597
- const { root: root2 } = useCreateInstance(props, ctx, Loading);
23783
+ const { root: root2 } = useCreateInstance(props, ctx, Loading, ZdLoadingProps);
23598
23784
  const loading = useLoading(Loading, props);
23599
23785
  LoadingService.loading = loading;
23600
23786
  const parseToPixel = (number) => {
@@ -23619,7 +23805,8 @@ const ZdLoginProps = buildProps({
23619
23805
  },
23620
23806
  bottomLink: {
23621
23807
  type: Array,
23622
- default: () => []
23808
+ default: () => [],
23809
+ watch: false
23623
23810
  },
23624
23811
  cardWidth: {
23625
23812
  type: [String, Number],
@@ -23659,14 +23846,15 @@ const ZdLoginProps = buildProps({
23659
23846
  },
23660
23847
  socialLogin: {
23661
23848
  type: Array,
23662
- default: () => []
23849
+ default: () => [],
23850
+ watch: false
23663
23851
  }
23664
23852
  });
23665
23853
  defineComponent({
23666
23854
  props: ZdLoginProps,
23667
23855
  inheritAttrs: false,
23668
23856
  setup(props, ctx) {
23669
- const { instance, root: root2 } = useCreateInstance(props, ctx, Login);
23857
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Login, ZdLoginProps);
23670
23858
  return {
23671
23859
  instance,
23672
23860
  root: root2
@@ -23688,7 +23876,7 @@ defineComponent({
23688
23876
  props: ZdLoginButtonProps,
23689
23877
  inheritAttrs: false,
23690
23878
  setup(props, ctx) {
23691
- const { instance, root: root2 } = useCreateInstance(props, ctx, LoginButton);
23879
+ const { instance, root: root2 } = useCreateInstance(props, ctx, LoginButton, ZdLoginButtonProps);
23692
23880
  return {
23693
23881
  instance,
23694
23882
  root: root2
@@ -23706,7 +23894,7 @@ defineComponent({
23706
23894
  props: ZdSwitchProps,
23707
23895
  inheritAttrs: false,
23708
23896
  setup(props, ctx) {
23709
- const { instance, root: root2 } = useCreateInstance(props, ctx, Switch);
23897
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Switch, ZdSwitchProps);
23710
23898
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
23711
23899
  const switchChange = (value) => {
23712
23900
  const rootElement = getRootElement(root2);
@@ -23767,6 +23955,10 @@ const ZdTextareaProps = buildProps({
23767
23955
  type: [Number, String],
23768
23956
  default: 5
23769
23957
  },
23958
+ maxRows: {
23959
+ type: [Number, String],
23960
+ default: 10
23961
+ },
23770
23962
  height: {
23771
23963
  type: [String, Number],
23772
23964
  default: "auto"
@@ -23780,7 +23972,7 @@ defineComponent({
23780
23972
  props: ZdTextareaProps,
23781
23973
  inheritAttrs: false,
23782
23974
  setup(props, ctx) {
23783
- const { instance, root: root2 } = useCreateInstance(props, ctx, Textarea);
23975
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Textarea, ZdTextareaProps);
23784
23976
  const { click, mouseenter, mouseleave, focus, blur } = useGetMethods(instance, root2);
23785
23977
  const textInputScope = useTextInput$1(instance, ctx, root2);
23786
23978
  return {
@@ -23858,7 +24050,7 @@ defineComponent({
23858
24050
  ZdActivatorWrapper
23859
24051
  },
23860
24052
  setup(props, ctx) {
23861
- const { instance, root: root2 } = useCreateInstance(props, ctx, Tooltip);
24053
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Tooltip, ZdTooltipProps);
23862
24054
  const getLocation = () => {
23863
24055
  if (instance.right) return "right";
23864
24056
  if (instance.left) return "left";
@@ -23883,7 +24075,8 @@ const ZdDropdownProps = buildProps({
23883
24075
  default: false
23884
24076
  },
23885
24077
  activator: {
23886
- type: [Object, String]
24078
+ type: [Object, String],
24079
+ watch: false
23887
24080
  },
23888
24081
  closeOnContentClick: {
23889
24082
  type: [Boolean, String],
@@ -23948,7 +24141,7 @@ defineComponent({
23948
24141
  ZdActivatorWrapper
23949
24142
  },
23950
24143
  setup(props, ctx) {
23951
- const { instance, root: root2 } = useCreateInstance(props, ctx, Dropdown);
24144
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Dropdown, ZdDropdownProps);
23952
24145
  const cssVars = computed(() => {
23953
24146
  return {
23954
24147
  "--cursor": instance.cursor
@@ -23993,7 +24186,12 @@ defineComponent({
23993
24186
  props: ZdSelectMultipleProps,
23994
24187
  inheritAttrs: false,
23995
24188
  setup(props, ctx) {
23996
- const { instance, root: root2 } = useCreateInputInstance(props, ctx, SelectMultiple);
24189
+ const { instance, root: root2 } = useCreateInputInstance(
24190
+ props,
24191
+ ctx,
24192
+ SelectMultiple,
24193
+ ZdSelectMultipleProps
24194
+ );
23997
24195
  const selectScope = useSelect$1(instance, ctx, root2);
23998
24196
  const element = ref();
23999
24197
  const checkboxItem = ref([]);
@@ -24091,7 +24289,7 @@ defineComponent({
24091
24289
  instance.onSelectAll(!allSelected.value, event, instance.value);
24092
24290
  });
24093
24291
  };
24094
- const checkOverflow = () => {
24292
+ const checkOverflow2 = () => {
24095
24293
  const chips = getChips();
24096
24294
  if (chips.length > 0) {
24097
24295
  const firstChip = chips[0];
@@ -24157,7 +24355,7 @@ defineComponent({
24157
24355
  expandedMode.value = true;
24158
24356
  nextTick(() => {
24159
24357
  expandedMode.value = false;
24160
- if (!checkOverflow()) {
24358
+ if (!checkOverflow2()) {
24161
24359
  calcDisplay(true);
24162
24360
  }
24163
24361
  });
@@ -24201,7 +24399,7 @@ defineComponent({
24201
24399
  if (!instance.limit && rows !== 1) {
24202
24400
  rows = 1;
24203
24401
  calcDisplay();
24204
- nextTick(() => checkOverflow());
24402
+ nextTick(() => checkOverflow2());
24205
24403
  } else {
24206
24404
  refreshDisplay();
24207
24405
  }
@@ -24308,7 +24506,7 @@ defineComponent({
24308
24506
  props: ZdPasswordProps,
24309
24507
  inheritAttrs: false,
24310
24508
  setup(props, ctx) {
24311
- const { instance, root: root2 } = useCreateInstance(props, ctx, Password);
24509
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Password, ZdPasswordProps);
24312
24510
  return {
24313
24511
  instance,
24314
24512
  root: root2
@@ -24325,10 +24523,6 @@ defineComponent({
24325
24523
  let modalDragged;
24326
24524
  let elDragged = null;
24327
24525
  let dragHandle = null;
24328
- const getGridClasses = (grid) => Object.keys(grid).reduce((previous, key) => `${previous} zd-col-${key}-${grid[key]}`, "");
24329
- const getSizeClass = (modal) => {
24330
- return !modal.fullscreen ? getGridClasses(modal.grid) : "";
24331
- };
24332
24526
  const initializeModalPosition = (modalEl) => {
24333
24527
  const rect = modalEl.getBoundingClientRect();
24334
24528
  const computedStyle = window.getComputedStyle(modalEl);
@@ -24341,8 +24535,8 @@ defineComponent({
24341
24535
  var _a;
24342
24536
  if (!modal) return;
24343
24537
  const dragHandleClass = (_a = modal.dragHandle) == null ? void 0 : _a.replace(".", "");
24344
- const targetElement = event.target;
24345
- if (dragHandleClass && !targetElement.classList.contains(dragHandleClass)) {
24538
+ const targetElement2 = event.target;
24539
+ if (dragHandleClass && !targetElement2.classList.contains(dragHandleClass)) {
24346
24540
  return;
24347
24541
  }
24348
24542
  const modalEl = el.parentElement;
@@ -24398,16 +24592,6 @@ defineComponent({
24398
24592
  y: event.clientY
24399
24593
  };
24400
24594
  };
24401
- const getContentClass = (modal) => {
24402
- const classes = [
24403
- "zd-modal-content",
24404
- getSizeClass(modal),
24405
- modal.cssClass,
24406
- modal.draggable ? "zd-modal-draggable" : "",
24407
- modal.draggable && !modal.dragHandle ? "zd-modal-draggable-handle" : ""
24408
- ];
24409
- return classes.join(" ");
24410
- };
24411
24595
  const registerDragEvents = (modal, el) => {
24412
24596
  if (!el || !(el instanceof HTMLElement)) return;
24413
24597
  dragHandle = modal.dragHandle ? el.querySelector(modal.dragHandle) : el;
@@ -24422,8 +24606,6 @@ defineComponent({
24422
24606
  };
24423
24607
  return {
24424
24608
  modals,
24425
- dragStart: dragStart2,
24426
- getContentClass,
24427
24609
  registerDragEvents,
24428
24610
  unregisterDragEvents
24429
24611
  };
@@ -24452,7 +24634,7 @@ defineComponent({
24452
24634
  props: ZdModalCloseButtonProps,
24453
24635
  inheritAttrs: false,
24454
24636
  setup(props, ctx) {
24455
- const { instance, root: root2 } = useCreateInstance(props, ctx, ModalCloseButton);
24637
+ const { instance, root: root2 } = useCreateInstance(props, ctx, ModalCloseButton, ZdModalCloseButtonProps);
24456
24638
  return {
24457
24639
  instance,
24458
24640
  root: root2
@@ -24519,14 +24701,15 @@ const ZdListProps = buildProps({
24519
24701
  },
24520
24702
  items: {
24521
24703
  type: Array,
24522
- default: () => []
24704
+ default: () => [],
24705
+ watch: false
24523
24706
  }
24524
24707
  });
24525
24708
  defineComponent({
24526
24709
  props: ZdListProps,
24527
24710
  inheritAttrs: false,
24528
24711
  setup(props, ctx) {
24529
- const { instance, root: root2 } = useCreateInstance(props, ctx, List);
24712
+ const { instance, root: root2 } = useCreateInstance(props, ctx, List, ZdListProps);
24530
24713
  const isLastItem = (index2) => {
24531
24714
  return index2 + 1 === instance.items.length;
24532
24715
  };
@@ -24545,7 +24728,8 @@ const ZdCollapseCardProps = {
24545
24728
  },
24546
24729
  expandButton: {
24547
24730
  type: [Object, String],
24548
- default: () => void 0
24731
+ default: () => void 0,
24732
+ watch: false
24549
24733
  },
24550
24734
  expanded: {
24551
24735
  type: [Boolean, String],
@@ -24553,7 +24737,8 @@ const ZdCollapseCardProps = {
24553
24737
  },
24554
24738
  header: {
24555
24739
  type: [Array, String],
24556
- default: () => []
24740
+ default: () => [],
24741
+ watch: false
24557
24742
  },
24558
24743
  hideAction: {
24559
24744
  type: [Boolean, String],
@@ -24582,7 +24767,7 @@ defineComponent({
24582
24767
  inheritAttrs: false,
24583
24768
  setup(props, ctx) {
24584
24769
  var _a;
24585
- const { instance, root: root2 } = useCreateInstance(props, ctx, CollapseCard);
24770
+ const { instance, root: root2 } = useCreateInstance(props, ctx, CollapseCard, ZdCollapseCardProps);
24586
24771
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
24587
24772
  const background = computed(() => ({
24588
24773
  background: `url(${instance.img}) center center / cover no-repeat`
@@ -24643,10 +24828,11 @@ const ZdGridEditableProps = buildProps({
24643
24828
  function useGridEditableInstance({
24644
24829
  instance,
24645
24830
  root: root2,
24646
- renderedData
24831
+ renderedData,
24832
+ isNavigableRow
24647
24833
  }) {
24648
24834
  const rootEl2 = getRootElement(root2);
24649
- const gridScope = useGridInstance$1({ instance, root: root2, renderedData });
24835
+ const gridScope = useGridInstance$1({ instance, root: root2, renderedData, isNavigableRow });
24650
24836
  const { doubleClick } = useDoubleClick();
24651
24837
  const editingCell = ref(null);
24652
24838
  const isEditing = ({ row, column }) => {
@@ -24777,7 +24963,12 @@ defineComponent({
24777
24963
  props: ZdGridEditableProps,
24778
24964
  inheritAttrs: false,
24779
24965
  setup(props, ctx) {
24780
- const { instance, root: root2 } = useCreateInstance(props, ctx, GridEditable);
24966
+ const { instance, root: root2 } = useCreateInstance(
24967
+ props,
24968
+ ctx,
24969
+ GridEditable,
24970
+ ZdGridEditableProps
24971
+ );
24781
24972
  const gridEditableScope = useGridEditableInstance({ instance, root: root2 });
24782
24973
  return {
24783
24974
  ...gridEditableScope,
@@ -24808,7 +24999,12 @@ defineComponent({
24808
24999
  name: "ZdIterableColumnsButton",
24809
25000
  props: ZdIterableColumnsButtonProps,
24810
25001
  setup(props, ctx) {
24811
- const { instance } = useCreateInstance(props, ctx, IterableColumnsButton);
25002
+ const { instance } = useCreateInstance(
25003
+ props,
25004
+ ctx,
25005
+ IterableColumnsButton,
25006
+ ZdIterableColumnsButtonProps
25007
+ );
24812
25008
  const getEvents = (on2) => {
24813
25009
  const events = { ...instance.events };
24814
25010
  Object.keys(on2).forEach((eventName) => {
@@ -24852,7 +25048,8 @@ const ZdProgressProps = buildProps({
24852
25048
  },
24853
25049
  centerSlot: {
24854
25050
  type: [Array, String],
24855
- default: () => []
25051
+ default: () => [],
25052
+ watch: false
24856
25053
  },
24857
25054
  value: {
24858
25055
  type: [Number, String],
@@ -24863,7 +25060,7 @@ defineComponent({
24863
25060
  props: ZdProgressProps,
24864
25061
  inheritAttrs: false,
24865
25062
  setup(props, ctx) {
24866
- const { instance, root: root2 } = useCreateInstance(props, ctx, Progress);
25063
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Progress, ZdProgressProps);
24867
25064
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
24868
25065
  return {
24869
25066
  instance,
@@ -24922,7 +25119,7 @@ defineComponent({
24922
25119
  inheritAttrs: false,
24923
25120
  setup(props, ctx) {
24924
25121
  const container = ref(null);
24925
- const { instance, root: root2 } = useCreateInputInstance(props, ctx, SvgMap);
25122
+ const { instance, root: root2 } = useCreateInputInstance(props, ctx, SvgMap, ZdSvgMapProps);
24926
25123
  const componentScope = useGetMethods(instance, root2);
24927
25124
  const theme = useTheme();
24928
25125
  const showTooltip = ref(false);
@@ -25090,7 +25287,8 @@ const CheckboxMultipleProps = buildProps({
25090
25287
  },
25091
25288
  datasource: {
25092
25289
  type: Object,
25093
- default: {}
25290
+ default: {},
25291
+ watch: false
25094
25292
  },
25095
25293
  returnObject: {
25096
25294
  type: [Boolean, String],
@@ -25098,7 +25296,8 @@ const CheckboxMultipleProps = buildProps({
25098
25296
  },
25099
25297
  value: {
25100
25298
  type: [Array, String],
25101
- default: () => []
25299
+ default: () => [],
25300
+ watch: false
25102
25301
  },
25103
25302
  vertical: {
25104
25303
  type: [Boolean, String],
@@ -25110,7 +25309,7 @@ defineComponent({
25110
25309
  props: CheckboxMultipleProps,
25111
25310
  inheritAttrs: false,
25112
25311
  setup(props, ctx) {
25113
- const { instance, root: root2 } = useCreateInstance(props, ctx, CheckboxMultiple);
25312
+ const { instance, root: root2 } = useCreateInstance(props, ctx, CheckboxMultiple, CheckboxMultipleProps);
25114
25313
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
25115
25314
  const checkboxHorizontalColumns = computed(() => {
25116
25315
  const columns = Number(instance.columns);
@@ -25162,7 +25361,7 @@ defineComponent({
25162
25361
  props: ZdMasterDetailProps,
25163
25362
  inheritAttrs: false,
25164
25363
  setup(props, ctx) {
25165
- const { instance, root: root2 } = useCreateInstance(props, ctx, MasterDetail);
25364
+ const { instance, root: root2 } = useCreateInstance(props, ctx, MasterDetail, ZdMasterDetailProps);
25166
25365
  const { click, mouseenter, mouseleave } = useGetMethods(instance, root2);
25167
25366
  return {
25168
25367
  instance,
@@ -25183,7 +25382,7 @@ const ZdCurrencyProps = buildProps({
25183
25382
  defineComponent({
25184
25383
  props: ZdCurrencyProps,
25185
25384
  setup(props, ctx) {
25186
- const { instance, root: root2 } = useCreateInstance(props, ctx, Currency);
25385
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Currency, ZdCurrencyProps);
25187
25386
  return {
25188
25387
  instance,
25189
25388
  root: root2
@@ -25262,7 +25461,7 @@ defineComponent({
25262
25461
  name: "ZdTime",
25263
25462
  props: ZdTimeProps,
25264
25463
  setup(props, ctx) {
25265
- const { instance, root: root2 } = useCreateInstance(props, ctx, Time);
25464
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Time, ZdTimeProps);
25266
25465
  const { isMobile } = useIsMobile();
25267
25466
  const textInputInstance = ref(null);
25268
25467
  const pickerRef = ref(null);
@@ -25359,7 +25558,7 @@ defineComponent({
25359
25558
  props: ZdMonthProps,
25360
25559
  inheritAttrs: false,
25361
25560
  setup(props, ctx) {
25362
- const { instance, root: root2 } = useCreateInstance(props, ctx, Month);
25561
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Month, ZdMonthProps);
25363
25562
  watch(
25364
25563
  () => instance.viewMode,
25365
25564
  () => {
@@ -25406,19 +25605,23 @@ const ZdTreeProps = buildProps({
25406
25605
  },
25407
25606
  afterTitleSlot: {
25408
25607
  type: [String, Object],
25409
- default: () => []
25608
+ default: () => [],
25609
+ watch: false
25410
25610
  },
25411
25611
  toolbarSlot: {
25412
25612
  type: Array,
25413
- default: () => []
25613
+ default: () => [],
25614
+ watch: false
25414
25615
  },
25415
25616
  titleSlot: {
25416
25617
  type: Array,
25417
- default: () => []
25618
+ default: () => [],
25619
+ watch: false
25418
25620
  },
25419
25621
  datasource: {
25420
25622
  type: Object,
25421
- default: () => ({})
25623
+ default: () => ({}),
25624
+ watch: false
25422
25625
  },
25423
25626
  parentField: {
25424
25627
  type: String,
@@ -25484,7 +25687,7 @@ defineComponent({
25484
25687
  setup(props, ctx) {
25485
25688
  var _a;
25486
25689
  const treeRef = ref();
25487
- const { instance, root: root2 } = useCreateInstance(props, ctx, Tree);
25690
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Tree, ZdTreeProps);
25488
25691
  const selectedNodesTitle = ref("");
25489
25692
  const beforeNodeState = ref({});
25490
25693
  const proxy = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
@@ -25817,7 +26020,7 @@ defineComponent({
25817
26020
  props: ZdIncrementProps,
25818
26021
  inheritAttrs: false,
25819
26022
  setup(props, ctx) {
25820
- const { instance, root: root2 } = useCreateInstance(props, ctx, Increment);
26023
+ const { instance, root: root2 } = useCreateInstance(props, ctx, Increment, ZdIncrementProps);
25821
26024
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root2);
25822
26025
  return {
25823
26026
  instance,
@@ -25940,7 +26143,7 @@ defineComponent({
25940
26143
  props: ZdDateRangeProps,
25941
26144
  inheritAttrs: false,
25942
26145
  setup(props, ctx) {
25943
- const { instance, root: root2 } = useCreateInputInstance(props, ctx, DateRange);
26146
+ const { instance, root: root2 } = useCreateInputInstance(props, ctx, DateRange, ZdDateRangeProps);
25944
26147
  const picker = ref(null);
25945
26148
  const { isMobile } = useIsMobile();
25946
26149
  const { pickerValue } = usePickerValue(instance);
@@ -26050,6 +26253,7 @@ const components = {
26050
26253
  ZdSelectMultiple,
26051
26254
  ZdPassword,
26052
26255
  ZdModal,
26256
+ ZdModalCard,
26053
26257
  ZdNumberInput,
26054
26258
  ZdModalCloseButton,
26055
26259
  ZdList,
@@ -26066,7 +26270,7 @@ const components = {
26066
26270
  ZdGridCell,
26067
26271
  ZdGridCellContent,
26068
26272
  ZdGridAction,
26069
- ZdTooltipOverflow,
26273
+ ZdTooltipOverflow: _sfc_main$w,
26070
26274
  ZdGridHeaderIcon,
26071
26275
  ZdGridCheckbox,
26072
26276
  ZdSearch,
@@ -26101,6 +26305,64 @@ function RegisterComponents(app) {
26101
26305
  app.component(name, components[name]);
26102
26306
  }
26103
26307
  }
26308
+ const vTooltipOverflow = {
26309
+ mounted(el, binding) {
26310
+ const tooltipManager = useTooltipManager();
26311
+ let overflowType = "ellipsis";
26312
+ if (binding.modifiers.hidden) {
26313
+ overflowType = "hidden";
26314
+ } else if (binding.modifiers.wrap) {
26315
+ overflowType = "wrap";
26316
+ } else if (binding.modifiers.ellipsis) {
26317
+ overflowType = "ellipsis";
26318
+ } else if (binding.arg && !Number.isNaN(Number(binding.arg))) {
26319
+ overflowType = Number(binding.arg);
26320
+ }
26321
+ applyOverflowStyles(el, overflowType);
26322
+ const tooltipText = String(binding.value);
26323
+ const onMouseEnter = () => {
26324
+ const isOverflowing = checkOverflow(el, overflowType);
26325
+ if (isOverflowing) {
26326
+ tooltipManager.showTooltip(el, tooltipText);
26327
+ }
26328
+ };
26329
+ const onMouseLeave = () => {
26330
+ tooltipManager.hideTooltip();
26331
+ };
26332
+ el._tooltipOverflowHandlers = {
26333
+ mouseenter: onMouseEnter,
26334
+ mouseleave: onMouseLeave
26335
+ };
26336
+ el.addEventListener("mouseenter", onMouseEnter);
26337
+ el.addEventListener("mouseleave", onMouseLeave);
26338
+ },
26339
+ unmounted(el) {
26340
+ const handlers = el._tooltipOverflowHandlers;
26341
+ if (handlers) {
26342
+ el.removeEventListener("mouseenter", handlers.mouseenter);
26343
+ el.removeEventListener("mouseleave", handlers.mouseleave);
26344
+ delete el._tooltipOverflowHandlers;
26345
+ }
26346
+ }
26347
+ };
26348
+ function applyOverflowStyles(el, overflowType) {
26349
+ el.classList.add("zd-tooltip-overflow");
26350
+ if (overflowType === "hidden") {
26351
+ el.classList.add("zd-tooltip-overflow--hidden");
26352
+ } else if (overflowType === "wrap") {
26353
+ el.classList.add("zd-tooltip-overflow--wrap");
26354
+ } else if (overflowType === "ellipsis") {
26355
+ el.classList.add("zd-tooltip-overflow--ellipsis");
26356
+ } else if (typeof overflowType === "number") {
26357
+ el.classList.add("zd-tooltip-overflow--clamp", `zd-tooltip-overflow--clamp-${overflowType}`);
26358
+ }
26359
+ }
26360
+ function checkOverflow(el, overflowType) {
26361
+ if (typeof overflowType === "number") {
26362
+ return true;
26363
+ }
26364
+ return el.scrollWidth > el.clientWidth;
26365
+ }
26104
26366
  const ZeedhiVuetify = {
26105
26367
  install(app, { theme, icons: icons2, display } = {}) {
26106
26368
  const vuetify = createVuetify({
@@ -26120,15 +26382,20 @@ const ZeedhiVuetify = {
26120
26382
  app.config.globalProperties.$getIcon = getIconPlugin;
26121
26383
  app.config.globalProperties.$formatSize = formatSizePlugin;
26122
26384
  app.config.globalProperties.$styleObject = styleObjectPlugin;
26385
+ app.directive("tooltip-overflow", vTooltipOverflow);
26386
+ const tooltipData = installTooltipOverflow(app);
26387
+ setupTooltipOverflowCleanup(app, tooltipData);
26123
26388
  }
26124
26389
  };
26125
26390
  export {
26126
26391
  CheckboxMultipleProps,
26392
+ HeightProps,
26127
26393
  IconRenderer,
26128
26394
  Logger,
26129
26395
  NotProvidedError,
26130
26396
  RegisterComponents,
26131
26397
  RowNotFoundError,
26398
+ WidthProps,
26132
26399
  ZdAlertProps,
26133
26400
  ZdBadgeProps,
26134
26401
  ZdBreadcrumbsProps,
@@ -26206,9 +26473,11 @@ export {
26206
26473
  formatSizePlugin,
26207
26474
  getIconPlugin,
26208
26475
  getRootElement,
26476
+ installTooltipOverflow,
26209
26477
  mergeDictionaries,
26210
26478
  positionTooltip,
26211
26479
  setFillHeight,
26480
+ setupTooltipOverflowCleanup,
26212
26481
  styleObjectPlugin,
26213
26482
  useButtonInstance,
26214
26483
  useCellSelection,