@koi-design/uxd-ui 14.0.7 → 14.0.9

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 (188) hide show
  1. package/es/components/Cascader/Cascader.d.ts +3 -3
  2. package/es/components/Cascader/Cascader.mjs +2 -4
  3. package/es/components/Cascader/Cascader.mjs.map +1 -1
  4. package/es/components/Cascader/Cascader.type.d.ts +1 -1
  5. package/es/components/Cascader/Cascader.type.mjs +1 -1
  6. package/es/components/Cascader/Cascader.type.mjs.map +1 -1
  7. package/es/components/Cascader/CascaderMenu.mjs +4 -4
  8. package/es/components/Cascader/CascaderMenu.mjs.map +1 -1
  9. package/es/components/Cascader/index.d.ts +6 -6
  10. package/es/components/Checkbox/Checkbox.mjs +1 -0
  11. package/es/components/Checkbox/Checkbox.mjs.map +1 -1
  12. package/es/components/Checkbox/Checkbox.type.d.ts +1 -0
  13. package/es/components/Checkbox/Checkbox.type.mjs +2 -1
  14. package/es/components/Checkbox/Checkbox.type.mjs.map +1 -1
  15. package/es/components/Checkbox/Checkbox.vue.d.ts +2 -0
  16. package/es/components/Checkbox/CheckboxGroup.vue.d.ts +2 -0
  17. package/es/components/Checkbox/index.d.ts +7 -0
  18. package/es/components/Progress/Circle.mjs +1 -3
  19. package/es/components/Progress/Circle.mjs.map +1 -1
  20. package/es/components/Progress/Progress.mjs +2 -3
  21. package/es/components/Progress/Progress.mjs.map +1 -1
  22. package/es/components/Progress/Progress.type.d.ts +1 -6
  23. package/es/components/Progress/Progress.type.mjs +0 -6
  24. package/es/components/Progress/Progress.type.mjs.map +1 -1
  25. package/es/components/Progress/Progress.vue.d.ts +0 -16
  26. package/es/components/Progress/index.d.ts +0 -33
  27. package/es/components/Select/RefSelect.vue.d.ts +7 -0
  28. package/es/components/Table/BaseTable.vue.d.ts +7 -0
  29. package/es/components/Table/BodyTable.vue.d.ts +7 -0
  30. package/es/components/Table/HeadTable.vue.d.ts +7 -0
  31. package/es/components/Table/Table.vue.d.ts +14 -0
  32. package/es/components/Table/TableBox.vue.d.ts +14 -0
  33. package/es/components/Table/tableUnits/FilterDropdown.vue.d.ts +7 -0
  34. package/es/components/Table/tableUnits/SelectionBox.vue.d.ts +7 -0
  35. package/es/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +7 -0
  36. package/es/components/Table/tableUnits/TableHeader.vue.d.ts +7 -0
  37. package/es/components/Table/tableUnits/TableHeaderRow.vue.d.ts +7 -0
  38. package/es/components/Transfer/Operation.mjs +6 -4
  39. package/es/components/Transfer/Operation.mjs.map +1 -1
  40. package/es/components/Transfer/Transfer.mjs +2 -4
  41. package/es/components/Transfer/Transfer.mjs.map +1 -1
  42. package/es/components/Transfer/Transfer.type.d.ts +0 -5
  43. package/es/components/Transfer/Transfer.type.mjs +1 -8
  44. package/es/components/Transfer/Transfer.type.mjs.map +1 -1
  45. package/es/components/Transfer/Transfer.vue.d.ts +42 -11
  46. package/es/components/Transfer/TransferList.mjs +14 -10
  47. package/es/components/Transfer/TransferList.mjs.map +1 -1
  48. package/es/components/Transfer/TransferList.vue.d.ts +14 -0
  49. package/es/components/Transfer/TransferListItem.vue.d.ts +7 -0
  50. package/es/components/Transfer/index.d.ts +112 -18
  51. package/es/components/Tree/SubTree.vue.d.ts +7 -0
  52. package/es/components/Tree/Tree.vue.d.ts +7 -0
  53. package/es/components/Tree/TreeNode.vue.d.ts +7 -0
  54. package/es/components/Tree/index.d.ts +14 -0
  55. package/es/components/TreeSelect/TreeSelect.vue.d.ts +14 -0
  56. package/es/components/TreeSelect/index.d.ts +28 -0
  57. package/es/components/Upload/UploadList.vue.d.ts +0 -33
  58. package/lib/components/Cascader/Cascader.d.ts +3 -3
  59. package/lib/components/Cascader/Cascader.js +2 -4
  60. package/lib/components/Cascader/Cascader.js.map +1 -1
  61. package/lib/components/Cascader/Cascader.type.d.ts +1 -1
  62. package/lib/components/Cascader/Cascader.type.js +1 -1
  63. package/lib/components/Cascader/Cascader.type.js.map +1 -1
  64. package/lib/components/Cascader/CascaderMenu.js +3 -3
  65. package/lib/components/Cascader/CascaderMenu.js.map +1 -1
  66. package/lib/components/Cascader/index.d.ts +6 -6
  67. package/lib/components/Checkbox/Checkbox.js +1 -0
  68. package/lib/components/Checkbox/Checkbox.js.map +1 -1
  69. package/lib/components/Checkbox/Checkbox.type.d.ts +1 -0
  70. package/lib/components/Checkbox/Checkbox.type.js +2 -1
  71. package/lib/components/Checkbox/Checkbox.type.js.map +1 -1
  72. package/lib/components/Checkbox/Checkbox.vue.d.ts +2 -0
  73. package/lib/components/Checkbox/CheckboxGroup.vue.d.ts +2 -0
  74. package/lib/components/Checkbox/index.d.ts +7 -0
  75. package/lib/components/Progress/Circle.js +1 -3
  76. package/lib/components/Progress/Circle.js.map +1 -1
  77. package/lib/components/Progress/Progress.js +2 -3
  78. package/lib/components/Progress/Progress.js.map +1 -1
  79. package/lib/components/Progress/Progress.type.d.ts +1 -6
  80. package/lib/components/Progress/Progress.type.js +0 -6
  81. package/lib/components/Progress/Progress.type.js.map +1 -1
  82. package/lib/components/Progress/Progress.vue.d.ts +0 -16
  83. package/lib/components/Progress/index.d.ts +0 -33
  84. package/lib/components/Select/RefSelect.vue.d.ts +7 -0
  85. package/lib/components/Table/BaseTable.vue.d.ts +7 -0
  86. package/lib/components/Table/BodyTable.vue.d.ts +7 -0
  87. package/lib/components/Table/HeadTable.vue.d.ts +7 -0
  88. package/lib/components/Table/Table.vue.d.ts +14 -0
  89. package/lib/components/Table/TableBox.vue.d.ts +14 -0
  90. package/lib/components/Table/tableUnits/FilterDropdown.vue.d.ts +7 -0
  91. package/lib/components/Table/tableUnits/SelectionBox.vue.d.ts +7 -0
  92. package/lib/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +7 -0
  93. package/lib/components/Table/tableUnits/TableHeader.vue.d.ts +7 -0
  94. package/lib/components/Table/tableUnits/TableHeaderRow.vue.d.ts +7 -0
  95. package/lib/components/Transfer/Operation.js +6 -4
  96. package/lib/components/Transfer/Operation.js.map +1 -1
  97. package/lib/components/Transfer/Transfer.js +2 -4
  98. package/lib/components/Transfer/Transfer.js.map +1 -1
  99. package/lib/components/Transfer/Transfer.type.d.ts +0 -5
  100. package/lib/components/Transfer/Transfer.type.js +0 -7
  101. package/lib/components/Transfer/Transfer.type.js.map +1 -1
  102. package/lib/components/Transfer/Transfer.vue.d.ts +42 -11
  103. package/lib/components/Transfer/TransferList.js +14 -10
  104. package/lib/components/Transfer/TransferList.js.map +1 -1
  105. package/lib/components/Transfer/TransferList.vue.d.ts +14 -0
  106. package/lib/components/Transfer/TransferListItem.vue.d.ts +7 -0
  107. package/lib/components/Transfer/index.d.ts +112 -18
  108. package/lib/components/Tree/SubTree.vue.d.ts +7 -0
  109. package/lib/components/Tree/Tree.vue.d.ts +7 -0
  110. package/lib/components/Tree/TreeNode.vue.d.ts +7 -0
  111. package/lib/components/Tree/index.d.ts +14 -0
  112. package/lib/components/TreeSelect/TreeSelect.vue.d.ts +14 -0
  113. package/lib/components/TreeSelect/index.d.ts +28 -0
  114. package/lib/components/Upload/UploadList.vue.d.ts +0 -33
  115. package/package.json +1 -1
  116. package/styles/components/alert/index.css +1 -1
  117. package/styles/components/autoComplete/index.css +1 -1
  118. package/styles/components/avatar/index.css +1 -1
  119. package/styles/components/button/index.css +1 -1
  120. package/styles/components/carousel/index.css +1 -1
  121. package/styles/components/carousel/index.less +38 -35
  122. package/styles/components/carousel/var.less +6 -19
  123. package/styles/components/cascader/index.css +1 -1
  124. package/styles/components/cascader/index.less +20 -32
  125. package/styles/components/datePicker/index.css +1 -1
  126. package/styles/components/form/index.css +1 -1
  127. package/styles/components/icon/index.css +1 -1
  128. package/styles/components/input/index.css +1 -1
  129. package/styles/components/inputNumber/index.css +1 -1
  130. package/styles/components/link/index.css +1 -1
  131. package/styles/components/mentions/index.css +1 -1
  132. package/styles/components/menu/index.css +1 -1
  133. package/styles/components/menu/var.less +3 -2
  134. package/styles/components/modal/index.css +1 -1
  135. package/styles/components/progress/index.css +1 -1
  136. package/styles/components/progress/index.less +42 -56
  137. package/styles/components/progress/var.less +3 -4
  138. package/styles/components/select/index.css +1 -1
  139. package/styles/components/spin/index.css +1 -1
  140. package/styles/components/timePicker/index.css +1 -1
  141. package/styles/components/transfer/index.css +1 -1
  142. package/styles/components/transfer/index.less +38 -42
  143. package/styles/components/transfer/var.less +8 -42
  144. package/styles/components/tree/index.css +1 -1
  145. package/styles/components/tree/index.less +17 -27
  146. package/styles/components/tree/var.less +5 -16
  147. package/styles/cssVariable.css +1 -1
  148. package/styles/cssVariable.less +1 -11
  149. package/styles/index.css +1 -1
  150. package/styles/tokens/typography.css +1 -1
  151. package/types/components/Cascader/Cascader.d.ts +3 -3
  152. package/types/components/Cascader/Cascader.type.d.ts +1 -1
  153. package/types/components/Cascader/index.d.ts +6 -6
  154. package/types/components/Checkbox/Checkbox.type.d.ts +1 -0
  155. package/types/components/Checkbox/Checkbox.vue.d.ts +2 -0
  156. package/types/components/Checkbox/CheckboxGroup.vue.d.ts +2 -0
  157. package/types/components/Checkbox/index.d.ts +7 -0
  158. package/types/components/Progress/Progress.type.d.ts +1 -6
  159. package/types/components/Progress/Progress.vue.d.ts +0 -16
  160. package/types/components/Progress/index.d.ts +0 -33
  161. package/types/components/Select/RefSelect.vue.d.ts +7 -0
  162. package/types/components/Table/BaseTable.vue.d.ts +7 -0
  163. package/types/components/Table/BodyTable.vue.d.ts +7 -0
  164. package/types/components/Table/HeadTable.vue.d.ts +7 -0
  165. package/types/components/Table/Table.vue.d.ts +14 -0
  166. package/types/components/Table/TableBox.vue.d.ts +14 -0
  167. package/types/components/Table/tableUnits/FilterDropdown.vue.d.ts +7 -0
  168. package/types/components/Table/tableUnits/SelectionBox.vue.d.ts +7 -0
  169. package/types/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +7 -0
  170. package/types/components/Table/tableUnits/TableHeader.vue.d.ts +7 -0
  171. package/types/components/Table/tableUnits/TableHeaderRow.vue.d.ts +7 -0
  172. package/types/components/Transfer/Transfer.type.d.ts +0 -5
  173. package/types/components/Transfer/Transfer.vue.d.ts +42 -11
  174. package/types/components/Transfer/TransferList.vue.d.ts +14 -0
  175. package/types/components/Transfer/TransferListItem.vue.d.ts +7 -0
  176. package/types/components/Transfer/index.d.ts +112 -18
  177. package/types/components/Tree/SubTree.vue.d.ts +7 -0
  178. package/types/components/Tree/Tree.vue.d.ts +7 -0
  179. package/types/components/Tree/TreeNode.vue.d.ts +7 -0
  180. package/types/components/Tree/index.d.ts +14 -0
  181. package/types/components/TreeSelect/TreeSelect.vue.d.ts +14 -0
  182. package/types/components/TreeSelect/index.d.ts +28 -0
  183. package/types/components/Upload/UploadList.vue.d.ts +0 -33
  184. package/uxd-ui.css +1 -1
  185. package/uxd-ui.esm.min.mjs +6 -6
  186. package/uxd-ui.esm.mjs +142 -151
  187. package/uxd-ui.umd.js +141 -150
  188. package/uxd-ui.umd.min.js +6 -6
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.type.mjs","sources":["../../../../src/components/Checkbox/Checkbox.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType, Ref } from 'vue';\nimport { oneOf } from '../../utils/propsValidators';\nimport { normalSizeMap } from '../../utils/globalType';\nimport type { NormalSizeMap } from '../../utils/globalType';\nimport type Checkbox from './Checkbox.vue';\nimport type CheckboxGroup from './CheckboxGroup.vue';\n\nexport type CheckboxValueType = boolean | number | string | undefined;\nexport type CheckboxGroupSingleValue = number | string;\nexport const checkboxGroupType = ['default', 'button'] as const;\nexport type CheckboxGroupType = (typeof checkboxGroupType)[number];\nexport interface CheckboxGroupOption {\n value: CheckboxGroupSingleValue;\n label: string;\n disabled?: boolean;\n border?: boolean;\n}\n\nexport const checkboxProps = {\n modelValue: {\n type: [Boolean, String, Number],\n default: undefined as undefined\n },\n trueValue: {\n type: [String, Number, Boolean],\n default: true\n },\n falseValue: {\n type: [String, Number, Boolean],\n default: false\n },\n value: {\n type: [String, Number],\n default: ''\n },\n disabled: {\n type: Boolean,\n default: false\n },\n name: {\n type: String,\n default: ''\n },\n indeterminate: {\n type: Boolean,\n default: false\n }\n};\n\nexport type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;\n\nexport const checkboxEmits = {\n 'update:modelValue': (val: CheckboxValueType) =>\n val === undefined || typeof val === 'boolean' || typeof val === 'number' || typeof val === 'string',\n change: (val: CheckboxValueType, ev: Event) =>\n (val === undefined || typeof val === 'boolean' || typeof val === 'number' || typeof val === 'string') && ev instanceof Event\n};\n\nexport type CheckboxEmits = typeof checkboxEmits;\n\nexport type CheckboxInstanceType = InstanceType<typeof Checkbox>;\n\nexport const checkboxButtonType = ['border', 'fill', 'card'] as const;\nexport type CheckboxButtonType = (typeof checkboxButtonType)[number];\n\nexport const checkboxGroupProps = {\n modelValue: {\n type: Array as PropType<CheckboxGroupSingleValue[]>,\n default: () => [] as CheckboxGroupSingleValue[]\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap.map((x) => x))\n },\n options: {\n type: Array as PropType<CheckboxGroupOption[]>,\n default: () => [] as CheckboxGroupOption[]\n },\n disabled: {\n type: Boolean,\n default: false\n },\n loading: {\n type: Boolean,\n default: false\n },\n loadingText: {\n type: String\n },\n buttonType: {\n type: String as PropType<CheckboxButtonType>,\n default: 'border',\n validator: oneOf(checkboxButtonType)\n },\n type: {\n type: String as PropType<CheckboxGroupType>,\n default: 'default',\n validator: oneOf(checkboxGroupType)\n },\n buttonFill: {\n type: Boolean,\n default: false\n },\n direction: {\n type: String as PropType<'ltr' | 'rtl'>\n }\n};\n\nexport type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;\n\nexport const checkboxGroupEmits = {\n 'update:modelValue': (v: CheckboxGroupSingleValue[]) =>\n Array.isArray(v) && v.every((x) => x === undefined || typeof x === 'number' || typeof x === 'string'),\n change: (v: CheckboxGroupSingleValue[]) => Array.isArray(v) && v.every((x) => x === undefined || typeof x === 'number' || typeof x === 'string')\n};\n\nexport type CheckboxGroupEmits = typeof checkboxGroupEmits;\n\nexport type CheckboxGroupInstanceType = InstanceType<typeof CheckboxGroup>;\n\nexport interface ChangeState {\n checked: boolean;\n value: CheckboxGroupSingleValue;\n}\n\nexport interface CheckboxGroupContext {\n stateValue: Ref<CheckboxGroupSingleValue[]>;\n size: Ref<NormalSizeMap>;\n disabled: Ref<boolean>;\n buttonType: Ref<boolean>;\n change: (state: ChangeState) => void;\n}\n"],"names":[],"mappings":";;;MASa,oBAAoB,CAAC,WAAW,QAAQ;MASxC,gBAAgB;AAAA,EAC3B,YAAY;AAAA,IACV,MAAM,CAAC,SAAS,QAAQ,MAAM;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,OAAO;AAAA,IACL,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA;AACX,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,eAAe;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA;AAEb;MAIa,gBAAgB;AAAA,EAC3B,qBAAqB,CAAC,QACpB,QAAQ,UAAa,OAAO,QAAQ,aAAa,OAAO,QAAQ,YAAY,OAAO,QAAQ;AAAA,EAC7F,QAAQ,CAAC,KAAwB,QAC9B,QAAQ,UAAa,OAAO,QAAQ,aAAa,OAAO,QAAQ,YAAY,OAAO,QAAQ,aAAa,cAAc;AAC3H;MAMa,qBAAqB,CAAC,UAAU,QAAQ,MAAM;MAG9C,qBAAqB;AAAA,EAChC,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS,MAAM;AAAC;AAClB,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW,MAAM,cAAc,IAAI,CAAC,MAAM,CAAC,CAAC;AAAA;AAC9C,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS,MAAM;AAAC;AAClB,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,aAAa;AAAA,IACX,MAAM;AAAA;AACR,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW,MAAM,kBAAkB;AAAA;AACrC,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW,MAAM,iBAAiB;AAAA;AACpC,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM;AAAA;AAEV;MAIa,qBAAqB;AAAA,EAChC,qBAAqB,CAAC,MACpB,MAAM,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,MAAM,UAAa,OAAO,MAAM,YAAY,OAAO,MAAM,QAAQ;AAAA,EACtG,QAAQ,CAAC,MAAkC,MAAM,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,MAAM,UAAa,OAAO,MAAM,YAAY,OAAO,MAAM,QAAQ;AACjJ;;;;"}
1
+ {"version":3,"file":"Checkbox.type.mjs","sources":["../../../../src/components/Checkbox/Checkbox.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType, Ref } from 'vue';\nimport { oneOf } from '../../utils/propsValidators';\nimport { normalSizeMap } from '../../utils/globalType';\nimport type { NormalSizeMap } from '../../utils/globalType';\nimport type Checkbox from './Checkbox.vue';\nimport type CheckboxGroup from './CheckboxGroup.vue';\n\nexport type CheckboxValueType = boolean | number | string | undefined;\nexport type CheckboxGroupSingleValue = number | string;\nexport const checkboxGroupType = ['default', 'button'] as const;\nexport type CheckboxGroupType = (typeof checkboxGroupType)[number];\nexport interface CheckboxGroupOption {\n value: CheckboxGroupSingleValue;\n label: string;\n disabled?: boolean;\n border?: boolean;\n}\n\nexport const checkboxProps = {\n modelValue: {\n type: [Boolean, String, Number],\n default: undefined as undefined\n },\n trueValue: {\n type: [String, Number, Boolean],\n default: true\n },\n falseValue: {\n type: [String, Number, Boolean],\n default: false\n },\n value: {\n type: [String, Number],\n default: ''\n },\n disabled: {\n type: Boolean,\n default: false\n },\n name: {\n type: String,\n default: ''\n },\n indeterminate: {\n type: Boolean,\n default: false\n }\n};\n\nexport type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;\n\nexport const checkboxEmits = {\n 'update:modelValue': (val: CheckboxValueType) =>\n val === undefined || typeof val === 'boolean' || typeof val === 'number' || typeof val === 'string',\n change: (val: CheckboxValueType, ev: Event) =>\n (val === undefined || typeof val === 'boolean' || typeof val === 'number' || typeof val === 'string') && ev instanceof Event,\n click: (ev: Event) => ev instanceof Event\n};\n\nexport type CheckboxEmits = typeof checkboxEmits;\n\nexport type CheckboxInstanceType = InstanceType<typeof Checkbox>;\n\nexport const checkboxButtonType = ['border', 'fill', 'card'] as const;\nexport type CheckboxButtonType = (typeof checkboxButtonType)[number];\n\nexport const checkboxGroupProps = {\n modelValue: {\n type: Array as PropType<CheckboxGroupSingleValue[]>,\n default: () => [] as CheckboxGroupSingleValue[]\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap.map((x) => x))\n },\n options: {\n type: Array as PropType<CheckboxGroupOption[]>,\n default: () => [] as CheckboxGroupOption[]\n },\n disabled: {\n type: Boolean,\n default: false\n },\n loading: {\n type: Boolean,\n default: false\n },\n loadingText: {\n type: String\n },\n buttonType: {\n type: String as PropType<CheckboxButtonType>,\n default: 'border',\n validator: oneOf(checkboxButtonType)\n },\n type: {\n type: String as PropType<CheckboxGroupType>,\n default: 'default',\n validator: oneOf(checkboxGroupType)\n },\n buttonFill: {\n type: Boolean,\n default: false\n },\n direction: {\n type: String as PropType<'ltr' | 'rtl'>\n }\n};\n\nexport type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;\n\nexport const checkboxGroupEmits = {\n 'update:modelValue': (v: CheckboxGroupSingleValue[]) =>\n Array.isArray(v) && v.every((x) => x === undefined || typeof x === 'number' || typeof x === 'string'),\n change: (v: CheckboxGroupSingleValue[]) => Array.isArray(v) && v.every((x) => x === undefined || typeof x === 'number' || typeof x === 'string')\n};\n\nexport type CheckboxGroupEmits = typeof checkboxGroupEmits;\n\nexport type CheckboxGroupInstanceType = InstanceType<typeof CheckboxGroup>;\n\nexport interface ChangeState {\n checked: boolean;\n value: CheckboxGroupSingleValue;\n}\n\nexport interface CheckboxGroupContext {\n stateValue: Ref<CheckboxGroupSingleValue[]>;\n size: Ref<NormalSizeMap>;\n disabled: Ref<boolean>;\n buttonType: Ref<boolean>;\n change: (state: ChangeState) => void;\n}\n"],"names":[],"mappings":";;;MASa,oBAAoB,CAAC,WAAW,QAAQ;MASxC,gBAAgB;AAAA,EAC3B,YAAY;AAAA,IACV,MAAM,CAAC,SAAS,QAAQ,MAAM;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,OAAO;AAAA,IACL,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA;AACX,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,eAAe;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA;AAEb;MAIa,gBAAgB;AAAA,EAC3B,qBAAqB,CAAC,QACpB,QAAQ,UAAa,OAAO,QAAQ,aAAa,OAAO,QAAQ,Y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Component<import("vue").ExtractPropT
42
42
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
43
  'update:modelValue': (val: import("./Checkbox.type").CheckboxValueType) => boolean;
44
44
  change: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => boolean;
45
+ click: (ev: Event) => boolean;
45
46
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
46
47
  modelValue: {
47
48
  type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
@@ -73,6 +74,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
73
74
  };
74
75
  }>> & Readonly<{
75
76
  onChange?: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => any;
77
+ onClick?: (ev: Event) => any;
76
78
  "onUpdate:modelValue"?: (val: import("./Checkbox.type").CheckboxValueType) => any;
77
79
  }>, {
78
80
  name: string;
@@ -281,6 +281,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
281
281
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
282
282
  'update:modelValue': (val: import("./Checkbox.type").CheckboxValueType) => boolean;
283
283
  change: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => boolean;
284
+ click: (ev: Event) => boolean;
284
285
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
285
286
  modelValue: {
286
287
  type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
@@ -312,6 +313,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
312
313
  };
313
314
  }>> & Readonly<{
314
315
  onChange?: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => any;
316
+ onClick?: (ev: Event) => any;
315
317
  "onUpdate:modelValue"?: (val: import("./Checkbox.type").CheckboxValueType) => any;
316
318
  }>, {
317
319
  name: string;
@@ -31,6 +31,7 @@ export declare const UCheckbox: {
31
31
  };
32
32
  }>> & Readonly<{
33
33
  onChange?: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => any;
34
+ onClick?: (ev: Event) => any;
34
35
  "onUpdate:modelValue"?: (val: import("./Checkbox.type").CheckboxValueType) => any;
35
36
  }>, {
36
37
  prefixCls: import("vue").ComputedRef<string>;
@@ -47,6 +48,7 @@ export declare const UCheckbox: {
47
48
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
48
49
  'update:modelValue': (val: import("./Checkbox.type").CheckboxValueType) => boolean;
49
50
  change: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => boolean;
51
+ click: (ev: Event) => boolean;
50
52
  }, import("vue").PublicProps, {
51
53
  name: string;
52
54
  disabled: boolean;
@@ -227,6 +229,7 @@ export declare const UCheckbox: {
227
229
  };
228
230
  }>> & Readonly<{
229
231
  onChange?: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => any;
232
+ onClick?: (ev: Event) => any;
230
233
  "onUpdate:modelValue"?: (val: import("./Checkbox.type").CheckboxValueType) => any;
231
234
  }>, {
232
235
  prefixCls: import("vue").ComputedRef<string>;
@@ -283,6 +286,7 @@ export declare const UCheckbox: {
283
286
  };
284
287
  }>> & Readonly<{
285
288
  onChange?: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => any;
289
+ onClick?: (ev: Event) => any;
286
290
  "onUpdate:modelValue"?: (val: import("./Checkbox.type").CheckboxValueType) => any;
287
291
  }>, {
288
292
  prefixCls: import("vue").ComputedRef<string>;
@@ -299,6 +303,7 @@ export declare const UCheckbox: {
299
303
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
300
304
  'update:modelValue': (val: import("./Checkbox.type").CheckboxValueType) => boolean;
301
305
  change: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => boolean;
306
+ click: (ev: Event) => boolean;
302
307
  }, string, {
303
308
  name: string;
304
309
  disabled: boolean;
@@ -725,6 +730,7 @@ export declare const UCheckbox: {
725
730
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
726
731
  'update:modelValue': (val: import("./Checkbox.type").CheckboxValueType) => boolean;
727
732
  change: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => boolean;
733
+ click: (ev: Event) => boolean;
728
734
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
729
735
  modelValue: {
730
736
  type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
@@ -756,6 +762,7 @@ export declare const UCheckbox: {
756
762
  };
757
763
  }>> & Readonly<{
758
764
  onChange?: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => any;
765
+ onClick?: (ev: Event) => any;
759
766
  "onUpdate:modelValue"?: (val: import("./Checkbox.type").CheckboxValueType) => any;
760
767
  }>, {
761
768
  name: string;
@@ -125,9 +125,7 @@ var UCircle = defineComponent({
125
125
  const iconSvg = statusIcon.value;
126
126
  const defaultTextRender = isStatus.value ? createVNode("span", {
127
127
  "class": `${prefixCls.value}-text-inner`
128
- }, [createVNode(UIcon, {
129
- "style": "font-size: 24px"
130
- }, {
128
+ }, [createVNode(UIcon, null, {
131
129
  default: () => [createVNode(iconSvg, null, null)]
132
130
  })]) : createVNode("span", {
133
131
  "class": `${prefixCls.value}-text-inner`
@@ -1 +1 @@
1
- {"version":3,"file":"Circle.mjs","sources":["../../../../src/components/Progress/Circle.tsx"],"sourcesContent":["import { defineComponent, watch, onMounted } from 'vue';\nimport type { PropType } from 'vue';\nimport UIcon from '@uxd-ui/components/Icon';\nimport { oneOf } from '../../utils/propsValidators';\nimport useGlobalConfig from '../base/hooks/useGlobalConfig';\nimport URender from '../base/Render';\nimport useProgress from './hooks/useProgress';\nimport { progressEmits, progressStatus, type ProgressStauts } from './Progress.type';\nimport { getSlot } from '../../utils/slots';\n\nconst defineProps = {\n percent: {\n type: Number,\n default: 0\n },\n successPercent: {\n type: Number,\n default: 0\n },\n status: {\n type: String as PropType<ProgressStauts>,\n default: 'normal',\n validator: oneOf(progressStatus)\n },\n hideInfo: {\n type: Boolean,\n default: false\n },\n strokeWidth: {\n type: Number,\n default: 6\n },\n strokeColor: {\n type: [String, Array] as PropType<string | string[]>\n },\n textInside: {\n type: Boolean,\n default: false\n }\n};\n\nexport default defineComponent({\n name: 'UCircle',\n components: {\n URender,\n UIcon\n },\n props: defineProps,\n emits: progressEmits,\n setup(props, { emit, slots }) {\n const { prefixCls } = useGlobalConfig('progress');\n // data\n const patchColor = '#F3F3F3';\n const statusColorMap: Record<ProgressStauts, string> = {\n normal: '#4d9bee',\n active: '#4d9bee',\n wrong: '#ed3f14',\n success: '#19be6b'\n };\n const radius = Math.ceil(44 - props.strokeWidth / 2);\n const len = Math.ceil(Math.PI * 2 * radius);\n\n const { currentStatus, isStatus, statusIcon, handleStatus } = useProgress(props, { emit });\n // computed\n\n // watch\n watch(\n () => props.percent,\n (nv, ov) => {\n if (nv < ov) {\n handleStatus(true);\n } else {\n handleStatus();\n }\n }\n );\n watch(\n () => props.status,\n (nv) => {\n currentStatus.value = nv;\n }\n );\n // lifecycle\n onMounted(() => {\n handleStatus();\n });\n // methods\n const circleStyle = {\n cx: '50%',\n cy: '50%',\n r: '40',\n transform: 'rotate(-90 50 50)',\n 'stroke-width': props.strokeWidth,\n 'stroke-linecap': props.percent === 0 ? 'butt' : 'round'\n };\n\n return () => {\n const { strokeColor, successPercent, percent } = props;\n\n const gradientRender =\n strokeColor !== undefined ? (\n <defs>\n <linearGradient id=\"svg-gradient\" gradientUnits=\"userSpaceOnUse\" x1=\"100%\" y1=\"100%\" x2=\"0\" y2=\"0\">\n <stop offset=\"0%\" stop-color={Array.isArray(props.strokeColor) ? props.strokeColor[0] : props.strokeColor} />\n <stop offset=\"100%\" stop-color={Array.isArray(props.strokeColor) ? props.strokeColor[1] : props.strokeColor} />\n </linearGradient>\n </defs>\n ) : null;\n\n const pathRender = <circle {...circleStyle} stroke={patchColor}></circle>;\n const percentRender = (\n <circle\n {...circleStyle}\n stroke={!props.strokeColor || isStatus.value ? statusColorMap[currentStatus.value] : 'url(#svg-gradient)'}\n stroke-dasharray={`${Math.ceil((props.percent / 100) * len)}, ${len}`}\n stroke-linecap={Math.ceil(props.percent / 100) ? 'round' : 'butt'}\n ></circle>\n );\n\n const successPercentRender = successPercent ? (\n <circle\n {...circleStyle}\n stroke={statusColorMap.success}\n stroke-dasharray={`${Math.ceil((props.successPercent / 100) * len)}, ${len}`}\n ></circle>\n ) : null;\n\n const iconSvg = statusIcon.value;\n\n const defaultTextRender = isStatus.value ? (\n <span class={`${prefixCls.value}-text-inner`}>\n <UIcon style=\"font-size: 24px\">\n <iconSvg></iconSvg>\n </UIcon>\n </span>\n ) : (\n <span class={`${prefixCls.value}-text-inner`}>{percent}%</span>\n );\n\n return (\n <div class={[`${prefixCls.value}`, `${prefixCls.value}-circle`, `${prefixCls.value}-${currentStatus.value}`]}>\n <div class={`${prefixCls.value}-inner`}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"100%\" width=\"100%\" viewBox=\"0 0 100 100\">\n {gradientRender}\n {pathRender}\n {percentRender}\n {successPercentRender}\n </svg>\n <div class={`${prefixCls.value}-text`}>{getSlot(slots).length ? getSlot(slots) : defaultTextRender}</div>\n </div>\n </div>\n );\n };\n }\n});\n"],"names":["defineProps","percent","type","Number","default","successPercent","status","String","validator","oneOf","progressStatus","hideInfo","Boolean","strokeWidth","strokeColor","Array","textInside","defineComponent","name","components","URender","UIcon","props","emits","progressEmits","setup","emit","slots","prefixCls","useGlobalConfig","patchColor","statusColorMap","normal","active","wrong","success","radius","Math","ceil","len","PI","currentStatus","isStatus","statusIcon","handleStatus","useProgress","watch","nv","ov","value","onMounted","circleStyle","cx","cy","r","transform","gradientRender","undefined","_createVNode","isArray","pathRender","_mergeProps","percentRender","successPercentRender","iconSvg","defaultTextRender","_createTextVNode","getSlot","length"],"mappings":";;;;;;;;;AAUA,MAAMA,cAAc;AAAA,EAClBC,SAAS;AAAA,IACPC,MAAMC;AAAAA,IACNC,SAAS;AAAA;AACX,EACAC,gBAAgB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ArC;QAAA;;QAAAjB,SAAAA,OAAAsD,YAAAM;aAAAN;QAAA,SAM/B,GAAG9B,UAAUqB;AAAAA,UAAqBhD,SAAOiE;AAGxD,aAAAR;QAAA,SACc,CAAC,GAAG9B,UAAUqB,SAAS,GAAGrB,UAAUqB,gBAAgB,GAAGrB,UAAUqB,SAASR,cAAcQ,OAAO;AAAA,UAACS;QAAA,SAC9F,GAAG9B,UAAUqB;AAAAA,UAAaS;QAAA;QAAA;QAAA;QAAA;UAEjCF,gBACAI,YACAE,eACAC,oBAAoB,IAAAL;QAAA,SAEX,GAAG9B,UAAUqB;AAAAA,UAAekB,QAAQxC,KAAK,EAAEyC,SAASD,QAAQxC,KAAK,IAAIsC,iBAAiB;;AAI1G;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"Circle.mjs","sources":["../../../../src/components/Progress/Circle.tsx"],"sourcesContent":["import { defineComponent, watch, onMounted } from 'vue';\nimport type { PropType } from 'vue';\nimport UIcon from '@uxd-ui/components/Icon';\nimport { oneOf } from '../../utils/propsValidators';\nimport useGlobalConfig from '../base/hooks/useGlobalConfig';\nimport URender from '../base/Render';\nimport useProgress from './hooks/useProgress';\nimport { progressEmits, progressStatus, type ProgressStauts } from './Progress.type';\nimport { getSlot } from '../../utils/slots';\n\nconst defineProps = {\n percent: {\n type: Number,\n default: 0\n },\n successPercent: {\n type: Number,\n default: 0\n },\n status: {\n type: String as PropType<ProgressStauts>,\n default: 'normal',\n validator: oneOf(progressStatus)\n },\n hideInfo: {\n type: Boolean,\n default: false\n },\n strokeWidth: {\n type: Number,\n default: 6\n },\n strokeColor: {\n type: [String, Array] as PropType<string | string[]>\n },\n textInside: {\n type: Boolean,\n default: false\n }\n};\n\nexport default defineComponent({\n name: 'UCircle',\n components: {\n URender,\n UIcon\n },\n props: defineProps,\n emits: progressEmits,\n setup(props, { emit, slots }) {\n const { prefixCls } = useGlobalConfig('progress');\n // data\n const patchColor = '#F3F3F3';\n const statusColorMap: Record<ProgressStauts, string> = {\n normal: '#4d9bee',\n active: '#4d9bee',\n wrong: '#ed3f14',\n success: '#19be6b'\n };\n const radius = Math.ceil(44 - props.strokeWidth / 2);\n const len = Math.ceil(Math.PI * 2 * radius);\n\n const { currentStatus, isStatus, statusIcon, handleStatus } = useProgress(props, { emit });\n // computed\n\n // watch\n watch(\n () => props.percent,\n (nv, ov) => {\n if (nv < ov) {\n handleStatus(true);\n } else {\n handleStatus();\n }\n }\n );\n watch(\n () => props.status,\n (nv) => {\n currentStatus.value = nv;\n }\n );\n // lifecycle\n onMounted(() => {\n handleStatus();\n });\n // methods\n const circleStyle = {\n cx: '50%',\n cy: '50%',\n r: '40',\n transform: 'rotate(-90 50 50)',\n 'stroke-width': props.strokeWidth,\n 'stroke-linecap': props.percent === 0 ? ('butt' as const) : ('round' as const)\n };\n\n return () => {\n const { strokeColor, successPercent, percent } = props;\n\n const gradientRender =\n strokeColor !== undefined ? (\n <defs>\n <linearGradient id=\"svg-gradient\" gradientUnits=\"userSpaceOnUse\" x1=\"100%\" y1=\"100%\" x2=\"0\" y2=\"0\">\n <stop offset=\"0%\" stop-color={Array.isArray(props.strokeColor) ? props.strokeColor[0] : props.strokeColor} />\n <stop offset=\"100%\" stop-color={Array.isArray(props.strokeColor) ? props.strokeColor[1] : props.strokeColor} />\n </linearGradient>\n </defs>\n ) : null;\n\n const pathRender = <circle {...circleStyle} stroke={patchColor}></circle>;\n const percentRender = (\n <circle\n {...circleStyle}\n stroke={!props.strokeColor || isStatus.value ? statusColorMap[currentStatus.value] : 'url(#svg-gradient)'}\n stroke-dasharray={`${Math.ceil((props.percent / 100) * len)}, ${len}`}\n stroke-linecap={Math.ceil(props.percent / 100) ? 'round' : 'butt'}\n ></circle>\n );\n\n const successPercentRender = successPercent ? (\n <circle\n {...circleStyle}\n stroke={statusColorMap.success}\n stroke-dasharray={`${Math.ceil((props.successPercent / 100) * len)}, ${len}`}\n ></circle>\n ) : null;\n\n const iconSvg = statusIcon.value;\n\n const defaultTextRender = isStatus.value ? (\n <span class={`${prefixCls.value}-text-inner`}>\n <UIcon>\n <iconSvg></iconSvg>\n </UIcon>\n </span>\n ) : (\n <span class={`${prefixCls.value}-text-inner`}>{percent}%</span>\n );\n\n return (\n <div class={[`${prefixCls.value}`, `${prefixCls.value}-circle`, `${prefixCls.value}-${currentStatus.value}`]}>\n <div class={`${prefixCls.value}-inner`}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"100%\" width=\"100%\" viewBox=\"0 0 100 100\">\n {gradientRender}\n {pathRender}\n {percentRender}\n {successPercentRender}\n </svg>\n <div class={`${prefixCls.value}-text`}>{getSlot(slots).length ? getSlot(slots) : defaultTextRender}</div>\n </div>\n </div>\n );\n };\n }\n});\n"],"names":["defineProps","percent","type","Number","default","successPercent","status","String","validator","oneOf","progressStatus","hideInfo","Boolean","strokeWidth","strokeColor","Array","textInside","defineComponent","name","components","URender","UIcon","props","emits","progressEmits","setup","emit","slots","prefixCls","useGlobalConfig","patchColor","statusColorMap","normal","active","wrong","success","radius","Math","ceil","len","PI","currentStatus","isStatus","statusIcon","handleStatus","useProgress","watch","nv","ov","value","onMounted","circleStyle","cx","cy","r","transform","gradientRender","undefined","_createVNode","isArray","pathRender","_mergeProps","percentRender","successPercentRender","iconSvg","defaultTextRender","_createTextVNode","getSlot","length"],"mappings":";;;;;;;;;AAUA,MAAMA,cAAc;AAAA,EAClBC,SAAS;AAAA,IACPC,MAAMC;AAAAA,IACNC,SAAS;AAAA;AACX,EACAC,gBAAgB;AAAA,IACdH,MAAMC;AAAAA,IACNC,SAAS;AAAA;AACX,EACAE,QAAQ;AAAA,IACNJ,MAAMK;AAAAA,IACNH,SAAS;AAAA,IACTI,WAAWC,MAAMC,cAAc;AAAA;AACjC,EACAC,UAAU;AAAA,IACRT,MAAMU;AAAAA,IACNR,SAAS;AAAA;AACX,EACAS,aAAa;AAAA,IACXX,MAAMC;AAAAA,IACNC,SAAS;AAAA;AACX,EACAU,aAAa;AAAA,IACXZ,MAAM,CAACK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ACAI,YACAE,eACAC,oBAAoB,IAAAL;QAAA,SAEX,GAAG9B,UAAUqB;AAAAA,UAAekB,QAAQxC,KAAK,EAAEyC,SAASD,QAAQxC,KAAK,IAAIsC,iBAAiB;;AAI1G;AAEJ,CAAC;;;;"}
@@ -44,14 +44,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
44
44
  "stroke-width": _ctx.strokeWidth,
45
45
  "stroke-color": _ctx.strokeColor,
46
46
  vertical: _ctx.vertical,
47
- "text-inside": _ctx.textInside,
48
- "data-color": _ctx.color
47
+ "text-inside": _ctx.textInside
49
48
  }, {
50
49
  default: withCtx(() => [
51
50
  renderSlot(_ctx.$slots, "default")
52
51
  ]),
53
52
  _: 3
54
- }, 8, ["percent", "success-percent", "status", "hide-info", "stroke-width", "stroke-color", "vertical", "text-inside", "data-color"]);
53
+ }, 8, ["percent", "success-percent", "status", "hide-info", "stroke-width", "stroke-color", "vertical", "text-inside"]);
55
54
  }
56
55
  var Progress = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Progress/Progress.vue"]]);
57
56
 
@@ -1 +1 @@
1
- {"version":3,"file":"Progress.mjs","sources":["../../../../src/components/Progress/Progress.vue"],"sourcesContent":["<template>\n <component\n :is=\"wrapperComponent\"\n :percent=\"percent\"\n :success-percent=\"successPercent\"\n :status=\"status\"\n :hide-info=\"hideInfo\"\n :stroke-width=\"strokeWidth\"\n :stroke-color=\"strokeColor\"\n :vertical=\"vertical\"\n :text-inside=\"textInside\"\n :data-color=\"color\"\n >\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, computed } from 'vue';\nimport ULine from './Line.vue';\nimport UCircle from './Circle';\nimport UWater from './Water.vue';\n\nimport { progressProps } from './Progress.type';\n\nexport default defineComponent({\n name: 'UProgress',\n components: {\n ULine,\n UCircle,\n UWater\n },\n props: progressProps,\n setup(props) {\n const wrapperComponent = computed(() => {\n const { type } = props;\n let wrapComponent = '';\n switch (type) {\n case 'circle':\n wrapComponent = 'u-circle';\n break;\n case 'water':\n wrapComponent = 'u-water';\n break;\n default:\n wrapComponent = 'u-line';\n }\n return wrapComponent;\n });\n return {\n props,\n wrapperComponent\n };\n }\n});\n</script>\n"],"names":["_createBlock","_resolveDynamicComponent","_renderSlot"],"mappings":";;;;;;;AAyBA,MAAK,YAAa,gBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA;AACF,EACA,OAAO;AAAA,EACP,MAAM,OAAO;UACL,mBAAmB,SAAS,MAAM;YAChC,EAAE,SAAS;UACb,gBAAgB;cACZ;AAAA,aACD;0BACa;;aAEb;0BACa;;;0BAGA;AAAA;aAEb;AAAA,KACR;WACM;AAAA,MACL;AAAA,MACA;AAAA;AACF;AAEJ,CAAC;;sBArDCA,YAaYC,wBAZL,qBAAgB;IACpB,SAAS;IACT,mBAAiB;IACjB,QAAQ;IACR,aAAW;IACX,gBAAc;IACd,gBAAc;IACd,UAAU;IACV,eAAa;IACb,cAAY;;qBAEb,MAAQ;AAAA,MAARC,WAAQ;;;;;;;;;"}
1
+ {"version":3,"file":"Progress.mjs","sources":["../../../../src/components/Progress/Progress.vue"],"sourcesContent":["<template>\n <component\n :is=\"wrapperComponent\"\n :percent=\"percent\"\n :success-percent=\"successPercent\"\n :status=\"status\"\n :hide-info=\"hideInfo\"\n :stroke-width=\"strokeWidth\"\n :stroke-color=\"strokeColor\"\n :vertical=\"vertical\"\n :text-inside=\"textInside\"\n >\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, computed } from 'vue';\nimport ULine from './Line.vue';\nimport UCircle from './Circle';\nimport UWater from './Water.vue';\n\nimport { progressProps } from './Progress.type';\n\nexport default defineComponent({\n name: 'UProgress',\n components: {\n ULine,\n UCircle,\n UWater\n },\n props: progressProps,\n setup(props) {\n const wrapperComponent = computed(() => {\n const { type } = props;\n let wrapComponent = '';\n switch (type) {\n case 'circle':\n wrapComponent = 'u-circle';\n break;\n case 'water':\n wrapComponent = 'u-water';\n break;\n default:\n wrapComponent = 'u-line';\n }\n return wrapComponent;\n });\n return {\n props,\n wrapperComponent\n };\n }\n});\n</script>\n"],"names":["_createBlock","_resolveDynamicComponent","_renderSlot"],"mappings":";;;;;;;AAwBA,MAAK,YAAa,gBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA;AACF,EACA,OAAO;AAAA,EACP,MAAM,OAAO;UACL,mBAAmB,SAAS,MAAM;YAChC,EAAE,SAAS;UACb,gBAAgB;cACZ;AAAA,aACD;0BACa;;aAEb;0BACa;;;0BAGA;AAAA;aAEb;AAAA,KACR;WACM;AAAA,MACL;AAAA,MACA;AAAA;AACF;AAEJ,CAAC;;sBApDCA,YAYYC,wBAXL,qBAAgB;IACpB,SAAS;IACT,mBAAiB;IACjB,QAAQ;IACR,aAAW;IACX,gBAAc;IACd,gBAAc;IACd,UAAU;IACV,eAAa;;qBAEd,MAAQ;AAAA,MAARC,WAAQ;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import type { ExtractPropTypes, PropType } from 'vue';
2
- import { type EmitFn } from '../../utils/globalType';
2
+ import type { EmitFn } from '../../utils/globalType';
3
3
  import type Progress from './Progress.vue';
4
4
  export declare const progressStatus: readonly ["normal", "active", "wrong", "success"];
5
5
  export declare type ProgressStauts = (typeof progressStatus)[number];
@@ -43,11 +43,6 @@ export declare const progressProps: {
43
43
  default: string;
44
44
  validator: (val: "circle" | "line" | "water") => boolean;
45
45
  };
46
- color: {
47
- type: PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
48
- default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
49
- validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
50
- };
51
46
  };
52
47
  export declare type ProgressProps = ExtractPropTypes<typeof progressProps>;
53
48
  export declare const progressEmits: {
@@ -1,4 +1,3 @@
1
- import { colorType } from '../../utils/globalType.mjs';
2
1
  import { oneOf } from '../../utils/propsValidators.mjs';
3
2
 
4
3
  const progressStatus = ["normal", "active", "wrong", "success"];
@@ -40,11 +39,6 @@ const progressProps = {
40
39
  type: String,
41
40
  default: "line",
42
41
  validator: oneOf(progressType)
43
- },
44
- color: {
45
- type: String,
46
- default: void 0,
47
- validator: oneOf(colorType)
48
42
  }
49
43
  };
50
44
  const progressEmits = {
@@ -1 +1 @@
1
- {"version":3,"file":"Progress.type.mjs","sources":["../../../../src/components/Progress/Progress.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\nimport { colorType, type ColorType, type EmitFn } from '../../utils/globalType';\nimport { oneOf } from '../../utils/propsValidators';\nimport type Progress from './Progress.vue';\n\nexport const progressStatus = ['normal', 'active', 'wrong', 'success'] as const;\nexport type ProgressStauts = (typeof progressStatus)[number];\nexport const progressType = ['line', 'circle', 'water'] as const;\nexport type ProgressType = (typeof progressType)[number];\n\nexport const progressProps = {\n percent: {\n type: Number,\n default: 0\n },\n successPercent: {\n type: Number,\n default: 0\n },\n status: {\n type: String as PropType<ProgressStauts>,\n default: 'normal',\n validator: oneOf(progressStatus)\n },\n hideInfo: {\n type: Boolean,\n default: false\n },\n strokeWidth: {\n type: Number,\n default: 8\n },\n strokeColor: {\n type: [String, Array] as PropType<string | string[]>\n },\n vertical: {\n type: Boolean,\n default: false\n },\n textInside: {\n type: Boolean,\n default: false\n },\n type: {\n type: String as PropType<ProgressType>,\n default: 'line',\n validator: oneOf(progressType)\n },\n color: {\n type: String as PropType<ColorType | undefined>,\n default: undefined as undefined | ColorType,\n validator: oneOf(colorType)\n }\n};\n\nexport type ProgressProps = ExtractPropTypes<typeof progressProps>;\n\nexport const progressEmits = {\n 'status-change': (status: ProgressStauts) => progressStatus.includes(status)\n};\n\nexport type ProgressEmits = typeof progressEmits;\n\nexport type ProgressEmit = EmitFn<ProgressEmits>;\n\nexport type ProgressInstanceType = InstanceType<typeof Progress>;\n"],"names":[],"mappings":";;;MAKa,iBAAiB,CAAC,UAAU,UAAU,SAAS,SAAS;MAExD,eAAe,CAAC,QAAQ,UAAU,OAAO;MAGzC,gBAAgB;AAAA,EAC3B,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,gBAAgB;AAAA,IACd,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW,MAAM,cAAc;AAAA;AACjC,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,aAAa;AAAA,IACX,MAAM,CAAC,QAAQ,KAAK;AAAA;AACtB,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW,MAAM,YAAY;AAAA;AAC/B,EACA,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW,MAAM,SAAS;AAAA;AAE9B;MAIa,gBAAgB;AAAA,EAC3B,iBAAiB,CAAC,WAA2B,eAAe,SAAS,MAAM;AAC7E;;;;"}
1
+ {"version":3,"file":"Progress.type.mjs","sources":["../../../../src/components/Progress/Progress.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\nimport type { EmitFn } from '../../utils/globalType';\nimport { oneOf } from '../../utils/propsValidators';\nimport type Progress from './Progress.vue';\n\nexport const progressStatus = ['normal', 'active', 'wrong', 'success'] as const;\nexport type ProgressStauts = (typeof progressStatus)[number];\nexport const progressType = ['line', 'circle', 'water'] as const;\nexport type ProgressType = (typeof progressType)[number];\n\nexport const progressProps = {\n percent: {\n type: Number,\n default: 0\n },\n successPercent: {\n type: Number,\n default: 0\n },\n status: {\n type: String as PropType<ProgressStauts>,\n default: 'normal',\n validator: oneOf(progressStatus)\n },\n hideInfo: {\n type: Boolean,\n default: false\n },\n strokeWidth: {\n type: Number,\n default: 8\n },\n strokeColor: {\n type: [String, Array] as PropType<string | string[]>\n },\n vertical: {\n type: Boolean,\n default: false\n },\n textInside: {\n type: Boolean,\n default: false\n },\n type: {\n type: String as PropType<ProgressType>,\n default: 'line',\n validator: oneOf(progressType)\n }\n};\n\nexport type ProgressProps = ExtractPropTypes<typeof progressProps>;\n\nexport const progressEmits = {\n 'status-change': (status: ProgressStauts) => progressStatus.includes(status)\n};\n\nexport type ProgressEmits = typeof progressEmits;\n\nexport type ProgressEmit = EmitFn<ProgressEmits>;\n\nexport type ProgressInstanceType = InstanceType<typeof Progress>;\n"],"names":[],"mappings":";;MAKa,iBAAiB,CAAC,UAAU,UAAU,SAAS,SAAS;MAExD,eAAe,CAAC,QAAQ,UAAU,OAAO;MAGzC,gBAAgB;AAAA,EAC3B,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,gBAAgB;AAAA,IACd,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW,MAAM,cAAc;AAAA;AACjC,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,aAAa;AAAA,IACX,MAAM,CAAC,QAAQ,KAAK;AAAA;AACtB,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW,MAAM,YAAY;AAAA;AAEjC;MAIa,gBAAgB;AAAA,EAC3B,iBAAiB,CAAC,WAA2B,eAAe,SAAS,MAAM;AAC7E;;;;"}
@@ -36,11 +36,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
36
36
  default: string;
37
37
  validator: (val: "circle" | "line" | "water") => boolean;
38
38
  };
39
- color: {
40
- type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
41
- default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
42
- validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
43
- };
44
39
  }>, {
45
40
  props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
46
41
  percent: {
@@ -80,11 +75,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
80
75
  default: string;
81
76
  validator: (val: "circle" | "line" | "water") => boolean;
82
77
  };
83
- color: {
84
- type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
85
- default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
86
- validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
87
- };
88
78
  }>> & Readonly<{}> & {}>;
89
79
  wrapperComponent: import("vue").ComputedRef<string>;
90
80
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -125,13 +115,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
125
115
  default: string;
126
116
  validator: (val: "circle" | "line" | "water") => boolean;
127
117
  };
128
- color: {
129
- type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
130
- default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
131
- validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
132
- };
133
118
  }>> & Readonly<{}>, {
134
- color: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
135
119
  percent: number;
136
120
  status: "success" | "normal" | "active" | "wrong";
137
121
  type: "circle" | "line" | "water";
@@ -37,11 +37,6 @@ export declare const UProgress: {
37
37
  default: string;
38
38
  validator: (val: "circle" | "line" | "water") => boolean;
39
39
  };
40
- color: {
41
- type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
42
- default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
43
- validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
44
- };
45
40
  }>> & Readonly<{}>, {
46
41
  props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
47
42
  percent: {
@@ -81,15 +76,9 @@ export declare const UProgress: {
81
76
  default: string;
82
77
  validator: (val: "circle" | "line" | "water") => boolean;
83
78
  };
84
- color: {
85
- type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
86
- default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
87
- validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
88
- };
89
79
  }>> & Readonly<{}> & {}>;
90
80
  wrapperComponent: import("vue").ComputedRef<string>;
91
81
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
92
- color: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
93
82
  percent: number;
94
83
  status: "success" | "normal" | "active" | "wrong";
95
84
  type: "circle" | "line" | "water";
@@ -652,11 +641,6 @@ export declare const UProgress: {
652
641
  default: string;
653
642
  validator: (val: "circle" | "line" | "water") => boolean;
654
643
  };
655
- color: {
656
- type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
657
- default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
658
- validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
659
- };
660
644
  }>> & Readonly<{}>, {
661
645
  props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
662
646
  percent: {
@@ -696,15 +680,9 @@ export declare const UProgress: {
696
680
  default: string;
697
681
  validator: (val: "circle" | "line" | "water") => boolean;
698
682
  };
699
- color: {
700
- type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
701
- default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
702
- validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
703
- };
704
683
  }>> & Readonly<{}> & {}>;
705
684
  wrapperComponent: import("vue").ComputedRef<string>;
706
685
  }, {}, {}, {}, {
707
- color: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
708
686
  percent: number;
709
687
  status: "success" | "normal" | "active" | "wrong";
710
688
  type: "circle" | "line" | "water";
@@ -755,11 +733,6 @@ export declare const UProgress: {
755
733
  default: string;
756
734
  validator: (val: "circle" | "line" | "water") => boolean;
757
735
  };
758
- color: {
759
- type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
760
- default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
761
- validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
762
- };
763
736
  }>> & Readonly<{}>, {
764
737
  props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
765
738
  percent: {
@@ -799,15 +772,9 @@ export declare const UProgress: {
799
772
  default: string;
800
773
  validator: (val: "circle" | "line" | "water") => boolean;
801
774
  };
802
- color: {
803
- type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
804
- default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
805
- validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
806
- };
807
775
  }>> & Readonly<{}> & {}>;
808
776
  wrapperComponent: import("vue").ComputedRef<string>;
809
777
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
810
- color: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
811
778
  percent: number;
812
779
  status: "success" | "normal" | "active" | "wrong";
813
780
  type: "circle" | "line" | "water";
@@ -3737,6 +3737,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3737
3737
  };
3738
3738
  }>> & Readonly<{
3739
3739
  onChange?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType, ev: Event) => any;
3740
+ onClick?: (ev: Event) => any;
3740
3741
  "onUpdate:modelValue"?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType) => any;
3741
3742
  }>, {
3742
3743
  prefixCls: import("vue").ComputedRef<string>;
@@ -3753,6 +3754,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3753
3754
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3754
3755
  'update:modelValue': (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType) => boolean;
3755
3756
  change: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType, ev: Event) => boolean;
3757
+ click: (ev: Event) => boolean;
3756
3758
  }, import("vue").PublicProps, {
3757
3759
  name: string;
3758
3760
  disabled: boolean;
@@ -3933,6 +3935,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3933
3935
  };
3934
3936
  }>> & Readonly<{
3935
3937
  onChange?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType, ev: Event) => any;
3938
+ onClick?: (ev: Event) => any;
3936
3939
  "onUpdate:modelValue"?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType) => any;
3937
3940
  }>, {
3938
3941
  prefixCls: import("vue").ComputedRef<string>;
@@ -3989,6 +3992,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3989
3992
  };
