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.
Files changed (46) hide show
  1. package/lib/{animation-DStAHzod.js → animation-Bo4jbSGK.js} +4 -3
  2. package/lib/base.d.ts +3 -2
  3. package/lib/base.js +7 -7
  4. package/lib/button/index.d.ts +2 -2
  5. package/lib/button/index.js +152 -2
  6. package/lib/button/style.d.ts +2 -0
  7. package/lib/button/style.js +2 -0
  8. package/lib/calendar/index.d.ts +2 -2
  9. package/lib/card/index.d.ts +23 -0
  10. package/lib/card/index.js +2 -0
  11. package/lib/card-3DM-lJQV.js +63 -0
  12. package/lib/date_picker/index.d.ts +2 -2
  13. package/lib/dialog/dialog_box.d.ts +22 -0
  14. package/lib/dialog/dialog_box.js +98 -0
  15. package/lib/dialog/dialog_container.d.ts +7 -3
  16. package/lib/dialog/dialog_container.js +1 -1
  17. package/lib/dialog/index.d.ts +33 -11
  18. package/lib/dialog/index.js +45 -47
  19. package/lib/{dialog_container-Bq6HsKey.js → dialog_container-BNPQ9n0V.js} +32 -14
  20. package/lib/form/form_item.d.ts +2 -2
  21. package/lib/form/form_item.js +1 -1
  22. package/lib/{form_item-CFIkfH29.js → form_item-BqPMRABd.js} +5 -5
  23. package/lib/icon/base.d.ts +2 -2
  24. package/lib/index.d.ts +2 -0
  25. package/lib/index.js +70 -68
  26. package/lib/input/index.d.ts +2 -2
  27. package/lib/list/index.js +1 -1
  28. package/lib/{list-Dg5u5dgr.js → list-MG8PRzos.js} +2 -2
  29. package/lib/mask-Ox6CoyFB.js +5 -0
  30. package/lib/menu/index.d.ts +2 -2
  31. package/lib/modal/index.d.ts +2 -2
  32. package/lib/modal/index.js +1 -1
  33. package/lib/modal/modal_box.js +12 -12
  34. package/lib/{modal-iwxqmAqW.js → modal-Cwi3qlEf.js} +36 -32
  35. package/lib/pagination/index.d.ts +2 -2
  36. package/lib/qrcode/index.d.ts +2 -2
  37. package/lib/select/index.d.ts +2 -2
  38. package/lib/select_ori/index.d.ts +2 -2
  39. package/lib/style-gKR_qwzm.js +5 -0
  40. package/lib/styles/animation/index.d.ts +2 -0
  41. package/lib/styles/animation/index.js +2 -0
  42. package/lib/styles/mask/index.d.ts +2 -0
  43. package/lib/styles/mask/index.js +2 -0
  44. package/lib/theme/theme_color.d.ts +1 -2
  45. package/package.json +1 -1
  46. package/lib/button-CDYYpQu6.js +0 -151
