hzzt-plus 1.0.2 → 1.0.3

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 (96) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.full.js +275 -176
  3. package/dist/index.full.min.js +15 -15
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +12 -12
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +273 -177
  8. package/es/component.mjs +3 -1
  9. package/es/component.mjs.map +1 -1
  10. package/es/components/collapse/index.mjs +2 -2
  11. package/es/components/collapse/src/collapse.mjs +67 -0
  12. package/es/components/collapse/src/collapse.mjs.map +1 -1
  13. package/es/components/collapse/src/collapse2.mjs +0 -67
  14. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  15. package/es/components/index.d.ts +1 -0
  16. package/es/components/index.mjs +2 -0
  17. package/es/components/index.mjs.map +1 -1
  18. package/es/components/input-range/index.d.ts +5 -0
  19. package/es/components/input-range/index.mjs +9 -0
  20. package/es/components/input-range/index.mjs.map +1 -0
  21. package/es/components/input-range/src/input-range.d.ts +24 -0
  22. package/es/components/input-range/src/input-range.mjs +31 -0
  23. package/es/components/input-range/src/input-range.mjs.map +1 -0
  24. package/es/components/input-range/src/input-range.vue.d.ts +86 -0
  25. package/es/components/input-range/src/input-range2.mjs +81 -0
  26. package/es/components/input-range/src/input-range2.mjs.map +1 -0
  27. package/es/components/input-range/style/css.d.ts +2 -0
  28. package/es/components/input-range/style/css.mjs +3 -0
  29. package/es/components/input-range/style/css.mjs.map +1 -0
  30. package/es/components/input-range/style/index.d.ts +2 -0
  31. package/es/components/input-range/style/index.mjs +3 -0
  32. package/es/components/input-range/style/index.mjs.map +1 -0
  33. package/es/components/select-input/index.d.ts +10 -10
  34. package/es/components/select-input/src/select-input.d.ts +3 -3
  35. package/es/components/select-input/src/select-input.mjs.map +1 -1
  36. package/es/components/select-input/src/select-input.vue.d.ts +10 -10
  37. package/es/components/select-textarea/index.d.ts +3 -13074
  38. package/es/components/select-textarea/index.mjs.map +1 -1
  39. package/es/components/select-textarea/src/select-textarea.d.ts +4 -4
  40. package/es/components/select-textarea/src/select-textarea.mjs +6 -5
  41. package/es/components/select-textarea/src/select-textarea.mjs.map +1 -1
  42. package/es/components/select-textarea/src/select-textarea.vue.d.ts +13 -13
  43. package/es/components/select-textarea/src/select-textarea2.mjs +1 -1
  44. package/es/components/select-textarea/src/select-textarea2.mjs.map +1 -1
  45. package/es/hooks/use-cursor/index.d.ts +1 -1
  46. package/es/hooks/use-cursor/index.mjs.map +1 -1
  47. package/es/index.mjs +2 -0
  48. package/es/index.mjs.map +1 -1
  49. package/global.d.ts +1 -0
  50. package/lib/component.js +3 -1
  51. package/lib/component.js.map +1 -1
  52. package/lib/components/collapse/index.js +2 -2
  53. package/lib/components/collapse/src/collapse.js +70 -0
  54. package/lib/components/collapse/src/collapse.js.map +1 -1
  55. package/lib/components/collapse/src/collapse2.js +0 -70
  56. package/lib/components/collapse/src/collapse2.js.map +1 -1
  57. package/lib/components/index.d.ts +1 -0
  58. package/lib/components/index.js +5 -0
  59. package/lib/components/index.js.map +1 -1
  60. package/lib/components/input-range/index.d.ts +5 -0
  61. package/lib/components/input-range/index.js +16 -0
  62. package/lib/components/input-range/index.js.map +1 -0
  63. package/lib/components/input-range/src/input-range.d.ts +24 -0
  64. package/lib/components/input-range/src/input-range.js +36 -0
  65. package/lib/components/input-range/src/input-range.js.map +1 -0
  66. package/lib/components/input-range/src/input-range.vue.d.ts +86 -0
  67. package/lib/components/input-range/src/input-range2.js +85 -0
  68. package/lib/components/input-range/src/input-range2.js.map +1 -0
  69. package/lib/components/input-range/style/css.d.ts +2 -0
  70. package/lib/components/input-range/style/css.js +6 -0
  71. package/lib/components/input-range/style/css.js.map +1 -0
  72. package/lib/components/input-range/style/index.d.ts +2 -0
  73. package/lib/components/input-range/style/index.js +6 -0
  74. package/lib/components/input-range/style/index.js.map +1 -0
  75. package/lib/components/select-input/index.d.ts +10 -10
  76. package/lib/components/select-input/src/select-input.d.ts +3 -3
  77. package/lib/components/select-input/src/select-input.js.map +1 -1
  78. package/lib/components/select-input/src/select-input.vue.d.ts +10 -10
  79. package/lib/components/select-textarea/index.d.ts +3 -13074
  80. package/lib/components/select-textarea/index.js.map +1 -1
  81. package/lib/components/select-textarea/src/select-textarea.d.ts +4 -4
  82. package/lib/components/select-textarea/src/select-textarea.js +5 -4
  83. package/lib/components/select-textarea/src/select-textarea.js.map +1 -1
  84. package/lib/components/select-textarea/src/select-textarea.vue.d.ts +13 -13
  85. package/lib/components/select-textarea/src/select-textarea2.js +1 -1
  86. package/lib/components/select-textarea/src/select-textarea2.js.map +1 -1
  87. package/lib/hooks/use-cursor/index.d.ts +1 -1
  88. package/lib/hooks/use-cursor/index.js.map +1 -1
  89. package/lib/index.js +35 -30
  90. package/lib/index.js.map +1 -1
  91. package/package.json +1 -1
  92. package/tags.json +1 -1
  93. package/theme/hzzt-input-range.css +0 -0
  94. package/theme/src/index.scss +1 -0
  95. package/theme/src/input-range.scss +0 -0
  96. package/web-types.json +1 -692
