bkui-vue 0.0.1-beta.470 → 0.0.1-beta.472

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 (104) hide show
  1. package/dist/index.cjs.js +59 -59
  2. package/dist/index.esm.js +11669 -11498
  3. package/dist/index.umd.js +61 -61
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/button/button-group.d.ts +2 -2
  7. package/lib/button/index.d.ts +2 -2
  8. package/lib/button/index.js +1 -1
  9. package/lib/card/card.d.ts +1 -0
  10. package/lib/card/index.d.ts +3 -0
  11. package/lib/card/index.js +1 -1
  12. package/lib/checkbox/checkbox.d.ts +9 -8
  13. package/lib/checkbox/index.d.ts +15 -12
  14. package/lib/checkbox/index.js +1 -1
  15. package/lib/code-diff/index.js +1 -1
  16. package/lib/collapse/collapse-panel.d.ts +1 -0
  17. package/lib/collapse/index.d.ts +1 -0
  18. package/lib/collapse/index.js +1 -1
  19. package/lib/color-picker/color-picker.less +50 -50
  20. package/lib/color-picker/index.js +1 -1
  21. package/lib/config-provider/index.d.ts +1 -1
  22. package/lib/container/container.less +4 -4
  23. package/lib/container/index.js +1 -1
  24. package/lib/dropdown/dropdown.d.ts +1 -0
  25. package/lib/dropdown/dropdown.less +6 -9
  26. package/lib/dropdown/index.d.ts +3 -0
  27. package/lib/dropdown/index.js +1 -1
  28. package/lib/exception/exception.less +15 -15
  29. package/lib/exception/index.js +1 -1
  30. package/lib/form/compose-form-item.d.ts +3 -1
  31. package/lib/form/form-item.d.ts +1 -0
  32. package/lib/form/form.d.ts +1 -0
  33. package/lib/form/index.d.ts +7 -1
  34. package/lib/form/index.js +1 -1
  35. package/lib/input/index.d.ts +7 -7
  36. package/lib/input/input.d.ts +4 -4
  37. package/lib/menu/index.js +1 -1
  38. package/lib/navigation/index.d.ts +3 -0
  39. package/lib/navigation/index.js +1 -1
  40. package/lib/navigation/navigation.d.ts +1 -0
  41. package/lib/notify/index.js +1 -1
  42. package/lib/notify/notify.less +8 -8
  43. package/lib/notify/notifyConstructor.d.ts +1 -0
  44. package/lib/pagination/index.d.ts +10 -7
  45. package/lib/pagination/index.js +1 -1
  46. package/lib/pagination/pagination.d.ts +5 -4
  47. package/lib/process/index.d.ts +3 -0
  48. package/lib/process/index.js +1 -1
  49. package/lib/process/process.d.ts +1 -0
  50. package/lib/process/process.less +7 -7
  51. package/lib/progress/index.d.ts +13 -7
  52. package/lib/progress/index.js +1 -1
  53. package/lib/progress/progress.d.ts +5 -3
  54. package/lib/progress/progress.less +8 -8
  55. package/lib/radio/index.d.ts +10 -4
  56. package/lib/radio/index.js +1 -1
  57. package/lib/radio/radio-button.d.ts +4 -3
  58. package/lib/radio/radio-group.d.ts +4 -2
  59. package/lib/radio/radio.d.ts +1 -0
  60. package/lib/rate/index.d.ts +4 -4
  61. package/lib/rate/rate.d.ts +2 -2
  62. package/lib/resize-layout/index.d.ts +3 -0
  63. package/lib/resize-layout/index.js +1 -1
  64. package/lib/resize-layout/resize-layout.d.ts +1 -0
  65. package/lib/resize-layout/resize-layout.less +23 -23
  66. package/lib/select/index.d.ts +15 -18
  67. package/lib/select/index.js +1 -1
  68. package/lib/select/option.d.ts +6 -9
  69. package/lib/select/select.d.ts +5 -5
  70. package/lib/select/type.d.ts +1 -1
  71. package/lib/shared/vue-types.d.ts +1 -1
  72. package/lib/sideslider/index.js +1 -1
  73. package/lib/sideslider/sideslider.less +9 -9
  74. package/lib/steps/index.d.ts +7 -4
  75. package/lib/steps/index.js +1 -1
  76. package/lib/steps/steps.d.ts +4 -3
  77. package/lib/steps/steps.less +62 -62
  78. package/lib/swiper/index.js +1 -1
  79. package/lib/swiper/swiper.less +15 -13
  80. package/lib/swiper/swiper.variable.css +122 -0
  81. package/lib/switcher/index.d.ts +4 -4
  82. package/lib/switcher/index.js +1 -1
  83. package/lib/switcher/switcher.d.ts +2 -2
  84. package/lib/switcher/switcher.less +29 -29
  85. package/lib/table/index.d.ts +1 -1
  86. package/lib/table-column/index.d.ts +1 -1
  87. package/lib/tag/index.d.ts +3 -0
  88. package/lib/tag/index.js +1 -1
  89. package/lib/tag/tag.css +2 -2
  90. package/lib/tag/tag.d.ts +1 -0
  91. package/lib/tag/tag.less +14 -13
  92. package/lib/tag/tag.variable.css +2 -2
  93. package/lib/tag-input/index.d.ts +9 -9
  94. package/lib/tag-input/index.js +1 -1
  95. package/lib/tag-input/tag-input.d.ts +3 -3
  96. package/lib/timeline/index.d.ts +3 -0
  97. package/lib/timeline/index.js +1 -1
  98. package/lib/timeline/timeline.d.ts +1 -0
  99. package/lib/timeline/timeline.less +35 -35
  100. package/lib/transfer/index.d.ts +3 -0
  101. package/lib/transfer/index.js +1 -1
  102. package/lib/transfer/transfer.d.ts +1 -0
  103. package/lib/transfer/transfer.less +2 -2
  104. package/package.json +1 -1
