bkui-vue 0.0.2-beta.72 → 0.0.2-beta.73

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 (170) hide show
  1. package/lib/affix/index.js +319 -1
  2. package/lib/alert/index.js +215 -1
  3. package/lib/animate-number/index.js +155 -1
  4. package/lib/backtop/index.js +188 -1
  5. package/lib/badge/index.js +236 -1
  6. package/lib/breadcrumb/index.js +309 -1
  7. package/lib/button/index.js +321 -1
  8. package/lib/card/index.js +274 -1
  9. package/lib/cascader/index.js +2019 -2
  10. package/lib/checkbox/index.js +542 -1
  11. package/lib/code-diff/index.js +5501 -1
  12. package/lib/collapse/index.js +518 -1
  13. package/lib/collapse-transition/index.js +178 -1
  14. package/lib/color-picker/index.js +2662 -1
  15. package/lib/components.js +530 -1
  16. package/lib/config-provider/index.js +317 -1
  17. package/lib/container/index.js +343 -1
  18. package/lib/date-picker/index.js +5481 -1
  19. package/lib/dialog/index.js +1266 -2
  20. package/lib/directives/index.js +1335 -2
  21. package/lib/dist.index.js +87 -1
  22. package/lib/divider/index.js +169 -1
  23. package/lib/dropdown/index.js +369 -1
  24. package/lib/exception/index.js +385 -1
  25. package/lib/fixed-navbar/index.js +154 -1
  26. package/lib/form/index.js +918 -1
  27. package/lib/hooks.js +73 -1
  28. package/lib/icon/angle-double-down-line.js +481 -1
  29. package/lib/icon/angle-double-left-line.js +481 -1
  30. package/lib/icon/angle-double-left.js +481 -1
  31. package/lib/icon/angle-double-right-line.js +481 -1
  32. package/lib/icon/angle-double-right.js +481 -1
  33. package/lib/icon/angle-double-up-line.js +481 -1
  34. package/lib/icon/angle-down-fill.js +481 -1
  35. package/lib/icon/angle-down-line.js +481 -1
  36. package/lib/icon/angle-down.js +481 -1
  37. package/lib/icon/angle-left.js +481 -1
  38. package/lib/icon/angle-right.js +481 -1
  39. package/lib/icon/angle-up-fill.js +481 -1
  40. package/lib/icon/angle-up.js +481 -1
  41. package/lib/icon/archive-fill.js +481 -1
  42. package/lib/icon/arrows-left.js +481 -1
  43. package/lib/icon/arrows-right.js +481 -1
  44. package/lib/icon/assistant.js +481 -1
  45. package/lib/icon/audio-fill.js +481 -1
  46. package/lib/icon/bk.js +481 -1
  47. package/lib/icon/circle.js +481 -1
  48. package/lib/icon/close-line.js +481 -1
  49. package/lib/icon/close.js +481 -1
  50. package/lib/icon/code.js +481 -1
  51. package/lib/icon/cog-shape.js +481 -1
  52. package/lib/icon/collapse-left.js +481 -1
  53. package/lib/icon/copy-shape.js +481 -1
  54. package/lib/icon/copy.js +481 -1
  55. package/lib/icon/data-shape.js +481 -1
  56. package/lib/icon/del.js +481 -1
  57. package/lib/icon/doc-fill.js +481 -1
  58. package/lib/icon/done.js +481 -1
  59. package/lib/icon/down-shape.js +481 -1
  60. package/lib/icon/down-small.js +481 -1
  61. package/lib/icon/edit-line.js +481 -1
  62. package/lib/icon/ellipsis.js +481 -1
  63. package/lib/icon/enlarge-line.js +481 -1
  64. package/lib/icon/error.js +481 -1
  65. package/lib/icon/excel-fill.js +481 -1
  66. package/lib/icon/exclamation-circle-shape.js +481 -1
  67. package/lib/icon/eye.js +481 -1
  68. package/lib/icon/filliscreen-line.js +481 -1
  69. package/lib/icon/fix-line.js +481 -1
  70. package/lib/icon/fix-shape.js +481 -1
  71. package/lib/icon/folder-open.js +481 -1
  72. package/lib/icon/folder-shape-open.js +481 -1
  73. package/lib/icon/folder-shape.js +481 -1
  74. package/lib/icon/folder.js +481 -1
  75. package/lib/icon/funnel.js +481 -1
  76. package/lib/icon/help-document-fill.js +481 -1
  77. package/lib/icon/help-fill.js +481 -1
  78. package/lib/icon/help.js +481 -1
  79. package/lib/icon/image-fill.js +527 -1
  80. package/lib/icon/img-error.js +527 -1
  81. package/lib/icon/img-placehoulder.js +527 -1
  82. package/lib/icon/index.js +2367 -1
  83. package/lib/icon/info-line.js +527 -1
  84. package/lib/icon/info.js +527 -1
  85. package/lib/icon/left-shape.js +527 -1
  86. package/lib/icon/left-turn-line.js +527 -1
  87. package/lib/icon/narrow-line.js +527 -1
  88. package/lib/icon/original.js +527 -1
  89. package/lib/icon/pdf-fill.js +527 -1
  90. package/lib/icon/play-shape.js +527 -1
  91. package/lib/icon/plus.js +527 -1
  92. package/lib/icon/ppt-fill.js +527 -1
  93. package/lib/icon/qq.js +527 -1
  94. package/lib/icon/right-shape.js +527 -1
  95. package/lib/icon/right-turn-line.js +527 -1
  96. package/lib/icon/search.js +527 -1
  97. package/lib/icon/share.js +527 -1
  98. package/lib/icon/spinner.js +527 -1
  99. package/lib/icon/success.js +527 -1
  100. package/lib/icon/switcher-loading.js +527 -1
  101. package/lib/icon/text-file.js +527 -1
  102. package/lib/icon/text-fill.js +527 -1
  103. package/lib/icon/transfer.js +527 -1
  104. package/lib/icon/tree-application-shape.js +527 -1
  105. package/lib/icon/unfull-screen.js +527 -1
  106. package/lib/icon/unvisible.js +527 -1
  107. package/lib/icon/up-shape.js +527 -1
  108. package/lib/icon/upload.js +527 -1
  109. package/lib/icon/video-fill.js +527 -1
  110. package/lib/icon/warn.js +527 -1
  111. package/lib/icon/weixin-pro.js +527 -1
  112. package/lib/icon/weixin.js +527 -1
  113. package/lib/image/index.js +593 -1
  114. package/lib/index.js +97 -1
  115. package/lib/info-box/index.js +1456 -2
  116. package/lib/input/index.js +1528 -2
  117. package/lib/link/index.js +160 -1
  118. package/lib/loading/index.js +379 -1
  119. package/lib/locale/index.js +465 -1
  120. package/lib/menu/index.js +725 -1
  121. package/lib/message/index.js +1790 -2
  122. package/lib/modal/index.js +337 -1
  123. package/lib/navigation/index.js +367 -1
  124. package/lib/notify/index.js +394 -1
  125. package/lib/overflow-title/index.js +485 -1
  126. package/lib/pagination/index.js +880 -1
  127. package/lib/plugin-popover/index.js +4067 -1
  128. package/lib/plugins/index.js +63 -1
  129. package/lib/pop-confirm/index.js +273 -1
  130. package/lib/popover/index.js +4075 -1
  131. package/lib/popover2/index.js +107 -1
  132. package/lib/preset.js +93 -1
  133. package/lib/process/index.js +1099 -2
  134. package/lib/progress/index.js +428 -1
  135. package/lib/radio/index.js +627 -1
  136. package/lib/rate/index.js +338 -1
  137. package/lib/resize-layout/index.js +430 -1
  138. package/lib/search-select/index.js +3036 -2
  139. package/lib/select/index.js +2571 -2
  140. package/lib/shared/index.js +2865 -1
  141. package/lib/sideslider/index.js +1005 -2
  142. package/lib/slider/index.js +1629 -2
  143. package/lib/steps/index.js +1163 -2
  144. package/lib/swiper/index.js +336 -1
  145. package/lib/switcher/index.js +277 -1
  146. package/lib/tab/index.js +859 -1
  147. package/lib/table/index.js +6568 -1
  148. package/lib/table-column/index.js +730 -1
  149. package/lib/tag/index.js +233 -1
  150. package/lib/tag-input/index.js +1652 -1
  151. package/lib/time-picker/index.js +71 -1
  152. package/lib/timeline/index.js +242 -1
  153. package/lib/transfer/index.js +673 -1
  154. package/lib/tree/index.js +2625 -1
  155. package/lib/upload/index.js +3193 -2
  156. package/lib/virtual-render/index.js +748 -1
  157. package/package.json +2 -1
  158. package/lib/cascader/index.js.LICENSE.txt +0 -1
  159. package/lib/dialog/index.js.LICENSE.txt +0 -1
  160. package/lib/directives/index.js.LICENSE.txt +0 -14
  161. package/lib/info-box/index.js.LICENSE.txt +0 -1
  162. package/lib/input/index.js.LICENSE.txt +0 -1
  163. package/lib/message/index.js.LICENSE.txt +0 -6
  164. package/lib/process/index.js.LICENSE.txt +0 -1
  165. package/lib/search-select/index.js.LICENSE.txt +0 -1
  166. package/lib/select/index.js.LICENSE.txt +0 -1
  167. package/lib/sideslider/index.js.LICENSE.txt +0 -1
  168. package/lib/slider/index.js.LICENSE.txt +0 -1
  169. package/lib/steps/index.js.LICENSE.txt +0 -1
  170. package/lib/upload/index.js.LICENSE.txt +0 -1
