hys-ui 0.2.0 → 0.3.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 +38 -0
- package/README.md +15 -1
- package/dist/components/HysAlert/HysAlert.vue.js +5 -54
- package/dist/components/HysAlert/HysAlert2.vue.js +159 -2
- package/dist/components/HysAutocomplete/HysAutocomplete.vue.js +2 -2
- package/dist/components/HysAutocomplete/HysAutocomplete2.vue.js +285 -273
- package/dist/components/HysAvatarGroup/HysAvatarGroup.vue.js +1 -1
- package/dist/components/HysAvatarGroup/HysAvatarGroup2.vue.js +102 -98
- package/dist/components/HysBreadcrumb/HysBreadcrumb.vue.js +1 -1
- package/dist/components/HysBreadcrumb/HysBreadcrumb2.vue.js +273 -59
- package/dist/components/HysCalendar/HysCalendar.vue.js +3 -3
- package/dist/components/HysCalendar/HysCalendar2.vue.js +237 -225
- package/dist/components/HysCascader/HysCascader.vue.js +2 -2
- package/dist/components/HysCascader/HysCascader2.vue.js +337 -324
- package/dist/components/HysColorPicker/HysColorPanel.vue.js +7 -0
- package/dist/components/HysColorPicker/HysColorPanel2.vue.js +238 -0
- package/dist/components/HysColorPicker/HysColorPicker.vue.js +2 -2
- package/dist/components/HysColorPicker/HysColorPicker2.vue.js +239 -217
- package/dist/components/HysCommandPalette/HysCommandPalette.vue.js +90 -76
- package/dist/components/HysContextMenu/HysContextMenu.vue.js +5 -89
- package/dist/components/HysContextMenu/HysContextMenu2.vue.js +247 -2
- package/dist/components/HysContextMenu/HysMenuPanel.vue.js +7 -0
- package/dist/components/HysContextMenu/HysMenuPanel2.vue.js +208 -0
- package/dist/components/HysContextMenu/HysMenuSlot.js +10 -0
- package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
- package/dist/components/HysDataGrid/HysDataGrid2.vue.js +1008 -559
- package/dist/components/HysDatePicker/HysDatePicker.vue.js +2 -0
- package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +2 -2
- package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +539 -526
- package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +5 -3
- package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
- package/dist/components/HysDrawer/HysDrawer2.vue.js +434 -84
- package/dist/components/HysEmpty/HysEmpty.vue.js +5 -41
- package/dist/components/HysEmpty/HysEmpty2.vue.js +181 -2
- package/dist/components/HysFormItem/HysFormItem.vue.js +2 -2
- package/dist/components/HysFormItem/HysFormItem2.vue.js +171 -164
- package/dist/components/HysGantt/HysGantt.vue.js +1 -1
- package/dist/components/HysGantt/HysGantt2.vue.js +810 -795
- package/dist/components/HysMention/HysMention.vue.js +1 -1
- package/dist/components/HysMention/HysMention2.vue.js +112 -100
- package/dist/components/HysModal/HysModal.vue.js +2 -2
- package/dist/components/HysModal/HysModal2.vue.js +490 -85
- package/dist/components/HysPopover/HysPopover.vue.js +5 -91
- package/dist/components/HysPopover/HysPopover2.vue.js +120 -2
- package/dist/components/HysProgress/HysProgress.vue.js +2 -2
- package/dist/components/HysProgress/HysProgress2.vue.js +319 -52
- package/dist/components/HysSelect/HysSelect.vue.js +2 -2
- package/dist/components/HysSelect/HysSelect2.vue.js +730 -594
- package/dist/components/HysSlider/HysSlider.vue.js +2 -2
- package/dist/components/HysSlider/HysSlider2.vue.js +192 -188
- package/dist/components/HysSlider/SliderTooltip.vue.js +2 -2
- package/dist/components/HysSlider/SliderTooltip2.vue.js +103 -89
- package/dist/components/HysTable/HysTable.vue.js +2 -2
- package/dist/components/HysTable/HysTable2.vue.js +389 -368
- package/dist/components/HysTagInput/HysTagInput.vue.js +5 -82
- package/dist/components/HysTagInput/HysTagInput2.vue.js +396 -2
- package/dist/components/HysTimeline/HysTimeline.vue.js +2 -2
- package/dist/components/HysTimeline/HysTimeline2.vue.js +243 -24
- package/dist/components/HysTooltip/HysTooltip.vue.js +5 -64
- package/dist/components/HysTooltip/HysTooltip2.vue.js +110 -2
- package/dist/components/HysTour/HysTour.vue.js +46 -42
- package/dist/components/HysTransfer/HysTransfer.vue.js +2 -2
- package/dist/components/HysTransfer/HysTransfer2.vue.js +237 -207
- package/dist/components/HysTransfer/HysTransferPanel.vue.js +1 -1
- package/dist/components/HysTransfer/HysTransferPanel2.vue.js +320 -271
- package/dist/components/HysTree/HysTree.vue.js +2 -2
- package/dist/components/HysTree/HysTree2.vue.js +195 -184
- package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +4 -4
- package/dist/components/HysTreeSelect/HysTreeSelect2.vue.js +389 -377
- package/dist/components/HysUpload/HysUpload.vue.js +2 -2
- package/dist/components/HysUpload/HysUpload2.vue.js +459 -125
- package/dist/components/HysVirtualTable/HysVirtualTable.vue.js +5 -94
- package/dist/components/HysVirtualTable/HysVirtualTable2.vue.js +656 -2
- package/dist/composables/color.js +97 -0
- package/dist/composables/dataGrid.js +68 -0
- package/dist/composables/drawer.js +17 -0
- package/dist/composables/feedback.js +14 -0
- package/dist/composables/menu.js +96 -0
- package/dist/composables/modal.js +14 -0
- package/dist/composables/overlayManager.js +48 -18
- package/dist/composables/progress.js +94 -0
- package/dist/composables/tagInput.js +16 -0
- package/dist/composables/timeline.js +19 -0
- package/dist/composables/transfer.js +19 -17
- package/dist/composables/upload.js +55 -0
- package/dist/composables/uploadRequest.js +58 -0
- package/dist/composables/useAlert.js +124 -0
- package/dist/composables/useColorPicker.js +402 -0
- package/dist/composables/useContextMenu.js +514 -0
- package/dist/composables/useDataGridRemote.js +67 -0
- package/dist/composables/useDialog.js +86 -43
- package/dist/composables/useDrawerPush.js +33 -0
- package/dist/composables/useDrawerResize.js +221 -0
- package/dist/composables/useFloating.js +110 -76
- package/dist/composables/useHysModal.js +185 -0
- package/dist/composables/useModal.js +295 -0
- package/dist/composables/useModalInteraction.js +394 -0
- package/dist/composables/usePopupSurface.js +458 -0
- package/dist/composables/useTagInput.js +313 -0
- package/dist/composables/useTransferMotion.js +185 -0
- package/dist/composables/useUpload.js +472 -0
- package/dist/composables/useUploadModel.js +65 -0
- package/dist/composables/useUploadRequests.js +266 -0
- package/dist/composables/useVirtualTableLayout.js +277 -0
- package/dist/composables/virtualTable.js +43 -0
- package/dist/index.js +27 -24
- package/dist/internal/PopupReference.js +39 -0
- package/dist/internal/PopupSurfacePanel.vue.js +7 -0
- package/dist/internal/PopupSurfacePanel2.vue.js +92 -0
- package/dist/motion/PopupMotion.js +105 -0
- package/dist/motion/popup.js +10 -0
- package/dist/style.css +1 -1
- package/dist/types/components/HysAlert/HysAlert.vue.d.ts +32 -22
- package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +7 -7
- package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +6 -1
- package/dist/types/components/HysBadge/HysBadge.vue.d.ts +3 -3
- package/dist/types/components/HysBreadcrumb/HysBreadcrumb.vue.d.ts +54 -31
- package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +3 -2
- package/dist/types/components/HysCascader/HysCascader.vue.d.ts +7 -7
- package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +2 -2
- package/dist/types/components/HysColorPicker/HysColorPanel.vue.d.ts +58 -0
- package/dist/types/components/HysColorPicker/HysColorPicker.vue.d.ts +63 -10
- package/dist/types/components/HysCommandPalette/HysCommandPalette.vue.d.ts +2 -1
- package/dist/types/components/HysContextMenu/HysContextMenu.vue.d.ts +50 -34
- package/dist/types/components/HysContextMenu/HysMenuPanel.vue.d.ts +79 -0
- package/dist/types/components/HysContextMenu/HysMenuSlot.d.ts +8 -0
- package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +65 -118
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +1 -1
- package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +92 -35
- package/dist/types/components/HysEmpty/HysEmpty.vue.d.ts +24 -20
- package/dist/types/components/HysFileManager/HysFileManager.vue.d.ts +2 -2
- package/dist/types/components/HysGantt/HysGantt.vue.d.ts +2 -1
- package/dist/types/components/HysMention/HysMention.vue.d.ts +2 -1
- package/dist/types/components/HysModal/HysModal.vue.d.ts +111 -34
- package/dist/types/components/HysPopover/HysPopover.vue.d.ts +41 -29
- package/dist/types/components/HysProgress/HysProgress.vue.d.ts +18 -24
- package/dist/types/components/HysResizablePanel/HysResizablePanel.vue.d.ts +2 -2
- package/dist/types/components/HysSelect/HysSelect.vue.d.ts +13 -4
- package/dist/types/components/HysSlider/HysSlider.vue.d.ts +5 -4
- package/dist/types/components/HysSlider/SliderTooltip.vue.d.ts +3 -1
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +2 -2
- package/dist/types/components/HysTable/HysTable.vue.d.ts +4 -4
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +2 -2
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +47 -25
- package/dist/types/components/HysTimeline/HysTimeline.vue.d.ts +19 -32
- package/dist/types/components/HysTooltip/HysTooltip.vue.d.ts +39 -19
- package/dist/types/components/HysTour/HysTour.vue.d.ts +2 -1
- package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +2 -2
- package/dist/types/components/HysTransfer/HysTransferPanel.vue.d.ts +5 -3
- package/dist/types/components/HysTree/HysTree.vue.d.ts +2 -2
- package/dist/types/components/HysUpload/HysUpload.vue.d.ts +55 -67
- package/dist/types/components/HysVirtualTable/HysVirtualTable.vue.d.ts +71 -40
- package/dist/types/composables/autocomplete.d.ts +3 -0
- package/dist/types/composables/avatar.d.ts +3 -0
- package/dist/types/composables/cascader.d.ts +3 -0
- package/dist/types/composables/color.d.ts +97 -0
- package/dist/types/composables/dataGrid.d.ts +100 -0
- package/dist/types/composables/datePicker.d.ts +3 -0
- package/dist/types/composables/drawer.d.ts +102 -0
- package/dist/types/composables/feedback.d.ts +98 -0
- package/dist/types/composables/formContext.d.ts +2 -0
- package/dist/types/composables/menu.d.ts +183 -0
- package/dist/types/composables/modal.d.ts +183 -0
- package/dist/types/composables/overlayManager.d.ts +7 -3
- package/dist/types/composables/popupSurface.d.ts +83 -0
- package/dist/types/composables/progress.d.ts +92 -0
- package/dist/types/composables/selectOptions.d.ts +2 -0
- package/dist/types/composables/table.d.ts +3 -0
- package/dist/types/composables/tagInput.d.ts +96 -0
- package/dist/types/composables/timeline.d.ts +82 -0
- package/dist/types/composables/transfer.d.ts +7 -0
- package/dist/types/composables/tree.d.ts +3 -0
- package/dist/types/composables/treeSelect.d.ts +3 -0
- package/dist/types/composables/upload.d.ts +202 -0
- package/dist/types/composables/uploadRequest.d.ts +3 -0
- package/dist/types/composables/useAlert.d.ts +21 -0
- package/dist/types/composables/useCascader.d.ts +1 -1
- package/dist/types/composables/useColorPicker.d.ts +101 -0
- package/dist/types/composables/useContextMenu.d.ts +81 -0
- package/dist/types/composables/useDataGridRemote.d.ts +15 -0
- package/dist/types/composables/useDialog.d.ts +16 -3
- package/dist/types/composables/useDrawerPush.d.ts +6 -0
- package/dist/types/composables/useDrawerResize.d.ts +27 -0
- package/dist/types/composables/useFloating.d.ts +21 -2
- package/dist/types/composables/useHysModal.d.ts +44 -0
- package/dist/types/composables/useModal.d.ts +62 -0
- package/dist/types/composables/useModalInteraction.d.ts +27 -0
- package/dist/types/composables/usePopupSurface.d.ts +3341 -0
- package/dist/types/composables/useTagInput.d.ts +66 -0
- package/dist/types/composables/useTransferMotion.d.ts +36 -0
- package/dist/types/composables/useUpload.d.ts +94 -0
- package/dist/types/composables/useUploadModel.d.ts +14 -0
- package/dist/types/composables/useUploadRequests.d.ts +38 -0
- package/dist/types/composables/useVirtualTableLayout.d.ts +51 -0
- package/dist/types/composables/virtualTable.d.ts +126 -0
- package/dist/types/index.d.ts +17 -2
- package/dist/types/internal/PopupReference.d.ts +18 -0
- package/dist/types/internal/PopupSurfacePanel.vue.d.ts +37 -0
- package/dist/types/motion/PopupMotion.d.ts +59 -0
- package/dist/types/motion/popup.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as De, inject as
|
|
2
|
-
import { CircleHelp as
|
|
3
|
-
import
|
|
4
|
-
import { resolveFormCol as
|
|
5
|
-
import { formKey as
|
|
6
|
-
import { useHysRootAttrs as
|
|
7
|
-
import { snapshotForm as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as De, inject as Ne, ref as V, useId as je, useSlots as Ge, computed as t, provide as Ke, watch as z, nextTick as ke, onMounted as Oe, onUpdated as Ue, onActivated as Je, onDeactivated as Qe, onBeforeUnmount as Xe, openBlock as r, createElementBlock as n, mergeProps as Ye, unref as C, createBlock as G, resolveDynamicComponent as Ze, normalizeStyle as we, withCtx as ne, createElementVNode as Q, createCommentVNode as c, renderSlot as w, createTextVNode as M, toDisplayString as F, createSlots as _e, createVNode as ea, normalizeClass as X, Fragment as K, renderList as me } from "vue";
|
|
2
|
+
import { CircleHelp as aa, LoaderCircle as la, CheckCircle2 as ta, CircleAlert as ia } from "lucide-vue-next";
|
|
3
|
+
import ua from "../HysTooltip/HysTooltip.vue.js";
|
|
4
|
+
import { resolveFormCol as Ce, resolveFormGrid as oa } from "../../composables/formLayout.js";
|
|
5
|
+
import { formKey as ra, formPath as sa, fieldKey as na, formValue as Fe, focusHysField as da } from "../../composables/formContext.js";
|
|
6
|
+
import { useHysRootAttrs as va } from "../../config.js";
|
|
7
|
+
import { snapshotForm as Se, sameFormValue as ca } from "../../composables/formValidation.js";
|
|
8
|
+
const ha = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "hys-ui-form-required",
|
|
11
11
|
"aria-hidden": "true"
|
|
12
|
-
},
|
|
12
|
+
}, ya = { class: "hys-ui-form-label-text" }, pa = {
|
|
13
13
|
key: 0,
|
|
14
14
|
"aria-hidden": "true"
|
|
15
|
-
},
|
|
15
|
+
}, fa = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "hys-ui-form-required",
|
|
18
18
|
"aria-hidden": "true"
|
|
19
|
-
},
|
|
19
|
+
}, ga = {
|
|
20
20
|
key: 2,
|
|
21
21
|
class: "hys-ui-form-optional"
|
|
22
|
-
},
|
|
22
|
+
}, ka = ["role", "aria-labelledby", "aria-describedby", "aria-invalid"], wa = ["id", "role"], ma = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "hys-ui-ent-error"
|
|
25
|
-
},
|
|
25
|
+
}, Ca = { key: 0 }, Fa = {
|
|
26
26
|
key: 1,
|
|
27
27
|
class: "hys-ui-form-warning"
|
|
28
|
-
},
|
|
28
|
+
}, Sa = { key: 0 }, Ba = {
|
|
29
29
|
key: 2,
|
|
30
30
|
class: "hys-ui-form-item-extra"
|
|
31
31
|
}, za = /* @__PURE__ */ De({
|
|
@@ -69,81 +69,81 @@ const ca = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
|
69
69
|
noStyle: { type: Boolean },
|
|
70
70
|
validateTrigger: {}
|
|
71
71
|
},
|
|
72
|
-
setup(
|
|
73
|
-
const a =
|
|
74
|
-
() => a.prop === void 0 ? "" :
|
|
75
|
-
),
|
|
72
|
+
setup(h, { expose: Be }) {
|
|
73
|
+
const a = h, xe = va(), e = Ne(ra, void 0), S = V(), W = V(), b = je(), p = V(a.for || b), Y = b + "-error", Z = b + "-hint", de = b + "-warning", O = Ge(), f = V(!!a.group), o = t(
|
|
74
|
+
() => a.prop === void 0 ? "" : sa(a.prop)
|
|
75
|
+
), ve = t(() => [a.rules ?? []].flat()), _ = t(() => a.label), v = t(
|
|
76
76
|
() => a.error !== void 0 ? a.error : o.value ? e == null ? void 0 : e.errors.value[o.value] : void 0
|
|
77
77
|
), y = t(
|
|
78
78
|
() => a.warning !== void 0 ? a.warning : o.value ? e == null ? void 0 : e.warnings.value[o.value] : void 0
|
|
79
|
-
), W = t(
|
|
80
|
-
() => a.error !== void 0 ? a.error ? [a.error] : [] : (e == null ? void 0 : e.errorMessages.value[o.value]) ?? (v.value ? [v.value] : [])
|
|
81
79
|
), $ = t(
|
|
80
|
+
() => a.error !== void 0 ? a.error ? [a.error] : [] : (e == null ? void 0 : e.errorMessages.value[o.value]) ?? (v.value ? [v.value] : [])
|
|
81
|
+
), R = t(
|
|
82
82
|
() => a.warning !== void 0 ? a.warning ? [a.warning] : [] : (e == null ? void 0 : e.warningMessages.value[o.value]) ?? (y.value ? [y.value] : [])
|
|
83
|
-
),
|
|
83
|
+
), qe = t(
|
|
84
84
|
() => o.value ? e == null ? void 0 : e.states.value[o.value] : void 0
|
|
85
85
|
), d = t(
|
|
86
86
|
() => {
|
|
87
87
|
var l;
|
|
88
|
-
return a.status ?? (v.value ? "error" : y.value ? "warning" : ((l =
|
|
88
|
+
return a.status ?? (v.value ? "error" : y.value ? "warning" : ((l = qe.value) == null ? void 0 : l.status) ?? "idle");
|
|
89
89
|
}
|
|
90
90
|
), g = t(() => !!v.value || d.value === "error"), A = t(
|
|
91
91
|
() => a.required ?? [
|
|
92
92
|
...o.value ? (e == null ? void 0 : e.getRules(o.value)) ?? [] : [],
|
|
93
|
-
...
|
|
93
|
+
...ve.value
|
|
94
94
|
].some((l) => l.required)
|
|
95
|
-
), U = t(() => !!(a.disabled || e != null && e.disabled.value)),
|
|
95
|
+
), U = t(() => !!(a.disabled || e != null && e.disabled.value)), P = t(() => a.size ?? (e == null ? void 0 : e.size.value) ?? "md"), B = t(
|
|
96
96
|
() => !a.noStyle && (a.showLabel ?? (e == null ? void 0 : e.showLabel.value) ?? !0) && (!!a.label || !!O.label)
|
|
97
|
-
), ve = t(
|
|
98
|
-
() => a.showFeedback ?? (e == null ? void 0 : e.showFeedback.value) ?? !0
|
|
99
97
|
), ce = t(
|
|
98
|
+
() => a.showFeedback ?? (e == null ? void 0 : e.showFeedback.value) ?? !0
|
|
99
|
+
), he = t(
|
|
100
100
|
() => a.showRequiredMark ?? (e == null ? void 0 : e.showRequiredMark.value) ?? !0
|
|
101
101
|
), be = t(
|
|
102
102
|
() => a.requiredMarkPosition ?? (e == null ? void 0 : e.requiredMarkPosition.value) ?? "right"
|
|
103
103
|
), k = t(
|
|
104
104
|
() => a.labelPosition ?? (e == null ? void 0 : e.labelPosition.value) ?? "top"
|
|
105
|
-
),
|
|
105
|
+
), T = t(
|
|
106
106
|
() => typeof a.labelWidth == "number" ? a.labelWidth + "px" : a.labelWidth ?? (e == null ? void 0 : e.labelWidth.value) ?? "100px"
|
|
107
|
-
), qe = t(
|
|
108
|
-
() => P.value === "auto" ? (e == null ? void 0 : e.autoLabelWidth.value) ?? "auto" : P.value
|
|
109
107
|
), Me = t(
|
|
110
|
-
() =>
|
|
108
|
+
() => T.value === "auto" ? (e == null ? void 0 : e.autoLabelWidth.value) ?? "auto" : T.value
|
|
111
109
|
), Ae = t(
|
|
112
|
-
() => a.
|
|
110
|
+
() => a.labelAlign ?? (a.labelPosition ? a.labelPosition === "right" ? "right" : "left" : (e == null ? void 0 : e.labelAlign.value) ?? (k.value === "right" ? "right" : "left"))
|
|
113
111
|
), Le = t(
|
|
112
|
+
() => a.labelWrap ?? (e == null ? void 0 : e.labelWrap.value) ?? !0
|
|
113
|
+
), Ie = t(
|
|
114
114
|
() => a.labelSuffix ?? (e == null ? void 0 : e.labelSuffix.value) ?? ""
|
|
115
|
-
),
|
|
115
|
+
), Ve = t(() => a.colon ?? (e == null ? void 0 : e.colon.value) ?? !1), ze = t(
|
|
116
116
|
() => a.inlineFeedback ?? (e == null ? void 0 : e.inlineFeedback.value) ?? !1
|
|
117
|
-
),
|
|
117
|
+
), We = t(
|
|
118
118
|
() => a.feedbackIcon ?? (e == null ? void 0 : e.feedbackIcon.value) ?? !1
|
|
119
|
-
),
|
|
119
|
+
), ye = t(
|
|
120
120
|
() => a.optionalMark ?? (e == null ? void 0 : e.optionalMark.value) ?? ""
|
|
121
|
-
),
|
|
122
|
-
label:
|
|
123
|
-
wrapper:
|
|
121
|
+
), E = V(), ee = t(() => (e == null ? void 0 : e.containerWidth.value) ?? 0), H = t(() => ({
|
|
122
|
+
label: Ce(a.labelCol ?? (e == null ? void 0 : e.labelCol.value), ee.value),
|
|
123
|
+
wrapper: Ce(
|
|
124
124
|
a.wrapperCol ?? (e == null ? void 0 : e.wrapperCol.value),
|
|
125
125
|
ee.value
|
|
126
126
|
)
|
|
127
|
-
})),
|
|
128
|
-
const l =
|
|
127
|
+
})), $e = t(() => {
|
|
128
|
+
const l = H.value.label, i = Math.min(
|
|
129
129
|
(e == null ? void 0 : e.columns.value) ?? 24,
|
|
130
|
-
|
|
131
|
-
), u = B.value && k.value !== "top" && (l ||
|
|
130
|
+
oa(a.span, ee.value)
|
|
131
|
+
), u = B.value && k.value !== "top" && (l || H.value.wrapper);
|
|
132
132
|
return {
|
|
133
|
-
"--hys-ui-form-label-width":
|
|
133
|
+
"--hys-ui-form-label-width": Me.value,
|
|
134
134
|
gridColumn: e ? "span " + i : void 0,
|
|
135
135
|
gridTemplateColumns: u ? "repeat(24,minmax(0,1fr))" : void 0,
|
|
136
136
|
columnGap: u ? "0px" : void 0
|
|
137
137
|
};
|
|
138
|
-
}),
|
|
139
|
-
const l =
|
|
138
|
+
}), Re = t(() => {
|
|
139
|
+
const l = H.value.label;
|
|
140
140
|
return l && k.value !== "top" ? {
|
|
141
141
|
gridColumn: 1 + (l.offset ?? 0) + " / span " + Math.max(1, l.span ?? 0),
|
|
142
142
|
display: l.span === 0 ? "none" : void 0
|
|
143
143
|
} : void 0;
|
|
144
|
-
}),
|
|
144
|
+
}), Pe = t(() => {
|
|
145
145
|
if (!B.value) return;
|
|
146
|
-
const l =
|
|
146
|
+
const l = H.value.wrapper, i = H.value.label, u = Math.min(
|
|
147
147
|
23,
|
|
148
148
|
((i == null ? void 0 : i.span) ?? 0) + ((i == null ? void 0 : i.offset) ?? 0) + ((l == null ? void 0 : l.offset) ?? 0)
|
|
149
149
|
);
|
|
@@ -152,19 +152,19 @@ const ca = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
|
152
152
|
paddingInlineStart: "14px",
|
|
153
153
|
boxSizing: "border-box"
|
|
154
154
|
} : void 0;
|
|
155
|
-
}),
|
|
155
|
+
}), Te = t(
|
|
156
156
|
() => a.validateTrigger ?? (e == null ? void 0 : e.validateTrigger.value) ?? ["change", "blur"]
|
|
157
|
-
), ye = t(
|
|
158
|
-
() => a.help !== void 0 || !!(v.value || y.value || O.help || O.feedback)
|
|
159
157
|
), pe = t(
|
|
160
|
-
() =>
|
|
158
|
+
() => a.help !== void 0 || !!(v.value || y.value || O.help || O.feedback)
|
|
159
|
+
), fe = t(
|
|
160
|
+
() => g.value ? Y : y.value ? de : b + "-feedback"
|
|
161
161
|
), ae = t(
|
|
162
162
|
() => [
|
|
163
|
-
|
|
163
|
+
ce.value && pe.value ? fe.value : void 0,
|
|
164
164
|
a.hint || O.hint ? Z : void 0
|
|
165
165
|
].filter(Boolean).join(" ") || void 0
|
|
166
|
-
);
|
|
167
|
-
|
|
166
|
+
), le = V(0);
|
|
167
|
+
Ke(na, {
|
|
168
168
|
id: t(() => a.autoLink ? p.value : ""),
|
|
169
169
|
label: _,
|
|
170
170
|
error: v,
|
|
@@ -174,52 +174,59 @@ const ca = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
|
174
174
|
invalid: g,
|
|
175
175
|
status: d,
|
|
176
176
|
disabled: U,
|
|
177
|
-
size:
|
|
178
|
-
validate: x
|
|
177
|
+
size: P,
|
|
178
|
+
validate: x,
|
|
179
|
+
deferChangeValidation() {
|
|
180
|
+
le.value++;
|
|
181
|
+
let l = !1;
|
|
182
|
+
return () => {
|
|
183
|
+
l || le.value--, l = !0;
|
|
184
|
+
};
|
|
185
|
+
}
|
|
179
186
|
});
|
|
180
187
|
async function x(l) {
|
|
181
188
|
var i;
|
|
182
189
|
return e != null && e.resetting.value || U.value || !o.value || l === "blur" && ((i = e == null ? void 0 : e.suppressAutoBlur) != null && i.value) ? !0 : await (e == null ? void 0 : e.validateField(o.value, l)) ?? !0;
|
|
183
190
|
}
|
|
184
|
-
function
|
|
191
|
+
function te() {
|
|
185
192
|
var l, i;
|
|
186
|
-
return (a.for ? document.getElementById(a.for) : null) || ((l =
|
|
193
|
+
return (a.for ? document.getElementById(a.for) : null) || ((l = W.value) == null ? void 0 : l.querySelector(
|
|
187
194
|
'[data-hys-ui-field-managed][role="tree"]'
|
|
188
|
-
)) || ((i =
|
|
195
|
+
)) || ((i = W.value) == null ? void 0 : i.querySelector(
|
|
189
196
|
'input:not([type="hidden"]):not([hidden]),textarea,select,[role="combobox"],button[role="switch"],[role="radiogroup"],[role="slider"],[role="button"],[role="group"],[contenteditable][role="textbox"]'
|
|
190
197
|
));
|
|
191
198
|
}
|
|
192
|
-
function
|
|
193
|
-
|
|
199
|
+
function ie() {
|
|
200
|
+
da(te());
|
|
194
201
|
}
|
|
195
|
-
function
|
|
196
|
-
const i =
|
|
197
|
-
i && !i.matches("input,button,textarea,select") && (l.preventDefault(),
|
|
202
|
+
function Ee(l) {
|
|
203
|
+
const i = te();
|
|
204
|
+
i && !i.matches("input,button,textarea,select") && (l.preventDefault(), ie());
|
|
198
205
|
}
|
|
199
|
-
function
|
|
200
|
-
var
|
|
206
|
+
function ue() {
|
|
207
|
+
var j, J, I;
|
|
201
208
|
if (!a.autoLink) return;
|
|
202
209
|
const l = [
|
|
203
|
-
...((
|
|
210
|
+
...((j = W.value) == null ? void 0 : j.querySelectorAll(
|
|
204
211
|
'input:not([type="hidden"]):not([hidden]),textarea,select,[role="combobox"],button[role="switch"],[role="radiogroup"],[role="slider"],[role="button"],[data-hys-ui-field-managed][role="tree"],[contenteditable][role="textbox"]'
|
|
205
212
|
)) ?? []
|
|
206
213
|
].filter(
|
|
207
214
|
(m) => m.closest(".hys-ui-ent-field") === S.value && !m.closest("[data-hys-ui-form-internal]") && (!m.closest('[data-hys-ui-field-managed][role="tree"]') || m.matches('[data-hys-ui-field-managed][role="tree"]')) && (!m.closest('[role="radiogroup"]') || m.matches('[role="radiogroup"]'))
|
|
208
|
-
), i = a.group ?? (l.length > 1 || !!((J =
|
|
209
|
-
if (f.value !== i && (f.value = i, p.value = i ? "" : a.for ||
|
|
215
|
+
), i = a.group ?? (l.length > 1 || !!((J = W.value) != null && J.querySelector(".hys-ui-ent-field")));
|
|
216
|
+
if (f.value !== i && (f.value = i, p.value = i ? "" : a.for || b), i) {
|
|
210
217
|
p.value && (p.value = "");
|
|
211
218
|
return;
|
|
212
219
|
}
|
|
213
|
-
const u =
|
|
220
|
+
const u = te();
|
|
214
221
|
if (!u || (a.for ? p.value = a.for : u.id ? p.value = u.id : u.id = p.value, u.hasAttribute("data-hys-ui-field-managed"))) return;
|
|
215
222
|
u.setAttribute("aria-invalid", String(g.value)), A.value ? u.setAttribute("aria-required", "true") : u.removeAttribute("aria-required");
|
|
216
223
|
const s = new Set(
|
|
217
224
|
(u.getAttribute("aria-describedby") || "").split(" ").filter(Boolean)
|
|
218
225
|
);
|
|
219
|
-
s.delete(Y), s.delete(Z), s.delete(
|
|
226
|
+
s.delete(Y), s.delete(Z), s.delete(de), s.delete(b + "-feedback"), (I = ae.value) == null || I.split(" ").forEach((m) => s.add(m)), s.size ? u.setAttribute("aria-describedby", [...s].join(" ")) : u.removeAttribute("aria-describedby");
|
|
220
227
|
}
|
|
221
|
-
function
|
|
222
|
-
var u, s,
|
|
228
|
+
function He(l) {
|
|
229
|
+
var u, s, j;
|
|
223
230
|
if (l.target.closest(".hys-ui-ent-field") !== S.value)
|
|
224
231
|
return;
|
|
225
232
|
const i = l.relatedTarget;
|
|
@@ -228,7 +235,7 @@ const ca = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
|
228
235
|
for (const J of ((s = S.value) == null ? void 0 : s.querySelectorAll(
|
|
229
236
|
"[aria-controls]"
|
|
230
237
|
)) || []) {
|
|
231
|
-
const I = (
|
|
238
|
+
const I = (j = document.getElementById(J.getAttribute("aria-controls") || "")) == null ? void 0 : j.closest("[data-hys-ui]");
|
|
232
239
|
if (I != null && I.contains(i)) return;
|
|
233
240
|
}
|
|
234
241
|
x("blur");
|
|
@@ -237,8 +244,8 @@ const ca = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
|
237
244
|
const D = {
|
|
238
245
|
path: o,
|
|
239
246
|
element: S,
|
|
240
|
-
rules:
|
|
241
|
-
trigger:
|
|
247
|
+
rules: ve,
|
|
248
|
+
trigger: Te,
|
|
242
249
|
dependencies: t(() => a.dependencies ?? []),
|
|
243
250
|
label: _,
|
|
244
251
|
validateFirst: t(
|
|
@@ -255,9 +262,9 @@ const ca = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
|
255
262
|
setInitialValue: (l) => {
|
|
256
263
|
o.value && (e == null || e.setFieldInitialValue(o.value, l));
|
|
257
264
|
},
|
|
258
|
-
focus:
|
|
265
|
+
focus: ie
|
|
259
266
|
};
|
|
260
|
-
let q,
|
|
267
|
+
let q, ge = Se(a.rules);
|
|
261
268
|
z(
|
|
262
269
|
o,
|
|
263
270
|
(l) => {
|
|
@@ -267,85 +274,85 @@ const ca = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
|
267
274
|
), z(
|
|
268
275
|
() => [
|
|
269
276
|
o.value,
|
|
270
|
-
|
|
277
|
+
Fe(e == null ? void 0 : e.model.value, o.value),
|
|
271
278
|
...(a.dependencies ?? []).map(
|
|
272
|
-
(l) =>
|
|
279
|
+
(l) => Fe(e == null ? void 0 : e.model.value, l)
|
|
273
280
|
)
|
|
274
281
|
],
|
|
275
282
|
(l, i) => {
|
|
276
|
-
e != null && e.model.value && !e.resetting.value && l[0] === (i == null ? void 0 : i[0]) && x("change");
|
|
283
|
+
e != null && e.model.value && !e.resetting.value && !le.value && l[0] === (i == null ? void 0 : i[0]) && x("change");
|
|
277
284
|
},
|
|
278
285
|
{ deep: !0 }
|
|
279
286
|
), z(
|
|
280
287
|
() => a.rules,
|
|
281
288
|
() => {
|
|
282
|
-
|
|
289
|
+
ca(a.rules, ge) || (ge = Se(a.rules), e && !e.resetting.value && (e.validateOnRuleChange.value ? x() : o.value && e.cancelField(o.value)));
|
|
283
290
|
},
|
|
284
291
|
{ deep: !0 }
|
|
285
292
|
), z(
|
|
286
293
|
() => a.for,
|
|
287
294
|
() => {
|
|
288
|
-
p.value = a.for ||
|
|
295
|
+
p.value = a.for || b, ke(ue);
|
|
289
296
|
}
|
|
290
297
|
), z(U, (l) => {
|
|
291
298
|
l && D.clearValidate();
|
|
292
299
|
});
|
|
293
|
-
let L,
|
|
294
|
-
function
|
|
300
|
+
let L, N = !0;
|
|
301
|
+
function oe() {
|
|
295
302
|
var l;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
B.value && k.value !== "top" &&
|
|
303
|
+
N && (e == null || e.setLabelWidth(
|
|
304
|
+
b,
|
|
305
|
+
B.value && k.value !== "top" && T.value === "auto" ? Math.ceil(((l = E.value) == null ? void 0 : l.getBoundingClientRect().width) ?? 0) : void 0
|
|
299
306
|
));
|
|
300
307
|
}
|
|
301
|
-
function oe() {
|
|
302
|
-
L == null || L.disconnect(), L = void 0, e == null || e.setLabelWidth(h);
|
|
303
|
-
}
|
|
304
308
|
function re() {
|
|
305
|
-
|
|
309
|
+
L == null || L.disconnect(), L = void 0, e == null || e.setLabelWidth(b);
|
|
310
|
+
}
|
|
311
|
+
function se() {
|
|
312
|
+
re(), !(!N || !S.value) && (oe(), typeof ResizeObserver < "u" && E.value && (L = new ResizeObserver(oe), L.observe(E.value)));
|
|
306
313
|
}
|
|
307
314
|
return z(
|
|
308
|
-
[B, k,
|
|
309
|
-
() => void
|
|
310
|
-
),
|
|
311
|
-
|
|
312
|
-
}), Oe(() => {
|
|
313
|
-
ie(), ue();
|
|
315
|
+
[B, k, T, E, P],
|
|
316
|
+
() => void ke(se)
|
|
317
|
+
), Oe(() => {
|
|
318
|
+
ue(), se();
|
|
314
319
|
}), Ue(() => {
|
|
315
|
-
|
|
320
|
+
ue(), oe();
|
|
316
321
|
}), Je(() => {
|
|
317
|
-
|
|
322
|
+
N = !0, se();
|
|
318
323
|
}), Qe(() => {
|
|
319
|
-
|
|
320
|
-
}),
|
|
324
|
+
N = !1, re();
|
|
325
|
+
}), Xe(() => {
|
|
326
|
+
N = !1, re(), q == null || q();
|
|
327
|
+
}), Be({
|
|
321
328
|
validate: x,
|
|
322
329
|
clearValidate: D.clearValidate,
|
|
323
330
|
resetField: D.resetField,
|
|
324
331
|
setInitialValue: D.setInitialValue,
|
|
325
|
-
focus:
|
|
332
|
+
focus: ie,
|
|
326
333
|
path: o,
|
|
327
334
|
status: d,
|
|
328
335
|
error: v,
|
|
329
336
|
warning: y,
|
|
330
|
-
size:
|
|
337
|
+
size: P,
|
|
331
338
|
validateMessage: v,
|
|
332
339
|
validateState: d
|
|
333
|
-
}), (l, i) => (r(), n("div",
|
|
340
|
+
}), (l, i) => (r(), n("div", Ye({
|
|
334
341
|
ref_key: "root",
|
|
335
342
|
ref: S
|
|
336
|
-
}, C(
|
|
343
|
+
}, C(xe), {
|
|
337
344
|
class: ["hys-ui-ent-field", [
|
|
338
345
|
"hys-ui-form-item-" + k.value,
|
|
339
|
-
"hys-ui-form-item-" +
|
|
340
|
-
"hys-ui-form-label-align-" +
|
|
346
|
+
"hys-ui-form-item-" + P.value,
|
|
347
|
+
"hys-ui-form-label-align-" + Ae.value,
|
|
341
348
|
{
|
|
342
|
-
"hys-ui-form-item-no-style":
|
|
349
|
+
"hys-ui-form-item-no-style": h.noStyle,
|
|
343
350
|
"hys-ui-form-item-grid": B.value && k.value !== "top",
|
|
344
|
-
"hys-ui-form-label-nowrap": !
|
|
345
|
-
"hys-ui-form-label-auto":
|
|
351
|
+
"hys-ui-form-label-nowrap": !Le.value,
|
|
352
|
+
"hys-ui-form-label-auto": T.value === "auto"
|
|
346
353
|
}
|
|
347
354
|
]],
|
|
348
|
-
style:
|
|
355
|
+
style: $e.value,
|
|
349
356
|
"data-field-path": o.value || void 0,
|
|
350
357
|
"data-validation-status": d.value,
|
|
351
358
|
"aria-busy": d.value === "validating" || void 0,
|
|
@@ -353,41 +360,41 @@ const ca = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
|
353
360
|
var s;
|
|
354
361
|
return !((s = C(e)) != null && s.model.value) && x("change");
|
|
355
362
|
}),
|
|
356
|
-
onFocusout:
|
|
363
|
+
onFocusout: He
|
|
357
364
|
}), [
|
|
358
|
-
B.value ? (r(), G(
|
|
365
|
+
B.value ? (r(), G(Ze(f.value ? "div" : "label"), {
|
|
359
366
|
key: 0,
|
|
360
367
|
class: "hys-ui-form-item-label",
|
|
361
|
-
id: C(
|
|
362
|
-
for:
|
|
363
|
-
style:
|
|
364
|
-
onClick: i[0] || (i[0] = (u) =>
|
|
368
|
+
id: C(b) + "-label",
|
|
369
|
+
for: h.autoLink && !f.value ? p.value : void 0,
|
|
370
|
+
style: we(Re.value),
|
|
371
|
+
onClick: i[0] || (i[0] = (u) => h.autoLink && !f.value && Ee(u))
|
|
365
372
|
}, {
|
|
366
|
-
default:
|
|
373
|
+
default: ne(() => [
|
|
367
374
|
Q("span", {
|
|
368
375
|
ref_key: "labelContent",
|
|
369
|
-
ref:
|
|
376
|
+
ref: E,
|
|
370
377
|
class: "hys-ui-form-label-content"
|
|
371
378
|
}, [
|
|
372
|
-
A.value &&
|
|
373
|
-
Q("span",
|
|
379
|
+
A.value && he.value && be.value === "left" ? (r(), n("span", ba, "*")) : c("", !0),
|
|
380
|
+
Q("span", ya, [
|
|
374
381
|
w(l.$slots, "label", {
|
|
375
382
|
required: A.value,
|
|
376
383
|
status: d.value
|
|
377
384
|
}, () => [
|
|
378
385
|
M(F(_.value), 1)
|
|
379
386
|
], !0),
|
|
380
|
-
M(F(
|
|
381
|
-
|
|
387
|
+
M(F(Ie.value), 1),
|
|
388
|
+
Ve.value && k.value !== "top" ? (r(), n("span", pa, ":")) : c("", !0)
|
|
382
389
|
]),
|
|
383
|
-
A.value &&
|
|
384
|
-
!A.value &&
|
|
385
|
-
|
|
390
|
+
A.value && he.value && be.value === "right" ? (r(), n("span", fa, "*")) : c("", !0),
|
|
391
|
+
!A.value && ye.value ? (r(), n("span", ga, F(ye.value), 1)) : c("", !0),
|
|
392
|
+
h.tooltip || l.$slots.tooltip ? (r(), G(ua, {
|
|
386
393
|
key: 3,
|
|
387
|
-
text:
|
|
388
|
-
},
|
|
389
|
-
default:
|
|
390
|
-
|
|
394
|
+
text: h.tooltip
|
|
395
|
+
}, _e({
|
|
396
|
+
default: ne(() => [
|
|
397
|
+
ea(C(aa), {
|
|
391
398
|
size: 14,
|
|
392
399
|
"aria-label": "字段说明"
|
|
393
400
|
})
|
|
@@ -396,7 +403,7 @@ const ca = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
|
396
403
|
}, [
|
|
397
404
|
l.$slots.tooltip ? {
|
|
398
405
|
name: "content",
|
|
399
|
-
fn:
|
|
406
|
+
fn: ne(() => [
|
|
400
407
|
w(l.$slots, "tooltip", {}, void 0, !0)
|
|
401
408
|
]),
|
|
402
409
|
key: "0"
|
|
@@ -408,15 +415,15 @@ const ca = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
|
408
415
|
}, 8, ["id", "for", "style"])) : c("", !0),
|
|
409
416
|
Q("div", {
|
|
410
417
|
class: X(["hys-ui-form-item-body", { "hys-ui-form-inline-feedback": ze.value }]),
|
|
411
|
-
style:
|
|
418
|
+
style: we(Pe.value),
|
|
412
419
|
role: f.value ? "group" : void 0,
|
|
413
|
-
"aria-labelledby": f.value && B.value ? C(
|
|
420
|
+
"aria-labelledby": f.value && B.value ? C(b) + "-label" : void 0,
|
|
414
421
|
"aria-describedby": f.value ? ae.value : void 0,
|
|
415
422
|
"aria-invalid": f.value ? g.value : void 0
|
|
416
423
|
}, [
|
|
417
424
|
Q("div", {
|
|
418
425
|
ref_key: "control",
|
|
419
|
-
ref:
|
|
426
|
+
ref: W,
|
|
420
427
|
class: X(["hys-ui-form-item-control", {
|
|
421
428
|
"hys-ui-ent-invalid": g.value,
|
|
422
429
|
"hys-ui-form-item-warning": d.value === "warning"
|
|
@@ -427,33 +434,33 @@ const ca = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
|
427
434
|
invalid: g.value,
|
|
428
435
|
error: v.value,
|
|
429
436
|
warning: y.value,
|
|
430
|
-
errors:
|
|
431
|
-
warnings:
|
|
437
|
+
errors: $.value,
|
|
438
|
+
warnings: R.value,
|
|
432
439
|
status: d.value,
|
|
433
440
|
disabled: U.value,
|
|
434
|
-
size:
|
|
441
|
+
size: P.value
|
|
435
442
|
}, void 0, !0),
|
|
436
|
-
|
|
443
|
+
We.value && d.value !== "idle" ? (r(), n("span", {
|
|
437
444
|
key: 0,
|
|
438
445
|
class: X(["hys-ui-form-feedback-icon", "hys-ui-form-feedback-" + d.value]),
|
|
439
446
|
"aria-hidden": "true"
|
|
440
447
|
}, [
|
|
441
|
-
d.value === "validating" ? (r(), G(C(
|
|
448
|
+
d.value === "validating" ? (r(), G(C(la), {
|
|
442
449
|
key: 0,
|
|
443
450
|
size: 15,
|
|
444
451
|
class: "hys-ui-icon-spin"
|
|
445
|
-
})) : d.value === "success" ? (r(), G(C(
|
|
452
|
+
})) : d.value === "success" ? (r(), G(C(ta), {
|
|
446
453
|
key: 1,
|
|
447
454
|
size: 15
|
|
448
|
-
})) : (r(), G(C(
|
|
455
|
+
})) : (r(), G(C(ia), {
|
|
449
456
|
key: 2,
|
|
450
457
|
size: 15
|
|
451
458
|
}))
|
|
452
459
|
], 2)) : c("", !0)
|
|
453
460
|
], 2),
|
|
454
|
-
|
|
461
|
+
ce.value && pe.value ? (r(), n("div", {
|
|
455
462
|
key: 0,
|
|
456
|
-
id:
|
|
463
|
+
id: fe.value,
|
|
457
464
|
role: g.value ? "alert" : y.value ? "status" : void 0,
|
|
458
465
|
class: X(["hys-ui-form-item-feedback", {
|
|
459
466
|
"hys-ui-ent-error": g.value,
|
|
@@ -463,59 +470,59 @@ const ca = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
|
463
470
|
w(l.$slots, "help", {
|
|
464
471
|
error: v.value,
|
|
465
472
|
warning: y.value,
|
|
466
|
-
errors:
|
|
467
|
-
warnings:
|
|
473
|
+
errors: $.value,
|
|
474
|
+
warnings: R.value,
|
|
468
475
|
status: d.value
|
|
469
476
|
}, () => [
|
|
470
|
-
|
|
471
|
-
M(F(
|
|
477
|
+
h.help !== void 0 ? (r(), n(K, { key: 0 }, [
|
|
478
|
+
M(F(h.help), 1)
|
|
472
479
|
], 64)) : w(l.$slots, "feedback", {
|
|
473
480
|
error: v.value,
|
|
474
481
|
warning: y.value,
|
|
475
|
-
errors:
|
|
476
|
-
warnings:
|
|
482
|
+
errors: $.value,
|
|
483
|
+
warnings: R.value,
|
|
477
484
|
status: d.value
|
|
478
485
|
}, () => [
|
|
479
|
-
v.value ? (r(), n("small",
|
|
486
|
+
v.value ? (r(), n("small", ma, [
|
|
480
487
|
w(l.$slots, "error", {
|
|
481
488
|
error: v.value,
|
|
482
|
-
errors:
|
|
489
|
+
errors: $.value
|
|
483
490
|
}, () => [
|
|
484
|
-
(r(!0), n(K, null,
|
|
485
|
-
s ? (r(), n("br",
|
|
491
|
+
(r(!0), n(K, null, me($.value, (u, s) => (r(), n(K, { key: s }, [
|
|
492
|
+
s ? (r(), n("br", Ca)) : c("", !0),
|
|
486
493
|
M(F(u), 1)
|
|
487
494
|
], 64))), 128))
|
|
488
495
|
], !0)
|
|
489
|
-
])) : y.value ? (r(), n("small",
|
|
496
|
+
])) : y.value ? (r(), n("small", Fa, [
|
|
490
497
|
w(l.$slots, "warning", {
|
|
491
498
|
warning: y.value,
|
|
492
|
-
warnings:
|
|
499
|
+
warnings: R.value
|
|
493
500
|
}, () => [
|
|
494
|
-
(r(!0), n(K, null,
|
|
495
|
-
s ? (r(), n("br",
|
|
501
|
+
(r(!0), n(K, null, me(R.value, (u, s) => (r(), n(K, { key: s }, [
|
|
502
|
+
s ? (r(), n("br", Sa)) : c("", !0),
|
|
496
503
|
M(F(u), 1)
|
|
497
504
|
], 64))), 128))
|
|
498
505
|
], !0)
|
|
499
506
|
])) : c("", !0)
|
|
500
507
|
], !0, 1)
|
|
501
508
|
], !0)
|
|
502
|
-
], 10,
|
|
503
|
-
|
|
509
|
+
], 10, wa)) : c("", !0),
|
|
510
|
+
h.hint || l.$slots.hint ? (r(), n("small", {
|
|
504
511
|
key: 1,
|
|
505
512
|
id: Z,
|
|
506
513
|
class: "hys-ui-form-item-hint"
|
|
507
514
|
}, [
|
|
508
515
|
w(l.$slots, "hint", {}, () => [
|
|
509
|
-
M(F(
|
|
516
|
+
M(F(h.hint), 1)
|
|
510
517
|
], !0)
|
|
511
518
|
])) : c("", !0),
|
|
512
|
-
|
|
519
|
+
h.extra || l.$slots.extra ? (r(), n("div", Ba, [
|
|
513
520
|
w(l.$slots, "extra", { status: d.value }, () => [
|
|
514
|
-
M(F(
|
|
521
|
+
M(F(h.extra), 1)
|
|
515
522
|
], !0)
|
|
516
523
|
])) : c("", !0)
|
|
517
|
-
], 14,
|
|
518
|
-
], 16,
|
|
524
|
+
], 14, ka)
|
|
525
|
+
], 16, ha));
|
|
519
526
|
}
|
|
520
527
|
});
|
|
521
528
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./HysGantt2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-12708857"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|