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,428 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider")):t(e["../shared"],e.vue,e["../config-provider"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,((e,t,r)=>(()=>{"use strict";var o={2717:e=>{e.exports=r},4212:t=>{t.exports=e},748:e=>{e.exports=t}},s={};function n(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return o[e](r,r.exports,n),r.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{n.r(c),n.d(c,{default:()=>d});var e=n(4212),t=n(748),r=n(2717);const o=function(e,o){var s=o.attrs,n=o.slots,c=(0,r.usePrefix)().resolveClassName,i=s.width,a=s.percent,l=s.strokeWidth,p=s.color,u=s.strokeLinecap,d=s.theme,f=s.type,y=s.bgColor,v=s.titleStyle,h=l||6,m=i||126,b={width:"number"==typeof m?"".concat(m,"px"):m,height:"number"==typeof m?"".concat(m,"px"):m,fontSize:"".concat(.15*m+6,"px")},x=50-h/2,g="dashboard"===f,P=2*Math.PI*x,T=g?.75:1,N="".concat(-1*P*(1-T)/2,"px"),S={strokeDasharray:"".concat(P*T,"px, ").concat(P,"px"),strokeDashoffset:N},k={strokeDasharray:"".concat(P*T*(a/100),"px, ").concat(P,"px"),strokeDashoffset:N,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"},j="\n M 50 50\n m 0 ".concat(g?"":"-").concat(x,"\n a ").concat(x," ").concat(x," 0 1 1 0 ").concat(g?"-":"").concat(2*x,"\n a ").concat(x," ").concat(x," 0 1 1 0 ").concat(g?"":"-").concat(2*x,"\n "),w={d:j,stroke:y||"#f5f5f5","stroke-linecap":u,"stroke-width":h,"fill-opacity":"0",class:"process-circle-trail",style:S},V={d:j,stroke:p||"#13ce66","stroke-linecap":u,"stroke-width":a>0&&h||0,"fill-opacity":"0",class:"process-circle-path ".concat(c("".concat(d,"-circle-trail"))),style:k};return(0,t.createVNode)("div",{class:"progress-outer-circle",style:b},[(0,t.createVNode)("svg",{viewBox:"0 0 100 100"},[(0,t.createVNode)("path",w,null),(0,t.createVNode)("path",V,null)]),(0,t.createVNode)("span",{class:"progress-circle-text",style:v},[null==n?void 0:n.default()])])};function s(e){return s="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},s(e)}function i(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}const a=function(e,o){var s,n,c=o.attrs,a=o.slots,l=(0,r.usePrefix)().resolveClassName,p=c.percent,u=c.strokeWidth,d=c.size,f=c.color,y=c.titleStyle,v=c.showText,h=c.textInside,m=c.theme,b={height:"".concat(u,"px"),lineHeight:"".concat(u,"px")},x={width:"".concat(p,"%"),background:f,animationDuration:"3s"},g=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(v||a.default)&&(e&&h||!e&&!h)?null==a?void 0:a.default():null};return(0,t.createVNode)("div",{class:"progress-outer"},[(0,t.createVNode)("div",{class:"".concat(l("progress-".concat(d||"normal"))," progress-bar"),style:b},[(0,t.createVNode)("div",{style:x,class:(s={"progress-inner":!0},n="".concat(l("".concat(m))),!0,(n=i(n))in s?Object.defineProperty(s,n,{value:true,enumerable:!0,configurable:!0,writable:!0}):s[n]=true,s)},[(0,t.createVNode)("div",{class:"inner-text",style:y},[g()])])]),g(!1)])};function l(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,t.isVNode)(e)}var p={extCls:e.PropTypes.string,type:(0,e.ProgressType)(),percent:e.PropTypes.number.def(0),theme:e.PropTypes.theme().def(e.ThemeEnum.PRIMARY),size:e.PropTypes.size(),width:e.PropTypes.number.def(126),strokeWidth:e.PropTypes.number,strokeLinecap:(0,e.ProgressStrokeLineCapType)(),textInside:e.PropTypes.bool.def(!1),showText:e.PropTypes.bool.def(!0),color:e.PropTypes.string,bgColor:e.PropTypes.string,fixed:e.PropTypes.number.validate((function(e){return e>=0&&e<=20})).def(0),format:e.PropTypes.func.def((function(e){return"".concat(e,"%")})),titleStyle:e.PropTypes.object.def({fontSize:"16px",verticalAlign:"middle"})};const u=(0,t.defineComponent)({name:"Progress",props:p,setup:function(){return{resolveClassName:(0,r.usePrefix)().resolveClassName}},methods:{validPercent:function(e){return!e||e<0?0:e>100?100:e},renderProcessInfo:function(){var e,r=this.$props,o=r.showText,s=r.format,n=r.percent,c=r.textInside,i=r.titleStyle,a=r.fixed,l=s(null===(e=this.validPercent(n))||void 0===e?void 0:e.toFixed(a));return(o||this.$slots.default)&&c?this.$slots.default?this.$slots.default():(0,t.createVNode)("span",null,[l]):!o||c?null:(0,t.createVNode)("span",{class:"progress-text",style:"string"==typeof l?i:void 0},[this.$slots.default?this.$slots.default():l])}},render:function(){var r=this.renderProcessInfo(),s=Object.assign(Object.assign({},this.$props),{percent:this.validPercent(this.percent)}),n=(0,t.createVNode)(a,s,l(r)?r:{default:function(){return[r]}});"circle"!==this.type&&"dashboard"!==this.type||(n=(0,t.createVNode)(o,s,l(r)?r:{default:function(){return[r]}}));var c={class:(0,e.classes)({extCls:!!this.extCls},"".concat(this.resolveClassName("progress")," ").concat(this.resolveClassName("progress-".concat(this.type))))};return(0,t.createVNode)("div",c,[n])}}),d=(0,e.withInstall)(u)})(),c})()));
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
+ /******/ // The require scope
5
+ /******/ var __webpack_require__ = {};
6
+ /******/
7
+ /************************************************************************/
8
+ /******/ /* webpack/runtime/define property getters */
9
+ /******/ (() => {
10
+ /******/ // define getter functions for harmony exports
11
+ /******/ __webpack_require__.d = (exports, definition) => {
12
+ /******/ for(var key in definition) {
13
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
14
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
15
+ /******/ }
16
+ /******/ }
17
+ /******/ };
18
+ /******/ })();
19
+ /******/
20
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
21
+ /******/ (() => {
22
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
23
+ /******/ })();
24
+ /******/
25
+ /************************************************************************/
26
+ var __webpack_exports__ = {};
27
+
28
+ // EXPORTS
29
+ __webpack_require__.d(__webpack_exports__, {
30
+ Z: () => (/* binding */ src)
31
+ });
32
+
33
+ ;// CONCATENATED MODULE: external "../shared"
34
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
35
+ var y = x => () => x
36
+ const external_shared_namespaceObject = x({ ["ProgressStrokeLineCapType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.ProgressStrokeLineCapType, ["ProgressType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.ProgressType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["ThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.ThemeEnum, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
37
+ ;// CONCATENATED MODULE: external "vue"
38
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
39
+ var external_vue_y = x => () => x
40
+ const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode });
41
+ ;// CONCATENATED MODULE: external "../config-provider"
42
+ var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
43
+ var external_config_provider_y = x => () => x
44
+ const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
45
+ ;// CONCATENATED MODULE: ../../packages/progress/src/circle.tsx
46
+
47
+ /*
48
+ * Tencent is pleased to support the open source community by making
49
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
50
+ *
51
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
52
+ *
53
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
54
+ *
55
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
56
+ *
57
+ * ---------------------------------------------------
58
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
59
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
60
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
61
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
62
+ *
63
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
64
+ * the Software.
65
+ *
66
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
67
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
68
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
69
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
70
+ * IN THE SOFTWARE.
71
+ */
72
+
73
+ /** 环形进度和仪表盘 */
74
+ var Circle = function Circle(_, _ref) {
75
+ var attrs = _ref.attrs,
76
+ slots = _ref.slots;
77
+ var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
78
+ resolveClassName = _usePrefix.resolveClassName;
79
+ var width = attrs.width,
80
+ percent = attrs.percent,
81
+ strokeWidth = attrs.strokeWidth,
82
+ color = attrs.color,
83
+ strokeLinecap = attrs.strokeLinecap,
84
+ theme = attrs.theme,
85
+ type = attrs.type,
86
+ bgColor = attrs.bgColor,
87
+ titleStyle = attrs.titleStyle;
88
+ var circleStrokeWidth = strokeWidth || 6;
89
+ var circleSize = width || 126;
90
+ var circleStyle = {
91
+ width: typeof circleSize === 'number' ? "".concat(circleSize, "px") : circleSize,
92
+ height: typeof circleSize === 'number' ? "".concat(circleSize, "px") : circleSize,
93
+ fontSize: "".concat(circleSize * 0.15 + 6, "px")
94
+ };
95
+ var radius = 50 - circleStrokeWidth / 2;
96
+ var isDashboard = type === 'dashboard';
97
+ /** 总度数 */
98
+ var len = Math.PI * 2 * radius;
99
+ /** 绘制长度 */
100
+ var rate = isDashboard && 0.75 || 1;
101
+ /** stroke偏移 */
102
+ var strokeDashoffset = "".concat(-1 * len * (1 - rate) / 2, "px");
103
+ var transition = 'stroke-dasharray 0.6s ease 0s, stroke 0.6s ease';
104
+ /** 底色样式 */
105
+ var trailStyle = {
106
+ strokeDasharray: "".concat(len * rate, "px, ").concat(len, "px"),
107
+ strokeDashoffset: strokeDashoffset
108
+ };
109
+ /** 路径样式 */
110
+ var pathStyle = {
111
+ strokeDasharray: "".concat(len * rate * (percent / 100), "px, ").concat(len, "px"),
112
+ strokeDashoffset: strokeDashoffset,
113
+ transition: transition
114
+ };
115
+ /** 绘制路径 */
116
+ var path = "\n M 50 50\n m 0 ".concat(isDashboard ? '' : '-').concat(radius, "\n a ").concat(radius, " ").concat(radius, " 0 1 1 0 ").concat(isDashboard ? '-' : '').concat(radius * 2, "\n a ").concat(radius, " ").concat(radius, " 0 1 1 0 ").concat(isDashboard ? '' : '-').concat(radius * 2, "\n ");
117
+ /** 底色 */
118
+ var progressCircleTrail = {
119
+ d: path,
120
+ stroke: bgColor || '#f5f5f5',
121
+ 'stroke-linecap': strokeLinecap,
122
+ 'stroke-width': circleStrokeWidth,
123
+ 'fill-opacity': '0',
124
+ "class": 'process-circle-trail',
125
+ style: trailStyle
126
+ };
127
+ /** 路径 */
128
+ var progressCirclePath = {
129
+ d: path,
130
+ stroke: color || '#13ce66',
131
+ 'stroke-linecap': strokeLinecap,
132
+ 'stroke-width': percent > 0 && circleStrokeWidth || 0,
133
+ 'fill-opacity': '0',
134
+ "class": "process-circle-path ".concat(resolveClassName("".concat(theme, "-circle-trail"))),
135
+ style: pathStyle
136
+ };
137
+ return (0,external_vue_namespaceObject.createVNode)("div", {
138
+ "class": "progress-outer-circle",
139
+ "style": circleStyle
140
+ }, [(0,external_vue_namespaceObject.createVNode)("svg", {
141
+ "viewBox": "0 0 100 100"
142
+ }, [(0,external_vue_namespaceObject.createVNode)("path", progressCircleTrail, null), (0,external_vue_namespaceObject.createVNode)("path", progressCirclePath, null)]), (0,external_vue_namespaceObject.createVNode)("span", {
143
+ "class": "progress-circle-text",
144
+ "style": titleStyle
145
+ }, [slots === null || slots === void 0 ? void 0 : slots["default"]()])]);
146
+ };
147
+ /* harmony default export */ const circle = (Circle);
148
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
149
+ function _typeof(obj) {
150
+ "@babel/helpers - typeof";
151
+
152
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
153
+ return typeof obj;
154
+ } : function (obj) {
155
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
156
+ }, _typeof(obj);
157
+ }
158
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
159
+
160
+ function _toPrimitive(input, hint) {
161
+ if (_typeof(input) !== "object" || input === null) return input;
162
+ var prim = input[Symbol.toPrimitive];
163
+ if (prim !== undefined) {
164
+ var res = prim.call(input, hint || "default");
165
+ if (_typeof(res) !== "object") return res;
166
+ throw new TypeError("@@toPrimitive must return a primitive value.");
167
+ }
168
+ return (hint === "string" ? String : Number)(input);
169
+ }
170
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
171
+
172
+
173
+ function _toPropertyKey(arg) {
174
+ var key = _toPrimitive(arg, "string");
175
+ return _typeof(key) === "symbol" ? key : String(key);
176
+ }
177
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
178
+
179
+ function _defineProperty(obj, key, value) {
180
+ key = _toPropertyKey(key);
181
+ if (key in obj) {
182
+ Object.defineProperty(obj, key, {
183
+ value: value,
184
+ enumerable: true,
185
+ configurable: true,
186
+ writable: true
187
+ });
188
+ } else {
189
+ obj[key] = value;
190
+ }
191
+ return obj;
192
+ }
193
+ ;// CONCATENATED MODULE: ../../packages/progress/src/line.tsx
194
+
195
+
196
+ /*
197
+ * Tencent is pleased to support the open source community by making
198
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
199
+ *
200
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
201
+ *
202
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
203
+ *
204
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
205
+ *
206
+ * ---------------------------------------------------
207
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
208
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
209
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
210
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
211
+ *
212
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
213
+ * the Software.
214
+ *
215
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
216
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
217
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
218
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
219
+ * IN THE SOFTWARE.
220
+ */
221
+
222
+ /** 进度条直线*/
223
+ var Line = function Line(_, _ref) {
224
+ var attrs = _ref.attrs,
225
+ slots = _ref.slots;
226
+ var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
227
+ resolveClassName = _usePrefix.resolveClassName;
228
+ var percent = attrs.percent,
229
+ strokeWidth = attrs.strokeWidth,
230
+ size = attrs.size,
231
+ color = attrs.color,
232
+ titleStyle = attrs.titleStyle,
233
+ showText = attrs.showText,
234
+ textInside = attrs.textInside,
235
+ theme = attrs.theme;
236
+ var percentStyle = {
237
+ height: "".concat(strokeWidth, "px"),
238
+ lineHeight: "".concat(strokeWidth, "px")
239
+ };
240
+ var barStyle = {
241
+ width: "".concat(percent, "%"),
242
+ background: color,
243
+ animationDuration: '3s'
244
+ };
245
+ /** 根据 textInside 来区分何时展示 默认slot*/
246
+ var showDefault = function showDefault() {
247
+ var isTextInside = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
248
+ if (!(showText || slots["default"])) {
249
+ return null;
250
+ }
251
+ if (isTextInside && textInside || !isTextInside && !textInside) {
252
+ return slots === null || slots === void 0 ? void 0 : slots["default"]();
253
+ }
254
+ return null;
255
+ };
256
+ return (0,external_vue_namespaceObject.createVNode)("div", {
257
+ "class": "progress-outer"
258
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
259
+ "class": "".concat(resolveClassName("progress-".concat(size || 'normal')), " progress-bar"),
260
+ "style": percentStyle
261
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
262
+ "style": barStyle,
263
+ "class": _defineProperty({
264
+ 'progress-inner': true
265
+ }, "".concat(resolveClassName("".concat(theme))), true)
266
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
267
+ "class": "inner-text",
268
+ "style": titleStyle
269
+ }, [showDefault()])])]), showDefault(false)]);
270
+ };
271
+ /* harmony default export */ const line = (Line);
272
+ ;// CONCATENATED MODULE: ../../packages/progress/src/progress.tsx
273
+
274
+ /*
275
+ * Tencent is pleased to support the open source community by making
276
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
277
+ *
278
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
279
+ *
280
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
281
+ *
282
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
283
+ *
284
+ * ---------------------------------------------------
285
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
286
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
287
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
288
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
289
+ *
290
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
291
+ * the Software.
292
+ *
293
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
294
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
295
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
296
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
297
+ * IN THE SOFTWARE.
298
+ */
299
+
300
+
301
+
302
+
303
+
304
+ function _isSlot(s) {
305
+ return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
306
+ }
307
+ var progressType = {
308
+ extCls: external_shared_namespaceObject.PropTypes.string,
309
+ type: (0,external_shared_namespaceObject.ProgressType)(),
310
+ percent: external_shared_namespaceObject.PropTypes.number.def(0),
311
+ theme: external_shared_namespaceObject.PropTypes.theme().def(external_shared_namespaceObject.ThemeEnum.PRIMARY),
312
+ size: external_shared_namespaceObject.PropTypes.size(),
313
+ width: external_shared_namespaceObject.PropTypes.number.def(126),
314
+ strokeWidth: external_shared_namespaceObject.PropTypes.number,
315
+ strokeLinecap: (0,external_shared_namespaceObject.ProgressStrokeLineCapType)(),
316
+ textInside: external_shared_namespaceObject.PropTypes.bool.def(false),
317
+ showText: external_shared_namespaceObject.PropTypes.bool.def(true),
318
+ color: external_shared_namespaceObject.PropTypes.string,
319
+ bgColor: external_shared_namespaceObject.PropTypes.string,
320
+ fixed: external_shared_namespaceObject.PropTypes.number.validate(function (value) {
321
+ return value >= 0 && value <= 20;
322
+ }).def(0),
323
+ format: external_shared_namespaceObject.PropTypes.func.def(function (percent) {
324
+ return "".concat(percent, "%");
325
+ }),
326
+ titleStyle: external_shared_namespaceObject.PropTypes.object.def({
327
+ fontSize: '16px',
328
+ verticalAlign: 'middle'
329
+ })
330
+ };
331
+ /* harmony default export */ const progress = ((0,external_vue_namespaceObject.defineComponent)({
332
+ // eslint-disable-next-line vue/no-reserved-component-names
333
+ name: 'Progress',
334
+ props: progressType,
335
+ setup: function setup() {
336
+ var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
337
+ resolveClassName = _usePrefix.resolveClassName;
338
+ return {
339
+ resolveClassName: resolveClassName
340
+ };
341
+ },
342
+ methods: {
343
+ /** 验证进度值 */validPercent: function validPercent(percent) {
344
+ if (!percent || percent < 0) {
345
+ return 0;
346
+ }
347
+ if (percent > 100) {
348
+ return 100;
349
+ }
350
+ return percent;
351
+ },
352
+ /** text 区域展示内容*/renderProcessInfo: function renderProcessInfo() {
353
+ var _a;
354
+ var _this$$props = this.$props,
355
+ showText = _this$$props.showText,
356
+ format = _this$$props.format,
357
+ percent = _this$$props.percent,
358
+ textInside = _this$$props.textInside,
359
+ titleStyle = _this$$props.titleStyle,
360
+ fixed = _this$$props.fixed;
361
+ var formatPercent = format((_a = this.validPercent(percent)) === null || _a === void 0 ? void 0 : _a.toFixed(fixed));
362
+ if ((showText || this.$slots["default"]) && textInside) {
363
+ return this.$slots["default"] ? this.$slots["default"]() : (0,external_vue_namespaceObject.createVNode)("span", null, [formatPercent]);
364
+ }
365
+ if (!showText || textInside) return null;
366
+ return (0,external_vue_namespaceObject.createVNode)("span", {
367
+ "class": "progress-text",
368
+ "style": typeof formatPercent === 'string' ? titleStyle : undefined
369
+ }, [this.$slots["default"] ? this.$slots["default"]() : formatPercent]);
370
+ }
371
+ },
372
+ render: function render() {
373
+ var progressInfo = this.renderProcessInfo();
374
+ var $props = Object.assign(Object.assign({}, this.$props), {
375
+ percent: this.validPercent(this.percent)
376
+ });
377
+ var progress = (0,external_vue_namespaceObject.createVNode)(line, $props, _isSlot(progressInfo) ? progressInfo : {
378
+ "default": function _default() {
379
+ return [progressInfo];
380
+ }
381
+ });
382
+ if (this.type === 'circle' || this.type === 'dashboard') {
383
+ progress = (0,external_vue_namespaceObject.createVNode)(circle, $props, _isSlot(progressInfo) ? progressInfo : {
384
+ "default": function _default() {
385
+ return [progressInfo];
386
+ }
387
+ });
388
+ }
389
+ var progressProps = {
390
+ "class": (0,external_shared_namespaceObject.classes)({
391
+ extCls: !!this.extCls
392
+ }, "".concat(this.resolveClassName('progress'), " ").concat(this.resolveClassName("progress-".concat(this.type))))
393
+ };
394
+ return (0,external_vue_namespaceObject.createVNode)("div", progressProps, [progress]);
395
+ }
396
+ }));
397
+ ;// CONCATENATED MODULE: ../../packages/progress/src/index.ts
398
+ /*
399
+ * Tencent is pleased to support the open source community by making
400
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
401
+ *
402
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
403
+ *
404
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
405
+ *
406
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
407
+ *
408
+ * ---------------------------------------------------
409
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
410
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
411
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
412
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
413
+ *
414
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
415
+ * the Software.
416
+ *
417
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
418
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
419
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
420
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
421
+ * IN THE SOFTWARE.
422
+ */
423
+
424
+
425
+ var BkProgress = (0,external_shared_namespaceObject.withInstall)(progress);
426
+ /* harmony default export */ const src = (BkProgress);
427
+ var __webpack_exports__default = __webpack_exports__.Z;
428
+ export { __webpack_exports__default as default };
@@ -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 {