hzzt-plus 0.0.5 → 0.0.7

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 (114) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +1131 -180
  3. package/dist/index.full.min.js +18 -18
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +17 -17
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +1130 -181
  8. package/dist/locale/en.js +9 -0
  9. package/dist/locale/en.min.js +1 -1
  10. package/dist/locale/en.min.js.map +1 -1
  11. package/dist/locale/en.min.mjs +1 -1
  12. package/dist/locale/en.min.mjs.map +1 -1
  13. package/dist/locale/en.mjs +9 -0
  14. package/dist/locale/zh-cn.js +9 -0
  15. package/dist/locale/zh-cn.min.js +1 -1
  16. package/dist/locale/zh-cn.min.js.map +1 -1
  17. package/dist/locale/zh-cn.min.mjs +1 -1
  18. package/dist/locale/zh-cn.min.mjs.map +1 -1
  19. package/dist/locale/zh-cn.mjs +9 -0
  20. package/es/component.mjs +5 -1
  21. package/es/component.mjs.map +1 -1
  22. package/es/components/check-button/index.d.ts +109 -0
  23. package/es/components/check-button/index.mjs +8 -0
  24. package/es/components/check-button/index.mjs.map +1 -0
  25. package/es/components/check-button/src/index.mjs +86 -0
  26. package/es/components/check-button/src/index.mjs.map +1 -0
  27. package/es/components/check-button/src/index.vue.d.ts +109 -0
  28. package/es/components/check-button/style/css.d.ts +2 -0
  29. package/es/components/check-button/style/css.mjs +3 -0
  30. package/es/components/check-button/style/css.mjs.map +1 -0
  31. package/es/components/check-button/style/index.d.ts +2 -0
  32. package/es/components/check-button/style/index.mjs +3 -0
  33. package/es/components/check-button/style/index.mjs.map +1 -0
  34. package/es/components/index.d.ts +2 -0
  35. package/es/components/index.mjs +2 -0
  36. package/es/components/index.mjs.map +1 -1
  37. package/es/components/page-size/index.d.ts +27 -27
  38. package/es/components/page-size/src/index.vue.d.ts +27 -27
  39. package/es/components/quarter-picker/index.d.ts +1758 -0
  40. package/es/components/quarter-picker/index.mjs +8 -0
  41. package/es/components/quarter-picker/index.mjs.map +1 -0
  42. package/es/components/quarter-picker/src/hooks/util.d.ts +7 -0
  43. package/es/components/quarter-picker/src/hooks/util.mjs +35 -0
  44. package/es/components/quarter-picker/src/hooks/util.mjs.map +1 -0
  45. package/es/components/quarter-picker/src/index.mjs +276 -0
  46. package/es/components/quarter-picker/src/index.mjs.map +1 -0
  47. package/es/components/quarter-picker/src/index.vue.d.ts +1759 -0
  48. package/es/components/quarter-picker/style/css.d.ts +2 -0
  49. package/es/components/quarter-picker/style/css.mjs +3 -0
  50. package/es/components/quarter-picker/style/css.mjs.map +1 -0
  51. package/es/components/quarter-picker/style/index.d.ts +2 -0
  52. package/es/components/quarter-picker/style/index.mjs +3 -0
  53. package/es/components/quarter-picker/style/index.mjs.map +1 -0
  54. package/es/index.mjs +2 -0
  55. package/es/index.mjs.map +1 -1
  56. package/es/locale/lang/en.d.ts +9 -0
  57. package/es/locale/lang/en.mjs +9 -0
  58. package/es/locale/lang/en.mjs.map +1 -1
  59. package/es/locale/lang/zh-cn.d.ts +9 -0
  60. package/es/locale/lang/zh-cn.mjs +9 -0
  61. package/es/locale/lang/zh-cn.mjs.map +1 -1
  62. package/global.d.ts +2 -0
  63. package/lib/component.js +5 -1
  64. package/lib/component.js.map +1 -1
  65. package/lib/components/check-button/index.d.ts +109 -0
  66. package/lib/components/check-button/index.js +13 -0
  67. package/lib/components/check-button/index.js.map +1 -0
  68. package/lib/components/check-button/src/index.js +90 -0
  69. package/lib/components/check-button/src/index.js.map +1 -0
  70. package/lib/components/check-button/src/index.vue.d.ts +109 -0
  71. package/lib/components/check-button/style/css.d.ts +2 -0
  72. package/lib/components/check-button/style/css.js +6 -0
  73. package/lib/components/check-button/style/css.js.map +1 -0
  74. package/lib/components/check-button/style/index.d.ts +2 -0
  75. package/lib/components/check-button/style/index.js +6 -0
  76. package/lib/components/check-button/style/index.js.map +1 -0
  77. package/lib/components/index.d.ts +2 -0
  78. package/lib/components/index.js +4 -0
  79. package/lib/components/index.js.map +1 -1
  80. package/lib/components/page-size/index.d.ts +27 -27
  81. package/lib/components/page-size/src/index.vue.d.ts +27 -27
  82. package/lib/components/quarter-picker/index.d.ts +1758 -0
  83. package/lib/components/quarter-picker/index.js +13 -0
  84. package/lib/components/quarter-picker/index.js.map +1 -0
  85. package/lib/components/quarter-picker/src/hooks/util.d.ts +7 -0
  86. package/lib/components/quarter-picker/src/hooks/util.js +47 -0
  87. package/lib/components/quarter-picker/src/hooks/util.js.map +1 -0
  88. package/lib/components/quarter-picker/src/index.js +284 -0
  89. package/lib/components/quarter-picker/src/index.js.map +1 -0
  90. package/lib/components/quarter-picker/src/index.vue.d.ts +1759 -0
  91. package/lib/components/quarter-picker/style/css.d.ts +2 -0
  92. package/lib/components/quarter-picker/style/css.js +6 -0
  93. package/lib/components/quarter-picker/style/css.js.map +1 -0
  94. package/lib/components/quarter-picker/style/index.d.ts +2 -0
  95. package/lib/components/quarter-picker/style/index.js +6 -0
  96. package/lib/components/quarter-picker/style/index.js.map +1 -0
  97. package/lib/index.js +30 -26
  98. package/lib/index.js.map +1 -1
  99. package/lib/locale/lang/en.d.ts +9 -0
  100. package/lib/locale/lang/en.js +9 -0
  101. package/lib/locale/lang/en.js.map +1 -1
  102. package/lib/locale/lang/zh-cn.d.ts +9 -0
  103. package/lib/locale/lang/zh-cn.js +9 -0
  104. package/lib/locale/lang/zh-cn.js.map +1 -1
  105. package/package.json +1 -1
  106. package/theme/base.css +1 -1
  107. package/theme/hzzt-check-button.css +1 -0
  108. package/theme/hzzt-quarter-picker.css +1 -0
  109. package/theme/hzzt-var.css +1 -1
  110. package/theme/index.css +1 -1
  111. package/theme/src/check-button.scss +55 -0
  112. package/theme/src/index.scss +2 -0
  113. package/theme/src/mixins/_var.scss +4 -3
  114. package/theme/src/quarter-picker.scss +47 -0
