hys-ui 0.1.1 → 0.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 (225) hide show
  1. package/CHANGELOG.md +111 -0
  2. package/README.md +3 -1
  3. package/dist/components/HysAccordion/HysAccordion.vue.js +1 -1
  4. package/dist/components/HysAccordion/HysAccordion2.vue.js +181 -47
  5. package/dist/components/HysAutocomplete/HysAutocomplete.vue.js +7 -0
  6. package/dist/components/HysAutocomplete/HysAutocomplete2.vue.js +627 -0
  7. package/dist/components/HysAvatar/HysAvatar.vue.js +5 -35
  8. package/dist/components/HysAvatar/HysAvatar2.vue.js +221 -2
  9. package/dist/components/HysAvatarGroup/HysAvatarGroup.vue.js +7 -0
  10. package/dist/components/HysAvatarGroup/HysAvatarGroup2.vue.js +252 -0
  11. package/dist/components/HysBadge/HysBadge.vue.js +2 -2
  12. package/dist/components/HysBadge/HysBadge2.vue.js +154 -27
  13. package/dist/components/HysBreadcrumb/HysBreadcrumb.vue.js +5 -38
  14. package/dist/components/HysBreadcrumb/HysBreadcrumb2.vue.js +74 -2
  15. package/dist/components/HysButton/HysButton.vue.js +2 -2
  16. package/dist/components/HysButton/HysButton2.vue.js +29 -28
  17. package/dist/components/HysCalendar/HysCalendar.vue.js +5 -92
  18. package/dist/components/HysCalendar/HysCalendar2.vue.js +803 -2
  19. package/dist/components/HysCard/HysCard.vue.js +2 -2
  20. package/dist/components/HysCard/HysCard2.vue.js +175 -42
  21. package/dist/components/HysCascader/HysCascader.vue.js +5 -194
  22. package/dist/components/HysCascader/HysCascader2.vue.js +760 -2
  23. package/dist/components/HysCascader/HysCascaderColumn.vue.js +7 -0
  24. package/dist/components/HysCascader/HysCascaderColumn2.vue.js +232 -0
  25. package/dist/components/HysCheckbox/HysCheckbox.vue.js +3 -3
  26. package/dist/components/HysCheckbox/HysCheckbox2.vue.js +180 -65
  27. package/dist/components/HysCheckboxGroup/HysCheckboxGroup.vue.js +7 -0
  28. package/dist/components/HysCheckboxGroup/HysCheckboxGroup2.vue.js +237 -0
  29. package/dist/components/HysColorPicker/HysColorPicker.vue.js +2 -2
  30. package/dist/components/HysColorPicker/HysColorPicker2.vue.js +107 -106
  31. package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
  32. package/dist/components/HysDataGrid/HysDataGrid2.vue.js +399 -392
  33. package/dist/components/HysDatePicker/HysDatePicker.vue.js +268 -139
  34. package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +7 -0
  35. package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +807 -0
  36. package/dist/components/HysDatePicker/HysDatePickerPanel.vue.js +7 -0
  37. package/dist/components/HysDatePicker/HysDatePickerPanel2.vue.js +357 -0
  38. package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +268 -158
  39. package/dist/components/HysDivider/HysDivider.vue.js +2 -2
  40. package/dist/components/HysDivider/HysDivider2.vue.js +33 -13
  41. package/dist/components/HysFileManager/HysFileManager.vue.js +3 -3
  42. package/dist/components/HysFileManager/HysFileManager2.vue.js +43 -42
  43. package/dist/components/HysForm/HysForm.vue.js +3 -3
  44. package/dist/components/HysForm/HysForm2.vue.js +578 -92
  45. package/dist/components/HysFormItem/HysFormItem.vue.js +5 -85
  46. package/dist/components/HysFormItem/HysFormItem2.vue.js +521 -2
  47. package/dist/components/HysGantt/HysGantt.vue.js +1 -1
  48. package/dist/components/HysGantt/HysGantt2.vue.js +1369 -272
  49. package/dist/components/HysInput/HysInput.vue.js +2 -2
  50. package/dist/components/HysInput/HysInput2.vue.js +467 -120
  51. package/dist/components/HysMention/HysMention.vue.js +2 -2
  52. package/dist/components/HysMention/HysMention2.vue.js +89 -88
  53. package/dist/components/HysNumberInput/HysNumberInput.vue.js +2 -2
  54. package/dist/components/HysNumberInput/HysNumberInput2.vue.js +561 -79
  55. package/dist/components/HysOrgTree/HysOrgTree.vue.js +29 -26
  56. package/dist/components/HysPagination/HysPagination.vue.js +1 -1
  57. package/dist/components/HysPagination/HysPagination2.vue.js +2 -0
  58. package/dist/components/HysPermissionMatrix/HysPermissionMatrix.vue.js +2 -2
  59. package/dist/components/HysPermissionMatrix/HysPermissionMatrix2.vue.js +52 -51
  60. package/dist/components/HysRadio/HysRadio.vue.js +7 -0
  61. package/dist/components/HysRadio/HysRadio2.vue.js +180 -0
  62. package/dist/components/HysRadioGroup/HysRadioGroup.vue.js +2 -2
  63. package/dist/components/HysRadioGroup/HysRadioGroup2.vue.js +190 -65
  64. package/dist/components/HysRating/HysRating.vue.js +1 -1
  65. package/dist/components/HysRating/HysRating2.vue.js +288 -68
  66. package/dist/components/HysRichTextEditor/HysRichTextEditor.vue.js +1 -1
  67. package/dist/components/HysRichTextEditor/HysRichTextEditor2.vue.js +70 -69
  68. package/dist/components/HysSearch/HysSearch.vue.js +37 -36
  69. package/dist/components/HysSegmented/HysSegmented.vue.js +5 -63
  70. package/dist/components/HysSegmented/HysSegmented2.vue.js +273 -2
  71. package/dist/components/HysSelect/HysSelect.vue.js +3 -2
  72. package/dist/components/HysSelect/HysSelect2.vue.js +859 -185
  73. package/dist/components/HysSkeleton/HysSkeleton.vue.js +2 -2
  74. package/dist/components/HysSkeleton/HysSkeleton2.vue.js +126 -29
  75. package/dist/components/HysSlider/HysSlider.vue.js +2 -2
  76. package/dist/components/HysSlider/HysSlider2.vue.js +532 -59
  77. package/dist/components/HysSlider/SliderTooltip.vue.js +7 -0
  78. package/dist/components/HysSlider/SliderTooltip2.vue.js +156 -0
  79. package/dist/components/HysSteps/HysSteps.vue.js +1 -1
  80. package/dist/components/HysSteps/HysSteps2.vue.js +110 -36
  81. package/dist/components/HysSwitch/HysSwitch.vue.js +2 -2
  82. package/dist/components/HysSwitch/HysSwitch2.vue.js +232 -50
  83. package/dist/components/HysTable/HysTable.vue.js +2 -2
  84. package/dist/components/HysTable/HysTable2.vue.js +1473 -88
  85. package/dist/components/HysTable/HysTableFilterOptions.vue.js +7 -0
  86. package/dist/components/HysTable/HysTableFilterOptions2.vue.js +133 -0
  87. package/dist/components/HysTabs/HysTabs.vue.js +2 -2
  88. package/dist/components/HysTabs/HysTabs2.vue.js +262 -68
  89. package/dist/components/HysTagInput/HysTagInput.vue.js +43 -42
  90. package/dist/components/HysTextarea/HysTextarea.vue.js +138 -77
  91. package/dist/components/HysTransfer/HysTransfer.vue.js +5 -223
  92. package/dist/components/HysTransfer/HysTransfer2.vue.js +416 -2
  93. package/dist/components/HysTransfer/HysTransferPanel.vue.js +7 -0
  94. package/dist/components/HysTransfer/HysTransferPanel2.vue.js +454 -0
  95. package/dist/components/HysTree/HysTree.vue.js +2 -3
  96. package/dist/components/HysTree/HysTree2.vue.js +641 -302
  97. package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +5 -136
  98. package/dist/components/HysTreeSelect/HysTreeSelect2.vue.js +558 -2
  99. package/dist/components/HysTreeSelect/HysTreeSelectPanel.vue.js +7 -0
  100. package/dist/components/HysTreeSelect/HysTreeSelectPanel2.vue.js +323 -0
  101. package/dist/components/HysUpload/HysUpload.vue.js +2 -2
  102. package/dist/components/HysUpload/HysUpload2.vue.js +77 -76
  103. package/dist/composables/autocomplete.js +50 -0
  104. package/dist/composables/avatar.js +57 -0
  105. package/dist/composables/calendar.js +96 -0
  106. package/dist/composables/cascader.js +79 -0
  107. package/dist/composables/choice.js +38 -0
  108. package/dist/composables/choiceModel.js +67 -0
  109. package/dist/composables/datePicker.js +227 -0
  110. package/dist/composables/formContext.js +92 -7
  111. package/dist/composables/formLayout.js +57 -0
  112. package/dist/composables/formValidation.js +240 -0
  113. package/dist/composables/ganttConflicts.js +143 -0
  114. package/dist/composables/numberInput.js +91 -0
  115. package/dist/composables/rating.js +16 -0
  116. package/dist/composables/selectOptions.js +54 -0
  117. package/dist/composables/table.js +150 -0
  118. package/dist/composables/textInput.js +34 -0
  119. package/dist/composables/transfer.js +63 -0
  120. package/dist/composables/tree.js +118 -0
  121. package/dist/composables/treeSelect.js +71 -0
  122. package/dist/composables/useCascader.js +438 -0
  123. package/dist/composables/useDatePicker.js +425 -0
  124. package/dist/composables/useFloating.js +97 -51
  125. package/dist/composables/useGanttDependencies.js +306 -0
  126. package/dist/composables/useGanttHistory.js +157 -0
  127. package/dist/composables/useGanttLabelResize.js +100 -0
  128. package/dist/composables/useTable.js +474 -0
  129. package/dist/composables/useTextareaSize.js +72 -0
  130. package/dist/composables/useTransfer.js +257 -0
  131. package/dist/composables/useTree.js +439 -0
  132. package/dist/composables/useTreeSelect.js +361 -0
  133. package/dist/index.js +149 -139
  134. package/dist/style.css +1 -1
  135. package/dist/types/components/HysAccordion/HysAccordion.vue.d.ts +61 -22
  136. package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +201 -0
  137. package/dist/types/components/HysAvatar/HysAvatar.vue.d.ts +28 -15
  138. package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +99 -0
  139. package/dist/types/components/HysBadge/HysBadge.vue.d.ts +41 -4
  140. package/dist/types/components/HysBreadcrumb/HysBreadcrumb.vue.d.ts +38 -10
  141. package/dist/types/components/HysButton/HysButton.vue.d.ts +0 -1
  142. package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +119 -31
  143. package/dist/types/components/HysCard/HysCard.vue.d.ts +55 -7
  144. package/dist/types/components/HysCascader/HysCascader.vue.d.ts +129 -41
  145. package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +55 -0
  146. package/dist/types/components/HysCheckbox/HysCheckbox.vue.d.ts +50 -39
  147. package/dist/types/components/HysCheckboxGroup/HysCheckboxGroup.vue.d.ts +73 -0
  148. package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +1 -1
  149. package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +66 -14
  150. package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +90 -0
  151. package/dist/types/components/HysDatePicker/HysDatePickerPanel.vue.d.ts +93 -0
  152. package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +66 -14
  153. package/dist/types/components/HysDivider/HysDivider.vue.d.ts +8 -3
  154. package/dist/types/components/HysFileManager/HysFileManager.vue.d.ts +2 -2
  155. package/dist/types/components/HysForm/HysForm.vue.d.ts +110 -18
  156. package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +108 -2
  157. package/dist/types/components/HysGantt/HysGantt.vue.d.ts +82 -4
  158. package/dist/types/components/HysInput/HysInput.vue.d.ts +52 -29
  159. package/dist/types/components/HysMention/HysMention.vue.d.ts +2 -2
  160. package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +93 -35
  161. package/dist/types/components/HysOrgTree/HysOrgTree.vue.d.ts +1 -0
  162. package/dist/types/components/HysPagination/HysPagination.vue.d.ts +1 -1
  163. package/dist/types/components/HysPermissionMatrix/HysPermissionMatrix.vue.d.ts +2 -2
  164. package/dist/types/components/HysPopover/HysPopover.vue.d.ts +3 -3
  165. package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
  166. package/dist/types/components/HysRadio/HysRadio.vue.d.ts +56 -0
  167. package/dist/types/components/HysRadioGroup/HysRadioGroup.vue.d.ts +34 -12
  168. package/dist/types/components/HysRating/HysRating.vue.d.ts +85 -5
  169. package/dist/types/components/HysRichTextEditor/HysRichTextEditor.vue.d.ts +4 -4
  170. package/dist/types/components/HysSearch/HysSearch.vue.d.ts +2 -2
  171. package/dist/types/components/HysSegmented/HysSegmented.vue.d.ts +64 -32
  172. package/dist/types/components/HysSelect/HysSelect.vue.d.ts +120 -20
  173. package/dist/types/components/HysSkeleton/HysSkeleton.vue.d.ts +30 -2
  174. package/dist/types/components/HysSlider/HysSlider.vue.d.ts +66 -9
  175. package/dist/types/components/HysSlider/SliderTooltip.vue.d.ts +22 -0
  176. package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +1 -1
  177. package/dist/types/components/HysSteps/HysSteps.vue.d.ts +64 -9
  178. package/dist/types/components/HysSwitch/HysSwitch.vue.d.ts +76 -17
  179. package/dist/types/components/HysTable/HysTable.vue.d.ts +206 -32
  180. package/dist/types/components/HysTable/HysTableFilterOptions.vue.d.ts +18 -0
  181. package/dist/types/components/HysTabs/HysTabs.vue.d.ts +76 -23
  182. package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +5 -5
  183. package/dist/types/components/HysTextarea/HysTextarea.vue.d.ts +44 -27
  184. package/dist/types/components/HysToast/HysToast.vue.d.ts +3 -3
  185. package/dist/types/components/HysTour/HysTour.vue.d.ts +2 -2
  186. package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +55 -40
  187. package/dist/types/components/HysTransfer/HysTransferPanel.vue.d.ts +105 -0
  188. package/dist/types/components/HysTree/HysTree.vue.d.ts +140 -73
  189. package/dist/types/components/HysTreeSelect/HysTreeSelect.vue.d.ts +102 -23
  190. package/dist/types/components/HysTreeSelect/HysTreeSelectPanel.vue.d.ts +56 -0
  191. package/dist/types/composables/autocomplete.d.ts +106 -0
  192. package/dist/types/composables/avatar.d.ts +70 -0
  193. package/dist/types/composables/calendar.d.ts +66 -0
  194. package/dist/types/composables/cascader.d.ts +192 -0
  195. package/dist/types/composables/choice.d.ts +110 -0
  196. package/dist/types/composables/choiceModel.d.ts +11 -0
  197. package/dist/types/composables/datePicker.d.ts +247 -0
  198. package/dist/types/composables/formContext.d.ts +133 -8
  199. package/dist/types/composables/formLayout.d.ts +11 -0
  200. package/dist/types/composables/formValidation.d.ts +13 -0
  201. package/dist/types/composables/gantt.d.ts +68 -0
  202. package/dist/types/composables/ganttConflicts.d.ts +30 -0
  203. package/dist/types/composables/numberInput.d.ts +45 -0
  204. package/dist/types/composables/rating.d.ts +18 -0
  205. package/dist/types/composables/segmented.d.ts +15 -0
  206. package/dist/types/composables/selectOptions.d.ts +44 -0
  207. package/dist/types/composables/slider.d.ts +21 -0
  208. package/dist/types/composables/table.d.ts +309 -0
  209. package/dist/types/composables/textInput.d.ts +76 -0
  210. package/dist/types/composables/transfer.d.ts +180 -0
  211. package/dist/types/composables/tree.d.ts +237 -0
  212. package/dist/types/composables/treeSelect.d.ts +167 -0
  213. package/dist/types/composables/useCascader.d.ts +162 -0
  214. package/dist/types/composables/useDatePicker.d.ts +79 -0
  215. package/dist/types/composables/useFloating.d.ts +8 -5
  216. package/dist/types/composables/useGanttDependencies.d.ts +83 -0
  217. package/dist/types/composables/useGanttHistory.d.ts +42 -0
  218. package/dist/types/composables/useGanttLabelResize.d.ts +23 -0
  219. package/dist/types/composables/useTable.d.ts +60 -0
  220. package/dist/types/composables/useTextareaSize.d.ts +3 -0
  221. package/dist/types/composables/useTransfer.d.ts +58 -0
  222. package/dist/types/composables/useTree.d.ts +77 -0
  223. package/dist/types/composables/useTreeSelect.d.ts +117 -0
  224. package/dist/types/index.d.ts +33 -7
  225. package/package.json +2 -1
