hzzt-plus 0.0.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +438 -246
  3. package/dist/index.full.min.js +13 -13
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +13 -13
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +433 -248
  8. package/es/component.mjs +3 -1
  9. package/es/component.mjs.map +1 -1
  10. package/es/components/index.d.ts +1 -0
  11. package/es/components/index.mjs +3 -0
  12. package/es/components/index.mjs.map +1 -1
  13. package/es/components/scan/index.d.ts +5 -0
  14. package/es/components/scan/index.mjs +9 -0
  15. package/es/components/scan/index.mjs.map +1 -0
  16. package/es/components/scan/src/scan.d.ts +15 -0
  17. package/es/components/scan/src/scan.mjs +28 -0
  18. package/es/components/scan/src/scan.mjs.map +1 -0
  19. package/es/components/scan/src/scan.vue.d.ts +572 -0
  20. package/es/components/scan/src/scan2.mjs +149 -0
  21. package/es/components/scan/src/scan2.mjs.map +1 -0
  22. package/es/components/scan/style/css.d.ts +2 -0
  23. package/es/components/scan/style/css.mjs +3 -0
  24. package/es/components/scan/style/css.mjs.map +1 -0
  25. package/es/components/scan/style/index.d.ts +2 -0
  26. package/es/components/scan/style/index.mjs +3 -0
  27. package/es/components/scan/style/index.mjs.map +1 -0
  28. package/es/components/tab/index.d.ts +161 -3
  29. package/es/components/tab/src/index.mjs +19 -4
  30. package/es/components/tab/src/index.mjs.map +1 -1
  31. package/es/components/tab/src/index.vue.d.ts +162 -3
  32. package/es/components/title/index.d.ts +4 -29
  33. package/es/components/title/index.mjs +2 -1
  34. package/es/components/title/index.mjs.map +1 -1
  35. package/es/components/title/src/title.d.ts +8 -0
  36. package/es/components/title/src/title.mjs +8 -43
  37. package/es/components/title/src/title.mjs.map +1 -1
  38. package/es/components/title/src/title.vue.d.ts +7 -16
  39. package/es/components/title/src/title2.mjs +44 -0
  40. package/es/components/title/src/title2.mjs.map +1 -0
  41. package/es/constants/index.d.ts +1 -0
  42. package/es/constants/index.mjs +1 -0
  43. package/es/constants/index.mjs.map +1 -1
  44. package/es/index.mjs +4 -0
  45. package/es/index.mjs.map +1 -1
  46. package/global.d.ts +1 -0
  47. package/lib/component.js +3 -1
  48. package/lib/component.js.map +1 -1
  49. package/lib/components/index.d.ts +1 -0
  50. package/lib/components/index.js +7 -0
  51. package/lib/components/index.js.map +1 -1
  52. package/lib/components/scan/index.d.ts +5 -0
  53. package/lib/components/scan/index.js +16 -0
  54. package/lib/components/scan/index.js.map +1 -0
  55. package/lib/components/scan/src/scan.d.ts +15 -0
  56. package/lib/components/scan/src/scan.js +33 -0
  57. package/lib/components/scan/src/scan.js.map +1 -0
  58. package/lib/components/scan/src/scan.vue.d.ts +572 -0
  59. package/lib/components/scan/src/scan2.js +153 -0
  60. package/lib/components/scan/src/scan2.js.map +1 -0
  61. package/lib/components/scan/style/css.d.ts +2 -0
  62. package/lib/components/scan/style/css.js +6 -0
  63. package/lib/components/scan/style/css.js.map +1 -0
  64. package/lib/components/scan/style/index.d.ts +2 -0
  65. package/lib/components/scan/style/index.js +6 -0
  66. package/lib/components/scan/style/index.js.map +1 -0
  67. package/lib/components/tab/index.d.ts +161 -3
  68. package/lib/components/tab/src/index.js +18 -3
  69. package/lib/components/tab/src/index.js.map +1 -1
  70. package/lib/components/tab/src/index.vue.d.ts +162 -3
  71. package/lib/components/title/index.d.ts +4 -29
  72. package/lib/components/title/index.js +3 -1
  73. package/lib/components/title/index.js.map +1 -1
  74. package/lib/components/title/src/title.d.ts +8 -0
  75. package/lib/components/title/src/title.js +8 -43
  76. package/lib/components/title/src/title.js.map +1 -1
  77. package/lib/components/title/src/title.vue.d.ts +7 -16
  78. package/lib/components/title/src/title2.js +48 -0
  79. package/lib/components/title/src/title2.js.map +1 -0
  80. package/lib/constants/index.d.ts +1 -0
  81. package/lib/constants/index.js +4 -0
  82. package/lib/constants/index.js.map +1 -1
  83. package/lib/index.js +37 -26
  84. package/lib/index.js.map +1 -1
  85. package/package.json +1 -1
  86. package/theme/hzzt-collapse.css +1 -1
  87. package/theme/hzzt-scan.css +1 -0
  88. package/theme/hzzt-tab.css +1 -1
  89. package/theme/index.css +1 -1
  90. package/theme/src/collapse.scss +1 -0
  91. package/theme/src/index.scss +1 -0
  92. package/theme/src/scan.scss +80 -0
  93. package/theme/src/tab.scss +24 -6