@@ -0,0 +1,2 @@
1
+ import 'hzzt-plus/es/components/base/style/css';
2
+ import 'hzzt-plus/theme/hzzt-quarter-picker.css';
@@ -0,0 +1,3 @@
1
+ import '../../base/style/css.mjs';
2
+ import 'hzzt-plus/theme/hzzt-quarter-picker.css';
3
+ //# sourceMappingURL=css.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ import 'hzzt-plus/es/components/base/style';
2
+ import 'hzzt-plus/theme/src/hzzt-quarter-picker.scss';
@@ -0,0 +1,3 @@
1
+ import '../../base/style/index.mjs';
2
+ import 'hzzt-plus/theme/src/hzzt-quarter-picker.scss';
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/es/index.mjs CHANGED
@@ -18,6 +18,8 @@ export { HzztPagination } from './components/pagination/index.mjs';
18
18
  export { HzztTooltip } from './components/tooltip/index.mjs';
19
19
  export { HzztPageSize } from './components/page-size/index.mjs';
20
20
  export { HzztConfirmPassword } from './components/confirm-password/index.mjs';
21
+ export { HzztCheckButton } from './components/check-button/index.mjs';
22
+ export { HzztQuarterPicker } from './components/quarter-picker/index.mjs';
21
23
  export { INSTALLED_KEY } from './constants/key.mjs';
22
24
  export { componentSizeMap, componentSizes } from './constants/size.mjs';
23
25
  export { WEEK_DAYS, datePickTypes } from './constants/date.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;;;;"}
@@ -16,6 +16,15 @@ declare const _default: {
16
16
  d: string;
17
17
  per_page: string;
18
18
  };