3990
3993
  }>> & Readonly<{
3991
3994
  onChange?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType, ev: Event) => any;
3995
+ onClick?: (ev: Event) => any;
3992
3996
  "onUpdate:modelValue"?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType) => any;
3993
3997
  }>, {
3994
3998
  prefixCls: import("vue").ComputedRef<string>;
@@ -4005,6 +4009,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4005
4009
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4006
4010
  'update:modelValue': (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType) => boolean;
4007
4011
  change: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType, ev: Event) => boolean;
4012
+ click: (ev: Event) => boolean;
4008
4013
  }, string, {
4009
4014
  name: string;
4010
4015
  disabled: boolean;
@@ -4431,6 +4436,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4431
4436
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4432
4437
  'update:modelValue': (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType) => boolean;
4433
4438
  change: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType, ev: Event) => boolean;
4439
+ click: (ev: Event) => boolean;
4434
4440
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
4435
4441
  modelValue: {
4436
4442
  type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
@@ -4462,6 +4468,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4462
4468
  };
4463
4469
  }>> & Readonly<{
4464
4470
  onChange?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType, ev: Event) => any;
4471
+ onClick?: (ev: Event) => any;
4465
4472
  "onUpdate:modelValue"?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType) => any;
4466
4473
  }>, {
4467
4474
  name: string;
@@ -3097,6 +3097,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3097
3097
  };
