bk-magic-vue 2.4.0 → 2.4.1

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 (84) hide show
  1. package/dist/bk-magic-vue.css +113 -24
  2. package/dist/bk-magic-vue.js +1091 -839
  3. package/dist/bk-magic-vue.min.css +1 -1
  4. package/dist/bk-magic-vue.min.css.gz +0 -0
  5. package/dist/bk-magic-vue.min.css.map +1 -1
  6. package/dist/bk-magic-vue.min.js +1 -1
  7. package/dist/bk-magic-vue.min.js.gz +0 -0
  8. package/dist/bk-magic-vue.min.js.map +1 -1
  9. package/lib/alert.js +472 -472
  10. package/lib/back-top.js +1 -1
  11. package/lib/big-tree.js +3 -3
  12. package/lib/breadcrumb-item.js +426 -426
  13. package/lib/breadcrumb.js +438 -438
  14. package/lib/button.js +509 -509
  15. package/lib/cascade.js +36 -2
  16. package/lib/checkbox-group.js +16 -9
  17. package/lib/checkbox.js +9 -1
  18. package/lib/container.js +454 -454
  19. package/lib/date-picker.js +5 -8
  20. package/lib/dialog.js +8 -9
  21. package/lib/directives/clickoutside.js +61 -61
  22. package/lib/directives/copy.js +51 -51
  23. package/lib/divider.js +446 -446
  24. package/lib/dropdown-menu.js +1747 -1747
  25. package/lib/form-item.js +1 -1
  26. package/lib/image-viewer.js +67 -2
  27. package/lib/image.js +73 -3
  28. package/lib/info-box.js +8 -9
  29. package/lib/link.js +430 -430
  30. package/lib/locale/lang/en-US.js +153 -143
  31. package/lib/locale/lang/zh-CN.js +151 -143
  32. package/lib/message.js +1 -1
  33. package/lib/mixins/emitter.js +18 -18
  34. package/lib/navigation-menu-group.js +412 -412
  35. package/lib/navigation-menu-item.js +722 -722
  36. package/lib/navigation.js +668 -668
  37. package/lib/notify.js +1 -1
  38. package/lib/option-group.js +9 -1
  39. package/lib/option.js +1 -1
  40. package/lib/pagination.js +13 -13
  41. package/lib/process.js +233 -51
  42. package/lib/progress.js +499 -499
  43. package/lib/radio-button.js +541 -541
  44. package/lib/radio.js +555 -555
  45. package/lib/rate.js +607 -607
  46. package/lib/round-progress.js +502 -502
  47. package/lib/search-select.js +5 -5
  48. package/lib/select.js +6 -6
  49. package/lib/sideslider.js +1 -1
  50. package/lib/slider.js +5 -5
  51. package/lib/spin.js +500 -500
  52. package/lib/star.js +496 -496
  53. package/lib/steps.js +3 -3
  54. package/lib/switcher.js +538 -538
  55. package/lib/tab-panel.js +456 -456
  56. package/lib/table-setting-content.js +35 -20
  57. package/lib/table.js +764 -575
  58. package/lib/tag.js +459 -459
  59. package/lib/time-picker.js +2 -2
  60. package/lib/transfer.js +6 -6
  61. package/lib/ui/bk-magic-vue.css +113 -24
  62. package/lib/ui/bk-magic-vue.min.css +1 -1
  63. package/lib/ui/bk-magic-vue.min.css.gz +0 -0
  64. package/lib/ui/bk-magic-vue.min.css.map +1 -1
  65. package/lib/ui/image-viewer.css +38 -17
  66. package/lib/ui/image-viewer.min.css +1 -1
  67. package/lib/ui/image-viewer.min.css.map +1 -1
  68. package/lib/ui/process.css +76 -0
  69. package/lib/ui/process.min.css +1 -1
  70. package/lib/ui/process.min.css.map +1 -1
  71. package/lib/ui/slider.css +4 -2
  72. package/lib/ui/slider.min.css +1 -1
  73. package/lib/ui/slider.min.css.map +1 -1
  74. package/lib/ui/spin.css +5 -1
  75. package/lib/ui/spin.min.css +1 -1
  76. package/lib/ui/spin.min.css.map +1 -1
  77. package/lib/ui/table.css +16 -5
  78. package/lib/ui/table.min.css +1 -1
  79. package/lib/ui/table.min.css.map +1 -1
  80. package/lib/upload.js +2 -2
  81. package/lib/version-detail.js +9 -10
  82. package/lib/virtual-scroll.js +805 -805
  83. package/lib/zoom-image.js +502 -502
  84. package/package.json +1 -1
