hys-ui 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +111 -0
- package/README.md +3 -1
- package/dist/components/HysAccordion/HysAccordion.vue.js +1 -1
- package/dist/components/HysAccordion/HysAccordion2.vue.js +181 -47
- 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 -27
- 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 -92
- package/dist/components/HysCalendar/HysCalendar2.vue.js +803 -2
- package/dist/components/HysCard/HysCard.vue.js +2 -2
- package/dist/components/HysCard/HysCard2.vue.js +175 -42
- package/dist/components/HysCascader/HysCascader.vue.js +5 -194
- 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 +3 -3
- package/dist/components/HysCheckbox/HysCheckbox2.vue.js +180 -65
- 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/HysDataGrid/HysDataGrid.vue.js +1 -1
- package/dist/components/HysDataGrid/HysDataGrid2.vue.js +399 -392
- 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/HysFileManager/HysFileManager.vue.js +3 -3
- package/dist/components/HysFileManager/HysFileManager2.vue.js +43 -42
- package/dist/components/HysForm/HysForm.vue.js +3 -3
- package/dist/components/HysForm/HysForm2.vue.js +578 -92
- package/dist/components/HysFormItem/HysFormItem.vue.js +5 -85
- package/dist/components/HysFormItem/HysFormItem2.vue.js +521 -2
- package/dist/components/HysGantt/HysGantt.vue.js +1 -1
- package/dist/components/HysGantt/HysGantt2.vue.js +1369 -272
- package/dist/components/HysInput/HysInput.vue.js +2 -2
- package/dist/components/HysInput/HysInput2.vue.js +467 -120
- package/dist/components/HysMention/HysMention.vue.js +2 -2
- package/dist/components/HysMention/HysMention2.vue.js +89 -88
- package/dist/components/HysNumberInput/HysNumberInput.vue.js +2 -2
- package/dist/components/HysNumberInput/HysNumberInput2.vue.js +561 -79
- package/dist/components/HysOrgTree/HysOrgTree.vue.js +29 -26
- package/dist/components/HysPagination/HysPagination.vue.js +1 -1
- package/dist/components/HysPagination/HysPagination2.vue.js +2 -0
- package/dist/components/HysPermissionMatrix/HysPermissionMatrix.vue.js +2 -2
- package/dist/components/HysPermissionMatrix/HysPermissionMatrix2.vue.js +52 -51
- 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 +2 -2
- package/dist/components/HysRadioGroup/HysRadioGroup2.vue.js +190 -65
- package/dist/components/HysRating/HysRating.vue.js +1 -1
- package/dist/components/HysRating/HysRating2.vue.js +288 -68
- package/dist/components/HysRichTextEditor/HysRichTextEditor.vue.js +1 -1
- package/dist/components/HysRichTextEditor/HysRichTextEditor2.vue.js +70 -69
- package/dist/components/HysSearch/HysSearch.vue.js +37 -36
- package/dist/components/HysSegmented/HysSegmented.vue.js +5 -63
- 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 -185
- 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/HysSteps/HysSteps.vue.js +1 -1
- package/dist/components/HysSteps/HysSteps2.vue.js +110 -36
- package/dist/components/HysSwitch/HysSwitch.vue.js +2 -2
- package/dist/components/HysSwitch/HysSwitch2.vue.js +232 -50
- package/dist/components/HysTable/HysTable.vue.js +2 -2
- package/dist/components/HysTable/HysTable2.vue.js +1473 -88
- 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 -68
- package/dist/components/HysTagInput/HysTagInput.vue.js +43 -42
- package/dist/components/HysTextarea/HysTextarea.vue.js +138 -77
- package/dist/components/HysTransfer/HysTransfer.vue.js +5 -223
- 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 -302
- package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +5 -136
- 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 +77 -76
- 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 +92 -7
- 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/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/useFloating.js +97 -51
- package/dist/composables/useGanttDependencies.js +306 -0
- package/dist/composables/useGanttHistory.js +157 -0
- package/dist/composables/useGanttLabelResize.js +100 -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/index.js +149 -139
- 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 -31
- package/dist/types/components/HysCard/HysCard.vue.d.ts +55 -7
- 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 +50 -39
- 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/HysFileManager/HysFileManager.vue.d.ts +2 -2
- 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 +82 -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 -35
- package/dist/types/components/HysOrgTree/HysOrgTree.vue.d.ts +1 -0
- package/dist/types/components/HysPagination/HysPagination.vue.d.ts +1 -1
- package/dist/types/components/HysPermissionMatrix/HysPermissionMatrix.vue.d.ts +2 -2
- 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 +34 -12
- package/dist/types/components/HysRating/HysRating.vue.d.ts +85 -5
- 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 -20
- 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 +1 -1
- package/dist/types/components/HysSteps/HysSteps.vue.d.ts +64 -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 +3 -3
- package/dist/types/components/HysTour/HysTour.vue.d.ts +2 -2
- package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +55 -40
- 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 +133 -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/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/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 +33 -7
- package/package.json +2 -1
|
@@ -1,85 +1,305 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Star as
|
|
3
|
-
import { useHysRootAttrs as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
1
|
+
import { defineComponent as ue, ref as U, useAttrs as ne, inject as se, useId as de, computed as s, watch as ce, onMounted as ve, onDeactivated as he, onBeforeUnmount as fe, openBlock as h, createElementBlock as g, mergeProps as me, unref as r, Fragment as ye, renderList as be, withModifiers as ge, normalizeClass as X, createElementVNode as M, normalizeStyle as N, renderSlot as D, toDisplayString as S, createBlock as G, resolveDynamicComponent as J, toRaw as R, createTextVNode as we, createCommentVNode as E } from "vue";
|
|
2
|
+
import { Star as B } from "lucide-vue-next";
|
|
3
|
+
import { useHysRootAttrs as xe } from "../../config.js";
|
|
4
|
+
import { fieldKey as ke, useHysControlState as Ce } from "../../composables/formContext.js";
|
|
5
|
+
import { useChoiceModel as Ve, useChoiceNativeReset as Me } from "../../composables/choiceModel.js";
|
|
6
|
+
import { ratingLevel as O } from "../../composables/rating.js";
|
|
7
|
+
const Se = ["id", "data-status", "tabindex", "aria-label", "aria-valuenow", "aria-valuemax", "aria-valuetext", "aria-readonly", "aria-disabled", "aria-required", "aria-invalid", "aria-describedby"], Be = ["disabled", "aria-disabled", "aria-label", "title", "onMousemove", "onClick"], Te = {
|
|
8
|
+
class: "hys-ui-rating-figure",
|
|
9
|
+
"aria-hidden": "true"
|
|
10
|
+
}, pe = { key: 0 }, ze = { key: 0 }, Ae = ["name", "form", "value", "disabled"], He = ["id"], Fe = /* @__PURE__ */ ue({
|
|
11
|
+
inheritAttrs: !1,
|
|
11
12
|
__name: "HysRating",
|
|
12
13
|
props: {
|
|
13
14
|
modelValue: {},
|
|
14
|
-
|
|
15
|
+
defaultValue: { default: 0 },
|
|
16
|
+
max: {},
|
|
17
|
+
count: {},
|
|
18
|
+
size: {},
|
|
19
|
+
iconSize: {},
|
|
15
20
|
readonly: { type: Boolean },
|
|
16
21
|
disabled: { type: Boolean },
|
|
17
22
|
allowClear: { type: Boolean, default: !0 },
|
|
23
|
+
clearable: { type: Boolean, default: void 0 },
|
|
18
24
|
allowHalf: { type: Boolean },
|
|
19
25
|
showScore: { type: Boolean },
|
|
20
|
-
|
|
26
|
+
showText: { type: Boolean },
|
|
27
|
+
texts: {},
|
|
28
|
+
scoreTemplate: { default: "{value}" },
|
|
29
|
+
formatScore: {},
|
|
30
|
+
textColor: {},
|
|
31
|
+
color: {},
|
|
32
|
+
colors: {},
|
|
33
|
+
lowThreshold: { default: 2 },
|
|
34
|
+
highThreshold: { default: 4 },
|
|
35
|
+
voidColor: {},
|
|
36
|
+
disabledVoidColor: {},
|
|
37
|
+
icon: {},
|
|
38
|
+
icons: {},
|
|
39
|
+
voidIcon: {},
|
|
40
|
+
disabledVoidIcon: {},
|
|
41
|
+
character: {},
|
|
42
|
+
tooltips: {},
|
|
43
|
+
hoverValue: {},
|
|
44
|
+
keyboard: { type: Boolean, default: !0 },
|
|
45
|
+
autofocus: { type: Boolean },
|
|
46
|
+
focusable: { type: Boolean, default: !0 },
|
|
47
|
+
ariaLabel: {},
|
|
48
|
+
formatValueText: {},
|
|
49
|
+
name: {},
|
|
50
|
+
form: {},
|
|
51
|
+
status: {},
|
|
52
|
+
error: {}
|
|
21
53
|
},
|
|
22
|
-
emits: ["update:modelValue", "change"],
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
54
|
+
emits: ["update:modelValue", "change", "clear", "update:hoverValue", "hoverChange", "focus", "blur", "keydown"],
|
|
55
|
+
setup(l, { expose: Q, emit: W }) {
|
|
56
|
+
const a = l, b = W, d = U(), k = ne(), Y = xe(), f = se(ke, void 0), F = de(), { disabled: i, size: Z, label: _ } = Ce(a), T = U(null), c = s(() => {
|
|
57
|
+
const e = a.max ?? a.count ?? 5;
|
|
58
|
+
return Number.isFinite(e) ? Math.min(1e3, Math.max(0, Math.floor(e))) : 5;
|
|
59
|
+
}), C = (e) => typeof e == "number" && Number.isFinite(e) ? Math.max(0, Math.min(c.value, e)) : 0, w = Ve(a, () => a.defaultValue), m = s(() => C(w.current.value)), p = s(
|
|
60
|
+
() => a.hoverValue === void 0 ? T.value : a.hoverValue
|
|
61
|
+
), u = s(
|
|
62
|
+
() => i.value || a.readonly || p.value === null ? m.value : C(p.value)
|
|
63
|
+
), z = s(() => a.clearable ?? a.allowClear), $ = s(
|
|
64
|
+
() => {
|
|
65
|
+
var e, t;
|
|
66
|
+
return a.error || (e = f == null ? void 0 : f.invalid) != null && e.value ? "error" : a.status ?? ((t = f == null ? void 0 : f.status) == null ? void 0 : t.value);
|
|
67
|
+
}
|
|
68
|
+
), ee = s(
|
|
69
|
+
() => a.color ?? O(
|
|
70
|
+
a.colors,
|
|
71
|
+
u.value,
|
|
72
|
+
a.lowThreshold,
|
|
73
|
+
a.highThreshold,
|
|
74
|
+
"var(--hys-ui-rating-fill-color,#f5ad36)"
|
|
75
|
+
)
|
|
76
|
+
), q = s(
|
|
77
|
+
() => O(
|
|
78
|
+
a.icons,
|
|
79
|
+
u.value,
|
|
80
|
+
a.lowThreshold,
|
|
81
|
+
a.highThreshold,
|
|
82
|
+
a.icon ?? B
|
|
83
|
+
)
|
|
84
|
+
), ae = s(
|
|
85
|
+
() => i.value ? a.disabledVoidIcon ?? a.voidIcon ?? a.icon ?? B : a.voidIcon ?? a.icon ?? B
|
|
86
|
+
), te = s(() => {
|
|
87
|
+
try {
|
|
88
|
+
return a.formatScore ? a.formatScore(u.value) : a.scoreTemplate.replaceAll("{value}", String(u.value));
|
|
89
|
+
} catch {
|
|
90
|
+
return String(u.value);
|
|
91
|
+
}
|
|
92
|
+
}), P = s(
|
|
93
|
+
() => {
|
|
94
|
+
var e;
|
|
95
|
+
return a.showScore ? te.value : a.showText ? ((e = a.texts) == null ? void 0 : e[Math.ceil(u.value) - 1]) ?? "" : "";
|
|
96
|
+
}
|
|
97
|
+
), le = s(() => {
|
|
98
|
+
var e;
|
|
99
|
+
try {
|
|
100
|
+
return ((e = a.formatValueText) == null ? void 0 : e.call(a, m.value, c.value)) ?? m.value + " / " + c.value;
|
|
101
|
+
} catch {
|
|
102
|
+
return m.value + " / " + c.value;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
function A(e) {
|
|
106
|
+
if (e !== null && (i.value || a.readonly || !w.isLive()))
|
|
107
|
+
return;
|
|
108
|
+
const t = e === null ? null : C(e);
|
|
109
|
+
T.value === t && (a.hoverValue === void 0 || a.hoverValue === t) || (T.value = t, b("update:hoverValue", t), b("hoverChange", t));
|
|
29
110
|
}
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
return t.allowHalf && a.clientX - l.left < l.width / 2 ? o - 0.5 : o;
|
|
111
|
+
function y() {
|
|
112
|
+
A(null);
|
|
33
113
|
}
|
|
34
|
-
function
|
|
35
|
-
if (
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
|
|
114
|
+
async function V(e) {
|
|
115
|
+
if (i.value || a.readonly || !w.isLive() || !Number.isFinite(e) || !c.value)
|
|
116
|
+
return !1;
|
|
117
|
+
const t = a.allowHalf ? 0.5 : 1, n = C(Math.round(e / t) * t);
|
|
118
|
+
return w.commit(
|
|
119
|
+
n,
|
|
120
|
+
(v) => b("update:modelValue", v),
|
|
121
|
+
(v) => b("change", v),
|
|
122
|
+
!0
|
|
123
|
+
);
|
|
39
124
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
125
|
+
async function H() {
|
|
126
|
+
if (!z.value) return !1;
|
|
127
|
+
const e = await V(0);
|
|
128
|
+
return e && b("clear"), e;
|
|
129
|
+
}
|
|
130
|
+
function I(e) {
|
|
131
|
+
var t;
|
|
132
|
+
!i.value && a.focusable && ((t = d.value) == null || t.focus(e));
|
|
133
|
+
}
|
|
134
|
+
function oe() {
|
|
135
|
+
var e, t;
|
|
136
|
+
(e = d.value) != null && e.contains(document.activeElement) && ((t = document.activeElement) == null || t.blur());
|
|
137
|
+
}
|
|
138
|
+
function j(e, t) {
|
|
139
|
+
const n = e.currentTarget.getBoundingClientRect(), v = d.value && getComputedStyle(d.value).direction === "rtl", x = n.width ? (e.clientX - n.left) / n.width : 1;
|
|
140
|
+
return a.allowHalf && (v ? x > 0.5 : x < 0.5) ? t - 0.5 : t;
|
|
141
|
+
}
|
|
142
|
+
function re(e, t) {
|
|
143
|
+
if (i.value || a.readonly) return;
|
|
144
|
+
I({ preventScroll: !0 });
|
|
145
|
+
const n = j(e, t);
|
|
146
|
+
z.value && n === m.value ? H() : V(n);
|
|
147
|
+
}
|
|
148
|
+
function ie(e) {
|
|
149
|
+
if (b("keydown", e), e.defaultPrevented || !a.keyboard || i.value || a.readonly || e.target !== d.value)
|
|
150
|
+
return;
|
|
151
|
+
const t = d.value && getComputedStyle(d.value).direction === "rtl", n = e.key === "ArrowUp" || e.key === (t ? "ArrowLeft" : "ArrowRight"), v = e.key === "ArrowDown" || e.key === (t ? "ArrowRight" : "ArrowLeft");
|
|
152
|
+
n || v || e.key === "Home" || e.key === "End" ? (e.preventDefault(), y(), V(
|
|
153
|
+
e.key === "Home" ? 0 : e.key === "End" ? c.value : m.value + (n ? 1 : -1) * (a.allowHalf ? 0.5 : 1)
|
|
154
|
+
)) : z.value && (e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), y(), H());
|
|
155
|
+
}
|
|
156
|
+
return ce([i, () => a.readonly, c], y), Me(
|
|
157
|
+
d,
|
|
158
|
+
() => {
|
|
159
|
+
w.reset(), y();
|
|
160
|
+
},
|
|
161
|
+
void 0,
|
|
162
|
+
() => a.form
|
|
163
|
+
), ve(() => {
|
|
164
|
+
a.autofocus && I();
|
|
165
|
+
}), he(y), fe(y), Q({
|
|
166
|
+
element: d,
|
|
167
|
+
value: m,
|
|
168
|
+
hoverValue: p,
|
|
169
|
+
focus: I,
|
|
170
|
+
blur: oe,
|
|
171
|
+
setValue: V,
|
|
172
|
+
clear: H,
|
|
173
|
+
setCurrentValue: (e) => A(e),
|
|
174
|
+
resetCurrentValue: y
|
|
175
|
+
}), (e, t) => {
|
|
176
|
+
var n, v, x;
|
|
177
|
+
return h(), g("div", me({
|
|
178
|
+
ref_key: "root",
|
|
179
|
+
ref: d
|
|
180
|
+
}, { ...r(Y), ...r(k) }, {
|
|
181
|
+
id: r(k).id || ((n = r(f)) == null ? void 0 : n.id.value),
|
|
182
|
+
"data-hys-ui-field-managed": "",
|
|
183
|
+
class: ["hys-ui-ex-rating", [
|
|
184
|
+
"hys-ui-rating-" + r(Z),
|
|
185
|
+
{
|
|
186
|
+
"hys-ui-rating-disabled": r(i),
|
|
187
|
+
"hys-ui-rating-readonly": l.readonly
|
|
188
|
+
}
|
|
189
|
+
]],
|
|
190
|
+
"data-status": $.value,
|
|
191
|
+
style: {
|
|
192
|
+
"--hys-ui-rating-size": l.iconSize && Number.isFinite(l.iconSize) ? Math.max(8, Math.min(128, l.iconSize)) + "px" : void 0
|
|
193
|
+
},
|
|
194
|
+
role: "slider",
|
|
195
|
+
tabindex: r(i) || !l.focusable || !c.value ? -1 : 0,
|
|
196
|
+
"aria-label": l.ariaLabel || r(k)["aria-label"] || r(_) || "评分",
|
|
197
|
+
"aria-valuenow": m.value,
|
|
198
|
+
"aria-valuemin": 0,
|
|
199
|
+
"aria-valuemax": c.value,
|
|
200
|
+
"aria-valuetext": le.value,
|
|
201
|
+
"aria-readonly": l.readonly || void 0,
|
|
202
|
+
"aria-disabled": r(i) || void 0,
|
|
203
|
+
"aria-required": ((v = r(f)) == null ? void 0 : v.required.value) || void 0,
|
|
204
|
+
"aria-invalid": $.value === "error" || void 0,
|
|
205
|
+
"aria-describedby": [
|
|
206
|
+
r(k)["aria-describedby"],
|
|
207
|
+
l.error ? r(F) + "-error" : (x = r(f)) == null ? void 0 : x.describedBy.value
|
|
208
|
+
].filter(Boolean).join(" ") || void 0,
|
|
209
|
+
onKeydown: ie,
|
|
210
|
+
onMouseleave: y,
|
|
211
|
+
onFocus: t[1] || (t[1] = (o) => b("focus", o)),
|
|
212
|
+
onBlur: t[2] || (t[2] = (o) => {
|
|
213
|
+
y(), b("blur", o);
|
|
214
|
+
})
|
|
215
|
+
}), [
|
|
216
|
+
(h(!0), g(ye, null, be(c.value, (o) => {
|
|
217
|
+
var K;
|
|
218
|
+
return h(), g("button", {
|
|
219
|
+
key: o,
|
|
220
|
+
type: "button",
|
|
221
|
+
tabindex: "-1",
|
|
222
|
+
disabled: r(i),
|
|
223
|
+
"aria-disabled": l.readonly || void 0,
|
|
224
|
+
"aria-label": o + " 星",
|
|
225
|
+
title: (K = l.tooltips) == null ? void 0 : K[o - 1],
|
|
226
|
+
class: X({
|
|
227
|
+
"hys-ui-active": o <= u.value,
|
|
228
|
+
"hys-ui-rating-half": u.value > o - 1 && u.value < o
|
|
69
229
|
}),
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
230
|
+
onMousedown: t[0] || (t[0] = ge(() => {
|
|
231
|
+
}, ["prevent"])),
|
|
232
|
+
onMousemove: (L) => A(j(L, o)),
|
|
233
|
+
onClick: (L) => re(L, o)
|
|
234
|
+
}, [
|
|
235
|
+
M("span", Te, [
|
|
236
|
+
M("span", {
|
|
237
|
+
class: "hys-ui-rating-void",
|
|
238
|
+
style: N({
|
|
239
|
+
color: r(i) ? l.disabledVoidColor ?? l.voidColor : l.voidColor,
|
|
240
|
+
"--hys-ui-rating-part": Math.max(0, Math.min(1, u.value - o + 1)) * 100 + "%"
|
|
241
|
+
})
|
|
242
|
+
}, [
|
|
243
|
+
D(e.$slots, "character", {
|
|
244
|
+
value: o,
|
|
245
|
+
index: o - 1,
|
|
246
|
+
fraction: Math.max(0, Math.min(1, u.value - o + 1)),
|
|
247
|
+
filled: !1
|
|
248
|
+
}, () => [
|
|
249
|
+
l.character ? (h(), g("span", pe, S(l.character), 1)) : (h(), G(J(R(ae.value)), { key: 1 }))
|
|
250
|
+
], !0)
|
|
251
|
+
], 4),
|
|
252
|
+
M("span", {
|
|
253
|
+
class: X(["hys-ui-rating-fill", { "hys-ui-rating-default-fill": R(q.value) === r(B) }]),
|
|
254
|
+
style: N({
|
|
255
|
+
width: Math.max(0, Math.min(1, u.value - o + 1)) * 100 + "%",
|
|
256
|
+
color: ee.value
|
|
257
|
+
})
|
|
258
|
+
}, [
|
|
259
|
+
M("span", null, [
|
|
260
|
+
D(e.$slots, "character", {
|
|
261
|
+
value: o,
|
|
262
|
+
index: o - 1,
|
|
263
|
+
fraction: Math.max(0, Math.min(1, u.value - o + 1)),
|
|
264
|
+
filled: !0
|
|
265
|
+
}, () => [
|
|
266
|
+
l.character ? (h(), g("span", ze, S(l.character), 1)) : (h(), G(J(R(q.value)), { key: 1 }))
|
|
267
|
+
], !0)
|
|
268
|
+
])
|
|
269
|
+
], 6)
|
|
270
|
+
])
|
|
271
|
+
], 42, Be);
|
|
272
|
+
}), 128)),
|
|
273
|
+
l.showText || l.showScore || e.$slots.text ? (h(), g("span", {
|
|
274
|
+
key: 0,
|
|
275
|
+
class: "hys-ui-rating-score",
|
|
276
|
+
style: N({ color: l.textColor })
|
|
277
|
+
}, [
|
|
278
|
+
D(e.$slots, "text", {
|
|
279
|
+
value: u.value,
|
|
280
|
+
text: P.value
|
|
281
|
+
}, () => [
|
|
282
|
+
we(S(P.value), 1)
|
|
283
|
+
], !0)
|
|
284
|
+
], 4)) : E("", !0),
|
|
285
|
+
l.name ? (h(), g("input", {
|
|
286
|
+
key: 1,
|
|
287
|
+
type: "hidden",
|
|
288
|
+
name: l.name,
|
|
289
|
+
form: l.form,
|
|
290
|
+
value: m.value,
|
|
291
|
+
disabled: r(i)
|
|
292
|
+
}, null, 8, Ae)) : E("", !0),
|
|
293
|
+
l.error ? (h(), g("small", {
|
|
294
|
+
key: 2,
|
|
295
|
+
id: r(F) + "-error",
|
|
296
|
+
class: "hys-ui-rating-error",
|
|
297
|
+
role: "alert"
|
|
298
|
+
}, S(l.error), 9, He)) : E("", !0)
|
|
299
|
+
], 16, Se);
|
|
300
|
+
};
|
|
81
301
|
}
|
|
82
302
|
});
|
|
83
303
|
export {
|
|
84
|
-
|
|
304
|
+
Fe as default
|
|
85
305
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./HysRichTextEditor2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fd4413a5"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { defineComponent as D, useModel as E, ref as m, watch as H, onActivated as U, onDeactivated as F, onBeforeUnmount as I, onMounted as O, openBlock as h, createElementBlock as L, mergeProps as $, unref as v, Fragment as P, renderList as j, createElementVNode as w, withModifiers as q, toDisplayString as z, createCommentVNode as G, createVNode as M, withCtx as x, createTextVNode as J, mergeModels as R, nextTick as K } from "vue";
|
|
2
|
+
import { useHysControlState as Q } from "../../composables/formContext.js";
|
|
3
|
+
import { useHysRootAttrs as W } from "../../config.js";
|
|
4
|
+
import X from "../HysModal/HysModal.vue.js";
|
|
5
|
+
import Y from "../HysInput/HysInput.vue.js";
|
|
6
|
+
import Z from "../HysButton/HysButton.vue.js";
|
|
7
|
+
const _ = {
|
|
7
8
|
key: 0,
|
|
8
9
|
class: "hys-ui-ent-toolbar",
|
|
9
10
|
role: "toolbar",
|
|
10
11
|
"aria-label": "文本格式"
|
|
11
|
-
},
|
|
12
|
+
}, ee = ["disabled", "onClick"], te = ["contenteditable", "data-placeholder", "aria-readonly", "aria-disabled"], ue = /* @__PURE__ */ D({
|
|
12
13
|
__name: "HysRichTextEditor",
|
|
13
|
-
props: /* @__PURE__ */
|
|
14
|
+
props: /* @__PURE__ */ R({
|
|
14
15
|
disabled: { type: Boolean },
|
|
15
16
|
readonly: { type: Boolean },
|
|
16
17
|
placeholder: {},
|
|
@@ -19,62 +20,62 @@ const Y = {
|
|
|
19
20
|
modelValue: { default: "" },
|
|
20
21
|
modelModifiers: {}
|
|
21
22
|
}),
|
|
22
|
-
emits: /* @__PURE__ */
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
let
|
|
26
|
-
function
|
|
27
|
-
|
|
23
|
+
emits: /* @__PURE__ */ R(["change", "focus", "blur"], ["update:modelValue"]),
|
|
24
|
+
setup(r, { expose: T, emit: V }) {
|
|
25
|
+
const i = r, f = E(r, "modelValue"), y = V, A = W(), n = m(), d = m(!1), s = m(""), p = m(""), { disabled: a } = Q(i), B = [["bold", "粗体"], ["italic", "斜体"], ["insertUnorderedList", "列表"], ["insertOrderedList", "编号"], ["createLink", "链接"], ["undo", "撤销"], ["redo", "重做"]];
|
|
26
|
+
let b = !1, c, u = !0, g = 0;
|
|
27
|
+
function k() {
|
|
28
|
+
g++, d.value = !1, c = void 0;
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}), U(() => {
|
|
32
|
-
i = !1, p();
|
|
33
|
-
}), D(() => {
|
|
34
|
-
i = !1, p();
|
|
30
|
+
H(() => [a.value, i.readonly], k), U(() => {
|
|
31
|
+
u = !0;
|
|
35
32
|
}), F(() => {
|
|
36
|
-
|
|
37
|
-
}),
|
|
38
|
-
|
|
33
|
+
u = !1, k();
|
|
34
|
+
}), I(() => {
|
|
35
|
+
u = !1, k();
|
|
36
|
+
}), O(() => {
|
|
37
|
+
n.value && (n.value.innerHTML = f.value);
|
|
38
|
+
}), H(f, (t) => {
|
|
39
|
+
!b && n.value && n.value.innerHTML !== t && (n.value.innerHTML = t), b = !1;
|
|
39
40
|
});
|
|
40
|
-
function
|
|
41
|
+
function C() {
|
|
41
42
|
var t;
|
|
42
|
-
a.
|
|
43
|
+
a.value || i.readonly || (b = !0, f.value = ((t = n.value) == null ? void 0 : t.innerHTML) || "", y("change", f.value));
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function N(t) {
|
|
45
46
|
var o, e;
|
|
46
|
-
if (!(!
|
|
47
|
+
if (!(!u || a.value || i.readonly)) {
|
|
47
48
|
if (t === "createLink") {
|
|
48
|
-
const
|
|
49
|
-
|
|
49
|
+
const l = window.getSelection();
|
|
50
|
+
c = l != null && l.rangeCount && ((o = n.value) != null && o.contains(l.getRangeAt(0).commonAncestorContainer)) ? l.getRangeAt(0).cloneRange() : void 0, s.value = "", p.value = "", d.value = !0;
|
|
50
51
|
return;
|
|
51
52
|
}
|
|
52
|
-
(e = n.value) == null || e.focus(), document.execCommand(t, !1),
|
|
53
|
+
(e = n.value) == null || e.focus(), document.execCommand(t, !1), C();
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
|
-
async function
|
|
56
|
+
async function S() {
|
|
56
57
|
var o;
|
|
57
|
-
if (!
|
|
58
|
-
if (!/^https?:\/\//i.test(
|
|
59
|
-
|
|
58
|
+
if (!u || a.value || i.readonly) return;
|
|
59
|
+
if (!/^https?:\/\//i.test(s.value)) {
|
|
60
|
+
p.value = "请输入 http:// 或 https:// 链接";
|
|
60
61
|
return;
|
|
61
62
|
}
|
|
62
|
-
const t = ++
|
|
63
|
-
if (d.value = !1, await
|
|
64
|
-
if (n.value.focus(),
|
|
63
|
+
const t = ++g;
|
|
64
|
+
if (d.value = !1, await K(), !(!u || a.value || i.readonly || t !== g || !((o = n.value) != null && o.isConnected))) {
|
|
65
|
+
if (n.value.focus(), c && n.value.contains(c.commonAncestorContainer)) {
|
|
65
66
|
const e = window.getSelection();
|
|
66
|
-
e == null || e.removeAllRanges(), e == null || e.addRange(
|
|
67
|
+
e == null || e.removeAllRanges(), e == null || e.addRange(c);
|
|
67
68
|
} else {
|
|
68
69
|
const e = window.getSelection();
|
|
69
70
|
if (e && !n.value.contains(e.anchorNode)) {
|
|
70
|
-
const
|
|
71
|
-
|
|
71
|
+
const l = document.createRange();
|
|
72
|
+
l.selectNodeContents(n.value), l.collapse(!1), e.removeAllRanges(), e.addRange(l);
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
|
-
document.execCommand("createLink", !1,
|
|
75
|
+
document.execCommand("createLink", !1, s.value), C();
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
|
-
return
|
|
78
|
+
return T({ focus: () => {
|
|
78
79
|
var t;
|
|
79
80
|
return (t = n.value) == null ? void 0 : t.focus();
|
|
80
81
|
}, blur: () => {
|
|
@@ -83,51 +84,51 @@ const Y = {
|
|
|
83
84
|
}, getHTML: () => {
|
|
84
85
|
var t;
|
|
85
86
|
return ((t = n.value) == null ? void 0 : t.innerHTML) || "";
|
|
86
|
-
} }), (t, o) => (
|
|
87
|
-
|
|
88
|
-
(
|
|
87
|
+
} }), (t, o) => (h(), L("div", $(v(A), { class: "hys-ui-ent-panel" }), [
|
|
88
|
+
r.hideToolbar ? G("", !0) : (h(), L("div", _, [
|
|
89
|
+
(h(), L(P, null, j(B, (e) => w("button", {
|
|
89
90
|
key: e[0],
|
|
90
91
|
type: "button",
|
|
91
|
-
disabled:
|
|
92
|
-
onMousedown: o[0] || (o[0] =
|
|
92
|
+
disabled: v(a) || r.readonly,
|
|
93
|
+
onMousedown: o[0] || (o[0] = q(() => {
|
|
93
94
|
}, ["prevent"])),
|
|
94
|
-
onClick: (
|
|
95
|
-
},
|
|
95
|
+
onClick: (l) => N(e[0])
|
|
96
|
+
}, z(e[1]), 41, ee)), 64))
|
|
96
97
|
])),
|
|
97
|
-
|
|
98
|
+
w("div", {
|
|
98
99
|
ref_key: "editor",
|
|
99
100
|
ref: n,
|
|
100
101
|
class: "hys-ui-ent-editor",
|
|
101
|
-
contenteditable: !
|
|
102
|
-
"data-placeholder":
|
|
102
|
+
contenteditable: !v(a) && !r.readonly,
|
|
103
|
+
"data-placeholder": r.placeholder,
|
|
103
104
|
role: "textbox",
|
|
104
|
-
"aria-readonly":
|
|
105
|
-
"aria-disabled":
|
|
105
|
+
"aria-readonly": r.readonly,
|
|
106
|
+
"aria-disabled": v(a),
|
|
106
107
|
"aria-label": "富文本编辑器",
|
|
107
108
|
"aria-multiline": "true",
|
|
108
|
-
onInput:
|
|
109
|
-
onFocus: o[1] || (o[1] = (e) =>
|
|
110
|
-
onBlur: o[2] || (o[2] = (e) =>
|
|
111
|
-
}, null, 40,
|
|
112
|
-
|
|
109
|
+
onInput: C,
|
|
110
|
+
onFocus: o[1] || (o[1] = (e) => y("focus", e)),
|
|
111
|
+
onBlur: o[2] || (o[2] = (e) => y("blur", e))
|
|
112
|
+
}, null, 40, te),
|
|
113
|
+
M(X, {
|
|
113
114
|
open: d.value,
|
|
114
115
|
title: "插入链接",
|
|
115
116
|
onClose: o[4] || (o[4] = (e) => d.value = !1)
|
|
116
117
|
}, {
|
|
117
|
-
footer:
|
|
118
|
-
|
|
119
|
-
default:
|
|
120
|
-
|
|
118
|
+
footer: x(() => [
|
|
119
|
+
M(Z, { onClick: S }, {
|
|
120
|
+
default: x(() => [...o[5] || (o[5] = [
|
|
121
|
+
J("插入", -1)
|
|
121
122
|
])]),
|
|
122
123
|
_: 1
|
|
123
124
|
})
|
|
124
125
|
]),
|
|
125
|
-
default:
|
|
126
|
-
|
|
127
|
-
modelValue:
|
|
128
|
-
"onUpdate:modelValue": o[3] || (o[3] = (e) =>
|
|
126
|
+
default: x(() => [
|
|
127
|
+
M(Y, {
|
|
128
|
+
modelValue: s.value,
|
|
129
|
+
"onUpdate:modelValue": o[3] || (o[3] = (e) => s.value = e),
|
|
129
130
|
placeholder: "https://example.com",
|
|
130
|
-
error:
|
|
131
|
+
error: p.value
|
|
131
132
|
}, null, 8, ["modelValue", "error"])
|
|
132
133
|
]),
|
|
133
134
|
_: 1
|
|
@@ -136,5 +137,5 @@ const Y = {
|
|
|
136
137
|
}
|
|
137
138
|
});
|
|
138
139
|
export {
|
|
139
|
-
|
|
140
|
+
ue as default
|
|
140
141
|
};
|