3098
3098
  }>> & Readonly<{
3099
3099
  onChange?: (val: import("..").CheckboxValueType, ev: Event) => any;
3100
+ onClick?: (ev: Event) => any;
3100
3101
  "onUpdate:modelValue"?: (val: import("..").CheckboxValueType) => any;
3101
3102
  }>, {
3102
3103
  prefixCls: import("vue").ComputedRef<string>;
@@ -3113,6 +3114,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3113
3114
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3114
3115
  'update:modelValue': (val: import("..").CheckboxValueType) => boolean;
3115
3116
  change: (val: import("..").CheckboxValueType, ev: Event) => boolean;
3117
+ click: (ev: Event) => boolean;
3116
3118
  }, import("vue").PublicProps, {
3117
3119
  name: string;
3118
3120
  disabled: boolean;
@@ -3293,6 +3295,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3293
3295
  };
3294
3296
  }>> & Readonly<{
3295
3297
  onChange?: (val: import("..").CheckboxValueType, ev: Event) => any;
3298
+ onClick?: (ev: Event) => any;
3296
3299
  "onUpdate:modelValue"?: (val: import("..").CheckboxValueType) => any;
3297
3300
  }>, {
3298
3301
  prefixCls: import("vue").ComputedRef<string>;
@@ -3349,6 +3352,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3349
3352
  };
