easy-component-ui 3.0.12 → 3.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +162 -162
  2. package/dist/assets/icon.css +1 -1
  3. package/dist/components/Base.js +3 -2
  4. package/dist/components/ea-alert.js +71 -54
  5. package/dist/components/ea-avatar.js +42 -37
  6. package/dist/components/ea-button.js +53 -52
  7. package/dist/components/ea-calendar2.js +329 -327
  8. package/dist/components/ea-card.js +63 -27
  9. package/dist/components/ea-carousel.js +2 -2
  10. package/dist/components/ea-collapse.js +28 -28
  11. package/dist/components/ea-color-picker.js +63 -66
  12. package/dist/components/ea-container.js +90 -61
  13. package/dist/components/ea-date-picker.js +1 -1
  14. package/dist/components/ea-dialog.js +4 -4
  15. package/dist/components/ea-drawer.js +51 -46
  16. package/dist/components/ea-icon.js +122 -32
  17. package/dist/components/ea-image-preview.js +237 -193
  18. package/dist/components/ea-image.js +69 -44
  19. package/dist/components/ea-input-number.js +9 -9
  20. package/dist/components/ea-input.js +15 -15
  21. package/dist/components/ea-layout.js +10 -3
  22. package/dist/components/ea-link.js +1 -1
  23. package/dist/components/ea-menu.js +1 -1
  24. package/dist/components/ea-message-box.js +73 -73
  25. package/dist/components/ea-message.js +184 -121
  26. package/dist/components/ea-notification.js +80 -80
  27. package/dist/components/ea-overlay.js +20 -19
  28. package/dist/components/ea-page-header.js +5 -5
  29. package/dist/components/ea-pagination.js +5 -5
  30. package/dist/components/ea-popconfirm.js +3 -3
  31. package/dist/components/ea-popover.js +35 -11
  32. package/dist/components/ea-progress.js +28 -28
  33. package/dist/components/ea-rate.js +1 -1
  34. package/dist/components/ea-result.js +13 -13
  35. package/dist/components/ea-select.js +12 -12
  36. package/dist/components/ea-slider.js +88 -79
  37. package/dist/components/ea-splitter.js +34 -18
  38. package/dist/components/ea-steps.js +33 -33
  39. package/dist/components/ea-table.js +332 -321
  40. package/dist/components/ea-tabs.js +28 -28
  41. package/dist/components/ea-tag.js +6 -6
  42. package/dist/components/ea-time-picker.js +2 -6
  43. package/dist/components/ea-timeline.js +1 -1
  44. package/dist/components/ea-tooltip.js +63 -23
  45. package/dist/components/ea-tour.js +21 -21
  46. package/dist/components/ea-transfer.js +2 -2
  47. package/dist/components/ea-tree.js +1 -1
  48. package/dist/components/index.js +0 -1
  49. package/dist/css/ea-card.style.js +2 -2
  50. package/dist/css/ea-container.style.js +1 -1
  51. package/dist/css/ea-footer.style.js +1 -1
  52. package/dist/css/ea-progress.style.js +1 -1
  53. package/dist/css/ea-step.style.js +1 -1
  54. package/dist/css/ea-switch.style.js +1 -1
  55. package/dist/css/ea-tab.style.js +1 -1
  56. package/dist/css/ea-tabs.style.js +1 -1
  57. package/dist/css/ea-tag.style.js +1 -1
  58. package/dist/css/ea-time-picker.style.js +1 -1
  59. package/dist/utils/Variables.js +10 -10
  60. package/package.json +302 -304
  61. package/dist/components/ea-loading.js +0 -151
@@ -4,7 +4,7 @@ var j = (i) => {
4
4
  };
