hys-ui 0.4.0 → 0.6.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 +13 -0
- package/dist/components/HysAnimatedNumber/HysAnimatedNumber.vue.js +3 -3
- package/dist/components/HysAnimatedNumber/HysAnimatedNumber2.vue.js +440 -119
- package/dist/components/HysAnimatedNumber/NumberAnimationCanvas/NumberAnimationCanvas.vue.js +7 -0
- package/dist/components/HysAnimatedNumber/NumberAnimationCanvas/NumberAnimationCanvas2.vue.js +166 -0
- package/dist/components/HysAnimatedNumber/NumberDigits/NumberDigits.vue.js +7 -0
- package/dist/components/HysAnimatedNumber/NumberDigits/NumberDigits2.vue.js +105 -0
- package/dist/components/HysAnimatedNumber/animation/digital.js +186 -0
- package/dist/components/HysAnimatedNumber/animation/morph.js +110 -0
- package/dist/components/HysAnimatedNumber/animation/paint.js +34 -0
- package/dist/components/HysAnimatedNumber/animation/particles.js +51 -0
- package/dist/components/HysAnimatedNumber/animation/paths.js +165 -0
- package/dist/components/HysAnimatedNumber/animation/physics.js +66 -0
- package/dist/components/HysAnimatedNumber/animation/render.js +89 -0
- package/dist/components/HysAnimatedNumber/animation/reveal.js +125 -0
- package/dist/components/HysAnimatedNumber/animation/rolling.js +66 -0
- package/dist/components/HysAnimatedNumber/animation/scenarios.js +217 -0
- package/dist/components/HysAnimatedNumber/animation/spatial.js +112 -0
- package/dist/components/HysAnimatedNumber/useNumberCountdown.js +58 -0
- package/dist/components/HysAnimatedNumber/useNumberVisuals.js +60 -0
- package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
- package/dist/components/HysDrawer/HysDrawer2.vue.js +2 -2
- package/dist/components/HysFormItem/HysFormItem.vue.js +1 -1
- package/dist/components/HysFormItem/HysFormItem2.vue.js +231 -229
- package/dist/components/HysInput/HysInput.vue.js +2 -2
- package/dist/components/HysInput/HysInput2.vue.js +327 -274
- package/dist/components/HysModal/HysModal.vue.js +2 -2
- package/dist/components/HysModal/HysModal2.vue.js +38 -38
- package/dist/components/HysSearch/HysSearch.vue.js +2 -2
- package/dist/components/HysSortableList/HysSortableList.vue.js +2 -2
- package/dist/components/HysSortableList/HysSortableList2.vue.js +498 -129
- package/dist/components/HysSortableList/SortableGhost/SortableGhost.vue.js +7 -0
- package/dist/components/HysSortableList/SortableGhost/SortableGhost2.vue.js +43 -0
- package/dist/components/HysSortableList/SortableGhost/useSortGhost.js +54 -0
- package/dist/components/HysSortableList/geometry.js +230 -0
- package/dist/components/HysSortableList/model.js +254 -0
- package/dist/components/HysSortableList/transactions.js +281 -0
- package/dist/components/HysSortableList/useSortDrag.js +270 -0
- package/dist/components/HysSortableList/useSortKeyboard.js +72 -0
- package/dist/components/HysSortableList/useSortWindow.js +144 -0
- package/dist/components/HysTextarea/HysTextarea.vue.js +56 -32
- package/dist/components/HysToast/HysToast.vue.js +3 -3
- package/dist/components/HysToast/HysToast2.vue.js +379 -107
- package/dist/components/HysToast/ToastViewport/ToastViewport.vue.js +7 -0
- package/dist/components/HysToast/ToastViewport/ToastViewport2.vue.js +211 -0
- package/dist/components/HysToast/ToastViewport/useToastStackDisclosure.js +71 -0
- package/dist/components/HysToast/toastPresentation.js +98 -0
- package/dist/components/HysToast/useToastActions.js +62 -0
- package/dist/components/HysToast/useToastSwipe.js +48 -0
- package/dist/components/HysToast/useToastTimer.js +90 -0
- package/dist/composables/animatedNumberDigits.js +106 -0
- package/dist/composables/animatedNumberFormat.js +222 -0
- package/dist/composables/animatedNumberTiming.js +66 -0
- package/dist/composables/numberAnimation.js +72 -0
- package/dist/composables/numberAnimationCatalog.js +301 -0
- package/dist/composables/numberAnimationSequence.js +45 -0
- package/dist/composables/popupReferenceBinding.js +41 -0
- package/dist/composables/textInput.js +23 -14
- package/dist/composables/toastEscape.js +18 -10
- package/dist/composables/toastQueue.js +276 -0
- package/dist/composables/toastQueueModel.js +86 -0
- package/dist/composables/toastTasks.js +58 -0
- package/dist/composables/useHysAnimatedNumber.js +264 -0
- package/dist/composables/useHysNumberAnimationGroup.js +23 -0
- package/dist/composables/useHysToast.js +117 -135
- package/dist/composables/usePopupSurface.js +190 -356
- package/dist/composables/usePopupSurfaceInteractions.js +172 -0
- package/dist/composables/useTextareaSize.js +62 -46
- package/dist/index.js +125 -111
- package/dist/style.css +1 -1
- package/dist/types/components/HysAnimatedNumber/HysAnimatedNumber.vue.d.ts +88 -49
- package/dist/types/components/HysAnimatedNumber/NumberAnimationCanvas/NumberAnimationCanvas.vue.d.ts +19 -0
- package/dist/types/components/HysAnimatedNumber/NumberDigits/NumberDigits.vue.d.ts +31 -0
- package/dist/types/components/HysAnimatedNumber/animation/digital.d.ts +3 -0
- package/dist/types/components/HysAnimatedNumber/animation/morph.d.ts +2 -0
- package/dist/types/components/HysAnimatedNumber/animation/paint.d.ts +44 -0
- package/dist/types/components/HysAnimatedNumber/animation/particles.d.ts +5 -0
- package/dist/types/components/HysAnimatedNumber/animation/paths.d.ts +12 -0
- package/dist/types/components/HysAnimatedNumber/animation/physics.d.ts +2 -0
- package/dist/types/components/HysAnimatedNumber/animation/render.d.ts +2 -0
- package/dist/types/components/HysAnimatedNumber/animation/reveal.d.ts +2 -0
- package/dist/types/components/HysAnimatedNumber/animation/rolling.d.ts +2 -0
- package/dist/types/components/HysAnimatedNumber/animation/scenarios.d.ts +4 -0
- package/dist/types/components/HysAnimatedNumber/animation/spatial.d.ts +2 -0
- package/dist/types/components/HysAnimatedNumber/useNumberCountdown.d.ts +8 -0
- package/dist/types/components/HysAnimatedNumber/useNumberVisuals.d.ts +12 -0
- package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +11 -2
- package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +2 -2
- package/dist/types/components/HysCard/HysCard.vue.d.ts +1 -1
- package/dist/types/components/HysCascader/HysCascader.vue.d.ts +3 -3
- package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +2 -2
- package/dist/types/components/HysColorPicker/HysColorPicker.vue.d.ts +2 -2
- package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +3 -3
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +5 -5
- package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +3 -3
- package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +1 -1
- package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +1 -1
- package/dist/types/components/HysGantt/HysGantt.vue.d.ts +1 -1
- package/dist/types/components/HysInput/HysInput.vue.d.ts +13 -1
- package/dist/types/components/HysModal/HysModal.vue.d.ts +1 -1
- package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +2 -2
- package/dist/types/components/HysPopover/HysPopover.vue.d.ts +1 -1
- package/dist/types/components/HysSearch/HysSearch.vue.d.ts +1 -1
- package/dist/types/components/HysSkeleton/HysSkeleton.vue.d.ts +2 -2
- package/dist/types/components/HysSortableList/HysSortableList.vue.d.ts +48 -25
- package/dist/types/components/HysSortableList/SortableGhost/SortableGhost.vue.d.ts +31 -0
- package/dist/types/components/HysSortableList/SortableGhost/useSortGhost.d.ts +23 -0
- package/dist/types/components/HysSortableList/geometry.d.ts +35 -0
- package/dist/types/components/HysSortableList/model.d.ts +61 -0
- package/dist/types/components/HysSortableList/sortableList.d.ts +151 -0
- package/dist/types/components/HysSortableList/transactions.d.ts +10 -0
- package/dist/types/components/HysSortableList/useSortDrag.d.ts +25 -0
- package/dist/types/components/HysSortableList/useSortKeyboard.d.ts +17 -0
- package/dist/types/components/HysSortableList/useSortWindow.d.ts +16 -0
- package/dist/types/components/HysSteps/HysSteps.vue.d.ts +1 -1
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +1 -1
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +1 -1
- package/dist/types/components/HysTextarea/HysTextarea.vue.d.ts +13 -2
- package/dist/types/components/HysToast/HysToast.vue.d.ts +44 -46
- package/dist/types/components/HysToast/ToastViewport/ToastViewport.vue.d.ts +25 -0
- package/dist/types/components/HysToast/ToastViewport/useToastStackDisclosure.d.ts +16 -0
- package/dist/types/components/HysToast/toastPresentation.d.ts +8 -0
- package/dist/types/components/HysToast/toastTypes.d.ts +212 -0
- package/dist/types/components/HysToast/useToastActions.d.ts +18 -0
- package/dist/types/components/HysToast/useToastSwipe.d.ts +11 -0
- package/dist/types/components/HysToast/useToastTimer.d.ts +22 -0
- package/dist/types/components/HysTooltip/HysTooltip.vue.d.ts +1 -1
- package/dist/types/components/HysTour/HysTour.vue.d.ts +1 -1
- package/dist/types/components/HysTreeSelect/HysTreeSelect.vue.d.ts +3 -3
- package/dist/types/components/HysUpload/HysUpload.vue.d.ts +2 -2
- package/dist/types/composables/animatedNumber.d.ts +220 -0
- package/dist/types/composables/animatedNumberDigits.d.ts +32 -0
- package/dist/types/composables/animatedNumberFormat.d.ts +16 -0
- package/dist/types/composables/animatedNumberTiming.d.ts +21 -0
- package/dist/types/composables/drawer.d.ts +1 -1
- package/dist/types/composables/numberAnimation.d.ts +29 -0
- package/dist/types/composables/numberAnimationCatalog.d.ts +58 -0
- package/dist/types/composables/numberAnimationSequence.d.ts +13 -0
- package/dist/types/composables/popupReferenceBinding.d.ts +9 -0
- package/dist/types/composables/textInput.d.ts +39 -4
- package/dist/types/composables/toastEscape.d.ts +1 -1
- package/dist/types/composables/toastQueue.d.ts +121 -0
- package/dist/types/composables/toastQueueModel.d.ts +116 -0
- package/dist/types/composables/toastTasks.d.ts +2 -0
- package/dist/types/composables/useHysAnimatedNumber.d.ts +37 -0
- package/dist/types/composables/useHysNumberAnimationGroup.d.ts +4 -0
- package/dist/types/composables/useHysToast.d.ts +4 -48
- package/dist/types/composables/usePopupSurface.d.ts +20 -20
- package/dist/types/composables/usePopupSurfaceInteractions.d.ts +33 -0
- package/dist/types/composables/useTextareaSize.d.ts +5 -2
- package/dist/types/index.d.ts +15 -6
- package/package.json +1 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { CircleHelp as
|
|
3
|
-
import
|
|
4
|
-
import { resolveFormCol as Ce, resolveFormGrid as
|
|
5
|
-
import { formKey as
|
|
6
|
-
import { useHysRootAttrs as
|
|
7
|
-
import { snapshotForm as Se, sameFormValue as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as Ne, inject as je, ref as I, useId as Ge, useSlots as Ke, computed as t, provide as Oe, watch as V, nextTick as ke, onMounted as Ue, onUpdated as Je, onActivated as Qe, onDeactivated as Xe, onBeforeUnmount as Ye, openBlock as r, createElementBlock as s, mergeProps as Ze, unref as q, createBlock as G, resolveDynamicComponent as _e, normalizeStyle as we, withCtx as ne, createElementVNode as Q, createCommentVNode as c, renderSlot as m, createTextVNode as M, toDisplayString as F, createSlots as ea, createVNode as aa, normalizeClass as X, Fragment as K, renderList as me } from "vue";
|
|
2
|
+
import { CircleHelp as la, LoaderCircle as ta, CheckCircle2 as ia, CircleAlert as ua } from "lucide-vue-next";
|
|
3
|
+
import oa from "../HysTooltip/HysTooltip.vue.js";
|
|
4
|
+
import { resolveFormCol as Ce, resolveFormGrid as ra } from "../../composables/formLayout.js";
|
|
5
|
+
import { formKey as sa, formPath as na, fieldKey as da, formValue as Fe, focusHysField as va } from "../../composables/formContext.js";
|
|
6
|
+
import { useHysRootAttrs as ca } from "../../config.js";
|
|
7
|
+
import { snapshotForm as Se, sameFormValue as ha } from "../../composables/formValidation.js";
|
|
8
|
+
const ba = ["data-field-path", "data-validation-status", "aria-busy"], ya = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "hys-ui-form-required",
|
|
11
11
|
"aria-hidden": "true"
|
|
12
|
-
},
|
|
12
|
+
}, pa = { class: "hys-ui-form-label-text" }, fa = {
|
|
13
13
|
key: 0,
|
|
14
14
|
"aria-hidden": "true"
|
|
15
|
-
},
|
|
15
|
+
}, ga = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "hys-ui-form-required",
|
|
18
18
|
"aria-hidden": "true"
|
|
19
|
-
},
|
|
19
|
+
}, ka = {
|
|
20
20
|
key: 2,
|
|
21
21
|
class: "hys-ui-form-optional"
|
|
22
|
-
},
|
|
22
|
+
}, wa = ["role", "aria-labelledby", "aria-describedby", "aria-invalid"], ma = ["id", "role"], Ca = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "hys-ui-ent-error"
|
|
25
|
-
},
|
|
25
|
+
}, Fa = { key: 0 }, Sa = {
|
|
26
26
|
key: 1,
|
|
27
27
|
class: "hys-ui-form-warning"
|
|
28
|
-
},
|
|
28
|
+
}, Ba = { key: 0 }, xa = {
|
|
29
29
|
key: 2,
|
|
30
30
|
class: "hys-ui-form-item-extra"
|
|
31
|
-
},
|
|
31
|
+
}, Wa = /* @__PURE__ */ Ne({
|
|
32
32
|
__name: "HysFormItem",
|
|
33
33
|
props: {
|
|
34
34
|
label: {},
|
|
@@ -70,341 +70,343 @@ const ha = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
|
70
70
|
validateTrigger: {}
|
|
71
71
|
},
|
|
72
72
|
setup(h, { expose: Be }) {
|
|
73
|
-
const
|
|
74
|
-
() =>
|
|
75
|
-
), ve = t(() => [
|
|
76
|
-
() =>
|
|
73
|
+
const l = h, xe = ca(), e = je(sa, void 0), C = I(), z = I(), b = Ge(), f = I(l.for || b), Y = b + "-error", Z = b + "-hint", de = b + "-warning", O = Ke(), g = I(!!l.group), o = t(
|
|
74
|
+
() => l.prop === void 0 ? "" : na(l.prop)
|
|
75
|
+
), ve = t(() => [l.rules ?? []].flat()), _ = t(() => l.label), v = t(
|
|
76
|
+
() => l.error !== void 0 ? l.error : o.value ? e == null ? void 0 : e.errors.value[o.value] : void 0
|
|
77
77
|
), y = t(
|
|
78
|
-
() =>
|
|
79
|
-
),
|
|
80
|
-
() =>
|
|
78
|
+
() => l.warning !== void 0 ? l.warning : o.value ? e == null ? void 0 : e.warnings.value[o.value] : void 0
|
|
79
|
+
), W = t(
|
|
80
|
+
() => l.error !== void 0 ? l.error ? [l.error] : [] : (e == null ? void 0 : e.errorMessages.value[o.value]) ?? (v.value ? [v.value] : [])
|
|
81
81
|
), R = t(
|
|
82
|
-
() =>
|
|
82
|
+
() => l.warning !== void 0 ? l.warning ? [l.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
|
+
), n = t(
|
|
86
86
|
() => {
|
|
87
|
-
var
|
|
88
|
-
return
|
|
87
|
+
var a;
|
|
88
|
+
return l.status ?? (v.value ? "error" : y.value ? "warning" : ((a = qe.value) == null ? void 0 : a.status) ?? "idle");
|
|
89
89
|
}
|
|
90
|
-
),
|
|
91
|
-
() =>
|
|
90
|
+
), k = t(() => !!v.value || n.value === "error"), A = t(
|
|
91
|
+
() => l.required ?? [
|
|
92
92
|
...o.value ? (e == null ? void 0 : e.getRules(o.value)) ?? [] : [],
|
|
93
93
|
...ve.value
|
|
94
|
-
].some((
|
|
95
|
-
), U = t(() => !!(
|
|
96
|
-
() => !
|
|
94
|
+
].some((a) => a.required)
|
|
95
|
+
), U = t(() => !!(l.disabled || e != null && e.disabled.value)), $ = t(() => l.size ?? (e == null ? void 0 : e.size.value) ?? "md"), S = t(
|
|
96
|
+
() => !l.noStyle && (l.showLabel ?? (e == null ? void 0 : e.showLabel.value) ?? !0) && (!!l.label || !!O.label)
|
|
97
97
|
), ce = t(
|
|
98
|
-
() =>
|
|
98
|
+
() => l.showFeedback ?? (e == null ? void 0 : e.showFeedback.value) ?? !0
|
|
99
99
|
), he = t(
|
|
100
|
-
() =>
|
|
100
|
+
() => l.showRequiredMark ?? (e == null ? void 0 : e.showRequiredMark.value) ?? !0
|
|
101
101
|
), be = t(
|
|
102
|
-
() =>
|
|
103
|
-
),
|
|
104
|
-
() =>
|
|
105
|
-
),
|
|
106
|
-
() => typeof
|
|
102
|
+
() => l.requiredMarkPosition ?? (e == null ? void 0 : e.requiredMarkPosition.value) ?? "right"
|
|
103
|
+
), w = t(
|
|
104
|
+
() => l.labelPosition ?? (e == null ? void 0 : e.labelPosition.value) ?? "top"
|
|
105
|
+
), P = t(
|
|
106
|
+
() => typeof l.labelWidth == "number" ? l.labelWidth + "px" : l.labelWidth ?? (e == null ? void 0 : e.labelWidth.value) ?? "100px"
|
|
107
107
|
), Me = t(
|
|
108
|
-
() =>
|
|
108
|
+
() => P.value === "auto" ? (e == null ? void 0 : e.autoLabelWidth.value) ?? "auto" : P.value
|
|
109
109
|
), Ae = t(
|
|
110
|
-
() =>
|
|
110
|
+
() => l.labelAlign ?? (l.labelPosition ? l.labelPosition === "right" ? "right" : "left" : (e == null ? void 0 : e.labelAlign.value) ?? (w.value === "right" ? "right" : "left"))
|
|
111
111
|
), Le = t(
|
|
112
|
-
() =>
|
|
112
|
+
() => l.labelWrap ?? (e == null ? void 0 : e.labelWrap.value) ?? !0
|
|
113
113
|
), Ie = t(
|
|
114
|
-
() =>
|
|
115
|
-
), Ve = t(() =>
|
|
116
|
-
() =>
|
|
114
|
+
() => l.labelSuffix ?? (e == null ? void 0 : e.labelSuffix.value) ?? ""
|
|
115
|
+
), Ve = t(() => l.colon ?? (e == null ? void 0 : e.colon.value) ?? !1), ze = t(
|
|
116
|
+
() => l.inlineFeedback ?? (e == null ? void 0 : e.inlineFeedback.value) ?? !1
|
|
117
117
|
), We = t(
|
|
118
|
-
() =>
|
|
118
|
+
() => l.feedbackIcon ?? (e == null ? void 0 : e.feedbackIcon.value) ?? !1
|
|
119
119
|
), ye = t(
|
|
120
|
-
() =>
|
|
121
|
-
),
|
|
122
|
-
label: Ce(
|
|
120
|
+
() => l.optionalMark ?? (e == null ? void 0 : e.optionalMark.value) ?? ""
|
|
121
|
+
), T = I(), ee = t(() => (e == null ? void 0 : e.containerWidth.value) ?? 0), E = t(() => ({
|
|
122
|
+
label: Ce(l.labelCol ?? (e == null ? void 0 : e.labelCol.value), ee.value),
|
|
123
123
|
wrapper: Ce(
|
|
124
|
-
|
|
124
|
+
l.wrapperCol ?? (e == null ? void 0 : e.wrapperCol.value),
|
|
125
125
|
ee.value
|
|
126
126
|
)
|
|
127
|
-
})),
|
|
128
|
-
const
|
|
127
|
+
})), Re = t(() => {
|
|
128
|
+
const a = E.value.label, i = Math.min(
|
|
129
129
|
(e == null ? void 0 : e.columns.value) ?? 24,
|
|
130
|
-
|
|
131
|
-
), u =
|
|
130
|
+
ra(l.span, ee.value)
|
|
131
|
+
), u = S.value && w.value !== "top" && (a || E.value.wrapper);
|
|
132
132
|
return {
|
|
133
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
|
|
140
|
-
return
|
|
141
|
-
gridColumn: 1 + (
|
|
142
|
-
display:
|
|
138
|
+
}), $e = t(() => {
|
|
139
|
+
const a = E.value.label;
|
|
140
|
+
return a && w.value !== "top" ? {
|
|
141
|
+
gridColumn: 1 + (a.offset ?? 0) + " / span " + Math.max(1, a.span ?? 0),
|
|
142
|
+
display: a.span === 0 ? "none" : void 0
|
|
143
143
|
} : void 0;
|
|
144
144
|
}), Pe = t(() => {
|
|
145
|
-
if (!
|
|
146
|
-
const
|
|
145
|
+
if (!S.value) return;
|
|
146
|
+
const a = E.value.wrapper, i = E.value.label, u = Math.min(
|
|
147
147
|
23,
|
|
148
|
-
((i == null ? void 0 : i.span) ?? 0) + ((i == null ? void 0 : i.offset) ?? 0) + ((
|
|
148
|
+
((i == null ? void 0 : i.span) ?? 0) + ((i == null ? void 0 : i.offset) ?? 0) + ((a == null ? void 0 : a.offset) ?? 0)
|
|
149
149
|
);
|
|
150
|
-
return
|
|
151
|
-
gridColumn: 1 + u + " / span " + Math.max(1, Math.min((
|
|
150
|
+
return w.value !== "top" && (a || i) ? {
|
|
151
|
+
gridColumn: 1 + u + " / span " + Math.max(1, Math.min((a == null ? void 0 : a.span) ?? 24, 24 - u)),
|
|
152
152
|
paddingInlineStart: "14px",
|
|
153
153
|
boxSizing: "border-box"
|
|
154
154
|
} : void 0;
|
|
155
155
|
}), Te = t(
|
|
156
|
-
() =>
|
|
156
|
+
() => l.validateTrigger ?? (e == null ? void 0 : e.validateTrigger.value) ?? ["change", "blur"]
|
|
157
157
|
), pe = t(
|
|
158
|
-
() =>
|
|
158
|
+
() => l.help !== void 0 || !!(v.value || y.value || O.help || O.feedback)
|
|
159
159
|
), fe = t(
|
|
160
|
-
() =>
|
|
160
|
+
() => k.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
|
+
l.hint || O.hint ? Z : void 0
|
|
165
165
|
].filter(Boolean).join(" ") || void 0
|
|
166
|
-
), le =
|
|
167
|
-
|
|
168
|
-
id: t(() =>
|
|
166
|
+
), le = I(0);
|
|
167
|
+
Oe(da, {
|
|
168
|
+
id: t(() => l.autoLink ? f.value : ""),
|
|
169
169
|
label: _,
|
|
170
170
|
error: v,
|
|
171
171
|
errorId: Y,
|
|
172
172
|
describedBy: ae,
|
|
173
173
|
required: A,
|
|
174
|
-
invalid:
|
|
175
|
-
status:
|
|
174
|
+
invalid: k,
|
|
175
|
+
status: n,
|
|
176
176
|
disabled: U,
|
|
177
|
-
size:
|
|
178
|
-
validate:
|
|
177
|
+
size: $,
|
|
178
|
+
validate: B,
|
|
179
179
|
deferChangeValidation() {
|
|
180
180
|
le.value++;
|
|
181
|
-
let
|
|
181
|
+
let a = !1;
|
|
182
182
|
return () => {
|
|
183
|
-
|
|
183
|
+
a || le.value--, a = !0;
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
-
async function
|
|
187
|
+
async function B(a) {
|
|
188
188
|
var i;
|
|
189
|
-
return e != null && e.resetting.value || U.value || !o.value ||
|
|
189
|
+
return e != null && e.resetting.value || U.value || !o.value || a === "blur" && ((i = e == null ? void 0 : e.suppressAutoBlur) != null && i.value) ? !0 : await (e == null ? void 0 : e.validateField(o.value, a)) ?? !0;
|
|
190
190
|
}
|
|
191
191
|
function te() {
|
|
192
|
-
var
|
|
193
|
-
return (
|
|
192
|
+
var a, i;
|
|
193
|
+
return (l.for ? document.getElementById(l.for) : null) || ((a = z.value) == null ? void 0 : a.querySelector(
|
|
194
194
|
'[data-hys-ui-field-managed][role="tree"]'
|
|
195
|
-
)) || ((i =
|
|
195
|
+
)) || ((i = z.value) == null ? void 0 : i.querySelector(
|
|
196
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"]'
|
|
197
197
|
));
|
|
198
198
|
}
|
|
199
199
|
function ie() {
|
|
200
|
-
|
|
200
|
+
va(te());
|
|
201
201
|
}
|
|
202
|
-
function Ee(
|
|
202
|
+
function Ee(a) {
|
|
203
203
|
const i = te();
|
|
204
|
-
i && !i.matches("input,button,textarea,select") && (
|
|
204
|
+
i && !i.matches("input,button,textarea,select") && (a.preventDefault(), ie());
|
|
205
205
|
}
|
|
206
206
|
function ue() {
|
|
207
|
-
var j, J
|
|
208
|
-
if (!
|
|
209
|
-
const
|
|
210
|
-
...((
|
|
207
|
+
var N, j, J;
|
|
208
|
+
if (!l.autoLink) return;
|
|
209
|
+
const a = [
|
|
210
|
+
...((N = z.value) == null ? void 0 : N.querySelectorAll(
|
|
211
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"]'
|
|
212
212
|
)) ?? []
|
|
213
213
|
].filter(
|
|
214
|
-
(
|
|
215
|
-
), i =
|
|
216
|
-
if (
|
|
217
|
-
|
|
214
|
+
(p) => p.closest(".hys-ui-ent-field") === C.value && !p.closest("[data-hys-ui-form-internal]") && (!p.closest('[data-hys-ui-field-managed][role="tree"]') || p.matches('[data-hys-ui-field-managed][role="tree"]')) && (!p.closest('[role="radiogroup"]') || p.matches('[role="radiogroup"]'))
|
|
215
|
+
), i = l.group ?? (a.length > 1 || !!((j = z.value) != null && j.querySelector(".hys-ui-ent-field")));
|
|
216
|
+
if (g.value !== i && (g.value = i, f.value = i ? "" : l.for || b), i) {
|
|
217
|
+
f.value && (f.value = "");
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
220
|
const u = te();
|
|
221
|
-
if (!u || (
|
|
222
|
-
u.setAttribute("aria-invalid", String(
|
|
223
|
-
const
|
|
221
|
+
if (!u || (l.for ? f.value = l.for : u.id ? f.value = u.id : u.id = f.value, u.hasAttribute("data-hys-ui-field-managed"))) return;
|
|
222
|
+
u.setAttribute("aria-invalid", String(k.value)), A.value ? u.setAttribute("aria-required", "true") : u.removeAttribute("aria-required");
|
|
223
|
+
const d = new Set(
|
|
224
224
|
(u.getAttribute("aria-describedby") || "").split(" ").filter(Boolean)
|
|
225
225
|
);
|
|
226
|
-
|
|
226
|
+
d.delete(Y), d.delete(Z), d.delete(de), d.delete(b + "-feedback"), (J = ae.value) == null || J.split(" ").forEach((p) => d.add(p)), d.size ? u.setAttribute("aria-describedby", [...d].join(" ")) : u.removeAttribute("aria-describedby");
|
|
227
227
|
}
|
|
228
|
-
function He(
|
|
229
|
-
var
|
|
230
|
-
|
|
228
|
+
function He(a) {
|
|
229
|
+
var d, N, j;
|
|
230
|
+
const i = a.target;
|
|
231
|
+
if (i.closest(".hys-ui-ent-field") !== C.value || i.closest('[data-hys-ui-validate-event="off"]'))
|
|
231
232
|
return;
|
|
232
|
-
const
|
|
233
|
-
if (!(
|
|
234
|
-
if (
|
|
235
|
-
for (const J of ((
|
|
233
|
+
const u = a.relatedTarget;
|
|
234
|
+
if (!(u && ((d = C.value) != null && d.contains(u)))) {
|
|
235
|
+
if (u)
|
|
236
|
+
for (const J of ((N = C.value) == null ? void 0 : N.querySelectorAll(
|
|
236
237
|
"[aria-controls]"
|
|
237
238
|
)) || []) {
|
|
238
|
-
const
|
|
239
|
-
if (
|
|
239
|
+
const p = (j = document.getElementById(J.getAttribute("aria-controls") || "")) == null ? void 0 : j.closest("[data-hys-ui]");
|
|
240
|
+
if (p != null && p.contains(u)) return;
|
|
240
241
|
}
|
|
241
|
-
|
|
242
|
+
B("blur");
|
|
242
243
|
}
|
|
243
244
|
}
|
|
244
|
-
|
|
245
|
+
function De(a) {
|
|
246
|
+
const i = a.target;
|
|
247
|
+
!(e != null && e.model.value) && i.closest(".hys-ui-ent-field") === C.value && !i.closest('[data-hys-ui-validate-event="off"]') && B("change");
|
|
248
|
+
}
|
|
249
|
+
const H = {
|
|
245
250
|
path: o,
|
|
246
|
-
element:
|
|
251
|
+
element: C,
|
|
247
252
|
rules: ve,
|
|
248
253
|
trigger: Te,
|
|
249
|
-
dependencies: t(() =>
|
|
254
|
+
dependencies: t(() => l.dependencies ?? []),
|
|
250
255
|
label: _,
|
|
251
256
|
validateFirst: t(
|
|
252
|
-
() =>
|
|
257
|
+
() => l.validateFirst ?? (e == null ? void 0 : e.validateFirst.value) ?? !0
|
|
253
258
|
),
|
|
254
|
-
preserve: t(() =>
|
|
255
|
-
validate:
|
|
259
|
+
preserve: t(() => l.preserve ?? (e == null ? void 0 : e.preserve.value) ?? !0),
|
|
260
|
+
validate: B,
|
|
256
261
|
clearValidate: () => {
|
|
257
262
|
o.value && (e == null || e.clearValidate([o.value]));
|
|
258
263
|
},
|
|
259
264
|
resetField: () => {
|
|
260
265
|
o.value && (e == null || e.resetFields([o.value]));
|
|
261
266
|
},
|
|
262
|
-
setInitialValue: (
|
|
263
|
-
o.value && (e == null || e.setFieldInitialValue(o.value,
|
|
267
|
+
setInitialValue: (a) => {
|
|
268
|
+
o.value && (e == null || e.setFieldInitialValue(o.value, a));
|
|
264
269
|
},
|
|
265
270
|
focus: ie
|
|
266
271
|
};
|
|
267
|
-
let
|
|
268
|
-
|
|
272
|
+
let x, ge = Se(l.rules);
|
|
273
|
+
V(
|
|
269
274
|
o,
|
|
270
|
-
(
|
|
271
|
-
|
|
275
|
+
(a) => {
|
|
276
|
+
x == null || x(), x = a ? e == null ? void 0 : e.register(H) : void 0;
|
|
272
277
|
},
|
|
273
278
|
{ immediate: !0, flush: "sync" }
|
|
274
|
-
),
|
|
279
|
+
), V(
|
|
275
280
|
() => [
|
|
276
281
|
o.value,
|
|
277
282
|
Fe(e == null ? void 0 : e.model.value, o.value),
|
|
278
|
-
...(
|
|
279
|
-
(
|
|
283
|
+
...(l.dependencies ?? []).map(
|
|
284
|
+
(a) => Fe(e == null ? void 0 : e.model.value, a)
|
|
280
285
|
)
|
|
281
286
|
],
|
|
282
|
-
(
|
|
283
|
-
e != null && e.model.value && !e.resetting.value && !le.value &&
|
|
287
|
+
(a, i) => {
|
|
288
|
+
e != null && e.model.value && !e.resetting.value && !le.value && a[0] === (i == null ? void 0 : i[0]) && B("change");
|
|
284
289
|
},
|
|
285
290
|
{ deep: !0 }
|
|
286
|
-
),
|
|
287
|
-
() =>
|
|
291
|
+
), V(
|
|
292
|
+
() => l.rules,
|
|
288
293
|
() => {
|
|
289
|
-
|
|
294
|
+
ha(l.rules, ge) || (ge = Se(l.rules), e && !e.resetting.value && (e.validateOnRuleChange.value ? B() : o.value && e.cancelField(o.value)));
|
|
290
295
|
},
|
|
291
296
|
{ deep: !0 }
|
|
292
|
-
),
|
|
293
|
-
() =>
|
|
297
|
+
), V(
|
|
298
|
+
() => l.for,
|
|
294
299
|
() => {
|
|
295
|
-
|
|
300
|
+
f.value = l.for || b, ke(ue);
|
|
296
301
|
}
|
|
297
|
-
),
|
|
298
|
-
|
|
302
|
+
), V(U, (a) => {
|
|
303
|
+
a && H.clearValidate();
|
|
299
304
|
});
|
|
300
|
-
let L,
|
|
305
|
+
let L, D = !0;
|
|
301
306
|
function oe() {
|
|
302
|
-
var
|
|
303
|
-
|
|
307
|
+
var a;
|
|
308
|
+
D && (e == null || e.setLabelWidth(
|
|
304
309
|
b,
|
|
305
|
-
|
|
310
|
+
S.value && w.value !== "top" && P.value === "auto" ? Math.ceil(((a = T.value) == null ? void 0 : a.getBoundingClientRect().width) ?? 0) : void 0
|
|
306
311
|
));
|
|
307
312
|
}
|
|
308
313
|
function re() {
|
|
309
314
|
L == null || L.disconnect(), L = void 0, e == null || e.setLabelWidth(b);
|
|
310
315
|
}
|
|
311
316
|
function se() {
|
|
312
|
-
re(), !(!
|
|
317
|
+
re(), !(!D || !C.value) && (oe(), typeof ResizeObserver < "u" && T.value && (L = new ResizeObserver(oe), L.observe(T.value)));
|
|
313
318
|
}
|
|
314
|
-
return
|
|
315
|
-
[
|
|
319
|
+
return V(
|
|
320
|
+
[S, w, P, T, $],
|
|
316
321
|
() => void ke(se)
|
|
317
|
-
),
|
|
322
|
+
), Ue(() => {
|
|
318
323
|
ue(), se();
|
|
319
|
-
}), Ue(() => {
|
|
320
|
-
ue(), oe();
|
|
321
324
|
}), Je(() => {
|
|
322
|
-
|
|
325
|
+
ue(), oe();
|
|
323
326
|
}), Qe(() => {
|
|
324
|
-
|
|
327
|
+
D = !0, se();
|
|
325
328
|
}), Xe(() => {
|
|
326
|
-
|
|
329
|
+
D = !1, re();
|
|
330
|
+
}), Ye(() => {
|
|
331
|
+
D = !1, re(), x == null || x();
|
|
327
332
|
}), Be({
|
|
328
|
-
validate:
|
|
329
|
-
clearValidate:
|
|
330
|
-
resetField:
|
|
331
|
-
setInitialValue:
|
|
333
|
+
validate: B,
|
|
334
|
+
clearValidate: H.clearValidate,
|
|
335
|
+
resetField: H.resetField,
|
|
336
|
+
setInitialValue: H.setInitialValue,
|
|
332
337
|
focus: ie,
|
|
333
338
|
path: o,
|
|
334
|
-
status:
|
|
339
|
+
status: n,
|
|
335
340
|
error: v,
|
|
336
341
|
warning: y,
|
|
337
|
-
size:
|
|
342
|
+
size: $,
|
|
338
343
|
validateMessage: v,
|
|
339
|
-
validateState:
|
|
340
|
-
}), (
|
|
344
|
+
validateState: n
|
|
345
|
+
}), (a, i) => (r(), s("div", Ze({
|
|
341
346
|
ref_key: "root",
|
|
342
|
-
ref:
|
|
343
|
-
},
|
|
347
|
+
ref: C
|
|
348
|
+
}, q(xe), {
|
|
344
349
|
class: ["hys-ui-ent-field", [
|
|
345
|
-
"hys-ui-form-item-" +
|
|
346
|
-
"hys-ui-form-item-" +
|
|
350
|
+
"hys-ui-form-item-" + w.value,
|
|
351
|
+
"hys-ui-form-item-" + $.value,
|
|
347
352
|
"hys-ui-form-label-align-" + Ae.value,
|
|
348
353
|
{
|
|
349
354
|
"hys-ui-form-item-no-style": h.noStyle,
|
|
350
|
-
"hys-ui-form-item-grid":
|
|
355
|
+
"hys-ui-form-item-grid": S.value && w.value !== "top",
|
|
351
356
|
"hys-ui-form-label-nowrap": !Le.value,
|
|
352
|
-
"hys-ui-form-label-auto":
|
|
357
|
+
"hys-ui-form-label-auto": P.value === "auto"
|
|
353
358
|
}
|
|
354
359
|
]],
|
|
355
|
-
style:
|
|
360
|
+
style: Re.value,
|
|
356
361
|
"data-field-path": o.value || void 0,
|
|
357
|
-
"data-validation-status":
|
|
358
|
-
"aria-busy":
|
|
359
|
-
onChange:
|
|
360
|
-
var s;
|
|
361
|
-
return !((s = C(e)) != null && s.model.value) && x("change");
|
|
362
|
-
}),
|
|
362
|
+
"data-validation-status": n.value,
|
|
363
|
+
"aria-busy": n.value === "validating" || void 0,
|
|
364
|
+
onChange: De,
|
|
363
365
|
onFocusout: He
|
|
364
366
|
}), [
|
|
365
|
-
|
|
367
|
+
S.value ? (r(), G(_e(g.value ? "div" : "label"), {
|
|
366
368
|
key: 0,
|
|
367
369
|
class: "hys-ui-form-item-label",
|
|
368
|
-
id:
|
|
369
|
-
for: h.autoLink && !
|
|
370
|
-
style: we(
|
|
371
|
-
onClick: i[0] || (i[0] = (u) => h.autoLink && !
|
|
370
|
+
id: q(b) + "-label",
|
|
371
|
+
for: h.autoLink && !g.value ? f.value : void 0,
|
|
372
|
+
style: we($e.value),
|
|
373
|
+
onClick: i[0] || (i[0] = (u) => h.autoLink && !g.value && Ee(u))
|
|
372
374
|
}, {
|
|
373
375
|
default: ne(() => [
|
|
374
376
|
Q("span", {
|
|
375
377
|
ref_key: "labelContent",
|
|
376
|
-
ref:
|
|
378
|
+
ref: T,
|
|
377
379
|
class: "hys-ui-form-label-content"
|
|
378
380
|
}, [
|
|
379
|
-
A.value && he.value && be.value === "left" ? (r(),
|
|
380
|
-
Q("span",
|
|
381
|
-
|
|
381
|
+
A.value && he.value && be.value === "left" ? (r(), s("span", ya, "*")) : c("", !0),
|
|
382
|
+
Q("span", pa, [
|
|
383
|
+
m(a.$slots, "label", {
|
|
382
384
|
required: A.value,
|
|
383
|
-
status:
|
|
385
|
+
status: n.value
|
|
384
386
|
}, () => [
|
|
385
387
|
M(F(_.value), 1)
|
|
386
388
|
], !0),
|
|
387
389
|
M(F(Ie.value), 1),
|
|
388
|
-
Ve.value &&
|
|
390
|
+
Ve.value && w.value !== "top" ? (r(), s("span", fa, ":")) : c("", !0)
|
|
389
391
|
]),
|
|
390
|
-
A.value && he.value && be.value === "right" ? (r(),
|
|
391
|
-
!A.value && ye.value ? (r(),
|
|
392
|
-
h.tooltip ||
|
|
392
|
+
A.value && he.value && be.value === "right" ? (r(), s("span", ga, "*")) : c("", !0),
|
|
393
|
+
!A.value && ye.value ? (r(), s("span", ka, F(ye.value), 1)) : c("", !0),
|
|
394
|
+
h.tooltip || a.$slots.tooltip ? (r(), G(oa, {
|
|
393
395
|
key: 3,
|
|
394
396
|
text: h.tooltip
|
|
395
|
-
},
|
|
397
|
+
}, ea({
|
|
396
398
|
default: ne(() => [
|
|
397
|
-
|
|
399
|
+
aa(q(la), {
|
|
398
400
|
size: 14,
|
|
399
401
|
"aria-label": "字段说明"
|
|
400
402
|
})
|
|
401
403
|
]),
|
|
402
404
|
_: 2
|
|
403
405
|
}, [
|
|
404
|
-
|
|
406
|
+
a.$slots.tooltip ? {
|
|
405
407
|
name: "content",
|
|
406
408
|
fn: ne(() => [
|
|
407
|
-
|
|
409
|
+
m(a.$slots, "tooltip", {}, void 0, !0)
|
|
408
410
|
]),
|
|
409
411
|
key: "0"
|
|
410
412
|
} : void 0
|
|
@@ -416,115 +418,115 @@ const ha = ["data-field-path", "data-validation-status", "aria-busy"], ba = {
|
|
|
416
418
|
Q("div", {
|
|
417
419
|
class: X(["hys-ui-form-item-body", { "hys-ui-form-inline-feedback": ze.value }]),
|
|
418
420
|
style: we(Pe.value),
|
|
419
|
-
role:
|
|
420
|
-
"aria-labelledby":
|
|
421
|
-
"aria-describedby":
|
|
422
|
-
"aria-invalid":
|
|
421
|
+
role: g.value ? "group" : void 0,
|
|
422
|
+
"aria-labelledby": g.value && S.value ? q(b) + "-label" : void 0,
|
|
423
|
+
"aria-describedby": g.value ? ae.value : void 0,
|
|
424
|
+
"aria-invalid": g.value ? k.value : void 0
|
|
423
425
|
}, [
|
|
424
426
|
Q("div", {
|
|
425
427
|
ref_key: "control",
|
|
426
|
-
ref:
|
|
428
|
+
ref: z,
|
|
427
429
|
class: X(["hys-ui-form-item-control", {
|
|
428
|
-
"hys-ui-ent-invalid":
|
|
429
|
-
"hys-ui-form-item-warning":
|
|
430
|
+
"hys-ui-ent-invalid": k.value,
|
|
431
|
+
"hys-ui-form-item-warning": n.value === "warning"
|
|
430
432
|
}])
|
|
431
433
|
}, [
|
|
432
|
-
|
|
433
|
-
id:
|
|
434
|
-
invalid:
|
|
434
|
+
m(a.$slots, "default", {
|
|
435
|
+
id: f.value,
|
|
436
|
+
invalid: k.value,
|
|
435
437
|
error: v.value,
|
|
436
438
|
warning: y.value,
|
|
437
|
-
errors:
|
|
439
|
+
errors: W.value,
|
|
438
440
|
warnings: R.value,
|
|
439
|
-
status:
|
|
441
|
+
status: n.value,
|
|
440
442
|
disabled: U.value,
|
|
441
|
-
size:
|
|
443
|
+
size: $.value
|
|
442
444
|
}, void 0, !0),
|
|
443
|
-
We.value &&
|
|
445
|
+
We.value && n.value !== "idle" ? (r(), s("span", {
|
|
444
446
|
key: 0,
|
|
445
|
-
class: X(["hys-ui-form-feedback-icon", "hys-ui-form-feedback-" +
|
|
447
|
+
class: X(["hys-ui-form-feedback-icon", "hys-ui-form-feedback-" + n.value]),
|
|
446
448
|
"aria-hidden": "true"
|
|
447
449
|
}, [
|
|
448
|
-
|
|
450
|
+
n.value === "validating" ? (r(), G(q(ta), {
|
|
449
451
|
key: 0,
|
|
450
452
|
size: 15,
|
|
451
453
|
class: "hys-ui-icon-spin"
|
|
452
|
-
})) :
|
|
454
|
+
})) : n.value === "success" ? (r(), G(q(ia), {
|
|
453
455
|
key: 1,
|
|
454
456
|
size: 15
|
|
455
|
-
})) : (r(), G(
|
|
457
|
+
})) : (r(), G(q(ua), {
|
|
456
458
|
key: 2,
|
|
457
459
|
size: 15
|
|
458
460
|
}))
|
|
459
461
|
], 2)) : c("", !0)
|
|
460
462
|
], 2),
|
|
461
|
-
ce.value && pe.value ? (r(),
|
|
463
|
+
ce.value && pe.value ? (r(), s("div", {
|
|
462
464
|
key: 0,
|
|
463
465
|
id: fe.value,
|
|
464
|
-
role:
|
|
466
|
+
role: k.value ? "alert" : y.value ? "status" : void 0,
|
|
465
467
|
class: X(["hys-ui-form-item-feedback", {
|
|
466
|
-
"hys-ui-ent-error":
|
|
467
|
-
"hys-ui-form-warning": !
|
|
468
|
+
"hys-ui-ent-error": k.value,
|
|
469
|
+
"hys-ui-form-warning": !k.value && n.value === "warning"
|
|
468
470
|
}])
|
|
469
471
|
}, [
|
|
470
|
-
|
|
472
|
+
m(a.$slots, "help", {
|
|
471
473
|
error: v.value,
|
|
472
474
|
warning: y.value,
|
|
473
|
-
errors:
|
|
475
|
+
errors: W.value,
|
|
474
476
|
warnings: R.value,
|
|
475
|
-
status:
|
|
477
|
+
status: n.value
|
|
476
478
|
}, () => [
|
|
477
|
-
h.help !== void 0 ? (r(),
|
|
479
|
+
h.help !== void 0 ? (r(), s(K, { key: 0 }, [
|
|
478
480
|
M(F(h.help), 1)
|
|
479
|
-
], 64)) :
|
|
481
|
+
], 64)) : m(a.$slots, "feedback", {
|
|
480
482
|
error: v.value,
|
|
481
483
|
warning: y.value,
|
|
482
|
-
errors:
|
|
484
|
+
errors: W.value,
|
|
483
485
|
warnings: R.value,
|
|
484
|
-
status:
|
|
486
|
+
status: n.value
|
|
485
487
|
}, () => [
|
|
486
|
-
v.value ? (r(),
|
|
487
|
-
|
|
488
|
+
v.value ? (r(), s("small", Ca, [
|
|
489
|
+
m(a.$slots, "error", {
|
|
488
490
|
error: v.value,
|
|
489
|
-
errors:
|
|
491
|
+
errors: W.value
|
|
490
492
|
}, () => [
|
|
491
|
-
(r(!0),
|
|
492
|
-
|
|
493
|
+
(r(!0), s(K, null, me(W.value, (u, d) => (r(), s(K, { key: d }, [
|
|
494
|
+
d ? (r(), s("br", Fa)) : c("", !0),
|
|
493
495
|
M(F(u), 1)
|
|
494
496
|
], 64))), 128))
|
|
495
497
|
], !0)
|
|
496
|
-
])) : y.value ? (r(),
|
|
497
|
-
|
|
498
|
+
])) : y.value ? (r(), s("small", Sa, [
|
|
499
|
+
m(a.$slots, "warning", {
|
|
498
500
|
warning: y.value,
|
|
499
501
|
warnings: R.value
|
|
500
502
|
}, () => [
|
|
501
|
-
(r(!0),
|
|
502
|
-
|
|
503
|
+
(r(!0), s(K, null, me(R.value, (u, d) => (r(), s(K, { key: d }, [
|
|
504
|
+
d ? (r(), s("br", Ba)) : c("", !0),
|
|
503
505
|
M(F(u), 1)
|
|
504
506
|
], 64))), 128))
|
|
505
507
|
], !0)
|
|
506
508
|
])) : c("", !0)
|
|
507
509
|
], !0, 1)
|
|
508
510
|
], !0)
|
|
509
|
-
], 10,
|
|
510
|
-
h.hint ||
|
|
511
|
+
], 10, ma)) : c("", !0),
|
|
512
|
+
h.hint || a.$slots.hint ? (r(), s("small", {
|
|
511
513
|
key: 1,
|
|
512
514
|
id: Z,
|
|
513
515
|
class: "hys-ui-form-item-hint"
|
|
514
516
|
}, [
|
|
515
|
-
|
|
517
|
+
m(a.$slots, "hint", {}, () => [
|
|
516
518
|
M(F(h.hint), 1)
|
|
517
519
|
], !0)
|
|
518
520
|
])) : c("", !0),
|
|
519
|
-
h.extra ||
|
|
520
|
-
|
|
521
|
+
h.extra || a.$slots.extra ? (r(), s("div", xa, [
|
|
522
|
+
m(a.$slots, "extra", { status: n.value }, () => [
|
|
521
523
|
M(F(h.extra), 1)
|
|
522
524
|
], !0)
|
|
523
525
|
])) : c("", !0)
|
|
524
|
-
], 14,
|
|
525
|
-
], 16,
|
|
526
|
+
], 14, wa)
|
|
527
|
+
], 16, ba));
|
|
526
528
|
}
|
|
527
529
|
});
|
|
528
530
|
export {
|
|
529
|
-
|
|
531
|
+
Wa as default
|
|
530
532
|
};
|