@@ -1,591 +1,591 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
- (global = global || self, factory(global.library = {}));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = global || self, factory(global.library = {}));
5
5
  }(this, function (exports) { 'use strict';
6
6
 
7
- var emitter = {
8
- methods: {
9
- dispatch: function dispatch(componentName, eventName, params) {
10
- var parent = this.$parent || this.$root;
11
- var name = parent.$options.name;
12
- while (parent && (!name || name !== componentName)) {
13
- parent = parent.$parent;
14
- if (parent) {
15
- name = parent.$options.name;
16
- }
17
- }
7
+ var emitter = {
8
+ methods: {
9
+ dispatch: function dispatch(componentName, eventName, params) {
10
+ var parent = this.$parent || this.$root;
11
+ var name = parent.$options.name;
12
+ while (parent && (!name || name !== componentName)) {
13
+ parent = parent.$parent;
18
14
  if (parent) {
19
- parent.$emit.apply(parent, [eventName].concat(params));
15
+ name = parent.$options.name;
20
16
  }
21
17
  }
18
+ if (parent) {
19
+ parent.$emit.apply(parent, [eventName].concat(params));
20
+ }
22
21
  }
23
- };
22
+ }
23
+ };
24
24
 
25
- var mixin = {
26
- mixins: [emitter],
27
- data: function data() {
28
- return {
29
- current: '',
30
- group: false,
31
- groupName: this.name,
32
- parent: this.findComponentUpward(this, 'bk-radio-group')
33
- };
34
- },
35
- computed: {
36
- selected: function selected() {
37
- return this.current === this.localTrueValue;
38
- },
39
- localTrueValue: function localTrueValue() {
40
- var localValue;
41
- if (this.parent) {
42
- if (this.value === undefined && this.label === undefined) {
43
- localValue = this.trueValue;
44
- } else if (this.value !== undefined) {
45
- localValue = this.value;
46
- } else {
47
- localValue = this.label;
48
- }
49
- } else {
50
- localValue = this.trueValue;
51
- }
52
- return localValue;
53
- }
25
+ var mixin = {
26
+ mixins: [emitter],
27
+ data: function data() {
28
+ return {
29
+ current: '',
30
+ group: false,
31
+ groupName: this.name,
32
+ parent: this.findComponentUpward(this, 'bk-radio-group')
33
+ };
34
+ },
35
+ computed: {
36
+ selected: function selected() {
37
+ return this.current === this.localTrueValue;
54
38
  },
55
- mounted: function mounted() {
39
+ localTrueValue: function localTrueValue() {
40
+ var localValue;
56
41
  if (this.parent) {
57
- this.groupName = this.parent.name;
58
- }
59
- this.updateValue();
60
- },
61
- methods: {
62
- findComponentUpward: function findComponentUpward(context, componentName, componentNames) {
63
- if (typeof componentName === 'string') {
64
- componentNames = [componentName];
42
+ if (this.value === undefined && this.label === undefined) {
43
+ localValue = this.trueValue;
44
+ } else if (this.value !== undefined) {
45
+ localValue = this.value;
65
46
  } else {
66
- componentNames = componentName;
67
- }
68
- var parent = context.$parent;
69
- var name = parent.$options.name;
70
- while (parent && (!name || componentNames.indexOf(name) < 0)) {
71
- parent = parent.$parent;
72
- if (parent) name = parent.$options.name;
73
- }
74
- return parent;
75
- },
76
- getKeyDownSelected: function getKeyDownSelected(target) {
77
- var ele = Array.prototype.find.call(target.children, function (node) {
78
- return node.nodeName === 'INPUT' && node.type === 'radio';
79
- });
80
- return !ele.checked;
81
- },
82
- handlerChange: function handlerChange(event) {
83
- if (this.disabled) {
84
- return false;
85
- }
86
- var selected = event.type === 'change' ? event.target.checked : this.getKeyDownSelected(event.target);
87
- var value = selected ? this.localTrueValue : this.falseValue;
88
- this.$emit('input', value);
89
- this.$emit('change', value);
90
- this.dispatch('bk-form-item', 'form-change');
91
- if (this.parent) {
92
- this.parent.change({
93
- value: value
94
- });
47
+ localValue = this.label;
95
48
  }
49
+ } else {
50
+ localValue = this.trueValue;
96
51
  }
52
+ return localValue;
97
53
  }
98
- };
99
-
100
- var script = {
101
- name: 'bk-radio-button',
102
- mixins: [mixin],
103
- props: {
104
- name: {
105
- type: [String]
106
- },
107
- value: {
108
- type: [String, Number, Boolean],
109
- default: undefined
110
- },
111
- trueValue: {
112
- type: [String, Number, Boolean],
113
- default: true
114
- },
115
- falseValue: {
116
- type: [String, Number, Boolean],
117
- default: false
118
- },
119
- label: {
120
- type: [String, Number]
121
- },
122
- disabled: {
123
- type: Boolean,
124
- default: false
54
+ },
55
+ mounted: function mounted() {
56
+ if (this.parent) {
57
+ this.groupName = this.parent.name;
58
+ }
59
+ this.updateValue();
60
+ },
61
+ methods: {
62
+ findComponentUpward: function findComponentUpward(context, componentName, componentNames) {
63
+ if (typeof componentName === 'string') {
64
+ componentNames = [componentName];
65
+ } else {
66
+ componentNames = componentName;
125
67
  }
126
- },
127
- watch: {
128
- value: function value(val) {
129
- if (val === this.localTrueValue || val === this.falseValue) {
130
- this.updateValue();
131
- }
68
+ var parent = context.$parent;
69
+ var name = parent.$options.name;
70
+ while (parent && (!name || componentNames.indexOf(name) < 0)) {
71
+ parent = parent.$parent;
72
+ if (parent) name = parent.$options.name;
132
73
  }
74
+ return parent;
133
75
  },
134
- methods: {
135
- updateValue: function updateValue() {
136
- if (this.parent) {
137
- this.current = this.parent.value;
138
- } else {
139
- this.current = this.value;
140
- }
76
+ getKeyDownSelected: function getKeyDownSelected(target) {
77
+ var ele = Array.prototype.find.call(target.children, function (node) {
78
+ return node.nodeName === 'INPUT' && node.type === 'radio';
79
+ });
80
+ return !ele.checked;
81
+ },
82
+ handlerChange: function handlerChange(event) {
83
+ if (this.disabled) {
84
+ return false;
141
85
  }
142
- }
143
- };
144
-
145
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
146
- , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
147
- if (typeof shadowMode !== 'boolean') {
148
- createInjectorSSR = createInjector;
149
- createInjector = shadowMode;
150
- shadowMode = false;
151
- }
152
- var options = typeof script === 'function' ? script.options : script;
153
- if (template && template.render) {
154
- options.render = template.render;
155
- options.staticRenderFns = template.staticRenderFns;
156
- options._compiled = true;
157
- if (isFunctionalTemplate) {
158
- options.functional = true;
86
+ var selected = event.type === 'change' ? event.target.checked : this.getKeyDownSelected(event.target);
87
+ var value = selected ? this.localTrueValue : this.falseValue;
88
+ this.$emit('input', value);
89
+ this.$emit('change', value);
90
+ this.dispatch('bk-form-item', 'form-change');
91
+ if (this.parent) {
92
+ this.parent.change({
93
+ value: value
94
+ });
159
95
  }
160
96
  }
161
- if (scopeId) {
162
- options._scopeId = scopeId;
97
+ }
98
+ };
99
+
100
+ var script = {
101
+ name: 'bk-radio-button',
102
+ mixins: [mixin],
103
+ props: {
104
+ name: {
105
+ type: [String]
106
+ },
107
+ value: {
108
+ type: [String, Number, Boolean],
109
+ default: undefined
110
+ },
111
+ trueValue: {
112
+ type: [String, Number, Boolean],
113
+ default: true
114
+ },
115
+ falseValue: {
116
+ type: [String, Number, Boolean],
117
+ default: false
118
+ },
119
+ label: {
120
+ type: [String, Number]
121
+ },
122
+ disabled: {
123
+ type: Boolean,
124
+ default: false
163
125
  }
164
- var hook;
165
- if (moduleIdentifier) {
166
- hook = function hook(context) {
167
- context = context ||
168
- this.$vnode && this.$vnode.ssrContext ||
169
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
170
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
171
- context = __VUE_SSR_CONTEXT__;
172
- }
173
- if (style) {
174
- style.call(this, createInjectorSSR(context));
175
- }
176
- if (context && context._registeredComponents) {
177
- context._registeredComponents.add(moduleIdentifier);
178
- }
179
- };
180
- options._ssrRegister = hook;
181
- } else if (style) {
182
- hook = shadowMode ? function () {
183
- style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
184
- } : function (context) {
185
- style.call(this, createInjector(context));
186
- };
126
+ },
127
+ watch: {
128
+ value: function value(val) {
129
+ if (val === this.localTrueValue || val === this.falseValue) {
130
+ this.updateValue();
131
+ }
187
132
  }
188
- if (hook) {
189
- if (options.functional) {
190
- var originalRender = options.render;
191
- options.render = function renderWithStyleInjection(h, context) {
192
- hook.call(context);
193
- return originalRender(h, context);
194
- };
133
+ },
134
+ methods: {
135
+ updateValue: function updateValue() {
136
+ if (this.parent) {
137
+ this.current = this.parent.value;
195
138
  } else {
196
- var existing = options.beforeCreate;
197
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
139
+ this.current = this.value;
198
140
  }
199
141
  }
200
- return script;
201
142
  }
202
- var normalizeComponent_1 = normalizeComponent;
203
-
204
- /* script */
205
- var __vue_script__ = script;
206
- /* template */
207
-
208
- var __vue_render__ = function __vue_render__() {
209
- var _vm = this;
210
-
211
- var _h = _vm.$createElement;
212
-
213
- var _c = _vm._self._c || _h;
214
-
215
- return _c('label', {
216
- staticClass: "bk-form-radio-button",
217
- class: {
218
- 'disabled': _vm.disabled
219
- },
220
- attrs: {
221
- "tabindex": _vm.disabled ? false : 0
222
- },
223
- on: {
224
- "keydown": function keydown($event) {
225
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
226
- return null;
227
- }
228
-
229
- $event.preventDefault();
230
- return _vm.handlerChange($event);
231
- }
143
+ };
144
+
145
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
146
+ , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
147
+ if (typeof shadowMode !== 'boolean') {
148
+ createInjectorSSR = createInjector;
149
+ createInjector = shadowMode;
150
+ shadowMode = false;
151
+ }
152
+ var options = typeof script === 'function' ? script.options : script;
153
+ if (template && template.render) {
154
+ options.render = template.render;
155
+ options.staticRenderFns = template.staticRenderFns;
156
+ options._compiled = true;
157
+ if (isFunctionalTemplate) {
158
+ options.functional = true;
159
+ }
160
+ }
161
+ if (scopeId) {
162
+ options._scopeId = scopeId;
163
+ }
164
+ var hook;
165
+ if (moduleIdentifier) {
166
+ hook = function hook(context) {
167
+ context = context ||
168
+ this.$vnode && this.$vnode.ssrContext ||
169
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
170
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
171
+ context = __VUE_SSR_CONTEXT__;
232
172
  }
233
- }, [_c('input', {
234
- key: _vm.current,
235
- staticClass: "bk-radio-button-input",
236
- class: {
237
- 'is-checked': _vm.selected
238
- },
239
- attrs: {
240
- "type": "radio",
241
- "name": _vm.groupName,
242
- "disabled": _vm.disabled,
243
- "tabindex": -1
244
- },
245
- domProps: {
246
- "checked": _vm.selected
247
- },
248
- on: {
249
- "change": _vm.handlerChange
173
+ if (style) {
174
+ style.call(this, createInjectorSSR(context));
175
+ }
176
+ if (context && context._registeredComponents) {
177
+ context._registeredComponents.add(moduleIdentifier);
250
178
  }
251
- }), _c('div', {
252
- staticClass: "bk-radio-button-text"
253
- }, [_vm._t("default", [_vm._v(_vm._s(_vm.label))])], 2)]);
254
- };
255
-
256
- var __vue_staticRenderFns__ = [];
257
- /* style */
258
-
259
- var __vue_inject_styles__ = undefined;
260
- /* scoped */
261
-
262
- var __vue_scope_id__ = undefined;
263
- /* module identifier */
264
-
265
- var __vue_module_identifier__ = undefined;
266
- /* functional template */
267
-
268
- var __vue_is_functional_template__ = false;
269
- /* style inject */
270
-
271
- /* style inject SSR */
272
-
273
- /* style inject shadow dom */
274
-
275
- var __vue_component__ = /*#__PURE__*/normalizeComponent_1({
276
- render: __vue_render__,
277
- staticRenderFns: __vue_staticRenderFns__
278
- }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
279
-
280
- var _defined = function (it) {
281
- if (it == undefined) throw TypeError("Can't call method on " + it);
282
- return it;
283
- };
284
-
285
- var _toObject = function (it) {
286
- return Object(_defined(it));
287
- };
288
-
289
- var hasOwnProperty = {}.hasOwnProperty;
290
- var _has = function (it, key) {
291
- return hasOwnProperty.call(it, key);
292
- };
293
-
294
- var toString = {}.toString;
295
- var _cof = function (it) {
296
- return toString.call(it).slice(8, -1);
297
- };
298
-
299
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
300
- return _cof(it) == 'String' ? it.split('') : Object(it);
301
- };
302
-
303
- var _toIobject = function (it) {
304
- return _iobject(_defined(it));
305
- };
306
-
307
- var ceil = Math.ceil;
308
- var floor = Math.floor;
309
- var _toInteger = function (it) {
310
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
311
- };
312
-
313
- var min = Math.min;
314
- var _toLength = function (it) {
315
- return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0;
316
- };
317
-
318
- var max = Math.max;
319
- var min$1 = Math.min;
320
- var _toAbsoluteIndex = function (index, length) {
321
- index = _toInteger(index);
322
- return index < 0 ? max(index + length, 0) : min$1(index, length);
323
- };
324
-
325
- var _arrayIncludes = function (IS_INCLUDES) {
326
- return function ($this, el, fromIndex) {
327
- var O = _toIobject($this);
328
- var length = _toLength(O.length);
329
- var index = _toAbsoluteIndex(fromIndex, length);
330
- var value;
331
- if (IS_INCLUDES && el != el) while (length > index) {
332
- value = O[index++];
333
- if (value != value) return true;
334
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
335
- if (O[index] === el) return IS_INCLUDES || index || 0;
336
- } return !IS_INCLUDES && -1;
337
179
  };
338
- };
339
-
340
- function createCommonjsModule(fn, module) {
341
- return module = { exports: {} }, fn(module, module.exports), module.exports;
180
+ options._ssrRegister = hook;
181
+ } else if (style) {
182
+ hook = shadowMode ? function () {
183
+ style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
184
+ } : function (context) {
185
+ style.call(this, createInjector(context));
186
+ };
342
187
  }
343
-
344
- var _core = createCommonjsModule(function (module) {
345
- var core = module.exports = { version: '2.6.12' };
346
- if (typeof __e == 'number') __e = core;
347
- });
348
- var _core_1 = _core.version;
349
-
350
- var _global = createCommonjsModule(function (module) {
351
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
352
- ? window : typeof self != 'undefined' && self.Math == Math ? self
353
- : Function('return this')();
354
- if (typeof __g == 'number') __g = global;
355
- });
356
-
357
- var _shared = createCommonjsModule(function (module) {
358
- var SHARED = '__core-js_shared__';
359
- var store = _global[SHARED] || (_global[SHARED] = {});
360
- (module.exports = function (key, value) {
361
- return store[key] || (store[key] = value !== undefined ? value : {});
362
- })('versions', []).push({
363
- version: _core.version,
364
- mode: 'pure' ,
365
- copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
366
- });
367
- });
368
-
369
- var id = 0;
370
- var px = Math.random();
371
- var _uid = function (key) {
372
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
373
- };
374
-
375
- var shared = _shared('keys');
376
- var _sharedKey = function (key) {
377
- return shared[key] || (shared[key] = _uid(key));
378
- };
379
-
380
- var arrayIndexOf = _arrayIncludes(false);
381
- var IE_PROTO = _sharedKey('IE_PROTO');
382
- var _objectKeysInternal = function (object, names) {
383
- var O = _toIobject(object);
384
- var i = 0;
385
- var result = [];
386
- var key;
387
- for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key);
388
- while (names.length > i) if (_has(O, key = names[i++])) {
389
- ~arrayIndexOf(result, key) || result.push(key);
390
- }
391
- return result;
392
- };
393
-
394
- var _enumBugKeys = (
395
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
396
- ).split(',');
397
-
398
- var _objectKeys = Object.keys || function keys(O) {
399
- return _objectKeysInternal(O, _enumBugKeys);
400
- };
401
-
402
- var _aFunction = function (it) {
403
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
404
- return it;
405
- };
406
-
407
- var _ctx = function (fn, that, length) {
408
- _aFunction(fn);
409
- if (that === undefined) return fn;
410
- switch (length) {
411
- case 1: return function (a) {
412
- return fn.call(that, a);
413
- };
414
- case 2: return function (a, b) {
415
- return fn.call(that, a, b);
416
- };
417
- case 3: return function (a, b, c) {
418
- return fn.call(that, a, b, c);
188
+ if (hook) {
189
+ if (options.functional) {
190
+ var originalRender = options.render;
191
+ options.render = function renderWithStyleInjection(h, context) {
192
+ hook.call(context);
193
+ return originalRender(h, context);
419
194
  };
195
+ } else {
196
+ var existing = options.beforeCreate;
197
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
420
198
  }
421
- return function () {
422
- return fn.apply(that, arguments);
423
- };
424
- };
199
+ }
200
+ return script;
201
+ }
202
+ var normalizeComponent_1 = normalizeComponent;
425
203
 
426
- var _isObject = function (it) {
427
- return typeof it === 'object' ? it !== null : typeof it === 'function';
428
- };
204
+ /* script */
205
+ var __vue_script__ = script;
206
+ /* template */
429
207
 
430
- var _anObject = function (it) {
431
- if (!_isObject(it)) throw TypeError(it + ' is not an object!');
432
- return it;
433
- };
208
+ var __vue_render__ = function __vue_render__() {
209
+ var _vm = this;
434
210
 
435
- var _fails = function (exec) {
436
- try {
437
- return !!exec();
438
- } catch (e) {
439
- return true;
440
- }
441
- };
442
-
443
- var _descriptors = !_fails(function () {
444
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
445
- });
211
+ var _h = _vm.$createElement;
446
212
 
447
- var document = _global.document;
448
- var is = _isObject(document) && _isObject(document.createElement);
449
- var _domCreate = function (it) {
450
- return is ? document.createElement(it) : {};
451
- };
213
+ var _c = _vm._self._c || _h;
452
214
 
453
- var _ie8DomDefine = !_descriptors && !_fails(function () {
454
- return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7;
455
- });
456
-
457
- var _toPrimitive = function (it, S) {
458
- if (!_isObject(it)) return it;
459
- var fn, val;
460
- if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
461
- if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val;
462
- if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
463
- throw TypeError("Can't convert object to primitive value");
464
- };
215
+ return _c('label', {
216
+ staticClass: "bk-form-radio-button",
217
+ class: {
218
+ 'disabled': _vm.disabled
219
+ },
220
+ attrs: {
221
+ "tabindex": _vm.disabled ? false : 0
222
+ },
223
+ on: {
224
+ "keydown": function keydown($event) {
225
+ if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
226
+ return null;
227
+ }
465
228
 
466
- var dP = Object.defineProperty;
467
- var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
468
- _anObject(O);
469
- P = _toPrimitive(P, true);
470
- _anObject(Attributes);
471
- if (_ie8DomDefine) try {
472
- return dP(O, P, Attributes);
473
- } catch (e) { }
474
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
475
- if ('value' in Attributes) O[P] = Attributes.value;
476
- return O;
477
- };
478
- var _objectDp = {
479
- f: f
229
+ $event.preventDefault();
230
+ return _vm.handlerChange($event);
231
+ }
232
+ }
233
+ }, [_c('input', {
234
+ key: _vm.current,
235
+ staticClass: "bk-radio-button-input",
236
+ class: {
237
+ 'is-checked': _vm.selected
238
+ },
239
+ attrs: {
240
+ "type": "radio",
241
+ "name": _vm.groupName,
242
+ "disabled": _vm.disabled,
243
+ "tabindex": -1
244
+ },
245
+ domProps: {
246
+ "checked": _vm.selected
247
+ },
248
+ on: {
249
+ "change": _vm.handlerChange
250
+ }
251
+ }), _c('div', {
252
+ staticClass: "bk-radio-button-text"
253
+ }, [_vm._t("default", [_vm._v(_vm._s(_vm.label))])], 2)]);
254
+ };
255
+
256
+ var __vue_staticRenderFns__ = [];
257
+ /* style */
258
+
259
+ var __vue_inject_styles__ = undefined;
260
+ /* scoped */
261
+
262
+ var __vue_scope_id__ = undefined;
263
+ /* module identifier */
264
+
265
+ var __vue_module_identifier__ = undefined;
266
+ /* functional template */
267
+
268
+ var __vue_is_functional_template__ = false;
269
+ /* style inject */
270
+
271
+ /* style inject SSR */
272
+
273
+ /* style inject shadow dom */
274
+
275
+ var __vue_component__ = /*#__PURE__*/normalizeComponent_1({
276
+ render: __vue_render__,
277
+ staticRenderFns: __vue_staticRenderFns__
278
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
279
+
280
+ var _defined = function (it) {
281
+ if (it == undefined) throw TypeError("Can't call method on " + it);
282
+ return it;
283
+ };
284
+
285
+ var _toObject = function (it) {
286
+ return Object(_defined(it));
287
+ };
288
+
289
+ var hasOwnProperty = {}.hasOwnProperty;
290
+ var _has = function (it, key) {
291
+ return hasOwnProperty.call(it, key);
292
+ };
293
+
294
+ var toString = {}.toString;
295
+ var _cof = function (it) {
296
+ return toString.call(it).slice(8, -1);
297
+ };
298
+
299
+ var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
300
+ return _cof(it) == 'String' ? it.split('') : Object(it);
301
+ };
302
+
303
+ var _toIobject = function (it) {
304
+ return _iobject(_defined(it));
305
+ };
306
+
307
+ var ceil = Math.ceil;
308
+ var floor = Math.floor;
309
+ var _toInteger = function (it) {
310
+ return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
311
+ };
312
+
313
+ var min = Math.min;
314
+ var _toLength = function (it) {
315
+ return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0;
316
+ };
317
+
318
+ var max = Math.max;
319
+ var min$1 = Math.min;
320
+ var _toAbsoluteIndex = function (index, length) {
321
+ index = _toInteger(index);
322
+ return index < 0 ? max(index + length, 0) : min$1(index, length);
323
+ };
324
+
325
+ var _arrayIncludes = function (IS_INCLUDES) {
326
+ return function ($this, el, fromIndex) {
327
+ var O = _toIobject($this);
328
+ var length = _toLength(O.length);
329
+ var index = _toAbsoluteIndex(fromIndex, length);
330
+ var value;
331
+ if (IS_INCLUDES && el != el) while (length > index) {
332
+ value = O[index++];
333
+ if (value != value) return true;
334
+ } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
335
+ if (O[index] === el) return IS_INCLUDES || index || 0;
336
+ } return !IS_INCLUDES && -1;
480
337
  };
481
-
482
- var _propertyDesc = function (bitmap, value) {
483
- return {
484
- enumerable: !(bitmap & 1),
485
- configurable: !(bitmap & 2),
486
- writable: !(bitmap & 4),
487
- value: value
338
+ };
339
+
340
+ function createCommonjsModule(fn, module) {
341
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
342
+ }
343
+
344
+ var _core = createCommonjsModule(function (module) {
345
+ var core = module.exports = { version: '2.6.12' };
346
+ if (typeof __e == 'number') __e = core;
347
+ });
348
+ var _core_1 = _core.version;
349
+
350
+ var _global = createCommonjsModule(function (module) {
351
+ var global = module.exports = typeof window != 'undefined' && window.Math == Math
352
+ ? window : typeof self != 'undefined' && self.Math == Math ? self
353
+ : Function('return this')();
354
+ if (typeof __g == 'number') __g = global;
355
+ });
356
+
357
+ var _shared = createCommonjsModule(function (module) {
358
+ var SHARED = '__core-js_shared__';
359
+ var store = _global[SHARED] || (_global[SHARED] = {});
360
+ (module.exports = function (key, value) {
361
+ return store[key] || (store[key] = value !== undefined ? value : {});
362
+ })('versions', []).push({
363
+ version: _core.version,
364
+ mode: 'pure' ,
365
+ copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
366
+ });
367
+ });
368
+
369
+ var id = 0;
370
+ var px = Math.random();
371
+ var _uid = function (key) {
372
+ return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
373
+ };
374
+
375
+ var shared = _shared('keys');
376
+ var _sharedKey = function (key) {
377
+ return shared[key] || (shared[key] = _uid(key));
378
+ };
379
+
380
+ var arrayIndexOf = _arrayIncludes(false);
381
+ var IE_PROTO = _sharedKey('IE_PROTO');
382
+ var _objectKeysInternal = function (object, names) {
383
+ var O = _toIobject(object);
384
+ var i = 0;
385
+ var result = [];
386
+ var key;
387
+ for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key);
388
+ while (names.length > i) if (_has(O, key = names[i++])) {
389
+ ~arrayIndexOf(result, key) || result.push(key);
390
+ }
391
+ return result;
392
+ };
393
+
394
+ var _enumBugKeys = (
395
+ 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
396
+ ).split(',');
397
+
398
+ var _objectKeys = Object.keys || function keys(O) {
399
+ return _objectKeysInternal(O, _enumBugKeys);
400
+ };
401
+
402
+ var _aFunction = function (it) {
403
+ if (typeof it != 'function') throw TypeError(it + ' is not a function!');
404
+ return it;
405
+ };
406
+
407
+ var _ctx = function (fn, that, length) {
408
+ _aFunction(fn);
409
+ if (that === undefined) return fn;
410
+ switch (length) {
411
+ case 1: return function (a) {
412
+ return fn.call(that, a);
413
+ };
414
+ case 2: return function (a, b) {
415
+ return fn.call(that, a, b);
488
416
  };
417
+ case 3: return function (a, b, c) {
418
+ return fn.call(that, a, b, c);
419
+ };
420
+ }
421
+ return function () {
422
+ return fn.apply(that, arguments);
489
423
  };
490
-
491
- var _hide = _descriptors ? function (object, key, value) {
492
- return _objectDp.f(object, key, _propertyDesc(1, value));
493
- } : function (object, key, value) {
494
- object[key] = value;
495
- return object;
424
+ };
425
+
426
+ var _isObject = function (it) {
427
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
428
+ };
429
+
430
+ var _anObject = function (it) {
431
+ if (!_isObject(it)) throw TypeError(it + ' is not an object!');
432
+ return it;
433
+ };
434
+
435
+ var _fails = function (exec) {
436
+ try {
437
+ return !!exec();
438
+ } catch (e) {
439
+ return true;
440
+ }
441
+ };
442
+
443
+ var _descriptors = !_fails(function () {
444
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
445
+ });
446
+
447
+ var document = _global.document;
448
+ var is = _isObject(document) && _isObject(document.createElement);
449
+ var _domCreate = function (it) {
450
+ return is ? document.createElement(it) : {};
451
+ };
452
+
453
+ var _ie8DomDefine = !_descriptors && !_fails(function () {
454
+ return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7;
455
+ });
456
+
457
+ var _toPrimitive = function (it, S) {
458
+ if (!_isObject(it)) return it;
459
+ var fn, val;
460
+ if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
461
+ if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val;
462
+ if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
463
+ throw TypeError("Can't convert object to primitive value");
464
+ };
465
+
466
+ var dP = Object.defineProperty;
467
+ var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
468
+ _anObject(O);
469
+ P = _toPrimitive(P, true);
470
+ _anObject(Attributes);
471
+ if (_ie8DomDefine) try {
472
+ return dP(O, P, Attributes);
473
+ } catch (e) { }
474
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
475
+ if ('value' in Attributes) O[P] = Attributes.value;
476
+ return O;
477
+ };
478
+ var _objectDp = {
479
+ f: f
480
+ };
481
+
482
+ var _propertyDesc = function (bitmap, value) {
483
+ return {
484
+ enumerable: !(bitmap & 1),
485
+ configurable: !(bitmap & 2),
486
+ writable: !(bitmap & 4),
487
+ value: value
496
488
  };
497
-
498
- var PROTOTYPE = 'prototype';
499
- var $export = function (type, name, source) {
500
- var IS_FORCED = type & $export.F;
501
- var IS_GLOBAL = type & $export.G;
502
- var IS_STATIC = type & $export.S;
503
- var IS_PROTO = type & $export.P;
504
- var IS_BIND = type & $export.B;
505
- var IS_WRAP = type & $export.W;
506
- var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {});
507
- var expProto = exports[PROTOTYPE];
508
- var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] : (_global[name] || {})[PROTOTYPE];
509
- var key, own, out;
510
- if (IS_GLOBAL) source = name;
511
- for (key in source) {
512
- own = !IS_FORCED && target && target[key] !== undefined;
513
- if (own && _has(exports, key)) continue;
514
- out = own ? target[key] : source[key];
515
- exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
516
- : IS_BIND && own ? _ctx(out, _global)
517
- : IS_WRAP && target[key] == out ? (function (C) {
518
- var F = function (a, b, c) {
519
- if (this instanceof C) {
520
- switch (arguments.length) {
521
- case 0: return new C();
522
- case 1: return new C(a);
523
- case 2: return new C(a, b);
524
- } return new C(a, b, c);
525
- } return C.apply(this, arguments);
526
- };
527
- F[PROTOTYPE] = C[PROTOTYPE];
528
- return F;
529
- })(out) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out;
530
- if (IS_PROTO) {
531
- (exports.virtual || (exports.virtual = {}))[key] = out;
532
- if (type & $export.R && expProto && !expProto[key]) _hide(expProto, key, out);
533
- }
489
+ };
490
+
491
+ var _hide = _descriptors ? function (object, key, value) {
492
+ return _objectDp.f(object, key, _propertyDesc(1, value));
493
+ } : function (object, key, value) {
494
+ object[key] = value;
495
+ return object;
496
+ };
497
+
498
+ var PROTOTYPE = 'prototype';
499
+ var $export = function (type, name, source) {
500
+ var IS_FORCED = type & $export.F;
501
+ var IS_GLOBAL = type & $export.G;
502
+ var IS_STATIC = type & $export.S;
503
+ var IS_PROTO = type & $export.P;
504
+ var IS_BIND = type & $export.B;
505
+ var IS_WRAP = type & $export.W;
506
+ var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {});
507
+ var expProto = exports[PROTOTYPE];
508
+ var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] : (_global[name] || {})[PROTOTYPE];
509
+ var key, own, out;
510
+ if (IS_GLOBAL) source = name;
511
+ for (key in source) {
512
+ own = !IS_FORCED && target && target[key] !== undefined;
513
+ if (own && _has(exports, key)) continue;
514
+ out = own ? target[key] : source[key];
515
+ exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
516
+ : IS_BIND && own ? _ctx(out, _global)
517
+ : IS_WRAP && target[key] == out ? (function (C) {
518
+ var F = function (a, b, c) {
519
+ if (this instanceof C) {
520
+ switch (arguments.length) {
521
+ case 0: return new C();
522
+ case 1: return new C(a);
523
+ case 2: return new C(a, b);
524
+ } return new C(a, b, c);
525
+ } return C.apply(this, arguments);
526
+ };
527
+ F[PROTOTYPE] = C[PROTOTYPE];
528
+ return F;
529
+ })(out) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out;
530
+ if (IS_PROTO) {
531
+ (exports.virtual || (exports.virtual = {}))[key] = out;
532
+ if (type & $export.R && expProto && !expProto[key]) _hide(expProto, key, out);
534
533
  }
534
+ }
535
+ };
536
+ $export.F = 1;
537
+ $export.G = 2;
538
+ $export.S = 4;
539
+ $export.P = 8;
540
+ $export.B = 16;
541
+ $export.W = 32;
542
+ $export.U = 64;
543
+ $export.R = 128;
544
+ var _export = $export;
545
+
546
+ var _objectSap = function (KEY, exec) {
547
+ var fn = (_core.Object || {})[KEY] || Object[KEY];
548
+ var exp = {};
549
+ exp[KEY] = exec(fn);
550
+ _export(_export.S + _export.F * _fails(function () { fn(1); }), 'Object', exp);
551
+ };
552
+
553
+ _objectSap('keys', function () {
554
+ return function keys(it) {
555
+ return _objectKeys(_toObject(it));
535
556
  };
536
- $export.F = 1;
537
- $export.G = 2;
538
- $export.S = 4;
539
- $export.P = 8;
540
- $export.B = 16;
541
- $export.W = 32;
542
- $export.U = 64;
543
- $export.R = 128;
544
- var _export = $export;
545
-
546
- var _objectSap = function (KEY, exec) {
547
- var fn = (_core.Object || {})[KEY] || Object[KEY];
548
- var exp = {};
549
- exp[KEY] = exec(fn);
550
- _export(_export.S + _export.F * _fails(function () { fn(1); }), 'Object', exp);
551
- };
552
-
553
- _objectSap('keys', function () {
554
- return function keys(it) {
555
- return _objectKeys(_toObject(it));
556
- };
557
- });
558
-
559
- var keys = _core.Object.keys;
560
-
561
- var keys$1 = keys;
562
-
563
- function setInstaller (component, afterInstall) {
564
- component.install = function (Vue) {
565
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
566
- var props = component.props || {};
567
- keys$1(options).forEach(function (key) {
568
- if (props.hasOwnProperty(key)) {
569
- if (typeof props[key] === 'function' || props[key] instanceof Array) {
570
- props[key] = {
571
- type: props[key],
572
- default: options[key]
573
- };
574
- } else {
575
- props[key].default = options[key];
576
- }
557
+ });
558
+
559
+ var keys = _core.Object.keys;
560
+
561
+ var keys$1 = keys;
562
+
563
+ function setInstaller (component, afterInstall) {
564
+ component.install = function (Vue) {
565
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
566
+ var props = component.props || {};
567
+ keys$1(options).forEach(function (key) {
568
+ if (props.hasOwnProperty(key)) {
569
+ if (typeof props[key] === 'function' || props[key] instanceof Array) {
570
+ props[key] = {
571
+ type: props[key],
572
+ default: options[key]
573
+ };
574
+ } else {
575
+ props[key].default = options[key];
577
576
  }
578
- });
579
- component.name = options.namespace ? component.name.replace('bk', options.namespace) : component.name;
580
- Vue.component(component.name, component);
581
- typeof afterInstall === 'function' && afterInstall(Vue, options);
582
- };
583
- }
577
+ }
578
+ });
579
+ component.name = options.namespace ? component.name.replace('bk', options.namespace) : component.name;
580
+ Vue.component(component.name, component);
581
+ typeof afterInstall === 'function' && afterInstall(Vue, options);
582
+ };
583
+ }
584
584
 
585
- setInstaller(__vue_component__);
585
+ setInstaller(__vue_component__);
586
586
 
587
- exports.default = __vue_component__;
587
+ exports.default = __vue_component__;
588
588
 
589
- Object.defineProperty(exports, '__esModule', { value: true });
589
+ Object.defineProperty(exports, '__esModule', { value: true });
590
590
 
591
591
  }));