hzzt-plus 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +3029 -276
  4. package/dist/index.full.min.js +23 -17
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +24 -18
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +3025 -278
  9. package/es/component.mjs +5 -1
  10. package/es/component.mjs.map +1 -1
  11. package/es/components/cascader/index.d.ts +5 -0
  12. package/es/components/cascader/index.mjs +9 -0
  13. package/es/components/cascader/index.mjs.map +1 -0
  14. package/es/components/cascader/src/cascader.d.ts +35 -0
  15. package/es/components/cascader/src/cascader.mjs +42 -0
  16. package/es/components/cascader/src/cascader.mjs.map +1 -0
  17. package/es/components/cascader/src/cascader.vue.d.ts +2293 -0
  18. package/es/components/cascader/src/cascader2.mjs +128 -0
  19. package/es/components/cascader/src/cascader2.mjs.map +1 -0
  20. package/es/components/cascader/src/hooks/utils.d.ts +2 -0
  21. package/es/components/cascader/src/hooks/utils.mjs +26 -0
  22. package/es/components/cascader/src/hooks/utils.mjs.map +1 -0
  23. package/es/components/cascader/style/css.d.ts +2 -0
  24. package/es/components/cascader/style/css.mjs +3 -0
  25. package/es/components/cascader/style/css.mjs.map +1 -0
  26. package/es/components/cascader/style/index.d.ts +2 -0
  27. package/es/components/cascader/style/index.mjs +3 -0
  28. package/es/components/cascader/style/index.mjs.map +1 -0
  29. package/es/components/collapse/index.mjs +2 -2
  30. package/es/components/collapse/src/collapse.mjs +67 -0
  31. package/es/components/collapse/src/collapse.mjs.map +1 -1
  32. package/es/components/collapse/src/collapse2.mjs +0 -67
  33. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  34. package/es/components/confirm-password/index.d.ts +1 -1
  35. package/es/components/confirm-password/src/confirm-password.vue.d.ts +1 -1
  36. package/es/components/dropdown/index.d.ts +1 -1
  37. package/es/components/dropdown/src/index.vue.d.ts +1 -1
  38. package/es/components/index.d.ts +2 -0
  39. package/es/components/index.mjs +5 -1
  40. package/es/components/index.mjs.map +1 -1
  41. package/es/components/input-range/index.d.ts +5 -0
  42. package/es/components/input-range/index.mjs +9 -0
  43. package/es/components/input-range/index.mjs.map +1 -0
  44. package/es/components/input-range/src/input-range.d.ts +24 -0
  45. package/es/components/input-range/src/input-range.mjs +31 -0
  46. package/es/components/input-range/src/input-range.mjs.map +1 -0
  47. package/es/components/input-range/src/input-range.vue.d.ts +86 -0
  48. package/es/components/input-range/src/input-range2.mjs +81 -0
  49. package/es/components/input-range/src/input-range2.mjs.map +1 -0
  50. package/es/components/input-range/style/css.d.ts +2 -0
  51. package/es/components/input-range/style/css.mjs +3 -0
  52. package/es/components/input-range/style/css.mjs.map +1 -0
  53. package/es/components/input-range/style/index.d.ts +2 -0
  54. package/es/components/input-range/style/index.mjs +3 -0
  55. package/es/components/input-range/style/index.mjs.map +1 -0
  56. package/es/components/page-size/index.d.ts +54 -54
  57. package/es/components/page-size/src/index.vue.d.ts +54 -54
  58. package/es/components/quarter-picker/index.d.ts +16 -16
  59. package/es/components/quarter-picker/src/index.vue.d.ts +16 -16
  60. package/es/components/scan/index.mjs +2 -2
  61. package/es/components/scan/src/scan.mjs +144 -23
  62. package/es/components/scan/src/scan.mjs.map +1 -1
  63. package/es/components/scan/src/scan.vue.d.ts +2 -2
  64. package/es/components/scan/src/scan2.mjs +23 -144
  65. package/es/components/scan/src/scan2.mjs.map +1 -1
  66. package/es/components/select-input/index.d.ts +21 -21
  67. package/es/components/select-input/src/select-input.d.ts +3 -3
  68. package/es/components/select-input/src/select-input.mjs.map +1 -1
  69. package/es/components/select-input/src/select-input.vue.d.ts +21 -21
  70. package/es/components/select-textarea/index.d.ts +3 -13074
  71. package/es/components/select-textarea/index.mjs.map +1 -1
  72. package/es/components/select-textarea/src/select-textarea.d.ts +4 -4
  73. package/es/components/select-textarea/src/select-textarea.mjs +6 -5
  74. package/es/components/select-textarea/src/select-textarea.mjs.map +1 -1
  75. package/es/components/select-textarea/src/select-textarea.vue.d.ts +45 -45
  76. package/es/components/select-textarea/src/select-textarea2.mjs +2 -1
  77. package/es/components/select-textarea/src/select-textarea2.mjs.map +1 -1
  78. package/es/components/tooltip/index.d.ts +14 -14
  79. package/es/components/tooltip/src/tooltip.vue.d.ts +14 -14
  80. package/es/hooks/use-cursor/index.d.ts +1 -1
  81. package/es/hooks/use-cursor/index.mjs.map +1 -1
  82. package/es/index.mjs +5 -1
  83. package/es/index.mjs.map +1 -1
  84. package/global.d.ts +2 -0
  85. package/lib/component.js +5 -1
  86. package/lib/component.js.map +1 -1
  87. package/lib/components/cascader/index.d.ts +5 -0
  88. package/lib/components/cascader/index.js +16 -0
  89. package/lib/components/cascader/index.js.map +1 -0
  90. package/lib/components/cascader/src/cascader.d.ts +35 -0
  91. package/lib/components/cascader/src/cascader.js +47 -0
  92. package/lib/components/cascader/src/cascader.js.map +1 -0
  93. package/lib/components/cascader/src/cascader.vue.d.ts +2293 -0
  94. package/lib/components/cascader/src/cascader2.js +132 -0
  95. package/lib/components/cascader/src/cascader2.js.map +1 -0
  96. package/lib/components/cascader/src/hooks/utils.d.ts +2 -0
  97. package/lib/components/cascader/src/hooks/utils.js +30 -0
  98. package/lib/components/cascader/src/hooks/utils.js.map +1 -0
  99. package/lib/components/cascader/style/css.d.ts +2 -0
  100. package/lib/components/cascader/style/css.js +6 -0
  101. package/lib/components/cascader/style/css.js.map +1 -0
  102. package/lib/components/cascader/style/index.d.ts +2 -0
  103. package/lib/components/cascader/style/index.js +6 -0
  104. package/lib/components/cascader/style/index.js.map +1 -0
  105. package/lib/components/collapse/index.js +2 -2
  106. package/lib/components/collapse/src/collapse.js +70 -0
  107. package/lib/components/collapse/src/collapse.js.map +1 -1
  108. package/lib/components/collapse/src/collapse2.js +0 -70
  109. package/lib/components/collapse/src/collapse2.js.map +1 -1
  110. package/lib/components/confirm-password/index.d.ts +1 -1
  111. package/lib/components/confirm-password/src/confirm-password.vue.d.ts +1 -1
  112. package/lib/components/dropdown/index.d.ts +1 -1
  113. package/lib/components/dropdown/src/index.vue.d.ts +1 -1
  114. package/lib/components/index.d.ts +2 -0
  115. package/lib/components/index.js +11 -1
  116. package/lib/components/index.js.map +1 -1
  117. package/lib/components/input-range/index.d.ts +5 -0
  118. package/lib/components/input-range/index.js +16 -0
  119. package/lib/components/input-range/index.js.map +1 -0
  120. package/lib/components/input-range/src/input-range.d.ts +24 -0
  121. package/lib/components/input-range/src/input-range.js +36 -0
  122. package/lib/components/input-range/src/input-range.js.map +1 -0
  123. package/lib/components/input-range/src/input-range.vue.d.ts +86 -0
  124. package/lib/components/input-range/src/input-range2.js +85 -0
  125. package/lib/components/input-range/src/input-range2.js.map +1 -0
  126. package/lib/components/input-range/style/css.d.ts +2 -0
  127. package/lib/components/input-range/style/css.js +6 -0
  128. package/lib/components/input-range/style/css.js.map +1 -0
  129. package/lib/components/input-range/style/index.d.ts +2 -0
  130. package/lib/components/input-range/style/index.js +6 -0
  131. package/lib/components/input-range/style/index.js.map +1 -0
  132. package/lib/components/page-size/index.d.ts +54 -54
  133. package/lib/components/page-size/src/index.vue.d.ts +54 -54
  134. package/lib/components/quarter-picker/index.d.ts +16 -16
  135. package/lib/components/quarter-picker/src/index.vue.d.ts +16 -16
  136. package/lib/components/scan/index.js +2 -2
  137. package/lib/components/scan/src/scan.js +144 -24
  138. package/lib/components/scan/src/scan.js.map +1 -1
  139. package/lib/components/scan/src/scan.vue.d.ts +2 -2
  140. package/lib/components/scan/src/scan2.js +24 -144
  141. package/lib/components/scan/src/scan2.js.map +1 -1
  142. package/lib/components/select-input/index.d.ts +21 -21
  143. package/lib/components/select-input/src/select-input.d.ts +3 -3
  144. package/lib/components/select-input/src/select-input.js.map +1 -1
  145. package/lib/components/select-input/src/select-input.vue.d.ts +21 -21
  146. package/lib/components/select-textarea/index.d.ts +3 -13074
  147. package/lib/components/select-textarea/index.js.map +1 -1
  148. package/lib/components/select-textarea/src/select-textarea.d.ts +4 -4
  149. package/lib/components/select-textarea/src/select-textarea.js +5 -4
  150. package/lib/components/select-textarea/src/select-textarea.js.map +1 -1
  151. package/lib/components/select-textarea/src/select-textarea.vue.d.ts +45 -45
  152. package/lib/components/select-textarea/src/select-textarea2.js +2 -1
  153. package/lib/components/select-textarea/src/select-textarea2.js.map +1 -1
  154. package/lib/components/tooltip/index.d.ts +14 -14
  155. package/lib/components/tooltip/src/tooltip.vue.d.ts +14 -14
  156. package/lib/hooks/use-cursor/index.d.ts +1 -1
  157. package/lib/hooks/use-cursor/index.js.map +1 -1
  158. package/lib/index.js +41 -31
  159. package/lib/index.js.map +1 -1
  160. package/package.json +1 -1
  161. package/tags.json +1 -1
  162. package/theme/hzzt-cascader.css +1 -0
  163. package/theme/hzzt-input-range.css +0 -0
  164. package/theme/index.css +1 -1
  165. package/theme/src/cascader.scss +28 -0
  166. package/theme/src/index.scss +2 -0
  167. package/theme/src/input-range.scss +0 -0
  168. package/web-types.json +1 -692
