@zeedhi/vuetify 3.1.0 → 3.2.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 (200) hide show
  1. package/dist/zd-vuetify.css +5 -17
  2. package/dist/zd-vuetify.min.css +1 -1
  3. package/dist/zd-vuetify.min.js +15 -17
  4. package/dist/zd-vuetify.mjs +334 -247
  5. package/package.json +3 -3
  6. package/src/components/zd-checkbox/ZdCheckbox.vue +4 -0
  7. package/src/components/zd-component/ZdComponent.ts +1 -1
  8. package/src/components/zd-date-input/ZdDateInput.ts +1 -0
  9. package/src/components/zd-grid-editable/ZdGridEditable.ts +16 -13
  10. package/src/components/zd-select/ZdSelect.ts +18 -1
  11. package/src/components/zd-select/ZdSelect.vue +3 -2
  12. package/src/components/zd-select-multiple/ZdSelectMultiple.ts +21 -3
  13. package/src/components/zd-select-multiple/ZdSelectMultiple.vue +10 -1
  14. package/src/components/zd-tabs/ZdTabItem.vue +2 -0
  15. package/src/components/zd-text-input/ZdTextInput.ts +6 -0
  16. package/src/components/zd-text-input/ZdTextInput.vue +1 -1
  17. package/src/components/zd-textarea/ZdTextarea.vue +1 -0
  18. package/src/components/zd-tooltip/ZdTooltip.vue +2 -1
  19. package/src/composables/gridColumns.ts +11 -6
  20. package/types/components/zd-alert/ZdAlert.d.ts +299 -299
  21. package/types/components/zd-badge/ZdBadge.d.ts +159 -159
  22. package/types/components/zd-breadcrumbs/ZdBreadcrumbs.d.ts +168 -168
  23. package/types/components/zd-button/ZdButton.d.ts +159 -159
  24. package/types/components/zd-button-group/ZdButtonGroup.d.ts +168 -168
  25. package/types/components/zd-card/ZdCard.d.ts +159 -159
  26. package/types/components/zd-carousel/ZdCarousel.d.ts +476 -476
  27. package/types/components/zd-checkbox-multiple/ZdCheckboxMultiple.d.ts +599 -599
  28. package/types/components/zd-chip/ZdChip.d.ts +159 -159
  29. package/types/components/zd-code-viewer/ZdCodeViewer.d.ts +168 -168
  30. package/types/components/zd-col/ZdCol.d.ts +168 -168
  31. package/types/components/zd-collapse-card/ZdCollapseCard.d.ts +374 -374
  32. package/types/components/zd-container/ZdContainer.d.ts +168 -168
  33. package/types/components/zd-currency/ZdCurrency.d.ts +595 -595
  34. package/types/components/zd-date-range/ZdDateRange.d.ts +600 -597
  35. package/types/components/zd-divider/ZdDivider.d.ts +168 -168
  36. package/types/components/zd-dropdown/ZdDropdown.d.ts +252 -252
  37. package/types/components/zd-footer/ZdFooter.d.ts +420 -420
  38. package/types/components/zd-frame-page/ZdFramePage.d.ts +160 -160
  39. package/types/components/zd-grid/ZdGrid.d.ts +2976 -2976
  40. package/types/components/zd-grid/composables/grid-instance.d.ts +1351 -1351
  41. package/types/components/zd-grid/footer/ZdGridFooter.d.ts +1351 -1351
  42. package/types/components/zd-grid/toolbar/ZdGridToolbar.d.ts +1351 -1351
  43. package/types/components/zd-grid-editable/ZdGridEditable.d.ts +2977 -2979
  44. package/types/components/zd-grid-editable/cell/ZdGridEditableCell.d.ts +271 -271
  45. package/types/components/zd-header/ZdHeader.d.ts +412 -412
  46. package/types/components/zd-image/ZdImage.d.ts +168 -168
  47. package/types/components/zd-increment/ZdIncrement.d.ts +595 -595
  48. package/types/components/zd-iterable/ZdIterableNoData.d.ts +1351 -1351
  49. package/types/components/zd-iterable/zd-iterable-columns-button/ZdIterableColumnsButton.d.ts +472 -472
  50. package/types/components/zd-iterable/zd-iterable-page-info/ZdIterablePageInfo.d.ts +481 -481
  51. package/types/components/zd-iterable/zd-iterable-page-size/ZdIterablePageSize.d.ts +1080 -1080
  52. package/types/components/zd-iterable/zd-iterable-pagination/ZdIterablePagination.d.ts +481 -481
  53. package/types/components/zd-iterable-component-render/ZdIterableComponentRender.d.ts +816 -816
  54. package/types/components/zd-layout/ZdLayout.d.ts +168 -168
  55. package/types/components/zd-list/ZdList.d.ts +447 -447
  56. package/types/components/zd-list/ZdListGroup.d.ts +560 -560
  57. package/types/components/zd-list/ZdListItem.d.ts +280 -280
  58. package/types/components/zd-login/ZdLogin.d.ts +336 -336
  59. package/types/components/zd-login/ZdLoginButton.d.ts +526 -526
  60. package/types/components/zd-main/ZdMain.d.ts +168 -168
  61. package/types/components/zd-master-detail/ZdMasterDetail.d.ts +167 -167
  62. package/types/components/zd-menu/ZdMenu.d.ts +3060 -1068
  63. package/types/components/zd-menu/ZdMenuButton.d.ts +159 -159
  64. package/types/components/zd-menu/ZdMenuGroup.d.ts +5205 -1000
  65. package/types/components/zd-menu/ZdMenuLink.d.ts +8943 -1529
  66. package/types/components/zd-menu/ZdMenuSeparator.d.ts +168 -168
  67. package/types/components/zd-modal/ZdModalCloseButton.d.ts +159 -159
  68. package/types/components/zd-month/ZdMonth.d.ts +598 -597
  69. package/types/components/zd-number-input/ZdNumberInput.d.ts +596 -596
  70. package/types/components/zd-password/ZdPassword.d.ts +595 -595
  71. package/types/components/zd-progress/ZdProgress.d.ts +252 -252
  72. package/types/components/zd-row/ZdRow.d.ts +168 -168
  73. package/types/components/zd-switch/ZdSwitch.d.ts +595 -595
  74. package/types/components/zd-table/ZdTable.d.ts +313 -313
  75. package/types/components/zd-tabs/ZdTab.d.ts +140 -140
  76. package/types/components/zd-tabs/ZdTabs.d.ts +310 -310
  77. package/types/components/zd-tag/ZdTag.d.ts +168 -168
  78. package/types/components/zd-text/ZdText.d.ts +168 -168
  79. package/types/components/zd-time/ZdTime.d.ts +595 -595
  80. package/types/components/zd-tooltip/ZdTooltip.d.ts +168 -168
  81. package/types/components/zd-tree/ZdTree.d.ts +591 -591
  82. package/types/components/zd-tree-grid/ZdTreeGrid.d.ts +1485 -1485
  83. package/types/composables/gridColumns.d.ts +140 -140
  84. package/types/components/tek-grid/TekGrid.d.ts +0 -7258
  85. package/types/components/tek-grid/TekGrid.ts.d.ts +0 -7258
  86. package/types/components/tek-grid/column-filter/TekGridColumnFilter.d.ts +0 -129
  87. package/types/components/tek-grid/column-filter/TekGridColumnFilter.ts.d.ts +0 -129
  88. package/types/components/tek-grid/column-header/TekGridHeaderRow.d.ts +0 -225
  89. package/types/components/tek-grid/column-header/TekGridHeaderRow.ts.d.ts +0 -225
  90. package/types/components/tek-grid/columns-button/TekGridColumnsButton.d.ts +0 -2432
  91. package/types/components/tek-grid/columns-button/TekGridColumnsButton.ts.d.ts +0 -2432
  92. package/types/components/tek-grid/columns-button/TekGridColumnsOptionsController.d.ts +0 -65
  93. package/types/components/tek-grid/columns-button/TekGridColumnsOptionsModal.d.ts +0 -9
  94. package/types/components/tek-grid/filter-button/TekGridFilterButton.d.ts +0 -2920
  95. package/types/components/tek-grid/filter-button/TekGridFilterButton.ts.d.ts +0 -2920
  96. package/types/components/tek-grid/indentation/TekGridIndentation.d.ts +0 -32
  97. package/types/components/tek-grid/indentation/TekGridIndentation.ts.d.ts +0 -32
  98. package/types/components/tek-grid/layout-options/TekGridLayoutOptions.d.ts +0 -1892
  99. package/types/components/tek-grid/layout-options/TekGridLayoutOptions.ts.d.ts +0 -1892
  100. package/types/components/tek-grid/row/TekGridFooterRow.d.ts +0 -90
  101. package/types/components/tek-grid/row/TekGridFooterRow.ts.d.ts +0 -90
  102. package/types/components/tek-grid/row/TekGridGroupRow.d.ts +0 -87
  103. package/types/components/tek-grid/row/TekGridGroupRow.ts.d.ts +0 -87
  104. package/types/components/tooltip-overflow/ZdTooltipOverflow.ts.d.ts +0 -50
  105. package/types/components/zd-activator-wrapper/ZdActivatorWrapper.ts.d.ts +0 -25
  106. package/types/components/zd-alert/ZdAlert.ts.d.ts +0 -884
  107. package/types/components/zd-badge/ZdBadge.ts.d.ts +0 -624
  108. package/types/components/zd-breadcrumbs/ZdBreadcrumbs.ts.d.ts +0 -697
  109. package/types/components/zd-button/ZdButton.ts.d.ts +0 -1158
  110. package/types/components/zd-button-group/ZdButtonGroup.ts.d.ts +0 -785
  111. package/types/components/zd-card/ZdCard.ts.d.ts +0 -1028
  112. package/types/components/zd-carousel/ZdCarousel.ts.d.ts +0 -2007
  113. package/types/components/zd-checkbox/ZdCheckbox.ts.d.ts +0 -642
  114. package/types/components/zd-checkbox-multiple/ZdCheckboxMultiple.ts.d.ts +0 -2010
  115. package/types/components/zd-chip/ZdChip.ts.d.ts +0 -1256
  116. package/types/components/zd-code-viewer/ZdCodeViewer.ts.d.ts +0 -791
  117. package/types/components/zd-col/ZdCol.ts.d.ts +0 -741
  118. package/types/components/zd-collapse-card/ZdCollapseCard.ts.d.ts +0 -1583
  119. package/types/components/zd-container/ZdContainer.ts.d.ts +0 -722
  120. package/types/components/zd-currency/ZdCurrency.ts.d.ts +0 -2024
  121. package/types/components/zd-date-input/ZdDateInput.ts.d.ts +0 -960
  122. package/types/components/zd-dialog/ZdDialog.ts.d.ts +0 -262
  123. package/types/components/zd-divider/ZdDivider.ts.d.ts +0 -623
  124. package/types/components/zd-dropdown/ZdDropdown.ts.d.ts +0 -836
  125. package/types/components/zd-footer/ZdFooter.ts.d.ts +0 -1262
  126. package/types/components/zd-form/ZdForm.ts.d.ts +0 -118
  127. package/types/components/zd-frame/ZdFrame.ts.d.ts +0 -138
  128. package/types/components/zd-frame-page/ZdFramePage.ts.d.ts +0 -805
  129. package/types/components/zd-grid/ZdGrid.ts.d.ts +0 -7304
  130. package/types/components/zd-grid/cell/ZdGridAction.ts.d.ts +0 -14
  131. package/types/components/zd-grid/cell/ZdGridCell.ts.d.ts +0 -68
  132. package/types/components/zd-grid/cell/ZdGridCellContent.ts.d.ts +0 -58
  133. package/types/components/zd-grid/cell/ZdGridCheckbox.ts.d.ts +0 -53
  134. package/types/components/zd-grid/column-header/ZdGridColumnHeader.ts.d.ts +0 -112
  135. package/types/components/zd-grid/column-header/ZdGridHeaderIcon.ts.d.ts +0 -46
  136. package/types/components/zd-grid/column-header/ZdGridHeaderRow.ts.d.ts +0 -165
  137. package/types/components/zd-grid/column-header/ZdGridSort.ts.d.ts +0 -47
  138. package/types/components/zd-grid/footer/ZdGridFooter.ts.d.ts +0 -2087
  139. package/types/components/zd-grid/helper/ZdGridHelper.ts.d.ts +0 -16
  140. package/types/components/zd-grid/row/TableRow.ts.d.ts +0 -34
  141. package/types/components/zd-grid/row/ZdGridRow.ts.d.ts +0 -105
  142. package/types/components/zd-grid/toolbar/ZdGridToolbar.ts.d.ts +0 -2086
  143. package/types/components/zd-grid-editable/ZdGridEditable.ts.d.ts +0 -8663
  144. package/types/components/zd-grid-editable/cell/ZdGridEditableCell.ts.d.ts +0 -637
  145. package/types/components/zd-grid-editable/row/ZdGridEditableRow.ts.d.ts +0 -126
  146. package/types/components/zd-header/ZdHeader.ts.d.ts +0 -1320
  147. package/types/components/zd-icon/ZdIcon.ts.d.ts +0 -383
  148. package/types/components/zd-image/ZdImage.ts.d.ts +0 -753
  149. package/types/components/zd-increment/ZdIncrement.ts.d.ts +0 -2069
  150. package/types/components/zd-iterable/ZdIterableNoData.ts.d.ts +0 -2089
  151. package/types/components/zd-iterable/zd-iterable-columns-button/ZdIterableColumnsButton.ts.d.ts +0 -1645
  152. package/types/components/zd-iterable/zd-iterable-page-info/ZdIterablePageInfo.ts.d.ts +0 -1081
  153. package/types/components/zd-iterable/zd-iterable-page-size/ZdIterablePageSize.ts.d.ts +0 -2763
  154. package/types/components/zd-iterable/zd-iterable-pagination/ZdIterablePagination.ts.d.ts +0 -1627
  155. package/types/components/zd-iterable/zd-search/ZdSearch.ts.d.ts +0 -766
  156. package/types/components/zd-iterable-component-render/ZdIterableComponentRender.ts.d.ts +0 -2484
  157. package/types/components/zd-layout/ZdLayout.ts.d.ts +0 -647
  158. package/types/components/zd-list/ZdList.ts.d.ts +0 -1140
  159. package/types/components/zd-list/ZdListGroup.ts.d.ts +0 -1332
  160. package/types/components/zd-list/ZdListItem.ts.d.ts +0 -848
  161. package/types/components/zd-loading/ZdLoading.ts.d.ts +0 -350
  162. package/types/components/zd-login/ZdLogin.ts.d.ts +0 -1072
  163. package/types/components/zd-login/ZdLoginButton.ts.d.ts +0 -1910
  164. package/types/components/zd-main/ZdMain.ts.d.ts +0 -619
  165. package/types/components/zd-master-detail/ZdMasterDetail.ts.d.ts +0 -684
  166. package/types/components/zd-menu/ZdMenu.ts.d.ts +0 -4484
  167. package/types/components/zd-menu/ZdMenuButton.ts.d.ts +0 -1142
  168. package/types/components/zd-menu/ZdMenuGroup.ts.d.ts +0 -6286
  169. package/types/components/zd-menu/ZdMenuLink.ts.d.ts +0 -10437
  170. package/types/components/zd-menu/ZdMenuSeparator.ts.d.ts +0 -600
  171. package/types/components/zd-modal/ZdModal.ts.d.ts +0 -10
  172. package/types/components/zd-modal/ZdModalCloseButton.ts.d.ts +0 -1137
  173. package/types/components/zd-month/ZdMonth.ts.d.ts +0 -2217
  174. package/types/components/zd-number-input/ZdNumberInput.ts.d.ts +0 -2021
  175. package/types/components/zd-password/ZdPassword.ts.d.ts +0 -2014
  176. package/types/components/zd-progress/ZdProgress.ts.d.ts +0 -859
  177. package/types/components/zd-radio/ZdRadio.ts.d.ts +0 -682
  178. package/types/components/zd-row/ZdRow.ts.d.ts +0 -734
  179. package/types/components/zd-select/ZdSelect.ts.d.ts +0 -313
  180. package/types/components/zd-select-multiple/ZdSelectMultiple.ts.d.ts +0 -333
  181. package/types/components/zd-svg-map/ZdSvgMap.ts.d.ts +0 -414
  182. package/types/components/zd-switch/ZdSwitch.ts.d.ts +0 -1918
  183. package/types/components/zd-table/ZdTable.ts.d.ts +0 -1092
  184. package/types/components/zd-tabs/ZdTab.ts.d.ts +0 -674
  185. package/types/components/zd-tabs/ZdTabItem.ts.d.ts +0 -268
  186. package/types/components/zd-tabs/ZdTabs.ts.d.ts +0 -929
  187. package/types/components/zd-tag/ZdTag.ts.d.ts +0 -613
  188. package/types/components/zd-text/ZdText.ts.d.ts +0 -670
  189. package/types/components/zd-text-input/ZdTextInput.ts.d.ts +0 -746
  190. package/types/components/zd-textarea/ZdTextarea.ts.d.ts +0 -877
  191. package/types/components/zd-time/ZdTime.ts.d.ts +0 -2224
  192. package/types/components/zd-tooltip/ZdTooltip.ts.d.ts +0 -781
  193. package/types/components/zd-tree/ZdTree.ts.d.ts +0 -1878
  194. package/types/components/zd-tree/ZdTreeAfterTitle.ts.d.ts +0 -26
  195. package/types/components/zd-tree/ZdTreeCheckbox.ts.d.ts +0 -74
  196. package/types/components/zd-tree-grid/ZdTreeGrid.ts.d.ts +0 -4178
  197. package/types/components/zd-tree-grid/cell/ZdTreeGridCell.ts.d.ts +0 -92
  198. package/types/components/zd-tree-grid/row/ZdTreeGridRow.ts.d.ts +0 -124
  199. package/types/composables/useTableLayout.d.ts +0 -25
  200. package/types/utils/isArrayOperation.d.ts +0 -2
