bkui-vue 0.0.2-beta.78.beta.1 → 0.0.2-beta.79

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 (212) hide show
  1. package/dist/index.cjs.js +161 -135
  2. package/dist/index.esm.js +18864 -16279
  3. package/dist/index.umd.js +161 -135
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +1 -321
  7. package/lib/alert/index.js +1 -214
  8. package/lib/animate-number/index.js +1 -155
  9. package/lib/backtop/index.js +1 -188
  10. package/lib/badge/index.js +1 -235
  11. package/lib/breadcrumb/index.js +1 -309
  12. package/lib/button/index.js +1 -321
  13. package/lib/card/index.js +1 -285
  14. package/lib/cascader/index.js +2 -2036
  15. package/lib/cascader/index.js.LICENSE.txt +1 -0
  16. package/lib/checkbox/index.js +1 -542
  17. package/lib/code-diff/index.js +1 -5501
  18. package/lib/collapse/index.js +1 -570
  19. package/lib/collapse-transition/index.js +1 -178
  20. package/lib/color-picker/index.js +1 -2665
  21. package/lib/components.js +1 -530
  22. package/lib/config-provider/index.js +1 -365
  23. package/lib/container/index.js +1 -391
  24. package/lib/date-picker/index.js +1 -5527
  25. package/lib/dialog/dialog.css +2 -0
  26. package/lib/dialog/dialog.variable.css +2 -0
  27. package/lib/dialog/index.js +2 -975
  28. package/lib/dialog/index.js.LICENSE.txt +1 -0
  29. package/lib/directives/index.js +2 -1375
  30. package/lib/directives/index.js.LICENSE.txt +14 -0
  31. package/lib/dist.index.js +1 -87
  32. package/lib/divider/index.js +1 -169
  33. package/lib/dropdown/index.js +1 -369
  34. package/lib/exception/index.js +1 -385
  35. package/lib/fixed-navbar/index.js +1 -154
  36. package/lib/form/index.js +1 -924
  37. package/lib/hooks.js +1 -73
  38. package/lib/icon/angle-double-down-line.js +1 -191
  39. package/lib/icon/angle-double-left-line.js +1 -191
  40. package/lib/icon/angle-double-left.js +1 -191
  41. package/lib/icon/angle-double-right-line.js +1 -191
  42. package/lib/icon/angle-double-right.js +1 -191
  43. package/lib/icon/angle-double-up-line.js +1 -191
  44. package/lib/icon/angle-down-fill.js +1 -191
  45. package/lib/icon/angle-down-line.js +1 -191
  46. package/lib/icon/angle-down.js +1 -191
  47. package/lib/icon/angle-left.js +1 -191
  48. package/lib/icon/angle-right.js +1 -191
  49. package/lib/icon/angle-up-fill.js +1 -191
  50. package/lib/icon/angle-up.js +1 -191
  51. package/lib/icon/archive-fill.js +1 -191
  52. package/lib/icon/arrows-left.js +1 -191
  53. package/lib/icon/arrows-right.js +1 -191
  54. package/lib/icon/assistant.js +1 -191
  55. package/lib/icon/audio-fill.js +1 -191
  56. package/lib/icon/bk.js +1 -191
  57. package/lib/icon/circle.js +1 -191
  58. package/lib/icon/close-line.js +1 -191
  59. package/lib/icon/close.js +1 -191
  60. package/lib/icon/code.js +1 -191
  61. package/lib/icon/cog-shape.js +1 -191
  62. package/lib/icon/collapse-left.js +1 -191
  63. package/lib/icon/copy-shape.js +1 -191
  64. package/lib/icon/copy.js +1 -191
  65. package/lib/icon/data-shape.js +1 -191
  66. package/lib/icon/del.js +1 -191
  67. package/lib/icon/doc-fill.js +1 -191
  68. package/lib/icon/done.js +1 -191
  69. package/lib/icon/down-shape.js +1 -191
  70. package/lib/icon/down-small.js +1 -191
  71. package/lib/icon/edit-line.js +1 -191
  72. package/lib/icon/ellipsis.js +1 -191
  73. package/lib/icon/enlarge-line.js +1 -191
  74. package/lib/icon/error.js +1 -191
  75. package/lib/icon/excel-fill.js +1 -191
  76. package/lib/icon/exclamation-circle-shape.js +1 -191
  77. package/lib/icon/eye.js +1 -191
  78. package/lib/icon/filliscreen-line.js +1 -191
  79. package/lib/icon/fix-line.js +1 -191
  80. package/lib/icon/fix-shape.js +1 -191
  81. package/lib/icon/folder-open.js +1 -191
  82. package/lib/icon/folder-shape-open.js +1 -191
  83. package/lib/icon/folder-shape.js +1 -191
  84. package/lib/icon/folder.js +1 -191
  85. package/lib/icon/funnel.js +1 -191
  86. package/lib/icon/help-document-fill.js +1 -191
  87. package/lib/icon/help-fill.js +1 -191
  88. package/lib/icon/help.js +1 -191
  89. package/lib/icon/image-fill.js +1 -276
  90. package/lib/icon/img-error.js +1 -276
  91. package/lib/icon/img-placehoulder.js +1 -276
  92. package/lib/icon/index.js +1 -2399
  93. package/lib/icon/info-line.js +1 -276
  94. package/lib/icon/info.js +1 -276
  95. package/lib/icon/left-shape.js +1 -276
  96. package/lib/icon/left-turn-line.js +1 -276
  97. package/lib/icon/narrow-line.js +1 -276
  98. package/lib/icon/original.js +1 -276
  99. package/lib/icon/pdf-fill.js +1 -276
  100. package/lib/icon/play-shape.js +1 -276
  101. package/lib/icon/plus.js +1 -276
  102. package/lib/icon/ppt-fill.js +1 -276
  103. package/lib/icon/qq.js +1 -276
  104. package/lib/icon/right-shape.js +1 -276
  105. package/lib/icon/right-turn-line.js +1 -276
  106. package/lib/icon/search.js +1 -276
  107. package/lib/icon/share.js +1 -276
  108. package/lib/icon/spinner.js +1 -276
  109. package/lib/icon/success.js +1 -276
  110. package/lib/icon/switcher-loading.js +1 -276
  111. package/lib/icon/text-file.js +1 -276
  112. package/lib/icon/text-fill.js +1 -276
  113. package/lib/icon/transfer.js +1 -276
  114. package/lib/icon/tree-application-shape.js +1 -276
  115. package/lib/icon/unfull-screen.js +1 -276
  116. package/lib/icon/unvisible.js +1 -276
  117. package/lib/icon/up-shape.js +1 -276
  118. package/lib/icon/upload.js +1 -276
  119. package/lib/icon/video-fill.js +1 -276
  120. package/lib/icon/warn.js +1 -276
  121. package/lib/icon/weixin-pro.js +1 -276
  122. package/lib/icon/weixin.js +1 -276
  123. package/lib/image/index.js +1 -641
  124. package/lib/index.js +1 -97
  125. package/lib/info-box/index.js +2 -1165
  126. package/lib/info-box/index.js.LICENSE.txt +1 -0
  127. package/lib/info-box/info-box.css +2 -0
  128. package/lib/info-box/info-box.less +2 -1
  129. package/lib/info-box/info-box.variable.css +2 -0
  130. package/lib/input/index.js +2 -1218
  131. package/lib/input/index.js.LICENSE.txt +1 -0
  132. package/lib/link/index.js +1 -160
  133. package/lib/loading/index.js +1 -381
  134. package/lib/locale/index.js +1 -465
  135. package/lib/menu/index.js +1 -724
  136. package/lib/message/index.js +2 -1795
  137. package/lib/message/index.js.LICENSE.txt +6 -0
  138. package/lib/modal/index.js +1 -396
  139. package/lib/modal/modal.css +2 -0
  140. package/lib/modal/modal.variable.css +2 -0
  141. package/lib/navigation/index.js +1 -367
  142. package/lib/notify/index.js +1 -397
  143. package/lib/overflow-title/index.js +1 -486
  144. package/lib/pagination/index.js +1 -880
  145. package/lib/plugin-popover/index.js +1 -3905
  146. package/lib/plugins/index.js +1 -63
  147. package/lib/pop-confirm/index.js +1 -273
  148. package/lib/popover/index.js +1 -3913
  149. package/lib/popover2/index.js +1 -107
  150. package/lib/preset.js +1 -93
  151. package/lib/process/index.js +2 -759
  152. package/lib/process/index.js.LICENSE.txt +1 -0
  153. package/lib/progress/index.js +1 -431
  154. package/lib/radio/index.js +1 -627
  155. package/lib/rate/index.js +1 -338
  156. package/lib/resize-layout/index.js +1 -429
  157. package/lib/search-select/index.js +2 -2729
  158. package/lib/search-select/index.js.LICENSE.txt +1 -0
  159. package/lib/select/index.js +2 -2240
  160. package/lib/select/index.js.LICENSE.txt +1 -0
  161. package/lib/shared/index.js +1 -2689
  162. package/lib/sideslider/index.js +2 -714
  163. package/lib/sideslider/index.js.LICENSE.txt +1 -0
  164. package/lib/slider/index.js +2 -1291
  165. package/lib/slider/index.js.LICENSE.txt +1 -0
  166. package/lib/steps/index.js +2 -825
  167. package/lib/steps/index.js.LICENSE.txt +1 -0
  168. package/lib/swiper/index.js +1 -336
  169. package/lib/switcher/index.js +1 -277
  170. package/lib/tab/index.js +1 -914
  171. package/lib/table/components/table-column.d.ts +2 -0
  172. package/lib/table/const.d.ts +24 -2
  173. package/lib/table/index.d.ts +38 -0
  174. package/lib/table/index.js +1 -6406
  175. package/lib/table/plugins/use-column-resize.d.ts +30 -10
  176. package/lib/table/plugins/use-fixed-column.d.ts +9 -9
  177. package/lib/table/plugins/use-pagination.d.ts +7 -4
  178. package/lib/table/props.d.ts +22 -1
  179. package/lib/table/render.d.ts +7 -17
  180. package/lib/table/table.css +4 -1
  181. package/lib/table/table.d.ts +44 -23
  182. package/lib/table/table.less +4 -1
  183. package/lib/table/table.variable.css +4 -1
  184. package/lib/table/use-attributes.d.ts +55 -0
  185. package/lib/table/use-column.d.ts +177 -53
  186. package/lib/table/use-common.d.ts +1602 -76
  187. package/lib/table/use-render.d.ts +11 -0
  188. package/lib/table/utils.d.ts +22 -16
  189. package/lib/table-column/index.d.ts +6 -0
  190. package/lib/table-column/index.js +1 -731
  191. package/lib/tag/index.js +1 -233
  192. package/lib/tag-input/index.js +1 -1660
  193. package/lib/tag-input/tag-input.d.ts +2 -4
  194. package/lib/time-picker/index.js +1 -71
  195. package/lib/timeline/index.js +1 -241
  196. package/lib/transfer/index.js +1 -673
  197. package/lib/tree/index.d.ts +12 -0
  198. package/lib/tree/index.js +1 -2445
  199. package/lib/tree/props.d.ts +8 -1
  200. package/lib/tree/tree.d.ts +7 -0
  201. package/lib/tree/use-node-action.d.ts +2 -1
  202. package/lib/tree/use-node-attribute.d.ts +2 -0
  203. package/lib/tree/use-search.d.ts +2 -2
  204. package/lib/tree/util.d.ts +2 -2
  205. package/lib/upload/index.js +2 -2874
  206. package/lib/upload/index.js.LICENSE.txt +1 -0
  207. package/lib/virtual-render/index.d.ts +12 -0
  208. package/lib/virtual-render/index.js +1 -792
  209. package/lib/virtual-render/props.d.ts +4 -0
  210. package/lib/virtual-render/v-virtual-render.d.ts +19 -1
  211. package/lib/virtual-render/virtual-render.d.ts +7 -0
  212. package/package.json +3 -4
