easy-component-ui 3.0.10 → 3.0.12

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 (41) hide show
  1. package/dist/components/Base.js +187 -186
  2. package/dist/components/ea-breadcrumb.js +33 -33
  3. package/dist/components/ea-carousel.js +71 -70
  4. package/dist/components/ea-collapse.js +100 -80
  5. package/dist/components/ea-color-picker.js +199 -196
  6. package/dist/components/ea-countdown.js +77 -56
  7. package/dist/components/ea-descriptions.js +133 -70
  8. package/dist/components/ea-drawer.js +87 -70
  9. package/dist/components/ea-empty.js +31 -23
  10. package/dist/components/ea-menu.js +68 -52
  11. package/dist/components/ea-overlay.js +35 -29
  12. package/dist/components/ea-pagination.js +1 -0
  13. package/dist/components/ea-popconfirm.js +132 -77
  14. package/dist/components/ea-popper.js +9 -9
  15. package/dist/components/ea-progress.js +81 -64
  16. package/dist/components/ea-result.js +22 -22
  17. package/dist/components/ea-select.js +110 -99
  18. package/dist/components/ea-skeleton.js +99 -82
  19. package/dist/components/ea-statistic.js +72 -4
  20. package/dist/components/ea-steps.js +104 -70
  21. package/dist/components/ea-table.js +514 -397
  22. package/dist/components/ea-tag.js +37 -43
  23. package/dist/components/ea-timeline.js +10 -11
  24. package/dist/components/index.js +1 -1
  25. package/dist/css/ea-card.style.js +1 -1
  26. package/dist/css/ea-carousel.style.js +2 -2
  27. package/dist/css/ea-collapse-item.style.js +1 -1
  28. package/dist/css/ea-color-picker-panel.style.js +1 -1
  29. package/dist/css/ea-descriptions-item.style.js +2 -2
  30. package/dist/css/ea-descriptions.style.js +1 -1
  31. package/dist/css/ea-empty.style.js +1 -1
  32. package/dist/css/ea-progress.style.js +1 -1
  33. package/dist/css/ea-skeleton.style.js +1 -1
  34. package/dist/css/ea-step.style.js +1 -1
  35. package/dist/css/ea-table-column.style.js +4 -0
  36. package/dist/css/ea-table.style.js +1 -1
  37. package/dist/css/ea-timeline-item.style.js +1 -1
  38. package/dist/utils/Variables.js +5 -12
  39. package/dist/utils/parseTime.js +73 -0
  40. package/package.json +1 -1
  41. package/dist/components/ea-statistic2.js +0 -83
@@ -1,83 +0,0 @@
1
- var m = Object.defineProperty;
2
- var p = (t) => {
3
- throw TypeError(t);
4
- };
5
- var _ = (t, e, s) => e in t ? m(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
- var d = (t, e, s) => _(t, typeof e != "symbol" ? e + "" : e, s), f = (t, e, s) => e.has(t) || p("Cannot " + s);
7
- var u = (t, e, s) => (f(t, e, "read from private field"), s ? s.call(t) : e.get(t)), a = (t, e, s) => e.has(t) ? p("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), i = (t, e, s, h) => (f(t, e, "write to private field"), h ? h.call(t, s) : e.set(t, s), s);
8
- import { B as b } from "./Base.js";
9
- import { s as x } from "../css/ea-statistic.style.js";
10
- class E extends Event {
11
- constructor(e) {
12
- super("ea-finish", {
13
- bubbles: !0,
14
- composed: !0
15
- }), this.detail = e;
16
- }
17
- }
18
- var n, o, r, c, l;
19
- class w extends b {
20
- constructor() {
21
- super();
22
- /** @type {HTMLElement} */
23
- a(this, n);
24
- /** @type {HTMLElement} */
25
- a(this, o);
26
- /** @type {HTMLElement} */
27
- a(this, r);
28
- /** @type {HTMLElement} */
29
- a(this, c);
30
- /** @type {HTMLElement} */
31
- a(this, l);
32
- d(this, "state", this.properties({
33
- title: {
34
- type: String,
35
- default: "",
36
- observer: (s) => {
37
- u(this, o).textContent = s;
38
- }
39
- },
40
- value: {
41
- type: Number,
42
- default: 0,
43
- /** @param {Number} newVal */
44
- observer: (s) => {
45
- u(this, r).textContent = s.toLocaleString();
46
- }
47
- }
48
- }));
49
- this.stylesheet = x, this.$render();
50
- }
51
- static get observedAttributes() {
52
- return [...super.observedAttributes, "title", "value"];
53
- }
54
- $render() {
55
- this.shadowRoot.innerHTML = `
56
- <div class='ea-statistic' part='container'>
57
- <header class='ea-statistic__header' part='title'>
58
- <slot name='title'></slot>
59
- </header>
60
- <main class='ea-statistic__content' part='content'>
61
- <span class='ea-statistic__prefix' part='prefix'>
62
- <slot name='prefix'></slot>
63
- </span>
64
- <span class='ea-statistic__number' part='number'>
65
- <slot></slot>
66
- </span>
67
- <span class='ea-statistic__suffix' part='suffix'>
68
- <slot name='suffix'></slot>
69
- </span>
70
- </main>
71
- </div>
72
- `, i(this, n, this.shadowRoot.querySelector(".ea-statistic")), i(this, o, this.shadowRoot.querySelector(".ea-statistic__header slot")), i(this, r, this.shadowRoot.querySelector(".ea-statistic__number")), i(this, c, this.shadowRoot.querySelector(".ea-statistic__prefix slot")), i(this, l, this.shadowRoot.querySelector(".ea-statistic__suffix slot"));
73
- }
74
- connectedCallback() {
75
- super.connectedCallback();
76
- }
77
- }
78
- n = new WeakMap(), o = new WeakMap(), r = new WeakMap(), c = new WeakMap(), l = new WeakMap();
79
- window.customElements.get("ea-statistic") || window.customElements.define("ea-statistic", w);
80
- export {
81
- w as E,
82
- E as a
83
- };