@@ -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, 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";
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, unref, resolveDynamicComponent, mergeProps, createVNode, render, useTemplateRef, getCurrentInstance, reactive, watch, inject, provide, onBeforeMount, onUnmounted, nextTick, toHandlers, createSlots, shallowReactive, toRefs, useId, onUpdated, 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";
@@ -1343,7 +1343,7 @@ function useCreateInstance(props, ctx, ObjectClass, propsDefs = {}, checkParentT
1343
1343
  Object.keys(props).forEach((key) => {
1344
1344
  if (!(key in instance)) return;
1345
1345
  if (typeof props[key] === "function") return;
1346
- if (propsDefs[key] && !propsDefs[key].watch) return;
1346
+ if (propsDefs[key] && propsDefs[key].watch === false) return;
1347
1347
  watch(
1348
1348
  () => props[key],
1349
1349
  (value) => {
@@ -7256,6 +7256,10 @@ function useTextInput$1(instance, ctx, root2) {
7256
7256
  (_a = rootElement.value) == null ? void 0 : _a.getElementsByTagName("input")[0].blur();
7257
7257
  });
7258
7258
  };
7259
+ const clearInput = () => {
7260
+ inputScope.input();
7261
+ inputScope.change();
7262
+ };
7259
7263
  const getIconClickEvents = () => {
7260
7264
  const events = {};
7261
7265
  if (instance.events.appendIconClick) {
@@ -7290,6 +7294,7 @@ function useTextInput$1(instance, ctx, root2) {
7290
7294
  appendOuterIconClick,
7291
7295
  prependOuterIconClick,
7292
7296
  setBlur,
7297
+ clearInput,
7293
7298
  getIconClickEvents
7294
7299
  };
7295
7300
  }
@@ -7636,6 +7641,7 @@ const dateInputComponent = defineComponent({
7636
7641
  instance.showDatePicker = false;
7637
7642
  }
7638
7643
  instance.validate();
7644
+ instance.change();
7639
7645
  };
7640
7646
  const helperValuesOptionClick = (helper) => {
7641
7647
  const value = DateHelper.getValue(helper, instance.dateFormat);
@@ -8951,90 +8957,109 @@ function useCellSelection({
8951
8957
  };
8952
8958
  }
8953
8959
  /**!
8954
- * Sortable 1.15.7
8960
+ * Sortable 1.15.6
8955
8961
  * @author RubaXa <trash@rubaxa.org>
8956
8962
  * @author owenm <owen23355@gmail.com>
8957
8963
  * @license MIT
8958
8964
  */
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;
8966
- }
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]);
8972
- }
8973
- return n;
8974
- }, _extends.apply(null, arguments);
8975
- }
8976
- function ownKeys(e, r) {
8977
- var t = Object.keys(e);
8965
+ function ownKeys(object, enumerableOnly) {
8966
+ var keys = Object.keys(object);
8978
8967
  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);
8968
+ var symbols = Object.getOwnPropertySymbols(object);
8969
+ if (enumerableOnly) {
8970
+ symbols = symbols.filter(function(sym) {
8971
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
8972
+ });
8973
+ }
8974
+ keys.push.apply(keys, symbols);
8983
8975
  }