@@ -0,0 +1,128 @@
1
+ import { defineComponent, useAttrs, ref, computed, watch, openBlock, createElementBlock, normalizeClass, unref, createVNode, mergeProps } from 'vue';
2
+ import { cascaderProps, cascaderEmits } from './cascader.mjs';
3
+ import { useFormSize, useFormDisabled, ElInput, ElCascader } from 'element-plus';
4
+ import '../../../hooks/index.mjs';
5
+ import '../../../utils/index.mjs';
6
+ import { getCascaderId } from './hooks/utils.mjs';
7
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
9
+ import { useGlobalSize } from '../../../hooks/use-size/index.mjs';
10
+ import { isArray } from '@vue/shared';
11
+
12
+ const __default__ = defineComponent({
13
+ name: "HzztCascader"
14
+ });
15
+ const _sfc_main = /* @__PURE__ */ defineComponent({
16
+ ...__default__,
17
+ props: cascaderProps,
18
+ emits: cascaderEmits,
19
+ setup(__props, { emit }) {
20
+ const props = __props;
21
+ const attrs = useAttrs();
22
+ const inputVal = ref(props.modelValue);
23
+ const cascaderVal = ref();
24
+ const inputRef = ref();
25
+ const cascaderRef = ref();
26
+ const nsCascader = useNamespace("cascader");
27
+ const formSize = useFormSize();
28
+ const formDisabled = useFormDisabled();
29
+ const trueSize = computed(() => props.size || formSize.value || useGlobalSize().value);
30
+ const trueDisabled = computed(() => props.disabled || formDisabled.value);
31
+ const containerCls = computed(() => [
32
+ "relative",
33
+ nsCascader.b(),
34
+ nsCascader.m(trueSize.value)
35
+ ]);
36
+ const inputCls = computed(() => [
37
+ nsCascader.e("input")
38
+ ]);
39
+ const cascaderCls = computed(() => [
40
+ nsCascader.e("cascader")
41
+ ]);
42
+ const _inputProps = computed(() => ({
43
+ disabled: trueDisabled.value,
44
+ size: trueSize.value,
45
+ clearable: props.clearable,
46
+ placeholder: props.placeholder,
47
+ readonly: props.readonly,
48
+ ...attrs
49
+ }));
50
+ const _cascaderProps = computed(() => ({
51
+ options: props.options,
52
+ disabled: trueDisabled.value,
53
+ size: trueSize.value,
54
+ clearable: props.clearable,
55
+ placeholder: props.placeholder,
56
+ props: { checkStrictly: true, expandTrigger: "hover" },
57
+ filterable: true,
58
+ separator: "/",
59
+ showAllLevels: true,
60
+ ...props.cascaderProps
61
+ }));
62
+ watch(() => props.modelValue, (v) => {
63
+ inputVal.value = v;
64
+ getCascaderVal();
65
+ });
66
+ watch(() => props.options, (v) => {
67
+ if (!v)
68
+ return;
69
+ getCascaderVal();
70
+ });
71
+ getCascaderVal();
72
+ function input(str) {
73
+ emit("update:modelValue", str);
74
+ emit("input", str);
75
+ }
76
+ function change(str) {
77
+ emit("change", str);
78
+ }
79
+ function click(e) {
80
+ cascaderRef.value.togglePopperVisible();
81
+ const target = e.target;
82
+ target.focus();
83
+ }
84
+ function cascaderChange(val) {
85
+ const separator = _cascaderProps.value.separator || "/";
86
+ inputVal.value = val ? isArray(val) ? val.join(separator) : [val].join(separator) : "";
87
+ input(inputVal.value);
88
+ change(inputVal.value);
89
+ }
90
+ function getCascaderVal() {
91
+ const separator = _cascaderProps.value.separator || "/";
92
+ if (_cascaderProps.value.showAllLevels === false) {
93
+ const list = getCascaderId(props.modelValue, props.options);
94
+ cascaderVal.value = list.join(separator);
95
+ } else {
96
+ cascaderVal.value = (props.modelValue || "").split(separator);
97
+ }
98
+ }
99
+ return (_ctx, _cache) => {
100
+ return openBlock(), createElementBlock("div", {
101
+ class: normalizeClass(unref(containerCls))
102
+ }, [
103
+ createVNode(unref(ElInput), mergeProps({
104
+ class: unref(inputCls),
105
+ modelValue: inputVal.value,
106
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event),
107
+ ref_key: "inputRef",
108
+ ref: inputRef
109
+ }, unref(_inputProps), {
110
+ onInput: input,
111
+ onClick: click,
112
+ onChange: change
113
+ }), null, 16, ["class", "modelValue"]),
114
+ createVNode(unref(ElCascader), mergeProps({
115
+ class: unref(cascaderCls),
116
+ modelValue: cascaderVal.value,
117
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => cascaderVal.value = $event),
118
+ ref_key: "cascaderRef",
119
+ ref: cascaderRef
120
+ }, unref(_cascaderProps), { onChange: cascaderChange }), null, 16, ["class", "modelValue"])
121
+ ], 2);
122
+ };
123
+ }
124
+ });
125
+ var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "cascader.vue"]]);
126
+
127
+ export { Cascader as default };
128
+ //# sourceMappingURL=cascader2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cascader2.mjs","sources":["../../../../../../packages/components/cascader/src/cascader.vue"],"sourcesContent":["<template>\n <div :class=\"containerCls\">\n <el-input\n :class=\"inputCls\"\n v-model=\"inputVal\"\n ref=\"inputRef\"\n v-bind=\"_inputProps\"\n @input=\"input\"\n @click=\"click\"\n @change=\"change\"\n >\n </el-input>\n <el-cascader :class=\"cascaderCls\" v-model=\"cascaderVal\" ref=\"cascaderRef\" v-bind=\"_cascaderProps\"\n @change=\"cascaderChange\">\n </el-cascader>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import {cascaderEmits, cascaderProps} from './cascader'\n import {computed, ref, useAttrs, watch} from \"vue\";\n import {CascaderProps, useFormDisabled, useFormSize, CascaderValue} from \"element-plus\";\n import {useGlobalSize, useNamespace} from \"@hzzt-plus/hooks\";\n import {isArray} from '@hzzt-plus/utils'\n import {ElInput, ElCascader} from 'element-plus'\n import {getCascaderId} from \"./hooks/utils\";\n\n defineOptions({\n name: 'HzztCascader',\n })\n\n const props = defineProps(cascaderProps)\n const emit = defineEmits(cascaderEmits)\n\n const attrs = useAttrs();\n\n const inputVal = ref(props.modelValue);\n const cascaderVal = ref();\n const inputRef = ref();\n const cascaderRef = ref();\n\n const nsCascader = useNamespace('cascader');\n\n const formSize = useFormSize()\n const formDisabled = useFormDisabled()\n\n const trueSize = computed(\n () => props.size || formSize.value || useGlobalSize().value\n )\n\n const trueDisabled = computed(() => props.disabled || formDisabled.value)\n\n const containerCls = computed(() => [\n 'relative',\n nsCascader.b(),\n nsCascader.m(trueSize.value),\n ])\n\n const inputCls = computed(() => [\n nsCascader.e('input'),\n ])\n\n const cascaderCls = computed(() => [\n nsCascader.e('cascader'),\n ])\n\n const _inputProps = computed(() => ({\n disabled: trueDisabled.value,\n size: trueSize.value,\n clearable: props.clearable,\n placeholder: props.placeholder,\n readonly: props.readonly,\n ...attrs,\n }))\n\n const _cascaderProps = computed(() => ({\n options: props.options,\n disabled: trueDisabled.value,\n size: trueSize.value,\n clearable: props.clearable,\n placeholder: props.placeholder,\n props: {checkStrictly: true, expandTrigger: 'hover'} as CascaderProps,\n filterable: true,\n separator: '/',\n showAllLevels: true,\n ...props.cascaderProps,\n }))\n\n watch(() => props.modelValue, (v) => {\n inputVal.value = v;\n getCascaderVal();\n })\n\n watch(() => props.options, (v) => {\n if (!v) return;\n getCascaderVal();\n })\n\n getCascaderVal();\n\n function input(str: string) {\n emit('update:modelValue', str)\n emit('input', str)\n }\n\n function change(str: string) {\n emit('change', str)\n }\n\n function click(e: MouseEvent) {\n cascaderRef.value.togglePopperVisible();\n const target = e.target as HTMLInputElement;\n target.focus();\n }\n\n function cascaderChange(val: CascaderValue) {\n const separator = _cascaderProps.value.separator || '/';\n inputVal.value = val ? isArray(val) ? val.join(separator) : [val].join(separator) : '';\n input(inputVal.value);\n change(inputVal.value);\n }\n\n function getCascaderVal() {\n const separator = _cascaderProps.value.separator || '/';\n if (_cascaderProps.value.showAllLevels === false) {\n const list = getCascaderId(props.modelValue, props.options);\n cascaderVal.value = list.join(separator);\n } else {\n cascaderVal.value = (props.modelValue || '').split(separator);\n }\n }\n\n\n</script>\n"],"names":["_openBlock","_createElementBlock"],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ import { CascaderNodeValue, CascaderOption } from "../cascader";
2
+ export declare function getCascaderId(targetId?: string, list?: Array<CascaderOption>): CascaderNodeValue[];
@@ -0,0 +1,26 @@
1
+ function getCascaderId(targetId = "", list = []) {
2
+ function get(list2, arr = []) {
3
+ var _a;
4
+ for (let i = 0; i < list2.length; i++) {
5
+ const item = list2[i];
6
+ if (item.value === targetId) {
7
+ arr.unshift(item.value);
8
+ break;
9
+ }
10
+ if ((_a = item == null ? void 0 : item.children) == null ? void 0 : _a.length) {
11
+ arr = get(item.children, arr);
12
+ if (arr.length) {
13
+ if (item.value) {
14
+ arr.unshift(item.value);
15
+ }
16
+ break;
17
+ }
18
+ }
19
+ }
20
+ return arr;
21
+ }
22
+ return get(list, []);
23
+ }
24
+
25
+ export { getCascaderId };
26
+ //# sourceMappingURL=utils.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.mjs","sources":["../../../../../../../packages/components/cascader/src/hooks/utils.ts"],"sourcesContent":["import {CascaderNodeValue, CascaderOption} from \"../cascader\";\n\nexport function getCascaderId(targetId = '', list: Array<CascaderOption> = []) {\n function get(list: Array<CascaderOption>, arr: Array<CascaderNodeValue> = []) {\n for (let i = 0; i < list.length; i++) {\n const item = list[i];\n if (item.value === targetId) {\n arr.unshift(item.value);\n break;\n }\n if (item?.children?.length) {\n arr = get(item.children, arr);\n if (arr.length) {\n if (item.value) {\n arr.unshift(item.value);\n }\n break;\n }\n }\n }\n return arr;\n }\n\n return get(list, []);\n}\n"],"names":[],"mappings":"AAAO,SAAS,aAAa,CAAC,QAAQ,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE;AACxD,EAAE,SAAS,GAAG,CAAC,KAAK,EAAE,GAAG,GAAG,EAAE,EAAE;AAChC,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC3C,MAAM,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AAC5B,MAAM,IAAI,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE;AACnC,QAAQ,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAChC,QAAQ,MAAM;AACd,OAAO;AACP,MAAM,IAAI,CAAC,EAAE,GAAG,IAAI,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,QAAQ,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE;AACrF,QAAQ,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AACtC,QAAQ,IAAI,GAAG,CAAC,MAAM,EAAE;AACxB,UAAU,IAAI,IAAI,CAAC,KAAK,EAAE;AAC1B,YAAY,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACpC,WAAW;AACX,UAAU,MAAM;AAChB,SAAS;AACT,OAAO;AACP,KAAK;AACL,IAAI,OAAO,GAAG,CAAC;AACf,GAAG;AACH,EAAE,OAAO,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AACvB;;;;"}
@@ -0,0 +1,2 @@
1
+ import 'hzzt-plus/es/components/base/style/css';
2
+ import 'hzzt-plus/theme/hzzt-cascader.css';
@@ -0,0 +1,3 @@
1
+ import '../../base/style/css.mjs';
2
+ import 'hzzt-plus/theme/hzzt-cascader.css';
3
+ //# sourceMappingURL=css.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ import 'hzzt-plus/es/components/base/style';
2
+ import 'hzzt-plus/theme/src/hzzt-cascader.scss';
@@ -0,0 +1,3 @@
1
+ import '../../base/style/index.mjs';
2
+ import 'hzzt-plus/theme/src/hzzt-cascader.scss';
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Collapse from './src/collapse2.mjs';
3
- import './src/collapse.mjs';
2
+ import Collapse from './src/collapse.mjs';
3
+ import './src/collapse2.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const HzztCollapse = withInstall(Collapse);
@@ -1,2 +1,69 @@
1
+ import { createElementVNode, defineComponent, ref, watch, openBlock, createElementBlock, toDisplayString, unref, createCommentVNode, renderSlot } from 'vue';
2
+ import '../../../hooks/index.mjs';
3
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
4
+ import { useLocale } from '../../../hooks/use-locale/index.mjs';
1
5
 