package/es/component.mjs CHANGED
@@ -13,6 +13,7 @@ import { HzztQuarterPicker } from './components/quarter-picker/index.mjs';
13
13
  import { HzztScan } from './components/scan/index.mjs';
14
14
  import { HzztSelectInput } from './components/select-input/index.mjs';
15
15
  import { HzztSelectTextarea } from './components/select-textarea/index.mjs';
16
+ import { HzztInputRange } from './components/input-range/index.mjs';
16
17
 
17
18
  var Components = [
18
19
  HzztConfigProvider,
@@ -29,7 +30,8 @@ var Components = [
29
30
  HzztQuarterPicker,
30
31
  HzztScan,
31
32
  HzztSelectInput,
32
- HzztSelectTextarea
33
+ HzztSelectTextarea,
34
+ HzztInputRange
33
35
  ];
34
36
 
35
37
  export { Components as default };
@@ -1 +1 @@
1
- {"version":3,"file":"component.mjs","sources":["../../../packages/hzzt-plus/component.ts"],"sourcesContent":["import { HzztTitle } from '@hzzt-plus/components/title'\nimport { HzztDropdown } from '@hzzt-plus/components/dropdown'\nimport { HzztCollapse } from '@hzzt-plus/components/collapse'\nimport { HzztConfigProvider } from '@hzzt-plus/components/config-provider'\nimport { HzztTab } from '@hzzt-plus/components/tab'\nimport { HzztIcon } from '@hzzt-plus/components/icon'\nimport { HzztPagination } from '@hzzt-plus/components/pagination'\nimport { HzztTooltip } from '@hzzt-plus/components/tooltip'\nimport { HzztPageSize } from '@hzzt-plus/components/page-size'\nimport { HzztConfirmPassword } from '@hzzt-plus/components/confirm-password'\nimport { HzztCheckButton } from '@hzzt-plus/components/check-button'\nimport { HzztQuarterPicker } from '@hzzt-plus/components/quarter-picker'\nimport { HzztScan } from '@hzzt-plus/components/scan'\nimport { HzztSelectInput } from '@hzzt-plus/components/select-input'\nimport { HzztSelectTextarea } from '@hzzt-plus/components/select-textarea'\n\nimport type { Plugin } from 'vue'\n\nexport default [\n HzztConfigProvider,\n HzztTitle,\n HzztDropdown,\n HzztCollapse,\n HzztTab,\n HzztIcon,\n HzztPagination,\n HzztTooltip,\n HzztPageSize,\n HzztConfirmPassword,\n HzztCheckButton,\n HzztQuarterPicker,\n HzztScan,\n HzztSelectInput,\n HzztSelectTextarea,\n] as Plugin[]\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeA,iBAAe;AACf,EAAE,kBAAkB;AACpB,EAAE,SAAS;AACX,EAAE,YAAY;AACd,EAAE,YAAY;AACd,EAAE,OAAO;AACT,EAAE,QAAQ;AACV,EAAE,cAAc;AAChB,EAAE,WAAW;AACb,EAAE,YAAY;AACd,EAAE,mBAAmB;AACrB,EAAE,eAAe;AACjB,EAAE,iBAAiB;AACnB,EAAE,QAAQ;AACV,EAAE,eAAe;AACjB,EAAE,kBAAkB;AACpB,CAAC;;;;"}
1
+ {"version":3,"file":"component.mjs","sources":["../../../packages/hzzt-plus/component.ts"],"sourcesContent":["import { HzztTitle } from '@hzzt-plus/components/title'\nimport { HzztDropdown } from '@hzzt-plus/components/dropdown'\nimport { HzztCollapse } from '@hzzt-plus/components/collapse'\nimport { HzztConfigProvider } from '@hzzt-plus/components/config-provider'\nimport { HzztTab } from '@hzzt-plus/components/tab'\nimport { HzztIcon } from '@hzzt-plus/components/icon'\nimport { HzztPagination } from '@hzzt-plus/components/pagination'\nimport { HzztTooltip } from '@hzzt-plus/components/tooltip'\nimport { HzztPageSize } from '@hzzt-plus/components/page-size'\nimport { HzztConfirmPassword } from '@hzzt-plus/components/confirm-password'\nimport { HzztCheckButton } from '@hzzt-plus/components/check-button'\nimport { HzztQuarterPicker } from '@hzzt-plus/components/quarter-picker'\nimport { HzztScan } from '@hzzt-plus/components/scan'\nimport { HzztSelectInput } from '@hzzt-plus/components/select-input'\nimport { HzztSelectTextarea } from '@hzzt-plus/components/select-textarea'\nimport { HzztInputRange } from '@hzzt-plus/components/input-range'\n\nimport type { Plugin } from 'vue'\n\nexport default [\n HzztConfigProvider,\n HzztTitle,\n HzztDropdown,\n HzztCollapse,\n HzztTab,\n HzztIcon,\n HzztPagination,\n HzztTooltip,\n HzztPageSize,\n HzztConfirmPassword,\n HzztCheckButton,\n HzztQuarterPicker,\n HzztScan,\n HzztSelectInput,\n HzztSelectTextarea,\n HzztInputRange,\n] as Plugin[]\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAgBA,iBAAe;AACf,EAAE,kBAAkB;AACpB,EAAE,SAAS;AACX,EAAE,YAAY;AACd,EAAE,YAAY;AACd,EAAE,OAAO;AACT,EAAE,QAAQ;AACV,EAAE,cAAc;AAChB,EAAE,WAAW;AACb,EAAE,YAAY;AACd,EAAE,mBAAmB;AACrB,EAAE,eAAe;AACjB,EAAE,iBAAiB;AACnB,EAAE,QAAQ;AACV,EAAE,eAAe;AACjB,EAAE,kBAAkB;AACpB,EAAE,cAAc;AAChB,CAAC;;;;"}
@@ -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":""}
@@ -13,3 +13,4 @@ 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';
@@ -13,6 +13,7 @@ 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';
16
17
  export { titleProps } from './title/src/title.mjs';
17
18
  export { configProviderProps } from './config-provider/src/config-provider-props.mjs';
18
19
  export { configProviderContextKey } from './config-provider/src/constants.mjs';
@@ -20,4 +21,5 @@ export { provideGlobalConfig, useGlobalConfig } from './config-provider/src/hook
20
21
  export { scanEmits, scanProps } from './scan/src/scan.mjs';
21
22
  export { selectInputEmits, selectInputProps } from './select-input/src/select-input.mjs';
22
23
  export { selectTextareaEmits, selectTextareaProps } from './select-textarea/src/select-textarea.mjs';
24
+ export { inputRangeEmits, inputRangeProps } from './input-range/src/input-range.mjs';
23
25
  //# 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
+ modelValue: unknown[];
83
+ disabled: boolean;
84
+ clearable: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
85
+ }>;
86
+ export default _default;
@@ -0,0 +1,81 @@
1
+ import { createElementVNode, defineComponent, ref, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, mergeProps } from 'vue';
2
+ import { inputRangeProps, inputRangeEmits } from './input-range.mjs';
3
+ import { useFormSize, useFormDisabled } from 'element-plus';
4
+ import '../../../hooks/index.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
7
+ import { useGlobalSize } from '../../../hooks/use-size/index.mjs';
8
+
9
+ const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", { class: "margin-h-1" }, "\u2014\u2014", -1);
10
+ const __default__ = defineComponent({
11
+ name: "HzztInputRange"
12
+ });
13
+ const _sfc_main = /* @__PURE__ */ defineComponent({
14
+ ...__default__,
15
+ props: inputRangeProps,
16
+ emits: inputRangeEmits,
17
+ setup(__props, { emit }) {
18
+ const props = __props;
19
+ const startValue = ref(props.modelValue[0]);
20
+ const endValue = ref(props.modelValue[1]);
21
+ const nsInput = useNamespace("input-range");
22
+ const formSize = useFormSize();
23
+ const formDisabled = useFormDisabled();
24
+ const trueSize = computed(() => props.size || formSize.value || useGlobalSize().value);
25
+ const trueDisabled = computed(() => props.disabled || formDisabled.value);
26
+ const containerCls = computed(() => [
27
+ nsInput.b(),
28
+ nsInput.m(trueSize.value)
29
+ ]);
30
+ watch(() => props.modelValue, (v) => {
31
+ startValue.value = v[0];
32
+ endValue.value = v[1];
33
+ }, {
34
+ deep: true
35
+ });
36
+ function change() {
37
+ if (startValue.value && endValue.value) {
38
+ const modelValue = [startValue.value, endValue.value];
39
+ emit("update:modelValue", modelValue);
40
+ emit("change", modelValue);
41
+ } else if (!startValue.value && !endValue.value) {
42
+ emit("update:modelValue", []);
43
+ emit("change", []);
44
+ }
45
+ }
46
+ return (_ctx, _cache) => {
47
+ const _component_el_input = resolveComponent("el-input");
48
+ return openBlock(), createElementBlock("div", {
49
+ class: normalizeClass(["flex align-items-center", unref(containerCls)])
50
+ }, [
51
+ createVNode(_component_el_input, mergeProps({
52
+ modelValue: startValue.value,
53
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => startValue.value = $event)
54
+ }, _ctx.startProps, {
55
+ clearable: _ctx.clearable,
56
+ placeholder: _ctx.startPlaceholder,
57
+ size: unref(trueSize),
58
+ disabled: unref(trueDisabled),
59
+ class: "flex-1",
60
+ onChange: change
61
+ }), null, 16, ["modelValue", "clearable", "placeholder", "size", "disabled"]),
62
+ _hoisted_1,
63
+ createVNode(_component_el_input, mergeProps({
64
+ modelValue: endValue.value,
65
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => endValue.value = $event)
66
+ }, _ctx.endProps, {
67
+ clearable: _ctx.clearable,
68
+ placeholder: _ctx.endPlaceholder,
69
+ size: unref(trueSize),
70
+ disabled: unref(trueDisabled),
71
+ class: "flex-1",
72
+ onChange: change
73
+ }), null, 16, ["modelValue", "clearable", "placeholder", "size", "disabled"])
74
+ ], 2);
75
+ };
76
+ }
77
+ });
78
+ var InputRange = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "input-range.vue"]]);
79
+
80
+ export { InputRange as default };
81
+ //# sourceMappingURL=input-range2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-range2.mjs","sources":["../../../../../../packages/components/input-range/src/input-range.vue"],"sourcesContent":["<template>\n <div class=\"flex align-items-center\" :class=\"containerCls\">\n <el-input\n v-model=\"startValue\"\n v-bind=\"startProps\"\n :clearable=\"clearable\"\n :placeholder=\"startPlaceholder\"\n :size=\"trueSize\"\n :disabled=\"trueDisabled\"\n class=\"flex-1\"\n @change=\"change\"\n />\n <span class=\"margin-h-1\">——</span>\n <el-input\n v-model=\"endValue\"\n v-bind=\"endProps\"\n :clearable=\"clearable\"\n :placeholder=\"endPlaceholder\"\n :size=\"trueSize\"\n :disabled=\"trueDisabled\"\n class=\"flex-1\"\n @change=\"change\"\n />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import {inputRangeEmits, inputRangeProps} from './input-range'\n import {useFormDisabled, useFormSize} from \"element-plus\";\n import {computed, ref, watch} from \"vue\";\n import {useGlobalSize, useNamespace} from \"@hzzt-plus/hooks\";\n\n defineOptions({\n name: 'HzztInputRange',\n })\n\n const props = defineProps(inputRangeProps)\n const emit = defineEmits(inputRangeEmits)\n\n const startValue = ref(props.modelValue[0])\n const endValue = ref(props.modelValue[1])\n\n const nsInput = useNamespace('input-range')\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 nsInput.b(),\n nsInput.m(trueSize.value),\n ])\n\n watch(() => props.modelValue, (v) => {\n startValue.value = v[0];\n endValue.value = v[1];\n }, {\n deep: true,\n })\n\n function change() {\n if (startValue.value && endValue.value) {\n const modelValue = [startValue.value, endValue.value] as Array<string>;\n emit('update:modelValue', modelValue);\n emit('change', modelValue);\n } else if (!startValue.value && !endValue.value) {\n emit('update:modelValue', []);\n emit('change', []);\n }\n }\n\n</script>\n"],"names":["_defineComponent","_resolveComponent","_openBlock","_createElementBlock","_unref","_createVNode","_mergeProps"],"mappings":";;;;;;;;;;AA2BE,EAAA,IAAA,EAAA;AACA,CAAA,CAAA,CAAA;AACA,MAAQ,SAAA,mBAA2BA,eAAA,CAAA;AACnC,EAAA,GAAA;;wBAEc;AAAA,EACZ,KAAM,CAAA,OAAA,EAAA,EAAA,IAAA,EAAA,EAAA;AACR,IAAA,MAAA,KAAA,GAAA,OAAA,CAAA;;;;;;;AAKA,IAAA,MAAM,YAAa,GAAA,QAAU,CAAA,MAAA,KAAY,CAAC,QAAA,IAAA,YAAA,CAAA,KAAA,CAAA,CAAA;AAC1C,IAAA,MAAM,YAAW,GAAI,QAAM,CAAA,MAAA;AAE3B,MAAM,OAAA,CAAA,CAAA,EAAA;AAEN,MAAA,kBAA6B,CAAA,KAAA,CAAA;AAC7B,KAAA,CAAA,CAAA;AAEA,IAAA,KAAA,CAAM,MAAW,KAAA,CAAA,UAAA,EAAA,CAAA,CAAA,KAAA;AAAA,MACf,UAAY,CAAA,KAAA,GAAA,CAAQ,CAAS,CAAA,CAAA,CAAA;AAAyB,MACxD,QAAA,CAAA,KAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAEA,KAAA,EAAA;AAEA,MAAM,IAAA,EAAA,IAAA;AAA8B,KAAA,CAClC;AAAU,IACV,SAAA,MAAU,GAAA;AAAc,MACzB,IAAA,UAAA,CAAA,KAAA,IAAA,QAAA,CAAA,KAAA,EAAA;AAED,QAAA,MAAY,UAAkB,GAAA,CAAA,UAAO,CAAA,KAAA,EAAA,QAAA,CAAA,KAAA,CAAA,CAAA;AACnC,QAAW,IAAA,CAAA,mBAAW,EAAA,UAAA,CAAA,CAAA;AACtB,QAAS,IAAA,CAAA,QAAA,EAAQ,UAAG,CAAA,CAAA;AAAA,OACnB,MAAA,IAAA,CAAA,UAAA,CAAA,KAAA,IAAA,CAAA,QAAA,CAAA,KAAA,EAAA;AAAA,QACK,IAAA,CAAA,mBAAA,EAAA,EAAA,CAAA,CAAA;AAAA,QACP,IAAA,CAAA,QAAA,EAAA,EAAA,CAAA,CAAA;AAED,OAAA;AACE,KAAI;AACF,IAAA,OAAA,CAAA,IAAmB,EAAA,MAAA,KAAY;AAC/B,MAAA,MAAA,sBAA0BC,gBAAU,CAAA,UAAA,CAAA,CAAA;AACpC,MAAA,OAAKC,SAAU,EAAU,EAAAC,kBAAA,CAAA,KAAA,EAAA;AAAA,6BACK,CAAA,CAAA,yBAAiB,EAAAC,KAAA,CAAA,YAAA,CAAA,CAAA,CAAA;AAC/C,OAAK,EAAA;AACL,QAAKC,WAAA,CAAA,mBAAY,EAAAC,UAAA,CAAA;AAAA,UACnB,UAAA,EAAA,UAAA,CAAA,KAAA;AAAA,UACF,qBAAA,EAAA,MAAA,CAAA,CAAA,CAAA,KAAA,MAAA,CAAA,CAAA,CAAA,GAAA,CAAA,MAAA,KAAA,UAAA,CAAA,KAAA,GAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ import 'hzzt-plus/es/components/base/style/css';
2
+ import 'hzzt-plus/theme/hzzt-input-range.css';
@@ -0,0 +1,3 @@
1
+ import '../../base/style/css.mjs';
2
+ import 'hzzt-plus/theme/hzzt-input-range.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/input-range.scss';
@@ -0,0 +1,3 @@
1
+ import '../../base/style/index.mjs';
2
+ import 'hzzt-plus/theme/src/input-range.scss';
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -46,11 +46,11 @@ export declare const HzztSelectInput: import("hzzt-plus/es/utils").SFCWithInstal
46
46
  __epPropKey: true;
