bkui-vue 0.0.2-beta.36 → 0.0.2-beta.37

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 (169) hide show
  1. package/lib/affix/index.js +391 -1
  2. package/lib/alert/index.js +287 -1
  3. package/lib/animate-number/index.js +219 -1
  4. package/lib/backtop/index.js +264 -1
  5. package/lib/badge/index.js +304 -1
  6. package/lib/breadcrumb/index.js +379 -1
  7. package/lib/button/index.js +403 -1
  8. package/lib/card/index.js +369 -1
  9. package/lib/cascader/index.js +2095 -2
  10. package/lib/checkbox/index.js +602 -1
  11. package/lib/code-diff/index.js +5548 -1
  12. package/lib/collapse/index.js +605 -1
  13. package/lib/collapse-transition/index.js +237 -1
  14. package/lib/color-picker/index.js +2735 -1
  15. package/lib/components.js +770 -1
  16. package/lib/config-provider/index.js +377 -1
  17. package/lib/container/index.js +408 -1
  18. package/lib/date-picker/index.js +5576 -1
  19. package/lib/dialog/index.js +1324 -2
  20. package/lib/directives/index.js +1386 -2
  21. package/lib/dist.index.js +179 -1
  22. package/lib/divider/index.js +237 -1
  23. package/lib/dropdown/index.js +455 -1
  24. package/lib/exception/index.js +435 -1
  25. package/lib/fixed-navbar/index.js +222 -1
  26. package/lib/form/index.js +1004 -1
  27. package/lib/hooks.js +133 -1
  28. package/lib/icon/angle-double-down-line.js +541 -1
  29. package/lib/icon/angle-double-left-line.js +541 -1
  30. package/lib/icon/angle-double-left.js +541 -1
  31. package/lib/icon/angle-double-right-line.js +541 -1
  32. package/lib/icon/angle-double-right.js +541 -1
  33. package/lib/icon/angle-double-up-line.js +541 -1
  34. package/lib/icon/angle-down-fill.js +541 -1
  35. package/lib/icon/angle-down-line.js +541 -1
  36. package/lib/icon/angle-down.js +541 -1
  37. package/lib/icon/angle-left.js +541 -1
  38. package/lib/icon/angle-right.js +541 -1
  39. package/lib/icon/angle-up-fill.js +541 -1
  40. package/lib/icon/angle-up.js +541 -1
  41. package/lib/icon/archive-fill.js +541 -1
  42. package/lib/icon/arrows-left.js +541 -1
  43. package/lib/icon/arrows-right.js +541 -1
  44. package/lib/icon/assistant.js +541 -1
  45. package/lib/icon/audio-fill.js +541 -1
  46. package/lib/icon/bk.js +541 -1
  47. package/lib/icon/circle.js +541 -1
  48. package/lib/icon/close-line.js +541 -1
  49. package/lib/icon/close.js +541 -1
  50. package/lib/icon/code.js +541 -1
  51. package/lib/icon/cog-shape.js +541 -1
  52. package/lib/icon/collapse-left.js +541 -1
  53. package/lib/icon/copy-shape.js +541 -1
  54. package/lib/icon/copy.js +541 -1
  55. package/lib/icon/data-shape.js +541 -1
  56. package/lib/icon/del.js +541 -1
  57. package/lib/icon/doc-fill.js +541 -1
  58. package/lib/icon/done.js +541 -1
  59. package/lib/icon/down-shape.js +541 -1
  60. package/lib/icon/down-small.js +541 -1
  61. package/lib/icon/edit-line.js +541 -1
  62. package/lib/icon/ellipsis.js +541 -1
  63. package/lib/icon/enlarge-line.js +541 -1
  64. package/lib/icon/error.js +541 -1
  65. package/lib/icon/excel-fill.js +541 -1
  66. package/lib/icon/exclamation-circle-shape.js +541 -1
  67. package/lib/icon/eye.js +541 -1
  68. package/lib/icon/filliscreen-line.js +541 -1
  69. package/lib/icon/fix-line.js +541 -1
  70. package/lib/icon/fix-shape.js +541 -1
  71. package/lib/icon/folder-open.js +541 -1
  72. package/lib/icon/folder-shape-open.js +541 -1
  73. package/lib/icon/folder-shape.js +541 -1
  74. package/lib/icon/folder.js +541 -1
  75. package/lib/icon/funnel.js +541 -1
  76. package/lib/icon/help-document-fill.js +541 -1
  77. package/lib/icon/help-fill.js +541 -1
  78. package/lib/icon/help.js +541 -1
  79. package/lib/icon/image-fill.js +563 -1
  80. package/lib/icon/img-error.js +563 -1
  81. package/lib/icon/img-placehoulder.js +563 -1
  82. package/lib/icon/index.js +2353 -1
  83. package/lib/icon/info-line.js +563 -1
  84. package/lib/icon/info.js +563 -1
  85. package/lib/icon/left-shape.js +563 -1
  86. package/lib/icon/left-turn-line.js +563 -1
  87. package/lib/icon/narrow-line.js +563 -1
  88. package/lib/icon/original.js +563 -1
  89. package/lib/icon/pdf-fill.js +563 -1
  90. package/lib/icon/play-shape.js +563 -1
  91. package/lib/icon/plus.js +563 -1
  92. package/lib/icon/ppt-fill.js +563 -1
  93. package/lib/icon/qq.js +563 -1
  94. package/lib/icon/right-shape.js +563 -1
  95. package/lib/icon/right-turn-line.js +563 -1
  96. package/lib/icon/search.js +563 -1
  97. package/lib/icon/share.js +563 -1
  98. package/lib/icon/spinner.js +563 -1
  99. package/lib/icon/success.js +563 -1
  100. package/lib/icon/switcher-loading.js +563 -1
  101. package/lib/icon/text-file.js +563 -1
  102. package/lib/icon/text-fill.js +563 -1
  103. package/lib/icon/transfer.js +563 -1
  104. package/lib/icon/tree-application-shape.js +563 -1
  105. package/lib/icon/unfull-screen.js +563 -1
  106. package/lib/icon/unvisible.js +563 -1
  107. package/lib/icon/up-shape.js +563 -1
  108. package/lib/icon/upload.js +563 -1
  109. package/lib/icon/video-fill.js +563 -1
  110. package/lib/icon/warn.js +563 -1
  111. package/lib/icon/weixin-pro.js +563 -1
  112. package/lib/icon/weixin.js +563 -1
  113. package/lib/image/index.js +681 -1
  114. package/lib/index.js +195 -1
  115. package/lib/info-box/index.js +1514 -2
  116. package/lib/input/index.js +1038 -1
  117. package/lib/link/index.js +232 -1
  118. package/lib/loading/index.js +443 -1
  119. package/lib/locale/index.js +489 -1
  120. package/lib/menu/index.js +793 -1
  121. package/lib/message/index.js +1842 -2
  122. package/lib/modal/index.js +407 -1
  123. package/lib/navigation/index.js +439 -1
  124. package/lib/notify/index.js +470 -1
  125. package/lib/overflow-title/index.js +547 -1
  126. package/lib/pagination/index.js +974 -1
  127. package/lib/plugin-popover/index.js +4121 -1
  128. package/lib/plugins/index.js +130 -1
  129. package/lib/pop-confirm/index.js +367 -1
  130. package/lib/popover/index.js +4127 -1
  131. package/lib/popover2/index.js +171 -1
  132. package/lib/preset.js +164 -1
  133. package/lib/process/index.js +1146 -2
  134. package/lib/progress/index.js +495 -1
  135. package/lib/radio/index.js +693 -1
  136. package/lib/rate/index.js +406 -1
  137. package/lib/resize-layout/index.js +499 -1
  138. package/lib/search-select/index.js +3024 -2
  139. package/lib/select/index.js +2599 -2
  140. package/lib/shared/index.js +2832 -1
  141. package/lib/sideslider/index.js +1056 -2
  142. package/lib/slider/index.js +1683 -2
  143. package/lib/steps/index.js +1215 -2
  144. package/lib/swiper/index.js +404 -1
  145. package/lib/switcher/index.js +335 -1
  146. package/lib/tab/index.js +935 -1
  147. package/lib/table/index.js +6588 -1
  148. package/lib/table-column/index.js +768 -1
  149. package/lib/tag/index.js +309 -1
  150. package/lib/tag-input/index.js +1758 -1
  151. package/lib/time-picker/index.js +142 -1
  152. package/lib/timeline/index.js +310 -1
  153. package/lib/transfer/index.js +767 -1
  154. package/lib/tree/index.js +2664 -1
  155. package/lib/upload/index.js +3257 -2
  156. package/lib/virtual-render/index.js +806 -1
  157. package/package.json +1 -1
  158. package/lib/cascader/index.js.LICENSE.txt +0 -1
  159. package/lib/dialog/index.js.LICENSE.txt +0 -1
  160. package/lib/directives/index.js.LICENSE.txt +0 -14
  161. package/lib/info-box/index.js.LICENSE.txt +0 -1
  162. package/lib/message/index.js.LICENSE.txt +0 -6
  163. package/lib/process/index.js.LICENSE.txt +0 -1
  164. package/lib/search-select/index.js.LICENSE.txt +0 -1
  165. package/lib/select/index.js.LICENSE.txt +0 -1
  166. package/lib/sideslider/index.js.LICENSE.txt +0 -1
  167. package/lib/slider/index.js.LICENSE.txt +0 -1
  168. package/lib/steps/index.js.LICENSE.txt +0 -1
  169. package/lib/upload/index.js.LICENSE.txt +0 -1