19
+ quarterpicker: {
20
+ prevYear: string;
21
+ nextYear: string;
22
+ year: string;
23
+ firstQuarter: string;
24
+ secondQuarter: string;
25
+ thirdQuarter: string;
26
+ fourthQuarter: string;
27
+ };
19
28
  };
20
29
  };
21
30
  export default _default;
@@ -15,6 +15,15 @@ var English = {
15
15
  page: "page",
16
16
  d: "",
17
17
  per_page: "per page"
18
+ },
19
+ quarterpicker: {
20
+ prevYear: "Previous Year",
21
+ nextYear: "Next Year",
22
+ year: "",
23
+ firstQuarter: "First quarter",
24
+ secondQuarter: "Second quarter",
25
+ thirdQuarter: "Third quarter",
26
+ fourthQuarter: "Fourth quarter"
18
27
  }
19
28
  }
20
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"en.mjs","sources":["../../../../../packages/locale/lang/en.ts"],"sourcesContent":["export default {\n name: 'en',\n hzzt: {\n collapse: {\n expand: 'expand',\n retract: 'retract',\n },\n pagination: {\n total: 'total',\n strip: 'strip',\n },\n pageSize: {\n total: 'total',\n strip: 'strip',\n page: 'page',\n d: '',\n per_page: 'per page',\n },\n },\n}\n"],"names":[],"mappings":"AAAA,cAAe;AACf,EAAE,IAAI,EAAE,IAAI;AACZ,EAAE,IAAI,EAAE;AACR,IAAI,QAAQ,EAAE;AACd,MAAM,MAAM,EAAE,QAAQ;AACtB,MAAM,OAAO,EAAE,SAAS;AACxB,KAAK;AACL,IAAI,UAAU,EAAE;AAChB,MAAM,KAAK,EAAE,OAAO;AACpB,MAAM,KAAK,EAAE,OAAO;AACpB,KAAK;AACL,IAAI,QAAQ,EAAE;AACd,MAAM,KAAK,EAAE,OAAO;AACpB,MAAM,KAAK,EAAE,OAAO;AACpB,MAAM,IAAI,EAAE,MAAM;AAClB,MAAM,CAAC,EAAE,EAAE;AACX,MAAM,QAAQ,EAAE,UAAU;AAC1B,KAAK;AACL,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"en.mjs","sources":["../../../../../packages/locale/lang/en.ts"],"sourcesContent":["export default {\n name: 'en',\n hzzt: {\n collapse: {\n expand: 'expand',\n retract: 'retract',\n },\n pagination: {\n total: 'total',\n strip: 'strip',\n },\n pageSize: {\n total: 'total',\n strip: 'strip',\n page: 'page',\n d: '',\n per_page: 'per page',\n },\n quarterpicker: {\n prevYear: 'Previous Year',\n nextYear: 'Next Year',\n year: '',\n firstQuarter: 'First quarter',\n secondQuarter: 'Second quarter',\n thirdQuarter: 'Third quarter',\n fourthQuarter: 'Fourth quarter',\n },\n },\n}\n"],"names":[],"mappings":"AAAA,cAAe;AACf,EAAE,IAAI,EAAE,IAAI;AACZ,EAAE,IAAI,EAAE;AACR,IAAI,QAAQ,EAAE;AACd,MAAM,MAAM,EAAE,QAAQ;AACtB,MAAM,OAAO,EAAE,SAAS;AACxB,KAAK;AACL,IAAI,UAAU,EAAE;AAChB,MAAM,KAAK,EAAE,OAAO;AACpB,MAAM,KAAK,EAAE,OAAO;AACpB,KAAK;AACL,IAAI,QAAQ,EAAE;AACd,MAAM,KAAK,EAAE,OAAO;AACpB,MAAM,KAAK,EAAE,OAAO;AACpB,MAAM,IAAI,EAAE,MAAM;AAClB,MAAM,CAAC,EAAE,EAAE;AACX,MAAM,QAAQ,EAAE,UAAU;AAC1B,KAAK;AACL,IAAI,aAAa,EAAE;AACnB,MAAM,QAAQ,EAAE,eAAe;AAC/B,MAAM,QAAQ,EAAE,WAAW;AAC3B,MAAM,IAAI,EAAE,EAAE;AACd,MAAM,YAAY,EAAE,eAAe;AACnC,MAAM,aAAa,EAAE,gBAAgB;AACrC,MAAM,YAAY,EAAE,eAAe;AACnC,MAAM,aAAa,EAAE,gBAAgB;AACrC,KAAK;AACL,GAAG;AACH,CAAC;;;;"}
@@ -16,6 +16,15 @@ declare const _default: {
16
16
  page: string;
17
17
  per_page: string;
18
18
  };
