hzzt-plus 1.0.0 → 1.0.1

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 (100) hide show
  1. package/dist/index.full.js +1838 -1451
  2. package/dist/index.full.min.js +14 -14
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +14 -14
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +1836 -1453
  7. package/es/component.mjs +3 -1
  8. package/es/component.mjs.map +1 -1
  9. package/es/components/confirm-password/index.d.ts +46 -22
  10. package/es/components/confirm-password/src/confirm-password.vue.d.ts +46 -22
  11. package/es/components/icon/src/index.vue.d.ts +4 -4
  12. package/es/components/index.d.ts +1 -0
  13. package/es/components/index.mjs +2 -0
  14. package/es/components/index.mjs.map +1 -1
  15. package/es/components/page-size/index.d.ts +10224 -531
  16. package/es/components/page-size/src/index.vue.d.ts +10224 -531
  17. package/es/components/pagination/index.d.ts +4 -4
  18. package/es/components/pagination/src/index.vue.d.ts +4 -4
  19. package/es/components/quarter-picker/index.d.ts +121 -97
  20. package/es/components/quarter-picker/src/index.vue.d.ts +121 -97
  21. package/es/components/scan/src/scan.vue.d.ts +46 -22
  22. package/es/components/select-input/index.d.ts +826 -0
  23. package/es/components/select-input/index.mjs +9 -0
  24. package/es/components/select-input/index.mjs.map +1 -0
  25. package/es/components/select-input/src/select-input.d.ts +41 -0
  26. package/es/components/select-input/src/select-input.mjs +50 -0
  27. package/es/components/select-input/src/select-input.mjs.map +1 -0
  28. package/es/components/select-input/src/select-input.vue.d.ts +826 -0
  29. package/es/components/select-input/src/select-input2.mjs +129 -0
  30. package/es/components/select-input/src/select-input2.mjs.map +1 -0
  31. package/es/components/select-input/style/css.d.ts +2 -0
  32. package/es/components/select-input/style/css.mjs +3 -0
  33. package/es/components/select-input/style/css.mjs.map +1 -0
  34. package/es/components/select-input/style/index.d.ts +2 -0
  35. package/es/components/select-input/style/index.mjs +3 -0
  36. package/es/components/select-input/style/index.mjs.map +1 -0
  37. package/es/components/tab/index.d.ts +4 -4
  38. package/es/components/tab/src/index.vue.d.ts +4 -4
  39. package/es/components/title/index.mjs +2 -2
  40. package/es/components/title/index.mjs.map +1 -1
  41. package/es/components/title/src/title2.mjs +2 -2
  42. package/es/components/tooltip/index.d.ts +7615 -316
  43. package/es/components/tooltip/src/tooltip.vue.d.ts +7615 -316
  44. package/es/hooks/index.d.ts +1 -0
  45. package/es/hooks/index.mjs +1 -0
  46. package/es/hooks/index.mjs.map +1 -1
  47. package/es/hooks/use-letter/index.d.ts +1 -0
  48. package/es/hooks/use-letter/index.mjs +13 -0
  49. package/es/hooks/use-letter/index.mjs.map +1 -0
  50. package/es/index.mjs +3 -0
  51. package/es/index.mjs.map +1 -1
  52. package/global.d.ts +1 -0
  53. package/lib/component.js +3 -1
  54. package/lib/component.js.map +1 -1
  55. package/lib/components/confirm-password/index.d.ts +46 -22
  56. package/lib/components/confirm-password/src/confirm-password.vue.d.ts +46 -22
  57. package/lib/components/icon/src/index.vue.d.ts +4 -4
  58. package/lib/components/index.d.ts +1 -0
  59. package/lib/components/index.js +5 -0
  60. package/lib/components/index.js.map +1 -1
  61. package/lib/components/page-size/index.d.ts +10224 -531
  62. package/lib/components/page-size/src/index.vue.d.ts +10224 -531
  63. package/lib/components/pagination/index.d.ts +4 -4
  64. package/lib/components/pagination/src/index.vue.d.ts +4 -4
  65. package/lib/components/quarter-picker/index.d.ts +121 -97
  66. package/lib/components/quarter-picker/src/index.vue.d.ts +121 -97
  67. package/lib/components/scan/src/scan.vue.d.ts +46 -22
  68. package/lib/components/select-input/index.d.ts +826 -0
  69. package/lib/components/select-input/index.js +16 -0
  70. package/lib/components/select-input/index.js.map +1 -0
  71. package/lib/components/select-input/src/select-input.d.ts +41 -0
  72. package/lib/components/select-input/src/select-input.js +55 -0
  73. package/lib/components/select-input/src/select-input.js.map +1 -0
  74. package/lib/components/select-input/src/select-input.vue.d.ts +826 -0
  75. package/lib/components/select-input/src/select-input2.js +133 -0
  76. package/lib/components/select-input/src/select-input2.js.map +1 -0
  77. package/lib/components/select-input/style/css.d.ts +2 -0
  78. package/lib/components/select-input/style/css.js +6 -0
  79. package/lib/components/select-input/style/css.js.map +1 -0
  80. package/lib/components/select-input/style/index.d.ts +2 -0
  81. package/lib/components/select-input/style/index.js +6 -0
  82. package/lib/components/select-input/style/index.js.map +1 -0
  83. package/lib/components/tab/index.d.ts +4 -4
  84. package/lib/components/tab/src/index.vue.d.ts +4 -4
  85. package/lib/components/title/index.js.map +1 -1
  86. package/lib/components/title/src/title2.js +2 -2
  87. package/lib/components/tooltip/index.d.ts +7615 -316
  88. package/lib/components/tooltip/src/tooltip.vue.d.ts +7615 -316
  89. package/lib/hooks/index.d.ts +1 -0
  90. package/lib/hooks/index.js +2 -0
  91. package/lib/hooks/index.js.map +1 -1
  92. package/lib/hooks/use-letter/index.d.ts +1 -0
  93. package/lib/hooks/use-letter/index.js +17 -0
  94. package/lib/hooks/use-letter/index.js.map +1 -0
  95. package/lib/index.js +33 -26
  96. package/lib/index.js.map +1 -1
  97. package/package.json +3 -3
  98. package/theme/hzzt-select-input.css +0 -0
  99. package/theme/src/index.scss +1 -0
  100. package/theme/src/select-input.scss +0 -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;;;;;"}