@@ -1,3 +1,9 @@
1
+ declare type Tab = {
2
+ name: string;
3
+ label: string;
4
+ number: number;
5
+ hide: boolean;
6
+ };
1
7
  declare const _default: import("vue").DefineComponent<{
2
8
  tabList: {
3
9
  type: ArrayConstructor;
@@ -6,6 +12,10 @@ declare const _default: import("vue").DefineComponent<{
6
12
  modelValue: {
7
13
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
8
14
  };
15
+ closable: {
16
+ type: BooleanConstructor;
17
+ default: () => boolean;
18
+ };
9
19
  }, {
10
20
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
11
21
  tabList: {
@@ -15,11 +25,16 @@ declare const _default: import("vue").DefineComponent<{
15
25
  modelValue: {
16
26
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
17
27
  };
28
+ closable: {
29
+ type: BooleanConstructor;
30
+ default: () => boolean;
31
+ };
18
32
  }>> & {
19
33
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
20
34
  "onTab-click"?: ((...args: any[]) => any) | undefined;
35
+ "onTab-close"?: ((...args: any[]) => any) | undefined;
21
36
  }>>;
22
- emit: (event: "update:modelValue" | "tab-click", ...args: any[]) => void;
37
+ emit: (event: "update:modelValue" | "tab-click" | "tab-close", ...args: any[]) => void;
23
38
  customTabList: import("vue").ComputedRef<{
24
39
  number: number;
25
40
  hide: boolean;
@@ -27,8 +42,146 @@ declare const _default: import("vue").DefineComponent<{
27
42
  label: string;
28
43
  key: string;
29
44
  }[]>;
30
- tabClick: (tab: any, event: any) => void;
31
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "tab-click")[], "update:modelValue" | "tab-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
+ tabClick: (tab: Tab, event: Event) => void;
46
+ close: (index: number, event: Event) => void;
47
+ HzztIcon: import("vue").DefineComponent<{
48
+ name: {
49
+ type: StringConstructor;
50
+ required: true;
51
+ };
52
+ type: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ }, {
57
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
58
+ name: {
59
+ type: StringConstructor;
60
+ required: true;
61
+ };
62
+ type: {
63
+ type: StringConstructor;
64
+ default: string;
65
+ };
66
+ }>> & {
67
+ [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
68
+ }>>;
69
+ attrs: {
70
+ [x: string]: unknown;
71
+ };
72
+ componentName: import("vue").ComputedRef<string>;
73
+ ElIcon: import("element-plus/es/utils").SFCWithInstall<{
74
+ new (...args: any[]): {
75
+ $: import("vue").ComponentInternalInstance;
76
+ $data: {};
77
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
78
+ readonly size: {
79
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
80
+ readonly required: false;
81
+ readonly validator: ((val: unknown) => boolean) | undefined;
82
+ __epPropKey: true;
83
+ };
84
+ readonly color: {
85
+ readonly type: import("vue").PropType<string>;
86
+ readonly required: false;
87
+ readonly validator: ((val: unknown) => boolean) | undefined;
88
+ __epPropKey: true;
89
+ };
90
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
91
+ $attrs: {
92
+ [x: string]: unknown;
93
+ };
94
+ $refs: {
95
+ [x: string]: unknown;
96
+ };
97
+ $slots: Readonly<{
98
+ [name: string]: import("vue").Slot | undefined;
99
+ }>;
100
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
101
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
102
+ $emit: (event: string, ...args: any[]) => void;
103
+ $el: any;
104
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
105
+ readonly size: {
106
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
107
+ readonly required: false;
108
+ readonly validator: ((val: unknown) => boolean) | undefined;
109
+ __epPropKey: true;
110
+ };
111
+ readonly color: {
112
+ readonly type: import("vue").PropType<string>;
113
+ readonly required: false;
114
+ readonly validator: ((val: unknown) => boolean) | undefined;
115
+ __epPropKey: true;
116
+ };
117
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
118
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
119
+ created?: ((() => void) | (() => void)[]) | undefined;
120
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
121
+ mounted?: ((() => void) | (() => void)[]) | undefined;
122
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
123
+ updated?: ((() => void) | (() => void)[]) | undefined;
124
+ activated?: ((() => void) | (() => void)[]) | undefined;
125
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
126
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
127
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
128
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
129
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
130
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
131
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
132
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
133
+ };
134
+ $forceUpdate: () => void;
135
+ $nextTick: typeof import("vue").nextTick;
136
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
137
+ } & Readonly<import("vue").ExtractPropTypes<{
138
+ readonly size: {
139
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
140
+ readonly required: false;
141
+ readonly validator: ((val: unknown) => boolean) | undefined;
142
+ __epPropKey: true;
143
+ };
144
+ readonly color: {
145
+ readonly type: import("vue").PropType<string>;
146
+ readonly required: false;
147
+ readonly validator: ((val: unknown) => boolean) | undefined;
148
+ __epPropKey: true;
149
+ };
150
+ }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
151
+ __isFragment?: undefined;
152
+ __isTeleport?: undefined;
153
+ __isSuspense?: undefined;
154
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
155
+ readonly size: {
156
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
157
+ readonly required: false;
158
+ readonly validator: ((val: unknown) => boolean) | undefined;
159
+ __epPropKey: true;
160
+ };
161
+ readonly color: {
162
+ readonly type: import("vue").PropType<string>;
163
+ readonly required: false;
164
+ readonly validator: ((val: unknown) => boolean) | undefined;
165
+ __epPropKey: true;
166
+ };
167
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
168
+ $slots: {
169
+ default?(_: {}): any;
170
+ };
171
+ })>;
172
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
173
+ name: {
174
+ type: StringConstructor;
175
+ required: true;
176
+ };
177
+ type: {
178
+ type: StringConstructor;
179
+ default: string;
180
+ };
181
+ }>>, {
182
+ type: string;
183
+ }>;
184
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "tab-click" | "tab-close")[], "update:modelValue" | "tab-click" | "tab-close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
185
  tabList: {
33
186
  type: ArrayConstructor;
34
187
  default: () => never[];
@@ -36,10 +189,16 @@ declare const _default: import("vue").DefineComponent<{
36
189
  modelValue: {
37
190
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
38
191
  };
192
+ closable: {
193
+ type: BooleanConstructor;
194
+ default: () => boolean;
195
+ };
39
196
  }>> & {
40
197
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
41
198
  "onTab-click"?: ((...args: any[]) => any) | undefined;
199
+ "onTab-close"?: ((...args: any[]) => any) | undefined;
42
200
  }, {
43
201
  tabList: unknown[];
202
+ closable: boolean;
44
203
  }>;
45
204
  export default _default;
@@ -1,30 +1,5 @@
1
- export declare const HzztTitle: import("hzzt-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2
- label: StringConstructor;
3
- sideline: {
4
- type: BooleanConstructor;
5
- default: boolean;
6
- };
7
- }, {
8
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
9
- label: StringConstructor;
10
- sideline: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
14
- }>> & {
15
- [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
16
- }>>;
17
- slots: Readonly<{
18
- [name: string]: import("vue").Slot | undefined;
19
- }>;
20
- showLabel: import("vue").ComputedRef<import("vue").VNodeNormalizedChildren | undefined>;
21
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
- label: StringConstructor;
23
- sideline: {
24
- type: BooleanConstructor;
25
- default: boolean;
26
- };
27
- }>>, {
28
- sideline: boolean;
29
- }>> & Record<string, any>;
1
+ import Title from './src/title.vue';
2
+ import type { SFCWithInstall } from 'hzzt-plus/es/utils';
3
+ export declare const HzztTitle: SFCWithInstall<typeof Title>;
30
4
  export default HzztTitle;
5
+ export * from './src/title';
@@ -1,5 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Title from './src/title.mjs';
2
+ import Title from './src/title2.mjs';
3
+ export { titleProps } from './src/title.mjs';
3
4
  import { withInstall } from '../../utils/vue/install.mjs';
4
5
 
5
6
  const HzztTitle = withInstall(Title);
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/title/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\n\nimport Title from './src/title.vue'\n\nexport const HzztTitle = withInstall(Title)\nexport default HzztTitle\n"],"names":[],"mappings":";;;;AAEY,MAAC,SAAS,GAAG,WAAW,CAAC,KAAK;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/title/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\n\nimport Title from './src/title.vue'\nimport type { SFCWithInstall } from '@hzzt-plus/utils'\n\nexport const HzztTitle: SFCWithInstall<typeof Title> = withInstall(Title)\nexport default HzztTitle\n\nexport * from './src/title'\n"],"names":[],"mappings":";;;;;AAEY,MAAC,SAAS,GAAG,WAAW,CAAC,KAAK;;;;"}
@@ -0,0 +1,8 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ import type Title from './title.vue';
3
+ export declare const titleProps: {
4
+ readonly label: StringConstructor;
5
+ readonly sideline: import("hzzt-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
6
+ };
7
+ export declare type TitleProps = ExtractPropTypes<typeof titleProps>;
8
+ export declare type TitleInstance = InstanceType<typeof Title>;
@@ -1,48 +1,13 @@
1
- import { defineComponent, useSlots, computed, unref, openBlock, createElementBlock, createCommentVNode, renderSlot, createElementVNode, createTextVNode, toDisplayString } from 'vue';
2
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
3
3
 
4
- const _hoisted_1 = {
5
- key: 0,
6
- class: "hzzt-title flex align-items-center"
7
- };
8
- const _hoisted_2 = {
9
- key: 0,
10
- class: "decorative-line"
11
- };
12
- const _hoisted_3 = { class: "label-name" };
13
- const __default__ = defineComponent({
14
- name: "HzztTitle"
15
- });
16
- const _sfc_main = /* @__PURE__ */ defineComponent({
17
- ...__default__,
18
- props: {
19
- label: String,
20
- sideline: {
21
- type: Boolean,
22
- default: true
23
- }
24
- },
25
- setup(__props) {
26
- const props = __props;
27
- const slots = useSlots();
28
- const showLabel = computed(() => {
29
- var _a, _b, _c;
30
- return props.label || ((_c = (_b = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots)) == null ? void 0 : _b[0]) == null ? void 0 : _c.children);
31
- });
32
- return (_ctx, _cache) => {
33
- return unref(showLabel) ? (openBlock(), createElementBlock("div", _hoisted_1, [
34
- __props.sideline ? (openBlock(), createElementBlock("span", _hoisted_2)) : createCommentVNode("v-if", true),
35
- renderSlot(_ctx.$slots, "before"),
36
- createElementVNode("label", _hoisted_3, [
37
- renderSlot(_ctx.$slots, "default", {}, () => [
38
- createTextVNode(toDisplayString(__props.label), 1)
39
- ])
40
- ])
41
- ])) : createCommentVNode("v-if", true);
42
- };
4
+ const titleProps = buildProps({
5
+ label: String,
6
+ sideline: {
7
+ type: Boolean,
8
+ default: true
43
9
  }
44
10
  });
45
- var Title = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "title.vue"]]);
46
11
 
47
- export { Title as default };
12
+ export { titleProps };
48
13
  //# sourceMappingURL=title.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"title.mjs","sources":["../../../../../../packages/components/title/src/title.vue"],"sourcesContent":["<template>\n <div v-if=\"showLabel\" class=\"hzzt-title flex align-items-center\">\n <span v-if=\"sideline\" class=\"decorative-line\" />\n <slot name=\"before\" />\n <label class=\"label-name\">\n <slot>{{ label }}</slot>\n </label>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\n\ndefineOptions({\n name: 'HzztTitle',\n})\n\nconst props = defineProps({\n label: String,\n sideline: {\n type: Boolean,\n default: true,\n },\n})\n\nconst slots = useSlots()\n\nconst showLabel = computed(\n () => props.label || slots?.default?.()?.[0]?.children\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCAac,CAAA;AAAA,EACZ,IAAM,EAAA,WAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;AAUA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAA,MAAM,SAAY,GAAA,QAAA,CAAA,MAAA;AAAA,MAChB,MAAM,EAAM,EAAA,EAAA,EAAA,CAAA;AAAkC,MAChD,OAAA,KAAA,CAAA,KAAA,KAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,KAAA,CAAA,OAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,KAAA,CAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,CAAA,CAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"title.mjs","sources":["../../../../../../packages/components/title/src/title.ts"],"sourcesContent":["import { buildProps } from '@hzzt-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Title from './title.vue'\n\nexport const titleProps = buildProps({\n label: String,\n sideline: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport type TitleProps = ExtractPropTypes<typeof titleProps>\n\nexport type TitleInstance = InstanceType<typeof Title>\n"],"names":[],"mappings":";;;AACY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC;;;;"}
@@ -1,16 +1,10 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- label: StringConstructor;
3
- sideline: {
4
- type: BooleanConstructor;
5
- default: boolean;
6
- };
2
+ readonly label: StringConstructor;
3
+ readonly sideline: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
7
4
  }, {
8
5
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
9
- label: StringConstructor;
10
- sideline: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
6
+ readonly label: StringConstructor;
7
+ readonly sideline: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
14
8
  }>> & {
15
9
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
16
10
  }>>;
@@ -19,12 +13,9 @@ declare const _default: import("vue").DefineComponent<{
19
13
  }>;
20
14
  showLabel: import("vue").ComputedRef<import("vue").VNodeNormalizedChildren | undefined>;
21
15
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
- label: StringConstructor;
23
- sideline: {
24
- type: BooleanConstructor;
25
- default: boolean;
26
- };
16
+ readonly label: StringConstructor;
17
+ readonly sideline: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
27
18
  }>>, {
28
- sideline: boolean;
19
+ readonly sideline: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
29
20
  }>;
