bkui-vue 0.0.2-beta.71 → 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 (208) hide show
  1. package/dist/index.cjs.js +2 -2
  2. package/dist/index.esm.js +10 -7
  3. package/dist/index.umd.js +2 -2
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +319 -1
  7. package/lib/alert/index.js +215 -1
  8. package/lib/animate-number/index.js +155 -1
  9. package/lib/backtop/backtop.css +8 -8
  10. package/lib/backtop/backtop.less +3 -1
  11. package/lib/backtop/backtop.variable.css +8 -8
  12. package/lib/backtop/index.js +188 -1
  13. package/lib/badge/index.js +236 -1
  14. package/lib/breadcrumb/breadcrumb.css +4 -4
  15. package/lib/breadcrumb/breadcrumb.variable.css +4 -4
  16. package/lib/breadcrumb/index.js +309 -1
  17. package/lib/button/index.js +321 -1
  18. package/lib/card/card.css +4 -4
  19. package/lib/card/card.variable.css +4 -4
  20. package/lib/card/index.js +274 -1
  21. package/lib/cascader/cascader.css +4 -4
  22. package/lib/cascader/cascader.variable.css +4 -4
  23. package/lib/cascader/index.js +2019 -2
  24. package/lib/checkbox/index.js +542 -1
  25. package/lib/code-diff/index.js +5501 -1
  26. package/lib/collapse/index.js +518 -1
  27. package/lib/collapse-transition/index.js +178 -1
  28. package/lib/color-picker/index.js +2662 -1
  29. package/lib/components.js +530 -1
  30. package/lib/config-provider/index.js +317 -1
  31. package/lib/container/container.css +4 -4
  32. package/lib/container/container.variable.css +4 -4
  33. package/lib/container/index.js +343 -1
  34. package/lib/date-picker/index.js +5481 -1
  35. package/lib/dialog/index.js +1266 -2
  36. package/lib/directives/index.js +1335 -2
  37. package/lib/dist.index.js +87 -1
  38. package/lib/divider/index.js +169 -1
  39. package/lib/dropdown/index.js +369 -1
  40. package/lib/exception/index.js +385 -1
  41. package/lib/fixed-navbar/index.js +154 -1
  42. package/lib/form/index.js +918 -1
  43. package/lib/hooks.js +73 -1
  44. package/lib/icon/angle-double-down-line.js +481 -1
  45. package/lib/icon/angle-double-left-line.js +481 -1
  46. package/lib/icon/angle-double-left.js +481 -1
  47. package/lib/icon/angle-double-right-line.js +481 -1
  48. package/lib/icon/angle-double-right.js +481 -1
  49. package/lib/icon/angle-double-up-line.js +481 -1
  50. package/lib/icon/angle-down-fill.js +481 -1
  51. package/lib/icon/angle-down-line.js +481 -1
  52. package/lib/icon/angle-down.js +481 -1
  53. package/lib/icon/angle-left.js +481 -1
  54. package/lib/icon/angle-right.js +481 -1
  55. package/lib/icon/angle-up-fill.js +481 -1
  56. package/lib/icon/angle-up.js +481 -1
  57. package/lib/icon/archive-fill.js +481 -1
  58. package/lib/icon/arrows-left.js +481 -1
  59. package/lib/icon/arrows-right.js +481 -1
  60. package/lib/icon/assistant.js +481 -1
  61. package/lib/icon/audio-fill.js +481 -1
  62. package/lib/icon/bk.js +481 -1
  63. package/lib/icon/circle.js +481 -1
  64. package/lib/icon/close-line.js +481 -1
  65. package/lib/icon/close.js +481 -1
  66. package/lib/icon/code.js +481 -1
  67. package/lib/icon/cog-shape.js +481 -1
  68. package/lib/icon/collapse-left.js +481 -1
  69. package/lib/icon/copy-shape.js +481 -1
  70. package/lib/icon/copy.js +481 -1
  71. package/lib/icon/data-shape.js +481 -1
  72. package/lib/icon/del.js +481 -1
  73. package/lib/icon/doc-fill.js +481 -1
  74. package/lib/icon/done.js +481 -1
  75. package/lib/icon/down-shape.js +481 -1
  76. package/lib/icon/down-small.js +481 -1
  77. package/lib/icon/edit-line.js +481 -1
  78. package/lib/icon/ellipsis.js +481 -1
  79. package/lib/icon/enlarge-line.js +481 -1
  80. package/lib/icon/error.js +481 -1
  81. package/lib/icon/excel-fill.js +481 -1
  82. package/lib/icon/exclamation-circle-shape.js +481 -1
  83. package/lib/icon/eye.js +481 -1
  84. package/lib/icon/filliscreen-line.js +481 -1
  85. package/lib/icon/fix-line.js +481 -1
  86. package/lib/icon/fix-shape.js +481 -1
  87. package/lib/icon/folder-open.js +481 -1
  88. package/lib/icon/folder-shape-open.js +481 -1
  89. package/lib/icon/folder-shape.js +481 -1
  90. package/lib/icon/folder.js +481 -1
  91. package/lib/icon/funnel.js +481 -1
  92. package/lib/icon/help-document-fill.js +481 -1
  93. package/lib/icon/help-fill.js +481 -1
  94. package/lib/icon/help.js +481 -1
  95. package/lib/icon/image-fill.js +527 -1
  96. package/lib/icon/img-error.js +527 -1
  97. package/lib/icon/img-placehoulder.js +527 -1
  98. package/lib/icon/index.js +2367 -1
  99. package/lib/icon/info-line.js +527 -1
  100. package/lib/icon/info.js +527 -1
  101. package/lib/icon/left-shape.js +527 -1
  102. package/lib/icon/left-turn-line.js +527 -1
  103. package/lib/icon/narrow-line.js +527 -1
  104. package/lib/icon/original.js +527 -1
  105. package/lib/icon/pdf-fill.js +527 -1
  106. package/lib/icon/play-shape.js +527 -1
  107. package/lib/icon/plus.js +527 -1
  108. package/lib/icon/ppt-fill.js +527 -1
  109. package/lib/icon/qq.js +527 -1
  110. package/lib/icon/right-shape.js +527 -1
  111. package/lib/icon/right-turn-line.js +527 -1
  112. package/lib/icon/search.js +527 -1
  113. package/lib/icon/share.js +527 -1
  114. package/lib/icon/spinner.js +527 -1
  115. package/lib/icon/success.js +527 -1
  116. package/lib/icon/switcher-loading.js +527 -1
  117. package/lib/icon/text-file.js +527 -1
  118. package/lib/icon/text-fill.js +527 -1
  119. package/lib/icon/transfer.js +527 -1
  120. package/lib/icon/tree-application-shape.js +527 -1
  121. package/lib/icon/unfull-screen.js +527 -1
  122. package/lib/icon/unvisible.js +527 -1
  123. package/lib/icon/up-shape.js +527 -1
  124. package/lib/icon/upload.js +527 -1
  125. package/lib/icon/video-fill.js +527 -1
  126. package/lib/icon/warn.js +527 -1
  127. package/lib/icon/weixin-pro.js +527 -1
  128. package/lib/icon/weixin.js +527 -1
  129. package/lib/image/index.js +593 -1
  130. package/lib/index.js +97 -1
  131. package/lib/info-box/index.js +1456 -2
  132. package/lib/input/index.js +1528 -2
  133. package/lib/input/input.css +4 -4
  134. package/lib/input/input.variable.css +4 -4
  135. package/lib/link/index.js +160 -1
  136. package/lib/loading/index.js +379 -1
  137. package/lib/loading/loading.css +4 -4
  138. package/lib/loading/loading.variable.css +4 -4
  139. package/lib/locale/index.js +465 -1
  140. package/lib/menu/index.js +725 -1
  141. package/lib/menu/menu.css +4 -4
  142. package/lib/menu/menu.variable.css +4 -4
  143. package/lib/message/index.js +1790 -2
  144. package/lib/modal/index.js +337 -1
  145. package/lib/navigation/index.js +367 -1
  146. package/lib/notify/index.js +394 -1
  147. package/lib/overflow-title/index.js +485 -1
  148. package/lib/pagination/index.js +880 -1
  149. package/lib/plugin-popover/index.js +4067 -1
  150. package/lib/plugins/index.js +63 -1
  151. package/lib/pop-confirm/index.js +273 -1
  152. package/lib/popover/index.js +4075 -1
  153. package/lib/popover2/index.js +107 -1
  154. package/lib/preset.js +93 -1
  155. package/lib/process/index.js +1099 -2
  156. package/lib/progress/index.js +428 -1
  157. package/lib/progress/progress.css +4 -4
  158. package/lib/progress/progress.variable.css +4 -4
  159. package/lib/radio/index.js +627 -1
  160. package/lib/rate/index.js +338 -1
  161. package/lib/resize-layout/index.js +430 -1
  162. package/lib/search-select/index.js +3036 -2
  163. package/lib/search-select/search-select.css +11 -11
  164. package/lib/search-select/search-select.less +13 -9
  165. package/lib/search-select/search-select.variable.css +11 -11
  166. package/lib/select/index.js +2571 -2
  167. package/lib/select/select.css +4 -4
  168. package/lib/select/select.variable.css +4 -4
  169. package/lib/shared/index.js +2865 -1
  170. package/lib/sideslider/index.js +1005 -2
  171. package/lib/slider/index.js +1629 -2
  172. package/lib/steps/index.js +1163 -2
  173. package/lib/styles/mixins/mixins.css +4 -4
  174. package/lib/styles/mixins/mixins.variable.css +4 -4
  175. package/lib/swiper/index.js +336 -1
  176. package/lib/switcher/index.js +277 -1
  177. package/lib/switcher/switcher.css +4 -4
  178. package/lib/switcher/switcher.variable.css +4 -4
  179. package/lib/tab/index.js +859 -1
  180. package/lib/table/index.js +6568 -1
  181. package/lib/table-column/index.js +730 -1
  182. package/lib/tag/index.js +233 -1
  183. package/lib/tag-input/index.js +1652 -1
  184. package/lib/time-picker/index.js +71 -1
  185. package/lib/timeline/index.js +242 -1
  186. package/lib/transfer/index.js +673 -1
  187. package/lib/tree/index.js +2625 -1
  188. package/lib/upload/index.js +3193 -2
  189. package/lib/upload/upload.css +4 -4
  190. package/lib/upload/upload.variable.css +4 -4
  191. package/lib/virtual-render/index.js +748 -1
  192. package/package.json +2 -1
  193. package/lib/cascader/index.js.LICENSE.txt +0 -1
  194. package/lib/dialog/index.js.LICENSE.txt +0 -1
  195. package/lib/directives/index.js.LICENSE.txt +0 -14
  196. package/lib/info-box/index.js.LICENSE.txt +0 -1
  197. package/lib/input/index.js.LICENSE.txt +0 -1
  198. package/lib/message/index.js.LICENSE.txt +0 -6
  199. package/lib/process/index.js.LICENSE.txt +0 -1
  200. package/lib/search-select/index.js.LICENSE.txt +0 -1
  201. package/lib/select/index.js.LICENSE.txt +0 -1
  202. package/lib/sideslider/index.js.LICENSE.txt +0 -1
  203. package/lib/slider/index.js.LICENSE.txt +0 -1
  204. package/lib/steps/index.js.LICENSE.txt +0 -1
  205. package/lib/styles/mixins/animate.css +0 -21
  206. package/lib/styles/mixins/animate.less +0 -27
  207. package/lib/styles/mixins/animate.variable.css +0 -21
  208. package/lib/upload/index.js.LICENSE.txt +0 -1
