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.
- package/CHANGELOG.md +137 -1
- package/README.md +18 -6
- package/dist/components/HysAccordion/HysAccordion.vue.js +1 -1
- package/dist/components/HysAccordion/HysAccordion2.vue.js +181 -47
- package/dist/components/HysAlert/HysAlert.vue.js +14 -14
- package/dist/components/HysAnimatedNumber/HysAnimatedNumber.vue.js +23 -20
- package/dist/components/HysAutocomplete/HysAutocomplete.vue.js +7 -0
- package/dist/components/HysAutocomplete/HysAutocomplete2.vue.js +627 -0
- package/dist/components/HysAvatar/HysAvatar.vue.js +5 -35
- package/dist/components/HysAvatar/HysAvatar2.vue.js +221 -2
- package/dist/components/HysAvatarGroup/HysAvatarGroup.vue.js +7 -0
- package/dist/components/HysAvatarGroup/HysAvatarGroup2.vue.js +252 -0
- package/dist/components/HysBadge/HysBadge.vue.js +2 -2
- package/dist/components/HysBadge/HysBadge2.vue.js +154 -26
- package/dist/components/HysBreadcrumb/HysBreadcrumb.vue.js +5 -38
- package/dist/components/HysBreadcrumb/HysBreadcrumb2.vue.js +74 -2
- package/dist/components/HysButton/HysButton.vue.js +2 -2
- package/dist/components/HysButton/HysButton2.vue.js +29 -28
- package/dist/components/HysCalendar/HysCalendar.vue.js +5 -84
- package/dist/components/HysCalendar/HysCalendar2.vue.js +803 -2
- package/dist/components/HysCard/HysCard.vue.js +1 -1
- package/dist/components/HysCard/HysCard2.vue.js +177 -44
- package/dist/components/HysCascader/HysCascader.vue.js +5 -182
- package/dist/components/HysCascader/HysCascader2.vue.js +760 -2
- package/dist/components/HysCascader/HysCascaderColumn.vue.js +7 -0
- package/dist/components/HysCascader/HysCascaderColumn2.vue.js +232 -0
- package/dist/components/HysCheckbox/HysCheckbox.vue.js +5 -39
- package/dist/components/HysCheckbox/HysCheckbox2.vue.js +200 -2
- package/dist/components/HysCheckboxGroup/HysCheckboxGroup.vue.js +7 -0
- package/dist/components/HysCheckboxGroup/HysCheckboxGroup2.vue.js +237 -0
- package/dist/components/HysColorPicker/HysColorPicker.vue.js +2 -2
- package/dist/components/HysColorPicker/HysColorPicker2.vue.js +107 -106
- package/dist/components/HysCommandPalette/HysCommandPalette.vue.js +52 -51
- package/dist/components/HysCommentEditor/HysCommentEditor.vue.js +17 -17
- package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
- package/dist/components/HysDataGrid/HysDataGrid2.vue.js +397 -390
- package/dist/components/HysDatePicker/HysDatePicker.vue.js +268 -139
- package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +7 -0
- package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +807 -0
- package/dist/components/HysDatePicker/HysDatePickerPanel.vue.js +7 -0
- package/dist/components/HysDatePicker/HysDatePickerPanel2.vue.js +357 -0
- package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +268 -158
- package/dist/components/HysDivider/HysDivider.vue.js +2 -2
- package/dist/components/HysDivider/HysDivider2.vue.js +33 -13
- package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
- package/dist/components/HysDrawer/HysDrawer2.vue.js +55 -54
- package/dist/components/HysFileManager/HysFileManager.vue.js +5 -63
- package/dist/components/HysFileManager/HysFileManager2.vue.js +86 -2
- package/dist/components/HysForm/HysForm.vue.js +3 -3
- package/dist/components/HysForm/HysForm2.vue.js +580 -92
- package/dist/components/HysFormItem/HysFormItem.vue.js +5 -69
- package/dist/components/HysFormItem/HysFormItem2.vue.js +521 -2
- package/dist/components/HysGantt/HysGantt.vue.js +5 -264
- package/dist/components/HysGantt/HysGantt2.vue.js +1399 -2
- package/dist/components/HysInput/HysInput.vue.js +2 -2
- package/dist/components/HysInput/HysInput2.vue.js +468 -120
- package/dist/components/HysMention/HysMention.vue.js +2 -2
- package/dist/components/HysMention/HysMention2.vue.js +89 -88
- package/dist/components/HysModal/HysModal.vue.js +2 -2
- package/dist/components/HysModal/HysModal2.vue.js +35 -35
- package/dist/components/HysNotificationCenter/HysNotificationCenter.vue.js +37 -36
- package/dist/components/HysNumberInput/HysNumberInput.vue.js +2 -2
- package/dist/components/HysNumberInput/HysNumberInput2.vue.js +561 -70
- package/dist/components/HysOrgTree/HysOrgTree.vue.js +41 -36
- package/dist/components/HysPagination/HysPagination.vue.js +2 -2
- package/dist/components/HysPagination/HysPagination2.vue.js +93 -91
- package/dist/components/HysPermissionMatrix/HysPermissionMatrix.vue.js +5 -41
- package/dist/components/HysPermissionMatrix/HysPermissionMatrix2.vue.js +101 -2
- package/dist/components/HysRadio/HysRadio.vue.js +7 -0
- package/dist/components/HysRadio/HysRadio2.vue.js +180 -0
- package/dist/components/HysRadioGroup/HysRadioGroup.vue.js +5 -40
- package/dist/components/HysRadioGroup/HysRadioGroup2.vue.js +205 -2
- package/dist/components/HysRating/HysRating.vue.js +1 -1
- package/dist/components/HysRating/HysRating2.vue.js +288 -68
- package/dist/components/HysResizablePanel/HysResizablePanel.vue.js +46 -28
- package/dist/components/HysRichTextEditor/HysRichTextEditor.vue.js +2 -2
- package/dist/components/HysRichTextEditor/HysRichTextEditor2.vue.js +87 -67
- package/dist/components/HysSearch/HysSearch.vue.js +50 -38
- package/dist/components/HysSegmented/HysSegmented.vue.js +5 -58
- package/dist/components/HysSegmented/HysSegmented2.vue.js +273 -2
- package/dist/components/HysSelect/HysSelect.vue.js +3 -2
- package/dist/components/HysSelect/HysSelect2.vue.js +859 -164
- package/dist/components/HysSkeleton/HysSkeleton.vue.js +2 -2
- package/dist/components/HysSkeleton/HysSkeleton2.vue.js +126 -29
- package/dist/components/HysSlider/HysSlider.vue.js +2 -2
- package/dist/components/HysSlider/HysSlider2.vue.js +532 -59
- package/dist/components/HysSlider/SliderTooltip.vue.js +7 -0
- package/dist/components/HysSlider/SliderTooltip2.vue.js +156 -0
- package/dist/components/HysSplitPane/HysSplitPane.vue.js +48 -42
- package/dist/components/HysSteps/HysSteps.vue.js +2 -2
- package/dist/components/HysSteps/HysSteps2.vue.js +111 -36
- package/dist/components/HysSwitch/HysSwitch.vue.js +2 -2
- package/dist/components/HysSwitch/HysSwitch2.vue.js +235 -42
- package/dist/components/HysTable/HysTable.vue.js +1 -1
- package/dist/components/HysTable/HysTable2.vue.js +1471 -82
- package/dist/components/HysTable/HysTableFilterOptions.vue.js +7 -0
- package/dist/components/HysTable/HysTableFilterOptions2.vue.js +133 -0
- package/dist/components/HysTabs/HysTabs.vue.js +2 -2
- package/dist/components/HysTabs/HysTabs2.vue.js +262 -66
- package/dist/components/HysTagInput/HysTagInput.vue.js +43 -42
- package/dist/components/HysTextarea/HysTextarea.vue.js +137 -66
- package/dist/components/HysToast/HysToast.vue.js +2 -2
- package/dist/components/HysToast/HysToast2.vue.js +121 -38
- package/dist/components/HysTour/HysTour.vue.js +47 -42
- package/dist/components/HysTransfer/HysTransfer.vue.js +5 -207
- package/dist/components/HysTransfer/HysTransfer2.vue.js +416 -2
- package/dist/components/HysTransfer/HysTransferPanel.vue.js +7 -0
- package/dist/components/HysTransfer/HysTransferPanel2.vue.js +454 -0
- package/dist/components/HysTree/HysTree.vue.js +2 -3
- package/dist/components/HysTree/HysTree2.vue.js +641 -301
- package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +5 -129
- package/dist/components/HysTreeSelect/HysTreeSelect2.vue.js +558 -2
- package/dist/components/HysTreeSelect/HysTreeSelectPanel.vue.js +7 -0
- package/dist/components/HysTreeSelect/HysTreeSelectPanel2.vue.js +323 -0
- package/dist/components/HysUpload/HysUpload.vue.js +2 -2
- package/dist/components/HysUpload/HysUpload2.vue.js +97 -78
- package/dist/composables/autocomplete.js +50 -0
- package/dist/composables/avatar.js +57 -0
- package/dist/composables/calendar.js +96 -0
- package/dist/composables/cascader.js +79 -0
- package/dist/composables/choice.js +38 -0
- package/dist/composables/choiceModel.js +67 -0
- package/dist/composables/datePicker.js +227 -0
- package/dist/composables/formContext.js +94 -3
- package/dist/composables/formLayout.js +57 -0
- package/dist/composables/formValidation.js +240 -0
- package/dist/composables/ganttConflicts.js +143 -0
- package/dist/composables/numberInput.js +91 -0
- package/dist/composables/rating.js +16 -0
- package/dist/composables/selectOptions.js +54 -0
- package/dist/composables/table.js +150 -0
- package/dist/composables/textInput.js +34 -0
- package/dist/composables/toastEscape.js +16 -0
- package/dist/composables/transfer.js +63 -0
- package/dist/composables/tree.js +118 -0
- package/dist/composables/treeSelect.js +71 -0
- package/dist/composables/useCascader.js +438 -0
- package/dist/composables/useDatePicker.js +425 -0
- package/dist/composables/useDialog.js +16 -16
- package/dist/composables/useFloating.js +98 -52
- package/dist/composables/useGanttDependencies.js +306 -0
- package/dist/composables/useGanttHistory.js +157 -0
- package/dist/composables/useGanttLabelResize.js +100 -0
- package/dist/composables/useHysToast.js +148 -0
- package/dist/composables/useTable.js +474 -0
- package/dist/composables/useTextareaSize.js +72 -0
- package/dist/composables/useTransfer.js +257 -0
- package/dist/composables/useTree.js +439 -0
- package/dist/composables/useTreeSelect.js +361 -0
- package/dist/config.js +18 -15
- package/dist/index.js +149 -136
- package/dist/style.css +1 -1
- package/dist/types/components/HysAccordion/HysAccordion.vue.d.ts +61 -22
- package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +201 -0
- package/dist/types/components/HysAvatar/HysAvatar.vue.d.ts +28 -15
- package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +99 -0
- package/dist/types/components/HysBadge/HysBadge.vue.d.ts +41 -4
- package/dist/types/components/HysBreadcrumb/HysBreadcrumb.vue.d.ts +38 -10
- package/dist/types/components/HysButton/HysButton.vue.d.ts +0 -1
- package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +119 -29
- package/dist/types/components/HysCard/HysCard.vue.d.ts +57 -5
- package/dist/types/components/HysCascader/HysCascader.vue.d.ts +129 -41
- package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +55 -0
- package/dist/types/components/HysCheckbox/HysCheckbox.vue.d.ts +55 -27
- package/dist/types/components/HysCheckboxGroup/HysCheckboxGroup.vue.d.ts +73 -0
- package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +1 -1
- package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +66 -14
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +90 -0
- package/dist/types/components/HysDatePicker/HysDatePickerPanel.vue.d.ts +93 -0
- package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +66 -14
- package/dist/types/components/HysDivider/HysDivider.vue.d.ts +8 -3
- package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +1 -0
- package/dist/types/components/HysFileManager/HysFileManager.vue.d.ts +8 -4
- package/dist/types/components/HysForm/HysForm.vue.d.ts +110 -18
- package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +108 -2
- package/dist/types/components/HysGantt/HysGantt.vue.d.ts +88 -4
- package/dist/types/components/HysInput/HysInput.vue.d.ts +52 -29
- package/dist/types/components/HysMention/HysMention.vue.d.ts +2 -2
- package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +93 -33
- package/dist/types/components/HysOrgTree/HysOrgTree.vue.d.ts +4 -1
- package/dist/types/components/HysPagination/HysPagination.vue.d.ts +1 -1
- package/dist/types/components/HysPermissionMatrix/HysPermissionMatrix.vue.d.ts +8 -1
- package/dist/types/components/HysPopover/HysPopover.vue.d.ts +3 -3
- package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
- package/dist/types/components/HysRadio/HysRadio.vue.d.ts +56 -0
- package/dist/types/components/HysRadioGroup/HysRadioGroup.vue.d.ts +62 -17
- package/dist/types/components/HysRating/HysRating.vue.d.ts +85 -5
- package/dist/types/components/HysResizablePanel/HysResizablePanel.vue.d.ts +6 -0
- package/dist/types/components/HysRichTextEditor/HysRichTextEditor.vue.d.ts +4 -4
- package/dist/types/components/HysSearch/HysSearch.vue.d.ts +2 -2
- package/dist/types/components/HysSegmented/HysSegmented.vue.d.ts +64 -32
- package/dist/types/components/HysSelect/HysSelect.vue.d.ts +120 -14
- package/dist/types/components/HysSkeleton/HysSkeleton.vue.d.ts +30 -2
- package/dist/types/components/HysSlider/HysSlider.vue.d.ts +66 -9
- package/dist/types/components/HysSlider/SliderTooltip.vue.d.ts +22 -0
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +6 -0
- package/dist/types/components/HysSteps/HysSteps.vue.d.ts +65 -9
- package/dist/types/components/HysSwitch/HysSwitch.vue.d.ts +76 -17
- package/dist/types/components/HysTable/HysTable.vue.d.ts +206 -32
- package/dist/types/components/HysTable/HysTableFilterOptions.vue.d.ts +18 -0
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +76 -23
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +5 -5
- package/dist/types/components/HysTextarea/HysTextarea.vue.d.ts +44 -27
- package/dist/types/components/HysToast/HysToast.vue.d.ts +55 -7
- package/dist/types/components/HysTour/HysTour.vue.d.ts +5 -3
- package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +55 -30
- package/dist/types/components/HysTransfer/HysTransferPanel.vue.d.ts +105 -0
- package/dist/types/components/HysTree/HysTree.vue.d.ts +140 -73
- package/dist/types/components/HysTreeSelect/HysTreeSelect.vue.d.ts +102 -23
- package/dist/types/components/HysTreeSelect/HysTreeSelectPanel.vue.d.ts +56 -0
- package/dist/types/composables/autocomplete.d.ts +106 -0
- package/dist/types/composables/avatar.d.ts +70 -0
- package/dist/types/composables/calendar.d.ts +66 -0
- package/dist/types/composables/cascader.d.ts +192 -0
- package/dist/types/composables/choice.d.ts +110 -0
- package/dist/types/composables/choiceModel.d.ts +11 -0
- package/dist/types/composables/datePicker.d.ts +247 -0
- package/dist/types/composables/formContext.d.ts +138 -8
- package/dist/types/composables/formLayout.d.ts +11 -0
- package/dist/types/composables/formValidation.d.ts +13 -0
- package/dist/types/composables/gantt.d.ts +68 -0
- package/dist/types/composables/ganttConflicts.d.ts +30 -0
- package/dist/types/composables/numberInput.d.ts +45 -0
- package/dist/types/composables/rating.d.ts +18 -0
- package/dist/types/composables/segmented.d.ts +15 -0
- package/dist/types/composables/selectOptions.d.ts +44 -0
- package/dist/types/composables/slider.d.ts +21 -0
- package/dist/types/composables/table.d.ts +309 -0
- package/dist/types/composables/textInput.d.ts +76 -0
- package/dist/types/composables/toastEscape.d.ts +1 -0
- package/dist/types/composables/transfer.d.ts +180 -0
- package/dist/types/composables/tree.d.ts +237 -0
- package/dist/types/composables/treeSelect.d.ts +167 -0
- package/dist/types/composables/useCascader.d.ts +162 -0
- package/dist/types/composables/useDatePicker.d.ts +79 -0
- package/dist/types/composables/useFloating.d.ts +8 -5
- package/dist/types/composables/useGanttDependencies.d.ts +83 -0
- package/dist/types/composables/useGanttHistory.d.ts +42 -0
- package/dist/types/composables/useGanttLabelResize.d.ts +23 -0
- package/dist/types/composables/useHysToast.d.ts +50 -0
- package/dist/types/composables/useTable.d.ts +60 -0
- package/dist/types/composables/useTextareaSize.d.ts +3 -0
- package/dist/types/composables/useTransfer.d.ts +58 -0
- package/dist/types/composables/useTree.d.ts +77 -0
- package/dist/types/composables/useTreeSelect.d.ts +117 -0
- package/dist/types/index.d.ts +38 -7
- package/package.json +47 -11
|
@@ -1,56 +1,61 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
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(
|
|
15
|
-
const
|
|
16
|
-
var
|
|
17
|
-
const
|
|
18
|
-
for (const e of
|
|
19
|
-
const t =
|
|
20
|
-
for (const e of
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
35
|
+
i.add(s), s = ((c = o.get(s)) == null ? void 0 : c.parentId) || "";
|
|
32
36
|
}
|
|
33
|
-
if (!
|
|
34
|
-
|
|
37
|
+
if (!u) {
|
|
38
|
+
t.get(e.parentId).children.push(r);
|
|
35
39
|
continue;
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
|
-
|
|
42
|
+
a.push(r);
|
|
39
43
|
}
|
|
40
|
-
return
|
|
44
|
+
return a;
|
|
41
45
|
});
|
|
42
|
-
return (
|
|
43
|
-
nodes:
|
|
44
|
-
"model-value":
|
|
45
|
-
"checked-keys":
|
|
46
|
-
checkable:
|
|
47
|
-
searchable:
|
|
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] = (
|
|
50
|
-
"onUpdate:checkedKeys": t[1] || (t[1] = (
|
|
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
|
-
|
|
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
|
|
4
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dba949dd"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useHysRootAttrs as
|
|
3
|
-
import { ChevronsLeft as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
21
|
+
}, re = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "hys-ui-pf-pagination-size"
|
|
24
|
-
},
|
|
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(
|
|
42
|
-
const
|
|
43
|
-
const l =
|
|
44
|
-
for (let i = Math.max(1,
|
|
45
|
-
if (
|
|
46
|
-
if (
|
|
47
|
-
const
|
|
48
|
-
return
|
|
49
|
-
|
|
50
|
-
}),
|
|
51
|
-
}), m =
|
|
52
|
-
|
|
53
|
-
m.value =
|
|
54
|
-
});
|
|
55
|
-
function
|
|
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(
|
|
58
|
-
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
|
|
60
|
+
function A(l) {
|
|
61
61
|
if (r.value) return;
|
|
62
62
|
const e = Number(l);
|
|
63
|
-
if (!Number.isInteger(e) || e < 1 || e ===
|
|
64
|
-
|
|
65
|
-
|
|
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
|
|
67
|
+
function D() {
|
|
69
68
|
const l = Number(m.value);
|
|
70
|
-
|
|
69
|
+
j.value && Number.isInteger(l) && y(l), x.value = a.value, m.value = a.value;
|
|
71
70
|
}
|
|
72
|
-
return (l, e) => (
|
|
73
|
-
class: ["hys-ui-pf-pagination", { "pf-pagination
|
|
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":
|
|
74
|
+
"aria-busy": d.loading
|
|
76
75
|
}), [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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 ||
|
|
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] = (
|
|
86
|
+
onClick: e[0] || (e[0] = (t) => y(1))
|
|
88
87
|
}, {
|
|
89
|
-
default:
|
|
90
|
-
|
|
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
|
-
|
|
96
|
+
o(M, {
|
|
98
97
|
variant: "secondary",
|
|
99
98
|
size: "sm",
|
|
100
99
|
type: "button",
|
|
101
|
-
disabled: r.value ||
|
|
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] = (
|
|
103
|
+
onClick: e[1] || (e[1] = (t) => y(a.value - 1))
|
|
105
104
|
}, {
|
|
106
|
-
default:
|
|
107
|
-
|
|
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
|
-
|
|
115
|
-
typeof
|
|
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:
|
|
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": "第 " +
|
|
123
|
-
"aria-current":
|
|
124
|
-
onClick: (
|
|
121
|
+
"aria-label": "第 " + t + " 页",
|
|
122
|
+
"aria-current": t === a.value ? "page" : void 0,
|
|
123
|
+
onClick: (f) => y(t)
|
|
125
124
|
}, {
|
|
126
|
-
default:
|
|
127
|
-
|
|
125
|
+
default: S(() => [
|
|
126
|
+
V(g(t), 1)
|
|
128
127
|
]),
|
|
129
128
|
_: 2
|
|
130
|
-
}, 1032, ["disabled", "aria-label", "aria-current", "class", "onClick"])) : (
|
|
129
|
+
}, 1032, ["disabled", "aria-label", "aria-current", "class", "onClick"])) : (v(), c("span", ue, "…"))
|
|
131
130
|
], 64))), 128)),
|
|
132
|
-
|
|
133
|
-
|
|
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 ||
|
|
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] = (
|
|
139
|
+
onClick: e[2] || (e[2] = (t) => y(a.value + 1))
|
|
141
140
|
}, {
|
|
142
|
-
default:
|
|
143
|
-
|
|
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
|
-
|
|
149
|
+
o(M, {
|
|
151
150
|
variant: "secondary",
|
|
152
151
|
size: "sm",
|
|
153
152
|
type: "button",
|
|
154
|
-
disabled: r.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] = (
|
|
156
|
+
onClick: e[3] || (e[3] = (t) => y(p.value))
|
|
158
157
|
}, {
|
|
159
|
-
default:
|
|
160
|
-
|
|
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
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
"
|
|
172
|
-
|
|
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":
|
|
175
|
+
"onUpdate:modelValue": A
|
|
176
176
|
}, null, 8, ["model-value", "options", "disabled", "aria-label"])
|
|
177
|
-
])) :
|
|
178
|
-
|
|
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:
|
|
181
|
+
onSubmit: K(D, ["prevent"])
|
|
182
182
|
}, [
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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:
|
|
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
|
-
|
|
197
|
+
o(M, {
|
|
196
198
|
variant: "secondary",
|
|
197
199
|
size: "sm",
|
|
198
200
|
type: "submit",
|
|
199
|
-
disabled: r.value || !
|
|
201
|
+
disabled: r.value || !j.value
|
|
200
202
|
}, {
|
|
201
|
-
default:
|
|
202
|
-
|
|
203
|
+
default: S(() => [...e[6] || (e[6] = [
|
|
204
|
+
V("确定", -1)
|
|
203
205
|
])]),
|
|
204
206
|
_: 1
|
|
205
207
|
}, 8, ["disabled"])
|
|
206
|
-
], 32)) :
|
|
208
|
+
], 32)) : w("", !0)
|
|
207
209
|
])
|
|
208
|
-
], 16,
|
|
210
|
+
], 16, te));
|
|
209
211
|
}
|
|
210
212
|
});
|
|
211
213
|
export {
|
|
212
|
-
|
|
214
|
+
ge as default
|
|
213
215
|
};
|
|
@@ -1,43 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
6
|
+
i as default
|
|
43
7
|
};
|
|
@@ -1,4 +1,103 @@
|
|
|
1
|
-
import f from "
|
|
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
|
-
|
|
102
|
+
L as default
|
|
4
103
|
};
|