bkui-vue 0.0.1-beta.391 → 0.0.1-beta.393

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 (149) hide show
  1. package/dist/index.cjs.js +35 -35
  2. package/dist/index.esm.js +856 -857
  3. package/dist/index.umd.js +9 -9
  4. package/lib/affix/index.js +128 -60
  5. package/lib/alert/index.js +124 -56
  6. package/lib/animate-number/index.js +106 -42
  7. package/lib/backtop/index.js +133 -61
  8. package/lib/badge/index.js +114 -50
  9. package/lib/breadcrumb/index.js +133 -67
  10. package/lib/button/index.js +147 -68
  11. package/lib/card/index.js +154 -69
  12. package/lib/cascader/index.js +242 -168
  13. package/lib/checkbox/index.js +139 -77
  14. package/lib/code-diff/index.js +121 -79
  15. package/lib/collapse/index.js +150 -84
  16. package/lib/color-picker/index.js +245 -193
  17. package/lib/components.js +671 -434
  18. package/lib/container/index.js +125 -64
  19. package/lib/date-picker/index.js +563 -462
  20. package/lib/dialog/index.js +198 -108
  21. package/lib/directives/index.js +138 -92
  22. package/lib/dist.index.js +133 -48
  23. package/lib/divider/index.js +118 -50
  24. package/lib/dropdown/index.js +155 -73
  25. package/lib/exception/index.js +145 -97
  26. package/lib/fixed-navbar/index.js +107 -43
  27. package/lib/form/index.js +193 -107
  28. package/lib/icon/angle-double-down-line.js +90 -30
  29. package/lib/icon/angle-double-left-line.js +90 -30
  30. package/lib/icon/angle-double-left.js +90 -30
  31. package/lib/icon/angle-double-right-line.js +90 -30
  32. package/lib/icon/angle-double-right.js +90 -30
  33. package/lib/icon/angle-double-up-line.js +90 -30
  34. package/lib/icon/angle-down-fill.js +90 -30
  35. package/lib/icon/angle-down-line.js +90 -30
  36. package/lib/icon/angle-down.js +90 -30
  37. package/lib/icon/angle-left.js +90 -30
  38. package/lib/icon/angle-right.js +90 -30
  39. package/lib/icon/angle-up-fill.js +90 -30
  40. package/lib/icon/angle-up.js +90 -30
  41. package/lib/icon/archive-fill.js +90 -30
  42. package/lib/icon/arrows-left.js +90 -30
  43. package/lib/icon/arrows-right.js +90 -30
  44. package/lib/icon/audio-fill.js +90 -30
  45. package/lib/icon/bk.js +90 -30
  46. package/lib/icon/circle.js +90 -30
  47. package/lib/icon/close-line.js +90 -30
  48. package/lib/icon/close.js +90 -30
  49. package/lib/icon/code.js +90 -30
  50. package/lib/icon/cog-shape.js +90 -30
  51. package/lib/icon/collapse-left.js +90 -30
  52. package/lib/icon/copy.js +90 -30
  53. package/lib/icon/data-shape.js +90 -30
  54. package/lib/icon/del.js +90 -30
  55. package/lib/icon/doc-fill.js +90 -30
  56. package/lib/icon/done.js +90 -30
  57. package/lib/icon/down-shape.js +90 -30
  58. package/lib/icon/down-small.js +90 -30
  59. package/lib/icon/edit-line.js +90 -30
  60. package/lib/icon/ellipsis.js +90 -30
  61. package/lib/icon/enlarge-line.js +90 -30
  62. package/lib/icon/error.js +90 -30
  63. package/lib/icon/excel-fill.js +90 -30
  64. package/lib/icon/exclamation-circle-shape.js +90 -30
  65. package/lib/icon/eye.js +90 -30
  66. package/lib/icon/filliscreen-line.js +90 -30
  67. package/lib/icon/folder-open.js +90 -30
  68. package/lib/icon/folder-shape-open.js +90 -30
  69. package/lib/icon/folder-shape.js +90 -30
  70. package/lib/icon/folder.js +90 -30
  71. package/lib/icon/funnel.js +90 -30
  72. package/lib/icon/help-document-fill.js +90 -30
  73. package/lib/icon/help-fill.js +90 -30
  74. package/lib/icon/help.js +90 -30
  75. package/lib/icon/image-fill.js +90 -30
  76. package/lib/icon/img-placehoulder.js +88 -52
  77. package/lib/icon/index.js +255 -267
  78. package/lib/icon/info-line.js +88 -52
  79. package/lib/icon/info.js +88 -52
  80. package/lib/icon/left-shape.js +88 -52
  81. package/lib/icon/left-turn-line.js +88 -52
  82. package/lib/icon/narrow-line.js +88 -52
  83. package/lib/icon/original.js +88 -52
  84. package/lib/icon/pdf-fill.js +88 -52
  85. package/lib/icon/play-shape.js +88 -52
  86. package/lib/icon/plus.js +88 -52
  87. package/lib/icon/ppt-fill.js +88 -52
  88. package/lib/icon/qq.js +88 -52
  89. package/lib/icon/right-shape.js +88 -52
  90. package/lib/icon/right-turn-line.js +88 -52
  91. package/lib/icon/search.js +88 -52
  92. package/lib/icon/share.js +88 -52
  93. package/lib/icon/spinner.js +88 -52
  94. package/lib/icon/success.js +88 -52
  95. package/lib/icon/switcher-loading.js +88 -52
  96. package/lib/icon/text-file.js +88 -52
  97. package/lib/icon/text-fill.js +88 -52
  98. package/lib/icon/transfer.js +88 -52
  99. package/lib/icon/tree-application-shape.js +88 -52
  100. package/lib/icon/unfull-screen.js +88 -52
  101. package/lib/icon/unvisible.js +88 -52
  102. package/lib/icon/up-shape.js +88 -52
  103. package/lib/icon/upload.js +88 -52
  104. package/lib/icon/video-fill.js +88 -52
  105. package/lib/icon/warn.js +88 -52
  106. package/lib/icon/weixin.js +88 -52
  107. package/lib/image/index.js +213 -164
  108. package/lib/index.js +134 -50
  109. package/lib/info-box/index.js +206 -152
  110. package/lib/input/index.js +167 -99
  111. package/lib/link/index.js +115 -47
  112. package/lib/loading/index.js +127 -67
  113. package/lib/menu/index.js +156 -92
  114. package/lib/message/index.js +148 -76
  115. package/lib/modal/index.js +151 -85
  116. package/lib/navigation/index.js +134 -66
  117. package/lib/notify/index.js +153 -81
  118. package/lib/overflow-title/index.js +128 -92
  119. package/lib/pagination/index.js +220 -131
  120. package/lib/plugin-popover/index.js +329 -148
  121. package/lib/plugins/index.js +100 -33
  122. package/lib/popover/index.js +332 -153
  123. package/lib/popover2/index.js +99 -35
  124. package/lib/preset.js +104 -37
  125. package/lib/process/index.js +134 -92
  126. package/lib/progress/index.js +127 -63
  127. package/lib/radio/index.js +142 -81
  128. package/lib/rate/index.js +127 -63
  129. package/lib/resize-layout/index.js +147 -79
  130. package/lib/search-select/index.js +220 -168
  131. package/lib/select/index.js +394 -315
  132. package/lib/shared/index.js +203 -228
  133. package/lib/sideslider/index.js +137 -88
  134. package/lib/slider/index.js +196 -147
  135. package/lib/steps/index.js +152 -105
  136. package/lib/swiper/index.js +126 -62
  137. package/lib/switcher/index.js +133 -65
  138. package/lib/tab/index.js +188 -118
  139. package/lib/table/index.js +572 -457
  140. package/lib/table-column/index.js +197 -129
  141. package/lib/tag/index.js +130 -58
  142. package/lib/tag-input/index.js +277 -175
  143. package/lib/time-picker/index.js +111 -40
  144. package/lib/timeline/index.js +114 -50
  145. package/lib/transfer/index.js +174 -89
  146. package/lib/tree/index.js +235 -158
  147. package/lib/upload/index.js +227 -173
  148. package/lib/virtual-render/index.js +154 -86
  149. package/package.json +1 -1