30
21
  export default _default;
@@ -0,0 +1,44 @@
1
+ import { defineComponent, useSlots, computed, unref, openBlock, createElementBlock, createCommentVNode, renderSlot, createElementVNode, createTextVNode, toDisplayString } from 'vue';
2
+ import '../../index.mjs';
3
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
4
+ import { titleProps } from './title.mjs';
5
+
6
+ const _hoisted_1 = {
7
+ key: 0,
8
+ class: "hzzt-title flex align-items-center"
9
+ };
10
+ const _hoisted_2 = {
11
+ key: 0,
12
+ class: "decorative-line"
13
+ };
14
+ const _hoisted_3 = { class: "label-name" };
15
+ const __default__ = defineComponent({
16
+ name: "HzztTitle"
17
+ });
18
+ const _sfc_main = /* @__PURE__ */ defineComponent({
19
+ ...__default__,
20
+ props: titleProps,
21
+ setup(__props) {
22
+ const props = __props;
23
+ const slots = useSlots();
24
+ const showLabel = computed(() => {
25
+ var _a, _b, _c;
26
+ return props.label || ((_c = (_b = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots)) == null ? void 0 : _b[0]) == null ? void 0 : _c.children);
27
+ });
28
+ return (_ctx, _cache) => {
29
+ return unref(showLabel) ? (openBlock(), createElementBlock("div", _hoisted_1, [
30
+ _ctx.sideline ? (openBlock(), createElementBlock("span", _hoisted_2)) : createCommentVNode("v-if", true),
31
+ renderSlot(_ctx.$slots, "before"),
32
+ createElementVNode("label", _hoisted_3, [
33
+ renderSlot(_ctx.$slots, "default", {}, () => [
34
+ createTextVNode(toDisplayString(_ctx.label), 1)
35
+ ])
36
+ ])
37
+ ])) : createCommentVNode("v-if", true);
38
+ };
39
+ }
40
+ });
41
+ var Title = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "title.vue"]]);
42
+
43
+ export { Title as default };
44
+ //# sourceMappingURL=title2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"title2.mjs","sources":["../../../../../../packages/components/title/src/title.vue"],"sourcesContent":["<template>\n <div v-if=\"showLabel\" class=\"hzzt-title flex align-items-center\">\n <span v-if=\"sideline\" class=\"decorative-line\" />\n <slot name=\"before\" />\n <label class=\"label-name\">\n <slot>{{ label }}</slot>\n </label>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\nimport { titleProps } from '@hzzt-plus/components'\n\ndefineOptions({\n name: 'HzztTitle',\n})\n\nconst props = defineProps(titleProps)\n\nconst slots = useSlots()\n\nconst showLabel = computed(\n () => props.label || slots?.default?.()?.[0]?.children\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;mCAcc,CAAA;AAAA,EACZ,IAAM,EAAA,WAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAA,MAAM,SAAY,GAAA,QAAA,CAAA,MAAA;AAAA,MAChB,MAAM,EAAM,EAAA,EAAA,EAAA,CAAA;AAAkC,MAChD,OAAA,KAAA,CAAA,KAAA,KAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,KAAA,CAAA,OAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,KAAA,CAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,CAAA,CAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +1,4 @@
1
1
  export * from './key';