3350
3353
  }>> & Readonly<{
3351
3354
  onChange?: (val: import("..").CheckboxValueType, ev: Event) => any;
3355
+ onClick?: (ev: Event) => any;
3352
3356
  "onUpdate:modelValue"?: (val: import("..").CheckboxValueType) => any;
3353
3357
  }>, {
3354
3358
  prefixCls: import("vue").ComputedRef<string>;
@@ -3365,6 +3369,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3365
3369
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3366
3370
  'update:modelValue': (val: import("..").CheckboxValueType) => boolean;
3367
3371
  change: (val: import("..").CheckboxValueType, ev: Event) => boolean;
3372
+ click: (ev: Event) => boolean;
3368
3373
  }, string, {
3369
3374
  name: string;
3370
3375
  disabled: boolean;
@@ -3791,6 +3796,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3791
3796
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3792
3797
  'update:modelValue': (val: import("..").CheckboxValueType) => boolean;
3793
3798
  change: (val: import("..").CheckboxValueType, ev: Event) => boolean;
3799
+ click: (ev: Event) => boolean;
3794
3800
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
3795
3801
  modelValue: {
3796
3802
  type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
@@ -3822,6 +3828,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3822
3828
  };
3823
3829
  }>> & Readonly<{
3824
3830
  onChange?: (val: import("..").CheckboxValueType, ev: Event) => any;
3831
+ onClick?: (ev: Event) => any;
3825
3832
  "onUpdate:modelValue"?: (val: import("..").CheckboxValueType) => any;
3826
3833
  }>, {
3827
3834
  name: string;
@@ -3116,6 +3116,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3116
3116
  };