19
+ quarterpicker: {
20
+ prevYear: string;
21
+ nextYear: string;
22
+ year: string;
23
+ firstQuarter: string;
24
+ secondQuarter: string;
25
+ thirdQuarter: string;
26
+ fourthQuarter: string;
27
+ };
19
28
  };
20
29
  };
21
30
  export default _default;
@@ -15,6 +15,15 @@ var zhCn = {
15
15
  d: "\u7B2C",
16
16
  page: "\u9875",
17
17
  per_page: "\u6BCF\u9875"
18
+ },
19
+ quarterpicker: {
20
+ prevYear: "\u524D\u4E00\u5E74",
21
+ nextYear: "\u540E\u4E00\u5E74",
22
+ year: "\u5E74",
23
+ firstQuarter: "\u7B2C\u4E00\u5B63\u5EA6",
24
+ secondQuarter: "\u7B2C\u4E8C\u5B63\u5EA6",
25
+ thirdQuarter: "\u7B2C\u4E09\u5B63\u5EA6",
26
+ fourthQuarter: "\u7B2C\u56DB\u5B63\u5EA6"
18
27
  }
19
28
  }
20
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"zh-cn.mjs","sources":["../../../../../packages/locale/lang/zh-cn.ts"],"sourcesContent":["export default {\n name: 'zh-cn',\n hzzt: {\n collapse: {\n expand: '展开',\n retract: '收起',\n },\n pagination: {\n total: '共',\n strip: '条',\n },\n pageSize: {\n total: '共',\n strip: '条',\n d: '第',\n page: '页',\n per_page: '每页',\n },\n },\n}\n"],"names":[],"mappings":"AAAA,WAAe;AACf,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,IAAI,EAAE;AACR,IAAI,QAAQ,EAAE;AACd,MAAM,MAAM,EAAE,cAAc;AAC5B,MAAM,OAAO,EAAE,cAAc;AAC7B,KAAK;AACL,IAAI,UAAU,EAAE;AAChB,MAAM,KAAK,EAAE,QAAQ;AACrB,MAAM,KAAK,EAAE,QAAQ;AACrB,KAAK;AACL,IAAI,QAAQ,EAAE;AACd,MAAM,KAAK,EAAE,QAAQ;AACrB,MAAM,KAAK,EAAE,QAAQ;AACrB,MAAM,CAAC,EAAE,QAAQ;AACjB,MAAM,IAAI,EAAE,QAAQ;AACpB,MAAM,QAAQ,EAAE,cAAc;AAC9B,KAAK;AACL,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"zh-cn.mjs","sources":["../../../../../packages/locale/lang/zh-cn.ts"],"sourcesContent":["export default {\n name: 'zh-cn',\n hzzt: {\n collapse: {\n expand: '展开',\n retract: '收起',\n },\n pagination: {\n total: '共',\n strip: '条',\n },\n pageSize: {\n total: '共',\n strip: '条',\n d: '第',\n page: '页',\n per_page: '每页',\n },\n quarterpicker: {\n prevYear: '前一年',\n nextYear: '后一年',\n year: '年',\n firstQuarter: '第一季度',\n secondQuarter: '第二季度',\n thirdQuarter: '第三季度',\n fourthQuarter: '第四季度',\n },\n },\n}\n"],"names":[],"mappings":"AAAA,WAAe;AACf,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,IAAI,EAAE;AACR,IAAI,QAAQ,EAAE;AACd,MAAM,MAAM,EAAE,cAAc;AAC5B,MAAM,OAAO,EAAE,cAAc;AAC7B,KAAK;AACL,IAAI,UAAU,EAAE;AAChB,MAAM,KAAK,EAAE,QAAQ;AACrB,MAAM,KAAK,EAAE,QAAQ;AACrB,KAAK;AACL,IAAI,QAAQ,EAAE;AACd,MAAM,KAAK,EAAE,QAAQ;AACrB,MAAM,KAAK,EAAE,QAAQ;AACrB,MAAM,CAAC,EAAE,QAAQ;AACjB,MAAM,IAAI,EAAE,QAAQ;AACpB,MAAM,QAAQ,EAAE,cAAc;AAC9B,KAAK;AACL,IAAI,aAAa,EAAE;AACnB,MAAM,QAAQ,EAAE,oBAAoB;AACpC,MAAM,QAAQ,EAAE,oBAAoB;AACpC,MAAM,IAAI,EAAE,QAAQ;AACpB,MAAM,YAAY,EAAE,0BAA0B;AAC9C,MAAM,aAAa,EAAE,0BAA0B;AAC/C,MAAM,YAAY,EAAE,0BAA0B;AAC9C,MAAM,aAAa,EAAE,0BAA0B;AAC/C,KAAK;AACL,GAAG;AACH,CAAC;;;;"}
package/global.d.ts CHANGED
@@ -11,6 +11,8 @@ declare module 'vue' {
11
11
  HzztTooltip: typeof import('hzzt-plus')['HzztTooltip']
12
12
  HzztPageSize: typeof import('hzzt-plus')['HzztPageSize']
13
13
  HzztConfirmPassword: typeof import('hzzt-plus')['HzztConfirmPassword']
14
+ HzztCheckButton: typeof import('hzzt-plus')['HzztCheckButton']
15
+ HzztQuarterPicker: typeof import('hzzt-plus')['HzztQuarterPicker']
14
16
  }