@@ -105,6 +105,7 @@ declare const BkProcess: {
105
105
  defaultProcessList: import("vue").Ref<any[]>;
106
106
  paddingBottom: import("vue").Ref<number>;
107
107
  jumpTo: (index: any) => Promise<void>;
108
+ resolveClassName: (cls: string) => string;
108
109
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curProcess")[], string, {
109
110
  extCls: string;
110
111
  list: unknown[];
@@ -168,6 +169,7 @@ declare const BkProcess: {
168
169
  defaultProcessList: import("vue").Ref<any[]>;
169
170
  paddingBottom: import("vue").Ref<number>;
170
171
  jumpTo: (index: any) => Promise<void>;
172
+ resolveClassName: (cls: string) => string;
171
173
  }> & {} & import("vue").ComponentCustomProperties & {};
172
174
  __isFragment?: never;
173
175
  __isTeleport?: never;
@@ -208,6 +210,7 @@ declare const BkProcess: {
208
210
  defaultProcessList: import("vue").Ref<any[]>;
209
211
  paddingBottom: import("vue").Ref<number>;
210
212
  jumpTo: (index: any) => Promise<void>;
213
+ resolveClassName: (cls: string) => string;
211
214
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curProcess")[], "click" | "update:curProcess", {
212
215
  extCls: string;
213
216
  list: unknown[];
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("../config-provider"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../icon"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("../config-provider"),require("../icon")):e(t["../shared"],t.vue,t["../config-provider"],t["../icon"]);for(var o in r)("object"==typeof exports?exports:t)[o]=r[o]}}(self,((t,e,r,o)=>(()=>{var n={2717:t=>{"use strict";t.exports=r},6870:t=>{"use strict";t.exports=o},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},7609:(t,e,r)=>{var o=r(7425).default;function n(){"use strict";t.exports=n=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,c=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,o){var n=e&&e.prototype instanceof y?e:y,i=Object.create(n.prototype),a=new O(o||[]);return c(i,"_invoke",{value:S(t,r,a)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h={};function y(){}function v(){}function m(){}var g={};f(g,u,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(T([])));x&&x!==r&&i.call(x,u)&&(g=x);var w=m.prototype=y.prototype=Object.create(g);function P(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(n,c,a,u){var s=d(t[n],t,c);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==o(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var n;c(this,"_invoke",{value:function(t,o){function i(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(i,i):i()}})}function S(t,e,r){var o="suspendedStart";return function(n,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw i;return{value:void 0,done:!0}}for(r.method=n,r.arg=i;;){var c=r.delegate;if(c){var a=j(c,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var u=d(t,e,r);if("normal"===u.type){if(o=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o="completed",r.method="throw",r.arg=u.arg)}}}function j(t,e){var r=e.method,o=t.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var n=d(o,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return v.prototype=m,c(w,"constructor",{value:m,configurable:!0}),c(m,"constructor",{value:v,configurable:!0}),v.displayName=f(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,f(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},P(L.prototype),f(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var c=new L(p(t,r,o,n),i);return e.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},P(w),f(w,l,"Generator"),f(w,u,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var o in e)r.push(o);return r.reverse(),function t(){for(;r.length;){var o=r.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},e.values=T,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return c.type="throw",c.arg=t,e.next=r,o&&(e.method="next",e.arg=void 0),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o],c=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var a=i.call(n,"catchLoc"),u=i.call(n,"finallyLoc");if(a&&u){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(a){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var c=n?n.completion:{};return c.type=t,c.arg=e,n?(this.method="next",this.next=n.finallyLoc,h):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;_(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},7425:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2841:(t,e,r)=>{var o=r(7609)();t.exports=o;try{regeneratorRuntime=o}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},i={};function c(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,c),r.exports}c.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return c.d(e,{a:e}),e},c.d=(t,e)=>{for(var r in e)c.o(e,r)&&!c.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},c.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),c.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";c.r(a),c.d(a,{default:()=>p});var t=c(4212);function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var o=c(748),n=c(2841),i=c.n(n);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var u=c(2717),s=c(6870),l={list:t.PropTypes.array.def([]),controllable:t.PropTypes.bool.def(!1),showSteps:t.PropTypes.bool.def(!1),curProcess:t.PropTypes.number.def(0),displayKey:t.PropTypes.string.def("content"),extCls:t.PropTypes.string};const f=(0,o.defineComponent)({name:"Process",props:l,emits:["update:curProcess","click"],setup:function(t,e){var n=this,c=e.emit,a=(0,u.useLocale)("process"),s=(0,u.useLocale)("lang"),l=(0,o.ref)([]),f=(0,o.ref)(0),p=function(){var e,o,n,i;(e=l.value).splice.apply(e,[0,l.value.length].concat([{content:a.value.step1},{content:a.value.step2},{content:a.value.step3},{content:a.value.step4}])),(null===(o=t.list)||void 0===o?void 0:o.length)&&(n=l.value).splice.apply(n,[0,l.value.length].concat(function(t){if(Array.isArray(t))return r(t)}(i=t.list)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(t,e):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))};return(0,o.watch)((function(){return s.value}),(function(){p()})),(0,o.onMounted)(p),{defaultProcessList:l,paddingBottom:f,jumpTo:function(e){return r=n,o=void 0,a=void 0,u=i().mark((function r(){return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:try{t.controllable&&e!==t.curProcess&&(c("update:curProcess",e),c("click",e))}catch(t){console.warn(t)}case 1:case"end":return r.stop()}}),r)})),new(a||(a=Promise))((function(t,e){function n(t){try{c(u.next(t))}catch(t){e(t)}}function i(t){try{c(u.throw(t))}catch(t){e(t)}}function c(e){var r;e.done?t(e.value):(r=e.value,r instanceof a?r:new a((function(t){t(r)}))).then(n,i)}c((u=u.apply(r,o||[])).next())}));var r,o,a,u}}},render:function(){var r,n,i,c=this,a=(0,t.classes)((r={},n="".concat(this.extCls),i=!!this.extCls,(n=function(t){var r=function(t,r){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,"string");if("object"!==e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===e(r)?r:String(r)}(n))in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r),"".concat("bk-process")),u=function(t){return"loading"===t.status},l=function(t){return"error"===t.status},f=function(t,e){return t===c.curProcess-1&&u(e)?(0,o.createVNode)(s.Circle,{class:"bk-icon bk-process-icon icon-loading"},null):t===c.curProcess-1&&l(e)?(0,o.createVNode)(s.Error,{class:"bk-process-icon icon-error"},null):t===c.curProcess-1&&function(t){return t.icon?t.icon:""}(e)?(0,o.createVNode)("span",{class:"bk-process-icon-custom"},[(0,o.createVNode)(e.icon,null,null)]):function(t){return c.curProcess>=t+1||"done"===c.defaultProcessList[t].status}(t)?(0,o.createVNode)(s.Done,{class:"bk-process-icon-done"},null):void 0};return(0,o.createVNode)("div",{class:a},[(0,o.createVNode)("ul",{style:{paddingBottom:"".concat(this.paddingBottom,"px")}},[this.defaultProcessList.map((function(t,e){return(0,o.createVNode)("li",{onClick:function(){c.jumpTo(e+1)},style:{cursor:c.controllable?"pointer":""},class:{success:c.curProcess>=e+1,current:u(t)&&e===c.curProcess-1,error:l(t)&&e===c.curProcess-1}},[(0,o.createVNode)("div",null,[(0,o.createVNode)("span",{class:"display"},[t[c.displayKey]]),f(e,t)])])}))])])}}),p=(0,t.withInstall)(f)})(),a})()));
2
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("../config-provider"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../icon"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("../config-provider"),require("../icon")):e(t["../shared"],t.vue,t["../config-provider"],t["../icon"]);for(var o in r)("object"==typeof exports?exports:t)[o]=r[o]}}(self,((t,e,r,o)=>(()=>{var n={2717:t=>{"use strict";t.exports=r},6870:t=>{"use strict";t.exports=o},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},7609:(t,e,r)=>{var o=r(7425).default;function n(){"use strict";t.exports=n=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,o){var n=e&&e.prototype instanceof y?e:y,i=Object.create(n.prototype),c=new N(o||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h={};function y(){}function v(){}function m(){}var g={};f(g,s,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(O([])));x&&x!==r&&i.call(x,s)&&(g=x);var w=m.prototype=y.prototype=Object.create(g);function P(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(n,a,c,s){var u=d(t[n],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==o(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var n;a(this,"_invoke",{value:function(t,o){function i(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(i,i):i()}})}function S(t,e,r){var o="suspendedStart";return function(n,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw i;return{value:void 0,done:!0}}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var c=j(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var s=d(t,e,r);if("normal"===s.type){if(o=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o="completed",r.method="throw",r.arg=s.arg)}}}function j(t,e){var r=e.method,o=t.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var n=d(o,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return v.prototype=m,a(w,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:v,configurable:!0}),v.displayName=f(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,f(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},P(L.prototype),f(L.prototype,u,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var a=new L(p(t,r,o,n),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(w),f(w,l,"Generator"),f(w,s,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var o in e)r.push(o);return r.reverse(),function t(){for(;r.length;){var o=r.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},e.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return a.type="throw",a.arg=t,e.next=r,o&&(e.method="next",e.arg=void 0),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o],a=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var c=i.call(n,"catchLoc"),s=i.call(n,"finallyLoc");if(c&&s){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(c){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=t,a.arg=e,n?(this.method="next",this.next=n.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;_(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},7425:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2841:(t,e,r)=>{var o=r(7609)();t.exports=o;try{regeneratorRuntime=o}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var c={};return(()=>{"use strict";a.r(c),a.d(c,{default:()=>p});var t=a(4212);function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var o=a(748),n=a(2841),i=a.n(n);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var s=a(2717),u=a(6870),l={list:t.PropTypes.array.def([]),controllable:t.PropTypes.bool.def(!1),showSteps:t.PropTypes.bool.def(!1),curProcess:t.PropTypes.number.def(0),displayKey:t.PropTypes.string.def("content"),extCls:t.PropTypes.string};const f=(0,o.defineComponent)({name:"Process",props:l,emits:["update:curProcess","click"],setup:function(t,e){var n=this,a=e.emit,c=(0,s.useLocale)("process"),u=(0,s.useLocale)("lang"),l=(0,o.ref)([]),f=(0,o.ref)(0),p=function(){var e,o,n,i;(e=l.value).splice.apply(e,[0,l.value.length].concat([{content:c.value.step1},{content:c.value.step2},{content:c.value.step3},{content:c.value.step4}])),(null===(o=t.list)||void 0===o?void 0:o.length)&&(n=l.value).splice.apply(n,[0,l.value.length].concat(function(t){if(Array.isArray(t))return r(t)}(i=t.list)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(t,e):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))};(0,o.watch)((function(){return u.value}),(function(){p()})),(0,o.onMounted)(p);var d=(0,s.usePrefix)().resolveClassName;return{defaultProcessList:l,paddingBottom:f,jumpTo:function(e){return r=n,o=void 0,c=void 0,s=i().mark((function r(){return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:try{t.controllable&&e!==t.curProcess&&(a("update:curProcess",e),a("click",e))}catch(t){console.warn(t)}case 1:case"end":return r.stop()}}),r)})),new(c||(c=Promise))((function(t,e){function n(t){try{a(s.next(t))}catch(t){e(t)}}function i(t){try{a(s.throw(t))}catch(t){e(t)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof c?r:new c((function(t){t(r)}))).then(n,i)}a((s=s.apply(r,o||[])).next())}));var r,o,c,s},resolveClassName:d}},render:function(){var r,n,i,a=this,c=this.resolveClassName("process"),s=(0,t.classes)((r={},n="".concat(this.extCls),i=!!this.extCls,(n=function(t){var r=function(t,r){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,"string");if("object"!==e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===e(r)?r:String(r)}(n))in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r),"".concat(c)),l=function(t){return"loading"===t.status},f=function(t){return"error"===t.status},p=function(t,e){return t===a.curProcess-1&&l(e)?(0,o.createVNode)(u.Circle,{class:"".concat(a.resolveClassName("icon")," ").concat(a.resolveClassName("process-icon")," icon-loading")},null):t===a.curProcess-1&&f(e)?(0,o.createVNode)(u.Error,{class:"".concat(a.resolveClassName("process-icon")," icon-error")},null):t===a.curProcess-1&&function(t){return t.icon?t.icon:""}(e)?(0,o.createVNode)("span",{class:"".concat(a.resolveClassName("process-icon-custom"))},[(0,o.createVNode)(e.icon,null,null)]):function(t){return a.curProcess>=t+1||"done"===a.defaultProcessList[t].status}(t)?(0,o.createVNode)(u.Done,{class:"".concat(a.resolveClassName("process-icon-done"))},null):void 0};return(0,o.createVNode)("div",{class:s},[(0,o.createVNode)("ul",{style:{paddingBottom:"".concat(this.paddingBottom,"px")}},[this.defaultProcessList.map((function(t,e){return(0,o.createVNode)("li",{onClick:function(){a.jumpTo(e+1)},style:{cursor:a.controllable?"pointer":""},class:{success:a.curProcess>=e+1,current:l(t)&&e===a.curProcess-1,error:f(t)&&e===a.curProcess-1}},[(0,o.createVNode)("div",null,[(0,o.createVNode)("span",{class:"display"},[t[a.displayKey]]),p(e,t)])])}))])])}}),p=(0,t.withInstall)(f)})(),c})()));
@@ -88,6 +88,7 @@ declare const _default: import("vue").DefineComponent<{
88
88
  defaultProcessList: import("vue").Ref<any[]>;
89
89
  paddingBottom: import("vue").Ref<number>;
90
90
  jumpTo: (index: any) => Promise<void>;
91
+ resolveClassName: (cls: string) => string;
91
92
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curProcess")[], "click" | "update:curProcess", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
92
93
  list: import("vue-types").VueTypeValidableDef<unknown[]> & {
93
94
  default: () => unknown[];
@@ -6,7 +6,7 @@
6
6
  box-sizing: border-box;
7
7
  }
8
8
 
9
- .bk-process {
9
+ .@{bk-prefix}-process {
10
10
  position: relative;
11
11
  display: flex;
12
12
 
@@ -16,7 +16,7 @@
16
16
  }
17
17
  }
18
18
 
19
- .bk-process-toggle {
19
+ .@{bk-prefix}-process-toggle {
20
20
  position: relative;
21
21
  left: 15px;
22
22
  width: 24px;
@@ -37,7 +37,7 @@
37
37
  }
38
38
  }
39
39
 
40
- .bk-process-icon {
40
+ .@{bk-prefix}-process-icon {
41
41
  &-done {
42
42
  display: inline-block;
43
43
  font-size: 22px;
@@ -50,7 +50,7 @@
50
50
 
51
51
  }
52
52
 
53
- .bk-icon {
53
+ .@{bk-prefix}-icon {
54
54
  &.icon-loading {
55
55
  display: inline-block;
56
56
  margin-left: 5px;
@@ -133,7 +133,7 @@
133
133
  content: '';
134
134
  }
135
135
 
136
- .bk-process-step {
136
+ .@{bk-prefix}-process-step {
137
137
  font-size: 12px;
138
138
  // color: $fnMainColor;
139
139
 
@@ -180,7 +180,7 @@
180
180
  border-color: transparent transparent transparent @primary-color;
181
181
  }
182
182
 
183
- >.bk-spin-loading {
183
+ >.@{bk-prefix}-spin-loading {
184
184
  vertical-align: -3px;
185
185
  }
186
186
  }
@@ -193,7 +193,7 @@
193
193
  border-color: transparent transparent transparent @danger-color;
194
194
  }
195
195
 
196
- >.bk-spin-loading {
196
+ >.@{bk-prefix}-spin-loading {
197
197
  vertical-align: -3px;
198
198
  }
199
199
 
@@ -63,7 +63,7 @@ declare const BkProgress: {
63
63
  }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
64
64
  [key: string]: any;
65
65
  }>) => void)[];
66
- readonly size?: "default" | "small" | "large";
66
+ readonly size?: "small" | "large" | "default";
67
67
  };
68
68
  $attrs: {
69
69
  [x: string]: unknown;
@@ -97,7 +97,7 @@ declare const BkProgress: {
97
97
  theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
98
98
  default: "success" | "warning" | "danger" | "primary";
99
99
  };
100
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
100
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
101
101
  width: import("vue-types").VueTypeValidableDef<number> & {
102
102
  default: number;
103
103
  } & {
@@ -150,7 +150,9 @@ declare const BkProgress: {
150
150
  [key: string]: any;
151
151
  };
152
152
  };
153
- }>>, {}, unknown, {}, {
153
+ }>>, {
154
+ resolveClassName: (cls: string) => string;
155
+ }, unknown, {}, {
154
156
  validPercent(percent?: number): number;
155
157
  renderProcessInfo(): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
156
158
  [key: string]: any;
@@ -211,7 +213,7 @@ declare const BkProgress: {
211
213
  theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
212
214
  default: "success" | "warning" | "danger" | "primary";
213
215
  };
214
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
216
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
215
217
  width: import("vue-types").VueTypeValidableDef<number> & {
216
218
  default: number;
217
219
  } & {
@@ -264,7 +266,9 @@ declare const BkProgress: {
264
266
  [key: string]: any;
265
267
  };
266
268
  };
267
- }>> & import("vue").ShallowUnwrapRef<{}> & {} & {
269
+ }>> & import("vue").ShallowUnwrapRef<{
270
+ resolveClassName: (cls: string) => string;
271
+ }> & {} & {
268
272
  validPercent(percent?: number): number;
269
273
  renderProcessInfo(): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
270
274
  [key: string]: any;
@@ -292,7 +296,7 @@ declare const BkProgress: {
292
296
  theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
293
297
  default: "success" | "warning" | "danger" | "primary";
294
298
  };
295
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
299
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
296
300
  width: import("vue-types").VueTypeValidableDef<number> & {
297
301
  default: number;
298
302
  } & {
@@ -345,7 +349,9 @@ declare const BkProgress: {
345
349
  [key: string]: any;
346
350
  };
347
351
  };
348
- }>>, {}, unknown, {}, {
352
+ }>>, {
353
+ resolveClassName: (cls: string) => string;
354
+ }, unknown, {}, {
349
355
  validPercent(percent?: number): number;
350
356
  renderProcessInfo(): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
351
357
  [key: string]: any;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,((e,t)=>(()=>{"use strict";var r={4212:t=>{t.exports=e},748:e=>{e.exports=t}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,n),s.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 s={};return(()=>{n.r(s),n.d(s,{default:()=>p});var e=n(4212),t=n(748);const r=function(e,r){var o=r.attrs,n=r.slots,s=o.width,c=o.percent,i=o.strokeWidth,a=o.color,l=o.strokeLinecap,p=o.theme,d=o.type,u=o.bgColor,f=o.titleStyle,y=i||6,h=s||126,b={width:"number"==typeof h?"".concat(h,"px"):h,height:"number"==typeof h?"".concat(h,"px"):h,fontSize:"".concat(.15*h+6,"px")},v=50-y/2,m="dashboard"===d,x=2*Math.PI*v,g=m?.75:1,P="".concat(-1*x*(1-g)/2,"px"),k={strokeDasharray:"".concat(x*g,"px, ").concat(x,"px"),strokeDashoffset:P},T={strokeDasharray:"".concat(x*g*(c/100),"px, ").concat(x,"px"),strokeDashoffset:P,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"},S="\n M 50 50\n m 0 ".concat(m?"":"-").concat(v,"\n a ").concat(v," ").concat(v," 0 1 1 0 ").concat(m?"-":"").concat(2*v,"\n a ").concat(v," ").concat(v," 0 1 1 0 ").concat(m?"":"-").concat(2*v,"\n "),j={d:S,stroke:u||"#f5f5f5","stroke-linecap":l,"stroke-width":y,"fill-opacity":"0",class:"process-circle-trail",style:k},w={d:S,stroke:a||"#13ce66","stroke-linecap":l,"stroke-width":c>0&&y||0,"fill-opacity":"0",class:"process-circle-path bk-".concat(p,"-circle-trail"),style:T};return(0,t.createVNode)("div",{class:"progress-outer-circle",style:b},[(0,t.createVNode)("svg",{viewBox:"0 0 100 100"},[(0,t.createVNode)("path",j,null),(0,t.createVNode)("path",w,null)]),(0,t.createVNode)("span",{class:"progress-circle-text",style:f},[null==n?void 0:n.default()])])};function o(e){return o="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},o(e)}function c(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}const i=function(e,r){var o,n,s=r.attrs,i=r.slots,a=s.percent,l=s.strokeWidth,p=s.size,d=s.color,u=s.titleStyle,f=s.showText,y=s.textInside,h=s.theme,b={height:"".concat(l,"px"),lineHeight:"".concat(l,"px")},v={width:"".concat(a,"%"),background:d,animationDuration:"3s"},m=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(f||i.default)&&(e&&y||!e&&!y)?null==i?void 0:i.default():null};return(0,t.createVNode)("div",{class:"progress-outer"},[(0,t.createVNode)("div",{class:"bk-progress-".concat(p||"normal"," progress-bar"),style:b},[(0,t.createVNode)("div",{style:v,class:(o={"progress-inner":!0},n="bk-".concat(h),!0,(n=c(n))in o?Object.defineProperty(o,n,{value:true,enumerable:!0,configurable:!0,writable:!0}):o[n]=true,o)},[(0,t.createVNode)("div",{class:"inner-text",style:u},[m()])])]),m(!1)])};function a(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,t.isVNode)(e)}const l=(0,t.defineComponent)({name:"Progress",props:{extCls:e.PropTypes.string,type:e.PropTypes.string.validate((function(e){return["line","circle","dashboard"].includes(e)})).def("line"),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:e.PropTypes.string.def("round"),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"})},setup:function(){return{}},methods:{validPercent:function(e){return!e||e<0?0:e>100?100:e},renderProcessInfo:function(){var e,r=this.$props,o=r.showText,n=r.format,s=r.percent,c=r.textInside,i=r.titleStyle,a=r.fixed,l=n(null===(e=this.validPercent(s))||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 o=this.renderProcessInfo(),n=Object.assign(Object.assign({},this.$props),{percent:this.validPercent(this.percent)}),s=(0,t.createVNode)(i,n,a(o)?o:{default:function(){return[o]}});"circle"!==this.type&&"dashboard"!==this.type||(s=(0,t.createVNode)(r,n,a(o)?o:{default:function(){return[o]}}));var c={class:(0,e.classes)({extCls:!!this.extCls},"bk-progress bk-progress-".concat(this.type))};return(0,t.createVNode)("div",c,[s])}}),p=(0,e.withInstall)(l)})(),s})()));
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,d=s.strokeLinecap,u=s.theme,f=s.type,y=s.bgColor,h=s.titleStyle,v=l||6,b=i||126,m={width:"number"==typeof b?"".concat(b,"px"):b,height:"number"==typeof b?"".concat(b,"px"):b,fontSize:"".concat(.15*b+6,"px")},x=50-v/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":d,"stroke-width":v,"fill-opacity":"0",class:"process-circle-trail",style:S},V={d:j,stroke:p||"#13ce66","stroke-linecap":d,"stroke-width":a>0&&v||0,"fill-opacity":"0",class:"process-circle-path ".concat(c("".concat(u,"-circle-trail"))),style:k};return(0,t.createVNode)("div",{class:"progress-outer-circle",style:m},[(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:h},[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,d=c.strokeWidth,u=c.size,f=c.color,y=c.titleStyle,h=c.showText,v=c.textInside,b=c.theme,m={height:"".concat(d,"px"),lineHeight:"".concat(d,"px")},x={width:"".concat(p,"%"),background:f,animationDuration:"3s"},g=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(h||a.default)&&(e&&v||!e&&!v)?null==a?void 0:a.default():null};return(0,t.createVNode)("div",{class:"progress-outer"},[(0,t.createVNode)("div",{class:"".concat(l("progress-".concat(u||"normal"))," progress-bar"),style:m},[(0,t.createVNode)("div",{style:x,class:(s={"progress-inner":!0},n="".concat(l("".concat(b))),!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)}const p=(0,t.defineComponent)({name:"Progress",props:{extCls:e.PropTypes.string,type:e.PropTypes.string.validate((function(e){return["line","circle","dashboard"].includes(e)})).def("line"),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:e.PropTypes.string.def("round"),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"})},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)(p)})(),c})()));
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
18
18
  theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
19
19
  default: "success" | "warning" | "danger" | "primary";
20
20
  };
21
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
21
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
22
22
  width: import("vue-types").VueTypeValidableDef<number> & {
23
23
  default: number;
24
24
  } & {
@@ -71,7 +71,9 @@ declare const _default: import("vue").DefineComponent<{
71
71
  [key: string]: any;
72
72
  };
73
73
  };
74
- }, {}, unknown, {}, {
74
+ }, {
75
+ resolveClassName: (cls: string) => string;
76
+ }, unknown, {}, {
75
77
  /** 验证进度值 */
76
78
  validPercent(percent?: number): number;
77
79
  /** text 区域展示内容*/
@@ -97,7 +99,7 @@ declare const _default: import("vue").DefineComponent<{
97
99
  theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
98
100
  default: "success" | "warning" | "danger" | "primary";
99
101
  };
100
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
102
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
101
103
  width: import("vue-types").VueTypeValidableDef<number> & {
102
104
  default: number;
103
105
  } & {
@@ -19,15 +19,15 @@
19
19
  background: #f0f1f5;
20
20
  border-radius: 50px;
21
21
 
22
- &.bk-progress-small {
22
+ &.@{bk-prefix}-progress-small {
23
23
  height: 2px;
24
24
  }
25
25
 
26
- &.bk-progress-normal {
26
+ &.@{bk-prefix}-progress-normal {
27
27
  height: 4px;
28
28
  }
29
29
 
30
- &.bk-progress-large {
30
+ &.@{bk-prefix}-progress-large {
31
31
  height: 12px;
32
32
  }
33
33
  }
@@ -41,19 +41,19 @@
41
41
  border-radius: 50px;
42
42
  transition: width .5s ease;
43
43
 
44
- &.bk-primary {
44
+ &.@{bk-prefix}-primary {
45
45
  background: @primary-color;
46
46
  }
47
47
 
48
- &.bk-success {
48
+ &.@{bk-prefix}-success {
49
49
  background: @success-color;
50
50
  }
51
51
 
52
- &.bk-warning {
52
+ &.@{bk-prefix}-warning {
53
53
  background: @warning-color;
54
54
  }
55
55
 
56
- &.bk-danger {
56
+ &.@{bk-prefix}-danger {
57
57
  background: @danger-color;
58
58
  }
59
59
  }
@@ -87,4 +87,4 @@
87
87
 
88
88
  .@{bk-prefix}-progress-circle, .@{bk-prefix}-progress-dashboard {
89
89
  position: relative;
90
- }
90
+ }
@@ -103,6 +103,7 @@ declare const BkRadio: {
103
103
  handleBlur: () => void;
104
104
  handleFocus: () => void;
105
105
  handleChange: (event: Event) => void;
106
+ resolveClassName: (cls: string) => string;
106
107
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], string, {
107
108
  name: string;
108
109
  disabled: boolean;
@@ -161,6 +162,7 @@ declare const BkRadio: {
161
162
  handleBlur: () => void;
162
163
  handleFocus: () => void;
163
164
  handleChange: (event: Event) => void;
165
+ resolveClassName: (cls: string) => string;
164
166
  }> & {} & import("vue").ComponentCustomProperties & {};
165
167
  __isFragment?: never;
166
168
  __isTeleport?: never;
@@ -198,6 +200,7 @@ declare const BkRadio: {
198
200
  handleBlur: () => void;
199
201
  handleFocus: () => void;
200
202
  handleChange: (event: Event) => void;
203
+ resolveClassName: (cls: string) => string;
201
204
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", {
202
205
  name: string;
203
206
  disabled: boolean;
@@ -222,7 +225,9 @@ declare const BkRadio: {
222
225
  type: import("vue-types").VueTypeDef<string> & {
223
226
  default: string;
224
227
  };
225
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
228
+ }, {
229
+ resolveClassName: (cls: string) => string;
230
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
226
231
  name: import("vue-types").VueTypeValidableDef<string> & {
227
232
  default: string;
228
233
  } & {
@@ -244,8 +249,8 @@ declare const BkRadio: {
244
249
  onChange?: (...args: any[]) => any;
245
250
  "onUpdate:modelValue"?: (...args: any[]) => any;
246
251
  }, {
247
- name: string;
248
252
  type: string;
253
+ name: string;
249
254
  disabled: boolean;
250
255
  withValidate: boolean;
251
256
  }, {}>;
@@ -271,7 +276,7 @@ declare const BkRadio: {
271
276
  } & {
272
277
  default: boolean;
273
278
  };
274
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
279
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
275
280
  }, {
276
281
  isFocused: import("vue").Ref<boolean>;
277
282
  isChecked: import("vue").Ref<boolean>;
@@ -280,6 +285,7 @@ declare const BkRadio: {
280
285
  handleBlur: () => void;
281
286
  handleFocus: () => void;
282
287
  handleChange: (event: Event) => void;
288
+ resolveClassName: (cls: string) => string;
283
289
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
284
290
  name: import("vue-types").VueTypeValidableDef<string> & {
285
291
  default: string;
@@ -302,7 +308,7 @@ declare const BkRadio: {
302
308
  } & {
303
309
  default: boolean;
304
310
  };
305
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
311
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
306
312
  }>> & {
307
313
  onChange?: (...args: any[]) => any;
308
314
  "onUpdate:modelValue"?: (...args: any[]) => any;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{r.r(a),r.d(a,{BkRadio:()=>b,BkRadioButton:()=>p,BkRadioGroup:()=>h,default:()=>v});var e=r(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function o(e,o){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,a,i,l=[],s=!0,u=!1;try{if(a=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;s=!1}else for(;!(s=(n=a.call(o)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,r=e}finally{try{if(!s&&null!=o.return&&(i=o.return(),Object(i)!==i))return}finally{if(u)throw r}}return l}}(e,o)||function(e,o){if(e){if("string"==typeof e)return t(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,o):void 0}}(e,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var n=r(748),i=Symbol("RadioGroup");function l(){var e=(0,n.ref)(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}var s=function(){var t=(0,n.getCurrentInstance)(),o=t.props,r=t.emit,a=(0,n.inject)(i,e.EMPTY_OBJ),l=!(0,e.isEmptyObj)(a),s=(0,n.ref)(!1),u=(0,n.computed)((function(){return!(!l||!a.props.disabled)||o.disabled}));return l?(0,n.watch)((function(){return a.props.modelValue}),(function(e){s.value=e===o.label}),{immediate:!0}):(0,n.watch)((function(){return o.modelValue}),(function(e){""!==e&&(s.value=e===o.label)}),{immediate:!0}),(0,n.onMounted)((function(){l&&a.register(t.proxy)})),(0,n.onBeforeUnmount)((function(){l&&a.unregister(t.proxy)})),{isChecked:s,isDisabled:u,setChecked:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];s.value=e},handleChange:function(e){if(!u.value){var i=e.target;s.value=i.checked;var d=s.value?o.label:"";r("update:modelValue",d),r("change",d),l&&a.handleChange(t.proxy),(0,n.nextTick)((function(){i.checked!==s.value&&(i.checked=s.value)}))}}}},u={name:e.PropTypes.string.def(""),label:e.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:e.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1)};const d=(0,n.defineComponent)({name:"Radio",props:u,emits:["change","update:modelValue"],setup:function(){var e=o(l(),2),t=e[0],n=e[1],r=n.blur,a=n.focus,i=s();return{isFocused:t,isChecked:i.isChecked,isDisabled:i.isDisabled,setChecked:i.setChecked,handleBlur:r,handleFocus:a,handleChange:i.handleChange}},render:function(){var t=this,o=(0,e.classes)({"bk-radio":!0,"is-focused":this.isFocused,"is-disabled":this.isDisabled,"is-checked":this.isChecked});return(0,n.createVNode)("label",{class:o,tabindex:"0"},[(0,n.createVNode)("input",{class:"bk-radio-input",type:"radio",tabindex:"0",value:this.label,checked:this.isChecked,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange},null),t.label||t.$slots.default?(0,n.createVNode)("span",{class:"bk-radio-label"},[t.$slots.default?t.$slots.default():t.label]):null])}});var c={name:e.PropTypes.string.def(""),label:e.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:e.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),size:e.PropTypes.size()};const p=(0,n.defineComponent)({name:"RadioButton",props:c,emits:["change","update:modelValue"],setup:function(){var e=o(l(),2),t=e[0],n=e[1],r=n.blur,a=n.focus,i=s();return{isFocused:t,isChecked:i.isChecked,isDisabled:i.isDisabled,setChecked:i.setChecked,handleBlur:r,handleFocus:a,handleChange:i.handleChange}},render:function(){var t=this,o=(0,e.classes)({"bk-radio-button":!0,"is-focused":this.isFocused,"is-disabled":this.isDisabled,"is-checked":this.isChecked});return(0,n.createVNode)("label",{class:o,tabindex:"0"},[(0,n.createVNode)("input",{class:"bk-radio-button-input",type:"radio",tabindex:"0",value:this.label,checked:this.isChecked,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange},null),t.label||t.$slots.default?(0,n.createVNode)("div",{class:"bk-radio-button-label"},[t.$slots.default?t.$slots.default():t.label]):null])}});var f={name:e.PropTypes.string.def(""),modelValue:e.PropTypes.oneOfType([String,Number,Boolean]),disabled:e.PropTypes.bool,withValidate:e.PropTypes.bool.def(!0),type:e.PropTypes.oneOf(["tab","capsule","card"]).def("tab")};const h=(0,n.defineComponent)({name:"RadioGroup",props:f,emits:["change","update:modelValue"],setup:function(t,o){var r=(0,e.useFormItem)(),a=[];return(0,n.provide)(i,{props:t,register:function(e){a.push(e)},unregister:function(e){var t=a.indexOf(e);t>-1&&a.splice(t,1)},handleChange:function(e){var t=e.label;a.forEach((function(t){t!==e&&t.setChecked(!1)})),o.emit("update:modelValue",t),o.emit("change",t)}}),(0,n.watch)((function(){return t.modelValue}),(function(){var e;t.withValidate&&(null===(e=null==r?void 0:r.validate)||void 0===e||e.call(r,"change"))})),(0,n.onMounted)((function(){""!==t.modelValue&&a.forEach((function(e){e.setChecked(e.label===t.modelValue)}))})),{}},render:function(){var e;return(0,n.createVNode)("div",{class:["bk-radio-group","bk-radio-".concat(this.type)]},[null===(e=this.$slots)||void 0===e?void 0:e.default()])}});var b=(0,e.withInstallProps)(d,{Group:h,Button:p});const v=b})(),a})()));
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 o="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider")):t(e["../shared"],e.vue,e["../config-provider"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o)=>(()=>{"use strict";var r={2717:e=>{e.exports=o},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 r[e](o,o.exports,a),o.exports}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 i={};return(()=>{a.r(i),a.d(i,{BkRadio:()=>y,BkRadioButton:()=>b,BkRadioGroup:()=>m,default:()=>g});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 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}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var r,n,a,i,l=[],s=!0,u=!1;try{if(a=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;s=!1}else for(;!(s=(r=a.call(o)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,n=e}finally{try{if(!s&&null!=o.return&&(i=o.return(),Object(i)!==i))return}finally{if(u)throw n}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=a(748),s=a(2717),u=Symbol("RadioGroup");function d(){var e=(0,l.ref)(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}var c=function(){var t=(0,l.getCurrentInstance)(),o=t.props,r=t.emit,n=(0,l.inject)(u,e.EMPTY_OBJ),a=!(0,e.isEmptyObj)(n),i=(0,l.ref)(!1),s=(0,l.computed)((function(){return!(!a||!n.props.disabled)||o.disabled}));return a?(0,l.watch)((function(){return n.props.modelValue}),(function(e){i.value=e===o.label}),{immediate:!0}):(0,l.watch)((function(){return o.modelValue}),(function(e){""!==e&&(i.value=e===o.label)}),{immediate:!0}),(0,l.onMounted)((function(){a&&n.register(t.proxy)})),(0,l.onBeforeUnmount)((function(){a&&n.unregister(t.proxy)})),{isChecked:i,isDisabled:s,setChecked:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];i.value=e},handleChange:function(e){if(!s.value){var u=e.target;i.value=u.checked;var d=i.value?o.label:"";r("update:modelValue",d),r("change",d),a&&n.handleChange(t.proxy),(0,l.nextTick)((function(){u.checked!==i.value&&(u.checked=i.value)}))}}}},f={name:e.PropTypes.string.def(""),label:e.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:e.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1)};const p=(0,l.defineComponent)({name:"Radio",props:f,emits:["change","update:modelValue"],setup:function(){var e=n(d(),2),t=e[0],o=e[1],r=o.blur,a=o.focus,i=c();return{isFocused:t,isChecked:i.isChecked,isDisabled:i.isDisabled,setChecked:i.setChecked,handleBlur:r,handleFocus:a,handleChange:i.handleChange,resolveClassName:(0,s.usePrefix)().resolveClassName}},render:function(){var t,r=this,n=(0,e.classes)((o(t={},"".concat(this.resolveClassName("radio")),!0),o(t,"is-focused",this.isFocused),o(t,"is-disabled",this.isDisabled),o(t,"is-checked",this.isChecked),t));return(0,l.createVNode)("label",{class:n,tabindex:"0"},[(0,l.createVNode)("input",{class:"".concat(this.resolveClassName("radio-input")),type:"radio",tabindex:"0",value:this.label,checked:this.isChecked,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange},null),r.label||r.$slots.default?(0,l.createVNode)("span",{class:"".concat(r.resolveClassName("radio-label"))},[r.$slots.default?r.$slots.default():r.label]):null])}});var h={name:e.PropTypes.string.def(""),label:e.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:e.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),size:e.PropTypes.size()};const b=(0,l.defineComponent)({name:"RadioButton",props:h,emits:["change","update:modelValue"],setup:function(){var e=n(d(),2),t=e[0],o=e[1],r=o.blur,a=o.focus,i=c();return{isFocused:t,isChecked:i.isChecked,isDisabled:i.isDisabled,setChecked:i.setChecked,handleBlur:r,handleFocus:a,handleChange:i.handleChange,resolveClassName:(0,s.usePrefix)().resolveClassName}},render:function(){var t,r=this,n=(0,e.classes)((o(t={},"".concat(this.resolveClassName("radio-button")),!0),o(t,"is-focused",this.isFocused),o(t,"is-disabled",this.isDisabled),o(t,"is-checked",this.isChecked),t));return(0,l.createVNode)("label",{class:n,tabindex:"0"},[(0,l.createVNode)("input",{class:"".concat(this.resolveClassName("radio-button-input")),type:"radio",tabindex:"0",value:this.label,checked:this.isChecked,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange},null),r.label||r.$slots.default?(0,l.createVNode)("div",{class:"".concat(r.resolveClassName("radio-button-label"))},[r.$slots.default?r.$slots.default():r.label]):null])}});var v={name:e.PropTypes.string.def(""),modelValue:e.PropTypes.oneOfType([String,Number,Boolean]),disabled:e.PropTypes.bool,withValidate:e.PropTypes.bool.def(!0),type:e.PropTypes.oneOf(["tab","capsule","card"]).def("tab")};const m=(0,l.defineComponent)({name:"RadioGroup",props:v,emits:["change","update:modelValue"],setup:function(t,o){var r=(0,e.useFormItem)(),n=[];return(0,l.provide)(u,{props:t,register:function(e){n.push(e)},unregister:function(e){var t=n.indexOf(e);t>-1&&n.splice(t,1)},handleChange:function(e){var t=e.label;n.forEach((function(t){t!==e&&t.setChecked(!1)})),o.emit("update:modelValue",t),o.emit("change",t)}}),(0,l.watch)((function(){return t.modelValue}),(function(){var e;t.withValidate&&(null===(e=null==r?void 0:r.validate)||void 0===e||e.call(r,"change"))})),(0,l.onMounted)((function(){""!==t.modelValue&&n.forEach((function(e){e.setChecked(e.label===t.modelValue)}))})),{resolveClassName:(0,s.usePrefix)().resolveClassName}},render:function(){var e;return(0,l.createVNode)("div",{class:["".concat(this.resolveClassName("radio-group")),"".concat(this.resolveClassName("radio-".concat(this.type)))]},[null===(e=this.$slots)||void 0===e?void 0:e.default()])}});var y=(0,e.withInstallProps)(p,{Group:m,Button:b});const g=y})(),i})()));
@@ -21,7 +21,7 @@ declare const radioButtonProps: {
21
21
  } & {
22
22
  default: boolean;
23
23
  };
24
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
24
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
25
25
  };
26
26
  export type RadioButtonProps = Readonly<ExtractPropTypes<typeof radioButtonProps>>;
27
27
  declare const _default: import("vue").DefineComponent<{
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
46
46
  } & {
47
47
  default: boolean;
48
48
  };
49
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
49
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
50
50
  }, {
51
51
  isFocused: import("vue").Ref<boolean>;
52
52
  isChecked: import("vue").Ref<boolean>;
@@ -55,6 +55,7 @@ declare const _default: import("vue").DefineComponent<{
55
55
  handleBlur: () => void;
56
56
  handleFocus: () => void;
57
57
  handleChange: (event: Event) => void;
58
+ resolveClassName: (cls: string) => string;
58
59
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
59
60
  name: import("vue-types").VueTypeValidableDef<string> & {
60
61
  default: string;
@@ -77,7 +78,7 @@ declare const _default: import("vue").DefineComponent<{
77
78
  } & {
78
79
  default: boolean;
79
80
  };
80
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
81
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
81
82
  }>> & {
82
83
  onChange?: (...args: any[]) => any;
83
84
  "onUpdate:modelValue"?: (...args: any[]) => any;
@@ -37,7 +37,9 @@ declare const _default: import("vue").DefineComponent<{
37
37
  type: import("vue-types").VueTypeDef<string> & {
38
38
  default: string;
39
39
  };
40
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
40
+ }, {
41
+ resolveClassName: (cls: string) => string;
42
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
41
43
  name: import("vue-types").VueTypeValidableDef<string> & {
42
44
  default: string;
43
45
  } & {
@@ -59,8 +61,8 @@ declare const _default: import("vue").DefineComponent<{
59
61
  onChange?: (...args: any[]) => any;
60
62
  "onUpdate:modelValue"?: (...args: any[]) => any;
61
63
  }, {
62
- name: string;
63
64
  type: string;
65
+ name: string;
64
66
  disabled: boolean;
65
67
  withValidate: boolean;
66
68
  }, {}>;
@@ -53,6 +53,7 @@ declare const _default: import("vue").DefineComponent<{
53
53
  handleBlur: () => void;
54
54
  handleFocus: () => void;
55
55
  handleChange: (event: Event) => void;
56
+ resolveClassName: (cls: string) => string;
56
57
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
57
58
  name: import("vue-types").VueTypeValidableDef<string> & {
58
59
  default: string;
@@ -51,7 +51,7 @@ declare const BkRate: {
51
51
  }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
52
52
  [key: string]: any;
53
53
  }>) => void)[];
54
- readonly size?: "default" | "small" | "large";
54
+ readonly size?: "small" | "large" | "default";
55
55
  "onUpdate:modelValue"?: (...args: any[]) => any;
56
56
  };
57
57
  $attrs: {
@@ -73,7 +73,7 @@ declare const BkRate: {
73
73
  } & {
74
74
  default: number;
75
75
  };
76
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
76
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
77
77
  editable: import("vue-types").VueTypeValidableDef<boolean> & {
78
78
  default: boolean;
79
79
  } & {
@@ -117,7 +117,7 @@ declare const BkRate: {
117
117
  } & {
118
118
  default: number;
119
119
  };
120
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
120
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
121
121
  editable: import("vue-types").VueTypeValidableDef<boolean> & {
122
122
  default: boolean;
123
123
  } & {
@@ -141,7 +141,7 @@ declare const BkRate: {
141
141
  } & {
142
142
  default: number;
143
143
  };
144
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
144
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
145
145
  editable: import("vue-types").VueTypeValidableDef<boolean> & {
146
146
  default: boolean;
147
147
  } & {
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<{
4
4
  } & {
5
5
  default: number;
6
6
  };
7
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
7
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
8
8
  editable: import("vue-types").VueTypeValidableDef<boolean> & {
9
9
  default: boolean;
10
10
  } & {
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
21
21
  } & {
22
22
  default: number;
23
23
  };
24
- size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
24
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
25
25
  editable: import("vue-types").VueTypeValidableDef<boolean> & {
26
26
  default: boolean;
27
27
  } & {
@@ -145,6 +145,7 @@ declare const BkResizeLayout: {
145
145
  }>;
146
146
  handleMousedown: (event: any) => void;
147
147
  setCollapse: (collapse: any) => void;
148
+ resolveClassName: (cls: string) => string;
148
149
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("before-resize" | "resizing" | "after-resize" | "collapse-change")[], string, {
149
150
  disabled: boolean;
150
151
  placement: "top" | "right" | "bottom" | "left";
@@ -246,6 +247,7 @@ declare const BkResizeLayout: {
246
247
  }>;
247
248
  handleMousedown: (event: any) => void;
248
249
  setCollapse: (collapse: any) => void;
250
+ resolveClassName: (cls: string) => string;
249
251
  }> & {} & import("vue").ComponentCustomProperties & {};
250
252
  __isFragment?: never;
251
253
  __isTeleport?: never;
@@ -319,6 +321,7 @@ declare const BkResizeLayout: {
319
321
  }>;
320
322
  handleMousedown: (event: any) => void;
321
323
  setCollapse: (collapse: any) => void;
324
+ resolveClassName: (cls: string) => string;
322
325
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("before-resize" | "resizing" | "after-resize" | "collapse-change")[], "before-resize" | "resizing" | "after-resize" | "collapse-change", {
323
326
  disabled: boolean;
324
327
  placement: "top" | "right" | "bottom" | "left";