bkui-vue 0.0.1-beta.389 → 0.0.1-beta.390

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 (207) hide show
  1. package/lib/affix/index.js +60 -128
  2. package/lib/alert/index.js +56 -124
  3. package/lib/animate-number/index.js +42 -106
  4. package/lib/backtop/index.js +61 -133
  5. package/lib/badge/badge.d.ts +1 -1
  6. package/lib/badge/index.d.ts +4 -4
  7. package/lib/badge/index.js +50 -114
  8. package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
  9. package/lib/breadcrumb/breadcrumb.d.ts +1 -1
  10. package/lib/breadcrumb/index.d.ts +5 -5
  11. package/lib/breadcrumb/index.js +67 -133
  12. package/lib/button/index.js +68 -147
  13. package/lib/card/index.js +69 -154
  14. package/lib/cascader/cascader.d.ts +3 -3
  15. package/lib/cascader/index.d.ts +10 -10
  16. package/lib/cascader/index.js +168 -242
  17. package/lib/checkbox/index.js +77 -139
  18. package/lib/code-diff/index.js +79 -121
  19. package/lib/collapse/index.js +84 -150
  20. package/lib/color-picker/color-picker.d.ts +1 -1
  21. package/lib/color-picker/index.d.ts +4 -4
  22. package/lib/color-picker/index.js +193 -245
  23. package/lib/components.js +434 -671
  24. package/lib/container/container.d.ts +1 -1
  25. package/lib/container/index.d.ts +4 -4
  26. package/lib/container/index.js +64 -125
  27. package/lib/date-picker/date-picker.d.ts +2 -2
  28. package/lib/date-picker/index.d.ts +7 -7
  29. package/lib/date-picker/index.js +462 -563
  30. package/lib/date-picker/panel/time-range.d.ts +3 -3
  31. package/lib/date-picker/panel/time.d.ts +3 -3
  32. package/lib/date-picker/time-picker.d.ts +3 -3
  33. package/lib/dialog/dialog.d.ts +2 -2
  34. package/lib/dialog/index.d.ts +7 -7
  35. package/lib/dialog/index.js +108 -198
  36. package/lib/directives/index.d.ts +0 -2
  37. package/lib/directives/index.js +86 -140
  38. package/lib/dist.index.js +48 -133
  39. package/lib/divider/index.js +50 -118
  40. package/lib/dropdown/dropdown.d.ts +2 -2
  41. package/lib/dropdown/index.d.ts +7 -7
  42. package/lib/dropdown/index.js +73 -155
  43. package/lib/exception/index.js +97 -145
  44. package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
  45. package/lib/fixed-navbar/index.d.ts +4 -4
  46. package/lib/fixed-navbar/index.js +43 -107
  47. package/lib/form/form-item.d.ts +1 -1
  48. package/lib/form/index.d.ts +1 -1
  49. package/lib/form/index.js +107 -193
  50. package/lib/icon/angle-double-down-line.js +30 -90
  51. package/lib/icon/angle-double-left-line.js +30 -90
  52. package/lib/icon/angle-double-left.js +30 -90
  53. package/lib/icon/angle-double-right-line.js +30 -90
  54. package/lib/icon/angle-double-right.js +30 -90
  55. package/lib/icon/angle-double-up-line.js +30 -90
  56. package/lib/icon/angle-down-fill.js +30 -90
  57. package/lib/icon/angle-down-line.js +30 -90
  58. package/lib/icon/angle-down.js +30 -90
  59. package/lib/icon/angle-left.js +30 -90
  60. package/lib/icon/angle-right.js +30 -90
  61. package/lib/icon/angle-up-fill.js +30 -90
  62. package/lib/icon/angle-up.js +30 -90
  63. package/lib/icon/archive-fill.js +30 -90
  64. package/lib/icon/arrows-left.js +30 -90
  65. package/lib/icon/arrows-right.js +30 -90
  66. package/lib/icon/audio-fill.js +30 -90
  67. package/lib/icon/bk.js +30 -90
  68. package/lib/icon/circle.js +30 -90
  69. package/lib/icon/close-line.js +30 -90
  70. package/lib/icon/close.js +30 -90
  71. package/lib/icon/code.js +30 -90
  72. package/lib/icon/cog-shape.js +30 -90
  73. package/lib/icon/collapse-left.js +30 -90
  74. package/lib/icon/copy.js +30 -90
  75. package/lib/icon/data-shape.js +30 -90
  76. package/lib/icon/del.js +30 -90
  77. package/lib/icon/doc-fill.js +30 -90
  78. package/lib/icon/done.js +30 -90
  79. package/lib/icon/down-shape.js +30 -90
  80. package/lib/icon/down-small.js +30 -90
  81. package/lib/icon/edit-line.js +30 -90
  82. package/lib/icon/ellipsis.js +30 -90
  83. package/lib/icon/enlarge-line.js +30 -90
  84. package/lib/icon/error.js +30 -90
  85. package/lib/icon/excel-fill.js +30 -90
  86. package/lib/icon/exclamation-circle-shape.js +30 -90
  87. package/lib/icon/eye.js +30 -90
  88. package/lib/icon/filliscreen-line.js +30 -90
  89. package/lib/icon/folder-open.js +30 -90
  90. package/lib/icon/folder-shape-open.js +30 -90
  91. package/lib/icon/folder-shape.js +30 -90
  92. package/lib/icon/folder.js +30 -90
  93. package/lib/icon/funnel.js +30 -90
  94. package/lib/icon/help-document-fill.js +30 -90
  95. package/lib/icon/help-fill.js +30 -90
  96. package/lib/icon/help.js +30 -90
  97. package/lib/icon/image-fill.js +30 -90
  98. package/lib/icon/img-placehoulder.js +52 -88
  99. package/lib/icon/index.js +267 -255
  100. package/lib/icon/info-line.js +52 -88
  101. package/lib/icon/info.js +52 -88
  102. package/lib/icon/left-shape.js +52 -88
  103. package/lib/icon/left-turn-line.js +52 -88
  104. package/lib/icon/narrow-line.js +52 -88
  105. package/lib/icon/original.js +52 -88
  106. package/lib/icon/pdf-fill.js +52 -88
  107. package/lib/icon/play-shape.js +52 -88
  108. package/lib/icon/plus.js +52 -88
  109. package/lib/icon/ppt-fill.js +52 -88
  110. package/lib/icon/qq.js +52 -88
  111. package/lib/icon/right-shape.js +52 -88
  112. package/lib/icon/right-turn-line.js +52 -88
  113. package/lib/icon/search.js +52 -88
  114. package/lib/icon/share.js +52 -88
  115. package/lib/icon/spinner.js +52 -88
  116. package/lib/icon/success.js +52 -88
  117. package/lib/icon/switcher-loading.js +52 -88
  118. package/lib/icon/text-file.js +52 -88
  119. package/lib/icon/text-fill.js +52 -88
  120. package/lib/icon/transfer.js +52 -88
  121. package/lib/icon/tree-application-shape.js +52 -88
  122. package/lib/icon/unfull-screen.js +52 -88
  123. package/lib/icon/unvisible.js +52 -88
  124. package/lib/icon/up-shape.js +52 -88
  125. package/lib/icon/upload.js +52 -88
  126. package/lib/icon/video-fill.js +52 -88
  127. package/lib/icon/warn.js +52 -88
  128. package/lib/icon/weixin.js +52 -88
  129. package/lib/image/index.js +164 -213
  130. package/lib/index.js +50 -134
  131. package/lib/info-box/index.js +152 -206
  132. package/lib/input/index.d.ts +4 -4
  133. package/lib/input/index.js +99 -167
  134. package/lib/input/input.d.ts +1 -1
  135. package/lib/link/index.d.ts +4 -4
  136. package/lib/link/index.js +47 -115
  137. package/lib/link/link.d.ts +1 -1
  138. package/lib/loading/index.d.ts +4 -4
  139. package/lib/loading/index.js +67 -127
  140. package/lib/loading/loading.d.ts +1 -1
  141. package/lib/menu/index.js +92 -156
  142. package/lib/message/index.js +76 -148
  143. package/lib/modal/index.d.ts +4 -4
  144. package/lib/modal/index.js +85 -151
  145. package/lib/modal/modal.d.ts +1 -1
  146. package/lib/navigation/index.js +66 -134
  147. package/lib/notify/index.js +81 -153
  148. package/lib/notify/notifyConstructor.d.ts +1 -1
  149. package/lib/overflow-title/index.js +92 -128
  150. package/lib/pagination/index.d.ts +4 -4
  151. package/lib/pagination/index.js +131 -220
  152. package/lib/pagination/pagination.d.ts +1 -1
  153. package/lib/plugin-popover/index.js +143 -191
  154. package/lib/plugins/index.js +33 -100
  155. package/lib/popover/index.d.ts +10 -10
  156. package/lib/popover/index.js +148 -194
  157. package/lib/popover/popover.d.ts +3 -3
  158. package/lib/popover2/index.js +35 -99
  159. package/lib/preset.js +37 -104
  160. package/lib/process/index.d.ts +4 -4
  161. package/lib/process/index.js +92 -134
  162. package/lib/process/process.d.ts +1 -1
  163. package/lib/progress/index.d.ts +7 -7
  164. package/lib/progress/index.js +63 -127
  165. package/lib/progress/progress.d.ts +2 -2
  166. package/lib/radio/index.js +81 -142
  167. package/lib/rate/index.js +63 -127
  168. package/lib/resize-layout/index.js +79 -147
  169. package/lib/search-select/index.js +168 -220
  170. package/lib/select/index.d.ts +10 -10
  171. package/lib/select/index.js +315 -394
  172. package/lib/select/select.d.ts +3 -3
  173. package/lib/shared/index.js +228 -203
  174. package/lib/sideslider/index.d.ts +4 -4
  175. package/lib/sideslider/index.js +88 -137
  176. package/lib/sideslider/sideslider.d.ts +1 -1
  177. package/lib/slider/index.d.ts +7 -7
  178. package/lib/slider/index.js +147 -196
  179. package/lib/slider/slider.d.ts +2 -2
  180. package/lib/steps/index.js +105 -152
  181. package/lib/swiper/index.js +62 -126
  182. package/lib/switcher/index.d.ts +4 -4
  183. package/lib/switcher/index.js +65 -133
  184. package/lib/switcher/switcher.d.ts +1 -1
  185. package/lib/tab/index.d.ts +4 -4
  186. package/lib/tab/index.js +118 -188
  187. package/lib/tab/tab.d.ts +1 -1
  188. package/lib/table/index.js +457 -572
  189. package/lib/table-column/index.js +129 -197
  190. package/lib/tag/index.js +58 -130
  191. package/lib/tag-input/index.d.ts +7 -7
  192. package/lib/tag-input/index.js +175 -277
  193. package/lib/tag-input/tag-input.d.ts +2 -2
  194. package/lib/time-picker/index.d.ts +10 -10
  195. package/lib/time-picker/index.js +40 -111
  196. package/lib/timeline/index.d.ts +4 -4
  197. package/lib/timeline/index.js +50 -114
  198. package/lib/timeline/timeline.d.ts +1 -1
  199. package/lib/transfer/index.js +89 -174
  200. package/lib/tree/index.js +158 -235
  201. package/lib/upload/index.d.ts +7 -7
  202. package/lib/upload/index.js +173 -227
  203. package/lib/upload/upload-list.d.ts +1 -1
  204. package/lib/upload/upload-trigger.d.ts +1 -1
  205. package/lib/upload/upload.d.ts +2 -2
  206. package/lib/virtual-render/index.js +86 -154
  207. package/package.json +1 -1