8984
- return t;
8976
+ return keys;
8985
8977
  }
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));
8993
- });
8978
+ function _objectSpread2(target) {
8979
+ for (var i = 1; i < arguments.length; i++) {
8980
+ var source = arguments[i] != null ? arguments[i] : {};
8981
+ if (i % 2) {
8982
+ ownKeys(Object(source), true).forEach(function(key) {
8983
+ _defineProperty(target, key, source[key]);
8984
+ });
8985
+ } else if (Object.getOwnPropertyDescriptors) {
8986
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8987
+ } else {
8988
+ ownKeys(Object(source)).forEach(function(key) {
8989
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8990
+ });
8991
+ }
8994
8992
  }
8995
- return e;
8993
+ return target;
8996
8994
  }
8997
- function _objectWithoutProperties(e, t) {
8998
- if (null == e) return {};
8999
- var o, r, i = _objectWithoutPropertiesLoose(e, t);
9000
- if (Object.getOwnPropertySymbols) {
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]);
8995
+ function _typeof(obj) {
8996
+ "@babel/helpers - typeof";
8997
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
8998
+ _typeof = function(obj2) {
8999
+ return typeof obj2;
9000
+ };
9001
+ } else {
9002
+ _typeof = function(obj2) {
9003
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
9004
+ };
9003
9005
  }
