litos-ui 0.19.0 → 0.20.0
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/{base-LvfO4mmL.js → base-Dyj1rzaK.js} +11 -12
- package/lib/base.d.ts +2 -2
- package/lib/base.js +14 -10
- package/lib/button/index.js +1 -1
- package/lib/{button-CC5NBWtI.js → button-CDYYpQu6.js} +3 -4
- package/lib/calendar/index.js +1 -1
- package/lib/{calendar-Clbg3qot.js → calendar-CvlUsN6w.js} +20 -23
- package/lib/carousel/index.js +1 -1
- package/lib/carousel/item.js +1 -1
- package/lib/{carousel-Dgirxwzb.js → carousel-DvkZ1YXq.js} +23 -19
- package/lib/check/checkbox.js +1 -1
- package/lib/check/checkbox_group.js +1 -1
- package/lib/check/radio.js +1 -1
- package/lib/check/radio_group.js +1 -1
- package/lib/{check-BDOpD_0-.js → check-DFlwStH9.js} +10 -13
- package/lib/{check-CrlZ7zVL.js → check-doQ2ZpQj.js} +10 -10
- package/lib/{checkbox-D_bZGoUD.js → checkbox-DhGHJXwI.js} +1 -1
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/item.js +1 -1
- package/lib/{collapse-BRxYoeJx.js → collapse-B6-Rn05A.js} +8 -10
- package/lib/color_picker/index.js +1 -1
- package/lib/{color_picker-AaFcIczZ.js → color_picker-0a-IGZY9.js} +3 -3
- package/lib/date_picker/index.js +1 -1
- package/lib/{date_picker-HjkRma9j.js → date_picker-BDN2PAz5.js} +3 -7
- package/lib/date_picker_ori/index.js +1 -1
- package/lib/{date_picker_ori-1IOHZsan.js → date_picker_ori-BXFs1eET.js} +4 -6
- package/lib/description_panel/index.js +1 -1
- package/lib/{description_panel-DaqVcA6-.js → description_panel--AKXBzLL.js} +2 -6
- package/lib/dialog/dialog_container.js +1 -1
- package/lib/dialog/index.js +9 -7
- package/lib/{dialog_container-CcTyfoaD.js → dialog_container-Bq6HsKey.js} +7 -6
- package/lib/{esm-Cir9D6cn.js → esm-DAha108i.js} +67 -67
- package/lib/form/form_item.d.ts +1 -1
- package/lib/form/form_item.js +1 -1
- package/lib/form/index.d.ts +3 -3
- package/lib/form/index.js +1 -1
- package/lib/{form-BvZHaqAt.js → form-DJxvBiLy.js} +30 -32
- package/lib/{form_inner-52DR1IPu.js → form_inner-Cnwb6f_Q.js} +3 -5
- package/lib/{form_item-DtqChzc3.js → form_item-CFIkfH29.js} +3 -5
- package/lib/icon/arrow_down.js +1 -1
- package/lib/icon/arrow_left.js +1 -1
- package/lib/icon/arrow_right.js +1 -1
- package/lib/icon/arrow_up.js +1 -1
- package/lib/icon/base.js +1 -1
- package/lib/icon/calendar.js +1 -1
- package/lib/icon/caret_bottom.js +1 -1
- package/lib/icon/caret_top.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/close_filled.js +1 -1
- package/lib/icon/d_arrow_left.js +1 -1
- package/lib/icon/d_arrow_right.js +1 -1
- package/lib/icon/font_icon.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/loading.js +1 -1
- package/lib/icon/moon.js +1 -1
- package/lib/icon/more.js +1 -1
- package/lib/icon/reduction.js +1 -1
- package/lib/icon/refresh.js +1 -1
- package/lib/icon/refresh_left.js +1 -1
- package/lib/icon/refresh_right.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/select.js +1 -1
- package/lib/icon/sort.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/sun.js +1 -1
- package/lib/icon/theme_default.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/zoom_in.js +1 -1
- package/lib/icon/zoom_out.js +1 -1
- package/lib/image/image_preview.js +1 -1
- package/lib/image/index.js +1 -1
- package/lib/{image-BCUhVAFo.js → image-CVQai6NX.js} +19 -19
- package/lib/{image_preview-BeJzfEoF.js → image_preview-DfQAKSJH.js} +3 -5
- package/lib/index.js +36 -36
- package/lib/input/index.js +3 -5
- package/lib/{item-42bYhAkZ.js → item-CQ2Sknbz.js} +1 -1
- package/lib/{item-Dq6M7lxw.js → item-DI6mQXtB.js} +5 -7
- package/lib/{item-CX8C9X57.js → item-D_ZOPXuE.js} +1 -1
- package/lib/list/index.js +1 -1
- package/lib/{list-Dz1Ya118.js → list-Dg5u5dgr.js} +1 -1
- package/lib/loading/index.js +6 -4
- package/lib/mask/index.js +1 -1
- package/lib/{mask-BlDl9u8F.js → mask-Bx-yNIJv.js} +2 -6
- package/lib/md_input/index.js +1 -1
- package/lib/{md_input-DN3ceqsw.js → md_input-BX3bujz8.js} +2 -2
- package/lib/menu/index.d.ts +10 -2
- package/lib/menu/index.js +1 -1
- package/lib/menu-DKscK5mw.js +274 -0
- package/lib/message/index.js +1 -1
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal_box.js +4 -4
- package/lib/{modal-cjj3Nw1B.js → modal-iwxqmAqW.js} +11 -9
- package/lib/page_header/index.js +1 -1
- package/lib/{page_header-BfuWJIdd.js → page_header-ujV3pncE.js} +2 -4
- package/lib/pagination/index.d.ts +25 -18
- package/lib/pagination/index.js +1 -1
- package/lib/{pagination-DpOSOFwl.js → pagination-aRbGd3Rf.js} +86 -83
- package/lib/polygon/index.js +1 -1
- package/lib/{polygon-BY1FAACc.js → polygon-DhhovlrG.js} +1 -1
- package/lib/qrcode/index.js +1 -1
- package/lib/{qrcode-Bgr8gJzA.js → qrcode-Dip8uLSA.js} +1 -1
- package/lib/{radio-C7dkhgwc.js → radio-C9NPQWGI.js} +1 -1
- package/lib/select/index.js +1 -1
- package/lib/{select-Cis6kRjQ.js → select-BZMDj5VE.js} +33 -30
- package/lib/select_ori/index.js +1 -1
- package/lib/{select_ori-DcJbNYYr.js → select_ori-C7sUZxen.js} +3 -3
- package/lib/space/index.js +1 -1
- package/lib/{space-BT_dVhhv.js → space-CKuTk0YB.js} +6 -5
- package/lib/switch/index.js +1 -1
- package/lib/{switch-UyhlgW7F.js → switch-wh2-ivty.js} +11 -9
- package/lib/tabbar/index.js +1 -1
- package/lib/tabbar/item.js +1 -1
- package/lib/{tabbar-DO0kB58Y.js → tabbar-CBXK-_AV.js} +1 -1
- package/lib/table/index.d.ts +7 -3
- package/lib/table/index.js +1 -1
- package/lib/{table-saZMryiV.js → table-BQxMD2Ae.js} +32 -33
- package/lib/tabs/index.js +4 -2
- package/lib/tag/index.js +1 -1
- package/lib/{tag-BtDcKdxo.js → tag-Di1z9PoZ.js} +3 -5
- package/lib/theme/index.js +1 -1
- package/lib/theme/theme_color.js +4 -5
- package/lib/{theme-Barcq234.js → theme-CLbBS-in.js} +9 -10
- package/lib/utils/context_provide.js +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/popover.js +1 -1
- package/lib/utils/transition.js +1 -1
- package/package.json +11 -11
- package/lib/menu-BOmVa4xN.js +0 -224
package/lib/icon/refresh_left.js
CHANGED
package/lib/icon/search.js
CHANGED
package/lib/icon/select.js
CHANGED
package/lib/icon/sort.js
CHANGED
package/lib/icon/success.js
CHANGED
package/lib/icon/sun.js
CHANGED
package/lib/icon/warn.js
CHANGED
package/lib/icon/zoom_in.js
CHANGED
package/lib/icon/zoom_out.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../image_preview-
|
|
1
|
+
import { t as e } from "../image_preview-DfQAKSJH.js";
|
|
2
2
|
export { e as default };
|
package/lib/image/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../image-
|
|
1
|
+
import { t as e } from "../image-CVQai6NX.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "./base.js";
|
|
2
2
|
import { kebabToCamel as t, parseAttrValue as n } from "./utils/index.js";
|
|
3
|
-
import { $$ as r, $one as i, addClass as a, formatClass as o, off as s, on as c, removeClass as l, shouldEventNext as u } from "ph-utils/
|
|
3
|
+
import { $$ as r, $one as i, addClass as a, formatClass as o, off as s, on as c, removeClass as l, shouldEventNext as u } from "ph-utils/browser";
|
|
4
4
|
//#region src/components/image/index.less?inline
|
|
5
5
|
var d = ":host{vertical-align:middle;box-sizing:border-box;width:auto;height:auto;display:inline-flex}.l-image-inner{vertical-align:middle;object-fit:var(--l-image-fit,fill);width:100%;height:100%}.l-image-inner--preview{cursor:pointer}.l-image-hide{display:none}.l-image-fallback{background-color:#0000001a;justify-content:center;align-items:center;width:100%;height:100%;display:inline-flex}", f = class extends e {
|
|
6
6
|
static baseName = "image";
|
|
@@ -78,9 +78,7 @@ var d = ":host{vertical-align:middle;box-sizing:border-box;width:auto;height:aut
|
|
|
78
78
|
let a = n(i, this[e], e);
|
|
79
79
|
switch (a !== this[e] && (e === "previewImageList" ? this.setPreviewImageList(a ? a.split(",") : void 0) : this[e] = a), e) {
|
|
80
80
|
case "width":
|
|
81
|
-
case "height":
|
|
82
|
-
this.rendered && this._updateSize();
|
|
83
|
-
break;
|
|
81
|
+
case "height": this.rendered && this._updateSize();
|
|
84
82
|
}
|
|
85
83
|
}
|
|
86
84
|
render() {
|
|
@@ -104,22 +102,24 @@ var d = ":host{vertical-align:middle;box-sizing:border-box;width:auto;height:aut
|
|
|
104
102
|
this._imageInner && (s(this._imageInner, "click", this._onTap), s(this._imageInner, "error", this._onError), s(this._imageInner, "load", this._onLoad));
|
|
105
103
|
}
|
|
106
104
|
setIsError(e = !1) {
|
|
107
|
-
if (this.isError !== e)
|
|
108
|
-
if (
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
if (this.isError !== e) {
|
|
106
|
+
if (this.isError = e, e) {
|
|
107
|
+
if (!this.customFallback) {
|
|
108
|
+
this.fallback && this._imageInner && (this._imageInner.src = this.fallback);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
this._imageInner && a(this._imageInner, "l-image-hide");
|
|
112
|
+
let e = i(".l-image-fallback", this.root);
|
|
113
|
+
this.fallback || (e = r("div", {
|
|
114
|
+
class: "l-image-fallback",
|
|
115
|
+
part: "fallback",
|
|
116
|
+
innerHTML: "<slot name='fallback'></slot>"
|
|
117
|
+
}), this.root.appendChild(e));
|
|
118
|
+
} else {
|
|
119
|
+
this._imageInner && l(this._imageInner, "l-image-hide");
|
|
120
|
+
let e = i(".l-image-fallback", this.root);
|
|
121
|
+
e && e.remove();
|
|
111
122
|
}
|
|
112
|
-
this._imageInner && a(this._imageInner, "l-image-hide");
|
|
113
|
-
let e = i(".l-image-fallback", this.root);
|
|
114
|
-
this.fallback || (e = r("div", {
|
|
115
|
-
class: "l-image-fallback",
|
|
116
|
-
part: "fallback",
|
|
117
|
-
innerHTML: "<slot name='fallback'></slot>"
|
|
118
|
-
}), this.root.appendChild(e));
|
|
119
|
-
} else {
|
|
120
|
-
this._imageInner && l(this._imageInner, "l-image-hide");
|
|
121
|
-
let e = i(".l-image-fallback", this.root);
|
|
122
|
-
e && e.remove();
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
openPreview() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./mask-
|
|
2
|
-
import { $$ as t, $one as n, off as r, on as i } from "ph-utils/
|
|
1
|
+
import { t as e } from "./mask-Bx-yNIJv.js";
|
|
2
|
+
import { $$ as t, $one as n, off as r, on as i } from "ph-utils/browser";
|
|
3
3
|
//#region src/components/image/image_preview.less?inline
|
|
4
4
|
var a = ".l-image-preview--container{justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:relative}.l-image-preview__btn,.l-image-preview-operations{background-color:#606666;justify-content:center;align-items:center;display:flex}.l-image-preview__btn{z-index:1;opacity:.8;cursor:pointer;color:#fff;background-color:#606666;border:none;border-radius:50%;outline:none;justify-content:center;align-items:center;width:40px;height:40px;font-size:20px;transition:color .3s ease-in-out;display:flex;position:absolute}.l-image-preview__btn:hover{color:var(--l-primary-color,#4998f6)}.l-image-preview__close{top:30px;right:30px}.l-image-preview__prev,.l-image-preview__next{top:50%;transform:translateY(-50%)}.l-image-preview__prev{left:30px}.l-image-preview__next{right:30px}.l-image-preview-footer{z-index:1;flex-direction:column;align-items:center;display:flex;position:absolute;bottom:30px;left:50%;transform:translate(-50%)}.l-image-preview-progress{color:#fff;margin-bottom:10px}.l-image-preview-operations{cursor:default;border-radius:20px;padding:0 25px}.l-image-preview-operations .l-image-preview__btn{width:40px;position:static}.l-image-preview-img{vertical-align:middle;transform-origin:50%;user-select:none;z-index:0;max-width:calc(100vw - 40px);max-height:calc(100vh - 200px);transition:transform .25s}", o = class extends e {
|
|
5
5
|
static baseName = "image-preview";
|
|
@@ -69,9 +69,7 @@ var a = ".l-image-preview--container{justify-content:center;align-items:center;w
|
|
|
69
69
|
case "refresh-left":
|
|
70
70
|
this._rotate -= 90, this._updateImgAttr();
|
|
71
71
|
break;
|
|
72
|
-
case "refresh-right":
|
|
73
|
-
this._rotate += 90, this._updateImgAttr();
|
|
74
|
-
break;
|
|
72
|
+
case "refresh-right": this._rotate += 90, this._updateImgAttr();
|
|
75
73
|
}
|
|
76
74
|
return !0;
|
|
77
75
|
}
|
package/lib/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import e from "./base.js";
|
|
2
2
|
import { initAttr as t, kebabToCamel as n, parseAttrValue as r, regist as i, setAttrs as a, stopSignal as o, tagAttr as s, tagAttrs as c, unitNumberStr as l, useId as u } from "./utils/index.js";
|
|
3
3
|
import { remove as d, set as f } from "./utils/clickoutside.js";
|
|
4
|
-
import { t as p } from "./base-
|
|
4
|
+
import { t as p } from "./base-Dyj1rzaK.js";
|
|
5
5
|
import m from "./icon/close_filled.js";
|
|
6
6
|
import h from "./icon/success.js";
|
|
7
7
|
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-
|
|
11
|
+
import { t as b } from "./dialog_container-Bq6HsKey.js";
|
|
12
12
|
import x from "./loading/index.js";
|
|
13
13
|
import S from "./tabs/index.js";
|
|
14
|
-
import { t as C } from "./modal-
|
|
14
|
+
import { t as C } from "./modal-iwxqmAqW.js";
|
|
15
15
|
import w from "./icon/arrow_down.js";
|
|
16
16
|
import T from "./icon/arrow_left.js";
|
|
17
17
|
import E from "./icon/arrow_right.js";
|
|
@@ -37,42 +37,42 @@ import G from "./icon/zoom_out.js";
|
|
|
37
37
|
import K from "./icon/select.js";
|
|
38
38
|
import q from "./icon/calendar.js";
|
|
39
39
|
import J from "./icon/refresh.js";
|
|
40
|
-
import { t as Y } from "./form-
|
|
41
|
-
import { t as X } from "./form_item-
|
|
40
|
+
import { t as Y } from "./form-DJxvBiLy.js";
|
|
41
|
+
import { t as X } from "./form_item-CFIkfH29.js";
|
|
42
42
|
import Z from "./check/radio_group.js";
|
|
43
|
-
import { t as Q } from "./radio-
|
|
44
|
-
import { t as $ } from "./checkbox-
|
|
43
|
+
import { t as Q } from "./radio-C9NPQWGI.js";
|
|
44
|
+
import { t as $ } from "./checkbox-DhGHJXwI.js";
|
|
45
45
|
import ee from "./check/checkbox_group.js";
|
|
46
|
-
import { t as te } from "./button-
|
|
46
|
+
import { t as te } from "./button-CDYYpQu6.js";
|
|
47
47
|
import ne from "./input/index.js";
|
|
48
|
-
import { t as re } from "./select_ori-
|
|
49
|
-
import { t as ie } from "./switch-
|
|
50
|
-
import { t as ae } from "./md_input-
|
|
51
|
-
import { t as oe } from "./select-
|
|
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
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-
|
|
54
|
-
import { t as me } from "./date_picker_ori-
|
|
55
|
-
import { t as he } from "./color_picker-
|
|
56
|
-
import { t as ge } from "./list-
|
|
57
|
-
import { t as _e } from "./polygon-
|
|
58
|
-
import { t as ve } from "./tabbar-
|
|
59
|
-
import { t as ye } from "./item-
|
|
60
|
-
import { t as be } from "./theme-
|
|
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
61
|
import xe from "./theme/theme_color.js";
|
|
62
|
-
import { t as Se } from "./menu-
|
|
63
|
-
import { t as Ce } from "./carousel-
|
|
64
|
-
import { t as we } from "./item-
|
|
65
|
-
import { t as Te } from "./qrcode-
|
|
66
|
-
import { t as Ee } from "./description_panel
|
|
67
|
-
import { t as De } from "./pagination-
|
|
68
|
-
import { t as Oe } from "./mask-
|
|
69
|
-
import { t as ke } from "./page_header-
|
|
70
|
-
import { t as Ae } from "./tag-
|
|
71
|
-
import { t as je } from "./collapse-
|
|
72
|
-
import { t as Me } from "./item-
|
|
73
|
-
import { t as Ne } from "./image-
|
|
74
|
-
import { t as Pe } from "./image_preview-
|
|
75
|
-
import { t as Fe } from "./table-
|
|
76
|
-
import { t as Ie } from "./space-
|
|
77
|
-
import { t as Le } from "./calendar-
|
|
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
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 };
|
package/lib/input/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { parseAttrValue as e, unitNumberStr as t } from "../utils/index.js";
|
|
2
|
-
import { t as n } from "../form_inner-
|
|
2
|
+
import { t as n } from "../form_inner-Cnwb6f_Q.js";
|
|
3
3
|
import { t as r } from "../input-DUBlLEXS.js";
|
|
4
4
|
import { t as i } from "../input_inner-x4GfLGjj.js";
|
|
5
|
-
import { $ as a, $$ as o, $one as s, addClass as c, formatStyle as l, off as u, on as d, removeClass as f } from "ph-utils/
|
|
5
|
+
import { $ as a, $$ as o, $one as s, addClass as c, formatStyle as l, off as u, on as d, removeClass as f } from "ph-utils/browser";
|
|
6
6
|
//#region src/components/input/index.ts
|
|
7
7
|
var p = class extends n {
|
|
8
8
|
static baseName = "input";
|
|
@@ -62,9 +62,7 @@ var p = class extends n {
|
|
|
62
62
|
let r = e(i, !1, n);
|
|
63
63
|
this._state[n] = r;
|
|
64
64
|
break;
|
|
65
|
-
case "width":
|
|
66
|
-
this._state.width = t(i);
|
|
67
|
-
break;
|
|
65
|
+
case "width": this._state.width = t(i);
|
|
68
66
|
}
|
|
69
67
|
}
|
|
70
68
|
updateDOM(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e from "./base.js";
|
|
2
|
-
import { $$ as t } from "ph-utils/
|
|
2
|
+
import { $$ as t } from "ph-utils/browser";
|
|
3
3
|
//#region src/components/carousel/item.less?inline
|
|
4
4
|
var n = ":host{width:var(--carousel-width,100%);box-sizing:border-box;height:100%;display:block}:host(.active){display:block}", r = class extends e {
|
|
5
5
|
static baseName = "carousel-item";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./base.js";
|
|
2
2
|
import { kebabToCamel as t, parseAttrValue as n, stopSignal as r } from "./utils/index.js";
|
|
3
|
-
import { t as i } from "./esm-
|
|
4
|
-
import { $$ as a, $one as o, off as s, on as c, queryHideNodeSize as l } from "ph-utils/
|
|
3
|
+
import { t as i } from "./esm-DAha108i.js";
|
|
4
|
+
import { $$ as a, $one as o, off as s, on as c, queryHideNodeSize as l } from "ph-utils/browser";
|
|
5
5
|
//#region src/components/collapse/item.less?inline
|
|
6
6
|
var u = ":host{box-sizing:border-box;border-bottom:1px solid var(--l-collapse-border-color);color:#333;font-size:14px;display:block}.l-collapse-item__header{cursor:pointer;justify-content:flex-start;align-items:center;gap:5px;padding:10px 0;display:flex}.l-collapse-item__header.arrow-right{flex-direction:row-reverse;justify-content:flex-end}.l-collapse-item__header.space-between{justify-content:space-between}.l-collapse-arrow-icon{transition:transform .3s;transform:rotate(0)}.l-collapse-content{box-sizing:border-box;transition:height .3s;overflow-y:hidden}.l-collapse-content-box{padding-bottom:15px}:host(.l-collapse-expand) .l-collapse-arrow-icon{transform:rotate(90deg)}:host(.background){border-left:1px solid var(--l-collapse-border-color);border-right:1px solid var(--l-collapse-border-color);background-color:#00000005}:host(.background:first-child),:host(.background.space){border-top:1px solid var(--l-collapse-border-color)}:host(.background) .l-collapse-item__header{padding:10px 15px}:host(.background) .l-collapse-content{border-top:1px solid var(--l-collapse-border-color);background:#fff}:host(.background) .l-collapse-content-box{padding:15px}:host(:first-child){border-top-left-radius:var(--l-collapse-border-radius,0px);border-top-right-radius:var(--l-collapse-border-radius,0px)}:host(:last-child){border-bottom-left-radius:var(--l-collapse-border-radius,0px);border-bottom-right-radius:var(--l-collapse-border-radius,0px)}:host(.space){border-radius:var(--l-collapse-border-radius,0px)}", d = class extends e {
|
|
7
7
|
static baseName = "collapse-item";
|
|
@@ -39,7 +39,6 @@ var u = ":host{box-sizing:border-box;border-bottom:1px solid var(--l-collapse-bo
|
|
|
39
39
|
case "expand":
|
|
40
40
|
let r = n(i, !1, "expand");
|
|
41
41
|
r !== this._state.expand && (this._state.expand = r);
|
|
42
|
-
break;
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
render_v2() {
|
|
@@ -105,14 +104,13 @@ var u = ":host{box-sizing:border-box;border-bottom:1px solid var(--l-collapse-bo
|
|
|
105
104
|
} });
|
|
106
105
|
};
|
|
107
106
|
_createContentElement(e = !0) {
|
|
108
|
-
|
|
107
|
+
return a("div", {
|
|
109
108
|
class: "l-collapse-content",
|
|
110
109
|
style: e ? "display: none;" : ""
|
|
111
|
-
}
|
|
112
|
-
return a("div", {
|
|
110
|
+
}, [a("div", {
|
|
113
111
|
class: "l-collapse-content-box",
|
|
114
112
|
innerHTML: "<slot></slot>"
|
|
115
|
-
}
|
|
113
|
+
})]);
|
|
116
114
|
}
|
|
117
115
|
};
|
|
118
116
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "./base.js";
|
|
2
2
|
import { parseAttrValue as t } from "./utils/index.js";
|
|
3
|
-
import { $$ as n, $one as r, addClass as i, removeClass as a } from "ph-utils/
|
|
3
|
+
import { $$ as n, $one as r, addClass as i, removeClass as a } from "ph-utils/browser";
|
|
4
4
|
//#region src/components/tabbar/item.less?inline
|
|
5
5
|
var o = ":host{color:#666;cursor:pointer;flex-direction:column;flex-grow:var(--l-tabbar-item-grow,0);box-sizing:border-box;justify-content:center;align-items:center;line-height:1;transition:all .3s ease-in-out;display:inline-flex}:host(:hover){color:var(--l-tabbar-hover-color)}:host(.active){color:var(--l-tabbar-active-color)}.icon-wrapper{justify-content:center;align-items:center;margin-bottom:3px;font-size:18px;display:flex}.icon-wrapper.only{margin-bottom:0;font-size:24px}:host(.l-item--card){background:#f5f7fa;border:1px solid #f0f0f0;padding:0 15px}:host(.l-item--card:first-child){border-top-left-radius:var(--l-tabbar-card-border-radius)}:host(.l-item--card:last-child){border-top-right-radius:var(--l-tabbar-card-border-radius)}:host(.l-item--card.active){background:#fff}:host(.l-item--gap){border-top-left-radius:var(--l-tabbar-card-border-radius);border-top-right-radius:var(--l-tabbar-card-border-radius)}", s = class extends e {
|
|
6
6
|
static baseName = "tabbar-item";
|
package/lib/list/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../list-
|
|
1
|
+
import { t as e } from "../list-Dg5u5dgr.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./base.js";
|
|
2
2
|
import { parseAttrValue as t } from "./utils/index.js";
|
|
3
3
|
import { t as n } from "./animation-DStAHzod.js";
|
|
4
|
-
import { $one as r } from "ph-utils/
|
|
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 {
|
|
7
7
|
static baseName = "list";
|
package/lib/loading/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, $$ as t, $one as n, addClass as r, hasClass as i, iterate as a } from "ph-utils/
|
|
1
|
+
import { $ as e, $$ as t, $one as n, addClass as r, hasClass as i, iterate as a } from "ph-utils/browser";
|
|
2
2
|
//#region src/components/loading/index.ts
|
|
3
3
|
function o(e, a) {
|
|
4
4
|
if (i(e, "l-loading")) return;
|
|
@@ -86,7 +86,7 @@ function l(e) {
|
|
|
86
86
|
background: e.getAttribute("l-loading-background"),
|
|
87
87
|
text: t ? t === "0" || t === "false" ? void 0 : t : "加载中……",
|
|
88
88
|
fullscreen: e.hasAttribute("l-loading-fullscreen"),
|
|
89
|
-
lock:
|
|
89
|
+
lock: n !== "0" && n !== "false",
|
|
90
90
|
mask: Number(e.hasAttribute("l-loading-mask") || 2),
|
|
91
91
|
shape: e.getAttribute("l-loading-shape") || "circle",
|
|
92
92
|
color: e.getAttribute("l-loading-color")
|
|
@@ -97,13 +97,15 @@ var u = {
|
|
|
97
97
|
return new c(e);
|
|
98
98
|
},
|
|
99
99
|
init(t) {
|
|
100
|
-
|
|
100
|
+
let n = t ? `[l-loading="${t}"]` : "[l-loading]", r = e(n);
|
|
101
|
+
a(r, (e) => {
|
|
101
102
|
let t = l(e);
|
|
102
103
|
o(t.fullscreen ? document.body : e, t);
|
|
103
104
|
});
|
|
104
105
|
},
|
|
105
106
|
close(t) {
|
|
106
|
-
|
|
107
|
+
let n = t ? `[l-loading="${t}"]` : "[l-loading]", r = e(n);
|
|
108
|
+
a(r, (e) => {
|
|
107
109
|
let t = l(e);
|
|
108
110
|
s(t.fullscreen ? document.body : e, t);
|
|
109
111
|
});
|
package/lib/mask/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../mask-
|
|
1
|
+
import { t as e } from "../mask-Bx-yNIJv.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "./base.js";
|
|
2
2
|
import { kebabToCamel as t, parseAttrValue as n } from "./utils/index.js";
|
|
3
|
-
import { $$ as r, $one as i, addClass as a, hasClass as o, off as s, on as c, removeClass as l, shouldEventNext as u, transition as d } from "ph-utils/
|
|
3
|
+
import { $$ as r, $one as i, addClass as a, hasClass as o, off as s, on as c, removeClass as l, shouldEventNext as u, transition as d } from "ph-utils/browser";
|
|
4
4
|
//#region src/components/mask/index.less?inline
|
|
5
5
|
var f = ":host{display:none;position:relative}:host(.open){display:block}.l-mask,.l-panel{opacity:1;position:fixed;inset:0}.l-mask{z-index:var(--l-mask-zindex,100);background-color:#00000080}.l-panel{z-index:calc(var(--l-mask-zindex,100) + 1);color:#fff}", p = class extends e {
|
|
6
6
|
static baseName = "mask";
|
|
@@ -31,11 +31,7 @@ var f = ":host{display:none;position:relative}:host(.open){display:block}.l-mask
|
|
|
31
31
|
attributeChangedCallback(e, r, i) {
|
|
32
32
|
e = t(e);
|
|
33
33
|
let a = n(i, this[e], e);
|
|
34
|
-
|
|
35
|
-
case "zIndex":
|
|
36
|
-
a === 100 ? this.style.removeProperty("--l-mask-zindex") : this.style.setProperty("--l-mask-zindex", a);
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
34
|
+
a !== this[e] && (this[e] = a, e === "zIndex") && (a === 100 ? this.style.removeProperty("--l-mask-zindex") : this.style.setProperty("--l-mask-zindex", a));
|
|
39
35
|
}
|
|
40
36
|
render() {
|
|
41
37
|
let e = document.createDocumentFragment(), t = r("div", {
|
package/lib/md_input/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../md_input-
|
|
1
|
+
import { t as e } from "../md_input-BX3bujz8.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { initAttr as e } from "./utils/index.js";
|
|
2
|
-
import { t } from "./form_inner-
|
|
3
|
-
import { $$ as n, $one as r, addClass as i, off as a, on as o, removeClass as s } from "ph-utils/
|
|
2
|
+
import { t } from "./form_inner-Cnwb6f_Q.js";
|
|
3
|
+
import { $$ as n, $one as r, addClass as i, off as a, on as o, removeClass as s } from "ph-utils/browser";
|
|
4
4
|
import { isBlank as c, random as l } from "ph-utils";
|
|
5
5
|
//#region src/components/md_input/index.less?inline
|
|
6
6
|
var u = ":host{--l-input-width:180px;width:var(--l-input-width,180px);height:var(--l-form-control-height,32px);display:inline-block;position:relative}.l-md-input__inner{box-sizing:border-box;background:0 0;border:0 solid silver;border-bottom-width:1px;outline:none;width:100%;height:100%;transition:border-color .3s}.l-md-input__inner:focus{border-color:var(--l-primary-color,#722ed1)}:host(.l-has-value) .l-md-input__label,.l-md-input__inner:focus+.l-md-input__label{font-size:12px;transform:translateY(-150%)}.l-md-input__inner:focus+.l-md-input__label{color:var(--nt-primary-color,#722ed1)}.l-md-input__label{color:#8c8c8c;cursor:text;align-items:center;font-size:13px;line-height:1;transition:color .3s,transform .3s;display:flex;position:absolute;top:50%;bottom:0;left:0;transform:translateY(-50%)}:host(.l-md-input-outline){--l-input-label-background:#fff}:host(.l-md-input-outline) .l-md-input__inner{border-width:1px;border-radius:4px;padding:0 10px}:host(.l-md-input-outline) .l-md-input__label{left:10px}:host(.l-md-input-outline) .l-md-input__inner:focus{border-width:2px}:host(.l-md-input-outline) .l-md-input__inner:focus+.l-md-input__label,:host(.l-md-input-outline.l-has-value) .l-md-input__label{background-color:#fff;padding-left:4px;padding-right:4px}", d = class extends t {
|
package/lib/menu/index.d.ts
CHANGED
|
@@ -5,18 +5,26 @@ type MenuState = {
|
|
|
5
5
|
accordion?: boolean;
|
|
6
6
|
/** 当前选中的菜单项 key 数组, 用 , 分割 */
|
|
7
7
|
selectedIndex: string;
|
|
8
|
+
/** 是否压缩菜单 */
|
|
9
|
+
collapsed?: boolean;
|
|
10
|
+
/** 压缩后菜单宽度 */
|
|
11
|
+
collapsedWidth?: string;
|
|
12
|
+
/** 图标大小 */
|
|
13
|
+
iconSize?: string;
|
|
14
|
+
/** 压缩后图标大小 */
|
|
15
|
+
collapsedIconSize?: string;
|
|
8
16
|
};
|
|
9
17
|
export default class Menu extends BaseComponent<MenuState> {
|
|
10
18
|
#private;
|
|
11
19
|
static baseName: string;
|
|
12
|
-
/** 是否手风琴模式, 只有一个子菜单展开 */
|
|
13
|
-
accordion: boolean;
|
|
14
20
|
private _items;
|
|
15
21
|
private _menuEl?;
|
|
16
22
|
private _activeKeys;
|
|
17
23
|
constructor();
|
|
18
24
|
static get observedAttributes(): string[];
|
|
19
25
|
protected attributeChanged(name: string, oldValue: string, newValue: string): void;
|
|
26
|
+
protected updateDOM(changedProps: Set<string>): void;
|
|
27
|
+
setStyleProperty(k: string, v: string | undefined | null): void;
|
|
20
28
|
afterInit(): void;
|
|
21
29
|
beforeDestroy(): void;
|
|
22
30
|
render_v2(): {
|
package/lib/menu/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../menu-
|
|
1
|
+
import { t as e } from "../menu-DKscK5mw.js";
|
|
2
2
|
export { e as default };
|