@@ -1,102 +1,40 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("../shared"), require("vue"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["../shared", "vue"], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("../shared"), require("vue")) : factory(root["../shared"], root["vue"]);
8
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
- }
10
- })(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__) => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ 4212:
16
- /***/ ((module) => {
17
-
18
- module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
19
-
20
- /***/ }),
21
-
22
- /***/ 748:
23
- /***/ ((module) => {
24
-
25
- module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
26
-
27
- /***/ })
28
-
29
- /******/ });
1
+ import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
3
+ /******/ // The require scope
4
+ /******/ var __webpack_require__ = {};
5
+ /******/
30
6
  /************************************************************************/
31
- /******/ // The module cache
32
- /******/ var __webpack_module_cache__ = {};
33
- /******/
34
- /******/ // The require function
35
- /******/ function __webpack_require__(moduleId) {
36
- /******/ // Check if module is in cache
37
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
38
- /******/ if (cachedModule !== undefined) {
39
- /******/ return cachedModule.exports;
40
- /******/ }
41
- /******/ // Create a new module (and put it into the cache)
42
- /******/ var module = __webpack_module_cache__[moduleId] = {
43
- /******/ // no module.id needed
44
- /******/ // no module.loaded needed
45
- /******/ exports: {}
46
- /******/ };
47
- /******/
48
- /******/ // Execute the module function
49
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
50
- /******/
51
- /******/ // Return the exports of the module
52
- /******/ return module.exports;
53
- /******/ }
54
- /******/
55
- /************************************************************************/
56
- /******/ /* webpack/runtime/define property getters */
57
- /******/ (() => {
58
- /******/ // define getter functions for harmony exports
59
- /******/ __webpack_require__.d = (exports, definition) => {
60
- /******/ for(var key in definition) {
61
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
62
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
63
- /******/ }
64
- /******/ }
65
- /******/ };
66
- /******/ })();
67
- /******/
68
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
69
- /******/ (() => {
70
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
71
- /******/ })();
72
- /******/
73
- /******/ /* webpack/runtime/make namespace object */
74
- /******/ (() => {
75
- /******/ // define __esModule on exports
76
- /******/ __webpack_require__.r = (exports) => {
77
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
78
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
7
+ /******/ /* webpack/runtime/define property getters */
8
+ /******/ (() => {
9
+ /******/ // define getter functions for harmony exports
10
+ /******/ __webpack_require__.d = (exports, definition) => {
11
+ /******/ for(var key in definition) {
12
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
13
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
79
14
  /******/ }
80
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
81
- /******/ };
82
- /******/ })();
83
- /******/
15
+ /******/ }
16
+ /******/ };
17
+ /******/ })();
18
+ /******/
19
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
20
+ /******/ (() => {
21
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
22
+ /******/ })();
23
+ /******/
84
24
  /************************************************************************/
