hys-ui 0.1.0 → 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 (247) hide show
  1. package/CHANGELOG.md +137 -1
  2. package/README.md +18 -6
  3. package/dist/components/HysAccordion/HysAccordion.vue.js +1 -1
  4. package/dist/components/HysAccordion/HysAccordion2.vue.js +181 -47
  5. package/dist/components/HysAlert/HysAlert.vue.js +14 -14
  6. package/dist/components/HysAnimatedNumber/HysAnimatedNumber.vue.js +23 -20
  7. package/dist/components/HysAutocomplete/HysAutocomplete.vue.js +7 -0
  8. package/dist/components/HysAutocomplete/HysAutocomplete2.vue.js +627 -0
  9. package/dist/components/HysAvatar/HysAvatar.vue.js +5 -35
  10. package/dist/components/HysAvatar/HysAvatar2.vue.js +221 -2
  11. package/dist/components/HysAvatarGroup/HysAvatarGroup.vue.js +7 -0
  12. package/dist/components/HysAvatarGroup/HysAvatarGroup2.vue.js +252 -0
  13. package/dist/components/HysBadge/HysBadge.vue.js +2 -2
  14. package/dist/components/HysBadge/HysBadge2.vue.js +154 -26
  15. package/dist/components/HysBreadcrumb/HysBreadcrumb.vue.js +5 -38
  16. package/dist/components/HysBreadcrumb/HysBreadcrumb2.vue.js +74 -2
  17. package/dist/components/HysButton/HysButton.vue.js +2 -2
  18. package/dist/components/HysButton/HysButton2.vue.js +29 -28
  19. package/dist/components/HysCalendar/HysCalendar.vue.js +5 -84
  20. package/dist/components/HysCalendar/HysCalendar2.vue.js +803 -2
  21. package/dist/components/HysCard/HysCard.vue.js +1 -1
  22. package/dist/components/HysCard/HysCard2.vue.js +177 -44
  23. package/dist/components/HysCascader/HysCascader.vue.js +5 -182
  24. package/dist/components/HysCascader/HysCascader2.vue.js +760 -2
  25. package/dist/components/HysCascader/HysCascaderColumn.vue.js +7 -0
  26. package/dist/components/HysCascader/HysCascaderColumn2.vue.js +232 -0
  27. package/dist/components/HysCheckbox/HysCheckbox.vue.js +5 -39
  28. package/dist/components/HysCheckbox/HysCheckbox2.vue.js +200 -2
  29. package/dist/components/HysCheckboxGroup/HysCheckboxGroup.vue.js +7 -0
  30. package/dist/components/HysCheckboxGroup/HysCheckboxGroup2.vue.js +237 -0
  31. package/dist/components/HysColorPicker/HysColorPicker.vue.js +2 -2
  32. package/dist/components/HysColorPicker/HysColorPicker2.vue.js +107 -106
  33. package/dist/components/HysCommandPalette/HysCommandPalette.vue.js +52 -51
  34. package/dist/components/HysCommentEditor/HysCommentEditor.vue.js +17 -17
  35. package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
  36. package/dist/components/HysDataGrid/HysDataGrid2.vue.js +397 -390
  37. package/dist/components/HysDatePicker/HysDatePicker.vue.js +268 -139
  38. package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +7 -0
  39. package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +807 -0
  40. package/dist/components/HysDatePicker/HysDatePickerPanel.vue.js +7 -0
  41. package/dist/components/HysDatePicker/HysDatePickerPanel2.vue.js +357 -0
  42. package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +268 -158
  43. package/dist/components/HysDivider/HysDivider.vue.js +2 -2
  44. package/dist/components/HysDivider/HysDivider2.vue.js +33 -13
  45. package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
  46. package/dist/components/HysDrawer/HysDrawer2.vue.js +55 -54
  47. package/dist/components/HysFileManager/HysFileManager.vue.js +5 -63
  48. package/dist/components/HysFileManager/HysFileManager2.vue.js +86 -2
  49. package/dist/components/HysForm/HysForm.vue.js +3 -3
  50. package/dist/components/HysForm/HysForm2.vue.js +580 -92
  51. package/dist/components/HysFormItem/HysFormItem.vue.js +5 -69
  52. package/dist/components/HysFormItem/HysFormItem2.vue.js +521 -2
  53. package/dist/components/HysGantt/HysGantt.vue.js +5 -264
  54. package/dist/components/HysGantt/HysGantt2.vue.js +1399 -2
  55. package/dist/components/HysInput/HysInput.vue.js +2 -2
  56. package/dist/components/HysInput/HysInput2.vue.js +468 -120
  57. package/dist/components/HysMention/HysMention.vue.js +2 -2
  58. package/dist/components/HysMention/HysMention2.vue.js +89 -88
  59. package/dist/components/HysModal/HysModal.vue.js +2 -2
  60. package/dist/components/HysModal/HysModal2.vue.js +35 -35
  61. package/dist/components/HysNotificationCenter/HysNotificationCenter.vue.js +37 -36
  62. package/dist/components/HysNumberInput/HysNumberInput.vue.js +2 -2
  63. package/dist/components/HysNumberInput/HysNumberInput2.vue.js +561 -70
  64. package/dist/components/HysOrgTree/HysOrgTree.vue.js +41 -36
  65. package/dist/components/HysPagination/HysPagination.vue.js +2 -2
  66. package/dist/components/HysPagination/HysPagination2.vue.js +93 -91
  67. package/dist/components/HysPermissionMatrix/HysPermissionMatrix.vue.js +5 -41
  68. package/dist/components/HysPermissionMatrix/HysPermissionMatrix2.vue.js +101 -2
  69. package/dist/components/HysRadio/HysRadio.vue.js +7 -0
  70. package/dist/components/HysRadio/HysRadio2.vue.js +180 -0
  71. package/dist/components/HysRadioGroup/HysRadioGroup.vue.js +5 -40
  72. package/dist/components/HysRadioGroup/HysRadioGroup2.vue.js +205 -2
  73. package/dist/components/HysRating/HysRating.vue.js +1 -1
  74. package/dist/components/HysRating/HysRating2.vue.js +288 -68
  75. package/dist/components/HysResizablePanel/HysResizablePanel.vue.js +46 -28
  76. package/dist/components/HysRichTextEditor/HysRichTextEditor.vue.js +2 -2
  77. package/dist/components/HysRichTextEditor/HysRichTextEditor2.vue.js +87 -67
  78. package/dist/components/HysSearch/HysSearch.vue.js +50 -38
  79. package/dist/components/HysSegmented/HysSegmented.vue.js +5 -58
  80. package/dist/components/HysSegmented/HysSegmented2.vue.js +273 -2
  81. package/dist/components/HysSelect/HysSelect.vue.js +3 -2
  82. package/dist/components/HysSelect/HysSelect2.vue.js +859 -164
  83. package/dist/components/HysSkeleton/HysSkeleton.vue.js +2 -2
  84. package/dist/components/HysSkeleton/HysSkeleton2.vue.js +126 -29
  85. package/dist/components/HysSlider/HysSlider.vue.js +2 -2
  86. package/dist/components/HysSlider/HysSlider2.vue.js +532 -59
  87. package/dist/components/HysSlider/SliderTooltip.vue.js +7 -0
  88. package/dist/components/HysSlider/SliderTooltip2.vue.js +156 -0
  89. package/dist/components/HysSplitPane/HysSplitPane.vue.js +48 -42
  90. package/dist/components/HysSteps/HysSteps.vue.js +2 -2
  91. package/dist/components/HysSteps/HysSteps2.vue.js +111 -36
  92. package/dist/components/HysSwitch/HysSwitch.vue.js +2 -2
  93. package/dist/components/HysSwitch/HysSwitch2.vue.js +235 -42
  94. package/dist/components/HysTable/HysTable.vue.js +1 -1
  95. package/dist/components/HysTable/HysTable2.vue.js +1471 -82
  96. package/dist/components/HysTable/HysTableFilterOptions.vue.js +7 -0
  97. package/dist/components/HysTable/HysTableFilterOptions2.vue.js +133 -0
  98. package/dist/components/HysTabs/HysTabs.vue.js +2 -2
  99. package/dist/components/HysTabs/HysTabs2.vue.js +262 -66
  100. package/dist/components/HysTagInput/HysTagInput.vue.js +43 -42
  101. package/dist/components/HysTextarea/HysTextarea.vue.js +137 -66
  102. package/dist/components/HysToast/HysToast.vue.js +2 -2
  103. package/dist/components/HysToast/HysToast2.vue.js +121 -38
  104. package/dist/components/HysTour/HysTour.vue.js +47 -42
  105. package/dist/components/HysTransfer/HysTransfer.vue.js +5 -207
  106. package/dist/components/HysTransfer/HysTransfer2.vue.js +416 -2
  107. package/dist/components/HysTransfer/HysTransferPanel.vue.js +7 -0
  108. package/dist/components/HysTransfer/HysTransferPanel2.vue.js +454 -0
  109. package/dist/components/HysTree/HysTree.vue.js +2 -3
  110. package/dist/components/HysTree/HysTree2.vue.js +641 -301
  111. package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +5 -129
  112. package/dist/components/HysTreeSelect/HysTreeSelect2.vue.js +558 -2
  113. package/dist/components/HysTreeSelect/HysTreeSelectPanel.vue.js +7 -0
  114. package/dist/components/HysTreeSelect/HysTreeSelectPanel2.vue.js +323 -0
  115. package/dist/components/HysUpload/HysUpload.vue.js +2 -2
  116. package/dist/components/HysUpload/HysUpload2.vue.js +97 -78
  117. package/dist/composables/autocomplete.js +50 -0
  118. package/dist/composables/avatar.js +57 -0
  119. package/dist/composables/calendar.js +96 -0
  120. package/dist/composables/cascader.js +79 -0
  121. package/dist/composables/choice.js +38 -0
  122. package/dist/composables/choiceModel.js +67 -0
  123. package/dist/composables/datePicker.js +227 -0
  124. package/dist/composables/formContext.js +94 -3
  125. package/dist/composables/formLayout.js +57 -0
  126. package/dist/composables/formValidation.js +240 -0
  127. package/dist/composables/ganttConflicts.js +143 -0
  128. package/dist/composables/numberInput.js +91 -0
  129. package/dist/composables/rating.js +16 -0
  130. package/dist/composables/selectOptions.js +54 -0
  131. package/dist/composables/table.js +150 -0
  132. package/dist/composables/textInput.js +34 -0
  133. package/dist/composables/toastEscape.js +16 -0
  134. package/dist/composables/transfer.js +63 -0
  135. package/dist/composables/tree.js +118 -0
  136. package/dist/composables/treeSelect.js +71 -0
  137. package/dist/composables/useCascader.js +438 -0
  138. package/dist/composables/useDatePicker.js +425 -0
  139. package/dist/composables/useDialog.js +16 -16
  140. package/dist/composables/useFloating.js +98 -52
  141. package/dist/composables/useGanttDependencies.js +306 -0
  142. package/dist/composables/useGanttHistory.js +157 -0
  143. package/dist/composables/useGanttLabelResize.js +100 -0
  144. package/dist/composables/useHysToast.js +148 -0
  145. package/dist/composables/useTable.js +474 -0
  146. package/dist/composables/useTextareaSize.js +72 -0
  147. package/dist/composables/useTransfer.js +257 -0
  148. package/dist/composables/useTree.js +439 -0
  149. package/dist/composables/useTreeSelect.js +361 -0
  150. package/dist/config.js +18 -15
  151. package/dist/index.js +149 -136
  152. package/dist/style.css +1 -1
  153. package/dist/types/components/HysAccordion/HysAccordion.vue.d.ts +61 -22
  154. package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +201 -0
  155. package/dist/types/components/HysAvatar/HysAvatar.vue.d.ts +28 -15
  156. package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +99 -0
  157. package/dist/types/components/HysBadge/HysBadge.vue.d.ts +41 -4
  158. package/dist/types/components/HysBreadcrumb/HysBreadcrumb.vue.d.ts +38 -10
  159. package/dist/types/components/HysButton/HysButton.vue.d.ts +0 -1
  160. package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +119 -29
  161. package/dist/types/components/HysCard/HysCard.vue.d.ts +57 -5
  162. package/dist/types/components/HysCascader/HysCascader.vue.d.ts +129 -41
  163. package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +55 -0
  164. package/dist/types/components/HysCheckbox/HysCheckbox.vue.d.ts +55 -27
  165. package/dist/types/components/HysCheckboxGroup/HysCheckboxGroup.vue.d.ts +73 -0
  166. package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +1 -1
  167. package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +66 -14
  168. package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +90 -0
  169. package/dist/types/components/HysDatePicker/HysDatePickerPanel.vue.d.ts +93 -0
  170. package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +66 -14
  171. package/dist/types/components/HysDivider/HysDivider.vue.d.ts +8 -3
  172. package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +1 -0
  173. package/dist/types/components/HysFileManager/HysFileManager.vue.d.ts +8 -4
  174. package/dist/types/components/HysForm/HysForm.vue.d.ts +110 -18
  175. package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +108 -2
  176. package/dist/types/components/HysGantt/HysGantt.vue.d.ts +88 -4
  177. package/dist/types/components/HysInput/HysInput.vue.d.ts +52 -29
  178. package/dist/types/components/HysMention/HysMention.vue.d.ts +2 -2
  179. package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +93 -33
  180. package/dist/types/components/HysOrgTree/HysOrgTree.vue.d.ts +4 -1
  181. package/dist/types/components/HysPagination/HysPagination.vue.d.ts +1 -1
  182. package/dist/types/components/HysPermissionMatrix/HysPermissionMatrix.vue.d.ts +8 -1
  183. package/dist/types/components/HysPopover/HysPopover.vue.d.ts +3 -3
  184. package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
  185. package/dist/types/components/HysRadio/HysRadio.vue.d.ts +56 -0
  186. package/dist/types/components/HysRadioGroup/HysRadioGroup.vue.d.ts +62 -17
  187. package/dist/types/components/HysRating/HysRating.vue.d.ts +85 -5
  188. package/dist/types/components/HysResizablePanel/HysResizablePanel.vue.d.ts +6 -0
  189. package/dist/types/components/HysRichTextEditor/HysRichTextEditor.vue.d.ts +4 -4
  190. package/dist/types/components/HysSearch/HysSearch.vue.d.ts +2 -2
  191. package/dist/types/components/HysSegmented/HysSegmented.vue.d.ts +64 -32
  192. package/dist/types/components/HysSelect/HysSelect.vue.d.ts +120 -14
  193. package/dist/types/components/HysSkeleton/HysSkeleton.vue.d.ts +30 -2
  194. package/dist/types/components/HysSlider/HysSlider.vue.d.ts +66 -9
  195. package/dist/types/components/HysSlider/SliderTooltip.vue.d.ts +22 -0
  196. package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +6 -0
  197. package/dist/types/components/HysSteps/HysSteps.vue.d.ts +65 -9
  198. package/dist/types/components/HysSwitch/HysSwitch.vue.d.ts +76 -17
  199. package/dist/types/components/HysTable/HysTable.vue.d.ts +206 -32
  200. package/dist/types/components/HysTable/HysTableFilterOptions.vue.d.ts +18 -0
  201. package/dist/types/components/HysTabs/HysTabs.vue.d.ts +76 -23
  202. package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +5 -5
  203. package/dist/types/components/HysTextarea/HysTextarea.vue.d.ts +44 -27
  204. package/dist/types/components/HysToast/HysToast.vue.d.ts +55 -7
  205. package/dist/types/components/HysTour/HysTour.vue.d.ts +5 -3
  206. package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +55 -30
  207. package/dist/types/components/HysTransfer/HysTransferPanel.vue.d.ts +105 -0
  208. package/dist/types/components/HysTree/HysTree.vue.d.ts +140 -73
  209. package/dist/types/components/HysTreeSelect/HysTreeSelect.vue.d.ts +102 -23
  210. package/dist/types/components/HysTreeSelect/HysTreeSelectPanel.vue.d.ts +56 -0
  211. package/dist/types/composables/autocomplete.d.ts +106 -0
  212. package/dist/types/composables/avatar.d.ts +70 -0
  213. package/dist/types/composables/calendar.d.ts +66 -0
  214. package/dist/types/composables/cascader.d.ts +192 -0
  215. package/dist/types/composables/choice.d.ts +110 -0
  216. package/dist/types/composables/choiceModel.d.ts +11 -0
  217. package/dist/types/composables/datePicker.d.ts +247 -0
  218. package/dist/types/composables/formContext.d.ts +138 -8
  219. package/dist/types/composables/formLayout.d.ts +11 -0
  220. package/dist/types/composables/formValidation.d.ts +13 -0
  221. package/dist/types/composables/gantt.d.ts +68 -0
  222. package/dist/types/composables/ganttConflicts.d.ts +30 -0
  223. package/dist/types/composables/numberInput.d.ts +45 -0
  224. package/dist/types/composables/rating.d.ts +18 -0
  225. package/dist/types/composables/segmented.d.ts +15 -0
  226. package/dist/types/composables/selectOptions.d.ts +44 -0
  227. package/dist/types/composables/slider.d.ts +21 -0
  228. package/dist/types/composables/table.d.ts +309 -0
  229. package/dist/types/composables/textInput.d.ts +76 -0
  230. package/dist/types/composables/toastEscape.d.ts +1 -0
  231. package/dist/types/composables/transfer.d.ts +180 -0
  232. package/dist/types/composables/tree.d.ts +237 -0
  233. package/dist/types/composables/treeSelect.d.ts +167 -0
  234. package/dist/types/composables/useCascader.d.ts +162 -0
  235. package/dist/types/composables/useDatePicker.d.ts +79 -0
  236. package/dist/types/composables/useFloating.d.ts +8 -5
  237. package/dist/types/composables/useGanttDependencies.d.ts +83 -0
  238. package/dist/types/composables/useGanttHistory.d.ts +42 -0
  239. package/dist/types/composables/useGanttLabelResize.d.ts +23 -0
  240. package/dist/types/composables/useHysToast.d.ts +50 -0
  241. package/dist/types/composables/useTable.d.ts +60 -0
  242. package/dist/types/composables/useTextareaSize.d.ts +3 -0
  243. package/dist/types/composables/useTransfer.d.ts +58 -0
  244. package/dist/types/composables/useTree.d.ts +77 -0
  245. package/dist/types/composables/useTreeSelect.d.ts +117 -0
  246. package/dist/types/index.d.ts +38 -7
  247. package/package.json +47 -11
