litos-ui 0.17.4 → 0.18.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/README.md +49 -49
- package/lib/animation-CTt9qgA7.js +4 -0
- package/lib/base-Dm0WS1pK.js +62 -0
- package/lib/base.js +111 -147
- package/lib/button/index.d.ts +8 -3
- package/lib/button/index.js +2 -137
- package/lib/button-CC5PmAb1.js +146 -0
- package/lib/calendar/index.d.ts +15 -4
- package/lib/calendar/index.js +2 -95
- package/lib/calendar-DeP6yZB0.js +149 -0
- package/lib/carousel/index.js +2 -280
- package/lib/carousel/item.js +2 -15
- package/lib/carousel-D4Fe3LEx.js +272 -0
- package/lib/check/checkbox.js +2 -18
- package/lib/check/checkbox_group.js +6 -6
- package/lib/check/radio.js +2 -15
- package/lib/check/radio_group.js +9 -9
- package/lib/check-B0XraJvb.js +73 -0
- package/lib/check-CvGaONEx.js +117 -0
- package/lib/checkbox-DbWsmAaL.js +16 -0
- package/lib/collapse/index.d.ts +18 -11
- package/lib/collapse/index.js +2 -88
- package/lib/collapse/item.d.ts +28 -9
- package/lib/collapse/item.js +2 -115
- package/lib/collapse/types.d.ts +7 -0
- package/lib/collapse-CeKRZ-43.js +104 -0
- package/lib/color_picker/index.js +2 -42
- package/lib/color_picker-D0brKFm-.js +41 -0
- package/lib/date_picker/index.d.ts +23 -0
- package/lib/date_picker/index.js +3 -0
- package/lib/date_picker-DQGoiN8v.js +103 -0
- package/lib/date_picker_ori/index.js +2 -129
- package/lib/date_picker_ori-aRuSSi9D.js +122 -0
- package/lib/description_panel/index.js +2 -66
- package/lib/description_panel-Df_8rVbX.js +57 -0
- package/lib/dialog/dialog_container.js +2 -131
- package/lib/dialog/index.js +67 -85
- package/lib/dialog_container-DcN87wj0.js +126 -0
- package/lib/esm-sVEoAVPu.js +244 -0
- package/lib/form/form_item.d.ts +1 -0
- package/lib/form/form_item.js +2 -136
- package/lib/form/index.js +2 -147
- package/lib/form-DdU0yK0k.js +154 -0
- package/lib/form_inner-DR9tyB_r.js +117 -0
- package/lib/form_item-Bv-YafZK.js +137 -0
- package/lib/icon/arrow_down.js +12 -12
- package/lib/icon/arrow_left.js +9 -9
- package/lib/icon/arrow_right.js +9 -9
- package/lib/icon/arrow_up.js +12 -12
- package/lib/icon/base.d.ts +16 -2
- package/lib/icon/base.js +2 -38
- package/lib/icon/calendar.d.ts +5 -0
- package/lib/icon/calendar.js +10 -0
- package/lib/icon/caret_bottom.js +9 -9
- package/lib/icon/caret_top.js +9 -9
- package/lib/icon/close.js +9 -9
- package/lib/icon/close_filled.js +12 -12
- package/lib/icon/d_arrow_left.js +12 -12
- package/lib/icon/d_arrow_right.js +12 -12
- package/lib/icon/font_icon.d.ts +2 -3
- package/lib/icon/font_icon.js +35 -39
- package/lib/icon/info.js +12 -12
- package/lib/icon/loading.js +9 -9
- package/lib/icon/moon.js +12 -12
- package/lib/icon/more.js +12 -12
- package/lib/icon/reduction.js +12 -12
- package/lib/icon/refresh.d.ts +5 -0
- package/lib/icon/refresh.js +10 -0
- package/lib/icon/refresh_left.js +12 -12
- package/lib/icon/refresh_right.js +9 -9
- package/lib/icon/search.js +9 -9
- package/lib/icon/select.js +12 -12
- package/lib/icon/sort.js +9 -9
- package/lib/icon/success.js +12 -12
- package/lib/icon/sun.js +12 -12
- package/lib/icon/theme_default.js +12 -12
- package/lib/icon/warn.js +12 -12
- package/lib/icon/zoom_in.js +12 -12
- package/lib/icon/zoom_out.js +12 -12
- package/lib/image/image_preview.js +2 -104
- package/lib/image/index.js +2 -176
- package/lib/image-CeQVfS-v.js +162 -0
- package/lib/image_preview-PzZzwo6m.js +92 -0
- package/lib/index.d.ts +10 -4
- package/lib/index.js +80 -169
- package/lib/input/index.d.ts +6 -2
- package/lib/input/index.js +188 -203
- package/lib/input-DjKxcxry.js +4 -0
- package/lib/input_inner-BKJg9n9A.js +4 -0
- package/lib/item-Cuw_ZPyn.js +14 -0
- package/lib/item-DV842Aux.js +57 -0
- package/lib/item-ZXLWFzSm.js +119 -0
- package/lib/list/index.js +2 -58
- package/lib/list-CU7vHS6s.js +51 -0
- package/lib/loading/index.d.ts +4 -2
- package/lib/loading/index.js +109 -123
- package/lib/mask/index.js +2 -105
- package/lib/mask-BlV5QfTj.js +112 -0
- package/lib/md_input/index.js +2 -60
- package/lib/md_input-DSQx5TMW.js +58 -0
- package/lib/menu/index.js +2 -105
- package/lib/menu/menu_item.js +2 -21
- package/lib/menu/sub_menu.js +2 -83
- package/lib/menu-DAtplYAH.js +91 -0
- package/lib/menu_item-BW1Tu11Q.js +20 -0
- package/lib/message/index.js +67 -60
- package/lib/modal/index.js +2 -196
- package/lib/modal/modal_box.js +87 -86
- package/lib/modal-DWyWrN-D.js +192 -0
- package/lib/page_header/index.js +2 -109
- package/lib/page_header-DdeRDN4U.js +101 -0
- package/lib/pagination/index.js +2 -248
- package/lib/pagination-BoPzSPjT.js +210 -0
- package/lib/polygon/index.js +2 -27
- package/lib/polygon-C4Ow2lxi.js +20 -0
- package/lib/qrcode/index.d.ts +13 -4
- package/lib/qrcode/index.js +2 -57
- package/lib/qrcode-BFxsD_OP.js +64 -0
- package/lib/radio-2mNSYujz.js +13 -0
- package/lib/select/index.js +3 -401
- package/lib/select-CAgggYh7.js +326 -0
- package/lib/select_ori/index.js +47 -50
- package/lib/space/index.js +2 -35
- package/lib/space-CpTmBfHP.js +38 -0
- package/lib/sub_menu-D1s8ABNu.js +75 -0
- package/lib/switch/index.js +2 -50
- package/lib/switch-BaVBi5Ip.js +48 -0
- package/lib/tabbar/index.js +2 -109
- package/lib/tabbar/item.js +2 -58
- package/lib/tabbar-4_d2Fj1n.js +91 -0
- package/lib/table/index.js +2 -269
- package/lib/table-Hifj8jAX.js +234 -0
- package/lib/tabs/index.js +38 -42
- package/lib/tag/index.js +2 -72
- package/lib/tag-DPENZf_V.js +76 -0
- package/lib/theme/index.js +2 -89
- package/lib/theme/theme_color.js +22 -26
- package/lib/theme-BRTI2-Yk.js +83 -0
- package/lib/utils/clickoutside.js +18 -18
- package/lib/utils/context_provide.js +21 -21
- package/lib/utils/event.js +13 -18
- package/lib/utils/index.js +55 -58
- package/lib/utils/popover.d.ts +4 -1
- package/lib/utils/popover.js +276 -352
- package/lib/utils/transition.js +33 -31
- package/package.json +10 -11
- package/styles/container.css +4 -0
- package/styles/datepicker.css +55 -0
- package/styles/popover.css +14 -1
- package/lib/animation-DttknHkX.js +0 -4
- package/lib/calendar/langs.js +0 -8
- package/lib/carousel/timer.js +0 -19
- package/lib/check/check.js +0 -118
- package/lib/check/index.js +0 -68
- package/lib/check-CksURvTv.js +0 -4
- package/lib/form/form_inner.js +0 -125
- package/lib/form/types.js +0 -1
- package/lib/index-CrMiSe0x.js +0 -249
- package/lib/index-DY6m9Wbe.js +0 -4
- package/lib/litos-ui.css +0 -1
- package/lib/table/types.js +0 -1
package/lib/index-CrMiSe0x.js
DELETED
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
function P({ update: e, notify: s, unwatched: d }) {
|
|
2
|
-
return {
|
|
3
|
-
link: h,
|
|
4
|
-
unlink: L,
|
|
5
|
-
propagate: O,
|
|
6
|
-
checkDirty: m,
|
|
7
|
-
shallowPropagate: S
|
|
8
|
-
};
|
|
9
|
-
function h(n, i, u) {
|
|
10
|
-
const f = i.depsTail;
|
|
11
|
-
if (f !== void 0 && f.dep === n)
|
|
12
|
-
return;
|
|
13
|
-
const t = f !== void 0 ? f.nextDep : i.deps;
|
|
14
|
-
if (t !== void 0 && t.dep === n) {
|
|
15
|
-
t.version = u, i.depsTail = t;
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
const l = n.subsTail;
|
|
19
|
-
if (l !== void 0 && l.version === u && l.sub === i)
|
|
20
|
-
return;
|
|
21
|
-
const a = i.depsTail = n.subsTail = {
|
|
22
|
-
version: u,
|
|
23
|
-
dep: n,
|
|
24
|
-
sub: i,
|
|
25
|
-
prevDep: f,
|
|
26
|
-
nextDep: t,
|
|
27
|
-
prevSub: l,
|
|
28
|
-
nextSub: void 0
|
|
29
|
-
};
|
|
30
|
-
t !== void 0 && (t.prevDep = a), f !== void 0 ? f.nextDep = a : i.deps = a, l !== void 0 ? l.nextSub = a : n.subs = a;
|
|
31
|
-
}
|
|
32
|
-
function L(n, i = n.sub) {
|
|
33
|
-
const u = n.dep, f = n.prevDep, t = n.nextDep, l = n.nextSub, a = n.prevSub;
|
|
34
|
-
return t !== void 0 ? t.prevDep = f : i.depsTail = f, f !== void 0 ? f.nextDep = t : i.deps = t, l !== void 0 ? l.prevSub = a : u.subsTail = a, a !== void 0 ? a.nextSub = l : (u.subs = l) === void 0 && d(u), t;
|
|
35
|
-
}
|
|
36
|
-
function O(n) {
|
|
37
|
-
let i = n.nextSub, u;
|
|
38
|
-
e: do {
|
|
39
|
-
const f = n.sub;
|
|
40
|
-
let t = f.flags;
|
|
41
|
-
if (t & 60 ? t & 12 ? t & 4 ? !(t & 48) && q(n, f) ? (f.flags = t | 40, t &= 1) : t = 0 : f.flags = t & -9 | 32 : t = 0 : f.flags = t | 32, t & 2 && s(f), t & 1) {
|
|
42
|
-
const l = f.subs;
|
|
43
|
-
if (l !== void 0) {
|
|
44
|
-
const a = (n = l).nextSub;
|
|
45
|
-
a !== void 0 && (u = { value: i, prev: u }, i = a);
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
if ((n = i) !== void 0) {
|
|
50
|
-
i = n.nextSub;
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
for (; u !== void 0; )
|
|
54
|
-
if (n = u.value, u = u.prev, n !== void 0) {
|
|
55
|
-
i = n.nextSub;
|
|
56
|
-
continue e;
|
|
57
|
-
}
|
|
58
|
-
break;
|
|
59
|
-
} while (!0);
|
|
60
|
-
}
|
|
61
|
-
function m(n, i) {
|
|
62
|
-
let u, f = 0, t = !1;
|
|
63
|
-
e: do {
|
|
64
|
-
const l = n.dep, a = l.flags;
|
|
65
|
-
if (i.flags & 16)
|
|
66
|
-
t = !0;
|
|
67
|
-
else if ((a & 17) === 17) {
|
|
68
|
-
if (e(l)) {
|
|
69
|
-
const r = l.subs;
|
|
70
|
-
r.nextSub !== void 0 && S(r), t = !0;
|
|
71
|
-
}
|
|
72
|
-
} else if ((a & 33) === 33) {
|
|
73
|
-
(n.nextSub !== void 0 || n.prevSub !== void 0) && (u = { value: n, prev: u }), n = l.deps, i = l, ++f;
|
|
74
|
-
continue;
|
|
75
|
-
}
|
|
76
|
-
if (!t) {
|
|
77
|
-
const r = n.nextDep;
|
|
78
|
-
if (r !== void 0) {
|
|
79
|
-
n = r;
|
|
80
|
-
continue;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
for (; f--; ) {
|
|
84
|
-
const r = i.subs, D = r.nextSub !== void 0;
|
|
85
|
-
if (D ? (n = u.value, u = u.prev) : n = r, t) {
|
|
86
|
-
if (e(i)) {
|
|
87
|
-
D && S(r), i = n.sub;
|
|
88
|
-
continue;
|
|
89
|
-
}
|
|
90
|
-
t = !1;
|
|
91
|
-
} else
|
|
92
|
-
i.flags &= -33;
|
|
93
|
-
i = n.sub;
|
|
94
|
-
const T = n.nextDep;
|
|
95
|
-
if (T !== void 0) {
|
|
96
|
-
n = T;
|
|
97
|
-
continue e;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
return t;
|
|
101
|
-
} while (!0);
|
|
102
|
-
}
|
|
103
|
-
function S(n) {
|
|
104
|
-
do {
|
|
105
|
-
const i = n.sub, u = i.flags;
|
|
106
|
-
(u & 48) === 32 && (i.flags = u | 16, (u & 6) === 2 && s(i));
|
|
107
|
-
} while ((n = n.nextSub) !== void 0);
|
|
108
|
-
}
|
|
109
|
-
function q(n, i) {
|
|
110
|
-
let u = i.depsTail;
|
|
111
|
-
for (; u !== void 0; ) {
|
|
112
|
-
if (u === n)
|
|
113
|
-
return !0;
|
|
114
|
-
u = u.prevDep;
|
|
115
|
-
}
|
|
116
|
-
return !1;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
let x = 0, c = 0, b = 0, o;
|
|
120
|
-
const p = [], { link: w, unlink: y, propagate: A, checkDirty: C, shallowPropagate: M } = P({
|
|
121
|
-
update(e) {
|
|
122
|
-
return e.depsTail !== void 0 ? R(e) : V(e);
|
|
123
|
-
},
|
|
124
|
-
notify(e) {
|
|
125
|
-
let s = b, d = s;
|
|
126
|
-
do
|
|
127
|
-
if (p[s++] = e, e.flags &= -3, e = e.subs?.sub, e === void 0 || !(e.flags & 2))
|
|
128
|
-
break;
|
|
129
|
-
while (!0);
|
|
130
|
-
for (b = s; d < --s; ) {
|
|
131
|
-
const h = p[d];
|
|
132
|
-
p[d++] = p[s], p[s] = h;
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
unwatched(e) {
|
|
136
|
-
e.flags & 1 ? e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, g(e)) : I.call(e);
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
function v(e) {
|
|
140
|
-
const s = o;
|
|
141
|
-
return o = e, s;
|
|
142
|
-
}
|
|
143
|
-
function F(e) {
|
|
144
|
-
return B.bind({
|
|
145
|
-
currentValue: e,
|
|
146
|
-
pendingValue: e,
|
|
147
|
-
subs: void 0,
|
|
148
|
-
subsTail: void 0,
|
|
149
|
-
flags: 1
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
function G(e) {
|
|
153
|
-
const s = {
|
|
154
|
-
fn: e,
|
|
155
|
-
subs: void 0,
|
|
156
|
-
subsTail: void 0,
|
|
157
|
-
deps: void 0,
|
|
158
|
-
depsTail: void 0,
|
|
159
|
-
flags: 6
|
|
160
|
-
}, d = v(s);
|
|
161
|
-
d !== void 0 && w(s, d, 0);
|
|
162
|
-
try {
|
|
163
|
-
s.fn();
|
|
164
|
-
} finally {
|
|
165
|
-
o = d, s.flags &= -5;
|
|
166
|
-
}
|
|
167
|
-
return E.bind(s);
|
|
168
|
-
}
|
|
169
|
-
function R(e) {
|
|
170
|
-
++x, e.depsTail = void 0, e.flags = 5;
|
|
171
|
-
const s = v(e);
|
|
172
|
-
try {
|
|
173
|
-
const d = e.value;
|
|
174
|
-
return d !== (e.value = e.getter(d));
|
|
175
|
-
} finally {
|
|
176
|
-
o = s, e.flags &= -5, g(e);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
function V(e) {
|
|
180
|
-
return e.flags = 1, e.currentValue !== (e.currentValue = e.pendingValue);
|
|
181
|
-
}
|
|
182
|
-
function j(e) {
|
|
183
|
-
const s = e.flags;
|
|
184
|
-
if (s & 16 || s & 32 && C(e.deps, e)) {
|
|
185
|
-
++x, e.depsTail = void 0, e.flags = 6;
|
|
186
|
-
const d = v(e);
|
|
187
|
-
try {
|
|
188
|
-
e.fn();
|
|
189
|
-
} finally {
|
|
190
|
-
o = d, e.flags &= -5, g(e);
|
|
191
|
-
}
|
|
192
|
-
} else
|
|
193
|
-
e.flags = 2;
|
|
194
|
-
}
|
|
195
|
-
function z() {
|
|
196
|
-
try {
|
|
197
|
-
for (; c < b; ) {
|
|
198
|
-
const e = p[c];
|
|
199
|
-
p[c++] = void 0, j(e);
|
|
200
|
-
}
|
|
201
|
-
} finally {
|
|
202
|
-
for (; c < b; ) {
|
|
203
|
-
const e = p[c];
|
|
204
|
-
p[c++] = void 0, e.flags |= 10;
|
|
205
|
-
}
|
|
206
|
-
c = 0, b = 0;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
function B(...e) {
|
|
210
|
-
if (e.length) {
|
|
211
|
-
if (this.pendingValue !== (this.pendingValue = e[0])) {
|
|
212
|
-
this.flags = 17;
|
|
213
|
-
const s = this.subs;
|
|
214
|
-
s !== void 0 && (A(s), z());
|
|
215
|
-
}
|
|
216
|
-
} else {
|
|
217
|
-
if (this.flags & 16 && V(this)) {
|
|
218
|
-
const d = this.subs;
|
|
219
|
-
d !== void 0 && M(d);
|
|
220
|
-
}
|
|
221
|
-
let s = o;
|
|
222
|
-
for (; s !== void 0; ) {
|
|
223
|
-
if (s.flags & 3) {
|
|
224
|
-
w(this, s, x);
|
|
225
|
-
break;
|
|
226
|
-
}
|
|
227
|
-
s = s.subs?.sub;
|
|
228
|
-
}
|
|
229
|
-
return this.currentValue;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
function E() {
|
|
233
|
-
I.call(this);
|
|
234
|
-
}
|
|
235
|
-
function I() {
|
|
236
|
-
this.depsTail = void 0, this.flags = 0, g(this);
|
|
237
|
-
const e = this.subs;
|
|
238
|
-
e !== void 0 && y(e);
|
|
239
|
-
}
|
|
240
|
-
function g(e) {
|
|
241
|
-
const s = e.depsTail;
|
|
242
|
-
let d = s !== void 0 ? s.nextDep : e.deps;
|
|
243
|
-
for (; d !== void 0; )
|
|
244
|
-
d = y(d, e);
|
|
245
|
-
}
|
|
246
|
-
export {
|
|
247
|
-
G as e,
|
|
248
|
-
F as s
|
|
249
|
-
};
|
package/lib/index-DY6m9Wbe.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const r = ":host{--l-input-border-color: var(--l-border-color, #dedede);display:inline-flex;width:var(--l-input-width, 170px);height:var(--l-form-control-height, 32px);align-items:center;padding:0 7px;border:1px solid var(--l-input-border-color, #dedede);transition:border-color .3s;border-radius:var(--l-border-radius, 3px);vertical-align:middle;box-sizing:border-box;background-color:transparent}:host(:focus){--l-input-border-color: var(--l-primary-color, #722ed1)}:host(.is-block){width:100%}:host(.is-disabled){background-color:var(--l-disabled-color, #f5f7fa)}:host(.is-error){--l-input-border-color: #ed3f13}.l-input__prefix,.l-input__suffix{color:#a8abb2;font-size:14px;display:inline-flex;flex-shrink:0}.l-input__prefix{margin-right:5px}.l-input__suffix{margin-left:5px}.l-clearable{cursor:pointer}.l-clearable:hover{color:#999}.l-input__inner{outline:none;border:none;box-sizing:border-box;width:100%;max-width:100%;height:100%;flex-grow:1;text-align:inherit;font-size:inherit;background-color:transparent}.l-input__inner:disabled{background-color:transparent}";
|
|
2
|
-
export {
|
|
3
|
-
r as i
|
|
4
|
-
};
|
package/lib/litos-ui.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:host{display:inline-flex}.l-icon{width:1em;height:1em;fill:currentColor;vertical-align:middle;display:inline-block}:host{display:inline-flex;width:auto;box-sizing:border-box}
|
package/lib/table/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|