@@ -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 = (s) => {
4
- let c, l, u;
5
- function d(e) {
6
- e.code === "Escape" && (e.preventDefault(), g());
3
+ var s = class {
4
+ $dialog;
5
+ $container;
6
+ config;
7
+ constructor(e) {
8
+ e != null && this.init(e);
7
9
  }
8
- function f(e) {
9
- c.isSameNode(e.target) && u && u.maskClosable && g();
10
- }
11
- function p(e) {
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
- u.onAction != null && u.onAction(t, g);
14
- }
15
- function m(i) {
16
- if (!u) {
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
- showClose: 1,
26
+ close: 1,
22
27
  ...i
23
28
  };
24
- if (c = e(i.el), c) {
25
- r(c, "l-dialog") || t(c, "l-dialog"), l = e("l-dialog-container", c), o.verticalAlign = n(c, "vertical-align") || "top", t(c, `l-dialog--vertical-${o.verticalAlign}`);
26
- let i = n(c, "translate") || o.translate;
27
- i && c.style.setProperty("--l-dialog-translate", `translate3d(${i})`);
28
- let s = n(c, "width") || o.width;
29
- s && c.style.setProperty("--l-dialog-width", s);
30
- let u = n(c, "show-close", 1);
31
- u === 2 && t(c, "l-dialog-close-outside"), l && l.setAttribute("show-close", `${u}`), o.showClose = u, a(c, "keydown", d), a(c, "click", f), l && a(l, "dialogAction", p);
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
- u = o;
38
+ this.config = o;
34
39
  }
35
40
  }
36
- function h() {
37
- c && (c.showModal(), t(c, "l-dialog--open"), t(document.body, "l-body--dialog-open"));
41
+ open() {
42
+ this.$dialog && (this.$dialog.showModal(), t(this.$dialog, "l-dialog--open"), t(document.body, "l-body--dialog-open"));
38
43
  }
39
- function g() {
40
- c && r(c, "l-dialog--open") && (a(c, "transitionend", () => {
41
- c.close(), o(document.body, "l-body--dialog-open");
42
- }, { once: !0 }), o(c, "l-dialog--open"));
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
- function _() {
45
- c &&= (g(), i(c, "keydown", d), i(c, "click", f), l && i(l, "dialogAction", p), l = void 0, void 0);
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
- function v(e, t) {
48
- if (u && (u[e] = t, c)) {
52
+ setProp(e, t) {
53
+ if (this.config && (this.config[e] = t, this.$dialog)) {
49
54
  if (e === "verticalAlign") {
50
- let e = c.className.replace(/l-dialog--vertical-\w+/g, function() {
51
- return `l-dialog--vertical-${t || "top"}`;
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
- function y(e) {
58
- for (let t in e) v(t, e[t]);
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
- showClose: 1
14
+ close: 1,
15
+ mobile: !1,
16
+ confirmLoading: !1
15
17
  };
16
18
  }
17
19
  afterInit() {
18
- this._state.showClose === 2 && this.classList.add("l-container-close-outside");
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
- "show-close",
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 "show-close":
74
- this._state.showClose = Number(n), this._state.showClose === 2 ? this.classList.add("l-container-close-outside") : this.classList.remove("l-container-close-outside");
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.showClose === 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));
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": this._state.containerClass = n || void 0, this.connectedCallback();
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.showClose}`;
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.showClose !== 0 && e.appendChild(this.#n());
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", { "data-action": "cancel" });
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
  }
@@ -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?: string | HTMLElement | DocumentFragment;
37
- style?: string | string[];
36
+ template: DocumentFragment;
37
+ style: string[];
38
38
  };
39
39
  render(): DocumentFragment;
40
40
  private _updateRequired;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../form_item-CFIkfH29.js";
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 { n as i, t as a } from "./esm-DAha108i.js";
3
- import o from "./utils/context_provide.js";
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 o {
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 = i({ innerBlock: !1 });
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 = a(() => {
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
  });
@@ -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?: string | HTMLElement | DocumentFragment;
19
- style?: string | string[];
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-Bq6HsKey.js";
12
- import x from "./loading/index.js";
13
- import S from "./tabs/index.js";
14
- import { t as C } from "./modal-iwxqmAqW.js";
15
- import w from "./icon/arrow_down.js";
16
- import T from "./icon/arrow_left.js";
17
- import E from "./icon/arrow_right.js";
18
- import D from "./icon/arrow_up.js";
19
- import O from "./icon/caret_top.js";
20
- import k from "./icon/caret_bottom.js";
21
- import A from "./icon/font_icon.js";
22
- import j from "./icon/loading.js";
23
- import M from "./icon/search.js";
24
- import N from "./icon/sun.js";
25
- import P from "./icon/moon.js";
26
- import F from "./icon/reduction.js";
27
- import I from "./icon/refresh_left.js";
28
- import L from "./icon/refresh_right.js";
29
- import R from "./icon/sort.js";
30
- import z from "./icon/theme_default.js";
31
- import B from "./icon/close.js";
32
- import V from "./icon/more.js";
33
- import H from "./icon/d_arrow_left.js";
34
- import U from "./icon/d_arrow_right.js";
35
- import W from "./icon/zoom_in.js";
36
- import G from "./icon/zoom_out.js";
37
- import K from "./icon/select.js";
38
- import q from "./icon/calendar.js";
39
- import J from "./icon/refresh.js";
40
- import { t as Y } from "./form-DJxvBiLy.js";
41
- import { t as X } from "./form_item-CFIkfH29.js";
42
- import Z from "./check/radio_group.js";
43
- import { t as Q } from "./radio-C9NPQWGI.js";
44
- import { t as $ } from "./checkbox-DhGHJXwI.js";
45
- import ee from "./check/checkbox_group.js";
46
- import { t as te } from "./button-CDYYpQu6.js";
47
- import ne from "./input/index.js";
48
- import { t as re } from "./select_ori-C7sUZxen.js";
49
- import { t as ie } from "./switch-wh2-ivty.js";
50
- import { t as ae } from "./md_input-BX3bujz8.js";
51
- import { t as oe } from "./select-BZMDj5VE.js";
52
- import { Popover as se, autoUpdate as ce, createPopoverObserver as le, getOverflowAncestors as ue, popconfirmProps as de, updatePosition as fe } from "./utils/popover.js";
53
- import { t as pe } from "./date_picker-BDN2PAz5.js";
54
- import { t as me } from "./date_picker_ori-BXFs1eET.js";
55
- import { t as he } from "./color_picker-0a-IGZY9.js";
56
- import { t as ge } from "./list-Dg5u5dgr.js";
57
- import { t as _e } from "./polygon-DhhovlrG.js";
58
- import { t as ve } from "./tabbar-CBXK-_AV.js";
59
- import { t as ye } from "./item-D_ZOPXuE.js";
60
- import { t as be } from "./theme-CLbBS-in.js";
61
- import xe from "./theme/theme_color.js";
62
- import { t as Se } from "./menu-DKscK5mw.js";
63
- import { t as Ce } from "./carousel-DvkZ1YXq.js";
64
- import { t as we } from "./item-CQ2Sknbz.js";
65
- import { t as Te } from "./qrcode-Dip8uLSA.js";
66
- import { t as Ee } from "./description_panel--AKXBzLL.js";
67
- import { t as De } from "./pagination-aRbGd3Rf.js";
68
- import { t as Oe } from "./mask-Bx-yNIJv.js";
69
- import { t as ke } from "./page_header-ujV3pncE.js";
70
- import { t as Ae } from "./tag-Di1z9PoZ.js";
71
- import { t as je } from "./collapse-B6-Rn05A.js";
72
- import { t as Me } from "./item-DI6mQXtB.js";
73
- import { t as Ne } from "./image-CVQai6NX.js";
74
- import { t as Pe } from "./image_preview-DfQAKSJH.js";
75
- import { t as Fe } from "./table-BQxMD2Ae.js";
76
- import { t as Ie } from "./space-CKuTk0YB.js";
77
- import { t as Le } from "./calendar-CvlUsN6w.js";
78
- export { w as ArrowDownIcon, T as ArrowLeftIcon, E as ArrowRightIcon, D as ArrowUpIcon, e as BaseComponent, p as BaseIcon, te as Button, Le as Calendar, q as CalendarIcon, k as CaretBottomIcon, O as CaretTopIcon, Ce as Carousel, we as CarouselItem, $ as Checkbox, ee as CheckboxGroup, m as CloseFilledIcon, B as CloseIcon, je as Collapse, Me as CollapseItem, he as ColorPicker, H as DArrowLeftIcon, U as DArrowRightIcon, pe as DatePicker, me as DatePickerOri, Ee as DescriptionPanel, y as Dialog, b as DialogContainer, A as FontIcon, Y as Form, X as FormItem, Ne as Image, Pe as ImagePreview, _ as InfoIcon, ne as Input, ge as List, x as Loading, j as LoadingIcon, Oe as Mask, ae as MdInput, Se as Menu, v as Message, C as Modal, P as MoonIcon, V as MoreIcon, ke as PageHeader, De as Pagination, _e as Polygon, se as Popover, Te as Qrcode, Q as Radio, Z as RadioGroup, F as ReductionIcon, J as RefreshIcon, I as RefreshLeftIcon, L as RefreshRightIcon, M as SearchIcon, oe as Select, K as SelectIcon, re as SelectOri, R as SortIcon, Ie as Space, h as SuccessIcon, N as SunIcon, ie as Switch, ve as Tabbar, ye as TabbarItem, Fe as Table, S as Tabs, Ae as Tag, be as Theme, xe as ThemeColor, z as ThemeDefaultIcon, g as WarnIcon, W as ZoomInIcon, G as ZoomOutIcon, f as addClickOutside, ce as autoUpdate, le as createPopoverObserver, ue as getOverflowAncestors, t as initAttr, n as kebabToCamel, r as parseAttrValue, de as popconfirmProps, i as regist, d as removeClickOutside, a as setAttrs, o as stopSignal, s as tagAttr, c as tagAttrs, l as unitNumberStr, fe as updatePosition, u as useId };
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 };
@@ -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?: string | HTMLElement | DocumentFragment;
44
- style?: string | string[];
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-Dg5u5dgr.js";
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-DStAHzod.js";
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]), super.connectedCallback(), this.infinite && (this.observer = new IntersectionObserver((e) => {
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
  }
@@ -0,0 +1,5 @@
1
+ //#region src/components/styles/mask/index.css?inline
2
+ var e = ".l-mask{z-index:var(--l-mask-zindex,100);opacity:1;background-color:#0009;transition:opacity .3s;position:fixed;inset:0}", t = new CSSStyleSheet();
3
+ t.replaceSync(e);
4
+ //#endregion
5
+ export { t };
@@ -28,8 +28,8 @@ export default class Menu extends BaseComponent<MenuState> {
28
28
  afterInit(): void;
29
29
  beforeDestroy(): void;
30
30
  render_v2(): {
31
- template?: string | HTMLElement | DocumentFragment;
32
- style?: string | string[];
31
+ style: string;
32
+ template: HTMLElement;
33
33
  };
34
34
  _handleClick: (e: Event) => void;
35
35
  /**
@@ -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
- template?: string | HTMLElement | DocumentFragment;
47
- style?: string | string[];
46
+ style: string[];
47
+ styleSheets: CSSStyleSheet[];
48
48
  };
49
49
  _setZIndex(): void;
50
50
  _setWidth(): void;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../modal-iwxqmAqW.js";
1
+ import { t as e } from "../modal-Cwi3qlEf.js";
2
2
  export { e as default };
@@ -1,10 +1,10 @@
1
1
  import { regist as e } from "../utils/index.js";
2
2
  import t from "../icon/info.js";
3
- import { t as n } from "../modal-iwxqmAqW.js";
3
+ import n from "../button/index.js";
4
4
  import r from "../icon/close.js";
5
- import { t as i } from "../form_item-CFIkfH29.js";
6
- import { t as a } from "../button-CDYYpQu6.js";
7
- import o from "../input/index.js";
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, o) {
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
- ...o
47
+ ...a
48
48
  };
49
49
  return u(i || "提示", t, n, "alert");
50
50
  });
51
51
  }
52
- function f(i, o, c) {
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(o || "提示", i, l, "confirm");
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
- o
75
+ a
76
76
  ]);
77
77
  let d = {
78
78
  showCancel: !0,