@@ -1,42 +1,104 @@
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
- /******/
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
+ /******/ });
6
30
  /************************************************************************/
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] });
14
- /******/ }
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;
15
40
  /******/ }
16
- /******/ };
17
- /******/ })();
18
- /******/
19
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
20
- /******/ (() => {
21
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
22
- /******/ })();
23
- /******/
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' });
79
+ /******/ }
80
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
81
+ /******/ };
82
+ /******/ })();
83
+ /******/
24
84
  /************************************************************************/
25
85
  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__);
26
90
 
27
91
  // EXPORTS
28
92
  __webpack_require__.d(__webpack_exports__, {
29
- "L3": () => (/* binding */ BkLoading),
30
- "MY": () => (/* reexport */ BkLoadingMode),
31
- "p9": () => (/* reexport */ BkLoadingSize),
32
- "ZP": () => (/* binding */ src),
33
- "jk": () => (/* reexport */ setDefaultIndicator)
93
+ "BkLoading": () => (/* binding */ BkLoading),
94
+ "BkLoadingMode": () => (/* reexport */ BkLoadingMode),
95
+ "BkLoadingSize": () => (/* reexport */ BkLoadingSize),
96
+ "default": () => (/* binding */ src),
97
+ "setDefaultIndicator": () => (/* reexport */ setDefaultIndicator)
34
98
  });
