zartui 1.0.21 → 1.0.23

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.
package/lib/zart.js CHANGED
@@ -190,7 +190,7 @@ var SlotsMixin = {
190
190
  }
191
191
  };
192
192
  // EXTERNAL MODULE: ./es/telemetry/index.js
193
- var telemetry = __webpack_require__(6);
193
+ var telemetry = __webpack_require__(7);
194
194
 
195
195
  // CONCATENATED MODULE: ./es/mixins/telemetry.js
196
196
 
@@ -293,7 +293,7 @@ function createNamespace(name) {
293
293
  return [createComponent(name), createBEM(name), createI18N(name)];
294
294
  }
295
295
  // EXTERNAL MODULE: ./es/utils/format/unit.js
296
- var unit = __webpack_require__(7);
296
+ var unit = __webpack_require__(5);
297
297
 
298
298
  // CONCATENATED MODULE: ./es/utils/index.js
299
299
 
@@ -467,6 +467,75 @@ function padZero(num, targetLength) {
467
467
  /* 5 */
468
468
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
469
469
 
470
+ "use strict";
471
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addUnit; });
472
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return unitToPx; });
473
+ /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
474
+ /* harmony import */ var _validate_number__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
475
+
476
+
477
+ function addUnit(value) {
478
+ if (!Object(___WEBPACK_IMPORTED_MODULE_0__[/* isDef */ "e"])(value)) {
479
+ return undefined;
480
+ }
481
+
482
+ value = String(value);
483
+ return Object(_validate_number__WEBPACK_IMPORTED_MODULE_1__[/* isNumeric */ "b"])(value) ? value + "px" : value;
484
+ } // cache
485
+
486
+ var rootFontSize;
487
+
488
+ function getRootFontSize() {
489
+ if (!rootFontSize) {
490
+ var doc = document.documentElement;
491
+ var fontSize = doc.style.fontSize || window.getComputedStyle(doc).fontSize;
492
+ rootFontSize = parseFloat(fontSize);
493
+ }
494
+
495
+ return rootFontSize;
496
+ }
497
+
498
+ function convertRem(value) {
499
+ value = value.replace(/rem/g, '');
500
+ return +value * getRootFontSize();
501
+ }
502
+
503
+ function convertVw(value) {
504
+ value = value.replace(/vw/g, '');
505
+ return +value * window.innerWidth / 100;
506
+ }
507
+
508
+ function convertVh(value) {
509
+ value = value.replace(/vh/g, '');
510
+ return +value * window.innerHeight / 100;
511
+ }
512
+
513
+ function unitToPx(value) {
514
+ if (typeof value === 'number') {
515
+ return value;
516
+ }
517
+
518
+ if (___WEBPACK_IMPORTED_MODULE_0__[/* inBrowser */ "d"]) {
519
+ if (value.indexOf('rem') !== -1) {
520
+ return convertRem(value);
521
+ }
522
+
523
+ if (value.indexOf('vw') !== -1) {
524
+ return convertVw(value);
525
+ }
526
+
527
+ if (value.indexOf('vh') !== -1) {
528
+ return convertVh(value);
529
+ }
530
+ }
531
+
532
+ return parseFloat(value);
533
+ }
534
+
535
+ /***/ }),
536
+ /* 6 */
537
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
538
+
470
539
  "use strict";
471
540
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isNumeric; });
472
541
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isNaN; });
@@ -483,7 +552,7 @@ function isNaN(val) {
483
552
  }
484
553
 
485
554
  /***/ }),
486
- /* 6 */
555
+ /* 7 */
487
556
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
488
557
 
489
558
  "use strict";
@@ -543,75 +612,6 @@ var Telemetry = /*#__PURE__*/function () {
543
612
  }();
544
613
  Telemetry.sharedInstance = new Telemetry();
545
614
 
546
- /***/ }),
547
- /* 7 */
548
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
549
-
550
- "use strict";
551
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addUnit; });
552
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return unitToPx; });
553
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
554
- /* harmony import */ var _validate_number__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
555
-
556
-
557
- function addUnit(value) {
558
- if (!Object(___WEBPACK_IMPORTED_MODULE_0__[/* isDef */ "e"])(value)) {
559
- return undefined;
560
- }
561
-
562
- value = String(value);
563
- return Object(_validate_number__WEBPACK_IMPORTED_MODULE_1__[/* isNumeric */ "b"])(value) ? value + "px" : value;
564
- } // cache
565
-
566
- var rootFontSize;
567
-
568
- function getRootFontSize() {
569
- if (!rootFontSize) {
570
- var doc = document.documentElement;
571
- var fontSize = doc.style.fontSize || window.getComputedStyle(doc).fontSize;
572
- rootFontSize = parseFloat(fontSize);
573
- }
574
-
575
- return rootFontSize;
576
- }
577
-
578
- function convertRem(value) {
579
- value = value.replace(/rem/g, '');
580
- return +value * getRootFontSize();
581
- }
582
-
583
- function convertVw(value) {
584
- value = value.replace(/vw/g, '');
585
- return +value * window.innerWidth / 100;
586
- }
587
-
588
- function convertVh(value) {
589
- value = value.replace(/vh/g, '');
590
- return +value * window.innerHeight / 100;
591
- }
592
-
593
- function unitToPx(value) {
594
- if (typeof value === 'number') {
595
- return value;
596
- }
597
-
598
- if (___WEBPACK_IMPORTED_MODULE_0__[/* inBrowser */ "d"]) {
599
- if (value.indexOf('rem') !== -1) {
600
- return convertRem(value);
601
- }
602
-
603
- if (value.indexOf('vw') !== -1) {
604
- return convertVw(value);
605
- }
606
-
607
- if (value.indexOf('vh') !== -1) {
608
- return convertVh(value);
609
- }
610
- }
611
-
612
- return parseFloat(value);
613
- }
614
-
615
615
  /***/ }),
616
616
  /* 8 */
617
617
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -837,27 +837,27 @@ module.exports = g;
837
837
  /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var _componentFactory_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12);
838
838
  //
839
839
 
840
- __webpack_require__(14);
841
-
840
+ __webpack_require__(14);
841
+
842
842
 
