bkui-vue 0.0.2-beta.82 → 0.0.2-beta.84

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 (180) hide show
  1. package/dist/index.cjs.js +135 -161
  2. package/dist/index.esm.js +16449 -19088
  3. package/dist/index.umd.js +135 -161
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +321 -1
  7. package/lib/alert/index.js +214 -1
  8. package/lib/animate-number/index.js +155 -1
  9. package/lib/backtop/index.js +188 -1
  10. package/lib/badge/index.js +235 -1
  11. package/lib/breadcrumb/index.js +309 -1
  12. package/lib/button/index.js +321 -1
  13. package/lib/card/index.js +285 -1
  14. package/lib/cascader/index.js +2036 -2
  15. package/lib/checkbox/index.js +542 -1
  16. package/lib/code-diff/index.js +5501 -1
  17. package/lib/collapse/index.js +570 -1
  18. package/lib/collapse-transition/index.js +177 -1
  19. package/lib/color-picker/index.js +2665 -1
  20. package/lib/components.js +530 -1
  21. package/lib/config-provider/index.js +365 -1
  22. package/lib/container/index.js +391 -1
  23. package/lib/date-picker/index.js +5555 -1
  24. package/lib/dialog/index.js +975 -2
  25. package/lib/directives/index.js +1375 -2
  26. package/lib/dist.index.js +87 -1
  27. package/lib/divider/index.js +169 -1
  28. package/lib/dropdown/index.js +369 -1
  29. package/lib/exception/index.js +385 -1
  30. package/lib/fixed-navbar/index.js +154 -1
  31. package/lib/form/index.js +952 -1
  32. package/lib/hooks.js +73 -1
  33. package/lib/icon/angle-double-down-line.js +191 -1
  34. package/lib/icon/angle-double-left-line.js +191 -1
  35. package/lib/icon/angle-double-left.js +191 -1
  36. package/lib/icon/angle-double-right-line.js +191 -1
  37. package/lib/icon/angle-double-right.js +191 -1
  38. package/lib/icon/angle-double-up-line.js +191 -1
  39. package/lib/icon/angle-down-fill.js +191 -1
  40. package/lib/icon/angle-down-line.js +191 -1
  41. package/lib/icon/angle-down.js +191 -1
  42. package/lib/icon/angle-left.js +191 -1
  43. package/lib/icon/angle-right.js +191 -1
  44. package/lib/icon/angle-up-fill.js +191 -1
  45. package/lib/icon/angle-up.js +191 -1
  46. package/lib/icon/archive-fill.js +191 -1
  47. package/lib/icon/arrows-left.js +191 -1
  48. package/lib/icon/arrows-right.js +191 -1
  49. package/lib/icon/assistant.js +191 -1
  50. package/lib/icon/audio-fill.js +191 -1
  51. package/lib/icon/bk.js +191 -1
  52. package/lib/icon/circle.js +191 -1
  53. package/lib/icon/close-line.js +191 -1
  54. package/lib/icon/close.js +191 -1
  55. package/lib/icon/code.js +191 -1
  56. package/lib/icon/cog-shape.js +191 -1
  57. package/lib/icon/collapse-left.js +191 -1
  58. package/lib/icon/copy-shape.js +191 -1
  59. package/lib/icon/copy.js +191 -1
  60. package/lib/icon/data-shape.js +191 -1
  61. package/lib/icon/del.js +191 -1
  62. package/lib/icon/doc-fill.js +191 -1
  63. package/lib/icon/done.js +191 -1
  64. package/lib/icon/down-shape.js +191 -1
  65. package/lib/icon/down-small.js +191 -1
  66. package/lib/icon/edit-line.js +191 -1
  67. package/lib/icon/ellipsis.js +191 -1
  68. package/lib/icon/enlarge-line.js +191 -1
  69. package/lib/icon/error.js +191 -1
  70. package/lib/icon/excel-fill.js +191 -1
  71. package/lib/icon/exclamation-circle-shape.js +191 -1
  72. package/lib/icon/eye.js +191 -1
  73. package/lib/icon/filliscreen-line.js +191 -1
  74. package/lib/icon/fix-line.js +191 -1
  75. package/lib/icon/fix-shape.js +191 -1
  76. package/lib/icon/folder-open.js +191 -1
  77. package/lib/icon/folder-shape-open.js +191 -1
  78. package/lib/icon/folder-shape.js +191 -1
  79. package/lib/icon/folder.js +191 -1
  80. package/lib/icon/funnel.js +191 -1
  81. package/lib/icon/help-document-fill.js +191 -1
  82. package/lib/icon/help-fill.js +191 -1
  83. package/lib/icon/help.js +191 -1
  84. package/lib/icon/image-fill.js +276 -1
  85. package/lib/icon/img-error.js +276 -1
  86. package/lib/icon/img-placehoulder.js +276 -1
  87. package/lib/icon/index.js +2399 -1
  88. package/lib/icon/info-line.js +276 -1
  89. package/lib/icon/info.js +276 -1
  90. package/lib/icon/left-shape.js +276 -1
  91. package/lib/icon/left-turn-line.js +276 -1
  92. package/lib/icon/narrow-line.js +276 -1
  93. package/lib/icon/original.js +276 -1
  94. package/lib/icon/pdf-fill.js +276 -1
  95. package/lib/icon/play-shape.js +276 -1
  96. package/lib/icon/plus.js +276 -1
  97. package/lib/icon/ppt-fill.js +276 -1
  98. package/lib/icon/qq.js +276 -1
  99. package/lib/icon/right-shape.js +276 -1
  100. package/lib/icon/right-turn-line.js +276 -1
  101. package/lib/icon/search.js +276 -1
  102. package/lib/icon/share.js +276 -1
  103. package/lib/icon/spinner.js +276 -1
  104. package/lib/icon/success.js +276 -1
  105. package/lib/icon/switcher-loading.js +276 -1
  106. package/lib/icon/text-file.js +276 -1
  107. package/lib/icon/text-fill.js +276 -1
  108. package/lib/icon/transfer.js +276 -1
  109. package/lib/icon/tree-application-shape.js +276 -1
  110. package/lib/icon/unfull-screen.js +276 -1
  111. package/lib/icon/unvisible.js +276 -1
  112. package/lib/icon/up-shape.js +276 -1
  113. package/lib/icon/upload.js +276 -1
  114. package/lib/icon/video-fill.js +276 -1
  115. package/lib/icon/warn.js +276 -1
  116. package/lib/icon/weixin-pro.js +276 -1
  117. package/lib/icon/weixin.js +276 -1
  118. package/lib/image/index.js +641 -1
  119. package/lib/index.js +97 -1
  120. package/lib/info-box/index.js +1165 -2
  121. package/lib/input/index.js +1218 -2
  122. package/lib/link/index.js +160 -1
  123. package/lib/loading/index.js +381 -1
  124. package/lib/locale/index.js +465 -1
  125. package/lib/menu/index.js +724 -1
  126. package/lib/message/index.js +1795 -2
  127. package/lib/modal/index.js +396 -1
  128. package/lib/navigation/index.js +367 -1
  129. package/lib/notify/index.js +397 -1
  130. package/lib/overflow-title/index.js +461 -1
  131. package/lib/pagination/index.js +880 -1
  132. package/lib/plugin-popover/index.js +4089 -1
  133. package/lib/plugins/index.js +63 -1
  134. package/lib/pop-confirm/index.js +273 -1
  135. package/lib/popover/index.js +4097 -1
  136. package/lib/popover2/index.js +107 -1
  137. package/lib/preset.js +93 -1
  138. package/lib/process/index.js +759 -2
  139. package/lib/progress/index.js +431 -1
  140. package/lib/radio/index.js +627 -1
  141. package/lib/rate/index.js +338 -1
  142. package/lib/resize-layout/index.js +429 -1
  143. package/lib/search-select/index.js +2729 -2
  144. package/lib/search-select/search-select.css +1 -3
  145. package/lib/search-select/search-select.less +1 -3
  146. package/lib/search-select/search-select.variable.css +1 -3
  147. package/lib/select/index.js +2251 -2
  148. package/lib/shared/index.js +2873 -1
  149. package/lib/sideslider/index.js +714 -2
  150. package/lib/slider/index.js +1291 -2
  151. package/lib/steps/index.js +825 -2
  152. package/lib/swiper/index.js +336 -1
  153. package/lib/switcher/index.js +277 -1
  154. package/lib/tab/index.js +914 -1
  155. package/lib/table/index.js +6421 -1
  156. package/lib/table/plugins/use-column-resize.d.ts +1 -1
  157. package/lib/table-column/index.js +763 -1
  158. package/lib/tag/index.js +233 -1
  159. package/lib/tag-input/index.js +1660 -1
  160. package/lib/tag-input/tag-input.d.ts +2 -14
  161. package/lib/time-picker/index.js +71 -1
  162. package/lib/timeline/index.js +241 -1
  163. package/lib/transfer/index.js +673 -1
  164. package/lib/tree/index.js +2686 -1
  165. package/lib/upload/index.js +2874 -2
  166. package/lib/virtual-render/index.js +865 -1
  167. package/package.json +13 -2
  168. package/lib/cascader/index.js.LICENSE.txt +0 -1
  169. package/lib/dialog/index.js.LICENSE.txt +0 -1
  170. package/lib/directives/index.js.LICENSE.txt +0 -14
  171. package/lib/info-box/index.js.LICENSE.txt +0 -1
  172. package/lib/input/index.js.LICENSE.txt +0 -1
  173. package/lib/message/index.js.LICENSE.txt +0 -6
  174. package/lib/process/index.js.LICENSE.txt +0 -1
  175. package/lib/search-select/index.js.LICENSE.txt +0 -1
  176. package/lib/select/index.js.LICENSE.txt +0 -1
  177. package/lib/sideslider/index.js.LICENSE.txt +0 -1
  178. package/lib/slider/index.js.LICENSE.txt +0 -1
  179. package/lib/steps/index.js.LICENSE.txt +0 -1
  180. package/lib/upload/index.js.LICENSE.txt +0 -1
