dpot-ui 0.2.4 → 0.2.5

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/dist/index.es.js CHANGED
@@ -1,46 +1,14 @@
1
- /**
2
- * @fileOverview Kickass library to create and place poppers near their reference elements.
3
- * @version {{version}}
4
- * @license
5
- * Copyright (c) 2016 Federico Zivolo and contributors
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
1
  const U = function() {
26
2
  var e = window, r = {
27
- // placement of the popper
28
3
  placement: "bottom",
29
4
  gpuAcceleration: !0,
30
- // shift popper from its origin by the given amount of pixels (can be negative)
31
5
  offset: 0,
32
- // the element which will act as boundary of the popper
33
6
  boundariesElement: "viewport",
34
- // amount of pixel used to define a minimum distance between the boundaries and the popper
35
7
  boundariesPadding: 5,
36
- // popper will try to prevent overflow following this order,
37
- // by default, then, it could overflow on the left and on top of the boundariesElement
38
8
  preventOverflowOrder: ["left", "right", "top", "bottom"],
39
- // the behavior used by flip to change the placement of the popper
40
9
  flipBehavior: "flip",
41
10
  arrowElement: "[x-arrow]",
42
11
  arrowOffset: 0,
43
- // list of functions used to modify the offsets before they are applied to the popper
44
12
  modifiers: [
45
13
  "shift",
46
14
  "offset",
@@ -64,10 +32,10 @@ const U = function() {
64
32
  this._options.placement
65
33
  ), this.modifiers[p] || p;
66
34
  }.bind(this)
67
- ), this.state.position = this._getPosition(this._popper, this._reference), $(this._popper, { position: this.state.position, top: 0 }), this.update(), this._setupEventListeners(), this;
35
+ ), this.state.position = this._getPosition(this._popper, this._reference), b(this._popper, { position: this.state.position, top: 0 }), this.update(), this._setupEventListeners(), this;
68
36
  }
69
37
  o.prototype.destroy = function() {
70
- return this._popper.removeAttribute("x-placement"), this._popper.style.left = "", this._popper.style.position = "", this._popper.style.top = "", this._popper.style[F("transform")] = "", this._removeEventListeners(), this._options.removeOnDestroy && this._popper.remove(), this;
38
+ return this._popper.removeAttribute("x-placement"), this._popper.style.left = "", this._popper.style.position = "", this._popper.style.top = "", this._popper.style[D("transform")] = "", this._removeEventListeners(), this._options.removeOnDestroy && this._popper.remove(), this;
71
39
  }, o.prototype.update = function() {
72
40
  var t = { instance: this, styles: {} };
73
41
  t.placement = this._options.placement, t._originalPlacement = this._options.placement, t.offsets = this._getOffsets(
@@ -97,11 +65,11 @@ const U = function() {
97
65
  };
98
66
  t = Object.assign({}, i, t);
99
67
  var l = e.document, s = l.createElement(t.tagName);
100
- if (u(s, t.classNames), m(s, t.attributes), t.contentType === "node" ? s.appendChild(
68
+ if (u(s, t.classNames), v(s, t.attributes), t.contentType === "node" ? s.appendChild(
101
69
  t.content.jquery ? t.content[0] : t.content
102
70
  ) : t.contentType === "html" ? s.innerHTML = t.content : s.textContent = t.content, t.arrowTagName) {
103
71
  var d = l.createElement(t.arrowTagName);
104
- u(d, t.arrowClassNames), m(d, t.arrowAttributes), s.appendChild(d);
72
+ u(d, t.arrowClassNames), v(d, t.arrowAttributes), s.appendChild(d);
105
73
  }
106
74
  var p = t.parent.jquery ? t.parent[0] : t.parent;
107
75
  if (typeof p == "string") {
@@ -114,31 +82,31 @@ const U = function() {
114
82
  return p.length > 1 && !(p instanceof Element) && (console.warn(
115
83
  "WARNING: you have passed as parent a list of elements, the first one will be used"
116
84
  ), p = p[0]), p.appendChild(s), s;
117
- function u(g, v) {
118
- v.forEach(function(w) {
119
- g.classList.add(w);
85
+ function u(w, y) {
86
+ y.forEach(function(C) {
87
+ w.classList.add(C);
120
88
  });
121
89
  }
122
- function m(g, v) {
123
- v.forEach(function(w) {
124
- g.setAttribute(
125
- w.split(":")[0],
126
- w.split(":")[1] || ""
90
+ function v(w, y) {
91
+ y.forEach(function(C) {
92
+ w.setAttribute(
93
+ C.split(":")[0],
94
+ C.split(":")[1] || ""
127
95
  );
128
96
  });
129
97
  }
130
98
  }, o.prototype._getPosition = function(t, i) {
131
- if (_(i), this._options.forceAbsolute)
99
+ if (m(i), this._options.forceAbsolute)
132
100
  return "absolute";
133
- var l = E(i);
101
+ var l = S(i);
134
102
  return l ? "fixed" : "absolute";
135
103
  }, o.prototype._getOffsets = function(t, i, l) {
136
104
  l = l.split("-")[0];
137
105
  var s = {};
138
106
  s.position = this.state.position;
139
- var d = s.position === "fixed", p = G(
107
+ var d = s.position === "fixed", p = V(
140
108
  i,
141
- _(t),
109
+ m(t),
142
110
  d
143
111
  ), u = n(t);
144
112
  return ["right", "left"].indexOf(l) !== -1 ? (s.top = p.top + p.height / 2 - u.height / 2, l === "left" ? s.left = p.left - u.width : s.left = p.right) : (s.left = p.left + p.width / 2 - u.width / 2, l === "top" ? s.top = p.top - u.height : s.top = p.bottom), s.width = u.width, s.height = u.height, {
@@ -147,7 +115,7 @@ const U = function() {
147
115
  };
148
116
  }, o.prototype._setupEventListeners = function() {
149
117
  if (this.state.updateBound = this.update.bind(this), e.addEventListener("resize", this.state.updateBound), this._options.boundariesElement !== "window") {
150
- var t = b(this._reference);
118
+ var t = g(this._reference);
151
119
  (t === e.document.body || t === e.document.documentElement) && (t = e), t.addEventListener("scroll", this.state.updateBound), this.state.scrollTarget = t;
152
120
  }
153
121
  }, o.prototype._removeEventListeners = function() {
@@ -158,19 +126,19 @@ const U = function() {
158
126
  }, o.prototype._getBoundaries = function(t, i, l) {
159
127
  var s = {}, d, p;
160
128
  if (l === "window") {
161
- var u = e.document.body, m = e.document.documentElement;
129
+ var u = e.document.body, v = e.document.documentElement;
162
130
  p = Math.max(
163
131
  u.scrollHeight,
164
132
  u.offsetHeight,
165
- m.clientHeight,
166
- m.scrollHeight,
167
- m.offsetHeight
133
+ v.clientHeight,
134
+ v.scrollHeight,
135
+ v.offsetHeight
168
136
  ), d = Math.max(
169
137
  u.scrollWidth,
170
138
  u.offsetWidth,
171
- m.clientWidth,
172
- m.scrollWidth,
173
- m.offsetWidth
139
+ v.clientWidth,
140
+ v.scrollWidth,
141
+ v.offsetWidth
174
142
  ), s = {
175
143
  top: 0,
176
144
  right: d,
@@ -178,25 +146,25 @@ const U = function() {
178
146
  left: 0
179
147
  };
180
148
  } else if (l === "viewport") {
181
- var g = _(this._popper), v = b(this._popper), w = M(g), S = function(k) {
149
+ var w = m(this._popper), y = g(this._popper), C = M(w), I = function(k) {
182
150
  return k == document.body ? Math.max(
183
151
  document.documentElement.scrollTop,
184
152
  document.body.scrollTop
185
153
  ) : k.scrollTop;
186
- }, x = function(k) {
154
+ }, $ = function(k) {
187
155
  return k == document.body ? Math.max(
188
156
  document.documentElement.scrollLeft,
189
157
  document.body.scrollLeft
190
158
  ) : k.scrollLeft;
191
- }, T = t.offsets.popper.position === "fixed" ? 0 : S(v), I = t.offsets.popper.position === "fixed" ? 0 : x(v);
159
+ }, T = t.offsets.popper.position === "fixed" ? 0 : I(y), O = t.offsets.popper.position === "fixed" ? 0 : $(y);
192
160
  s = {
193
- top: 0 - (w.top - T),
194
- right: e.document.documentElement.clientWidth - (w.left - I),
195
- bottom: e.document.documentElement.clientHeight - (w.top - T),
196
- left: 0 - (w.left - I)
161
+ top: 0 - (C.top - T),
162
+ right: e.document.documentElement.clientWidth - (C.left - O),
163
+ bottom: e.document.documentElement.clientHeight - (C.top - T),
164
+ left: 0 - (C.left - O)
197
165
  };
198
166
  } else
199
- _(this._popper) === l ? s = {
167
+ m(this._popper) === l ? s = {
200
168
  top: 0,
201
169
  left: 0,
202
170
  right: l.clientWidth,
@@ -210,7 +178,7 @@ const U = function() {
210
178
  c(this._options.modifiers, l)
211
179
  )), s.forEach(
212
180
  function(d) {
213
- y(d) && (t = d.call(this, t));
181
+ _(d) && (t = d.call(this, t));
214
182
  }.bind(this)
215
183
  ), t;
216
184
  }, o.prototype.isModifierRequired = function(t, i) {
@@ -222,10 +190,10 @@ const U = function() {
222
190
  var i = {
223
191
  position: t.offsets.popper.position
224
192
  }, l = Math.round(t.offsets.popper.left), s = Math.round(t.offsets.popper.top), d;
225
- return this._options.gpuAcceleration && (d = F("transform")) ? (i[d] = "translate3d(" + l + "px, " + s + "px, 0)", i.top = 0, i.left = 0) : (i.left = l, i.top = s), Object.assign(i, t.styles), $(this._popper, i), this._popper.setAttribute("x-placement", t.placement), this.isModifierRequired(
193
+ return this._options.gpuAcceleration && (d = D("transform")) ? (i[d] = "translate3d(" + l + "px, " + s + "px, 0)", i.top = 0, i.left = 0) : (i.left = l, i.top = s), Object.assign(i, t.styles), b(this._popper, i), this._popper.setAttribute("x-placement", t.placement), this.isModifierRequired(
226
194
  this.modifiers.applyStyle,
227
195
  this.modifiers.arrow
228
- ) && t.offsets.arrow && $(t.arrowElement, t.offsets.arrow), t;
196
+ ) && t.offsets.arrow && b(t.arrowElement, t.offsets.arrow), t;
229
197
  }, o.prototype.modifiers.shift = function(t) {
230
198
  var i = t.placement, l = i.split("-")[0], s = i.split("-")[1];
231
199
  if (s) {
@@ -242,10 +210,10 @@ const U = function() {
242
210
  left: d.left + d.width - p.width
243
211
  }
244
212
  }
245
- }, m = ["bottom", "top"].indexOf(l) !== -1 ? "x" : "y";
213
+ }, v = ["bottom", "top"].indexOf(l) !== -1 ? "x" : "y";
246
214
  t.offsets.popper = Object.assign(
247
215
  p,
248
- u[m][s]
216
+ u[v][s]
249
217
  );
250
218
  }
251
219
  return t;
@@ -295,8 +263,8 @@ const U = function() {
295
263
  function(p, u) {
296
264
  if (!(i !== p || d.length === u + 1)) {
297
265
  i = t.placement.split("-")[0], l = a(i);
298
- var m = f(t.offsets.popper), g = ["right", "bottom"].indexOf(i) !== -1;
299
- (g && Math.floor(t.offsets.reference[i]) > Math.floor(m[l]) || !g && Math.floor(t.offsets.reference[i]) < Math.floor(m[l])) && (t.flipped = !0, t.placement = d[u + 1], s && (t.placement += "-" + s), t.offsets.popper = this._getOffsets(
266
+ var v = f(t.offsets.popper), w = ["right", "bottom"].indexOf(i) !== -1;
267
+ (w && Math.floor(t.offsets.reference[i]) > Math.floor(v[l]) || !w && Math.floor(t.offsets.reference[i]) < Math.floor(v[l])) && (t.flipped = !0, t.placement = d[u + 1], s && (t.placement += "-" + s), t.offsets.popper = this._getOffsets(
300
268
  this._popper,
301
269
  this._reference,
302
270
  t.placement
@@ -326,13 +294,13 @@ const U = function() {
326
294
  return console.warn(
327
295
  "WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"
328
296
  ), t;
329
- var s = {}, d = t.placement.split("-")[0], p = f(t.offsets.popper), u = t.offsets.reference, m = ["left", "right"].indexOf(d) !== -1, g = m ? "height" : "width", v = m ? "top" : "left", w = m ? "left" : "top", S = m ? "bottom" : "right", x = n(i)[g];
330
- u[S] - x < p[v] && (t.offsets.popper[v] -= p[v] - (u[S] - x)), u[v] + x > p[S] && (t.offsets.popper[v] += u[v] + x - p[S]);
331
- var T = u[v] + (l || u[g] / 2 - x / 2), I = T - p[v];
332
- return I = Math.max(
333
- Math.min(p[g] - x - 10, I),
297
+ var s = {}, d = t.placement.split("-")[0], p = f(t.offsets.popper), u = t.offsets.reference, v = ["left", "right"].indexOf(d) !== -1, w = v ? "height" : "width", y = v ? "top" : "left", C = v ? "left" : "top", I = v ? "bottom" : "right", $ = n(i)[w];
298
+ u[I] - $ < p[y] && (t.offsets.popper[y] -= p[y] - (u[I] - $)), u[y] + $ > p[I] && (t.offsets.popper[y] += u[y] + $ - p[I]);
299
+ var T = u[y] + (l || u[w] / 2 - $ / 2), O = T - p[y];
300
+ return O = Math.max(
301
+ Math.min(p[w] - $ - 10, O),
334
302
  8
335
- ), s[v] = I, s[w] = "", t.offsets.arrow = s, t.arrowElement = i, t;
303
+ ), s[y] = O, s[C] = "", t.offsets.arrow = s, t.arrowElement = i, t;
336
304
  };
337
305
  function n(t) {
338
306
  var i = t.style.display, l = t.style.visibility;
@@ -371,11 +339,11 @@ const U = function() {
371
339
  var l = e.getComputedStyle(t, null);
372
340
  return l[i];
373
341
  }
374
- function _(t) {
342
+ function m(t) {
375
343
  var i = t.offsetParent;
376
344
  return i === e.document.body || !i ? e.document.documentElement : i;
377
345
  }
378
- function b(t) {
346
+ function g(t) {
379
347
  var i = t.parentNode;
380
348
  return i ? i === e.document ? e.document.body.scrollTop || e.document.body.scrollLeft ? e.document.body : e.document.documentElement : ["scroll", "auto"].indexOf(
381
349
  h(i, "overflow")
@@ -383,12 +351,12 @@ const U = function() {
383
351
  h(i, "overflow-x")
384
352
  ) !== -1 || ["scroll", "auto"].indexOf(
385
353
  h(i, "overflow-y")
386
- ) !== -1 ? i : b(t.parentNode) : t;
354
+ ) !== -1 ? i : g(t.parentNode) : t;
387
355
  }
388
- function E(t) {
389
- return t === e.document.body ? !1 : h(t, "position") === "fixed" ? !0 : t.parentNode ? E(t.parentNode) : t;
356
+ function S(t) {
357
+ return t === e.document.body ? !1 : h(t, "position") === "fixed" ? !0 : t.parentNode ? S(t.parentNode) : t;
390
358
  }
391
- function $(t, i) {
359
+ function b(t, i) {
392
360
  function l(s) {
393
361
  return s !== "" && !isNaN(parseFloat(s)) && isFinite(s);
394
362
  }
@@ -399,7 +367,7 @@ const U = function() {
399
367
  ) !== -1 && l(i[s]) && (d = "px"), t.style[s] = i[s] + d;
400
368
  });
401
369
  }
402
- function y(t) {
370
+ function _(t) {
403
371
  var i = {};
404
372
  return t && i.toString.call(t) === "[object Function]";
405
373
  }
@@ -412,7 +380,7 @@ const U = function() {
412
380
  };
413
381
  return i.right = i.left + i.width, i.bottom = i.top + i.height, i;
414
382
  }
415
- function O(t) {
383
+ function E(t) {
416
384
  var i = t.getBoundingClientRect(), l = navigator.userAgent.indexOf("MSIE") != -1, s = l && t.tagName === "HTML" ? -t.scrollTop : i.top;
417
385
  return {
418
386
  left: i.left,
@@ -423,10 +391,10 @@ const U = function() {
423
391
  height: i.bottom - s
424
392
  };
425
393
  }
426
- function G(t, i, l) {
427
- var s = O(t), d = O(i);
394
+ function V(t, i, l) {
395
+ var s = E(t), d = E(i);
428
396
  if (l) {
429
- var p = b(i);
397
+ var p = g(i);
430
398
  d.top += p.scrollTop, d.bottom += p.scrollTop, d.left += p.scrollLeft, d.right += p.scrollLeft;
431
399
  }
432
400
  var u = {
@@ -439,7 +407,7 @@ const U = function() {
439
407
  };
440
408
  return u;
441
409
  }
442
- function F(t) {
410
+ function D(t) {
443
411
  for (var i = ["", "ms", "webkit", "moz", "o"], l = 0; l < i.length; l++) {
444
412
  var s = i[l] ? i[l] + t.charAt(0).toUpperCase() + t.slice(1) : t;
445
413
  if (typeof e.document.body.style[s] < "u")
@@ -461,18 +429,18 @@ const U = function() {
461
429
  if (s != null) {
462
430
  s = Object(s);
463
431
  for (var d = Object.keys(s), p = 0, u = d.length; p < u; p++) {
464
- var m = d[p], g = Object.getOwnPropertyDescriptor(
432
+ var v = d[p], w = Object.getOwnPropertyDescriptor(
465
433
  s,
466
- m
434
+ v
467
435
  );
468
- g !== void 0 && g.enumerable && (i[m] = s[m]);
436
+ w !== void 0 && w.enumerable && (i[v] = s[v]);
469
437
  }
470
438
  }
471
439
  }
472
440
  return i;
473
441
  }
474
442
  }), o;
475
- }(), L = (e) => e.stopPropagation(), Y = {
443
+ }(), F = (e) => e.stopPropagation(), Y = {
476
444
  props: {
477
445
  placement: {
478
446
  type: String,
@@ -490,7 +458,7 @@ const U = function() {
490
458
  },
491
459
  arrowOffset: {
492
460
  type: Number,
493
- default: 35
461
+ default: 0
494
462
  },
495
463
  appendToBody: {
496
464
  type: Boolean,
@@ -532,7 +500,7 @@ const U = function() {
532
500
  let o = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
533
501
  !o && this.$slots.reference && this.$slots.reference[0] && (o = this.referenceElm = this.$slots.reference[0].elm), !(!r || !o) && (this.visibleArrow && this.appendArrow(r), this.appendToBody && document.body.appendChild(this.popperElm), this.popperJS && this.popperJS.destroy && this.popperJS.destroy(), e.placement = this.currentPlacement, e.offset = this.offset, e.arrowOffset = this.arrowOffset, this.popperJS = new U(o, r, e), this.popperJS.onCreate((n) => {
534
502
  this.$emit("created", this), this.$nextTick(this.updatePopper);
535
- }), typeof e.onUpdate == "function" && this.popperJS.onUpdate(e.onUpdate), this.popperJS._popper.style.zIndex = 1e3, this.popperElm.addEventListener("click", L));
503
+ }), typeof e.onUpdate == "function" && this.popperJS.onUpdate(e.onUpdate), this.popperJS._popper.style.zIndex = 1e3, this.popperElm.addEventListener("click", F));
536
504
  },
537
505
  updatePopper() {
538
506
  const e = this.popperJS;
@@ -556,7 +524,7 @@ const U = function() {
556
524
  }
557
525
  },
558
526
  beforeDestroy() {
559
- this.doDestroy(!0), this.popperElm && this.popperElm.parentNode === document.body && (this.popperElm.removeEventListener("click", L), document.body.removeChild(this.popperElm));
527
+ this.doDestroy(!0), this.popperElm && this.popperElm.parentNode === document.body && (this.popperElm.removeEventListener("click", F), document.body.removeChild(this.popperElm));
560
528
  },
561
529
  // call destroy in keep-alive mode
562
530
  deactivated() {
@@ -565,7 +533,9 @@ const U = function() {
565
533
  };
566
534
  var Z = function() {
567
535
  var e = this, r = e.$createElement, o = e._self._c || r;
568
- return o("span", [o("div", {
536
+ return o("span", {
537
+ staticClass: "dp-popover_box_"
538
+ }, [o("div", {
569
539
  directives: [{
570
540
  name: "show",
571
541
  rawName: "v-show",
@@ -581,38 +551,41 @@ var Z = function() {
581
551
  return [e._v(e._s(e.content))];
582
552
  })], 2), o("span", {
583
553
  ref: "trigger",
554
+ staticClass: "dp-popover_ref_",
584
555
  on: {
585
- click: e.handleToggleShow
556
+ click: function(n) {
557
+ return n.stopPropagation(), e.handleToggleShow.apply(null, arguments);
558
+ }
586
559
  }
587
560
  }, [e._t("reference")], 2)]);
588
561
  }, X = [];
589
- function C(e, r, o, n, a, f, c, h) {
590
- var _ = typeof e == "function" ? e.options : e;
591
- r && (_.render = r, _.staticRenderFns = o, _._compiled = !0), n && (_.functional = !0), f && (_._scopeId = "data-v-" + f);
592
- var b;
593
- if (c ? (b = function(y) {
594
- y = y || // cached call
562
+ function x(e, r, o, n, a, f, c, h) {
563
+ var m = typeof e == "function" ? e.options : e;
564
+ r && (m.render = r, m.staticRenderFns = o, m._compiled = !0), n && (m.functional = !0), f && (m._scopeId = "data-v-" + f);
565
+ var g;
566
+ if (c ? (g = function(_) {
567
+ _ = _ || // cached call
595
568
  this.$vnode && this.$vnode.ssrContext || // stateful
596
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !y && typeof __VUE_SSR_CONTEXT__ < "u" && (y = __VUE_SSR_CONTEXT__), a && a.call(this, y), y && y._registeredComponents && y._registeredComponents.add(c);
597
- }, _._ssrRegister = b) : a && (b = h ? function() {
569
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !_ && typeof __VUE_SSR_CONTEXT__ < "u" && (_ = __VUE_SSR_CONTEXT__), a && a.call(this, _), _ && _._registeredComponents && _._registeredComponents.add(c);
570
+ }, m._ssrRegister = g) : a && (g = h ? function() {
598
571
  a.call(
599
572
  this,
600
- (_.functional ? this.parent : this).$root.$options.shadowRoot
573
+ (m.functional ? this.parent : this).$root.$options.shadowRoot
601
574
  );
602
- } : a), b)
603
- if (_.functional) {
604
- _._injectStyles = b;
605
- var E = _.render;
606
- _.render = function(M, O) {
607
- return b.call(O), E(M, O);
575
+ } : a), g)
576
+ if (m.functional) {
577
+ m._injectStyles = g;
578
+ var S = m.render;
579
+ m.render = function(M, E) {
580
+ return g.call(E), S(M, E);
608
581
  };
609
582
  } else {
610
- var $ = _.beforeCreate;
611
- _.beforeCreate = $ ? [].concat($, b) : [b];
583
+ var b = m.beforeCreate;
584
+ m.beforeCreate = b ? [].concat(b, g) : [g];
612
585
  }
613
586
  return {
614
587
  exports: e,
615
- options: _
588
+ options: m
616
589
  };
617
590
  }
618
591
  const Q = {
@@ -680,13 +653,13 @@ const Q = {
680
653
  e && (e.removeEventListener("mouseenter", this.handleMouseEnter), e.removeEventListener("mouseleave", this.handleMouseLeave), r.removeEventListener("mouseenter", this.handleMouseEnter), r.removeEventListener("mouseleave", this.handleMouseLeave));
681
654
  }
682
655
  }, H = {};
683
- var ee = /* @__PURE__ */ C(
656
+ var ee = /* @__PURE__ */ x(
684
657
  Q,
685
658
  Z,
686
659
  X,
687
660
  !1,
688
661
  te,
689
- "6f7c137a",
662
+ "b930cdc4",
690
663
  null,
691
664
  null
692
665
  );
@@ -694,7 +667,7 @@ function te(e) {
694
667
  for (let r in H)
695
668
  this[r] = H[r];
696
669
  }
697
- const V = /* @__PURE__ */ function() {
670
+ const G = /* @__PURE__ */ function() {
698
671
  return ee.exports;
699
672
  }();
700
673
  var oe = function() {
@@ -736,8 +709,8 @@ const ie = {
736
709
  this.$emit("change", e, this.data.key);
737
710
  }
738
711
  }
739
- }, P = {};
740
- var ne = /* @__PURE__ */ C(
712
+ }, B = {};
713
+ var ne = /* @__PURE__ */ x(
741
714
  ie,
742
715
  oe,
743
716
  re,
@@ -748,8 +721,8 @@ var ne = /* @__PURE__ */ C(
748
721
  null
749
722
  );
750
723
  function se(e) {
751
- for (let r in P)
752
- this[r] = P[r];
724
+ for (let r in B)
725
+ this[r] = B[r];
753
726
  }
754
727
  const ae = /* @__PURE__ */ function() {
755
728
  return ne.exports;
@@ -792,23 +765,23 @@ const pe = {
792
765
  this.$emit("change", this.data.code, this.data.key);
793
766
  }
794
767
  }
795
- }, B = {};
796
- var he = /* @__PURE__ */ C(
768
+ }, P = {};
769
+ var ce = /* @__PURE__ */ x(
797
770
  pe,
798
771
  le,
799
772
  de,
800
773
  !1,
801
- ce,
774
+ he,
802
775
  "1d357f3a",
803
776
  null,
804
777
  null
805
778
  );
806
- function ce(e) {
807
- for (let r in B)
808
- this[r] = B[r];
779
+ function he(e) {
780
+ for (let r in P)
781
+ this[r] = P[r];
809
782
  }
810
783
  const fe = /* @__PURE__ */ function() {
811
- return he.exports;
784
+ return ce.exports;
812
785
  }();
813
786
  var ue = function() {
814
787
  var e = this, r = e.$createElement, o = e._self._c || r;
@@ -858,7 +831,7 @@ var ue = function() {
858
831
  const me = {
859
832
  name: "dp-checkfilter",
860
833
  components: {
861
- DpPopover: V,
834
+ DpPopover: G,
862
835
  DpCheck: ae,
863
836
  DpRadio: fe
864
837
  },
@@ -892,7 +865,7 @@ const me = {
892
865
  }
893
866
  }
894
867
  }, N = {};
895
- var ve = /* @__PURE__ */ C(
868
+ var ve = /* @__PURE__ */ x(
896
869
  me,
897
870
  ue,
898
871
  _e,
@@ -906,10 +879,10 @@ function ge(e) {
906
879
  for (let r in N)
907
880
  this[r] = N[r];
908
881
  }
909
- const be = /* @__PURE__ */ function() {
882
+ const ye = /* @__PURE__ */ function() {
910
883
  return ve.exports;
911
884
  }();
912
- var ye = function() {
885
+ var be = function() {
913
886
  var e = this, r = e.$createElement, o = e._self._c || r;
914
887
  return o("li", {
915
888
  class: ["dp-table_header_item_ dp-table_header_item_height_", e.item.children ? "dp-table_header_item_group_" : "dp-table_header_item_border_", e.item.sortKey && "dp-table_header_item_cursor_"],
@@ -990,7 +963,7 @@ var ye = function() {
990
963
  const Ce = {
991
964
  name: "dp-table-header-item",
992
965
  components: {
993
- DpCheckfilter: be
966
+ DpCheckfilter: ye
994
967
  },
995
968
  props: {
996
969
  item: {
@@ -1046,9 +1019,9 @@ const Ce = {
1046
1019
  this.item.children || this.$nextTick(this.handleResize);
1047
1020
  }
1048
1021
  }, R = {};
1049
- var xe = /* @__PURE__ */ C(
1022
+ var xe = /* @__PURE__ */ x(
1050
1023
  Ce,
1051
- ye,
1024
+ be,
1052
1025
  we,
1053
1026
  !1,
1054
1027
  $e,
@@ -1062,7 +1035,7 @@ function $e(e) {
1062
1035
  }
1063
1036
  const Se = /* @__PURE__ */ function() {
1064
1037
  return xe.exports;
1065
- }(), D = (e, r, o) => {
1038
+ }(), L = (e, r, o) => {
1066
1039
  const n = e[o];
1067
1040
  if (!n.isFixed || !r[n.code])
1068
1041
  return {};
@@ -1112,7 +1085,7 @@ var Ie = function() {
1112
1085
  });
1113
1086
  }), 1);
1114
1087
  }, Oe = [];
1115
- const ke = {
1088
+ const Ee = {
1116
1089
  name: "dp-table-header",
1117
1090
  components: {
1118
1091
  DpItem: Se
@@ -1149,7 +1122,7 @@ const ke = {
1149
1122
  },
1150
1123
  computed: {
1151
1124
  fixedStyle() {
1152
- return this.data.map((e, r) => ({ ...D(this.data, this.widthInfo, r), backgroundColor: this.bgColor }));
1125
+ return this.data.map((e, r) => ({ ...L(this.data, this.widthInfo, r), backgroundColor: this.bgColor }));
1153
1126
  }
1154
1127
  },
1155
1128
  watch: {
@@ -1173,7 +1146,7 @@ const ke = {
1173
1146
  window.removeEventListener("resize", this.handleChangeKey);
1174
1147
  },
1175
1148
  methods: {
1176
- computFixedStyle: D,
1149
+ computFixedStyle: L,
1177
1150
  handleChangeWidthInfo(e) {
1178
1151
  this.widthInfo = { ...this.widthInfo, ...e }, clearTimeout(this.timer), this.timer = setTimeout(() => {
1179
1152
  this.$emit("changeWidth", this.widthInfo), this.isBlock = Object.values(this.widthInfo).reduce((r, o) => r + o, 0) > this.$el.offsetWidth - 2, this.$emit("changeBlock", this.isBlock);
@@ -1190,8 +1163,8 @@ const ke = {
1190
1163
  }
1191
1164
  }
1192
1165
  }, W = {};
1193
- var Ee = /* @__PURE__ */ C(
1194
- ke,
1166
+ var ke = /* @__PURE__ */ x(
1167
+ Ee,
1195
1168
  Ie,
1196
1169
  Oe,
1197
1170
  !1,
@@ -1205,7 +1178,7 @@ function Me(e) {
1205
1178
  this[r] = W[r];
1206
1179
  }
1207
1180
  const Te = /* @__PURE__ */ function() {
1208
- return Ee.exports;
1181
+ return ke.exports;
1209
1182
  }();
1210
1183
  var je = function() {
1211
1184
  var e = this, r = e.$createElement, o = e._self._c || r;
@@ -1359,8 +1332,8 @@ var je = function() {
1359
1332
  borderColor: e.borderColor
1360
1333
  }
1361
1334
  })])]);
1362
- }, De = [];
1363
- const Fe = {
1335
+ }, Le = [];
1336
+ const De = {
1364
1337
  name: "dp-table",
1365
1338
  components: {
1366
1339
  DpHeader: Te
@@ -1476,9 +1449,9 @@ const Fe = {
1476
1449
  if (n[a] instanceof Object && (n[a].merge || 0) > 1) {
1477
1450
  const f = this.deepHeadData.findIndex((h) => h.code === a), c = this.deepHeadData.slice(f, f + n[a].merge);
1478
1451
  c.forEach((h) => {
1479
- const _ = n[h.code];
1480
- _ instanceof Object || (n[h.code] = { value: _ }), n[h.code] = { ...n[h.code], isMergeIgnored: !0 };
1481
- }), n[a].isMerge = !0, n[a].width = c.map((h) => this.widthInfo[h.code] || 0).reduce((h, _) => h + _, 0);
1452
+ const m = n[h.code];
1453
+ m instanceof Object || (n[h.code] = { value: m }), n[h.code] = { ...n[h.code], isMergeIgnored: !0 };
1454
+ }), n[a].isMerge = !0, n[a].width = c.map((h) => this.widthInfo[h.code] || 0).reduce((h, m) => h + m, 0);
1482
1455
  }
1483
1456
  }), {
1484
1457
  __sub: o + parseInt(this.basicSub) + this.beforeIndex,
@@ -1490,7 +1463,7 @@ const Fe = {
1490
1463
  },
1491
1464
  // 冻结列样式
1492
1465
  fixedStyle() {
1493
- return this.headData.map((e, r) => D(this.resultHeadData, this.widthInfo, r));
1466
+ return this.headData.map((e, r) => L(this.resultHeadData, this.widthInfo, r));
1494
1467
  },
1495
1468
  // 行hover样式
1496
1469
  hoverStyle() {
@@ -1601,10 +1574,10 @@ const Fe = {
1601
1574
  }
1602
1575
  }
1603
1576
  }, A = {};
1604
- var Le = /* @__PURE__ */ C(
1605
- Fe,
1606
- je,
1577
+ var Fe = /* @__PURE__ */ x(
1607
1578
  De,
1579
+ je,
1580
+ Le,
1608
1581
  !1,
1609
1582
  He,
1610
1583
  "4f3eefb0",
@@ -1615,10 +1588,10 @@ function He(e) {
1615
1588
  for (let r in A)
1616
1589
  this[r] = A[r];
1617
1590
  }
1618
- const Pe = /* @__PURE__ */ function() {
1619
- return Le.exports;
1591
+ const Be = /* @__PURE__ */ function() {
1592
+ return Fe.exports;
1620
1593
  }();
1621
- var Be = function() {
1594
+ var Pe = function() {
1622
1595
  var e = this, r = e.$createElement, o = e._self._c || r;
1623
1596
  return o("div", {
1624
1597
  staticClass: "problem-raw",
@@ -1652,9 +1625,9 @@ const Re = {
1652
1625
  }
1653
1626
  }
1654
1627
  }, z = {};
1655
- var We = /* @__PURE__ */ C(
1628
+ var We = /* @__PURE__ */ x(
1656
1629
  Re,
1657
- Be,
1630
+ Pe,
1658
1631
  Ne,
1659
1632
  !1,
1660
1633
  Ae,
@@ -1672,7 +1645,7 @@ const ze = /* @__PURE__ */ function() {
1672
1645
  var qe = { choice: 'span.__MC41aTVhZDc3NDdnMzM2__[data-t="MC4wNHY2eGVwODFmMXg"]', decide: 'span.__MC5jY2ZpMWU5NzYyamo__[data-t="MC5hMDFjMGM5NGNmZmFl"]', fill: 'span.__MC50aXB0OGc2Y2tqbw__[data-t="MC5mM2VtbTVkcDJm"]', scoreline: 'span.__MC5sOG52dGVycnI5Zw__[data-t="MC42NG83Z2Y1Y2w3bw"]' }, Ke = (e) => {
1673
1646
  let { el: r, isShow: o, type: n } = e, a = Object.keys(qe), f = o ? a.filter((h) => !(n || a).includes(h)) : n || a, c = a.filter((h) => !f.includes(h));
1674
1647
  r.classList.add(...f.map((h) => `__toggleraw_${h}_hidden`)), r.classList.remove(...c.map((h) => `__toggleraw_${h}_hidden`));
1675
- }, Je = Ke, Ve = { ToggleRaw: Je }, Ge = function() {
1648
+ }, Je = Ke, Ge = { ToggleRaw: Je }, Ve = function() {
1676
1649
  var e = this, r = e.$createElement, o = e._self._c || r;
1677
1650
  return o("svg", {
1678
1651
  staticClass: "icon",
@@ -1702,9 +1675,9 @@ const Ye = {
1702
1675
  }
1703
1676
  }
1704
1677
  }, q = {};
1705
- var Ze = /* @__PURE__ */ C(
1678
+ var Ze = /* @__PURE__ */ x(
1706
1679
  Ye,
1707
- Ge,
1680
+ Ve,
1708
1681
  Ue,
1709
1682
  !1,
1710
1683
  Xe,
@@ -1739,7 +1712,7 @@ var et = function() {
1739
1712
  },
1740
1713
  on: {
1741
1714
  click: function(f) {
1742
- return e.handleChange(n.code);
1715
+ return f.stopPropagation(), e.handleChange(n.code);
1743
1716
  }
1744
1717
  }
1745
1718
  }, [e._v(e._s(n.name))]);
@@ -1788,13 +1761,13 @@ const ot = {
1788
1761
  }
1789
1762
  }
1790
1763
  }, K = {};
1791
- var rt = /* @__PURE__ */ C(
1764
+ var rt = /* @__PURE__ */ x(
1792
1765
  ot,
1793
1766
  et,
1794
1767
  tt,
1795
1768
  !1,
1796
1769
  it,
1797
- "8d631704",
1770
+ "729c1722",
1798
1771
  null,
1799
1772
  null
1800
1773
  );
@@ -1807,9 +1780,9 @@ const nt = /* @__PURE__ */ function() {
1807
1780
  }();
1808
1781
  var st = function() {
1809
1782
  var e = this, r = e.$createElement, o = e._self._c || r;
1810
- return o("dp-popover", {
1783
+ return e.isShowTool ? o("dp-popover", {
1811
1784
  attrs: {
1812
- width: "240px"
1785
+ width: "260px"
1813
1786
  }
1814
1787
  }, [o("dp-icon", {
1815
1788
  staticClass: "dp-toggleraw_icon_",
@@ -1817,15 +1790,12 @@ var st = function() {
1817
1790
  slot: "reference",
1818
1791
  name: "set"
1819
1792
  },
1820
- nativeOn: {
1821
- click: function(n) {
1822
- return e.handleChange(e.isShow);
1823
- }
1824
- },
1825
1793
  slot: "reference"
1826
1794
  }), o("div", {
1827
1795
  staticClass: "dp-toggleraw_content_"
1828
- }, [o("span", [e._v("题型控件显隐控制")]), o("dp-capsule", {
1796
+ }, [o("span", {
1797
+ staticClass: "dp-toggleraw_tips_"
1798
+ }, [e._v("题型控件显隐控制")]), o("dp-capsule", {
1829
1799
  attrs: {
1830
1800
  value: e.isShow,
1831
1801
  option: e.option
@@ -1833,26 +1803,31 @@ var st = function() {
1833
1803
  on: {
1834
1804
  change: e.handleChange
1835
1805
  }
1836
- })], 1)], 1);
1806
+ })], 1)], 1) : o("span", {
1807
+ staticClass: "dp-toggleraw_empty_"
1808
+ });
1837
1809
  }, at = [];
1838
1810
  const lt = {
1839
1811
  name: "dp-toggleraw",
1840
1812
  components: {
1841
1813
  DpIcon: Qe,
1842
- DpPopover: V,
1814
+ DpPopover: G,
1843
1815
  DpCapsule: nt
1844
1816
  },
1845
1817
  props: {
1846
- initVal: {
1818
+ value: {
1847
1819
  type: Boolean,
1848
1820
  default: !1
1849
1821
  },
1822
+ isShowTool: {
1823
+ type: Boolean
1824
+ },
1850
1825
  selectorList: {
1851
1826
  type: Array
1852
1827
  }
1853
1828
  },
1854
1829
  mounted() {
1855
- this.isShow = this.initVal, this.handleChange(this.isShow);
1830
+ this.isShow = this.value, this.handleChange(this.isShow);
1856
1831
  },
1857
1832
  data() {
1858
1833
  return {
@@ -1865,19 +1840,19 @@ const lt = {
1865
1840
  },
1866
1841
  methods: {
1867
1842
  handleChange(e) {
1868
- this.isShow = e, this.selectorList.map((o) => document.querySelector(o)).filter((o) => o).forEach((o) => {
1869
- Ve.ToggleRaw({ el: o, isShow: this.isShow });
1843
+ this.isShow = e, this.selectorList.map((o) => document.body.querySelector(o)).filter((o) => o).forEach((o) => {
1844
+ Ge.ToggleRaw({ el: o, isShow: this.isShow });
1870
1845
  }), this.$emit("change", this.isShow);
1871
1846
  }
1872
1847
  }
1873
1848
  }, J = {};
1874
- var dt = /* @__PURE__ */ C(
1849
+ var dt = /* @__PURE__ */ x(
1875
1850
  lt,
1876
1851
  st,
1877
1852
  at,
1878
1853
  !1,
1879
1854
  pt,
1880
- "41c0d3a5",
1855
+ "7dec0afb",
1881
1856
  null,
1882
1857
  null
1883
1858
  );
@@ -1885,20 +1860,56 @@ function pt(e) {
1885
1860
  for (let r in J)
1886
1861
  this[r] = J[r];
1887
1862
  }
1888
- const ht = /* @__PURE__ */ function() {
1863
+ const ct = /* @__PURE__ */ function() {
1889
1864
  return dt.exports;
1890
- }(), ct = [
1891
- Pe,
1865
+ }();
1866
+ window._iconfont_svg_string_3979503 = '<svg><symbol id="dp-set" viewBox="0 0 1024 1024"><path d="M1020.2 442.2c-4-22.2-25.4-44.8-47.6-49.8l-16.6-3.8c-39-11.8-73.6-37.6-95.6-75.6-22-38.2-27.2-81.6-17.6-121.4L848 176c6.6-21.6-2-51.4-19.4-66.2 0 0-15.6-13.2-59.6-38.6C725 46 706 39 706 39c-21.4-7.8-51.4-0.4-67 16.2l-11.6 12.4c-29.6 28-69.4 45-113.4 45s-84.2-17.2-113.8-45.4l-11.2-12c-15.4-16.6-45.6-24-67-16.2 0 0-19.2 7-63.2 32.2-44 25.6-59.4 38.8-59.4 38.8-17.4 14.6-26 44.2-19.4 66l4.8 15.8c9.4 39.8 4.4 83-17.6 121.2s-57 64.2-96.2 75.8l-16 3.6c-22 5-43.6 27.4-47.6 49.8 0 0-3.6 20-3.6 70.8s3.6 70.8 3.6 70.8c4 22.4 25.4 44.8 47.6 49.8l15.6 3.6c39.2 11.6 74.4 37.6 96.4 76 22 38.2 27.2 81.6 17.6 121.4L180 850c-6.6 21.6 2 51.4 19.4 66.2 0 0 15.6 13.2 59.6 38.6 44 25.4 63 32.2 63 32.2 21.4 7.8 51.4 0.4 67-16.2l11-11.8c29.8-28.2 69.8-45.4 114-45.4s84.4 17.4 114 45.6l11 11.8c15.4 16.6 45.6 24 67 16.2 0 0 19.2-7 63.2-32.2 44-25.4 59.4-38.6 59.4-38.6 17.4-14.6 26-44.4 19.4-66.2l-4.8-16c-9.4-39.6-4.4-82.8 17.6-120.8 22-38.2 57.2-64.4 96.4-76l15.6-3.6c22-5 43.6-27.4 47.6-49.8 0 0 3.6-20 3.6-70.8-0.2-51-3.8-71-3.8-71zM514 716.4c-112.2 0-203.4-91-203.4-203.4 0-112.2 91-203.2 203.4-203.2 112.2 0 203.4 91 203.4 203.4-0.2 112.2-91.2 203.2-203.4 203.2z m0 0" fill="#333333" ></path></symbol></svg>', function(e) {
1867
+ var o = (o = document.getElementsByTagName("script"))[o.length - 1], r = o.getAttribute("data-injectcss"), o = o.getAttribute("data-disable-injectsvg");
1868
+ if (!o) {
1869
+ var n, a, f, c, h, m = function(b, _) {
1870
+ _.parentNode.insertBefore(b, _);
1871
+ };
1872
+ if (r && !e.__iconfont__svg__cssinject__) {
1873
+ e.__iconfont__svg__cssinject__ = !0;
1874
+ try {
1875
+ document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
1876
+ } catch (b) {
1877
+ console && console.log(b);
1878
+ }
1879
+ }
1880
+ n = function() {
1881
+ var b, _ = document.createElement("div");
1882
+ _.innerHTML = e._iconfont_svg_string_3979503, (_ = _.getElementsByTagName("svg")[0]) && (_.setAttribute("aria-hidden", "true"), _.style.position = "absolute", _.style.width = 0, _.style.height = 0, _.style.overflow = "hidden", _ = _, (b = document.body).firstChild ? m(_, b.firstChild) : b.appendChild(_));
1883
+ }, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(n, 0) : (a = function() {
1884
+ document.removeEventListener("DOMContentLoaded", a, !1), n();
1885
+ }, document.addEventListener("DOMContentLoaded", a, !1)) : document.attachEvent && (f = n, c = e.document, h = !1, S(), c.onreadystatechange = function() {
1886
+ c.readyState == "complete" && (c.onreadystatechange = null, g());
1887
+ });
1888
+ }
1889
+ function g() {
1890
+ h || (h = !0, f());
1891
+ }
1892
+ function S() {
1893
+ try {
1894
+ c.documentElement.doScroll("left");
1895
+ } catch {
1896
+ return void setTimeout(S, 50);
1897
+ }
1898
+ g();
1899
+ }
1900
+ }(window);
1901
+ const ht = [
1902
+ Be,
1892
1903
  ze,
1893
- ht
1904
+ ct
1894
1905
  ], ft = {
1895
1906
  install: (e) => {
1896
- ct.forEach((r) => e.component(r.name, r));
1907
+ ht.forEach((r) => e.component(r.name, r));
1897
1908
  }
1898
1909
  };
1899
1910
  export {
1900
1911
  ze as Raw,
1901
- Pe as Table,
1902
- ht as ToggleRaw,
1912
+ Be as Table,
1913
+ ct as ToggleRaw,
1903
1914
  ft as default
1904
1915
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .dp-popover_view_[data-v-6f7c137a]{position:absolute;background-color:#fff;min-width:100px;z-index:1000;border-radius:6px;border:1px solid #ccc;padding:6px 10px;box-shadow:0 0 8px #ccc}.dp-popover_view_[x-placement^=top][data-v-6f7c137a]{margin-bottom:14px}.dp-popover_view_[x-placement^=top] .dp-popover_arrow_[data-v-6f7c137a]{bottom:-8px;left:50%;margin-right:3px;border-top-color:#ccc;border-bottom-width:0}.dp-popover_view_[x-placement^=top] .dp-popover_arrow_[data-v-6f7c137a]:after{bottom:1px;margin-left:-8px;border-top-color:#fff;border-bottom-width:0}.dp-popover_view_[x-placement^=bottom][data-v-6f7c137a]{margin-top:14px}.dp-popover_view_[x-placement^=bottom] .dp-popover_arrow_[data-v-6f7c137a]{top:-8px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#ccc}.dp-popover_view_[x-placement^=bottom] .dp-popover_arrow_[data-v-6f7c137a]:after{top:1px;margin-left:-8px;border-top-width:0;border-bottom-color:#fff}.dp-popover_view_[x-placement^=right][data-v-6f7c137a]{margin-left:14px}.dp-popover_view_[x-placement^=right] .dp-popover_arrow_[data-v-6f7c137a]{top:50%;left:-8px;margin-bottom:3px;border-right-color:#ccc;border-left-width:0}.dp-popover_view_[x-placement^=right] .dp-popover_arrow_[data-v-6f7c137a]:after{bottom:-8px;left:1px;border-right-color:#fff;border-left-width:0}.dp-popover_view_[x-placement^=left][data-v-6f7c137a]{margin-right:14px}.dp-popover_view_[x-placement^=left] .dp-popover_arrow_[data-v-6f7c137a]{top:50%;right:-8px;margin-bottom:3px;border-right-width:0;border-left-color:#ccc}.dp-popover_view_[x-placement^=left] .dp-popover_arrow_[data-v-6f7c137a]:after{right:1px;bottom:-8px;margin-left:-8px;border-left-color:#fff;border-right-width:0}.dp-popover_arrow_[data-v-6f7c137a],.dp-popover_arrow_[data-v-6f7c137a]:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.dp-popover_arrow_[data-v-6f7c137a]{border-width:8px;-webkit-filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));filter:drop-shadow(0 2px 12px rgba(0,0,0,.03))}.dp-popover_arrow_[data-v-6f7c137a]:after{content:" ";border-width:8px}.dp-check_view_[data-v-1bea0315]{font-size:14px;padding:5px 10px;min-width:60px;display:flex;cursor:pointer}.dp-check_view_[data-v-1bea0315]:hover{background-color:#e8e8e8}.dp-check_view_[disabled][data-v-1bea0315]{pointer-events:none}.dp-check_tag_[data-v-1bea0315]{width:14px;height:14px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #999;margin-right:10px;transform:translateY(1px)}.dp-check_name_[data-v-1bea0315]{white-space:break-spaces}.dp-check_view_checked_ .dp-check_tag_[data-v-1bea0315]{border-color:#4386f5;background-color:#4386f5}.dp-check_view_checked_ .dp-check_tag_[data-v-1bea0315]:before{content:"";width:9px;height:5px;border-bottom:1px solid #fff;border-left:1px solid #fff;transform:rotate(-45deg) translate(1px,-1px)}.dp-check_view_checked_ .dp-check_name_[data-v-1bea0315]{color:#4386f5}.dp-radio_view_[data-v-1d357f3a]{font-size:14px;padding:5px 10px;min-width:60px;display:flex;cursor:pointer}.dp-radio_view_[data-v-1d357f3a]:hover{background-color:#e8e8e8}.dp-radio_view_[disabled][data-v-1d357f3a]{pointer-events:none}.dp-radio_tag_[data-v-1d357f3a]{width:14px;height:14px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #999;margin-right:10px;transform:translateY(1px)}.dp-radio_name_[data-v-1d357f3a]{white-space:break-spaces}.dp-radio_view_checked_ .dp-radio_tag_[data-v-1d357f3a]{border-color:#4386f5}.dp-radio_view_checked_ .dp-radio_tag_[data-v-1d357f3a]:before{content:"";width:10px;height:10px;border-radius:50%;background-color:#4386f5}.dp-radio_view_checked_ .dp-radio_name_[data-v-1d357f3a]{color:#4386f5}.dp-checkfilter_view_[data-v-45a9d784]{display:flex;align-items:center;justify-content:center;padding:10px 0;position:relative;cursor:pointer}.dp-checkfilter_arrow_[data-v-45a9d784]{position:relative;width:6px;height:6px;margin:0 10px;border-bottom:2px solid #999;border-left:2px solid #999;transform:rotate(-45deg) translateY(-2px);transition:all .1s}.dp-checkfilter_option_view_[data-v-45a9d784]{overflow:hidden;visibility:hidden;position:absolute;z-index:1000;left:0;top:100%;width:100%;border-radius:5px;box-shadow:3px 3px 10px #c3c3c3;transform:scaleY(0);transform-origin:top;transition:all .1s}.dp-checkfilter_title_checked_[data-v-45a9d784]{color:#fe8227}.dp-checkfilter_view_:hover .dp-checkfilter_arrow_[data-v-45a9d784]{transform:rotate(135deg) translate(3px,-3px)}.dp-checkfilter_view_:hover .dp-checkfilter_option_view_[data-v-45a9d784]{transform:scale(1);overflow:visible;visibility:inherit}.dp-checkfilter_option_view_[data-v-45a9d784]:before{content:"";position:absolute;left:calc(50% - 4px);top:-4px;width:8px;height:8px;background-color:#fff;box-shadow:3px 3px 10px #c3c3c3;transform:rotate(45deg)}.dp-checkfilter_option_list_[data-v-45a9d784]{max-height:400px;overflow:auto;border-radius:5px;background-color:#fff;position:relative;z-index:2}.dp-table_header_item_height_[data-v-5685df36]{min-height:40px}.dp-table_header_item_[data-v-5685df36]{white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;box-sizing:border-box;text-align:center;flex-shrink:0}.dp-table_header_item_group_[data-v-5685df36]{flex-direction:column;align-items:start}.dp-table_header_item_group_title_[data-v-5685df36]{align-self:stretch;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dp-table_header_item_group_title_[data-v-5685df36]:before{content:" ";display:inline-block;height:100%;vertical-align:middle}.dp-table_header_item_border_[data-v-5685df36]{border-right:1px solid;border-bottom:1px solid;padding:3px 10px}.dp-table_header_item_child_[data-v-5685df36]{display:flex}.dp-table_header_item_sort_[data-v-5685df36]{display:inline-flex;flex-direction:column;align-items:center;justify-content:space-between;width:16px;height:12px}.dp-table_header_item_sort_[data-v-5685df36]:before,.dp-table_header_item_sort_[data-v-5685df36]:after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent}.dp-table_header_item_sort_[data-v-5685df36]:before{border-bottom:5px solid #999}.dp-table_header_item_sort_[data-v-5685df36]:after{border-top:5px solid #999}.dp-table_header_item_sort_up_[data-v-5685df36]:before{border-bottom-color:#fe8227}.dp-table_header_item_sort_down_[data-v-5685df36]:after{border-top-color:#fe8227}.dp-table_header_item_cursor_[data-v-5685df36]{cursor:pointer}.dp-table_header_filter_view_[data-v-5685df36]{flex:1}.dp-table_header_view_[data-v-093a0750]{flex-shrink:0;display:inline-flex;border-top:1px solid;position:sticky;z-index:3;top:0;user-select:none}.dp-table_fixed_bg_[data-v-093a0750]{background-color:#fff}.dp-table_fixed_bg_.dp-table_fixed_shadow_[data-v-093a0750]{box-shadow:5px 0 8px -3px #e3e3e3}.dp-table_view_box_[data-v-4f3eefb0]{flex:1;font-size:0;max-height:100vh;overflow:auto}.dp-table_view_border_[data-v-4f3eefb0]{border-left:1px solid;display:inline-flex!important;flex-direction:column;max-width:100%;max-height:100%;box-sizing:border-box;overflow:auto;position:relative}.dp-table_view_bottom_border_[data-v-4f3eefb0]{position:absolute;z-index:4;left:0;bottom:0;width:100%;height:0;border-top:1px solid}.dp-table_view_right_border_[data-v-4f3eefb0]{position:absolute;z-index:4;right:0;top:0;width:0;height:100%;border-left:1px solid}.dp-table_view_[data-v-4f3eefb0]{flex:1;display:inline-block;width:100%;max-height:100%;font-size:0;position:relative;box-sizing:border-box;overflow:auto}.dp-table_body_view_[data-v-4f3eefb0]{display:inline-flex;flex-direction:column;box-sizing:border-box;min-height:50px;min-width:100%}.dp-table_body_view_[data-v-4f3eefb0]:empty{display:flex;align-items:center;justify-content:center}.dp-table_body_view_[data-v-4f3eefb0]:empty:before{content:"\6682\65e0\6570\636e";line-height:2;color:#999}.dp-table_view_>*[data-v-4f3eefb0]{font-size:14px}.dp-table_body_item_[data-v-4f3eefb0]{display:inline-flex}.dp-table_fixed_bg_[data-v-4f3eefb0]{background-color:#fff}.dp-table_fixed_bg_.dp-table_fixed_shadow_[data-v-4f3eefb0]{box-shadow:5px 0 8px -3px #e3e3e3}.dp-table_body_item_group_col_[data-v-4f3eefb0]{display:flex;flex-direction:column;flex-shrink:0}.dp-table_body_item_group_col_>*[data-v-4f3eefb0]{flex:1}.dp-table_body_item_child_[data-v-4f3eefb0]{flex-shrink:0;display:flex;align-items:center;justify-content:center;text-align:center;border-right:1px solid;border-bottom:1px solid;box-sizing:border-box;overflow:hidden}.dp-table_total_view_[data-v-4f3eefb0]{position:sticky;bottom:0;display:inline-flex;background-color:#fff;overflow:visible}.dp-table_total_border_[data-v-4f3eefb0]{position:absolute;left:0;top:-1px;color:inherit;z-index:4;width:100%;border-top:1px solid}.problem-raw[data-v-65587794]:after{content:"";display:block;clear:both}.icon[data-v-3766159a]{vertical-align:-.15em;fill:currentColor;overflow:hidden;font-size:0}.dp-capsule_view_[data-v-8d631704]{display:inline-flex;position:relative;flex-shrink:0;margin:2px}.dp-capsule_view_[data-v-8d631704]:before{content:"";position:absolute;left:-2px;top:-2px;right:-2px;bottom:-2px;border:1px solid #4386f5;border-radius:200px}.pointer[data-v-8d631704]{cursor:pointer}.dp-capsule_view_active_[data-v-8d631704]{position:absolute;transition:left .1s;top:0;border-radius:200px;height:100%}.dp-capsule_view_item_[data-v-8d631704]{flex:1;position:relative;z-index:2;padding:0 10px;text-align:center;line-height:1.8;white-space:nowrap}.dp-toggleraw_icon_[data-v-41c0d3a5]{padding:5px}.dp-toggleraw_content_[data-v-41c0d3a5]{display:flex;align-items:center;justify-content:space-between}
1
+ .dp-popover_box_[data-v-b930cdc4]{line-height:1;display:flex;align-items:center}.dp-popover_view_[data-v-b930cdc4]{position:absolute;background-color:#fff;min-width:100px;z-index:1000;border-radius:6px;border:1px solid #ccc;padding:6px 10px;box-shadow:0 0 8px #ccc}.dp-popover_view_[x-placement^=top][data-v-b930cdc4]{margin-bottom:14px}.dp-popover_view_[x-placement^=top] .dp-popover_arrow_[data-v-b930cdc4]{bottom:-8px;left:50%;margin-right:3px;border-top-color:#ccc;border-bottom-width:0}.dp-popover_view_[x-placement^=top] .dp-popover_arrow_[data-v-b930cdc4]:after{bottom:1px;margin-left:-8px;border-top-color:#fff;border-bottom-width:0}.dp-popover_view_[x-placement^=bottom][data-v-b930cdc4]{margin-top:14px}.dp-popover_view_[x-placement^=bottom] .dp-popover_arrow_[data-v-b930cdc4]{top:-8px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#ccc}.dp-popover_view_[x-placement^=bottom] .dp-popover_arrow_[data-v-b930cdc4]:after{top:1px;margin-left:-8px;border-top-width:0;border-bottom-color:#fff}.dp-popover_view_[x-placement^=right][data-v-b930cdc4]{margin-left:14px}.dp-popover_view_[x-placement^=right] .dp-popover_arrow_[data-v-b930cdc4]{top:50%;left:-8px;margin-bottom:3px;border-right-color:#ccc;border-left-width:0}.dp-popover_view_[x-placement^=right] .dp-popover_arrow_[data-v-b930cdc4]:after{bottom:-8px;left:1px;border-right-color:#fff;border-left-width:0}.dp-popover_view_[x-placement^=left][data-v-b930cdc4]{margin-right:14px}.dp-popover_view_[x-placement^=left] .dp-popover_arrow_[data-v-b930cdc4]{top:50%;right:-8px;margin-bottom:3px;border-right-width:0;border-left-color:#ccc}.dp-popover_view_[x-placement^=left] .dp-popover_arrow_[data-v-b930cdc4]:after{right:1px;bottom:-8px;margin-left:-8px;border-left-color:#fff;border-right-width:0}.dp-popover_ref_[data-v-b930cdc4]{font-size:0}.dp-popover_arrow_[data-v-b930cdc4],.dp-popover_arrow_[data-v-b930cdc4]:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.dp-popover_arrow_[data-v-b930cdc4]{border-width:8px;-webkit-filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));filter:drop-shadow(0 2px 12px rgba(0,0,0,.03))}.dp-popover_arrow_[data-v-b930cdc4]:after{content:" ";border-width:8px}.dp-check_view_[data-v-1bea0315]{font-size:14px;padding:5px 10px;min-width:60px;display:flex;cursor:pointer}.dp-check_view_[data-v-1bea0315]:hover{background-color:#e8e8e8}.dp-check_view_[disabled][data-v-1bea0315]{pointer-events:none}.dp-check_tag_[data-v-1bea0315]{width:14px;height:14px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #999;margin-right:10px;transform:translateY(1px)}.dp-check_name_[data-v-1bea0315]{white-space:break-spaces}.dp-check_view_checked_ .dp-check_tag_[data-v-1bea0315]{border-color:#4386f5;background-color:#4386f5}.dp-check_view_checked_ .dp-check_tag_[data-v-1bea0315]:before{content:"";width:9px;height:5px;border-bottom:1px solid #fff;border-left:1px solid #fff;transform:rotate(-45deg) translate(1px,-1px)}.dp-check_view_checked_ .dp-check_name_[data-v-1bea0315]{color:#4386f5}.dp-radio_view_[data-v-1d357f3a]{font-size:14px;padding:5px 10px;min-width:60px;display:flex;cursor:pointer}.dp-radio_view_[data-v-1d357f3a]:hover{background-color:#e8e8e8}.dp-radio_view_[disabled][data-v-1d357f3a]{pointer-events:none}.dp-radio_tag_[data-v-1d357f3a]{width:14px;height:14px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #999;margin-right:10px;transform:translateY(1px)}.dp-radio_name_[data-v-1d357f3a]{white-space:break-spaces}.dp-radio_view_checked_ .dp-radio_tag_[data-v-1d357f3a]{border-color:#4386f5}.dp-radio_view_checked_ .dp-radio_tag_[data-v-1d357f3a]:before{content:"";width:10px;height:10px;border-radius:50%;background-color:#4386f5}.dp-radio_view_checked_ .dp-radio_name_[data-v-1d357f3a]{color:#4386f5}.dp-checkfilter_view_[data-v-45a9d784]{display:flex;align-items:center;justify-content:center;padding:10px 0;position:relative;cursor:pointer}.dp-checkfilter_arrow_[data-v-45a9d784]{position:relative;width:6px;height:6px;margin:0 10px;border-bottom:2px solid #999;border-left:2px solid #999;transform:rotate(-45deg) translateY(-2px);transition:all .1s}.dp-checkfilter_option_view_[data-v-45a9d784]{overflow:hidden;visibility:hidden;position:absolute;z-index:1000;left:0;top:100%;width:100%;border-radius:5px;box-shadow:3px 3px 10px #c3c3c3;transform:scaleY(0);transform-origin:top;transition:all .1s}.dp-checkfilter_title_checked_[data-v-45a9d784]{color:#fe8227}.dp-checkfilter_view_:hover .dp-checkfilter_arrow_[data-v-45a9d784]{transform:rotate(135deg) translate(3px,-3px)}.dp-checkfilter_view_:hover .dp-checkfilter_option_view_[data-v-45a9d784]{transform:scale(1);overflow:visible;visibility:inherit}.dp-checkfilter_option_view_[data-v-45a9d784]:before{content:"";position:absolute;left:calc(50% - 4px);top:-4px;width:8px;height:8px;background-color:#fff;box-shadow:3px 3px 10px #c3c3c3;transform:rotate(45deg)}.dp-checkfilter_option_list_[data-v-45a9d784]{max-height:400px;overflow:auto;border-radius:5px;background-color:#fff;position:relative;z-index:2}.dp-table_header_item_height_[data-v-5685df36]{min-height:40px}.dp-table_header_item_[data-v-5685df36]{white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;box-sizing:border-box;text-align:center;flex-shrink:0}.dp-table_header_item_group_[data-v-5685df36]{flex-direction:column;align-items:start}.dp-table_header_item_group_title_[data-v-5685df36]{align-self:stretch;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dp-table_header_item_group_title_[data-v-5685df36]:before{content:" ";display:inline-block;height:100%;vertical-align:middle}.dp-table_header_item_border_[data-v-5685df36]{border-right:1px solid;border-bottom:1px solid;padding:3px 10px}.dp-table_header_item_child_[data-v-5685df36]{display:flex}.dp-table_header_item_sort_[data-v-5685df36]{display:inline-flex;flex-direction:column;align-items:center;justify-content:space-between;width:16px;height:12px}.dp-table_header_item_sort_[data-v-5685df36]:before,.dp-table_header_item_sort_[data-v-5685df36]:after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent}.dp-table_header_item_sort_[data-v-5685df36]:before{border-bottom:5px solid #999}.dp-table_header_item_sort_[data-v-5685df36]:after{border-top:5px solid #999}.dp-table_header_item_sort_up_[data-v-5685df36]:before{border-bottom-color:#fe8227}.dp-table_header_item_sort_down_[data-v-5685df36]:after{border-top-color:#fe8227}.dp-table_header_item_cursor_[data-v-5685df36]{cursor:pointer}.dp-table_header_filter_view_[data-v-5685df36]{flex:1}.dp-table_header_view_[data-v-093a0750]{flex-shrink:0;display:inline-flex;border-top:1px solid;position:sticky;z-index:3;top:0;user-select:none}.dp-table_fixed_bg_[data-v-093a0750]{background-color:#fff}.dp-table_fixed_bg_.dp-table_fixed_shadow_[data-v-093a0750]{box-shadow:5px 0 8px -3px #e3e3e3}.dp-table_view_box_[data-v-4f3eefb0]{flex:1;font-size:0;max-height:100vh;overflow:auto}.dp-table_view_border_[data-v-4f3eefb0]{border-left:1px solid;display:inline-flex!important;flex-direction:column;max-width:100%;max-height:100%;box-sizing:border-box;overflow:auto;position:relative}.dp-table_view_bottom_border_[data-v-4f3eefb0]{position:absolute;z-index:4;left:0;bottom:0;width:100%;height:0;border-top:1px solid}.dp-table_view_right_border_[data-v-4f3eefb0]{position:absolute;z-index:4;right:0;top:0;width:0;height:100%;border-left:1px solid}.dp-table_view_[data-v-4f3eefb0]{flex:1;display:inline-block;width:100%;max-height:100%;font-size:0;position:relative;box-sizing:border-box;overflow:auto}.dp-table_body_view_[data-v-4f3eefb0]{display:inline-flex;flex-direction:column;box-sizing:border-box;min-height:50px;min-width:100%}.dp-table_body_view_[data-v-4f3eefb0]:empty{display:flex;align-items:center;justify-content:center}.dp-table_body_view_[data-v-4f3eefb0]:empty:before{content:"\6682\65e0\6570\636e";line-height:2;color:#999}.dp-table_view_>*[data-v-4f3eefb0]{font-size:14px}.dp-table_body_item_[data-v-4f3eefb0]{display:inline-flex}.dp-table_fixed_bg_[data-v-4f3eefb0]{background-color:#fff}.dp-table_fixed_bg_.dp-table_fixed_shadow_[data-v-4f3eefb0]{box-shadow:5px 0 8px -3px #e3e3e3}.dp-table_body_item_group_col_[data-v-4f3eefb0]{display:flex;flex-direction:column;flex-shrink:0}.dp-table_body_item_group_col_>*[data-v-4f3eefb0]{flex:1}.dp-table_body_item_child_[data-v-4f3eefb0]{flex-shrink:0;display:flex;align-items:center;justify-content:center;text-align:center;border-right:1px solid;border-bottom:1px solid;box-sizing:border-box;overflow:hidden}.dp-table_total_view_[data-v-4f3eefb0]{position:sticky;bottom:0;display:inline-flex;background-color:#fff;overflow:visible}.dp-table_total_border_[data-v-4f3eefb0]{position:absolute;left:0;top:-1px;color:inherit;z-index:4;width:100%;border-top:1px solid}.problem-raw[data-v-65587794]:after{content:"";display:block;clear:both}.icon[data-v-3766159a]{vertical-align:-.15em;fill:currentColor;overflow:hidden;font-size:0}.dp-capsule_view_[data-v-729c1722]{display:inline-flex;position:relative;flex-shrink:0;margin:2px}.dp-capsule_view_[data-v-729c1722]:before{content:"";position:absolute;left:-2px;top:-2px;right:-2px;bottom:-2px;border:1px solid #4386f5;border-radius:200px}.pointer[data-v-729c1722]{cursor:pointer}.dp-capsule_view_active_[data-v-729c1722]{position:absolute;transition:left .1s;top:0;border-radius:200px;height:100%}.dp-capsule_view_item_[data-v-729c1722]{flex:1;position:relative;z-index:2;padding:0 10px;text-align:center;line-height:1.8;white-space:nowrap}.dp-toggleraw_icon_[data-v-7dec0afb]{padding:5px}.dp-toggleraw_content_[data-v-7dec0afb]{display:flex;align-items:center;justify-content:space-between}.dp-toggleraw_tips_[data-v-7dec0afb]{margin-right:10px}.dp-toggleraw_empty_[data-v-7dec0afb]{width:26px}html{font-size:14px}p,ul{margin:0;margin-block-start:0;margin-block-end:0}li{list-style:none}ul,ol{padding:0}
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dpot-ui",
3
3
  "private": false,
4
- "version": "0.2.4",
4
+ "version": "0.2.5",
5
5
  "author": "Jeesn",
6
6
  "main": "./dist/index.es.js",
7
7
  "module": "./dist/index.es.js",