843
- if ( process.env.VUE_ENV !== 'server' ) {
843
+ if ( process.env.VUE_ENV !== 'server' ) {
844
844
 
845
- var pdfjsWrapper = __webpack_require__(31).default;
846
- var PDFJS = window.pdfjsLib;
845
+ var pdfjsWrapper = __webpack_require__(31).default;
846
+ var PDFJS = window.pdfjsLib;
847
847
 
848
- if ( typeof window !== 'undefined' && 'Worker' in window && navigator.appVersion.indexOf('MSIE 10') === -1 ) {
848
+ if ( typeof window !== 'undefined' && 'Worker' in window && navigator.appVersion.indexOf('MSIE 10') === -1 ) {
849
849
 
850
- var PdfjsWorker = __webpack_require__(33);
851
- PDFJS.GlobalWorkerOptions.workerPort = new PdfjsWorker();
852
- }
850
+ var PdfjsWorker = __webpack_require__(33);
851
+ PDFJS.GlobalWorkerOptions.workerPort = new PdfjsWorker();
852
+ }
853
853
 
854
- var component = Object(_componentFactory_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(pdfjsWrapper(PDFJS));
855
- } else {
854
+ var component = Object(_componentFactory_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(pdfjsWrapper(PDFJS));
855
+ } else {
856
856
 
857
- var component = Object(_componentFactory_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({});
858
- }
857
+ var component = Object(_componentFactory_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({});
858
+ }
859
859
 
860
- /* harmony default export */ __webpack_exports__["a"] = (component);
860
+ /* harmony default export */ __webpack_exports__["a"] = (component);
861
861
 
862
862
  /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(13)))
863
863
 
@@ -1096,8 +1096,8 @@ function normalizeComponent (
1096
1096
 
1097
1097
  // CONCATENATED MODULE: ./node_modules/vue-resize-sensor/src/resize-sensor.vue?vue&type=script&lang=js&
1098
1098
  /* harmony default export */ var src_resize_sensorvue_type_script_lang_js_ = (resize_sensorvue_type_script_lang_js_);
1099
- // EXTERNAL MODULE: ./node_modules/vue-resize-sensor/src/resize-sensor.vue?vue&type=style&index=0&lang=css&
1100
- var resize_sensorvue_type_style_index_0_lang_css_ = __webpack_require__(29);
1099
+ // EXTERNAL MODULE: ./node_modules/vue-resize-sensor/src/resize-sensor.vue?vue&type=style&index=0&id=38cddd49&prod&lang=css&
1100
+ var resize_sensorvue_type_style_index_0_id_38cddd49_prod_lang_css_ = __webpack_require__(29);
1101
1101
 
1102
1102
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1103
1103
  var componentNormalizer = __webpack_require__(11);
@@ -46839,8 +46839,8 @@ module.exports = Array.isArray || function (arr) {
46839
46839
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
46840
46840
 
46841
46841
  "use strict";
46842
- /* harmony import */ var _style_loader_dist_cjs_js_css_loader_dist_cjs_js_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_3_2_cache_loader_dist_cjs_js_ref_0_0_vue_loader_lib_index_js_vue_loader_options_resize_sensor_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
46843
- /* harmony import */ var _style_loader_dist_cjs_js_css_loader_dist_cjs_js_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_3_2_cache_loader_dist_cjs_js_ref_0_0_vue_loader_lib_index_js_vue_loader_options_resize_sensor_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_cjs_js_css_loader_dist_cjs_js_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_3_2_cache_loader_dist_cjs_js_ref_0_0_vue_loader_lib_index_js_vue_loader_options_resize_sensor_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
46842
+ /* harmony import */ var _style_loader_dist_cjs_js_css_loader_dist_cjs_js_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_3_2_cache_loader_dist_cjs_js_ref_0_0_vue_loader_lib_index_js_vue_loader_options_resize_sensor_vue_vue_type_style_index_0_id_38cddd49_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
46843
+ /* harmony import */ var _style_loader_dist_cjs_js_css_loader_dist_cjs_js_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_3_2_cache_loader_dist_cjs_js_ref_0_0_vue_loader_lib_index_js_vue_loader_options_resize_sensor_vue_vue_type_style_index_0_id_38cddd49_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_cjs_js_css_loader_dist_cjs_js_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_3_2_cache_loader_dist_cjs_js_ref_0_0_vue_loader_lib_index_js_vue_loader_options_resize_sensor_vue_vue_type_style_index_0_id_38cddd49_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
46844
46844
  /* unused harmony reexport * */
46845
46845
 
46846
46846
 
@@ -55012,8 +55012,8 @@ module.exports = function() {
55012
55012
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
55013
55013
 
55014
55014
  "use strict";
55015
- /* harmony import */ var _style_loader_dist_cjs_js_css_loader_dist_cjs_js_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_3_2_annotationLayer_css_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
55016
- /* harmony import */ var _style_loader_dist_cjs_js_css_loader_dist_cjs_js_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_3_2_annotationLayer_css_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_cjs_js_css_loader_dist_cjs_js_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_3_2_annotationLayer_css_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
55015
+ /* harmony import */ var _style_loader_dist_cjs_js_css_loader_dist_cjs_js_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_3_2_annotationLayer_css_vue_type_style_index_0_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
55016
+ /* harmony import */ var _style_loader_dist_cjs_js_css_loader_dist_cjs_js_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_3_2_annotationLayer_css_vue_type_style_index_0_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_cjs_js_css_loader_dist_cjs_js_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_3_2_annotationLayer_css_vue_type_style_index_0_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
55017
55017
  /* unused harmony reexport * */
55018
55018
 
55019
55019
 
@@ -55124,6 +55124,7 @@ __webpack_require__.d(__webpack_exports__, "Popup", function() { return /* reexp
55124
55124
  __webpack_require__.d(__webpack_exports__, "PullRefresh", function() { return /* reexport */ pull_refresh; });
55125
55125
  __webpack_require__.d(__webpack_exports__, "Radio", function() { return /* reexport */ es_radio; });
55126
55126
  __webpack_require__.d(__webpack_exports__, "RadioGroup", function() { return /* reexport */ radio_group; });
55127
+ __webpack_require__.d(__webpack_exports__, "RadioPicker", function() { return /* reexport */ radio_picker; });
55127
55128
  __webpack_require__.d(__webpack_exports__, "Rate", function() { return /* reexport */ es_rate; });
55128
55129
  __webpack_require__.d(__webpack_exports__, "Row", function() { return /* reexport */ row; });
55129
55130
  __webpack_require__.d(__webpack_exports__, "Search", function() { return /* reexport */ search; });
@@ -56516,7 +56517,7 @@ var pickerProps = {
56516
56517
  }
56517
56518
  };
56518
56519
  // EXTERNAL MODULE: ./es/utils/format/unit.js
56519
- var unit = __webpack_require__(7);
56520
+ var unit = __webpack_require__(5);
56520
56521
 
56521
56522
  // CONCATENATED MODULE: ./es/utils/deep-clone.js
56522
56523
 
@@ -58182,7 +58183,7 @@ var back_top_createNamespace = Object(utils["b" /* createNamespace */])('back-to
58182
58183
  }
58183
58184
  }));
58184
58185
  // EXTERNAL MODULE: ./es/utils/validate/number.js
58185
- var number = __webpack_require__(5);
58186
+ var number = __webpack_require__(6);
58186
58187
 
58187
58188
  // CONCATENATED MODULE: ./es/badge/index.js
58188
58189
 
@@ -58303,7 +58304,7 @@ var routeProps = {
58303
58304
  to: [String, Object]
58304
58305
  };
58305
58306
  // EXTERNAL MODULE: ./es/telemetry/index.js
58306
- var telemetry = __webpack_require__(6);
58307
+ var telemetry = __webpack_require__(7);
58307
58308
 
58308
58309
  // CONCATENATED MODULE: ./es/button/index.js
58309
58310
 
@@ -59402,6 +59403,7 @@ var Header_createNamespace = Object(utils["b" /* createNamespace */])('calendar-
59402
59403
  subtitle: String,
59403
59404
  showTitle: Boolean,
59404
59405
  showSubtitle: Boolean,
59406
+ showWeekDays: Boolean,
59405
59407
  firstDayOfWeek: Number
59406
59408
  },
59407
59409
  methods: {
@@ -59431,6 +59433,11 @@ var Header_createNamespace = Object(utils["b" /* createNamespace */])('calendar-
59431
59433
  },
59432
59434
  genWeekDays: function genWeekDays() {
59433
59435
  var h = this.$createElement;
59436
+
59437
+ if (!this.showWeekDays) {
59438
+ return null;
59439
+ }
59440
+
59434
59441
  var weekdays = utils_t('weekdays'); // console.log(" weekdays " + JSON.stringify(weekdays));
59435
59442
 
59436
59443
  var firstDayOfWeek = this.firstDayOfWeek;
@@ -59517,6 +59524,10 @@ var Header_createNamespace = Object(utils["b" /* createNamespace */])('calendar-
59517
59524
  type: Boolean,
59518
59525
  default: true
59519
59526
  },
59527
+ showWeekDays: {
59528
+ type: Boolean,
59529
+ default: true
59530
+ },
59520
59531
  closeOnPopstate: {
59521
59532
  type: Boolean,
59522
59533
  default: true
@@ -59886,6 +59897,7 @@ var Header_createNamespace = Object(utils["b" /* createNamespace */])('calendar-
59886
59897
  "lazyRender": this.lazyRender,
59887
59898
  "currentDate": this.currentDate,
59888
59899
  "showSubtitle": this.showSubtitle,
59900
+ "showWeekDays": this.showWeekDays,
59889
59901
  "allowSameDay": this.allowSameDay,
59890
59902
  "showMonthTitle": showMonthTitle,
59891
59903
  "firstDayOfWeek": this.dayOffset
@@ -79524,8 +79536,8 @@ var vuePdfNoSssvue_type_script_lang_js_ = __webpack_require__(10);
79524
79536
 
79525
79537
  // CONCATENATED MODULE: ./node_modules/egova-vue-pdf/src/vuePdfNoSss.vue?vue&type=script&lang=js&
79526
79538
  /* harmony default export */ var src_vuePdfNoSssvue_type_script_lang_js_ = (vuePdfNoSssvue_type_script_lang_js_["a" /* default */]);
79527
- // EXTERNAL MODULE: ./node_modules/egova-vue-pdf/src/annotationLayer.css?vue&type=style&index=0&lang=css&
79528
- var annotationLayervue_type_style_index_0_lang_css_ = __webpack_require__(34);
79539
+ // EXTERNAL MODULE: ./node_modules/egova-vue-pdf/src/annotationLayer.css?vue&type=style&index=0&prod&lang=css&
79540
+ var annotationLayervue_type_style_index_0_prod_lang_css_ = __webpack_require__(34);
79529
79541
 
79530
79542
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
79531
79543
  var componentNormalizer = __webpack_require__(11);
@@ -82001,320 +82013,43 @@ var radio_group_createNamespace = Object(utils["b" /* createNamespace */])('radi
82001
82013
  }, [this.slots()]);
82002
82014
  }
82003
82015
  }));