@@ -1 +1,321 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../loading"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../loading"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../loading")):t(e["../shared"],e.vue,e["../config-provider"],e["../loading"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o,r)=>(()=>{"use strict";var n={2717:e=>{e.exports=o},4870:e=>{e.exports=r},4212:t=>{t.exports=e},748:e=>{e.exports=t}},i={};function u(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={exports:{}};return n[e](o,o.exports,u),o.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var o in t)u.o(t,o)&&!u.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{u.r(l),u.d(l,{BkButton:()=>f,BkButtonGroup:()=>p,default:()=>v});var e=u(4212);function t(e){return t="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},t(e)}function o(e,o,r){return(o=function(e){var o=function(e,o){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(o)?o:String(o)}(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}var r=u(748),n=u(2717),i=u(4870),a=u.n(i),s=["","small","large"],c={theme:e.PropTypes.theme(),hoverTheme:e.PropTypes.theme(),size:{type:String,default:s[0]},title:e.PropTypes.string,icon:e.PropTypes.string,iconRight:e.PropTypes.string,disabled:e.PropTypes.bool,loading:e.PropTypes.bool,loadingMode:{type:String,default:"default"},outline:e.PropTypes.bool,text:e.PropTypes.bool,selected:e.PropTypes.bool,nativeType:{type:String,default:"button"}};const d=(0,r.defineComponent)({name:"Button",props:c,emits:["click","mouseover"],setup:function(t,u){var l,c=u.slots,d=u.emit,p=(0,r.ref)(!1),f=null!==(l=c.default)&&void 0!==l&&l,v=(0,(0,n.usePrefix)().resolveClassName)("button"),m=(0,r.computed)((function(){return t.text&&!t.hoverTheme})),y=(0,r.computed)((function(){var r,n=t.hoverTheme?"".concat(v,"-hover-").concat(t.hoverTheme):"",i=t.theme?"".concat(v,"-").concat(t.theme):"",u=t.hoverTheme?"":i;return(0,e.classes)((o(r={"is-disabled":t.disabled,"is-outline":t.outline,"is-text":m.value,"is-loading":t.loading,"is-selected":t.selected},"".concat(v,"-").concat(t.size),t.size&&s.includes(t.size)),o(r,"no-slot",!f),r),"".concat(u," ").concat(v," ").concat(n))})),b=(0,r.computed)((function(){if(t.text||t.outline||t.hoverTheme){if(p.value&&!t.text)return"white";if(t.text&&t.disabled)return;return t.hoverTheme||t.theme}return t.theme?"white":void 0})),g=(0,r.computed)((function(){return m.value||t.size===i.BkLoadingSize.Small?i.BkLoadingSize.Mini:i.BkLoadingSize.Small})),h=function(e){t.loading||d("click",e)},T=function(e){p.value=!0,d("mouseover",e)},x=function(){p.value=!1};return function(){var e;return(0,r.createVNode)("button",{title:t.title,disabled:t.disabled,class:y.value,type:t.nativeType,onClick:h,onMouseover:T,onMouseleave:x},[t.loading&&(0,r.createVNode)(a(),(0,r.mergeProps)({loading:!0,class:"".concat(v,"-loading"),mode:t.loadingMode,size:g.value},b.value?{theme:b.value}:{}),null),c.default&&(0,r.createVNode)("span",{class:"".concat(v,"-text")},[null===(e=c.default)||void 0===e?void 0:e.call(c)])])}}}),p=(0,r.defineComponent)({name:"ButtonGroup",props:{size:e.PropTypes.size()},setup:function(t,i){var u=(0,n.usePrefix)().resolveClassName,l=(0,r.computed)((function(){return(0,e.classes)(o({},"".concat(u("button-group-".concat(t.size))),!!t.size),"".concat(u("button-group")))}));return function(){var e,t;return(0,r.createVNode)("div",{class:l.value},[null===(t=(e=i.slots).default)||void 0===t?void 0:t.call(e)])}}});var f=(0,e.withInstallProps)(d,{ButtonGroup:p});const v=f})(),l})()));
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__config_provider_9d0186d9__ from "../config-provider";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
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
+ "if": () => (/* binding */ BkButton),
32
+ um: () => (/* reexport */ button_group),
33
+ ZP: () => (/* 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({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
40
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
41
+ function _typeof(obj) {
42
+ "@babel/helpers - typeof";
43
+
44
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
45
+ return typeof obj;
46
+ } : function (obj) {
47
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
48
+ }, _typeof(obj);
49
+ }
50
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
51
+
52
+ function _toPrimitive(input, hint) {
53
+ if (_typeof(input) !== "object" || input === null) return input;
54
+ var prim = input[Symbol.toPrimitive];
55
+ if (prim !== undefined) {
56
+ var res = prim.call(input, hint || "default");
57
+ if (_typeof(res) !== "object") return res;
58
+ throw new TypeError("@@toPrimitive must return a primitive value.");
59
+ }
60
+ return (hint === "string" ? String : Number)(input);
61
+ }
62
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
63
+
64
+
65
+ function _toPropertyKey(arg) {
66
+ var key = _toPrimitive(arg, "string");
67
+ return _typeof(key) === "symbol" ? key : String(key);
68
+ }
69
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
70
+
71
+ function _defineProperty(obj, key, value) {
72
+ key = _toPropertyKey(key);
73
+ if (key in obj) {
74
+ Object.defineProperty(obj, key, {
75
+ value: value,
76
+ enumerable: true,
77
+ configurable: true,
78
+ writable: true
79
+ });
80
+ } else {
81
+ obj[key] = value;
82
+ }
83
+ return obj;
84
+ }
85
+ ;// CONCATENATED MODULE: external "vue"
86
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
87
+ var external_vue_y = x => () => x
88
+ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
89
+ ;// CONCATENATED MODULE: external "../config-provider"
90
+ var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
91
+ var external_config_provider_y = x => () => x
92
+ const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
93
+ ;// CONCATENATED MODULE: external "../loading"
94
+ var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
95
+ var external_loading_y = x => () => x
96
+ const external_loading_namespaceObject = external_loading_x({ ["BkLoadingSize"]: () => __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__.BkLoadingSize, ["default"]: () => __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__["default"] });
97
+ ;// CONCATENATED MODULE: ../../packages/button/src/button.tsx
98
+
99
+
100
+ /**
101
+ * Tencent is pleased to support the open source community by making
102
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
103
+ *
104
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
105
+ *
106
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
107
+ *
108
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
109
+ *
110
+ * ---------------------------------------------------
111
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
112
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
113
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
114
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
115
+ *
116
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
117
+ * the Software.
118
+ *
119
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
120
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
121
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
122
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
123
+ * IN THE SOFTWARE.
124
+ */
125
+
126
+
127
+
128
+
129
+ var btnSizes = ['', 'small', 'large'];
130
+ var buttonProps = {
131
+ theme: external_shared_namespaceObject.PropTypes.theme(),
132
+ hoverTheme: external_shared_namespaceObject.PropTypes.theme(),
133
+ size: {
134
+ type: String,
135
+ "default": btnSizes[0]
136
+ },
137
+ title: external_shared_namespaceObject.PropTypes.string,
138
+ icon: external_shared_namespaceObject.PropTypes.string,
139
+ iconRight: external_shared_namespaceObject.PropTypes.string,
140
+ disabled: external_shared_namespaceObject.PropTypes.bool,
141
+ loading: external_shared_namespaceObject.PropTypes.bool,
142
+ loadingMode: {
143
+ type: String,
144
+ "default": 'default'
145
+ },
146
+ outline: external_shared_namespaceObject.PropTypes.bool,
147
+ text: external_shared_namespaceObject.PropTypes.bool,
148
+ selected: external_shared_namespaceObject.PropTypes.bool,
149
+ // circle: PropTypes.bool,
150
+ nativeType: {
151
+ type: String,
152
+ "default": 'button'
153
+ }
154
+ };
155
+ /* harmony default export */ const src_button = ((0,external_vue_namespaceObject.defineComponent)({
156
+ // eslint-disable-next-line vue/no-reserved-component-names
157
+ name: 'Button',
158
+ props: buttonProps,
159
+ emits: ['click', 'mouseover'],
160
+ setup: function setup(props, _ref) {
161
+ var slots = _ref.slots,
162
+ emit = _ref.emit;
163
+ var _a;
164
+ var isHover = (0,external_vue_namespaceObject.ref)(false);
165
+ var showSlot = (_a = slots["default"]) !== null && _a !== void 0 ? _a : false;
166
+ var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
167
+ resolveClassName = _usePrefix.resolveClassName;
168
+ var btnClsPrefix = resolveClassName('button');
169
+ var isText = (0,external_vue_namespaceObject.computed)(function () {
170
+ return props.text && !props.hoverTheme;
171
+ });
172
+ var btnCls = (0,external_vue_namespaceObject.computed)(function () {
173
+ var _classes;
174
+ var hoverTheme = props.hoverTheme ? "".concat(btnClsPrefix, "-hover-").concat(props.hoverTheme) : '';
175
+ var btnThemeCls = props.theme ? "".concat(btnClsPrefix, "-").concat(props.theme) : '';
176
+ var themeCls = props.hoverTheme ? '' : btnThemeCls;
177
+ return (0,external_shared_namespaceObject.classes)((_classes = {
178
+ 'is-disabled': props.disabled,
179
+ 'is-outline': props.outline,
180
+ 'is-text': isText.value,
181
+ 'is-loading': props.loading,
182
+ 'is-selected': props.selected
183
+ }, _defineProperty(_classes, "".concat(btnClsPrefix, "-").concat(props.size), props.size && btnSizes.includes(props.size)), _defineProperty(_classes, 'no-slot', !showSlot), _classes), "".concat(themeCls, " ").concat(btnClsPrefix, " ").concat(hoverTheme));
184
+ });
185
+ var loadingTheme = (0,external_vue_namespaceObject.computed)(function () {
186
+ if (props.text || props.outline || props.hoverTheme) {
187
+ if (isHover.value && !props.text) return 'white';
188
+ if (props.text && props.disabled) return;
189
+ return props.hoverTheme || props.theme;
190
+ }
191
+ return !props.theme ? undefined : 'white';
192
+ });
193
+ var loadingSize = (0,external_vue_namespaceObject.computed)(function () {
194
+ return isText.value || props.size === external_loading_namespaceObject.BkLoadingSize.Small ? external_loading_namespaceObject.BkLoadingSize.Mini : external_loading_namespaceObject.BkLoadingSize.Small;
195
+ });
196
+ var handleClick = function handleClick(e) {
197
+ if (props.loading) return;
198
+ /**
199
+ * Success event.
200
+ * @event click
201
+ */
202
+ emit('click', e);
203
+ };
204
+ var handleMouseOver = function handleMouseOver(e) {
205
+ isHover.value = true;
206
+ emit('mouseover', e);
207
+ };
208
+ var handleMouseout = function handleMouseout() {
209
+ isHover.value = false;
210
+ };
211
+ return function () {
212
+ var _a;
213
+ return (0,external_vue_namespaceObject.createVNode)("button", {
214
+ "title": props.title,
215
+ "disabled": props.disabled,
216
+ "class": btnCls.value,
217
+ "type": props.nativeType,
218
+ "onClick": handleClick,
219
+ "onMouseover": handleMouseOver,
220
+ "onMouseleave": handleMouseout
221
+ }, [props.loading && (0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
222
+ "loading": true,
223
+ "class": "".concat(btnClsPrefix, "-loading"),
224
+ "mode": props.loadingMode,
225
+ "size": loadingSize.value
226
+ }, loadingTheme.value ? {
227
+ theme: loadingTheme.value
228
+ } : {}), null), slots["default"] && (0,external_vue_namespaceObject.createVNode)("span", {
229
+ "class": "".concat(btnClsPrefix, "-text")
230
+ }, [(_a = slots["default"]) === null || _a === void 0 ? void 0 : _a.call(slots)])]);
231
+ };
232
+ }
233
+ }));
234
+ ;// CONCATENATED MODULE: ../../packages/button/src/button-group.tsx
235
+
236
+
237
+ /*
238
+ * Tencent is pleased to support the open source community by making
239
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
240
+ *
241
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
242
+ *
243
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
244
+ *
245
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
246
+ *
247
+ * ---------------------------------------------------
248
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
249
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
250
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
251
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
252
+ *
253
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
254
+ * the Software.
255
+ *
256
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
257
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
258
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
259
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
260
+ * IN THE SOFTWARE.
261
+ */
262
+
263
+
264
+
265
+ /* harmony default export */ const button_group = ((0,external_vue_namespaceObject.defineComponent)({
266
+ name: 'ButtonGroup',
267
+ props: {
268
+ size: external_shared_namespaceObject.PropTypes.size()
269
+ },
270
+ setup: function setup(props, ctx) {
271
+ var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
272
+ resolveClassName = _usePrefix.resolveClassName;
273
+ var btnGroupCls = (0,external_vue_namespaceObject.computed)(function () {
274
+ return (0,external_shared_namespaceObject.classes)(_defineProperty({}, "".concat(resolveClassName("button-group-".concat(props.size))), !!props.size), "".concat(resolveClassName('button-group')));
275
+ });
276
+ return function () {
277
+ var _a, _b;
278
+ return (0,external_vue_namespaceObject.createVNode)("div", {
279
+ "class": btnGroupCls.value
280
+ }, [(_b = (_a = ctx.slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
281
+ };
282
+ }
283
+ }));
284
+ ;// CONCATENATED MODULE: ../../packages/button/src/index.ts
285
+ /*
286
+ * Tencent is pleased to support the open source community by making
287
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
288
+ *
289
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
290
+ *
291
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
292
+ *
293
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
294
+ *
295
+ * ---------------------------------------------------
296
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
297
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
298
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
299
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
300
+ *
301
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
302
+ * the Software.
303
+ *
304
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
305
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
306
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
307
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
308
+ * IN THE SOFTWARE.
309
+ */
310
+
311
+
312
+
313
+ var BkButton = (0,external_shared_namespaceObject.withInstallProps)(src_button, {
314
+ ButtonGroup: button_group
315
+ });
316
+ /* harmony default export */ const src = (BkButton);
317
+
318
+ var __webpack_exports__BkButton = __webpack_exports__["if"];
319
+ var __webpack_exports__BkButtonGroup = __webpack_exports__.um;
320
+ var __webpack_exports__default = __webpack_exports__.ZP;
321
+ export { __webpack_exports__BkButton as BkButton, __webpack_exports__BkButtonGroup as BkButtonGroup, __webpack_exports__default as default };
package/lib/card/card.css CHANGED
@@ -11,12 +11,12 @@
11
11
  background-color: transparent;
12
12
  }
13
13
  }
14
- .bk-fade-transtion .bk-fade-enter-active,
15
- .bk-fade-transtion .bk-fade-leave-active {
14
+ .bk-transition .bk-fade-enter-active,
15
+ .bk-transition .bk-fade-leave-active {
16
16
  transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
17
17
  }
18
- .bk-fade-transtion .bk-fade-enter,
19
- .bk-fade-transtion .bk-fade-leave-to {
18
+ .bk-transition .bk-fade-enter,
19
+ .bk-transition .bk-fade-leave-to {
20
20
  opacity: 0;
21
21
  }
22
22
  .clearfix-style::after {
@@ -133,12 +133,12 @@
133
133
  background-color: transparent;
134
134
  }
135
135
  }
136
- .bk-fade-transtion .bk-fade-enter-active,
137
- .bk-fade-transtion .bk-fade-leave-active {
136
+ .bk-transition .bk-fade-enter-active,
137
+ .bk-transition .bk-fade-leave-active {
138
138
  transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
139
139
  }
140
- .bk-fade-transtion .bk-fade-enter,
141
- .bk-fade-transtion .bk-fade-leave-to {
140
+ .bk-transition .bk-fade-enter,
141
+ .bk-transition .bk-fade-leave-to {
142
142
  opacity: 0;
143
143
  }
144
144
  .clearfix-style::after {
package/lib/card/index.js CHANGED
@@ -1 +1,274 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../collapse-transition"),require("../config-provider"),require("../icon"),require("../input"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../collapse-transition","../config-provider","../icon","../input"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../collapse-transition"),require("../config-provider"),require("../icon"),require("../input")):t(e["../shared"],e.vue,e["../collapse-transition"],e["../config-provider"],e["../icon"],e["../input"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o,r,i,l)=>(()=>{"use strict";var s={9891:e=>{e.exports=o},2717:e=>{e.exports=r},6870:e=>{e.exports=i},8133:e=>{e.exports=l},4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return s[e](o,o.exports,a),o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var p={};return(()=>{a.r(p),a.d(p,{default:()=>f});var e=a(4212);function t(e){return t="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},t(e)}function o(e,o,r){return(o=function(e){var o=function(e,o){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(o)?o:String(o)}(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}var r=a(748),i=a(9891),l=a.n(i),s=a(2717),n=a(6870),c=a(8133),u=a.n(c);const d=(0,r.defineComponent)({name:"Card",props:{title:e.PropTypes.string,showHeader:e.PropTypes.bool.def(!0),showFooter:e.PropTypes.bool.def(!1),collapseStatus:e.PropTypes.bool.def(!0),border:e.PropTypes.bool.def(!0),disableHeaderStyle:e.PropTypes.bool.def(!1),position:e.PropTypes.string.def("left"),isEdit:e.PropTypes.bool.def(!1),isCollapse:e.PropTypes.bool.def(!1)},emits:["update:collapseStatus","edit"],setup:function(e,t){var o=t.emit,i=(0,r.ref)(!0),l=(0,r.ref)(!1),n=(0,r.ref)("");(0,r.watch)((function(){return e.collapseStatus}),(function(t){e.isCollapse&&(i.value=t)}),{immediate:!0}),(0,r.watch)((function(){return e.title}),(function(e){n.value=e}),{immediate:!0});var a=(0,(0,s.usePrefix)().resolveClassName)("card");return{collapseActive:i,showInput:l,renderTitle:n,handleCollapse:function(){e.isCollapse&&(i.value=!i.value,o("update:collapseStatus",i.value))},saveEdit:function(){l.value=!l.value,o("edit",n)},clickEdit:function(){l.value=!l.value},wrapperClsName:a}},render:function(){var t,i,s,a,p,c,d,f,v,h,y,m,b,w,C=this,N=(0,e.classes)((o(t={},"".concat(this.wrapperClsName),!0),o(t,"".concat(this.wrapperClsName,"-border-none"),!this.$props.border),t),""),S=(0,e.classes)((o(i={},"".concat(this.wrapperClsName,"-head"),!0),o(i,"".concat(this.wrapperClsName,"-head-").concat(this.$props.position),this.$props.isCollapse&&this.$props.position),o(i,"no-line-height",this.$props.disableHeaderStyle),o(i,"collapse",!this.collapseActive),i),""),g=(0,r.createVNode)("div",{class:"title",title:this.renderTitle},[this.showInput?(0,r.createVNode)(u(),{class:"".concat(this.wrapperClsName,"-input"),modelValue:C.renderTitle,"onUpdate:modelValue":function(e){return C.renderTitle=e},onBlur:this.saveEdit},null):this.renderTitle]),P=(0,r.createVNode)("span",{class:"".concat(this.wrapperClsName,"-icon"),onClick:this.handleCollapse},[this.collapseActive?(0,r.createVNode)(n.AngleDown,null,null):(0,r.createVNode)(n.AngleRight,null,null)]);return(0,r.createVNode)("div",{class:N},[this.$props.showHeader?(0,r.createVNode)("div",{class:S},[this.$props.isCollapse&&(null!==(p=null===(a=(s=this.$slots).icon)||void 0===a?void 0:a.call(s))&&void 0!==p?p:P),null!==(f=null===(d=(c=this.$slots).header)||void 0===d?void 0:d.call(c))&&void 0!==f?f:g,this.$props.isEdit&&!this.showInput&&(0,r.createVNode)(n.EditLine,{class:"".concat(this.wrapperClsName,"-edit"),onClick:this.clickEdit},null)]):"",(0,r.createVNode)(l(),null,{default:function(){return[(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createVNode)("div",{class:"".concat(C.wrapperClsName,"-body")},[null!==(y=null===(h=(v=C.$slots).default)||void 0===h?void 0:h.call(v))&&void 0!==y?y:"Content"]),C.$props.showFooter?(0,r.createVNode)("div",{class:"".concat(C.wrapperClsName,"-footer")},[null!==(w=null===(b=(m=C.$slots).footer)||void 0===b?void 0:b.call(m))&&void 0!==w?w:"Footer"]):""]),[[r.vShow,C.collapseActive]])]}})])}}),f=(0,e.withInstall)(d)})(),p})()));
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__collapse_transition_cbd5c828__ from "../collapse-transition";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
6
+ import * as __WEBPACK_EXTERNAL_MODULE__input_752b0149__ from "../input";
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({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
40
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
41
+ function _typeof(obj) {
42
+ "@babel/helpers - typeof";
43
+
44
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
45
+ return typeof obj;
46
+ } : function (obj) {
47
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
48
+ }, _typeof(obj);
49
+ }
50
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
51
+
52
+ function _toPrimitive(input, hint) {
53
+ if (_typeof(input) !== "object" || input === null) return input;
54
+ var prim = input[Symbol.toPrimitive];
55
+ if (prim !== undefined) {
56
+ var res = prim.call(input, hint || "default");
57
+ if (_typeof(res) !== "object") return res;
58
+ throw new TypeError("@@toPrimitive must return a primitive value.");
59
+ }
60
+ return (hint === "string" ? String : Number)(input);
61
+ }
62
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
63
+
64
+
65
+ function _toPropertyKey(arg) {
66
+ var key = _toPrimitive(arg, "string");
67
+ return _typeof(key) === "symbol" ? key : String(key);
68
+ }
69
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
70
+
71
+ function _defineProperty(obj, key, value) {
72
+ key = _toPropertyKey(key);
73
+ if (key in obj) {
74
+ Object.defineProperty(obj, key, {
75
+ value: value,
76
+ enumerable: true,
77
+ configurable: true,
78
+ writable: true
79
+ });
80
+ } else {
81
+ obj[key] = value;
82
+ }
83
+ return obj;
84
+ }
85
+ ;// CONCATENATED MODULE: external "vue"
86
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
87
+ var external_vue_y = x => () => x
88
+ const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
89
+ ;// CONCATENATED MODULE: external "../collapse-transition"
90
+ var external_collapse_transition_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
91
+ var external_collapse_transition_y = x => () => x
92
+ const external_collapse_transition_namespaceObject = external_collapse_transition_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__collapse_transition_cbd5c828__["default"] });
93
+ ;// CONCATENATED MODULE: external "../config-provider"
94
+ var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
95
+ var external_config_provider_y = x => () => x
96
+ const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
97
+ ;// CONCATENATED MODULE: external "../icon"
98
+ var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
99
+ var external_icon_y = x => () => x
100
+ const external_icon_namespaceObject = external_icon_x({ ["AngleDown"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleDown, ["AngleRight"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleRight, ["EditLine"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.EditLine });
101
+ ;// CONCATENATED MODULE: external "../input"
102
+ var external_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
103
+ var external_input_y = x => () => x
104
+ const external_input_namespaceObject = external_input_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__input_752b0149__["default"] });
105
+ ;// CONCATENATED MODULE: ../../packages/card/src/card.tsx
106
+
107
+
108
+ /*
109
+ * Tencent is pleased to support the open source community by making
110
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
111
+ *
112
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
113
+ *
114
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
115
+ *
116
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
117
+ *
118
+ * ---------------------------------------------------
119
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
120
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
121
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
122
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
123
+ *
124
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
125
+ * the Software.
126
+ *
127
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
128
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
129
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
130
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
131
+ * IN THE SOFTWARE.
132
+ */
133
+
134
+
135
+
136
+
137
+
138
+
139
+ /* harmony default export */ const card = ((0,external_vue_namespaceObject.defineComponent)({
140
+ name: 'Card',
141
+ props: {
142
+ title: external_shared_namespaceObject.PropTypes.string,
143
+ showHeader: external_shared_namespaceObject.PropTypes.bool.def(true),
144
+ showFooter: external_shared_namespaceObject.PropTypes.bool.def(false),
145
+ collapseStatus: external_shared_namespaceObject.PropTypes.bool.def(true),
146
+ border: external_shared_namespaceObject.PropTypes.bool.def(true),
147
+ disableHeaderStyle: external_shared_namespaceObject.PropTypes.bool.def(false),
148
+ position: external_shared_namespaceObject.PropTypes.string.def('left'),
149
+ isEdit: external_shared_namespaceObject.PropTypes.bool.def(false),
150
+ isCollapse: external_shared_namespaceObject.PropTypes.bool.def(false)
151
+ },
152
+ emits: ['update:collapseStatus', 'edit'],
153
+ setup: function setup(props, _ref) {
154
+ var emit = _ref.emit;
155
+ /** 展开&收起的状态 */
156
+ var collapseActive = (0,external_vue_namespaceObject.ref)(true);
157
+ /** 是否显示编辑框 */
158
+ var showInput = (0,external_vue_namespaceObject.ref)(false);
159
+ var renderTitle = (0,external_vue_namespaceObject.ref)('');
160
+ var handleCollapse = function handleCollapse() {
161
+ if (!props.isCollapse) {
162
+ return;
163
+ }
164
+ collapseActive.value = !collapseActive.value;
165
+ emit('update:collapseStatus', collapseActive.value);
166
+ };
167
+ /** 点击编辑按钮 */
168
+ var clickEdit = function clickEdit() {
169
+ showInput.value = !showInput.value;
170
+ };
171
+ /** 保存编辑的title */
172
+ var saveEdit = function saveEdit() {
173
+ showInput.value = !showInput.value;
174
+ emit('edit', renderTitle);
175
+ };
176
+ (0,external_vue_namespaceObject.watch)(function () {
177
+ return props.collapseStatus;
178
+ }, function (val) {
179
+ props.isCollapse && (collapseActive.value = val);
180
+ }, {
181
+ immediate: true
182
+ });
183
+ (0,external_vue_namespaceObject.watch)(function () {
184
+ return props.title;
185
+ }, function (val) {
186
+ renderTitle.value = val;
187
+ }, {
188
+ immediate: true
189
+ });
190
+ var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
191
+ resolveClassName = _usePrefix.resolveClassName;
192
+ var wrapperClsName = resolveClassName('card');
193
+ return {
194
+ collapseActive: collapseActive,
195
+ showInput: showInput,
196
+ renderTitle: renderTitle,
197
+ handleCollapse: handleCollapse,
198
+ saveEdit: saveEdit,
199
+ clickEdit: clickEdit,
200
+ wrapperClsName: wrapperClsName
201
+ };
202
+ },
203
+ render: function render() {
204
+ var _classes,
205
+ _classes2,
206
+ _this = this;
207
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
208
+ var cardClass = (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.wrapperClsName), true), _defineProperty(_classes, "".concat(this.wrapperClsName, "-border-none"), !this.$props.border), _classes), '');
209
+ var headClass = (0,external_shared_namespaceObject.classes)((_classes2 = {}, _defineProperty(_classes2, "".concat(this.wrapperClsName, "-head"), true), _defineProperty(_classes2, "".concat(this.wrapperClsName, "-head-").concat(this.$props.position), this.$props.isCollapse && this.$props.position), _defineProperty(_classes2, 'no-line-height', this.$props.disableHeaderStyle), _defineProperty(_classes2, 'collapse', !this.collapseActive), _classes2), '');
210
+ var defaultHeader = (0,external_vue_namespaceObject.createVNode)("div", {
211
+ "class": "title",
212
+ "title": this.renderTitle
213
+ }, [this.showInput ? (0,external_vue_namespaceObject.createVNode)(external_input_namespaceObject["default"], {
214
+ "class": "".concat(this.wrapperClsName, "-input"),
215
+ "modelValue": _this.renderTitle,
216
+ "onUpdate:modelValue": function onUpdateModelValue($event) {
217
+ return _this.renderTitle = $event;
218
+ },
219
+ "onBlur": this.saveEdit
220
+ }, null) : this.renderTitle]);
221
+ var defaultIcon = (0,external_vue_namespaceObject.createVNode)("span", {
222
+ "class": "".concat(this.wrapperClsName, "-icon"),
223
+ "onClick": this.handleCollapse
224
+ }, [this.collapseActive ? (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleDown, null, null) : (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleRight, null, null)]);
225
+ return (0,external_vue_namespaceObject.createVNode)("div", {
226
+ "class": cardClass
227
+ }, [this.$props.showHeader ? (0,external_vue_namespaceObject.createVNode)("div", {
228
+ "class": headClass
229
+ }, [this.$props.isCollapse && ((_c = (_b = (_a = this.$slots).icon) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : defaultIcon), (_f = (_e = (_d = this.$slots).header) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : defaultHeader, this.$props.isEdit && !this.showInput && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.EditLine, {
230
+ "class": "".concat(this.wrapperClsName, "-edit"),
231
+ "onClick": this.clickEdit
232
+ }, null)]) : '', (0,external_vue_namespaceObject.createVNode)(external_collapse_transition_namespaceObject["default"], null, {
233
+ "default": function _default() {
234
+ return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", null, [(0,external_vue_namespaceObject.createVNode)("div", {
235
+ "class": "".concat(_this.wrapperClsName, "-body")
236
+ }, [(_j = (_h = (_g = _this.$slots)["default"]) === null || _h === void 0 ? void 0 : _h.call(_g)) !== null && _j !== void 0 ? _j : 'Content']), _this.$props.showFooter ? (0,external_vue_namespaceObject.createVNode)("div", {
237
+ "class": "".concat(_this.wrapperClsName, "-footer")
238
+ }, [(_m = (_l = (_k = _this.$slots).footer) === null || _l === void 0 ? void 0 : _l.call(_k)) !== null && _m !== void 0 ? _m : 'Footer']) : '']), [[external_vue_namespaceObject.vShow, _this.collapseActive]])];
239
+ }
240
+ })]);
241
+ }
242
+ }));
243
+ ;// CONCATENATED MODULE: ../../packages/card/src/index.ts
244
+ /*
245
+ * Tencent is pleased to support the open source community by making
246
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
247
+ *
248
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
249
+ *
250
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
251
+ *
252
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
253
+ *
254
+ * ---------------------------------------------------
255
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
256
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
257
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
258
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
259
+ *
260
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
261
+ * the Software.
262
+ *
263
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
264
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
265
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
266
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
267
+ * IN THE SOFTWARE.
268
+ */
269
+
270
+
271
+ var BkCard = (0,external_shared_namespaceObject.withInstall)(card);
272
+ /* harmony default export */ const src = (BkCard);
273
+ var __webpack_exports__default = __webpack_exports__.Z;
274
+ export { __webpack_exports__default as default };