hzzt-plus 0.0.9 → 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 (81) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +395 -217
  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 +390 -219
  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/title/index.d.ts +4 -29
  29. package/es/components/title/index.mjs +2 -1
  30. package/es/components/title/index.mjs.map +1 -1
  31. package/es/components/title/src/title.d.ts +8 -0
  32. package/es/components/title/src/title.mjs +8 -43
  33. package/es/components/title/src/title.mjs.map +1 -1
  34. package/es/components/title/src/title.vue.d.ts +7 -16
  35. package/es/components/title/src/title2.mjs +44 -0
  36. package/es/components/title/src/title2.mjs.map +1 -0
  37. package/es/constants/index.d.ts +1 -0
  38. package/es/constants/index.mjs +1 -0
  39. package/es/constants/index.mjs.map +1 -1
  40. package/es/index.mjs +4 -0
  41. package/es/index.mjs.map +1 -1
  42. package/global.d.ts +1 -0
  43. package/lib/component.js +3 -1
  44. package/lib/component.js.map +1 -1
  45. package/lib/components/index.d.ts +1 -0
  46. package/lib/components/index.js +7 -0
  47. package/lib/components/index.js.map +1 -1
  48. package/lib/components/scan/index.d.ts +5 -0
  49. package/lib/components/scan/index.js +16 -0
  50. package/lib/components/scan/index.js.map +1 -0
  51. package/lib/components/scan/src/scan.d.ts +15 -0
  52. package/lib/components/scan/src/scan.js +33 -0
  53. package/lib/components/scan/src/scan.js.map +1 -0
  54. package/lib/components/scan/src/scan.vue.d.ts +572 -0
  55. package/lib/components/scan/src/scan2.js +153 -0
  56. package/lib/components/scan/src/scan2.js.map +1 -0
  57. package/lib/components/scan/style/css.d.ts +2 -0
  58. package/lib/components/scan/style/css.js +6 -0
  59. package/lib/components/scan/style/css.js.map +1 -0
  60. package/lib/components/scan/style/index.d.ts +2 -0
  61. package/lib/components/scan/style/index.js +6 -0
  62. package/lib/components/scan/style/index.js.map +1 -0
  63. package/lib/components/title/index.d.ts +4 -29
  64. package/lib/components/title/index.js +3 -1
  65. package/lib/components/title/index.js.map +1 -1
  66. package/lib/components/title/src/title.d.ts +8 -0
  67. package/lib/components/title/src/title.js +8 -43
  68. package/lib/components/title/src/title.js.map +1 -1
  69. package/lib/components/title/src/title.vue.d.ts +7 -16
  70. package/lib/components/title/src/title2.js +48 -0
  71. package/lib/components/title/src/title2.js.map +1 -0
  72. package/lib/constants/index.d.ts +1 -0
  73. package/lib/constants/index.js +4 -0
  74. package/lib/constants/index.js.map +1 -1
  75. package/lib/index.js +37 -26
  76. package/lib/index.js.map +1 -1
  77. package/package.json +1 -1
  78. package/theme/hzzt-scan.css +1 -0
  79. package/theme/index.css +1 -1
  80. package/theme/src/index.scss +1 -0
  81. package/theme/src/scan.scss +80 -0
package/es/component.mjs CHANGED
@@ -10,6 +10,7 @@ import { HzztPageSize } from './components/page-size/index.mjs';
10
10
  import { HzztConfirmPassword } from './components/confirm-password/index.mjs';
11
11
  import { HzztCheckButton } from './components/check-button/index.mjs';
12
12
  import { HzztQuarterPicker } from './components/quarter-picker/index.mjs';
13
+ import { HzztScan } from './components/scan/index.mjs';
13
14
 
14
15
  var Components = [
15
16
  HzztConfigProvider,
@@ -23,7 +24,8 @@ var Components = [
23
24
  HzztPageSize,
24
25
  HzztConfirmPassword,
25
26
  HzztCheckButton,
26
- HzztQuarterPicker
27
+ HzztQuarterPicker,
28
+ HzztScan
27
29
  ];
28
30
 
29
31
  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'\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":[],"mappings":";;;;;;;;;;;;;AAYA,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,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'\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":[],"mappings":";;;;;;;;;;;;;;AAaA,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,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';
@@ -10,7 +10,10 @@ export { HzztPageSize } from './page-size/index.mjs';
10
10
  export { HzztConfirmPassword } from './confirm-password/index.mjs';
11
11
  export { HzztCheckButton } from './check-button/index.mjs';
12
12
  export { HzztQuarterPicker } from './quarter-picker/index.mjs';
13
+ export { HzztScan } from './scan/index.mjs';
14
+ export { titleProps } from './title/src/title.mjs';
13
15
  export { configProviderProps } from './config-provider/src/config-provider-props.mjs';
14
16
  export { configProviderContextKey } from './config-provider/src/constants.mjs';
15
17
  export { provideGlobalConfig, useGlobalConfig } from './config-provider/src/hooks/use-global-config.mjs';
18
+ export { scanEmits, scanProps } from './scan/src/scan.mjs';
16
19
  //# 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 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,9 @@
1
+ import '../../utils/index.mjs';
2
+ import Scan from './src/scan2.mjs';
3
+ export { scanEmits, scanProps } from './src/scan.mjs';
4
+ import { withInstall } from '../../utils/vue/install.mjs';
5
+
6
+ const HzztScan = withInstall(Scan);
7
+
8
+ export { HzztScan, HzztScan as default };
9
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","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":[],"mappings":";;;;;AAEY,MAAC,QAAQ,GAAG,WAAW,CAAC,IAAI;;;;"}
@@ -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,28 @@
1
+ import '../../../utils/index.mjs';
2
+ import '../../../constants/index.mjs';
3
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
4
+ import { UPDATE_MODEL_EVENT, CHANGE_EVENT, INPUT_EVENT } from '../../../constants/event.mjs';
5
+ import { isString } from '@vue/shared';
6
+
7
+ const scanProps = buildProps({
8
+ modelValue: {
9
+ type: String,
10
+ default: ""
11
+ },
12
+ placeholder: {
13
+ type: String,
14
+ default: ""
15
+ },
16
+ letter: {
17
+ type: String,
18
+ default: "upper"
19
+ }
20
+ });
21
+ const scanEmits = {
22
+ [UPDATE_MODEL_EVENT]: (value) => isString(value),
23
+ [CHANGE_EVENT]: (value) => isString(value),
24
+ [INPUT_EVENT]: (value) => isString(value)
25
+ };
26
+
27
+ export { scanEmits, scanProps };
28
+ //# sourceMappingURL=scan.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scan.mjs","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":[],"mappings":";;;;;;AAMY,MAAC,SAAS,GAAG,UAAU,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,CAAC,kBAAkB,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AAClD,EAAE,CAAC,YAAY,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AAC5C,EAAE,CAAC,WAAW,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AAC3C;;;;"}