35
99
 
36
- ;// CONCATENATED MODULE: external "../shared"
37
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
38
- var y = x => () => x
39
- const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
100
+ // EXTERNAL MODULE: external "../shared"
101
+ var external_shared_ = __webpack_require__(4212);
40
102
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
41
103
  function _defineProperty(obj, key, value) {
42
104
  if (key in obj) {
@@ -52,10 +114,8 @@ function _defineProperty(obj, key, value) {
52
114
 
53
115
  return obj;
54
116
  }
55
- ;// CONCATENATED MODULE: external "vue"
56
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
57
- var external_vue_y = x => () => x
58
- 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 });
117
+ // EXTERNAL MODULE: external "vue"
118
+ var external_vue_ = __webpack_require__(748);
59
119
  ;// CONCATENATED MODULE: ../../packages/loading/src/loading.tsx
60
120
 
61
121
 
@@ -106,19 +166,19 @@ var BkLoadingSize;
106
166
  var defaultIndicator;
107
167
  function setDefaultIndicator(Indicator) {
108
168
  defaultIndicator = typeof Indicator === 'function' ? Indicator : function () {
109
- return (0,external_vue_namespaceObject.createVNode)(Indicator, null, null);
169
+ return (0,external_vue_.createVNode)(Indicator, null, null);
110
170
  };
111
171
  }
