easy-component-ui 3.0.11 → 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.
- package/dist/components/Base.js +187 -186
- package/dist/components/ea-breadcrumb.js +33 -33
- package/dist/components/ea-calendar2.js +327 -329
- package/dist/components/ea-collapse.js +100 -80
- package/dist/components/ea-color-picker.js +199 -196
- package/dist/components/ea-countdown.js +77 -56
- package/dist/components/ea-descriptions.js +133 -70
- package/dist/components/ea-drawer.js +87 -70
- package/dist/components/ea-empty.js +31 -23
- package/dist/components/ea-menu.js +68 -52
- package/dist/components/ea-overlay.js +35 -29
- package/dist/components/ea-pagination.js +1 -0
- package/dist/components/ea-popconfirm.js +132 -77
- package/dist/components/ea-popper.js +9 -9
- package/dist/components/ea-progress.js +81 -64
- package/dist/components/ea-result.js +22 -22
- package/dist/components/ea-select.js +110 -99
- package/dist/components/ea-skeleton.js +99 -82
- package/dist/components/ea-statistic.js +72 -4
- package/dist/components/ea-steps.js +104 -70
- package/dist/components/ea-table.js +514 -397
- package/dist/components/ea-tag.js +37 -43
- package/dist/components/ea-timeline.js +10 -11
- package/dist/components/index.js +1 -1
- package/dist/css/ea-card.style.js +1 -1
- package/dist/css/ea-collapse-item.style.js +1 -1
- package/dist/css/ea-color-picker-panel.style.js +1 -1
- package/dist/css/ea-descriptions-item.style.js +2 -2
- package/dist/css/ea-descriptions.style.js +1 -1
- package/dist/css/ea-empty.style.js +1 -1
- package/dist/css/ea-progress.style.js +1 -1
- package/dist/css/ea-skeleton.style.js +1 -1
- package/dist/css/ea-step.style.js +1 -1
- package/dist/css/ea-table-column.style.js +4 -0
- package/dist/css/ea-table.style.js +1 -1
- package/dist/css/ea-timeline-item.style.js +1 -1
- package/dist/utils/Variables.js +5 -12
- package/dist/utils/parseTime.js +73 -0
- package/package.json +1 -1
- package/dist/components/ea-statistic2.js +0 -83
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
2
|
var S = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var y = (t,
|
|
6
|
-
var f = (t,
|
|
7
|
-
var
|
|
8
|
-
import { B as
|
|
5
|
+
var y = (t, r, e) => r in t ? E(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
|
|
6
|
+
var f = (t, r, e) => y(t, typeof r != "symbol" ? r + "" : r, e), w = (t, r, e) => r.has(t) || S("Cannot " + e);
|
|
7
|
+
var s = (t, r, e) => (w(t, r, "read from private field"), e ? e.call(t) : r.get(t)), a = (t, r, e) => r.has(t) ? S("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e), i = (t, r, e, n) => (w(t, r, "write to private field"), n ? n.call(t, e) : r.set(t, e), e);
|
|
8
|
+
import { B as C } from "./Base.js";
|
|
9
9
|
import { s as v } from "../css/ea-breadcrumb.style.js";
|
|
10
10
|
import { s as R } from "../css/ea-breadcrumb-item.style.js";
|
|
11
11
|
import { E as _ } from "../utils/Utils.js";
|
|
12
|
-
var c, d,
|
|
13
|
-
class
|
|
12
|
+
var l, c, d, b, p;
|
|
13
|
+
class $ extends C {
|
|
14
14
|
constructor() {
|
|
15
15
|
super();
|
|
16
16
|
/** @type {HTMLElement} */
|
|
17
|
-
a(this,
|
|
17
|
+
a(this, l);
|
|
18
18
|
/** @type {HTMLSlotElement} */
|
|
19
|
-
a(this,
|
|
19
|
+
a(this, c);
|
|
20
20
|
/** @type {AbortController} */
|
|
21
|
-
a(this,
|
|
21
|
+
a(this, d, new AbortController());
|
|
22
22
|
f(this, "state", this.properties({
|
|
23
23
|
separator: {
|
|
24
24
|
type: String,
|
|
@@ -41,10 +41,10 @@ class q extends E {
|
|
|
41
41
|
*/
|
|
42
42
|
a(this, p, () => {
|
|
43
43
|
const n = [...this.shadowRoot.querySelector("#defaultSlot").assignedElements()].filter(
|
|
44
|
-
(
|
|
45
|
-
), o =
|
|
46
|
-
n.forEach((
|
|
47
|
-
g < n.length - 1 && !
|
|
44
|
+
(m) => m.tagName.toLowerCase() === "ea-breadcrumb-item"
|
|
45
|
+
), o = s(this, b).call(this, this.separator);
|
|
46
|
+
n.forEach((m, g) => {
|
|
47
|
+
g < n.length - 1 && !m.querySelector("[slot='separator']") && m.appendChild(o.cloneNode(!0));
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
this.stylesheet = v, this.$render();
|
|
@@ -60,7 +60,7 @@ class q extends E {
|
|
|
60
60
|
const e = this.computedClasslist("ea-breadcrumb", {
|
|
61
61
|
// ['--' + this.type]: this.type,
|
|
62
62
|
});
|
|
63
|
-
return
|
|
63
|
+
return s(this, l).className = e, e;
|
|
64
64
|
}
|
|
65
65
|
$render() {
|
|
66
66
|
this.shadowRoot.innerHTML = `
|
|
@@ -68,34 +68,34 @@ class q extends E {
|
|
|
68
68
|
<slot id="defaultSlot"></slot>
|
|
69
69
|
</nav>
|
|
70
70
|
<slot id="separatorSlot" name="separator"></slot>
|
|
71
|
-
`,
|
|
71
|
+
`, i(this, l, this.shadowRoot.querySelector(".ea-breadcrumb")), i(this, c, this.shadowRoot.querySelector("#defaultSlot"));
|
|
72
72
|
}
|
|
73
73
|
connectedCallback() {
|
|
74
|
-
super.connectedCallback(),
|
|
75
|
-
signal:
|
|
74
|
+
super.connectedCallback(), s(this, c).addEventListener("slotchange", s(this, p), {
|
|
75
|
+
signal: s(this, d).signal
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
$beforeUnmounted() {
|
|
79
79
|
var e;
|
|
80
|
-
(e =
|
|
80
|
+
(e = s(this, d)) == null || e.abort();
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
|
|
84
|
-
window.customElements.get("ea-breadcrumb") || window.customElements.define("ea-breadcrumb",
|
|
85
|
-
var
|
|
86
|
-
class
|
|
83
|
+
l = new WeakMap(), c = new WeakMap(), d = new WeakMap(), b = new WeakMap(), p = new WeakMap();
|
|
84
|
+
window.customElements.get("ea-breadcrumb") || window.customElements.define("ea-breadcrumb", $);
|
|
85
|
+
var u, h;
|
|
86
|
+
class q extends C {
|
|
87
87
|
constructor() {
|
|
88
88
|
super();
|
|
89
89
|
/** @type {HTMLElement} */
|
|
90
|
-
a(this,
|
|
90
|
+
a(this, u);
|
|
91
91
|
/** @type {HTMLElement} */
|
|
92
|
-
a(this,
|
|
92
|
+
a(this, h);
|
|
93
93
|
f(this, "state", this.properties({
|
|
94
94
|
href: {
|
|
95
95
|
type: String,
|
|
96
96
|
default: "",
|
|
97
97
|
observer: (e) => {
|
|
98
|
-
|
|
98
|
+
this.$render(), s(this, h).href = this.getAttribute("href");
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}));
|
|
@@ -112,7 +112,7 @@ class A extends E {
|
|
|
112
112
|
const e = this.computedClasslist("ea-breadcrumb-item", {
|
|
113
113
|
// ['--' + this.type]: this.type,
|
|
114
114
|
});
|
|
115
|
-
return
|
|
115
|
+
return s(this, u).className = e, e;
|
|
116
116
|
}
|
|
117
117
|
$render() {
|
|
118
118
|
const e = _.EaElement.h(
|
|
@@ -132,17 +132,17 @@ class A extends E {
|
|
|
132
132
|
<slot name="separator"></slot>
|
|
133
133
|
</span>
|
|
134
134
|
</div>
|
|
135
|
-
`,
|
|
135
|
+
`, i(this, u, this.shadowRoot.querySelector(".ea-breadcrumb-item")), i(this, h, this.shadowRoot.querySelector(
|
|
136
136
|
".ea-breadcrumb-item__content"
|
|
137
|
-
));
|
|
137
|
+
)), this.updateContainerClasslist();
|
|
138
138
|
}
|
|
139
139
|
connectedCallback() {
|
|
140
140
|
super.connectedCallback();
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
window.customElements.get("ea-breadcrumb-item") || window.customElements.define("ea-breadcrumb-item",
|
|
143
|
+
u = new WeakMap(), h = new WeakMap();
|
|
144
|
+
window.customElements.get("ea-breadcrumb-item") || window.customElements.define("ea-breadcrumb-item", q);
|
|
145
145
|
export {
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
$ as EaBreadcrumb,
|
|
147
|
+
q as EaBreadcrumbItem
|
|
148
148
|
};
|