dfish-widget 0.1.362 → 0.1.366

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/index.esm.js CHANGED
@@ -2935,10 +2935,6 @@ var script$1e = {
2935
2935
  ref: 'img',
2936
2936
  src: src,
2937
2937
  class: 'w-img-icon',
2938
- style: {
2939
- width: $$1.unitSize(this.x.imgWidth),
2940
- height: $$1.unitSize(this.x.imgHeight)
2941
- },
2942
2938
  onerror: this.onerror
2943
2939
  }), this.$slots.cover && h$1('div', {
2944
2940
  class: 'w-img-cover f-abs-full'
@@ -2954,6 +2950,8 @@ var script$1e = {
2954
2950
  html_props: function html_props() {
2955
2951
  var _this12 = this;
2956
2952
 
2953
+ var w = $$1.unitSize(this.x.imgWidth ? this.x.imgWidth : this.x.width);
2954
+ var h = $$1.unitSize(this.x.imgHeight ? this.x.imgHeight : this.x.height);
2957
2955
  return {
2958
2956
  class: {
2959
2957
  'z-hv': this.hover,
@@ -2962,6 +2960,10 @@ var script$1e = {
2962
2960
  'z-canplay': this.x.canPlay,
2963
2961
  'z-vertical': this.x.vertical
2964
2962
  },
2963
+ style: {
2964
+ '--w-img-icon-width': w,
2965
+ '--w-img-icon-height': h
2966
+ },
2965
2967
  onmouseenter: function onmouseenter(e) {
2966
2968
  return _this12.hover = true;
2967
2969
  },
@@ -6702,6 +6704,10 @@ var script$y = {
6702
6704
  this.val(empty || !this.defaultChecked ? false : true);
6703
6705
  }
6704
6706
  },
6707
+ onclick: function onclick(e) {
6708
+ //implement
6709
+ e.stopPropagation();
6710
+ },
6705
6711
  onchange: function onchange(e) {
6706
6712
  if (this.warnClass && this.x.name) {
6707
6713
  this.ownerView.fAll(this.x.name).forEach(function (v) {
@@ -6763,21 +6769,14 @@ var script$y = {
6763
6769
  class: this.$options.name + '-appear'
6764
6770
  }, h$1('i', {
6765
6771
  class: this.input_icon
6766
- })), h$1('span', {
6772
+ })), this.x.text ? h$1('span', {
6767
6773
  class: this.$options.name + '-text'
6768
- }, this.x.text)];
6774
+ }, this.x.text) : null];
6769
6775
  },
6770
6776
  html_main: function html_main() {
6771
- var _this37 = this;
6772
-
6773
6777
  return h$1('label', {
6774
6778
  class: 'w-input',
6775
- onclick: function onclick(e) {
6776
- e.stopPropagation();
6777
- _this37.provideBoxParent && _this37.provideBoxParent.clickBoxProxy(e);
6778
-
6779
- _this37.relate();
6780
- }
6779
+ onclick: this.onclick
6781
6780
  }, this.html_input());
6782
6781
  },
6783
6782
  html_target: function html_target() {
@@ -6824,16 +6823,16 @@ var script$y = {
6824
6823
  }
6825
6824
  },
6826
6825
  mounted: function mounted() {
6827
- var _this38 = this;
6826
+ var _this37 = this;
6828
6827
 
6829
6828
  var t = this.$refs.target;
6830
6829
 
6831
6830
  if (t) {
6832
6831
  this.$nextTick(function () {
6833
- _this38.$watch(function () {
6834
- return _this38.isChecked && !_this38.isDisabled;
6832
+ _this37.$watch(function () {
6833
+ return _this37.isChecked && !_this37.isDisabled;
6835
6834
  }, function (v) {
6836
- t.$el && _this38.ownerView.fAll(null, t.$el).forEach(function (n) {
6835
+ t.$el && _this37.ownerView.fAll(null, t.$el).forEach(function (n) {
6837
6836
  return n.x.disabled = !v;
6838
6837
  });
6839
6838
  }, {
@@ -6849,13 +6848,20 @@ var script$x = {
6849
6848
  mixins: [script$y],
6850
6849
  props: ['all'],
6851
6850
  watch: {
6852
- checked: function checked(e) {
6851
+ checked: function checked(a) {
6852
+ this.check(a);
6853
+
6853
6854
  if (this.provideBoxParent) {
6854
- !this.provideBoxParent.isFolder() && this.provideBoxParent.clickBoxProxy();
6855
+ this.provideBoxParent.clickBoxProxy();
6855
6856
  }
6856
6857
  }
6857
6858
  },
6858
6859
  methods: {
6860
+ onclick: function onclick(e) {
6861
+ e.stopPropagation();
6862
+ this.provideBoxParent && this.provideBoxParent.clickBoxProxy(e);
6863
+ this.relate();
6864
+ },
6859
6865
  checkstate: function checkstate(a) {
6860
6866
  var b = this.indeterminate ? 2 : this.isChecked ? 1 : 0;
6861
6867
 
@@ -6903,12 +6909,15 @@ var script$x = {
6903
6909
  },
6904
6910
  check: function check(a) {
6905
6911
  if (!this.isNormal) return;
6906
- this.checkstate(a);
6907
- this.relate();
6912
+ var s = this.checkstate();
6913
+
6914
+ if (s != a) {
6915
+ this.checkstate(a);
6916
+ this.relate();
6917
+ }
6908
6918
  }
6909
6919
  },
6910
- mounted: function mounted() {
6911
- !this.x.all && this.relate();
6920
+ mounted: function mounted() {//!this.x.all && this.relate()
6912
6921
  }
6913
6922
  };
6914
6923
  script$x.__file = "src/widgets/TripleBox.vue";
@@ -6916,12 +6925,12 @@ var script$w = {
6916
6925
  name: 'w-leaf',
6917
6926
  pubParentName: 'w-tree',
6918
6927
  mixins: [script$1j, script$1l],
6919
- props: ['text', 'expandedIcon', 'collapsedIcon', 'expanded', 'box', 'br', 'format', 'folder', 'src', 'success', 'filter', 'error', 'complete'],
6928
+ props: ['text', 'expandedIcon', 'collapsedIcon', 'expanded', 'boxSync', 'br', 'format', 'folder', 'src', 'success', 'filter', 'error', 'complete'],
6920
6929
  inject: ['providePubParent', 'provideLeafLevel', 'provideParentLeaf'],
6921
6930
  provide: function provide() {
6922
6931
  return {
6923
6932
  provideParentLeaf: this,
6924
- provideLeafLevel: this.provideLeafLevel + 1,
6933
+ provideLeafLevel: this.provideLeafLevel + (this.isEntity ? 1 : 0),
6925
6934
  provideBoxParent: this
6926
6935
  };
6927
6936
  },
@@ -6937,6 +6946,11 @@ var script$w = {
6937
6946
  hasChild: function hasChild() {
6938
6947
  return this.inTree() ? $$1.hasChild(this.$slots) : this.provideParentLeaf.hasChild();
6939
6948
  },
6949
+ children: function children() {
6950
+ return $$1.lodash.map(this.$refs.cont.querySelectorAll(':scope > .w-leaf'), function (v) {
6951
+ return $$1(v);
6952
+ });
6953
+ },
6940
6954
  getInitLoaded: function getInitLoaded() {
6941
6955
  return this.hasChild() || (this.x || this.$props).folder === false || !this.getSrc() ? true : false;
6942
6956
  },
@@ -6950,18 +6964,18 @@ var script$w = {
6950
6964
  return this.inTree() ? this.hasChild() ? true : this.x.folder != null ? this.x.folder : !!(this.getSrc() && !this.loaded) : this.provideParentLeaf.isFolder();
6951
6965
  },
6952
6966
  toggle: function toggle(exp, fn) {
6953
- var _this39 = this;
6967
+ var _this38 = this;
6954
6968
 
6955
6969
  if (this.inTree()) {
6956
6970
  this.x.expanded = exp != null ? exp : !this.x.expanded;
6957
6971
 
6958
6972
  if (this.isExpanded() && !this.loaded) {
6959
6973
  this.request(function () {
6960
- fn && fn(_this39.isExpanded());
6974
+ fn && fn(_this38.isExpanded());
6961
6975
  });
6962
6976
  } else {
6963
6977
  fn && this.$nextTick(function () {
6964
- fn(_this39.isExpanded());
6978
+ fn(_this38.isExpanded());
6965
6979
  });
6966
6980
  }
6967
6981
  } else {
@@ -6971,10 +6985,12 @@ var script$w = {
6971
6985
  clickBoxProxy: function clickBoxProxy(e) {
6972
6986
  this._triple();
6973
6987
  },
6974
- children: function children() {
6975
- return $$1.lodash.map(this.$refs.cont.querySelectorAll(':scope > .w-leaf'), function (v) {
6976
- return $$1(v);
6977
- });
6988
+ clickText: function clickText(e) {
6989
+ if (this.boxProxy && this.x.boxSync) {
6990
+ this.boxProxy.check(!this.boxProxy.isChecked);
6991
+
6992
+ this._triple();
6993
+ }
6978
6994
  },
6979
6995
  // triplebox 级联勾选
6980
6996
  _triple: function _triple() {
@@ -7014,14 +7030,17 @@ var script$w = {
7014
7030
  this.el().classList.remove('z-hv');
7015
7031
  },
7016
7032
  html_self: function html_self() {
7017
- var _this40 = this;
7033
+ var _this39 = this;
7018
7034
 
7019
7035
  var exp = this.isExpanded();
7020
7036
  var ico = exp ? this.x.expandedIcon : this.x.collapsedIcon;
7021
- return h$1('div', mergeProps$1(this.html_attrs, this.$attrs, this.html_props), [h$1('div', {
7037
+ return h$1('div', mergeProps$1(this.html_attrs, this.$attrs, this.html_props), [this.loading ? h$1(script$1e, {
7038
+ src: '#f-svg-loading',
7039
+ class: 'w-leaf-loading'
7040
+ }) : h$1('div', {
7022
7041
  class: ['w-leaf-toggle f-i', exp ? 'f-i-caret-down' : 'f-i-caret-right'],
7023
7042
  onclick: function onclick(e) {
7024
- e.stopPropagation(), _this40.toggle();
7043
+ e.stopPropagation(), _this39.toggle();
7025
7044
  }
7026
7045
  }), this.$slots.box && this.$slots.box(), ico && h$1(script$1e, {
7027
7046
  src: ico,
@@ -7031,7 +7050,8 @@ var script$w = {
7031
7050
  }]
7032
7051
  }), h$1('div', {
7033
7052
  class: 'w-leaf-text' + ($$1.isNumber(this.x.br) ? ' f-line-' + this.x.br : this.x.br ? '' : ' f-line-1'),
7034
- title: this.x.text
7053
+ title: this.x.text,
7054
+ onclick: this.clickText
7035
7055
  }, this.$slots.text ? this.$slots.text() : this.x.text)]);
7036
7056
  },
7037
7057
  html_cont: function html_cont() {
@@ -7061,7 +7081,7 @@ var script$w = {
7061
7081
  'z-folder': this.isFolder(),
7062
7082
  'z-on': this.isCurrent
7063
7083
  },
7064
- style: 'padding-left:' + $$1.unitSize(this.provideLeafLevel * 16)
7084
+ style: 'padding-left:' + $$1.unitSize((this.provideLeafLevel + 1) * 16)
7065
7085
  };
7066
7086
 
7067
7087
  if (this.inTree()) {
@@ -7073,7 +7093,7 @@ var script$w = {
7073
7093
  }
7074
7094
  },
7075
7095
  mounted: function mounted() {
7076
- var _this41 = this;
7096
+ var _this40 = this;
7077
7097
 
7078
7098
  if (this.x.expanded) this.toggle(true);
7079
7099
 
@@ -7087,8 +7107,8 @@ var script$w = {
7087
7107
 
7088
7108
  if (this.boxProxy) {
7089
7109
  this.$nextTick(function () {
7090
- if (!_this41.isFolder() && !_this41.$refs.cont.nextElementSibling) {
7091
- _this41._triple();
7110
+ if (!_this40.isFolder() && !_this40.$refs.cont.nextElementSibling) {
7111
+ _this40._triple();
7092
7112
  }
7093
7113
  });
7094
7114
  }
@@ -7137,7 +7157,7 @@ var script$v = {
7137
7157
  this.clickItem(e, v);
7138
7158
  },
7139
7159
  html_button: function html_button(i, t, ic, ds) {
7140
- var _this42 = this;
7160
+ var _this41 = this;
7141
7161
 
7142
7162
  return h$1('button', {
7143
7163
  class: ['w-pagebar-button w-pagebar-num', _defineProperty({
@@ -7146,7 +7166,7 @@ var script$v = {
7146
7166
  }, ic, ic)],
7147
7167
  disabled: ds,
7148
7168
  onclick: function onclick(e) {
7149
- return _this42.clickItem(e, i);
7169
+ return _this41.clickItem(e, i);
7150
7170
  }
7151
7171
  }, t || (ic ? '' : i));
7152
7172
  },
@@ -7154,7 +7174,7 @@ var script$v = {
7154
7174
  return this.x.face === 'button' ? this.html_face_button() : this.x.face === 'simple' ? this.html_face_simple() : this.html_face_normal();
7155
7175
  },
7156
7176
  html_buttons: function html_buttons() {
7157
- var _this43 = this;
7177
+ var _this42 = this;
7158
7178
 
7159
7179
  return [h$1(script$$, {
7160
7180
  class: 'w-pagebar-button w-pagebar-prev',
@@ -7162,7 +7182,7 @@ var script$v = {
7162
7182
  disabled: this.currentPage == 1,
7163
7183
  title: $$1.loc.page_text.prev,
7164
7184
  onclick: function onclick(e) {
7165
- return _this43.clickItem(e, _this43.currentPage - 1);
7185
+ return _this42.clickItem(e, _this42.currentPage - 1);
7166
7186
  }
7167
7187
  }), h$1(script$$, {
7168
7188
  class: 'w-pagebar-button w-pagebar-next',
@@ -7170,12 +7190,12 @@ var script$v = {
7170
7190
  disabled: this.currentPage == this.sumPage,
7171
7191
  title: $$1.loc.page_text.next,
7172
7192
  onclick: function onclick(e) {
7173
- return _this43.clickItem(e, _this43.currentPage + 1);
7193
+ return _this42.clickItem(e, _this42.currentPage + 1);
7174
7194
  }
7175
7195
  })];
7176
7196
  },
7177
7197
  html_drop: function html_drop() {
7178
- var _this44 = this;
7198
+ var _this43 = this;
7179
7199
 
7180
7200
  var s = [];
7181
7201
 
@@ -7185,7 +7205,7 @@ var script$v = {
7185
7205
  ref: 'drop',
7186
7206
  text: this.currentPage + '/' + this.sumPage,
7187
7207
  onclick: function onclick(e) {
7188
- return _this44.clickDrop(e);
7208
+ return _this43.clickDrop(e);
7189
7209
  }
7190
7210
  }));
7191
7211
  }
@@ -7198,7 +7218,7 @@ var script$v = {
7198
7218
  text: i,
7199
7219
  on: {
7200
7220
  click: function click(e) {
7201
- return _this44.clickItem(e, i);
7221
+ return _this43.clickItem(e, i);
7202
7222
  }
7203
7223
  }
7204
7224
  }));
@@ -7211,14 +7231,14 @@ var script$v = {
7211
7231
  s.push(h$1(script$Z, {
7212
7232
  snap: {
7213
7233
  target: function target() {
7214
- return _this44.$refs.drop;
7234
+ return _this43.$refs.drop;
7215
7235
  },
7216
7236
  position: 'v',
7217
7237
  indent: 1
7218
7238
  },
7219
7239
  on: {
7220
7240
  close: function close() {
7221
- return _this44.showDrop = false;
7241
+ return _this43.showDrop = false;
7222
7242
  }
7223
7243
  }
7224
7244
  }, {
@@ -7239,7 +7259,7 @@ var script$v = {
7239
7259
  return b;
7240
7260
  },
7241
7261
  html_face_normal: function html_face_normal() {
7242
- var _this45 = this;
7262
+ var _this44 = this;
7243
7263
 
7244
7264
  var s = [];
7245
7265
  var sp = this.sumPage;
@@ -7273,13 +7293,13 @@ var script$v = {
7273
7293
  class: 'w-pagebar-jump-input',
7274
7294
  ref: 'jumpInput',
7275
7295
  onfocus: function onfocus(e) {
7276
- return _this45.isJumpFocus = true;
7296
+ return _this44.isJumpFocus = true;
7277
7297
  },
7278
7298
  onblur: function onblur(e) {
7279
- return _this45.isJumpFocus = false;
7299
+ return _this44.isJumpFocus = false;
7280
7300
  },
7281
7301
  onkeydown: function onkeydown(e) {
7282
- return e.keyCode == 13 && _this45.onJumpClick(e);
7302
+ return e.keyCode == 13 && _this44.onJumpClick(e);
7283
7303
  }
7284
7304
  }));
7285
7305
  s.push(h$1('button', {
@@ -7340,10 +7360,10 @@ var script$u = {
7340
7360
  props: ['collapsedIcon', 'expandedIcon', 'movable', 'range', 'toNext', 'expanded'],
7341
7361
  inject: ['provideLayout'],
7342
7362
  created: function created() {
7343
- var _this46 = this;
7363
+ var _this45 = this;
7344
7364
 
7345
7365
  this.$watch('expanded', function (v) {
7346
- if (typeof v === 'boolean') _this46.x.expanded = v;else if (_this46.x.expanded == null) _this46.x.expanded = true;
7366
+ if (typeof v === 'boolean') _this45.x.expanded = v;else if (_this45.x.expanded == null) _this45.x.expanded = true;
7347
7367
  }, {
7348
7368
  immediate: true
7349
7369
  });
@@ -7358,7 +7378,7 @@ var script$u = {
7358
7378
  }
7359
7379
  },
7360
7380
  dragstart: function dragstart(e) {
7361
- var _this47 = this;
7381
+ var _this46 = this;
7362
7382
 
7363
7383
  var prevElem = this.el().previousElementSibling;
7364
7384
  var nextElem = this.el().nextElementSibling;
@@ -7387,12 +7407,12 @@ var script$u = {
7387
7407
  }, function (e) {
7388
7408
  if (help) {
7389
7409
  help.remove();
7390
- var size = (_this47.x.expanded ? $$1.bcr(minorElem)[sizeName] : 0) + (_this47.x.toNext ? 1 : -1) * (downPos - pos);
7410
+ var size = (_this46.x.expanded ? $$1.bcr(minorElem)[sizeName] : 0) + (_this46.x.toNext ? 1 : -1) * (downPos - pos);
7391
7411
 
7392
7412
  if (size <= 0) {
7393
- _this47.toggle(false);
7413
+ _this46.toggle(false);
7394
7414
  } else {
7395
- if (!_this47.x.expanded) _this47.toggle(true);
7415
+ if (!_this46.x.expanded) _this46.toggle(true);
7396
7416
  $$1.q(minorElem).css(_defineProperty({}, sizeName, size));
7397
7417
  }
7398
7418
  }
@@ -7400,7 +7420,7 @@ var script$u = {
7400
7420
  }
7401
7421
  },
7402
7422
  html_slots: function html_slots() {
7403
- var _this48 = this;
7423
+ var _this47 = this;
7404
7424
 
7405
7425
  var r = [];
7406
7426
  var expandedIcon = this.x.expandedIcon || this.x.collapsedIcon;
@@ -7408,7 +7428,7 @@ var script$u = {
7408
7428
 
7409
7429
  if (expandedIcon) {
7410
7430
  r.push(this.html_icon(this.x.expanded ? expandedIcon : collapsedIcon, 'w-split-icon', function () {
7411
- return _this48.toggle();
7431
+ return _this47.toggle();
7412
7432
  }));
7413
7433
  }
7414
7434
 
@@ -7507,7 +7527,7 @@ var script$s = {
7507
7527
  return suffix ? mimeType(fileName) : 'video/mp4';
7508
7528
  },
7509
7529
  html_slots: function html_slots() {
7510
- var _this49 = this;
7530
+ var _this48 = this;
7511
7531
 
7512
7532
  return [h$1('video', {
7513
7533
  class: 'w-video-vd f-width f-height',
@@ -7515,10 +7535,10 @@ var script$s = {
7515
7535
  src: this.x.src,
7516
7536
  poster: this.x.poster,
7517
7537
  onplay: function onplay(e) {
7518
- return _this49.playing = true;
7538
+ return _this48.playing = true;
7519
7539
  },
7520
7540
  onpause: function onpause(e) {
7521
- return _this49.playing = false;
7541
+ return _this48.playing = false;
7522
7542
  },
7523
7543
  controls: true,
7524
7544
  'webkit-playsinline': true,
@@ -7532,7 +7552,7 @@ var script$s = {
7532
7552
  class: 'w-video-play f-abs-center f-flex-center',
7533
7553
  innerHTML: '<i class="f-i f-i-play"></i>',
7534
7554
  onclick: function onclick(e) {
7535
- var o = _this49.$refs.vd;
7555
+ var o = _this48.$refs.vd;
7536
7556
  o.paused ? o.play() : o.pause();
7537
7557
  }
7538
7558
  })];
@@ -7932,7 +7952,7 @@ var _hoisted_9 = {
7932
7952
  };
7933
7953
 
7934
7954
  function render$4(_ctx, _cache, $props, $setup, $data, $options) {
7935
- var _this50 = this;
7955
+ var _this49 = this;
7936
7956
 
7937
7957
  var _component_w_html = resolveComponent("w-html");
7938
7958
 
@@ -8040,7 +8060,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
8040
8060
 
8041
8061
  }, 8
8042
8062
  /* PROPS */
8043
- , ["context", "snap"])) : createCommentVNode("v-if", true), _this50.x.face == 'date' ? (openBlock(), createBlock(_component_w_html, {
8063
+ , ["context", "snap"])) : createCommentVNode("v-if", true), _this49.x.face == 'date' ? (openBlock(), createBlock(_component_w_html, {
8044
8064
  key: 1,
8045
8065
  class: "w-calendar-head-month f-link",
8046
8066
  ref: "popMonth",
@@ -8123,7 +8143,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
8123
8143
  _: 1
8124
8144
  /* STABLE */
8125
8145
 
8126
- }), renderSlot(_ctx.$slots, "head"), createVNode("div", _hoisted_4, [_this50.x.face == 'date' ? (openBlock(true), createBlock(Fragment, {
8146
+ }), renderSlot(_ctx.$slots, "head"), createVNode("div", _hoisted_4, [_this49.x.face == 'date' ? (openBlock(true), createBlock(Fragment, {
8127
8147
  key: 0
8128
8148
  }, renderList($options.loc.calendar.day_title_1, function (item) {
8129
8149
  return openBlock(), createBlock("div", _hoisted_5, toDisplayString(item), 1
@@ -8309,7 +8329,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
8309
8329
  style: {
8310
8330
  visibility: $options.hasTime && !$data.onlyTime ? 'visible' : 'hidden'
8311
8331
  }
8312
- }, toDisplayString(_this50.showTime ? $options.loc.calendar.backdate : $options.loc.calendar.picktime), 5
8332
+ }, toDisplayString(_this49.showTime ? $options.loc.calendar.backdate : $options.loc.calendar.picktime), 5
8313
8333
  /* TEXT, STYLE */
8314
8334
  ), createVNode("div", {
8315
8335
  class: "f-link",
@@ -8442,20 +8462,20 @@ var script$p = {
8442
8462
  }
8443
8463
  },
8444
8464
  mounted: function mounted() {
8445
- var _this51 = this;
8465
+ var _this50 = this;
8446
8466
 
8447
8467
  this.indent();
8448
8468
 
8449
8469
  var observe = function observe() {
8450
- if (_this51.$refs.wrap && _this51.$refs.next) {
8451
- $$1.q('.w-timeline-item', _this51.$refs.wrap).css({
8470
+ if (_this50.$refs.wrap && _this50.$refs.next) {
8471
+ $$1.q('.w-timeline-item', _this50.$refs.wrap).css({
8452
8472
  margin: 0
8453
8473
  });
8454
- $$1.q(_this51.$refs.next).css({
8474
+ $$1.q(_this50.$refs.next).css({
8455
8475
  margin: 0
8456
8476
  });
8457
8477
 
8458
- _this51.indent();
8478
+ _this50.indent();
8459
8479
  }
8460
8480
  };
8461
8481
 
@@ -8683,17 +8703,12 @@ var script$n = {
8683
8703
  }
8684
8704
  },
8685
8705
  computed: {
8686
- html_style: function html_style() {
8687
- return {
8688
- '--w-option-height': $$1.unitSize(this.x.optionHeight)
8689
- };
8690
- }
8691
- },
8692
- mounted: function mounted() {
8693
- if (this.isEntity) {
8694
- this.el().addEventListener($$1.br.mobile ? 'touchstart' : 'mousedown', this.mousedown, {
8695
- passive: false
8696
- });
8706
+ html_props: function html_props() {
8707
+ return _defineProperty({
8708
+ style: {
8709
+ '--w-option-height': $$1.unitSize(this.x.optionHeight)
8710
+ }
8711
+ }, $$1.br.mobile ? 'ontouchstart' : 'onmousedown', this.mousedown);
8697
8712
  }
8698
8713
  }
8699
8714
  };
@@ -9403,13 +9418,13 @@ var script$f = {
9403
9418
  };
9404
9419
  },
9405
9420
  created: function created() {
9406
- var _this52 = this;
9421
+ var _this51 = this;
9407
9422
 
9408
9423
  this.$watch(function () {
9409
- return _this52.x.modelValue;
9424
+ return _this51.x.modelValue;
9410
9425
  }, function (v) {
9411
- if (_this52.emiting) return _this52.emiting = false;
9412
- _this52.list = Array.isArray(v) ? v.map(function (value) {
9426
+ if (_this51.emiting) return _this51.emiting = false;
9427
+ _this51.list = Array.isArray(v) ? v.map(function (value) {
9413
9428
  return {
9414
9429
  value: value
9415
9430
  };
@@ -9461,7 +9476,7 @@ var script$f = {
9461
9476
  return s == 'aud';
9462
9477
  },
9463
9478
  fileSelected: function fileSelected(e) {
9464
- var _this53 = this;
9479
+ var _this52 = this;
9465
9480
 
9466
9481
  if (this.x.uploadLimit > 1 && e.target.files.length + this.list.length > this.x.uploadLimit) {
9467
9482
  return $$1.alert($$1.loc.ps($$1.loc.form.upload_limit, this.x.uploadLimit));
@@ -9476,7 +9491,7 @@ var script$f = {
9476
9491
  (xfs_names || (xfs_names = [])).push(file.name);
9477
9492
  } else if (nfs && file.size < nfs) {
9478
9493
  (nfs_names || (nfs_names = [])).push(file.name);
9479
- } else _this53.list.push({
9494
+ } else _this52.list.push({
9480
9495
  file: file
9481
9496
  });
9482
9497
  });
@@ -9492,7 +9507,7 @@ var script$f = {
9492
9507
  this.nextUpload();
9493
9508
  },
9494
9509
  upload: function upload(item) {
9495
- var _this54 = this;
9510
+ var _this53 = this;
9496
9511
 
9497
9512
  if (this.x.uploadSrc && !item.loading) {
9498
9513
  var src = $$1.urlFormat(this.x.uploadSrc, this.x.data, this.x);
@@ -9509,7 +9524,7 @@ var script$f = {
9509
9524
  item.loading = false;
9510
9525
  item.loaded = true;
9511
9526
  item.source = null;
9512
- var d = _this54.x.filter ? _this54.x.filter(res, _this54) : res.data;
9527
+ var d = _this53.x.filter ? _this53.x.filter(res, _this53) : res.data;
9513
9528
 
9514
9529
  if (!d) {
9515
9530
  item.error = {
@@ -9523,10 +9538,10 @@ var script$f = {
9523
9538
  };
9524
9539
  } else {
9525
9540
  item.value = d;
9526
- _this54.x.success && _this54.x.success(item.value, _this54, res);
9541
+ _this53.x.success && _this53.x.success(item.value, _this53, res);
9527
9542
  }
9528
9543
 
9529
- _this54.nextUpload();
9544
+ _this53.nextUpload();
9530
9545
 
9531
9546
  if (item.error && item.error.message) $$1.alert(item.error.message);
9532
9547
  }).catch(function (error) {
@@ -9590,7 +9605,7 @@ var script$f = {
9590
9605
  this.$refs.file.click();
9591
9606
  },
9592
9607
  html_list: function html_list() {
9593
- var _this55 = this;
9608
+ var _this54 = this;
9594
9609
 
9595
9610
  return this.list.map(function (item) {
9596
9611
  var n = item.value ? item.value.name : item.file.name;
@@ -9601,11 +9616,11 @@ var script$f = {
9601
9616
  }],
9602
9617
  style: {
9603
9618
  '--w-upload-progress': item.file ? "".concat(item.progress || 0, "%") : '',
9604
- width: $$1.unitSize(_this55.x.itemWidth)
9619
+ width: $$1.unitSize(_this54.x.itemWidth)
9605
9620
  },
9606
9621
  title: item.error ? item.error.message : n,
9607
9622
  onclick: function onclick(e) {
9608
- return _this55.clickItem(e, item);
9623
+ return _this54.clickItem(e, item);
9609
9624
  }
9610
9625
  }, [h$1('i', {
9611
9626
  class: ['w-fileupload-value-icon f-i', 'f-i-file-' + getSuffix(n)]
@@ -9617,7 +9632,7 @@ var script$f = {
9617
9632
  class: 'w-fileupload-value-close f-i f-i-trash',
9618
9633
  title: $$1.loc.remove,
9619
9634
  onclick: function onclick(e) {
9620
- _this55.remove(item), e.stopPropagation();
9635
+ _this54.remove(item), e.stopPropagation();
9621
9636
  }
9622
9637
  })]);
9623
9638
  });
@@ -9632,7 +9647,7 @@ var script$f = {
9632
9647
  })];
9633
9648
  },
9634
9649
  html_input_button: function html_input_button() {
9635
- var _this56 = this;
9650
+ var _this55 = this;
9636
9651
 
9637
9652
  return h$1(script$I, {
9638
9653
  ref: 'uploadbbr',
@@ -9640,11 +9655,11 @@ var script$f = {
9640
9655
  gap: 10
9641
9656
  }, {
9642
9657
  default: function _default() {
9643
- return [_this56.$slots.button ? _this56.$slots.button() : h$1(script$$, {
9658
+ return [_this55.$slots.button ? _this55.$slots.button() : h$1(script$$, {
9644
9659
  text: '选择文件',
9645
9660
  icon: '.f-i .f-i-upload',
9646
9661
  class: 'w-fileupload-button',
9647
- onclick: _this56.chooseFile
9662
+ onclick: _this55.chooseFile
9648
9663
  })];
9649
9664
  }
9650
9665
  });
@@ -9663,11 +9678,11 @@ var script$f = {
9663
9678
  },
9664
9679
  computed: {
9665
9680
  validHooks: function validHooks() {
9666
- var _this57 = this;
9681
+ var _this56 = this;
9667
9682
 
9668
9683
  return {
9669
9684
  valid: function valid(v) {
9670
- var _iterator5 = _createForOfIteratorHelper(_this57.list),
9685
+ var _iterator5 = _createForOfIteratorHelper(_this56.list),
9671
9686
  _step5;
9672
9687
 
9673
9688
  try {
@@ -9675,11 +9690,11 @@ var script$f = {
9675
9690
  var item = _step5.value;
9676
9691
 
9677
9692
  if (item.loading) {
9678
- return _this57.formErr('upload_loading');
9693
+ return _this56.formErr('upload_loading');
9679
9694
  }
9680
9695
 
9681
9696
  if (item.error) {
9682
- return _this57.formErr('upload_invalid_file');
9697
+ return _this56.formErr('upload_invalid_file');
9683
9698
  }
9684
9699
  }
9685
9700
  } catch (err) {
@@ -9708,11 +9723,11 @@ var script$f = {
9708
9723
  };
9709
9724
  },
9710
9725
  html_on: function html_on() {
9711
- var _this58 = this;
9726
+ var _this57 = this;
9712
9727
 
9713
9728
  return {
9714
9729
  onclick: function onclick() {
9715
- return _this58.warn(false);
9730
+ return _this57.warn(false);
9716
9731
  }
9717
9732
  };
9718
9733
  }
@@ -9732,30 +9747,30 @@ var script$e = {
9732
9747
  this.provideUpload.clickItem(e, this.item);
9733
9748
  },
9734
9749
  createImageThumbnail: function createImageThumbnail() {
9735
- var _this59 = this;
9750
+ var _this58 = this;
9736
9751
 
9737
9752
  var r = new FileReader();
9738
9753
 
9739
9754
  r.onload = function (e) {
9740
- if (_this59.item.loaded) return;
9741
- _this59.dataURL = e.target.result;
9755
+ if (_this58.item.loaded) return;
9756
+ _this58.dataURL = e.target.result;
9742
9757
  };
9743
9758
 
9744
9759
  r.readAsDataURL(this.item.file);
9745
9760
  },
9746
9761
  createVideoThumbnail: function createVideoThumbnail() {
9747
- var _this60 = this;
9762
+ var _this59 = this;
9748
9763
 
9749
9764
  var video = document.createElement('video');
9750
9765
  video.addEventListener('loadeddata', function () {
9751
9766
  setTimeout(function () {
9752
- if (_this60.item.loaded) return;
9767
+ if (_this59.item.loaded) return;
9753
9768
  var cvs = document.createElement('canvas');
9754
9769
  var ctx = cvs.getContext('2d');
9755
9770
  cvs.width = video.videoWidth;
9756
9771
  cvs.height = video.videoHeight;
9757
9772
  ctx.drawImage(video, 0, 0);
9758
- _this60.dataURL = cvs.toDataURL('image/png');
9773
+ _this59.dataURL = cvs.toDataURL('image/png');
9759
9774
  video.pause();
9760
9775
  $$1.q(video).remove();
9761
9776
  }, 150);
@@ -9810,14 +9825,14 @@ var script$e = {
9810
9825
  }
9811
9826
  },
9812
9827
  mounted: function mounted() {
9813
- var _this61 = this;
9828
+ var _this60 = this;
9814
9829
 
9815
9830
  if (!this.item.loaded && this.item.file) {
9816
9831
  this.upload.isVideo(this.item) ? this.createVideoThumbnail() : this.upload.isImage(this.item) ? this.createImageThumbnail() : null;
9817
9832
  this.$watch(function () {
9818
- return _this61.item.progress;
9833
+ return _this60.item.progress;
9819
9834
  }, function (v) {
9820
- return _this61.setProgress(v);
9835
+ return _this60.setProgress(v);
9821
9836
  }, {
9822
9837
  immediate: true
9823
9838
  });
@@ -9914,7 +9929,7 @@ var script$d = {
9914
9929
  });
9915
9930
  },
9916
9931
  html_input_button: function html_input_button() {
9917
- var _this62 = this;
9932
+ var _this61 = this;
9918
9933
 
9919
9934
  return h$1(script$I, {
9920
9935
  ref: 'uploadbbr',
@@ -9922,16 +9937,16 @@ var script$d = {
9922
9937
  gap: 10
9923
9938
  }, {
9924
9939
  default: function _default() {
9925
- return [_this62.$slots.button ? _this62.$slots.button() : h$1(script$$, {
9940
+ return [_this61.$slots.button ? _this61.$slots.button() : h$1(script$$, {
9926
9941
  ref: 'uploadbutton',
9927
9942
  title: $$1.loc.form.choose_image,
9928
9943
  icon: '.f-i .f-i-plus',
9929
9944
  class: 'w-mediaupload-button',
9930
9945
  style: {
9931
- width: $$1.unitSize(_this62.x.thumbnailWidth),
9932
- height: $$1.unitSize(_this62.x.thumbnailHeight)
9946
+ width: $$1.unitSize(_this61.x.thumbnailWidth),
9947
+ height: $$1.unitSize(_this61.x.thumbnailHeight)
9933
9948
  },
9934
- onclick: _this62.chooseFile
9949
+ onclick: _this61.chooseFile
9935
9950
  })];
9936
9951
  }
9937
9952
  });
@@ -10113,7 +10128,7 @@ var script$a = {
10113
10128
  return this.$refs.btns && this.$refs.btns.contains(el);
10114
10129
  },
10115
10130
  html_button: function html_button() {
10116
- var _this63 = this;
10131
+ var _this62 = this;
10117
10132
 
10118
10133
  return h$1('div', {
10119
10134
  class: 'w-spinner-step w-input-bbr f-flex-column f-oh',
@@ -10122,14 +10137,14 @@ var script$a = {
10122
10137
  class: 'w-spinner-step-btn f-rel',
10123
10138
  disabled: this.x.disabled,
10124
10139
  onclick: function onclick(e) {
10125
- return _this63.stepBy(1);
10140
+ return _this62.stepBy(1);
10126
10141
  },
10127
10142
  innerHTML: '<i class="f-abs-center f-i f-i-caret-up"></i>'
10128
10143
  }), h$1('button', {
10129
10144
  class: 'w-spinner-step-btn f-rel',
10130
10145
  disabled: this.x.disabled,
10131
10146
  onclick: function onclick(e) {
10132
- return _this63.stepBy(-1);
10147
+ return _this62.stepBy(-1);
10133
10148
  },
10134
10149
  innerHTML: '<i class="f-abs-center f-i f-i-caret-down"></i>'
10135
10150
  })]);
@@ -10137,24 +10152,24 @@ var script$a = {
10137
10152
  },
10138
10153
  computed: {
10139
10154
  validHooks: function validHooks() {
10140
- var _this64 = this;
10155
+ var _this63 = this;
10141
10156
 
10142
10157
  return {
10143
10158
  compare: function compare(v, c, d) {
10144
- return !$$1.eval('v' + (_this64.x.compare.mode || '==') + 'd', {
10159
+ return !$$1.eval('v' + (_this63.x.compare.mode || '==') + 'd', {
10145
10160
  v: v,
10146
10161
  d: d
10147
10162
  });
10148
10163
  },
10149
10164
  valid: function valid(v) {
10150
- _this64.x.format && (v = v.replace(RegExp(_this64.x.format.separator || ',', 'g'), ''));
10165
+ _this63.x.format && (v = v.replace(RegExp(_this63.x.format.separator || ',', 'g'), ''));
10151
10166
 
10152
10167
  if (v) {
10153
- if (isNaN(v) || /\s/.test(v)) return _this64.formErr('number_invalid');
10154
- var d = _this64.x.decimal;
10155
- if (!d && ~v.indexOf('.')) return _this64.formErr('number_integer');
10156
- if (d && d > 0 && $$1.strFrom(v, '.').length > d) return _this64.formErr('number_decimal_digit', [d]);
10157
- if (_this64.provideRangeParent) return _this64.provideRangeParent.validHooks.valid();
10168
+ if (isNaN(v) || /\s/.test(v)) return _this63.formErr('number_invalid');
10169
+ var d = _this63.x.decimal;
10170
+ if (!d && ~v.indexOf('.')) return _this63.formErr('number_integer');
10171
+ if (d && d > 0 && $$1.strFrom(v, '.').length > d) return _this63.formErr('number_decimal_digit', [d]);
10172
+ if (_this63.provideRangeParent) return _this63.provideRangeParent.validHooks.valid();
10158
10173
  }
10159
10174
  }
10160
10175
  };
@@ -10225,7 +10240,7 @@ var script$9 = {
10225
10240
  };
10226
10241
  },
10227
10242
  html_button: function html_button() {
10228
- var _this65 = this;
10243
+ var _this64 = this;
10229
10244
 
10230
10245
  var r = [];
10231
10246
  if (!this.x.noButton) r.push(h$1('button', {
@@ -10242,28 +10257,28 @@ var script$9 = {
10242
10257
  autoHide: true,
10243
10258
  snap: {
10244
10259
  target: function target() {
10245
- return _this65.snapElem();
10260
+ return _this64.snapElem();
10246
10261
  },
10247
10262
  position: 'v',
10248
10263
  indent: 1
10249
10264
  },
10250
10265
  on: {
10251
10266
  close: function close() {
10252
- _this65.showDrop = false, _this65.currentDate = null;
10267
+ _this64.showDrop = false, _this64.currentDate = null;
10253
10268
  }
10254
10269
  }
10255
10270
  }, {
10256
10271
  default: function _default() {
10257
10272
  return h$1(script$q, _objectSpread(_objectSpread({
10258
10273
  pad: true,
10259
- current: _this65.currentDate || _this65.x.modelValue || '',
10260
- value: _this65.x.modelValue,
10261
- format: _this65.x.format
10262
- }, _this65.getPeriod()), {}, {
10263
- success: _this65.calendarCallback,
10274
+ current: _this64.currentDate || _this64.x.modelValue || '',
10275
+ value: _this64.x.modelValue,
10276
+ format: _this64.x.format
10277
+ }, _this64.getPeriod()), {}, {
10278
+ success: _this64.calendarCallback,
10264
10279
  on: {
10265
10280
  'click:item': function clickItem(e, item) {
10266
- return _this65.currentDate = item.value;
10281
+ return _this64.currentDate = item.value;
10267
10282
  }
10268
10283
  }
10269
10284
  }));
@@ -10276,46 +10291,46 @@ var script$9 = {
10276
10291
  },
10277
10292
  computed: {
10278
10293
  validHooks: function validHooks() {
10279
- var _this66 = this;
10294
+ var _this65 = this;
10280
10295
 
10281
10296
  return {
10282
10297
  minValue: function minValue(v) {
10283
- return $$1.dateParse(v, _this66.x.format) < $$1.dateParse(_this66.vv('minValue'), _this66.x.format);
10298
+ return $$1.dateParse(v, _this65.x.format) < $$1.dateParse(_this65.vv('minValue'), _this65.x.format);
10284
10299
  },
10285
10300
  maxValue: function maxValue(v) {
10286
- return $$1.dateParse(v, _this66.x.format) > $$1.dateParse(_this66.vv('maxValue'), _this66.x.format);
10301
+ return $$1.dateParse(v, _this65.x.format) > $$1.dateParse(_this65.vv('maxValue'), _this65.x.format);
10287
10302
  },
10288
10303
  compare: function compare(v, c, d) {
10289
- if (_this66.x.format && c.x.format) {
10290
- var f = (_this66.x.format.length > c.x.format.length ? _this66 : c).x.format;
10291
- v = $$1.dateFormat($$1.dateParse(v, _this66.x.format), f);
10304
+ if (_this65.x.format && c.x.format) {
10305
+ var f = (_this65.x.format.length > c.x.format.length ? _this65 : c).x.format;
10306
+ v = $$1.dateFormat($$1.dateParse(v, _this65.x.format), f);
10292
10307
  d = $$1.dateFormat($$1.dateParse(d, c.x.format), f);
10293
10308
  }
10294
10309
 
10295
- return !$$1.eval('v' + (_this66.x.compare.mode || '==') + 'd', {
10310
+ return !$$1.eval('v' + (_this65.x.compare.mode || '==') + 'd', {
10296
10311
  v: v,
10297
10312
  d: d
10298
10313
  });
10299
10314
  },
10300
10315
  valid: function valid(v) {
10301
- if (_this66.x.multiple) return;
10316
+ if (_this65.x.multiple) return;
10302
10317
 
10303
10318
  if (v) {
10304
10319
  var _c4 = v;
10305
- var d = $$1.dateParse(_c4, _this66.x.format);
10320
+ var d = $$1.dateParse(_c4, _this65.x.format);
10306
10321
  var y = d.getFullYear();
10307
10322
  var m = 9999;
10308
10323
  var n = 1000;
10309
- if (y > m || y < n) return _this66.formErr('time_exceed', [n, m]);
10324
+ if (y > m || y < n) return _this65.formErr('time_exceed', [n, m]);
10310
10325
 
10311
- if (_c4 != $$1.dateFormat(d, _this66.x.format)) {
10312
- return _this66.formErr('time_format', [$$1.dateFormat(d, _this66.x.format)]);
10326
+ if (_c4 != $$1.dateFormat(d, _this65.x.format)) {
10327
+ return _this65.formErr('time_format', [$$1.dateFormat(d, _this65.x.format)]);
10313
10328
  }
10314
10329
  }
10315
10330
 
10316
- if (_this66.vv('beforeNow') && v && v > $$1.dateFormat(new Date(), _this66.x.format)) return _this66.formErr('beforeNow', [_this66.x.beforeNow]);
10317
- if (_this66.vv('afterNow') && v && v < $$1.dateFormat(new Date(), _this66.x.format)) return _this66.formErr('afterNow', [_this66.x.afterNow]);
10318
- if (_this66.provideRangeParent) return _this66.provideRangeParent.validHooks.valid();
10331
+ if (_this65.vv('beforeNow') && v && v > $$1.dateFormat(new Date(), _this65.x.format)) return _this65.formErr('beforeNow', [_this65.x.beforeNow]);
10332
+ if (_this65.vv('afterNow') && v && v < $$1.dateFormat(new Date(), _this65.x.format)) return _this65.formErr('afterNow', [_this65.x.afterNow]);
10333
+ if (_this65.provideRangeParent) return _this65.provideRangeParent.validHooks.valid();
10319
10334
  }
10320
10335
  };
10321
10336
  },
@@ -10363,7 +10378,7 @@ var script$8 = {
10363
10378
  return this.input_text;
10364
10379
  },
10365
10380
  html_input: function html_input() {
10366
- var _this67 = this;
10381
+ var _this66 = this;
10367
10382
 
10368
10383
  var t = this.input_text;
10369
10384
  var p = this.input_placeholder;
@@ -10382,14 +10397,14 @@ var script$8 = {
10382
10397
  autoHide: true,
10383
10398
  snap: {
10384
10399
  target: function target() {
10385
- return _this67.el('main');
10400
+ return _this66.el('main');
10386
10401
  },
10387
10402
  position: 'v',
10388
10403
  indent: 1
10389
10404
  },
10390
10405
  on: {
10391
10406
  close: function close() {
10392
- return _this67.showDrop = false;
10407
+ return _this66.showDrop = false;
10393
10408
  }
10394
10409
  }
10395
10410
  }, this.$slots)];
@@ -10403,7 +10418,7 @@ var script$8 = {
10403
10418
  },
10404
10419
  computed: {
10405
10420
  input_text: function input_text() {
10406
- var _this68 = this;
10421
+ var _this67 = this;
10407
10422
 
10408
10423
  var r = [];
10409
10424
  var s = this.slots_children();
@@ -10413,7 +10428,7 @@ var script$8 = {
10413
10428
  return n.props.value == v;
10414
10429
  });
10415
10430
  if (i > -1) r.push(i);
10416
- if (!_this68.x.multiple) return false;
10431
+ if (!_this67.x.multiple) return false;
10417
10432
  });
10418
10433
  return r.sort().map(function (v) {
10419
10434
  return s[v].props.text;
@@ -10534,17 +10549,17 @@ var script$5 = {
10534
10549
  },
10535
10550
  computed: {
10536
10551
  validHooks: function validHooks() {
10537
- var _this69 = this;
10552
+ var _this68 = this;
10538
10553
 
10539
10554
  return {
10540
10555
  valid: function valid() {
10541
- var f = _this69.forms();
10556
+ var f = _this68.forms();
10542
10557
 
10543
10558
  if (f.length > 1) {
10544
10559
  var v1 = f[0] && f[0].formVal();
10545
10560
  var v2 = f[1] && f[1].formVal();
10546
10561
 
10547
- var _c5 = _this69.x.compare || '<=';
10562
+ var _c5 = _this68.x.compare || '<=';
10548
10563
 
10549
10564
  if (!isNaN(v1)) v1 = parseFloat(v1);
10550
10565
  if (!isNaN(v2)) v2 = parseFloat(v2);
@@ -10554,7 +10569,7 @@ var script$5 = {
10554
10569
  v1: v1,
10555
10570
  v2: v2
10556
10571
  })) {
10557
- return _this69.formErr('compare', [f[0].getLabelText(), _c5, f[1].getLabelText()]);
10572
+ return _this68.formErr('compare', [f[0].getLabelText(), _c5, f[1].getLabelText()]);
10558
10573
  }
10559
10574
  }
10560
10575
  }
@@ -10562,11 +10577,11 @@ var script$5 = {
10562
10577
  };
10563
10578
  },
10564
10579
  html_on: function html_on() {
10565
- var _this70 = this;
10580
+ var _this69 = this;
10566
10581
 
10567
10582
  return {
10568
10583
  onclick: function onclick(e) {
10569
- return _this70.warnClass = '';
10584
+ return _this69.warnClass = '';
10570
10585
  }
10571
10586
  };
10572
10587
  }
@@ -10632,7 +10647,7 @@ var script$4 = {
10632
10647
  return this;
10633
10648
  },
10634
10649
  oninput: function oninput(e) {
10635
- var _this71 = this;
10650
+ var _this70 = this;
10636
10651
 
10637
10652
  var v = e.target.value;
10638
10653
  this.sensor_text = v;
@@ -10642,9 +10657,9 @@ var script$4 = {
10642
10657
  this.suggest(false);
10643
10658
  } else {
10644
10659
  this.sug_timer = setTimeout(function () {
10645
- _this71.suggest(true);
10660
+ _this70.suggest(true);
10646
10661
 
10647
- _this71.trigger(e, v);
10662
+ _this70.trigger(e, v);
10648
10663
  }, 500);
10649
10664
  }
10650
10665
  },
@@ -10693,7 +10708,7 @@ var script$4 = {
10693
10708
  return this.input_title;
10694
10709
  },
10695
10710
  html_options: function html_options() {
10696
- var _this72 = this;
10711
+ var _this71 = this;
10697
10712
 
10698
10713
  var m = this.x.modelValue;
10699
10714
 
@@ -10704,22 +10719,22 @@ var script$4 = {
10704
10719
  'z-forbid': v.forbid
10705
10720
  }],
10706
10721
  onclick: function onclick(e) {
10707
- return _this72.clickItem(e, v);
10722
+ return _this71.clickItem(e, v);
10708
10723
  }
10709
10724
  }, [h$1('div', {
10710
10725
  class: 'w-combobox-option-text f-line-1',
10711
10726
  title: v.text
10712
- }, v.text), _this72.isNormal && h$1('div', {
10727
+ }, v.text), _this71.isNormal && h$1('div', {
10713
10728
  class: 'w-combobox-option-close f-i f-i-close',
10714
10729
  onclick: function onclick(e) {
10715
- return _this72.clickClose(e, v);
10730
+ return _this71.clickClose(e, v);
10716
10731
  }
10717
10732
  })]);
10718
10733
  });
10719
10734
  }
10720
10735
  },
10721
10736
  html_var: function html_var() {
10722
- var _this73 = this;
10737
+ var _this72 = this;
10723
10738
 
10724
10739
  return h$1('div', {
10725
10740
  class: 'w-combobox-input-wrap'
@@ -10736,15 +10751,15 @@ var script$4 = {
10736
10751
  onkeydown: this.onkeydown,
10737
10752
  placeholder: this.input_value ? null : this.input_placeholder,
10738
10753
  onfocus: function onfocus(e) {
10739
- _this73.isFocus = true, e.target.value && e.target.dispatchEvent(new Event('input'));
10754
+ _this72.isFocus = true, e.target.value && e.target.dispatchEvent(new Event('input'));
10740
10755
  },
10741
10756
  onblur: function onblur(e) {
10742
- return _this73.isFocus = false;
10757
+ return _this72.isFocus = false;
10743
10758
  }
10744
10759
  })]);
10745
10760
  },
10746
10761
  html_input: function html_input() {
10747
- var _this74 = this;
10762
+ var _this73 = this;
10748
10763
 
10749
10764
  return [this.html_input_hidden(), h$1('div', {
10750
10765
  class: 'w-combobox-list f-flex-1 f-flex f-oh f-height'
@@ -10757,14 +10772,14 @@ var script$4 = {
10757
10772
  autoHide: true,
10758
10773
  snap: {
10759
10774
  target: function target() {
10760
- return _this74.el('main');
10775
+ return _this73.el('main');
10761
10776
  },
10762
10777
  position: 'v',
10763
10778
  indent: 1
10764
10779
  },
10765
10780
  on: {
10766
10781
  close: function close() {
10767
- return _this74.showSuggest = false;
10782
+ return _this73.showSuggest = false;
10768
10783
  }
10769
10784
  }
10770
10785
  }, this.$slots))];
@@ -10793,11 +10808,11 @@ var script$4 = {
10793
10808
  },
10794
10809
  computed: {
10795
10810
  validHooks: function validHooks() {
10796
- var _this75 = this;
10811
+ var _this74 = this;
10797
10812
 
10798
10813
  return {
10799
10814
  valid: function valid(v) {
10800
- if (_this75.$refs.input.value) return _this75.formErr('invalid_option');
10815
+ if (_this74.$refs.input.value) return _this74.formErr('invalid_option');
10801
10816
  }
10802
10817
  };
10803
10818
  },
@@ -10823,12 +10838,12 @@ var script$4 = {
10823
10838
  }
10824
10839
  },
10825
10840
  mounted: function mounted() {
10826
- var _this76 = this;
10841
+ var _this75 = this;
10827
10842
 
10828
10843
  if (this.isEntity && this.$refs.sensor) {
10829
10844
  new ResizeObserver(function () {
10830
- if (_this76.$refs.sensor) {
10831
- _this76.sensor_width = _this76.$refs.sensor.offsetWidth + 'px';
10845
+ if (_this75.$refs.sensor) {
10846
+ _this75.sensor_width = _this75.$refs.sensor.offsetWidth + 'px';
10832
10847
  }
10833
10848
  }).observe(this.$refs.sensor);
10834
10849
  }
@@ -10841,13 +10856,13 @@ var script$3 = {
10841
10856
  emits: ['input', 'dblclick:item'],
10842
10857
  props: ['multiple', 'picker', 'dropWidth', 'separator', 'strict', 'br'],
10843
10858
  created: function created() {
10844
- var _this77 = this;
10859
+ var _this76 = this;
10845
10860
 
10846
10861
  this.$watch(function () {
10847
- return _this77.x.modelValue;
10862
+ return _this76.x.modelValue;
10848
10863
  }, function (v) {
10849
- if (_this77.isEntity && !_this77.isFocus) {
10850
- _this77.initOptions(v);
10864
+ if (_this76.isEntity && !_this76.isFocus) {
10865
+ _this76.initOptions(v);
10851
10866
  }
10852
10867
  });
10853
10868
  },
@@ -10942,7 +10957,7 @@ var script$3 = {
10942
10957
  this.warn(false);
10943
10958
  },
10944
10959
  input: function input(a) {
10945
- var _this78 = this;
10960
+ var _this77 = this;
10946
10961
 
10947
10962
  this.currOpt = a;
10948
10963
  var v = a.innerText.replace(/^[\s,]+|[\s,]+$/g, '');
@@ -10952,9 +10967,9 @@ var script$3 = {
10952
10967
  this.suggest(false);
10953
10968
  } else {
10954
10969
  this.sug_timer = setTimeout(function () {
10955
- _this78.suggest(true);
10970
+ _this77.suggest(true);
10956
10971
 
10957
- _this78.trigger(new Event('input'), v);
10972
+ _this77.trigger(new Event('input'), v);
10958
10973
  }, 500);
10959
10974
  }
10960
10975
  },
@@ -10967,7 +10982,7 @@ var script$3 = {
10967
10982
  return this.$refs.inp;
10968
10983
  },
10969
10984
  fixStyle: function fixStyle() {
10970
- var _this79 = this;
10985
+ var _this78 = this;
10971
10986
 
10972
10987
  var c = $$1.rngElement();
10973
10988
  var g = false;
@@ -11042,7 +11057,7 @@ var script$3 = {
11042
11057
 
11043
11058
  t.split(p).forEach(function (s) {
11044
11059
  if (_h4 = $$1.strTrim(s)) {
11045
- g = _this79.param(_h4);
11060
+ g = _this78.param(_h4);
11046
11061
 
11047
11062
  _d.push('<u' + (g ? ' class=_o data-value="' + g.value + '"' + (g.forbid ? ' data-forbid' : '') : '') + '>' + _h4 + '</u>');
11048
11063
 
@@ -11108,11 +11123,11 @@ var script$3 = {
11108
11123
  if (typeof c === 'function') c(this);else this.cmd(c, this.formVal());
11109
11124
  },
11110
11125
  addStore: function addStore(m) {
11111
- var _this80 = this;
11126
+ var _this79 = this;
11112
11127
 
11113
11128
  if (m && typeof m !== 'string') {
11114
11129
  var _r6 = $$1.array(m).filter(function (v) {
11115
- return !_this80.store.find(function (s) {
11130
+ return !_this79.store.find(function (s) {
11116
11131
  return s.value == v.value;
11117
11132
  });
11118
11133
  });
@@ -11198,7 +11213,7 @@ var script$3 = {
11198
11213
  return this.input_title;
11199
11214
  },
11200
11215
  html_options: function html_options(v) {
11201
- var _this81 = this;
11216
+ var _this80 = this;
11202
11217
 
11203
11218
  var p = this.x.separator || ',';
11204
11219
  if (v == null) v = this.x.modelValue;
@@ -11209,7 +11224,7 @@ var script$3 = {
11209
11224
  $$1.lodash.each(b, function (o, i) {
11210
11225
  _r7.push('<u' + (o.value ? ' class=_o data-value="' + o.value + '"' : '') + (o.forbid ? ' data-forbid' : '') + '>' + o.text + '</u>');
11211
11226
 
11212
- if (!_this81.x.multiple) return false;
11227
+ if (!_this80.x.multiple) return false;
11213
11228
 
11214
11229
  _r7.push('<i>' + p + '</i>');
11215
11230
  });
@@ -11217,7 +11232,7 @@ var script$3 = {
11217
11232
  }
11218
11233
  },
11219
11234
  html_var: function html_var() {
11220
- var _this82 = this;
11235
+ var _this81 = this;
11221
11236
 
11222
11237
  return h$1('div', {
11223
11238
  class: 'w-linkbox-input f-flex-1',
@@ -11229,15 +11244,15 @@ var script$3 = {
11229
11244
  onclick: this.onclick,
11230
11245
  ondblclick: this.ondblclick,
11231
11246
  onfocus: function onfocus(e) {
11232
- _this82.isFocus = true;
11247
+ _this81.isFocus = true;
11233
11248
  },
11234
11249
  onblur: function onblur(e) {
11235
- _this82.isFocus = false;
11250
+ _this81.isFocus = false;
11236
11251
  }
11237
11252
  });
11238
11253
  },
11239
11254
  html_input: function html_input() {
11240
- var _this83 = this;
11255
+ var _this82 = this;
11241
11256
 
11242
11257
  var p = this.input_placeholder;
11243
11258
  return [this.html_input_hidden(), this.html_var(), h$1('div', {
@@ -11251,14 +11266,14 @@ var script$3 = {
11251
11266
  autoHide: true,
11252
11267
  snap: {
11253
11268
  target: function target() {
11254
- return _this83.el('main');
11269
+ return _this82.el('main');
11255
11270
  },
11256
11271
  position: 'v',
11257
11272
  indent: 1
11258
11273
  },
11259
11274
  on: {
11260
11275
  close: function close() {
11261
- return _this83.showSuggest = false;
11276
+ return _this82.showSuggest = false;
11262
11277
  }
11263
11278
  }
11264
11279
  }, this.$slots)];
@@ -11287,12 +11302,12 @@ var script$3 = {
11287
11302
  },
11288
11303
  computed: {
11289
11304
  validHooks: function validHooks() {
11290
- var _this84 = this;
11305
+ var _this83 = this;
11291
11306
 
11292
11307
  return {
11293
11308
  valid: function valid(v) {
11294
- if (_this84.x.strict && $$1.q('u:not([data-value])').length > 0) {
11295
- return _this84.formErr('invalid_option');
11309
+ if (_this83.x.strict && $$1.q('u:not([data-value])').length > 0) {
11310
+ return _this83.formErr('invalid_option');
11296
11311
  }
11297
11312
  }
11298
11313
  };
@@ -11320,15 +11335,15 @@ var script$3 = {
11320
11335
  }
11321
11336
  },
11322
11337
  mounted: function mounted() {
11323
- var _this85 = this;
11338
+ var _this84 = this;
11324
11339
 
11325
11340
  if (this.isEntity) {
11326
11341
  this.initOptions();
11327
11342
  this.inp().addEventListener('compositionstart', function () {
11328
- _this85.imeMode = true;
11343
+ _this84.imeMode = true;
11329
11344
  });
11330
11345
  this.inp().addEventListener('compositionend', function () {
11331
- _this85.imeMode = false;
11346
+ _this84.imeMode = false;
11332
11347
  });
11333
11348
  }
11334
11349
  }
@@ -11444,7 +11459,7 @@ var script$1 = {
11444
11459
  this.setThumbLeft();
11445
11460
  },
11446
11461
  error: function error(text, timeout, fn) {
11447
- var _this86 = this;
11462
+ var _this85 = this;
11448
11463
 
11449
11464
  if (!text) text = '';
11450
11465
  this.isError = true;
@@ -11456,12 +11471,12 @@ var script$1 = {
11456
11471
  this.text = text + "(".concat(timeout / 1000, ")");
11457
11472
  var timer = setInterval(function () {
11458
11473
  timeout -= 1000;
11459
- _this86.text = text + "(".concat(timeout / 1000, ")");
11474
+ _this85.text = text + "(".concat(timeout / 1000, ")");
11460
11475
 
11461
11476
  if (timeout <= 0) {
11462
11477
  clearInterval(timer);
11463
11478
 
11464
- _this86.reset();
11479
+ _this85.reset();
11465
11480
 
11466
11481
  fn && fn();
11467
11482
  }
@@ -11497,7 +11512,7 @@ var script$1 = {
11497
11512
  $$1.close(this.dropper);
11498
11513
  },
11499
11514
  dragstart: function dragstart(e) {
11500
- var _this87 = this;
11515
+ var _this86 = this;
11501
11516
 
11502
11517
  if (!this.isNormal || this.locked) return;
11503
11518
  this.warn(false);
@@ -11512,16 +11527,16 @@ var script$1 = {
11512
11527
  var c = $$1.eventX(e);
11513
11528
  var l = $$1.numRange(f + c - x, 0, w - g);
11514
11529
  a.style.left = l + 'px';
11515
- _this87.$refs.track.style.width = l + g + 'px';
11516
- _this87.x.modelValue = Math.floor(Math.floor((m - n) * l / (w - g)));
11530
+ _this86.$refs.track.style.width = l + g + 'px';
11531
+ _this86.x.modelValue = Math.floor(Math.floor((m - n) * l / (w - g)));
11517
11532
 
11518
- _this87.el().classList.add('z-drag');
11533
+ _this86.el().classList.add('z-drag');
11519
11534
  }, function (e) {
11520
11535
  a.dispatchEvent(new Event('drop'));
11521
11536
  }, e);
11522
11537
  },
11523
11538
  mouseenter: function mouseenter(e) {
11524
- var _this88 = this;
11539
+ var _this87 = this;
11525
11540
 
11526
11541
  if (this.dropper || !this.x.big || this.isSuccess || this.locked) return;
11527
11542
  this.warn(false);
@@ -11539,13 +11554,13 @@ var script$1 = {
11539
11554
  context: this,
11540
11555
  snap: {
11541
11556
  target: function target() {
11542
- return _this88.el('main');
11557
+ return _this87.el('main');
11543
11558
  },
11544
11559
  position: 'v'
11545
11560
  },
11546
11561
  on: {
11547
11562
  close: function close() {
11548
- return _this88.dropper = null;
11563
+ return _this87.dropper = null;
11549
11564
  }
11550
11565
  }
11551
11566
  });
@@ -11588,12 +11603,12 @@ var script$1 = {
11588
11603
  },
11589
11604
  computed: {
11590
11605
  validHooks: function validHooks() {
11591
- var _this89 = this;
11606
+ var _this88 = this;
11592
11607
 
11593
11608
  return {
11594
11609
  valid: function valid(v) {
11595
- if (!_this89.isSuccess) {
11596
- return _this89.formErr('jigsaw_required');
11610
+ if (!_this88.isSuccess) {
11611
+ return _this88.formErr('jigsaw_required');
11597
11612
  }
11598
11613
  }
11599
11614
  };