@well-insight/ui 0.1.7 → 0.1.8
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/CHANGELOG.md +6 -0
- package/README.md +31 -23
- package/README.zh-CN.md +64 -42
- package/dist/Button-BZzV1X-d.js +156 -0
- package/dist/Checkbox-BtgWgkHI.js +107 -0
- package/dist/Icon-B6gOD07E.js +452 -0
- package/dist/Pagination-C-F_ZDXr.js +148 -0
- package/dist/ProgressSpinner-YThgaSzb.js +85 -0
- package/dist/Renderable-IhqISc5E.js +45 -0
- package/dist/Scrollbar-D-bR2noX.js +382 -0
- package/dist/accordion/index.js +66 -0
- package/dist/accordion/style.css +796 -0
- package/dist/accordion/style.js +3 -0
- package/dist/asyncGuard-CPGT_TKu.js +6 -0
- package/dist/auto-complete/index.js +206 -0
- package/dist/auto-complete/style.css +910 -0
- package/dist/auto-complete/style.js +4 -0
- package/dist/avatar/index.js +93 -0
- package/dist/avatar/style.css +851 -0
- package/dist/avatar/style.js +4 -0
- package/dist/badge/index.js +49 -0
- package/dist/badge/style.css +858 -0
- package/dist/badge/style.js +3 -0
- package/dist/block-ui/index.js +24 -0
- package/dist/block-ui/style.css +756 -0
- package/dist/block-ui/style.js +3 -0
- package/dist/breadcrumb/index.js +45 -0
- package/dist/breadcrumb/style.css +781 -0
- package/dist/breadcrumb/style.js +3 -0
- package/dist/button/index.js +24 -0
- package/dist/button/style.css +1267 -0
- package/dist/button/style.js +4 -0
- package/dist/card/index.js +56 -0
- package/dist/card/style.css +804 -0
- package/dist/card/style.js +3 -0
- package/dist/carousel/index.js +111 -0
- package/dist/carousel/style.css +784 -0
- package/dist/carousel/style.js +3 -0
- package/dist/cascade-select/index.js +129 -0
- package/dist/cascade-select/style.css +844 -0
- package/dist/cascade-select/style.js +3 -0
- package/dist/checkStrategy-CZzuUKDI.js +63 -0
- package/dist/checkbox/index.js +51 -0
- package/dist/checkbox/style.css +754 -0
- package/dist/checkbox/style.js +3 -0
- package/dist/chip/index.js +67 -0
- package/dist/chip/style.css +878 -0
- package/dist/chip/style.js +4 -0
- package/dist/command-menu/index.js +118 -0
- package/dist/command-menu/style.css +810 -0
- package/dist/command-menu/style.js +3 -0
- package/dist/components/Accordion/index.d.ts.map +1 -1
- package/dist/components/Accordion/styles.css +60 -0
- package/dist/components/AutoComplete/index.d.ts.map +1 -1
- package/dist/components/AutoComplete/styles.css +135 -0
- package/dist/components/Avatar/index.d.ts.map +1 -1
- package/dist/components/Avatar/styles.css +76 -0
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/styles.css +122 -0
- package/dist/components/BlockUI/index.d.ts.map +1 -1
- package/dist/components/BlockUI/styles.css +20 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/components/Breadcrumb/styles.css +45 -0
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/styles.css +492 -0
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/styles.css +68 -0
- package/dist/components/Carousel/index.d.ts.map +1 -1
- package/dist/components/Carousel/styles.css +48 -0
- package/dist/components/CascadeSelect/index.d.ts.map +1 -1
- package/dist/components/CascadeSelect/styles.css +108 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/styles.css +18 -0
- package/dist/components/Chip/index.d.ts.map +1 -1
- package/dist/components/Chip/styles.css +103 -0
- package/dist/components/CommandMenu/index.d.ts.map +1 -1
- package/dist/components/CommandMenu/styles.css +74 -0
- package/dist/components/ConfigProvider/index.d.ts.map +1 -1
- package/dist/components/ConfigProvider/styles.css +1 -0
- package/dist/components/ConfirmDialog/index.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/styles.css +23 -0
- package/dist/components/ConfirmPopup/index.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/styles.css +37 -0
- package/dist/components/ContextMenu/index.d.ts.map +1 -1
- package/dist/components/ContextMenu/styles.css +50 -0
- package/dist/components/DataView/index.d.ts.map +1 -1
- package/dist/components/DataView/styles.css +33 -0
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.css +197 -0
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css +225 -0
- package/dist/components/Divider/index.d.ts.map +1 -1
- package/dist/components/Divider/styles.css +79 -0
- package/dist/components/Dock/index.d.ts.map +1 -1
- package/dist/components/Dock/styles.css +41 -0
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/styles.css +121 -0
- package/dist/components/Dropdown/index.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +78 -0
- package/dist/components/Fieldset/index.d.ts.map +1 -1
- package/dist/components/Fieldset/styles.css +37 -0
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FileUpload/styles.css +300 -0
- package/dist/components/Flex/index.d.ts.map +1 -1
- package/dist/components/Flex/styles.css +5 -0
- package/dist/components/FloatLabel/index.d.ts.map +1 -1
- package/dist/components/FloatLabel/styles.css +32 -0
- package/dist/components/Fluid/index.d.ts.map +1 -1
- package/dist/components/Fluid/styles.css +7 -0
- package/dist/components/Form/index.d.ts.map +1 -1
- package/dist/components/Form/styles.css +69 -0
- package/dist/components/Gallery/index.d.ts.map +1 -1
- package/dist/components/Gallery/styles.css +52 -0
- package/dist/components/Grid/index.d.ts.map +1 -1
- package/dist/components/Grid/styles.css +9 -0
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/styles.css +38 -0
- package/dist/components/IconField/index.d.ts.map +1 -1
- package/dist/components/IconField/styles.css +27 -0
- package/dist/components/Inplace/index.d.ts.map +1 -1
- package/dist/components/Inplace/styles.css +26 -0
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/styles.css +191 -0
- package/dist/components/InputColor/index.d.ts.map +1 -1
- package/dist/components/InputColor/styles.css +65 -0
- package/dist/components/InputGroup/index.d.ts.map +1 -1
- package/dist/components/InputGroup/styles.css +20 -0
- package/dist/components/InputNumber/index.d.ts.map +1 -1
- package/dist/components/InputNumber/styles.css +117 -0
- package/dist/components/InputOtp/index.d.ts.map +1 -1
- package/dist/components/InputOtp/styles.css +43 -0
- package/dist/components/InputPassword/index.d.ts.map +1 -1
- package/dist/components/InputPassword/styles.css +178 -0
- package/dist/components/InputTags/index.d.ts.map +1 -1
- package/dist/components/InputTags/styles.css +54 -0
- package/dist/components/Knob/index.d.ts.map +1 -1
- package/dist/components/Knob/styles.css +45 -0
- package/dist/components/Label/index.d.ts.map +1 -1
- package/dist/components/Label/styles.css +8 -0
- package/dist/components/Layout/index.d.ts.map +1 -1
- package/dist/components/Layout/styles.css +349 -0
- package/dist/components/Listbox/index.d.ts.map +1 -1
- package/dist/components/Listbox/styles.css +68 -0
- package/dist/components/MegaMenu/index.d.ts.map +1 -1
- package/dist/components/MegaMenu/styles.css +75 -0
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +68 -0
- package/dist/components/Menubar/index.d.ts.map +1 -1
- package/dist/components/Menubar/styles.css +93 -0
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/Message/styles.css +169 -0
- package/dist/components/MeterGroup/index.d.ts.map +1 -1
- package/dist/components/MeterGroup/styles.css +47 -0
- package/dist/components/OrderList/index.d.ts.map +1 -1
- package/dist/components/OrderList/styles.css +41 -0
- package/dist/components/Pagination/index.d.ts.map +1 -1
- package/dist/components/Pagination/styles.css +76 -0
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/styles.css +59 -0
- package/dist/components/PickList/index.d.ts.map +1 -1
- package/dist/components/PickList/styles.css +38 -0
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/styles.css +64 -0
- package/dist/components/ProgressBar/index.d.ts.map +1 -1
- package/dist/components/ProgressBar/styles.css +105 -0
- package/dist/components/ProgressSpinner/index.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/styles.css +72 -0
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/Radio/styles.css +11 -0
- package/dist/components/Rating/index.d.ts.map +1 -1
- package/dist/components/Rating/styles.css +70 -0
- package/dist/components/ScrollTop/index.d.ts.map +1 -1
- package/dist/components/ScrollTop/styles.css +42 -0
- package/dist/components/Scrollbar/index.d.ts.map +1 -1
- package/dist/components/Scrollbar/styles.css +90 -0
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/styles.css +315 -0
- package/dist/components/SelectButton/index.d.ts.map +1 -1
- package/dist/components/SelectButton/styles.css +76 -0
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/styles.css +53 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Skeleton/styles.css +42 -0
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/styles.css +136 -0
- package/dist/components/Space/index.d.ts.map +1 -1
- package/dist/components/Space/styles.css +10 -0
- package/dist/components/SpeedDial/index.d.ts.map +1 -1
- package/dist/components/SpeedDial/styles.css +109 -0
- package/dist/components/SplitButton/index.d.ts.map +1 -1
- package/dist/components/SplitButton/styles.css +120 -0
- package/dist/components/Splitter/index.d.ts.map +1 -1
- package/dist/components/Splitter/styles.css +69 -0
- package/dist/components/Stepper/index.d.ts.map +1 -1
- package/dist/components/Stepper/styles.css +83 -0
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/styles.css +78 -0
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/styles.css +296 -0
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/styles.css +108 -0
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/styles.css +103 -0
- package/dist/components/Terminal/index.d.ts.map +1 -1
- package/dist/components/Terminal/styles.css +45 -0
- package/dist/components/Textarea/index.d.ts.map +1 -1
- package/dist/components/Textarea/styles.css +93 -0
- package/dist/components/TieredMenu/index.d.ts.map +1 -1
- package/dist/components/TieredMenu/styles.css +83 -0
- package/dist/components/Timeline/index.d.ts.map +1 -1
- package/dist/components/Timeline/styles.css +155 -0
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/styles.css +97 -0
- package/dist/components/ToggleButton/index.d.ts.map +1 -1
- package/dist/components/ToggleButton/styles.css +45 -0
- package/dist/components/Toolbar/index.d.ts.map +1 -1
- package/dist/components/Toolbar/styles.css +30 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/styles.css +50 -0
- package/dist/components/Tree/index.d.ts.map +1 -1
- package/dist/components/Tree/styles.css +98 -0
- package/dist/components/TreeSelect/index.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +145 -0
- package/dist/components/TreeTable/index.d.ts.map +1 -1
- package/dist/components/TreeTable/styles.css +41 -0
- package/dist/components/VirtualScroller/index.d.ts.map +1 -1
- package/dist/components/VirtualScroller/styles.css +24 -0
- package/dist/config-DWwce9jA.js +224 -0
- package/dist/config-provider/index.js +52 -0
- package/dist/config-provider/style.css +1433 -0
- package/dist/config-provider/style.js +6 -0
- package/dist/confirm-dialog/index.js +149 -0
- package/dist/confirm-dialog/style.css +1517 -0
- package/dist/confirm-dialog/style.js +6 -0
- package/dist/confirm-popup/index.js +142 -0
- package/dist/confirm-popup/style.css +1305 -0
- package/dist/confirm-popup/style.js +5 -0
- package/dist/context-menu/index.js +174 -0
- package/dist/context-menu/style.css +825 -0
- package/dist/context-menu/style.js +4 -0
- package/dist/data-view/index.js +49 -0
- package/dist/data-view/style.css +846 -0
- package/dist/data-view/style.js +4 -0
- package/dist/date-picker/index.js +316 -0
- package/dist/date-picker/style.css +933 -0
- package/dist/date-picker/style.js +3 -0
- package/dist/dialog/index.js +232 -0
- package/dist/dialog/style.css +1493 -0
- package/dist/dialog/style.js +5 -0
- package/dist/divider/index.js +39 -0
- package/dist/divider/style.css +815 -0
- package/dist/divider/style.js +3 -0
- package/dist/dock/index.js +40 -0
- package/dist/dock/style.css +777 -0
- package/dist/dock/style.js +3 -0
- package/dist/drawer/index.js +112 -0
- package/dist/drawer/style.css +857 -0
- package/dist/drawer/style.js +3 -0
- package/dist/dropdown/index.js +245 -0
- package/dist/dropdown/style.css +853 -0
- package/dist/dropdown/style.js +4 -0
- package/dist/fieldset/index.js +36 -0
- package/dist/fieldset/style.css +773 -0
- package/dist/fieldset/style.js +3 -0
- package/dist/file-upload/index.js +492 -0
- package/dist/file-upload/style.css +1075 -0
- package/dist/file-upload/style.js +4 -0
- package/dist/flex/index.js +53 -0
- package/dist/flex/style.css +741 -0
- package/dist/flex/style.js +3 -0
- package/dist/float-label/index.js +12 -0
- package/dist/float-label/style.css +768 -0
- package/dist/float-label/style.js +3 -0
- package/dist/fluid/index.js +16 -0
- package/dist/fluid/style.css +743 -0
- package/dist/fluid/style.js +3 -0
- package/dist/form/index.js +270 -0
- package/dist/form/style.css +805 -0
- package/dist/form/style.js +3 -0
- package/dist/gallery/index.js +61 -0
- package/dist/gallery/style.css +788 -0
- package/dist/gallery/style.js +3 -0
- package/dist/gap-rHurpwNv.js +41 -0
- package/dist/grid/index.js +178 -0
- package/dist/grid/style.css +745 -0
- package/dist/grid/style.js +3 -0
- package/dist/icon/index.js +3 -0
- package/dist/icon/style.css +774 -0
- package/dist/icon/style.js +3 -0
- package/dist/icon-field/index.js +17 -0
- package/dist/icon-field/style.css +763 -0
- package/dist/icon-field/style.js +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/inplace/index.js +45 -0
- package/dist/inplace/style.css +762 -0
- package/dist/inplace/style.js +3 -0
- package/dist/input/index.js +145 -0
- package/dist/input/style.css +927 -0
- package/dist/input/style.js +3 -0
- package/dist/input-color/index.js +73 -0
- package/dist/input-color/style.css +801 -0
- package/dist/input-color/style.js +3 -0
- package/dist/input-group/index.js +16 -0
- package/dist/input-group/style.css +756 -0
- package/dist/input-group/style.js +3 -0
- package/dist/input-number/index.js +146 -0
- package/dist/input-number/style.css +853 -0
- package/dist/input-number/style.js +3 -0
- package/dist/input-otp/index.js +110 -0
- package/dist/input-otp/style.css +779 -0
- package/dist/input-otp/style.js +3 -0
- package/dist/input-password/index.js +185 -0
- package/dist/input-password/style.css +953 -0
- package/dist/input-password/style.js +4 -0
- package/dist/input-tags/index.js +103 -0
- package/dist/input-tags/style.css +790 -0
- package/dist/input-tags/style.js +3 -0
- package/dist/knob/index.js +110 -0
- package/dist/knob/style.css +781 -0
- package/dist/knob/style.js +3 -0
- package/dist/label/index.js +20 -0
- package/dist/label/style.css +744 -0
- package/dist/label/style.js +3 -0
- package/dist/lastPointer-CRxcUqdd.js +20 -0
- package/dist/layout/index.js +398 -0
- package/dist/layout/style.css +1176 -0
- package/dist/layout/style.js +4 -0
- package/dist/listbox/index.js +84 -0
- package/dist/listbox/style.css +804 -0
- package/dist/listbox/style.js +3 -0
- package/dist/locale-CYkJyRd1.js +21 -0
- package/dist/mega-menu/index.js +104 -0
- package/dist/mega-menu/style.css +811 -0
- package/dist/mega-menu/style.js +3 -0
- package/dist/menu/index.js +210 -0
- package/dist/menu/style.css +843 -0
- package/dist/menu/style.js +4 -0
- package/dist/menubar/index.js +141 -0
- package/dist/menubar/style.css +868 -0
- package/dist/menubar/style.js +4 -0
- package/dist/message/index.js +181 -0
- package/dist/message/style.css +944 -0
- package/dist/message/style.js +4 -0
- package/dist/meter-group/index.js +47 -0
- package/dist/meter-group/style.css +783 -0
- package/dist/meter-group/style.js +3 -0
- package/dist/order-list/index.js +125 -0
- package/dist/order-list/style.css +816 -0
- package/dist/order-list/style.js +4 -0
- package/dist/overlay-oR-5MDuE.js +16 -0
- package/dist/overlayHost-Bdc0ZDhU.js +16 -0
- package/dist/pagination/index.js +3 -0
- package/dist/pagination/style.css +812 -0
- package/dist/pagination/style.js +3 -0
- package/dist/panel/index.js +51 -0
- package/dist/panel/style.css +795 -0
- package/dist/panel/style.js +3 -0
- package/dist/pick-list/index.js +132 -0
- package/dist/pick-list/style.css +813 -0
- package/dist/pick-list/style.js +4 -0
- package/dist/popover/index.js +165 -0
- package/dist/popover/style.css +800 -0
- package/dist/popover/style.js +3 -0
- package/dist/progress-bar/index.js +77 -0
- package/dist/progress-bar/style.css +841 -0
- package/dist/progress-bar/style.js +3 -0
- package/dist/progress-spinner/index.js +3 -0
- package/dist/progress-spinner/style.css +808 -0
- package/dist/progress-spinner/style.js +3 -0
- package/dist/radio/index.js +131 -0
- package/dist/radio/style.css +747 -0
- package/dist/radio/style.js +3 -0
- package/dist/rating/index.js +93 -0
- package/dist/rating/style.css +806 -0
- package/dist/rating/style.js +3 -0
- package/dist/resolver-map.d.ts +2 -0
- package/dist/resolver-map.d.ts.map +1 -0
- package/dist/resolver.d.ts +20 -0
- package/dist/resolver.d.ts.map +1 -0
- package/dist/resolver.js +121 -0
- package/dist/responsive-BLgfEhDG.js +43 -0
- package/dist/scroll-top/index.js +86 -0
- package/dist/scroll-top/style.css +778 -0
- package/dist/scroll-top/style.js +3 -0
- package/dist/scrollbar/index.js +3 -0
- package/dist/scrollbar/style.css +826 -0
- package/dist/scrollbar/style.js +3 -0
- package/dist/select/index.js +362 -0
- package/dist/select/style.css +1051 -0
- package/dist/select/style.js +3 -0
- package/dist/select-button/index.js +70 -0
- package/dist/select-button/style.css +812 -0
- package/dist/select-button/style.js +3 -0
- package/dist/sidebar/index.js +58 -0
- package/dist/sidebar/style.css +789 -0
- package/dist/sidebar/style.js +3 -0
- package/dist/skeleton/index.js +45 -0
- package/dist/skeleton/style.css +778 -0
- package/dist/skeleton/style.js +3 -0
- package/dist/slider/index.js +142 -0
- package/dist/slider/style.css +872 -0
- package/dist/slider/style.js +3 -0
- package/dist/space/index.js +60 -0
- package/dist/space/style.css +746 -0
- package/dist/space/style.js +3 -0
- package/dist/speed-dial/index.js +124 -0
- package/dist/speed-dial/style.css +845 -0
- package/dist/speed-dial/style.js +3 -0
- package/dist/split-button/index.js +126 -0
- package/dist/split-button/style.css +1349 -0
- package/dist/split-button/style.js +4 -0
- package/dist/splitter/index.js +185 -0
- package/dist/splitter/style.css +805 -0
- package/dist/splitter/style.js +3 -0
- package/dist/stepper/index.js +65 -0
- package/dist/stepper/style.css +819 -0
- package/dist/stepper/style.js +3 -0
- package/dist/styles/base.css +547 -0
- package/dist/styles.css +1 -1
- package/dist/styles.d.ts +1 -0
- package/dist/switch/index.js +99 -0
- package/dist/switch/style.css +814 -0
- package/dist/switch/style.js +3 -0
- package/dist/table/index.js +508 -0
- package/dist/table/style.css +1240 -0
- package/dist/table/style.js +7 -0
- package/dist/tabs/index.js +136 -0
- package/dist/tabs/style.css +844 -0
- package/dist/tabs/style.js +3 -0
- package/dist/tag/index.js +73 -0
- package/dist/tag/style.css +878 -0
- package/dist/tag/style.js +4 -0
- package/dist/terminal/index.js +52 -0
- package/dist/terminal/style.css +781 -0
- package/dist/terminal/style.js +3 -0
- package/dist/textarea/index.js +163 -0
- package/dist/textarea/style.css +829 -0
- package/dist/textarea/style.js +3 -0
- package/dist/theme/styles.css +187 -0
- package/dist/tiered-menu/index.js +150 -0
- package/dist/tiered-menu/style.css +819 -0
- package/dist/tiered-menu/style.js +3 -0
- package/dist/timeline/index.js +86 -0
- package/dist/timeline/style.css +930 -0
- package/dist/timeline/style.js +4 -0
- package/dist/toast/index.js +165 -0
- package/dist/toast/style.css +833 -0
- package/dist/toast/style.js +3 -0
- package/dist/toggle-button/index.js +49 -0
- package/dist/toggle-button/style.css +781 -0
- package/dist/toggle-button/style.js +3 -0
- package/dist/toolbar/index.js +30 -0
- package/dist/toolbar/style.css +766 -0
- package/dist/toolbar/style.js +3 -0
- package/dist/tooltip/index.js +116 -0
- package/dist/tooltip/style.css +786 -0
- package/dist/tooltip/style.js +3 -0
- package/dist/tree/index.js +296 -0
- package/dist/tree/style.css +892 -0
- package/dist/tree/style.js +5 -0
- package/dist/tree-select/index.js +317 -0
- package/dist/tree-select/style.css +999 -0
- package/dist/tree-select/style.js +5 -0
- package/dist/tree-table/index.js +79 -0
- package/dist/tree-table/style.css +777 -0
- package/dist/tree-table/style.js +3 -0
- package/dist/types-tV3SEv3Q.js +9 -0
- package/dist/useModalOverlay-Beo3CEAt.js +50 -0
- package/dist/virtual-scroller/index.js +50 -0
- package/dist/virtual-scroller/style.css +760 -0
- package/dist/virtual-scroller/style.js +3 -0
- package/dist/vnode-PJWBO7_h.js +16 -0
- package/package.json +624 -3
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
import { t as e } from "../Icon-B6gOD07E.js";
|
|
2
|
+
import { t } from "../Checkbox-BtgWgkHI.js";
|
|
3
|
+
import { t as n } from "../Pagination-C-F_ZDXr.js";
|
|
4
|
+
import { t as r } from "../Renderable-IhqISc5E.js";
|
|
5
|
+
import { t as i } from "../ProgressSpinner-YThgaSzb.js";
|
|
6
|
+
import { o as a } from "../config-DWwce9jA.js";
|
|
7
|
+
import { n as o, t as s } from "../locale-CYkJyRd1.js";
|
|
8
|
+
import "./style.js";
|
|
9
|
+
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as ee, createVNode as m, defineComponent as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as te, onMounted as ne, openBlock as v, ref as y, renderList as b, renderSlot as x, toDisplayString as S, unref as C, watch as w, withModifiers as T } from "vue";
|
|
10
|
+
function E(e) {
|
|
11
|
+
if (e == null || e === "") return;
|
|
12
|
+
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
|
|
13
|
+
let t = Number.parseFloat(e);
|
|
14
|
+
return Number.isFinite(t) ? t : void 0;
|
|
15
|
+
}
|
|
16
|
+
function re(e, t, n = {}) {
|
|
17
|
+
let r = n.fit !== !1, i = [];
|
|
18
|
+
n.selection && i.push({
|
|
19
|
+
key: "__selection__",
|
|
20
|
+
width: 48,
|
|
21
|
+
minWidth: 48,
|
|
22
|
+
realWidth: 48,
|
|
23
|
+
isSelection: !0,
|
|
24
|
+
fixed: "left"
|
|
25
|
+
}), n.expand && i.push({
|
|
26
|
+
key: "__expand__",
|
|
27
|
+
width: 40,
|
|
28
|
+
minWidth: 40,
|
|
29
|
+
realWidth: 40,
|
|
30
|
+
isExpand: !0,
|
|
31
|
+
fixed: "left"
|
|
32
|
+
});
|
|
33
|
+
for (let t of e) {
|
|
34
|
+
let e = E(t.width), n = E(t.minWidth) ?? 80;
|
|
35
|
+
i.push({
|
|
36
|
+
key: t.key,
|
|
37
|
+
width: e,
|
|
38
|
+
minWidth: n,
|
|
39
|
+
realWidth: e ?? n,
|
|
40
|
+
fixed: t.fixed
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
let a = i.filter((e) => e.width == null && !e.isSelection && !e.isExpand), o = 0;
|
|
44
|
+
if (a.length > 0 && r) {
|
|
45
|
+
if (i.forEach((e) => {
|
|
46
|
+
o += e.width ?? e.minWidth;
|
|
47
|
+
}), o <= t) {
|
|
48
|
+
let e = t - o;
|
|
49
|
+
if (a.length === 1) a[0].realWidth = a[0].minWidth + e;
|
|
50
|
+
else {
|
|
51
|
+
let t = e / a.reduce((e, t) => e + t.minWidth, 0), n = 0;
|
|
52
|
+
a.forEach((e, r) => {
|
|
53
|
+
if (r === 0) return;
|
|
54
|
+
let i = Math.floor(e.minWidth * t);
|
|
55
|
+
n += i, e.realWidth = e.minWidth + i;
|
|
56
|
+
}), a[0].realWidth = a[0].minWidth + e - n;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
columns: i,
|
|
60
|
+
bodyWidth: Math.max(o, t),
|
|
61
|
+
scrollX: !1
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
return a.forEach((e) => {
|
|
65
|
+
e.realWidth = e.minWidth;
|
|
66
|
+
}), {
|
|
67
|
+
columns: i,
|
|
68
|
+
bodyWidth: Math.max(o, t),
|
|
69
|
+
scrollX: !0
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
return i.forEach((e) => {
|
|
73
|
+
e.realWidth = e.width ?? e.minWidth, o += e.realWidth;
|
|
74
|
+
}), {
|
|
75
|
+
columns: i,
|
|
76
|
+
bodyWidth: o,
|
|
77
|
+
scrollX: o > t
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function ie(e) {
|
|
81
|
+
let t = {}, n = {}, r = 0;
|
|
82
|
+
for (let n of e) n.fixed === "left" && (t[n.key] = r, r += n.realWidth);
|
|
83
|
+
let i = 0;
|
|
84
|
+
for (let t = e.length - 1; t >= 0; --t) {
|
|
85
|
+
let r = e[t];
|
|
86
|
+
r.fixed === "right" && (n[r.key] = i, i += r.realWidth);
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
left: t,
|
|
90
|
+
right: n
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
|
|
95
|
+
var ae = ["aria-sort"], oe = { class: "wi-table__th-inner" }, se = ["onClick"], ce = {
|
|
96
|
+
class: "wi-table__sort-icon",
|
|
97
|
+
"aria-hidden": "true"
|
|
98
|
+
}, le = { key: 1 }, ue = {
|
|
99
|
+
key: 2,
|
|
100
|
+
class: "wi-table__filter"
|
|
101
|
+
}, de = [
|
|
102
|
+
"aria-expanded",
|
|
103
|
+
"aria-label",
|
|
104
|
+
"onClick"
|
|
105
|
+
], fe = ["value", "onChange"], pe = { value: "" }, me = ["value"], he = [
|
|
106
|
+
"value",
|
|
107
|
+
"placeholder",
|
|
108
|
+
"onInput"
|
|
109
|
+
], ge = ["onClick"], _e = [
|
|
110
|
+
"aria-expanded",
|
|
111
|
+
"aria-label",
|
|
112
|
+
"onClick"
|
|
113
|
+
], ve = { key: 0 }, ye = ["colspan"], be = { key: 0 }, xe = ["colspan"], Se = { class: "wi-table__empty-content" }, Ce = { class: "wi-table__empty-title" }, we = {
|
|
114
|
+
key: 0,
|
|
115
|
+
class: "wi-table__empty-desc"
|
|
116
|
+
}, Te = {
|
|
117
|
+
key: 0,
|
|
118
|
+
class: "wi-table__paginator"
|
|
119
|
+
}, Ee = ["aria-label"], De = { class: "wi-table__loading-text" }, D = /* @__PURE__ */ h({
|
|
120
|
+
__name: "Table",
|
|
121
|
+
props: {
|
|
122
|
+
columns: {},
|
|
123
|
+
rows: {},
|
|
124
|
+
rowKey: { default: "id" },
|
|
125
|
+
emptyText: { default: void 0 },
|
|
126
|
+
emptyDescription: {},
|
|
127
|
+
loading: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: !1
|
|
130
|
+
},
|
|
131
|
+
loadingText: { default: void 0 },
|
|
132
|
+
size: {},
|
|
133
|
+
sortField: {},
|
|
134
|
+
sortOrder: {},
|
|
135
|
+
sortMode: { default: "client" },
|
|
136
|
+
fit: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
default: !0
|
|
139
|
+
},
|
|
140
|
+
striped: {
|
|
141
|
+
type: Boolean,
|
|
142
|
+
default: !1
|
|
143
|
+
},
|
|
144
|
+
bordered: {
|
|
145
|
+
type: Boolean,
|
|
146
|
+
default: !1
|
|
147
|
+
},
|
|
148
|
+
highlightCurrent: {
|
|
149
|
+
type: Boolean,
|
|
150
|
+
default: !1
|
|
151
|
+
},
|
|
152
|
+
rowHover: {
|
|
153
|
+
type: Boolean,
|
|
154
|
+
default: !0
|
|
155
|
+
},
|
|
156
|
+
selectionMode: {},
|
|
157
|
+
selection: {},
|
|
158
|
+
filters: { default: () => ({}) },
|
|
159
|
+
paginator: {
|
|
160
|
+
type: Boolean,
|
|
161
|
+
default: !1
|
|
162
|
+
},
|
|
163
|
+
rowsPerPage: { default: 10 },
|
|
164
|
+
page: { default: 1 },
|
|
165
|
+
expandable: {
|
|
166
|
+
type: Boolean,
|
|
167
|
+
default: !1
|
|
168
|
+
},
|
|
169
|
+
expandedRowKeys: {},
|
|
170
|
+
rowExpandable: {}
|
|
171
|
+
},
|
|
172
|
+
emits: [
|
|
173
|
+
"update:sortField",
|
|
174
|
+
"update:sortOrder",
|
|
175
|
+
"sort",
|
|
176
|
+
"update:selection",
|
|
177
|
+
"update:filters",
|
|
178
|
+
"filter",
|
|
179
|
+
"update:page",
|
|
180
|
+
"page",
|
|
181
|
+
"row-click",
|
|
182
|
+
"current-change",
|
|
183
|
+
"update:expandedRowKeys",
|
|
184
|
+
"expand"
|
|
185
|
+
],
|
|
186
|
+
setup(h, { emit: E }) {
|
|
187
|
+
let D = h, O = E, k = o(), Oe = a("Table", () => D.size), ke = l(() => D.emptyText ?? k.value.emptyMessage), A = l(() => D.loadingText ?? k.value.loading), j = y(D.sortField), M = y(R(D.sortOrder)), N = y({ ...D.filters }), P = y(D.page), F = y([...D.expandedRowKeys ?? []]), I = y(null), L = y(null);
|
|
188
|
+
w(() => D.sortField, (e) => {
|
|
189
|
+
j.value = e;
|
|
190
|
+
}), w(() => D.sortOrder, (e) => {
|
|
191
|
+
M.value = R(e);
|
|
192
|
+
}), w(() => D.filters, (e) => {
|
|
193
|
+
N.value = { ...e };
|
|
194
|
+
}, { deep: !0 }), w(() => D.page, (e) => {
|
|
195
|
+
P.value = e;
|
|
196
|
+
}), w(() => D.expandedRowKeys, (e) => {
|
|
197
|
+
e && (F.value = [...e]);
|
|
198
|
+
});
|
|
199
|
+
function R(e) {
|
|
200
|
+
return e === 1 || e === "asc" ? "asc" : e === -1 || e === "desc" ? "desc" : null;
|
|
201
|
+
}
|
|
202
|
+
function Ae(e) {
|
|
203
|
+
return e === "asc" || e === 1 ? 1 : e === "desc" || e === -1 ? -1 : 0;
|
|
204
|
+
}
|
|
205
|
+
function z(e, t) {
|
|
206
|
+
return e[D.rowKey] ?? t;
|
|
207
|
+
}
|
|
208
|
+
let B = y(null), V = y(0), H = null;
|
|
209
|
+
ne(() => {
|
|
210
|
+
let e = B.value;
|
|
211
|
+
if (!e) return;
|
|
212
|
+
let t = () => {
|
|
213
|
+
V.value = e.clientWidth;
|
|
214
|
+
};
|
|
215
|
+
t(), H = new ResizeObserver(t), H.observe(e);
|
|
216
|
+
}), te(() => {
|
|
217
|
+
H?.disconnect(), H = null;
|
|
218
|
+
});
|
|
219
|
+
let U = l(() => re(D.columns, V.value || 0, {
|
|
220
|
+
fit: D.fit,
|
|
221
|
+
selection: !!D.selectionMode,
|
|
222
|
+
expand: D.expandable
|
|
223
|
+
})), je = l(() => new Map(U.value.columns.map((e) => [e.key, e]))), W = l(() => ie(U.value.columns)), Me = l(() => {
|
|
224
|
+
if (U.value.scrollX) return {
|
|
225
|
+
width: `${U.value.bodyWidth}px`,
|
|
226
|
+
minWidth: "100%"
|
|
227
|
+
};
|
|
228
|
+
});
|
|
229
|
+
function G(e) {
|
|
230
|
+
let t = je.value.get(e.key)?.realWidth, n = {};
|
|
231
|
+
if (t != null && (n.width = `${t}px`, n.minWidth = `${t}px`), e.fixed === "left") {
|
|
232
|
+
let t = W.value.left[e.key];
|
|
233
|
+
t != null && (n.left = `${t}px`);
|
|
234
|
+
}
|
|
235
|
+
if (e.fixed === "right") {
|
|
236
|
+
let t = W.value.right[e.key];
|
|
237
|
+
t != null && (n.right = `${t}px`);
|
|
238
|
+
}
|
|
239
|
+
return Object.keys(n).length ? n : void 0;
|
|
240
|
+
}
|
|
241
|
+
function K() {
|
|
242
|
+
let e = W.value.left.__selection__;
|
|
243
|
+
return {
|
|
244
|
+
width: "48px",
|
|
245
|
+
minWidth: "48px",
|
|
246
|
+
left: e == null ? "0" : `${e}px`
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
function Ne() {
|
|
250
|
+
let e = W.value.left.__expand__;
|
|
251
|
+
return {
|
|
252
|
+
width: "40px",
|
|
253
|
+
minWidth: "40px",
|
|
254
|
+
left: e == null ? void 0 : `${e}px`
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
let Pe = l(() => {
|
|
258
|
+
let e = Object.entries(N.value).filter(([, e]) => e != null && e !== "");
|
|
259
|
+
return e.length ? D.rows.filter((t) => e.every(([e, n]) => {
|
|
260
|
+
let r = t[e];
|
|
261
|
+
return typeof n == "string" ? String(r ?? "").toLowerCase().includes(n.toLowerCase()) : r === n;
|
|
262
|
+
})) : D.rows;
|
|
263
|
+
}), q = l(() => {
|
|
264
|
+
let e = j.value, t = Ae(M.value);
|
|
265
|
+
return D.sortMode === "emit" || !e || !t ? Pe.value : [...Pe.value].sort((n, r) => {
|
|
266
|
+
let i = n[e], a = r[e];
|
|
267
|
+
return i == null && a == null ? 0 : i == null ? -1 * t : a == null ? 1 * t : typeof i == "number" && typeof a == "number" ? (i - a) * t : String(i).localeCompare(String(a), void 0, { numeric: !0 }) * t;
|
|
268
|
+
});
|
|
269
|
+
}), Fe = l(() => q.value.length), J = l(() => {
|
|
270
|
+
if (!D.paginator) return q.value;
|
|
271
|
+
let e = D.rowsPerPage, t = (P.value - 1) * e;
|
|
272
|
+
return q.value.slice(t, t + e);
|
|
273
|
+
}), Ie = l(() => !D.loading && J.value.length === 0), Le = l(() => D.columns.length + +!!D.selectionMode + +!!D.expandable), Y = l(() => D.selectionMode ? D.selectionMode === "multiple" ? Array.isArray(D.selection) ? D.selection : [] : D.selection && !Array.isArray(D.selection) ? [D.selection] : [] : []), X = l(() => D.selectionMode !== "multiple" || !J.value.length ? !1 : J.value.every((e, t) => Y.value.some((n) => z(n, -1) === z(e, t))));
|
|
274
|
+
function Z(e, t) {
|
|
275
|
+
let n = z(e, t);
|
|
276
|
+
return Y.value.some((e) => z(e, -1) === n);
|
|
277
|
+
}
|
|
278
|
+
function Re(e, t) {
|
|
279
|
+
if (!D.selectionMode) return;
|
|
280
|
+
if (D.selectionMode === "single") {
|
|
281
|
+
let n = Z(e, t) ? null : e;
|
|
282
|
+
O("update:selection", n);
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
let n = z(e, t), r = Y.value.some((e) => z(e, -1) === n) ? Y.value.filter((e) => z(e, -1) !== n) : [...Y.value, e];
|
|
286
|
+
O("update:selection", r);
|
|
287
|
+
}
|
|
288
|
+
function ze() {
|
|
289
|
+
if (D.selectionMode === "multiple") {
|
|
290
|
+
if (X.value) {
|
|
291
|
+
let e = new Set(J.value.map((e, t) => z(e, t)));
|
|
292
|
+
O("update:selection", Y.value.filter((t) => !e.has(z(t, -1))));
|
|
293
|
+
} else {
|
|
294
|
+
let e = new Map(Y.value.map((e) => [z(e, -1), e]));
|
|
295
|
+
J.value.forEach((t, n) => e.set(z(t, n), t)), O("update:selection", [...e.values()]);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
function Be(e, t) {
|
|
300
|
+
if (!t) return;
|
|
301
|
+
let n = e, r = "asc";
|
|
302
|
+
j.value === e && (M.value === "asc" ? r = "desc" : M.value === "desc" && (n = void 0, r = null)), j.value = n, M.value = r, O("update:sortField", n), O("update:sortOrder", r), O("sort", {
|
|
303
|
+
sortField: n,
|
|
304
|
+
sortOrder: r
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
function Ve(e) {
|
|
308
|
+
return j.value === e ? M.value === "asc" ? "↑" : M.value === "desc" ? "↓" : "↕" : "↕";
|
|
309
|
+
}
|
|
310
|
+
function He(e, t) {
|
|
311
|
+
let n = {
|
|
312
|
+
...N.value,
|
|
313
|
+
[e]: t === "" ? void 0 : t
|
|
314
|
+
};
|
|
315
|
+
n[e] ?? delete n[e], N.value = n, O("update:filters", n), O("filter", n), P.value = 1, O("update:page", 1), O("page", 1);
|
|
316
|
+
}
|
|
317
|
+
function Ue(e) {
|
|
318
|
+
P.value = e, O("update:page", e), O("page", e);
|
|
319
|
+
}
|
|
320
|
+
function We(e, t) {
|
|
321
|
+
O("row-click", {
|
|
322
|
+
row: e,
|
|
323
|
+
index: t
|
|
324
|
+
}), D.highlightCurrent && (I.value = z(e, t), O("current-change", e));
|
|
325
|
+
}
|
|
326
|
+
function Ge(e) {
|
|
327
|
+
return D.expandable ? !D.rowExpandable || D.rowExpandable(e) : !1;
|
|
328
|
+
}
|
|
329
|
+
function Q(e, t) {
|
|
330
|
+
return F.value.includes(z(e, t));
|
|
331
|
+
}
|
|
332
|
+
function Ke(e, t) {
|
|
333
|
+
if (!Ge(e)) return;
|
|
334
|
+
let n = z(e, t), r = F.value.includes(n);
|
|
335
|
+
F.value = r ? F.value.filter((e) => e !== n) : [...F.value, n], O("update:expandedRowKeys", F.value), O("expand", {
|
|
336
|
+
row: e,
|
|
337
|
+
expanded: !r
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
function $(e) {
|
|
341
|
+
if (e.fixed) return `wi-table__cell--fixed-${e.fixed}`;
|
|
342
|
+
}
|
|
343
|
+
return (a, o) => (v(), f("div", { class: g(["wi-table-wrapper", [{
|
|
344
|
+
"wi-table-wrapper--loading": h.loading,
|
|
345
|
+
"wi-table-wrapper--bordered": h.bordered,
|
|
346
|
+
"wi-table-wrapper--striped": h.striped,
|
|
347
|
+
"wi-table-wrapper--row-hover": h.rowHover
|
|
348
|
+
}]]) }, [
|
|
349
|
+
p("div", {
|
|
350
|
+
ref_key: "scrollRef",
|
|
351
|
+
ref: B,
|
|
352
|
+
class: g(["wi-table-scroll", { "wi-table-scroll--x": U.value.scrollX }])
|
|
353
|
+
}, [p("table", {
|
|
354
|
+
class: g(["wi-table", `wi-table--${C(Oe)}`]),
|
|
355
|
+
style: _(Me.value)
|
|
356
|
+
}, [
|
|
357
|
+
p("colgroup", null, [(v(!0), f(c, null, b(U.value.columns, (e) => (v(), f("col", {
|
|
358
|
+
key: e.key,
|
|
359
|
+
style: _({ width: `${e.realWidth}px` })
|
|
360
|
+
}, null, 4))), 128))]),
|
|
361
|
+
p("thead", null, [p("tr", null, [
|
|
362
|
+
h.selectionMode ? (v(), f("th", {
|
|
363
|
+
key: 0,
|
|
364
|
+
class: "wi-table__selection wi-table__cell--fixed-left",
|
|
365
|
+
scope: "col",
|
|
366
|
+
style: _(K())
|
|
367
|
+
}, [h.selectionMode === "multiple" ? (v(), u(t, {
|
|
368
|
+
key: 0,
|
|
369
|
+
"model-value": X.value,
|
|
370
|
+
"aria-label": C(k).selectAllPage,
|
|
371
|
+
"onUpdate:modelValue": ze
|
|
372
|
+
}, null, 8, ["model-value", "aria-label"])) : d("", !0)], 4)) : d("", !0),
|
|
373
|
+
h.expandable ? (v(), f("th", {
|
|
374
|
+
key: 1,
|
|
375
|
+
class: "wi-table__expand wi-table__cell--fixed-left",
|
|
376
|
+
scope: "col",
|
|
377
|
+
style: _(Ne())
|
|
378
|
+
}, null, 4)) : d("", !0),
|
|
379
|
+
(v(!0), f(c, null, b(h.columns, (t) => (v(), f("th", {
|
|
380
|
+
key: t.key,
|
|
381
|
+
scope: "col",
|
|
382
|
+
class: g([
|
|
383
|
+
`wi-table__cell--${t.align ?? "start"}`,
|
|
384
|
+
$(t),
|
|
385
|
+
{ "wi-table__th--sortable": t.sortable }
|
|
386
|
+
]),
|
|
387
|
+
style: _(G(t)),
|
|
388
|
+
"aria-sort": t.sortable && j.value === t.key ? M.value === "asc" ? "ascending" : M.value === "desc" ? "descending" : "none" : t.sortable ? "none" : void 0
|
|
389
|
+
}, [p("div", oe, [t.sortable ? (v(), f("button", {
|
|
390
|
+
key: 0,
|
|
391
|
+
type: "button",
|
|
392
|
+
class: "wi-table__sort",
|
|
393
|
+
onClick: (e) => Be(t.key, !0)
|
|
394
|
+
}, [p("span", null, S(t.label), 1), p("span", ce, S(Ve(t.key)), 1)], 8, se)) : (v(), f("span", le, S(t.label), 1)), t.filterable ? (v(), f("div", ue, [p("button", {
|
|
395
|
+
type: "button",
|
|
396
|
+
class: "wi-table__filter-btn",
|
|
397
|
+
"aria-expanded": L.value === t.key,
|
|
398
|
+
"aria-label": C(s)(C(k).filterColumn, { label: t.label }),
|
|
399
|
+
onClick: T((e) => L.value = L.value === t.key ? null : t.key, ["stop"])
|
|
400
|
+
}, [m(e, {
|
|
401
|
+
name: "filter",
|
|
402
|
+
size: "sm"
|
|
403
|
+
})], 8, de), L.value === t.key ? (v(), f("div", {
|
|
404
|
+
key: 0,
|
|
405
|
+
class: "wi-table__filter-panel",
|
|
406
|
+
onClick: o[0] ||= T(() => {}, ["stop"])
|
|
407
|
+
}, [t.filters?.length ? (v(), f("select", {
|
|
408
|
+
key: 0,
|
|
409
|
+
class: "wi-table__filter-control",
|
|
410
|
+
value: String(N.value[t.key] ?? ""),
|
|
411
|
+
onChange: (e) => He(t.key, e.target.value || null)
|
|
412
|
+
}, [p("option", pe, S(C(k).filterAll), 1), (v(!0), f(c, null, b(t.filters, (e) => (v(), f("option", {
|
|
413
|
+
key: String(e.value),
|
|
414
|
+
value: String(e.value ?? "")
|
|
415
|
+
}, S(e.label), 9, me))), 128))], 40, fe)) : (v(), f("input", {
|
|
416
|
+
key: 1,
|
|
417
|
+
class: "wi-table__filter-control",
|
|
418
|
+
type: "search",
|
|
419
|
+
value: String(N.value[t.key] ?? ""),
|
|
420
|
+
placeholder: C(k).filterOptions,
|
|
421
|
+
onInput: (e) => He(t.key, e.target.value)
|
|
422
|
+
}, null, 40, he))])) : d("", !0)])) : d("", !0)])], 14, ae))), 128))
|
|
423
|
+
])]),
|
|
424
|
+
p("tbody", null, [(v(!0), f(c, null, b(J.value, (e, n) => (v(), f(c, { key: String(z(e, n)) }, [p("tr", {
|
|
425
|
+
class: g({
|
|
426
|
+
"wi-table__row--selected": Z(e, n),
|
|
427
|
+
"wi-table__row--current": h.highlightCurrent && I.value === z(e, n)
|
|
428
|
+
}),
|
|
429
|
+
onClick: (t) => We(e, n)
|
|
430
|
+
}, [
|
|
431
|
+
h.selectionMode ? (v(), f("td", {
|
|
432
|
+
key: 0,
|
|
433
|
+
class: "wi-table__selection wi-table__cell--fixed-left",
|
|
434
|
+
style: _(K()),
|
|
435
|
+
onClick: o[1] ||= T(() => {}, ["stop"])
|
|
436
|
+
}, [m(t, {
|
|
437
|
+
"model-value": Z(e, n),
|
|
438
|
+
"aria-label": C(s)(C(k).selectRow, { index: n + 1 }),
|
|
439
|
+
"onUpdate:modelValue": (t) => Re(e, n)
|
|
440
|
+
}, null, 8, [
|
|
441
|
+
"model-value",
|
|
442
|
+
"aria-label",
|
|
443
|
+
"onUpdate:modelValue"
|
|
444
|
+
])], 4)) : d("", !0),
|
|
445
|
+
h.expandable ? (v(), f("td", {
|
|
446
|
+
key: 1,
|
|
447
|
+
class: "wi-table__expand wi-table__cell--fixed-left",
|
|
448
|
+
style: _(Ne()),
|
|
449
|
+
onClick: o[2] ||= T(() => {}, ["stop"])
|
|
450
|
+
}, [Ge(e) ? (v(), f("button", {
|
|
451
|
+
key: 0,
|
|
452
|
+
type: "button",
|
|
453
|
+
class: "wi-table__expand-btn",
|
|
454
|
+
"aria-expanded": Q(e, n),
|
|
455
|
+
"aria-label": Q(e, n) ? C(k).collapse : C(k).expand,
|
|
456
|
+
onClick: (t) => Ke(e, n)
|
|
457
|
+
}, S(Q(e, n) ? "▾" : "▸"), 9, _e)) : d("", !0)], 4)) : d("", !0),
|
|
458
|
+
(v(!0), f(c, null, b(h.columns, (t) => (v(), f("td", {
|
|
459
|
+
key: t.key,
|
|
460
|
+
class: g([`wi-table__cell--${t.align ?? "start"}`, $(t)]),
|
|
461
|
+
style: _(G(t))
|
|
462
|
+
}, [x(a.$slots, "body-cell", {
|
|
463
|
+
row: e,
|
|
464
|
+
column: t,
|
|
465
|
+
value: e[t.key]
|
|
466
|
+
}, () => [x(a.$slots, `cell-${t.key}`, {
|
|
467
|
+
row: e,
|
|
468
|
+
value: e[t.key]
|
|
469
|
+
}, () => [t.render ? (v(), u(C(r), {
|
|
470
|
+
key: 0,
|
|
471
|
+
value: t.render(e, t)
|
|
472
|
+
}, null, 8, ["value"])) : (v(), f(c, { key: 1 }, [ee(S(e[t.key]), 1)], 64))])])], 6))), 128))
|
|
473
|
+
], 10, ge), h.expandable && Q(e, n) ? (v(), f("tr", ve, [p("td", {
|
|
474
|
+
class: "wi-table__expansion",
|
|
475
|
+
colspan: Le.value
|
|
476
|
+
}, [x(a.$slots, "expansion", { row: e })], 8, ye)])) : d("", !0)], 64))), 128)), Ie.value ? (v(), f("tr", be, [p("td", {
|
|
477
|
+
class: "wi-table__empty",
|
|
478
|
+
colspan: Le.value
|
|
479
|
+
}, [x(a.$slots, "empty", {}, () => [p("div", Se, [
|
|
480
|
+
o[3] ||= p("div", {
|
|
481
|
+
class: "wi-table__empty-glyph",
|
|
482
|
+
"aria-hidden": "true"
|
|
483
|
+
}, "∅", -1),
|
|
484
|
+
p("p", Ce, S(ke.value), 1),
|
|
485
|
+
h.emptyDescription ? (v(), f("p", we, S(h.emptyDescription), 1)) : d("", !0)
|
|
486
|
+
])])], 8, xe)])) : d("", !0)])
|
|
487
|
+
], 6)], 2),
|
|
488
|
+
h.paginator ? (v(), f("div", Te, [m(n, {
|
|
489
|
+
"model-value": P.value,
|
|
490
|
+
"total-records": Fe.value,
|
|
491
|
+
rows: h.rowsPerPage,
|
|
492
|
+
"onUpdate:modelValue": Ue
|
|
493
|
+
}, null, 8, [
|
|
494
|
+
"model-value",
|
|
495
|
+
"total-records",
|
|
496
|
+
"rows"
|
|
497
|
+
])])) : d("", !0),
|
|
498
|
+
h.loading ? (v(), f("div", {
|
|
499
|
+
key: 1,
|
|
500
|
+
class: "wi-table__loading",
|
|
501
|
+
role: "status",
|
|
502
|
+
"aria-label": A.value
|
|
503
|
+
}, [x(a.$slots, "loading", {}, () => [m(i), p("span", De, S(A.value), 1)])], 8, Ee)) : d("", !0)
|
|
504
|
+
], 2));
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
//#endregion
|
|
508
|
+
export { D as WiTable };
|