3117
3117
  }>> & Readonly<{
3118
3118
  onChange?: (val: import("..").CheckboxValueType, ev: Event) => any;
3119
+ onClick?: (ev: Event) => any;
3119
3120
  "onUpdate:modelValue"?: (val: import("..").CheckboxValueType) => any;
3120
3121
  }>, {
3121
3122
  prefixCls: import("vue").ComputedRef<string>;
@@ -3132,6 +3133,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3132
3133
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3133
3134
  'update:modelValue': (val: import("..").CheckboxValueType) => boolean;
3134
3135
  change: (val: import("..").CheckboxValueType, ev: Event) => boolean;
3136
+ click: (ev: Event) => boolean;
3135
3137
  }, import("vue").PublicProps, {
3136
3138
  name: string;
3137
3139
  disabled: boolean;
@@ -3312,6 +3314,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3312
3314
  };
3313
3315
  }>> & Readonly<{
3314
3316
  onChange?: (val: import("..").CheckboxValueType, ev: Event) => any;
3317
+ onClick?: (ev: Event) => any;
3315
3318
  "onUpdate:modelValue"?: (val: import("..").CheckboxValueType) => any;
3316
3319
  }>, {
3317
3320
  prefixCls: import("vue").ComputedRef<string>;
@@ -3368,6 +3371,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3368
3371
  };