5
5
  var Q = (i, o, t) => o in i ? K(i, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[o] = t;
6
6
  var q = (i, o, t) => Q(i, typeof o != "symbol" ? o + "" : o, t), F = (i, o, t) => o.has(i) || j("Cannot " + t);
7
- var e = (i, o, t) => (F(i, o, "read from private field"), t ? t.call(i) : o.get(i)), a = (i, o, t) => o.has(i) ? j("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(i) : o.set(i, t), c = (i, o, t, s) => (F(i, o, "write to private field"), s ? s.call(i, t) : o.set(i, t), t);
7
+ var e = (i, o, t) => (F(i, o, "read from private field"), t ? t.call(i) : o.get(i)), a = (i, o, t) => o.has(i) ? j("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(i) : o.set(i, t), h = (i, o, t, s) => (F(i, o, "write to private field"), s ? s.call(i, t) : o.set(i, t), t);
8
8
  import { B as U } from "./Base.js";
9
9
  import { s as X } from "../css/ea-tab.style.js";
10
10
  import { s as Y } from "../css/ea-tabs.style.js";
@@ -108,14 +108,14 @@ class V extends U {
108
108
  * @return {string} 属性值
109
109
  */
110
110
  updateContainerClasslist() {
111
- var l, n, h;
111
+ var l, n, c;
112
112
  let t = (l = e(this, d, f)) == null ? void 0 : l.querySelectorAll("ea-tab");
113
113
  t = (t == null ? void 0 : t.length) > 0 ? [...t] : [];
114
114
  const s = this.computedClasslist(
115
115
  "ea-tab",
116
116
  {
117
117
  ["--" + this.type]: this.type === ((n = e(this, d, f)) == null ? void 0 : n.getAttribute("type")) || "",
118
- ["--" + this["tab-position"]]: this["tab-position"] === ((h = e(this, d, f)) == null ? void 0 : h.getAttribute("tab-position")) || "top"
118
+ ["--" + this["tab-position"]]: this["tab-position"] === ((c = e(this, d, f)) == null ? void 0 : c.getAttribute("tab-position")) || "top"
119
119
  },
120
120
  {
121
121
  disabled: this.disabled,
@@ -131,13 +131,13 @@ class V extends U {
131
131
  this.shadowRoot.innerHTML = `
132
132
  <div class='ea-tab' part='container'>
133
133
  <slot></slot>
134
- <ea-icon class="ea-tab__close-icon" icon="icon-cancel" part="close-icon"></ea-icon>
134
+ <ea-icon class="ea-tab__close-icon" name="xmark" part="close-icon"></ea-icon>
135
135
  </div>
136
- `, c(this, _, this.shadowRoot.querySelector(".ea-tab")), c(this, S, this.shadowRoot.querySelector(".ea-tab__close-icon")), this.updateContainerClasslist();
136
+ `, h(this, _, this.shadowRoot.querySelector(".ea-tab")), h(this, S, this.shadowRoot.querySelector(".ea-tab__close-icon")), this.updateContainerClasslist();
137
137
  }
138
138
  connectedCallback() {
139
139
  var t;
140
- super.connectedCallback(), (t = e(this, p)) == null || t.abort(), c(this, p, new AbortController()), e(this, S).addEventListener("click", e(this, x), {
140
+ super.connectedCallback(), (t = e(this, p)) == null || t.abort(), h(this, p, new AbortController()), e(this, S).addEventListener("click", e(this, x), {
141
141
  signal: e(this, p).signal
142
142
  });
143
143
  }
@@ -153,7 +153,7 @@ d = new WeakSet(), f = function() {
153
153
  }
154
154
  }, _ = new WeakMap(), S = new WeakMap(), p = new WeakMap(), x = new WeakMap();
155
155
  window.customElements.get("ea-tab") || window.customElements.define("ea-tab", V);
156
- var E, u, v, r, g, m, L, $, y, b, C, k, N, A, B, H, w, P, I, W, O;
156
+ var E, u, v, r, m, g, L, k, y, b, C, $, N, A, B, H, w, P, I, W, O;
157
157
  class tt extends U {
158
158
  constructor() {
159
159
  super();
@@ -166,13 +166,13 @@ class tt extends U {
166
166
  /** @type {HTMLElement} */
167
167
  a(this, r);
168
168
  /** @type {HTMLSlotElement} */
169
- a(this, g);
170
- /** @type {HTMLElement} */
171
169
  a(this, m);
172
170
  /** @type {HTMLElement} */
171
+ a(this, g);
172
+ /** @type {HTMLElement} */
173
173
  a(this, L);
174
174
  /** @type {HTMLElement} */
175
- a(this, $);
175
+ a(this, k);
176
176
  /** @type {HTMLSlotElement} */
177
177
  a(this, y);
178
178
  /** @type {AbortController} */
@@ -210,7 +210,7 @@ class tt extends U {
210
210
  type: ["top", "bottom", "left", "right"],
211
211
  default: "top",
212
212
  observer: (t) => {
213
- this.updateContainerClasslist(), e(this, H).call(this, t), e(this, A).call(this, this.active), [...e(this, g).assignedElements()].filter(
213
+ this.updateContainerClasslist(), e(this, H).call(this, t), e(this, A).call(this, this.active), [...e(this, m).assignedElements()].filter(
214
214
  (s) => s.tagName.toLowerCase() === "ea-tab-panel" || s.tagName.toLowerCase() === "ea-tab"
215
215
  ).forEach((s) => s.setAttribute("tab-position", t));
216
216
  }
@@ -228,14 +228,14 @@ class tt extends U {
228
228
  * @param {HTMLElement} lineEl
229
229
  * @param {HTMLElement} tabPosition
230
230
  */
231
- a(this, k, (t, s = e(this, m), l = this["tab-position"]) => {
232
- const n = l === "top" || l === "bottom", h = t.getBoundingClientRect(), T = s.getBoundingClientRect();
231
+ a(this, $, (t, s = e(this, g), l = this["tab-position"]) => {
232
+ const n = l === "top" || l === "bottom", c = t.getBoundingClientRect(), T = s.getBoundingClientRect();
233
233
  this.style.setProperty(
234
234
  "--ea-tabs-indicator-size",
235
235
  `${n ? t.offsetWidth : t.offsetHeight}px`
236
236
  ), this.style.setProperty(
237
237
  "--ea-tabs-indicator-x",
238
- `${n ? h.x - T.x : h.y - T.y}px`
238
+ `${n ? c.x - T.x : c.y - T.y}px`
239
239
  );
240
240
  });
241
241
  /**
@@ -244,7 +244,7 @@ class tt extends U {
244
244
  * @param {HTMLElement} [lineEl]
245
245
  * @param {HTMLElement} [tabPosition]
246
246
  */
247
- a(this, N, (t, s = e(this, m), l = this["tab-position"]) => {
247
+ a(this, N, (t, s = e(this, g), l = this["tab-position"]) => {
248
248
  const n = t.getBoundingClientRect();
249
249
  e(this, r).scrollTo({
250
250
  left: t.offsetLeft + n.width,
@@ -259,8 +259,8 @@ class tt extends U {
259
259
  a(this, A, (t = this.active) => {
260
260
  const s = [...this.querySelectorAll("ea-tab-panel")];
261
261
  [...this.querySelectorAll("ea-tab")].forEach((n) => {
262
- const h = n.getAttribute("panel") === t;
263
- n.toggleAttribute("active", h), h && this.type === "" && e(this, k).call(this, n), h && e(this, N).call(this, n);
262
+ const c = n.getAttribute("panel") === t;
263
+ n.toggleAttribute("active", c), c && this.type === "" && e(this, $).call(this, n), c && e(this, N).call(this, n);
264
264
  }), s.forEach((n) => {
265
265
  n.toggleAttribute(
266
266
  "active",
@@ -281,7 +281,7 @@ class tt extends U {
281
281
  * @param {"top" | "bottom" | "left" | "right"} tabPosition
282
282
  */
283
283
  a(this, H, (t = this["tab-position"]) => {
284
- t === "left" || t === "right" ? (e(this, u).setAttribute("icon", "icon-arrow-left"), e(this, v).setAttribute("icon", "icon-arrow-right")) : (t === "top" || t === "bottom") && (e(this, u).setAttribute("icon", "icon-arrow-up"), e(this, v).setAttribute("icon", "icon-arrow-down"));
284
+ t === "left" || t === "right" ? (e(this, u).setAttribute("name", "arrow-left"), e(this, v).setAttribute("name", "arrow-right")) : (t === "top" || t === "bottom") && (e(this, u).setAttribute("name", "arrow-up"), e(this, v).setAttribute("name", "arrow-down"));
285
285
  });
286
286
  /**
287
287
  * 当 tab slot 内容变化时触发
@@ -347,7 +347,7 @@ class tt extends U {
347
347
  */
348
348
  a(this, O, (t) => {
349
349
  t.preventDefault(), t.stopImmediatePropagation();
350
- const s = t.detail.panel, l = [...this.querySelectorAll("ea-tab")], n = t.target, h = l.indexOf(n), T = this.querySelector(`ea-tab-panel[name="${s}"]`), D = [...this.querySelectorAll("ea-tab")][h - 1 < 0 ? 0 : h - 1].getAttribute("panel");
350
+ const s = t.detail.panel, l = [...this.querySelectorAll("ea-tab")], n = t.target, c = l.indexOf(n), T = this.querySelector(`ea-tab-panel[name="${s}"]`), D = [...this.querySelectorAll("ea-tab")][c - 1 < 0 ? 0 : c - 1].getAttribute("panel");
351
351
  this.setAttribute("active", D), T.remove(), n.remove(), this.emit("tab-remove", {
352
352
  detail: {
353
353
  name: D
@@ -386,9 +386,9 @@ class tt extends U {
386
386
  this.shadowRoot.innerHTML = `
387
387
  <div class='ea-tabs' part='container'>
388
388
  <nav class='ea-tabs__nav' part='nav'>
389
- <ea-icon icon="icon-angle-left" class="ea-tabs__prev ea-tabs__scroll" part='prev'></ea-icon>
389
+ <ea-icon name="angle-left" class="ea-tabs__prev ea-tabs__scroll" part='prev'></ea-icon>
390
390
  <slot name='nav'></slot>
391
- <ea-icon icon="icon-angle-right" class="ea-tabs__next ea-tabs__scroll" part='next'></ea-icon>
391
+ <ea-icon name="angle-right" class="ea-tabs__next ea-tabs__scroll" part='next'></ea-icon>
392
392
  </nav>
393
393
  <div class="ea-tabs__line" part="line" tabindex="-1">
394
394
  <span class="ea-tabs__indicator" part="indicator"></span>
@@ -397,17 +397,17 @@ class tt extends U {
397
397
  <slot></slot>
398
398
  </main>
399
399
  </div>
400
- `, c(this, E, this.shadowRoot.querySelector(".ea-tabs")), c(this, u, this.shadowRoot.querySelector(".ea-tabs__prev")), c(this, v, this.shadowRoot.querySelector(".ea-tabs__next")), c(this, r, this.shadowRoot.querySelector(".ea-tabs__nav")), c(this, g, this.shadowRoot.querySelector(
400
+ `, h(this, E, this.shadowRoot.querySelector(".ea-tabs")), h(this, u, this.shadowRoot.querySelector(".ea-tabs__prev")), h(this, v, this.shadowRoot.querySelector(".ea-tabs__next")), h(this, r, this.shadowRoot.querySelector(".ea-tabs__nav")), h(this, m, this.shadowRoot.querySelector(
401
401
  ".ea-tabs__nav > slot[name=nav]"
402
- )), c(this, m, this.shadowRoot.querySelector(".ea-tabs__line")), c(this, L, this.shadowRoot.querySelector(".ea-tabs__indicator")), c(this, $, this.shadowRoot.querySelector(".ea-tabs__content")), c(this, y, this.shadowRoot.querySelector(
402
+ )), h(this, g, this.shadowRoot.querySelector(".ea-tabs__line")), h(this, L, this.shadowRoot.querySelector(".ea-tabs__indicator")), h(this, k, this.shadowRoot.querySelector(".ea-tabs__content")), h(this, y, this.shadowRoot.querySelector(
403
403
  ".ea-tabs__content > slot"
404
404
  )), e(this, w).call(this);
405
405
  }
406
406
  connectedCallback() {
407
407
  var t, s;
408
- super.connectedCallback(), (t = e(this, b)) == null || t.abort(), c(this, b, new AbortController()), (s = e(this, C)) == null || s.unobserve(), e(this, r).addEventListener("click", e(this, P), {
408
+ super.connectedCallback(), (t = e(this, b)) == null || t.abort(), h(this, b, new AbortController()), (s = e(this, C)) == null || s.unobserve(), e(this, r).addEventListener("click", e(this, P), {
409
409
  signal: e(this, b).signal
410
- }), e(this, g).addEventListener("slotchange", e(this, w), {
410
+ }), e(this, m).addEventListener("slotchange", e(this, w), {
411
411
  signal: e(this, b).signal
412
412
  }), e(this, y).addEventListener("slotchange", e(this, w), {
413
413
  signal: e(this, b).signal
@@ -417,7 +417,7 @@ class tt extends U {
417
417
  signal: e(this, b).signal
418
418
  }), this.addEventListener("ea-tab-close-icon-click", e(this, O), {
419
419
  signal: e(this, b).signal
420
- }), c(this, C, new ResizeObserver(() => {
420
+ }), h(this, C, new ResizeObserver(() => {
421
421
  this.updateContainerClasslist();
422
422
  }).observe(e(this, r))), G(() => {
423
423
  this.updateContainerClasslist();
@@ -428,7 +428,7 @@ class tt extends U {
428
428
  (t = e(this, b)) == null || t.abort(), (s = e(this, C)) == null || s.unobserve();
429
429
  }
430
430
  }
431
- E = new WeakMap(), u = new WeakMap(), v = new WeakMap(), r = new WeakMap(), g = new WeakMap(), m = new WeakMap(), L = new WeakMap(), $ = new WeakMap(), y = new WeakMap(), b = new WeakMap(), C = new WeakMap(), k = new WeakMap(), N = new WeakMap(), A = new WeakMap(), B = new WeakMap(), H = new WeakMap(), w = new WeakMap(), P = new WeakMap(), I = new WeakMap(), W = new WeakMap(), O = new WeakMap();
431
+ E = new WeakMap(), u = new WeakMap(), v = new WeakMap(), r = new WeakMap(), m = new WeakMap(), g = new WeakMap(), L = new WeakMap(), k = new WeakMap(), y = new WeakMap(), b = new WeakMap(), C = new WeakMap(), $ = new WeakMap(), N = new WeakMap(), A = new WeakMap(), B = new WeakMap(), H = new WeakMap(), w = new WeakMap(), P = new WeakMap(), I = new WeakMap(), W = new WeakMap(), O = new WeakMap();
432
432
  window.customElements.get("ea-tabs") || window.customElements.define("ea-tabs", tt);
433
433
  var z, J, R, M;
434
434
  class et extends U {
@@ -477,7 +477,7 @@ class et extends U {
477
477
  <div class='ea-tab-panel' part='container'>
478
478
  <slot></slot>
479
479
  </div>
480
- `, c(this, R, this.shadowRoot.querySelector(".ea-tab-panel"));
480
+ `, h(this, R, this.shadowRoot.querySelector(".ea-tab-panel"));
481
481
  }
482
482
  connectedCallback() {
483
483
  super.connectedCallback();
@@ -3,15 +3,15 @@ var f = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
5
  var y = (t, s, e) => s in t ? C(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
6
- var b = (t, s, e) => y(t, typeof s != "symbol" ? s + "" : s, e), g = (t, s, e) => s.has(t) || f("Cannot " + e);
7
- var a = (t, s, e) => (g(t, s, "read from private field"), e ? e.call(t) : s.get(t)), o = (t, s, e) => s.has(t) ? f("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, e), l = (t, s, e, h) => (g(t, s, "write to private field"), h ? h.call(t, e) : s.set(t, e), e);
8
- import { B as m } from "./Base.js";
6
+ var b = (t, s, e) => y(t, typeof s != "symbol" ? s + "" : s, e), m = (t, s, e) => s.has(t) || f("Cannot " + e);
7
+ var a = (t, s, e) => (m(t, s, "read from private field"), e ? e.call(t) : s.get(t)), o = (t, s, e) => s.has(t) ? f("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, e), l = (t, s, e, h) => (m(t, s, "write to private field"), h ? h.call(t, e) : s.set(t, e), e);
8
+ import { B as g } from "./Base.js";
9
9
  import { s as v } from "../css/ea-check-tag.style.js";
10
10
  import { s as k } from "../css/ea-tag.style.js";
11
11
  import { c as w } from "../utils/Variables.js";
12
12
  import { E } from "../utils/Utils.js";
13
13
  var c, r, u;
14
- class A extends m {
14
+ class A extends g {
15
15
  constructor() {
16
16
  super();
17
17
  /** @type {HTMLElement} */
@@ -97,7 +97,7 @@ class S extends Event {
97
97
  }
98
98
  }
99
99
  var i, d, n, p;
100
- class $ extends m {
100
+ class $ extends g {
101
101
  constructor() {
102
102
  super();
103
103
  /** @type {HTMLElement} */
@@ -208,7 +208,7 @@ class $ extends m {
208
208
  this.shadowRoot.innerHTML = `
209
209
  <div class='ea-tag' part='container'>
210
210
  <slot></slot>
211
- <ea-icon class="ea-tag__close" part="close-icon" icon="icon-cancel"></ea-icon>
211
+ <ea-icon class="ea-tag__close" part="close-icon" name="xmark"></ea-icon>
212
212
  </div>
213
213
  `, l(this, i, this.shadowRoot.querySelector(".ea-tag")), l(this, d, this.shadowRoot.querySelector(".ea-tag__close")), this.updateContainerClasslist();
214
214
  }
@@ -446,7 +446,7 @@ class lt extends st {
446
446
  part='input'
447
447
  autocomplete="off"
448
448
  readonly
449
- prefix-icon="icon-clock"
449
+ prefix-icon="clock"
450
450
  ></ea-input>
451
451
  <div class="${s.e("dropdown")}" part='dropdown'>
452
452
  <div class="${s.e("dropdown-inner-wrap")}" part='dropdown-inner-wrap'>
@@ -476,11 +476,7 @@ class lt extends st {
476
476
  */
477
477
  updateValidity() {
478
478
  const s = this.value !== "" && this.value != null;
479
- this.required && !s ? this.internals.setValidity(
480
- { valueMissing: !0 },
481
- "请选择时间",
482
- this
483
- ) : this.internals.setValidity({}, "", this);
479
+ this.required && !s ? this.internals.setValidity({ valueMissing: !0 }, "请选择时间", this) : this.internals.setValidity({}, "", this);
484
480
  }
485
481
  /**
486
482
  * 检查表单字段的有效性
@@ -89,7 +89,7 @@ class g extends f {
89
89
  type: String,
90
90
  default: "",
91
91
  observer: (e) => {
92
- a(this, r).innerHTML = `<ea-icon class="ea-timeline-item__icon-dot" part='icon-dot' icon="${e}"></ea-icon>`;
92
+ a(this, r).innerHTML = `<ea-icon class="ea-timeline-item__icon-dot" part='icon-dot' name="${e}"></ea-icon>`;
93
93
  }
94
94
  },
95
95
  size: {
@@ -58,32 +58,60 @@ class L extends k {
58
58
  }));
59
59
  r(this, u, {
60
60
  hover: () => {
61
- this.addEventListener("mouseover", (t) => {
62
- this.show(), this.addEventListener("mouseout", (i) => {
63
- this.hide();
64
- }, { once: !0 });
65
- }, { signal: o(this, n).signal });
61
+ this.addEventListener(
62
+ "mouseover",
63
+ (t) => {
64
+ this.show(), this.addEventListener(
65
+ "mouseout",
66
+ (i) => {
67
+ this.hide();
68
+ },
69
+ { once: !0 }
70
+ );
71
+ },
72
+ { signal: o(this, n).signal }
73
+ );
66
74
  },
67
75
  click: () => {
68
- this.addEventListener("click", () => {
69
- this.toggle();
70
- }, { signal: o(this, n).signal });
76
+ this.addEventListener(
77
+ "click",
78
+ () => {
79
+ this.toggle();
80
+ },
81
+ { signal: o(this, n).signal }
82
+ );
71
83
  },
72
84
  focus: () => {
73
- this.addEventListener("focus", () => {
74
- this.show(), this.addEventListener("blur", (t) => {
75
- this.hide();
76
- }, { once: !0 });
77
- }, { signal: o(this, n).signal });
85
+ this.addEventListener(
86
+ "focus",
87
+ () => {
88
+ this.show(), this.addEventListener(
89
+ "blur",
90
+ (t) => {
91
+ this.hide();
92
+ },
93
+ { once: !0 }
94
+ );
95
+ },
96
+ { signal: o(this, n).signal }
97
+ );
78
98
  },
79
99
  contextmenu: () => {
80
- this.addEventListener("contextmenu", (t) => {
81
- t.preventDefault();
82
- const i = new AbortController();
83
- this.show(), window.addEventListener("click", (a) => {
84
- this.contains(a.target) || (i.abort(), this.hide());
85
- }, { signal: i.signal });
86
- }, { signal: o(this, n).signal });
100
+ this.addEventListener(
101
+ "contextmenu",
102
+ (t) => {
103
+ t.preventDefault();
104
+ const i = new AbortController();
105
+ this.show(), window.addEventListener(
106
+ "click",
107
+ (a) => {
108
+ this.contains(a.target) || (i.abort(), this.hide());
109
+ },
110
+ { signal: i.signal }
111
+ );
112
+ },
113
+ { signal: o(this, n).signal }
114
+ );
87
115
  }
88
116
  });
89
117
  r(this, g, () => {
@@ -93,13 +121,25 @@ class L extends k {
93
121
  r(this, f, () => {
94
122
  var i, a;
95
123
  if (this.trigger === "customized") return;
96
- const t = Object.keys(o(this, u)).find((v) => this.trigger === v);
124
+ const t = Object.keys(o(this, u)).find(
125
+ (v) => this.trigger === v
126
+ );
97
127
  (a = (i = o(this, u))[t || "hover"]) == null || a.call(i), t || console.warn(`[EaPopper] trigger event ${this.trigger} is not exist`);
98
128
  });
99
- l(this, d, this.shadowRoot.querySelector(".ea-popper")), l(this, c, this.shadowRoot.querySelector(".ea-popper__original")), l(this, p, this.shadowRoot.querySelector(".ea-popper__reference"));
129
+ l(this, d, this.shadowRoot.querySelector(".ea-popper")), l(this, c, this.shadowRoot.querySelector(
130
+ ".ea-popper__original"
131
+ )), l(this, p, this.shadowRoot.querySelector(
132
+ ".ea-popper__reference"
133
+ ));
100
134
  }
101
135
  static get observedAttributes() {
102
- return [...super.observedAttributes, "trigger", "content", "visible", "effect"];
136
+ return [
137
+ ...super.observedAttributes,
138
+ "trigger",
139
+ "content",
140
+ "visible",
141
+ "effect"
142
+ ];
103
143
  }
104
144
  updateContainerClasslist() {
105
145
  return `${super.updateContainerClasslist()} ${this.computedClasslist("ea-tooltip", {
@@ -162,34 +162,34 @@ class nt extends X {
162
162
  */
163
163
  n(this, W, (t, s) => {
164
164
  var K;
165
- const { width: o, height: g, x: v, y: N, top: c, bottom: x, left: h } = t.getBoundingClientRect(), i = this.gap * 2, d = s.clientWidth || s.offsetWidth || 520, b = s.clientHeight || s.offsetHeight || 0, Z = window.innerWidth, V = window.innerHeight, tt = {
165
+ const { width: o, height: g, x: v, y: N, top: d, bottom: x, left: h } = t.getBoundingClientRect(), i = this.gap * 2, c = s.clientWidth || s.offsetWidth || 520, b = s.clientHeight || s.offsetHeight || 0, Z = window.innerWidth, V = window.innerHeight, tt = {
166
166
  top: {
167
- top: c - b - i,
168
- left: h - d / 2 + i
167
+ top: d - b - i,
168
+ left: h - c / 2 + i
169
169
  },
170
170
  "top-start": {
171
- top: c - b - i,
171
+ top: d - b - i,
172
172
  left: h - i
173
173
  },
174
174
  "top-end": {
175
- top: c - b - i,
176
- left: h - d + o + i
175
+ top: d - b - i,
176
+ left: h - c + o + i
177
177
  },
178
178
  right: {
179
- top: c - i - b / 2 + g / 2,
179
+ top: d - i - b / 2 + g / 2,
180
180
  left: h + o + i
181
181
  },
182
182
  "right-start": {
183
- top: c - i,
183
+ top: d - i,
184
184
  left: h + o + i
185
185
  },
186
186
  "right-end": {
187
- top: c - b / 2 - i,
187
+ top: d - b / 2 - i,
188
188
  left: h + o + i
189
189
  },
190
190
  bottom: {
191
191
  top: x + i,
192
- left: h - d / 2 + i
192
+ left: h - c / 2 + i
193
193
  },
194
194
  "bottom-start": {
195
195
  top: x + i,
@@ -197,19 +197,19 @@ class nt extends X {
197
197
  },
198
198
  "bottom-end": {
199
199
  top: x + i,
200
- left: h - d + o + i
200
+ left: h - c + o + i
201
201
  },
202
202
  left: {
203
- top: c - i - b / 2 + g / 2,
204
- left: h - d - i * 2
203
+ top: d - i - b / 2 + g / 2,
204
+ left: h - c - i * 2
205
205
  },
206
206
  "left-start": {
207
- top: c - i,
208
- left: h - d - i * 2
207
+ top: d - i,
208
+ left: h - c - i * 2
209
209
  },
210
210
  "left-end": {
211
- top: c - b / 2 - i,
212
- left: h - d - i * 2
211
+ top: d - b / 2 - i,
212
+ left: h - c - i * 2
213
213
  }
214
214
  }, J = s.placement || ((K = s.getAttribute) == null ? void 0 : K.call(s, "placement")) || this.placement, j = tt[J];
215
215
  if (!j) {
@@ -217,7 +217,7 @@ class nt extends X {
217
217
  return;
218
218
  }
219
219
  let w = Number(j.top), _ = Number(j.left);
220
- w < 0 ? w = Math.max(w, N + i + g) : w + b > V && (w = Math.min(w, N - b - i)), _ < 0 ? _ = Math.max(_, v + o + i) : _ + d > Z && (_ = Math.min(_, v - d - i)), s.style.left = `${_}px`, s.style.top = `${w}px`;
220
+ w < 0 ? w = Math.max(w, N + i + g) : w + b > V && (w = Math.min(w, N - b - i)), _ < 0 ? _ = Math.max(_, v + o + i) : _ + c > Z && (_ = Math.min(_, v - c - i)), s.style.left = `${_}px`, s.style.top = `${w}px`;
221
221
  });
222
222
  /**
223
223
  * 更新 提示容器 的位置
@@ -235,8 +235,8 @@ class nt extends X {
235
235
  at(v) || window.scrollTo({
236
236
  top: v.getBoundingClientRect().top
237
237
  });
238
- const { width: N, height: c, x, y: h, right: i, bottom: d } = v.getBoundingClientRect();
239
- e(this, u).style.width = `${N + this.gap}px`, e(this, u).style.height = `${c + this.gap}px`, e(this, u).style.x = `${x - o}px`, e(this, u).style.y = `${h - o}px`, e(this, E).style.height = `${h - o}px`, e(this, k).style.x = `${i + o}px`, e(this, S).style.y = `${d + o}px`, e(this, A).style.width = `${x - o}px`, e(this, W).call(this, v, s[t]);
238
+ const { width: N, height: d, x, y: h, right: i, bottom: c } = v.getBoundingClientRect();
239
+ e(this, u).style.width = `${N + this.gap}px`, e(this, u).style.height = `${d + this.gap}px`, e(this, u).style.x = `${x - o}px`, e(this, u).style.y = `${h - o}px`, e(this, E).style.height = `${h - o}px`, e(this, k).style.x = `${i + o}px`, e(this, S).style.y = `${c + o}px`, e(this, A).style.width = `${x - o}px`, e(this, W).call(this, v, s[t]);
240
240
  });
241
241
  this.stylesheet = ot, this.$render(), e(this, D).call(this, this["append-to"]);
242
242
  }
@@ -451,7 +451,7 @@ class ht extends X {
451
451
  <div class='ea-tour-step' part='container'>
452
452
  <header class='ea-tour-step__header' part='header'>
453
453
  <slot name='header'></slot>
454
- <ea-icon class='ea-tour-step__close-icon' part='close-icon' icon="icon-cancel"></ea-icon>
454
+ <ea-icon class='ea-tour-step__close-icon' part='close-icon' name="xmark"></ea-icon>
455
455
  </header>
456
456
  <main class='ea-tour-step__content' part='content'>
457
457
  <slot></slot>
@@ -747,7 +747,7 @@ class Lt extends xt {
747
747
  size="small"
748
748
  disabled
749
749
  >
750
- <ea-icon icon="icon-angle-right"></ea-icon>
750
+ <ea-icon name="angle-right"></ea-icon>
751
751
  <span class="${t.e("button-text")}"></span>
752
752
  </ea-button>
753
753
  <ea-button
@@ -757,7 +757,7 @@ class Lt extends xt {
757
757
  size="small"
758
758
  disabled
759
759
  >
760
- <ea-icon icon="icon-angle-left"></ea-icon>
760
+ <ea-icon name="angle-left"></ea-icon>
761
761
  <span class="${t.e("button-text")}"></span>
762
762
  </ea-button>
763
763
  </div>
@@ -290,7 +290,7 @@ class Be extends he {
290
290
  const e = ce("tree-label");
291
291
  this.ns = e, this.shadowRoot.innerHTML = `
292
292
  <div class='${e.b()}' part='container'>
293
- <ea-icon icon="icon-angle-right" class='${e.e("toggle-icon")}' part='toggle'></ea-icon>
293
+ <ea-icon name="angle-right" class='${e.e("toggle-icon")}' part='toggle'></ea-icon>
294
294
  <ea-checkbox class='${e.e("checkbox")}' part='checkbox'></ea-checkbox>
295
295
  <span class='${e.e("text")}' part='text'></span>
296
296
  </div>
@@ -26,7 +26,6 @@ import "./ea-input.js";
26
26
  import "./ea-input-number.js";
27
27
  import "./ea-layout.js";
28
28
  import "./ea-link.js";
29
- import "./ea-loading.js";
30
29
  import "./ea-menu.js";
31
30
  import "./ea-message.js";
32
31
  import "./ea-message-box.js";
@@ -1,4 +1,4 @@
1
- const r = ":host{--ea-card-border-color: var(--color-border, #ebeef5);--ea-card-transition: var(--transition-normal);--ea-card-border-radius: var(--border-radius-sm);--ea-card-box-shadow: var(--box-shadow-md);--ea-card-background-color: var(--color-white);--ea-card-padding: 20px}:host{display:block}::slotted([slot=header]),::slotted([slot=footer]){display:block;padding:var(--ea-card-padding)}::slotted([slot=header]){border-bottom:1px solid var(--ea-card-border-color)}::slotted([slot=footer]){border-top:1px solid var(--ea-card-border-color)}.ea-card{width:100%;height:100%;box-sizing:border-box;border-radius:var(--ea-card-border-radius);border:1px solid var(--ea-card-border-color);background-color:var(--ea-card-background-color);transition:box-shadow var(--ea-card-transition)}.ea-card__content,.ea-card .ea-card__header,.ea-card .ea-card__footer{padding:var(--ea-card-padding)}.ea-card .ea-card__header:has(slot:empty),.ea-card .ea-card__footer:has(slot:empty){padding:0;border:none}.ea-card__header{border-bottom:1px solid var(--ea-card-border-color)}.ea-card__footer{border-top:1px solid var(--ea-card-border-color)}.ea-card--hover-shadow:hover,.ea-card--always-shadow{box-shadow:var(--ea-card-box-shadow)}.ea-card--never-shadow{box-shadow:none}";
1
+ const a = ":host{--ea-card-border-color: var(--color-border, #ebeef5);--ea-card-transition: var(--transition-normal);--ea-card-border-radius: var(--border-radius-sm);--ea-card-box-shadow: var(--box-shadow-md);--ea-card-background-color: var(--color-white);--ea-card-padding: 20px}:host{display:block}.ea-card{width:100%;height:100%;box-sizing:border-box;border-radius:var(--ea-card-border-radius);border:1px solid var(--ea-card-border-color);background-color:var(--ea-card-background-color);transition:box-shadow var(--ea-card-transition)}.ea-card__content{padding:var(--ea-card-padding)}.ea-card__header{padding:var(--ea-card-padding);border-bottom:1px solid var(--ea-card-border-color)}.ea-card__footer{padding:var(--ea-card-padding);border-top:1px solid var(--ea-card-border-color)}.ea-card--hover-shadow:hover,.ea-card--always-shadow{box-shadow:var(--ea-card-box-shadow)}.ea-card--never-shadow{box-shadow:none}.ea-card.is-header-empty .ea-card__header,.ea-card.is-footer-empty .ea-card__footer{display:none;padding:0}";
2
2
  export {
3
- r as s
3
+ a as s
4
4
  };
@@ -1,4 +1,4 @@
1
- const e = ":host{display:block;--ea-container-direction: row}::slotted(ea-main),::slotted(ea-scrollbar){flex:1;overflow:auto}::slotted(ea-container){width:100%;height:100%}::slotted(ea-header),::slotted(ea-main){width:100%}.ea-container{box-sizing:border-box;display:flex;flex-direction:var(--ea-container-direction);width:100%;height:100%}.ea-container--vertical{--ea-container-direction: column}";
1
+ const e = ":host{display:block}::slotted(ea-main),::slotted(ea-scrollbar){flex:1;overflow:auto}::slotted(ea-container){width:100%;height:100%}::slotted(ea-header),::slotted(ea-main){width:100%}.ea-container{box-sizing:border-box;display:flex;flex-direction:row;width:100%;height:100%}.ea-container--vertical{flex-direction:column}";
2
2
  export {
3
3
  e as s
4
4
  };
@@ -1,4 +1,4 @@
1
- const e = ":host{--ea-footer-padding: 0 20px;--ea-footer-height: 60px}.ea-footer{box-sizing:border-box;padding:var(--ea-footer-padding);height:var(--ea-footer-height);overflow:hidden}";
1
+ const e = ":host{--ea-footer-padding: 0 20px;--ea-footer-height: 60px}.ea-footer{box-sizing:border-box;padding:var(--ea-footer-padding);height:var(--ea-footer-height);line-height:var(--ea-footer-height);overflow:hidden}";
2
2
  export {
3
3
  e as s
4
4
  };
@@ -1,4 +1,4 @@
1
- const r = ".ea-progress.is-dashboard,.ea-progress.is-circle{width:var(--ea-progress-size);height:var(--ea-progress-size)}.ea-progress.is-dashboard .ea-progress__path,.ea-progress.is-circle .ea-progress__path,.ea-progress.is-dashboard .ea-progress__track,.ea-progress.is-circle .ea-progress__track{stroke-width:var(--ea-progress-stroke-width);stroke-linecap:round;transform-origin:center}.ea-progress.is-dashboard .ea-progress__path,.ea-progress.is-circle .ea-progress__path{transition:stroke-dashoffset .3s ease-in-out,stroke .3s ease-in-out;animation:none}.ea-progress.is-dashboard .ea-progress__percentage,.ea-progress.is-circle .ea-progress__percentage{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;min-width:auto;width:auto;height:auto;font-size:16px}.ea-progress.is-dashboard .ea-progress__status,.ea-progress.is-circle .ea-progress__status{font-size:16px}:host{--ea-progress-percentage: 0;--ea-progress-stroke-width: 8px;--ea-progress-default-color: var(--blue-500);--ea-progress-success-color: var(--green-500);--ea-progress-exception-color: var(--red-500);--ea-progress-warning-color: var(--yellow-500);--ea-progress-percentage-color: var(--grey-900);--ea-progress-track-color: var(--grey-200);--ea-progress-path-color: var(--ea-progress-default-color);--ea-progress-size: 126px;--ea-progress-animation-duration: 3s}:host([type=circle]){--ea-progress-stroke-width: 4px}:host{display:block}@keyframes indeterminate{0%{transform:translate(-100%)}to{transform:translate(200%)}}@keyframes striped-flow{0%{background-position:0 0}to{background-position:100% 0}}.ea-progress{position:relative;display:flex;align-items:center;width:100%}.ea-progress .ea-progress__track,.ea-progress .ea-progress__path{height:var(--ea-progress-stroke-width);line-height:1;border-radius:999px;transition:width .3s ease-in-out}.ea-progress__track{width:100%;background-color:var(--ea-progress-track-color);overflow:hidden}.ea-progress__path{position:relative;box-sizing:border-box;font-size:.8rem;text-align:right;width:var(--ea-progress-percentage);background-color:var(--ea-progress-path-color);transition:width .3s}.ea-progress__percentage{display:none;min-width:50px;margin-left:.25rem;font-size:.8rem;color:var(--ea-progress-percentage-color)}.ea-progress--default{--ea-progress-percentage-color: var(--ea-progress-default-color);--ea-progress-path-color: var(--ea-progress-default-color)}.ea-progress--success{--ea-progress-percentage-color: var(--ea-progress-success-color);--ea-progress-path-color: var(--ea-progress-success-color)}.ea-progress--exception{--ea-progress-percentage-color: var(--ea-progress-exception-color);--ea-progress-path-color: var(--ea-progress-exception-color)}.ea-progress--warning{--ea-progress-percentage-color: var(--ea-progress-warning-color);--ea-progress-path-color: var(--ea-progress-warning-color)}.ea-progress--text-inside .ea-progress__percentage{position:absolute;right:0;top:50%;transform:translateY(-50%);margin-right:.5rem;color:#fff}.ea-progress--striped .ea-progress__path{background-image:linear-gradient(60deg,transparent 40%,rgba(0,0,0,.15) 40%,rgba(0,0,0,.15) 60%,transparent 60%);background-size:var(--ea-progress-stroke-width)}.ea-progress.is-striped-flow .ea-progress__path{animation:striped-flow var(--ea-progress-animation-duration) infinite linear}.ea-progress.is-indeterminate .ea-progress__path{animation:indeterminate var(--ea-progress-animation-duration) infinite ease-in-out}.ea-progress.is-striped-flow.is-indeterminate .ea-progress__path,.ea-progress.is-indeterminate.is-striped-flow .ea-progress__path{animation:indeterminate var(--ea-progress-animation-duration) infinite ease-in-out,striped-flow var(--ea-progress-animation-duration) infinite linear}.ea-progress.is-show-text .ea-progress__percentage{display:flex}.ea-progress.is-circle .ea-progress__path,.ea-progress.is-circle .ea-progress__track{r:calc(49px - var(--ea-progress-stroke-width) / 2);transform:rotate(-90deg)}.ea-progress.is-circle .ea-progress__track{stroke:var(--ea-progress-track-color)}.ea-progress.is-circle .ea-progress__path{stroke:var(--ea-progress-path-color);stroke-dashoffset:var(--ea-progress-percentage)}.ea-progress.is-dashboard .ea-progress__path,.ea-progress.is-dashboard .ea-progress__track{r:calc(49px - var(--ea-progress-stroke-width) / 2);transform:rotate(135deg)}.ea-progress.is-dashboard .ea-progress__track{stroke:var(--ea-progress-track-color);stroke-dasharray:157px}.ea-progress.is-dashboard .ea-progress__path{stroke:var(--ea-progress-path-color);stroke-dasharray:314px;stroke-dashoffset:var(--ea-progress-percentage)}.ea-progress.is-dashboard .mask{transform-origin:center;height:100%;width:100%;transform:rotate(-135deg) translateY(-30%)}";
1
+ const r = ".ea-progress.is-dashboard,.ea-progress.is-circle{width:var(--ea-progress-size);height:var(--ea-progress-size)}.ea-progress.is-dashboard .ea-progress__path,.ea-progress.is-circle .ea-progress__path,.ea-progress.is-dashboard .ea-progress__track,.ea-progress.is-circle .ea-progress__track{stroke-width:var(--ea-progress-stroke-width);stroke-linecap:round;transform-origin:center}.ea-progress.is-dashboard .ea-progress__path,.ea-progress.is-circle .ea-progress__path{transition:stroke-dashoffset .3s ease-in-out,stroke .3s ease-in-out;animation:none}.ea-progress.is-dashboard .ea-progress__percentage,.ea-progress.is-circle .ea-progress__percentage{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;min-width:auto;width:auto;height:auto;font-size:16px}.ea-progress.is-dashboard .ea-progress__status,.ea-progress.is-circle .ea-progress__status{font-size:16px}:host{--ea-progress-percentage: 0;--ea-progress-stroke-width: 8px;--ea-progress-default-color: var(--blue-500);--ea-progress-success-color: var(--green-500);--ea-progress-exception-color: var(--red-500);--ea-progress-warning-color: var(--yellow-500);--ea-progress-percentage-color: var(--grey-900);--ea-progress-track-color: var(--grey-200);--ea-progress-path-color: var(--ea-progress-default-color);--ea-progress-size: 126px;--ea-progress-animation-duration: 3s}:host([type=circle]){--ea-progress-stroke-width: 4px}:host{display:block}@keyframes indeterminate{0%{transform:translate(-100%)}to{transform:translate(200%)}}@keyframes striped-flow{0%{background-position:0 0}to{background-position:100% 0}}.ea-progress{position:relative;display:flex;align-items:center;width:100%}.ea-progress .ea-progress__track,.ea-progress .ea-progress__path{height:var(--ea-progress-stroke-width);line-height:1;border-radius:999px;transition:width .3s ease-in-out}.ea-progress__track{width:100%;background-color:var(--ea-progress-track-color);overflow:hidden}.ea-progress__path{position:relative;box-sizing:border-box;font-size:.8rem;text-align:right;width:var(--ea-progress-percentage);background-color:var(--ea-progress-path-color);transition:width .3s}.ea-progress__percentage{display:none;min-width:50px;margin-left:.25rem;font-size:.8rem;color:var(--ea-progress-percentage-color)}.ea-progress--default{--ea-progress-percentage-color: var(--ea-progress-default-color);--ea-progress-path-color: var(--ea-progress-default-color)}.ea-progress--success{--ea-progress-percentage-color: var(--ea-progress-success-color);--ea-progress-path-color: var(--ea-progress-success-color)}.ea-progress--exception{--ea-progress-percentage-color: var(--ea-progress-exception-color);--ea-progress-path-color: var(--ea-progress-exception-color)}.ea-progress--warning{--ea-progress-percentage-color: var(--ea-progress-warning-color);--ea-progress-path-color: var(--ea-progress-warning-color)}.ea-progress--text-inside .ea-progress__percentage{position:absolute;right:0;top:50%;transform:translateY(-50%);margin-right:.5rem;color:#fff}.ea-progress--striped .ea-progress__path{background-image:linear-gradient(60deg,transparent 40%,rgba(0,0,0,.15) 40%,rgba(0,0,0,.15) 60%,transparent 60%);background-size:var(--ea-progress-stroke-width)}.ea-progress.is-striped-flow .ea-progress__path{animation:striped-flow var(--ea-progress-animation-duration) infinite linear}.ea-progress.is-indeterminate .ea-progress__path{animation:indeterminate var(--ea-progress-animation-duration) infinite ease-in-out}.ea-progress.is-striped-flow.is-indeterminate .ea-progress__path,.ea-progress.is-indeterminate.is-striped-flow .ea-progress__path{animation:indeterminate var(--ea-progress-animation-duration) infinite ease-in-out,striped-flow var(--ea-progress-animation-duration) infinite linear}.ea-progress.is-show-text .ea-progress__percentage{display:flex;flex-direction:column}.ea-progress.is-circle .ea-progress__path,.ea-progress.is-circle .ea-progress__track{r:calc(49px - var(--ea-progress-stroke-width) / 2);transform:rotate(-90deg)}.ea-progress.is-circle .ea-progress__track{stroke:var(--ea-progress-track-color)}.ea-progress.is-circle .ea-progress__path{stroke:var(--ea-progress-path-color);stroke-dashoffset:var(--ea-progress-percentage)}.ea-progress.is-dashboard .ea-progress__path,.ea-progress.is-dashboard .ea-progress__track{r:calc(49px - var(--ea-progress-stroke-width) / 2);transform:rotate(135deg)}.ea-progress.is-dashboard .ea-progress__track{stroke:var(--ea-progress-track-color);stroke-dasharray:157px}.ea-progress.is-dashboard .ea-progress__path{stroke:var(--ea-progress-path-color);stroke-dasharray:314px;stroke-dashoffset:var(--ea-progress-percentage)}.ea-progress.is-dashboard .mask{transform-origin:center;height:100%;width:100%;transform:rotate(-135deg) translateY(-30%)}";
2
2
  export {
3
3
  r as s
4
4
  };
@@ -1,4 +1,4 @@
1
- const e = ":host{--ea-step-icon-border-radius: var(--border-radius-circle);--ea-step-icon-wrapper-size: 24px;--ea-step-icon-size: var(--font-size-md);--ea-step-arrow-icon-size: 24px;--ea-step-tail-size: 2px;--ea-step-process-color: var(--grey-900);--ea-step-wait-color: var(--grey-500);--ea-step-finish-color: var(--blue-500);--ea-step-success-color: var(--green-500);--ea-step-error-color: var(--red-500);--ea-step-tail-color: var(--grey-500);--ea-step-icon-bg-color: var(--color-white);--ea-step-icon-font-weight: var(--font-weight-bold)}.ea-step__head{position:relative;display:flex;align-items:center}.ea-step__icon-wrapper{position:relative;background-color:var(--ea-step-icon-bg-color);z-index:1}.ea-step__icon{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:var(--ea-step-icon-border-radius);border:2px solid;background-color:var(--ea-step-icon-bg-color);width:var(--ea-step-icon-wrapper-size);height:var(--ea-step-icon-wrapper-size);font-size:var(--ea-step-icon-size);font-weight:var(--ea-step-icon-font-weight);-webkit-user-select:none;user-select:none;z-index:1}.ea-step__tail{position:relative;flex:1 0 var(--ea-step-tail-spacing);width:var(--ea-step-tail-spacing);height:var(--ea-step-tail-size);background-color:var(--ea-step-tail-color);z-index:0}.ea-step__simple-arrow{display:none}.ea-step.is-process{color:var(--grey-900)}.ea-step.is-process .ea-step__icon,.ea-step.is-process .ea-step__tail{border-color:var(--grey-900)}.ea-step.is-wait{color:var(--grey-500)}.ea-step.is-wait .ea-step__icon,.ea-step.is-wait .ea-step__tail{border-color:var(--grey-500)}.ea-step.is-finish{color:var(--blue-500)}.ea-step.is-finish .ea-step__icon,.ea-step.is-finish .ea-step__tail{border-color:var(--blue-500)}.ea-step.is-success{color:var(--green-500)}.ea-step.is-success .ea-step__icon,.ea-step.is-success .ea-step__tail{border-color:var(--green-500)}.ea-step.is-error{color:var(--red-500)}.ea-step.is-error .ea-step__icon,.ea-step.is-error .ea-step__tail{border-color:var(--red-500)}.ea-step.is-icon .ea-step__icon{border-color:transparent}.ea-step:not(.is-simple).is-align-center{text-align:center}.ea-step:not(.is-simple).is-align-center .ea-step__tail{flex:1 0 100%;margin-left:calc(0px - var(--ea-step-icon-wrapper-size))}.ea-step:not(.is-simple).is-align-center .ea-step__icon-wrapper{left:50%;transform:translate(-50%)}.ea-step:not(.is-simple).is-align-center.is-first .ea-step__icon-wrapper{flex:1 0 calc(50% + var(--ea-step-icon-wrapper-size) / 2);position:relative;inset:unset;text-align:end;transform:unset}.ea-step:not(.is-simple).is-align-center.is-first .ea-step__tail{flex:1 0 50%}.ea-step:not(.is-simple).is-align-center.is-last .ea-step__head{flex-direction:row-reverse}.ea-step:not(.is-simple).is-align-center.is-last .ea-step__icon-wrapper{flex:1 0 calc(50% + var(--ea-step-icon-size) / 2);position:relative;inset:unset;text-align:start;transform:unset}.ea-step:not(.is-simple).is-align-center.is-last .ea-step__tail{flex:1 0 50%;display:inline-block}.ea-step.is-simple{display:flex;align-items:center;justify-content:center}.ea-step.is-simple .ea-step__tail{display:none}.ea-step.is-simple .ea-step__icon-wrapper{background-color:transparent}.ea-step.is-simple .ea-step__icon{border-color:transparent;background-color:transparent}.ea-step.is-simple .ea-step__simple-arrow{display:inline-block;flex:1 0 auto;text-align:center}.ea-step.is-simple .ea-step__simple-arrow ::slotted(ea-icon){font-size:var(--ea-step-arrow-icon-size)}.ea-step.is-last .ea-step__tail,.ea-step.is-last .ea-step__simple-arrow{display:none}";
1
+ const e = ":host{--ea-step-icon-border-radius: var(--border-radius-circle);--ea-step-icon-wrapper-size: 24px;--ea-step-icon-size: var(--font-size-md);--ea-step-arrow-icon-size: 24px;--ea-step-tail-size: 2px;--ea-step-process-color: var(--grey-900);--ea-step-wait-color: var(--grey-500);--ea-step-finish-color: var(--blue-500);--ea-step-success-color: var(--green-500);--ea-step-error-color: var(--red-500);--ea-step-tail-color: var(--grey-500);--ea-step-icon-bg-color: var(--color-white);--ea-step-icon-font-weight: var(--font-weight-bold)}.ea-step__head{position:relative;display:flex;align-items:center}.ea-step__icon-wrapper{position:relative;z-index:1}.ea-step__icon{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:var(--ea-step-icon-border-radius);border:2px solid;background-color:var(--ea-step-icon-bg-color);width:var(--ea-step-icon-wrapper-size);height:var(--ea-step-icon-wrapper-size);font-size:var(--ea-step-icon-size);font-weight:var(--ea-step-icon-font-weight);-webkit-user-select:none;user-select:none;z-index:1}.ea-step__tail{position:relative;flex:1 0 var(--ea-step-tail-spacing);width:var(--ea-step-tail-spacing);height:var(--ea-step-tail-size);background-color:var(--ea-step-tail-color);z-index:0}.ea-step__simple-arrow{display:none}.ea-step.is-process{color:var(--grey-900)}.ea-step.is-process .ea-step__icon,.ea-step.is-process .ea-step__tail{border-color:var(--grey-900)}.ea-step.is-wait{color:var(--grey-500)}.ea-step.is-wait .ea-step__icon,.ea-step.is-wait .ea-step__tail{border-color:var(--grey-500)}.ea-step.is-finish{color:var(--blue-500)}.ea-step.is-finish .ea-step__icon,.ea-step.is-finish .ea-step__tail{border-color:var(--blue-500)}.ea-step.is-success{color:var(--green-500)}.ea-step.is-success .ea-step__icon,.ea-step.is-success .ea-step__tail{border-color:var(--green-500)}.ea-step.is-error{color:var(--red-500)}.ea-step.is-error .ea-step__icon,.ea-step.is-error .ea-step__tail{border-color:var(--red-500)}.ea-step.is-icon .ea-step__icon{border-color:transparent}.ea-step:not(.is-simple).is-align-center{text-align:center}.ea-step:not(.is-simple).is-align-center .ea-step__tail{flex:1 0 100%;margin-left:calc(0px - var(--ea-step-icon-wrapper-size))}.ea-step:not(.is-simple).is-align-center .ea-step__icon-wrapper{left:50%;transform:translate(-50%)}.ea-step:not(.is-simple).is-align-center.is-first .ea-step__icon-wrapper{flex:1 0 calc(50% + var(--ea-step-icon-wrapper-size) / 2);position:relative;inset:unset;text-align:end;transform:unset}.ea-step:not(.is-simple).is-align-center.is-first .ea-step__tail{flex:1 0 50%}.ea-step:not(.is-simple).is-align-center.is-last .ea-step__head{flex-direction:row-reverse}.ea-step:not(.is-simple).is-align-center.is-last .ea-step__icon-wrapper{flex:1 0 calc(50% + var(--ea-step-icon-size) / 2);position:relative;inset:unset;text-align:start;transform:unset}.ea-step:not(.is-simple).is-align-center.is-last .ea-step__tail{flex:1 0 50%;display:inline-block}.ea-step.is-simple{display:flex;align-items:center;justify-content:center}.ea-step.is-simple .ea-step__tail{display:none}.ea-step.is-simple .ea-step__icon-wrapper{background-color:transparent}.ea-step.is-simple .ea-step__icon{border-color:transparent;background-color:transparent}.ea-step.is-simple .ea-step__simple-arrow{display:inline-block;flex:1 0 auto;text-align:center}.ea-step.is-simple .ea-step__simple-arrow ::slotted(ea-icon){font-size:var(--ea-step-arrow-icon-size)}.ea-step.is-last .ea-step__tail,.ea-step.is-last .ea-step__simple-arrow{display:none}";
2
2
  export {
3
3
  e as s
4
4
  };
@@ -1,4 +1,4 @@
1
- const e = ':host{--ea-switch-space: 0 var(--spacing-md);--ea-switch-large-width: 50px;--ea-switch-default-width: 40px;--ea-switch-small-width: 30px;--ea-switch-large-height: 24px;--ea-switch-default-height: 20px;--ea-switch-small-height: 16px;--ea-switch-indicator-large-size: 20px;--ea-switch-indicator-default-size: 16px;--ea-switch-indicator-small-size: 12px;--ea-switch-large-font-size: 18px;--ea-switch-default-font-size: 16px;--ea-switch-small-font-size: 14px;--ea-switch-indicator-color: var(--color-white);--ea-switch-indicator-start: 2px;--ea-switch-indicator-end: calc(100% - var(--ea-switch-indicator-default-size) - 2px);--ea-switch-inactive-bg-color: var(--grey-300);--ea-switch-inactive-text-color: var(--grey-900);--ea-switch-active-bg-color: var(--blue-500);--ea-switch-active-text-color: var(--blue-500);--ea-switch-disabled-text-color: var(--grey-300);--ea-switch-disabled-bg-color: var(--grey-200);--ea-switch-disabled-checked-bg-color: var(--blue-300);--ea-switch-disabled-checked-text-color: var(--blue-300);--ea-switch-border-radius: var(--border-radius-round)}:host(:invalid) .ea-switch__form-label{color:var(--red-500)}:host(:invalid) .ea-switch__inner{box-shadow:0 0 0 2px var(--red-500)}:host([inactive-text]) .ea-switch__label{color:var(--ea-switch-active-text-color)}:host([inactive-text]) .ea-switch__label.label-right{color:var(--ea-switch-inactive-text-color)}:host([inactive-text]) .ea-switch.is-checked .label-left{color:var(--ea-switch-inactive-text-color)}:host([inactive-text]) .ea-switch.is-checked .label-right{color:var(--ea-switch-active-text-color)}:host([inactive-text]) .ea-switch.is-disabled .label-left{color:var(--ea-switch-disabled-checked-text-color)}:host([inactive-text]) .ea-switch.is-disabled .label-right{color:var(--ea-switch-disabled-text-color)}:host([disabled]){cursor:not-allowed}:host{display:inline-block}.ea-switch-wrapper{display:inline-flex;align-items:center;flex-wrap:nowrap;flex-direction:column}.ea-switch{display:flex;align-items:center;cursor:pointer;color:var(--ea-switch-inactive-text-color)}.ea-switch__form-label{display:block;padding-bottom:var(--spacing-md);font-size:var(--font-size-md);color:var(--grey-700)}.ea-switch__form-label:empty{display:none}.ea-switch__original{display:none}.ea-switch__inner{position:relative;margin:var(--ea-switch-space);height:var(--ea-switch-default-height);line-height:var(--ea-switch-default-height);background-color:var(--ea-switch-inactive-bg-color);border-radius:var(--ea-switch-border-radius);transition:background-color var(--transition-normal)}.ea-switch__inner:after{content:"";display:block;position:absolute;left:var(--ea-switch-indicator-start);top:50%;transform-origin:center center;transform:translateY(-50%);width:var(--ea-switch-indicator-default-size);height:var(--ea-switch-indicator-default-size);border-radius:var(--border-radius-circle);background-color:var(--ea-switch-indicator-color);z-index:1;transition:left var(--transition-normal),transform var(--transition-normal)}.ea-switch__label.label-left{color:var(--ea-switch-active-text-color)}.ea-switch__label{transition:color var(--transition-normal)}.ea-switch--small{font-size:var(--ea-switch-small-font-size)}.ea-switch--small .ea-switch__inner{flex:1 0 var(--ea-switch-small-width);width:var(--ea-switch-small-width);height:var(--ea-switch-small-height);min-width:calc(var(--ea-switch-small-width))}.ea-switch--small .ea-switch__inner:after{width:var(--ea-switch-indicator-small-size);height:var(--ea-switch-indicator-small-size)}.ea-switch--small.is-checked .ea-switch__inner:after{color:var(--ea-switch-active-bg-color);left:calc(100% - var(--ea-switch-indicator-small-size) - 2px)}.ea-switch--default{font-size:var(--ea-switch-default-font-size)}.ea-switch--default .ea-switch__inner{flex:1 0 var(--ea-switch-default-width);width:var(--ea-switch-default-width);height:var(--ea-switch-default-height);min-width:calc(var(--ea-switch-default-width))}.ea-switch--default .ea-switch__inner:after{width:var(--ea-switch-indicator-default-size);height:var(--ea-switch-indicator-default-size)}.ea-switch--default.is-checked .ea-switch__inner:after{color:var(--ea-switch-active-bg-color);left:calc(100% - var(--ea-switch-indicator-default-size) - 2px)}.ea-switch--large{font-size:var(--ea-switch-large-font-size)}.ea-switch--large .ea-switch__inner{flex:1 0 var(--ea-switch-large-width);width:var(--ea-switch-large-width);height:var(--ea-switch-large-height);min-width:calc(var(--ea-switch-large-width))}.ea-switch--large .ea-switch__inner:after{width:var(--ea-switch-indicator-large-size);height:var(--ea-switch-indicator-large-size)}.ea-switch--large.is-checked .ea-switch__inner:after{color:var(--ea-switch-active-bg-color);left:calc(100% - var(--ea-switch-indicator-large-size) - 2px)}.ea-switch.is-checked .ea-switch__inner{background-color:var(--ea-switch-active-bg-color)}.ea-switch.is-checked .label-right{color:var(--ea-switch-active-text-color)}.ea-switch.is-checked .label-left{color:var(--ea-switch-inactive-text-color)}.ea-switch.is-disabled{pointer-events:none;color:var(--ea-switch-disabled-text-color)}.ea-switch.is-disabled .ea-switch__inner{background-color:var(--ea-switch-disabled-bg-color)}.ea-switch.is-disabled.is-checked .ea-switch__inner{background-color:var(--ea-switch-disabled-checked-bg-color)}.ea-switch.is-disabled.is-checked .label-left{color:var(--ea-switch-disabled-text-color)}.ea-switch.is-disabled.is-checked .label-right{color:var(--ea-switch-disabled-checked-text-color)}';
1
+ const e = ':host{--ea-switch-space: 0 var(--spacing-md);--ea-switch-large-width: 50px;--ea-switch-default-width: 40px;--ea-switch-small-width: 30px;--ea-switch-large-height: 24px;--ea-switch-default-height: 20px;--ea-switch-small-height: 16px;--ea-switch-indicator-large-size: 20px;--ea-switch-indicator-default-size: 16px;--ea-switch-indicator-small-size: 12px;--ea-switch-large-font-size: 18px;--ea-switch-default-font-size: 16px;--ea-switch-small-font-size: 14px;--ea-switch-indicator-color: var(--color-white);--ea-switch-indicator-start: 2px;--ea-switch-indicator-end: calc( 100% - var(--ea-switch-indicator-default-size) - 2px );--ea-switch-inactive-bg-color: var(--grey-300);--ea-switch-inactive-text-color: var(--grey-900);--ea-switch-active-bg-color: var(--blue-500);--ea-switch-active-text-color: var(--blue-500);--ea-switch-disabled-text-color: var(--grey-300);--ea-switch-disabled-bg-color: var(--grey-200);--ea-switch-disabled-checked-bg-color: var(--blue-300);--ea-switch-disabled-checked-text-color: var(--blue-300);--ea-switch-border-radius: var(--border-radius-round)}:host(:invalid) .ea-switch__form-label{color:var(--red-500)}:host(:invalid) .ea-switch__inner{box-shadow:0 0 0 2px var(--red-500)}:host([inactive-text]) .ea-switch__label{color:var(--ea-switch-active-text-color)}:host([inactive-text]) .ea-switch__label.label-right{color:var(--ea-switch-inactive-text-color)}:host([inactive-text]) .ea-switch.is-checked .label-left{color:var(--ea-switch-inactive-text-color)}:host([inactive-text]) .ea-switch.is-checked .label-right{color:var(--ea-switch-active-text-color)}:host([inactive-text]) .ea-switch.is-disabled .label-left{color:var(--ea-switch-disabled-checked-text-color)}:host([inactive-text]) .ea-switch.is-disabled .label-right{color:var(--ea-switch-disabled-text-color)}:host([disabled]){cursor:not-allowed}:host{display:inline-block}.ea-switch-wrapper{display:inline-flex;align-items:center;flex-wrap:nowrap;flex-direction:column}.ea-switch{display:flex;align-items:center;cursor:pointer;color:var(--ea-switch-inactive-text-color)}.ea-switch__form-label{display:block;padding-bottom:var(--spacing-md);font-size:var(--font-size-md);color:var(--grey-700)}.ea-switch__form-label:empty{display:none}.ea-switch__original{display:none}.ea-switch__inner{position:relative;margin:var(--ea-switch-space);height:var(--ea-switch-default-height);line-height:var(--ea-switch-default-height);background-color:var(--ea-switch-inactive-bg-color);border-radius:var(--ea-switch-border-radius);transition:background-color var(--transition-normal)}.ea-switch__inner:after{content:"";display:block;position:absolute;left:var(--ea-switch-indicator-start);top:50%;transform-origin:center center;transform:translateY(-50%);width:var(--ea-switch-indicator-default-size);height:var(--ea-switch-indicator-default-size);border-radius:var(--border-radius-circle);background-color:var(--ea-switch-indicator-color);z-index:1;transition:left var(--transition-normal),transform var(--transition-normal)}.ea-switch__label.label-left{color:var(--ea-switch-active-text-color)}.ea-switch__label{transition:color var(--transition-normal)}.ea-switch--small{font-size:var(--ea-switch-small-font-size)}.ea-switch--small .ea-switch__inner{flex:1 0 var(--ea-switch-small-width);width:var(--ea-switch-small-width);height:var(--ea-switch-small-height);min-width:calc(var(--ea-switch-small-width))}.ea-switch--small .ea-switch__inner:after{width:var(--ea-switch-indicator-small-size);height:var(--ea-switch-indicator-small-size)}.ea-switch--small.is-checked .ea-switch__inner:after{color:var(--ea-switch-active-bg-color);left:calc(100% - var(--ea-switch-indicator-small-size) - 2px)}.ea-switch--default{font-size:var(--ea-switch-default-font-size)}.ea-switch--default .ea-switch__inner{flex:1 0 var(--ea-switch-default-width);width:var(--ea-switch-default-width);height:var(--ea-switch-default-height);min-width:calc(var(--ea-switch-default-width))}.ea-switch--default .ea-switch__inner:after{width:var(--ea-switch-indicator-default-size);height:var(--ea-switch-indicator-default-size)}.ea-switch--default.is-checked .ea-switch__inner:after{color:var(--ea-switch-active-bg-color);left:calc(100% - var(--ea-switch-indicator-default-size) - 2px)}.ea-switch--large{font-size:var(--ea-switch-large-font-size)}.ea-switch--large .ea-switch__inner{flex:1 0 var(--ea-switch-large-width);width:var(--ea-switch-large-width);height:var(--ea-switch-large-height);min-width:calc(var(--ea-switch-large-width))}.ea-switch--large .ea-switch__inner:after{width:var(--ea-switch-indicator-large-size);height:var(--ea-switch-indicator-large-size)}.ea-switch--large.is-checked .ea-switch__inner:after{color:var(--ea-switch-active-bg-color);left:calc(100% - var(--ea-switch-indicator-large-size) - 2px)}.ea-switch.is-checked .ea-switch__inner{background-color:var(--ea-switch-active-bg-color)}.ea-switch.is-checked .label-right{color:var(--ea-switch-active-text-color)}.ea-switch.is-checked .label-left{color:var(--ea-switch-inactive-text-color)}.ea-switch.is-disabled{pointer-events:none;color:var(--ea-switch-disabled-text-color)}.ea-switch.is-disabled .ea-switch__inner{background-color:var(--ea-switch-disabled-bg-color)}.ea-switch.is-disabled.is-checked .ea-switch__inner{background-color:var(--ea-switch-disabled-checked-bg-color)}.ea-switch.is-disabled.is-checked .label-left{color:var(--ea-switch-disabled-text-color)}.ea-switch.is-disabled.is-checked .label-right{color:var(--ea-switch-disabled-checked-text-color)}';
2
2
  export {
3
3
  e as s
4
4
  };