6
+ const _hoisted_1 = { class: "hzzt-collapse" };
7
+ const _hoisted_2 = { class: "flex align-items-center" };
8
+ const _hoisted_3 = { class: "hzzt-collapse-title-wrapper" };
9
+ const _hoisted_4 = /* @__PURE__ */ createElementVNode("div", { class: "hzzt-collapse-title-block" }, null, -1);
10
+ const _hoisted_5 = { class: "hzzt-collapse-title" };
11
+ const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { class: "hzzt-collapse-line" }, null, -1);
12
+ const _hoisted_7 = {
13
+ key: 0,
14
+ class: "hzzt-collapse-text"
15
+ };
16
+ const __default__ = defineComponent({
17
+ name: "HzztCollapse"
18
+ });
19
+ const _sfc_main = /* @__PURE__ */ defineComponent({
20
+ ...__default__,
21
+ props: {
22
+ defaultActive: {
23
+ type: Boolean,
24
+ default: false
25
+ },
26
+ title: {
27
+ type: String,
28
+ default: ""
29
+ },
30
+ expand: {
31
+ type: Boolean,
32
+ default: true
33
+ }
34
+ },
35
+ setup(__props) {
36
+ const props = __props;
37
+ const { t } = useLocale();
38
+ const active = ref(props.defaultActive);
39
+ watch(() => props.defaultActive, (val) => {
40
+ active.value = val;
41
+ });
42
+ function toggle() {
43
+ active.value = !active.value;
44
+ }
45
+ return (_ctx, _cache) => {
46
+ return openBlock(), createElementBlock("div", _hoisted_1, [
47
+ createElementVNode("div", {
48
+ class: "hzzt-collapse-header",
49
+ onClick: toggle
50
+ }, [
51
+ createElementVNode("div", _hoisted_2, [
52
+ createElementVNode("div", _hoisted_3, [
53
+ _hoisted_4,
54
+ createElementVNode("div", _hoisted_5, toDisplayString(__props.title), 1)
55
+ ]),
56
+ _hoisted_6
57
+ ]),
58
+ __props.expand ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(active.value ? unref(t)("hzzt.collapse.retract") : unref(t)("hzzt.collapse.expand")), 1)) : createCommentVNode("v-if", true)
59
+ ]),
60
+ renderSlot(_ctx.$slots, "active", { active: active.value }),
61
+ renderSlot(_ctx.$slots, "default")
62
+ ]);
63
+ };
64
+ }
65
+ });
66
+ var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "collapse.vue"]]);
67
+
68
+ export { Collapse as default };
2
69
  //# sourceMappingURL=collapse.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"collapse.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"collapse.mjs","sources":["../../../../../../packages/components/collapse/src/collapse.vue"],"sourcesContent":["<template>\n <div class=\"hzzt-collapse\">\n <div class=\"hzzt-collapse-header\" @click=\"toggle\">\n <div class=\"flex align-items-center\">\n <div class=\"hzzt-collapse-title-wrapper\">\n <div class=\"hzzt-collapse-title-block\" />\n <div class=\"hzzt-collapse-title\">{{ title }}</div>\n </div>\n <div class=\"hzzt-collapse-line\" />\n </div>\n <span v-if=\"expand\" class=\"hzzt-collapse-text\">{{\n active ? t('hzzt.collapse.retract') : t('hzzt.collapse.expand')\n }}</span>\n </div>\n <slot name=\"active\" :active=\"active\" />\n <slot />\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, watch } from 'vue'\nimport { useLocale } from '@hzzt-plus/hooks'\n\ndefineOptions({\n name: 'HzztCollapse',\n})\nconst { t } = useLocale()\nconst props = defineProps({\n defaultActive: {\n type: Boolean,\n default: false,\n },\n title: {\n type: String,\n default: '',\n },\n expand: {\n type: Boolean,\n default: true,\n },\n})\n\nconst active = ref(props.defaultActive)\n\nwatch(\n () => props.defaultActive,\n (val: boolean) => {\n active.value = val\n }\n)\n\nfunction toggle() {\n active.value = !active.value\n}\n</script>\n"],"names":["_createElementVNode","_toDisplayString","_openBlock","_createElementBlock","_unref","_createCommentVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAoBA,KAAA;AACA,IAAA,KAAS,EAAiB;;;AAEZ,KACN;AACR,IAAA,MAAA,EAAA;;;;;;;;;;;;;;;;;;;AACA,UAAM,OAAI,EAAc,MAAA;AAgBxB,SAAM,EAAA;AAEN,UAAAA,kBAAA,CAAA,KAAA,EAAA,UAAA,EAAA;AAAA,YACQA,kBAAM,CAAA,KAAA,EAAA,UAAA,EAAA;AAAA,cACM,UAAA;AAChB,cAAAA,kBAAe,CAAA,KAAA,EAAA,UAAA,EAAAC,eAAA,CAAA,OAAA,CAAA,KAAA,CAAA,EAAA,CAAA,CAAA;AAAA,aACjB,CAAA;AAAA,YACF,UAAA;AAEA,WAAA,CAAA;AACE,UAAO,OAAA,CAAA,MAAgB,IAAAC,SAAA,EAAA,EAAAC,kBAAA,CAAA,MAAA,EAAA,UAAA,EAAAF,eAAA,CAAA,MAAA,CAAA,KAAA,GAAAG,KAAA,CAAA,CAAA,CAAA,CAAA,uBAAA,CAAA,GAAAA,KAAA,CAAA,CAAA,CAAA,CAAA,sBAAA,CAAA,CAAA,EAAA,CAAA,CAAA,IAAAC,kBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;AAAA,SACzB,CAAA;;;;;;;;;;;"}