3369
3372
  }>> & Readonly<{
3370
3373
  onChange?: (val: import("..").CheckboxValueType, ev: Event) => any;
3374
+ onClick?: (ev: Event) => any;
3371
3375
  "onUpdate:modelValue"?: (val: import("..").CheckboxValueType) => any;
3372
3376
  }>, {
3373
3377
  prefixCls: import("vue").ComputedRef<string>;
@@ -3384,6 +3388,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3384
3388
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3385
3389
  'update:modelValue': (val: import("..").CheckboxValueType) => boolean;
3386
3390
  change: (val: import("..").CheckboxValueType, ev: Event) => boolean;
3391
+ click: (ev: Event) => boolean;
3387
3392
  }, string, {
3388
3393
  name: string;
3389
3394
  disabled: boolean;
@@ -3810,6 +3815,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3810
3815
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3811
3816
  'update:modelValue': (val: import("..").CheckboxValueType) => boolean;
3812
3817
  change: (val: import("..").CheckboxValueType, ev: Event) => boolean;
3818
+ click: (ev: Event) => boolean;
3813
3819
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
3814
3820
  modelValue: {
3815
3821
  type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
@@ -3841,6 +3847,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3841
3847
  };
3842
3848
  }>> & Readonly<{
3843
3849
  onChange?: (val: import("..").CheckboxValueType, ev: Event) => any;
3850
+ onClick?: (ev: Event) => any;
3844
3851
  "onUpdate:modelValue"?: (val: import("..").CheckboxValueType) => any;
3845
3852
  }>, {
3846
3853
  name: string;