litos-ui 0.17.5 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/animation-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 +10 -5
- package/lib/calendar/index.js +2 -123
- package/lib/calendar-GpYHNmXG.js +149 -0
- package/lib/carousel/index.js +2 -280
- package/lib/carousel/item.js +2 -15
- package/lib/carousel-dT3FJPQo.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-C3IRHLeg.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-BY2yljeC.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-COPKk8Jm.js +162 -0
- package/lib/image_preview-CYEup07F.js +92 -0
- package/lib/index.d.ts +5 -81
- package/lib/index.js +78 -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-B7Elh5xE.js +14 -0
- package/lib/item-CvoJt3wp.js +60 -0
- package/lib/item-DRsOV_Tc.js +119 -0
- package/lib/list/index.js +2 -58
- package/lib/list-CU7vHS6s.js +51 -0
- package/lib/loading/index.d.ts +3 -2
- package/lib/loading/index.js +109 -127
- package/lib/mask/index.js +2 -105
- package/lib/mask-CEznzwji.js +112 -0
- package/lib/md_input/index.js +2 -60
- package/lib/md_input-DSQx5TMW.js +58 -0
- package/lib/menu/index.d.ts +30 -13
- package/lib/menu/index.js +2 -105
- package/lib/menu/types.d.ts +6 -0
- package/lib/menu/types.js +0 -0
- package/lib/menu-CzV6lOlw.js +224 -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-BJkEstRw.js +101 -0
- package/lib/pagination/index.js +2 -248
- package/lib/pagination-5t7AOeFV.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-BKG2MibP.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-Bv-p0DL8.js +38 -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-CI1xSj1G.js +96 -0
- package/lib/table/index.js +2 -269
- package/lib/table-DfL2hFqA.js +234 -0
- package/lib/tabs/index.js +38 -42
- package/lib/tag/index.js +2 -72
- package/lib/tag-72DwCkvq.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 +14 -14
- 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/menu/menu_item.d.ts +0 -6
- package/lib/menu/menu_item.js +0 -21
- package/lib/menu/sub_menu.d.ts +0 -15
- package/lib/menu/sub_menu.js +0 -83
- package/lib/table/types.js +0 -1
package/lib/index.js
CHANGED
|
@@ -1,169 +1,78 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import
|
|
46
|
-
import {
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
F as ArrowLeftIcon,
|
|
80
|
-
U as ArrowRightIcon,
|
|
81
|
-
y as ArrowUpIcon,
|
|
82
|
-
i as BaseComponent,
|
|
83
|
-
v as BaseIcon,
|
|
84
|
-
qo as Button,
|
|
85
|
-
sr as Calendar,
|
|
86
|
-
V as CaretBottomIcon,
|
|
87
|
-
N as CaretTopIcon,
|
|
88
|
-
Te as Carousel,
|
|
89
|
-
ke as CarouselItem,
|
|
90
|
-
Qo as Checkbox,
|
|
91
|
-
Wo as CheckboxGroup,
|
|
92
|
-
bo as CloseFilledIcon,
|
|
93
|
-
po as CloseIcon,
|
|
94
|
-
Qe as Collapse,
|
|
95
|
-
We as CollapseItem,
|
|
96
|
-
le as ColorPicker,
|
|
97
|
-
Po as DArrowLeftIcon,
|
|
98
|
-
To as DArrowRightIcon,
|
|
99
|
-
ge as DatePicker,
|
|
100
|
-
Le as DescriptionPanel,
|
|
101
|
-
h as Dialog,
|
|
102
|
-
S as DialogContainer,
|
|
103
|
-
j as FontIcon,
|
|
104
|
-
Bo as Form,
|
|
105
|
-
Go as FormItem,
|
|
106
|
-
qe as Image,
|
|
107
|
-
Ee as ImagePreview,
|
|
108
|
-
no as InfoIcon,
|
|
109
|
-
Eo as Input,
|
|
110
|
-
te as List,
|
|
111
|
-
w as Loading,
|
|
112
|
-
z as LoadingIcon,
|
|
113
|
-
Ge as Mask,
|
|
114
|
-
$o as MdInput,
|
|
115
|
-
be as Menu,
|
|
116
|
-
Ae as MenuItem,
|
|
117
|
-
C as Message,
|
|
118
|
-
D as Modal,
|
|
119
|
-
_ as MoonIcon,
|
|
120
|
-
Ao as MoreIcon,
|
|
121
|
-
Ze as PageHeader,
|
|
122
|
-
Be as Pagination,
|
|
123
|
-
fe as Polygon,
|
|
124
|
-
Ke as Popover,
|
|
125
|
-
Re as Qrcode,
|
|
126
|
-
Ho as Radio,
|
|
127
|
-
Zo as RadioGroup,
|
|
128
|
-
oo as ReductionIcon,
|
|
129
|
-
ro as RefreshLeftIcon,
|
|
130
|
-
ao as RefreshRightIcon,
|
|
131
|
-
J as SearchIcon,
|
|
132
|
-
ee as Select,
|
|
133
|
-
Lo as SelectIcon,
|
|
134
|
-
Ko as SelectOri,
|
|
135
|
-
so as SortIcon,
|
|
136
|
-
ar as Space,
|
|
137
|
-
Pe as SubMenu,
|
|
138
|
-
Io as SuccessIcon,
|
|
139
|
-
X as SunIcon,
|
|
140
|
-
Yo as Switch,
|
|
141
|
-
ue as Tabbar,
|
|
142
|
-
de as TabbarItem,
|
|
143
|
-
rr as Table,
|
|
144
|
-
M as Tabs,
|
|
145
|
-
He as Tag,
|
|
146
|
-
ne as Theme,
|
|
147
|
-
Ie as ThemeColor,
|
|
148
|
-
mo as ThemeDefaultIcon,
|
|
149
|
-
go as WarnIcon,
|
|
150
|
-
ko as ZoomInIcon,
|
|
151
|
-
Ro as ZoomOutIcon,
|
|
152
|
-
n as addClickOutside,
|
|
153
|
-
Xe as autoUpdate,
|
|
154
|
-
Ye as createPopoverObserver,
|
|
155
|
-
_e as getOverflowAncestors,
|
|
156
|
-
r as initAttr,
|
|
157
|
-
t as kebabToCamel,
|
|
158
|
-
a as parseAttrValue,
|
|
159
|
-
$e as popconfirmProps,
|
|
160
|
-
f as regist,
|
|
161
|
-
c as removeClickOutside,
|
|
162
|
-
s as setAttrs,
|
|
163
|
-
l as stopSignal,
|
|
164
|
-
m as tagAttr,
|
|
165
|
-
u as tagAttrs,
|
|
166
|
-
p as unitNumberStr,
|
|
167
|
-
or as updatePosition,
|
|
168
|
-
d as useId
|
|
169
|
-
};
|
|
1
|
+
import e from "./base.js";
|
|
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
|
+
import { remove as d, set as f } from "./utils/clickoutside.js";
|
|
4
|
+
import { t as p } from "./base-Dm0WS1pK.js";
|
|
5
|
+
import m from "./icon/close_filled.js";
|
|
6
|
+
import h from "./icon/success.js";
|
|
7
|
+
import g from "./icon/warn.js";
|
|
8
|
+
import _ from "./icon/info.js";
|
|
9
|
+
import v from "./message/index.js";
|
|
10
|
+
import y from "./dialog/index.js";
|
|
11
|
+
import { t as b } from "./dialog_container-DcN87wj0.js";
|
|
12
|
+
import x from "./loading/index.js";
|
|
13
|
+
import S from "./tabs/index.js";
|
|
14
|
+
import { t as C } from "./modal-DWyWrN-D.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-DdU0yK0k.js";
|
|
41
|
+
import { t as X } from "./form_item-Bv-YafZK.js";
|
|
42
|
+
import Z from "./check/radio_group.js";
|
|
43
|
+
import { t as Q } from "./radio-2mNSYujz.js";
|
|
44
|
+
import { t as $ } from "./checkbox-DbWsmAaL.js";
|
|
45
|
+
import ee from "./check/checkbox_group.js";
|
|
46
|
+
import { t as te } from "./button-CC5PmAb1.js";
|
|
47
|
+
import ne from "./input/index.js";
|
|
48
|
+
import re from "./select_ori/index.js";
|
|
49
|
+
import { t as ie } from "./switch-BaVBi5Ip.js";
|
|
50
|
+
import { t as ae } from "./md_input-DSQx5TMW.js";
|
|
51
|
+
import { t as oe } from "./select-CAgggYh7.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-DQGoiN8v.js";
|
|
54
|
+
import { t as me } from "./date_picker_ori-aRuSSi9D.js";
|
|
55
|
+
import { t as he } from "./color_picker-D0brKFm-.js";
|
|
56
|
+
import { t as ge } from "./list-CU7vHS6s.js";
|
|
57
|
+
import { t as _e } from "./polygon-C4Ow2lxi.js";
|
|
58
|
+
import { t as ve } from "./tabbar-CI1xSj1G.js";
|
|
59
|
+
import { t as ye } from "./item-CvoJt3wp.js";
|
|
60
|
+
import { t as be } from "./theme-BRTI2-Yk.js";
|
|
61
|
+
import xe from "./theme/theme_color.js";
|
|
62
|
+
import { t as Se } from "./menu-CzV6lOlw.js";
|
|
63
|
+
import { t as Ce } from "./carousel-dT3FJPQo.js";
|
|
64
|
+
import { t as we } from "./item-B7Elh5xE.js";
|
|
65
|
+
import { t as Te } from "./qrcode-BKG2MibP.js";
|
|
66
|
+
import { t as Ee } from "./description_panel-BY2yljeC.js";
|
|
67
|
+
import { t as De } from "./pagination-5t7AOeFV.js";
|
|
68
|
+
import { t as Oe } from "./mask-CEznzwji.js";
|
|
69
|
+
import { t as ke } from "./page_header-BJkEstRw.js";
|
|
70
|
+
import { t as Ae } from "./tag-72DwCkvq.js";
|
|
71
|
+
import { t as je } from "./collapse-C3IRHLeg.js";
|
|
72
|
+
import { t as Me } from "./item-DRsOV_Tc.js";
|
|
73
|
+
import { t as Ne } from "./image-COPKk8Jm.js";
|
|
74
|
+
import { t as Pe } from "./image_preview-CYEup07F.js";
|
|
75
|
+
import { t as Fe } from "./table-DfL2hFqA.js";
|
|
76
|
+
import { t as Ie } from "./space-Bv-p0DL8.js";
|
|
77
|
+
import { t as Le } from "./calendar-GpYHNmXG.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 };
|
package/lib/input/index.d.ts
CHANGED
|
@@ -34,11 +34,15 @@ export default class Input extends FormInner<InputState> {
|
|
|
34
34
|
set value(value: any);
|
|
35
35
|
get value(): any;
|
|
36
36
|
static get observedAttributes(): string[];
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
afterInit(): void;
|
|
38
|
+
beforeDestroy(): void;
|
|
39
39
|
protected attributeChange(name: string, oldValue: string, newValue: string): void;
|
|
40
40
|
protected updateDOM(changedProps: Set<string>): void;
|
|
41
41
|
_updateAttr(key: string, value: any): void;
|
|
42
|
+
render_v2(): {
|
|
43
|
+
template?: string | HTMLElement | DocumentFragment;
|
|
44
|
+
style?: string | string[];
|
|
45
|
+
};
|
|
42
46
|
render(): DocumentFragment;
|
|
43
47
|
/**
|
|
44
48
|
* 设置自定义的输入解析器
|