@@ -0,0 +1 @@
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -1,542 +1 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
2
- import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
3
- import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
4
- /******/ // The require scope
5
- /******/ var __webpack_require__ = {};
6
- /******/
7
- /************************************************************************/
8
- /******/ /* webpack/runtime/define property getters */
9
- /******/ (() => {
10
- /******/ // define getter functions for harmony exports
11
- /******/ __webpack_require__.d = (exports, definition) => {
12
- /******/ for(var key in definition) {
13
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
14
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
15
- /******/ }
16
- /******/ }
17
- /******/ };
18
- /******/ })();
19
- /******/
20
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
21
- /******/ (() => {
22
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
23
- /******/ })();
24
- /******/
25
- /************************************************************************/
26
- var __webpack_exports__ = {};
27
-
28
- // EXPORTS
29
- __webpack_require__.d(__webpack_exports__, {
30
- Cs: () => (/* binding */ BkCheckbox),
31
- Kr: () => (/* reexport */ checkbox_group),
32
- ZP: () => (/* binding */ src)
33
- });
34
-
35
- ;// CONCATENATED MODULE: external "../shared"
36
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
37
- var y = x => () => x
38
- const external_shared_namespaceObject = x({ ["EMPTY_OBJ"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.EMPTY_OBJ, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["SizeEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.SizeEnum, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["isEmptyObj"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.isEmptyObj, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
39
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
40
- function _typeof(obj) {
41
- "@babel/helpers - typeof";
42
-
43
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
44
- return typeof obj;
45
- } : function (obj) {
46
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
47
- }, _typeof(obj);
48
- }
49
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
50
-
51
- function _toPrimitive(input, hint) {
52
- if (_typeof(input) !== "object" || input === null) return input;
53
- var prim = input[Symbol.toPrimitive];
54
- if (prim !== undefined) {
55
- var res = prim.call(input, hint || "default");
56
- if (_typeof(res) !== "object") return res;
57
- throw new TypeError("@@toPrimitive must return a primitive value.");
58
- }
59
- return (hint === "string" ? String : Number)(input);
60
- }
61
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
62
-
63
-
64
- function _toPropertyKey(arg) {
65
- var key = _toPrimitive(arg, "string");
66
- return _typeof(key) === "symbol" ? key : String(key);
67
- }
68
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
69
-
70
- function _defineProperty(obj, key, value) {
71
- key = _toPropertyKey(key);
72
- if (key in obj) {
73
- Object.defineProperty(obj, key, {
74
- value: value,
75
- enumerable: true,
76
- configurable: true,
77
- writable: true
78
- });
79
- } else {
80
- obj[key] = value;
81
- }
82
- return obj;
83
- }
84
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
85
- function _arrayWithHoles(arr) {
86
- if (Array.isArray(arr)) return arr;
87
- }
88
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
89
- function _iterableToArrayLimit(arr, i) {
90
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
91
- if (null != _i) {
92
- var _s,
93
- _e,
94
- _x,
95
- _r,
96
- _arr = [],
97
- _n = !0,
98
- _d = !1;
99
- try {
100
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
101
- if (Object(_i) !== _i) return;
102
- _n = !1;
103
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
104
- } catch (err) {
105
- _d = !0, _e = err;
106
- } finally {
107
- try {
108
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
109
- } finally {
110
- if (_d) throw _e;
111
- }
112
- }
113
- return _arr;
114
- }
115
- }
116
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
117
- function _arrayLikeToArray(arr, len) {
118
- if (len == null || len > arr.length) len = arr.length;
119
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
120
- return arr2;
121
- }
122
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
123
-
124
- function _unsupportedIterableToArray(o, minLen) {
125
- if (!o) return;
126
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
127
- var n = Object.prototype.toString.call(o).slice(8, -1);
128
- if (n === "Object" && o.constructor) n = o.constructor.name;
129
- if (n === "Map" || n === "Set") return Array.from(o);
130
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
131
- }
132
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
133
- function _nonIterableRest() {
134
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
135
- }
136
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
137
-
138
-
139
-
140
-
141
- function _slicedToArray(arr, i) {
142
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
143
- }
144
- ;// CONCATENATED MODULE: external "vue"
145
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
146
- var external_vue_y = x => () => x
147
- const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
148
- ;// CONCATENATED MODULE: external "../config-provider"
149
- var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
150
- var external_config_provider_y = x => () => x
151
- const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
152
- ;// CONCATENATED MODULE: ../../packages/checkbox/src/common.ts
153
- /*
154
- * Tencent is pleased to support the open source community by making
155
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
156
- *
157
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
158
- *
159
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
160
- *
161
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
162
- *
163
- * ---------------------------------------------------
164
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
165
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
166
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
167
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
168
- *
169
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
170
- * the Software.
171
- *
172
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
173
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
174
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
175
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
176
- * IN THE SOFTWARE.
177
- */
178
-
179
-
180
- var checkboxGroupKey = Symbol('CheckboxGroup');
181
- function useFocus() {
182
- var isFocus = (0,external_vue_namespaceObject.ref)(false);
183
- var blur = function blur() {
184
- isFocus.value = false;
185
- };
186
- var focus = function focus() {
187
- isFocus.value = true;
188
- };
189
- return [isFocus, {
190
- blur: blur,
191
- focus: focus
192
- }];
193
- }
194
- var useCheckbox = function useCheckbox() {
195
- var currentInstance = (0,external_vue_namespaceObject.getCurrentInstance)();
196
- var props = currentInstance.props,
197
- emit = currentInstance.emit;
198
- var checkboxGroup = (0,external_vue_namespaceObject.inject)(checkboxGroupKey, external_shared_namespaceObject.EMPTY_OBJ);
199
- var isGroup = !(0,external_shared_namespaceObject.isEmptyObj)(checkboxGroup);
200
- var inputRef = (0,external_vue_namespaceObject.ref)();
201
- var isChecked = (0,external_vue_namespaceObject.ref)(props.checked);
202
- // 禁用状态
203
- var isDisabled = (0,external_vue_namespaceObject.computed)(function () {
204
- if (isGroup && checkboxGroup.props.disabled) {
205
- return true;
206
- }
207
- return props.disabled;
208
- });
209
- // 触发更新
210
- var triggerChange = function triggerChange() {
211
- // 单独使用时状态切换返回 trueLabel、falseLabel
212
- var nextValue = isChecked.value ? props.trueLabel : props.falseLabel;
213
- emit('update:modelValue', nextValue);
214
- emit('change', nextValue);
215
- // 更新 checkbox-group
216
- // 配合 checkbox-group 使用时返回 props.label
217
- if (isGroup) {
218
- checkboxGroup.handleChange();
219
- }
220
- (0,external_vue_namespaceObject.nextTick)(function () {
221
- // 选中状态保持同步
222
- if (inputRef.value.checked !== isChecked.value) {
223
- inputRef.value.checked = isChecked.value;
224
- }
225
- });
226
- };
227
- // 响应modelValue
228
- if (isGroup) {
229
- (0,external_vue_namespaceObject.watch)(function () {
230
- return checkboxGroup.props.modelValue;
231
- }, function (modelValue) {
232
- isChecked.value = modelValue.includes(props.label);
233
- }, {
234
- deep: true
235
- });
236
- } else {
237
- (0,external_vue_namespaceObject.watch)(function () {
238
- return props.modelValue;
239
- }, function (modelValue) {
240
- if (modelValue === '') {
241
- return;
242
- }
243
- isChecked.value = modelValue === props.trueLabel;
244
- }, {
245
- immediate: true
246
- });
247
- }
248
- (0,external_vue_namespaceObject.watch)(function () {
249
- return props.checked;
250
- }, function () {
251
- isChecked.value = props.checked;
252
- if (props.immediateEmitChange !== false) {
253
- triggerChange();
254
- }
255
- });
256
- var setChecked = function setChecked() {
257
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
258
- isChecked.value = value;
259
- };
260
- // 值更新
261
- var handleChange = function handleChange(event) {
262
- if (isDisabled.value) {
263
- return;
264
- }
265
- var $targetInput = event.target;
266
- isChecked.value = $targetInput.checked;
267
- triggerChange();
268
- };
269
- (0,external_vue_namespaceObject.onMounted)(function () {
270
- if (isGroup) {
271
- checkboxGroup.register(currentInstance.proxy);
272
- }
273
- });
274
- (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
275
- if (isGroup) {
276
- checkboxGroup.unregister(currentInstance.proxy);
277
- }
278
- });
279
- return {
280
- inputRef: inputRef,
281
- isChecked: isChecked,
282
- isDisabled: isDisabled,
283
- setChecked: setChecked,
284
- handleChange: handleChange
285
- };
286
- };
287
- ;// CONCATENATED MODULE: ../../packages/checkbox/src/checkbox.tsx
288
-
289
-
290
-
291
- /*
292
- * Tencent is pleased to support the open source community by making
293
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
294
- *
295
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
296
- *
297
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
298
- *
299
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
300
- *
301
- * ---------------------------------------------------
302
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
303
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
304
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
305
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
306
- *
307
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
308
- * the Software.
309
- *
310
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
311
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
312
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
313
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
314
- * IN THE SOFTWARE.
315
- */
316
-
317
-
318
-
319
-
320
- var checkboxProps = {
321
- modelValue: external_shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]),
322
- label: external_shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]),
323
- trueLabel: external_shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]).def(true),
324
- falseLabel: external_shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]).def(false),
325
- disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
326
- checked: external_shared_namespaceObject.PropTypes.bool.def(false),
327
- indeterminate: external_shared_namespaceObject.PropTypes.bool,
328
- beforeChange: external_shared_namespaceObject.PropTypes.func,
329
- size: external_shared_namespaceObject.PropTypes.size().def(external_shared_namespaceObject.SizeEnum.LARGE),
330
- immediateEmitChange: external_shared_namespaceObject.PropTypes.bool.def(true) // 默认设置checked是否触发change事件
331
- };
332
-
333
- /* harmony default export */ const src_checkbox = ((0,external_vue_namespaceObject.defineComponent)({
334
- name: 'Checkbox',
335
- props: checkboxProps,
336
- emits: {
337
- 'update:modelValue': function updateModelValue(value) {
338
- return value !== undefined;
339
- },
340
- change: function change(value) {
341
- return value !== undefined;
342
- }
343
- },
344
- setup: function setup(props) {
345
- var _useFocus = useFocus(),
346
- _useFocus2 = _slicedToArray(_useFocus, 2),
347
- isFocus = _useFocus2[0],
348
- _useFocus2$ = _useFocus2[1],
349
- handleBlur = _useFocus2$.blur,
350
- handleFocus = _useFocus2$.focus;
351
- var _useCheckbox = useCheckbox(),
352
- inputRef = _useCheckbox.inputRef,
353
- isChecked = _useCheckbox.isChecked,
354
- isDisabled = _useCheckbox.isDisabled,
355
- setChecked = _useCheckbox.setChecked,
356
- handleChange = _useCheckbox.handleChange;
357
- var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
358
- resolveClassName = _usePrefix.resolveClassName;
359
- return {
360
- inputRef: inputRef,
361
- isFocus: isFocus,
362
- isChecked: isChecked,
363
- isDisabled: isDisabled,
364
- setChecked: setChecked,
365
- handleBlur: handleBlur,
366
- handleFocus: handleFocus,
367
- handleChange: handleChange,
368
- size: props.size,
369
- resolveClassName: resolveClassName
370
- };
371
- },
372
- render: function render() {
373
- var _classes,
374
- _this = this;
375
- var checkboxClass = (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('checkbox')), true), _defineProperty(_classes, 'is-focused', this.isFocus), _defineProperty(_classes, 'is-checked', this.isChecked), _defineProperty(_classes, 'is-disabled', this.isDisabled), _defineProperty(_classes, 'is-indeterminated', this.indeterminate), _classes));
376
- var renderLabel = function renderLabel() {
377
- if (!_this.label && !_this.$slots["default"]) {
378
- return null;
379
- }
380
- return (0,external_vue_namespaceObject.createVNode)("span", {
381
- "class": "".concat(_this.resolveClassName('checkbox-label'))
382
- }, [_this.$slots["default"] ? _this.$slots["default"]() : _this.label]);
383
- };
384
- return (0,external_vue_namespaceObject.createVNode)("label", {
385
- "class": checkboxClass
386
- }, [(0,external_vue_namespaceObject.createVNode)("span", {
387
- "class": [this.resolveClassName('checkbox-input'), this.size]
388
- }, [(0,external_vue_namespaceObject.createVNode)("input", {
389
- "ref": "inputRef",
390
- "role": "checkbox",
391
- "type": "checkbox",
392
- "class": "".concat(this.resolveClassName('checkbox-original')),
393
- "disabled": this.isDisabled,
394
- "checked": this.isChecked,
395
- "onChange": this.handleChange
396
- }, null)]), renderLabel()]);
397
- }
398
- }));
399
- ;// CONCATENATED MODULE: ../../packages/checkbox/src/checkbox-group.tsx
400
-
401
- /*
402
- * Tencent is pleased to support the open source community by making
403
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
404
- *
405
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
406
- *
407
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
408
- *
409
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
410
- *
411
- * ---------------------------------------------------
412
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
413
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
414
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
415
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
416
- *
417
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
418
- * the Software.
419
- *
420
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
421
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
422
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
423
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
424
- * IN THE SOFTWARE.
425
- */
426
-
427
-
428
-
429
-
430
- var checkboxGroupProps = {
431
- name: external_shared_namespaceObject.PropTypes.string.def(''),
432
- modelValue: external_shared_namespaceObject.PropTypes.array,
433
- disabled: external_shared_namespaceObject.PropTypes.bool,
434
- withValidate: external_shared_namespaceObject.PropTypes.bool.def(true)
435
- };
436
- /* harmony default export */ const checkbox_group = ((0,external_vue_namespaceObject.defineComponent)({
437
- name: 'CheckboxGroup',
438
- props: checkboxGroupProps,
439
- emits: {
440
- 'update:modelValue': function updateModelValue(value) {
441
- return value !== undefined;
442
- },
443
- change: function change(value) {
444
- return value !== undefined;
445
- }
446
- },
447
- setup: function setup(props, context) {
448
- var formItem = (0,external_shared_namespaceObject.useFormItem)();
449
- var checkboxInstanceList = [];
450
- var register = function register(checkboxContext) {
451
- checkboxInstanceList.push(checkboxContext);
452
- };
453
- var unregister = function unregister(checkboxContext) {
454
- var index = checkboxInstanceList.indexOf(checkboxContext);
455
- if (index > -1) {
456
- checkboxInstanceList.splice(index, 1);
457
- }
458
- };
459
- var handleChange = function handleChange() {
460
- var nextValue = checkboxInstanceList.reduce(function (result, checkboxInstance) {
461
- if (checkboxInstance.isChecked) {
462
- result.push(checkboxInstance.label);
463
- }
464
- return result;
465
- }, []);
466
- context.emit('update:modelValue', nextValue);
467
- context.emit('change', nextValue);
468
- };
469
- (0,external_vue_namespaceObject.provide)(checkboxGroupKey, {
470
- name: 'CheckboxGroup',
471
- props: props,
472
- register: register,
473
- unregister: unregister,
474
- handleChange: handleChange
475
- });
476
- (0,external_vue_namespaceObject.watch)(function () {
477
- return props.modelValue;
478
- }, function () {
479
- if (props.withValidate) {
480
- var _formItem$validate;
481
- formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
482
- }
483
- });
484
- (0,external_vue_namespaceObject.onMounted)(function () {
485
- var modelValue = props.modelValue || [];
486
- checkboxInstanceList.forEach(function (checkboxInstance) {
487
- if (modelValue.includes(checkboxInstance.label)) {
488
- checkboxInstance.setChecked(true);
489
- }
490
- });
491
- });
492
- var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
493
- resolveClassName = _usePrefix.resolveClassName;
494
- return {
495
- resolveClassName: resolveClassName
496
- };
497
- },
498
- render: function render() {
499
- var _this$$slots;
500
- return (0,external_vue_namespaceObject.createVNode)("div", {
501
- "class": "".concat(this.resolveClassName('checkbox-group'))
502
- }, [(_this$$slots = this.$slots) === null || _this$$slots === void 0 ? void 0 : _this$$slots["default"]()]);
503
- }
504
- }));
505
- ;// CONCATENATED MODULE: ../../packages/checkbox/src/index.ts
506
- /*
507
- * Tencent is pleased to support the open source community by making
508
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
509
- *
510
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
511
- *
512
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
513
- *
514
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
515
- *
516
- * ---------------------------------------------------
517
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
518
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
519
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
520
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
521
- *
522
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
523
- * the Software.
524
- *
525
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
526
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
527
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
528
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
529
- * IN THE SOFTWARE.
530
- */
531
-
532
-
533
-
534
- var BkCheckbox = (0,external_shared_namespaceObject.withInstallProps)(src_checkbox, {
535
- Group: checkbox_group
536
- });
537
- /* harmony default export */ const src = (BkCheckbox);
538
-
539
- var __webpack_exports__BkCheckbox = __webpack_exports__.Cs;
540
- var __webpack_exports__BkCheckboxGroup = __webpack_exports__.Kr;
541
- var __webpack_exports__default = __webpack_exports__.ZP;
542
- export { __webpack_exports__BkCheckbox as BkCheckbox, __webpack_exports__BkCheckboxGroup as BkCheckboxGroup, __webpack_exports__default as default };
1
+ import*as e from"../shared";import*as t from"vue";import*as n from"../config-provider";var r={d:(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},o={};r.d(o,{Cs:()=>y,Kr:()=>v,ZP:()=>C});const a=(i={EMPTY_OBJ:()=>e.EMPTY_OBJ,PropTypes:()=>e.PropTypes,SizeEnum:()=>e.SizeEnum,classes:()=>e.classes,isEmptyObj:()=>e.isEmptyObj,useFormItem:()=>e.useFormItem,withInstallProps:()=>e.withInstallProps},l={},r.d(l,i),l);var i,l;function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const d=(e=>{var t={};return r.d(t,e),t})({computed:()=>t.computed,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,getCurrentInstance:()=>t.getCurrentInstance,inject:()=>t.inject,nextTick:()=>t.nextTick,onBeforeUnmount:()=>t.onBeforeUnmount,onMounted:()=>t.onMounted,provide:()=>t.provide,ref:()=>t.ref,watch:()=>t.watch}),f=(e=>{var t={};return r.d(t,e),t})({usePrefix:()=>n.usePrefix});var p=Symbol("CheckboxGroup"),m={modelValue:a.PropTypes.oneOfType([String,Number,Boolean]),label:a.PropTypes.oneOfType([String,Number,Boolean]),trueLabel:a.PropTypes.oneOfType([String,Number,Boolean]).def(!0),falseLabel:a.PropTypes.oneOfType([String,Number,Boolean]).def(!1),disabled:a.PropTypes.bool.def(!1),checked:a.PropTypes.bool.def(!1),indeterminate:a.PropTypes.bool,beforeChange:a.PropTypes.func,size:a.PropTypes.size().def(a.SizeEnum.LARGE),immediateEmitChange:a.PropTypes.bool.def(!0)};const h=(0,d.defineComponent)({name:"Checkbox",props:m,emits:{"update:modelValue":function(e){return void 0!==e},change:function(e){return void 0!==e}},setup:function(e){var t,n,r=function(){var e=(0,d.ref)(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}(),o=(n=2,function(e){if(Array.isArray(e))return e}(t=r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],l=o[1],s=l.blur,u=l.focus,m=function(){var e=(0,d.getCurrentInstance)(),t=e.props,n=e.emit,r=(0,d.inject)(p,a.EMPTY_OBJ),o=!(0,a.isEmptyObj)(r),i=(0,d.ref)(),l=(0,d.ref)(t.checked),s=(0,d.computed)((function(){return!(!o||!r.props.disabled)||t.disabled})),u=function(){var e=l.value?t.trueLabel:t.falseLabel;n("update:modelValue",e),n("change",e),o&&r.handleChange(),(0,d.nextTick)((function(){i.value.checked!==l.value&&(i.value.checked=l.value)}))};return o?(0,d.watch)((function(){return r.props.modelValue}),(function(e){l.value=e.includes(t.label)}),{deep:!0}):(0,d.watch)((function(){return t.modelValue}),(function(e){""!==e&&(l.value=e===t.trueLabel)}),{immediate:!0}),(0,d.watch)((function(){return t.checked}),(function(){l.value=t.checked,!1!==t.immediateEmitChange&&u()})),(0,d.onMounted)((function(){o&&r.register(e.proxy)})),(0,d.onBeforeUnmount)((function(){o&&r.unregister(e.proxy)})),{inputRef:i,isChecked:l,isDisabled:s,setChecked:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];l.value=e},handleChange:function(e){if(!s.value){var t=e.target;l.value=t.checked,u()}}}}(),h=m.inputRef,b=m.isChecked,v=m.isDisabled,y=m.setChecked,C=m.handleChange,g=(0,f.usePrefix)().resolveClassName;return{inputRef:h,isFocus:i,isChecked:b,isDisabled:v,setChecked:y,handleBlur:s,handleFocus:u,handleChange:C,size:e.size,resolveClassName:g}},render:function(){var e,t=this,n=(0,a.classes)((u(e={},"".concat(this.resolveClassName("checkbox")),!0),u(e,"is-focused",this.isFocus),u(e,"is-checked",this.isChecked),u(e,"is-disabled",this.isDisabled),u(e,"is-indeterminated",this.indeterminate),e));return(0,d.createVNode)("label",{class:n},[(0,d.createVNode)("span",{class:[this.resolveClassName("checkbox-input"),this.size]},[(0,d.createVNode)("input",{ref:"inputRef",role:"checkbox",type:"checkbox",class:"".concat(this.resolveClassName("checkbox-original")),disabled:this.isDisabled,checked:this.isChecked,onChange:this.handleChange},null)]),t.label||t.$slots.default?(0,d.createVNode)("span",{class:"".concat(t.resolveClassName("checkbox-label"))},[t.$slots.default?t.$slots.default():t.label]):null])}});var b={name:a.PropTypes.string.def(""),modelValue:a.PropTypes.array,disabled:a.PropTypes.bool,withValidate:a.PropTypes.bool.def(!0)};const v=(0,d.defineComponent)({name:"CheckboxGroup",props:b,emits:{"update:modelValue":function(e){return void 0!==e},change:function(e){return void 0!==e}},setup:function(e,t){var n=(0,a.useFormItem)(),r=[];return(0,d.provide)(p,{name:"CheckboxGroup",props:e,register:function(e){r.push(e)},unregister:function(e){var t=r.indexOf(e);t>-1&&r.splice(t,1)},handleChange:function(){var e=r.reduce((function(e,t){return t.isChecked&&e.push(t.label),e}),[]);t.emit("update:modelValue",e),t.emit("change",e)}}),(0,d.watch)((function(){return e.modelValue}),(function(){var t;e.withValidate&&(null===(t=null==n?void 0:n.validate)||void 0===t||t.call(n,"change"))})),(0,d.onMounted)((function(){var t=e.modelValue||[];r.forEach((function(e){t.includes(e.label)&&e.setChecked(!0)}))})),{resolveClassName:(0,f.usePrefix)().resolveClassName}},render:function(){var e;return(0,d.createVNode)("div",{class:"".concat(this.resolveClassName("checkbox-group"))},[null===(e=this.$slots)||void 0===e?void 0:e.default()])}});var y=(0,a.withInstallProps)(h,{Group:v});const C=y;var g=o.Cs,k=o.Kr,P=o.ZP;export{g as BkCheckbox,k as BkCheckboxGroup,P as default};