@@ -0,0 +1,156 @@
1
+ import { defineComponent as J, ref as A, watch as P, onActivated as K, nextTick as Q, onDeactivated as Z, onBeforeUnmount as ee, openBlock as N, createBlock as te, Teleport as ie, createElementBlock as oe, mergeProps as ne, unref as le, renderSlot as se, createCommentVNode as re } from "vue";
2
+ import { useHysRootAttrs as ae } from "../../config.js";
3
+ const ce = ["id"], fe = /* @__PURE__ */ J({
4
+ __name: "SliderTooltip",
5
+ props: {
6
+ id: {},
7
+ anchor: {},
8
+ container: {},
9
+ placement: {},
10
+ position: {}
11
+ },
12
+ setup(q) {
13
+ const i = q, C = ae(), g = A(), p = A(!0), R = A({ position: "fixed", visibility: "hidden" }), X = A(i.placement);
14
+ let h, x, L = [], S = {}, z;
15
+ function B() {
16
+ if (L = [], S = {}, !i.anchor) return;
17
+ for (let n = i.anchor.parentElement; n; n = n.parentElement) {
18
+ const e = getComputedStyle(n), l = /hidden|clip|auto|scroll/.test(e.overflowX || e.overflow), c = /hidden|clip|auto|scroll/.test(e.overflowY || e.overflow);
19
+ (l || c) && L.push({ element: n, x: l, y: c });
20
+ }
21
+ const t = getComputedStyle(i.anchor);
22
+ for (const n of [
23
+ "--hys-ui-text",
24
+ "--hys-ui-surface",
25
+ "--hys-ui-theme-text",
26
+ "--hys-ui-theme-surface"
27
+ ]) {
28
+ const e = t.getPropertyValue(n).trim();
29
+ e && (S[n] = e);
30
+ }
31
+ }
32
+ function Y() {
33
+ h = void 0;
34
+ const t = i.anchor, n = g.value;
35
+ if (!p.value || !(t != null && t.isConnected) || !n) return;
36
+ const e = window.visualViewport, l = (e == null ? void 0 : e.offsetLeft) ?? 0, c = (e == null ? void 0 : e.offsetTop) ?? 0, w = (e == null ? void 0 : e.width) ?? (document.documentElement.clientWidth || window.innerWidth), r = (e == null ? void 0 : e.height) ?? (document.documentElement.clientHeight || window.innerHeight), a = l + w, y = c + r, s = 8, u = 8, o = (t.querySelector(".hys-ui-slider-handle") ?? t).getBoundingClientRect();
37
+ let _ = l, W = c, F = a, H = y;
38
+ for (const { element: v, x: G, y: I } of L) {
39
+ const b = v.getBoundingClientRect();
40
+ G && (_ = Math.max(_, b.left + v.clientLeft), F = Math.min(
41
+ F,
42
+ b.left + v.clientLeft + (v.clientWidth || b.width)
43
+ )), I && (W = Math.max(W, b.top + v.clientTop), H = Math.min(
44
+ H,
45
+ b.top + v.clientTop + (v.clientHeight || b.height)
46
+ ));
47
+ }
48
+ if (!o.width && !o.height || o.right <= _ || o.left >= F || o.bottom <= W || o.top >= H) {
49
+ R.value = { position: "fixed", visibility: "hidden" };
50
+ return;
51
+ }
52
+ n.style.maxWidth = Math.max(1, w - s * 2) + "px";
53
+ const f = z ?? n.getBoundingClientRect(), O = {
54
+ top: o.top - c - u - s,
55
+ bottom: y - o.bottom - u - s,
56
+ left: o.left - l - u - s,
57
+ right: a - o.right - u - s
58
+ }, U = {
59
+ top: "bottom",
60
+ bottom: "top",
61
+ left: "right",
62
+ right: "left"
63
+ };
64
+ let d = i.placement;
65
+ const D = U[d], $ = d === "top" || d === "bottom" ? f.height : f.width;
66
+ O[d] < $ && O[D] > O[d] && (d = D);
67
+ let E = o.left + (o.width - f.width) / 2, M = o.top + (o.height - f.height) / 2;
68
+ d === "top" ? M = o.top - f.height - u : d === "bottom" ? M = o.bottom + u : d === "left" ? E = o.left - f.width - u : E = o.right + u, E = Math.max(l + s, Math.min(E, a - f.width - s)), M = Math.max(c + s, Math.min(M, y - f.height - s)), X.value = d, R.value = {
69
+ ...S,
70
+ position: "fixed",
71
+ left: Math.round(E) + "px",
72
+ top: Math.round(M) + "px",
73
+ maxWidth: Math.max(1, w - s * 2) + "px",
74
+ visibility: "visible"
75
+ };
76
+ }
77
+ function m() {
78
+ p.value && h === void 0 && (h = requestAnimationFrame(Y));
79
+ }
80
+ function T() {
81
+ h !== void 0 && cancelAnimationFrame(h), h = void 0, Y();
82
+ }
83
+ function k() {
84
+ z = void 0, B(), m();
85
+ }
86
+ function V() {
87
+ x == null || x(), x = void 0, h !== void 0 && cancelAnimationFrame(h), h = void 0, z = void 0, L = [];
88
+ }
89
+ function j() {
90
+ var c, w;
91
+ if (V(), !p.value || !i.anchor || !g.value) return;
92
+ B(), window.addEventListener("scroll", m, !0), window.addEventListener("resize", k), (c = window.visualViewport) == null || c.addEventListener("scroll", m), (w = window.visualViewport) == null || w.addEventListener("resize", k);
93
+ const t = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver((r) => {
94
+ var a;
95
+ for (const y of r)
96
+ if (y.target === g.value) {
97
+ const s = (a = y.borderBoxSize) == null ? void 0 : a[0];
98
+ z = s ? { width: s.inlineSize, height: s.blockSize } : void 0;
99
+ }
100
+ T();
101
+ });
102
+ t == null || t.observe(i.anchor), t == null || t.observe(g.value), i.container && (t == null || t.observe(i.container));
103
+ const n = () => {
104
+ var r, a;
105
+ return [
106
+ (r = i.container) == null ? void 0 : r.getAttribute("style"),
107
+ (a = i.container) == null ? void 0 : a.getAttribute("class"),
108
+ C.value["data-hys-theme"]
109
+ ].join("|");
110
+ };
111
+ let e = n();
112
+ const l = typeof MutationObserver > "u" ? void 0 : new MutationObserver(() => {
113
+ const r = n();
114
+ r !== e && (e = r, B(), m());
115
+ });
116
+ i.container && (l == null || l.observe(i.container, {
117
+ attributes: !0,
118
+ attributeFilter: ["style", "class", "data-hys-theme"]
119
+ })), x = () => {
120
+ var r, a;
121
+ window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", k), (r = window.visualViewport) == null || r.removeEventListener("scroll", m), (a = window.visualViewport) == null || a.removeEventListener("resize", k), t == null || t.disconnect(), l == null || l.disconnect();
122
+ }, m();
123
+ }
124
+ return P(
125
+ () => [i.anchor, i.container, g.value, p.value],
126
+ j,
127
+ { flush: "post" }
128
+ ), P(() => [i.position, i.placement], T, { flush: "post" }), P(
129
+ () => C.value["data-hys-theme"],
130
+ () => {
131
+ B(), T();
132
+ },
133
+ { flush: "post" }
134
+ ), K(() => {
135
+ p.value = !0, Q(j);
136
+ }), Z(() => {
137
+ p.value = !1, V();
138
+ }), ee(V), (t, n) => (N(), te(ie, { to: "body" }, [
139
+ p.value ? (N(), oe("span", ne({
140
+ key: 0,
141
+ id: q.id,
142
+ ref_key: "panel",
143
+ ref: g
144
+ }, le(C), {
145
+ class: ["hys-ui-slider-tooltip", "hys-ui-slider-tooltip-" + X.value],
146
+ role: "tooltip",
147
+ style: R.value
148
+ }), [
149
+ se(t.$slots, "default", {}, void 0, !0)
150
+ ], 16, ce)) : re("", !0)
151
+ ]));
152
+ }
153
+ });
154
+ export {
155
+ fe as default
156
+ };
@@ -1,7 +1,7 @@
1
1
  import o from "./HysSteps2.vue.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1ad8ab01"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-aee36fc0"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,54 +1,128 @@