112
172
  var loadingTypes = {
113
173
  indicator: {
114
174
  type: Function
115
175
  },
116
- loading: external_shared_namespaceObject.PropTypes.bool.def(true),
117
- inline: external_shared_namespaceObject.PropTypes.bool.def(true),
176
+ loading: external_shared_.PropTypes.bool.def(true),
177
+ inline: external_shared_.PropTypes.bool.def(true),
118
178
  theme: {
119
179
  type: String
120
180
  },
121
- title: external_shared_namespaceObject.PropTypes.string.def(''),
181
+ title: external_shared_.PropTypes.string.def(''),
122
182
  size: {
123
183
  type: String,
124
184
  "default": BkLoadingSize.Normal
@@ -127,64 +187,64 @@ var loadingTypes = {
127
187
  type: String,
128
188
  "default": 'default'
129
189
  },
130
- opacity: external_shared_namespaceObject.PropTypes.number.def(0.9),
131
- color: external_shared_namespaceObject.PropTypes.string.def('white'),
132
- zIndex: external_shared_namespaceObject.PropTypes.number.def(1)
190
+ opacity: external_shared_.PropTypes.number.def(0.9),
191
+ color: external_shared_.PropTypes.string.def('white'),
192
+ zIndex: external_shared_.PropTypes.number.def(1)
133
193
  };
134
- /* harmony default export */ const loading = ((0,external_vue_namespaceObject.defineComponent)({
194
+ /* harmony default export */ const loading = ((0,external_vue_.defineComponent)({
135
195
  name: 'Loading',
136
196
  props: loadingTypes,
137
197
  setup: function setup(props, ctx) {
138
- var dotIndicator = (0,external_vue_namespaceObject.createVNode)("div", {
198
+ var dotIndicator = (0,external_vue_.createVNode)("div", {
139
199
  "class": "bk-normal-indicator"
140
200
  }, [[1, 2, 3, 4].map(function (i) {
141
- return (0,external_vue_namespaceObject.createVNode)("span", {
201
+ return (0,external_vue_.createVNode)("span", {
142
202
  "class": "dot dot-".concat(i)
143
203
  }, null);
144
204
  })]);
145
205
 
146
- var spinIndicator = (0,external_vue_namespaceObject.createVNode)("div", {
206
+ var spinIndicator = (0,external_vue_.createVNode)("div", {
147
207
  "class": "bk-spin-indicator"
148
208
  }, [[1, 2, 3, 4, 5, 6, 7, 8].map(function (i) {
149
- return (0,external_vue_namespaceObject.createVNode)("span", {
209
+ return (0,external_vue_.createVNode)("span", {
150
210
  "class": "oval oval-".concat(i)
151
211
  }, null);
152
212
  })]);
153
213
 
154
- var zIndexStyle = (0,external_vue_namespaceObject.computed)(function () {
214
+ var zIndexStyle = (0,external_vue_.computed)(function () {
155
215
  return {
156
216
  zIndex: props.zIndex
157
217
  };
158
218
  });
159
- var maskStyle = (0,external_vue_namespaceObject.computed)(function () {
219
+ var maskStyle = (0,external_vue_.computed)(function () {
160
220
  return Object.assign({
161
221
  opacity: props.opacity,
162
222
  backgroundColor: props.color
163
223
  }, zIndexStyle.value);
164
224
  });
165
- var loadingWrapperCls = (0,external_vue_namespaceObject.computed)(function () {
166
- return (0,external_shared_namespaceObject.classes)({
225
+ var loadingWrapperCls = (0,external_vue_.computed)(function () {
226
+ return (0,external_shared_.classes)({
167
227
  'bk-loading-wrapper': props.loading,
168
228
  'bk-nested-loading': !!ctx.slots["default"]
169
229
  });
170
230
  });
171
- var containerCls = (0,external_vue_namespaceObject.computed)(function () {
231
+ var containerCls = (0,external_vue_.computed)(function () {
172
232
  var _classes;
173
233
 
174
- return (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "bk-loading-size-".concat(props.size), !!props.size), _defineProperty(_classes, "bk-loading-".concat(props.theme), !!props.theme), _classes), 'bk-loading-indicator');
234
+ return (0,external_shared_.classes)((_classes = {}, _defineProperty(_classes, "bk-loading-size-".concat(props.size), !!props.size), _defineProperty(_classes, "bk-loading-".concat(props.theme), !!props.theme), _classes), 'bk-loading-indicator');
175
235
  });
176
- var hasTitle = (0,external_vue_namespaceObject.computed)(function () {
236
+ var hasTitle = (0,external_vue_.computed)(function () {
177
237
  return !!props.title;
178
238
  });
179
- var indicator = (0,external_vue_namespaceObject.computed)(function () {
239
+ var indicator = (0,external_vue_.computed)(function () {
180
240
  var isSpinMode = props.mode === BkLoadingMode.Spin;
181
241
 
182
242
  if (typeof props.indicator === 'function') {
183
- return (0,external_vue_namespaceObject.createVNode)(props.indicator, null, null);
243
+ return (0,external_vue_.createVNode)(props.indicator, null, null);
184
244
  }
185
245
 
186
246
  if (typeof defaultIndicator === 'function') {
187
- return (0,external_vue_namespaceObject.createVNode)(defaultIndicator, null, null);
247
+ return (0,external_vue_.createVNode)(defaultIndicator, null, null);
188
248
  }
189
249
 
190
250
  return isSpinMode ? spinIndicator : dotIndicator;
@@ -192,15 +252,15 @@ var loadingTypes = {
192
252
  return function () {
193
253
  var _a, _b;
194
254
 
195
- return (0,external_vue_namespaceObject.createVNode)("div", {
255
+ return (0,external_vue_.createVNode)("div", {
196
256
  "class": loadingWrapperCls.value
197
- }, [props.loading && [ctx.slots["default"] && (0,external_vue_namespaceObject.createVNode)("div", {
257
+ }, [props.loading && [ctx.slots["default"] && (0,external_vue_.createVNode)("div", {
198
258
  "class": "bk-loading-mask",
199
259
  "style": maskStyle.value
200
- }, null), (0,external_vue_namespaceObject.createVNode)("div", {
260
+ }, null), (0,external_vue_.createVNode)("div", {
201
261
  "class": containerCls.value,
202
262
  "style": zIndexStyle.value
203
- }, [indicator.value, hasTitle.value && (0,external_vue_namespaceObject.createVNode)("div", {
263
+ }, [indicator.value, hasTitle.value && (0,external_vue_.createVNode)("div", {
204
264
  "class": "bk-loading-title"
205
265
  }, [props.title])])], (_b = (_a = ctx.slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
206
266
  };
@@ -234,16 +294,16 @@ var loadingTypes = {
234
294
  */
235
295
 
236
296
 
237
- var BkLoading = (0,external_shared_namespaceObject.withInstallProps)(loading, {
297
+ var BkLoading = (0,external_shared_.withInstallProps)(loading, {
238
298
  setDefaultIndicator: setDefaultIndicator,
239
299
  BkLoadingMode: BkLoadingMode,
240
300
  BkLoadingSize: BkLoadingSize
241
301
  }, true);
242
302
  /* harmony default export */ const src = (BkLoading);
243
303
 
244
- var __webpack_exports__BkLoading = __webpack_exports__.L3;
245
- var __webpack_exports__BkLoadingMode = __webpack_exports__.MY;
246
- var __webpack_exports__BkLoadingSize = __webpack_exports__.p9;
247
- var __webpack_exports__default = __webpack_exports__.ZP;
248
- var __webpack_exports__setDefaultIndicator = __webpack_exports__.jk;
249
- export { __webpack_exports__BkLoading as BkLoading, __webpack_exports__BkLoadingMode as BkLoadingMode, __webpack_exports__BkLoadingSize as BkLoadingSize, __webpack_exports__default as default, __webpack_exports__setDefaultIndicator as setDefaultIndicator };
304
+ })();
305
+
306
+ /******/ return __webpack_exports__;
307
+ /******/ })()
308
+ ;
309
+ });