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.
- package/attributes.json +1 -0
- package/dist/index.full.js +5236 -2048
- package/dist/index.full.min.js +17 -17
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +18 -18
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +5231 -2051
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/es/component.mjs +5 -1
- package/es/component.mjs.map +1 -1
- package/es/components/confirm-password/index.d.ts +46 -22
- package/es/components/confirm-password/src/confirm-password.vue.d.ts +46 -22
- package/es/components/dropdown/index.d.ts +5 -5
- package/es/components/dropdown/src/index.mjs +3 -2
- package/es/components/dropdown/src/index.mjs.map +1 -1
- package/es/components/dropdown/src/index.vue.d.ts +6 -5
- package/es/components/icon/src/index.vue.d.ts +4 -4
- package/es/components/index.d.ts +2 -0
- package/es/components/index.mjs +4 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/page-size/index.d.ts +10225 -532
- package/es/components/page-size/src/index.mjs.map +1 -1
- package/es/components/page-size/src/index.vue.d.ts +10225 -532
- package/es/components/pagination/index.d.ts +4 -4
- package/es/components/pagination/src/index.vue.d.ts +4 -4
- package/es/components/quarter-picker/index.d.ts +121 -97
- package/es/components/quarter-picker/src/index.vue.d.ts +121 -97
- package/es/components/scan/src/scan.vue.d.ts +46 -22
- package/es/components/scan/src/scan2.mjs.map +1 -1
- package/es/components/select-input/index.d.ts +826 -0
- package/es/components/select-input/index.mjs +9 -0
- package/es/components/select-input/index.mjs.map +1 -0
- package/es/components/select-input/src/select-input.d.ts +41 -0
- package/es/components/select-input/src/select-input.mjs +50 -0
- package/es/components/select-input/src/select-input.mjs.map +1 -0
- package/es/components/select-input/src/select-input.vue.d.ts +826 -0
- package/es/components/select-input/src/select-input2.mjs +129 -0
- package/es/components/select-input/src/select-input2.mjs.map +1 -0
- package/es/components/select-input/style/css.d.ts +2 -0
- package/es/components/select-input/style/css.mjs +3 -0
- package/es/components/select-input/style/css.mjs.map +1 -0
- package/es/components/select-input/style/index.d.ts +2 -0
- package/es/components/select-input/style/index.mjs +3 -0
- package/es/components/select-input/style/index.mjs.map +1 -0
- package/es/components/select-textarea/index.d.ts +13076 -0
- package/es/components/select-textarea/index.mjs +9 -0
- package/es/components/select-textarea/index.mjs.map +1 -0
- package/es/components/select-textarea/src/select-textarea.d.ts +26 -0
- package/es/components/select-textarea/src/select-textarea.mjs +35 -0
- package/es/components/select-textarea/src/select-textarea.mjs.map +1 -0
- package/es/components/select-textarea/src/select-textarea.vue.d.ts +13075 -0
- package/es/components/select-textarea/src/select-textarea2.mjs +105 -0
- package/es/components/select-textarea/src/select-textarea2.mjs.map +1 -0
- package/es/components/select-textarea/style/css.d.ts +2 -0
- package/es/components/select-textarea/style/css.mjs +3 -0
- package/es/components/select-textarea/style/css.mjs.map +1 -0
- package/es/components/select-textarea/style/index.d.ts +2 -0
- package/es/components/select-textarea/style/index.mjs +3 -0
- package/es/components/select-textarea/style/index.mjs.map +1 -0
- package/es/components/tab/index.d.ts +4 -4
- package/es/components/tab/src/index.vue.d.ts +4 -4
- package/es/components/title/index.mjs +2 -2
- package/es/components/title/index.mjs.map +1 -1
- package/es/components/title/src/title2.mjs +3 -4
- package/es/components/title/src/title2.mjs.map +1 -1
- package/es/components/tooltip/index.d.ts +7615 -316
- package/es/components/tooltip/src/tooltip.vue.d.ts +7615 -316
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.mjs +2 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-cursor/index.d.ts +1 -0
- package/es/hooks/use-cursor/index.mjs +14 -0
- package/es/hooks/use-cursor/index.mjs.map +1 -0
- package/es/hooks/use-letter/index.d.ts +1 -0
- package/es/hooks/use-letter/index.mjs +13 -0
- package/es/hooks/use-letter/index.mjs.map +1 -0
- package/es/index.mjs +6 -0
- package/es/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/global.d.ts +2 -0
- package/lib/component.js +5 -1
- package/lib/component.js.map +1 -1
- package/lib/components/confirm-password/index.d.ts +46 -22
- package/lib/components/confirm-password/src/confirm-password.vue.d.ts +46 -22
- package/lib/components/dropdown/index.d.ts +5 -5
- package/lib/components/dropdown/src/index.js +3 -2
- package/lib/components/dropdown/src/index.js.map +1 -1
- package/lib/components/dropdown/src/index.vue.d.ts +6 -5
- package/lib/components/icon/src/index.vue.d.ts +4 -4
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +10 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/page-size/index.d.ts +10225 -532
- package/lib/components/page-size/src/index.js.map +1 -1
- package/lib/components/page-size/src/index.vue.d.ts +10225 -532
- package/lib/components/pagination/index.d.ts +4 -4
- package/lib/components/pagination/src/index.vue.d.ts +4 -4
- package/lib/components/quarter-picker/index.d.ts +121 -97
- package/lib/components/quarter-picker/src/index.vue.d.ts +121 -97
- package/lib/components/scan/src/scan.vue.d.ts +46 -22
- package/lib/components/scan/src/scan2.js.map +1 -1
- package/lib/components/select-input/index.d.ts +826 -0
- package/lib/components/select-input/index.js +16 -0
- package/lib/components/select-input/index.js.map +1 -0
- package/lib/components/select-input/src/select-input.d.ts +41 -0
- package/lib/components/select-input/src/select-input.js +55 -0
- package/lib/components/select-input/src/select-input.js.map +1 -0
- package/lib/components/select-input/src/select-input.vue.d.ts +826 -0
- package/lib/components/select-input/src/select-input2.js +133 -0
- package/lib/components/select-input/src/select-input2.js.map +1 -0
- package/lib/components/select-input/style/css.d.ts +2 -0
- package/lib/components/select-input/style/css.js +6 -0
- package/lib/components/select-input/style/css.js.map +1 -0
- package/lib/components/select-input/style/index.d.ts +2 -0
- package/lib/components/select-input/style/index.js +6 -0
- package/lib/components/select-input/style/index.js.map +1 -0
- package/lib/components/select-textarea/index.d.ts +13076 -0
- package/lib/components/select-textarea/index.js +16 -0
- package/lib/components/select-textarea/index.js.map +1 -0
- package/lib/components/select-textarea/src/select-textarea.d.ts +26 -0
- package/lib/components/select-textarea/src/select-textarea.js +40 -0
- package/lib/components/select-textarea/src/select-textarea.js.map +1 -0
- package/lib/components/select-textarea/src/select-textarea.vue.d.ts +13075 -0
- package/lib/components/select-textarea/src/select-textarea2.js +109 -0
- package/lib/components/select-textarea/src/select-textarea2.js.map +1 -0
- package/lib/components/select-textarea/style/css.d.ts +2 -0
- package/lib/components/select-textarea/style/css.js +6 -0
- package/lib/components/select-textarea/style/css.js.map +1 -0
- package/lib/components/select-textarea/style/index.d.ts +2 -0
- package/lib/components/select-textarea/style/index.js +6 -0
- package/lib/components/select-textarea/style/index.js.map +1 -0
- package/lib/components/tab/index.d.ts +4 -4
- package/lib/components/tab/src/index.vue.d.ts +4 -4
- package/lib/components/title/index.js.map +1 -1
- package/lib/components/title/src/title2.js +3 -4
- package/lib/components/title/src/title2.js.map +1 -1
- package/lib/components/tooltip/index.d.ts +7615 -316
- package/lib/components/tooltip/src/tooltip.vue.d.ts +7615 -316
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +4 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-cursor/index.d.ts +1 -0
- package/lib/hooks/use-cursor/index.js +18 -0
- package/lib/hooks/use-cursor/index.js.map +1 -0
- package/lib/hooks/use-letter/index.d.ts +1 -0
- package/lib/hooks/use-letter/index.js +17 -0
- package/lib/hooks/use-letter/index.js.map +1 -0
- package/lib/index.js +40 -26
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +3 -3
- package/tags.json +1 -0
- package/theme/hzzt-select-input.css +0 -0
- package/theme/hzzt-select-textarea.css +0 -0
- package/theme/src/index.scss +2 -0
- package/theme/src/select-input.scss +0 -0
- package/theme/src/select-textarea.scss +0 -0
- package/web-types.json +692 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../../utils/index.mjs';
|
|
2
|
+
import SelectInput from './src/select-input2.mjs';
|
|
3
|
+
export { selectInputEmits, selectInputProps } from './src/select-input.mjs';
|
|
4
|
+
import { withInstall } from '../../utils/vue/install.mjs';
|
|
5
|
+
|
|
6
|
+
const HzztSelectInput = withInstall(SelectInput);
|
|
7
|
+
|
|
8
|
+
export { HzztSelectInput, HzztSelectInput as default };
|
|
9
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","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":[],"mappings":";;;;;AAEY,MAAC,eAAe,GAAG,WAAW,CAAC,WAAW;;;;"}
|
|
@@ -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,50 @@
|
|
|
1
|
+
import '../../../utils/index.mjs';
|
|
2
|
+
import '../../../hooks/index.mjs';
|
|
3
|
+
import '../../../constants/index.mjs';
|
|
4
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
5
|
+
import { useSizeProp } from '../../../hooks/use-size/index.mjs';
|
|
6
|
+
import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
|
7
|
+
import { isString } from '@vue/shared';
|
|
8
|
+
|
|
9
|
+
const selectInputProps = buildProps({
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: definePropType([
|
|
12
|
+
String,
|
|
13
|
+
Number
|
|
14
|
+
]),
|
|
15
|
+
default: ""
|
|
16
|
+
},
|
|
17
|
+
indexType: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "number"
|
|
20
|
+
},
|
|
21
|
+
disabled: Boolean,
|
|
22
|
+
replace: Boolean,
|
|
23
|
+
label: String,
|
|
24
|
+
data: {
|
|
25
|
+
type: definePropType(Array),
|
|
26
|
+
default: () => []
|
|
27
|
+
},
|
|
28
|
+
inputProps: Object,
|
|
29
|
+
customProps: Object,
|
|
30
|
+
position: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "left"
|
|
33
|
+
},
|
|
34
|
+
formatLabel: {
|
|
35
|
+
type: Function
|
|
36
|
+
},
|
|
37
|
+
split: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: ""
|
|
40
|
+
},
|
|
41
|
+
size: useSizeProp
|
|
42
|
+
});
|
|
43
|
+
const selectInputEmits = {
|
|
44
|
+
[UPDATE_MODEL_EVENT]: (value) => isString(value),
|
|
45
|
+
input: (value) => isString(value),
|
|
46
|
+
change: (value) => isString(value)
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export { selectInputEmits, selectInputProps };
|
|
50
|
+
//# sourceMappingURL=select-input.mjs.map
|
|
@@ -0,0 +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;;;;"}
|