litos-ui 0.21.0 → 0.23.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 +121 -15
- package/README.zh-CN.md +155 -0
- package/lib/base.d.ts +1 -0
- package/lib/base.js +1 -1
- package/lib/button/index.js +4 -4
- package/lib/{style-gKR_qwzm.js → button/index.less_inline.js} +2 -3
- package/lib/button/style.js +8 -2
- package/lib/calendar/index.js +140 -2
- package/lib/calendar/index.less_inline.js +4 -0
- package/lib/calendar/langs.js +12 -0
- package/lib/card/index.js +64 -2
- package/lib/card/index.less_inline.js +4 -0
- package/lib/carousel/index.js +257 -2
- package/lib/carousel/index.less_inline.js +4 -0
- package/lib/carousel/item.js +15 -2
- package/lib/carousel/item.less_inline.js +4 -0
- package/lib/carousel/timer.js +19 -0
- package/lib/check/check.d.ts +1 -0
- package/lib/check/check.js +117 -0
- package/lib/check/check.less_inline.js +4 -0
- package/lib/check/checkbox.js +18 -2
- package/lib/{checkbox-DhGHJXwI.js → check/checkbox.less_inline.js} +2 -14
- package/lib/check/checkbox_group.js +1 -1
- package/lib/check/index.d.ts +1 -0
- package/lib/{check-DFlwStH9.js → check/index.js} +10 -9
- package/lib/check/index.less_inline.js +4 -0
- package/lib/check/radio.js +15 -2
- package/lib/{radio-C9NPQWGI.js → check/radio.less_inline.js} +2 -11
- package/lib/check/radio_group.js +1 -1
- package/lib/collapse/index.js +103 -2
- package/lib/collapse/index.less_inline.js +4 -0
- package/lib/collapse/item.d.ts +1 -0
- package/lib/collapse/item.js +118 -2
- package/lib/collapse/item.less_inline.js +4 -0
- package/lib/collapse/types.d.ts +1 -0
- package/lib/color_picker/index.js +42 -2
- package/lib/color_picker/index.less_inline.js +4 -0
- package/lib/date_picker/index.js +100 -3
- package/lib/date_picker/index.less_inline.js +4 -0
- package/lib/date_picker_ori/index.js +121 -2
- package/lib/date_picker_ori/index.less_inline.js +4 -0
- package/lib/description_panel/index.js +54 -2
- package/lib/description_panel/index.less_inline.js +4 -0
- package/lib/dialog/dialog_box.js +10 -10
- package/lib/{dialog_container_style-C1s0aBf7.js → dialog/dialog_container.css_inline.js} +2 -3
- package/lib/dialog/dialog_container.d.ts +1 -0
- package/lib/dialog/dialog_container.js +71 -60
- package/lib/dialog/dialog_container_style.js +8 -2
- package/lib/dialog/index.d.ts +1 -0
- package/lib/dialog/index.js +11 -6
- package/lib/entries/base.d.ts +2 -0
- package/lib/entries/base.js +2 -0
- package/lib/entries/button.d.ts +2 -0
- package/lib/entries/button.js +6 -0
- package/lib/entries/calendar.d.ts +2 -0
- package/lib/entries/calendar.js +6 -0
- package/lib/entries/card.d.ts +2 -0
- package/lib/entries/card.js +6 -0
- package/lib/entries/carousel-item.d.ts +2 -0
- package/lib/entries/carousel-item.js +6 -0
- package/lib/entries/carousel.d.ts +5 -0
- package/lib/entries/carousel.js +6 -0
- package/lib/entries/checkbox-group.d.ts +3 -0
- package/lib/entries/checkbox-group.js +6 -0
- package/lib/entries/checkbox.d.ts +2 -0
- package/lib/entries/checkbox.js +6 -0
- package/lib/entries/collapse-item.d.ts +3 -0
- package/lib/entries/collapse-item.js +6 -0
- package/lib/entries/collapse.d.ts +3 -0
- package/lib/entries/collapse.js +6 -0
- package/lib/entries/color-picker.d.ts +3 -0
- package/lib/entries/color-picker.js +6 -0
- package/lib/entries/date-picker-ori.d.ts +2 -0
- package/lib/entries/date-picker-ori.js +6 -0
- package/lib/entries/date-picker.d.ts +9 -0
- package/lib/entries/date-picker.js +6 -0
- package/lib/entries/description-panel.d.ts +4 -0
- package/lib/entries/description-panel.js +6 -0
- package/lib/entries/dialog-box.d.ts +6 -0
- package/lib/entries/dialog-box.js +2 -0
- package/lib/entries/dialog-container.d.ts +4 -0
- package/lib/entries/dialog-container.js +6 -0
- package/lib/entries/dialog.d.ts +3 -0
- package/lib/entries/dialog.js +2 -0
- package/lib/entries/form-item.d.ts +2 -0
- package/lib/entries/form-item.js +6 -0
- package/lib/entries/form.d.ts +3 -0
- package/lib/entries/form.js +6 -0
- package/lib/entries/icon-arrow-down.d.ts +2 -0
- package/lib/entries/icon-arrow-down.js +6 -0
- package/lib/entries/icon-arrow-left.d.ts +2 -0
- package/lib/entries/icon-arrow-left.js +6 -0
- package/lib/entries/icon-arrow-right.d.ts +2 -0
- package/lib/entries/icon-arrow-right.js +6 -0
- package/lib/entries/icon-arrow-up.d.ts +2 -0
- package/lib/entries/icon-arrow-up.js +6 -0
- package/lib/entries/icon-base.d.ts +2 -0
- package/lib/entries/icon-base.js +6 -0
- package/lib/entries/icon-calendar.d.ts +2 -0
- package/lib/entries/icon-calendar.js +6 -0
- package/lib/entries/icon-caret-bottom.d.ts +2 -0
- package/lib/entries/icon-caret-bottom.js +6 -0
- package/lib/entries/icon-caret-top.d.ts +2 -0
- package/lib/entries/icon-caret-top.js +6 -0
- package/lib/entries/icon-close-filled.d.ts +2 -0
- package/lib/entries/icon-close-filled.js +6 -0
- package/lib/entries/icon-close.d.ts +2 -0
- package/lib/entries/icon-close.js +6 -0
- package/lib/entries/icon-copy.d.ts +2 -0
- package/lib/entries/icon-copy.js +6 -0
- package/lib/entries/icon-d-arrow-left.d.ts +2 -0
- package/lib/entries/icon-d-arrow-left.js +6 -0
- package/lib/entries/icon-d-arrow-right.d.ts +2 -0
- package/lib/entries/icon-d-arrow-right.js +6 -0
- package/lib/entries/icon-delete.d.ts +2 -0
- package/lib/entries/icon-delete.js +6 -0
- package/lib/entries/icon-eye-outline.d.ts +2 -0
- package/lib/entries/icon-eye-outline.js +6 -0
- package/lib/entries/icon-font-icon.d.ts +2 -0
- package/lib/entries/icon-font-icon.js +6 -0
- package/lib/entries/icon-info.d.ts +2 -0
- package/lib/entries/icon-info.js +6 -0
- package/lib/entries/icon-loading.d.ts +2 -0
- package/lib/entries/icon-loading.js +6 -0
- package/lib/entries/icon-minus.d.ts +2 -0
- package/lib/entries/icon-minus.js +6 -0
- package/lib/entries/icon-moon.d.ts +2 -0
- package/lib/entries/icon-moon.js +6 -0
- package/lib/entries/icon-more.d.ts +2 -0
- package/lib/entries/icon-more.js +6 -0
- package/lib/entries/icon-picture.d.ts +2 -0
- package/lib/entries/icon-picture.js +6 -0
- package/lib/entries/icon-plus.d.ts +2 -0
- package/lib/entries/icon-plus.js +6 -0
- package/lib/entries/icon-reduction.d.ts +2 -0
- package/lib/entries/icon-reduction.js +6 -0
- package/lib/entries/icon-refresh-left.d.ts +2 -0
- package/lib/entries/icon-refresh-left.js +6 -0
- package/lib/entries/icon-refresh-right.d.ts +2 -0
- package/lib/entries/icon-refresh-right.js +6 -0
- package/lib/entries/icon-refresh.d.ts +2 -0
- package/lib/entries/icon-refresh.js +6 -0
- package/lib/entries/icon-search.d.ts +2 -0
- package/lib/entries/icon-search.js +6 -0
- package/lib/entries/icon-select.d.ts +2 -0
- package/lib/entries/icon-select.js +6 -0
- package/lib/entries/icon-sort.d.ts +2 -0
- package/lib/entries/icon-sort.js +6 -0
- package/lib/entries/icon-success.d.ts +2 -0
- package/lib/entries/icon-success.js +6 -0
- package/lib/entries/icon-sun.d.ts +2 -0
- package/lib/entries/icon-sun.js +6 -0
- package/lib/entries/icon-theme-default.d.ts +2 -0
- package/lib/entries/icon-theme-default.js +6 -0
- package/lib/entries/icon-warn.d.ts +2 -0
- package/lib/entries/icon-warn.js +6 -0
- package/lib/entries/icon-zoom-in.d.ts +2 -0
- package/lib/entries/icon-zoom-in.js +6 -0
- package/lib/entries/icon-zoom-out.d.ts +2 -0
- package/lib/entries/icon-zoom-out.js +6 -0
- package/lib/entries/image-preview.d.ts +10 -0
- package/lib/entries/image-preview.js +6 -0
- package/lib/entries/image.d.ts +2 -0
- package/lib/entries/image.js +6 -0
- package/lib/entries/input-number.d.ts +2 -0
- package/lib/entries/input-number.js +6 -0
- package/lib/entries/input.d.ts +2 -0
- package/lib/entries/input.js +6 -0
- package/lib/entries/list.d.ts +3 -0
- package/lib/entries/list.js +6 -0
- package/lib/entries/loading.d.ts +2 -0
- package/lib/entries/loading.js +2 -0
- package/lib/entries/mask.d.ts +2 -0
- package/lib/entries/mask.js +6 -0
- package/lib/entries/md-input.d.ts +2 -0
- package/lib/entries/md-input.js +6 -0
- package/lib/entries/menu.d.ts +3 -0
- package/lib/entries/menu.js +6 -0
- package/lib/entries/message.d.ts +6 -0
- package/lib/entries/message.js +2 -0
- package/lib/entries/modal-box.d.ts +6 -0
- package/lib/entries/modal-box.js +2 -0
- package/lib/entries/modal.d.ts +4 -0
- package/lib/entries/modal.js +6 -0
- package/lib/entries/notification-box.d.ts +2 -0
- package/lib/entries/notification-box.js +2 -0
- package/lib/entries/notification.d.ts +2 -0
- package/lib/entries/notification.js +2 -0
- package/lib/entries/page-header.d.ts +4 -0
- package/lib/entries/page-header.js +6 -0
- package/lib/entries/pagination.d.ts +9 -0
- package/lib/entries/pagination.js +6 -0
- package/lib/entries/polygon.d.ts +2 -0
- package/lib/entries/polygon.js +6 -0
- package/lib/entries/popconfirm.d.ts +3 -0
- package/lib/entries/popconfirm.js +2 -0
- package/lib/entries/popover.d.ts +1 -0
- package/lib/entries/popover.js +2 -0
- package/lib/entries/qrcode.d.ts +2 -0
- package/lib/entries/qrcode.js +6 -0
- package/lib/entries/radio-group.d.ts +3 -0
- package/lib/entries/radio-group.js +6 -0
- package/lib/entries/radio.d.ts +2 -0
- package/lib/entries/radio.js +6 -0
- package/lib/entries/select-ori.d.ts +2 -0
- package/lib/entries/select-ori.js +6 -0
- package/lib/entries/select.d.ts +4 -0
- package/lib/entries/select.js +6 -0
- package/lib/entries/space.d.ts +2 -0
- package/lib/entries/space.js +6 -0
- package/lib/entries/switch.d.ts +2 -0
- package/lib/entries/switch.js +6 -0
- package/lib/entries/tabbar-item.d.ts +2 -0
- package/lib/entries/tabbar-item.js +6 -0
- package/lib/entries/tabbar.d.ts +3 -0
- package/lib/entries/tabbar.js +6 -0
- package/lib/entries/table.d.ts +3 -0
- package/lib/entries/table.js +6 -0
- package/lib/entries/tabs.d.ts +3 -0
- package/lib/entries/tabs.js +2 -0
- package/lib/entries/tag.d.ts +2 -0
- package/lib/entries/tag.js +6 -0
- package/lib/entries/theme-color.d.ts +3 -0
- package/lib/entries/theme-color.js +6 -0
- package/lib/entries/theme.d.ts +9 -0
- package/lib/entries/theme.js +6 -0
- package/lib/entries/transition.d.ts +1 -0
- package/lib/entries/transition.js +2 -0
- package/lib/entries/upload.d.ts +3 -0
- package/lib/entries/upload.js +6 -0
- package/lib/entries/utils.d.ts +1 -0
- package/lib/entries/utils.js +2 -0
- package/lib/form/form_inner.d.ts +1 -0
- package/lib/{form_inner-Cnwb6f_Q.js → form/form_inner.js} +9 -9
- package/lib/form/form_item.d.ts +2 -1
- package/lib/form/form_item.js +148 -2
- package/lib/form/form_item.less_inline.js +4 -0
- package/lib/form/index.d.ts +3 -2
- package/lib/form/index.js +191 -2
- package/lib/form/index.less_inline.js +4 -0
- package/lib/icon/base.js +1 -1
- package/lib/icon/delete.d.ts +5 -0
- package/lib/icon/delete.js +10 -0
- package/lib/icon/eye_outline.d.ts +6 -0
- package/lib/icon/eye_outline.js +13 -0
- package/lib/icon/icon_style.js +8 -2
- package/lib/{icon_style-J7iiDS_a.js → icon/index.less_inline.js} +2 -3
- package/lib/icon/minus.d.ts +5 -0
- package/lib/icon/minus.js +10 -0
- package/lib/icon/picture.d.ts +5 -0
- package/lib/icon/picture.js +10 -0
- package/lib/icon/plus.d.ts +5 -0
- package/lib/icon/plus.js +10 -0
- package/lib/image/image_preview.js +91 -2
- package/lib/image/image_preview.less_inline.js +4 -0
- package/lib/image/index.js +163 -2
- package/lib/image/index.less_inline.js +4 -0
- package/lib/index.d.ts +12 -0
- package/lib/index.js +48 -40
- package/lib/input/index.js +4 -4
- package/lib/{input-DUBlLEXS.js → input/index.less_inline.js} +1 -1
- package/lib/{input_inner-x4GfLGjj.js → input/input_inner.less_inline.js} +1 -1
- package/lib/input_number/index.js +3 -3
- package/lib/{style-C5wUmE2b.js → input_number/index.less_inline.js} +2 -3
- package/lib/input_number/style.js +8 -2
- package/lib/list/index.js +52 -2
- package/lib/list/index.less_inline.js +4 -0
- package/lib/loading/index.js +1 -1
- package/lib/mask/index.d.ts +1 -1
- package/lib/mask/index.js +109 -2
- package/lib/mask/index.less_inline.js +4 -0
- package/lib/md_input/index.js +59 -2
- package/lib/md_input/index.less_inline.js +4 -0
- package/lib/menu/index.js +275 -2
- package/lib/menu/index.less_inline.js +4 -0
- package/lib/message/index.js +1 -1
- package/lib/modal/index.js +199 -2
- package/lib/modal/index.less_inline.js +4 -0
- package/lib/modal/modal_box.js +21 -22
- package/lib/notification/index.d.ts +171 -0
- package/lib/notification/index.js +326 -0
- package/lib/notification/index.less_inline.js +4 -0
- package/lib/notification/notification_box.d.ts +40 -0
- package/lib/notification/notification_box.js +57 -0
- package/lib/notification/placement.d.ts +49 -0
- package/lib/notification/placement.js +48 -0
- package/lib/notification/style.d.ts +2 -0
- package/lib/notification/style.js +8 -0
- package/lib/page_header/index.js +100 -2
- package/lib/page_header/index.less_inline.js +4 -0
- package/lib/pagination/index.js +214 -2
- package/lib/pagination/index.less_inline.js +4 -0
- package/lib/polygon/index.js +21 -2
- package/lib/{polygon-DhhovlrG.js → polygon/index.less_inline.js} +2 -18
- package/lib/qrcode/index.js +65 -2
- package/lib/qrcode/index.less_inline.js +4 -0
- package/lib/select/index.js +355 -3
- package/lib/select/index.less_inline.js +4 -0
- package/lib/select_ori/index.js +58 -2
- package/lib/select_ori/index.less_inline.js +4 -0
- package/lib/space/index.js +40 -2
- package/lib/space/index.less_inline.js +4 -0
- package/lib/{animation-Bo4jbSGK.js → styles/animation/index.css_inline.js} +2 -3
- package/lib/styles/animation/index.js +8 -2
- package/lib/{mask-Ox6CoyFB.js → styles/mask/index.css_inline.js} +2 -3
- package/lib/styles/mask/index.js +8 -2
- package/lib/switch/index.js +51 -2
- package/lib/switch/index.less_inline.js +4 -0
- package/lib/tabbar/index.js +97 -2
- package/lib/tabbar/index.less_inline.js +4 -0
- package/lib/tabbar/item.js +61 -2
- package/lib/tabbar/item.less_inline.js +4 -0
- package/lib/table/index.js +234 -2
- package/lib/table/index.less_inline.js +4 -0
- package/lib/tabs/index.js +1 -1
- package/lib/tag/index.js +75 -2
- package/lib/tag/index.less_inline.js +4 -0
- package/lib/theme/index.js +86 -2
- package/lib/theme/index.less_inline.js +4 -0
- package/lib/theme/theme_color.js +1 -1
- package/lib/upload/index.d.ts +170 -0
- package/lib/upload/index.js +848 -0
- package/lib/upload/index.less_inline.js +4 -0
- package/lib/upload/style.d.ts +2 -0
- package/lib/upload/style.js +8 -0
- package/lib/utils/context_provide.d.ts +1 -0
- package/lib/utils/context_provide.js +1 -1
- package/lib/utils/event.d.ts +30 -0
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/index.js +1 -1
- package/lib/utils/popover.js +1 -1
- package/lib/utils/signal_types.d.ts +5 -0
- package/lib/utils/transition.d.ts +28 -0
- package/lib/utils/transition.js +1 -1
- package/package.json +39 -18
- package/styles/animation.css +2 -2
- package/styles/container.css +8 -8
- package/styles/dark.css +21 -1
- package/styles/datepicker.css +9 -9
- package/styles/dialog.css +7 -7
- package/styles/loading.css +17 -17
- package/styles/message.css +9 -9
- package/styles/modal_box.css +3 -3
- package/styles/notification.css +17 -0
- package/styles/popover.css +11 -14
- package/styles/reset.css +13 -15
- package/styles/scrollbar.css +5 -5
- package/styles/select.css +6 -6
- package/styles/tabs.css +3 -3
- package/styles/theme-coral.css +35 -0
- package/styles/theme-jade.css +35 -0
- package/styles/theme-tangerine.css +35 -0
- package/styles/transition.css +1 -1
- package/styles/vars.css +7 -7
- package/lib/calendar-CvlUsN6w.js +0 -146
- package/lib/card-3DM-lJQV.js +0 -63
- package/lib/carousel-DvkZ1YXq.js +0 -276
- package/lib/check-doQ2ZpQj.js +0 -117
- package/lib/collapse-B6-Rn05A.js +0 -102
- package/lib/color_picker-0a-IGZY9.js +0 -41
- package/lib/date_picker-BDN2PAz5.js +0 -99
- package/lib/date_picker_ori-BXFs1eET.js +0 -120
- package/lib/description_panel--AKXBzLL.js +0 -53
- package/lib/esm-DAha108i.js +0 -270
- package/lib/form-DJxvBiLy.js +0 -190
- package/lib/form_item-BqPMRABd.js +0 -147
- package/lib/image-CVQai6NX.js +0 -162
- package/lib/image_preview-DfQAKSJH.js +0 -90
- package/lib/item-CQ2Sknbz.js +0 -14
- package/lib/item-DI6mQXtB.js +0 -117
- package/lib/item-D_ZOPXuE.js +0 -60
- package/lib/list-MG8PRzos.js +0 -51
- package/lib/mask-Bx-yNIJv.js +0 -108
- package/lib/md_input-BX3bujz8.js +0 -58
- package/lib/menu-DKscK5mw.js +0 -274
- package/lib/modal-Cwi3qlEf.js +0 -198
- package/lib/page_header-ujV3pncE.js +0 -99
- package/lib/pagination-aRbGd3Rf.js +0 -213
- package/lib/qrcode-Dip8uLSA.js +0 -64
- package/lib/select-BZMDj5VE.js +0 -354
- package/lib/select_ori-C7sUZxen.js +0 -57
- package/lib/space-CKuTk0YB.js +0 -39
- package/lib/switch-wh2-ivty.js +0 -50
- package/lib/tabbar-CBXK-_AV.js +0 -96
- package/lib/table-BQxMD2Ae.js +0 -233
- package/lib/tag-Di1z9PoZ.js +0 -74
- package/lib/theme-CLbBS-in.js +0 -85
package/lib/table-BQxMD2Ae.js
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import e from "./base.js";
|
|
2
|
-
import { kebabToCamel as t, parseAttrValue as n } from "./utils/index.js";
|
|
3
|
-
import { $$ as r, $one as i, formatStyle as a, iterate as o, off as s, on as c, shouldEventNext as l } from "ph-utils/browser";
|
|
4
|
-
import { random as u } from "ph-utils";
|
|
5
|
-
//#region src/components/table/index.less?inline
|
|
6
|
-
var d = ":host{width:100%;max-height:var(--l-table-max-height,100%);font-size:var(--l-table-font-size,14px);display:inline-block;overflow:auto}.l-table{border-collapse:collapse;border-spacing:0;table-layout:var(--l-table-layout,auto);width:100%}.l-table th,.l-table td{border-bottom:1px solid var(--l-table-border-color,#e6e6e6)}.l-table th{padding:var(--l-table-th-padding,10px);text-align:left;background-color:var(--l-table-th-bg,#f2f2f2);color:var(--l-table-th-color,#000)}.l-table td{background-color:var(--l-table-td-bg,#fff);color:var(--l-table-td-color,#000);padding:var(--l-table-td-padding,10px);transition:background-color .3s}.l-table tr:hover td{background-color:var(--l-table-row-hover-bg,#f2f2f2)}.l-table .l-table__empty-col{color:var(--l-table-empty-color,#999);text-align:center}.l-table-stripe tr:nth-child(2n) td{background-color:var(--l-table-stripe-bg,#fafafa)}.l-table-stripe tr:nth-child(2n):hover td{background-color:var(--l-table-row-hover-bg,#f2f2f2)}.l-table-border th,.l-table-border td{border:1px solid var(--l-table-border-color,#e6e6e6)}.l-table-fixed{--l-table-layout:fixed}.l-table-fixed .l-fixed{z-index:1;box-sizing:border-box;position:-webkit-sticky;position:sticky}.l-table-fixed thead.l-fixed,.l-table-fixed tfoot.l-fixed{z-index:2}.l-table .caret-wrapper{vertical-align:middle;justify-content:center;align-items:center;width:20px;height:14px;display:inline-flex;position:relative}.l-table .caret-wrapper .ascending{border-bottom-color:var(--l-table-sort-inactive-color,#c0c4cc);top:-5px}.l-table .caret-wrapper .descending{border-top-color:var(--l-table-sort-inactive-color,#c0c4cc);bottom:-3px}.l-table .sort-caret{border:5px solid #0000;border-radius:3px;width:0;height:0;display:inline-block;position:absolute}.l-table .sort-column{cursor:pointer}.l-table .sort-asc .ascending{border-bottom-color:var(--l-primary-color,#52c41a)}.l-table .sort-desc .descending{border-top-color:var(--l-primary-color,#52c41a)}", f = class extends e {
|
|
7
|
-
static baseName = "table";
|
|
8
|
-
constructor() {
|
|
9
|
-
super(), this._state = {
|
|
10
|
-
stripe: !0,
|
|
11
|
-
border: !1,
|
|
12
|
-
fixedHead: !1,
|
|
13
|
-
fixedColumn: !1
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
columns = [];
|
|
17
|
-
data = [];
|
|
18
|
-
sortInfo;
|
|
19
|
-
_globalColStyles;
|
|
20
|
-
connectedCallback() {
|
|
21
|
-
this.loadStyleText(d), super.connectedCallback();
|
|
22
|
-
}
|
|
23
|
-
setColumns(e) {
|
|
24
|
-
this.columns = this._parseColumns(e, 0, 0), this.rerender("all");
|
|
25
|
-
}
|
|
26
|
-
setData(e, t) {
|
|
27
|
-
this.data = e, this.sortInfo = t, this.columns && this.columns.length > 0 && this.rerender(t ? "all" : "body");
|
|
28
|
-
}
|
|
29
|
-
changeFixed(e) {
|
|
30
|
-
let t = {
|
|
31
|
-
fixedHead: this._state.fixedHead,
|
|
32
|
-
fixedColumn: this._state.fixedColumn,
|
|
33
|
-
...e
|
|
34
|
-
};
|
|
35
|
-
if (this._state.fixedHead = t.fixedHead, this._state.fixedColumn = t.fixedColumn, this.rendered) {
|
|
36
|
-
let e = i(".l-table", this.root);
|
|
37
|
-
e && (this._state.fixedHead || this._state.fixedColumn ? e.classList.add("l-table-fixed") : e.classList.remove("l-table-fixed"));
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
static get observedAttributes() {
|
|
41
|
-
return [
|
|
42
|
-
"stripe",
|
|
43
|
-
"border",
|
|
44
|
-
"fixed-head",
|
|
45
|
-
"max-height",
|
|
46
|
-
"table-layout"
|
|
47
|
-
];
|
|
48
|
-
}
|
|
49
|
-
attributeChanged(e, r, i) {
|
|
50
|
-
let a = t(e);
|
|
51
|
-
switch (a) {
|
|
52
|
-
case "stripe":
|
|
53
|
-
case "border":
|
|
54
|
-
case "fixedHead":
|
|
55
|
-
case "fixedColumn":
|
|
56
|
-
this._state[a] = n(i, !1, e);
|
|
57
|
-
break;
|
|
58
|
-
case "maxHeight":
|
|
59
|
-
this._state.maxHeight = i || void 0;
|
|
60
|
-
break;
|
|
61
|
-
case "tableLayout": this._state.tableLayout = i || void 0;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
updateDOM(e) {
|
|
65
|
-
e.has("stripe") && this._classAttrChannge("stripe", this._state.stripe), e.has("border") && this._classAttrChannge("border", this._state.border), e.has("fixedHead") && (this._updateFixedHead(), this.changeFixed()), e.has("maxHeight") && this._changeMaxHeight(), e.has("tableLayout") && this._changeCssVar("layout", this._state.tableLayout);
|
|
66
|
-
}
|
|
67
|
-
render() {
|
|
68
|
-
let e = r("table", { class: [
|
|
69
|
-
"l-table",
|
|
70
|
-
this._state.stripe ? "l-table-stripe" : "",
|
|
71
|
-
this._state.border ? "l-table-border" : "",
|
|
72
|
-
this._state.fixedHead || this._state.fixedColumn ? "l-table-fixed" : ""
|
|
73
|
-
] });
|
|
74
|
-
return e.appendChild(this._headRender()), e.appendChild(this._bodyRender()), e;
|
|
75
|
-
}
|
|
76
|
-
rerender(e) {
|
|
77
|
-
if (this.rendered) {
|
|
78
|
-
if (e === "all" || e === "head") {
|
|
79
|
-
let e = i("thead", this.root);
|
|
80
|
-
e && e.replaceWith(this._headRender());
|
|
81
|
-
}
|
|
82
|
-
if (e === "all" || e === "body") {
|
|
83
|
-
let e = i("tbody", this.root);
|
|
84
|
-
e && e.replaceWith(this._bodyRender());
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
_changeCssVar(e, t) {
|
|
89
|
-
if (!this.rendered) return;
|
|
90
|
-
let n = `--l-table-${e}`;
|
|
91
|
-
t ? this.style.setProperty(n, t) : this.style.removeProperty(n);
|
|
92
|
-
}
|
|
93
|
-
_changeMaxHeight() {
|
|
94
|
-
let e = this._state.maxHeight;
|
|
95
|
-
e && typeof e == "number" && (e = `${e}px`), this._changeCssVar("max-height", e);
|
|
96
|
-
}
|
|
97
|
-
_classAttrChannge(e, t) {
|
|
98
|
-
if (this.rendered) {
|
|
99
|
-
let n = i("table", this.root);
|
|
100
|
-
n && n.classList.toggle(`l-table-${e}`, t);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
_updateFixedHead() {
|
|
104
|
-
if (this.rendered) {
|
|
105
|
-
let e = i("thead", this.root);
|
|
106
|
-
e && (e.classList.toggle("l-fixed", this._state.fixedHead), e.style.top = this._state.fixedHead ? "0" : "");
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
_headRender() {
|
|
110
|
-
let e = r("thead", {
|
|
111
|
-
class: { "l-fixed": this._state.fixedHead },
|
|
112
|
-
style: { top: this._state.fixedHead ? "0" : void 0 }
|
|
113
|
-
});
|
|
114
|
-
return this.columns && this._rendHeadRow(e, this.columns), e;
|
|
115
|
-
}
|
|
116
|
-
_rendHeadRow(e, t) {
|
|
117
|
-
let n = r("tr");
|
|
118
|
-
for (let r = 0, i = t.length; r < i; r++) {
|
|
119
|
-
let i = t[r];
|
|
120
|
-
n.appendChild(this._headColRender(i, r)), i.children && this._rendHeadRow(e, i.children);
|
|
121
|
-
}
|
|
122
|
-
e.appendChild(n);
|
|
123
|
-
}
|
|
124
|
-
_headColRender(e, t) {
|
|
125
|
-
let n = r("th");
|
|
126
|
-
if (e.titleColspan && e.titleColspan > 1 && (n.colSpan = e.titleColspan), e.titleRowspan && e.titleRowspan > 1 && (n.rowSpan = e.titleRowspan), n.style.cssText = this._getColumnStyle(e, "th"), e.fixed && n.classList.add("l-fixed"), n.appendChild(r("span", { textContent: e.title })), e.sorter) {
|
|
127
|
-
let e = r("span", { class: "caret-wrapper" });
|
|
128
|
-
e.appendChild(r("span", { class: "sort-caret ascending" })), e.appendChild(r("span", { class: "sort-caret descending" })), n.classList.add("sort-column"), n.setAttribute("data-action", "sort"), n.setAttribute("data-col", `${t}`), n.appendChild(e);
|
|
129
|
-
}
|
|
130
|
-
return this.sortInfo && this.sortInfo.key === e.key && n.classList.add(this.sortInfo.order === "asc" ? "sort-asc" : "sort-desc"), n;
|
|
131
|
-
}
|
|
132
|
-
_bodyRender() {
|
|
133
|
-
let e = r("tbody");
|
|
134
|
-
if (this.data && this.data.length > 0) for (let t = 0, n = this.data.length; t < n; t++) {
|
|
135
|
-
let n = this.data[t];
|
|
136
|
-
if (this.columns) {
|
|
137
|
-
let i = r("tr");
|
|
138
|
-
this._bodyRowRender(this.columns, t, n, i), e.appendChild(i);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
let t = r("tr"), n = r("td", {
|
|
143
|
-
class: "l-table__empty-col",
|
|
144
|
-
textContent: "暂无数据"
|
|
145
|
-
});
|
|
146
|
-
this.columns && (n.colSpan = this.columns.length), t.appendChild(n), e.appendChild(t);
|
|
147
|
-
}
|
|
148
|
-
return e;
|
|
149
|
-
}
|
|
150
|
-
_bodyRowRender(e, t, n, i) {
|
|
151
|
-
for (let a = 0, s = e.length; a < s; a++) {
|
|
152
|
-
let s = e[a];
|
|
153
|
-
if (s.children && s.children.length > 0) this._bodyRowRender(s.children, t, n, i);
|
|
154
|
-
else {
|
|
155
|
-
let e = r("td");
|
|
156
|
-
if (typeof s.rowspan == "number" && (e.rowSpan = s.rowspan), typeof s.rowspan == "function" && (e.rowSpan = s.rowspan(n, t)), typeof s.colspan == "number" && (e.colSpan = s.colspan), typeof s.colspan == "function" && (e.colSpan = s.colspan(n, t)), s.fixed && (e.className = "l-fixed"), e.style.cssText = this._getColumnStyle(s), s.render) {
|
|
157
|
-
let r = s.render(n, t);
|
|
158
|
-
typeof r == "string" ? e.innerHTML = r : Array.isArray(r) ? o(r, (t) => {
|
|
159
|
-
e.appendChild(t);
|
|
160
|
-
}) : e.appendChild(r);
|
|
161
|
-
} else e.textContent = s.key ? n[s.key] : "";
|
|
162
|
-
i.appendChild(e);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
_parseColumns(e, t, n) {
|
|
167
|
-
let r = [];
|
|
168
|
-
for (let i = 0, a = e.length; i < a; i++) {
|
|
169
|
-
let a = e[i];
|
|
170
|
-
if (a.id ||= a.key || a.title, a.id ||= `${i}_${u(6)}`, a.fixed) {
|
|
171
|
-
let e = Number.parseFloat(`${a.width || 0}`);
|
|
172
|
-
a.fixed === "left" ? (a.left = t, t += e) : a.fixed === "right" && (a.right = n, n += e);
|
|
173
|
-
}
|
|
174
|
-
if (a.children) {
|
|
175
|
-
let e = this._parseColumns(a.children, t, n);
|
|
176
|
-
a.titleRowspan = a.titleRowspan || 1, a.titleColspan ||= e.reduce((e, t) => e + (t.titleColspan || 1), 0), r.push({
|
|
177
|
-
...a,
|
|
178
|
-
children: e
|
|
179
|
-
});
|
|
180
|
-
} else a.titleRowspan = a.titleRowspan || this._getMaxDepth(e), a.titleColspan = a.titleColspan || 1, r.push({ ...a });
|
|
181
|
-
}
|
|
182
|
-
return r;
|
|
183
|
-
}
|
|
184
|
-
_getMaxDepth(e) {
|
|
185
|
-
let t = 1;
|
|
186
|
-
for (let n of e) n.children && (t = Math.max(t, this._getMaxDepth(n.children) + 1));
|
|
187
|
-
return t;
|
|
188
|
-
}
|
|
189
|
-
_getColumnStyle(e, t = "td") {
|
|
190
|
-
let n = e.id;
|
|
191
|
-
if (this._globalColStyles && n in this._globalColStyles) return this._globalColStyles[n][t];
|
|
192
|
-
let r = {};
|
|
193
|
-
e.width && (r.width = typeof e.width == "number" ? `${e.width}px` : e.width), e.fixed && (e.fixed === "left" ? (r.left = `${e.left}px`, r["box-shadow"] = "-4px 0 4px -4px #d9d9d9 inset") : e.fixed === "right" && (r.right = `${e.right}px`, r["box-shadow"] = "4px 0 4px -4px #d9d9d9 inset")), this._globalColStyles ||= {};
|
|
194
|
-
let i = a(r), o = {
|
|
195
|
-
th: i,
|
|
196
|
-
td: i + a(e.style || "")
|
|
197
|
-
};
|
|
198
|
-
return this._globalColStyles[n] = o, o[t];
|
|
199
|
-
}
|
|
200
|
-
_handleTap = (e) => {
|
|
201
|
-
let [t, n, r] = l(e, "data-action", e.currentTarget);
|
|
202
|
-
if (t) {
|
|
203
|
-
let e = r.dataset;
|
|
204
|
-
if (n === "sort") {
|
|
205
|
-
let t = parseInt(e.col), n = this.columns[t], r = this.sortInfo && this.sortInfo.order === "desc" ? "asc" : "desc";
|
|
206
|
-
this.sortInfo = {
|
|
207
|
-
key: n.key,
|
|
208
|
-
order: r
|
|
209
|
-
}, n.sorter === "custom" ? this.emit("sort", { detail: {
|
|
210
|
-
index: t,
|
|
211
|
-
key: n.key,
|
|
212
|
-
dir: r
|
|
213
|
-
} }) : (this.data = this._dataSort(), this.rerender("all"));
|
|
214
|
-
} else this.emit(n, { detail: e });
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
afterInit() {
|
|
218
|
-
this._changeMaxHeight(), c(this.root, "click", this._handleTap);
|
|
219
|
-
}
|
|
220
|
-
beforeDestroy() {
|
|
221
|
-
s(this.root, "click", this._handleTap);
|
|
222
|
-
}
|
|
223
|
-
_dataSort() {
|
|
224
|
-
if (!this.sortInfo || !this.data) return;
|
|
225
|
-
let { key: e, order: t } = this.sortInfo;
|
|
226
|
-
return this.data.sort((n, r) => {
|
|
227
|
-
let i = n[e], a = r[e];
|
|
228
|
-
return t === "asc" ? i - a : a - i;
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
//#endregion
|
|
233
|
-
export { f as t };
|
package/lib/tag-Di1z9PoZ.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import e from "./base.js";
|
|
2
|
-
import { parseAttrValue as t } from "./utils/index.js";
|
|
3
|
-
import { $$ as n, $one as r, off as i, on as a, shouldEventNext as o } from "ph-utils/browser";
|
|
4
|
-
import { adjust as s, isBlank as c } from "ph-utils";
|
|
5
|
-
//#region src/components/tag/index.less?inline
|
|
6
|
-
var l = ":host{box-sizing:border-box;vertical-align:middle;height:var(--l-tag-height,22px);border:1px solid var(--l-tag-border-color,var(--l-border-color,#dedede));background:var(--l-tag-background,#fff);white-space:nowrap;color:var(--l-tag-color,#333);border-radius:4px;justify-content:center;align-items:center;padding:0 5px;font-size:12px;line-height:1;display:inline-flex}:host(.l-tag--primary){--l-tag-border-color:var(--l-primary-color-light3,#d3adf7);--l-tag-background:var(--l-primary-color-light5,#f9f0ff);--l-tag-color:var(--l-primary-color-light3,#d3adf7)}:host(.l-tag--error){--l-tag-color:var(--l-error-color,#ed3f13);--l-tag-background:var(--l-error-color-light5,#fff1f0);--l-tag-border-color:var(--l-error-color,#ed3f13)}:host(.l-tag--success){--l-tag-color:var(--l-success-color,#a0d911);--l-tag-background:var(--l-success-color-light5,#fcffe6);--l-tag-border-color:var(--l-success-color,#a0d911)}:host(.l-tag--info){--l-tag-color:var(--l-info-color,#999);--l-tag-background:var(--l-info-color-light9,#f5f5f5);--l-tag-border-color:var(--l-border-color,#dedede)}:host(.l-tag--warning){--l-tag-color:var(--l-warning-color,#f90);--l-tag-background:var(--l-warning-color-light5,#fff5e6);--l-tag-border-color:var(--l-warning-color,#f90)}.l-tag-close{cursor:pointer;border-radius:50%;justify-content:center;align-items:center;width:14px;height:14px;margin-left:3px;font-size:12px;transition:color .3s,background-color .3s;display:inline-flex}.l-tag-close:hover{background-color:var(--l-tag-color,#1890ff);color:#fff}", u = class extends e {
|
|
7
|
-
static baseName = "tag";
|
|
8
|
-
connectedCallback() {
|
|
9
|
-
this.loadStyleText(l), super.connectedCallback();
|
|
10
|
-
}
|
|
11
|
-
static get observedAttributes() {
|
|
12
|
-
return [
|
|
13
|
-
"type",
|
|
14
|
-
"color",
|
|
15
|
-
"closeable"
|
|
16
|
-
];
|
|
17
|
-
}
|
|
18
|
-
attributeChangedCallback(e, n, i) {
|
|
19
|
-
let a = i.trim();
|
|
20
|
-
switch (e) {
|
|
21
|
-
case "type":
|
|
22
|
-
this._toggleTypeClass(a);
|
|
23
|
-
break;
|
|
24
|
-
case "color":
|
|
25
|
-
this._toggleColorStyle(a);
|
|
26
|
-
break;
|
|
27
|
-
case "closable":
|
|
28
|
-
if (!this.rendered) return;
|
|
29
|
-
let e = t(a, !1, "closeable"), n = r(".l-tag-close", this.root);
|
|
30
|
-
if (n) {
|
|
31
|
-
if (e) return;
|
|
32
|
-
n.remove();
|
|
33
|
-
} else e && this.root.appendChild(this.#e());
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
render() {
|
|
37
|
-
let e = document.createDocumentFragment();
|
|
38
|
-
return e.appendChild(n("div", {
|
|
39
|
-
class: "l-tag-content",
|
|
40
|
-
innerHTML: "<slot></slot>"
|
|
41
|
-
})), this.getAttr("closeable", !1) && e.appendChild(this.#e()), e.appendChild(n("slot", { name: "suffix" })), e;
|
|
42
|
-
}
|
|
43
|
-
#e() {
|
|
44
|
-
return n("div", {
|
|
45
|
-
class: "l-tag-close",
|
|
46
|
-
innerHTML: "<l-close-icon></l-close-icon>",
|
|
47
|
-
"data-action": "close"
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
#t = (e) => {
|
|
51
|
-
let [t, n, r] = o(e, "data-action", this);
|
|
52
|
-
t && n === "close" && this.emit("close", { detail: { ...r.dataset } });
|
|
53
|
-
};
|
|
54
|
-
afterInit() {
|
|
55
|
-
this.classList.add(`l-tag--${this.getAttr("type", "info")}`), this._toggleColorStyle(), a(this.root, "click", this.#t);
|
|
56
|
-
}
|
|
57
|
-
_toggleTypeClass(e) {
|
|
58
|
-
if (!this.rendered) return;
|
|
59
|
-
let t = !1;
|
|
60
|
-
for (let n of this.classList) if (n.startsWith("l-tag--")) {
|
|
61
|
-
this.classList.replace(n, `l-tag--${e}`), t = !0;
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
t || this.classList.add(`l-tag--${e}`);
|
|
65
|
-
}
|
|
66
|
-
_toggleColorStyle(e) {
|
|
67
|
-
this.rendered && (c(e) ? (this.style.removeProperty("--l-tag-color"), this.style.removeProperty("--l-tag-border-color"), this.style.removeProperty("--l-tag-background")) : (this.style.setProperty("--l-tag-color", e), this.style.setProperty("--l-tag-border-color", e), this.style.setProperty("--l-tag-background", s(e, 5, !0))));
|
|
68
|
-
}
|
|
69
|
-
beforeDestroy() {
|
|
70
|
-
i(this.root, "click", this.#t);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
//#endregion
|
|
74
|
-
export { u as t };
|
package/lib/theme-CLbBS-in.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import e from "./base.js";
|
|
2
|
-
import { initAttr as t } from "./utils/index.js";
|
|
3
|
-
import { $one as n, applyTheme as r, create as i, getTheme as a, off as o, on as s } from "ph-utils/browser";
|
|
4
|
-
//#region src/components/theme/index.less?inline
|
|
5
|
-
var c = ":host{box-sizing:border-box;width:auto;display:inline-flex}.l-theme-btn::part(default){--l-btn-background:transparent;--l-btn-hover-background:transparent;--l-btn-text-color:#9ca3af;--l-btn-hover-text-color:#666;width:var(--l-form-control-height,32px);padding:0;font-size:18px}.l-theme-switch.l-switch--checked{background-color:#65757129;border-color:#3c3f44}.l-theme-switch.l-switch--checked::part(action){color:#fff;background-color:#000}html.dark .l-theme-btn{--l-btn-hover-text-color:#fff}", l = [
|
|
6
|
-
{
|
|
7
|
-
value: "auto",
|
|
8
|
-
text: "跟随系统",
|
|
9
|
-
icon: "l-theme-default-icon"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
value: "light",
|
|
13
|
-
text: "浅色模式",
|
|
14
|
-
icon: "l-sun-icon"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
value: "dark",
|
|
18
|
-
text: "深色模式",
|
|
19
|
-
icon: "l-moon-icon"
|
|
20
|
-
}
|
|
21
|
-
], u = class extends e {
|
|
22
|
-
static baseName = "theme";
|
|
23
|
-
type = "button";
|
|
24
|
-
label = "text";
|
|
25
|
-
theme;
|
|
26
|
-
#e;
|
|
27
|
-
connectedCallback() {
|
|
28
|
-
t(this), this.theme = a(), this.loadStyleText(c), super.connectedCallback(), this.#s();
|
|
29
|
-
}
|
|
30
|
-
disconnectedCallback() {
|
|
31
|
-
super.disconnectedCallback(), this.#c();
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
switch (this.type) {
|
|
35
|
-
case "select": return this.#r();
|
|
36
|
-
case "radio": return this.#a();
|
|
37
|
-
case "switch": return this.#i();
|
|
38
|
-
default: return this.#t();
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
#t() {
|
|
42
|
-
let e = i("l-button", { class: "l-theme-btn l-theme-inner" });
|
|
43
|
-
return this.#n(e), e;
|
|
44
|
-
}
|
|
45
|
-
#n(e) {
|
|
46
|
-
let t = this.theme === "auto" ? "sun" : "moon";
|
|
47
|
-
e.innerHTML = `<l-${t}-icon></l-${t}-icon>`;
|
|
48
|
-
}
|
|
49
|
-
#r() {
|
|
50
|
-
let e = i("l-select-ori", { class: "l-theme-inner" });
|
|
51
|
-
return e.value = this.theme, e.innerHTML = [
|
|
52
|
-
"<option value=\"auto\">跟随系统</option>",
|
|
53
|
-
"<option value=\"light\">浅色模式</option>",
|
|
54
|
-
"<option value=\"dark\">深色模式</option>"
|
|
55
|
-
].join(""), e;
|
|
56
|
-
}
|
|
57
|
-
#i() {
|
|
58
|
-
let e = i("l-switch", { class: "l-theme-switch l-theme-inner" });
|
|
59
|
-
return e.value = this.theme === "dark", e.innerHTML = "<l-sun-icon slot=\"unchecked-action\"></l-sun-icon><l-moon-icon slot=\"checked-action\"></l-moon-icon>", e;
|
|
60
|
-
}
|
|
61
|
-
#a() {
|
|
62
|
-
let e = i("l-radio-group", { class: "l-theme-inner" });
|
|
63
|
-
return e.value = this.theme, e.innerHTML = l.map((e) => {
|
|
64
|
-
let t = "";
|
|
65
|
-
return t = this.label === "icon" ? `<${e.icon}></${e.icon}>` : e.text, `<l-radio value="${e.value}" button>${t}</l-radio>`;
|
|
66
|
-
}).join(""), e;
|
|
67
|
-
}
|
|
68
|
-
#o = async (e) => {
|
|
69
|
-
let t;
|
|
70
|
-
if (this.type === "button") t = this.theme === "dark" ? "auto" : "dark";
|
|
71
|
-
else {
|
|
72
|
-
let n = e.target.value;
|
|
73
|
-
t = this.type === "switch" ? n ? "dark" : "light" : n;
|
|
74
|
-
}
|
|
75
|
-
await r(t), this.theme = t, this.type === "button" && this.#n(this.#e), this.emit("change", { detail: t });
|
|
76
|
-
};
|
|
77
|
-
#s() {
|
|
78
|
-
this.#e = n(".l-theme-inner", this.root), this.type === "button" ? s(this.#e, "click", this.#o) : s(this.#e, "change", this.#o);
|
|
79
|
-
}
|
|
80
|
-
#c() {
|
|
81
|
-
this.#e &&= (this.type === "button" ? o(this.#e, "click", this.#o) : o(this.#e, "change", this.#o), void 0);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
//#endregion
|
|
85
|
-
export { u as t };
|