85
25
  var __webpack_exports__ = {};
86
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
87
- (() => {
88
- // ESM COMPAT FLAG
89
- __webpack_require__.r(__webpack_exports__);
90
26
 
91
27
  // EXPORTS
92
28
  __webpack_require__.d(__webpack_exports__, {
93
- "BkCheckbox": () => (/* binding */ BkCheckbox),
94
- "BkCheckboxGroup": () => (/* reexport */ checkbox_group),
95
- "default": () => (/* binding */ src)
29
+ "Cs": () => (/* binding */ BkCheckbox),
30
+ "Kr": () => (/* reexport */ checkbox_group),
31
+ "ZP": () => (/* binding */ src)
96
32
  });
97
33
 
98
- // EXTERNAL MODULE: external "../shared"
99
- var external_shared_ = __webpack_require__(4212);
34
+ ;// CONCATENATED MODULE: external "../shared"
35
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
36
+ var y = x => () => x
37
+ 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, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.resolveClassName, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
100
38
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
101
39
  function _arrayWithHoles(arr) {
102
40
  if (Array.isArray(arr)) return arr;
@@ -163,8 +101,10 @@ function _nonIterableRest() {
163
101
  function _slicedToArray(arr, i) {
164
102
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
165
103
  }
166
- // EXTERNAL MODULE: external "vue"
167
- var external_vue_ = __webpack_require__(748);
104
+ ;// CONCATENATED MODULE: external "vue"
105
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
106
+ var external_vue_y = x => () => x
107
+ 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 });
168
108
  ;// CONCATENATED MODULE: ../../packages/checkbox/src/common.ts
169
109
  /*
170
110
  * Tencent is pleased to support the open source community by making
@@ -195,7 +135,7 @@ var external_vue_ = __webpack_require__(748);
195
135
 
196
136
  var checkboxGroupKey = Symbol('CheckboxGroup');
197
137
  function useFocus() {
198
- var isFocus = (0,external_vue_.ref)(false);
138
+ var isFocus = (0,external_vue_namespaceObject.ref)(false);
199
139
 
200
140
  var blur = function blur() {
201
141
  isFocus.value = false;
@@ -212,15 +152,15 @@ function useFocus() {
212
152
  }
213
153
  ;
214
154
  var useCheckbox = function useCheckbox() {
215
- var currentInstance = (0,external_vue_.getCurrentInstance)();
155
+ var currentInstance = (0,external_vue_namespaceObject.getCurrentInstance)();
216
156
  var props = currentInstance.props,
217
157
  emit = currentInstance.emit;
218
- var checkboxGroup = (0,external_vue_.inject)(checkboxGroupKey, external_shared_.EMPTY_OBJ);
219
- var isGroup = !(0,external_shared_.isEmptyObj)(checkboxGroup);
220
- var inputRef = (0,external_vue_.ref)();
221
- var isChecked = (0,external_vue_.ref)(props.checked); // 禁用状态
158
+ var checkboxGroup = (0,external_vue_namespaceObject.inject)(checkboxGroupKey, external_shared_namespaceObject.EMPTY_OBJ);
159
+ var isGroup = !(0,external_shared_namespaceObject.isEmptyObj)(checkboxGroup);
160
+ var inputRef = (0,external_vue_namespaceObject.ref)();
161
+ var isChecked = (0,external_vue_namespaceObject.ref)(props.checked); // 禁用状态
222
162
 
223
- var isDisabled = (0,external_vue_.computed)(function () {
163
+ var isDisabled = (0,external_vue_namespaceObject.computed)(function () {
224
164
  if (isGroup && checkboxGroup.props.disabled) {
225
165
  return true;
226
166
  }
@@ -239,7 +179,7 @@ var useCheckbox = function useCheckbox() {
239
179
  checkboxGroup.handleChange();
240
180
  }
241
181
 
242
- (0,external_vue_.nextTick)(function () {
182
+ (0,external_vue_namespaceObject.nextTick)(function () {
243
183
  // 选中状态保持同步
244
184
  if (inputRef.value.checked !== isChecked.value) {
245
185
  inputRef.value.checked = isChecked.value;
@@ -249,7 +189,7 @@ var useCheckbox = function useCheckbox() {
249
189
 
250
190
 
251
191
  if (isGroup) {
252
- (0,external_vue_.watch)(function () {
192
+ (0,external_vue_namespaceObject.watch)(function () {
253
193
  return checkboxGroup.props.modelValue;
254
194
  }, function (modelValue) {
255
195
  isChecked.value = modelValue.includes(props.label);
@@ -257,7 +197,7 @@ var useCheckbox = function useCheckbox() {
257
197
  deep: true
258
198
  });
259
199
  } else {
260
- (0,external_vue_.watch)(function () {
200
+ (0,external_vue_namespaceObject.watch)(function () {
261
201
  return props.modelValue;
262
202
  }, function (modelValue) {
263
203
  if (modelValue === '') {
@@ -270,7 +210,7 @@ var useCheckbox = function useCheckbox() {
270
210
  });
271
211
  }
272
212
 
273
- (0,external_vue_.watch)(function () {
213
+ (0,external_vue_namespaceObject.watch)(function () {
274
214
  return props.checked;
275
215
  }, function () {
276
216
  isChecked.value = props.checked;
@@ -296,12 +236,12 @@ var useCheckbox = function useCheckbox() {
296
236
  triggerChange();
297
237
  };
298
238
 
299
- (0,external_vue_.onMounted)(function () {
239
+ (0,external_vue_namespaceObject.onMounted)(function () {
300
240
  if (isGroup) {
301
241
  checkboxGroup.register(currentInstance.proxy);
302
242
  }
303
243
  });
304
- (0,external_vue_.onBeforeUnmount)(function () {
244
+ (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
305
245
  if (isGroup) {
306
246
  checkboxGroup.unregister(currentInstance.proxy);
307
247
  }
@@ -347,19 +287,19 @@ var useCheckbox = function useCheckbox() {
347
287
 
348
288
 
349
289
  var checkboxProps = {
350
- modelValue: external_shared_.PropTypes.oneOfType([String, Number, Boolean]),
351
- label: external_shared_.PropTypes.oneOfType([String, Number, Boolean]),
352
- trueLabel: external_shared_.PropTypes.oneOfType([String, Number, Boolean]).def(true),
353
- falseLabel: external_shared_.PropTypes.oneOfType([String, Number, Boolean]).def(false),
354
- disabled: external_shared_.PropTypes.bool.def(false),
355
- checked: external_shared_.PropTypes.bool.def(false),
356
- indeterminate: external_shared_.PropTypes.bool,
357
- beforeChange: external_shared_.PropTypes.func,
358
- size: external_shared_.PropTypes.size().def(external_shared_.SizeEnum.LARGE),
359
- immediateEmitChange: external_shared_.PropTypes.bool.def(true) // 默认设置checked是否触发change事件
290
+ modelValue: external_shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]),
291
+ label: external_shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]),
292
+ trueLabel: external_shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]).def(true),
293
+ falseLabel: external_shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]).def(false),
294
+ disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
295
+ checked: external_shared_namespaceObject.PropTypes.bool.def(false),
296
+ indeterminate: external_shared_namespaceObject.PropTypes.bool,
297
+ beforeChange: external_shared_namespaceObject.PropTypes.func,
298
+ size: external_shared_namespaceObject.PropTypes.size().def(external_shared_namespaceObject.SizeEnum.LARGE),
299
+ immediateEmitChange: external_shared_namespaceObject.PropTypes.bool.def(true) // 默认设置checked是否触发change事件
360
300
 
361
301
  };
362
- /* harmony default export */ const src_checkbox = ((0,external_vue_.defineComponent)({
302
+ /* harmony default export */ const src_checkbox = ((0,external_vue_namespaceObject.defineComponent)({
363
303
  name: 'Checkbox',
364
304
  props: checkboxProps,
365
305
  emits: ['update:modelValue', 'change'],
@@ -393,7 +333,7 @@ var checkboxProps = {
393
333
  render: function render() {
394
334
  var _this = this;
395
335
 
396
- var checkboxClass = (0,external_shared_.classes)({
336
+ var checkboxClass = (0,external_shared_namespaceObject.classes)({
397
337
  'bk-checkbox': true,
398
338
  'is-focused': this.isFocus,
399
339
  'is-checked': this.isChecked,
@@ -406,16 +346,16 @@ var checkboxProps = {
406
346
  return null;
407
347
  }
408
348
 
409
- return (0,external_vue_.createVNode)("span", {
349
+ return (0,external_vue_namespaceObject.createVNode)("span", {
410
350
  "class": "bk-checkbox-label"
411
351
  }, [_this.$slots["default"] ? _this.$slots["default"]() : _this.label]);
412
352
  };
413
353
 
414
- return (0,external_vue_.createVNode)("label", {
354
+ return (0,external_vue_namespaceObject.createVNode)("label", {
415
355
  "class": checkboxClass
416
- }, [(0,external_vue_.createVNode)("span", {
417
- "class": [(0,external_shared_.resolveClassName)('checkbox-input'), this.size]
418
- }, [(0,external_vue_.createVNode)("input", {
356
+ }, [(0,external_vue_namespaceObject.createVNode)("span", {
357
+ "class": [(0,external_shared_namespaceObject.resolveClassName)('checkbox-input'), this.size]
358
+ }, [(0,external_vue_namespaceObject.createVNode)("input", {
419
359
  "ref": "inputRef",
420
360
  "role": "checkbox",
421
361
  "type": "checkbox",
@@ -458,17 +398,17 @@ var checkboxProps = {
458
398
 
459
399
 
460
400
  var checkboxGroupProps = {
461
- name: external_shared_.PropTypes.string.def(''),
462
- modelValue: external_shared_.PropTypes.array,
463
- disabled: external_shared_.PropTypes.bool,
464
- withValidate: external_shared_.PropTypes.bool.def(true)
401
+ name: external_shared_namespaceObject.PropTypes.string.def(''),
402
+ modelValue: external_shared_namespaceObject.PropTypes.array,
403
+ disabled: external_shared_namespaceObject.PropTypes.bool,
404
+ withValidate: external_shared_namespaceObject.PropTypes.bool.def(true)
465
405
  };
466
- /* harmony default export */ const checkbox_group = ((0,external_vue_.defineComponent)({
406
+ /* harmony default export */ const checkbox_group = ((0,external_vue_namespaceObject.defineComponent)({
467
407
  name: 'CheckboxGroup',
468
408
  props: checkboxGroupProps,
469
409
  emits: ['change', 'update:modelValue'],
470
410
  setup: function setup(props, context) {
471
- var formItem = (0,external_shared_.useFormItem)();
411
+ var formItem = (0,external_shared_namespaceObject.useFormItem)();
472
412
  var checkboxInstanceList = [];
473
413
 
474
414
  var register = function register(checkboxContext) {
@@ -495,14 +435,14 @@ var checkboxGroupProps = {
495
435
  context.emit('change', nextValue);
496
436
  };
497
437
 
498
- (0,external_vue_.provide)(checkboxGroupKey, {
438
+ (0,external_vue_namespaceObject.provide)(checkboxGroupKey, {
499
439
  name: 'CheckboxGroup',
500
440
  props: props,
501
441
  register: register,
502
442
  unregister: unregister,
503
443
  handleChange: handleChange
504
444
  });
505
- (0,external_vue_.watch)(function () {
445
+ (0,external_vue_namespaceObject.watch)(function () {
506
446
  return props.modelValue;
507
447
  }, function () {
508
448
  var _a;
@@ -511,7 +451,7 @@ var checkboxGroupProps = {
511
451
  (_a = formItem === null || formItem === void 0 ? void 0 : formItem.validate) === null || _a === void 0 ? void 0 : _a.call(formItem, 'change');
512
452
  }
513
453
  });
514
- (0,external_vue_.onMounted)(function () {
454
+ (0,external_vue_namespaceObject.onMounted)(function () {
515
455
  var modelValue = props.modelValue || [];
516
456
  checkboxInstanceList.forEach(function (checkboxInstance) {
517
457
  if (modelValue.includes(checkboxInstance.label)) {
@@ -524,7 +464,7 @@ var checkboxGroupProps = {
524
464
  render: function render() {
525
465
  var _a;
526
466
 
527
- return (0,external_vue_.createVNode)("div", {
467
+ return (0,external_vue_namespaceObject.createVNode)("div", {
528
468
  "class": "bk-checkbox-group"
529
469
  }, [(_a = this.$slots) === null || _a === void 0 ? void 0 : _a["default"]()]);
530
470
  }
@@ -558,14 +498,12 @@ var checkboxGroupProps = {
558
498
 
559
499
 
560
500
 
561
- var BkCheckbox = (0,external_shared_.withInstallProps)(src_checkbox, {
501
+ var BkCheckbox = (0,external_shared_namespaceObject.withInstallProps)(src_checkbox, {
562
502
  Group: checkbox_group
563
503
  });
564
504
  /* harmony default export */ const src = (BkCheckbox);
565
505
 
566
- })();
567
-
568
- /******/ return __webpack_exports__;
569
- /******/ })()
570
- ;
571
- });
506
+ var __webpack_exports__BkCheckbox = __webpack_exports__.Cs;
507
+ var __webpack_exports__BkCheckboxGroup = __webpack_exports__.Kr;
508
+ var __webpack_exports__default = __webpack_exports__.ZP;
509
+ export { __webpack_exports__BkCheckbox as BkCheckbox, __webpack_exports__BkCheckboxGroup as BkCheckboxGroup, __webpack_exports__default as default };
@@ -1,15 +1,7 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("../shared"), require("vue"), require("vue-types"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["../shared", "vue", "vue-types"], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("vue-types")) : factory(root["../shared"], root["vue"], root["vue-types"]);
8
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
- }
10
- })(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__210__) => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ var __webpack_modules__ = ({
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_vue_types_22de060a__ from "vue-types";
4
+ /******/ var __webpack_modules__ = ({
13
5
 
14
6
  /***/ 2148:
15
7
  /***/ ((__unused_webpack_module, exports) => {
@@ -815,102 +807,66 @@ var Hogan = {};
815
807
  })( true ? exports : 0);
816
808
 
817
809
 
818
- /***/ }),
819
-
820
- /***/ 4212:
821
- /***/ ((module) => {
822
-
823
- "use strict";
824
- module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
825
-
826
- /***/ }),
827
-
828
- /***/ 748:
829
- /***/ ((module) => {
830
-
831
- "use strict";
832
- module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
833
-
834
- /***/ }),
835
-
836
- /***/ 210:
837
- /***/ ((module) => {
838
-
839
- "use strict";
840
- module.exports = __WEBPACK_EXTERNAL_MODULE__210__;
841
-
842
810
  /***/ })
843
811
 
844
- /******/ });
812
+ /******/ });
845
813
  /************************************************************************/
846
- /******/ // The module cache
847
- /******/ var __webpack_module_cache__ = {};
848
- /******/
849
- /******/ // The require function
850
- /******/ function __webpack_require__(moduleId) {
851
- /******/ // Check if module is in cache
852
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
853
- /******/ if (cachedModule !== undefined) {
854
- /******/ return cachedModule.exports;
855
- /******/ }
856
- /******/ // Create a new module (and put it into the cache)
857
- /******/ var module = __webpack_module_cache__[moduleId] = {
858
- /******/ // no module.id needed
859
- /******/ // no module.loaded needed
860
- /******/ exports: {}
861
- /******/ };
862
- /******/
863
- /******/ // Execute the module function
864
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
865
- /******/
866
- /******/ // Return the exports of the module
867
- /******/ return module.exports;
814
+ /******/ // The module cache
815
+ /******/ var __webpack_module_cache__ = {};
816
+ /******/
817
+ /******/ // The require function
818
+ /******/ function __webpack_require__(moduleId) {
819
+ /******/ // Check if module is in cache
820
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
821
+ /******/ if (cachedModule !== undefined) {
822
+ /******/ return cachedModule.exports;
868
823
  /******/ }
869
- /******/
824
+ /******/ // Create a new module (and put it into the cache)
825
+ /******/ var module = __webpack_module_cache__[moduleId] = {
826
+ /******/ // no module.id needed
827
+ /******/ // no module.loaded needed
828
+ /******/ exports: {}
829
+ /******/ };
830
+ /******/
831
+ /******/ // Execute the module function
832
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
833
+ /******/
834
+ /******/ // Return the exports of the module
835
+ /******/ return module.exports;
836
+ /******/ }
837
+ /******/
870
838
  /************************************************************************/
871
- /******/ /* webpack/runtime/define property getters */
872
- /******/ (() => {
873
- /******/ // define getter functions for harmony exports
874
- /******/ __webpack_require__.d = (exports, definition) => {
875
- /******/ for(var key in definition) {
876
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
877
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
878
- /******/ }
879
- /******/ }
880
- /******/ };
881
- /******/ })();
882
- /******/
883
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
884
- /******/ (() => {
885
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
886
- /******/ })();
887
- /******/
888
- /******/ /* webpack/runtime/make namespace object */
889
- /******/ (() => {
890
- /******/ // define __esModule on exports
891
- /******/ __webpack_require__.r = (exports) => {
892
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
893
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
839
+ /******/ /* webpack/runtime/define property getters */
840
+ /******/ (() => {
841
+ /******/ // define getter functions for harmony exports
842
+ /******/ __webpack_require__.d = (exports, definition) => {
843
+ /******/ for(var key in definition) {
844
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
845
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
894
846
  /******/ }
895
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
896
- /******/ };
897
- /******/ })();
898
- /******/
847
+ /******/ }
848
+ /******/ };
849
+ /******/ })();
850
+ /******/
851
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
852
+ /******/ (() => {
853
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
854
+ /******/ })();
855
+ /******/
899
856
  /************************************************************************/
900
857
  var __webpack_exports__ = {};
901
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
858
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
902
859
  (() => {
903
- "use strict";
904
- // ESM COMPAT FLAG
905
- __webpack_require__.r(__webpack_exports__);
906
860
 
907
861
  // EXPORTS
908
862
  __webpack_require__.d(__webpack_exports__, {
909
- "default": () => (/* binding */ src)
863
+ "Z": () => (/* binding */ src)
910
864
  });
911
865
 
912
- // EXTERNAL MODULE: external "../shared"
913
- var external_shared_ = __webpack_require__(4212);
866
+ ;// CONCATENATED MODULE: external "../shared"
867
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
868
+ var y = x => () => x
869
+ const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["stringEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.stringEnum, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
914
870
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
915
871
  function _arrayWithHoles(arr) {
916
872
  if (Array.isArray(arr)) return arr;
@@ -977,8 +933,10 @@ function _nonIterableRest() {
977
933
  function _slicedToArray(arr, i) {
978
934
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
979
935
  }
980
- // EXTERNAL MODULE: external "vue"
981
- var external_vue_ = __webpack_require__(748);
936
+ ;// CONCATENATED MODULE: external "vue"
937
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
938
+ var external_vue_y = x => () => x
939
+ 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, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
982
940
  ;// CONCATENATED MODULE: ../../packages/code-diff/node_modules/diff/lib/index.mjs
983
941
  function Diff() {}
984
942
  Diff.prototype = {
@@ -5359,8 +5317,10 @@ function html(diffInput, configuration) {
5359
5317
  return fileList + diffOutput;
5360
5318
  }
5361
5319
  //# sourceMappingURL=diff2html.js.map
5362
- // EXTERNAL MODULE: external "vue-types"
5363
- var external_vue_types_ = __webpack_require__(210);
5320
+ ;// CONCATENATED MODULE: external "vue-types"
5321
+ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
5322
+ var external_vue_types_y = x => () => x
5323
+ const external_vue_types_namespaceObject = external_vue_types_x({ ["number"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.number, ["string"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.string });
5364
5324
  ;// CONCATENATED MODULE: ../../packages/code-diff/src/code-diff.tsx
5365
5325
 
5366
5326
 
@@ -5396,19 +5356,19 @@ var external_vue_types_ = __webpack_require__(210);
5396
5356
 
5397
5357
 
5398
5358
  var diffFormats = ['side-by-side', 'line-by-line'];
5399
- var CodeDiffFormat = (0,external_shared_.stringEnum)([].concat(diffFormats));
5359
+ var CodeDiffFormat = (0,external_shared_namespaceObject.stringEnum)([].concat(diffFormats));
5400
5360
  var LANGUAGES = (/* unused pure expression or super */ null && (['css', 'java', 'javascript', 'json', 'scss', 'less', 'stylus', 'shell', 'bash', 'cpp', 'go', 'xml', 'python', 'typescript', 'sql', 'ruby', 'vim', 'php', 'perl', 'powershell', 'makefile']));
5401
5361
  var themes = ['dark', 'light'];
5402
- var themesEnum = (0,external_shared_.stringEnum)([].concat(themes));
5362
+ var themesEnum = (0,external_shared_namespaceObject.stringEnum)([].concat(themes));
5403
5363
  var codeDiffProps = {
5404
- oldContent: (0,external_vue_types_.string)().def(''),
5405
- newContent: (0,external_vue_types_.string)().def(''),
5406
- diffFormat: (0,external_vue_types_.string)().def(CodeDiffFormat['line-by-line']),
5407
- diffContext: (0,external_vue_types_.number)(),
5364
+ oldContent: (0,external_vue_types_namespaceObject.string)().def(''),
5365
+ newContent: (0,external_vue_types_namespaceObject.string)().def(''),
5366
+ diffFormat: (0,external_vue_types_namespaceObject.string)().def(CodeDiffFormat['line-by-line']),
5367
+ diffContext: (0,external_vue_types_namespaceObject.number)(),
5408
5368
  // conf: Object as PropType<Diff2Html.Diff2HtmlUIConfig>,
5409
- theme: (0,external_vue_types_.string)().def('light'),
5410
- language: (0,external_vue_types_.string)().def('javascript'),
5411
- hljs: external_shared_.PropTypes.any.isRequired
5369
+ theme: (0,external_vue_types_namespaceObject.string)().def('light'),
5370
+ language: (0,external_vue_types_namespaceObject.string)().def('javascript'),
5371
+ hljs: external_shared_namespaceObject.PropTypes.any.isRequired
5412
5372
  }; // TODO: 感觉像是highlight.js的问题, 一些关键字无法显示高亮
5413
5373
 
5414
5374
  function changeCodeCls(htmlStr, lang) {
@@ -5417,15 +5377,15 @@ function changeCodeCls(htmlStr, lang) {
5417
5377
  });
5418
5378
  }
5419
5379
 
5420
- /* harmony default export */ const code_diff = ((0,external_vue_.defineComponent)({
5380
+ /* harmony default export */ const code_diff = ((0,external_vue_namespaceObject.defineComponent)({
5421
5381
  name: 'CodeDiff',
5422
5382
  props: codeDiffProps,
5423
5383
  emits: [],
5424
5384
  setup: function setup(props) {
5425
- var diffBox = (0,external_vue_.ref)(null);
5426
- var diffHtml = (0,external_vue_.ref)('');
5427
- var diffBoxCls = (0,external_vue_.computed)(function () {
5428
- return (0,external_shared_.classes)({
5385
+ var diffBox = (0,external_vue_namespaceObject.ref)(null);
5386
+ var diffHtml = (0,external_vue_namespaceObject.ref)('');
5387
+ var diffBoxCls = (0,external_vue_namespaceObject.computed)(function () {
5388
+ return (0,external_shared_namespaceObject.classes)({
5429
5389
  dark: props.theme === themesEnum.dark
5430
5390
  }, 'hljs bk-code-diff');
5431
5391
  });
@@ -5434,7 +5394,7 @@ function changeCodeCls(htmlStr, lang) {
5434
5394
  */
5435
5395
 
5436
5396
  function highlightElement() {
5437
- (0,external_vue_.nextTick)(function () {
5397
+ (0,external_vue_namespaceObject.nextTick)(function () {
5438
5398
  if (diffBox.value) {
5439
5399
  diffBox.value.querySelectorAll(".lang-".concat(props.language)).forEach(function (item) {
5440
5400
  props.hljs.highlightElement(item);
@@ -5461,10 +5421,10 @@ function changeCodeCls(htmlStr, lang) {
5461
5421
  highlightElement();
5462
5422
  }
5463
5423
 
5464
- (0,external_vue_.onMounted)(function () {
5424
+ (0,external_vue_namespaceObject.onMounted)(function () {
5465
5425
  generateDiffHTML(props.diffContext, props.language);
5466
5426
  });
5467
- (0,external_vue_.watch)(function () {
5427
+ (0,external_vue_namespaceObject.watch)(function () {
5468
5428
  return [props.diffContext, props.language];
5469
5429
  }, function (newVal) {
5470
5430
  var _newVal = _slicedToArray(newVal, 2),
@@ -5474,7 +5434,7 @@ function changeCodeCls(htmlStr, lang) {
5474
5434
  generateDiffHTML(newContext, newLanguage);
5475
5435
  });
5476
5436
  return function () {
5477
- return (0,external_vue_.createVNode)("div", {
5437
+ return (0,external_vue_namespaceObject.createVNode)("div", {
5478
5438
  "ref": diffBox,
5479
5439
  "class": diffBoxCls.value,
5480
5440
  "innerHTML": diffHtml.value
@@ -5510,11 +5470,9 @@ function changeCodeCls(htmlStr, lang) {
5510
5470
  */
5511
5471
 
5512
5472
 
5513
- var BkCodeDiff = (0,external_shared_.withInstall)(code_diff);
5473
+ var BkCodeDiff = (0,external_shared_namespaceObject.withInstall)(code_diff);
5514
5474
  /* harmony default export */ const src = (BkCodeDiff);
5515
5475
  })();
5516
5476
 
5517
- /******/ return __webpack_exports__;
5518
- /******/ })()
5519
- ;
5520
- });
5477
+ var __webpack_exports__default = __webpack_exports__.Z;
5478
+ export { __webpack_exports__default as default };