litos-ui 0.20.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{animation-DStAHzod.js → animation-Bo4jbSGK.js} +4 -3
- package/lib/base.d.ts +3 -2
- package/lib/base.js +7 -7
- package/lib/button/index.d.ts +2 -2
- package/lib/button/index.js +152 -2
- package/lib/button/style.d.ts +2 -0
- package/lib/button/style.js +2 -0
- package/lib/calendar/index.d.ts +2 -2
- package/lib/card/index.d.ts +23 -0
- package/lib/card/index.js +2 -0
- package/lib/card-3DM-lJQV.js +63 -0
- package/lib/date_picker/index.d.ts +2 -2
- package/lib/dialog/dialog_box.d.ts +22 -0
- package/lib/dialog/dialog_box.js +98 -0
- package/lib/dialog/dialog_container.d.ts +7 -3
- package/lib/dialog/dialog_container.js +1 -1
- package/lib/dialog/index.d.ts +33 -11
- package/lib/dialog/index.js +45 -47
- package/lib/{dialog_container-Bq6HsKey.js → dialog_container-BNPQ9n0V.js} +32 -14
- package/lib/form/form_item.d.ts +2 -2
- package/lib/form/form_item.js +1 -1
- package/lib/{form_item-CFIkfH29.js → form_item-BqPMRABd.js} +5 -5
- package/lib/icon/base.d.ts +2 -2
- package/lib/index.d.ts +2 -0
- package/lib/index.js +70 -68
- package/lib/input/index.d.ts +2 -2
- package/lib/list/index.js +1 -1
- package/lib/{list-Dg5u5dgr.js → list-MG8PRzos.js} +2 -2
- package/lib/mask-Ox6CoyFB.js +5 -0
- package/lib/menu/index.d.ts +2 -2
- package/lib/modal/index.d.ts +2 -2
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal_box.js +12 -12
- package/lib/{modal-iwxqmAqW.js → modal-Cwi3qlEf.js} +36 -32
- package/lib/pagination/index.d.ts +2 -2
- package/lib/qrcode/index.d.ts +2 -2
- package/lib/select/index.d.ts +2 -2
- package/lib/select_ori/index.d.ts +2 -2
- package/lib/style-gKR_qwzm.js +5 -0
- package/lib/styles/animation/index.d.ts +2 -0
- package/lib/styles/animation/index.js +2 -0
- package/lib/styles/mask/index.d.ts +2 -0
- package/lib/styles/mask/index.js +2 -0
- package/lib/theme/theme_color.d.ts +1 -2
- package/package.json +1 -1
- package/lib/button-CDYYpQu6.js +0 -151
package/lib/dialog/index.js
CHANGED
|
@@ -1,70 +1,68 @@
|
|
|
1
1
|
import { $one as e, addClass as t, getAttr as n, hasClass as r, off as i, on as a, removeClass as o } from "ph-utils/browser";
|
|
2
2
|
//#region src/components/dialog/index.ts
|
|
3
|
-
var s =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
var s = class {
|
|
4
|
+
$dialog;
|
|
5
|
+
$container;
|
|
6
|
+
config;
|
|
7
|
+
constructor(e) {
|
|
8
|
+
e != null && this.init(e);
|
|
7
9
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
10
|
+
handleKeydown = (e) => {
|
|
11
|
+
e.code === "Escape" && (e.preventDefault(), this.close());
|
|
12
|
+
};
|
|
13
|
+
handleClick = (e) => {
|
|
14
|
+
this.$dialog.isSameNode(e.target) && this.config && this.config.maskClosable && this.close();
|
|
15
|
+
};
|
|
16
|
+
handleContainerAction = (e) => {
|
|
12
17
|
let t = e.detail.action;
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
if (!
|
|
18
|
+
t === "ok" && this.$container?.hasAttribute("confirm-loading") || this.config.onAction != null && this.config.onAction(t, () => this.close());
|
|
19
|
+
};
|
|
20
|
+
init(i) {
|
|
21
|
+
if (!this.config) {
|
|
17
22
|
let o = {
|
|
18
23
|
escClose: !0,
|
|
19
24
|
verticalAlign: "top",
|
|
20
25
|
maskClosable: !0,
|
|
21
|
-
|
|
26
|
+
close: 1,
|
|
22
27
|
...i
|
|
23
28
|
};
|
|
24
|
-
if (
|
|
25
|
-
r(
|
|
26
|
-
let i = n(
|
|
27
|
-
i &&
|
|
28
|
-
let s = n(
|
|
29
|
-
s &&
|
|
30
|
-
let
|
|
31
|
-
|
|
29
|
+
if (this.$dialog = e(i.el), this.$dialog) {
|
|
30
|
+
r(this.$dialog, "l-dialog") || t(this.$dialog, "l-dialog"), this.$container = e("l-dialog-container", this.$dialog), o.verticalAlign = n(this.$dialog, "vertical-align") || "top", t(this.$dialog, `l-dialog--vertical-${o.verticalAlign}`);
|
|
31
|
+
let i = n(this.$dialog, "translate") || o.translate;
|
|
32
|
+
i && this.$dialog.style.setProperty("--l-dialog-translate", `translate3d(${i})`);
|
|
33
|
+
let s = n(this.$dialog, "width") || o.width;
|
|
34
|
+
s && this.$dialog.style.setProperty("--l-dialog-width", s);
|
|
35
|
+
let c = n(this.$dialog, "close", 1);
|
|
36
|
+
c === 2 && t(this.$dialog, "l-dialog-close-outside"), this.$container && this.$container.setAttribute("close", `${c}`), o.close = c, a(this.$dialog, "keydown", this.handleKeydown), a(this.$dialog, "click", this.handleClick), this.$container && a(this.$container, "dialogAction", this.handleContainerAction);
|
|
32
37
|
}
|
|
33
|
-
|
|
38
|
+
this.config = o;
|
|
34
39
|
}
|
|
35
40
|
}
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
open() {
|
|
42
|
+
this.$dialog && (this.$dialog.showModal(), t(this.$dialog, "l-dialog--open"), t(document.body, "l-body--dialog-open"));
|
|
38
43
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}, { once: !0 }), o(
|
|
44
|
+
close() {
|
|
45
|
+
this.$dialog && r(this.$dialog, "l-dialog--open") && (a(this.$dialog, "transitionend", () => {
|
|
46
|
+
this.$dialog.close(), o(document.body, "l-body--dialog-open");
|
|
47
|
+
}, { once: !0 }), o(this.$dialog, "l-dialog--open"));
|
|
43
48
|
}
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
destroy() {
|
|
50
|
+
this.$dialog &&= (this.close(), i(this.$dialog, "keydown", this.handleKeydown), i(this.$dialog, "click", this.handleClick), this.$container && i(this.$container, "dialogAction", this.handleContainerAction), this.$container = void 0, void 0);
|
|
46
51
|
}
|
|
47
|
-
|
|
48
|
-
if (
|
|
52
|
+
setProp(e, t) {
|
|
53
|
+
if (this.config && (this.config[e] = t, this.$dialog)) {
|
|
49
54
|
if (e === "verticalAlign") {
|
|
50
|
-
let e =
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
c.className = e;
|
|
54
|
-
} else e === "translate" ? t ? c.style.setProperty("--l-dialog-translate", `translate3d(${t})`) : c.style.removeProperty("--l-dialog-translate") : e === "width" ? t ? c.style.setProperty("--l-dialog-width", t) : c.style.removeProperty("--l-dialog-width") : e === "showClose" && l && l.setAttribute("show-close", `${t}`);
|
|
55
|
+
let e = this.$dialog.className.replace(/l-dialog--vertical-\w+/g, () => `l-dialog--vertical-${t || "top"}`);
|
|
56
|
+
this.$dialog.className = e;
|
|
57
|
+
} else e === "translate" ? t ? this.$dialog.style.setProperty("--l-dialog-translate", `translate3d(${t})`) : this.$dialog.style.removeProperty("--l-dialog-translate") : e === "width" ? t ? this.$dialog.style.setProperty("--l-dialog-width", t) : this.$dialog.style.removeProperty("--l-dialog-width") : e === "close" && this.$container && this.$container.setAttribute("close", `${t}`);
|
|
55
58
|
}
|
|
56
59
|
}
|
|
57
|
-
|
|
58
|
-
for (let t in e)
|
|
60
|
+
setProps(e) {
|
|
61
|
+
for (let t in e) this.setProp(t, e[t]);
|
|
62
|
+
}
|
|
63
|
+
setConfirmLoading(e) {
|
|
64
|
+
this.$container && (e ? this.$container.setAttribute("confirm-loading", "") : this.$container.removeAttribute("confirm-loading"));
|
|
59
65
|
}
|
|
60
|
-
return s != null && m(s), {
|
|
61
|
-
init: m,
|
|
62
|
-
open: h,
|
|
63
|
-
close: g,
|
|
64
|
-
destroy: _,
|
|
65
|
-
setProp: v,
|
|
66
|
-
setProps: y
|
|
67
|
-
};
|
|
68
66
|
};
|
|
69
67
|
//#endregion
|
|
70
68
|
export { s as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./base.js";
|
|
2
2
|
import { $ as t, $$ as n, $one as r, formatClass as i, iterate as a, off as o, on as s, shouldEventNext as c } from "ph-utils/browser";
|
|
3
3
|
//#region src/components/dialog/dialog_container.css?inline
|
|
4
|
-
var l = ":host{display:block;position:relative}:host(.l-container-close-outside){padding-top:10px;padding-right:10px}.l-dialog-main{background-color:#fff;border-radius:5px;box-shadow:0 0 8px #0000001a}.l-dialog-header{border-bottom:1px solid var(--l-dialog-line-color,#0000000f);align-items:center;gap:5px;padding:10px;font-size:16px;font-weight:600;display:flex}.l-dialog-footer{border-top:1px solid var(--l-dialog-line-color,#0000000f);justify-content:flex-end;gap:10px;padding:10px;display:flex}.l-dialog-container{padding:15px 10px;font-size:14px}.l-btn-dialog-close{--l-form-control-height:auto;position:absolute}.l-dialog-close1{top:6px;right:5px}.l-dialog-close1::part(default){border:none;width:auto;height:auto;padding:5px;font-size:16px}.l-dialog-close2{top:0;right:0}.l-dialog-close2::part(default){background-color:#fff;width:20px;height:20px;padding:0}", u = class extends e {
|
|
4
|
+
var l = ":host{display:block;position:relative}:host(.l-container-close-outside){padding-top:10px;padding-right:10px}.l-dialog-main{background-color:#fff;border-radius:5px;box-shadow:0 0 8px #0000001a}.l-dialog-header{border-bottom:1px solid var(--l-dialog-line-color,#0000000f);align-items:center;gap:5px;padding:10px;font-size:16px;font-weight:600;display:flex}.l-dialog-footer{border-top:1px solid var(--l-dialog-line-color,#0000000f);justify-content:flex-end;gap:10px;padding:10px;display:flex}.l-dialog-container{padding:15px 10px;font-size:14px}.l-btn-dialog-close{--l-form-control-height:auto;position:absolute}.l-dialog-close1{top:6px;right:5px}.l-dialog-close1::part(default){border:none;width:auto;height:auto;padding:5px;font-size:16px}.l-dialog-close2{top:0;right:0}.l-dialog-close2::part(default){background-color:#fff;width:20px;height:20px;padding:0}.l-dialog-main--mobile{border-radius:10px}.l-dialog-main--mobile .l-dialog-header{text-align:center;border-bottom-color:#0000;justify-content:center;padding:20px 10px 5px;display:flex}.l-dialog-main--mobile .l-dialog-container{text-align:center;padding:5px 15px 20px}.l-dialog-main--mobile .l-dialog-footer{text-align:center;justify-content:stretch;align-items:stretch;gap:0;height:50px;padding:0;display:flex}.l-dialog-main--mobile .l-dialog-footer l-button{flex-grow:1;height:100%}.l-dialog-main--mobile .l-dialog-footer l-button+l-button{border-left:1px solid var(--l-dialog-line-color,#0000000f)}", u = class extends e {
|
|
5
5
|
static baseName = "dialog-container";
|
|
6
6
|
constructor() {
|
|
7
7
|
super(), this.version = 2, this._state = {
|
|
@@ -11,11 +11,13 @@ var l = ":host{display:block;position:relative}:host(.l-container-close-outside)
|
|
|
11
11
|
cancelText: "取消",
|
|
12
12
|
showOk: !0,
|
|
13
13
|
okText: "确定",
|
|
14
|
-
|
|
14
|
+
close: 1,
|
|
15
|
+
mobile: !1,
|
|
16
|
+
confirmLoading: !1
|
|
15
17
|
};
|
|
16
18
|
}
|
|
17
19
|
afterInit() {
|
|
18
|
-
this._state.
|
|
20
|
+
this._state.close === 2 && this.classList.add("l-container-close-outside");
|
|
19
21
|
let e = t("[data-action]", this.root);
|
|
20
22
|
a(e, (e) => {
|
|
21
23
|
s(e, "click", this.#e);
|
|
@@ -43,8 +45,10 @@ var l = ":host{display:block;position:relative}:host(.l-container-close-outside)
|
|
|
43
45
|
"cancel-text",
|
|
44
46
|
"show-ok",
|
|
45
47
|
"ok-text",
|
|
46
|
-
"
|
|
47
|
-
"container-class"
|
|
48
|
+
"close",
|
|
49
|
+
"container-class",
|
|
50
|
+
"mobile",
|
|
51
|
+
"confirm-loading"
|
|
48
52
|
];
|
|
49
53
|
}
|
|
50
54
|
attributeChanged(e, t, n) {
|
|
@@ -70,16 +74,25 @@ var l = ":host{display:block;position:relative}:host(.l-container-close-outside)
|
|
|
70
74
|
case "ok-text":
|
|
71
75
|
this._state.okText = n || "确定", this.connectedCallback();
|
|
72
76
|
break;
|
|
73
|
-
case "
|
|
74
|
-
this._state.
|
|
77
|
+
case "close":
|
|
78
|
+
this._state.close = Number(n), this._state.close === 2 ? this.classList.add("l-container-close-outside") : this.classList.remove("l-container-close-outside");
|
|
75
79
|
let e = r(".l-btn-dialog-close", this.root);
|
|
76
|
-
this._state.
|
|
80
|
+
this._state.close === 0 && e ? (o(e, "click", this.#e), e.remove()) : e ? e.className = this.#t() : (e = this.#n(), s(e, "click", this.#e), this.root.appendChild(e));
|
|
77
81
|
break;
|
|
78
|
-
case "container-class":
|
|
82
|
+
case "container-class":
|
|
83
|
+
this._state.containerClass = n || void 0, this.connectedCallback();
|
|
84
|
+
break;
|
|
85
|
+
case "mobile":
|
|
86
|
+
this._state.mobile = n !== null, this.connectedCallback();
|
|
87
|
+
break;
|
|
88
|
+
case "confirm-loading":
|
|
89
|
+
this._state.confirmLoading = n !== null;
|
|
90
|
+
let t = r("[data-action=\"ok\"]", this.root);
|
|
91
|
+
t && t.setAttribute("loading", this._state.confirmLoading.toString());
|
|
79
92
|
}
|
|
80
93
|
}
|
|
81
94
|
#t() {
|
|
82
|
-
return `l-btn-dialog-close l-dialog-close${this._state.
|
|
95
|
+
return `l-btn-dialog-close l-dialog-close${this._state.close}`;
|
|
83
96
|
}
|
|
84
97
|
#n() {
|
|
85
98
|
let e = n("l-button", {
|
|
@@ -98,8 +111,8 @@ var l = ":host{display:block;position:relative}:host(.l-container-close-outside)
|
|
|
98
111
|
}
|
|
99
112
|
render() {
|
|
100
113
|
let e = document.createDocumentFragment();
|
|
101
|
-
this._state.
|
|
102
|
-
let t = n("div", { class: "l-dialog-main" });
|
|
114
|
+
this._state.close !== 0 && e.appendChild(this.#n());
|
|
115
|
+
let t = n("div", { class: ["l-dialog-main", this._state.mobile ? "l-dialog-main--mobile" : ""] });
|
|
103
116
|
if (this._state.showHeader) {
|
|
104
117
|
let e = n("header", { class: "l-dialog-header" }), r = n("slot", { name: "header" });
|
|
105
118
|
r.textContent = this._state.header || "", e.appendChild(r), t.appendChild(e);
|
|
@@ -108,13 +121,18 @@ var l = ":host{display:block;position:relative}:host(.l-container-close-outside)
|
|
|
108
121
|
if (r.appendChild(a), t.appendChild(r), this._state.showFooter) {
|
|
109
122
|
let e = n("div", { class: "l-dialog-footer" }), r = n("slot", { name: "footer" });
|
|
110
123
|
if (this._state.showCancel) {
|
|
111
|
-
let e = n("l-button", {
|
|
124
|
+
let e = n("l-button", {
|
|
125
|
+
"data-action": "cancel",
|
|
126
|
+
text: this._state.mobile
|
|
127
|
+
});
|
|
112
128
|
e.textContent = this._state.cancelText, r.appendChild(e);
|
|
113
129
|
}
|
|
114
130
|
if (this._state.showOk) {
|
|
115
131
|
let e = n("l-button", {
|
|
116
132
|
type: "primary",
|
|
117
|
-
"data-action": "ok"
|
|
133
|
+
"data-action": "ok",
|
|
134
|
+
loading: this._state.confirmLoading,
|
|
135
|
+
text: this._state.mobile
|
|
118
136
|
});
|
|
119
137
|
e.textContent = this._state.okText, r.appendChild(e);
|
|
120
138
|
}
|
package/lib/form/form_item.d.ts
CHANGED
|
@@ -33,8 +33,8 @@ export default class FormItem extends ContextProvide<FormItemSignal, FormItemSta
|
|
|
33
33
|
message?: string;
|
|
34
34
|
}): void;
|
|
35
35
|
render_v2(): {
|
|
36
|
-
template
|
|
37
|
-
style
|
|
36
|
+
template: DocumentFragment;
|
|
37
|
+
style: string[];
|
|
38
38
|
};
|
|
39
39
|
render(): DocumentFragment;
|
|
40
40
|
private _updateRequired;
|
package/lib/form/form_item.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../form_item-
|
|
1
|
+
import { t as e } from "../form_item-BqPMRABd.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { kebabToCamel as e, parseAttrValue as t, stopSignal as n, unitNumberStr as r } from "./utils/index.js";
|
|
2
|
-
import
|
|
3
|
-
import o from "./
|
|
2
|
+
import i from "./utils/context_provide.js";
|
|
3
|
+
import { n as a, t as o } from "./esm-DAha108i.js";
|
|
4
4
|
import { $$ as s, $one as c, addClass as l, removeClass as u } from "ph-utils/browser";
|
|
5
5
|
//#region src/components/form/form_item.less?inline
|
|
6
|
-
var d = ":host{display:var(--l-form-item-display,flex);font-size:14px}.l-form-item__label{text-align:var(--l-form-label-align,right);width:var(--l-form-label-width,auto);height:var(--l-form-label-height,var(--l-form-control-height,32px));line-height:var(--l-form-label-height,var(--l-form-control-height,32px));color:#606266;box-sizing:border-box;padding:0 10px 0 0;display:inline-block}.l-form-item__label:empty{display:var(--l-form-label-empty-display,inline-block)}:host(.is-required) .l-form-item__label:before{content:\"*\";color:var(--l-warn-color,#f56c6c);vertical-align:middle;margin-right:4px}.l-form-item__content{flex:1;align-items:center;display:flex;position:relative}.l-form-item__error{color:var(--nt-error-color,#ed3f13);padding-top:3px;font-size:12px;line-height:1;position:absolute;top:100%;left:0}:host(.l-form-item--left){--l-form-label-align:left}:host(.l-form-item--top){--l-form-item-display:grid;--l-form-label-align:left;--l-form-label-empty-display:none;grid-template-columns:1fr}", f = class extends
|
|
6
|
+
var d = ":host{display:var(--l-form-item-display,flex);font-size:14px}.l-form-item__label{text-align:var(--l-form-label-align,right);width:var(--l-form-label-width,auto);height:var(--l-form-label-height,var(--l-form-control-height,32px));line-height:var(--l-form-label-height,var(--l-form-control-height,32px));color:#606266;box-sizing:border-box;padding:0 10px 0 0;display:inline-block}.l-form-item__label:empty{display:var(--l-form-label-empty-display,inline-block)}:host(.is-required) .l-form-item__label:before{content:\"*\";color:var(--l-warn-color,#f56c6c);vertical-align:middle;margin-right:4px}.l-form-item__content{flex:1;align-items:center;display:flex;position:relative}.l-form-item__error{color:var(--nt-error-color,#ed3f13);padding-top:3px;font-size:12px;line-height:1;position:absolute;top:100%;left:0}:host(.l-form-item--left){--l-form-label-align:left}:host(.l-form-item--top){--l-form-item-display:grid;--l-form-label-align:left;--l-form-label-empty-display:none;grid-template-columns:1fr}", f = class extends i {
|
|
7
7
|
static baseName = "form-item";
|
|
8
8
|
formErrors;
|
|
9
9
|
_errorSignalStop;
|
|
@@ -11,7 +11,7 @@ var d = ":host{display:var(--l-form-item-display,flex);font-size:14px}.l-form-it
|
|
|
11
11
|
super(), this.version = 2, this.contextEventName = "form-item-context-request", this._state = {
|
|
12
12
|
labelPosition: "right",
|
|
13
13
|
required: !1
|
|
14
|
-
}, this.context =
|
|
14
|
+
}, this.context = a({ innerBlock: !1 });
|
|
15
15
|
}
|
|
16
16
|
static get observedAttributes() {
|
|
17
17
|
return [
|
|
@@ -64,7 +64,7 @@ var d = ":host{display:var(--l-form-item-display,flex);font-size:14px}.l-form-it
|
|
|
64
64
|
connectedCallback() {
|
|
65
65
|
super.connectedCallback(), this._updateRequired(), this._parseSchema(), this.emitInject("form-context-request", ((e, t) => {
|
|
66
66
|
this.formErrors = t;
|
|
67
|
-
})), this._errorSignalStop =
|
|
67
|
+
})), this._errorSignalStop = o(() => {
|
|
68
68
|
let e = this.context().prop, t = this.formErrors ? this.formErrors() : null;
|
|
69
69
|
e && t && (this._state.error = t[e], this._updateError());
|
|
70
70
|
});
|
package/lib/icon/base.d.ts
CHANGED
|
@@ -15,8 +15,8 @@ export default class BaseIcon extends BaseComponent<ColorState> {
|
|
|
15
15
|
private _updateSize;
|
|
16
16
|
private _updateColor;
|
|
17
17
|
render_v2(): {
|
|
18
|
-
template
|
|
19
|
-
style
|
|
18
|
+
template: any;
|
|
19
|
+
style: string;
|
|
20
20
|
};
|
|
21
21
|
renderChildren(): string;
|
|
22
22
|
createEl(tagName: string): SVGElement;
|
package/lib/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { default as BaseComponent } from "./base";
|
|
|
4
4
|
export { default as Message } from "./message";
|
|
5
5
|
export { default as Dialog } from "./dialog";
|
|
6
6
|
export { default as DialogContainer } from "./dialog/dialog_container";
|
|
7
|
+
export { default as DialogBox } from "./dialog/dialog_box";
|
|
7
8
|
export { default as Loading } from "./loading";
|
|
8
9
|
export { default as Tabs } from "./tabs";
|
|
9
10
|
export { default as Modal } from "./modal";
|
|
@@ -75,4 +76,5 @@ export * from "./utils/popover";
|
|
|
75
76
|
export { default as Table } from "./table";
|
|
76
77
|
export type { Column } from "./table/types";
|
|
77
78
|
export { default as Space } from "./space";
|
|
79
|
+
export { default as Card } from "./card";
|
|
78
80
|
export { default as Calendar } from "./calendar";
|
package/lib/index.js
CHANGED
|
@@ -8,71 +8,73 @@ import g from "./icon/warn.js";
|
|
|
8
8
|
import _ from "./icon/info.js";
|
|
9
9
|
import v from "./message/index.js";
|
|
10
10
|
import y from "./dialog/index.js";
|
|
11
|
-
import { t as b } from "./dialog_container-
|
|
12
|
-
import x from "./
|
|
13
|
-
import S from "./
|
|
14
|
-
import { t as C } from "./
|
|
15
|
-
import w from "./
|
|
16
|
-
import T from "./
|
|
17
|
-
import E from "./
|
|
18
|
-
import D from "./
|
|
19
|
-
import O from "./
|
|
20
|
-
import k from "./icon/
|
|
21
|
-
import A from "./icon/
|
|
22
|
-
import j from "./icon/
|
|
23
|
-
import M from "./icon/
|
|
24
|
-
import N from "./icon/
|
|
25
|
-
import P from "./icon/
|
|
26
|
-
import F from "./icon/
|
|
27
|
-
import I from "./icon/
|
|
28
|
-
import L from "./icon/
|
|
29
|
-
import R from "./icon/
|
|
30
|
-
import z from "./icon/
|
|
31
|
-
import B from "./icon/
|
|
32
|
-
import V from "./icon/
|
|
33
|
-
import H from "./icon/
|
|
34
|
-
import U from "./icon/
|
|
35
|
-
import W from "./icon/
|
|
36
|
-
import G from "./icon/
|
|
37
|
-
import K from "./icon/
|
|
38
|
-
import q from "./icon/
|
|
39
|
-
import J from "./icon/
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import Z from "./
|
|
43
|
-
import
|
|
44
|
-
import { t as $ } from "./
|
|
45
|
-
import ee from "./check/
|
|
46
|
-
import { t as te } from "./
|
|
47
|
-
import ne from "./
|
|
48
|
-
import
|
|
49
|
-
import { t as ie } from "./
|
|
50
|
-
import { t as ae } from "./
|
|
51
|
-
import { t as oe } from "./
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import { t as me } from "./
|
|
55
|
-
import { t as he } from "./
|
|
56
|
-
import { t as ge } from "./
|
|
57
|
-
import { t as _e } from "./
|
|
58
|
-
import { t as ve } from "./
|
|
59
|
-
import { t as ye } from "./
|
|
60
|
-
import { t as be } from "./
|
|
61
|
-
import xe from "./theme
|
|
62
|
-
import
|
|
63
|
-
import { t as Ce } from "./
|
|
64
|
-
import { t as we } from "./
|
|
65
|
-
import { t as Te } from "./
|
|
66
|
-
import { t as Ee } from "./
|
|
67
|
-
import { t as De } from "./
|
|
68
|
-
import { t as Oe } from "./
|
|
69
|
-
import { t as ke } from "./
|
|
70
|
-
import { t as Ae } from "./
|
|
71
|
-
import { t as je } from "./
|
|
72
|
-
import { t as Me } from "./
|
|
73
|
-
import { t as Ne } from "./
|
|
74
|
-
import { t as Pe } from "./
|
|
75
|
-
import { t as Fe } from "./
|
|
76
|
-
import { t as Ie } from "./
|
|
77
|
-
import { t as Le } from "./
|
|
78
|
-
|
|
11
|
+
import { t as b } from "./dialog_container-BNPQ9n0V.js";
|
|
12
|
+
import x from "./button/index.js";
|
|
13
|
+
import S from "./icon/close.js";
|
|
14
|
+
import { t as C } from "./form_item-BqPMRABd.js";
|
|
15
|
+
import w from "./input/index.js";
|
|
16
|
+
import T from "./dialog/dialog_box.js";
|
|
17
|
+
import E from "./loading/index.js";
|
|
18
|
+
import D from "./tabs/index.js";
|
|
19
|
+
import { t as O } from "./modal-Cwi3qlEf.js";
|
|
20
|
+
import k from "./icon/arrow_down.js";
|
|
21
|
+
import A from "./icon/arrow_left.js";
|
|
22
|
+
import j from "./icon/arrow_right.js";
|
|
23
|
+
import M from "./icon/arrow_up.js";
|
|
24
|
+
import N from "./icon/caret_top.js";
|
|
25
|
+
import P from "./icon/caret_bottom.js";
|
|
26
|
+
import F from "./icon/font_icon.js";
|
|
27
|
+
import I from "./icon/loading.js";
|
|
28
|
+
import L from "./icon/search.js";
|
|
29
|
+
import R from "./icon/sun.js";
|
|
30
|
+
import z from "./icon/moon.js";
|
|
31
|
+
import B from "./icon/reduction.js";
|
|
32
|
+
import V from "./icon/refresh_left.js";
|
|
33
|
+
import H from "./icon/refresh_right.js";
|
|
34
|
+
import U from "./icon/sort.js";
|
|
35
|
+
import W from "./icon/theme_default.js";
|
|
36
|
+
import G from "./icon/more.js";
|
|
37
|
+
import K from "./icon/d_arrow_left.js";
|
|
38
|
+
import q from "./icon/d_arrow_right.js";
|
|
39
|
+
import J from "./icon/zoom_in.js";
|
|
40
|
+
import Y from "./icon/zoom_out.js";
|
|
41
|
+
import X from "./icon/select.js";
|
|
42
|
+
import Z from "./icon/calendar.js";
|
|
43
|
+
import Q from "./icon/refresh.js";
|
|
44
|
+
import { t as $ } from "./form-DJxvBiLy.js";
|
|
45
|
+
import ee from "./check/radio_group.js";
|
|
46
|
+
import { t as te } from "./radio-C9NPQWGI.js";
|
|
47
|
+
import { t as ne } from "./checkbox-DhGHJXwI.js";
|
|
48
|
+
import re from "./check/checkbox_group.js";
|
|
49
|
+
import { t as ie } from "./select_ori-C7sUZxen.js";
|
|
50
|
+
import { t as ae } from "./switch-wh2-ivty.js";
|
|
51
|
+
import { t as oe } from "./md_input-BX3bujz8.js";
|
|
52
|
+
import { t as se } from "./select-BZMDj5VE.js";
|
|
53
|
+
import { Popover as ce, autoUpdate as le, createPopoverObserver as ue, getOverflowAncestors as de, popconfirmProps as fe, updatePosition as pe } from "./utils/popover.js";
|
|
54
|
+
import { t as me } from "./date_picker-BDN2PAz5.js";
|
|
55
|
+
import { t as he } from "./date_picker_ori-BXFs1eET.js";
|
|
56
|
+
import { t as ge } from "./color_picker-0a-IGZY9.js";
|
|
57
|
+
import { t as _e } from "./list-MG8PRzos.js";
|
|
58
|
+
import { t as ve } from "./polygon-DhhovlrG.js";
|
|
59
|
+
import { t as ye } from "./tabbar-CBXK-_AV.js";
|
|
60
|
+
import { t as be } from "./item-D_ZOPXuE.js";
|
|
61
|
+
import { t as xe } from "./theme-CLbBS-in.js";
|
|
62
|
+
import Se from "./theme/theme_color.js";
|
|
63
|
+
import { t as Ce } from "./menu-DKscK5mw.js";
|
|
64
|
+
import { t as we } from "./carousel-DvkZ1YXq.js";
|
|
65
|
+
import { t as Te } from "./item-CQ2Sknbz.js";
|
|
66
|
+
import { t as Ee } from "./qrcode-Dip8uLSA.js";
|
|
67
|
+
import { t as De } from "./description_panel--AKXBzLL.js";
|
|
68
|
+
import { t as Oe } from "./pagination-aRbGd3Rf.js";
|
|
69
|
+
import { t as ke } from "./mask-Bx-yNIJv.js";
|
|
70
|
+
import { t as Ae } from "./page_header-ujV3pncE.js";
|
|
71
|
+
import { t as je } from "./tag-Di1z9PoZ.js";
|
|
72
|
+
import { t as Me } from "./collapse-B6-Rn05A.js";
|
|
73
|
+
import { t as Ne } from "./item-DI6mQXtB.js";
|
|
74
|
+
import { t as Pe } from "./image-CVQai6NX.js";
|
|
75
|
+
import { t as Fe } from "./image_preview-DfQAKSJH.js";
|
|
76
|
+
import { t as Ie } from "./table-BQxMD2Ae.js";
|
|
77
|
+
import { t as Le } from "./space-CKuTk0YB.js";
|
|
78
|
+
import { t as Re } from "./card-3DM-lJQV.js";
|
|
79
|
+
import { t as ze } from "./calendar-CvlUsN6w.js";
|
|
80
|
+
export { k as ArrowDownIcon, A as ArrowLeftIcon, j as ArrowRightIcon, M as ArrowUpIcon, e as BaseComponent, p as BaseIcon, x as Button, ze as Calendar, Z as CalendarIcon, Re as Card, P as CaretBottomIcon, N as CaretTopIcon, we as Carousel, Te as CarouselItem, ne as Checkbox, re as CheckboxGroup, m as CloseFilledIcon, S as CloseIcon, Me as Collapse, Ne as CollapseItem, ge as ColorPicker, K as DArrowLeftIcon, q as DArrowRightIcon, me as DatePicker, he as DatePickerOri, De as DescriptionPanel, y as Dialog, T as DialogBox, b as DialogContainer, F as FontIcon, $ as Form, C as FormItem, Pe as Image, Fe as ImagePreview, _ as InfoIcon, w as Input, _e as List, E as Loading, I as LoadingIcon, ke as Mask, oe as MdInput, Ce as Menu, v as Message, O as Modal, z as MoonIcon, G as MoreIcon, Ae as PageHeader, Oe as Pagination, ve as Polygon, ce as Popover, Ee as Qrcode, te as Radio, ee as RadioGroup, B as ReductionIcon, Q as RefreshIcon, V as RefreshLeftIcon, H as RefreshRightIcon, L as SearchIcon, se as Select, X as SelectIcon, ie as SelectOri, U as SortIcon, Le as Space, h as SuccessIcon, R as SunIcon, ae as Switch, ye as Tabbar, be as TabbarItem, Ie as Table, D as Tabs, je as Tag, xe as Theme, Se as ThemeColor, W as ThemeDefaultIcon, g as WarnIcon, J as ZoomInIcon, Y as ZoomOutIcon, f as addClickOutside, le as autoUpdate, ue as createPopoverObserver, de as getOverflowAncestors, t as initAttr, n as kebabToCamel, r as parseAttrValue, fe as popconfirmProps, i as regist, d as removeClickOutside, a as setAttrs, o as stopSignal, s as tagAttr, c as tagAttrs, l as unitNumberStr, pe as updatePosition, u as useId };
|
package/lib/input/index.d.ts
CHANGED
|
@@ -40,8 +40,8 @@ export default class Input extends FormInner<InputState> {
|
|
|
40
40
|
protected updateDOM(changedProps: Set<string>): void;
|
|
41
41
|
_updateAttr(key: string, value: any): void;
|
|
42
42
|
render_v2(): {
|
|
43
|
-
template
|
|
44
|
-
style
|
|
43
|
+
template: DocumentFragment;
|
|
44
|
+
style: string[];
|
|
45
45
|
};
|
|
46
46
|
render(): DocumentFragment;
|
|
47
47
|
/**
|
package/lib/list/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../list-
|
|
1
|
+
import { t as e } from "../list-MG8PRzos.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "./base.js";
|
|
2
2
|
import { parseAttrValue as t } from "./utils/index.js";
|
|
3
|
-
import { t as n } from "./animation-
|
|
3
|
+
import { t as n } from "./animation-Bo4jbSGK.js";
|
|
4
4
|
import { $one as r } from "ph-utils/browser";
|
|
5
5
|
//#region src/components/list/index.less?inline
|
|
6
6
|
var i = ":host{-webkit-overflow-scrolling:touch;height:100%;display:block;position:relative;overflow:auto}.l-list-loadmore{color:#999;justify-content:center;align-items:center;padding:10px;display:flex}.l-list-icon{margin-right:10px;font-size:24px;transform:rotate(80deg)}", a = class extends e {
|
|
@@ -23,7 +23,7 @@ var i = ":host{-webkit-overflow-scrolling:touch;height:100%;display:block;positi
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
connectedCallback() {
|
|
26
|
-
this.loadStyleText([i, n]
|
|
26
|
+
this.loadStyleText([i]), this.root.adoptedStyleSheets = [n], super.connectedCallback(), this.infinite && (this.observer = new IntersectionObserver((e) => {
|
|
27
27
|
e[0].isIntersecting && !this.finish && (this._page++, this.setAttribute("loading", ""), this.emit("load", { detail: { page: this._page } }));
|
|
28
28
|
}), this.$more = r(".l-list-loadmore", this.root), !this.finish && this.$more && this.observer.observe(this.$more));
|
|
29
29
|
}
|
package/lib/menu/index.d.ts
CHANGED
|
@@ -28,8 +28,8 @@ export default class Menu extends BaseComponent<MenuState> {
|
|
|
28
28
|
afterInit(): void;
|
|
29
29
|
beforeDestroy(): void;
|
|
30
30
|
render_v2(): {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
style: string;
|
|
32
|
+
template: HTMLElement;
|
|
33
33
|
};
|
|
34
34
|
_handleClick: (e: Event) => void;
|
|
35
35
|
/**
|
package/lib/modal/index.d.ts
CHANGED
|
@@ -43,8 +43,8 @@ export default class Modal extends BaseComponent<ModalState> {
|
|
|
43
43
|
protected updateDOM(changedProps: Set<string>): void;
|
|
44
44
|
afterInit(): void;
|
|
45
45
|
render_v2(): {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
style: string[];
|
|
47
|
+
styleSheets: CSSStyleSheet[];
|
|
48
48
|
};
|
|
49
49
|
_setZIndex(): void;
|
|
50
50
|
_setWidth(): void;
|
package/lib/modal/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../modal-
|
|
1
|
+
import { t as e } from "../modal-Cwi3qlEf.js";
|
|
2
2
|
export { e as default };
|
package/lib/modal/modal_box.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { regist as e } from "../utils/index.js";
|
|
2
2
|
import t from "../icon/info.js";
|
|
3
|
-
import
|
|
3
|
+
import n from "../button/index.js";
|
|
4
4
|
import r from "../icon/close.js";
|
|
5
|
-
import { t as i } from "../form_item-
|
|
6
|
-
import
|
|
7
|
-
import o from "../
|
|
5
|
+
import { t as i } from "../form_item-BqPMRABd.js";
|
|
6
|
+
import a from "../input/index.js";
|
|
7
|
+
import { t as o } from "../modal-Cwi3qlEf.js";
|
|
8
8
|
import { $$ as s, $one as c, on as l } from "ph-utils/browser";
|
|
9
9
|
//#region src/components/modal/modal_box.ts
|
|
10
10
|
function u(e, t, n, r = "alert") {
|
|
@@ -33,10 +33,10 @@ function u(e, t, n, r = "alert") {
|
|
|
33
33
|
}, { once: !0 }), document.body.appendChild(o);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
function d(t, i,
|
|
36
|
+
function d(t, i, a) {
|
|
37
37
|
return e([
|
|
38
|
-
a,
|
|
39
38
|
n,
|
|
39
|
+
o,
|
|
40
40
|
r
|
|
41
41
|
]), new Promise((e) => {
|
|
42
42
|
let n = {
|
|
@@ -44,15 +44,15 @@ function d(t, i, o) {
|
|
|
44
44
|
close: 0,
|
|
45
45
|
maskClosable: !1,
|
|
46
46
|
icon: void 0,
|
|
47
|
-
...
|
|
47
|
+
...a
|
|
48
48
|
};
|
|
49
49
|
return u(i || "提示", t, n, "alert");
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
function f(i,
|
|
52
|
+
function f(i, a, c) {
|
|
53
53
|
e([
|
|
54
|
-
a,
|
|
55
54
|
n,
|
|
55
|
+
o,
|
|
56
56
|
r,
|
|
57
57
|
t
|
|
58
58
|
]);
|
|
@@ -63,16 +63,16 @@ function f(i, o, c) {
|
|
|
63
63
|
icon: () => s("l-info-icon", { style: "color:#1890ff;" }),
|
|
64
64
|
...c
|
|
65
65
|
};
|
|
66
|
-
return u(
|
|
66
|
+
return u(a || "提示", i, l, "confirm");
|
|
67
67
|
}
|
|
68
68
|
function p(s, c, l) {
|
|
69
69
|
e([
|
|
70
|
-
a,
|
|
71
70
|
n,
|
|
71
|
+
o,
|
|
72
72
|
r,
|
|
73
73
|
t,
|
|
74
74
|
i,
|
|
75
|
-
|
|
75
|
+
a
|
|
76
76
|
]);
|
|
77
77
|
let d = {
|
|
78
78
|
showCancel: !0,
|