@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,316 @@
|
|
|
1
|
+
import { n as e, t } from "../overlay-oR-5MDuE.js";
|
|
2
|
+
import { c as n, o as r } from "../config-DWwce9jA.js";
|
|
3
|
+
import { n as i, t as a } from "../locale-CYkJyRd1.js";
|
|
4
|
+
import "./style.js";
|
|
5
|
+
import { Fragment as o, Teleport as s, Transition as c, computed as l, createBlock as ee, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as te, defineComponent as p, nextTick as m, normalizeClass as h, normalizeStyle as ne, onBeforeUnmount as re, openBlock as g, ref as _, renderList as v, toDisplayString as y, unref as b, watch as ie, withCtx as ae, withKeys as x, withModifiers as S } from "vue";
|
|
6
|
+
//#region src/components/DatePicker/DatePicker.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var oe = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "wi-datepicker__label"
|
|
10
|
+
}, se = [
|
|
11
|
+
"value",
|
|
12
|
+
"placeholder",
|
|
13
|
+
"disabled",
|
|
14
|
+
"aria-invalid",
|
|
15
|
+
"aria-expanded",
|
|
16
|
+
"onKeydown"
|
|
17
|
+
], ce = ["aria-label", "disabled"], le = ["aria-label"], ue = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "wi-datepicker__shortcuts"
|
|
20
|
+
}, de = ["onClick"], fe = { class: "wi-datepicker__calendar" }, pe = { class: "wi-datepicker__header" }, me = ["aria-label"], he = { class: "wi-datepicker__month" }, ge = ["aria-label"], _e = { class: "wi-datepicker__weekdays" }, ve = { class: "wi-datepicker__grid" }, ye = [
|
|
21
|
+
"disabled",
|
|
22
|
+
"onClick",
|
|
23
|
+
"onMouseenter"
|
|
24
|
+
], C = /* @__PURE__ */ p({
|
|
25
|
+
__name: "DatePicker",
|
|
26
|
+
props: {
|
|
27
|
+
modelValue: { default: null },
|
|
28
|
+
type: { default: "date" },
|
|
29
|
+
label: {},
|
|
30
|
+
disabled: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
invalid: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
fluid: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
size: {},
|
|
43
|
+
minDate: {},
|
|
44
|
+
maxDate: {},
|
|
45
|
+
placeholder: { default: void 0 },
|
|
46
|
+
format: { default: "YYYY-MM-DD" },
|
|
47
|
+
clearable: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !0
|
|
50
|
+
},
|
|
51
|
+
shortcuts: { default: () => [] },
|
|
52
|
+
teleport: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: !0
|
|
55
|
+
},
|
|
56
|
+
appendTo: {}
|
|
57
|
+
},
|
|
58
|
+
emits: ["update:modelValue"],
|
|
59
|
+
setup(p, { emit: C }) {
|
|
60
|
+
let w = p, T = C, E = n(), D = i(), be = r("DatePicker", () => w.size), O = _(!1), k = _(null), A = _(null), j = _(null), M = _({}), N = _((/* @__PURE__ */ new Date()).getFullYear()), P = _((/* @__PURE__ */ new Date()).getMonth()), F = _(null), I = _(null), L = l(() => e(w, E.value.appendTo)), R = l(() => t(w, E.value.appendTo)), z = l(() => w.type === "daterange");
|
|
61
|
+
function B(e) {
|
|
62
|
+
if (e == null || e === "") return null;
|
|
63
|
+
if (e instanceof Date) return Number.isNaN(e.getTime()) ? null : e;
|
|
64
|
+
let t = /^(\d{4})-(\d{2})-(\d{2})/.exec(e);
|
|
65
|
+
if (t) return new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]));
|
|
66
|
+
let n = new Date(e);
|
|
67
|
+
return Number.isNaN(n.getTime()) ? null : n;
|
|
68
|
+
}
|
|
69
|
+
function V(e) {
|
|
70
|
+
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
71
|
+
}
|
|
72
|
+
function H(e) {
|
|
73
|
+
return w.format.replaceAll("YYYY", String(e.getFullYear())).replaceAll("MM", String(e.getMonth() + 1).padStart(2, "0")).replaceAll("DD", String(e.getDate()).padStart(2, "0"));
|
|
74
|
+
}
|
|
75
|
+
function U(e) {
|
|
76
|
+
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
77
|
+
}
|
|
78
|
+
function xe(e) {
|
|
79
|
+
if (e == null || e === "") return {
|
|
80
|
+
start: null,
|
|
81
|
+
end: null
|
|
82
|
+
};
|
|
83
|
+
if (Array.isArray(e)) return {
|
|
84
|
+
start: B(e[0]),
|
|
85
|
+
end: B(e[1])
|
|
86
|
+
};
|
|
87
|
+
let t = B(e);
|
|
88
|
+
return {
|
|
89
|
+
start: t,
|
|
90
|
+
end: t
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
let W = l(() => xe(w.modelValue)), G = l(() => B(w.minDate)), K = l(() => B(w.maxDate)), q = l(() => {
|
|
94
|
+
let { start: e, end: t } = W.value;
|
|
95
|
+
return e ? !z.value || !t ? H(e) : `${H(e)} – ${H(t)}` : "";
|
|
96
|
+
}), Se = l(() => w.placeholder ?? (z.value ? D.value.dateRangePlaceholder : D.value.datePickerPlaceholder)), Ce = l(() => a(D.value.monthYear, {
|
|
97
|
+
year: N.value,
|
|
98
|
+
month: P.value + 1,
|
|
99
|
+
monthName: D.value.monthNames[P.value] ?? String(P.value + 1)
|
|
100
|
+
}));
|
|
101
|
+
function we() {
|
|
102
|
+
let e = F.value ?? W.value.start, t = F.value ? I.value ?? F.value : W.value.end;
|
|
103
|
+
if (!e) return {
|
|
104
|
+
start: null,
|
|
105
|
+
end: null
|
|
106
|
+
};
|
|
107
|
+
if (!t) return {
|
|
108
|
+
start: U(e),
|
|
109
|
+
end: U(e)
|
|
110
|
+
};
|
|
111
|
+
let n = U(e), r = U(t);
|
|
112
|
+
return n.getTime() <= r.getTime() ? {
|
|
113
|
+
start: n,
|
|
114
|
+
end: r
|
|
115
|
+
} : {
|
|
116
|
+
start: r,
|
|
117
|
+
end: n
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
let Te = l(() => {
|
|
121
|
+
let e = new Date(N.value, P.value, 1).getDay(), t = new Date(N.value, P.value + 1, 0).getDate(), n = [];
|
|
122
|
+
for (let t = 0; t < e; t++) {
|
|
123
|
+
let r = new Date(N.value, P.value, -e + t + 1);
|
|
124
|
+
n.push(J(r, !1));
|
|
125
|
+
}
|
|
126
|
+
for (let e = 1; e <= t; e++) n.push(J(new Date(N.value, P.value, e), !0));
|
|
127
|
+
for (; n.length % 7 != 0 || n.length < 42;) {
|
|
128
|
+
let e = n[n.length - 1].date, t = new Date(e.getFullYear(), e.getMonth(), e.getDate() + 1);
|
|
129
|
+
n.push(J(t, !1));
|
|
130
|
+
}
|
|
131
|
+
return n;
|
|
132
|
+
});
|
|
133
|
+
function J(e, t) {
|
|
134
|
+
let n = U(e), r = !1;
|
|
135
|
+
G.value && n < U(G.value) && (r = !0), K.value && n > U(K.value) && (r = !0);
|
|
136
|
+
let i = we(), a = n.getTime(), o = !!(i.start && a === i.start.getTime()), s = !!(i.end && a === i.end.getTime()), c = !!(z.value && i.start && i.end && a > i.start.getTime() && a < i.end.getTime());
|
|
137
|
+
return {
|
|
138
|
+
date: n,
|
|
139
|
+
inMonth: t,
|
|
140
|
+
disabled: r,
|
|
141
|
+
selected: o || s,
|
|
142
|
+
inRange: c,
|
|
143
|
+
rangeStart: o,
|
|
144
|
+
rangeEnd: s
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
let Ee = l(() => [
|
|
148
|
+
"wi-datepicker",
|
|
149
|
+
`wi-datepicker--${be.value}`,
|
|
150
|
+
{
|
|
151
|
+
"wi-datepicker--fluid": w.fluid,
|
|
152
|
+
"wi-datepicker--disabled": w.disabled,
|
|
153
|
+
"wi-datepicker--invalid": w.invalid,
|
|
154
|
+
"wi-datepicker--open": O.value,
|
|
155
|
+
"wi-datepicker--range": z.value
|
|
156
|
+
}
|
|
157
|
+
]);
|
|
158
|
+
function De() {
|
|
159
|
+
let e = W.value.start ?? /* @__PURE__ */ new Date();
|
|
160
|
+
N.value = e.getFullYear(), P.value = e.getMonth();
|
|
161
|
+
}
|
|
162
|
+
function Y() {
|
|
163
|
+
if (!R.value || !A.value) return;
|
|
164
|
+
let e = A.value.getBoundingClientRect();
|
|
165
|
+
M.value = {
|
|
166
|
+
left: `${e.left}px`,
|
|
167
|
+
minWidth: `${e.width}px`,
|
|
168
|
+
top: `${e.bottom + 8}px`
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
function Oe(e) {
|
|
172
|
+
w.disabled || (O.value = e, e && (F.value = null, I.value = null, De(), m(() => Y())));
|
|
173
|
+
}
|
|
174
|
+
function X() {
|
|
175
|
+
Oe(!O.value);
|
|
176
|
+
}
|
|
177
|
+
function ke() {
|
|
178
|
+
P.value === 0 ? (P.value = 11, --N.value) : --P.value;
|
|
179
|
+
}
|
|
180
|
+
function Ae() {
|
|
181
|
+
P.value === 11 ? (P.value = 0, N.value += 1) : P.value += 1;
|
|
182
|
+
}
|
|
183
|
+
function je(e, t) {
|
|
184
|
+
if (t || w.disabled) return;
|
|
185
|
+
if (!z.value) {
|
|
186
|
+
T("update:modelValue", V(e)), O.value = !1;
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
if (!F.value) {
|
|
190
|
+
F.value = e, I.value = e;
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
let n = F.value, r = e, [i, a] = n.getTime() <= r.getTime() ? [n, r] : [r, n];
|
|
194
|
+
T("update:modelValue", [V(i), V(a)]), F.value = null, I.value = null, O.value = !1;
|
|
195
|
+
}
|
|
196
|
+
function Me(e) {
|
|
197
|
+
if (w.disabled) return;
|
|
198
|
+
let t = typeof e.value == "function" ? e.value() : e.value;
|
|
199
|
+
if (Array.isArray(t)) {
|
|
200
|
+
let e = B(t[0]), n = B(t[1]);
|
|
201
|
+
if (!e || !n) return;
|
|
202
|
+
let [r, i] = e.getTime() <= n.getTime() ? [e, n] : [n, e];
|
|
203
|
+
T("update:modelValue", z.value ? [V(r), V(i)] : V(r));
|
|
204
|
+
} else {
|
|
205
|
+
let e = B(t);
|
|
206
|
+
if (!e) return;
|
|
207
|
+
T("update:modelValue", z.value ? [V(e), V(e)] : V(e));
|
|
208
|
+
}
|
|
209
|
+
O.value = !1;
|
|
210
|
+
}
|
|
211
|
+
function Ne() {
|
|
212
|
+
w.disabled || !w.clearable || T("update:modelValue", null);
|
|
213
|
+
}
|
|
214
|
+
function Z(e) {
|
|
215
|
+
let t = e.target;
|
|
216
|
+
k.value?.contains(t) || j.value?.contains(t) || (O.value = !1);
|
|
217
|
+
}
|
|
218
|
+
function Q(e) {
|
|
219
|
+
e.key === "Escape" && (O.value = !1);
|
|
220
|
+
}
|
|
221
|
+
function $() {
|
|
222
|
+
O.value && Y();
|
|
223
|
+
}
|
|
224
|
+
return ie(O, async (e) => {
|
|
225
|
+
e ? (document.addEventListener("click", Z), document.addEventListener("keydown", Q), R.value && (window.addEventListener("resize", $), window.addEventListener("scroll", $, !0)), await m()) : (document.removeEventListener("click", Z), document.removeEventListener("keydown", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0));
|
|
226
|
+
}), re(() => {
|
|
227
|
+
document.removeEventListener("click", Z), document.removeEventListener("keydown", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0);
|
|
228
|
+
}), (e, t) => (g(), d("div", {
|
|
229
|
+
ref_key: "root",
|
|
230
|
+
ref: k,
|
|
231
|
+
class: h(Ee.value)
|
|
232
|
+
}, [
|
|
233
|
+
p.label ? (g(), d("label", oe, y(p.label), 1)) : u("", !0),
|
|
234
|
+
f("div", {
|
|
235
|
+
ref_key: "triggerEl",
|
|
236
|
+
ref: A,
|
|
237
|
+
class: "wi-datepicker__control"
|
|
238
|
+
}, [f("input", {
|
|
239
|
+
class: "wi-datepicker__input",
|
|
240
|
+
type: "text",
|
|
241
|
+
readonly: "",
|
|
242
|
+
value: q.value,
|
|
243
|
+
placeholder: Se.value,
|
|
244
|
+
disabled: p.disabled,
|
|
245
|
+
"aria-invalid": p.invalid || void 0,
|
|
246
|
+
"aria-expanded": O.value,
|
|
247
|
+
"aria-haspopup": "dialog",
|
|
248
|
+
onClick: X,
|
|
249
|
+
onKeydown: [x(S(X, ["prevent"]), ["enter"]), x(S(X, ["prevent"]), ["space"])]
|
|
250
|
+
}, null, 40, se), p.clearable && q.value ? (g(), d("button", {
|
|
251
|
+
key: 0,
|
|
252
|
+
type: "button",
|
|
253
|
+
class: "wi-datepicker__clear",
|
|
254
|
+
"aria-label": b(D).clearDate,
|
|
255
|
+
disabled: p.disabled,
|
|
256
|
+
onClick: S(Ne, ["stop"])
|
|
257
|
+
}, " × ", 8, ce)) : u("", !0)], 512),
|
|
258
|
+
(g(), ee(s, {
|
|
259
|
+
to: L.value.to,
|
|
260
|
+
disabled: L.value.disabled
|
|
261
|
+
}, [te(c, { name: "wi-scale-fade" }, {
|
|
262
|
+
default: ae(() => [O.value ? (g(), d("div", {
|
|
263
|
+
key: 0,
|
|
264
|
+
ref_key: "panel",
|
|
265
|
+
ref: j,
|
|
266
|
+
class: h(["wi-datepicker__panel", {
|
|
267
|
+
"wi-datepicker__panel--teleported": R.value,
|
|
268
|
+
"wi-datepicker__panel--with-shortcuts": p.shortcuts.length
|
|
269
|
+
}]),
|
|
270
|
+
style: ne(R.value ? M.value : void 0),
|
|
271
|
+
role: "dialog",
|
|
272
|
+
"aria-label": b(D).datePicker
|
|
273
|
+
}, [p.shortcuts.length ? (g(), d("div", ue, [(g(!0), d(o, null, v(p.shortcuts, (e) => (g(), d("button", {
|
|
274
|
+
key: e.label,
|
|
275
|
+
type: "button",
|
|
276
|
+
class: "wi-datepicker__shortcut",
|
|
277
|
+
onClick: (t) => Me(e)
|
|
278
|
+
}, y(e.label), 9, de))), 128))])) : u("", !0), f("div", fe, [
|
|
279
|
+
f("div", pe, [
|
|
280
|
+
f("button", {
|
|
281
|
+
type: "button",
|
|
282
|
+
class: "wi-datepicker__nav",
|
|
283
|
+
"aria-label": b(D).prevMonth,
|
|
284
|
+
onClick: ke
|
|
285
|
+
}, "‹", 8, me),
|
|
286
|
+
f("span", he, y(Ce.value), 1),
|
|
287
|
+
f("button", {
|
|
288
|
+
type: "button",
|
|
289
|
+
class: "wi-datepicker__nav",
|
|
290
|
+
"aria-label": b(D).nextMonth,
|
|
291
|
+
onClick: Ae
|
|
292
|
+
}, "›", 8, ge)
|
|
293
|
+
]),
|
|
294
|
+
f("div", _e, [(g(!0), d(o, null, v(b(D).weekdays, (e) => (g(), d("span", { key: e }, y(e), 1))), 128))]),
|
|
295
|
+
f("div", ve, [(g(!0), d(o, null, v(Te.value, (e) => (g(), d("button", {
|
|
296
|
+
key: e.date.toISOString(),
|
|
297
|
+
type: "button",
|
|
298
|
+
class: h(["wi-datepicker__day", {
|
|
299
|
+
"wi-datepicker__day--other": !e.inMonth,
|
|
300
|
+
"wi-datepicker__day--selected": e.selected,
|
|
301
|
+
"wi-datepicker__day--in-range": e.inRange,
|
|
302
|
+
"wi-datepicker__day--range-start": e.rangeStart,
|
|
303
|
+
"wi-datepicker__day--range-end": e.rangeEnd
|
|
304
|
+
}]),
|
|
305
|
+
disabled: e.disabled,
|
|
306
|
+
onClick: (t) => je(e.date, e.disabled),
|
|
307
|
+
onMouseenter: (t) => z.value && F.value && (I.value = e.date)
|
|
308
|
+
}, y(e.date.getDate()), 43, ye))), 128))])
|
|
309
|
+
])], 14, le)) : u("", !0)]),
|
|
310
|
+
_: 1
|
|
311
|
+
})], 8, ["to", "disabled"]))
|
|
312
|
+
], 2));
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
//#endregion
|
|
316
|
+
export { C as WiDatePicker };
|