82004
- // CONCATENATED MODULE: ./es/rate/index.js
82005
- // Utils
82006
-
82007
- // Mixins
82008
-
82009
-
82010
- // Components
82011
-
82012
-
82013
-
82014
- var rate_createNamespace = Object(utils["b" /* createNamespace */])('rate'),
82015
- rate_createComponent = rate_createNamespace[0],
82016
- rate_bem = rate_createNamespace[1];
82017
-
82018
- function getRateStatus(value, index, allowHalf) {
82019
- if (value >= index) {
82020
- return 'full';
82021
- }
82022
-
82023
- if (value + 0.5 >= index && allowHalf) {
82024
- return 'half';
82025
- }
82026
-
82027
- return 'void';
82028
- }
82029
-
82030
- /* harmony default export */ var es_rate = (rate_createComponent({
82031
- mixins: [TouchMixin, FieldMixin],
82032
- props: {
82033
- size: [Number, String],
82034
- color: String,
82035
- gutter: [Number, String],
82036
- readonly: Boolean,
82037
- disabled: Boolean,
82038
- allowHalf: Boolean,
82039
- voidColor: String,
82040
- iconPrefix: String,
82041
- disabledColor: String,
82042
- value: {
82043
- type: Number,
82044
- default: 0
82045
- },
82046
- icon: {
82047
- type: String,
82048
- default: 'star'
82049
- },
82050
- voidIcon: {
82051
- type: String,
82052
- default: 'star'
82053
- },
82054
- count: {
82055
- type: [Number, String],
82056
- default: 5
82057
- },
82058
- touchable: {
82059
- type: Boolean,
82060
- default: true
82061
- }
82062
- },
82063
- computed: {
82064
- list: function list() {
82065
- var list = [];
82066
-
82067
- for (var i = 1; i <= this.count; i++) {
82068
- list.push(getRateStatus(this.value, i, this.allowHalf));
82069
- }
82070
-
82071
- return list;
82072
- },
82073
- sizeWithUnit: function sizeWithUnit() {
82074
- return Object(utils["a" /* addUnit */])(this.size);
82075
- },
82076
- gutterWithUnit: function gutterWithUnit() {
82077
- return Object(utils["a" /* addUnit */])(this.gutter);
82078
- }
82016
+ // CONCATENATED MODULE: ./es/radio-picker/shared.js
82017
+ var DEFAULT_WRAP_HEIGHT = 350;
82018
+ var radioPickerProps = {
82019
+ title: String,
82020
+ loading: Boolean,
82021
+ readonly: Boolean,
82022
+ cancelButtonText: String,
82023
+ confirmButtonText: String,
82024
+ showToolbar: {
82025
+ type: Boolean,
82026
+ default: true
82079
82027
  },
82080
- mounted: function mounted() {
82081
- this.bindTouchEvent(this.$el);
82028
+ showPicker: {
82029
+ type: Boolean,
82030
+ default: false
82082
82031
  },
82083
- methods: {
82084
- select: function select(index) {
82085
- if (!this.disabled && !this.readonly && index !== this.value) {
82086
- this.$emit('input', index);
82087
- this.$emit('change', index);
82088
- }
82089
- },
82090
- onTouchStart: function onTouchStart(event) {
82091
- var _this = this;
82092
-
82093
- if (this.readonly || this.disabled || !this.touchable) {
82094
- return;
82095
- }
82096
-
82097
- this.touchStart(event);
82098
- var rects = this.$refs.items.map(function (item) {
82099
- return item.getBoundingClientRect();
82100
- });
82101
- var ranges = [];
82102
- rects.forEach(function (rect, index) {
82103
- if (_this.allowHalf) {
82104
- ranges.push({
82105
- score: index + 0.5,
82106
- left: rect.left
82107
- }, {
82108
- score: index + 1,
82109
- left: rect.left + rect.width / 2
82110
- });
82111
- } else {
82112
- ranges.push({
82113
- score: index + 1,
82114
- left: rect.left
82115
- });
82116
- }
82117
- });
82118
- this.ranges = ranges;
82119
- },
82120
- onTouchMove: function onTouchMove(event) {
82121
- if (this.readonly || this.disabled || !this.touchable) {
82122
- return;
82123
- }
82124
-
82125
- this.touchMove(event);
82126
-
82127
- if (this.direction === 'horizontal') {
82128
- preventDefault(event);
82129
- var clientX = event.touches[0].clientX;
82130
- this.select(this.getScoreByPosition(clientX));
82131
- }
82132
- },
82133
- getScoreByPosition: function getScoreByPosition(x) {
82134
- for (var i = this.ranges.length - 1; i > 0; i--) {
82135
- if (x > this.ranges[i].left) {
82136
- return this.ranges[i].score;
82137
- }
82138
- }
82139
-
82140
- return this.allowHalf ? 0.5 : 1;
82141
- },
82142
- genStar: function genStar(status, index) {
82143
- var _this2 = this;
82144
-
82145
- var h = this.$createElement;
82146
- var icon = this.icon,
82147
- color = this.color,
82148
- count = this.count,
82149
- voidIcon = this.voidIcon,
82150
- disabled = this.disabled,
82151
- voidColor = this.voidColor,
82152
- disabledColor = this.disabledColor;
82153
- var score = index + 1;
82154
- var isFull = status === 'full';
82155
- var isVoid = status === 'void';
82156
- var style;
82157
-
82158
- if (this.gutterWithUnit && score !== +count) {
82159
- style = {
82160
- paddingRight: this.gutterWithUnit
82161
- };
82162
- }
82163
-
82164
- return h("div", {
82165
- "ref": "items",
82166
- "refInFor": true,
82167
- "key": index,
82168
- "attrs": {
82169
- "role": "radio",
82170
- "tabindex": "0",
82171
- "aria-setsize": count,
82172
- "aria-posinset": score,
82173
- "aria-checked": String(!isVoid)
82174
- },
82175
- "style": style,
82176
- "class": rate_bem('item')
82177
- }, [h(es_icon, {
82178
- "attrs": {
82179
- "size": this.sizeWithUnit,
82180
- "name": isFull ? icon : voidIcon,
82181
- "color": disabled ? disabledColor : isFull ? color : voidColor,
82182
- "classPrefix": this.iconPrefix,
82183
- "data-score": score
82184
- },
82185
- "class": rate_bem('icon', {
82186
- disabled: disabled,
82187
- full: isFull
82188
- }),
82189
- "on": {
82190
- "click": function click() {
82191
- _this2.select(score);
82192
- }
82193
- }
82194
- }), this.allowHalf && h(es_icon, {
82195
- "attrs": {
82196
- "size": this.sizeWithUnit,
82197
- "name": isVoid ? voidIcon : icon,
82198
- "color": disabled ? disabledColor : isVoid ? voidColor : color,
82199
- "classPrefix": this.iconPrefix,
82200
- "data-score": score - 0.5
82201
- },
82202
- "class": rate_bem('icon', ['half', {
82203
- disabled: disabled,
82204
- full: !isVoid
82205
- }]),
82206
- "on": {
82207
- "click": function click() {
82208
- _this2.select(score - 0.5);
82209
- }
82210
- }
82211
- })]);
82212
- }
82032
+ wrapHeight: {
82033
+ type: [Number, String],
82034
+ default: DEFAULT_WRAP_HEIGHT
82213
82035
  },
82214
- render: function render() {
82215
- var _this3 = this;
82216
-
82217
- var h = arguments[0];
82218
- return h("div", {
82219
- "class": rate_bem({
82220
- readonly: this.readonly,
82221
- disabled: this.disabled
82222
- }),
82223
- "attrs": {
82224
- "tabindex": "0",
82225
- "role": "radiogroup"
82226
- }
82227
- }, [this.list.map(function (status, index) {
82228
- return _this3.genStar(status, index);
82229
- })]);
82230
- }
82231
- }));
82232
- // CONCATENATED MODULE: ./es/row/index.js
82233
-
82234
-
82235
-
82236
- var row_createNamespace = Object(utils["b" /* createNamespace */])('row'),
82237
- row_createComponent = row_createNamespace[0],
82238
- row_bem = row_createNamespace[1];
82239
-
82240
- /* harmony default export */ var row = (row_createComponent({
82241
- mixins: [ParentMixin('ztRow')],
82242
- props: {
82243
- type: String,
82244
- align: String,
82245
- justify: String,
82246
- tag: {
82247
- type: String,
82248
- default: 'div'
82249
- },
82250
- gutter: {
82251
- type: [Number, String],
82252
- default: 0
82253
- }
82036
+ allowHtml: {
82037
+ type: Boolean,
82038
+ default: true
82254
82039
  },
82255
- computed: {
82256
- spaces: function spaces() {
82257
- var gutter = Number(this.gutter);
82258
-
82259
- if (!gutter) {
82260
- return;
82261
- }
82262
-
82263
- var spaces = [];
82264
- var groups = [[]];
82265
- var totalSpan = 0;
82266
- this.children.forEach(function (item, index) {
82267
- totalSpan += Number(item.span);
82268
-
82269
- if (totalSpan > 24) {
82270
- groups.push([index]);
82271
- totalSpan -= 24;
82272
- } else {
82273
- groups[groups.length - 1].push(index);
82274
- }
82275
- });
82276
- groups.forEach(function (group) {
82277
- var averagePadding = gutter * (group.length - 1) / group.length;
82278
- group.forEach(function (item, index) {
82279
- if (index === 0) {
82280
- spaces.push({
82281
- right: averagePadding
82282
- });
82283
- } else {
82284
- var left = gutter - spaces[item - 1].right;
82285
- var right = averagePadding - left;
82286
- spaces.push({
82287
- left: left,
82288
- right: right
82289
- });
82290
- }
82291
- });
82292
- });
82293
- return spaces;
82294
- }
82040
+ swipeDuration: {
82041
+ type: [Number, String],
82042
+ default: 1000
82295
82043
  },
82296
- methods: {
82297
- onClick: function onClick(event) {
82298
- this.$emit('click', event);
82299
- }
82044
+ closeOnPopstate: {
82045
+ type: Boolean,
82046
+ default: true
82300
82047
  },
82301
- render: function render() {
82302
- var _bem;
82303
-
82304
- var h = arguments[0];
82305
- var align = this.align,
82306
- justify = this.justify;
82307
- var flex = this.type === 'flex';
82308
- return h(this.tag, {
82309
- "class": row_bem((_bem = {
82310
- flex: flex
82311
- }, _bem["align-" + align] = flex && align, _bem["justify-" + justify] = flex && justify, _bem)),
82312
- "on": {
82313
- "click": this.onClick
82314
- }
82315
- }, [this.slots()]);
82048
+ closeOnClickOverlay: {
82049
+ type: Boolean,
82050
+ default: true
82316
82051
  }
82317
- }));
82052
+ };
82318
82053
  // CONCATENATED MODULE: ./es/search/index.js
82319
82054
 
82320
82055
 
@@ -82433,6 +82168,1220 @@ search_Search.props = {
82433
82168
  }
82434
82169
  };
82435
82170
  /* harmony default export */ var search = (search_createComponent(search_Search));
82171
+ // CONCATENATED MODULE: ./es/radio-picker/PickerColumn.js
82172
+
82173
+
82174
+
82175
+
82176
+
82177
+
82178
+
82179
+
82180
+
82181
+
82182
+ var PickerColumn_DEFAULT_DURATION = 200;
82183
+ /** 最底部的一个选项,在滚动到地图时,会有一个距离被截断,这里需要加回来 */
82184
+
82185
+ var RADIO_COLUMN_BOTTOM_ITEM_EMPTY_LEN = 10; // 惯性滑动思路:
82186
+ // 在手指离开屏幕时,如果和上一次 move 时的间隔小于 `MOMENTUM_LIMIT_TIME` 且 move
82187
+ // 距离大于 `MOMENTUM_LIMIT_DISTANCE` 时,执行惯性滑动
82188
+
82189
+ var PickerColumn_MOMENTUM_LIMIT_TIME = 300;
82190
+ var PickerColumn_MOMENTUM_LIMIT_DISTANCE = 15;
82191
+
82192
+ var radio_picker_PickerColumn_createNamespace = Object(utils["b" /* createNamespace */])('radio-picker-column'),
82193
+ radio_picker_PickerColumn_createComponent = radio_picker_PickerColumn_createNamespace[0],
82194
+ radio_picker_PickerColumn_bem = radio_picker_PickerColumn_createNamespace[1];
82195
+
82196
+ function PickerColumn_getElementTranslateY(element) {
82197
+ var style = window.getComputedStyle(element);
82198
+ var transform = style.transform || style.webkitTransform;
82199
+ var translateY = transform.slice(7, transform.length - 1).split(', ')[5];
82200
+ return Number(translateY);
82201
+ }
82202
+
82203
+ function PickerColumn_isOptionDisabled(option) {
82204
+ return Object(utils["g" /* isObject */])(option) && option.disabled;
82205
+ } // use standard WheelEvent:
82206
+ // https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent
82207
+
82208
+
82209
+ var PickerColumn_supportMousewheel = utils["d" /* inBrowser */] && 'onwheel' in window;
82210
+ var PickerColumn_mousewheelTimer = null;
82211
+ /* harmony default export */ var radio_picker_PickerColumn = (radio_picker_PickerColumn_createComponent({
82212
+ mixins: [TouchMixin],
82213
+ props: {
82214
+ columnCollector: Array,
82215
+ valueKey: String,
82216
+ readonly: Boolean,
82217
+ allowHtml: Boolean,
82218
+ className: String,
82219
+ searchVal: String,
82220
+ toolbarPosition: String,
82221
+ wrapHeight: Number,
82222
+ defaultIndex: Number,
82223
+ swipeDuration: [Number, String],
82224
+ initialOptions: {
82225
+ type: Array,
82226
+ default: function _default() {
82227
+ return [];
82228
+ }
82229
+ },
82230
+ searchable: {
82231
+ type: Boolean,
82232
+ default: false
82233
+ }
82234
+ },
82235
+ data: function data() {
82236
+ return {
82237
+ // 列表滚动了距离顶部多少距离
82238
+ offset: 0,
82239
+ duration: 0,
82240
+ options: deepClone(this.initialOptions),
82241
+ currentIndex: this.defaultIndex,
82242
+ confirmIndex: '',
82243
+ isSearchEmpty: false
82244
+ };
82245
+ },
82246
+ created: function created() {
82247
+ if (this.columnCollector) {
82248
+ this.columnCollector.push(this);
82249
+ }
82250
+
82251
+ this.setIndex(this.currentIndex);
82252
+ },
82253
+ mounted: function mounted() {
82254
+ this.bindTouchEvent(this.$el);
82255
+
82256
+ if (PickerColumn_supportMousewheel) {
82257
+ event_on(this.$refs.wrapper, 'wheel', this.onMouseWheel, false);
82258
+ }
82259
+ },
82260
+ destroyed: function destroyed() {
82261
+ if (this.columnCollector) {
82262
+ this.columnCollector.splice(this.columnCollector.indexOf(this), 1);
82263
+ }
82264
+
82265
+ if (PickerColumn_supportMousewheel) {
82266
+ off(this.$el, 'wheel');
82267
+ }
82268
+ },
82269
+ watch: {
82270
+ initialOptions: 'setOptions',
82271
+ defaultIndex: function defaultIndex(val) {
82272
+ this.setIndex(val);
82273
+ },
82274
+ searchVal: function searchVal() {
82275
+ var _this = this; // 查询的时候,这个需要回到顶部看数据
82276
+
82277
+
82278
+ this.offset = this.baseOffset; // 判断是否搜索结果为空的
82279
+
82280
+ if (this.searchable) {
82281
+ this.isSearchEmpty = !this.options.some(function (option) {
82282
+ var text = _this.getOptionText(option); // 支持搜索处理
82283
+
82284
+
82285
+ return text == null ? void 0 : text.includes(_this.searchVal);
82286
+ });
82287
+ }
82288
+ }
82289
+ },
82290
+ computed: {
82291
+ count: function count() {
82292
+ return this.options.length;
82293
+ },
82294
+ baseOffset: function baseOffset() {
82295
+ return 0;
82296
+ }
82297
+ },
82298
+ methods: {
82299
+ setOptions: function setOptions(options) {
82300
+ if (JSON.stringify(options) !== JSON.stringify(this.options)) {
82301
+ this.options = deepClone(options);
82302
+ this.setIndex(this.defaultIndex);
82303
+ }
82304
+ },
82305
+ onTouchStart: function onTouchStart(event) {
82306
+ this.touchStart(event);
82307
+
82308
+ if (this.moving) {
82309
+ var translateY = PickerColumn_getElementTranslateY(this.$refs.wrapper);
82310
+ this.offset = Math.min(0, translateY - this.baseOffset);
82311
+ this.startOffset = this.offset;
82312
+ } else {
82313
+ this.startOffset = this.offset;
82314
+ }
82315
+
82316
+ this.duration = 0;
82317
+ this.transitionEndTrigger = null;
82318
+ this.touchStartTime = Date.now();
82319
+ this.momentumOffset = this.startOffset;
82320
+ },
82321
+ onTouchMove: function onTouchMove(event) {
82322
+ this.touchMove(event);
82323
+
82324
+ if (this.direction === 'vertical') {
82325
+ this.moving = true;
82326
+ preventDefault(event, true);
82327
+ } // 在这个范围里面滚动
82328
+
82329
+
82330
+ this.setRangeOffset(this.startOffset + this.deltaY);
82331
+ var now = Date.now();
82332
+
82333
+ if (now - this.touchStartTime > PickerColumn_MOMENTUM_LIMIT_TIME) {
82334
+ this.touchStartTime = now;
82335
+ this.momentumOffset = this.offset;
82336
+ }
82337
+ },
82338
+ onTouchEnd: function onTouchEnd() {
82339
+ var _this2 = this;
82340
+
82341
+ var distance = this.offset - this.momentumOffset;
82342
+ var duration = Date.now() - this.touchStartTime;
82343
+ var allowMomentum = duration < PickerColumn_MOMENTUM_LIMIT_TIME && Math.abs(distance) > PickerColumn_MOMENTUM_LIMIT_DISTANCE;
82344
+
82345
+ if (allowMomentum) {
82346
+ this.momentum(distance, duration);
82347
+ return;
82348
+ }
82349
+
82350
+ this.duration = PickerColumn_DEFAULT_DURATION; // compatible with desktop scenario
82351
+ // use setTimeout to skip the click event Emitted after touchstart
82352
+
82353
+ setTimeout(function () {
82354
+ _this2.moving = false;
82355
+ }, 0);
82356
+ },
82357
+ onMouseWheel: function onMouseWheel(event) {
82358
+ var _this3 = this;
82359
+
82360
+ preventDefault(event, true); // simply combine touchstart and touchmove
82361
+
82362
+ var translateY = PickerColumn_getElementTranslateY(this.$refs.wrapper);
82363
+ this.startOffset = Math.min(0, translateY - this.baseOffset);
82364
+ this.momentumOffset = this.startOffset;
82365
+ this.transitionEndTrigger = null; // directly use deltaY, see https://caniuse.com/?search=deltaY
82366
+ // use deltaY to detect direction for not special setting device
82367
+ // https://developer.mozilla.org/en-US/docs/Web/API/Element/wheel_event
82368
+
82369
+ var deltaY = event.deltaY;
82370
+
82371
+ if (this.startOffset === 0 && deltaY < 0) {
82372
+ return;
82373
+ } // get offset
82374
+ // if necessary, can adjust distance value to make scrolling smoother
82375
+
82376
+
82377
+ var distance = -deltaY;
82378
+ this.setRangeOffset(this.startOffset + distance);
82379
+
82380
+ if (PickerColumn_mousewheelTimer) {
82381
+ clearTimeout(PickerColumn_mousewheelTimer);
82382
+ }
82383
+
82384
+ PickerColumn_mousewheelTimer = setTimeout(function () {
82385
+ _this3.onTouchEnd();
82386
+
82387
+ _this3.touchStartTime = 0;
82388
+ }, PickerColumn_MOMENTUM_LIMIT_TIME);
82389
+ },
82390
+ onTransitionEnd: function onTransitionEnd() {
82391
+ this.stopMomentum();
82392
+ },
82393
+ onClickItem: function onClickItem(index) {
82394
+ if (this.moving || this.readonly) {
82395
+ return;
82396
+ }
82397
+
82398
+ this.transitionEndTrigger = null;
82399
+ this.duration = PickerColumn_DEFAULT_DURATION;
82400
+ this.setIndex(index, true);
82401
+ },
82402
+ adjustIndex: function adjustIndex(index) {
82403
+ index = range(index, 0, this.count);
82404
+
82405
+ for (var i = index; i < this.count; i++) {
82406
+ if (!PickerColumn_isOptionDisabled(this.options[i])) return i;
82407
+ }
82408
+
82409
+ for (var _i = index - 1; _i >= 0; _i--) {
82410
+ if (!PickerColumn_isOptionDisabled(this.options[_i])) return _i;
82411
+ }
82412
+ },
82413
+ getOptionText: function getOptionText(option) {
82414
+ if (Object(utils["g" /* isObject */])(option) && this.valueKey in option) {
82415
+ return option[this.valueKey];
82416
+ }
82417
+
82418
+ return option;
82419
+ },
82420
+ setOptionText: function setOptionText(option, text) {
82421
+ if (Object(utils["g" /* isObject */])(option) && this.valueKey in option) {
82422
+ option[this.valueKey] = text;
82423
+ }
82424
+
82425
+ option = text;
82426
+ return option;
82427
+ },
82428
+ setIndex: function setIndex(index, emitChange) {
82429
+ var _this4 = this;
82430
+
82431
+ index = this.adjustIndex(index) || 0;
82432
+
82433
+ var trigger = function trigger() {
82434
+ if (index !== _this4.currentIndex) {
82435
+ _this4.currentIndex = index;
82436
+
82437
+ if (emitChange) {
82438
+ _this4.$emit('change', index);
82439
+ }
82440
+ }
82441
+ }; // trigger the change event after transitionend when moving
82442
+
82443
+
82444
+ if (this.moving) {
82445
+ this.transitionEndTrigger = trigger;
82446
+ } else {
82447
+ trigger();
82448
+ }
82449
+ },
82450
+ setValue: function setValue(value) {
82451
+ var options = this.options;
82452
+
82453
+ for (var i = 0; i < options.length; i++) {
82454
+ if (this.getOptionText(options[i]) === value) {
82455
+ return this.setIndex(i);
82456
+ }
82457
+ }
82458
+ },
82459
+ getValue: function getValue() {
82460
+ return this.options[this.currentIndex];
82461
+ },
82462
+ setRangeOffset: function setRangeOffset(distance) {
82463
+ var maxOffsetVal = this.$refs.wrapper.clientHeight - this.wrapHeight; // 在设置底部toolbar的时候,不需要这个间距
82464
+
82465
+ if (this.toolbarPosition !== 'bottom') {
82466
+ maxOffsetVal += RADIO_COLUMN_BOTTOM_ITEM_EMPTY_LEN;
82467
+ }
82468
+
82469
+ this.offset = range(distance, -maxOffsetVal, 0);
82470
+ },
82471
+ momentum: function momentum(distance, duration) {
82472
+ var speed = Math.abs(distance / duration);
82473
+ distance = this.offset + speed / 0.003 * (distance < 0 ? -1 : 1);
82474
+ this.setRangeOffset(distance);
82475
+ this.duration = +this.swipeDuration;
82476
+ },
82477
+ stopMomentum: function stopMomentum() {
82478
+ this.moving = false;
82479
+ this.duration = 0;
82480
+ },
82481
+
82482
+ /**
82483
+ * @description: 高亮显示搜索匹配的字段
82484
+ * @param {*} text radio label
82485
+ */
82486
+ transSearchedText: function transSearchedText(text) {
82487
+ var regex = new RegExp(this.searchVal, 'gi');
82488
+ var replaced = text.replace(regex, "<span style='color: #0091FA;'>$&</span>");
82489
+ return replaced;
82490
+ },
82491
+ genOptions: function genOptions() {
82492
+ var _this5 = this;
82493
+
82494
+ var h = this.$createElement;
82495
+ return this.options.map(function (option, index) {
82496
+ var _text, _domProps;
82497
+
82498
+ var text = _this5.getOptionText(option);
82499
+
82500
+ var disabled = PickerColumn_isOptionDisabled(option);
82501
+ var scopedSlots = option;
82502
+
82503
+ if (_this5.searchable) {
82504
+ scopedSlots = {
82505
+ option: option,
82506
+ searchVal: _this5.searchVal
82507
+ };
82508
+ } // 支持搜索处理
82509
+
82510
+
82511
+ var isSearchMatch = (_text = text) == null ? void 0 : _text.includes(_this5.searchVal);
82512
+ var isSearchedTrans = false;
82513
+
82514
+ if (isSearchMatch && _this5.searchVal) {
82515
+ text = _this5.transSearchedText(text);
82516
+ isSearchedTrans = true;
82517
+ }
82518
+
82519
+ var data = {
82520
+ attrs: {
82521
+ role: 'radio',
82522
+ tabindex: disabled ? -1 : 0
82523
+ },
82524
+ class: [radio_picker_PickerColumn_bem('item', {
82525
+ disabled: disabled,
82526
+ 'not-match': !isSearchMatch
82527
+ })],
82528
+ on: {
82529
+ click: function click(e) {
82530
+ e.preventDefault();
82531
+
82532
+ _this5.onClickItem(index);
82533
+ }
82534
+ }
82535
+ };
82536
+ var childData = {
82537
+ domProps: (_domProps = {}, _domProps[_this5.allowHtml || isSearchedTrans ? 'innerHTML' : 'textContent'] = text, _domProps)
82538
+ };
82539
+ return h(es_radio, helper_default()([{
82540
+ "attrs": {
82541
+ "name": index
82542
+ }
82543
+ }, data]), [_this5.slots('option', scopedSlots) || h("div", helper_default()([{}, childData]))]);
82544
+ });
82545
+ },
82546
+ recordConfirmIndex: function recordConfirmIndex() {
82547
+ this.confirmIndex = this.currentIndex;
82548
+ },
82549
+ setConfirmIndex: function setConfirmIndex() {
82550
+ if (this.confirmIndex || this.confirmIndex === 0) {
82551
+ this.setIndex(this.confirmIndex, true);
82552
+ }
82553
+ },
82554
+ genEmpty: function genEmpty() {
82555
+ var h = this.$createElement;
82556
+ return h(empty, {
82557
+ "attrs": {
82558
+ "description": "暂无搜索结果"
82559
+ }
82560
+ });
82561
+ }
82562
+ },
82563
+ render: function render() {
82564
+ var _this6 = this;
82565
+
82566
+ var h = arguments[0];
82567
+ var wrapperStyle = {
82568
+ transform: "translate3d(0, " + (this.offset + this.baseOffset) + "px, 0)",
82569
+ transitionDuration: this.duration + "ms",
82570
+ transitionProperty: this.duration ? 'all' : 'none'
82571
+ };
82572
+ return h("div", {
82573
+ "class": [radio_picker_PickerColumn_bem(), this.className]
82574
+ }, [h("ul", {
82575
+ "ref": "wrapper",
82576
+ "style": wrapperStyle,
82577
+ "class": radio_picker_PickerColumn_bem('wrapper'),
82578
+ "on": {
82579
+ "transitionend": this.onTransitionEnd
82580
+ }
82581
+ }, [h(radio_group, {
82582
+ "attrs": {
82583
+ "value": this.currentIndex
82584
+ },
82585
+ "on": {
82586
+ "change": function change(val) {
82587
+ _this6.currentIndex = val;
82588
+ }
82589
+ }
82590
+ }, [this.genOptions()]), this.isSearchEmpty ? this.genEmpty() : null])]);
82591
+ }
82592
+ }));
82593
+ // CONCATENATED MODULE: ./es/radio-picker/index.js
82594
+ // Utils
82595
+
82596
+
82597
+
82598
+
82599
+ // Components
82600
+
82601
+
82602
+
82603
+
82604
+
82605
+
82606
+
82607
+ var radio_picker_createNamespace = Object(utils["b" /* createNamespace */])('radio-picker'),
82608
+ radio_picker_createComponent = radio_picker_createNamespace[0],
82609
+ radio_picker_bem = radio_picker_createNamespace[1],
82610
+ radio_picker_t = radio_picker_createNamespace[2];
82611
+
82612
+ /* harmony default export */ var radio_picker = (radio_picker_createComponent({
82613
+ mixins: [PopupMixin()],
82614
+ props: _extends({}, radioPickerProps, {
82615
+ defaultIndex: {
82616
+ type: [Number, String],
82617
+ default: 0
82618
+ },
82619
+ columns: {
82620
+ type: Array,
82621
+ default: function _default() {
82622
+ return [];
82623
+ }
82624
+ },
82625
+ headers: {
82626
+ type: Array,
82627
+ default: null
82628
+ },
82629
+ toolbarPosition: {
82630
+ type: String,
82631
+ default: 'top'
82632
+ },
82633
+ valueKey: {
82634
+ type: String,
82635
+ default: 'text'
82636
+ },
82637
+ searchable: {
82638
+ type: Boolean,
82639
+ default: false
82640
+ },
82641
+ searchPlaceholder: {
82642
+ type: String,
82643
+ default: '请输入'
82644
+ }
82645
+ }),
82646
+ data: function data() {
82647
+ return {
82648
+ children: [],
82649
+ formattedColumns: [],
82650
+ confirmIndex: '',
82651
+ searchVal: '',
82652
+ searchConfirmVal: ''
82653
+ };
82654
+ },
82655
+ computed: {
82656
+ wrapPxHeight: function wrapPxHeight() {
82657
+ return this.wrapHeight ? Object(unit["b" /* unitToPx */])(this.wrapHeight) : DEFAULT_WRAP_HEIGHT;
82658
+ },
82659
+ dataType: function dataType() {
82660
+ var columns = this.columns;
82661
+ var firstColumn = columns[0] || {};
82662
+
82663
+ if (firstColumn.children) {
82664
+ return 'cascade';
82665
+ }
82666
+
82667
+ if (firstColumn.values) {
82668
+ return 'object';
82669
+ }
82670
+
82671
+ return 'text';
82672
+ }
82673
+ },
82674
+ watch: {
82675
+ columns: {
82676
+ handler: 'format',
82677
+ immediate: true
82678
+ },
82679
+ showPicker: {
82680
+ handler: function handler(val) {
82681
+ var _this = this;
82682
+
82683
+ if (val) {
82684
+ this.$nextTick(function () {
82685
+ _this.children.forEach(function (child) {
82686
+ child.setConfirmIndex();
82687
+ });
82688
+
82689
+ _this.children.forEach(function (child) {
82690
+ child.recordConfirmIndex();
82691
+ });
82692
+ });
82693
+ }
82694
+ },
82695
+ immediate: true
82696
+ }
82697
+ },
82698
+ methods: {
82699
+ onClickOverlay: function onClickOverlay() {
82700
+ if (this.closeOnClickOverlay) {
82701
+ this.cancel();
82702
+ }
82703
+ },
82704
+ format: function format() {
82705
+ var columns = this.columns,
82706
+ dataType = this.dataType;
82707
+
82708
+ if (dataType === 'text') {
82709
+ this.formattedColumns = [{
82710
+ values: columns
82711
+ }];
82712
+ } else if (dataType === 'cascade') {
82713
+ this.formatCascade();
82714
+ } else {
82715
+ this.formattedColumns = columns;
82716
+ }
82717
+ },
82718
+ formatCascade: function formatCascade() {
82719
+ var formatted = [];
82720
+ var cursor = {
82721
+ children: this.columns
82722
+ };
82723
+
82724
+ while (cursor && cursor.children) {
82725
+ var _cursor$defaultIndex;
82726
+
82727
+ var _cursor = cursor,
82728
+ children = _cursor.children;
82729
+ var defaultIndex = (_cursor$defaultIndex = cursor.defaultIndex) != null ? _cursor$defaultIndex : +this.defaultIndex;
82730
+
82731
+ while (children[defaultIndex] && children[defaultIndex].disabled) {
82732
+ if (defaultIndex < children.length - 1) {
82733
+ defaultIndex++;
82734
+ } else {
82735
+ defaultIndex = 0;
82736
+ break;
82737
+ }
82738
+ }
82739
+
82740
+ formatted.push({
82741
+ values: cursor.children,
82742
+ className: cursor.className,
82743
+ defaultIndex: defaultIndex
82744
+ });
82745
+ cursor = children[defaultIndex];
82746
+ }
82747
+
82748
+ this.formattedColumns = formatted;
82749
+ },
82750
+ emit: function emit(event) {
82751
+ var _this2 = this;
82752
+
82753
+ if (this.dataType === 'text') {
82754
+ this.$emit(event, this.getColumnValue(0), this.getColumnIndex(0));
82755
+ } else {
82756
+ var values = this.getValues(); // compatible with old version of wrong parameters
82757
+ // should be removed in next major version
82758
+ // see: https://github.com/vant-ui/vant/issues/5905
82759
+
82760
+ if (this.dataType === 'cascade') {
82761
+ values = values.map(function (item) {
82762
+ return item[_this2.valueKey];
82763
+ });
82764
+ }
82765
+
82766
+ this.$emit(event, values, this.getIndexes());
82767
+ }
82768
+ },
82769
+ onCascadeChange: function onCascadeChange(columnIndex) {
82770
+ var cursor = {
82771
+ children: this.columns
82772
+ };
82773
+ var indexes = this.getIndexes();
82774
+
82775
+ for (var i = 0; i <= columnIndex; i++) {
82776
+ cursor = cursor.children[indexes[i]];
82777
+ }
82778
+
82779
+ while (cursor && cursor.children) {
82780
+ columnIndex++;
82781
+ this.setColumnValues(columnIndex, cursor.children);
82782
+ cursor = cursor.children[cursor.defaultIndex || 0];
82783
+ }
82784
+ },
82785
+ onChange: function onChange(columnIndex) {
82786
+ var _this3 = this;
82787
+
82788
+ if (this.dataType === 'cascade') {
82789
+ this.onCascadeChange(columnIndex);
82790
+ }
82791
+
82792
+ if (this.dataType === 'text') {
82793
+ this.$emit('change', this, this.getColumnValue(0), this.getColumnIndex(0));
82794
+ } else {
82795
+ var values = this.getValues(); // compatible with old version of wrong parameters
82796
+ // should be removed in next major version
82797
+ // see: https://github.com/vant-ui/vant/issues/5905
82798
+
82799
+ if (this.dataType === 'cascade') {
82800
+ values = values.map(function (item) {
82801
+ return item[_this3.valueKey];
82802
+ });
82803
+ }
82804
+
82805
+ this.$emit('change', this, values, columnIndex);
82806
+ }
82807
+ },
82808
+ getColumnCount: function getColumnCount() {
82809
+ return this.children ? this.children.length : 0;
82810
+ },
82811
+ // get column instance by index
82812
+ getColumn: function getColumn(index) {
82813
+ return this.children[index];
82814
+ },
82815
+ // @exposed-api
82816
+ // get column value by index
82817
+ getColumnValue: function getColumnValue(index) {
82818
+ var column = this.getColumn(index);
82819
+ return column && column.getValue();
82820
+ },
82821
+ // @exposed-api
82822
+ // set column value by index
82823
+ setColumnValue: function setColumnValue(index, value) {
82824
+ var column = this.getColumn(index);
82825
+
82826
+ if (column) {
82827
+ column.setValue(value);
82828
+
82829
+ if (this.dataType === 'cascade') {
82830
+ this.onCascadeChange(index);
82831
+ }
82832
+ }
82833
+ },
82834
+ // @exposed-api
82835
+ // get column option index by column index
82836
+ getColumnIndex: function getColumnIndex(columnIndex) {
82837
+ return (this.getColumn(columnIndex) || {}).currentIndex;
82838
+ },
82839
+ // @exposed-api
82840
+ // set column option index by column index
82841
+ setColumnIndex: function setColumnIndex(columnIndex, optionIndex) {
82842
+ var column = this.getColumn(columnIndex);
82843
+
82844
+ if (column) {
82845
+ column.setIndex(optionIndex);
82846
+
82847
+ if (this.dataType === 'cascade') {
82848
+ this.onCascadeChange(columnIndex);
82849
+ }
82850
+ }
82851
+ },
82852
+ // @exposed-api
82853
+ // get options of column by index
82854
+ getColumnValues: function getColumnValues(index) {
82855
+ return (this.children[index] || {}).options;
82856
+ },
82857
+ // @exposed-api
82858
+ // set options of column by index
82859
+ setColumnValues: function setColumnValues(index, options) {
82860
+ var column = this.children[index];
82861
+
82862
+ if (column) {
82863
+ column.setOptions(options);
82864
+ }
82865
+ },
82866
+ // @exposed-api
82867
+ // get values of all columns
82868
+ getValues: function getValues() {
82869
+ return this.children.map(function (child) {
82870
+ return child.getValue();
82871
+ });
82872
+ },
82873
+ // @exposed-api
82874
+ // set values of all columns
82875
+ setValues: function setValues(values) {
82876
+ var _this4 = this;
82877
+
82878
+ values.forEach(function (value, index) {
82879
+ _this4.setColumnValue(index, value);
82880
+ });
82881
+ },
82882
+ // @exposed-api
82883
+ // get indexes of all columns
82884
+ getIndexes: function getIndexes() {
82885
+ return this.children.map(function (child) {
82886
+ return child.currentIndex;
82887
+ });
82888
+ },
82889
+ // @exposed-api
82890
+ // set indexes of all columns
82891
+ setIndexes: function setIndexes(indexes) {
82892
+ var _this5 = this;
82893
+
82894
+ indexes.forEach(function (optionIndex, columnIndex) {
82895
+ _this5.setColumnIndex(columnIndex, optionIndex);
82896
+ });
82897
+ },
82898
+ // @exposed-api
82899
+ confirm: function confirm() {
82900
+ this.children.forEach(function (child) {
82901
+ return child.stopMomentum();
82902
+ });
82903
+ this.children.forEach(function (child) {
82904
+ return child.recordConfirmIndex();
82905
+ });
82906
+ this.emit('confirm');
82907
+ },
82908
+ cancel: function cancel() {
82909
+ this.$emit('update:showPicker', false);
82910
+ this.emit('cancel');
82911
+ },
82912
+ genTitle: function genTitle() {
82913
+ var h = this.$createElement;
82914
+ var titleSlot = this.slots('title');
82915
+
82916
+ if (titleSlot) {
82917
+ return titleSlot;
82918
+ }
82919
+
82920
+ if (this.title) {
82921
+ return h("div", {
82922
+ "class": ['zt-ellipsis', radio_picker_bem('title')]
82923
+ }, [this.title]);
82924
+ }
82925
+ },
82926
+ genCancel: function genCancel() {
82927
+ var h = this.$createElement;
82928
+ return h("button", {
82929
+ "attrs": {
82930
+ "type": "button"
82931
+ },
82932
+ "class": radio_picker_bem('cancel'),
82933
+ "on": {
82934
+ "click": this.cancel
82935
+ }
82936
+ }, [this.slots('cancel') || this.cancelButtonText || radio_picker_t('cancel')]);
82937
+ },
82938
+ genConfirm: function genConfirm() {
82939
+ var h = this.$createElement;
82940
+ return h("button", {
82941
+ "attrs": {
82942
+ "type": "button"
82943
+ },
82944
+ "class": radio_picker_bem('confirm'),
82945
+ "on": {
82946
+ "click": this.confirm
82947
+ }
82948
+ }, [this.slots('confirm') || this.confirmButtonText || radio_picker_t('confirm')]);
82949
+ },
82950
+ genToolbar: function genToolbar() {
82951
+ var h = this.$createElement;
82952
+
82953
+ if (this.showToolbar) {
82954
+ return h("div", {
82955
+ "class": radio_picker_bem('toolbar')
82956
+ }, [this.slots() || [this.genCancel(), this.genTitle(), this.genConfirm()]]);
82957
+ }
82958
+ },
82959
+ genHeaders: function genHeaders() {
82960
+ var h = this.$createElement;
82961
+ return h("ul", {
82962
+ "class": radio_picker_bem('header')
82963
+ }, [this.genHeaderItems()]);
82964
+ },
82965
+ genHeaderItems: function genHeaderItems() {
82966
+ var h = this.$createElement;
82967
+ return this.headers.map(function (header) {
82968
+ return h("li", [header]);
82969
+ });
82970
+ },
82971
+ genSearch: function genSearch() {
82972
+ var h = this.$createElement;
82973
+ return h(search, {
82974
+ "attrs": {
82975
+ "value": this.searchVal,
82976
+ "placeholder": this.searchPlaceholder
82977
+ },
82978
+ "on": {
82979
+ "input": this.handleSearchInput,
82980
+ "search": this.handleSearch
82981
+ }
82982
+ });
82983
+ },
82984
+ handleSearchInput: function handleSearchInput(inputVal) {
82985
+ this.searchVal = inputVal; // 直接清空输入框的情况,就不继续展示已经查询的内容了
82986
+
82987
+ if (!inputVal) {
82988
+ this.handleSearch(inputVal);
82989
+ }
82990
+ },
82991
+
82992
+ /**
82993
+ * @description: 这里才将输入值实际传递给子组件进行过滤
82994
+ * @param {*} e 搜索框的输入值
82995
+ */
82996
+ handleSearch: function handleSearch(e) {
82997
+ this.searchConfirmVal = e;
82998
+ },
82999
+ genColumns: function genColumns() {
83000
+ var h = this.$createElement;
83001
+ var wrapHeight = this.wrapHeight;
83002
+ var columnsStyle = {
83003
+ height: wrapHeight + "px"
83004
+ };
83005
+ return h("div", {
83006
+ "class": radio_picker_bem('columns'),
83007
+ "style": columnsStyle,
83008
+ "on": {
83009
+ "touchmove": preventDefault
83010
+ }
83011
+ }, [this.genColumnItems()]);
83012
+ },
83013
+ genColumnItems: function genColumnItems() {
83014
+ var _this6 = this;
83015
+
83016
+ var h = this.$createElement;
83017
+ return this.formattedColumns.map(function (item, columnIndex) {
83018
+ var _item$defaultIndex;
83019
+
83020
+ return h(radio_picker_PickerColumn, {
83021
+ "attrs": {
83022
+ "columnCollector": _this6.children,
83023
+ "readonly": _this6.readonly,
83024
+ "valueKey": _this6.valueKey,
83025
+ "allowHtml": _this6.allowHtml,
83026
+ "searchVal": _this6.searchConfirmVal,
83027
+ "searchable": _this6.searchable,
83028
+ "toolbarPosition": _this6.toolbarPosition,
83029
+ "className": item.className,
83030
+ "wrapHeight": _this6.wrapPxHeight,
83031
+ "defaultIndex": (_item$defaultIndex = item.defaultIndex) != null ? _item$defaultIndex : +_this6.defaultIndex,
83032
+ "swipeDuration": _this6.swipeDuration,
83033
+ "initialOptions": item.values
83034
+ },
83035
+ "scopedSlots": {
83036
+ option: _this6.$scopedSlots.option
83037
+ },
83038
+ "on": {
83039
+ "change": function change() {
83040
+ _this6.onChange(columnIndex);
83041
+ }
83042
+ }
83043
+ });
83044
+ });
83045
+ }
83046
+ },
83047
+ render: function render(h) {
83048
+ return h(popup, {
83049
+ "attrs": {
83050
+ "value": this.showPicker,
83051
+ "round": true,
83052
+ "position": "bottom",
83053
+ "closeOnPopstate": this.closeOnPopstate,
83054
+ "closeOnClickOverlay": this.closeOnClickOverlay,
83055
+ "customOnClickOverlay": this.onClickOverlay
83056
+ }
83057
+ }, [h("div", {
83058
+ "class": radio_picker_bem(),
83059
+ "ref": "columnParent"
83060
+ }, [this.toolbarPosition === 'top' ? this.genToolbar() : h(), this.toolbarPosition === 'top' ? h("div", {
83061
+ "class": radio_picker_bem('border')
83062
+ }) : h(), this.loading ? h(es_loading, {
83063
+ "class": radio_picker_bem('loading')
83064
+ }) : h(), this.slots('columns-top'), this.headers && this.headers.length > 0 ? this.genHeaders() : h(), this.headers && this.headers.length > 0 ? h("div", {
83065
+ "class": radio_picker_bem('border')
83066
+ }) : h(), this.searchable ? this.genSearch() : h(), this.searchable ? h("div", {
83067
+ "class": radio_picker_bem('border')
83068
+ }) : h(), this.genColumns(), this.slots('columns-bottom'), this.toolbarPosition === 'bottom' ? this.genToolbar() : h()])]);
83069
+ }
83070
+ }));
83071
+ // CONCATENATED MODULE: ./es/rate/index.js
83072
+ // Utils
83073
+
83074
+ // Mixins
83075
+
83076
+
83077
+ // Components
83078
+
83079
+
83080
+
83081
+ var rate_createNamespace = Object(utils["b" /* createNamespace */])('rate'),
83082
+ rate_createComponent = rate_createNamespace[0],
83083
+ rate_bem = rate_createNamespace[1];
83084
+
83085
+ function getRateStatus(value, index, allowHalf) {
83086
+ if (value >= index) {
83087
+ return 'full';
83088
+ }
83089
+
83090
+ if (value + 0.5 >= index && allowHalf) {
83091
+ return 'half';
83092
+ }
83093
+
83094
+ return 'void';
83095
+ }
83096
+
83097
+ /* harmony default export */ var es_rate = (rate_createComponent({
83098
+ mixins: [TouchMixin, FieldMixin],
83099
+ props: {
83100
+ size: [Number, String],
83101
+ color: String,
83102
+ gutter: [Number, String],
83103
+ readonly: Boolean,
83104
+ disabled: Boolean,
83105
+ allowHalf: Boolean,
83106
+ voidColor: String,
83107
+ iconPrefix: String,
83108
+ disabledColor: String,
83109
+ value: {
83110
+ type: Number,
83111
+ default: 0
83112
+ },
83113
+ icon: {
83114
+ type: String,
83115
+ default: 'star'
83116
+ },
83117
+ voidIcon: {
83118
+ type: String,
83119
+ default: 'star'
83120
+ },
83121
+ count: {
83122
+ type: [Number, String],
83123
+ default: 5
83124
+ },
83125
+ touchable: {
83126
+ type: Boolean,
83127
+ default: true
83128
+ }
83129
+ },
83130
+ computed: {
83131
+ list: function list() {
83132
+ var list = [];
83133
+
83134
+ for (var i = 1; i <= this.count; i++) {
83135
+ list.push(getRateStatus(this.value, i, this.allowHalf));
83136
+ }
83137
+
83138
+ return list;
83139
+ },
83140
+ sizeWithUnit: function sizeWithUnit() {
83141
+ return Object(utils["a" /* addUnit */])(this.size);
83142
+ },
83143
+ gutterWithUnit: function gutterWithUnit() {
83144
+ return Object(utils["a" /* addUnit */])(this.gutter);
83145
+ }
83146
+ },
83147
+ mounted: function mounted() {
83148
+ this.bindTouchEvent(this.$el);
83149
+ },
83150
+ methods: {
83151
+ select: function select(index) {
83152
+ if (!this.disabled && !this.readonly && index !== this.value) {
83153
+ this.$emit('input', index);
83154
+ this.$emit('change', index);
83155
+ }
83156
+ },
83157
+ onTouchStart: function onTouchStart(event) {
83158
+ var _this = this;
83159
+
83160
+ if (this.readonly || this.disabled || !this.touchable) {
83161
+ return;
83162
+ }
83163
+
83164
+ this.touchStart(event);
83165
+ var rects = this.$refs.items.map(function (item) {
83166
+ return item.getBoundingClientRect();
83167
+ });
83168
+ var ranges = [];
83169
+ rects.forEach(function (rect, index) {
83170
+ if (_this.allowHalf) {
83171
+ ranges.push({
83172
+ score: index + 0.5,
83173
+ left: rect.left
83174
+ }, {
83175
+ score: index + 1,
83176
+ left: rect.left + rect.width / 2
83177
+ });
83178
+ } else {
83179
+ ranges.push({
83180
+ score: index + 1,
83181
+ left: rect.left
83182
+ });
83183
+ }
83184
+ });
83185
+ this.ranges = ranges;
83186
+ },
83187
+ onTouchMove: function onTouchMove(event) {
83188
+ if (this.readonly || this.disabled || !this.touchable) {
83189
+ return;
83190
+ }
83191
+
83192
+ this.touchMove(event);
83193
+
83194
+ if (this.direction === 'horizontal') {
83195
+ preventDefault(event);
83196
+ var clientX = event.touches[0].clientX;
83197
+ this.select(this.getScoreByPosition(clientX));
83198
+ }
83199
+ },
83200
+ getScoreByPosition: function getScoreByPosition(x) {
83201
+ for (var i = this.ranges.length - 1; i > 0; i--) {
83202
+ if (x > this.ranges[i].left) {
83203
+ return this.ranges[i].score;
83204
+ }
83205
+ }
83206
+
83207
+ return this.allowHalf ? 0.5 : 1;
83208
+ },
83209
+ genStar: function genStar(status, index) {
83210
+ var _this2 = this;
83211
+
83212
+ var h = this.$createElement;
83213
+ var icon = this.icon,
83214
+ color = this.color,
83215
+ count = this.count,
83216
+ voidIcon = this.voidIcon,
83217
+ disabled = this.disabled,
83218
+ voidColor = this.voidColor,
83219
+ disabledColor = this.disabledColor;
83220
+ var score = index + 1;
83221
+ var isFull = status === 'full';
83222
+ var isVoid = status === 'void';
83223
+ var style;
83224
+
83225
+ if (this.gutterWithUnit && score !== +count) {
83226
+ style = {
83227
+ paddingRight: this.gutterWithUnit
83228
+ };
83229
+ }
83230
+
83231
+ return h("div", {
83232
+ "ref": "items",
83233
+ "refInFor": true,
83234
+ "key": index,
83235
+ "attrs": {
83236
+ "role": "radio",
83237
+ "tabindex": "0",
83238
+ "aria-setsize": count,
83239
+ "aria-posinset": score,
83240
+ "aria-checked": String(!isVoid)
83241
+ },
83242
+ "style": style,
83243
+ "class": rate_bem('item')
83244
+ }, [h(es_icon, {
83245
+ "attrs": {
83246
+ "size": this.sizeWithUnit,
83247
+ "name": isFull ? icon : voidIcon,
83248
+ "color": disabled ? disabledColor : isFull ? color : voidColor,
83249
+ "classPrefix": this.iconPrefix,
83250
+ "data-score": score
83251
+ },
83252
+ "class": rate_bem('icon', {
83253
+ disabled: disabled,
83254
+ full: isFull
83255
+ }),
83256
+ "on": {
83257
+ "click": function click() {
83258
+ _this2.select(score);
83259
+ }
83260
+ }
83261
+ }), this.allowHalf && h(es_icon, {
83262
+ "attrs": {
83263
+ "size": this.sizeWithUnit,
83264
+ "name": isVoid ? voidIcon : icon,
83265
+ "color": disabled ? disabledColor : isVoid ? voidColor : color,
83266
+ "classPrefix": this.iconPrefix,
83267
+ "data-score": score - 0.5
83268
+ },
83269
+ "class": rate_bem('icon', ['half', {
83270
+ disabled: disabled,
83271
+ full: !isVoid
83272
+ }]),
83273
+ "on": {
83274
+ "click": function click() {
83275
+ _this2.select(score - 0.5);
83276
+ }
83277
+ }
83278
+ })]);
83279
+ }
83280
+ },
83281
+ render: function render() {
83282
+ var _this3 = this;
83283
+
83284
+ var h = arguments[0];
83285
+ return h("div", {
83286
+ "class": rate_bem({
83287
+ readonly: this.readonly,
83288
+ disabled: this.disabled
83289
+ }),
83290
+ "attrs": {
83291
+ "tabindex": "0",
83292
+ "role": "radiogroup"
83293
+ }
83294
+ }, [this.list.map(function (status, index) {
83295
+ return _this3.genStar(status, index);
83296
+ })]);
83297
+ }
83298
+ }));
83299
+ // CONCATENATED MODULE: ./es/row/index.js
83300
+
83301
+
83302
+
83303
+ var row_createNamespace = Object(utils["b" /* createNamespace */])('row'),
83304
+ row_createComponent = row_createNamespace[0],
83305
+ row_bem = row_createNamespace[1];
83306
+
83307
+ /* harmony default export */ var row = (row_createComponent({
83308
+ mixins: [ParentMixin('ztRow')],
83309
+ props: {
83310
+ type: String,
83311
+ align: String,
83312
+ justify: String,
83313
+ tag: {
83314
+ type: String,
83315
+ default: 'div'
83316
+ },
83317
+ gutter: {
83318
+ type: [Number, String],
83319
+ default: 0
83320
+ }
83321
+ },
83322
+ computed: {
83323
+ spaces: function spaces() {
83324
+ var gutter = Number(this.gutter);
83325
+
83326
+ if (!gutter) {
83327
+ return;
83328
+ }
83329
+
83330
+ var spaces = [];
83331
+ var groups = [[]];
83332
+ var totalSpan = 0;
83333
+ this.children.forEach(function (item, index) {
83334
+ totalSpan += Number(item.span);
83335
+
83336
+ if (totalSpan > 24) {
83337
+ groups.push([index]);
83338
+ totalSpan -= 24;
83339
+ } else {
83340
+ groups[groups.length - 1].push(index);
83341
+ }
83342
+ });
83343
+ groups.forEach(function (group) {
83344
+ var averagePadding = gutter * (group.length - 1) / group.length;
83345
+ group.forEach(function (item, index) {
83346
+ if (index === 0) {
83347
+ spaces.push({
83348
+ right: averagePadding
83349
+ });
83350
+ } else {
83351
+ var left = gutter - spaces[item - 1].right;
83352
+ var right = averagePadding - left;
83353
+ spaces.push({
83354
+ left: left,
83355
+ right: right
83356
+ });
83357
+ }
83358
+ });
83359
+ });
83360
+ return spaces;
83361
+ }
83362
+ },
83363
+ methods: {
83364
+ onClick: function onClick(event) {
83365
+ this.$emit('click', event);
83366
+ }
83367
+ },
83368
+ render: function render() {
83369
+ var _bem;
83370
+
83371
+ var h = arguments[0];
83372
+ var align = this.align,
83373
+ justify = this.justify;
83374
+ var flex = this.type === 'flex';
83375
+ return h(this.tag, {
83376
+ "class": row_bem((_bem = {
83377
+ flex: flex
83378
+ }, _bem["align-" + align] = flex && align, _bem["justify-" + justify] = flex && justify, _bem)),
83379
+ "on": {
83380
+ "click": this.onClick
83381
+ }
83382
+ }, [this.slots()]);
83383
+ }
83384
+ }));
82436
83385
  // CONCATENATED MODULE: ./es/utils/media/image-util.js
82437
83386
  /**
82438
83387
  * Convert File to data schema url
@@ -85691,10 +86640,11 @@ var uploader_createNamespace = Object(utils["b" /* createNamespace */])('uploade
85691
86640
 
85692
86641
 
85693
86642
 
85694
- var version = '1.0.21';
86643
+
86644
+ var version = '1.0.23';
85695
86645
 
85696
86646
  function install(Vue) {
85697
- var components = [action_sheet, es_area, avatar, back_top, badge, es_button, calendar, cascader, cell, cell_group, es_checkbox, checkbox_group, circle, col, collapse, collapse_item, count_down, datetime_picker, dialog, divider, dropdown_item, dropdown_menu, empty, es_field, fold_dialog, es_form, grid, grid_item, hierarchy_select, es_icon, es_image, image_preview, index_anchor, index_bar, es_info, lazyload, es_list, es_loading, locale["a" /* default */], media_picker, media_player, multiple_picker, nav_bar, notice_bar, number_keyboard, es_overlay, password_input, pdf_viewer, pdf_viewer_v2, es_picker, popover, popup, pull_refresh, es_radio, radio_group, es_rate, row, search, signature, skeleton, slider, es_step, stepper, es_steps, es_sticky, swipe, swipe_cell, swipe_item, es_switch, switch_cell, tab, tabbar, tabbar_item, table, tabs, es_tag, timeline, es_toast, uploader];
86647
+ var components = [action_sheet, es_area, avatar, back_top, badge, es_button, calendar, cascader, cell, cell_group, es_checkbox, checkbox_group, circle, col, collapse, collapse_item, count_down, datetime_picker, dialog, divider, dropdown_item, dropdown_menu, empty, es_field, fold_dialog, es_form, grid, grid_item, hierarchy_select, es_icon, es_image, image_preview, index_anchor, index_bar, es_info, lazyload, es_list, es_loading, locale["a" /* default */], media_picker, media_player, multiple_picker, nav_bar, notice_bar, number_keyboard, es_overlay, password_input, pdf_viewer, pdf_viewer_v2, es_picker, popover, popup, pull_refresh, es_radio, radio_group, radio_picker, es_rate, row, search, signature, skeleton, slider, es_step, stepper, es_steps, es_sticky, swipe, swipe_cell, swipe_item, es_switch, switch_cell, tab, tabbar, tabbar_item, table, tabs, es_tag, timeline, es_toast, uploader];
85698
86648
  components.forEach(function (item) {
85699
86649
  if (item.install) {
85700
86650
  Vue.use(item);