@well-insight/ui 0.1.7 → 0.1.9
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 +12 -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 +797 -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 +911 -0
- package/dist/auto-complete/style.js +4 -0
- package/dist/avatar/index.js +93 -0
- package/dist/avatar/style.css +852 -0
- package/dist/avatar/style.js +4 -0
- package/dist/badge/index.js +49 -0
- package/dist/badge/style.css +859 -0
- package/dist/badge/style.js +3 -0
- package/dist/block-ui/index.js +24 -0
- package/dist/block-ui/style.css +757 -0
- package/dist/block-ui/style.js +3 -0
- package/dist/breadcrumb/index.js +45 -0
- package/dist/breadcrumb/style.css +782 -0
- package/dist/breadcrumb/style.js +3 -0
- package/dist/button/index.js +24 -0
- package/dist/button/style.css +1268 -0
- package/dist/button/style.js +4 -0
- package/dist/card/index.js +56 -0
- package/dist/card/style.css +805 -0
- package/dist/card/style.js +3 -0
- package/dist/carousel/index.js +111 -0
- package/dist/carousel/style.css +785 -0
- package/dist/carousel/style.js +3 -0
- package/dist/cascade-select/index.js +129 -0
- package/dist/cascade-select/style.css +845 -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 +755 -0
- package/dist/checkbox/style.js +3 -0
- package/dist/chip/index.js +67 -0
- package/dist/chip/style.css +879 -0
- package/dist/chip/style.js +4 -0
- package/dist/command-menu/index.js +118 -0
- package/dist/command-menu/style.css +811 -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 +1434 -0
- package/dist/config-provider/style.js +6 -0
- package/dist/confirm-dialog/index.js +149 -0
- package/dist/confirm-dialog/style.css +1518 -0
- package/dist/confirm-dialog/style.js +6 -0
- package/dist/confirm-popup/index.js +142 -0
- package/dist/confirm-popup/style.css +1306 -0
- package/dist/confirm-popup/style.js +5 -0
- package/dist/context-menu/index.js +174 -0
- package/dist/context-menu/style.css +826 -0
- package/dist/context-menu/style.js +4 -0
- package/dist/data-view/index.js +49 -0
- package/dist/data-view/style.css +847 -0
- package/dist/data-view/style.js +4 -0
- package/dist/date-picker/index.js +316 -0
- package/dist/date-picker/style.css +934 -0
- package/dist/date-picker/style.js +3 -0
- package/dist/dialog/index.js +232 -0
- package/dist/dialog/style.css +1494 -0
- package/dist/dialog/style.js +5 -0
- package/dist/divider/index.js +39 -0
- package/dist/divider/style.css +816 -0
- package/dist/divider/style.js +3 -0
- package/dist/dock/index.js +40 -0
- package/dist/dock/style.css +778 -0
- package/dist/dock/style.js +3 -0
- package/dist/drawer/index.js +112 -0
- package/dist/drawer/style.css +858 -0
- package/dist/drawer/style.js +3 -0
- package/dist/dropdown/index.js +245 -0
- package/dist/dropdown/style.css +854 -0
- package/dist/dropdown/style.js +4 -0
- package/dist/fieldset/index.js +36 -0
- package/dist/fieldset/style.css +774 -0
- package/dist/fieldset/style.js +3 -0
- package/dist/file-upload/index.js +492 -0
- package/dist/file-upload/style.css +1076 -0
- package/dist/file-upload/style.js +4 -0
- package/dist/flex/index.js +53 -0
- package/dist/flex/style.css +742 -0
- package/dist/flex/style.js +3 -0
- package/dist/float-label/index.js +12 -0
- package/dist/float-label/style.css +769 -0
- package/dist/float-label/style.js +3 -0
- package/dist/fluid/index.js +16 -0
- package/dist/fluid/style.css +744 -0
- package/dist/fluid/style.js +3 -0
- package/dist/form/index.js +270 -0
- package/dist/form/style.css +806 -0
- package/dist/form/style.js +3 -0
- package/dist/gallery/index.js +61 -0
- package/dist/gallery/style.css +789 -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 +746 -0
- package/dist/grid/style.js +3 -0
- package/dist/icon/index.js +3 -0
- package/dist/icon/style.css +775 -0
- package/dist/icon/style.js +3 -0
- package/dist/icon-field/index.js +17 -0
- package/dist/icon-field/style.css +764 -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 +763 -0
- package/dist/inplace/style.js +3 -0
- package/dist/input/index.js +145 -0
- package/dist/input/style.css +928 -0
- package/dist/input/style.js +3 -0
- package/dist/input-color/index.js +73 -0
- package/dist/input-color/style.css +802 -0
- package/dist/input-color/style.js +3 -0
- package/dist/input-group/index.js +16 -0
- package/dist/input-group/style.css +757 -0
- package/dist/input-group/style.js +3 -0
- package/dist/input-number/index.js +146 -0
- package/dist/input-number/style.css +854 -0
- package/dist/input-number/style.js +3 -0
- package/dist/input-otp/index.js +110 -0
- package/dist/input-otp/style.css +780 -0
- package/dist/input-otp/style.js +3 -0
- package/dist/input-password/index.js +185 -0
- package/dist/input-password/style.css +954 -0
- package/dist/input-password/style.js +4 -0
- package/dist/input-tags/index.js +103 -0
- package/dist/input-tags/style.css +791 -0
- package/dist/input-tags/style.js +3 -0
- package/dist/knob/index.js +110 -0
- package/dist/knob/style.css +782 -0
- package/dist/knob/style.js +3 -0
- package/dist/label/index.js +20 -0
- package/dist/label/style.css +745 -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 +1177 -0
- package/dist/layout/style.js +4 -0
- package/dist/listbox/index.js +84 -0
- package/dist/listbox/style.css +805 -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 +812 -0
- package/dist/mega-menu/style.js +3 -0
- package/dist/menu/index.js +210 -0
- package/dist/menu/style.css +844 -0
- package/dist/menu/style.js +4 -0
- package/dist/menubar/index.js +141 -0
- package/dist/menubar/style.css +869 -0
- package/dist/menubar/style.js +4 -0
- package/dist/message/index.js +181 -0
- package/dist/message/style.css +945 -0
- package/dist/message/style.js +4 -0
- package/dist/meter-group/index.js +47 -0
- package/dist/meter-group/style.css +784 -0
- package/dist/meter-group/style.js +3 -0
- package/dist/order-list/index.js +125 -0
- package/dist/order-list/style.css +817 -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 +813 -0
- package/dist/pagination/style.js +3 -0
- package/dist/panel/index.js +51 -0
- package/dist/panel/style.css +796 -0
- package/dist/panel/style.js +3 -0
- package/dist/pick-list/index.js +132 -0
- package/dist/pick-list/style.css +814 -0
- package/dist/pick-list/style.js +4 -0
- package/dist/popover/index.js +165 -0
- package/dist/popover/style.css +801 -0
- package/dist/popover/style.js +3 -0
- package/dist/progress-bar/index.js +77 -0
- package/dist/progress-bar/style.css +842 -0
- package/dist/progress-bar/style.js +3 -0
- package/dist/progress-spinner/index.js +3 -0
- package/dist/progress-spinner/style.css +809 -0
- package/dist/progress-spinner/style.js +3 -0
- package/dist/radio/index.js +131 -0
- package/dist/radio/style.css +748 -0
- package/dist/radio/style.js +3 -0
- package/dist/rating/index.js +93 -0
- package/dist/rating/style.css +807 -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 +779 -0
- package/dist/scroll-top/style.js +3 -0
- package/dist/scrollbar/index.js +3 -0
- package/dist/scrollbar/style.css +827 -0
- package/dist/scrollbar/style.js +3 -0
- package/dist/select/index.js +362 -0
- package/dist/select/style.css +1052 -0
- package/dist/select/style.js +3 -0
- package/dist/select-button/index.js +70 -0
- package/dist/select-button/style.css +813 -0
- package/dist/select-button/style.js +3 -0
- package/dist/sidebar/index.js +58 -0
- package/dist/sidebar/style.css +790 -0
- package/dist/sidebar/style.js +3 -0
- package/dist/skeleton/index.js +45 -0
- package/dist/skeleton/style.css +779 -0
- package/dist/skeleton/style.js +3 -0
- package/dist/slider/index.js +142 -0
- package/dist/slider/style.css +873 -0
- package/dist/slider/style.js +3 -0
- package/dist/space/index.js +60 -0
- package/dist/space/style.css +747 -0
- package/dist/space/style.js +3 -0
- package/dist/speed-dial/index.js +124 -0
- package/dist/speed-dial/style.css +846 -0
- package/dist/speed-dial/style.js +3 -0
- package/dist/split-button/index.js +126 -0
- package/dist/split-button/style.css +1350 -0
- package/dist/split-button/style.js +4 -0
- package/dist/splitter/index.js +185 -0
- package/dist/splitter/style.css +806 -0
- package/dist/splitter/style.js +3 -0
- package/dist/stepper/index.js +65 -0
- package/dist/stepper/style.css +820 -0
- package/dist/stepper/style.js +3 -0
- package/dist/styles/base.css +548 -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 +815 -0
- package/dist/switch/style.js +3 -0
- package/dist/table/index.js +508 -0
- package/dist/table/style.css +1241 -0
- package/dist/table/style.js +7 -0
- package/dist/tabs/index.js +136 -0
- package/dist/tabs/style.css +845 -0
- package/dist/tabs/style.js +3 -0
- package/dist/tag/index.js +73 -0
- package/dist/tag/style.css +879 -0
- package/dist/tag/style.js +4 -0
- package/dist/terminal/index.js +52 -0
- package/dist/terminal/style.css +782 -0
- package/dist/terminal/style.js +3 -0
- package/dist/textarea/index.js +163 -0
- package/dist/textarea/style.css +830 -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 +820 -0
- package/dist/tiered-menu/style.js +3 -0
- package/dist/timeline/index.js +86 -0
- package/dist/timeline/style.css +931 -0
- package/dist/timeline/style.js +4 -0
- package/dist/toast/index.js +165 -0
- package/dist/toast/style.css +834 -0
- package/dist/toast/style.js +3 -0
- package/dist/toggle-button/index.js +49 -0
- package/dist/toggle-button/style.css +782 -0
- package/dist/toggle-button/style.js +3 -0
- package/dist/toolbar/index.js +30 -0
- package/dist/toolbar/style.css +767 -0
- package/dist/toolbar/style.js +3 -0
- package/dist/tooltip/index.js +116 -0
- package/dist/tooltip/style.css +787 -0
- package/dist/tooltip/style.js +3 -0
- package/dist/tree/index.js +296 -0
- package/dist/tree/style.css +893 -0
- package/dist/tree/style.js +5 -0
- package/dist/tree-select/index.js +317 -0
- package/dist/tree-select/style.css +1000 -0
- package/dist/tree-select/style.js +5 -0
- package/dist/tree-table/index.js +79 -0
- package/dist/tree-table/style.css +778 -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 +761 -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,145 @@
|
|
|
1
|
+
/* —— Form: TreeSelect —— */
|
|
2
|
+
.wi-treeselect {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
max-width: 100%;
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.wi-treeselect__trigger {
|
|
9
|
+
align-items: center;
|
|
10
|
+
background: var(--wi-color-surface);
|
|
11
|
+
border: 1px solid var(--wi-color-border);
|
|
12
|
+
border-radius: var(--wi-radius-control);
|
|
13
|
+
color: var(--wi-color-text);
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
font: inherit;
|
|
17
|
+
font-size: var(--wi-control-font-medium);
|
|
18
|
+
gap: var(--wi-space-2);
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
min-height: var(--wi-control-height-medium);
|
|
21
|
+
min-width: var(--wi-menu-min-width-lg);
|
|
22
|
+
padding: 0 var(--wi-control-padding-x-medium);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.wi-treeselect--small .wi-treeselect__trigger {
|
|
26
|
+
font-size: var(--wi-control-font-small);
|
|
27
|
+
min-height: var(--wi-control-height-small);
|
|
28
|
+
padding: 0 var(--wi-control-padding-x-small);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.wi-treeselect--large .wi-treeselect__trigger {
|
|
32
|
+
font-size: var(--wi-control-font-large);
|
|
33
|
+
min-height: var(--wi-control-height-large);
|
|
34
|
+
padding: 0 var(--wi-control-padding-x-large);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.wi-treeselect__trigger:focus-visible {
|
|
38
|
+
box-shadow: var(--wi-focus-shadow);
|
|
39
|
+
outline: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.wi-treeselect--multiple .wi-treeselect__trigger {
|
|
43
|
+
align-items: center;
|
|
44
|
+
height: auto;
|
|
45
|
+
min-height: var(--wi-control-height-medium);
|
|
46
|
+
padding-top: var(--wi-space-1);
|
|
47
|
+
padding-bottom: var(--wi-space-1);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.wi-treeselect__tags {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex: 1;
|
|
53
|
+
flex-wrap: wrap;
|
|
54
|
+
gap: var(--wi-space-1);
|
|
55
|
+
min-width: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.wi-treeselect__label--placeholder {
|
|
59
|
+
color: var(--wi-color-text-muted);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.wi-treeselect__clear {
|
|
63
|
+
background: transparent;
|
|
64
|
+
border: 0;
|
|
65
|
+
color: var(--wi-color-text-muted);
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
font: inherit;
|
|
68
|
+
line-height: 1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.wi-treeselect__filter {
|
|
72
|
+
border: 0;
|
|
73
|
+
border-bottom: 1px solid var(--wi-color-border);
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
font: inherit;
|
|
76
|
+
padding: var(--wi-space-2) var(--wi-space-3);
|
|
77
|
+
width: 100%;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.wi-treeselect--disabled .wi-treeselect__trigger {
|
|
81
|
+
cursor: not-allowed;
|
|
82
|
+
opacity: var(--wi-opacity-disabled);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.wi-treeselect__panel {
|
|
86
|
+
background: var(--wi-color-surface);
|
|
87
|
+
border: 1px solid var(--wi-color-border);
|
|
88
|
+
border-radius: var(--wi-radius-md);
|
|
89
|
+
box-shadow: var(--wi-shadow-md);
|
|
90
|
+
left: 0;
|
|
91
|
+
margin-top: var(--wi-space-1);
|
|
92
|
+
min-width: 100%;
|
|
93
|
+
position: absolute;
|
|
94
|
+
top: 100%;
|
|
95
|
+
z-index: var(--wi-z-popper);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.wi-treeselect__panel--teleported {
|
|
99
|
+
margin-top: 0;
|
|
100
|
+
position: fixed;
|
|
101
|
+
top: auto;
|
|
102
|
+
z-index: var(--wi-z-dropdown);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.wi-treeselect__tree,
|
|
106
|
+
.wi-treeselect__node ul {
|
|
107
|
+
list-style: none;
|
|
108
|
+
margin: 0;
|
|
109
|
+
padding: var(--wi-space-1);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.wi-treeselect__row {
|
|
113
|
+
align-items: center;
|
|
114
|
+
display: flex;
|
|
115
|
+
gap: var(--wi-space-1);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.wi-treeselect__toggler,
|
|
119
|
+
.wi-treeselect__toggler-spacer {
|
|
120
|
+
background: transparent;
|
|
121
|
+
border: 0;
|
|
122
|
+
color: var(--wi-color-text-muted);
|
|
123
|
+
flex: 0 0 1.25rem;
|
|
124
|
+
font: inherit;
|
|
125
|
+
height: 1.25rem;
|
|
126
|
+
padding: 0;
|
|
127
|
+
width: 1.25rem;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.wi-treeselect__option {
|
|
131
|
+
background: transparent;
|
|
132
|
+
border: 0;
|
|
133
|
+
border-radius: var(--wi-radius-sm);
|
|
134
|
+
color: inherit;
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
flex: 1;
|
|
137
|
+
font: inherit;
|
|
138
|
+
padding: var(--wi-space-1) var(--wi-space-2);
|
|
139
|
+
text-align: left;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.wi-treeselect__option--selected,
|
|
143
|
+
.wi-treeselect__option:hover:not(:disabled) {
|
|
144
|
+
background: color-mix(in srgb, var(--wi-color-primary) 10%, transparent);
|
|
145
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TreeTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAA;AACxD,YAAY,EACV,eAAe,EACf,cAAc,EACd,aAAa,EACb,cAAc,GACf,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TreeTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAA;AAChB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAA;AACxD,YAAY,EACV,eAAe,EACf,cAAc,EACd,aAAa,EACb,cAAc,GACf,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* —— Data: TreeTable —— */
|
|
2
|
+
.wi-treetable {
|
|
3
|
+
overflow: auto;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.wi-treetable__table {
|
|
8
|
+
border-collapse: collapse;
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.wi-treetable__table th,
|
|
13
|
+
.wi-treetable__cell {
|
|
14
|
+
border-bottom: 1px solid var(--wi-color-border);
|
|
15
|
+
padding: var(--wi-space-2) var(--wi-space-3);
|
|
16
|
+
text-align: left;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.wi-treetable__table th {
|
|
20
|
+
background: color-mix(in srgb, var(--wi-color-surface) 92%, var(--wi-color-border));
|
|
21
|
+
font-size: var(--wi-font-size-sm);
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.wi-treetable__tree-cell {
|
|
26
|
+
align-items: center;
|
|
27
|
+
display: flex;
|
|
28
|
+
gap: var(--wi-space-1);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.wi-treetable__toggler,
|
|
32
|
+
.wi-treetable__toggler-spacer {
|
|
33
|
+
background: transparent;
|
|
34
|
+
border: 0;
|
|
35
|
+
color: var(--wi-color-text-muted);
|
|
36
|
+
flex: 0 0 1.25rem;
|
|
37
|
+
font: inherit;
|
|
38
|
+
height: 1.25rem;
|
|
39
|
+
padding: 0;
|
|
40
|
+
width: 1.25rem;
|
|
41
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/VirtualScroller/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACpE,YAAY,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/VirtualScroller/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAA;AAChB,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACpE,YAAY,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* —— Data: VirtualScroller —— */
|
|
2
|
+
.wi-virtualscroller {
|
|
3
|
+
border: 1px solid var(--wi-color-border);
|
|
4
|
+
border-radius: var(--wi-radius-md);
|
|
5
|
+
overflow: auto;
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.wi-virtualscroller__spacer {
|
|
11
|
+
position: relative;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.wi-virtualscroller__content {
|
|
16
|
+
left: 0;
|
|
17
|
+
position: absolute;
|
|
18
|
+
right: 0;
|
|
19
|
+
top: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.wi-virtualscroller__item {
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { n as e } from "./types-tV3SEv3Q.js";
|
|
2
|
+
import { computed as t, inject as n, provide as r, toValue as i } from "vue";
|
|
3
|
+
//#region src/locale/zh-CN.ts
|
|
4
|
+
var a = {
|
|
5
|
+
name: "zh-CN",
|
|
6
|
+
accept: "确认",
|
|
7
|
+
reject: "取消",
|
|
8
|
+
confirm: "确认",
|
|
9
|
+
emptyMessage: "暂无数据",
|
|
10
|
+
emptyOptions: "暂无选项",
|
|
11
|
+
searchPlaceholder: "搜索",
|
|
12
|
+
datePickerPlaceholder: "选择日期",
|
|
13
|
+
selectPlaceholder: "请选择",
|
|
14
|
+
clear: "清除",
|
|
15
|
+
close: "关闭",
|
|
16
|
+
loading: "加载中",
|
|
17
|
+
required: "必填",
|
|
18
|
+
expand: "展开",
|
|
19
|
+
collapse: "折叠",
|
|
20
|
+
prevPage: "上一页",
|
|
21
|
+
nextPage: "下一页",
|
|
22
|
+
pagination: "分页导航",
|
|
23
|
+
page: "第 {page} 页",
|
|
24
|
+
prevMonth: "上个月",
|
|
25
|
+
nextMonth: "下个月",
|
|
26
|
+
weekdays: [
|
|
27
|
+
"日",
|
|
28
|
+
"一",
|
|
29
|
+
"二",
|
|
30
|
+
"三",
|
|
31
|
+
"四",
|
|
32
|
+
"五",
|
|
33
|
+
"六"
|
|
34
|
+
],
|
|
35
|
+
monthNames: [
|
|
36
|
+
"1月",
|
|
37
|
+
"2月",
|
|
38
|
+
"3月",
|
|
39
|
+
"4月",
|
|
40
|
+
"5月",
|
|
41
|
+
"6月",
|
|
42
|
+
"7月",
|
|
43
|
+
"8月",
|
|
44
|
+
"9月",
|
|
45
|
+
"10月",
|
|
46
|
+
"11月",
|
|
47
|
+
"12月"
|
|
48
|
+
],
|
|
49
|
+
monthYear: "{year}年 {month}月",
|
|
50
|
+
chooseFile: "选择文件",
|
|
51
|
+
dropFileHere: "将文件拖到此处,或",
|
|
52
|
+
clickToUpload: "点击上传",
|
|
53
|
+
previewFile: "预览",
|
|
54
|
+
removeFile: "删除文件",
|
|
55
|
+
retryUpload: "重试上传",
|
|
56
|
+
uploadFile: "上传",
|
|
57
|
+
addFile: "添加文件",
|
|
58
|
+
uploadFailed: "上传失败",
|
|
59
|
+
showPassword: "显示密码",
|
|
60
|
+
hidePassword: "隐藏密码",
|
|
61
|
+
passwordWeak: "弱",
|
|
62
|
+
passwordMedium: "中",
|
|
63
|
+
passwordStrong: "强",
|
|
64
|
+
passwordStrength: "强度:{value}",
|
|
65
|
+
prevImage: "上一张",
|
|
66
|
+
nextImage: "下一张",
|
|
67
|
+
thumbnails: "缩略图",
|
|
68
|
+
moveUp: "上移",
|
|
69
|
+
moveDown: "下移",
|
|
70
|
+
dragToReorder: "拖拽排序",
|
|
71
|
+
moveToTarget: "移到右侧",
|
|
72
|
+
moveAllToTarget: "全部移到右侧",
|
|
73
|
+
moveToSource: "移到左侧",
|
|
74
|
+
moveAllToSource: "全部移到左侧",
|
|
75
|
+
sourceHeader: "可选",
|
|
76
|
+
targetHeader: "已选",
|
|
77
|
+
moreActions: "更多操作",
|
|
78
|
+
backToTop: "回到顶部",
|
|
79
|
+
clearRating: "清除评分",
|
|
80
|
+
decrease: "减少",
|
|
81
|
+
increase: "增加",
|
|
82
|
+
selectColor: "选择颜色",
|
|
83
|
+
clearInput: "清除输入内容",
|
|
84
|
+
remove: "移除",
|
|
85
|
+
removeTag: "移除标签",
|
|
86
|
+
addTag: "输入后回车添加",
|
|
87
|
+
createOption: "创建 “{value}”",
|
|
88
|
+
moreTags: "还有 {count} 项",
|
|
89
|
+
filterOptions: "筛选选项",
|
|
90
|
+
showSuggestions: "显示建议",
|
|
91
|
+
commandPalette: "命令面板",
|
|
92
|
+
searchCommands: "搜索命令",
|
|
93
|
+
terminal: "终端",
|
|
94
|
+
commandInput: "命令输入",
|
|
95
|
+
breadcrumb: "面包屑",
|
|
96
|
+
sidebar: "侧边导航",
|
|
97
|
+
menubar: "菜单栏",
|
|
98
|
+
selectOption: "选择选项",
|
|
99
|
+
maximize: "最大化",
|
|
100
|
+
restore: "还原",
|
|
101
|
+
selectAllPage: "全选当前页",
|
|
102
|
+
resizeVertical: "调整上下分割",
|
|
103
|
+
resizeHorizontal: "调整左右分割",
|
|
104
|
+
speedDial: "快捷操作",
|
|
105
|
+
clearDate: "清除日期",
|
|
106
|
+
datePicker: "日期选择",
|
|
107
|
+
rangeStart: "范围起点",
|
|
108
|
+
rangeEnd: "范围终点",
|
|
109
|
+
prev: "上一页",
|
|
110
|
+
next: "下一页",
|
|
111
|
+
noMatch: "无匹配项",
|
|
112
|
+
filterAll: "全部",
|
|
113
|
+
filterColumn: "筛选 {label}",
|
|
114
|
+
selectRow: "选择行 {index}",
|
|
115
|
+
closeNamed: "关闭:{summary}",
|
|
116
|
+
otpDigit: "第 {index} 位",
|
|
117
|
+
star: "{value} 星",
|
|
118
|
+
openMenu: "打开菜单",
|
|
119
|
+
jumpToPage: "跳至",
|
|
120
|
+
pageClassifier: "页",
|
|
121
|
+
itemsPerPage: "条/页",
|
|
122
|
+
tabs: "标签页",
|
|
123
|
+
addTab: "新增标签",
|
|
124
|
+
closeTab: "关闭标签",
|
|
125
|
+
dateRangePlaceholder: "选择日期范围",
|
|
126
|
+
today: "今天"
|
|
127
|
+
};
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/shared/componentDefaults.ts
|
|
130
|
+
function o(e) {
|
|
131
|
+
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
132
|
+
}
|
|
133
|
+
function s(e) {
|
|
134
|
+
return e.startsWith("Wi") ? e.slice(2) : e;
|
|
135
|
+
}
|
|
136
|
+
function c(e, t) {
|
|
137
|
+
if (!e) return {};
|
|
138
|
+
let n = s(t), r = e[n], i = e[`Wi${n}`];
|
|
139
|
+
return {
|
|
140
|
+
...o(r) ? r : {},
|
|
141
|
+
...o(i) ? i : {}
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function l(e, t, n) {
|
|
145
|
+
return c(e, t)[n];
|
|
146
|
+
}
|
|
147
|
+
function u(e, t) {
|
|
148
|
+
if (!e && !t) return;
|
|
149
|
+
if (!e) return t;
|
|
150
|
+
if (!t) return e;
|
|
151
|
+
let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]), r = {};
|
|
152
|
+
for (let i of n) {
|
|
153
|
+
let n = e[i], a = t[i];
|
|
154
|
+
r[i] = o(n) && o(a) ? {
|
|
155
|
+
...n,
|
|
156
|
+
...a
|
|
157
|
+
} : a ?? n;
|
|
158
|
+
}
|
|
159
|
+
return r;
|
|
160
|
+
}
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region src/shared/config.ts
|
|
163
|
+
var d = Symbol("wiConfig"), f = {
|
|
164
|
+
appendTo: "body",
|
|
165
|
+
zIndex: 1e3,
|
|
166
|
+
density: "comfortable",
|
|
167
|
+
inputVariant: "outlined",
|
|
168
|
+
locale: { ...a }
|
|
169
|
+
};
|
|
170
|
+
function p() {
|
|
171
|
+
return {
|
|
172
|
+
appendTo: f.appendTo,
|
|
173
|
+
zIndex: f.zIndex,
|
|
174
|
+
density: f.density,
|
|
175
|
+
inputVariant: f.inputVariant,
|
|
176
|
+
locale: { ...f.locale }
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
function m(e) {
|
|
180
|
+
r(d, e);
|
|
181
|
+
}
|
|
182
|
+
function h(e, t) {
|
|
183
|
+
return {
|
|
184
|
+
...e,
|
|
185
|
+
...t,
|
|
186
|
+
locale: e.locale || t.locale ? {
|
|
187
|
+
...e.locale,
|
|
188
|
+
...t.locale
|
|
189
|
+
} : void 0,
|
|
190
|
+
componentDefaults: u(e.componentDefaults, t.componentDefaults)
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
function g() {
|
|
194
|
+
let e = n(d, null);
|
|
195
|
+
return t(() => {
|
|
196
|
+
let t = e ? i(e) : {};
|
|
197
|
+
return {
|
|
198
|
+
...p(),
|
|
199
|
+
...t,
|
|
200
|
+
locale: {
|
|
201
|
+
...p().locale,
|
|
202
|
+
...t.locale
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
function _(e) {
|
|
208
|
+
let n = g();
|
|
209
|
+
return t(() => c(n.value.componentDefaults, e));
|
|
210
|
+
}
|
|
211
|
+
function v(n, r) {
|
|
212
|
+
let a = g();
|
|
213
|
+
return t(() => e(i(r) ?? l(a.value.componentDefaults, n, "size") ?? a.value.size));
|
|
214
|
+
}
|
|
215
|
+
function y(e, n) {
|
|
216
|
+
let r = g();
|
|
217
|
+
return t(() => i(n) ?? l(r.value.componentDefaults, e, "variant") ?? r.value.inputVariant ?? "outlined");
|
|
218
|
+
}
|
|
219
|
+
function b(e, n) {
|
|
220
|
+
let r = g();
|
|
221
|
+
return t(() => i(n) ?? l(r.value.componentDefaults, e, "size") ?? "medium");
|
|
222
|
+
}
|
|
223
|
+
//#endregion
|
|
224
|
+
export { b as a, g as c, _ as i, a as l, h as n, v as o, m as r, y as s, d as t };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { n as e, r as t, t as n } from "../config-DWwce9jA.js";
|
|
2
|
+
import "./style.js";
|
|
3
|
+
import { computed as r, createElementBlock as i, defineComponent as a, inject as o, normalizeStyle as s, openBlock as c, renderSlot as l, toValue as u, watchEffect as d } from "vue";
|
|
4
|
+
//#region src/theme/useDensity.ts
|
|
5
|
+
function f(e, t = document.documentElement) {
|
|
6
|
+
t.dataset.wiDensity = e;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/components/ConfigProvider/ConfigProvider.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var p = ["data-wi-density"], m = /* @__PURE__ */ a({
|
|
11
|
+
__name: "ConfigProvider",
|
|
12
|
+
props: {
|
|
13
|
+
config: {},
|
|
14
|
+
appendTo: {},
|
|
15
|
+
size: {},
|
|
16
|
+
inputVariant: {},
|
|
17
|
+
zIndex: {},
|
|
18
|
+
density: {},
|
|
19
|
+
locale: {},
|
|
20
|
+
componentDefaults: {},
|
|
21
|
+
globalDensity: { type: Boolean }
|
|
22
|
+
},
|
|
23
|
+
setup(a) {
|
|
24
|
+
let m = a, h = o(n, null), g = r(() => ({
|
|
25
|
+
...m.config ?? {},
|
|
26
|
+
...m.appendTo === void 0 ? {} : { appendTo: m.appendTo },
|
|
27
|
+
...m.size === void 0 ? {} : { size: m.size },
|
|
28
|
+
...m.inputVariant === void 0 ? {} : { inputVariant: m.inputVariant },
|
|
29
|
+
...m.zIndex === void 0 ? {} : { zIndex: m.zIndex },
|
|
30
|
+
...m.density === void 0 ? {} : { density: m.density },
|
|
31
|
+
...m.locale === void 0 ? {} : { locale: m.locale },
|
|
32
|
+
...m.componentDefaults === void 0 ? {} : { componentDefaults: m.componentDefaults }
|
|
33
|
+
})), _ = r(() => {
|
|
34
|
+
let t = h ? u(h) : {};
|
|
35
|
+
return e(t, g.value);
|
|
36
|
+
});
|
|
37
|
+
t(_);
|
|
38
|
+
let v = r(() => _.value.density ?? "comfortable"), y = r(() => m.globalDensity !== !1), b = r(() => {
|
|
39
|
+
let e = _.value.zIndex;
|
|
40
|
+
if (e != null) return { "--wi-z-base": String(e) };
|
|
41
|
+
});
|
|
42
|
+
return d(() => {
|
|
43
|
+
!y.value || typeof document > "u" || (_.value.density && f(_.value.density), _.value.zIndex != null && document.documentElement.style.setProperty("--wi-z-base", String(_.value.zIndex)));
|
|
44
|
+
}), (e, t) => (c(), i("div", {
|
|
45
|
+
class: "wi-config-provider",
|
|
46
|
+
"data-wi-density": v.value,
|
|
47
|
+
style: s(b.value)
|
|
48
|
+
}, [l(e.$slots, "default")], 12, p));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
export { m as WiConfigProvider };
|