9004
- return i;
9006
+ return _typeof(obj);
9005
9007
  }
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;
9008
+ function _defineProperty(obj, key, value) {
9009
+ if (key in obj) {
9010
+ Object.defineProperty(obj, key, {
9011
+ value,
9012
+ enumerable: true,
9013
+ configurable: true,
9014
+ writable: true
9015
+ });
9016
+ } else {
9017
+ obj[key] = value;
9018
+ }
9019
+ return obj;
9014
9020
  }
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);
9021
+ function _extends() {
9022
+ _extends = Object.assign || function(target) {
9023
+ for (var i = 1; i < arguments.length; i++) {
9024
+ var source = arguments[i];
9025
+ for (var key in source) {
9026
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
9027
+ target[key] = source[key];
9028
+ }
9029
+ }
9030
+ }
9031
+ return target;
9032
+ };
9033
+ return _extends.apply(this, arguments);
9024
9034
  }
9025
- function _toPropertyKey(t) {
9026
- var i = _toPrimitive(t, "string");
9027
- return "symbol" == typeof i ? i : i + "";
9035
+ function _objectWithoutPropertiesLoose(source, excluded) {
9036
+ if (source == null) return {};
9037
+ var target = {};
9038
+ var sourceKeys = Object.keys(source);
9039
+ var key, i;
9040
+ for (i = 0; i < sourceKeys.length; i++) {
9041
+ key = sourceKeys[i];
9042
+ if (excluded.indexOf(key) >= 0) continue;
9043
+ target[key] = source[key];
9044
+ }
9045
+ return target;
9028
9046
  }
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);
9047
+ function _objectWithoutProperties(source, excluded) {
9048
+ if (source == null) return {};
9049
+ var target = _objectWithoutPropertiesLoose(source, excluded);
9050
+ var key, i;
9051
+ if (Object.getOwnPropertySymbols) {
9052
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
9053
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
9054
+ key = sourceSymbolKeys[i];
9055
+ if (excluded.indexOf(key) >= 0) continue;
9056
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
9057
+ target[key] = source[key];
9058
+ }
9059
+ }
9060
+ return target;
9036
9061
  }