@@ -1 +1,63 @@
1
- import*as e from"../plugin-popover";var o={d:(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},r={};o.d(r,{k:()=>t.default});const t=(a={default:()=>e.default},p={},o.d(p,a),p);var a,p,d=r.k;export{d as $bkPopover};
1
+ import * as __WEBPACK_EXTERNAL_MODULE__plugin_popover_d49f5bb2__ from "../plugin-popover";
2
+ /******/ // The require scope
3
+ /******/ var __webpack_require__ = {};
4
+ /******/
5
+ /************************************************************************/
6
+ /******/ /* webpack/runtime/define property getters */
7
+ /******/ (() => {
8
+ /******/ // define getter functions for harmony exports
9
+ /******/ __webpack_require__.d = (exports, definition) => {
10
+ /******/ for(var key in definition) {
11
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
12
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
13
+ /******/ }
14
+ /******/ }
15
+ /******/ };
16
+ /******/ })();
17
+ /******/
18
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
19
+ /******/ (() => {
20
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
21
+ /******/ })();
22
+ /******/
23
+ /************************************************************************/
24
+ var __webpack_exports__ = {};
25
+
26
+ // EXPORTS
27
+ __webpack_require__.d(__webpack_exports__, {
28
+ k: () => (/* reexport */ external_plugin_popover_namespaceObject["default"])
29
+ });
30
+
31
+ ;// CONCATENATED MODULE: external "../plugin-popover"
32
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
33
+ var y = x => () => x
34
+ const external_plugin_popover_namespaceObject = x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__plugin_popover_d49f5bb2__["default"] });
35
+ ;// CONCATENATED MODULE: ../../packages/plugins/src/index.ts
36
+ /*
37
+ * Tencent is pleased to support the open source community by making
38
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
39
+ *
40
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
41
+ *
42
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
43
+ *
44
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
45
+ *
46
+ * ---------------------------------------------------
47
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
48
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
49
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
50
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
51
+ *
52
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
53
+ * the Software.
54
+ *
55
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
56
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
57
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
58
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
59
+ * IN THE SOFTWARE.
60
+ */
61
+
62
+ var __webpack_exports__$bkPopover = __webpack_exports__.k;
63
+ export { __webpack_exports__$bkPopover as $bkPopover };
@@ -1 +1,273 @@
1
- import*as e from"../shared";import*as t from"vue";import*as o from"../button";import*as n from"../config-provider";import*as r from"../popover";import*as a from"vue-types";var c={d:(e,t)=>{for(var o in t)c.o(t,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},p={};c.d(p,{Z:()=>g});const i=(s={PlacementEnum:()=>e.PlacementEnum,PropTypes:()=>e.PropTypes,placementType:()=>e.placementType,withInstall:()=>e.withInstall},f={},c.d(f,s),f);var s,f;const l=(e=>{var t={};return c.d(t,e),t})({Fragment:()=>t.Fragment,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,ref:()=>t.ref}),u=(e=>{var t={};return c.d(t,e),t})({default:()=>o.default}),d=(e=>{var t={};return c.d(t,e),t})({useLocale:()=>n.useLocale,usePrefix:()=>n.usePrefix}),m=(e=>{var t={};return c.d(t,e),t})({default:()=>r.default}),v=(e=>{var t={};return c.d(t,e),t})({toType:()=>a.toType});var y;!function(e){e.HOVER="hover",e.CLICK="click"}(y||(y={}));const P={trigger:(0,v.toType)("trigger",{}).def(y.HOVER),title:i.PropTypes.string.def(""),content:i.PropTypes.string.def(""),confirmText:i.PropTypes.string.def(""),cancelText:i.PropTypes.string.def(""),placement:i.PropTypes.oneOfType([(0,i.placementType)().def(i.PlacementEnum.TOP),i.PropTypes.string]).def(i.PlacementEnum.TOP),theme:i.PropTypes.string.def("light "),icon:i.PropTypes.string.def(""),width:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.number]).def("auto")},T=(0,l.defineComponent)({name:"PopConfirm",components:{BkPopover:m.default,BkButton:u.default},props:P,emits:["confirm","cancel"],setup:function(e,t){var o=t.emit,n=t.slots,r=(0,l.ref)(!1),a=(0,d.useLocale)("popConfirm");function c(e){r.value=!1,o("confirm"),e.stopPropagation()}function p(e){r.value=!1,o("cancel"),e.stopPropagation()}var i="function"==typeof n.icon?n.icon():e.icon,s=(0,d.usePrefix)().resolveClassName;return function(){return(0,l.createVNode)(m.default,{isShow:r.value,trigger:e.trigger,theme:e.theme,width:e.width,onAfterShow:function(){return r.value=!0},extCls:"".concat(s("pop-confirm-box"))},{default:function(){return n.default()},content:function(){return(0,l.createVNode)("div",{class:"".concat(s("pop-confirm"))},["function"==typeof n.content?n.content():(0,l.createVNode)(l.Fragment,null,[e.title?(0,l.createVNode)("div",{class:"".concat(s("pop-confirm-title"))},[i?(0,l.createVNode)("span",{class:"".concat(s("pop-confirm-icon"))},[i]):"",(0,l.createVNode)("span",null,[e.title])]):"",(0,l.createVNode)("div",{class:"".concat(s("pop-confirm-content"))},[e.title?"":i,e.content])]),(0,l.createVNode)("div",{class:"".concat(s("pop-confirm-footer"))},[(0,l.createVNode)(u.default,{onClick:c,size:"small",theme:"primary"},{default:function(){return[a.value.ok]}}),(0,l.createVNode)(u.default,{onClick:p,size:"small"},{default:function(){return[a.value.cancel]}})])])}})}}}),g=(0,i.withInstall)(T);var h=p.Z;export{h as default};
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__button_59c00871__ from "../button";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__ from "../popover";
6
+ import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
7
+ /******/ // The require scope
8
+ /******/ var __webpack_require__ = {};
9
+ /******/
10
+ /************************************************************************/
11
+ /******/ /* webpack/runtime/define property getters */
12
+ /******/ (() => {
13
+ /******/ // define getter functions for harmony exports
14
+ /******/ __webpack_require__.d = (exports, definition) => {
15
+ /******/ for(var key in definition) {
16
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
17
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
18
+ /******/ }
19
+ /******/ }
20
+ /******/ };
21
+ /******/ })();
22
+ /******/
23
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
24
+ /******/ (() => {
25
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
26
+ /******/ })();
27
+ /******/
28
+ /************************************************************************/
29
+ var __webpack_exports__ = {};
30
+
31
+ // EXPORTS
32
+ __webpack_require__.d(__webpack_exports__, {
33
+ Z: () => (/* binding */ src)
34
+ });
35
+
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({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.placementType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
40
+ ;// CONCATENATED MODULE: external "vue"
41
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
42
+ var external_vue_y = x => () => x
43
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
44
+ ;// CONCATENATED MODULE: external "../button"
45
+ var external_button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
46
+ var external_button_y = x => () => x
47
+ const external_button_namespaceObject = external_button_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__button_59c00871__["default"] });
48
+ ;// CONCATENATED MODULE: external "../config-provider"
49
+ var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
50
+ var external_config_provider_y = x => () => x
51
+ const external_config_provider_namespaceObject = external_config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
52
+ ;// CONCATENATED MODULE: external "../popover"
53
+ var external_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
54
+ var external_popover_y = x => () => x
55
+ const external_popover_namespaceObject = external_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__["default"] });
56
+ ;// CONCATENATED MODULE: external "vue-types"
57
+ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
58
+ var external_vue_types_y = x => () => x
59
+ const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
60
+ ;// CONCATENATED MODULE: ../../packages/pop-confirm/src/props.ts
61
+ /*
62
+ * Tencent is pleased to support the open source community by making
63
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
64
+ *
65
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
66
+ *
67
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
68
+ *
69
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
70
+ *
71
+ * ---------------------------------------------------
72
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
73
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
74
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
75
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
76
+ *
77
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
78
+ * the Software.
79
+ *
80
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
81
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
82
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
83
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
84
+ * IN THE SOFTWARE.
85
+ */
86
+
87
+
88
+ var TriggerEnum;
89
+ (function (TriggerEnum) {
90
+ TriggerEnum["HOVER"] = "hover";
91
+ TriggerEnum["CLICK"] = "click";
92
+ })(TriggerEnum || (TriggerEnum = {}));
93
+ function triggerType() {
94
+ return (0,external_vue_types_namespaceObject.toType)('trigger', {}).def(TriggerEnum.HOVER);
95
+ }
96
+ var PopConfirmEvent = {
97
+ confirm: {
98
+ type: Function,
99
+ "default": function _default() {
100
+ return {};
101
+ }
102
+ },
103
+ cancel: {
104
+ type: Function,
105
+ "default": function _default() {
106
+ return {};
107
+ }
108
+ }
109
+ // ...TabNavEventProps,
110
+ };
111
+
112
+ var PopConfirmProps = {
113
+ /**
114
+ * 触发方式
115
+ * 支持 click hover manual
116
+ * manual: 通过isShow控制显示、隐藏
117
+ */
118
+ trigger: triggerType(),
119
+ title: external_shared_namespaceObject.PropTypes.string.def(''),
120
+ content: external_shared_namespaceObject.PropTypes.string.def(''),
121
+ confirmText: external_shared_namespaceObject.PropTypes.string.def(''),
122
+ cancelText: external_shared_namespaceObject.PropTypes.string.def(''),
123
+ placement: external_shared_namespaceObject.PropTypes.oneOfType([(0,external_shared_namespaceObject.placementType)().def(external_shared_namespaceObject.PlacementEnum.TOP), external_shared_namespaceObject.PropTypes.string]).def(external_shared_namespaceObject.PlacementEnum.TOP),
124
+ theme: external_shared_namespaceObject.PropTypes.string.def('light '),
125
+ /**
126
+ * 自定义icon:根据确认框中提示文字的语境来选择 icon的样式,当确认操作存在风险时,可选择带警示的icon来引起用户的注意。
127
+ */
128
+ icon: external_shared_namespaceObject.PropTypes.string.def(''),
129
+ width: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto')
130
+ };
131
+ /* harmony default export */ const props = (PopConfirmProps);
132
+ ;// CONCATENATED MODULE: ../../packages/pop-confirm/src/pop-confirm.tsx
133
+
134
+ /*
135
+ * Tencent is pleased to support the open source community by making
136
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
137
+ *
138
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
139
+ *
140
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
141
+ *
142
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
143
+ *
144
+ * ---------------------------------------------------
145
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
146
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
147
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
148
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
149
+ *
150
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
151
+ * the Software.
152
+ *
153
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
154
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
155
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
156
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
157
+ * IN THE SOFTWARE.
158
+ */
159
+
160
+
161
+
162
+
163
+
164
+ /* harmony default export */ const pop_confirm = ((0,external_vue_namespaceObject.defineComponent)({
165
+ name: 'PopConfirm',
166
+ components: {
167
+ BkPopover: external_popover_namespaceObject["default"],
168
+ BkButton: external_button_namespaceObject["default"]
169
+ },
170
+ props: props,
171
+ emits: ['confirm', 'cancel'],
172
+ setup: function setup(props, _ref) {
173
+ var emit = _ref.emit,
174
+ slots = _ref.slots;
175
+ var visible = (0,external_vue_namespaceObject.ref)(false);
176
+ var t = (0,external_config_provider_namespaceObject.useLocale)('popConfirm');
177
+ function ensure(e) {
178
+ visible.value = false;
179
+ emit('confirm');
180
+ e.stopPropagation();
181
+ }
182
+ function cancel(e) {
183
+ visible.value = false;
184
+ emit('cancel');
185
+ e.stopPropagation();
186
+ }
187
+ function renderIcon() {
188
+ if (typeof slots.icon === 'function') {
189
+ return slots.icon();
190
+ }
191
+ return props.icon;
192
+ }
193
+ var icon = renderIcon();
194
+ var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
195
+ resolveClassName = _usePrefix.resolveClassName;
196
+ return function () {
197
+ return (0,external_vue_namespaceObject.createVNode)(external_popover_namespaceObject["default"], {
198
+ "isShow": visible.value,
199
+ "trigger": props.trigger,
200
+ "theme": props.theme,
201
+ "width": props.width,
202
+ "onAfterShow": function onAfterShow() {
203
+ return visible.value = true;
204
+ },
205
+ "extCls": "".concat(resolveClassName('pop-confirm-box'))
206
+ }, {
207
+ "default": function _default() {
208
+ return slots["default"]();
209
+ },
210
+ content: function content() {
211
+ return (0,external_vue_namespaceObject.createVNode)("div", {
212
+ "class": "".concat(resolveClassName('pop-confirm'))
213
+ }, [typeof slots.content === 'function' ? slots.content() : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [props.title ? (0,external_vue_namespaceObject.createVNode)("div", {
214
+ "class": "".concat(resolveClassName('pop-confirm-title'))
215
+ }, [icon ? (0,external_vue_namespaceObject.createVNode)("span", {
216
+ "class": "".concat(resolveClassName('pop-confirm-icon'))
217
+ }, [icon]) : '', (0,external_vue_namespaceObject.createVNode)("span", null, [props.title])]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
218
+ "class": "".concat(resolveClassName('pop-confirm-content'))
219
+ }, [!props.title ? icon : '', props.content])]), (0,external_vue_namespaceObject.createVNode)("div", {
220
+ "class": "".concat(resolveClassName('pop-confirm-footer'))
221
+ }, [(0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
222
+ "onClick": ensure,
223
+ "size": "small",
224
+ "theme": "primary"
225
+ }, {
226
+ "default": function _default() {
227
+ return [t.value.ok];
228
+ }
229
+ }), (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
230
+ "onClick": cancel,
231
+ "size": "small"
232
+ }, {
233
+ "default": function _default() {
234
+ return [t.value.cancel];
235
+ }
236
+ })])]);
237
+ }
238
+ });
239
+ };
240
+ }
241
+ }));
242
+ ;// CONCATENATED MODULE: ../../packages/pop-confirm/src/index.ts
243
+ /*
244
+ * Tencent is pleased to support the open source community by making
245
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
246
+ *
247
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
248
+ *
249
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
250
+ *
251
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
252
+ *
253
+ * ---------------------------------------------------
254
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
255
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
256
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
257
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
258
+ *
259
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
260
+ * the Software.
261
+ *
262
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
263
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
264
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
265
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
266
+ * IN THE SOFTWARE.
267
+ */
268
+
269
+
270
+ var BKPopConfirm = (0,external_shared_namespaceObject.withInstall)(pop_confirm);
271
+ /* harmony default export */ const src = (BKPopConfirm);
272
+ var __webpack_exports__default = __webpack_exports__.Z;
273
+ export { __webpack_exports__default as default };