litos-ui 0.23.1 → 0.24.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.d.ts +3 -2
- package/lib/base.js +11 -8
- package/lib/button/index.d.ts +21 -5
- package/lib/button/index.js +115 -62
- package/lib/button/index.less_inline.js +2 -3
- package/lib/button/style.js +1 -2
- package/lib/calendar/index.js +22 -24
- package/lib/calendar/index.less_inline.js +1 -2
- package/lib/calendar/langs.js +1 -2
- package/lib/card/index.js +8 -9
- package/lib/card/index.less_inline.js +1 -2
- package/lib/carousel/index.js +10 -11
- package/lib/carousel/index.less_inline.js +1 -2
- package/lib/carousel/item.js +1 -2
- package/lib/carousel/item.less_inline.js +1 -2
- package/lib/carousel/timer.js +1 -2
- package/lib/check/check.d.ts +40 -8
- package/lib/check/check.js +200 -65
- package/lib/check/check.less_inline.js +2 -3
- package/lib/check/checkbox.js +2 -3
- package/lib/check/checkbox.less_inline.js +2 -3
- package/lib/check/checkbox_group.js +1 -2
- package/lib/check/index.d.ts +28 -8
- package/lib/check/index.js +151 -46
- package/lib/check/index.less_inline.js +1 -2
- package/lib/check/radio.js +2 -3
- package/lib/check/radio.less_inline.js +1 -2
- package/lib/check/radio_group.js +2 -3
- package/lib/collapse/index.d.ts +12 -4
- package/lib/collapse/index.js +80 -46
- package/lib/collapse/index.less_inline.js +2 -3
- package/lib/collapse/item.d.ts +35 -9
- package/lib/collapse/item.js +219 -57
- package/lib/collapse/item.less_inline.js +2 -3
- package/lib/collapse/types.d.ts +17 -3
- package/lib/color_picker/index.d.ts +4 -2
- package/lib/color_picker/index.js +26 -17
- package/lib/color_picker/index.less_inline.js +1 -2
- package/lib/date_picker/index.d.ts +5 -1
- package/lib/date_picker/index.js +39 -23
- package/lib/date_picker/index.less_inline.js +1 -2
- package/lib/date_picker_ori/index.d.ts +7 -2
- package/lib/date_picker_ori/index.js +123 -47
- package/lib/date_picker_ori/index.less_inline.js +1 -2
- package/lib/description_panel/index.js +2 -10
- package/lib/description_panel/index.less_inline.js +1 -2
- package/lib/dialog/dialog_box.js +28 -29
- package/lib/dialog/dialog_container.css_inline.js +1 -2
- package/lib/dialog/dialog_container.js +13 -14
- package/lib/dialog/dialog_container_style.js +1 -2
- package/lib/dialog/index.js +1 -2
- package/lib/dropdown/index.d.ts +39 -0
- package/lib/dropdown/index.js +98 -0
- package/lib/entries/base.js +1 -2
- package/lib/entries/button.js +5 -6
- package/lib/entries/calendar.js +5 -6
- package/lib/entries/card.js +5 -6
- package/lib/entries/carousel-item.js +5 -6
- package/lib/entries/carousel.js +5 -6
- package/lib/entries/checkbox-group.js +5 -6
- package/lib/entries/checkbox.js +5 -6
- package/lib/entries/collapse-item.d.ts +0 -1
- package/lib/entries/collapse-item.js +6 -6
- package/lib/entries/collapse.d.ts +0 -1
- package/lib/entries/collapse.js +11 -6
- package/lib/entries/color-picker.js +5 -6
- package/lib/entries/date-picker-ori.js +5 -6
- package/lib/entries/date-picker.js +5 -6
- package/lib/entries/description-panel.js +5 -6
- package/lib/entries/dialog-box.js +1 -2
- package/lib/entries/dialog-container.js +5 -6
- package/lib/entries/dialog.js +1 -2
- package/lib/entries/dropdown.d.ts +2 -0
- package/lib/entries/dropdown.js +1 -0
- package/lib/entries/form-item.js +5 -6
- package/lib/entries/form.js +5 -6
- package/lib/entries/icon-arrow-down.js +5 -6
- package/lib/entries/icon-arrow-left.js +5 -6
- package/lib/entries/icon-arrow-right.js +5 -6
- package/lib/entries/icon-arrow-up.js +5 -6
- package/lib/entries/icon-base.js +5 -6
- package/lib/entries/icon-calendar.js +5 -6
- package/lib/entries/icon-caret-bottom.js +5 -6
- package/lib/entries/icon-caret-top.js +5 -6
- package/lib/entries/icon-close-filled.js +5 -6
- package/lib/entries/icon-close.js +5 -6
- package/lib/entries/icon-copy.js +5 -6
- package/lib/entries/icon-d-arrow-left.js +5 -6
- package/lib/entries/icon-d-arrow-right.js +5 -6
- package/lib/entries/icon-delete.js +5 -6
- package/lib/entries/icon-eye-outline.js +5 -6
- package/lib/entries/icon-font-icon.js +5 -6
- package/lib/entries/icon-info.js +5 -6
- package/lib/entries/icon-loading.js +5 -6
- package/lib/entries/icon-minus.js +5 -6
- package/lib/entries/icon-moon.js +5 -6
- package/lib/entries/icon-more.js +5 -6
- package/lib/entries/icon-picture.js +5 -6
- package/lib/entries/icon-plus.js +5 -6
- package/lib/entries/icon-reduction.js +5 -6
- package/lib/entries/icon-refresh-left.js +5 -6
- package/lib/entries/icon-refresh-right.js +5 -6
- package/lib/entries/icon-refresh.js +5 -6
- package/lib/entries/icon-search.js +5 -6
- package/lib/entries/icon-select.js +5 -6
- package/lib/entries/icon-sort.js +5 -6
- package/lib/entries/icon-success.js +5 -6
- package/lib/entries/icon-sun.js +5 -6
- package/lib/entries/icon-theme-default.js +5 -6
- package/lib/entries/icon-warn.js +5 -6
- package/lib/entries/icon-zoom-in.js +5 -6
- package/lib/entries/icon-zoom-out.js +5 -6
- package/lib/entries/image-preview.js +5 -6
- package/lib/entries/image.js +5 -6
- package/lib/entries/input-number.js +5 -6
- package/lib/entries/input.js +5 -6
- package/lib/entries/list.js +5 -6
- package/lib/entries/loading.js +1 -2
- package/lib/entries/mask.js +5 -6
- package/lib/entries/md-input.js +5 -6
- package/lib/entries/menu.js +5 -6
- package/lib/entries/message.js +1 -2
- package/lib/entries/modal-box.js +1 -2
- package/lib/entries/modal.js +5 -6
- package/lib/entries/notification-box.js +1 -2
- package/lib/entries/notification.js +1 -2
- package/lib/entries/page-header.js +5 -6
- package/lib/entries/pagination.js +5 -6
- package/lib/entries/polygon.js +5 -6
- package/lib/entries/popconfirm.js +1 -2
- package/lib/entries/popover.js +1 -2
- package/lib/entries/qrcode.js +5 -6
- package/lib/entries/radio-group.js +5 -6
- package/lib/entries/radio.js +5 -6
- package/lib/entries/select-ori.js +5 -6
- package/lib/entries/select.js +5 -6
- package/lib/entries/space.js +5 -6
- package/lib/entries/switch.js +5 -6
- package/lib/entries/tabbar-item.js +5 -6
- package/lib/entries/tabbar.js +5 -6
- package/lib/entries/table.js +5 -6
- package/lib/entries/tabs.js +1 -2
- package/lib/entries/tag.js +5 -6
- package/lib/entries/theme-color.js +5 -6
- package/lib/entries/theme.js +5 -6
- package/lib/entries/transition.js +1 -2
- package/lib/entries/upload.js +5 -6
- package/lib/entries/utils.js +1 -3
- package/lib/form/accessibility.d.ts +15 -0
- package/lib/form/accessibility.js +56 -0
- package/lib/form/autocomplete.d.ts +21 -0
- package/lib/form/autocomplete.js +59 -0
- package/lib/form/context.d.ts +157 -0
- package/lib/form/context.js +88 -0
- package/lib/form/form_inner.d.ts +99 -24
- package/lib/form/form_inner.js +424 -72
- package/lib/form/form_item.d.ts +35 -11
- package/lib/form/form_item.js +210 -78
- package/lib/form/form_item.less_inline.js +2 -3
- package/lib/form/form_item_style.d.ts +3 -0
- package/lib/form/form_item_style.js +7 -0
- package/lib/form/index.d.ts +69 -15
- package/lib/form/index.js +501 -101
- package/lib/form/index.less_inline.js +1 -2
- package/lib/form/owner.d.ts +78 -0
- package/lib/form/owner.js +138 -0
- package/lib/form/style.d.ts +3 -0
- package/lib/form/style.js +7 -0
- package/lib/icon/arrow_down.js +1 -2
- package/lib/icon/arrow_left.js +1 -2
- package/lib/icon/arrow_right.js +1 -2
- package/lib/icon/arrow_up.js +1 -2
- package/lib/icon/base.js +1 -2
- package/lib/icon/calendar.js +1 -2
- package/lib/icon/caret_bottom.js +1 -2
- package/lib/icon/caret_top.js +1 -2
- package/lib/icon/close.js +1 -2
- package/lib/icon/close_filled.js +1 -2
- package/lib/icon/copy.js +1 -2
- package/lib/icon/d_arrow_left.js +1 -2
- package/lib/icon/d_arrow_right.js +1 -2
- package/lib/icon/delete.js +1 -2
- package/lib/icon/eye_outline.js +1 -2
- package/lib/icon/font_icon.js +1 -2
- package/lib/icon/icon_style.js +1 -2
- package/lib/icon/index.less_inline.js +1 -2
- package/lib/icon/info.js +1 -2
- package/lib/icon/loading.js +1 -2
- package/lib/icon/minus.js +1 -2
- package/lib/icon/moon.js +1 -2
- package/lib/icon/more.js +1 -2
- package/lib/icon/picture.js +1 -2
- package/lib/icon/plus.js +1 -2
- package/lib/icon/reduction.js +1 -2
- package/lib/icon/refresh.js +1 -2
- package/lib/icon/refresh_left.js +1 -2
- package/lib/icon/refresh_right.js +1 -2
- package/lib/icon/search.js +1 -2
- package/lib/icon/select.js +1 -2
- package/lib/icon/sort.js +1 -2
- package/lib/icon/success.js +1 -2
- package/lib/icon/sun.js +1 -2
- package/lib/icon/theme_default.js +1 -2
- package/lib/icon/warn.js +1 -2
- package/lib/icon/zoom_in.js +1 -2
- package/lib/icon/zoom_out.js +1 -2
- package/lib/image/image_preview.js +1 -2
- package/lib/image/image_preview.less_inline.js +1 -2
- package/lib/image/index.js +1 -2
- package/lib/image/index.less_inline.js +1 -2
- package/lib/index.d.ts +2 -1
- package/lib/index.js +91 -91
- package/lib/input/index.d.ts +14 -0
- package/lib/input/index.js +126 -31
- package/lib/input/index.less_inline.js +2 -3
- package/lib/input/input_inner.less_inline.js +1 -2
- package/lib/input/style.d.ts +1 -0
- package/lib/input/style.js +5 -7
- package/lib/input_number/index.d.ts +7 -0
- package/lib/input_number/index.js +70 -48
- package/lib/input_number/index.less_inline.js +1 -2
- package/lib/input_number/style.js +1 -2
- package/lib/list/index.js +4 -5
- package/lib/list/index.less_inline.js +1 -2
- package/lib/loading/index.js +1 -2
- package/lib/mask/index.js +2 -7
- package/lib/mask/index.less_inline.js +1 -2
- package/lib/md_input/index.d.ts +11 -2
- package/lib/md_input/index.js +63 -27
- package/lib/md_input/index.less_inline.js +2 -3
- package/lib/menu/index.js +2 -7
- package/lib/menu/index.less_inline.js +1 -2
- package/lib/message/index.js +1 -2
- package/lib/modal/index.js +15 -16
- package/lib/modal/index.less_inline.js +1 -2
- package/lib/modal/modal_box.js +24 -25
- package/lib/notification/index.js +15 -29
- package/lib/notification/index.less_inline.js +1 -2
- package/lib/notification/notification_box.js +2 -3
- package/lib/notification/placement.js +1 -2
- package/lib/notification/style.js +1 -2
- package/lib/page_header/index.js +1 -2
- package/lib/page_header/index.less_inline.js +1 -2
- package/lib/pagination/index.js +2 -7
- package/lib/pagination/index.less_inline.js +1 -2
- package/lib/polygon/index.js +1 -2
- package/lib/polygon/index.less_inline.js +1 -2
- package/lib/qrcode/index.js +1 -2
- package/lib/qrcode/index.less_inline.js +1 -2
- package/lib/select/index.d.ts +19 -2
- package/lib/select/index.js +128 -74
- package/lib/select/index.less_inline.js +1 -2
- package/lib/select_ori/index.d.ts +9 -1
- package/lib/select_ori/index.js +36 -24
- package/lib/select_ori/index.less_inline.js +1 -2
- package/lib/space/index.js +1 -2
- package/lib/space/index.less_inline.js +1 -2
- package/lib/styles/animation/index.css_inline.js +1 -2
- package/lib/styles/animation/index.js +1 -2
- package/lib/styles/mask/index.css_inline.js +1 -2
- package/lib/styles/mask/index.js +1 -2
- package/lib/switch/index.d.ts +6 -0
- package/lib/switch/index.js +31 -16
- package/lib/switch/index.less_inline.js +1 -2
- package/lib/tabbar/index.js +1 -2
- package/lib/tabbar/index.less_inline.js +1 -2
- package/lib/tabbar/item.js +1 -2
- package/lib/tabbar/item.less_inline.js +1 -2
- package/lib/table/index.js +1 -2
- package/lib/table/index.less_inline.js +1 -2
- package/lib/tabs/index.js +1 -2
- package/lib/tag/index.d.ts +11 -3
- package/lib/tag/index.js +25 -24
- package/lib/tag/index.less_inline.js +2 -3
- package/lib/theme/appearance.d.ts +5 -0
- package/lib/theme/appearance.js +34 -0
- package/lib/theme/index.js +83 -39
- package/lib/theme/index.less_inline.js +1 -2
- package/lib/theme/theme_color.js +1 -2
- package/lib/upload/index.js +28 -41
- package/lib/upload/index.less_inline.js +2 -3
- package/lib/upload/style.js +1 -2
- package/lib/utils/clickoutside.js +1 -2
- package/lib/utils/event.js +1 -2
- package/lib/utils/index.d.ts +27 -6
- package/lib/utils/index.js +26 -6
- package/lib/utils/popover.js +7 -16
- package/lib/utils/transition.js +1 -2
- package/package.json +16 -13
- package/styles/dark.css +10 -2
- package/styles/dropdown.css +46 -0
- package/styles/reset.css +0 -1
- package/styles/select.css +5 -0
- package/styles/themes/apple.css +47 -0
- package/styles/{theme-coral.css → themes/coral.css} +5 -3
- package/styles/themes/deep-sea-blue.css +12 -0
- package/styles/themes/gamboge.css +15 -0
- package/styles/{theme-jade.css → themes/jade.css} +5 -3
- package/styles/themes/lotus-seed.css +12 -0
- package/styles/{theme-tangerine.css → themes/tangerine.css} +5 -3
- package/styles/themes.css +8 -0
- package/styles/vars.css +8 -2
- package/types/preact.d.ts +42 -0
- package/lib/form/types.d.ts +0 -7
- package/lib/utils/context_provide.d.ts +0 -10
- package/lib/utils/context_provide.js +0 -22
- package/lib/utils/locale.d.ts +0 -6
- package/lib/utils/locale.js +0 -34
- package/lib/utils/signal_types.d.ts +0 -5
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../icon/search.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/icon-search.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../icon/select.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/icon-select.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/icon-sort.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../icon/sort.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/icon-sort.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../icon/success.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/icon-success.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/icon-sun.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../icon/sun.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/icon-sun.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../icon/theme_default.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/icon-theme-default.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/icon-warn.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../icon/warn.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/icon-warn.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../icon/zoom_in.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/icon-zoom-in.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../icon/zoom_out.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/icon-zoom-out.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../image/image_preview.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/image-preview.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/image.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../image/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/image.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../input_number/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/input-number.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/input.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../input/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/input.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/list.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../list/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/list.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/loading.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { t as LoadingInstance, e as default };
|
|
1
|
+
export { LoadingInstance, default } from "../loading/index.js";
|
package/lib/entries/mask.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../mask/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/mask.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/md-input.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../md_input/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/md-input.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/menu.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../menu/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/menu.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/message.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "../message/index.js";
|
package/lib/entries/modal-box.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "../modal/modal_box.js";
|
package/lib/entries/modal.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../modal/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/modal.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "../notification/notification_box.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "../notification/index.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../page_header/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/page-header.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../pagination/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/pagination.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/polygon.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../polygon/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/polygon.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as Popover, t as autoUpdate, n as createPopoverObserver, r as getOverflowAncestors, i as popconfirmProps, a as updatePosition };
|
|
1
|
+
export { Popover, autoUpdate, createPopoverObserver, getOverflowAncestors, popconfirmProps, updatePosition } from "../utils/popover.js";
|
package/lib/entries/popover.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as Popover, t as autoUpdate, n as createPopoverObserver, r as getOverflowAncestors, i as popconfirmProps, a as updatePosition };
|
|
1
|
+
export { Popover, autoUpdate, createPopoverObserver, getOverflowAncestors, popconfirmProps, updatePosition } from "../utils/popover.js";
|
package/lib/entries/qrcode.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../qrcode/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/qrcode.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../check/radio_group.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/radio-group.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/radio.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../check/radio.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/radio.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../select_ori/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/select-ori.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/select.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../select/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/select.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/space.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../space/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/space.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/switch.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../switch/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/switch.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../tabbar/item.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/tabbar-item.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/tabbar.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../tabbar/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/tabbar.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/table.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../table/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/table.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/tabs.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "../tabs/index.js";
|
package/lib/entries/tag.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../tag/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/tag.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../theme/theme_color.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/theme-color.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
package/lib/entries/theme.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default };
|
|
1
|
+
import e from "../theme/index.js";
|
|
2
|
+
import { regist as t } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/theme.ts
|
|
4
|
+
t(e);
|
|
5
|
+
export { e as default };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as createTransition };
|
|
1
|
+
export { createTransition } from "../utils/transition.js";
|
package/lib/entries/upload.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
e
|
|
5
|
-
|
|
6
|
-
export { t as default, n as defaultUploadResponseParser };
|
|
1
|
+
import e, { defaultUploadResponseParser as t } from "../upload/index.js";
|
|
2
|
+
import { regist as n } from "../utils/index.js";
|
|
3
|
+
// src/components/entries/upload.ts
|
|
4
|
+
n(e);
|
|
5
|
+
export { e as default, t as defaultUploadResponseParser };
|
package/lib/entries/utils.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
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
|
-
export { e as getLocale, t as initAttr, n as kebabToCamel, r as parseAttrValue, i as regist, a as setAttrs, o as stopSignal, s as tagAttr, c as tagAttrs, l as unitNumberStr, u as useId };
|
|
1
|
+
export { generateButtonColor, generateTagColor, initAttr, kebabToCamel, parseAttrValue, regist, setAttrs, stopSignal, tagAttr, tagAttrs, unitNumberStr, useId } from "../utils/index.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const fieldControlSelector = "input:not([type=\"hidden\"],[type=\"button\"],[type=\"submit\"],[type=\"reset\"],[type=\"image\"]),textarea,select";
|
|
2
|
+
export type NativeFieldControl = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement;
|
|
3
|
+
export declare function referenceElements(element: Element, attribute: string): Element[];
|
|
4
|
+
export declare function referenceText(elements: Iterable<Element>): string;
|
|
5
|
+
/** 管理本组件写入的 ARIA 值,移除关联时恢复使用者自己的值。 */
|
|
6
|
+
export declare class FieldAccessibility {
|
|
7
|
+
private readonly control;
|
|
8
|
+
private readonly attributes;
|
|
9
|
+
private description?;
|
|
10
|
+
constructor(control: HTMLElement);
|
|
11
|
+
authoredValue(attribute: string): string | null;
|
|
12
|
+
attribute(attribute: string, value?: string): void;
|
|
13
|
+
describe(container: HTMLElement | ShadowRoot, text: string): void;
|
|
14
|
+
clear(container: HTMLElement | ShadowRoot): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// src/components/form/accessibility.ts
|
|
2
|
+
var e = "input:not([type=\"hidden\"],[type=\"button\"],[type=\"submit\"],[type=\"reset\"],[type=\"image\"]),textarea,select";
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
let n = e.getRootNode();
|
|
5
|
+
return (e.getAttribute(t) ?? "").split(/\s+/).map((e) => e ? n.getElementById?.(e) : null).filter((e) => !!e);
|
|
6
|
+
}
|
|
7
|
+
function n(e) {
|
|
8
|
+
return Array.from(e, (e) => {
|
|
9
|
+
let t = e.cloneNode(!0);
|
|
10
|
+
for (let e of t.querySelectorAll("[aria-hidden=\"true\"],[hidden],script,style")) e.remove();
|
|
11
|
+
return t.textContent?.trim();
|
|
12
|
+
}).filter(Boolean).join(" ");
|
|
13
|
+
}
|
|
14
|
+
var r = 0, i = class {
|
|
15
|
+
control;
|
|
16
|
+
attributes = /* @__PURE__ */ new Map();
|
|
17
|
+
description;
|
|
18
|
+
constructor(e) {
|
|
19
|
+
this.control = e;
|
|
20
|
+
}
|
|
21
|
+
authoredValue(e) {
|
|
22
|
+
let t = this.control.getAttribute(e), n = this.attributes.get(e);
|
|
23
|
+
return n && n.value === t ? n.original : t;
|
|
24
|
+
}
|
|
25
|
+
attribute(e, t) {
|
|
26
|
+
let n = this.authoredValue(e), r = this.control.getAttribute(e);
|
|
27
|
+
if (t === void 0) {
|
|
28
|
+
if (this.attributes.delete(e), n === r) return;
|
|
29
|
+
n === null ? this.control.removeAttribute(e) : this.control.setAttribute(e, n);
|
|
30
|
+
} else this.attributes.set(e, {
|
|
31
|
+
original: n,
|
|
32
|
+
value: t
|
|
33
|
+
}), t !== r && this.control.setAttribute(e, t);
|
|
34
|
+
}
|
|
35
|
+
describe(e, t) {
|
|
36
|
+
let n = "aria-describedby", i = this.description?.id, a = this.control.getAttribute(n) ?? "", o = a.split(/\s+/).filter((e) => e && e !== i);
|
|
37
|
+
if (t) {
|
|
38
|
+
if (this.description && this.description.parentNode !== e && (this.description.remove(), this.description = void 0), !this.description) {
|
|
39
|
+
let t = e.getRootNode(), n = this.control.ownerDocument.createElement("span");
|
|
40
|
+
do
|
|
41
|
+
n.id = `l-form-description-${++r}`;
|
|
42
|
+
while (t.getElementById?.(n.id));
|
|
43
|
+
n.hidden = !0, e.append(n), this.description = n;
|
|
44
|
+
}
|
|
45
|
+
this.description.textContent !== t && (this.description.textContent = t), o.push(this.description.id);
|
|
46
|
+
} else if (this.description) this.description.remove(), this.description = void 0;
|
|
47
|
+
else return;
|
|
48
|
+
let s = o.join(" ");
|
|
49
|
+
s && s !== a ? this.control.setAttribute(n, s) : !s && a && this.control.removeAttribute(n);
|
|
50
|
+
}
|
|
51
|
+
clear(e) {
|
|
52
|
+
for (let e of this.attributes.keys()) this.attribute(e);
|
|
53
|
+
this.describe(e, "");
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
export { i as FieldAccessibility, e as fieldControlSelector, t as referenceElements, n as referenceText };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type FormAutocompleteValue = "on" | "off";
|
|
2
|
+
export declare function normalizeFormAutocomplete(value: string | null): FormAutocompleteValue | undefined;
|
|
3
|
+
/** 只向本表单内未显式配置的原生控件传递默认值,不修改共享的祖先 form。 */
|
|
4
|
+
export declare class FormAutocomplete {
|
|
5
|
+
private host;
|
|
6
|
+
private owner;
|
|
7
|
+
private publish;
|
|
8
|
+
private observer?;
|
|
9
|
+
private observedOwner?;
|
|
10
|
+
private readonly assigned;
|
|
11
|
+
constructor(host: HTMLElement, owner: () => {
|
|
12
|
+
form?: HTMLFormElement;
|
|
13
|
+
ownsForm: boolean;
|
|
14
|
+
}, publish: (value?: FormAutocompleteValue) => void);
|
|
15
|
+
start(): void;
|
|
16
|
+
private observe;
|
|
17
|
+
private readAuthoredChanges;
|
|
18
|
+
refresh(): void;
|
|
19
|
+
stop(): void;
|
|
20
|
+
}
|
|
21
|
+
export {};
|