@@ -1 +1,693 @@
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:{"update:modelValue":function(e){return void 0!==e},change:function(e){return void 0!==e}},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:{"update:modelValue":function(e){return void 0!==e},change:function(e){return void 0!==e}},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:{"update:modelValue":function(e){return void 0!==e},change:function(e){return void 0!==e}},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})()));
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("../shared"), require("vue"), require("../config-provider"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["../shared", "vue", "../config-provider"], factory);
6
+ else {
7
+ var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("../config-provider")) : factory(root["../shared"], root["vue"], root["../config-provider"]);
8
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
+ }
10
+ })(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__2717__) => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 2717:
16
+ /***/ ((module) => {
17
+
18
+ module.exports = __WEBPACK_EXTERNAL_MODULE__2717__;
19
+
20
+ /***/ }),
21
+
22
+ /***/ 4212:
23
+ /***/ ((module) => {
24
+
25
+ module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
26
+
27
+ /***/ }),
28
+
29
+ /***/ 748:
30
+ /***/ ((module) => {
31
+
32
+ module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
33
+
34
+ /***/ })
35
+
36
+ /******/ });
37
+ /************************************************************************/
38
+ /******/ // The module cache
39
+ /******/ var __webpack_module_cache__ = {};
40
+ /******/
41
+ /******/ // The require function
42
+ /******/ function __webpack_require__(moduleId) {
43
+ /******/ // Check if module is in cache
44
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
45
+ /******/ if (cachedModule !== undefined) {
46
+ /******/ return cachedModule.exports;
47
+ /******/ }
48
+ /******/ // Create a new module (and put it into the cache)
49
+ /******/ var module = __webpack_module_cache__[moduleId] = {
50
+ /******/ // no module.id needed
51
+ /******/ // no module.loaded needed
52
+ /******/ exports: {}
53
+ /******/ };
54
+ /******/
55
+ /******/ // Execute the module function
56
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
57
+ /******/
58
+ /******/ // Return the exports of the module
59
+ /******/ return module.exports;
60
+ /******/ }
61
+ /******/
62
+ /************************************************************************/
63
+ /******/ /* webpack/runtime/define property getters */
64
+ /******/ (() => {
65
+ /******/ // define getter functions for harmony exports
66
+ /******/ __webpack_require__.d = (exports, definition) => {
67
+ /******/ for(var key in definition) {
68
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
69
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
70
+ /******/ }
71
+ /******/ }
72
+ /******/ };
73
+ /******/ })();
74
+ /******/
75
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
76
+ /******/ (() => {
77
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
78
+ /******/ })();
79
+ /******/
80
+ /******/ /* webpack/runtime/make namespace object */
81
+ /******/ (() => {
82
+ /******/ // define __esModule on exports
83
+ /******/ __webpack_require__.r = (exports) => {
84
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
85
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
86
+ /******/ }
87
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
88
+ /******/ };
89
+ /******/ })();
90
+ /******/
91
+ /************************************************************************/
92
+ var __webpack_exports__ = {};
93
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
94
+ (() => {
95
+ // ESM COMPAT FLAG
96
+ __webpack_require__.r(__webpack_exports__);
97
+
98
+ // EXPORTS
99
+ __webpack_require__.d(__webpack_exports__, {
100
+ BkRadio: () => (/* binding */ BkRadio),
101
+ BkRadioButton: () => (/* reexport */ radio_button),
102
+ BkRadioGroup: () => (/* reexport */ radio_group),
103
+ "default": () => (/* binding */ src)
104
+ });
105
+
106
+ // EXTERNAL MODULE: external "../shared"
107
+ var external_shared_ = __webpack_require__(4212);
108
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
109
+ function _typeof(obj) {
110
+ "@babel/helpers - typeof";
111
+
112
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
113
+ return typeof obj;
114
+ } : function (obj) {
115
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
116
+ }, _typeof(obj);
117
+ }
118
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
119
+
120
+ function _toPrimitive(input, hint) {
121
+ if (_typeof(input) !== "object" || input === null) return input;
122
+ var prim = input[Symbol.toPrimitive];
123
+ if (prim !== undefined) {
124
+ var res = prim.call(input, hint || "default");
125
+ if (_typeof(res) !== "object") return res;
126
+ throw new TypeError("@@toPrimitive must return a primitive value.");
127
+ }
128
+ return (hint === "string" ? String : Number)(input);
129
+ }
130
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
131
+
132
+
133
+ function _toPropertyKey(arg) {
134
+ var key = _toPrimitive(arg, "string");
135
+ return _typeof(key) === "symbol" ? key : String(key);
136
+ }
137
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
138
+
139
+ function _defineProperty(obj, key, value) {
140
+ key = _toPropertyKey(key);
141
+ if (key in obj) {
142
+ Object.defineProperty(obj, key, {
143
+ value: value,
144
+ enumerable: true,
145
+ configurable: true,
146
+ writable: true
147
+ });
148
+ } else {
149
+ obj[key] = value;
150
+ }
151
+ return obj;
152
+ }
153
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
154
+ function _arrayWithHoles(arr) {
155
+ if (Array.isArray(arr)) return arr;
156
+ }
157
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
158
+ function _iterableToArrayLimit(arr, i) {
159
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
160
+ if (null != _i) {
161
+ var _s,
162
+ _e,
163
+ _x,
164
+ _r,
165
+ _arr = [],
166
+ _n = !0,
167
+ _d = !1;
168
+ try {
169
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
170
+ if (Object(_i) !== _i) return;
171
+ _n = !1;
172
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
173
+ } catch (err) {
174
+ _d = !0, _e = err;
175
+ } finally {
176
+ try {
177
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
178
+ } finally {
179
+ if (_d) throw _e;
180
+ }
181
+ }
182
+ return _arr;
183
+ }
184
+ }
185
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
186
+ function _arrayLikeToArray(arr, len) {
187
+ if (len == null || len > arr.length) len = arr.length;
188
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
189
+ return arr2;
190
+ }
191
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
192
+
193
+ function _unsupportedIterableToArray(o, minLen) {
194
+ if (!o) return;
195
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
196
+ var n = Object.prototype.toString.call(o).slice(8, -1);
197
+ if (n === "Object" && o.constructor) n = o.constructor.name;
198
+ if (n === "Map" || n === "Set") return Array.from(o);
199
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
200
+ }
201
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
202
+ function _nonIterableRest() {
203
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
204
+ }
205
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
206
+
207
+
208
+
209
+
210
+ function _slicedToArray(arr, i) {
211
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
212
+ }
213
+ // EXTERNAL MODULE: external "vue"
214
+ var external_vue_ = __webpack_require__(748);
215
+ // EXTERNAL MODULE: external "../config-provider"
216
+ var external_config_provider_ = __webpack_require__(2717);
217
+ ;// CONCATENATED MODULE: ../../packages/radio/src/common.ts
218
+ /*
219
+ * Tencent is pleased to support the open source community by making
220
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
221
+ *
222
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
223
+ *
224
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
225
+ *
226
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
227
+ *
228
+ * ---------------------------------------------------
229
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
230
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
231
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
232
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
233
+ *
234
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
235
+ * the Software.
236
+ *
237
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
238
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
239
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
240
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
241
+ * IN THE SOFTWARE.
242
+ */
243
+
244
+
245
+ var radioGroupKey = Symbol('RadioGroup');
246
+ function useFocus() {
247
+ var isFocused = (0,external_vue_.ref)(false);
248
+ var blur = function blur() {
249
+ isFocused.value = false;
250
+ };
251
+ var focus = function focus() {
252
+ isFocused.value = true;
253
+ };
254
+ return [isFocused, {
255
+ blur: blur,
256
+ focus: focus
257
+ }];
258
+ }
259
+ ;
260
+ var useRadio = function useRadio() {
261
+ var currentInstance = (0,external_vue_.getCurrentInstance)();
262
+ var props = currentInstance.props,
263
+ emit = currentInstance.emit;
264
+ var radioGroup = (0,external_vue_.inject)(radioGroupKey, external_shared_.EMPTY_OBJ);
265
+ var isGroup = !(0,external_shared_.isEmptyObj)(radioGroup);
266
+ var isChecked = (0,external_vue_.ref)(false);
267
+ // 禁用状态
268
+ var isDisabled = (0,external_vue_.computed)(function () {
269
+ if (isGroup && radioGroup.props.disabled) {
270
+ return true;
271
+ }
272
+ return props.disabled;
273
+ });
274
+ // 响应modelValue
275
+ if (isGroup) {
276
+ (0,external_vue_.watch)(function () {
277
+ return radioGroup.props.modelValue;
278
+ }, function (modelValue) {
279
+ isChecked.value = modelValue === props.label;
280
+ }, {
281
+ immediate: true
282
+ });
283
+ } else {
284
+ (0,external_vue_.watch)(function () {
285
+ return props.modelValue;
286
+ }, function (modelValue) {
287
+ if (modelValue === '') {
288
+ return;
289
+ }
290
+ isChecked.value = modelValue === props.label;
291
+ }, {
292
+ immediate: true
293
+ });
294
+ }
295
+ var setChecked = function setChecked() {
296
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
297
+ isChecked.value = value;
298
+ };
299
+ // 值更新
300
+ var handleChange = function handleChange(event) {
301
+ if (isDisabled.value) {
302
+ return;
303
+ }
304
+ var $targetInput = event.target;
305
+ isChecked.value = $targetInput.checked;
306
+ var nextValue = isChecked.value ? props.label : '';
307
+ emit('update:modelValue', nextValue);
308
+ emit('change', nextValue);
309
+ // 更新 radio-group
310
+ if (isGroup) {
311
+ radioGroup.handleChange(currentInstance.proxy);
312
+ }
313
+ (0,external_vue_.nextTick)(function () {
314
+ // 选中状态保持同步
315
+ if ($targetInput.checked !== isChecked.value) {
316
+ $targetInput.checked = isChecked.value;
317
+ }
318
+ });
319
+ };
320
+ (0,external_vue_.onMounted)(function () {
321
+ if (isGroup) {
322
+ radioGroup.register(currentInstance.proxy);
323
+ }
324
+ });
325
+ (0,external_vue_.onBeforeUnmount)(function () {
326
+ if (isGroup) {
327
+ radioGroup.unregister(currentInstance.proxy);
328
+ }
329
+ });
330
+ return {
331
+ isChecked: isChecked,
332
+ isDisabled: isDisabled,
333
+ setChecked: setChecked,
334
+ handleChange: handleChange
335
+ };
336
+ };
337
+ ;// CONCATENATED MODULE: ../../packages/radio/src/radio.tsx
338
+
339
+
340
+
341
+ /*
342
+ * Tencent is pleased to support the open source community by making
343
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
344
+ *
345
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
346
+ *
347
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
348
+ *
349
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
350
+ *
351
+ * ---------------------------------------------------
352
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
353
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
354
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
355
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
356
+ *
357
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
358
+ * the Software.
359
+ *
360
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
361
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
362
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
363
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
364
+ * IN THE SOFTWARE.
365
+ */
366
+
367
+
368
+
369
+
370
+ var radioProps = {
371
+ name: external_shared_.PropTypes.string.def(''),
372
+ label: external_shared_.PropTypes.oneOfType([String, Number, Boolean]).isRequired,
373
+ modelValue: external_shared_.PropTypes.oneOfType([String, Number, Boolean]).def(''),
374
+ checked: external_shared_.PropTypes.bool.def(false),
375
+ disabled: external_shared_.PropTypes.bool.def(false)
376
+ };
377
+ /* harmony default export */ const src_radio = ((0,external_vue_.defineComponent)({
378
+ name: 'Radio',
379
+ props: radioProps,
380
+ emits: {
381
+ 'update:modelValue': function updateModelValue(value) {
382
+ return value !== undefined;
383
+ },
384
+ change: function change(value) {
385
+ return value !== undefined;
386
+ }
387
+ },
388
+ setup: function setup() {
389
+ var _useFocus = useFocus(),
390
+ _useFocus2 = _slicedToArray(_useFocus, 2),
391
+ isFocused = _useFocus2[0],
392
+ _useFocus2$ = _useFocus2[1],
393
+ handleBlur = _useFocus2$.blur,
394
+ handleFocus = _useFocus2$.focus;
395
+ var _useRadio = useRadio(),
396
+ isChecked = _useRadio.isChecked,
397
+ isDisabled = _useRadio.isDisabled,
398
+ setChecked = _useRadio.setChecked,
399
+ handleChange = _useRadio.handleChange;
400
+ var _usePrefix = (0,external_config_provider_.usePrefix)(),
401
+ resolveClassName = _usePrefix.resolveClassName;
402
+ return {
403
+ isFocused: isFocused,
404
+ isChecked: isChecked,
405
+ isDisabled: isDisabled,
406
+ setChecked: setChecked,
407
+ handleBlur: handleBlur,
408
+ handleFocus: handleFocus,
409
+ handleChange: handleChange,
410
+ resolveClassName: resolveClassName
411
+ };
412
+ },
413
+ render: function render() {
414
+ var _classes,
415
+ _this = this;
416
+ var radioClass = (0,external_shared_.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('radio')), true), _defineProperty(_classes, 'is-focused', this.isFocused), _defineProperty(_classes, 'is-disabled', this.isDisabled), _defineProperty(_classes, 'is-checked', this.isChecked), _classes));
417
+ var renderLabel = function renderLabel() {
418
+ if (!_this.label && !_this.$slots["default"]) {
419
+ return null;
420
+ }
421
+ return (0,external_vue_.createVNode)("span", {
422
+ "class": "".concat(_this.resolveClassName('radio-label'))
423
+ }, [_this.$slots["default"] ? _this.$slots["default"]() : _this.label]);
424
+ };
425
+ return (0,external_vue_.createVNode)("label", {
426
+ "class": radioClass,
427
+ "tabindex": "0"
428
+ }, [(0,external_vue_.createVNode)("input", {
429
+ "class": "".concat(this.resolveClassName('radio-input')),
430
+ "type": "radio",
431
+ "tabindex": "0",
432
+ "value": this.label,
433
+ "checked": this.isChecked,
434
+ "disabled": this.isDisabled,
435
+ "onFocus": this.handleFocus,
436
+ "onBlur": this.handleBlur,
437
+ "onChange": this.handleChange
438
+ }, null), renderLabel()]);
439
+ }
440
+ }));
441
+ ;// CONCATENATED MODULE: ../../packages/radio/src/radio-button.tsx
442
+
443
+
444
+
445
+ /*
446
+ * Tencent is pleased to support the open source community by making
447
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
448
+ *
449
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
450
+ *
451
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
452
+ *
453
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
454
+ *
455
+ * ---------------------------------------------------
456
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
457
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
458
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
459
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
460
+ *
461
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
462
+ * the Software.
463
+ *
464
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
465
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
466
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
467
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
468
+ * IN THE SOFTWARE.
469
+ */
470
+
471
+
472
+
473
+
474
+ var radioButtonProps = {
475
+ name: external_shared_.PropTypes.string.def(''),
476
+ label: external_shared_.PropTypes.oneOfType([String, Number, Boolean]).isRequired,
477
+ modelValue: external_shared_.PropTypes.oneOfType([String, Number, Boolean]).def(''),
478
+ checked: external_shared_.PropTypes.bool.def(false),
479
+ disabled: external_shared_.PropTypes.bool.def(false),
480
+ size: external_shared_.PropTypes.size()
481
+ };
482
+ /* harmony default export */ const radio_button = ((0,external_vue_.defineComponent)({
483
+ name: 'RadioButton',
484
+ props: radioButtonProps,
485
+ emits: {
486
+ 'update:modelValue': function updateModelValue(value) {
487
+ return value !== undefined;
488
+ },
489
+ change: function change(value) {
490
+ return value !== undefined;
491
+ }
492
+ },
493
+ setup: function setup() {
494
+ var _useFocus = useFocus(),
495
+ _useFocus2 = _slicedToArray(_useFocus, 2),
496
+ isFocused = _useFocus2[0],
497
+ _useFocus2$ = _useFocus2[1],
498
+ handleBlur = _useFocus2$.blur,
499
+ handleFocus = _useFocus2$.focus;
500
+ var _useRadio = useRadio(),
501
+ isChecked = _useRadio.isChecked,
502
+ isDisabled = _useRadio.isDisabled,
503
+ setChecked = _useRadio.setChecked,
504
+ handleChange = _useRadio.handleChange;
505
+ var _usePrefix = (0,external_config_provider_.usePrefix)(),
506
+ resolveClassName = _usePrefix.resolveClassName;
507
+ return {
508
+ isFocused: isFocused,
509
+ isChecked: isChecked,
510
+ isDisabled: isDisabled,
511
+ setChecked: setChecked,
512
+ handleBlur: handleBlur,
513
+ handleFocus: handleFocus,
514
+ handleChange: handleChange,
515
+ resolveClassName: resolveClassName
516
+ };
517
+ },
518
+ render: function render() {
519
+ var _classes,
520
+ _this = this;
521
+ var radioClass = (0,external_shared_.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('radio-button')), true), _defineProperty(_classes, 'is-focused', this.isFocused), _defineProperty(_classes, 'is-disabled', this.isDisabled), _defineProperty(_classes, 'is-checked', this.isChecked), _classes));
522
+ var renderLabel = function renderLabel() {
523
+ if (!_this.label && !_this.$slots["default"]) {
524
+ return null;
525
+ }
526
+ return (0,external_vue_.createVNode)("div", {
527
+ "class": "".concat(_this.resolveClassName('radio-button-label'))
528
+ }, [_this.$slots["default"] ? _this.$slots["default"]() : _this.label]);
529
+ };
530
+ return (0,external_vue_.createVNode)("label", {
531
+ "class": radioClass,
532
+ "tabindex": "0"
533
+ }, [(0,external_vue_.createVNode)("input", {
534
+ "class": "".concat(this.resolveClassName('radio-button-input')),
535
+ "type": "radio",
536
+ "tabindex": "0",
537
+ "value": this.label,
538
+ "checked": this.isChecked,
539
+ "disabled": this.isDisabled,
540
+ "onFocus": this.handleFocus,
541
+ "onBlur": this.handleBlur,
542
+ "onChange": this.handleChange
543
+ }, null), renderLabel()]);
544
+ }
545
+ }));
546
+ ;// CONCATENATED MODULE: ../../packages/radio/src/radio-group.tsx
547
+
548
+ /*
549
+ * Tencent is pleased to support the open source community by making
550
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
551
+ *
552
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
553
+ *
554
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
555
+ *
556
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
557
+ *
558
+ * ---------------------------------------------------
559
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
560
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
561
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
562
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
563
+ *
564
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
565
+ * the Software.
566
+ *
567
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
568
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
569
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
570
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
571
+ * IN THE SOFTWARE.
572
+ */
573
+
574
+
575
+
576
+
577
+ var radioGroupProps = {
578
+ name: external_shared_.PropTypes.string.def(''),
579
+ modelValue: external_shared_.PropTypes.oneOfType([String, Number, Boolean]),
580
+ disabled: external_shared_.PropTypes.bool,
581
+ withValidate: external_shared_.PropTypes.bool.def(true),
582
+ type: external_shared_.PropTypes.oneOf(['tab', 'capsule', 'card']).def('tab')
583
+ };
584
+ /* harmony default export */ const radio_group = ((0,external_vue_.defineComponent)({
585
+ name: 'RadioGroup',
586
+ props: radioGroupProps,
587
+ emits: {
588
+ 'update:modelValue': function updateModelValue(value) {
589
+ return value !== undefined;
590
+ },
591
+ change: function change(value) {
592
+ return value !== undefined;
593
+ }
594
+ },
595
+ setup: function setup(props, context) {
596
+ var formItem = (0,external_shared_.useFormItem)();
597
+ var radioInstanceList = [];
598
+ var register = function register(radioContext) {
599
+ radioInstanceList.push(radioContext);
600
+ };
601
+ var unregister = function unregister(radioContext) {
602
+ var index = radioInstanceList.indexOf(radioContext);
603
+ if (index > -1) {
604
+ radioInstanceList.splice(index, 1);
605
+ }
606
+ };
607
+ var handleChange = function handleChange(checkedRadioInstance) {
608
+ var nextValue = checkedRadioInstance.label;
609
+ radioInstanceList.forEach(function (radioInstance) {
610
+ if (radioInstance !== checkedRadioInstance) {
611
+ radioInstance.setChecked(false);
612
+ }
613
+ });
614
+ context.emit('update:modelValue', nextValue);
615
+ context.emit('change', nextValue);
616
+ };
617
+ (0,external_vue_.provide)(radioGroupKey, {
618
+ props: props,
619
+ register: register,
620
+ unregister: unregister,
621
+ handleChange: handleChange
622
+ });
623
+ (0,external_vue_.watch)(function () {
624
+ return props.modelValue;
625
+ }, function () {
626
+ var _a;
627
+ if (props.withValidate) {
628
+ (_a = formItem === null || formItem === void 0 ? void 0 : formItem.validate) === null || _a === void 0 ? void 0 : _a.call(formItem, 'change');
629
+ }
630
+ });
631
+ (0,external_vue_.onMounted)(function () {
632
+ if (props.modelValue === '') {
633
+ return;
634
+ }
635
+ radioInstanceList.forEach(function (radioInstance) {
636
+ radioInstance.setChecked(radioInstance.label === props.modelValue);
637
+ });
638
+ });
639
+ var _usePrefix = (0,external_config_provider_.usePrefix)(),
640
+ resolveClassName = _usePrefix.resolveClassName;
641
+ return {
642
+ resolveClassName: resolveClassName
643
+ };
644
+ },
645
+ render: function render() {
646
+ var _a;
647
+ return (0,external_vue_.createVNode)("div", {
648
+ "class": ["".concat(this.resolveClassName('radio-group')), "".concat(this.resolveClassName("radio-".concat(this.type)))]
649
+ }, [(_a = this.$slots) === null || _a === void 0 ? void 0 : _a["default"]()]);
650
+ }
651
+ }));
652
+ ;// CONCATENATED MODULE: ../../packages/radio/src/index.ts
653
+ /*
654
+ * Tencent is pleased to support the open source community by making
655
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
656
+ *
657
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
658
+ *
659
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
660
+ *
661
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
662
+ *
663
+ * ---------------------------------------------------
664
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
665
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
666
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
667
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
668
+ *
669
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
670
+ * the Software.
671
+ *
672
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
673
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
674
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
675
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
676
+ * IN THE SOFTWARE.
677
+ */
678
+
679
+
680
+
681
+
682
+ var BkRadio = (0,external_shared_.withInstallProps)(src_radio, {
683
+ Group: radio_group,
684
+ Button: radio_button
685
+ });
686
+ /* harmony default export */ const src = (BkRadio);
687
+
688
+ })();
689
+
690
+ /******/ return __webpack_exports__;
691
+ /******/ })()
692
+ ;
693
+ });