@@ -1,56 +1,61 @@
1
- import { defineComponent as f, computed as k, openBlock as y, createBlock as b, mergeProps as I, unref as K } from "vue";
2
- import { useHysRootAttrs as V } from "../../config.js";
3
- import g from "../HysTree/HysTree.vue.js";
4
- const x = /* @__PURE__ */ f({
1
+ import { defineComponent as k, computed as y, openBlock as I, createBlock as g, mergeProps as v, unref as p } from "vue";
2
+ import { useHysControlState as B } from "../../composables/formContext.js";
3
+ import { useHysRootAttrs as K } from "../../config.js";
4
+ import V from "../HysTree/HysTree.vue.js";
5
+ const C = /* @__PURE__ */ k({
5
6
  __name: "HysOrgTree",
6
7
  props: {
7
8
  nodes: {},
8
9
  modelValue: {},
9
- searchable: { type: Boolean },
10
+ searchable: { type: Boolean, default: !0 },
10
11
  checkable: { type: Boolean },
11
- checkedKeys: {}
12
+ checkedKeys: {},
13
+ disabled: { type: Boolean }
12
14
  },
13
15
  emits: ["update:modelValue", "update:checkedKeys"],
14
- setup(a, { emit: u }) {
15
- const p = V(), s = a, l = u, m = k(() => {
16
- var o;
17
- const d = /* @__PURE__ */ new Map();
18
- for (const e of s.nodes) d.has(e.id) || d.set(e.id, { id: e.id, label: e.name, disabled: e.disabled, children: [] });
19
- const t = [];
20
- for (const e of s.nodes) {
21
- const c = d.get(e.id);
22
- if (e.parentId && e.parentId !== e.id && d.has(e.parentId)) {
23
- let n = e.parentId;
24
- const r = /* @__PURE__ */ new Set([e.id]);
25
- let i = !1;
26
- for (; n; ) {
27
- if (r.has(n)) {
28
- i = !0;
16
+ setup(d, { emit: m }) {
17
+ const f = K(), n = d, { disabled: h } = B(n), l = m, b = y(() => {
18
+ var c;
19
+ const o = /* @__PURE__ */ new Map();
20
+ for (const e of n.nodes) o.has(e.id) || o.set(e.id, e);
21
+ const t = /* @__PURE__ */ new Map();
22
+ for (const e of o.values()) t.has(e.id) || t.set(e.id, { id: e.id, label: e.name, disabled: e.disabled, children: [] });
23
+ const a = [];
24
+ for (const e of o.values()) {
25
+ const r = t.get(e.id);
26
+ if (e.parentId && e.parentId !== e.id && t.has(e.parentId)) {
27
+ let s = e.parentId;
28
+ const i = /* @__PURE__ */ new Set([e.id]);
29
+ let u = !1;
30
+ for (; s; ) {
31
+ if (i.has(s)) {
32
+ u = !0;
29
33
  break;
30
34
  }
31
- r.add(n), n = ((o = s.nodes.find((h) => h.id === n)) == null ? void 0 : o.parentId) || "";
35
+ i.add(s), s = ((c = o.get(s)) == null ? void 0 : c.parentId) || "";
32
36
  }
33
- if (!i) {
34
- d.get(e.parentId).children.push(c);
37
+ if (!u) {
38
+ t.get(e.parentId).children.push(r);
35
39
  continue;
36
40
  }
37
41
  }
38
- t.push(c);
42
+ a.push(r);
39
43
  }
40
- return t;
44
+ return a;
41
45
  });
42
- return (d, t) => (y(), b(g, I(K(p), {
43
- nodes: m.value,
44
- "model-value": a.modelValue,
45
- "checked-keys": a.checkedKeys,
46
- checkable: a.checkable,
47
- searchable: a.searchable !== !1,
46
+ return (o, t) => (I(), g(V, v(p(f), {
47
+ nodes: b.value,
48
+ "model-value": d.modelValue,
49
+ "checked-keys": d.checkedKeys,
50
+ checkable: d.checkable,
51
+ searchable: d.searchable !== !1,
52
+ disabled: p(h),
48
53
  "default-expand-all": "",
49
- "onUpdate:modelValue": t[0] || (t[0] = (o) => l("update:modelValue", o)),
50
- "onUpdate:checkedKeys": t[1] || (t[1] = (o) => l("update:checkedKeys", o))
51
- }), null, 16, ["nodes", "model-value", "checked-keys", "checkable", "searchable"]));
54
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => l("update:modelValue", a)),
55
+ "onUpdate:checkedKeys": t[1] || (t[1] = (a) => l("update:checkedKeys", a))
56
+ }), null, 16, ["nodes", "model-value", "checked-keys", "checkable", "searchable", "disabled"]));
52
57
  }
53
58
  });
54
59
  export {
55
- x as default
60
+ C as default
56
61
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./HysPagination2.vue.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-11dca672"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dba949dd"]]);
5
5
  export {
6
- m as default
6
+ i as default
7
7
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as T, computed as o, ref as A, watch as O, openBlock as d, createElementBlock as c, mergeProps as Q, unref as M, toDisplayString as f, createCommentVNode as N, createElementVNode as w, createVNode as u, withCtx as y, Fragment as j, renderList as U, createBlock as D, normalizeClass as q, createTextVNode as B, withModifiers as G } from "vue";
2
- import { useHysRootAttrs as K } from "../../config.js";
3
- import { ChevronsLeft as W, ChevronLeft as X, ChevronRight as Y, ChevronsRight as Z } from "lucide-vue-next";
4
- import _ from "../HysSelect/HysSelect.vue.js";
5
- import ee from "../HysNumberInput/HysNumberInput.vue.js";
6
- import z from "../HysButton/HysButton.vue.js";
7
- const ae = ["aria-busy"], te = {
1
+ import { defineComponent as O, computed as s, ref as I, watch as P, openBlock as v, createElementBlock as c, mergeProps as Q, unref as C, toDisplayString as g, createCommentVNode as w, createElementVNode as B, createVNode as o, withCtx as S, Fragment as F, renderList as U, createBlock as q, normalizeClass as G, createTextVNode as V, withModifiers as K } from "vue";
2
+ import { useHysRootAttrs as W } from "../../config.js";
3
+ import { ChevronsLeft as X, ChevronLeft as Y, ChevronRight as Z, ChevronsRight as _ } from "lucide-vue-next";
4
+ import ee from "../HysSelect/HysSelect.vue.js";
5
+ import ae from "../HysNumberInput/HysNumberInput.vue.js";
6
+ import M from "../HysButton/HysButton.vue.js";
7
+ const te = ["aria-busy"], le = {
8
8
  key: 0,
9
9
  class: "hys-ui-pf-pagination-total",
10
10
  "aria-live": "polite"
11
- }, le = { class: "hys-ui-pf-pagination-actions" }, ie = { class: "hys-ui-pf-pagination-controls" }, ne = {
11
+ }, ie = { class: "hys-ui-pf-pagination-actions" }, ne = { class: "hys-ui-pf-pagination-controls" }, ue = {
12
12
  key: 1,
13
13
  class: "hys-ui-pf-pagination-gap",
14
14
  "aria-hidden": "true"
@@ -18,10 +18,10 @@ const ae = ["aria-busy"], te = {
18
18
  }, oe = {
19
19
  key: 2,
20
20
  class: "hys-ui-pf-pagination-mobile-indicator"
21
- }, ue = {
21
+ }, re = {
22
22
  key: 0,
23
23
  class: "hys-ui-pf-pagination-size"
24
- }, fe = /* @__PURE__ */ T({
24
+ }, ge = /* @__PURE__ */ O({
25
25
  __name: "HysPagination",
26
26
  props: {
27
27
  page: {},
@@ -38,126 +38,125 @@ const ae = ["aria-busy"], te = {
38
38
  labels: {}
39
39
  },
40
40
  emits: ["change", "update:page", "pageSizeChange", "update:pageSize"],
41
- setup(p, { emit: P }) {
42
- const F = K(), s = p, k = P, b = o(() => Number.isFinite(s.pageSize) && s.pageSize > 0 ? Math.floor(s.pageSize) : 10), S = o(() => Number.isFinite(s.total) ? Math.max(0, Math.floor(s.total)) : 0), v = o(() => Math.max(1, Math.ceil(S.value / b.value))), t = o(() => Math.min(v.value, Math.max(1, Number.isFinite(s.page) ? Math.floor(s.page) : 1))), r = o(() => s.disabled || s.loading), H = o(() => S.value === 0 ? 0 : (t.value - 1) * b.value + 1), I = o(() => Math.min(S.value, t.value * b.value)), n = o(() => ({ total: "共 {total} 条({start}–{end})", perPage: "每页条数", jump: "跳转到", page: "页", first: "首页", previous: "上一页", next: "下一页", last: "末页", ...s.labels })), $ = o(() => n.value.total.replace("{total}", String(S.value)).replace("{start}", String(H.value)).replace("{end}", String(I.value))), E = o(() => [...new Set([...s.pageSizeOptions ?? [10, 20, 50, 100], b.value].filter((l) => Number.isInteger(l) && l > 0))].sort((l, e) => l - e)), J = o(() => {
43
- const l = v.value, e = Math.max(0, Math.min(5, Math.floor(s.siblingCount))), a = /* @__PURE__ */ new Set([1, l]);
44
- for (let i = Math.max(1, t.value - e); i <= Math.min(l, t.value + e); i++) a.add(i);
45
- if (t.value <= e + 3) for (let i = 1; i <= Math.min(l, 2 * e + 3); i++) a.add(i);
46
- if (t.value >= l - e - 2) for (let i = Math.max(1, l - (2 * e + 2)); i <= l; i++) a.add(i);
47
- const x = [...a].sort((i, h) => i - h), C = [];
48
- return x.forEach((i, h) => {
49
- h && i - x[h - 1] > 1 && (i - x[h - 1] === 2 ? C.push(i - 1) : C.push(h === 1 ? "left-gap" : "right-gap")), C.push(i);
50
- }), C;
51
- }), m = A(t.value), V = o(() => Number.isInteger(m.value) && m.value > 0 && m.value !== t.value);
52
- O(t, () => {
53
- m.value = t.value;
54
- });
55
- function g(l) {
41
+ setup(d, { emit: H }) {
42
+ const $ = W(), u = d, b = H, h = s(() => Number.isFinite(u.pageSize) && u.pageSize > 0 ? Math.floor(u.pageSize) : 10), k = s(() => Number.isFinite(u.total) ? Math.max(0, Math.floor(u.total)) : 0), p = s(() => Math.max(1, Math.ceil(k.value / h.value))), a = s(() => Math.min(p.value, Math.max(1, Number.isFinite(u.page) ? Math.floor(u.page) : 1))), r = s(() => u.disabled || u.loading), E = s(() => k.value === 0 ? 0 : (a.value - 1) * h.value + 1), J = s(() => Math.min(k.value, a.value * h.value)), n = s(() => ({ total: "共 {total} 条({start}–{end})", perPage: "每页条数", jump: "跳转到", page: "页", first: "首页", previous: "上一页", next: "下一页", last: "末页", ...u.labels })), L = s(() => n.value.total.replace("{total}", String(k.value)).replace("{start}", String(E.value)).replace("{end}", String(J.value))), R = s(() => [...new Set([...u.pageSizeOptions ?? [10, 20, 50, 100], h.value].filter((l) => Number.isInteger(l) && l > 0))].sort((l, e) => l - e)), T = s(() => {
43
+ const l = p.value, e = Math.max(0, Math.min(5, Math.floor(u.siblingCount))), t = /* @__PURE__ */ new Set([1, l]);
44
+ for (let i = Math.max(1, a.value - e); i <= Math.min(l, a.value + e); i++) t.add(i);
45
+ if (a.value <= e + 3) for (let i = 1; i <= Math.min(l, 2 * e + 3); i++) t.add(i);
46
+ if (a.value >= l - e - 2) for (let i = Math.max(1, l - (2 * e + 2)); i <= l; i++) t.add(i);
47
+ const f = [...t].sort((i, z) => i - z), N = [];
48
+ return f.forEach((i, z) => {
49
+ z && i - f[z - 1] > 1 && (i - f[z - 1] === 2 ? N.push(i - 1) : N.push(z === 1 ? "left-gap" : "right-gap")), N.push(i);
50
+ }), N;
51
+ }), x = I(a.value), m = I(a.value), j = s(() => m.value !== null && Number.isInteger(m.value) && m.value > 0 && m.value !== a.value);
52
+ P(a, () => {
53
+ x.value = a.value, m.value = a.value;
54
+ }), P(x, (l) => m.value = l);
55
+ function y(l) {
56
56
  if (r.value || !Number.isFinite(l)) return;
57
- const e = Math.min(v.value, Math.max(1, Math.floor(l)));
58
- e !== t.value && (k("update:page", e), k("change", e));
57
+ const e = Math.min(p.value, Math.max(1, Math.floor(l)));
58
+ e !== a.value && (b("update:page", e), b("change", e));
59
59
  }
60
- function L(l) {
60
+ function A(l) {
61
61
  if (r.value) return;
62
62
  const e = Number(l);
63
- if (!Number.isInteger(e) || e < 1 || e === b.value) return;
64
- k("update:pageSize", e), k("pageSizeChange", e);
65
- const a = Math.max(1, Math.ceil(S.value / e));
66
- t.value > a && g(a);
63
+ if (!Number.isInteger(e) || e < 1 || e === h.value) return;
64
+ const t = a.value, f = Math.max(1, Math.ceil(k.value / e));
65
+ b("update:pageSize", e), t > f && (b("update:page", f), b("change", f)), b("pageSizeChange", e);
67
66
  }
68
- function R() {
67
+ function D() {
69
68
  const l = Number(m.value);
70
- V.value && Number.isInteger(l) && g(l), m.value = t.value;
69
+ j.value && Number.isInteger(l) && y(l), x.value = a.value, m.value = a.value;
71
70
  }
72
- return (l, e) => (d(), c("nav", Q(M(F), {
73
- class: ["hys-ui-pf-pagination", { "pf-pagination--compact": p.compact }],
71
+ return (l, e) => (v(), c("nav", Q(C($), {
72
+ class: ["hys-ui-pf-pagination", { "hys-ui-pf-pagination-compact": d.compact }],
74
73
  "aria-label": "分页导航",
75
- "aria-busy": p.loading
74
+ "aria-busy": d.loading
76
75
  }), [
77
- p.showTotal ? (d(), c("span", te, f($.value), 1)) : N("", !0),
78
- w("div", le, [
79
- w("div", ie, [
80
- u(z, {
76
+ d.showTotal ? (v(), c("span", le, g(L.value), 1)) : w("", !0),
77
+ B("div", ie, [
78
+ B("div", ne, [
79
+ o(M, {
81
80
  variant: "secondary",
82
81
  size: "sm",
83
82
  type: "button",
84
- disabled: r.value || t.value === 1,
83
+ disabled: r.value || a.value === 1,
85
84
  "aria-label": n.value.first,
86
85
  title: n.value.first,
87
- onClick: e[0] || (e[0] = (a) => g(1))
86
+ onClick: e[0] || (e[0] = (t) => y(1))
88
87
  }, {
89
- default: y(() => [
90
- u(M(W), {
88
+ default: S(() => [
89
+ o(C(X), {
91
90
  size: 16,
92
91
  "aria-hidden": "true"
93
92
  })
94
93
  ]),
95
94
  _: 1
96
95
  }, 8, ["disabled", "aria-label", "title"]),
97
- u(z, {
96
+ o(M, {
98
97
  variant: "secondary",
99
98
  size: "sm",
100
99
  type: "button",
101
- disabled: r.value || t.value === 1,
100
+ disabled: r.value || a.value === 1,
102
101
  "aria-label": n.value.previous,
103
102
  title: n.value.previous,
104
- onClick: e[1] || (e[1] = (a) => g(t.value - 1))
103
+ onClick: e[1] || (e[1] = (t) => y(a.value - 1))
105
104
  }, {
106
- default: y(() => [
107
- u(M(X), {
105
+ default: S(() => [
106
+ o(C(Y), {
108
107
  size: 16,
109
108
  "aria-hidden": "true"
110
109
  })
111
110
  ]),
112
111
  _: 1
113
112
  }, 8, ["disabled", "aria-label", "title"]),
114
- p.compact ? (d(), c("span", se, f(t.value) + " / " + f(v.value), 1)) : (d(!0), c(j, { key: 0 }, U(J.value, (a) => (d(), c(j, { key: a }, [
115
- typeof a == "number" ? (d(), D(z, {
113
+ d.compact ? (v(), c("span", se, g(a.value) + " / " + g(p.value), 1)) : (v(!0), c(F, { key: 0 }, U(T.value, (t) => (v(), c(F, { key: t }, [
114
+ typeof t == "number" ? (v(), q(M, {
116
115
  key: 0,
117
116
  variant: "secondary",
118
117
  size: "sm",
119
- class: q(["hys-ui-pf-pagination-page", { "hys-ui-is-current": a === t.value }]),
118
+ class: G(["hys-ui-pf-pagination-page", { "hys-ui-is-current": t === a.value }]),
120
119
  type: "button",
121
120
  disabled: r.value,
122
- "aria-label": "第 " + a + " 页",
123
- "aria-current": a === t.value ? "page" : void 0,
124
- onClick: (x) => g(a)
121
+ "aria-label": "第 " + t + " 页",
122
+ "aria-current": t === a.value ? "page" : void 0,
123
+ onClick: (f) => y(t)
125
124
  }, {
126
- default: y(() => [
127
- B(f(a), 1)
125
+ default: S(() => [
126
+ V(g(t), 1)
128
127
  ]),
129
128
  _: 2
130
- }, 1032, ["disabled", "aria-label", "aria-current", "class", "onClick"])) : (d(), c("span", ne, "…"))
129
+ }, 1032, ["disabled", "aria-label", "aria-current", "class", "onClick"])) : (v(), c("span", ue, "…"))
131
130
  ], 64))), 128)),
132
- p.compact ? N("", !0) : (d(), c("span", oe, f(t.value) + " / " + f(v.value), 1)),
133
- u(z, {
131
+ d.compact ? w("", !0) : (v(), c("span", oe, g(a.value) + " / " + g(p.value), 1)),
132
+ o(M, {
134
133
  variant: "secondary",
135
134
  size: "sm",
136
135
  type: "button",
137
- disabled: r.value || t.value === v.value,
136
+ disabled: r.value || a.value === p.value,
138
137
  "aria-label": n.value.next,
139
138
  title: n.value.next,
140
- onClick: e[2] || (e[2] = (a) => g(t.value + 1))
139
+ onClick: e[2] || (e[2] = (t) => y(a.value + 1))
141
140
  }, {
142
- default: y(() => [
143
- u(M(Y), {
141
+ default: S(() => [
142
+ o(C(Z), {
144
143
  size: 16,
145
144
  "aria-hidden": "true"
146
145
  })
147
146
  ]),
148
147
  _: 1
149
148
  }, 8, ["disabled", "aria-label", "title"]),
150
- u(z, {
149
+ o(M, {
151
150
  variant: "secondary",
152
151
  size: "sm",
153
152
  type: "button",
154
- disabled: r.value || t.value === v.value,
153
+ disabled: r.value || a.value === p.value,
155
154
  "aria-label": n.value.last,
156
155
  title: n.value.last,
157
- onClick: e[3] || (e[3] = (a) => g(v.value))
156
+ onClick: e[3] || (e[3] = (t) => y(p.value))
158
157
  }, {
159
- default: y(() => [
160
- u(M(Z), {
158
+ default: S(() => [
159
+ o(C(_), {
161
160
  size: 16,
162
161
  "aria-hidden": "true"
163
162
  })
@@ -165,49 +164,52 @@ const ae = ["aria-busy"], te = {
165
164
  _: 1
166
165
  }, 8, ["disabled", "aria-label", "title"])
167
166
  ]),
168
- p.showSizeChanger ? (d(), c("label", ue, [
169
- B(f(n.value.perPage) + " ", 1),
170
- u(_, {
171
- "model-value": String(b.value),
172
- options: E.value.map((a) => ({ label: String(a), value: String(a) })),
167
+ d.showSizeChanger ? (v(), c("label", re, [
168
+ V(g(n.value.perPage) + " ", 1),
169
+ o(ee, {
170
+ size: "sm",
171
+ "model-value": String(h.value),
172
+ options: R.value.map((t) => ({ label: String(t), value: String(t) })),
173
173
  disabled: r.value,
174
174
  "aria-label": n.value.perPage,
175
- "onUpdate:modelValue": L
175
+ "onUpdate:modelValue": A
176
176
  }, null, 8, ["model-value", "options", "disabled", "aria-label"])
177
- ])) : N("", !0),
178
- p.showQuickJumper && !p.compact ? (d(), c("form", {
177
+ ])) : w("", !0),
178
+ d.showQuickJumper && !d.compact ? (v(), c("form", {
179
179
  key: 1,
180
180
  class: "hys-ui-pf-pagination-jump",
181
- onSubmit: G(R, ["prevent"])
181
+ onSubmit: K(D, ["prevent"])
182
182
  }, [
183
- w("span", null, f(n.value.jump), 1),
184
- u(ee, {
185
- modelValue: m.value,
186
- "onUpdate:modelValue": e[4] || (e[4] = (a) => m.value = a),
183
+ B("span", null, g(n.value.jump), 1),
184
+ o(ae, {
185
+ size: "sm",
186
+ modelValue: x.value,
187
+ "onUpdate:modelValue": e[4] || (e[4] = (t) => x.value = t),
188
+ onInput: e[5] || (e[5] = (t) => m.value = t),
187
189
  class: "hys-ui-pf-pagination-jump-input",
188
190
  min: 1,
189
- max: v.value,
191
+ max: p.value,
190
192
  "show-controls": !1,
191
193
  "select-on-focus": "",
192
194
  disabled: r.value,
193
195
  "aria-label": n.value.jump
194
196
  }, null, 8, ["modelValue", "max", "disabled", "aria-label"]),
195
- u(z, {
197
+ o(M, {
196
198
  variant: "secondary",
197
199
  size: "sm",
198
200
  type: "submit",
199
- disabled: r.value || !V.value
201
+ disabled: r.value || !j.value
200
202
  }, {
201
- default: y(() => [...e[5] || (e[5] = [
202
- B("确定", -1)
203
+ default: S(() => [...e[6] || (e[6] = [
204
+ V("确定", -1)
203
205
  ])]),
204
206
  _: 1
205
207
  }, 8, ["disabled"])
206
- ], 32)) : N("", !0)
208
+ ], 32)) : w("", !0)
207
209
  ])
208
- ], 16, ae));
210
+ ], 16, te));
209
211
  }
210
212
  });
211
213
  export {
212
- fe as default
214
+ ge as default
213
215
  };
@@ -1,43 +1,7 @@
1
- import { defineComponent as p, openBlock as t, createElementBlock as l, mergeProps as f, unref as b, createElementVNode as n, Fragment as s, renderList as a, toDisplayString as i } from "vue";
2
- import { useHysRootAttrs as V } from "../../config.js";
3
- const x = { class: "hys-ui-ent-matrix" }, C = ["aria-label", "checked", "onChange"], E = /* @__PURE__ */ p({
4
- __name: "HysPermissionMatrix",
5
- props: {
6
- roles: {},
7
- resources: {},
8
- modelValue: {}
9
- },
10
- emits: ["update:modelValue"],
11
- setup(o, { emit: m }) {
12
- const d = V(), h = o, y = m;
13
- function k(c, r) {
14
- y("update:modelValue", { ...h.modelValue, [c]: r.target.checked });
15
- }
16
- return (c, r) => (t(), l("div", f(b(d), { class: "hys-ui-ent-table-scroll" }), [
17
- n("table", x, [
18
- n("thead", null, [
19
- n("tr", null, [
20
- r[0] || (r[0] = n("th", null, "资源 / 角色", -1)),
21
- (t(!0), l(s, null, a(o.roles, (e) => (t(), l("th", { key: e }, i(e), 1))), 128))
22
- ])
23
- ]),
24
- n("tbody", null, [
25
- (t(!0), l(s, null, a(o.resources, (e) => (t(), l("tr", { key: e }, [
26
- n("th", null, i(e), 1),
27
- (t(!0), l(s, null, a(o.roles, (u) => (t(), l("td", { key: u }, [
28
- n("input", {
29
- type: "checkbox",
30
- "aria-label": e + " - " + u,
31
- checked: !!o.modelValue[e + ":" + u],
32
- onChange: (g) => k(e + ":" + u, g)
33
- }, null, 40, C)
34
- ]))), 128))
35
- ]))), 128))
36
- ])
37
- ])
38
- ], 16));
39
- }
40
- });
1
+ import o from "./HysPermissionMatrix2.vue.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ad2dfd08"]]);
41
5
  export {
42
- E as default
6
+ i as default
43
7
  };
@@ -1,4 +1,103 @@
1
- import f from "./HysPermissionMatrix.vue.js";
1
+ import { defineComponent as S, openBlock as a, createElementBlock as d, mergeProps as w, unref as y, createElementVNode as u, createBlock as f, Fragment as s, createTextVNode as k, renderList as v, toDisplayString as C, createVNode as H } from "vue";
2
+ import { useHysControlState as N } from "../../composables/formContext.js";
3
+ import b from "../HysCheckbox/HysCheckbox.vue.js";
4
+ import { useHysRootAttrs as D } from "../../config.js";
5
+ const E = { class: "hys-ui-ent-matrix" }, L = /* @__PURE__ */ S({
6
+ __name: "HysPermissionMatrix",
7
+ props: {
8
+ roles: {},
9
+ resources: {},
10
+ modelValue: {},
11
+ disabled: { type: Boolean },
12
+ readonly: { type: Boolean },
13
+ showSelectAll: { type: Boolean, default: !0 }
14
+ },
15
+ emits: ["update:modelValue", "change"],
16
+ setup(l, { emit: V }) {
17
+ const r = l, { disabled: m } = N(r), x = V, A = D();
18
+ function i(t, o) {
19
+ return (t ? [t] : r.resources).flatMap((e) => (o ? [o] : r.roles).map((n) => e + ":" + n));
20
+ }
21
+ function h(t) {
22
+ return t.length > 0 && t.every((o) => r.modelValue[o]);
23
+ }
24
+ function g(t) {
25
+ return !h(t) && t.some((o) => r.modelValue[o]);
26
+ }
27
+ function c(t, o) {
28
+ if (m.value || r.readonly) return;
29
+ const e = { ...r.modelValue };
30
+ for (const n of t) e[n] = o;
31
+ x("update:modelValue", e), x("change", e);
32
+ }
33
+ return (t, o) => (a(), d("div", w(y(A), { class: "hys-ui-ent-table-scroll" }), [
34
+ u("table", E, [
35
+ u("thead", null, [
36
+ u("tr", null, [
37
+ u("th", null, [
38
+ l.showSelectAll ? (a(), f(b, {
39
+ key: 0,
40
+ class: "hys-ui-matrix-group",
41
+ "model-value": h(i()),
42
+ indeterminate: g(i()),
43
+ disabled: y(m) || !l.roles.length || !l.resources.length,
44
+ readonly: l.readonly,
45
+ "aria-label": "全选所有权限",
46
+ label: "资源 / 角色",
47
+ onChange: o[0] || (o[0] = (e) => c(i(), e))
48
+ }, null, 8, ["model-value", "indeterminate", "disabled", "readonly"])) : (a(), d(s, { key: 1 }, [
49
+ k("资源 / 角色")
50
+ ], 64))
51
+ ]),
52
+ (a(!0), d(s, null, v(l.roles, (e) => (a(), d("th", { key: e }, [
53
+ l.showSelectAll ? (a(), f(b, {
54
+ key: 0,
55
+ class: "hys-ui-matrix-group",
56
+ "model-value": h(i(void 0, e)),
57
+ indeterminate: g(i(void 0, e)),
58
+ disabled: y(m) || !l.resources.length,
59
+ readonly: l.readonly,
60
+ "aria-label": "全选角色 " + e,
61
+ label: e,
62
+ onChange: (n) => c(i(void 0, e), n)
63
+ }, null, 8, ["model-value", "indeterminate", "disabled", "readonly", "aria-label", "label", "onChange"])) : (a(), d(s, { key: 1 }, [
64
+ k(C(e), 1)
65
+ ], 64))
66
+ ]))), 128))
67
+ ])
68
+ ]),
69
+ u("tbody", null, [
70
+ (a(!0), d(s, null, v(l.resources, (e) => (a(), d("tr", { key: e }, [
71
+ u("th", null, [
72
+ l.showSelectAll ? (a(), f(b, {
73
+ key: 0,
74
+ class: "hys-ui-matrix-group",
75
+ "model-value": h(i(e)),
76
+ indeterminate: g(i(e)),
77
+ disabled: y(m) || !l.roles.length,
78
+ readonly: l.readonly,
79
+ "aria-label": "全选资源 " + e,
80
+ label: e,
81
+ onChange: (n) => c(i(e), n)
82
+ }, null, 8, ["model-value", "indeterminate", "disabled", "readonly", "aria-label", "label", "onChange"])) : (a(), d(s, { key: 1 }, [
83
+ k(C(e), 1)
84
+ ], 64))
85
+ ]),
86
+ (a(!0), d(s, null, v(l.roles, (n) => (a(), d("td", { key: n }, [
87
+ H(b, {
88
+ "aria-label": e + " - " + n,
89
+ "model-value": !!l.modelValue[e + ":" + n],
90
+ disabled: y(m),
91
+ readonly: l.readonly,
92
+ onChange: (B) => c([e + ":" + n], B)
93
+ }, null, 8, ["aria-label", "model-value", "disabled", "readonly", "onChange"])
94
+ ]))), 128))
95
+ ]))), 128))
96
+ ])
97
+ ])
98
+ ], 16));
99
+ }
100
+ });
2
101
  export {
3
- f as default
102
+ L as default
4
103
  };
@@ -0,0 +1,7 @@
1
+ import o from "./HysRadio2.vue.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-db0c318e"]]);
5
+ export {
6
+ p as default
7
+ };