47
47
  };
48
48
  }>> & {
49
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
50
- onChange?: ((value: string) => any) | undefined;
51
- onInput?: ((value: string) => any) | undefined;
49
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
50
+ onChange?: ((value: string | undefined) => any) | undefined;
51
+ onInput?: ((value: string | undefined) => any) | undefined;
52
52
  }>>;
53
- emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void);
53
+ emit: ((event: "update:modelValue", value: string | undefined) => void) & ((event: "change", value: string | undefined) => void) & ((event: "input", value: string | undefined) => void);
54
54
  inputVal: import("vue").Ref<import("hzzt-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown>>;
55
55
  nsInput: {
56
56
  namespace: import("vue").ComputedRef<string>;
@@ -783,9 +783,9 @@ export declare const HzztSelectInput: import("hzzt-plus/es/utils").SFCWithInstal
783
783
  };
784
784
  })>;
785
785
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
786
- "update:modelValue": (value: string) => boolean;
787
- input: (value: string) => boolean;
788
- change: (value: string) => boolean;
786
+ "update:modelValue": (value: string | undefined) => boolean;
787
+ input: (value: string | undefined) => boolean;
788
+ change: (value: string | undefined) => boolean;
789
789
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
790
790
  modelValue: import("hzzt-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown, string, boolean>;
791
791
  indexType: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
@@ -810,9 +810,9 @@ export declare const HzztSelectInput: import("hzzt-plus/es/utils").SFCWithInstal
810
810
  __epPropKey: true;
811
811
  };
