litos-ui 0.18.2 → 0.18.4
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/button/index.d.ts +2 -1
- package/lib/button/index.js +1 -1
- package/lib/{button-CBoYJ9Tt.js → button-CC5NBWtI.js} +23 -23
- package/lib/calendar/index.js +1 -1
- package/lib/carousel/index.js +1 -1
- package/lib/carousel/item.js +1 -1
- 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-CvGaONEx.js → check-BQWzxdO2.js} +2 -2
- package/lib/{check-B0XraJvb.js → check-CuKgzwRS.js} +2 -2
- package/lib/{checkbox-DbWsmAaL.js → checkbox-CNluBmyo.js} +1 -1
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/item.js +1 -1
- package/lib/{collapse-C3IRHLeg.js → collapse-BRxYoeJx.js} +1 -1
- package/lib/color_picker/index.js +1 -1
- package/lib/{color_picker-DYN8DCng.js → color_picker-fDdSa0hC.js} +2 -2
- package/lib/date_picker/index.js +1 -1
- package/lib/{date_picker-DQGoiN8v.js → date_picker-DHCCvMnX.js} +2 -2
- package/lib/date_picker_ori/index.js +1 -1
- package/lib/{date_picker_ori-aRuSSi9D.js → date_picker_ori-JXqzXaYz.js} +1 -1
- package/lib/description_panel/index.js +1 -1
- package/lib/dialog/dialog_container.js +1 -1
- package/lib/esm-Cir9D6cn.js +270 -0
- package/lib/form/form_item.d.ts +6 -0
- package/lib/form/form_item.js +1 -1
- package/lib/form/index.d.ts +8 -0
- package/lib/form/index.js +1 -1
- package/lib/{form-DdU0yK0k.js → form-uOybauzi.js} +38 -24
- package/lib/{form_inner-DR9tyB_r.js → form_inner-B7IMSpMf.js} +1 -1
- package/lib/form_item-DtqChzc3.js +149 -0
- 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_preview-CYEup07F.js → image_preview-BeJzfEoF.js} +1 -1
- package/lib/index.js +35 -35
- package/lib/input/index.js +11 -5
- package/lib/{item-DRsOV_Tc.js → item-Dq6M7lxw.js} +1 -1
- package/lib/list/index.js +1 -1
- package/lib/{list-CU7vHS6s.js → list-Dz1Ya118.js} +1 -1
- package/lib/loading/index.js +4 -4
- package/lib/mask/index.js +1 -1
- package/lib/md_input/index.js +1 -1
- package/lib/{md_input-DSQx5TMW.js → md_input-DHz8GRs3.js} +1 -1
- package/lib/menu/index.js +1 -1
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal_box.js +3 -3
- package/lib/page_header/index.js +1 -1
- package/lib/pagination/index.js +1 -1
- package/lib/polygon/index.js +1 -1
- package/lib/qrcode/index.js +1 -1
- package/lib/{radio-2mNSYujz.js → radio-C8FTHdm3.js} +1 -1
- package/lib/select/index.js +1 -1
- package/lib/{select-CAgggYh7.js → select-CnwPEFQ3.js} +1 -1
- package/lib/select_ori/index.js +2 -2
- package/lib/space/index.js +1 -1
- package/lib/switch/index.js +1 -1
- package/lib/{switch-BaVBi5Ip.js → switch-DDNxkTiM.js} +1 -1
- package/lib/tabbar/index.js +1 -1
- package/lib/tabbar/item.js +1 -1
- package/lib/table/index.js +1 -1
- package/lib/tag/index.js +1 -1
- package/lib/theme/index.js +1 -1
- package/lib/utils/event.js +1 -1
- package/package.json +65 -65
- package/lib/esm-sVEoAVPu.js +0 -244
- package/lib/form_item-Bv-YafZK.js +0 -137
- /package/lib/{animation-CTt9qgA7.js → animation-DStAHzod.js} +0 -0
- /package/lib/{base-Dm0WS1pK.js → base-LvfO4mmL.js} +0 -0
- /package/lib/{calendar-GpYHNmXG.js → calendar-Clbg3qot.js} +0 -0
- /package/lib/{carousel-dT3FJPQo.js → carousel-Dgirxwzb.js} +0 -0
- /package/lib/{description_panel-BY2yljeC.js → description_panel-DaqVcA6-.js} +0 -0
- /package/lib/{dialog_container-DcN87wj0.js → dialog_container-CcTyfoaD.js} +0 -0
- /package/lib/{image-COPKk8Jm.js → image-BCUhVAFo.js} +0 -0
- /package/lib/{input-UfukfZIy.js → input-DUBlLEXS.js} +0 -0
- /package/lib/{input_inner-BKJg9n9A.js → input_inner-x4GfLGjj.js} +0 -0
- /package/lib/{item-B7Elh5xE.js → item-42bYhAkZ.js} +0 -0
- /package/lib/{item-CvoJt3wp.js → item-CX8C9X57.js} +0 -0
- /package/lib/{mask-CEznzwji.js → mask-BlDl9u8F.js} +0 -0
- /package/lib/{menu-CzV6lOlw.js → menu-BOmVa4xN.js} +0 -0
- /package/lib/{modal-DWyWrN-D.js → modal-cjj3Nw1B.js} +0 -0
- /package/lib/{page_header-BJkEstRw.js → page_header-BfuWJIdd.js} +0 -0
- /package/lib/{pagination-5t7AOeFV.js → pagination-DpOSOFwl.js} +0 -0
- /package/lib/{polygon-C4Ow2lxi.js → polygon-BY1FAACc.js} +0 -0
- /package/lib/{qrcode-BKG2MibP.js → qrcode-Bgr8gJzA.js} +0 -0
- /package/lib/{space-Bv-p0DL8.js → space-BT_dVhhv.js} +0 -0
- /package/lib/{tabbar-CI1xSj1G.js → tabbar-DO0kB58Y.js} +0 -0
- /package/lib/{table-DfL2hFqA.js → table-saZMryiV.js} +0 -0
- /package/lib/{tag-72DwCkvq.js → tag-BtDcKdxo.js} +0 -0
- /package/lib/{theme-BRTI2-Yk.js → theme-DBghUmYD.js} +0 -0
package/lib/input/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { parseAttrValue as e, unitNumberStr as t } from "../utils/index.js";
|
|
2
|
-
import { t as n } from "../form_inner-
|
|
3
|
-
import { t as r } from "../input-
|
|
4
|
-
import { t as i } from "../input_inner-
|
|
2
|
+
import { t as n } from "../form_inner-B7IMSpMf.js";
|
|
3
|
+
import { t as r } from "../input-DUBlLEXS.js";
|
|
4
|
+
import { t as i } from "../input_inner-x4GfLGjj.js";
|
|
5
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/dom";
|
|
6
6
|
//#region src/components/input/index.ts
|
|
7
7
|
var p = class extends n {
|
|
@@ -68,7 +68,7 @@ var p = class extends n {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
updateDOM(e) {
|
|
71
|
-
e.has("clearable") && (this._state.clearable ? c(this, "l-input--clearable") : f(this, "l-input--clearable")), e.has("error") && this._updateError(this._state.error != null), e.has("maxlength") && this._updateAttr("maxlength", this._state.maxlength), e.has("minlength") && this._updateAttr("minlength", this._state.minlength), e.has("inputmode") && this._updateAttr("inputmode", this._state.inputmode), e.has("block") && this.innerBlockChange(this._state.block);
|
|
71
|
+
e.has("clearable") && (this._state.clearable ? c(this, "l-input--clearable") : f(this, "l-input--clearable")), e.has("error") && this._updateError(this._state.error != null), e.has("maxlength") && this._updateAttr("maxlength", this._state.maxlength), e.has("minlength") && this._updateAttr("minlength", this._state.minlength), e.has("inputmode") && this._updateAttr("inputmode", this._state.inputmode), e.has("block") && this.innerBlockChange(this._state.block), e.has("placeholder") && this.$inner && (this.$inner.placeholder = this._state.placeholder);
|
|
72
72
|
}
|
|
73
73
|
_updateAttr(e, t) {
|
|
74
74
|
this.$inner && (t ? this.$inner.setAttribute(e, t) : this.$inner.removeAttribute(e));
|
|
@@ -126,7 +126,13 @@ var p = class extends n {
|
|
|
126
126
|
precision: t
|
|
127
127
|
}), r = String(r);
|
|
128
128
|
}
|
|
129
|
-
this.parser != null && (r = this.parser(r))
|
|
129
|
+
this.parser != null && (r = this.parser(r));
|
|
130
|
+
try {
|
|
131
|
+
this._calcCurosorPosition(t, r);
|
|
132
|
+
} catch (e) {
|
|
133
|
+
console.warn(e);
|
|
134
|
+
}
|
|
135
|
+
this.setValue(r), this.#e();
|
|
130
136
|
};
|
|
131
137
|
#e() {
|
|
132
138
|
if (this._state.clearable) {
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
+
import { t as i } from "./esm-Cir9D6cn.js";
|
|
4
4
|
import { $$ as a, $one as o, off as s, on as c, queryHideNodeSize as l } from "ph-utils/dom";
|
|
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 {
|
package/lib/list/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../list-
|
|
1
|
+
import { t as e } from "../list-Dz1Ya118.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-DStAHzod.js";
|
|
4
4
|
import { $one as r } from "ph-utils/dom";
|
|
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 {
|
package/lib/loading/index.js
CHANGED
|
@@ -39,12 +39,12 @@ function s(e, t) {
|
|
|
39
39
|
let i = e.tagName === "BODY" ? "body" : ".l-loading", a = n(`${i} > .l-loading-mask`, e), o = n(`${i} > .l-loading-spinner`, e);
|
|
40
40
|
if (!o) return;
|
|
41
41
|
function s() {
|
|
42
|
-
a
|
|
43
|
-
let t = ["l-loading"];
|
|
44
|
-
e.tagName === "BODY" && t.push("l-loading-fullscreen", "l-loading-lock"), e.classList.remove(...t);
|
|
42
|
+
a &&= (a.remove(), null), o.remove(), o = null, e.classList.remove("l-loading", "l-loading-fullscreen", "l-loading-lock");
|
|
45
43
|
}
|
|
46
44
|
o.addEventListener("transitionend", s, { once: !0 }), requestAnimationFrame(() => {
|
|
47
|
-
a && (a.style.opacity = "0"), r(o, "l-loading-bar--finish"), o.style.opacity = "0"
|
|
45
|
+
a && (a.style.opacity = "0"), r(o, "l-loading-bar--finish"), o.style.opacity = "0", setTimeout(() => {
|
|
46
|
+
s();
|
|
47
|
+
}, 3e3);
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
var c = class {
|
package/lib/mask/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../mask-
|
|
1
|
+
import { t as e } from "../mask-BlDl9u8F.js";
|
|
2
2
|
export { e as default };
|
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-DHz8GRs3.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initAttr as e } from "./utils/index.js";
|
|
2
|
-
import { t } from "./form_inner-
|
|
2
|
+
import { t } from "./form_inner-B7IMSpMf.js";
|
|
3
3
|
import { $$ as n, $one as r, addClass as i, off as a, on as o, removeClass as s } from "ph-utils/dom";
|
|
4
4
|
import { isBlank as c, random as l } from "ph-utils";
|
|
5
5
|
//#region src/components/md_input/index.less?inline
|
package/lib/menu/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../menu-
|
|
1
|
+
import { t as e } from "../menu-BOmVa4xN.js";
|
|
2
2
|
export { e as default };
|
package/lib/modal/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../modal-
|
|
1
|
+
import { t as e } from "../modal-cjj3Nw1B.js";
|
|
2
2
|
export { e as default };
|
package/lib/modal/modal_box.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
3
|
+
import { t as n } from "../modal-cjj3Nw1B.js";
|
|
4
4
|
import r from "../icon/close.js";
|
|
5
|
-
import { t as i } from "../form_item-
|
|
6
|
-
import { t as a } from "../button-
|
|
5
|
+
import { t as i } from "../form_item-DtqChzc3.js";
|
|
6
|
+
import { t as a } from "../button-CC5NBWtI.js";
|
|
7
7
|
import o from "../input/index.js";
|
|
8
8
|
import { $$ as s, $one as c, on as l } from "ph-utils/dom";
|
|
9
9
|
//#region src/components/modal/modal_box.ts
|
package/lib/page_header/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../page_header-
|
|
1
|
+
import { t as e } from "../page_header-BfuWJIdd.js";
|
|
2
2
|
export { e as default };
|
package/lib/pagination/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../pagination-
|
|
1
|
+
import { t as e } from "../pagination-DpOSOFwl.js";
|
|
2
2
|
export { e as default };
|
package/lib/polygon/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../polygon-
|
|
1
|
+
import { t as e } from "../polygon-BY1FAACc.js";
|
|
2
2
|
export { e as default };
|
package/lib/qrcode/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../qrcode-
|
|
1
|
+
import { t as e } from "../qrcode-Bgr8gJzA.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./check-
|
|
1
|
+
import { n as e, t } from "./check-BQWzxdO2.js";
|
|
2
2
|
//#region src/components/check/radio.less?inline
|
|
3
3
|
var n = ".l-check__inner{border-radius:50%}.l-check__inner:after{content:\"\";background-color:#0000;border-radius:50%;width:60%;height:60%;transition:background-color .3s ease-in-out;display:block}:host(.is-checked) .l-check__inner:after{background-color:var(--l-primary-color,#722ed1)}:host(.is-disabled) .l-check__inner{border-color:var(--l-disabled-color,#e6e6e6)}:host(.is-disabled) .l-check__inner:after{background-color:var(--l-disabled-color,#e6e6e6)}", r = class extends e {
|
|
4
4
|
static baseName = "radio";
|
package/lib/select/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { kebabToCamel as e, parseAttrValue as t } from "./utils/index.js";
|
|
2
|
-
import { t as n } from "./form_inner-
|
|
2
|
+
import { t as n } from "./form_inner-B7IMSpMf.js";
|
|
3
3
|
import { Popover as r } from "./utils/popover.js";
|
|
4
4
|
import { $ as i, $$ as a, $one as o, iterate as s, off as c, on as l, shouldEventNext as u } from "ph-utils/dom";
|
|
5
5
|
import { debounce as d } from "ph-utils/web";
|
package/lib/select_ori/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tagAttrs as e } from "../utils/index.js";
|
|
2
|
-
import { t } from "../form_inner-
|
|
3
|
-
import { t as n } from "../input-
|
|
2
|
+
import { t } from "../form_inner-B7IMSpMf.js";
|
|
3
|
+
import { t as n } from "../input-DUBlLEXS.js";
|
|
4
4
|
import { $one as r, off as i, on as a } from "ph-utils/dom";
|
|
5
5
|
//#region src/components/select_ori/index.ts
|
|
6
6
|
var o = class extends t {
|
package/lib/space/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../space-
|
|
1
|
+
import { t as e } from "../space-BT_dVhhv.js";
|
|
2
2
|
export { e as default };
|
package/lib/switch/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../switch-
|
|
1
|
+
import { t as e } from "../switch-DDNxkTiM.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initAttr as e } from "./utils/index.js";
|
|
2
|
-
import { t } from "./form_inner-
|
|
2
|
+
import { t } from "./form_inner-B7IMSpMf.js";
|
|
3
3
|
import { $one as n, addClass as r, off as i, on as a, removeClass as o } from "ph-utils/dom";
|
|
4
4
|
//#region src/components/switch/index.less?inline
|
|
5
5
|
var s = ":host{box-sizing:border-box;--l-switch-height:22px;--l-switch-width:40px;width:auto;width:var(--l-switch-width);height:var(--l-switch-height);border-radius:calc(var(--l-switch-height) / 2);cursor:pointer;vertical-align:middle;background-color:#dcdfe6;border:1px solid #c2c2c2;justify-content:flex-start;align-items:center;padding:2px;transition:all .3s ease-in-out;display:inline-flex;position:relative}:host(:hover),:host(.l-switch--checked):hover{border-color:var(--l-primary-color,#722ed1)}:host(.l-switch--checked){background-color:var(--l-primary-color,#722ed1);border-color:var(--l-primary-color,#722ed1)}.l-switch-action{width:calc(var(--l-switch-height) - 6px);box-sizing:border-box;background-color:#fff;border-radius:50%;justify-content:center;align-items:center;padding:2px;font-size:12px;transition:all .3s ease-in-out;display:flex;position:absolute;top:2px;bottom:2px;left:2px}.l-switch-text{color:#fff;padding-left:calc(var(--l-switch-width) - 20px);transition:padding-left .3s ease-in-out}:host(.l-switch--checked) .l-switch-action{left:calc(var(--l-switch-width) - var(--l-switch-height) + 3px)}:host(.l-switch--checked) .l-switch-text{padding-left:5px}", c = class extends t {
|
package/lib/tabbar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../tabbar-
|
|
1
|
+
import { t as e } from "../tabbar-DO0kB58Y.js";
|
|
2
2
|
export { e as default };
|
package/lib/tabbar/item.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../item-
|
|
1
|
+
import { t as e } from "../item-CX8C9X57.js";
|
|
2
2
|
export { e as default };
|
package/lib/table/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../table-
|
|
1
|
+
import { t as e } from "../table-saZMryiV.js";
|
|
2
2
|
export { e as default };
|
package/lib/tag/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../tag-
|
|
1
|
+
import { t as e } from "../tag-BtDcKdxo.js";
|
|
2
2
|
export { e as default };
|
package/lib/theme/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../theme-
|
|
1
|
+
import { t as e } from "../theme-DBghUmYD.js";
|
|
2
2
|
export { e as default };
|
package/lib/utils/event.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/components/utils/event.ts
|
|
2
2
|
var e;
|
|
3
3
|
function t(t, n, r) {
|
|
4
|
-
e ??= /* @__PURE__ */ new Map(), e.has(t) || e.set(t, new Map([[n, /* @__PURE__ */ new Set()]])), e.get(t).has(n) || e.get(t).set(n, /* @__PURE__ */ new Set()), e.get(t).get(n).add(r);
|
|
4
|
+
e ??= /* @__PURE__ */ new Map(), e.has(t) || e.set(t, /* @__PURE__ */ new Map([[n, /* @__PURE__ */ new Set()]])), e.get(t).has(n) || e.get(t).set(n, /* @__PURE__ */ new Set()), e.get(t).get(n).add(r);
|
|
5
5
|
}
|
|
6
6
|
function n(t, n, r) {
|
|
7
7
|
e?.get(t)?.get(n)?.delete(r), e?.get(t)?.get(n)?.size == 0 && e.get(t)?.delete(n), e?.get(t)?.size == 0 && e.delete(t), e?.size == 0 && (e = void 0);
|
package/package.json
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "litos-ui",
|
|
3
|
-
"version": "0.18.
|
|
4
|
-
"description": "基于 Web Component 的 UI 组件库",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"component library",
|
|
7
|
-
"litos-ui",
|
|
8
|
-
"ui framework",
|
|
9
|
-
"web component"
|
|
10
|
-
],
|
|
11
|
-
"homepage": "https://dvshu.github.io/litos-ui/",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/DvShu/litos-ui/issues"
|
|
14
|
-
},
|
|
15
|
-
"license": "MIT",
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/DvShu/litos-ui.git"
|
|
19
|
-
},
|
|
20
|
-
"files": [
|
|
21
|
-
"lib",
|
|
22
|
-
"styles"
|
|
23
|
-
],
|
|
24
|
-
"type": "module",
|
|
25
|
-
"main": "./lib/index.js",
|
|
26
|
-
"module": "./lib/index.js",
|
|
27
|
-
"types": "./lib/index.d.ts",
|
|
28
|
-
"unpkg": "./lib/litos-ui.min.js",
|
|
29
|
-
"jsdelivr": "./lib/litos-ui.min.js",
|
|
30
|
-
"exports": {
|
|
31
|
-
"./styles/*": "./styles/*",
|
|
32
|
-
"./lib/*": "./lib/*",
|
|
33
|
-
".": {
|
|
34
|
-
"types": "./lib/index.d.ts",
|
|
35
|
-
"import": "./lib/index.js",
|
|
36
|
-
"require": "./lib/index.js"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"scripts": {
|
|
40
|
-
"dev": "vite dev",
|
|
41
|
-
"build": "vite build",
|
|
42
|
-
"docs:dev": "vitepress dev docs --force --host 0.0.0.0",
|
|
43
|
-
"docs:build": "vitepress build docs",
|
|
44
|
-
"docs:preview": "vitepress preview docs",
|
|
45
|
-
"create": "node scripts/index.js create",
|
|
46
|
-
"dts:build": "tsc -p tsconfig.build.json",
|
|
47
|
-
"lib:build": "npm run build && npm run dts:build"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"alien-signals": "^3.1
|
|
51
|
-
"iconify-icon": "^3.0.2",
|
|
52
|
-
"ph-utils": "^0.
|
|
53
|
-
"qrcode-generator-es": "^2.1.3",
|
|
54
|
-
"shiki": "^4.0
|
|
55
|
-
},
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"@types/node": "^
|
|
58
|
-
"less": "^4.6.
|
|
59
|
-
"lightningcss": "^1.32.0",
|
|
60
|
-
"oxfmt": "^0.
|
|
61
|
-
"oxlint": "^1.
|
|
62
|
-
"typescript": "^6.0.3",
|
|
63
|
-
"vite": "^8.0
|
|
64
|
-
"vitepress": "^1.6.4"
|
|
65
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "litos-ui",
|
|
3
|
+
"version": "0.18.4",
|
|
4
|
+
"description": "基于 Web Component 的 UI 组件库",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"component library",
|
|
7
|
+
"litos-ui",
|
|
8
|
+
"ui framework",
|
|
9
|
+
"web component"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://dvshu.github.io/litos-ui/",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/DvShu/litos-ui/issues"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/DvShu/litos-ui.git"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"lib",
|
|
22
|
+
"styles"
|
|
23
|
+
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"main": "./lib/index.js",
|
|
26
|
+
"module": "./lib/index.js",
|
|
27
|
+
"types": "./lib/index.d.ts",
|
|
28
|
+
"unpkg": "./lib/litos-ui.min.js",
|
|
29
|
+
"jsdelivr": "./lib/litos-ui.min.js",
|
|
30
|
+
"exports": {
|
|
31
|
+
"./styles/*": "./styles/*",
|
|
32
|
+
"./lib/*": "./lib/*",
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./lib/index.d.ts",
|
|
35
|
+
"import": "./lib/index.js",
|
|
36
|
+
"require": "./lib/index.js"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"dev": "vite dev",
|
|
41
|
+
"build": "vite build",
|
|
42
|
+
"docs:dev": "vitepress dev docs --force --host 0.0.0.0",
|
|
43
|
+
"docs:build": "vitepress build docs",
|
|
44
|
+
"docs:preview": "vitepress preview docs",
|
|
45
|
+
"create": "node scripts/index.js create",
|
|
46
|
+
"dts:build": "tsc -p tsconfig.build.json",
|
|
47
|
+
"lib:build": "npm run build && npm run dts:build"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"alien-signals": "^3.2.1",
|
|
51
|
+
"iconify-icon": "^3.0.2",
|
|
52
|
+
"ph-utils": "^0.20.0",
|
|
53
|
+
"qrcode-generator-es": "^2.1.3",
|
|
54
|
+
"shiki": "^4.3.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@types/node": "^26.0.1",
|
|
58
|
+
"less": "^4.6.7",
|
|
59
|
+
"lightningcss": "^1.32.0",
|
|
60
|
+
"oxfmt": "^0.56.0",
|
|
61
|
+
"oxlint": "^1.71.0",
|
|
62
|
+
"typescript": "^6.0.3",
|
|
63
|
+
"vite": "^8.1.0",
|
|
64
|
+
"vitepress": "^1.6.4"
|
|
65
|
+
}
|
|
66
66
|
}
|
package/lib/esm-sVEoAVPu.js
DELETED
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/alien-signals@3.1.2/node_modules/alien-signals/esm/system.mjs
|
|
2
|
-
function e({ update: e, notify: t, unwatched: n }) {
|
|
3
|
-
return {
|
|
4
|
-
link: r,
|
|
5
|
-
unlink: i,
|
|
6
|
-
propagate: a,
|
|
7
|
-
checkDirty: o,
|
|
8
|
-
shallowPropagate: s
|
|
9
|
-
};
|
|
10
|
-
function r(e, t, n) {
|
|
11
|
-
let r = t.depsTail;
|
|
12
|
-
if (r !== void 0 && r.dep === e) return;
|
|
13
|
-
let i = r === void 0 ? t.deps : r.nextDep;
|
|
14
|
-
if (i !== void 0 && i.dep === e) {
|
|
15
|
-
i.version = n, t.depsTail = i;
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
let a = e.subsTail;
|
|
19
|
-
if (a !== void 0 && a.version === n && a.sub === t) return;
|
|
20
|
-
let o = t.depsTail = e.subsTail = {
|
|
21
|
-
version: n,
|
|
22
|
-
dep: e,
|
|
23
|
-
sub: t,
|
|
24
|
-
prevDep: r,
|
|
25
|
-
nextDep: i,
|
|
26
|
-
prevSub: a,
|
|
27
|
-
nextSub: void 0
|
|
28
|
-
};
|
|
29
|
-
i !== void 0 && (i.prevDep = o), r === void 0 ? t.deps = o : r.nextDep = o, a === void 0 ? e.subs = o : a.nextSub = o;
|
|
30
|
-
}
|
|
31
|
-
function i(e, t = e.sub) {
|
|
32
|
-
let r = e.dep, i = e.prevDep, a = e.nextDep, o = e.nextSub, s = e.prevSub;
|
|
33
|
-
return a === void 0 ? t.depsTail = i : a.prevDep = i, i === void 0 ? t.deps = a : i.nextDep = a, o === void 0 ? r.subsTail = s : o.prevSub = s, s === void 0 ? (r.subs = o) === void 0 && n(r) : s.nextSub = o, a;
|
|
34
|
-
}
|
|
35
|
-
function a(e) {
|
|
36
|
-
let n = e.nextSub, r;
|
|
37
|
-
top: do {
|
|
38
|
-
let i = e.sub, a = i.flags;
|
|
39
|
-
if (a & 60 ? a & 12 ? a & 4 ? !(a & 48) && c(e, i) ? (i.flags = a | 40, a &= 1) : a = 0 : i.flags = a & -9 | 32 : a = 0 : i.flags = a | 32, a & 2 && t(i), a & 1) {
|
|
40
|
-
let t = i.subs;
|
|
41
|
-
if (t !== void 0) {
|
|
42
|
-
let i = (e = t).nextSub;
|
|
43
|
-
i !== void 0 && (r = {
|
|
44
|
-
value: n,
|
|
45
|
-
prev: r
|
|
46
|
-
}, n = i);
|
|
47
|
-
continue;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
if ((e = n) !== void 0) {
|
|
51
|
-
n = e.nextSub;
|
|
52
|
-
continue;
|
|
53
|
-
}
|
|
54
|
-
for (; r !== void 0;) if (e = r.value, r = r.prev, e !== void 0) {
|
|
55
|
-
n = e.nextSub;
|
|
56
|
-
continue top;
|
|
57
|
-
}
|
|
58
|
-
break;
|
|
59
|
-
} while (!0);
|
|
60
|
-
}
|
|
61
|
-
function o(t, n) {
|
|
62
|
-
let r, i = 0, a = !1;
|
|
63
|
-
top: do {
|
|
64
|
-
let o = t.dep, c = o.flags;
|
|
65
|
-
if (n.flags & 16) a = !0;
|
|
66
|
-
else if ((c & 17) == 17) {
|
|
67
|
-
if (e(o)) {
|
|
68
|
-
let e = o.subs;
|
|
69
|
-
e.nextSub !== void 0 && s(e), a = !0;
|
|
70
|
-
}
|
|
71
|
-
} else if ((c & 33) == 33) {
|
|
72
|
-
(t.nextSub !== void 0 || t.prevSub !== void 0) && (r = {
|
|
73
|
-
value: t,
|
|
74
|
-
prev: r
|
|
75
|
-
}), t = o.deps, n = o, ++i;
|
|
76
|
-
continue;
|
|
77
|
-
}
|
|
78
|
-
if (!a) {
|
|
79
|
-
let e = t.nextDep;
|
|
80
|
-
if (e !== void 0) {
|
|
81
|
-
t = e;
|
|
82
|
-
continue;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
for (; i--;) {
|
|
86
|
-
let i = n.subs, o = i.nextSub !== void 0;
|
|
87
|
-
if (o ? (t = r.value, r = r.prev) : t = i, a) {
|
|
88
|
-
if (e(n)) {
|
|
89
|
-
o && s(i), n = t.sub;
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
a = !1;
|
|
93
|
-
} else n.flags &= -33;
|
|
94
|
-
n = t.sub;
|
|
95
|
-
let c = t.nextDep;
|
|
96
|
-
if (c !== void 0) {
|
|
97
|
-
t = c;
|
|
98
|
-
continue top;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
return a;
|
|
102
|
-
} while (!0);
|
|
103
|
-
}
|
|
104
|
-
function s(e) {
|
|
105
|
-
do {
|
|
106
|
-
let n = e.sub, r = n.flags;
|
|
107
|
-
(r & 48) == 32 && (n.flags = r | 16, (r & 6) == 2 && t(n));
|
|
108
|
-
} while ((e = e.nextSub) !== void 0);
|
|
109
|
-
}
|
|
110
|
-
function c(e, t) {
|
|
111
|
-
let n = t.depsTail;
|
|
112
|
-
for (; n !== void 0;) {
|
|
113
|
-
if (n === e) return !0;
|
|
114
|
-
n = n.prevDep;
|
|
115
|
-
}
|
|
116
|
-
return !1;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region node_modules/.pnpm/alien-signals@3.1.2/node_modules/alien-signals/esm/index.mjs
|
|
121
|
-
var t = 0, n = 0, r = 0, i = 0, a, o = [], { link: s, unlink: c, propagate: l, checkDirty: u, shallowPropagate: d } = e({
|
|
122
|
-
update(e) {
|
|
123
|
-
return e.depsTail === void 0 ? g(e) : h(e);
|
|
124
|
-
},
|
|
125
|
-
notify(e) {
|
|
126
|
-
let t = i, n = t;
|
|
127
|
-
do
|
|
128
|
-
if (o[t++] = e, e.flags &= -3, e = e.subs?.sub, e === void 0 || !(e.flags & 2)) break;
|
|
129
|
-
while (!0);
|
|
130
|
-
for (i = t; n < --t;) {
|
|
131
|
-
let e = o[n];
|
|
132
|
-
o[n++] = o[t], o[t] = e;
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
unwatched(e) {
|
|
136
|
-
e.flags & 1 ? e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, S(e)) : x.call(e);
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
function f(e) {
|
|
140
|
-
let t = a;
|
|
141
|
-
return a = e, t;
|
|
142
|
-
}
|
|
143
|
-
function p(e) {
|
|
144
|
-
return y.bind({
|
|
145
|
-
currentValue: e,
|
|
146
|
-
pendingValue: e,
|
|
147
|
-
subs: void 0,
|
|
148
|
-
subsTail: void 0,
|
|
149
|
-
flags: 1
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
function m(e) {
|
|
153
|
-
let t = {
|
|
154
|
-
fn: e,
|
|
155
|
-
subs: void 0,
|
|
156
|
-
subsTail: void 0,
|
|
157
|
-
deps: void 0,
|
|
158
|
-
depsTail: void 0,
|
|
159
|
-
flags: 6
|
|
160
|
-
}, n = f(t);
|
|
161
|
-
n !== void 0 && s(t, n, 0);
|
|
162
|
-
try {
|
|
163
|
-
t.fn();
|
|
164
|
-
} finally {
|
|
165
|
-
a = n, t.flags &= -5;
|
|
166
|
-
}
|
|
167
|
-
return b.bind(t);
|
|
168
|
-
}
|
|
169
|
-
function h(e) {
|
|
170
|
-
++t, e.depsTail = void 0, e.flags = 5;
|
|
171
|
-
let n = f(e);
|
|
172
|
-
try {
|
|
173
|
-
let t = e.value;
|
|
174
|
-
return t !== (e.value = e.getter(t));
|
|
175
|
-
} finally {
|
|
176
|
-
a = n, e.flags &= -5, S(e);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
function g(e) {
|
|
180
|
-
return e.flags = 1, e.currentValue !== (e.currentValue = e.pendingValue);
|
|
181
|
-
}
|
|
182
|
-
function _(e) {
|
|
183
|
-
let n = e.flags;
|
|
184
|
-
if (n & 16 || n & 32 && u(e.deps, e)) {
|
|
185
|
-
++t, e.depsTail = void 0, e.flags = 6;
|
|
186
|
-
let n = f(e);
|
|
187
|
-
try {
|
|
188
|
-
e.fn();
|
|
189
|
-
} finally {
|
|
190
|
-
a = n, e.flags &= -5, S(e);
|
|
191
|
-
}
|
|
192
|
-
} else e.flags = 2;
|
|
193
|
-
}
|
|
194
|
-
function v() {
|
|
195
|
-
try {
|
|
196
|
-
for (; r < i;) {
|
|
197
|
-
let e = o[r];
|
|
198
|
-
o[r++] = void 0, _(e);
|
|
199
|
-
}
|
|
200
|
-
} finally {
|
|
201
|
-
for (; r < i;) {
|
|
202
|
-
let e = o[r];
|
|
203
|
-
o[r++] = void 0, e.flags |= 10;
|
|
204
|
-
}
|
|
205
|
-
r = 0, i = 0;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
function y(...e) {
|
|
209
|
-
if (e.length) {
|
|
210
|
-
if (this.pendingValue !== (this.pendingValue = e[0])) {
|
|
211
|
-
this.flags = 17;
|
|
212
|
-
let e = this.subs;
|
|
213
|
-
e !== void 0 && (l(e), n || v());
|
|
214
|
-
}
|
|
215
|
-
} else {
|
|
216
|
-
if (this.flags & 16 && g(this)) {
|
|
217
|
-
let e = this.subs;
|
|
218
|
-
e !== void 0 && d(e);
|
|
219
|
-
}
|
|
220
|
-
let e = a;
|
|
221
|
-
for (; e !== void 0;) {
|
|
222
|
-
if (e.flags & 3) {
|
|
223
|
-
s(this, e, t);
|
|
224
|
-
break;
|
|
225
|
-
}
|
|
226
|
-
e = e.subs?.sub;
|
|
227
|
-
}
|
|
228
|
-
return this.currentValue;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
function b() {
|
|
232
|
-
x.call(this);
|
|
233
|
-
}
|
|
234
|
-
function x() {
|
|
235
|
-
this.depsTail = void 0, this.flags = 0, S(this);
|
|
236
|
-
let e = this.subs;
|
|
237
|
-
e !== void 0 && c(e);
|
|
238
|
-
}
|
|
239
|
-
function S(e) {
|
|
240
|
-
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
|
|
241
|
-
for (; n !== void 0;) n = c(n, e);
|
|
242
|
-
}
|
|
243
|
-
//#endregion
|
|
244
|
-
export { p as n, m as t };
|