15
17
  }
16
18
 
package/lib/component.js CHANGED
@@ -12,6 +12,8 @@ var index$6 = require('./components/pagination/index.js');
12
12
  var index$7 = require('./components/tooltip/index.js');
13
13
  var index$8 = require('./components/page-size/index.js');
14
14
  var index$9 = require('./components/confirm-password/index.js');
15
+ var index$a = require('./components/check-button/index.js');
16
+ var index$b = require('./components/quarter-picker/index.js');
15
17
 
16
18
  var Components = [
17
19
  index.HzztConfigProvider,
@@ -23,7 +25,9 @@ var Components = [
23
25
  index$6.HzztPagination,
24
26
  index$7.HzztTooltip,
25
27
  index$8.HzztPageSize,
26
- index$9.HzztConfirmPassword
28
+ index$9.HzztConfirmPassword,
29
+ index$a.HzztCheckButton,
30
+ index$b.HzztQuarterPicker
27
31
  ];
28
32
 
29
33
  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'\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] as Plugin[]\n"],"names":["HzztConfigProvider","HzztTitle","HzztDropdown","HzztCollapse","HzztTab","HzztIcon","HzztPagination","HzztTooltip","HzztPageSize","HzztConfirmPassword"],"mappings":";;;;;;;;;;;;;;;AAUA,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,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'\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;;;;"}
@@ -0,0 +1,109 @@
1
+ export declare const HzztCheckButton: import("hzzt-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2
+ options: {
3
+ type: ArrayConstructor;
4
+ default: () => never[];
5
+ };
6
+ modelValue: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ size: {
11
+ readonly type: import("vue").PropType<import("hzzt-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
12
+ readonly required: false;
13
+ readonly validator: ((val: unknown) => boolean) | undefined;
14
+ __epPropKey: true;
15
+ };
16
+ type: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ isDefault: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ }, {
25
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
26
+ options: {
27
+ type: ArrayConstructor;
28
+ default: () => never[];
29
+ };
30
+ modelValue: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ size: {
35
+ readonly type: import("vue").PropType<import("hzzt-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
36
+ readonly required: false;
37
+ readonly validator: ((val: unknown) => boolean) | undefined;
38
+ __epPropKey: true;
39
+ };
40
+ type: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ isDefault: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ }>> & {
49
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
50
+ onChange?: ((...args: any[]) => any) | undefined;
51
+ }>>;
52
+ emit: (event: "update:modelValue" | "change", ...args: any[]) => void;
53
+ formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
54
+ ns: {
55
+ namespace: import("vue").ComputedRef<string>;
56
+ b: (blockSuffix?: string) => string;
57
+ e: (element?: string | undefined) => string;
58
+ m: (modifier?: string | undefined) => string;
59
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
60
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
61
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
62
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
63
+ is: {
64
+ (name: string, state: boolean | undefined): string;
65
+ (name: string): string;
66
+ };
67
+ cssVar: (object: Record<string, string>) => Record<string, string>;
68
+ cssVarName: (name: string) => string;
69
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
70
+ cssVarBlockName: (name: string) => string;
71
+ };
72
+ trueSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
73
+ compKls: import("vue").ComputedRef<string[]>;
74
+ spanKls: import("vue").ComputedRef<string[]>;
75
+ typeLs: import("vue").ComputedRef<string>;
76
+ selectValue: (value: string) => void;
77
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
78
+ options: {
79
+ type: ArrayConstructor;
80
+ default: () => never[];
81
+ };
82
+ modelValue: {
83
+ type: StringConstructor;
84
+ default: string;
85
+ };
86
+ size: {
87
+ readonly type: import("vue").PropType<import("hzzt-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
88
+ readonly required: false;
89
+ readonly validator: ((val: unknown) => boolean) | undefined;
90
+ __epPropKey: true;
91
+ };
92
+ type: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ isDefault: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ }>> & {
101
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
102
+ onChange?: ((...args: any[]) => any) | undefined;
103
+ }, {
104
+ type: string;
105
+ options: unknown[];
106
+ modelValue: string;
107
+ isDefault: boolean;
108
+ }>> & Record<string, any>;
109
+ export default HzztCheckButton;
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../../utils/index.js');
6
+ var index = require('./src/index.js');
7
+ var install = require('../../utils/vue/install.js');
8
+
9
+ const HzztCheckButton = install.withInstall(index["default"]);
10
+
11
+ exports.HzztCheckButton = HzztCheckButton;
12
+ exports["default"] = HzztCheckButton;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../packages/components/check-button/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\n\nimport CheckButton from './src/index.vue'\n\nexport const HzztCheckButton = withInstall(CheckButton)\nexport default HzztCheckButton\n"],"names":["withInstall","CheckButton"],"mappings":";;;;;;;;AAEY,MAAC,eAAe,GAAGA,mBAAW,CAACC,gBAAW;;;;;"}
@@ -0,0 +1,90 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var elementPlus = require('element-plus');
7
+ require('../../../hooks/index.js');
8
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
9
+ var index = require('../../../hooks/use-size/index.js');
10
+ var index$1 = require('../../../hooks/use-namespace/index.js');
11
+
12
+ const _hoisted_1 = ["onClick"];
13
+ const __default__ = vue.defineComponent({
14
+ name: "HzztCheckButton"
15
+ });
16
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
+ ...__default__,
18
+ props: {
19
+ options: {
20
+ type: Array,
21
+ default: () => []
22
+ },
23
+ modelValue: {
24
+ type: String,
25
+ default: ""
26
+ },
27
+ size: index.useSizeProp,
28
+ type: {
29
+ type: String,
30
+ default: "primary"
31
+ },
32
+ isDefault: {
33
+ type: Boolean,
34
+ default: true
35
+ }
36
+ },
37
+ emits: ["change", "update:modelValue"],
38
+ setup(__props, { emit }) {
39
+ const props = __props;
40
+ const formSize = elementPlus.useFormSize();
41
+ const ns = index$1.useNamespace("check-button");
42
+ const trueSize = vue.computed(() => props.size || formSize.value || index.useGlobalSize().value);
43
+ const compKls = vue.computed(() => {
44
+ return [ns.b()];
45
+ });
46
+ const spanKls = vue.computed(() => {
47
+ return [ns.e("span"), ns.m(trueSize.value)];
48
+ });
49
+ const typeLs = vue.computed(() => ns.m(props.type));
50
+ function selectValue(value) {
51
+ if (props.modelValue === value && props.isDefault) {
52
+ emit("update:modelValue", "");
53
+ emit("change", "");
54
+ } else {
55
+ emit("update:modelValue", value);
56
+ emit("change", value);
57
+ }
58
+ }
59
+ return (_ctx, _cache) => {
60
+ const _component_el_badge = vue.resolveComponent("el-badge");
61
+ return vue.openBlock(), vue.createElementBlock("main", {
62
+ class: vue.normalizeClass(vue.unref(compKls))
63
+ }, [
64
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (item, index) => {
65
+ return vue.openBlock(), vue.createBlock(_component_el_badge, {
66
+ key: index,
67
+ class: "flex-1 flex",
68
+ hidden: !item.number,
69
+ value: item.number
70
+ }, {
71
+ default: vue.withCtx(() => [
72
+ vue.createElementVNode("span", {
73
+ class: vue.normalizeClass([[
74
+ __props.modelValue && __props.modelValue === item.value ? vue.unref(typeLs) : "",
75
+ ...vue.unref(spanKls)
76
+ ], "flex-1"]),
77
+ onClick: ($event) => selectValue(item.value)
78
+ }, vue.toDisplayString(item.label), 11, _hoisted_1)
79
+ ]),
80
+ _: 2
81
+ }, 1032, ["hidden", "value"]);
82
+ }), 128))
83
+ ], 2);
84
+ };
85
+ }
86
+ });
87
+ var CheckButton = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "index.vue"]]);
88
+
89
+ exports["default"] = CheckButton;
90
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../packages/components/check-button/src/index.vue"],"sourcesContent":["<template>\n <main :class=\"compKls\">\n <el-badge\n v-for=\"(item, index) in options\"\n :key=\"index\"\n class=\"flex-1 flex\"\n :hidden=\"!item.number\"\n :value=\"item.number\"\n >\n <span\n :class=\"[\n modelValue && modelValue === item.value ? typeLs : '',\n ...spanKls,\n ]\"\n class=\"flex-1\"\n @click=\"selectValue(item.value)\"\n >{{ item.label }}</span\n >\n </el-badge>\n </main>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useFormSize } from 'element-plus'\nimport { useGlobalSize, useNamespace, useSizeProp } from '@hzzt-plus/hooks'\n\ndefineOptions({\n name: 'HzztCheckButton',\n})\n\nconst props = defineProps({\n options: {\n type: Array,\n default: () => [],\n },\n modelValue: {\n type: String,\n default: '',\n },\n size: useSizeProp,\n type: {\n type: String,\n default: 'primary',\n },\n isDefault: {\n // 阻止按钮置空参数\n type: Boolean,\n default: true,\n },\n})\n\nconst emit = defineEmits(['change', 'update:modelValue'])\nconst formSize = useFormSize()\n\nconst ns = useNamespace('check-button')\n\nconst trueSize = computed(\n () => props.size || formSize.value || useGlobalSize().value\n)\n\nconst compKls = computed(() => {\n return [ns.b()]\n})\n\nconst spanKls = computed(() => {\n return [ns.e('span'), ns.m(trueSize.value)]\n})\n\nconst typeLs = computed(() => ns.m(props.type))\n\nfunction selectValue(value: string) {\n if (props.modelValue === value && props.isDefault) {\n emit('update:modelValue', '')\n emit('change', '')\n } else {\n emit('update:modelValue', value)\n emit('change', value)\n }\n}\n</script>\n\n<style scoped></style>\n"],"names":["useGlobalSize","computed","_resolveComponent","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;;;uCA0Bc,CAAA;AAAA,EACZ,IAAM,EAAA,iBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,IAAA,MAAM,yBAAuB,CAAA,cAAA,CAAA,CAAA;AAE7B,IAAM,MAAA,uBAAgC,CAAA,MAAA,KAAA,CAAA,IAAA,IAAA,QAAA,CAAA,KAAA,IAAAA,mBAAA,EAAA,CAAA,KAAA,CAAA,CAAA;AAEtC,IAAA,MAAM,OAAW,GAAAC,YAAA,CAAA,MAAA;AAAA,MACf,OAAY,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA;AAA0C,KACxD,CAAA,CAAA;AAEA,IAAM,MAAA,OAAA,GAAUA,aAAS,MAAM;AAC7B,MAAO,OAAA,CAAC,EAAG,CAAA,CAAA,CAAE,MAAC,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,QAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AAAA,KACf,CAAA,CAAA;AAED,IAAM,MAAA,MAAA,GAAAA,mBAAyB,EAAA,CAAA,CAAA,CAAA,KAAA,CAAA,IAAA,CAAA,CAAA,CAAA;AAC7B,IAAO,SAAA,WAAM,CAAM,KAAM,EAAA;AAAiB,MAC3C,IAAA,KAAA,CAAA,UAAA,KAAA,KAAA,IAAA,KAAA,CAAA,SAAA,EAAA;AAED,QAAA,wBAAwB,EAAM,GAAG,CAAE;AAEnC,QAAA,IAAA,CAAS,YAAY,CAAe,CAAA;AAClC,OAAA,MAAU;AACR,QAAA,IAAA,CAAK,qBAAqB,KAAE,CAAA,CAAA;AAC5B,QAAA,IAAA,CAAK,UAAU,KAAE,CAAA,CAAA;AAAA,OACZ;AACL,KAAA;AACA,IAAA,OAAA,CAAA,YAAoB,KAAA;AAAA,MACtB,MAAA,mBAAA,GAAAC,oBAAA,CAAA,UAAA,CAAA,CAAA;AAAA,MACF,OAAAC,aAAA,EAAA,EAAAC,sBAAA,CAAA,MAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,109 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ options: {
3
+ type: ArrayConstructor;
4
+ default: () => never[];
5
+ };
6
+ modelValue: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ size: {
11
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
12
+ readonly required: false;
13
+ readonly validator: ((val: unknown) => boolean) | undefined;
14
+ __epPropKey: true;
15
+ };
16
+ type: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ isDefault: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ }, {
25
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
26
+ options: {
27
+ type: ArrayConstructor;
28
+ default: () => never[];
29
+ };
30
+ modelValue: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ size: {
35
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
36
+ readonly required: false;
37
+ readonly validator: ((val: unknown) => boolean) | undefined;
38
+ __epPropKey: true;
39
+ };
40
+ type: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ isDefault: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ }>> & {
49
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
50
+ onChange?: ((...args: any[]) => any) | undefined;
51
+ }>>;
52
+ emit: (event: "update:modelValue" | "change", ...args: any[]) => void;
53
+ formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
54
+ ns: {
55
+ namespace: import("vue").ComputedRef<string>;
56
+ b: (blockSuffix?: string) => string;
57
+ e: (element?: string | undefined) => string;
58
+ m: (modifier?: string | undefined) => string;
59
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
60
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
61
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
62
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
63
+ is: {
64
+ (name: string, state: boolean | undefined): string;
65
+ (name: string): string;
66
+ };
67
+ cssVar: (object: Record<string, string>) => Record<string, string>;
68
+ cssVarName: (name: string) => string;
69
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
70
+ cssVarBlockName: (name: string) => string;
71
+ };
72
+ trueSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
73
+ compKls: import("vue").ComputedRef<string[]>;
74
+ spanKls: import("vue").ComputedRef<string[]>;
75
+ typeLs: import("vue").ComputedRef<string>;
76
+ selectValue: (value: string) => void;
77
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
78
+ options: {
79
+ type: ArrayConstructor;
80
+ default: () => never[];
81
+ };
82
+ modelValue: {
83
+ type: StringConstructor;
84
+ default: string;
85
+ };
86
+ size: {
87
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
88
+ readonly required: false;
89
+ readonly validator: ((val: unknown) => boolean) | undefined;
90
+ __epPropKey: true;
91
+ };
92
+ type: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ isDefault: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ }>> & {
101
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
102
+ onChange?: ((...args: any[]) => any) | undefined;
103
+ }, {
104
+ type: string;
105
+ options: unknown[];
106
+ modelValue: string;
107
+ isDefault: boolean;
108
+ }>;
109
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import 'hzzt-plus/es/components/base/style/css';
2
+ import 'hzzt-plus/theme/hzzt-check-button.css';
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ require('../../base/style/css.js');
4
+ require('hzzt-plus/theme/hzzt-check-button.css');
5
+
6
+ //# sourceMappingURL=css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -0,0 +1,2 @@
1
+ import 'hzzt-plus/es/components/base/style';
2
+ import 'hzzt-plus/theme/src/hzzt-check-button.scss';
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ require('../../base/style/index.js');
4
+ require('hzzt-plus/theme/src/hzzt-check-button.scss');
5
+
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -8,3 +8,5 @@ export * from './pagination';
8
8
  export * from './tooltip';