812
812
  }>> & {
813
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
814
- onChange?: ((value: string) => any) | undefined;
815
- onInput?: ((value: string) => any) | undefined;
813
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
814
+ onChange?: ((value: string | undefined) => any) | undefined;
815
+ onInput?: ((value: string | undefined) => any) | undefined;
816
816
  }, {
817
817
  replace: boolean;
818
818
  split: string;
@@ -32,9 +32,9 @@ export declare const selectInputProps: {
32
32
  };
33
33
  export declare type SelectInputProps = ExtractPropTypes<typeof selectInputProps>;
34
34
  export declare const selectInputEmits: {
35
- "update:modelValue": (value: string) => boolean;
36
- input: (value: string) => boolean;
37
- change: (value: string) => boolean;
35
+ "update:modelValue": (value: string | undefined) => boolean;
36
+ input: (value: string | undefined) => boolean;
37
+ change: (value: string | undefined) => boolean;
38
38
  };
39
39
  export declare type SelectInputEmits = typeof selectInputEmits;
40
40
  export declare type SelectInputInstance = InstanceType<typeof SelectInput>;
@@ -1 +1 @@
1
- {"version":3,"file":"select-input.mjs","sources":["../../../../../../packages/components/select-input/src/select-input.ts"],"sourcesContent":["import {buildProps, definePropType, isString} from '@hzzt-plus/utils'\nimport {useSizeProp} from \"@hzzt-plus/hooks\";\n\nimport type { ExtractPropTypes } from 'vue'\nimport type SelectInput from './select-input.vue'\nimport {UPDATE_MODEL_EVENT} from \"@hzzt-plus/constants\";\n\ntype OptionCommon = Record<string, any>\n\nexport type Option = OptionCommon & {\n created?: boolean\n}\n\nexport type OptionGroup = OptionCommon\n\nexport type OptionType = Option | OptionGroup\n\nexport const selectInputProps = buildProps({\n modelValue: {\n type: definePropType<string | number | null | undefined>([\n String,\n Number,\n ]),\n default: '',\n },\n indexType: {\n type: String,\n default: 'number',\n },\n disabled: Boolean,\n replace: Boolean,\n label: String,\n data: {\n type: definePropType<OptionType[]>(Array),\n default: () => [],\n },\n inputProps: Object,\n customProps: Object,\n position: {\n type: String,\n default: 'left',\n },\n formatLabel: {\n type: Function,\n },\n split: {\n type: String,\n default: '',\n },\n size: useSizeProp,\n})\n\nexport type SelectInputProps = ExtractPropTypes<typeof selectInputProps>\n\nexport const selectInputEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n input: (value: string) => isString(value),\n change: (value: string) => isString(value),\n}\nexport type SelectInputEmits = typeof selectInputEmits\n\nexport type SelectInputInstance = InstanceType<typeof SelectInput>\n"],"names":[],"mappings":";;;;;;;;AAGY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC;AACzB,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,QAAQ;AAClB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,CAAC,EAAE;AACS,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAAC,kBAAkB,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AAClD,EAAE,KAAK,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AACnC,EAAE,MAAM,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AACpC;;;;"}
1
+ {"version":3,"file":"select-input.mjs","sources":["../../../../../../packages/components/select-input/src/select-input.ts"],"sourcesContent":["import {buildProps, definePropType, isString} from '@hzzt-plus/utils'\nimport {useSizeProp} from \"@hzzt-plus/hooks\";\n\nimport type { ExtractPropTypes } from 'vue'\nimport type SelectInput from './select-input.vue'\nimport {UPDATE_MODEL_EVENT} from \"@hzzt-plus/constants\";\n\ntype OptionCommon = Record<string, any>\n\nexport type Option = OptionCommon & {\n created?: boolean\n}\n\nexport type OptionGroup = OptionCommon\n\nexport type OptionType = Option | OptionGroup\n\nexport const selectInputProps = buildProps({\n modelValue: {\n type: definePropType<string | number | null | undefined>([\n String,\n Number,\n ]),\n default: '',\n },\n indexType: {\n type: String,\n default: 'number',\n },\n disabled: Boolean,\n replace: Boolean,\n label: String,\n data: {\n type: definePropType<OptionType[]>(Array),\n default: () => [],\n },\n inputProps: Object,\n customProps: Object,\n position: {\n type: String,\n default: 'left',\n },\n formatLabel: {\n type: Function,\n },\n split: {\n type: String,\n default: '',\n },\n size: useSizeProp,\n})\n\nexport type SelectInputProps = ExtractPropTypes<typeof selectInputProps>\n\nexport const selectInputEmits = {\n [UPDATE_MODEL_EVENT]: (value: string | undefined) => isString(value),\n input: (value: string | undefined) => isString(value),\n change: (value: string | undefined) => isString(value),\n}\nexport type SelectInputEmits = typeof selectInputEmits\n\nexport type SelectInputInstance = InstanceType<typeof SelectInput>\n"],"names":[],"mappings":";;;;;;;;AAGY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC;AACzB,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,QAAQ;AAClB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,CAAC,EAAE;AACS,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAAC,kBAAkB,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AAClD,EAAE,KAAK,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AACnC,EAAE,MAAM,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AACpC;;;;"}