2
2
  export * from './size';
3
3
  export * from './date';
4
+ export * from './event';
@@ -1,4 +1,5 @@
1
1
  export { INSTALLED_KEY } from './key.mjs';
2
2
  export { componentSizeMap, componentSizes } from './size.mjs';
3
3
  export { WEEK_DAYS, datePickTypes } from './date.mjs';
4
+ export { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from './event.mjs';
4
5
  //# 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":";;;"}
package/es/index.mjs CHANGED
@@ -5,6 +5,7 @@ import './constants/index.mjs';
5
5
  import './directives/index.mjs';
6
6
  import './hooks/index.mjs';
7
7
  export { makeInstaller } from './make-installer.mjs';
8
+ export { titleProps } from './components/title/src/title.mjs';
8
9
  export { HzztTitle } from './components/title/index.mjs';
9
10
  export { HzztDropdown } from './components/dropdown/index.mjs';
10
11
  export { HzztCollapse } from './components/collapse/index.mjs';
@@ -20,9 +21,12 @@ export { HzztPageSize } from './components/page-size/index.mjs';
20
21
  export { HzztConfirmPassword } from './components/confirm-password/index.mjs';
21
22
  export { HzztCheckButton } from './components/check-button/index.mjs';
22
23
  export { HzztQuarterPicker } from './components/quarter-picker/index.mjs';
24
+ export { scanEmits, scanProps } from './components/scan/src/scan.mjs';
25
+ export { HzztScan } from './components/scan/index.mjs';
23
26
  export { INSTALLED_KEY } from './constants/key.mjs';
24
27
  export { componentSizeMap, componentSizes } from './constants/size.mjs';
25
28
  export { WEEK_DAYS, datePickTypes } from './constants/date.mjs';
29
+ export { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from './constants/event.mjs';
26
30
  export { default as Download } from './directives/download/index.mjs';
27
31
  export { default as Height } from './directives/height/index.mjs';
28
32
  export { default as Blur } from './directives/blur/index.mjs';
package/es/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../packages/hzzt-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@hzzt-plus/components'\nexport * from '@hzzt-plus/constants'\nexport * from '@hzzt-plus/directives'\nexport * from '@hzzt-plus/hooks'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMY,MAAC,OAAO,GAAG,SAAS,CAAC,QAAQ;AAC7B,MAAC,OAAO,GAAG,SAAS,CAAC;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../packages/hzzt-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@hzzt-plus/components'\nexport * from '@hzzt-plus/constants'\nexport * from '@hzzt-plus/directives'\nexport * from '@hzzt-plus/hooks'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMY,MAAC,OAAO,GAAG,SAAS,CAAC,QAAQ;AAC7B,MAAC,OAAO,GAAG,SAAS,CAAC;;;;"}
package/global.d.ts CHANGED
@@ -13,6 +13,7 @@ declare module 'vue' {
13
13
  HzztConfirmPassword: typeof import('hzzt-plus')['HzztConfirmPassword']
14
14
  HzztCheckButton: typeof import('hzzt-plus')['HzztCheckButton']
15
15
  HzztQuarterPicker: typeof import('hzzt-plus')['HzztQuarterPicker']
16
+ HzztScan: typeof import('hzzt-plus')['HzztScan']
16
17
  }
17
18
  }
18
19
 
package/lib/component.js CHANGED
@@ -14,6 +14,7 @@ var index$8 = require('./components/page-size/index.js');
14
14
  var index$9 = require('./components/confirm-password/index.js');
15
15
  var index$a = require('./components/check-button/index.js');
16
16
  var index$b = require('./components/quarter-picker/index.js');
17
+ var index$c = require('./components/scan/index.js');
17
18
 
18
19
  var Components = [
19
20
  index.HzztConfigProvider,
@@ -27,7 +28,8 @@ var Components = [
27
28
  index$8.HzztPageSize,
28
29
  index$9.HzztConfirmPassword,
29
30
  index$a.HzztCheckButton,
30
- index$b.HzztQuarterPicker
31
+ index$b.HzztQuarterPicker,
32
+ index$c.HzztScan
31
33
  ];
32
34
 
33
35
  exports["default"] = Components;
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","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'\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] as Plugin[]\n"],"names":["HzztConfigProvider","HzztTitle","HzztDropdown","HzztCollapse","HzztTab","HzztIcon","HzztPagination","HzztTooltip","HzztPageSize","HzztConfirmPassword","HzztCheckButton","HzztQuarterPicker"],"mappings":";;;;;;;;;;;;;;;;;AAYA,iBAAe;AACf,EAAEA,wBAAkB;AACpB,EAAEC,iBAAS;AACX,EAAEC,oBAAY;AACd,EAAEC,oBAAY;AACd,EAAEC,eAAO;AACT,EAAEC,gBAAQ;AACV,EAAEC,sBAAc;AAChB,EAAEC,mBAAW;AACb,EAAEC,oBAAY;AACd,EAAEC,2BAAmB;AACrB,EAAEC,uBAAe;AACjB,EAAEC,yBAAiB;AACnB,CAAC;;;;"}
1
+ {"version":3,"file":"component.js","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'\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] as Plugin[]\n"],"names":["HzztConfigProvider","HzztTitle","HzztDropdown","HzztCollapse","HzztTab","HzztIcon","HzztPagination","HzztTooltip","HzztPageSize","HzztConfirmPassword","HzztCheckButton","HzztQuarterPicker","HzztScan"],"mappings":";;;;;;;;;;;;;;;;;;AAaA,iBAAe;AACf,EAAEA,wBAAkB;AACpB,EAAEC,iBAAS;AACX,EAAEC,oBAAY;AACd,EAAEC,oBAAY;AACd,EAAEC,eAAO;AACT,EAAEC,gBAAQ;AACV,EAAEC,sBAAc;AAChB,EAAEC,mBAAW;AACb,EAAEC,oBAAY;AACd,EAAEC,2BAAmB;AACrB,EAAEC,uBAAe;AACjB,EAAEC,yBAAiB;AACnB,EAAEC,gBAAQ;AACV,CAAC;;;;"}
@@ -10,3 +10,4 @@ export * from './page-size';
10
10
  export * from './confirm-password';
11
11
  export * from './check-button';
12
12
  export * from './quarter-picker';
13
+ export * from './scan';
@@ -14,9 +14,12 @@ var index$8 = require('./page-size/index.js');
14
14
  var index$9 = require('./confirm-password/index.js');
15
15
  var index$a = require('./check-button/index.js');
16
16
  var index$b = require('./quarter-picker/index.js');
17
+ var index$c = require('./scan/index.js');
18
+ var title = require('./title/src/title.js');
17
19
  var configProviderProps = require('./config-provider/src/config-provider-props.js');
18
20
  var constants = require('./config-provider/src/constants.js');
19
21
  var useGlobalConfig = require('./config-provider/src/hooks/use-global-config.js');
22
+ var scan = require('./scan/src/scan.js');
20
23
 
21
24
 
22
25
 
@@ -32,8 +35,12 @@ exports.HzztPageSize = index$8.HzztPageSize;
32
35
  exports.HzztConfirmPassword = index$9.HzztConfirmPassword;
33
36
  exports.HzztCheckButton = index$a.HzztCheckButton;
34
37
  exports.HzztQuarterPicker = index$b.HzztQuarterPicker;
38
+ exports.HzztScan = index$c.HzztScan;
39
+ exports.titleProps = title.titleProps;
35
40
  exports.configProviderProps = configProviderProps.configProviderProps;
36
41
  exports.configProviderContextKey = constants.configProviderContextKey;
37
42
  exports.provideGlobalConfig = useGlobalConfig.provideGlobalConfig;
38
43
  exports.useGlobalConfig = useGlobalConfig.useGlobalConfig;
44
+ exports.scanEmits = scan.scanEmits;
45
+ exports.scanProps = scan.scanProps;
39
46
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,5 @@
1
+ import Scan from './src/scan.vue';
2
+ import type { SFCWithInstall } from 'hzzt-plus/es/utils';
3
+ export declare const HzztScan: SFCWithInstall<typeof Scan>;
4
+ export default HzztScan;
5
+ export * from './src/scan';
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../../utils/index.js');
6
+ var scan$1 = require('./src/scan2.js');
7
+ var scan = require('./src/scan.js');
8
+ var install = require('../../utils/vue/install.js');
9
+
10
+ const HzztScan = install.withInstall(scan$1["default"]);
11
+
12
+ exports.scanEmits = scan.scanEmits;
13
+ exports.scanProps = scan.scanProps;
14
+ exports.HzztScan = HzztScan;
15
+ exports["default"] = HzztScan;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../packages/components/scan/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\nimport Scan from './src/scan.vue'\nimport type { SFCWithInstall } from '@hzzt-plus/utils'\n\nexport const HzztScan: SFCWithInstall<typeof Scan> = withInstall(Scan)\nexport default HzztScan\n\nexport * from './src/scan'\n"],"names":["withInstall","Scan"],"mappings":";;;;;;;;;AAEY,MAAC,QAAQ,GAAGA,mBAAW,CAACC,iBAAI;;;;;;;"}
@@ -0,0 +1,15 @@
1
+ import type Scan from './scan.vue';
2
+ import type { ExtractPropTypes } from 'vue';
3
+ export declare const scanProps: {
4
+ readonly modelValue: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
5
+ readonly placeholder: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
6
+ readonly letter: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "upper", boolean>;
7
+ };
8
+ export declare type ScanProps = ExtractPropTypes<typeof scanProps>;
9
+ export declare const scanEmits: {
10
+ "update:modelValue": (value: string) => boolean;
11
+ change: (value: string) => boolean;
12
+ input: (value: string) => boolean;
13
+ };
14
+ export declare type ScanEmits = typeof scanEmits;
15
+ export declare type ScanInstance = InstanceType<typeof Scan>;
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../../../utils/index.js');
6
+ require('../../../constants/index.js');
7
+ var runtime = require('../../../utils/vue/props/runtime.js');
8
+ var event = require('../../../constants/event.js');
9
+ var shared = require('@vue/shared');
10
+
11
+ const scanProps = runtime.buildProps({
12
+ modelValue: {
13
+ type: String,
14
+ default: ""
15
+ },
16
+ placeholder: {
17
+ type: String,
18
+ default: ""
19
+ },
20
+ letter: {
21
+ type: String,
22
+ default: "upper"
23
+ }
24
+ });
25
+ const scanEmits = {
26
+ [event.UPDATE_MODEL_EVENT]: (value) => shared.isString(value),
27
+ [event.CHANGE_EVENT]: (value) => shared.isString(value),
28
+ [event.INPUT_EVENT]: (value) => shared.isString(value)
29
+ };
30
+
31
+ exports.scanEmits = scanEmits;
32
+ exports.scanProps = scanProps;
33
+ //# sourceMappingURL=scan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scan.js","sources":["../../../../../../packages/components/scan/src/scan.ts"],"sourcesContent":["import { buildProps, isString } from '@hzzt-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@hzzt-plus/constants'\nimport type Scan from './scan.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const scanProps = buildProps({\n modelValue: {\n type: String,\n default: '',\n },\n placeholder: {\n type: String,\n default: '',\n },\n letter: {\n type: String,\n default: 'upper',\n },\n} as const)\nexport type ScanProps = ExtractPropTypes<typeof scanProps>\n\nexport const scanEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n [CHANGE_EVENT]: (value: string) => isString(value),\n [INPUT_EVENT]: (value: string) => isString(value),\n}\nexport type ScanEmits = typeof scanEmits\n\nexport type ScanInstance = InstanceType<typeof Scan>\n"],"names":["buildProps","UPDATE_MODEL_EVENT","isString","CHANGE_EVENT","INPUT_EVENT"],"mappings":";;;;;;;;;;AAMY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,SAAS,GAAG;AACzB,EAAE,CAACC,wBAAkB,GAAG,CAAC,KAAK,KAAKC,eAAQ,CAAC,KAAK,CAAC;AAClD,EAAE,CAACC,kBAAY,GAAG,CAAC,KAAK,KAAKD,eAAQ,CAAC,KAAK,CAAC;AAC5C,EAAE,CAACE,iBAAW,GAAG,CAAC,KAAK,KAAKF,eAAQ,CAAC,KAAK,CAAC;AAC3C;;;;;"}