@@ -1,69 +1,2 @@
1
- import { createElementVNode, defineComponent, ref, watch, openBlock, createElementBlock, toDisplayString, unref, createCommentVNode, renderSlot } from 'vue';
2
- import '../../../hooks/index.mjs';
3
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
4
- import { useLocale } from '../../../hooks/use-locale/index.mjs';
5
1
 
6
- const _hoisted_1 = { class: "hzzt-collapse" };
7
- const _hoisted_2 = { class: "flex align-items-center" };
8
- const _hoisted_3 = { class: "hzzt-collapse-title-wrapper" };
9
- const _hoisted_4 = /* @__PURE__ */ createElementVNode("div", { class: "hzzt-collapse-title-block" }, null, -1);
10
- const _hoisted_5 = { class: "hzzt-collapse-title" };
11
- const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { class: "hzzt-collapse-line" }, null, -1);
12
- const _hoisted_7 = {
13
- key: 0,
14
- class: "hzzt-collapse-text"
15
- };
16
- const __default__ = defineComponent({
17
- name: "HzztCollapse"
18
- });
19
- const _sfc_main = /* @__PURE__ */ defineComponent({
20
- ...__default__,
21
- props: {
22
- defaultActive: {
23
- type: Boolean,
24
- default: false
25
- },
26
- title: {
27
- type: String,
28
- default: ""
29
- },
30
- expand: {
31
- type: Boolean,
32
- default: true
33
- }
34
- },
35
- setup(__props) {
36
- const props = __props;
37
- const { t } = useLocale();
38
- const active = ref(props.defaultActive);
39
- watch(() => props.defaultActive, (val) => {
40
- active.value = val;
41
- });
42
- function toggle() {
43
- active.value = !active.value;
44
- }
45
- return (_ctx, _cache) => {
46
- return openBlock(), createElementBlock("div", _hoisted_1, [
47
- createElementVNode("div", {
48
- class: "hzzt-collapse-header",
49
- onClick: toggle
50
- }, [
51
- createElementVNode("div", _hoisted_2, [
52
- createElementVNode("div", _hoisted_3, [
53
- _hoisted_4,
54
- createElementVNode("div", _hoisted_5, toDisplayString(__props.title), 1)
55
- ]),
56
- _hoisted_6
57
- ]),
58
- __props.expand ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(active.value ? unref(t)("hzzt.collapse.retract") : unref(t)("hzzt.collapse.expand")), 1)) : createCommentVNode("v-if", true)
59
- ]),
60
- renderSlot(_ctx.$slots, "active", { active: active.value }),
61
- renderSlot(_ctx.$slots, "default")
62
- ]);
63
- };
64
- }
65
- });
66
- var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "collapse.vue"]]);
67
-
68
- export { Collapse as default };
69
2
  //# sourceMappingURL=collapse2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"collapse2.mjs","sources":["../../../../../../packages/components/collapse/src/collapse.vue"],"sourcesContent":["<template>\n <div class=\"hzzt-collapse\">\n <div class=\"hzzt-collapse-header\" @click=\"toggle\">\n <div class=\"flex align-items-center\">\n <div class=\"hzzt-collapse-title-wrapper\">\n <div class=\"hzzt-collapse-title-block\" />\n <div class=\"hzzt-collapse-title\">{{ title }}</div>\n </div>\n <div class=\"hzzt-collapse-line\" />\n </div>\n <span v-if=\"expand\" class=\"hzzt-collapse-text\">{{\n active ? t('hzzt.collapse.retract') : t('hzzt.collapse.expand')\n }}</span>\n </div>\n <slot name=\"active\" :active=\"active\" />\n <slot />\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, watch } from 'vue'\nimport { useLocale } from '@hzzt-plus/hooks'\n\ndefineOptions({\n name: 'HzztCollapse',\n})\nconst { t } = useLocale()\nconst props = defineProps({\n defaultActive: {\n type: Boolean,\n default: false,\n },\n title: {\n type: String,\n default: '',\n },\n expand: {\n type: Boolean,\n default: true,\n },\n})\n\nconst active = ref(props.defaultActive)\n\nwatch(\n () => props.defaultActive,\n (val: boolean) => {\n active.value = val\n }\n)\n\nfunction toggle() {\n active.value = !active.value\n}\n</script>\n"],"names":["_createElementVNode","_toDisplayString","_openBlock","_createElementBlock","_unref","_createCommentVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAoBA,KAAA;AACA,IAAA,KAAS,EAAiB;;;AAEZ,KACN;AACR,IAAA,MAAA,EAAA;;;;;;;;;;;;;;;;;;;AACA,UAAM,OAAI,EAAc,MAAA;AAgBxB,SAAM,EAAA;AAEN,UAAAA,kBAAA,CAAA,KAAA,EAAA,UAAA,EAAA;AAAA,YACQA,kBAAM,CAAA,KAAA,EAAA,UAAA,EAAA;AAAA,cACM,UAAA;AAChB,cAAAA,kBAAe,CAAA,KAAA,EAAA,UAAA,EAAAC,eAAA,CAAA,OAAA,CAAA,KAAA,CAAA,EAAA,CAAA,CAAA;AAAA,aACjB,CAAA;AAAA,YACF,UAAA;AAEA,WAAA,CAAA;AACE,UAAO,OAAA,CAAA,MAAgB,IAAAC,SAAA,EAAA,EAAAC,kBAAA,CAAA,MAAA,EAAA,UAAA,EAAAF,eAAA,CAAA,MAAA,CAAA,KAAA,GAAAG,KAAA,CAAA,CAAA,CAAA,CAAA,uBAAA,CAAA,GAAAA,KAAA,CAAA,CAAA,CAAA,CAAA,sBAAA,CAAA,CAAA,EAAA,CAAA,CAAA,IAAAC,kBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;AAAA,SACzB,CAAA;;;;;;;;;;;"}
