hzzt-plus 1.0.0 → 1.0.2

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 (169) hide show
  1. package/attributes.json +1 -0
  2. package/dist/index.full.js +5236 -2048
  3. package/dist/index.full.min.js +17 -17
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +18 -18
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +5231 -2051
  8. package/dist/locale/en.js +1 -1
  9. package/dist/locale/en.min.js +1 -1
  10. package/dist/locale/en.min.mjs +1 -1
  11. package/dist/locale/en.mjs +1 -1
  12. package/dist/locale/zh-cn.js +1 -1
  13. package/dist/locale/zh-cn.min.js +1 -1
  14. package/dist/locale/zh-cn.min.mjs +1 -1
  15. package/dist/locale/zh-cn.mjs +1 -1
  16. package/es/component.mjs +5 -1
  17. package/es/component.mjs.map +1 -1
  18. package/es/components/confirm-password/index.d.ts +46 -22
  19. package/es/components/confirm-password/src/confirm-password.vue.d.ts +46 -22
  20. package/es/components/dropdown/index.d.ts +5 -5
  21. package/es/components/dropdown/src/index.mjs +3 -2
  22. package/es/components/dropdown/src/index.mjs.map +1 -1
  23. package/es/components/dropdown/src/index.vue.d.ts +6 -5
  24. package/es/components/icon/src/index.vue.d.ts +4 -4
  25. package/es/components/index.d.ts +2 -0
  26. package/es/components/index.mjs +4 -0
  27. package/es/components/index.mjs.map +1 -1
  28. package/es/components/page-size/index.d.ts +10225 -532
  29. package/es/components/page-size/src/index.mjs.map +1 -1
  30. package/es/components/page-size/src/index.vue.d.ts +10225 -532
  31. package/es/components/pagination/index.d.ts +4 -4
  32. package/es/components/pagination/src/index.vue.d.ts +4 -4
  33. package/es/components/quarter-picker/index.d.ts +121 -97
  34. package/es/components/quarter-picker/src/index.vue.d.ts +121 -97
  35. package/es/components/scan/src/scan.vue.d.ts +46 -22
  36. package/es/components/scan/src/scan2.mjs.map +1 -1
  37. package/es/components/select-input/index.d.ts +826 -0
  38. package/es/components/select-input/index.mjs +9 -0
  39. package/es/components/select-input/index.mjs.map +1 -0
  40. package/es/components/select-input/src/select-input.d.ts +41 -0
  41. package/es/components/select-input/src/select-input.mjs +50 -0
  42. package/es/components/select-input/src/select-input.mjs.map +1 -0
  43. package/es/components/select-input/src/select-input.vue.d.ts +826 -0
  44. package/es/components/select-input/src/select-input2.mjs +129 -0
  45. package/es/components/select-input/src/select-input2.mjs.map +1 -0
  46. package/es/components/select-input/style/css.d.ts +2 -0
  47. package/es/components/select-input/style/css.mjs +3 -0
  48. package/es/components/select-input/style/css.mjs.map +1 -0
  49. package/es/components/select-input/style/index.d.ts +2 -0
  50. package/es/components/select-input/style/index.mjs +3 -0
  51. package/es/components/select-input/style/index.mjs.map +1 -0
  52. package/es/components/select-textarea/index.d.ts +13076 -0
  53. package/es/components/select-textarea/index.mjs +9 -0
  54. package/es/components/select-textarea/index.mjs.map +1 -0
  55. package/es/components/select-textarea/src/select-textarea.d.ts +26 -0
  56. package/es/components/select-textarea/src/select-textarea.mjs +35 -0
  57. package/es/components/select-textarea/src/select-textarea.mjs.map +1 -0
  58. package/es/components/select-textarea/src/select-textarea.vue.d.ts +13075 -0
  59. package/es/components/select-textarea/src/select-textarea2.mjs +105 -0
  60. package/es/components/select-textarea/src/select-textarea2.mjs.map +1 -0
  61. package/es/components/select-textarea/style/css.d.ts +2 -0
  62. package/es/components/select-textarea/style/css.mjs +3 -0
  63. package/es/components/select-textarea/style/css.mjs.map +1 -0
  64. package/es/components/select-textarea/style/index.d.ts +2 -0
  65. package/es/components/select-textarea/style/index.mjs +3 -0
  66. package/es/components/select-textarea/style/index.mjs.map +1 -0
  67. package/es/components/tab/index.d.ts +4 -4
  68. package/es/components/tab/src/index.vue.d.ts +4 -4
  69. package/es/components/title/index.mjs +2 -2
  70. package/es/components/title/index.mjs.map +1 -1
  71. package/es/components/title/src/title2.mjs +3 -4
  72. package/es/components/title/src/title2.mjs.map +1 -1
  73. package/es/components/tooltip/index.d.ts +7615 -316
  74. package/es/components/tooltip/src/tooltip.vue.d.ts +7615 -316
  75. package/es/hooks/index.d.ts +2 -0
  76. package/es/hooks/index.mjs +2 -0
  77. package/es/hooks/index.mjs.map +1 -1
  78. package/es/hooks/use-cursor/index.d.ts +1 -0
  79. package/es/hooks/use-cursor/index.mjs +14 -0
  80. package/es/hooks/use-cursor/index.mjs.map +1 -0
  81. package/es/hooks/use-letter/index.d.ts +1 -0
  82. package/es/hooks/use-letter/index.mjs +13 -0
  83. package/es/hooks/use-letter/index.mjs.map +1 -0
  84. package/es/index.mjs +6 -0
  85. package/es/index.mjs.map +1 -1
  86. package/es/version.d.ts +1 -1
  87. package/es/version.mjs +1 -1
  88. package/es/version.mjs.map +1 -1
  89. package/global.d.ts +2 -0
  90. package/lib/component.js +5 -1
  91. package/lib/component.js.map +1 -1
  92. package/lib/components/confirm-password/index.d.ts +46 -22
  93. package/lib/components/confirm-password/src/confirm-password.vue.d.ts +46 -22
  94. package/lib/components/dropdown/index.d.ts +5 -5
  95. package/lib/components/dropdown/src/index.js +3 -2
  96. package/lib/components/dropdown/src/index.js.map +1 -1
  97. package/lib/components/dropdown/src/index.vue.d.ts +6 -5
  98. package/lib/components/icon/src/index.vue.d.ts +4 -4
  99. package/lib/components/index.d.ts +2 -0
  100. package/lib/components/index.js +10 -0
  101. package/lib/components/index.js.map +1 -1
  102. package/lib/components/page-size/index.d.ts +10225 -532
  103. package/lib/components/page-size/src/index.js.map +1 -1
  104. package/lib/components/page-size/src/index.vue.d.ts +10225 -532
  105. package/lib/components/pagination/index.d.ts +4 -4
  106. package/lib/components/pagination/src/index.vue.d.ts +4 -4
  107. package/lib/components/quarter-picker/index.d.ts +121 -97
  108. package/lib/components/quarter-picker/src/index.vue.d.ts +121 -97
  109. package/lib/components/scan/src/scan.vue.d.ts +46 -22
  110. package/lib/components/scan/src/scan2.js.map +1 -1
  111. package/lib/components/select-input/index.d.ts +826 -0
  112. package/lib/components/select-input/index.js +16 -0
  113. package/lib/components/select-input/index.js.map +1 -0
  114. package/lib/components/select-input/src/select-input.d.ts +41 -0
  115. package/lib/components/select-input/src/select-input.js +55 -0
  116. package/lib/components/select-input/src/select-input.js.map +1 -0
  117. package/lib/components/select-input/src/select-input.vue.d.ts +826 -0
  118. package/lib/components/select-input/src/select-input2.js +133 -0
  119. package/lib/components/select-input/src/select-input2.js.map +1 -0
  120. package/lib/components/select-input/style/css.d.ts +2 -0
  121. package/lib/components/select-input/style/css.js +6 -0
  122. package/lib/components/select-input/style/css.js.map +1 -0
  123. package/lib/components/select-input/style/index.d.ts +2 -0
  124. package/lib/components/select-input/style/index.js +6 -0
  125. package/lib/components/select-input/style/index.js.map +1 -0
  126. package/lib/components/select-textarea/index.d.ts +13076 -0
  127. package/lib/components/select-textarea/index.js +16 -0
  128. package/lib/components/select-textarea/index.js.map +1 -0
  129. package/lib/components/select-textarea/src/select-textarea.d.ts +26 -0
  130. package/lib/components/select-textarea/src/select-textarea.js +40 -0
  131. package/lib/components/select-textarea/src/select-textarea.js.map +1 -0
  132. package/lib/components/select-textarea/src/select-textarea.vue.d.ts +13075 -0
  133. package/lib/components/select-textarea/src/select-textarea2.js +109 -0
  134. package/lib/components/select-textarea/src/select-textarea2.js.map +1 -0
  135. package/lib/components/select-textarea/style/css.d.ts +2 -0
  136. package/lib/components/select-textarea/style/css.js +6 -0
  137. package/lib/components/select-textarea/style/css.js.map +1 -0
  138. package/lib/components/select-textarea/style/index.d.ts +2 -0
  139. package/lib/components/select-textarea/style/index.js +6 -0
  140. package/lib/components/select-textarea/style/index.js.map +1 -0
  141. package/lib/components/tab/index.d.ts +4 -4
  142. package/lib/components/tab/src/index.vue.d.ts +4 -4
  143. package/lib/components/title/index.js.map +1 -1
  144. package/lib/components/title/src/title2.js +3 -4
  145. package/lib/components/title/src/title2.js.map +1 -1
  146. package/lib/components/tooltip/index.d.ts +7615 -316
  147. package/lib/components/tooltip/src/tooltip.vue.d.ts +7615 -316
  148. package/lib/hooks/index.d.ts +2 -0
  149. package/lib/hooks/index.js +4 -0
  150. package/lib/hooks/index.js.map +1 -1
  151. package/lib/hooks/use-cursor/index.d.ts +1 -0
  152. package/lib/hooks/use-cursor/index.js +18 -0
  153. package/lib/hooks/use-cursor/index.js.map +1 -0
  154. package/lib/hooks/use-letter/index.d.ts +1 -0
  155. package/lib/hooks/use-letter/index.js +17 -0
  156. package/lib/hooks/use-letter/index.js.map +1 -0
  157. package/lib/index.js +40 -26
  158. package/lib/index.js.map +1 -1
  159. package/lib/version.d.ts +1 -1
  160. package/lib/version.js +1 -1
  161. package/lib/version.js.map +1 -1
  162. package/package.json +3 -3
  163. package/tags.json +1 -0
  164. package/theme/hzzt-select-input.css +0 -0
  165. package/theme/hzzt-select-textarea.css +0 -0
  166. package/theme/src/index.scss +2 -0
  167. package/theme/src/select-input.scss +0 -0
  168. package/theme/src/select-textarea.scss +0 -0
  169. package/web-types.json +692 -0
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../../utils/index.js');
6
+ var selectInput$1 = require('./src/select-input2.js');
7
+ var selectInput = require('./src/select-input.js');
8
+ var install = require('../../utils/vue/install.js');
9
+
10
+ const HzztSelectInput = install.withInstall(selectInput$1["default"]);
11
+
12
+ exports.selectInputEmits = selectInput.selectInputEmits;
13
+ exports.selectInputProps = selectInput.selectInputProps;
14
+ exports.HzztSelectInput = HzztSelectInput;
15
+ exports["default"] = HzztSelectInput;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../packages/components/select-input/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\nimport SelectInput from './src/select-input.vue'\n\nexport const HzztSelectInput = withInstall(SelectInput)\nexport default HzztSelectInput\n\nexport * from './src/select-input'\n"],"names":["withInstall","SelectInput"],"mappings":";;;;;;;;;AAEY,MAAC,eAAe,GAAGA,mBAAW,CAACC,wBAAW;;;;;;;"}
@@ -0,0 +1,41 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ import type SelectInput from './select-input.vue';
3
+ declare type OptionCommon = Record<string, any>;
4
+ export declare type Option = OptionCommon & {
5
+ created?: boolean;
6
+ };
7
+ export declare type OptionGroup = OptionCommon;
8
+ export declare type OptionType = Option | OptionGroup;
9
+ export declare const selectInputProps: {
10
+ 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>;
11
+ indexType: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
12
+ disabled: BooleanConstructor;
13
+ replace: BooleanConstructor;
14
+ label: StringConstructor;
15
+ data: import("hzzt-plus/es/utils").EpPropFinalized<(new (...args: any[]) => OptionType[]) | (() => OptionType[]) | ((new (...args: any[]) => OptionType[]) | (() => OptionType[]))[], unknown, unknown, () => never[], boolean>;
16
+ inputProps: ObjectConstructor;
17
+ customProps: ObjectConstructor;
18
+ position: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
19
+ formatLabel: {
20
+ readonly type: import("vue").PropType<Function>;
21
+ readonly required: false;
22
+ readonly validator: ((val: unknown) => boolean) | undefined;
23
+ __epPropKey: true;
24
+ };
25
+ split: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
26
+ size: {
27
+ readonly type: import("vue").PropType<import("hzzt-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
28
+ readonly required: false;
29
+ readonly validator: ((val: unknown) => boolean) | undefined;
30
+ __epPropKey: true;
31
+ };
32
+ };
33
+ export declare type SelectInputProps = ExtractPropTypes<typeof selectInputProps>;
34
+ export declare const selectInputEmits: {
35
+ "update:modelValue": (value: string) => boolean;
36
+ input: (value: string) => boolean;
37
+ change: (value: string) => boolean;
38
+ };
39
+ export declare type SelectInputEmits = typeof selectInputEmits;
40
+ export declare type SelectInputInstance = InstanceType<typeof SelectInput>;
41
+ export {};
@@ -0,0 +1,55 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../../../utils/index.js');
6
+ require('../../../hooks/index.js');
7
+ require('../../../constants/index.js');
8
+ var runtime = require('../../../utils/vue/props/runtime.js');
9
+ var index = require('../../../hooks/use-size/index.js');
10
+ var event = require('../../../constants/event.js');
11
+ var shared = require('@vue/shared');
12
+
13
+ const selectInputProps = runtime.buildProps({
14
+ modelValue: {
15
+ type: runtime.definePropType([
16
+ String,
17
+ Number
18
+ ]),
19
+ default: ""
20
+ },
21
+ indexType: {
22
+ type: String,
23
+ default: "number"
24
+ },
25
+ disabled: Boolean,
26
+ replace: Boolean,
27
+ label: String,
28
+ data: {
29
+ type: runtime.definePropType(Array),
30
+ default: () => []
31
+ },
32
+ inputProps: Object,
33
+ customProps: Object,
34
+ position: {
35
+ type: String,
36
+ default: "left"
37
+ },
38
+ formatLabel: {
39
+ type: Function
40
+ },
41
+ split: {
42
+ type: String,
43
+ default: ""
44
+ },
45
+ size: index.useSizeProp
46
+ });
47
+ const selectInputEmits = {
48
+ [event.UPDATE_MODEL_EVENT]: (value) => shared.isString(value),
49
+ input: (value) => shared.isString(value),
50
+ change: (value) => shared.isString(value)
51
+ };
52
+
53
+ exports.selectInputEmits = selectInputEmits;
54
+ exports.selectInputProps = selectInputProps;
55
+ //# sourceMappingURL=select-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-input.js","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":["buildProps","definePropType","useSizeProp","UPDATE_MODEL_EVENT","isString"],"mappings":";;;;;;;;;;;;AAGY,MAAC,gBAAgB,GAAGA,kBAAU,CAAC;AAC3C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEC,sBAAc,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,EAAEA,sBAAc,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,EAAEC,iBAAW;AACnB,CAAC,EAAE;AACS,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAACC,wBAAkB,GAAG,CAAC,KAAK,KAAKC,eAAQ,CAAC,KAAK,CAAC;AAClD,EAAE,KAAK,EAAE,CAAC,KAAK,KAAKA,eAAQ,CAAC,KAAK,CAAC;AACnC,EAAE,MAAM,EAAE,CAAC,KAAK,KAAKA,eAAQ,CAAC,KAAK,CAAC;AACpC;;;;;"}