9037
- var version = "1.15.7";
9062
+ var version = "1.15.6";
9038
9063
  function userAgent(pattern) {
9039
9064
  if (typeof window !== "undefined" && window.navigator) {
9040
9065
  return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
@@ -9075,7 +9100,7 @@ function matches(el, selector) {
9075
9100
  return false;
9076
9101
  }
9077
9102
  function getParentOrHost(el) {
9078
- return el.host && el !== document && el.host.nodeType && el.host !== el ? el.host : el.parentNode;
9103
+ return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
9079
9104
  }
9080
9105
  function closest(el, selector, ctx, includeCTX) {
9081
9106
  if (el) {
@@ -10560,11 +10585,8 @@ Sortable.prototype = /** @lends Sortable.prototype */
10560
10585
  _nulling: function _nulling() {
10561
10586
  pluginEvent2("nulling", this);
10562
10587
  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;
10563
- var el = this.el;
10564
- savedInputChecked.forEach(function(checkEl) {
10565
- if (el.contains(checkEl)) {
10566
- checkEl.checked = true;
10567
- }
10588
+ savedInputChecked.forEach(function(el) {
10589
+ el.checked = true;
10568
10590
  });
10569
10591
  savedInputChecked.length = lastDx = lastDy = 0;
10570
10592
  },
@@ -11445,12 +11467,16 @@ function useGridColumns({
11445
11467
  const setViewGetWidth = () => {
11446
11468
  instance.columns.forEach((column) => {
11447
11469
  column.setViewGetWidth(() => {
11448
- const index2 = instance.columns.filter((col) => col.isVisible).findIndex((col) => col.name === column.name);
11449
11470
  const el = rootEl2.value;
11450
- const colEl = el.querySelector(`
11451
- .zd-grid-table-header .zd-table-cell[index='${index2}']
11452
- `);
11453
- return (colEl == null ? void 0 : colEl.clientWidth) || 0;
11471
+ if (!el) return 0;
11472
+ const headerColumns = Array.from(el.querySelectorAll("table thead tr th[column-name]"));
11473
+ const namedColumnEl = headerColumns.find((col) => col.getAttribute("column-name") === column.name);
11474
+ if (namedColumnEl) {
11475
+ return parseFloat(getComputedStyle(namedColumnEl).width) || namedColumnEl.clientWidth || 0;
11476
+ }
11477
+ const index2 = instance.columns.filter((col) => col.isVisible).findIndex((col) => col.name === column.name);
11478
+ const indexedColumnEl = el.querySelector(`table thead tr th[index='${index2}']`);
11479
+ return (indexedColumnEl == null ? void 0 : indexedColumnEl.clientWidth) || 0;
11454
11480
  });
11455
11481
  });
11456
11482
  };
@@ -12159,6 +12185,133 @@ function useGridInstance$1({
12159
12185
  shouldRender
12160
12186
  };
12161
12187
  }
12188
+ var FUNC_ERROR_TEXT = "Expected a function";
12189
+ var NAN = 0 / 0;
12190
+ var symbolTag = "[object Symbol]";
12191
+ var reTrim = /^\s+|\s+$/g;
12192
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
12193
+ var reIsBinary = /^0b[01]+$/i;
12194
+ var reIsOctal = /^0o[0-7]+$/i;
12195
+ var freeParseInt = parseInt;
12196
+ var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
12197
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
12198
+ var root = freeGlobal || freeSelf || Function("return this")();
12199
+ var objectProto = Object.prototype;
12200
+ var objectToString = objectProto.toString;
12201
+ var nativeMax = Math.max, nativeMin = Math.min;
12202
+ var now = function() {
12203
+ return root.Date.now();
12204
+ };
12205
+ function debounce(func, wait, options) {
12206
+ var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
12207
+ if (typeof func != "function") {
12208
+ throw new TypeError(FUNC_ERROR_TEXT);
12209
+ }
12210
+ wait = toNumber(wait) || 0;
12211
+ if (isObject(options)) {
12212
+ leading = !!options.leading;
12213
+ maxing = "maxWait" in options;
12214
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
12215
+ trailing = "trailing" in options ? !!options.trailing : trailing;
12216
+ }
12217
+ function invokeFunc(time) {
12218
+ var args = lastArgs, thisArg = lastThis;
12219
+ lastArgs = lastThis = void 0;
12220
+ lastInvokeTime = time;
12221
+ result = func.apply(thisArg, args);
12222
+ return result;
12223
+ }
12224
+ function leadingEdge(time) {
12225
+ lastInvokeTime = time;
12226
+ timerId = setTimeout(timerExpired, wait);
12227
+ return leading ? invokeFunc(time) : result;
12228
+ }
12229
+ function remainingWait(time) {
12230
+ var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result2 = wait - timeSinceLastCall;
12231
+ return maxing ? nativeMin(result2, maxWait - timeSinceLastInvoke) : result2;
12232
+ }
12233
+ function shouldInvoke(time) {
12234
+ var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
12235
+ return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
12236
+ }
12237
+ function timerExpired() {
12238
+ var time = now();
12239
+ if (shouldInvoke(time)) {
12240
+ return trailingEdge(time);
12241
+ }
12242
+ timerId = setTimeout(timerExpired, remainingWait(time));
12243
+ }
12244
+ function trailingEdge(time) {
12245
+ timerId = void 0;
12246
+ if (trailing && lastArgs) {
12247
+ return invokeFunc(time);
12248
+ }
12249
+ lastArgs = lastThis = void 0;
12250
+ return result;
12251
+ }
12252
+ function cancel() {
12253
+ if (timerId !== void 0) {
12254
+ clearTimeout(timerId);
12255
+ }
12256
+ lastInvokeTime = 0;
12257
+ lastArgs = lastCallTime = lastThis = timerId = void 0;
12258
+ }
12259
+ function flush() {
12260
+ return timerId === void 0 ? result : trailingEdge(now());
12261
+ }
12262
+ function debounced() {
12263
+ var time = now(), isInvoking = shouldInvoke(time);
12264
+ lastArgs = arguments;
12265
+ lastThis = this;
12266
+ lastCallTime = time;
12267
+ if (isInvoking) {
12268
+ if (timerId === void 0) {
12269
+ return leadingEdge(lastCallTime);
12270
+ }
12271
+ if (maxing) {
12272
+ timerId = setTimeout(timerExpired, wait);
12273
+ return invokeFunc(lastCallTime);
12274
+ }
12275
+ }
12276
+ if (timerId === void 0) {
12277
+ timerId = setTimeout(timerExpired, wait);
12278
+ }
12279
+ return result;
12280
+ }
12281
+ debounced.cancel = cancel;
12282
+ debounced.flush = flush;
12283
+ return debounced;
12284
+ }
12285
+ function isObject(value) {
12286
+ var type = typeof value;
12287
+ return !!value && (type == "object" || type == "function");
12288
+ }
12289
+ function isObjectLike(value) {
12290
+ return !!value && typeof value == "object";
12291
+ }
12292
+ function isSymbol(value) {
12293
+ return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
12294
+ }
12295
+ function toNumber(value) {
12296
+ if (typeof value == "number") {
12297
+ return value;
12298
+ }
12299
+ if (isSymbol(value)) {
12300
+ return NAN;
12301
+ }
12302
+ if (isObject(value)) {
12303
+ var other = typeof value.valueOf == "function" ? value.valueOf() : value;
12304
+ value = isObject(other) ? other + "" : other;
12305
+ }
12306
+ if (typeof value != "string") {
12307
+ return value === 0 ? value : +value;
12308
+ }
12309
+ value = value.replace(reTrim, "");
12310
+ var isBinary = reIsBinary.test(value);
12311
+ return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
12312
+ }
12313
+ var lodash_debounce = debounce;
12314
+ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(lodash_debounce);
12162
12315
  const ZdGridEditableProps$1 = buildProps({
12163
12316
  ...ZdGridProps$1,
12164
12317
  doubleClickEdit: {
@@ -12215,20 +12368,21 @@ function useGridEditableInstance$1({
12215
12368
  if (isEditing({ row, column })) return;
12216
12369
  const key = instance.getRowKey(row);
12217
12370
  editingCell.value = { key, column: column.name };
12218
- setTimeout(() => {
12219
- const key2 = instance.getRowKey(row);
12220
- try {
12221
- const component2 = instance.getComponent(String(key2), column.name);
12222
- component2 == null ? void 0 : component2.setFocus();
12223
- if (component2 instanceof Toggleable) {
12224
- component2.toggleValue();
12225
- component2.change();
12226
- }
12227
- } catch (e) {
12228
- if (!(e instanceof InstanceNotFoundError)) throw e;
12229
- }
12230
- });
12371
+ checkToggleComponent(row, column);
12231
12372
  };
12373
+ const checkToggleComponent = debounce$1((row, column) => {
12374
+ const key = instance.getRowKey(row);
12375
+ try {
12376
+ const component2 = instance.getComponent(String(key), column.name);
12377
+ component2 == null ? void 0 : component2.setFocus();
12378
+ if (component2 instanceof Toggleable) {
12379
+ component2.toggleValue();
12380
+ component2.change();
12381
+ }
12382
+ } catch (e) {
12383
+ if (!(e instanceof InstanceNotFoundError)) throw e;
12384
+ }
12385
+ });
12232
12386
  const viewEnterEdit = (key, columnName) => {
12233
12387
  editingCell.value = { key, column: columnName };
12234
12388
  const row = instance.findRow(key);
@@ -14227,7 +14381,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
14227
14381
  }, null, 8, ["disabled", "isSelected", "cellSelection", "isCurrent"])) : createCommentVNode("", true),
14228
14382
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (column, index2, ___, _cached) => {
14229
14383
  const _memo = [_ctx.row, column, _ctx.fixedLeft, _ctx.fixedRight, _ctx.cellSelection, _ctx.isCurrent({ row: _ctx.row, column })];
14230
- if (_cached && _cached.el && _cached.key === column.name && isMemoSame(_cached, _memo)) return _cached;
14384
+ if (_cached && _cached.key === column.name && isMemoSame(_cached, _memo)) return _cached;
14231
14385
  const _item = (openBlock(), createBlock(_component_zd_grid_cell, {
14232
14386
  key: column.name,
14233
14387
  row: _ctx.row,
@@ -15282,6 +15436,11 @@ function useSelect$1(instance, ctx, root2) {
15282
15436
  const rootElement = getRootElement(root2);
15283
15437
  instance.keydown(event, rootElement.value);
15284
15438
  };
15439
+ const selectClear = () => {
15440
+ if (!instance.autocomplete) {
15441
+ textInputScope.input();
15442
+ }
15443
+ };
15285
15444
  const autoSelectFirst = computed(() => instance.autoSelection && items.value.length === 1);
15286
15445
  const menuClass = computed(() => {
15287
15446
  const align = instance.reverse ? "right" : instance.align;
@@ -15306,6 +15465,7 @@ function useSelect$1(instance, ctx, root2) {
15306
15465
  selectChange,
15307
15466
  selectInput,
15308
15467
  selectKeydown,
15468
+ selectClear,
15309
15469
  hasItemBeforeSlot,
15310
15470
  hasItemAfterSlot,
15311
15471
  onLoadMoreIntersect,
@@ -16384,133 +16544,6 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
16384
16544
  ]);
16385
16545
  }
16386
16546
  const ZdMasterDetail = /* @__PURE__ */ _export_sfc(masterDetailComponent, [["render", _sfc_render$y]]);
16387
- var FUNC_ERROR_TEXT = "Expected a function";
16388
- var NAN = 0 / 0;
16389
- var symbolTag = "[object Symbol]";
16390
- var reTrim = /^\s+|\s+$/g;
16391
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
16392
- var reIsBinary = /^0b[01]+$/i;
16393
- var reIsOctal = /^0o[0-7]+$/i;
16394
- var freeParseInt = parseInt;
16395
- var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
16396
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
16397
- var root = freeGlobal || freeSelf || Function("return this")();
16398
- var objectProto = Object.prototype;
16399
- var objectToString = objectProto.toString;
16400
- var nativeMax = Math.max, nativeMin = Math.min;
16401
- var now = function() {
16402
- return root.Date.now();
16403
- };
16404
- function debounce(func, wait, options) {
16405
- var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
16406
- if (typeof func != "function") {
16407
- throw new TypeError(FUNC_ERROR_TEXT);
16408
- }
16409
- wait = toNumber(wait) || 0;
16410
- if (isObject(options)) {
16411
- leading = !!options.leading;
16412
- maxing = "maxWait" in options;
16413
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
16414
- trailing = "trailing" in options ? !!options.trailing : trailing;
16415
- }
16416
- function invokeFunc(time) {
16417
- var args = lastArgs, thisArg = lastThis;
16418
- lastArgs = lastThis = void 0;
16419
- lastInvokeTime = time;
16420
- result = func.apply(thisArg, args);
16421
- return result;
16422
- }
16423
- function leadingEdge(time) {
16424
- lastInvokeTime = time;
16425
- timerId = setTimeout(timerExpired, wait);
16426
- return leading ? invokeFunc(time) : result;
16427
- }
16428
- function remainingWait(time) {
16429
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result2 = wait - timeSinceLastCall;
16430
- return maxing ? nativeMin(result2, maxWait - timeSinceLastInvoke) : result2;
16431
- }
16432
- function shouldInvoke(time) {
16433
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
16434
- return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
16435
- }
16436
- function timerExpired() {
16437
- var time = now();
16438
- if (shouldInvoke(time)) {
16439
- return trailingEdge(time);
16440
- }
16441
- timerId = setTimeout(timerExpired, remainingWait(time));
16442
- }
16443
- function trailingEdge(time) {
16444
- timerId = void 0;
16445
- if (trailing && lastArgs) {
16446
- return invokeFunc(time);
16447
- }
16448
- lastArgs = lastThis = void 0;
16449
- return result;
16450
- }
16451
- function cancel() {
16452
- if (timerId !== void 0) {
16453
- clearTimeout(timerId);
16454
- }
16455
- lastInvokeTime = 0;
16456
- lastArgs = lastCallTime = lastThis = timerId = void 0;
16457
- }
16458
- function flush() {
16459
- return timerId === void 0 ? result : trailingEdge(now());
16460
- }
16461
- function debounced() {
16462
- var time = now(), isInvoking = shouldInvoke(time);
16463
- lastArgs = arguments;
16464
- lastThis = this;
16465
- lastCallTime = time;
16466
- if (isInvoking) {
16467
- if (timerId === void 0) {
16468
- return leadingEdge(lastCallTime);
16469
- }
16470
- if (maxing) {
16471
- timerId = setTimeout(timerExpired, wait);
16472
- return invokeFunc(lastCallTime);
16473
- }
16474
- }
16475
- if (timerId === void 0) {
16476
- timerId = setTimeout(timerExpired, wait);
16477
- }
16478
- return result;
16479
- }
16480
- debounced.cancel = cancel;
16481
- debounced.flush = flush;
16482
- return debounced;
16483
- }
16484
- function isObject(value) {
16485
- var type = typeof value;
16486
- return !!value && (type == "object" || type == "function");
16487
- }
16488
- function isObjectLike(value) {
16489
- return !!value && typeof value == "object";
16490
- }
16491
- function isSymbol(value) {
16492
- return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
16493
- }
16494
- function toNumber(value) {
16495
- if (typeof value == "number") {
16496
- return value;
16497
- }
16498
- if (isSymbol(value)) {
16499
- return NAN;
16500
- }
16501
- if (isObject(value)) {
16502
- var other = typeof value.valueOf == "function" ? value.valueOf() : value;
16503
- value = isObject(other) ? other + "" : other;
16504
- }
16505
- if (typeof value != "string") {
16506
- return value === 0 ? value : +value;
16507
- }
16508
- value = value.replace(reTrim, "");
16509
- var isBinary = reIsBinary.test(value);
16510
- return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
16511
- }
16512
- var lodash_debounce = debounce;
16513
- const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(lodash_debounce);
16514
16547
  const ZdMenuProps$1 = buildProps({
16515
16548
  ...ZdComponentRenderProps,
16516
16549
  app: {
@@ -17861,6 +17894,7 @@ defineComponent({
17861
17894
  instance.showDatePicker = false;
17862
17895
  }
17863
17896
  instance.validate();
17897
+ instance.change();
17864
17898
  };
17865
17899
  const helperValuesOptionClick = (helper) => {
17866
17900
  const value = DateHelper.getValue(helper, instance.dateFormat);
@@ -18596,7 +18630,7 @@ const selectMultipleComponent = defineComponent({
18596
18630
  };
18597
18631
  const removeItem = (item) => {
18598
18632
  const rootValue = root2.value;
18599
- rootValue.select(item.value, false);
18633
+ rootValue.select(item, false);
18600
18634
  };
18601
18635
  const selectChange = (value, event) => {
18602
18636
  const input = getRootElement(root2);
@@ -18606,6 +18640,19 @@ const selectMultipleComponent = defineComponent({
18606
18640
  input.value
18607
18641
  );
18608
18642
  };
18643
+ const selectClear = () => {
18644
+ const input = getRootElement(root2);
18645
+ const hasSelectedValue = Array.isArray(instance.value) && instance.value.length > 0;
18646
+ const hasSearchText = !!instance.search;
18647
+ if (hasSelectedValue) {
18648
+ instance.selectChange([], void 0, input.value);
18649
+ }
18650
+ if (hasSearchText) {
18651
+ selectScope.selectInput("");
18652
+ } else {
18653
+ instance.search = "";
18654
+ }
18655
+ };
18609
18656
  let observer;
18610
18657
  onMounted(() => {
18611
18658
  const componentRef = getRootElement(root2);
@@ -18637,6 +18684,7 @@ const selectMultipleComponent = defineComponent({
18637
18684
  selectClick,
18638
18685
  selectBlur,
18639
18686
  selectChange,
18687
+ selectClear,
18640
18688
  formattedDataDiscreteText,
18641
18689
  ajustSize,
18642
18690
  onLoadMoreIntersect,
@@ -18652,6 +18700,7 @@ const _hoisted_2$5 = {
18652
18700
  class: "more-items grey--text caption"
18653
18701
  };
18654
18702
  function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
18703
+ const _component_v_icon = resolveComponent("v-icon");
18655
18704
  const _component_v_checkbox_btn = resolveComponent("v-checkbox-btn");
18656
18705
  const _component_v_list_item_title = resolveComponent("v-list-item-title");
18657
18706
  const _component_v_list_item = resolveComponent("v-list-item");
@@ -18736,6 +18785,14 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
18736
18785
  onKeyup: _cache[19] || (_cache[19] = ($event) => _ctx.instance.keyup($event)),
18737
18786
  onKeydown: _cache[20] || (_cache[20] = ($event) => _ctx.instance.keydown($event))
18738
18787
  }, toHandlers(_ctx.getIconClickEvents())), createSlots({
18788
+ clear: withCtx(({ props }) => [
18789
+ createVNode(_component_v_icon, {
18790
+ tabindex: props.tabindex,
18791
+ onFocus: props.onFocus,
18792
+ onBlur: props.onBlur,
18793
+ onClick: _ctx.selectClear
18794
+ }, null, 8, ["tabindex", "onFocus", "onBlur", "onClick"])
18795
+ ]),
18739
18796
  item: withCtx(({ item, props }) => [
18740
18797
  createVNode(_component_v_list_item, mergeProps({
18741
18798
  class: "zd-select__menu-item zd-select-multiple__menu-item",
@@ -19075,6 +19132,11 @@ function useSelect(instance, ctx, root2) {
19075
19132
  const rootElement = getRootElement(root2);
19076
19133
  instance.keydown(event, rootElement.value);
19077
19134
  };
19135
+ const selectClear = () => {
19136
+ if (!instance.autocomplete) {
19137
+ textInputScope.input();
19138
+ }
19139
+ };
19078
19140
  const autoSelectFirst = computed(() => instance.autoSelection && items.value.length === 1);
19079
19141
  const menuClass = computed(() => {
19080
19142
  const align = instance.reverse ? "right" : instance.align;
@@ -19099,6 +19161,7 @@ function useSelect(instance, ctx, root2) {
19099
19161
  selectChange,
19100
19162
  selectInput,
19101
19163
  selectKeydown,
19164
+ selectClear,
19102
19165
  hasItemBeforeSlot,
19103
19166
  hasItemAfterSlot,
19104
19167
  onLoadMoreIntersect,
@@ -19176,11 +19239,12 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
19176
19239
  onMouseenter: _cache[2] || (_cache[2] = ($event) => _ctx.mouseenter($event)),
19177
19240
  onMouseleave: _cache[3] || (_cache[3] = ($event) => _ctx.mouseleave($event)),
19178
19241
  onClick: _cache[4] || (_cache[4] = ($event) => _ctx.click($event)),
19179
- onBlur: _cache[6] || (_cache[6] = ($event) => _ctx.blur($event)),
19180
- onFocus: _cache[7] || (_cache[7] = ($event) => _ctx.focus($event)),
19181
- "onUpdate:search": _cache[8] || (_cache[8] = ($event) => _ctx.selectInput($event)),
19182
- onKeyup: _cache[9] || (_cache[9] = ($event) => _ctx.instance.keyup($event)),
19183
- onKeydown: _cache[10] || (_cache[10] = ($event) => _ctx.selectKeydown($event))
19242
+ "onClick:clear": _cache[6] || (_cache[6] = ($event) => _ctx.selectClear()),
19243
+ onBlur: _cache[7] || (_cache[7] = ($event) => _ctx.blur($event)),
19244
+ onFocus: _cache[8] || (_cache[8] = ($event) => _ctx.focus($event)),
19245
+ "onUpdate:search": _cache[9] || (_cache[9] = ($event) => _ctx.selectInput($event)),
19246
+ onKeyup: _cache[10] || (_cache[10] = ($event) => _ctx.instance.keyup($event)),
19247
+ onKeydown: _cache[11] || (_cache[11] = ($event) => _ctx.selectKeydown($event))
19184
19248
  }, toHandlers(_ctx.getIconClickEvents())), createSlots({
19185
19249
  item: withCtx(({ item, props }) => [
19186
19250
  createVNode(_component_v_list_item, mergeProps({
@@ -19844,7 +19908,9 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
19844
19908
  const _component_v_tabs_window_item = resolveComponent("v-tabs-window-item");
19845
19909
  return withDirectives((openBlock(), createBlock(_component_v_tabs_window_item, {
19846
19910
  class: "zd-tabs-tab-item",
19847
- value: _ctx.index
19911
+ value: _ctx.index,
19912
+ transition: false,
19913
+ "reverse-transition": false
19848
19914
  }, {
19849
19915
  default: withCtx(() => [
19850
19916
  createVNode(_component_v_container, { fluid: "" }, {
@@ -20198,6 +20264,10 @@ function useTextInput(instance, ctx, root2) {
20198
20264
  (_a = rootElement.value) == null ? void 0 : _a.getElementsByTagName("input")[0].blur();
20199
20265
  });
20200
20266
  };
20267
+ const clearInput = () => {
20268
+ inputScope.input();
20269
+ inputScope.change();
20270
+ };
20201
20271
  const getIconClickEvents = () => {
20202
20272
  const events = {};
20203
20273
  if (instance.events.appendIconClick) {
@@ -20232,6 +20302,7 @@ function useTextInput(instance, ctx, root2) {
20232
20302
  appendOuterIconClick,
20233
20303
  prependOuterIconClick,
20234
20304
  setBlur,
20305
+ clearInput,
20235
20306
  getIconClickEvents
20236
20307
  };
20237
20308
  }
@@ -20278,7 +20349,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
20278
20349
  onChange: _cache[7] || (_cache[7] = ($event) => _ctx.change()),
20279
20350
  onKeyup: _cache[8] || (_cache[8] = ($event) => _ctx.keyup($event)),
20280
20351
  onKeydown: _cache[9] || (_cache[9] = ($event) => _ctx.keydown($event)),
20281
- "onClick:clear": _cache[10] || (_cache[10] = ($event) => _ctx.change()),
20352
+ "onClick:clear": _cache[10] || (_cache[10] = ($event) => _ctx.clearInput()),
20282
20353
  "hide-details": _ctx.instance.autoHintDetails ? "auto" : false,
20283
20354
  tabindex: _ctx.instance.tabStop ? "" : "-1"
20284
20355
  }, {
@@ -20495,7 +20566,8 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
20495
20566
  onInput: _cache[5] || (_cache[5] = ($event) => _ctx.input()),
20496
20567
  onKeydown: _cache[6] || (_cache[6] = ($event) => _ctx.keydown($event)),
20497
20568
  onChange: _cache[7] || (_cache[7] = ($event) => _ctx.change($event)),
20498
- onBlur: _cache[8] || (_cache[8] = ($event) => _ctx.blur($event))
20569
+ "onClick:clear": _cache[8] || (_cache[8] = ($event) => _ctx.clearInput()),
20570
+ onBlur: _cache[9] || (_cache[9] = ($event) => _ctx.blur($event))
20499
20571
  }, {
20500
20572
  "append-inner-icon": !_ctx.instance.suffix ? _ctx.$getIcon(_ctx.instance.appendIcon) : "",
20501
20573
  "append-icon": _ctx.$getIcon(_ctx.instance.appendOuterIcon),
@@ -21413,7 +21485,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
21413
21485
  }, null, 8, ["disabled", "isSelected", "cellSelection", "isCurrent", "indeterminate"])) : createCommentVNode("", true),
21414
21486
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (column, i, ___, _cached) => {
21415
21487
  const _memo = [_ctx.row, column, _ctx.fixedLeft, _ctx.fixedRight, _ctx.cellSelection, _ctx.isCurrent({ row: _ctx.row, column })];
21416
- if (_cached && _cached.el && _cached.key === column.name && isMemoSame(_cached, _memo)) return _cached;
21488
+ if (_cached && _cached.key === column.name && isMemoSame(_cached, _memo)) return _cached;
21417
21489
  const _item = (openBlock(), createBlock(_component_zd_tree_grid_cell, {
21418
21490
  key: column.name,
21419
21491
  row: _ctx.row,
@@ -24423,7 +24495,7 @@ defineComponent({
24423
24495
  };
24424
24496
  const removeItem = (item) => {
24425
24497
  const rootValue = root2.value;
24426
- rootValue.select(item.value, false);
24498
+ rootValue.select(item, false);
24427
24499
  };
24428
24500
  const selectChange = (value, event) => {
24429
24501
  const input = getRootElement(root2);
@@ -24433,6 +24505,19 @@ defineComponent({
24433
24505
  input.value
24434
24506
  );
24435
24507
  };
24508
+ const selectClear = () => {
24509
+ const input = getRootElement(root2);
24510
+ const hasSelectedValue = Array.isArray(instance.value) && instance.value.length > 0;
24511
+ const hasSearchText = !!instance.search;
24512
+ if (hasSelectedValue) {
24513
+ instance.selectChange([], void 0, input.value);
24514
+ }
24515
+ if (hasSearchText) {
24516
+ selectScope.selectInput("");
24517
+ } else {
24518
+ instance.search = "";
24519
+ }
24520
+ };
24436
24521
  let observer;
24437
24522
  onMounted(() => {
24438
24523
  const componentRef = getRootElement(root2);
@@ -24464,6 +24549,7 @@ defineComponent({
24464
24549
  selectClick,
24465
24550
  selectBlur,
24466
24551
  selectChange,
24552
+ selectClear,
24467
24553
  formattedDataDiscreteText,
24468
24554
  ajustSize,
24469
24555
  onLoadMoreIntersect,
@@ -24859,20 +24945,21 @@ function useGridEditableInstance({
24859
24945
  if (isEditing({ row, column })) return;
24860
24946
  const key = instance.getRowKey(row);
24861
24947
  editingCell.value = { key, column: column.name };
24862
- setTimeout(() => {
24863
- const key2 = instance.getRowKey(row);
24864
- try {
24865
- const component2 = instance.getComponent(String(key2), column.name);
24866
- component2 == null ? void 0 : component2.setFocus();
24867
- if (component2 instanceof Toggleable) {
24868
- component2.toggleValue();
24869
- component2.change();
24870
- }
24871
- } catch (e) {
24872
- if (!(e instanceof InstanceNotFoundError)) throw e;
24873
- }
24874
- });
24948
+ checkToggleComponent(row, column);
24875
24949
  };
24950
+ const checkToggleComponent = debounce$1((row, column) => {
24951
+ const key = instance.getRowKey(row);
24952
+ try {
24953
+ const component2 = instance.getComponent(String(key), column.name);
24954
+ component2 == null ? void 0 : component2.setFocus();
24955
+ if (component2 instanceof Toggleable) {
24956
+ component2.toggleValue();
24957
+ component2.change();
24958
+ }
24959
+ } catch (e) {
24960
+ if (!(e instanceof InstanceNotFoundError)) throw e;
24961
+ }
24962
+ });
24876
24963
  const viewEnterEdit = (key, columnName) => {
24877
24964
  editingCell.value = { key, column: columnName };
24878
24965
  const row = instance.findRow(key);