1
- import { defineComponent as h, openBlock as s, createElementBlock as c, mergeProps as k, unref as n, Fragment as l, renderList as b, normalizeClass as f, createElementVNode as u, createBlock as i, createTextVNode as m, toDisplayString as a, createCommentVNode as g } from "vue";
2
- import { useHysRootAttrs as v } from "../../config.js";
3
- import { Check as C, CircleAlert as B } from "lucide-vue-next";
4
- const z = ["aria-current"], A = ["disabled", "onClick"], N = { key: 1 }, V = { key: 2 }, w = /* @__PURE__ */ h({
1
+ import { defineComponent as H, ref as N, computed as f, openBlock as a, createElementBlock as i, mergeProps as S, unref as m, Fragment as A, renderList as M, normalizeClass as P, createElementVNode as B, renderSlot as y, createBlock as $, createTextVNode as h, toDisplayString as p, createCommentVNode as C } from "vue";
2
+ import { Check as R, CircleAlert as V } from "lucide-vue-next";
3
+ import { useHysRootAttrs as F } from "../../config.js";
4
+ const K = ["aria-label"], U = ["aria-current"], q = {
5
+ class: "hys-ui-step-marker",
6
+ "aria-hidden": "true"
7
+ }, I = {
8
+ key: 0,
9
+ class: "hys-ui-step-dot"
10
+ }, O = { class: "hys-ui-step-content" }, T = ["data-step-index", "disabled", "tabindex", "onClick", "onKeydown"], j = { key: 1 }, G = {
11
+ key: 2,
12
+ class: "hys-ui-step-subtitle"
13
+ }, J = {
14
+ key: 3,
15
+ class: "hys-ui-step-description"
16
+ }, Y = /* @__PURE__ */ H({
5
17
  __name: "HysSteps",
6
18
  props: {
7
19
  items: {},
8
- current: {},
20
+ current: { default: 0 },
9
21
  vertical: { type: Boolean },
10
22
  clickable: { type: Boolean },
11
23
  disabled: { type: Boolean },
12
- status: {}
24
+ status: { default: "process" },
25
+ size: { default: "md" },
26
+ labelPlacement: { default: "right" },
27
+ progressDot: { type: Boolean },
28
+ simple: { type: Boolean },
29
+ responsive: { type: Boolean, default: !0 },
30
+ ariaLabel: {}
13
31
  },
14
32
  emits: ["update:current", "change"],
15
- setup(e, { emit: y }) {
16
- const d = v(), o = y;
17
- return (j, E) => (s(), c("ol", k(n(d), {
18
- class: ["hys-ui-ex-steps", { "hys-ui-steps-vertical": e.vertical }],
19
- "aria-label": "流程进度"
33
+ setup(s, { emit: D }) {
34
+ const u = s, v = D, L = F(), k = N(), b = f(() => u.items.map((e) => typeof e == "string" ? { title: e } : e)), c = f(() => Number.isFinite(u.current) ? Math.max(-1, Math.min(u.items.length, Math.trunc(u.current))) : 0), o = f(() => b.value.map((e, n) => !u.disabled && !e.disabled ? n : -1).filter((e) => e >= 0));
35
+ function r(e) {
36
+ var n;
37
+ return ((n = b.value[e]) == null ? void 0 : n.status) ?? (e < c.value ? "finish" : e === c.value ? u.status : "wait");
38
+ }
39
+ function g(e) {
40
+ !u.clickable || !o.value.includes(e) || e === c.value || (v("update:current", e), v("change", e));
41
+ }
42
+ function E(e, n) {
43
+ var z, w;
44
+ if (!["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(e.key) || !o.value.length) return;
45
+ e.preventDefault();
46
+ const l = ["ArrowLeft", "ArrowUp"].includes(e.key) ? -1 : 1, t = o.value.indexOf(n), d = e.key === "Home" ? 0 : e.key === "End" ? o.value.length - 1 : (t + l + o.value.length) % o.value.length;
47
+ (w = (z = k.value) == null ? void 0 : z.querySelector('[data-step-index="' + o.value[d] + '"]')) == null || w.focus(), g(o.value[d]);
48
+ }
49
+ return (e, n) => (a(), i("ol", S({
50
+ ref_key: "root",
51
+ ref: k
52
+ }, m(L), {
53
+ class: ["hys-ui-ex-steps", ["hys-ui-steps-size-" + s.size, { "hys-ui-steps-vertical": s.vertical, "hys-ui-steps-bottom": s.labelPlacement === "bottom", "hys-ui-steps-dots": s.progressDot, "hys-ui-steps-simple": s.simple, "hys-ui-steps-responsive": s.responsive }]],
54
+ "aria-label": s.ariaLabel || "流程进度"
20
55
  }), [
21
- (s(!0), c(l, null, b(e.items, (t, r) => (s(), c("li", {
22
- key: r,
23
- class: f({ "hys-ui-done": r < e.current, "hys-ui-active": r === e.current && e.status !== "wait", "hys-ui-step-error": r === e.current && e.status === "error" }),
24
- "aria-current": r === e.current ? "step" : void 0
56
+ (a(!0), i(A, null, M(b.value, (l, t) => (a(), i("li", {
57
+ key: t,
58
+ class: P(["hys-ui-step-" + r(t), { "hys-ui-done": r(t) === "finish", "hys-ui-active": r(t) === "process", "hys-ui-step-disabled": s.disabled || l.disabled }]),
59
+ "aria-current": t === c.value ? "step" : void 0
25
60
  }, [
26
- u("span", null, [
27
- r < e.current || r === e.current && e.status === "finish" ? (s(), i(n(C), {
28
- key: 0,
29
- size: 14
30
- })) : r === e.current && e.status === "error" ? (s(), i(n(B), {
31
- key: 1,
32
- size: 14
33
- })) : (s(), c(l, { key: 2 }, [
34
- m(a(r + 1), 1)
35
- ], 64))
61
+ B("span", q, [
62
+ y(e.$slots, "icon", {
63
+ item: l,
64
+ index: t,
65
+ status: r(t)
66
+ }, () => [
67
+ s.progressDot ? (a(), i("i", I)) : r(t) === "finish" ? (a(), $(m(R), {
68
+ key: 1,
69
+ size: s.size === "sm" ? 12 : 15
70
+ }, null, 8, ["size"])) : r(t) === "error" ? (a(), $(m(V), {
71
+ key: 2,
72
+ size: s.size === "sm" ? 12 : 15
73
+ }, null, 8, ["size"])) : (a(), i(A, { key: 3 }, [
74
+ h(p(t + 1), 1)
75
+ ], 64))
76
+ ], !0)
36
77
  ]),
37
- u("div", null, [
38
- e.clickable ? (s(), c("button", {
78
+ B("div", O, [
79
+ s.clickable ? (a(), i("button", {
39
80
  key: 0,
40
81
  type: "button",
41
- disabled: e.disabled || typeof t == "object" && t.disabled,
42
- onClick: (H) => {
43
- o("update:current", r), o("change", r);
44
- }
45
- }, a(typeof t == "string" ? t : t.title), 9, A)) : (s(), c("strong", N, a(typeof t == "string" ? t : t.title), 1)),
46
- typeof t == "object" && t.description ? (s(), c("small", V, a(t.description), 1)) : g("", !0)
82
+ "data-step-index": t,
83
+ disabled: s.disabled || l.disabled,
84
+ tabindex: (o.value.includes(c.value) ? c.value : o.value[0]) === t ? 0 : -1,
85
+ onClick: (d) => g(t),
86
+ onKeydown: (d) => E(d, t)
87
+ }, [
88
+ y(e.$slots, "title", {
89
+ item: l,
90
+ index: t,
91
+ status: r(t)
92
+ }, () => [
93
+ h(p(l.title), 1)
94
+ ], !0)
95
+ ], 40, T)) : (a(), i("strong", j, [
96
+ y(e.$slots, "title", {
97
+ item: l,
98
+ index: t,
99
+ status: r(t)
100
+ }, () => [
101
+ h(p(l.title), 1)
102
+ ], !0)
103
+ ])),
104
+ l.subtitle || e.$slots.subtitle ? (a(), i("small", G, [
105
+ y(e.$slots, "subtitle", {
106
+ item: l,
107
+ index: t
108
+ }, () => [
109
+ h(p(l.subtitle), 1)
110
+ ], !0)
111
+ ])) : C("", !0),
112
+ !s.simple && (l.description || e.$slots.description) ? (a(), i("div", J, [
113
+ y(e.$slots, "description", {
114
+ item: l,
115
+ index: t,
116
+ status: r(t)
117
+ }, () => [
118
+ h(p(l.description), 1)
119
+ ], !0)
120
+ ])) : C("", !0)
47
121
  ])
48
- ], 10, z))), 128))
49
- ], 16));
122
+ ], 10, U))), 128))
123
+ ], 16, K));
50
124
  }
51
125
  });
52
126
  export {
53
- w as default
127
+ Y as default
54
128
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./HysSwitch2.vue.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b5383e6b"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-89733ae0"]]);
5
5
  export {
6
- s as default
6
+ p as default
7
7
  };
@@ -1,67 +1,249 @@
1
- import { defineComponent as g, ref as x, watch as V, onActivated as k, onDeactivated as C, onBeforeUnmount as T, openBlock as s, createElementBlock as u, mergeProps as w, unref as d, createElementVNode as f, normalizeClass as B, createBlock as A, createCommentVNode as m, toDisplayString as L } from "vue";
2
- import { LoaderCircle as z } from "lucide-vue-next";
3
- import { useHysRootAttrs as D } from "../../config.js";
4
- const E = ["aria-label", "aria-checked", "aria-busy", "disabled"], H = { key: 0 }, F = /* @__PURE__ */ g({
1
+ import { defineComponent as Z, useAttrs as p, ref as M, inject as _, useId as ee, computed as g, watch as O, onMounted as ae, openBlock as l, createElementBlock as d, mergeProps as R, unref as i, createElementVNode as A, toDisplayString as y, createCommentVNode as v, renderSlot as k, createBlock as B, resolveDynamicComponent as T, toRaw as z, Fragment as q, createTextVNode as $, createVNode as te } from "vue";
2
+ import { LoaderCircle as ie } from "lucide-vue-next";
3
+ import { fieldKey as ne, useHysControlState as le } from "../../composables/formContext.js";
4
+ import { useChoiceModel as oe, useChoiceNativeReset as ue } from "../../composables/choiceModel.js";
5
+ import { isChoice as K } from "../../composables/choice.js";
6
+ import { useHysRootAttrs as re } from "../../config.js";
7
+ const se = ["id", "data-status", "disabled", "tabindex", "autofocus", "aria-label", "aria-checked", "aria-readonly", "aria-busy", "aria-invalid", "aria-describedby"], ce = {
8
+ key: 0,
9
+ class: "hys-ui-switch-sizer",
10
+ "aria-hidden": "true"
11
+ }, de = {
12
+ key: 1,
13
+ class: "hys-ui-switch-prompt",
14
+ "aria-hidden": "true"
15
+ }, ve = {
16
+ class: "hys-ui-switch-thumb",
17
+ "aria-hidden": "true"
18
+ }, fe = {
19
+ key: 0,
20
+ class: "hys-ui-switch-text"
21
+ }, ye = ["name", "form", "value", "disabled"], he = ["id"], xe = /* @__PURE__ */ Z({
22
+ inheritAttrs: !1,
5
23
  __name: "HysSwitch",
6
24
  props: {
7
- modelValue: { type: Boolean },
25
+ modelValue: { default: void 0 },
26
+ defaultValue: { default: void 0 },
27
+ activeValue: { default: void 0 },
28
+ inactiveValue: { default: void 0 },
8
29
  disabled: { type: Boolean },
30
+ readonly: { type: Boolean },
9
31
  loading: { type: Boolean },
32
+ size: {},
33
+ width: {},
34
+ round: { type: Boolean, default: !0 },
35
+ activeColor: {},
36
+ inactiveColor: {},
10
37
  activeText: {},
11
38
  inactiveText: {},
39
+ inlinePrompt: { type: Boolean },
40
+ activeIcon: {},
41
+ inactiveIcon: {},
42
+ activeActionIcon: {},
43
+ inactiveActionIcon: {},
12
44
  ariaLabel: {},
13
- beforeChange: { type: Function }
45
+ name: {},
46
+ form: {},
47
+ tabindex: {},
48
+ autofocus: { type: Boolean },
49
+ focusable: { type: Boolean, default: !0 },
50
+ error: {},
51
+ status: {},
52
+ beforeChange: {}
14
53
  },
15
- emits: ["update:modelValue", "change", "error"],
16
- setup(e, { emit: h }) {
17
- const a = e, c = h, y = D(), t = x(!1);
18
- let l = 0, i = !0;
19
- function r() {
20
- l++, t.value = !1;
54
+ emits: ["update:modelValue", "change", "error", "click", "focus", "blur"],
55
+ setup(e, { expose: G, emit: J }) {
56
+ const a = e, h = J, Q = re(), m = p(), I = M(), r = _(ne, void 0), { disabled: s, size: P, label: U } = le(a), x = M(!1), D = ee(), L = M(!1);
57
+ let C = 0, b;
58
+ function E() {
59
+ C++, b == null || b.abort(), b = void 0, x.value = !1;
21
60
  }
22
- V(() => [a.disabled, a.loading, a.modelValue], r, { flush: "sync" }), k(() => {
23
- i = !0;
24
- }), C(() => {
25
- i = !1, r();
26
- }), T(() => {
27
- i = !1, r();
28
- });
29
- async function v() {
30
- if (!i || a.disabled || a.loading || t.value) return;
31
- const n = ++l, o = !a.modelValue;
32
- t.value = !0;
61
+ const N = g(
62
+ () => K(a.activeValue) ? a.activeValue : !0
63
+ ), S = g(
64
+ () => K(a.inactiveValue) ? a.inactiveValue : !1
65
+ ), o = oe(
66
+ a,
67
+ () => a.defaultValue ?? S.value,
68
+ Object.is,
69
+ E
70
+ ), u = g(() => o.current.value === N.value), f = g(() => a.loading || x.value), j = g(
71
+ () => {
72
+ var t, n;
73
+ return a.error || (t = r == null ? void 0 : r.invalid) != null && t.value || a.status === "error" ? "error" : a.status ?? ((n = r == null ? void 0 : r.status) == null ? void 0 : n.value);
74
+ }
75
+ );
76
+ O(() => [s.value, a.readonly, a.loading], E, {
77
+ flush: "sync"
78
+ }), O([N, S], o.invalidate, { flush: "sync" });
79
+ async function F() {
80
+ if (!o.isLive() || s.value || a.readonly || f.value)
81
+ return !1;
82
+ const t = u.value ? S.value : N.value;
83
+ if (t === o.current.value) return !1;
84
+ const n = ++C, w = new AbortController();
85
+ b = w, x.value = !!a.beforeChange;
33
86
  try {
34
- if (a.beforeChange && await a.beforeChange(o) === !1 || !i || n !== l || a.disabled || a.loading) return;
35
- c("update:modelValue", o), c("change", o);
36
- } catch (b) {
37
- i && n === l && c("error", b);
87
+ return a.beforeChange && await a.beforeChange(t, o.current.value, {
88
+ signal: w.signal
89
+ }) === !1 || !o.isLive() || n !== C || w.signal.aborted || s.value || a.readonly || a.loading ? !1 : await o.commit(
90
+ t,
91
+ (c) => h("update:modelValue", c),
92
+ (c) => h("change", c),
93
+ !0
94
+ );
95
+ } catch (c) {
96
+ return o.isLive() && n === C && h("error", c), !1;
38
97
  } finally {
39
- n === l && (t.value = !1);
98
+ n === C && (x.value = !1, b = void 0);
40
99
  }
41
100
  }
42
- return (n, o) => (s(), u("span", w(d(y), { class: "hys-ui-switch-wrap" }), [
43
- f("button", {
44
- type: "button",
45
- role: "switch",
46
- "aria-label": e.ariaLabel || e.activeText || e.inactiveText || "切换",
47
- "aria-checked": e.modelValue,
48
- "aria-busy": e.loading || t.value,
49
- class: B(["hys-ui-switch", { "hys-ui-on": e.modelValue }]),
50
- disabled: e.disabled || e.loading || t.value,
51
- onClick: v
52
- }, [
53
- f("span", null, [
54
- e.loading || t.value ? (s(), A(d(z), {
55
- key: 0,
56
- class: "hys-ui-icon-spin",
57
- size: 12
58
- })) : m("", !0)
59
- ])
60
- ], 10, E),
61
- e.activeText || e.inactiveText ? (s(), u("span", H, L(e.modelValue ? e.activeText : e.inactiveText), 1)) : m("", !0)
62
- ], 16));
101
+ function W(t) {
102
+ s.value || a.readonly || f.value || (h("click", o.current.value, t), F());
103
+ }
104
+ function H(t) {
105
+ var n;
106
+ !s.value && !f.value && ((n = I.value) == null || n.focus(t));
107
+ }
108
+ ue(I, o.reset, void 0, () => a.form), ae(() => {
109
+ a.autofocus && H();
110
+ });
111
+ const X = () => Object.fromEntries(
112
+ Object.entries(m).filter(([t]) => t !== "class" && t !== "style")
113
+ ), Y = g(() => ({
114
+ width: typeof a.width == "number" && Number.isFinite(a.width) ? Math.max(0, a.width) + "px" : a.width ?? (a.inlinePrompt ? "max-content" : void 0),
115
+ "--hys-ui-switch-on": a.activeColor || "var(--hys-ui-primary,var(--hys-ui-theme-primary))",
116
+ "--hys-ui-switch-off": a.inactiveColor || "var(--hys-ui-border,var(--hys-ui-theme-border))"
117
+ }));
118
+ return G({
119
+ element: I,
120
+ checked: u,
121
+ pending: x,
122
+ focus: H,
123
+ blur: () => {
124
+ var t;
125
+ return (t = I.value) == null ? void 0 : t.blur();
126
+ },
127
+ toggle: F
128
+ }), (t, n) => {
129
+ var w, c;
130
+ return l(), d("span", R(i(Q), {
131
+ class: ["hys-ui-switch-wrap", [
132
+ i(m).class,
133
+ "hys-ui-switch-" + i(P),
134
+ {
135
+ "hys-ui-switch-disabled": i(s),
136
+ "hys-ui-switch-readonly": e.readonly
137
+ }
138
+ ]],
139
+ style: i(m).style
140
+ }), [
141
+ A("button", R({
142
+ ref_key: "element",
143
+ ref: I
144
+ }, X(), {
145
+ id: i(m).id || ((w = i(r)) == null ? void 0 : w.id.value),
146
+ "data-hys-ui-field-managed": "",
147
+ type: "button",
148
+ role: "switch",
149
+ class: ["hys-ui-switch", {
150
+ "hys-ui-on": u.value,
151
+ "hys-ui-switch-square": !e.round,
152
+ "hys-ui-switch-inline": e.inlinePrompt,
153
+ "hys-ui-switch-error": j.value === "error"
154
+ }],
155
+ "data-status": j.value,
156
+ style: Y.value,
157
+ disabled: i(s) || f.value,
158
+ tabindex: e.focusable ? e.tabindex : -1,
159
+ autofocus: e.autofocus,
160
+ "aria-label": e.ariaLabel || i(m)["aria-label"] || i(U) || e.activeText || e.inactiveText || "切换",
161
+ "aria-checked": u.value,
162
+ "aria-readonly": e.readonly || void 0,
163
+ "aria-busy": f.value || void 0,
164
+ "aria-invalid": j.value === "error" || void 0,
165
+ "aria-describedby": [i(m)["aria-describedby"], e.error ? i(D) : (c = i(r)) == null ? void 0 : c.describedBy.value].filter(Boolean).join(" ") || void 0,
166
+ onMousedown: n[0] || (n[0] = (V) => !e.focusable && V.preventDefault()),
167
+ onClick: W,
168
+ onFocus: n[1] || (n[1] = (V) => {
169
+ L.value = !0, h("focus", V);
170
+ }),
171
+ onBlur: n[2] || (n[2] = (V) => {
172
+ L.value = !1, h("blur", V);
173
+ })
174
+ }), [
175
+ e.inlinePrompt ? (l(), d("span", ce, [
176
+ A("span", null, y(e.activeText), 1),
177
+ A("span", null, y(e.inactiveText), 1)
178
+ ])) : v("", !0),
179
+ e.inlinePrompt ? (l(), d("span", de, [
180
+ u.value ? k(t.$slots, "active", {}, () => [
181
+ e.activeIcon ? (l(), B(T(z(e.activeIcon)), {
182
+ key: 0,
183
+ size: 14
184
+ })) : (l(), d(q, { key: 1 }, [
185
+ $(y(e.activeText), 1)
186
+ ], 64))
187
+ ], !0, 0) : k(t.$slots, "inactive", {}, () => [
188
+ e.inactiveIcon ? (l(), B(T(z(e.inactiveIcon)), {
189
+ key: 0,
190
+ size: 14
191
+ })) : (l(), d(q, { key: 1 }, [
192
+ $(y(e.inactiveText), 1)
193
+ ], 64))
194
+ ], !0, 1)
195
+ ])) : v("", !0),
196
+ A("span", ve, [
197
+ k(t.$slots, "thumb", {
198
+ checked: u.value,
199
+ loading: f.value,
200
+ focused: L.value
201
+ }, () => [
202
+ f.value ? k(t.$slots, "loading", {}, () => [
203
+ te(i(ie), {
204
+ class: "hys-ui-icon-spin",
205
+ size: i(P) === "lg" ? 14 : 11
206
+ }, null, 8, ["size"])
207
+ ], !0, 0) : (u.value ? e.activeActionIcon : e.inactiveActionIcon) ? (l(), B(T(z(u.value ? e.activeActionIcon : e.inactiveActionIcon)), {
208
+ key: 1,
209
+ size: i(P) === "lg" ? 14 : 11
210
+ }, null, 8, ["size"])) : v("", !0)
211
+ ], !0)
212
+ ])
213
+ ], 16, se),
214
+ !e.inlinePrompt && (e.activeText || e.inactiveText || e.activeIcon || e.inactiveIcon || t.$slots.active || t.$slots.inactive) ? (l(), d("span", fe, [
215
+ u.value ? k(t.$slots, "active", {}, () => [
216
+ e.activeIcon ? (l(), B(T(z(e.activeIcon)), {
217
+ key: 0,
218
+ size: 15
219
+ })) : v("", !0),
220
+ $(y(e.activeText), 1)
221
+ ], !0, 0) : k(t.$slots, "inactive", {}, () => [
222
+ e.inactiveIcon ? (l(), B(T(z(e.inactiveIcon)), {
223
+ key: 0,
224
+ size: 15
225
+ })) : v("", !0),
226
+ $(y(e.inactiveText), 1)
227
+ ], !0, 1)
228
+ ])) : v("", !0),
229
+ e.name ? (l(), d("input", {
230
+ key: 1,
231
+ type: "hidden",
232
+ name: e.name,
233
+ form: e.form,
234
+ value: String(i(o).current.value),
235
+ disabled: i(s)
236
+ }, null, 8, ye)) : v("", !0),
237
+ e.error ? (l(), d("small", {
238
+ key: 2,
239
+ id: i(D),
240
+ class: "hys-ui-switch-error-text",
241
+ role: "alert"
242
+ }, y(e.error), 9, he)) : v("", !0)
243
+ ], 16);
244
+ };
63
245
  }
64
246
  });
65
247
  export {
66
- F as default
248
+ xe as default
67
249
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./HysTable2.vue.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dcb04505"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-68f5fb01"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };