bkui-vue 0.0.1-beta.468 → 0.0.1-beta.469

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 (168) hide show
  1. package/lib/affix/index.js +1 -335
  2. package/lib/alert/index.js +1 -276
  3. package/lib/animate-number/index.js +1 -219
  4. package/lib/backtop/index.js +1 -252
  5. package/lib/badge/index.js +1 -293
  6. package/lib/breadcrumb/index.js +1 -311
  7. package/lib/button/index.js +1 -388
  8. package/lib/card/index.js +1 -356
  9. package/lib/cascader/index.js +2 -2075
  10. package/lib/cascader/index.js.LICENSE.txt +1 -0
  11. package/lib/checkbox/index.js +1 -536
  12. package/lib/code-diff/index.js +1 -5535
  13. package/lib/collapse/index.js +1 -589
  14. package/lib/collapse-transition/index.js +1 -234
  15. package/lib/color-picker/index.js +1 -2701
  16. package/lib/components.js +1 -781
  17. package/lib/config-provider/index.js +1 -377
  18. package/lib/container/index.js +1 -390
  19. package/lib/date-picker/index.js +1 -5537
  20. package/lib/dialog/index.js +2 -1322
  21. package/lib/dialog/index.js.LICENSE.txt +1 -0
  22. package/lib/directives/index.js +2 -1357
  23. package/lib/directives/index.js.LICENSE.txt +14 -0
  24. package/lib/dist.index.js +1 -179
  25. package/lib/divider/index.js +1 -226
  26. package/lib/dropdown/index.js +1 -392
  27. package/lib/exception/index.js +1 -423
  28. package/lib/fixed-navbar/index.js +1 -210
  29. package/lib/form/index.js +1 -995
  30. package/lib/hooks.js +1 -133
  31. package/lib/icon/angle-double-down-line.js +1 -541
  32. package/lib/icon/angle-double-left-line.js +1 -541
  33. package/lib/icon/angle-double-left.js +1 -541
  34. package/lib/icon/angle-double-right-line.js +1 -541
  35. package/lib/icon/angle-double-right.js +1 -541
  36. package/lib/icon/angle-double-up-line.js +1 -541
  37. package/lib/icon/angle-down-fill.js +1 -541
  38. package/lib/icon/angle-down-line.js +1 -541
  39. package/lib/icon/angle-down.js +1 -541
  40. package/lib/icon/angle-left.js +1 -541
  41. package/lib/icon/angle-right.js +1 -541
  42. package/lib/icon/angle-up-fill.js +1 -541
  43. package/lib/icon/angle-up.js +1 -541
  44. package/lib/icon/archive-fill.js +1 -541
  45. package/lib/icon/arrows-left.js +1 -541
  46. package/lib/icon/arrows-right.js +1 -541
  47. package/lib/icon/audio-fill.js +1 -541
  48. package/lib/icon/bk.js +1 -541
  49. package/lib/icon/circle.js +1 -541
  50. package/lib/icon/close-line.js +1 -541
  51. package/lib/icon/close.js +1 -541
  52. package/lib/icon/code.js +1 -541
  53. package/lib/icon/cog-shape.js +1 -541
  54. package/lib/icon/collapse-left.js +1 -541
  55. package/lib/icon/copy-shape.js +1 -541
  56. package/lib/icon/copy.js +1 -541
  57. package/lib/icon/data-shape.js +1 -541
  58. package/lib/icon/del.js +1 -541
  59. package/lib/icon/doc-fill.js +1 -541
  60. package/lib/icon/done.js +1 -541
  61. package/lib/icon/down-shape.js +1 -541
  62. package/lib/icon/down-small.js +1 -541
  63. package/lib/icon/edit-line.js +1 -541
  64. package/lib/icon/ellipsis.js +1 -541
  65. package/lib/icon/enlarge-line.js +1 -541
  66. package/lib/icon/error.js +1 -541
  67. package/lib/icon/excel-fill.js +1 -541
  68. package/lib/icon/exclamation-circle-shape.js +1 -541
  69. package/lib/icon/eye.js +1 -541
  70. package/lib/icon/filliscreen-line.js +1 -541
  71. package/lib/icon/fix-line.js +1 -541
  72. package/lib/icon/fix-shape.js +1 -541
  73. package/lib/icon/folder-open.js +1 -541
  74. package/lib/icon/folder-shape-open.js +1 -541
  75. package/lib/icon/folder-shape.js +1 -541
  76. package/lib/icon/folder.js +1 -541
  77. package/lib/icon/funnel.js +1 -541
  78. package/lib/icon/help-document-fill.js +1 -541
  79. package/lib/icon/help-fill.js +1 -541
  80. package/lib/icon/help.js +1 -541
  81. package/lib/icon/image-fill.js +1 -563
  82. package/lib/icon/img-error.js +1 -563
  83. package/lib/icon/img-placehoulder.js +1 -563
  84. package/lib/icon/index.js +1 -2337
  85. package/lib/icon/info-line.js +1 -563
  86. package/lib/icon/info.js +1 -563
  87. package/lib/icon/left-shape.js +1 -563
  88. package/lib/icon/left-turn-line.js +1 -563
  89. package/lib/icon/narrow-line.js +1 -563
  90. package/lib/icon/original.js +1 -563
  91. package/lib/icon/pdf-fill.js +1 -563
  92. package/lib/icon/play-shape.js +1 -563
  93. package/lib/icon/plus.js +1 -563
  94. package/lib/icon/ppt-fill.js +1 -563
  95. package/lib/icon/qq.js +1 -563
  96. package/lib/icon/right-shape.js +1 -563
  97. package/lib/icon/right-turn-line.js +1 -563
  98. package/lib/icon/search.js +1 -563
  99. package/lib/icon/share.js +1 -563
  100. package/lib/icon/spinner.js +1 -563
  101. package/lib/icon/success.js +1 -563
  102. package/lib/icon/switcher-loading.js +1 -563
  103. package/lib/icon/text-file.js +1 -563
  104. package/lib/icon/text-fill.js +1 -563
  105. package/lib/icon/transfer.js +1 -563
  106. package/lib/icon/tree-application-shape.js +1 -563
  107. package/lib/icon/unfull-screen.js +1 -563
  108. package/lib/icon/unvisible.js +1 -563
  109. package/lib/icon/up-shape.js +1 -563
  110. package/lib/icon/upload.js +1 -563
  111. package/lib/icon/video-fill.js +1 -563
  112. package/lib/icon/warn.js +1 -563
  113. package/lib/icon/weixin-pro.js +1 -563
  114. package/lib/icon/weixin.js +1 -563
  115. package/lib/image/index.js +1 -944
  116. package/lib/index.js +1 -195
  117. package/lib/info-box/index.js +2 -1508
  118. package/lib/info-box/index.js.LICENSE.txt +1 -0
  119. package/lib/input/index.js +1 -963
  120. package/lib/link/index.js +1 -219
  121. package/lib/loading/index.js +1 -434
  122. package/lib/locale/index.js +1 -489
  123. package/lib/menu/index.js +1 -776
  124. package/lib/message/index.js +2 -1744
  125. package/lib/message/index.js.LICENSE.txt +6 -0
  126. package/lib/modal/index.js +1 -397
  127. package/lib/navigation/index.js +1 -423
  128. package/lib/notify/index.js +1 -437
  129. package/lib/overflow-title/index.js +1 -547
  130. package/lib/pagination/index.js +1 -987
  131. package/lib/plugin-popover/index.js +1 -4022
  132. package/lib/plugins/index.js +1 -130
  133. package/lib/pop-confirm/index.js +1 -365
  134. package/lib/popover/index.js +1 -4028
  135. package/lib/popover2/index.js +1 -171
  136. package/lib/preset.js +1 -164
  137. package/lib/process/index.js +2 -1143
  138. package/lib/process/index.js.LICENSE.txt +1 -0
  139. package/lib/progress/index.js +1 -476
  140. package/lib/radio/index.js +1 -611
  141. package/lib/rate/index.js +1 -348
  142. package/lib/resize-layout/index.js +1 -482
  143. package/lib/search-select/index.js +2 -2999
  144. package/lib/search-select/index.js.LICENSE.txt +1 -0
  145. package/lib/select/index.js +2 -2531
  146. package/lib/select/index.js.LICENSE.txt +1 -0
  147. package/lib/shared/index.js +1 -2713
  148. package/lib/sideslider/index.js +2 -1043
  149. package/lib/sideslider/index.js.LICENSE.txt +1 -0
  150. package/lib/slider/index.js +2 -1667
  151. package/lib/slider/index.js.LICENSE.txt +1 -0
  152. package/lib/steps/index.js +2 -1212
  153. package/lib/steps/index.js.LICENSE.txt +1 -0
  154. package/lib/swiper/index.js +1 -350
  155. package/lib/switcher/index.js +1 -323
  156. package/lib/tab/index.js +1 -918
  157. package/lib/table/index.js +1 -6388
  158. package/lib/table-column/index.js +1 -801
  159. package/lib/tag/index.js +1 -300
  160. package/lib/tag-input/index.js +1 -1757
  161. package/lib/time-picker/index.js +1 -142
  162. package/lib/timeline/index.js +1 -297
  163. package/lib/transfer/index.js +1 -764
  164. package/lib/tree/index.js +1 -2608
  165. package/lib/upload/index.js +2 -3257
  166. package/lib/upload/index.js.LICENSE.txt +1 -0
  167. package/lib/virtual-render/index.js +1 -790
  168. package/package.json +1 -1