1
+ {"version":3,"file":"collapse2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -132,7 +132,7 @@ export declare const HzztConfirmPassword: import("hzzt-plus/es/utils").SFCWithIn
132
132
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
133
133
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
134
134
  onClear?: (() => any) | undefined;
135
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "modelValue" | "id" | "disabled" | "autosize" | "autocomplete" | "readonly" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "autofocus" | "rows">;
135
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "readonly" | "clearable" | "modelValue" | "id" | "autosize" | "autocomplete" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "autofocus" | "rows">;
136
136
  $attrs: {
137
137
  [x: string]: unknown;
138
138
  };
@@ -132,7 +132,7 @@ declare const _default: import("vue").DefineComponent<{
132
132
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
133
133
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
134
134
  onClear?: (() => any) | undefined;
135
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "modelValue" | "id" | "disabled" | "autosize" | "autocomplete" | "readonly" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "autofocus" | "rows">;
135
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "readonly" | "clearable" | "modelValue" | "id" | "autosize" | "autocomplete" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "autofocus" | "rows">;
136
136
  $attrs: {
137
137
  [x: string]: unknown;
138
138
  };
@@ -93,8 +93,8 @@ export declare const HzztDropdown: import("hzzt-plus/es/utils").SFCWithInstall<i
93
93
  }>> & {
94
94
  onChange?: ((...args: any[]) => any) | undefined;
95
95
  }, {
96
- props: Record<string, any>;
97
96
  options: import("..").OptionType[];
97
+ props: Record<string, any>;
98
98
  defaultValue: unknown[];
99
99
  position: string;
100
100
  returnType: string;
@@ -94,8 +94,8 @@ declare const _default: import("vue").DefineComponent<{
94
94
  }>> & {
95
95
  onChange?: ((...args: any[]) => any) | undefined;
96
96
  }, {
97
- props: Record<string, any>;
98
97
  options: OptionType[];
98
+ props: Record<string, any>;
99
99
  defaultValue: unknown[];
100
100
  position: string;
101
101
  returnType: string;
@@ -13,3 +13,5 @@ export * from './quarter-picker';
13
13
  export * from './scan';
14
14
  export * from './select-input';
15
15
  export * from './select-textarea';
16
+ export * from './input-range';
17
+ export * from './cascader';
@@ -13,11 +13,15 @@ export { HzztQuarterPicker } from './quarter-picker/index.mjs';
13
13
  export { HzztScan } from './scan/index.mjs';
14
14
  export { HzztSelectInput } from './select-input/index.mjs';
15
15
  export { HzztSelectTextarea } from './select-textarea/index.mjs';
16
+ export { HzztInputRange } from './input-range/index.mjs';
17
+ export { HzztCascader } from './cascader/index.mjs';
16
18
  export { titleProps } from './title/src/title.mjs';
17
19
  export { configProviderProps } from './config-provider/src/config-provider-props.mjs';
18
20
  export { configProviderContextKey } from './config-provider/src/constants.mjs';
19
21
  export { provideGlobalConfig, useGlobalConfig } from './config-provider/src/hooks/use-global-config.mjs';
20
- export { scanEmits, scanProps } from './scan/src/scan.mjs';
22
+ export { scanEmits, scanProps } from './scan/src/scan2.mjs';
21
23
  export { selectInputEmits, selectInputProps } from './select-input/src/select-input.mjs';
22
24
  export { selectTextareaEmits, selectTextareaProps } from './select-textarea/src/select-textarea.mjs';
25
+ export { inputRangeEmits, inputRangeProps } from './input-range/src/input-range.mjs';
26
+ export { cascaderEmits, cascaderProps } from './cascader/src/cascader.mjs';
23
27
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,5 @@
1
+ import InputRange from './src/input-range.vue';
2
+ import type { SFCWithInstall } from 'hzzt-plus/es/utils';
3
+ export declare const HzztInputRange: SFCWithInstall<typeof InputRange>;
4
+ export default HzztInputRange;
5
+ export * from './src/input-range';
@@ -0,0 +1,9 @@
1
+ import '../../utils/index.mjs';
2
+ import InputRange from './src/input-range2.mjs';
3
+ export { inputRangeEmits, inputRangeProps } from './src/input-range.mjs';
4
+ import { withInstall } from '../../utils/vue/install.mjs';
5
+
6
+ const HzztInputRange = withInstall(InputRange);
7
+
8
+ export { HzztInputRange, HzztInputRange as default };
9
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/input-range/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\nimport InputRange from './src/input-range.vue'\nimport type { SFCWithInstall } from '@hzzt-plus/utils'\n\nexport const HzztInputRange: SFCWithInstall<typeof InputRange> = withInstall(InputRange)\nexport default HzztInputRange\n\nexport * from './src/input-range'\n"],"names":[],"mappings":";;;;;AAEY,MAAC,cAAc,GAAG,WAAW,CAAC,UAAU;;;;"}
@@ -0,0 +1,24 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ import type InputRange from './input-range.vue';
3
+ export declare const inputRangeProps: {
4
+ modelValue: import("hzzt-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
5
+ size: {
6
+ readonly type: import("vue").PropType<import("hzzt-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
7
+ readonly required: false;
8
+ readonly validator: ((val: unknown) => boolean) | undefined;
9
+ __epPropKey: true;
10
+ };
11
+ disabled: BooleanConstructor;
12
+ clearable: import("hzzt-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
13
+ startPlaceholder: StringConstructor;
14
+ endPlaceholder: StringConstructor;
15
+ startProps: ObjectConstructor;
16
+ endProps: ObjectConstructor;
17
+ };
18
+ export declare type InputRangeProps = ExtractPropTypes<typeof inputRangeProps>;
19
+ export declare const inputRangeEmits: {
20
+ "update:modelValue": (val: Array<string>) => boolean;
21
+ change: (val: Array<string>) => boolean;
22
+ };
23
+ export declare type InputRangeEmits = typeof inputRangeEmits;
24
+ export declare type InputRangeInstance = InstanceType<typeof InputRange>;
@@ -0,0 +1,31 @@
1
+ import '../../../utils/index.mjs';
2
+ import '../../../hooks/index.mjs';
3
+ import '../../../constants/index.mjs';
4
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
5
+ import { useSizeProp } from '../../../hooks/use-size/index.mjs';
6
+ import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
7
+ import { isArray } from '@vue/shared';
8
+
9
+ const inputRangeProps = buildProps({
10
+ modelValue: {
11
+ type: Array,
12
+ default: () => []
13
+ },
14
+ size: useSizeProp,
15
+ disabled: Boolean,
16
+ clearable: {
17
+ type: Boolean,
18
+ default: false
19
+ },
20
+ startPlaceholder: String,
21
+ endPlaceholder: String,
22
+ startProps: Object,
23
+ endProps: Object
24
+ });
25
+ const inputRangeEmits = {
26
+ [UPDATE_MODEL_EVENT]: (val) => isArray(val),
27
+ [CHANGE_EVENT]: (val) => isArray(val)
28
+ };
29
+
30
+ export { inputRangeEmits, inputRangeProps };
31
+ //# sourceMappingURL=input-range.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-range.mjs","sources":["../../../../../../packages/components/input-range/src/input-range.ts"],"sourcesContent":["import {buildProps, isArray} from '@hzzt-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type InputRange from './input-range.vue'\nimport {useSizeProp} from \"@hzzt-plus/hooks\";\nimport {CHANGE_EVENT, UPDATE_MODEL_EVENT} from \"@hzzt-plus/constants\";\n\nexport const inputRangeProps = buildProps({\n modelValue: {\n type: Array,\n default: () => [],\n },\n size: useSizeProp,\n disabled: Boolean,\n clearable: {\n type: Boolean,\n default: false,\n },\n startPlaceholder: String,\n endPlaceholder: String,\n startProps: Object,\n endProps: Object,\n})\n\nexport type InputRangeProps = ExtractPropTypes<typeof inputRangeProps>\n\nexport const inputRangeEmits = {\n [UPDATE_MODEL_EVENT]: (val: Array<string>) => isArray(val),\n [CHANGE_EVENT]: (val: Array<string>) => isArray(val),\n}\nexport type InputRangeEmits = typeof inputRangeEmits\n\nexport type InputRangeInstance = InstanceType<typeof InputRange>\n"],"names":[],"mappings":";;;;;;;;AAGY,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,gBAAgB,EAAE,MAAM;AAC1B,EAAE,cAAc,EAAE,MAAM;AACxB,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,QAAQ,EAAE,MAAM;AAClB,CAAC,EAAE;AACS,MAAC,eAAe,GAAG;AAC/B,EAAE,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;AAC7C,EAAE,CAAC,YAAY,GAAG,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;AACvC;;;;"}
@@ -0,0 +1,86 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ modelValue: import("../../../utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
3
+ size: {
4
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
5
+ readonly required: false;
6
+ readonly validator: ((val: unknown) => boolean) | undefined;
7
+ __epPropKey: true;
8
+ };
9
+ disabled: BooleanConstructor;
10
+ clearable: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
11
+ startPlaceholder: StringConstructor;
12
+ endPlaceholder: StringConstructor;
13
+ startProps: ObjectConstructor;
14
+ endProps: ObjectConstructor;
15
+ }, {
16
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
17
+ modelValue: import("../../../utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
18
+ size: {
19
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
20
+ readonly required: false;
21
+ readonly validator: ((val: unknown) => boolean) | undefined;
22
+ __epPropKey: true;
23
+ };
24
+ disabled: BooleanConstructor;
25
+ clearable: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
26
+ startPlaceholder: StringConstructor;
27
+ endPlaceholder: StringConstructor;
28
+ startProps: ObjectConstructor;
29
+ endProps: ObjectConstructor;
30
+ }>> & {
31
+ "onUpdate:modelValue"?: ((val: string[]) => any) | undefined;
32
+ onChange?: ((val: string[]) => any) | undefined;
33
+ }>>;
34
+ emit: ((event: "update:modelValue", val: string[]) => void) & ((event: "change", val: string[]) => void);
35
+ startValue: import("vue").Ref<unknown>;
36
+ endValue: import("vue").Ref<unknown>;
37
+ nsInput: {
38
+ namespace: import("vue").ComputedRef<string>;
39
+ b: (blockSuffix?: string) => string;
40
+ e: (element?: string | undefined) => string;
41
+ m: (modifier?: string | undefined) => string;
42
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
43
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
44
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
45
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
46
+ is: {
47
+ (name: string, state: boolean | undefined): string;
48
+ (name: string): string;
49
+ };
50
+ cssVar: (object: Record<string, string>) => Record<string, string>;
51
+ cssVarName: (name: string) => string;
52
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
53
+ cssVarBlockName: (name: string) => string;
54
+ };
55
+ formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
56
+ formDisabled: import("vue").ComputedRef<boolean>;
57
+ trueSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
58
+ trueDisabled: import("vue").ComputedRef<boolean>;
59
+ containerCls: import("vue").ComputedRef<string[]>;
60
+ change: () => void;
61
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
62
+ "update:modelValue": (val: string[]) => boolean;
63
+ change: (val: string[]) => boolean;
64
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
65
+ modelValue: import("../../../utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
66
+ size: {
67
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
68
+ readonly required: false;
69
+ readonly validator: ((val: unknown) => boolean) | undefined;
70
+ __epPropKey: true;
71
+ };
72
+ disabled: BooleanConstructor;
73
+ clearable: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
74
+ startPlaceholder: StringConstructor;
75
+ endPlaceholder: StringConstructor;
76
+ startProps: ObjectConstructor;
77
+ endProps: ObjectConstructor;
78
+ }>> & {
79
+ "onUpdate:modelValue"?: ((val: string[]) => any) | undefined;
80
+ onChange?: ((val: string[]) => any) | undefined;
81
+ }, {
82
+ disabled: boolean;
83
+ clearable: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
84
+ modelValue: unknown[];
85
+ }>;
86
+ export default _default;