9
9
  export * from './page-size';
10
10
  export * from './confirm-password';
11
+ export * from './check-button';
12
+ export * from './quarter-picker';
@@ -12,6 +12,8 @@ var index$6 = require('./pagination/index.js');
12
12
  var index$7 = require('./tooltip/index.js');
13
13
  var index$8 = require('./page-size/index.js');
14
14
  var index$9 = require('./confirm-password/index.js');
15
+ var index$a = require('./check-button/index.js');
16
+ var index$b = require('./quarter-picker/index.js');
15
17
  var configProviderProps = require('./config-provider/src/config-provider-props.js');
16
18
  var constants = require('./config-provider/src/constants.js');
17
19
  var useGlobalConfig = require('./config-provider/src/hooks/use-global-config.js');
@@ -28,6 +30,8 @@ exports.HzztPagination = index$6.HzztPagination;
28
30
  exports.HzztTooltip = index$7.HzztTooltip;
29
31
  exports.HzztPageSize = index$8.HzztPageSize;
30
32
  exports.HzztConfirmPassword = index$9.HzztConfirmPassword;
33
+ exports.HzztCheckButton = index$a.HzztCheckButton;
34
+ exports.HzztQuarterPicker = index$b.HzztQuarterPicker;
31
35
  exports.configProviderProps = configProviderProps.configProviderProps;
32
36
  exports.configProviderContextKey = constants.configProviderContextKey;
33
37
  exports.provideGlobalConfig = useGlobalConfig.provideGlobalConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}