@@ -1 +1,317 @@
1
- !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("lodash"),require("../locale"));else if("function"==typeof define&&define.amd)define(["../shared","vue","lodash","../locale"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("lodash"),require("../locale")):r(e["../shared"],e.vue,e.lodash,e["../locale"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t,o)=>(()=>{"use strict";var n={5684:e=>{e.exports=o},4212:r=>{r.exports=e},467:e=>{e.exports=t},748:e=>{e.exports=r}},i={};function u(e){var r=i[e];if(void 0!==r)return r.exports;var t=i[e]={exports:{}};return n[e](t,t.exports,u),t.exports}u.d=(e,r)=>{for(var t in r)u.o(r,t)&&!u.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},u.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{u.r(a),u.d(a,{default:()=>x,defaultRootConfig:()=>i,provideGlobalConfig:()=>f,rootProviderKey:()=>n,setPrefixVariable:()=>c,useGlobalConfig:()=>l,useLocale:()=>d,usePrefix:()=>v});var e=u(4212),r=u(748),t=u(467),o=u(5684),n=Symbol("rootProviderData"),i={locale:o.zhCn,prefix:"bk"},c=function(e){document.documentElement.style.setProperty("--bk-prefix",e||i.prefix)},f=function(e){var o=(0,r.reactive)(Object.assign({},(0,t.merge)(i,e)));c(e.prefix),Object.keys(e).forEach((function(t){(0,r.watch)((function(){return e[t]}),(function(){"prefix"===t&&c(e[t]),o[t]=e[t]}))})),(0,r.provide)(n,o)},l=function(){var e=(0,r.inject)(n,i);return(0,r.computed)((function(){return e}))},p={locale:{type:Object},prefix:{type:String,default:"bk"}};const s=(0,r.defineComponent)({name:"ConfigProvider",inheritAttrs:!1,props:p,setup:function(e,r){var t=r.slots;return f(e),function(){var e;return null===(e=t.default)||void 0===e?void 0:e.call(t)}}});function d(e){var t=(0,r.inject)(n,i);return(0,r.computed)((function(){var r=t.locale;return r&&e?r[e]:{}}))}function v(){var e=(0,r.inject)(n,i),t=(0,r.computed)((function(){return e.prefix||""}));return{prefix:t,resolveClassName:function(e){return"".concat(t.value,"-").concat(e.replace(new RegExp("^".concat(i.prefix,"-")),""))}}}const x=(0,e.withInstall)(s)})(),a})()));
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_lodash__ from "lodash";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__locale_21891707__ from "../locale";
5
+ /******/ // The require scope
6
+ /******/ var __webpack_require__ = {};
7
+ /******/
8
+ /************************************************************************/
9
+ /******/ /* webpack/runtime/define property getters */
10
+ /******/ (() => {
11
+ /******/ // define getter functions for harmony exports
12
+ /******/ __webpack_require__.d = (exports, definition) => {
13
+ /******/ for(var key in definition) {
14
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
15
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
16
+ /******/ }
17
+ /******/ }
18
+ /******/ };
19
+ /******/ })();
20
+ /******/
21
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
22
+ /******/ (() => {
23
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
24
+ /******/ })();
25
+ /******/
26
+ /************************************************************************/
27
+ var __webpack_exports__ = {};
28
+
29
+ // EXPORTS
30
+ __webpack_require__.d(__webpack_exports__, {
31
+ ZP: () => (/* binding */ src),
32
+ uE: () => (/* reexport */ defaultRootConfig),
33
+ AR: () => (/* reexport */ provideGlobalConfig),
34
+ F1: () => (/* reexport */ rootProviderKey),
35
+ hv: () => (/* reexport */ setPrefixVariable),
36
+ WS: () => (/* reexport */ useGlobalConfig),
37
+ bU: () => (/* reexport */ useLocale),
38
+ AK: () => (/* reexport */ usePrefix)
39
+ });
40
+
41
+ ;// CONCATENATED MODULE: external "../shared"
42
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
43
+ var y = x => () => x
44
+ const external_shared_namespaceObject = x({ ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
45
+ ;// CONCATENATED MODULE: external "vue"
46
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
47
+ var external_vue_y = x => () => x
48
+ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
49
+ ;// CONCATENATED MODULE: external "lodash"
50
+ var external_lodash_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
51
+ var external_lodash_y = x => () => x
52
+ const external_lodash_namespaceObject = external_lodash_x({ ["merge"]: () => __WEBPACK_EXTERNAL_MODULE_lodash__.merge });
53
+ ;// CONCATENATED MODULE: external "../locale"
54
+ var external_locale_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
55
+ var external_locale_y = x => () => x
56
+ const external_locale_namespaceObject = external_locale_x({ ["zhCn"]: () => __WEBPACK_EXTERNAL_MODULE__locale_21891707__.zhCn });
57
+ ;// CONCATENATED MODULE: ../../packages/config-provider/src/token.ts
58
+ /*
59
+ * Tencent is pleased to support the open source community by making
60
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
61
+ *
62
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
63
+ *
64
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
65
+ *
66
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
67
+ *
68
+ * ---------------------------------------------------
69
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
70
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
71
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
72
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
73
+ *
74
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
75
+ * the Software.
76
+ *
77
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
78
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
79
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
80
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
81
+ * IN THE SOFTWARE.
82
+ */
83
+
84
+ var rootProviderKey = Symbol('rootProviderData');
85
+ var defaultRootConfig = {
86
+ locale: external_locale_namespaceObject.zhCn,
87
+ prefix: 'bk'
88
+ };
89
+ ;// CONCATENATED MODULE: ../../packages/config-provider/src/use-global-config.ts
90
+ /*
91
+ * Tencent is pleased to support the open source community by making
92
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
93
+ *
94
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
95
+ *
96
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
97
+ *
98
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
99
+ *
100
+ * ---------------------------------------------------
101
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
102
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
103
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
104
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
105
+ *
106
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
107
+ * the Software.
108
+ *
109
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
110
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
111
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
112
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
113
+ * IN THE SOFTWARE.
114
+ */
115
+
116
+
117
+
118
+
119
+ var setPrefixVariable = function setPrefixVariable(prefix) {
120
+ document.documentElement.style.setProperty('--bk-prefix', prefix || defaultRootConfig.prefix);
121
+ };
122
+ var provideGlobalConfig = function provideGlobalConfig(config) {
123
+ var configData = (0,external_vue_namespaceObject.reactive)(Object.assign({}, (0,external_lodash_namespaceObject.merge)(defaultRootConfig, config)));
124
+ setPrefixVariable(config.prefix);
125
+ Object.keys(config).forEach(function (key) {
126
+ (0,external_vue_namespaceObject.watch)(function () {
127
+ return config[key];
128
+ }, function () {
129
+ if (key === 'prefix') setPrefixVariable(config[key]);
130
+ configData[key] = config[key];
131
+ });
132
+ });
133
+ (0,external_vue_namespaceObject.provide)(rootProviderKey, configData);
134
+ };
135
+ var useGlobalConfig = function useGlobalConfig() {
136
+ var config = (0,external_vue_namespaceObject.inject)(rootProviderKey, defaultRootConfig);
137
+ return (0,external_vue_namespaceObject.computed)(function () {
138
+ return config;
139
+ });
140
+ };
141
+ ;// CONCATENATED MODULE: ../../packages/config-provider/src/config-provider.tsx
142
+ /*
143
+ * Tencent is pleased to support the open source community by making
144
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
145
+ *
146
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
147
+ *
148
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
149
+ *
150
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
151
+ *
152
+ * ---------------------------------------------------
153
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
154
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
155
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
156
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
157
+ *
158
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
159
+ * the Software.
160
+ *
161
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
162
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
163
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
164
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
165
+ * IN THE SOFTWARE.
166
+ */
167
+
168
+
169
+ var configProviderProps = {
170
+ locale: {
171
+ type: Object
172
+ },
173
+ prefix: {
174
+ // 组件前缀
175
+ type: String,
176
+ "default": 'bk'
177
+ }
178
+ };
179
+ /* harmony default export */ const config_provider = ((0,external_vue_namespaceObject.defineComponent)({
180
+ name: 'ConfigProvider',
181
+ inheritAttrs: false,
182
+ props: configProviderProps,
183
+ setup: function setup(props, _ref) {
184
+ var slots = _ref.slots;
185
+ provideGlobalConfig(props);
186
+ return function () {
187
+ var _a;
188
+ return (_a = slots["default"]) === null || _a === void 0 ? void 0 : _a.call(slots);
189
+ };
190
+ }
191
+ }));
192
+ ;// CONCATENATED MODULE: ../../packages/config-provider/src/use-locale.ts
193
+ /*
194
+ * Tencent is pleased to support the open source community by making
195
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
196
+ *
197
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
198
+ *
199
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
200
+ *
201
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
202
+ *
203
+ * ---------------------------------------------------
204
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
205
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
206
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
207
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
208
+ *
209
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
210
+ * the Software.
211
+ *
212
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
213
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
214
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
215
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
216
+ * IN THE SOFTWARE.
217
+ */
218
+
219
+
220
+ function useLocale(compName) {
221
+ var config = (0,external_vue_namespaceObject.inject)(rootProviderKey, defaultRootConfig);
222
+ return (0,external_vue_namespaceObject.computed)(function () {
223
+ var locale = config.locale;
224
+ // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
225
+ return locale && compName ? locale[compName] : {};
226
+ });
227
+ }
228
+ ;// CONCATENATED MODULE: ../../packages/config-provider/src/use-prefix.ts
229
+ /*
230
+ * Tencent is pleased to support the open source community by making
231
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
232
+ *
233
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
234
+ *
235
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
236
+ *
237
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
238
+ *
239
+ * ---------------------------------------------------
240
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
241
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
242
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
243
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
244
+ *
245
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
246
+ * the Software.
247
+ *
248
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
249
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
250
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
251
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
252
+ * IN THE SOFTWARE.
253
+ */
254
+
255
+
256
+
257
+ /**
258
+ *
259
+ * @returns 组件前缀
260
+ * @description 获取组件前缀
261
+ */
262
+ function usePrefix() {
263
+ var config = (0,external_vue_namespaceObject.inject)(rootProviderKey, defaultRootConfig);
264
+ var prefix = (0,external_vue_namespaceObject.computed)(function () {
265
+ var prefix = config.prefix;
266
+ return prefix || '';
267
+ });
268
+ function resolveClassName(cls) {
269
+ return "".concat(prefix.value, "-").concat(cls.replace(new RegExp("^".concat(defaultRootConfig.prefix, "-")), ''));
270
+ }
271
+ return {
272
+ prefix: prefix,
273
+ resolveClassName: resolveClassName
274
+ };
275
+ }
276
+ ;// CONCATENATED MODULE: ../../packages/config-provider/src/index.ts
277
+ /**
278
+ * Tencent is pleased to support the open source community by making
279
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
280
+ *
281
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
282
+ *
283
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
284
+ *
285
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
286
+ *
287
+ * ---------------------------------------------------
288
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
289
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
290
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
291
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
292
+ *
293
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
294
+ * the Software.
295
+ *
296
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
297
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
298
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
299
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
300
+ * IN THE SOFTWARE.
301
+ */
302
+
303
+
304
+ var BkConfigProvider = (0,external_shared_namespaceObject.withInstall)(config_provider);
305
+ /* harmony default export */ const src = (BkConfigProvider);
306
+
307
+
308
+
309
+ var __webpack_exports__default = __webpack_exports__.ZP;
310
+ var __webpack_exports__defaultRootConfig = __webpack_exports__.uE;
311
+ var __webpack_exports__provideGlobalConfig = __webpack_exports__.AR;
312
+ var __webpack_exports__rootProviderKey = __webpack_exports__.F1;
313
+ var __webpack_exports__setPrefixVariable = __webpack_exports__.hv;
314
+ var __webpack_exports__useGlobalConfig = __webpack_exports__.WS;
315
+ var __webpack_exports__useLocale = __webpack_exports__.bU;
316
+ var __webpack_exports__usePrefix = __webpack_exports__.AK;
317
+ export { __webpack_exports__default as default, __webpack_exports__defaultRootConfig as defaultRootConfig, __webpack_exports__provideGlobalConfig as provideGlobalConfig, __webpack_exports__rootProviderKey as rootProviderKey, __webpack_exports__setPrefixVariable as setPrefixVariable, __webpack_exports__useGlobalConfig as useGlobalConfig, __webpack_exports__useLocale as useLocale, __webpack_exports__usePrefix as usePrefix };