package/lib/link/index.js CHANGED
@@ -1,219 +1 @@
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
- /******/ "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
- /***/ 210:
30
- /***/ ((module) => {
31
-
32
- module.exports = __WEBPACK_EXTERNAL_MODULE__210__;
33
-
34
- /***/ })
35
-
36
- /******/ });
37
- /************************************************************************/
38
- /******/ // The module cache
39
- /******/ var __webpack_module_cache__ = {};
40
- /******/
41
- /******/ // The require function
42
- /******/ function __webpack_require__(moduleId) {
43
- /******/ // Check if module is in cache
44
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
45
- /******/ if (cachedModule !== undefined) {
46
- /******/ return cachedModule.exports;
47
- /******/ }
48
- /******/ // Create a new module (and put it into the cache)
49
- /******/ var module = __webpack_module_cache__[moduleId] = {
50
- /******/ // no module.id needed
51
- /******/ // no module.loaded needed
52
- /******/ exports: {}
53
- /******/ };
54
- /******/
55
- /******/ // Execute the module function
56
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
57
- /******/
58
- /******/ // Return the exports of the module
59
- /******/ return module.exports;
60
- /******/ }
61
- /******/
62
- /************************************************************************/
63
- /******/ /* webpack/runtime/define property getters */
64
- /******/ (() => {
65
- /******/ // define getter functions for harmony exports
66
- /******/ __webpack_require__.d = (exports, definition) => {
67
- /******/ for(var key in definition) {
68
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
69
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
70
- /******/ }
71
- /******/ }
72
- /******/ };
73
- /******/ })();
74
- /******/
75
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
76
- /******/ (() => {
77
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
78
- /******/ })();
79
- /******/
80
- /******/ /* webpack/runtime/make namespace object */
81
- /******/ (() => {
82
- /******/ // define __esModule on exports
83
- /******/ __webpack_require__.r = (exports) => {
84
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
85
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
86
- /******/ }
87
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
88
- /******/ };
89
- /******/ })();
90
- /******/
91
- /************************************************************************/
92
- var __webpack_exports__ = {};
93
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
94
- (() => {
95
- // ESM COMPAT FLAG
96
- __webpack_require__.r(__webpack_exports__);
97
-
98
- // EXPORTS
99
- __webpack_require__.d(__webpack_exports__, {
100
- "default": () => (/* binding */ src)
101
- });
102
-
103
- // EXTERNAL MODULE: external "../shared"
104
- var external_shared_ = __webpack_require__(4212);
105
- // EXTERNAL MODULE: external "vue"
106
- var external_vue_ = __webpack_require__(748);
107
- // EXTERNAL MODULE: external "vue-types"
108
- var external_vue_types_ = __webpack_require__(210);
109
- ;// CONCATENATED MODULE: ../../packages/link/src/link.tsx
110
-
111
- /*
112
- * Tencent is pleased to support the open source community by making
113
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
114
- *
115
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
116
- *
117
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
118
- *
119
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
120
- *
121
- * ---------------------------------------------------
122
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
123
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
124
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
125
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
126
- *
127
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
128
- * the Software.
129
- *
130
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
131
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
132
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
133
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
134
- * IN THE SOFTWARE.
135
- */
136
-
137
-
138
-
139
- var LinkThemeEnum;
140
- (function (LinkThemeEnum) {
141
- LinkThemeEnum["DANGER"] = "danger";
142
- LinkThemeEnum["SUCCESS"] = "success";
143
- LinkThemeEnum["PRIMARY"] = "primary";
144
- LinkThemeEnum["WARNING"] = "warning";
145
- LinkThemeEnum["DEFAULT"] = "default";
146
- })(LinkThemeEnum || (LinkThemeEnum = {}));
147
- /* harmony default export */ const src_link = ((0,external_vue_.defineComponent)({
148
- name: 'Link',
149
- props: {
150
- theme: (0,external_vue_types_.toType)('linkTheme', {}).def(LinkThemeEnum.DEFAULT),
151
- href: external_shared_.PropTypes.string.def(''),
152
- disabled: external_shared_.PropTypes.bool.def(false),
153
- underline: external_shared_.PropTypes.bool.def(false),
154
- target: external_shared_.PropTypes.string.def('_self')
155
- },
156
- emits: ['click'],
157
- setup: function setup(props, _ref) {
158
- var emit = _ref.emit;
159
- var handleClick = function handleClick(event) {
160
- if (props.disabled) {
161
- event.preventDefault();
162
- return false;
163
- }
164
- emit('click', event);
165
- };
166
- return {
167
- handleClick: handleClick
168
- };
169
- },
170
- render: function render() {
171
- var _a, _b;
172
- var linkClass = (0,external_shared_.classes)({
173
- 'is-disabled': this.disabled,
174
- 'has-underline': this.underline
175
- }, "".concat(this.theme, " bk-link"));
176
- return (0,external_vue_.createVNode)("a", {
177
- "href": this.href,
178
- "target": this.target,
179
- "class": linkClass,
180
- "onClick": this.handleClick
181
- }, [(0,external_vue_.createVNode)("span", null, [(_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)])]);
182
- }
183
- }));
184
- ;// CONCATENATED MODULE: ../../packages/link/src/index.ts
185
- /*
186
- * Tencent is pleased to support the open source community by making
187
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
188
- *
189
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
190
- *
191
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
192
- *
193
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
194
- *
195
- * ---------------------------------------------------
196
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
197
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
198
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
199
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
200
- *
201
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
202
- * the Software.
203
- *
204
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
205
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
206
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
207
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
208
- * IN THE SOFTWARE.
209
- */
210
-
211
-
212
- var BkLink = (0,external_shared_.withInstall)(src_link);
213
- /* harmony default export */ const src = (BkLink);
214
- })();
215
-
216
- /******/ return __webpack_exports__;
217
- /******/ })()
218
- ;
219
- });
1
+ !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("vue-types")):r(e["../shared"],e.vue,e["vue-types"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t)=>(()=>{"use strict";var o={4212:r=>{r.exports=e},748:e=>{e.exports=r},210:e=>{e.exports=t}},i={};function n(e){var r=i[e];if(void 0!==r)return r.exports;var t=i[e]={exports:{}};return o[e](t,t.exports,n),t.exports}n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{n.r(s),n.d(s,{default:()=>a});var e,r=n(4212),t=n(748),o=n(210);!function(e){e.DANGER="danger",e.SUCCESS="success",e.PRIMARY="primary",e.WARNING="warning",e.DEFAULT="default"}(e||(e={}));const i=(0,t.defineComponent)({name:"Link",props:{theme:(0,o.toType)("linkTheme",{}).def(e.DEFAULT),href:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1),underline:r.PropTypes.bool.def(!1),target:r.PropTypes.string.def("_self")},emits:["click"],setup:function(e,r){var t=r.emit;return{handleClick:function(r){if(e.disabled)return r.preventDefault(),!1;t("click",r)}}},render:function(){var e,o,i=(0,r.classes)({"is-disabled":this.disabled,"has-underline":this.underline},"".concat(this.theme," bk-link"));return(0,t.createVNode)("a",{href:this.href,target:this.target,class:i,onClick:this.handleClick},[(0,t.createVNode)("span",null,[null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e)])])}}),a=(0,r.withInstall)(i)})(),s})()));
@@ -1,434 +1 @@
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
- /******/ });
30
- /************************************************************************/
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' });
79
- /******/ }
80
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
81
- /******/ };
82
- /******/ })();
83
- /******/
84
- /************************************************************************/
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__);
90
-
91
- // EXPORTS
92
- __webpack_require__.d(__webpack_exports__, {
93
- BkLoading: () => (/* binding */ BkLoading),
94
- BkLoadingMode: () => (/* reexport */ BkLoadingMode),
95
- BkLoadingSize: () => (/* reexport */ BkLoadingSize),
96
- "default": () => (/* binding */ src),
97
- setDefaultIndicator: () => (/* reexport */ setDefaultIndicator)
98
- });
99
-
100
- // EXTERNAL MODULE: external "../shared"
101
- var external_shared_ = __webpack_require__(4212);
102
- // EXTERNAL MODULE: external "vue"
103
- var external_vue_ = __webpack_require__(748);
104
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
105
- function _typeof(obj) {
106
- "@babel/helpers - typeof";
107
-
108
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
109
- return typeof obj;
110
- } : function (obj) {
111
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
112
- }, _typeof(obj);
113
- }
114
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
115
-
116
- function _toPrimitive(input, hint) {
117
- if (_typeof(input) !== "object" || input === null) return input;
118
- var prim = input[Symbol.toPrimitive];
119
- if (prim !== undefined) {
120
- var res = prim.call(input, hint || "default");
121
- if (_typeof(res) !== "object") return res;
122
- throw new TypeError("@@toPrimitive must return a primitive value.");
123
- }
124
- return (hint === "string" ? String : Number)(input);
125
- }
126
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
127
-
128
-
129
- function _toPropertyKey(arg) {
130
- var key = _toPrimitive(arg, "string");
131
- return _typeof(key) === "symbol" ? key : String(key);
132
- }
133
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
134
-
135
- function _defineProperty(obj, key, value) {
136
- key = _toPropertyKey(key);
137
- if (key in obj) {
138
- Object.defineProperty(obj, key, {
139
- value: value,
140
- enumerable: true,
141
- configurable: true,
142
- writable: true
143
- });
144
- } else {
145
- obj[key] = value;
146
- }
147
- return obj;
148
- }
149
- ;// CONCATENATED MODULE: ../../packages/loading/src/loading.tsx
150
-
151
-
152
- /*
153
- * Tencent is pleased to support the open source community by making
154
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
155
- *
156
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
157
- *
158
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
159
- *
160
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
161
- *
162
- * ---------------------------------------------------
163
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
164
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
165
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
166
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
167
- *
168
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
169
- * the Software.
170
- *
171
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
172
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
173
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
174
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
175
- * IN THE SOFTWARE.
176
- */
177
-
178
-
179
- var BkLoadingMode;
180
- (function (BkLoadingMode) {
181
- BkLoadingMode["Default"] = "default";
182
- BkLoadingMode["Spin"] = "spin";
183
- })(BkLoadingMode || (BkLoadingMode = {}));
184
- var BkLoadingSize;
185
- (function (BkLoadingSize) {
186
- BkLoadingSize["Normal"] = "";
187
- BkLoadingSize["Mini"] = "mini";
188
- BkLoadingSize["Small"] = "small";
189
- BkLoadingSize["Large"] = "large";
190
- })(BkLoadingSize || (BkLoadingSize = {}));
191
- var defaultIndicator;
192
- function setDefaultIndicator(Indicator) {
193
- defaultIndicator = typeof Indicator === 'function' ? Indicator : function () {
194
- return (0,external_vue_.createVNode)(Indicator, null, null);
195
- };
196
- }
197
- var loadingTypes = {
198
- indicator: {
199
- type: Function
200
- },
201
- loading: external_shared_.PropTypes.bool.def(true),
202
- inline: external_shared_.PropTypes.bool.def(true),
203
- theme: {
204
- type: String
205
- },
206
- title: external_shared_.PropTypes.string.def(''),
207
- size: {
208
- type: String,
209
- "default": BkLoadingSize.Normal
210
- },
211
- mode: {
212
- type: String,
213
- "default": 'default'
214
- },
215
- opacity: external_shared_.PropTypes.number.def(0.9),
216
- color: external_shared_.PropTypes.string.def('white'),
217
- zIndex: external_shared_.PropTypes.number.def(1),
218
- isDirective: external_shared_.PropTypes.bool.def(false)
219
- };
220
- /* harmony default export */ const loading = ((0,external_vue_.defineComponent)({
221
- name: 'Loading',
222
- props: loadingTypes,
223
- setup: function setup(props, ctx) {
224
- var dotIndicator = (0,external_vue_.createVNode)("div", {
225
- "class": "bk-normal-indicator"
226
- }, [[1, 2, 3, 4].map(function (i) {
227
- return (0,external_vue_.createVNode)("span", {
228
- "class": "dot dot-".concat(i)
229
- }, null);
230
- })]);
231
- var spinIndicator = (0,external_vue_.createVNode)("div", {
232
- "class": "bk-spin-indicator"
233
- }, [[1, 2, 3, 4, 5, 6, 7, 8].map(function (i) {
234
- return (0,external_vue_.createVNode)("span", {
235
- "class": "oval oval-".concat(i)
236
- }, null);
237
- })]);
238
- var zIndexStyle = (0,external_vue_.computed)(function () {
239
- return {
240
- zIndex: props.zIndex
241
- };
242
- });
243
- var maskStyle = (0,external_vue_.computed)(function () {
244
- return Object.assign({
245
- opacity: props.opacity,
246
- backgroundColor: props.color
247
- }, zIndexStyle.value);
248
- });
249
- var loadingWrapperCls = (0,external_vue_.computed)(function () {
250
- return (0,external_shared_.classes)({
251
- 'bk-loading-wrapper': props.loading,
252
- 'bk-nested-loading': !!ctx.slots["default"],
253
- 'bk-directive-loading': props.isDirective
254
- });
255
- });
256
- var containerCls = (0,external_vue_.computed)(function () {
257
- var _classes;
258
- 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');
259
- });
260
- var hasTitle = (0,external_vue_.computed)(function () {
261
- return !!props.title;
262
- });
263
- var indicator = (0,external_vue_.computed)(function () {
264
- var isSpinMode = props.mode === BkLoadingMode.Spin;
265
- if (typeof props.indicator === 'function') {
266
- return (0,external_vue_.createVNode)(props.indicator, null, null);
267
- }
268
- if (typeof defaultIndicator === 'function') {
269
- return (0,external_vue_.createVNode)(defaultIndicator, null, null);
270
- }
271
- return isSpinMode ? spinIndicator : dotIndicator;
272
- });
273
- return function () {
274
- var _a, _b;
275
- return (0,external_vue_.createVNode)("div", {
276
- "class": loadingWrapperCls.value
277
- }, [(_b = (_a = ctx.slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a), props.loading && [(ctx.slots["default"] || props.isDirective) && (0,external_vue_.createVNode)("div", {
278
- "class": "bk-loading-mask",
279
- "style": maskStyle.value
280
- }, null), (0,external_vue_.createVNode)("div", {
281
- "class": containerCls.value,
282
- "style": zIndexStyle.value
283
- }, [indicator.value, hasTitle.value && (0,external_vue_.createVNode)("div", {
284
- "class": "bk-loading-title"
285
- }, [props.title])])]]);
286
- };
287
- }
288
- }));
289
- ;// CONCATENATED MODULE: ../../packages/loading/src/directive.ts
290
- /*
291
- * Tencent is pleased to support the open source community by making
292
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
293
- *
294
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
295
- *
296
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
297
- *
298
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
299
- *
300
- * ---------------------------------------------------
301
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
302
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
303
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
304
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
305
- *
306
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
307
- * the Software.
308
- *
309
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
310
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
311
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
312
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
313
- * IN THE SOFTWARE.
314
- */
315
-
316
-
317
- var INSTANCE_KEY = Symbol('vBkLoading');
318
- var createInstance = function createInstance(el, binding) {
319
- var _a, _b, _c, _d, _e;
320
- var getBindingProp = function getBindingProp(key) {
321
- var _a, _b;
322
- return (_b = (_a = binding.value) === null || _a === void 0 ? void 0 : _a[key]) !== null && _b !== void 0 ? _b : undefined;
323
- };
324
- var options = (0,external_vue_.reactive)({
325
- indicator: getBindingProp('indicator'),
326
- loading: (_a = getBindingProp('loading')) !== null && _a !== void 0 ? _a : false,
327
- inline: (_b = getBindingProp('inline')) !== null && _b !== void 0 ? _b : false,
328
- theme: getBindingProp('theme'),
329
- title: (_c = getBindingProp('title')) !== null && _c !== void 0 ? _c : '',
330
- size: (_d = getBindingProp('size')) !== null && _d !== void 0 ? _d : '',
331
- mode: getBindingProp('mode'),
332
- opacity: getBindingProp('opacity'),
333
- color: (_e = getBindingProp('color')) !== null && _e !== void 0 ? _e : 'white',
334
- zIndex: getBindingProp('zIndex'),
335
- isDirective: true
336
- });
337
- var div = document.createElement('div');
338
- Object.assign(div.style, {
339
- position: 'absolute',
340
- left: 0,
341
- right: 0,
342
- top: 0,
343
- bottom: 0
344
- });
345
- Object.assign(el.style, {
346
- position: 'relative'
347
- });
348
- var instance = (0,external_vue_.createApp)({
349
- render: function render() {
350
- return (0,external_vue_.h)(loading, options);
351
- }
352
- });
353
- el[INSTANCE_KEY] = {
354
- options: options,
355
- instance: instance,
356
- vm: instance.mount(div)
357
- };
358
- el.appendChild(div);
359
- };
360
- var updateOptions = function updateOptions(newOptions, originalOptions) {
361
- Object.keys(newOptions).forEach(function (key) {
362
- if (newOptions[key] !== originalOptions[key]) {
363
- originalOptions[key] = newOptions[key];
364
- }
365
- });
366
- };
367
- var vBkloading = {
368
- mounted: function mounted(el, binding) {
369
- if (binding.value) {
370
- createInstance(el, binding);
371
- }
372
- },
373
- updated: function updated(el, binding) {
374
- var _a, _b, _c;
375
- var instance = el[INSTANCE_KEY];
376
- var value = binding.value;
377
- updateOptions(value, instance.options);
378
- if ((_c = (_b = (_a = instance === null || instance === void 0 ? void 0 : instance.vm) === null || _a === void 0 ? void 0 : _a.$el) === null || _b === void 0 ? void 0 : _b.parentNode) === null || _c === void 0 ? void 0 : _c.style) {
379
- instance.vm.$el.parentNode.style.display = value.loading ? '' : 'none';
380
- }
381
- },
382
- unmounted: function unmounted(el) {
383
- var _a, _b, _c;
384
- var instance = el[INSTANCE_KEY];
385
- el === null || el === void 0 ? void 0 : el.removeChild((_b = (_a = instance === null || instance === void 0 ? void 0 : instance.vm) === null || _a === void 0 ? void 0 : _a.$el) === null || _b === void 0 ? void 0 : _b.parentNode);
386
- (_c = instance === null || instance === void 0 ? void 0 : instance.instance) === null || _c === void 0 ? void 0 : _c.unmount();
387
- el[INSTANCE_KEY] = null;
388
- }
389
- };
390
- ;// CONCATENATED MODULE: ../../packages/loading/src/index.ts
391
- /*
392
- * Tencent is pleased to support the open source community by making
393
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
394
- *
395
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
396
- *
397
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
398
- *
399
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
400
- *
401
- * ---------------------------------------------------
402
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
403
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
404
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
405
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
406
- *
407
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
408
- * the Software.
409
- *
410
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
411
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
412
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
413
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
414
- * IN THE SOFTWARE.
415
- */
416
-
417
-
418
-
419
- var BkLoading = (0,external_shared_.withInstallProps)(loading, {
420
- setDefaultIndicator: setDefaultIndicator,
421
- BkLoadingMode: BkLoadingMode,
422
- BkLoadingSize: BkLoadingSize
423
- }, true, {
424
- name: 'loading',
425
- directive: vBkloading
426
- });
427
- /* harmony default export */ const src = (BkLoading);
428
-
429
- })();
430
-
431
- /******/ return __webpack_exports__;
432
- /******/ })()
433
- ;
434
- });
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,i),r.exports}i.d=(e,o)=>{for(var t in o)i.o(o,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},i.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{i.r(r),i.d(r,{BkLoading:()=>f,BkLoadingMode:()=>e,BkLoadingSize:()=>o,default:()=>m,setDefaultIndicator:()=>d});var e,o,t,n=i(4212),l=i(748);function a(e){return a="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},a(e)}function u(e,o,t){return(o=function(e){var o=function(e,o){if("object"!==a(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(o)?o:String(o)}(o))in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function d(e){t="function"==typeof e?e:function(){return(0,l.createVNode)(e,null,null)}}!function(e){e.Default="default",e.Spin="spin"}(e||(e={})),function(e){e.Normal="",e.Mini="mini",e.Small="small",e.Large="large"}(o||(o={}));var c={indicator:{type:Function},loading:n.PropTypes.bool.def(!0),inline:n.PropTypes.bool.def(!0),theme:{type:String},title:n.PropTypes.string.def(""),size:{type:String,default:o.Normal},mode:{type:String,default:"default"},opacity:n.PropTypes.number.def(.9),color:n.PropTypes.string.def("white"),zIndex:n.PropTypes.number.def(1),isDirective:n.PropTypes.bool.def(!1)};const s=(0,l.defineComponent)({name:"Loading",props:c,setup:function(o,i){var r=(0,l.createVNode)("div",{class:"bk-normal-indicator"},[[1,2,3,4].map((function(e){return(0,l.createVNode)("span",{class:"dot dot-".concat(e)},null)}))]),a=(0,l.createVNode)("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return(0,l.createVNode)("span",{class:"oval oval-".concat(e)},null)}))]),d=(0,l.computed)((function(){return{zIndex:o.zIndex}})),c=(0,l.computed)((function(){return Object.assign({opacity:o.opacity,backgroundColor:o.color},d.value)})),s=(0,l.computed)((function(){return(0,n.classes)({"bk-loading-wrapper":o.loading,"bk-nested-loading":!!i.slots.default,"bk-directive-loading":o.isDirective})})),p=(0,l.computed)((function(){var e;return(0,n.classes)((u(e={},"bk-loading-size-".concat(o.size),!!o.size),u(e,"bk-loading-".concat(o.theme),!!o.theme),e),"bk-loading-indicator")})),v=(0,l.computed)((function(){return!!o.title})),f=(0,l.computed)((function(){var n=o.mode===e.Spin;return"function"==typeof o.indicator?(0,l.createVNode)(o.indicator,null,null):"function"==typeof t?(0,l.createVNode)(t,null,null):n?a:r}));return function(){var e,t;return(0,l.createVNode)("div",{class:s.value},[null===(t=(e=i.slots).default)||void 0===t?void 0:t.call(e),o.loading&&[(i.slots.default||o.isDirective)&&(0,l.createVNode)("div",{class:"bk-loading-mask",style:c.value},null),(0,l.createVNode)("div",{class:p.value,style:d.value},[f.value,v.value&&(0,l.createVNode)("div",{class:"bk-loading-title"},[o.title])])]])}}});var p=Symbol("vBkLoading"),v={mounted:function(e,o){o.value&&function(e,o){var t,n,i,r,a,u=function(e){var t,n;return null!==(n=null===(t=o.value)||void 0===t?void 0:t[e])&&void 0!==n?n:void 0},d=(0,l.reactive)({indicator:u("indicator"),loading:null!==(t=u("loading"))&&void 0!==t&&t,inline:null!==(n=u("inline"))&&void 0!==n&&n,theme:u("theme"),title:null!==(i=u("title"))&&void 0!==i?i:"",size:null!==(r=u("size"))&&void 0!==r?r:"",mode:u("mode"),opacity:u("opacity"),color:null!==(a=u("color"))&&void 0!==a?a:"white",zIndex:u("zIndex"),isDirective:!0}),c=document.createElement("div");Object.assign(c.style,{position:"absolute",left:0,right:0,top:0,bottom:0}),Object.assign(e.style,{position:"relative"});var v=(0,l.createApp)({render:function(){return(0,l.h)(s,d)}});e[p]={options:d,instance:v,vm:v.mount(c)},e.appendChild(c)}(e,o)},updated:function(e,o){var t,n,i,r,l,a=e[p],u=o.value;r=u,l=a.options,Object.keys(r).forEach((function(e){r[e]!==l[e]&&(l[e]=r[e])})),(null===(i=null===(n=null===(t=null==a?void 0:a.vm)||void 0===t?void 0:t.$el)||void 0===n?void 0:n.parentNode)||void 0===i?void 0:i.style)&&(a.vm.$el.parentNode.style.display=u.loading?"":"none")},unmounted:function(e){var o,t,n,i=e[p];null==e||e.removeChild(null===(t=null===(o=null==i?void 0:i.vm)||void 0===o?void 0:o.$el)||void 0===t?void 0:t.parentNode),null===(n=null==i?void 0:i.instance)||void 0===n||n.unmount(),e[p]=null}},f=(0,n.withInstallProps)(s,{setDefaultIndicator:d,BkLoadingMode:e,BkLoadingSize:o},!0,{name:"loading",directive:v});const m=f})(),r})()));