@indielayer/ui 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +4 -4
- package/docs/App.vue +25 -0
- package/docs/assets/css/hljs.css +302 -0
- package/docs/assets/css/tailwind.css +46 -0
- package/docs/assets/images/error.svg +1 -0
- package/docs/assets/images/logo.png +0 -0
- package/docs/assets/images/logo_mini.svg +10 -0
- package/docs/assets/images/logo_white.png +0 -0
- package/docs/assets/images/logo_word.svg +12 -0
- package/docs/assets/images/logo_word_dark.svg +12 -0
- package/docs/assets/images/photo1.jpeg +0 -0
- package/docs/assets/images/photo2.jpeg +0 -0
- package/docs/components/Cookies.vue +42 -0
- package/docs/components/common/CodePreview.vue +80 -0
- package/docs/components/common/CodeSnippet.vue +49 -0
- package/docs/components/common/CopyButton.vue +50 -0
- package/docs/components/common/DocumentPage.vue +289 -0
- package/docs/components/common/Indielayer-theme.json +702 -0
- package/docs/components/common/MultiSnippet.vue +26 -0
- package/docs/components/menu/DocsMenu.vue +143 -0
- package/docs/components/toolbar/PreToolbar.vue +18 -0
- package/docs/components/toolbar/Toolbar.vue +63 -0
- package/docs/components/toolbar/ToolbarColorToggle.vue +49 -0
- package/docs/icons.ts +61 -0
- package/docs/layouts/default.vue +29 -0
- package/docs/layouts/simple.vue +3 -0
- package/docs/main.ts +33 -0
- package/docs/pages/colors.vue +125 -0
- package/docs/pages/component/accordion/index.vue +29 -0
- package/docs/pages/component/accordion/usage.vue +30 -0
- package/docs/pages/component/alert/index.vue +29 -0
- package/docs/pages/component/alert/usage.vue +18 -0
- package/docs/pages/component/avatar/index.vue +43 -0
- package/docs/pages/component/avatar/size.vue +9 -0
- package/docs/pages/component/avatar/usage.vue +9 -0
- package/docs/pages/component/avatar/variants.vue +8 -0
- package/docs/pages/component/badge/index.vue +29 -0
- package/docs/pages/component/badge/usage.vue +50 -0
- package/docs/pages/component/breadcrumbs/index.vue +29 -0
- package/docs/pages/component/breadcrumbs/usage.vue +19 -0
- package/docs/pages/component/button/button-group.vue +18 -0
- package/docs/pages/component/button/icons.vue +9 -0
- package/docs/pages/component/button/index.vue +64 -0
- package/docs/pages/component/button/size.vue +9 -0
- package/docs/pages/component/button/states.vue +6 -0
- package/docs/pages/component/button/usage.vue +12 -0
- package/docs/pages/component/button/variants.vue +7 -0
- package/docs/pages/component/card/index.vue +29 -0
- package/docs/pages/component/card/usage.vue +6 -0
- package/docs/pages/component/carousel/index.vue +29 -0
- package/docs/pages/component/carousel/usage.vue +10 -0
- package/docs/pages/component/checkbox/index.vue +50 -0
- package/docs/pages/component/checkbox/size.vue +9 -0
- package/docs/pages/component/checkbox/states.vue +9 -0
- package/docs/pages/component/checkbox/usage.vue +15 -0
- package/docs/pages/component/checkbox/variants.vue +8 -0
- package/docs/pages/component/container/index.vue +29 -0
- package/docs/pages/component/container/usage.vue +3 -0
- package/docs/pages/component/divider/index.vue +43 -0
- package/docs/pages/component/divider/label.vue +12 -0
- package/docs/pages/component/divider/usage.vue +7 -0
- package/docs/pages/component/divider/vertical.vue +7 -0
- package/docs/pages/component/drawer/index.vue +29 -0
- package/docs/pages/component/drawer/usage.vue +56 -0
- package/docs/pages/component/form/index.vue +29 -0
- package/docs/pages/component/form/usage.vue +96 -0
- package/docs/pages/component/formGroup/index.vue +29 -0
- package/docs/pages/component/formGroup/usage.vue +46 -0
- package/docs/pages/component/icon/index.vue +36 -0
- package/docs/pages/component/icon/usage.vue +6 -0
- package/docs/pages/component/icon/variants.vue +14 -0
- package/docs/pages/component/image/index.vue +29 -0
- package/docs/pages/component/image/usage.vue +8 -0
- package/docs/pages/component/input/index.vue +50 -0
- package/docs/pages/component/input/size.vue +13 -0
- package/docs/pages/component/input/states.vue +12 -0
- package/docs/pages/component/input/usage.vue +15 -0
- package/docs/pages/component/input/variants.vue +18 -0
- package/docs/pages/component/link/index.vue +29 -0
- package/docs/pages/component/link/usage.vue +12 -0
- package/docs/pages/component/loader/index.vue +29 -0
- package/docs/pages/component/loader/usage.vue +7 -0
- package/docs/pages/component/menu/index.vue +29 -0
- package/docs/pages/component/menu/usage.vue +69 -0
- package/docs/pages/component/modal/composed.vue +70 -0
- package/docs/pages/component/modal/index.vue +36 -0
- package/docs/pages/component/modal/usage.vue +61 -0
- package/docs/pages/component/notifications/index.vue +29 -0
- package/docs/pages/component/notifications/usage.vue +56 -0
- package/docs/pages/component/pagination/index.vue +29 -0
- package/docs/pages/component/pagination/usage.vue +17 -0
- package/docs/pages/component/popover/index.vue +29 -0
- package/docs/pages/component/popover/usage.vue +21 -0
- package/docs/pages/component/progress/index.vue +36 -0
- package/docs/pages/component/progress/usage.vue +7 -0
- package/docs/pages/component/progress/variants.vue +18 -0
- package/docs/pages/component/radio/index.vue +50 -0
- package/docs/pages/component/radio/size.vue +15 -0
- package/docs/pages/component/radio/states.vue +13 -0
- package/docs/pages/component/radio/usage.vue +14 -0
- package/docs/pages/component/radio/variants.vue +39 -0
- package/docs/pages/component/scroll/horizontal.vue +14 -0
- package/docs/pages/component/scroll/index.vue +36 -0
- package/docs/pages/component/scroll/usage.vue +5 -0
- package/docs/pages/component/select/index.vue +43 -0
- package/docs/pages/component/select/states.vue +22 -0
- package/docs/pages/component/select/usage.vue +45 -0
- package/docs/pages/component/select/variants.vue +23 -0
- package/docs/pages/component/skeleton/index.vue +29 -0
- package/docs/pages/component/skeleton/usage.vue +10 -0
- package/docs/pages/component/slider/index.vue +29 -0
- package/docs/pages/component/slider/usage.vue +15 -0
- package/docs/pages/component/spacer/index.vue +29 -0
- package/docs/pages/component/spacer/usage.vue +8 -0
- package/docs/pages/component/spinner/index.vue +36 -0
- package/docs/pages/component/spinner/usage.vue +3 -0
- package/docs/pages/component/spinner/variants.vue +9 -0
- package/docs/pages/component/stepper/index.vue +29 -0
- package/docs/pages/component/stepper/usage.vue +21 -0
- package/docs/pages/component/table/index.vue +36 -0
- package/docs/pages/component/table/states.vue +28 -0
- package/docs/pages/component/table/usage.vue +107 -0
- package/docs/pages/component/tabs/index.vue +29 -0
- package/docs/pages/component/tabs/usage.vue +137 -0
- package/docs/pages/component/tag/index.vue +29 -0
- package/docs/pages/component/tag/usage.vue +27 -0
- package/docs/pages/component/textarea/index.vue +43 -0
- package/docs/pages/component/textarea/states.vue +13 -0
- package/docs/pages/component/textarea/usage.vue +22 -0
- package/docs/pages/component/textarea/variants.vue +15 -0
- package/docs/pages/component/toggle/index.vue +43 -0
- package/docs/pages/component/toggle/states.vue +13 -0
- package/docs/pages/component/toggle/usage.vue +14 -0
- package/docs/pages/component/toggle/variants.vue +15 -0
- package/docs/pages/component/tooltip/index.vue +29 -0
- package/docs/pages/component/tooltip/usage.vue +16 -0
- package/docs/pages/error.vue +6 -0
- package/docs/pages/icons.vue +105 -0
- package/docs/pages/index.vue +157 -0
- package/docs/pages/play.vue +19 -0
- package/docs/pages/typography.vue +95 -0
- package/docs/router/index.ts +75 -0
- package/exports/tailwind.preset.js +1 -0
- package/lib/common/icons.d.ts +4 -1
- package/lib/common/icons.js +14 -11
- package/lib/components/accordion/Accordion.vue.d.ts +63 -0
- package/lib/components/accordion/Accordion.vue.js +40 -0
- package/lib/components/accordion/Accordion.vue2.js +4 -0
- package/lib/components/{collapse/Collapse.vue.d.ts → accordion/AccordionItem.vue.d.ts} +33 -18
- package/lib/components/accordion/AccordionItem.vue.js +140 -0
- package/lib/components/accordion/AccordionItem.vue2.js +4 -0
- package/lib/components/accordion/index.d.ts +4 -0
- package/lib/components/accordion/theme/Accordion.base.theme.d.ts +3 -0
- package/lib/components/accordion/theme/Accordion.base.theme.js +8 -0
- package/lib/components/accordion/theme/Accordion.carbon.theme.d.ts +3 -0
- package/lib/components/accordion/theme/Accordion.carbon.theme.js +5 -0
- package/lib/components/accordion/theme/AccordionItem.base.theme.d.ts +3 -0
- package/lib/components/accordion/theme/AccordionItem.base.theme.js +16 -0
- package/lib/components/accordion/theme/AccordionItem.carbon.theme.d.ts +3 -0
- package/lib/components/accordion/theme/AccordionItem.carbon.theme.js +5 -0
- package/lib/components/alert/theme/Alert.carbon.theme.js +39 -3
- package/lib/components/avatar/Avatar.vue.d.ts +2 -2
- package/lib/components/badge/Badge.vue.d.ts +2 -2
- package/lib/components/button/Button.vue.d.ts +3 -3
- package/lib/components/button/ButtonGroup.vue.d.ts +3 -3
- package/lib/components/button/theme/Button.carbon.theme.js +1 -1
- package/lib/components/carousel/CarouselSlide.vue.d.ts +19 -8
- package/lib/components/carousel/CarouselSlide.vue.js +2 -2
- package/lib/components/carousel/CarouselSlide.vue2.js +25 -18
- package/lib/components/checkbox/Checkbox.vue.d.ts +22 -10
- package/lib/components/checkbox/Checkbox.vue2.js +106 -72
- package/lib/components/checkbox/theme/Checkbox.base.theme.js +38 -31
- package/lib/components/checkbox/theme/Checkbox.carbon.theme.js +38 -31
- package/lib/components/container/Container.vue.d.ts +13 -0
- package/lib/components/container/Container.vue.js +15 -11
- package/lib/components/container/theme/Container.base.theme.js +7 -4
- package/lib/components/drawer/Drawer.vue.d.ts +4 -4
- package/lib/components/form/Form.vue.d.ts +25 -2
- package/lib/components/form/Form.vue.js +67 -36
- package/lib/components/form/theme/Form.base.theme.js +8 -4
- package/lib/components/form/theme/Form.carbon.theme.js +10 -3
- package/lib/components/formGroup/FormGroup.vue.d.ts +132 -0
- package/lib/components/formGroup/FormGroup.vue.js +82 -0
- package/lib/components/formGroup/FormGroup.vue2.js +4 -0
- package/lib/components/formGroup/__tests__/FormGroup.spec.d.ts +1 -0
- package/lib/components/formGroup/index.d.ts +2 -0
- package/lib/components/formGroup/theme/FormGroup.base.theme.d.ts +3 -0
- package/lib/components/formGroup/theme/FormGroup.base.theme.js +11 -0
- package/lib/components/formGroup/theme/FormGroup.carbon.theme.d.ts +3 -0
- package/lib/components/formGroup/theme/FormGroup.carbon.theme.js +11 -0
- package/lib/components/icon/theme/Icon.base.theme.js +1 -1
- package/lib/components/icon/theme/Icon.carbon.theme.js +4 -4
- package/lib/components/index.d.ts +3 -1
- package/lib/components/index.js +106 -100
- package/lib/components/input/Input.vue.d.ts +12 -9
- package/lib/components/input/Input.vue.js +39 -39
- package/lib/components/input/theme/Input.carbon.theme.js +1 -1
- package/lib/components/inputFooter/theme/InputFooter.base.theme.js +1 -1
- package/lib/components/inputFooter/theme/InputFooter.carbon.theme.js +1 -1
- package/lib/components/label/Label.vue.d.ts +3 -3
- package/lib/components/label/theme/Label.carbon.theme.js +7 -6
- package/lib/components/link/Link.vue.d.ts +1 -1
- package/lib/components/link/Link.vue.js +2 -2
- package/lib/components/link/Link.vue2.js +1 -1
- package/lib/components/link/theme/Link.base.theme.js +4 -4
- package/lib/components/link/theme/Link.carbon.theme.js +23 -3
- package/lib/components/loader/theme/Loader.carbon.theme.js +1 -1
- package/lib/components/menu/Menu.vue.d.ts +6 -5
- package/lib/components/menu/Menu.vue.js +43 -40
- package/lib/components/menu/MenuItem.vue.d.ts +4 -4
- package/lib/components/menu/MenuItem.vue.js +2 -2
- package/lib/components/menu/MenuItem.vue2.js +1 -1
- package/lib/components/menu/theme/MenuItem.base.theme.js +3 -3
- package/lib/components/modal/Modal.vue.d.ts +98 -3
- package/lib/components/modal/Modal.vue.js +153 -100
- package/lib/components/modal/theme/Modal.base.theme.js +15 -9
- package/lib/components/modal/theme/Modal.carbon.theme.js +27 -3
- package/lib/components/notifications/Notifications.vue.js +56 -53
- package/lib/components/notifications/theme/Notifications.base.theme.js +1 -1
- package/lib/components/notifications/theme/Notifications.carbon.theme.js +8 -3
- package/lib/components/popover/Popover.vue.d.ts +3 -3
- package/lib/components/radio/Radio.vue.d.ts +17 -12
- package/lib/components/radio/Radio.vue2.js +81 -66
- package/lib/components/radio/theme/Radio.base.theme.js +19 -16
- package/lib/components/radio/theme/Radio.carbon.theme.js +32 -29
- package/lib/components/select/Select.vue.d.ts +13 -10
- package/lib/components/select/Select.vue.js +115 -116
- package/lib/components/select/theme/Select.base.theme.js +10 -10
- package/lib/components/select/theme/Select.carbon.theme.js +5 -5
- package/lib/components/skeleton/Skeleton.vue.d.ts +19 -1
- package/lib/components/skeleton/Skeleton.vue.js +25 -15
- package/lib/components/skeleton/theme/Skeleton.base.theme.js +7 -4
- package/lib/components/slider/Slider.vue.d.ts +12 -6
- package/lib/components/slider/Slider.vue.js +3 -4
- package/lib/components/slider/theme/Slider.carbon.theme.js +4 -4
- package/lib/components/spinner/Spinner.vue.d.ts +1 -1
- package/lib/components/spinner/Spinner.vue.js +16 -17
- package/lib/components/stepper/Stepper.vue.d.ts +137 -0
- package/lib/components/stepper/Stepper.vue.js +128 -0
- package/lib/components/stepper/Stepper.vue2.js +4 -0
- package/lib/components/stepper/__tests__/Stepper.spec.d.ts +1 -0
- package/lib/components/stepper/index.d.ts +2 -0
- package/lib/components/stepper/theme/Stepper.base.theme.d.ts +3 -0
- package/lib/components/stepper/theme/Stepper.base.theme.js +20 -0
- package/lib/components/stepper/theme/Stepper.carbon.theme.d.ts +3 -0
- package/lib/components/{collapse/theme/Collapse.carbon.theme.js → stepper/theme/Stepper.carbon.theme.js} +1 -1
- package/lib/components/tab/Tab.vue.d.ts +11 -5
- package/lib/components/tab/Tab.vue.js +65 -50
- package/lib/components/tab/TabGroup.vue.d.ts +1 -1
- package/lib/components/tab/TabGroup.vue.js +5 -5
- package/lib/components/tab/theme/Tab.base.theme.js +2 -1
- package/lib/components/tab/theme/Tab.carbon.theme.js +6 -5
- package/lib/components/tab/theme/TabGroup.carbon.theme.js +28 -2
- package/lib/components/table/Table.vue.d.ts +115 -9
- package/lib/components/table/Table.vue.js +209 -98
- package/lib/components/table/TableCell.vue.d.ts +4 -5
- package/lib/components/table/TableCell.vue.js +21 -22
- package/lib/components/table/TableHead.vue.d.ts +16 -0
- package/lib/components/table/TableHead.vue.js +21 -0
- package/lib/components/table/TableHead.vue2.js +4 -0
- package/lib/components/table/TableHeader.vue.d.ts +4 -0
- package/lib/components/table/TableHeader.vue.js +45 -54
- package/lib/components/table/TableRow.vue.d.ts +15 -1
- package/lib/components/table/TableRow.vue.js +21 -25
- package/lib/components/table/index.d.ts +4 -2
- package/lib/components/table/theme/Table.base.theme.js +7 -6
- package/lib/components/table/theme/Table.carbon.theme.js +11 -3
- package/lib/components/table/theme/TableCell.base.theme.js +3 -3
- package/lib/components/table/theme/TableCell.carbon.theme.js +9 -3
- package/lib/components/table/theme/TableHead.base.theme.d.ts +3 -0
- package/lib/components/table/theme/TableHead.base.theme.js +9 -0
- package/lib/components/table/theme/TableHead.carbon.theme.d.ts +3 -0
- package/lib/components/table/theme/TableHead.carbon.theme.js +9 -0
- package/lib/components/table/theme/TableHeader.base.theme.d.ts +3 -0
- package/lib/components/table/theme/TableHeader.base.theme.js +12 -0
- package/lib/components/table/theme/TableHeader.carbon.theme.d.ts +3 -0
- package/lib/components/table/theme/TableHeader.carbon.theme.js +12 -0
- package/lib/components/table/theme/TableRow.base.theme.d.ts +3 -0
- package/lib/components/table/theme/TableRow.base.theme.js +11 -0
- package/lib/components/table/theme/TableRow.carbon.theme.d.ts +3 -0
- package/lib/components/table/theme/TableRow.carbon.theme.js +11 -0
- package/lib/components/tag/Tag.vue.d.ts +3 -3
- package/lib/components/tag/Tag.vue.js +17 -17
- package/lib/components/tag/theme/Tag.base.theme.js +14 -13
- package/lib/components/tag/theme/Tag.carbon.theme.js +14 -14
- package/lib/components/textarea/Textarea.vue.d.ts +11 -8
- package/lib/components/textarea/Textarea.vue.js +34 -34
- package/lib/components/textarea/theme/Textarea.carbon.theme.js +1 -1
- package/lib/components/toggle/Toggle.vue.d.ts +12 -12
- package/lib/components/toggle/Toggle.vue.js +37 -39
- package/lib/composables/keys.d.ts +5 -1
- package/lib/composables/keys.js +8 -6
- package/lib/composables/useFocusTrap.d.ts +6 -0
- package/lib/composables/useFocusTrap.js +45 -0
- package/lib/composables/useInputtable.d.ts +6 -0
- package/lib/composables/useInputtable.js +59 -42
- package/lib/index.js +137 -129
- package/lib/index.umd.js +3 -3
- package/lib/nuxt.mjs +33 -0
- package/lib/nuxt.plugin.js +8 -0
- package/lib/tailwind.preset.js +41 -0
- package/lib/theme.d.ts +8 -2
- package/lib/themes/base/components.d.ts +7 -1
- package/lib/themes/base/components.js +98 -86
- package/lib/themes/carbon/components.d.ts +7 -1
- package/lib/themes/carbon/components.js +98 -86
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +7 -2
- package/src/common/icons.ts +4 -1
- package/src/components/accordion/Accordion.vue +55 -0
- package/src/components/{collapse/Collapse.vue → accordion/AccordionItem.vue} +51 -32
- package/src/components/accordion/__tests__/Accordion.spec.ts +11 -0
- package/src/components/accordion/index.ts +4 -0
- package/src/components/accordion/theme/Accordion.base.theme.ts +9 -0
- package/src/components/accordion/theme/Accordion.carbon.theme.ts +7 -0
- package/src/components/accordion/theme/AccordionItem.base.theme.ts +38 -0
- package/src/components/accordion/theme/AccordionItem.carbon.theme.ts +7 -0
- package/src/components/alert/theme/Alert.carbon.theme.ts +54 -2
- package/src/components/button/theme/Button.carbon.theme.ts +1 -1
- package/src/components/carousel/CarouselSlide.vue +9 -4
- package/src/components/checkbox/Checkbox.vue +69 -20
- package/src/components/checkbox/theme/Checkbox.base.theme.ts +15 -1
- package/src/components/checkbox/theme/Checkbox.carbon.theme.ts +17 -3
- package/src/components/container/Container.vue +4 -0
- package/src/components/container/theme/Container.base.theme.ts +7 -1
- package/src/components/form/Form.vue +26 -5
- package/src/components/form/theme/Form.base.theme.ts +9 -1
- package/src/components/form/theme/Form.carbon.theme.ts +12 -2
- package/src/components/formGroup/FormGroup.vue +116 -0
- package/src/components/formGroup/__tests__/FormGroup.spec.ts +11 -0
- package/src/components/formGroup/index.ts +2 -0
- package/src/components/formGroup/theme/FormGroup.base.theme.ts +16 -0
- package/src/components/formGroup/theme/FormGroup.carbon.theme.ts +16 -0
- package/src/components/icon/theme/Icon.base.theme.ts +1 -1
- package/src/components/icon/theme/Icon.carbon.theme.ts +3 -4
- package/src/components/index.ts +3 -1
- package/src/components/input/Input.vue +3 -3
- package/src/components/input/theme/Input.carbon.theme.ts +1 -1
- package/src/components/inputFooter/theme/InputFooter.base.theme.ts +1 -1
- package/src/components/inputFooter/theme/InputFooter.carbon.theme.ts +1 -1
- package/src/components/label/theme/Label.carbon.theme.ts +8 -3
- package/src/components/link/Link.vue +1 -1
- package/src/components/link/theme/Link.carbon.theme.ts +23 -2
- package/src/components/loader/theme/Loader.carbon.theme.ts +1 -1
- package/src/components/menu/Menu.vue +8 -5
- package/src/components/menu/MenuItem.vue +1 -1
- package/src/components/menu/theme/MenuItem.base.theme.ts +3 -3
- package/src/components/modal/Modal.vue +110 -50
- package/src/components/modal/theme/Modal.base.theme.ts +28 -12
- package/src/components/modal/theme/Modal.carbon.theme.ts +55 -2
- package/src/components/notifications/Notifications.vue +5 -5
- package/src/components/notifications/theme/Notifications.base.theme.ts +1 -1
- package/src/components/notifications/theme/Notifications.carbon.theme.ts +12 -2
- package/src/components/radio/Radio.vue +39 -15
- package/src/components/radio/theme/Radio.base.theme.ts +7 -1
- package/src/components/radio/theme/Radio.carbon.theme.ts +13 -7
- package/src/components/select/Select.vue +10 -11
- package/src/components/select/theme/Select.base.theme.ts +1 -1
- package/src/components/select/theme/Select.carbon.theme.ts +2 -2
- package/src/components/skeleton/Skeleton.vue +18 -2
- package/src/components/skeleton/theme/Skeleton.base.theme.ts +8 -1
- package/src/components/slider/Slider.vue +1 -2
- package/src/components/slider/theme/Slider.carbon.theme.ts +1 -1
- package/src/components/spinner/Spinner.vue +2 -2
- package/src/components/stepper/Stepper.vue +153 -0
- package/src/components/{collapse/__tests__/Collapse.spec.ts → stepper/__tests__/Stepper.spec.ts} +3 -3
- package/src/components/stepper/index.ts +6 -0
- package/src/components/stepper/theme/Stepper.base.theme.ts +45 -0
- package/src/components/stepper/theme/Stepper.carbon.theme.ts +7 -0
- package/src/components/tab/Tab.vue +20 -6
- package/src/components/tab/TabGroup.vue +2 -2
- package/src/components/tab/theme/Tab.base.theme.ts +2 -0
- package/src/components/tab/theme/Tab.carbon.theme.ts +4 -2
- package/src/components/tab/theme/TabGroup.carbon.theme.ts +50 -2
- package/src/components/table/Table.vue +123 -27
- package/src/components/table/TableCell.vue +5 -6
- package/src/components/table/TableHead.vue +25 -0
- package/src/components/table/TableHeader.vue +35 -56
- package/src/components/table/TableRow.vue +19 -17
- package/src/components/table/index.ts +4 -2
- package/src/components/table/theme/Table.base.theme.ts +9 -7
- package/src/components/table/theme/Table.carbon.theme.ts +18 -2
- package/src/components/table/theme/TableCell.base.theme.ts +1 -1
- package/src/components/table/theme/TableCell.carbon.theme.ts +24 -2
- package/src/components/table/theme/TableHead.base.theme.ts +10 -0
- package/src/components/table/theme/TableHead.carbon.theme.ts +10 -0
- package/src/components/table/theme/TableHeader.base.theme.ts +28 -0
- package/src/components/table/theme/TableHeader.carbon.theme.ts +28 -0
- package/src/components/table/theme/TableRow.base.theme.ts +21 -0
- package/src/components/table/theme/TableRow.carbon.theme.ts +21 -0
- package/src/components/tag/Tag.vue +4 -4
- package/src/components/tag/theme/Tag.base.theme.ts +4 -4
- package/src/components/tag/theme/Tag.carbon.theme.ts +5 -6
- package/src/components/textarea/Textarea.vue +3 -3
- package/src/components/textarea/theme/Textarea.carbon.theme.ts +1 -1
- package/src/components/toggle/Toggle.vue +2 -4
- package/src/composables/keys.ts +5 -1
- package/src/composables/useFocusTrap.ts +106 -0
- package/src/composables/useInputtable.ts +31 -3
- package/src/theme.ts +14 -2
- package/src/themes/base/components.ts +7 -1
- package/src/themes/carbon/components.ts +7 -1
- package/src/version.ts +1 -1
- package/volar.d.ts +5 -1
- package/lib/components/collapse/Collapse.vue.js +0 -131
- package/lib/components/collapse/Collapse.vue2.js +0 -4
- package/lib/components/collapse/index.d.ts +0 -2
- package/lib/components/collapse/theme/Collapse.base.theme.d.ts +0 -3
- package/lib/components/collapse/theme/Collapse.base.theme.js +0 -10
- package/lib/components/collapse/theme/Collapse.carbon.theme.d.ts +0 -3
- package/lib/components/table/TableHead.d.ts +0 -2
- package/lib/components/table/TableHead.js +0 -19
- package/src/components/collapse/index.ts +0 -2
- package/src/components/collapse/theme/Collapse.base.theme.ts +0 -13
- package/src/components/collapse/theme/Collapse.carbon.theme.ts +0 -7
- package/src/components/table/TableHead.tsx +0 -14
- /package/lib/components/{collapse/__tests__/Collapse.spec.d.ts → accordion/__tests__/Accordion.spec.d.ts} +0 -0
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useMutationObserver as
|
|
3
|
-
import {
|
|
4
|
-
import { useCommon as
|
|
5
|
-
import { useTheme as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { defineComponent as R, computed as s, ref as v, inject as j, reactive as D, onMounted as L, openBlock as d, createBlock as m, resolveDynamicComponent as V, normalizeStyle as E, unref as o, normalizeClass as c, withCtx as M, renderSlot as x, createElementVNode as f, createCommentVNode as k, toDisplayString as O, Teleport as P } from "vue";
|
|
2
|
+
import { useMutationObserver as X } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
|
|
3
|
+
import { injectTabGroupKey as F } from "../../composables/keys.js";
|
|
4
|
+
import { useCommon as C } from "../../composables/useCommon.js";
|
|
5
|
+
import { useTheme as G } from "../../composables/useTheme.js";
|
|
6
|
+
import z from "../icon/Icon.vue.js";
|
|
7
|
+
import I from "../link/Link.vue.js";
|
|
8
|
+
import { closeIcon as K } from "../../common/icons.js";
|
|
8
9
|
const q = {
|
|
9
|
-
...
|
|
10
|
+
...C.props(),
|
|
10
11
|
value: {
|
|
11
12
|
type: [String, Number]
|
|
12
13
|
},
|
|
13
14
|
tag: {
|
|
14
15
|
type: String,
|
|
15
|
-
default: "
|
|
16
|
+
default: "button"
|
|
16
17
|
},
|
|
17
18
|
to: [String, Object],
|
|
18
19
|
label: String,
|
|
19
20
|
icon: String,
|
|
20
21
|
disabled: Boolean,
|
|
21
|
-
exact: Boolean
|
|
22
|
+
exact: Boolean,
|
|
23
|
+
removable: Boolean
|
|
22
24
|
}, A = {
|
|
23
25
|
name: "XTab",
|
|
24
26
|
validators: {
|
|
25
|
-
...
|
|
27
|
+
...C.validators()
|
|
26
28
|
}
|
|
27
|
-
},
|
|
29
|
+
}, ee = /* @__PURE__ */ R({
|
|
28
30
|
...A,
|
|
29
31
|
props: q,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
emits: ["remove"],
|
|
33
|
+
setup(T) {
|
|
34
|
+
const t = T, i = s(() => {
|
|
35
|
+
var e, u;
|
|
36
|
+
return ((u = (e = l.value) == null ? void 0 : e.$el) == null ? void 0 : u.href) || t.value;
|
|
37
|
+
}), S = s(() => t.label || t.value), p = v(null), l = v(null), a = j(F, {
|
|
38
|
+
tabsContentRef: v(null),
|
|
36
39
|
activateTab: () => {
|
|
37
40
|
},
|
|
38
|
-
state:
|
|
41
|
+
state: D({
|
|
39
42
|
active: void 0,
|
|
40
43
|
variant: "line",
|
|
41
44
|
ghost: !1,
|
|
@@ -44,44 +47,44 @@ const q = {
|
|
|
44
47
|
size: "md",
|
|
45
48
|
color: "primary"
|
|
46
49
|
})
|
|
47
|
-
}),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
}), g = s(() => a.state.exact || t.exact), b = s(() => t.size || a.state.size);
|
|
51
|
+
L(() => {
|
|
52
|
+
p.value = a.tabsContentRef.value, t.to && l.value && (y(), X(l.value.$el, y, {
|
|
50
53
|
attributes: !0,
|
|
51
54
|
attributeFilter: ["class"]
|
|
52
55
|
}));
|
|
53
56
|
});
|
|
54
|
-
function
|
|
55
|
-
l.value && l.value.$el && t.to && l.value.$el.classList.contains(
|
|
57
|
+
function y() {
|
|
58
|
+
l.value && l.value.$el && t.to && l.value.$el.classList.contains(g.value ? "router-link-exact-active" : "router-link-active") && a.activateTab(i.value);
|
|
56
59
|
}
|
|
57
|
-
const r = s(() => a.state.active === i.value),
|
|
58
|
-
function
|
|
60
|
+
const r = s(() => a.state.active === i.value), h = s(() => a.state.color);
|
|
61
|
+
function $(e) {
|
|
59
62
|
if (t.disabled) {
|
|
60
63
|
e.preventDefault(), e.stopPropagation();
|
|
61
64
|
return;
|
|
62
65
|
}
|
|
63
|
-
!t.to && i.value && a.activateTab(i.value);
|
|
66
|
+
!t.to && typeof i.value < "u" && a.activateTab(i.value);
|
|
64
67
|
}
|
|
65
|
-
const { styles:
|
|
68
|
+
const { styles: w, classes: n, className: B } = G("Tab", {}, v({
|
|
66
69
|
...t,
|
|
67
|
-
size:
|
|
68
|
-
exact:
|
|
70
|
+
size: b.value,
|
|
71
|
+
exact: g.value
|
|
69
72
|
}), {
|
|
70
73
|
...a.state,
|
|
71
74
|
selected: r
|
|
72
75
|
});
|
|
73
|
-
return (e,
|
|
76
|
+
return (e, u) => (d(), m(V(e.to ? I : e.tag), {
|
|
74
77
|
ref_key: "elRef",
|
|
75
78
|
ref: l,
|
|
76
79
|
"data-value": i.value,
|
|
77
80
|
to: e.to,
|
|
78
|
-
color: r.value ?
|
|
79
|
-
style:
|
|
80
|
-
o(
|
|
81
|
+
color: r.value ? h.value : void 0,
|
|
82
|
+
style: E([
|
|
83
|
+
o(w),
|
|
81
84
|
e.to && r.value && o(a).state.variant === "block" ? "--x-link-text: var(--x-tab-group-text); --x-link-text-hover: var(--x-tab-group-text);" : ""
|
|
82
85
|
]),
|
|
83
86
|
class: c([
|
|
84
|
-
o(
|
|
87
|
+
o(B),
|
|
85
88
|
o(n).wrapper,
|
|
86
89
|
"shrink-0",
|
|
87
90
|
{
|
|
@@ -94,40 +97,52 @@ const q = {
|
|
|
94
97
|
]),
|
|
95
98
|
"aria-disabled": e.disabled ? "true" : void 0,
|
|
96
99
|
"aria-selected": r.value ? "true" : "false",
|
|
97
|
-
onClick:
|
|
100
|
+
onClick: $
|
|
98
101
|
}, {
|
|
99
|
-
default:
|
|
100
|
-
|
|
102
|
+
default: M(() => [
|
|
103
|
+
x(e.$slots, "tab", {
|
|
101
104
|
label: e.label,
|
|
102
105
|
value: e.value,
|
|
103
|
-
size:
|
|
106
|
+
size: b.value,
|
|
104
107
|
icon: e.icon
|
|
105
108
|
}, () => [
|
|
106
|
-
|
|
109
|
+
f("div", {
|
|
107
110
|
class: c(o(n).content)
|
|
108
111
|
}, [
|
|
109
|
-
e.icon ? (
|
|
112
|
+
e.icon ? (d(), m(z, {
|
|
110
113
|
key: 0,
|
|
111
114
|
icon: e.icon,
|
|
112
|
-
size:
|
|
115
|
+
size: b.value,
|
|
113
116
|
class: c(o(n).icon)
|
|
114
|
-
}, null, 8, ["icon", "size", "class"])) :
|
|
115
|
-
|
|
117
|
+
}, null, 8, ["icon", "size", "class"])) : k("", !0),
|
|
118
|
+
f("div", {
|
|
116
119
|
class: c(o(n).label)
|
|
117
|
-
},
|
|
120
|
+
}, O(S.value), 3),
|
|
121
|
+
e.removable ? (d(), m(z, {
|
|
122
|
+
key: 1,
|
|
123
|
+
size: "sm",
|
|
124
|
+
icon: o(K),
|
|
125
|
+
class: "ml-2 cursor-pointer hover:text-gray-700 dark:hover:text-gray-500 transition-colors duration-150",
|
|
126
|
+
onClick: u[0] || (u[0] = (N) => e.$emit("remove", N))
|
|
127
|
+
}, null, 8, ["icon"])) : k("", !0)
|
|
118
128
|
], 2)
|
|
119
129
|
]),
|
|
120
|
-
r.value &&
|
|
130
|
+
r.value && p.value ? (d(), m(P, {
|
|
121
131
|
key: 0,
|
|
122
|
-
to:
|
|
132
|
+
to: p.value
|
|
123
133
|
}, [
|
|
124
|
-
|
|
125
|
-
|
|
134
|
+
f("div", {
|
|
135
|
+
role: "tabpanel",
|
|
136
|
+
class: c(o(n).tabpanel)
|
|
137
|
+
}, [
|
|
138
|
+
x(e.$slots, "default")
|
|
139
|
+
], 2)
|
|
140
|
+
], 8, ["to"])) : k("", !0)
|
|
126
141
|
]),
|
|
127
142
|
_: 3
|
|
128
143
|
}, 8, ["data-value", "to", "color", "style", "class", "aria-disabled", "aria-selected"]));
|
|
129
144
|
}
|
|
130
145
|
});
|
|
131
146
|
export {
|
|
132
|
-
|
|
147
|
+
ee as default
|
|
133
148
|
};
|
|
@@ -107,8 +107,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
107
107
|
}>> & {
|
|
108
108
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
109
109
|
}, {
|
|
110
|
-
size: Size;
|
|
111
110
|
color: string;
|
|
111
|
+
size: Size;
|
|
112
112
|
align: "left" | "right" | "center";
|
|
113
113
|
ghost: boolean;
|
|
114
114
|
exact: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as B, ref as r, watchEffect as z, reactive as E, computed as o, provide as V, watch as
|
|
1
|
+
import { defineComponent as B, ref as r, watchEffect as z, reactive as E, computed as o, provide as V, watch as G, onMounted as N, openBlock as $, createElementBlock as q, createElementVNode as f, normalizeClass as v, unref as n, normalizeStyle as F, createVNode as L, withCtx as M, renderSlot as O, withDirectives as W, vShow as X, nextTick as j } from "vue";
|
|
2
2
|
import { useMutationObserver as D, useResizeObserver as K } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { injectTabGroupKey as P } from "../../composables/keys.js";
|
|
4
4
|
import { useCommon as b } from "../../composables/useCommon.js";
|
|
5
5
|
import { useColors as A } from "../../composables/useColors.js";
|
|
6
6
|
import { useTheme as H } from "../../composables/useTheme.js";
|
|
@@ -73,9 +73,9 @@ const Q = {
|
|
|
73
73
|
var e;
|
|
74
74
|
(e = l.value) != null && e.querySelector(".router-link-active") ? m.value = !0 : (h(null), m.value = !1);
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
G(() => a.value, (e) => {
|
|
77
77
|
p(e);
|
|
78
|
-
}),
|
|
78
|
+
}), N(() => {
|
|
79
79
|
var e;
|
|
80
80
|
(e = l.value) != null && e.querySelector(".x-link") && D(l.value, S, {
|
|
81
81
|
attributes: !0,
|
|
@@ -86,7 +86,7 @@ const Q = {
|
|
|
86
86
|
p(a.value);
|
|
87
87
|
});
|
|
88
88
|
const { styles: T, classes: c, className: x } = H("TabGroup", {}, t);
|
|
89
|
-
return (e, s) => (
|
|
89
|
+
return (e, s) => ($(), q("div", null, [
|
|
90
90
|
f("div", {
|
|
91
91
|
ref_key: "wrapperRef",
|
|
92
92
|
ref: R,
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
const n = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: ({ props: t, data: s }) => {
|
|
4
|
-
const e = ["py-2 transition-colors duration-150 ease-in-out whitespace-nowrap text-left
|
|
5
|
-
return s.variant
|
|
4
|
+
const e = ["py-2 transition-colors duration-150 ease-in-out whitespace-nowrap text-left"];
|
|
5
|
+
return s.variant, e.push("px-4"), t.size === "lg" ? e.push("text-lg") : t.size === "xl" ? e.push("text-xl") : e.push("text-sm"), e;
|
|
6
6
|
},
|
|
7
7
|
content: "flex items-center justify-start",
|
|
8
8
|
label: ({ data: t }) => {
|
|
9
9
|
const s = [""];
|
|
10
10
|
return t.selected && s.push("font-medium"), s;
|
|
11
11
|
},
|
|
12
|
-
icon: "mr-1.5"
|
|
12
|
+
icon: "mr-1.5",
|
|
13
|
+
tabpanel: "py-4"
|
|
13
14
|
}
|
|
14
|
-
},
|
|
15
|
+
}, l = n;
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
l as default
|
|
17
18
|
};
|
|
@@ -1,5 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
const l = {
|
|
2
|
+
classes: {
|
|
3
|
+
wrapper: "",
|
|
4
|
+
scroller: ({ props: t }) => {
|
|
5
|
+
const r = [""];
|
|
6
|
+
return t.fullWidth || r.push("!w-fit"), t.variant === "block" && r.push(""), t.variant === "block" && !t.ghost && r.push("bg-gray-200 dark:bg-gray-800"), r;
|
|
7
|
+
},
|
|
8
|
+
list: ({ props: t }) => {
|
|
9
|
+
const r = ["flex min-w-full w-fit"];
|
|
10
|
+
return t.variant === "line" && r.push("border-b border-gray-200 dark:border-gray-700"), t.variant === "line" && !t.grow && r.push(""), t.variant === "block" && r.push("z-[1] py-1.5"), t.align === "center" && r.push("justify-center"), t.align === "right" && r.push("justify-end"), r;
|
|
11
|
+
},
|
|
12
|
+
tracker: ({ props: t }) => {
|
|
13
|
+
const r = ["absolute transition-all duration-150"];
|
|
14
|
+
return t.variant === "line" && r.push("h-[2px] -mt-[2px] bg-[color:var(--x-tab-group-text)] dark:bg-[color:var(--x-tab-group-dark-text)]"), t.variant === "block" && r.push("border-t-2 border-solid border-[color:var(--x-tab-group-text)] dark:border-[color:var(--x-tab-group-dark-text)] h-full top-0 bg-gray-100 dark:bg-gray-700"), r;
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
styles: ({ props: t, colors: r, css: e }) => {
|
|
18
|
+
const i = r.getPalette("gray"), a = r.getPalette(t.color);
|
|
19
|
+
return e.variables({
|
|
20
|
+
text: a[600],
|
|
21
|
+
bg: t.ghost ? a[50] : "#fff",
|
|
22
|
+
dark: {
|
|
23
|
+
text: a[400],
|
|
24
|
+
bg: t.ghost ? a[900] : i[700]
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}, o = l;
|
|
3
29
|
export {
|
|
4
30
|
o as default
|
|
5
31
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ExtractPublicPropTypes, type PropType } from 'vue';
|
|
2
2
|
import { type ThemeComponent } from '../../composables/useTheme';
|
|
3
3
|
import { type TableHeaderAlign } from './TableHeader.vue';
|
|
4
|
+
import type { SkeletonShape } from '../skeleton/Skeleton.vue';
|
|
4
5
|
declare const tableProps: {
|
|
5
6
|
headers: {
|
|
6
7
|
type: PropType<TableHeader[]>;
|
|
@@ -15,6 +16,12 @@ declare const tableProps: {
|
|
|
15
16
|
default: () => never[];
|
|
16
17
|
};
|
|
17
18
|
loading: BooleanConstructor;
|
|
19
|
+
loadingSkeleton: BooleanConstructor;
|
|
20
|
+
loadingLines: {
|
|
21
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
error: BooleanConstructor;
|
|
18
25
|
dense: BooleanConstructor;
|
|
19
26
|
fixed: BooleanConstructor;
|
|
20
27
|
striped: BooleanConstructor;
|
|
@@ -27,6 +34,7 @@ declare const tableProps: {
|
|
|
27
34
|
type: BooleanConstructor;
|
|
28
35
|
default: boolean;
|
|
29
36
|
};
|
|
37
|
+
expandable: BooleanConstructor;
|
|
30
38
|
};
|
|
31
39
|
export type TableHeader = {
|
|
32
40
|
sortable?: boolean;
|
|
@@ -35,33 +43,43 @@ export type TableHeader = {
|
|
|
35
43
|
value?: string;
|
|
36
44
|
text?: string;
|
|
37
45
|
width?: string | number;
|
|
46
|
+
truncate?: boolean;
|
|
47
|
+
skeletonShape?: SkeletonShape;
|
|
38
48
|
};
|
|
39
49
|
export type TableProps = ExtractPublicPropTypes<typeof tableProps>;
|
|
40
|
-
type InternalClasses = 'wrapper' | 'loadingWrapper';
|
|
50
|
+
type InternalClasses = 'wrapper' | 'table' | 'loadingWrapper';
|
|
41
51
|
export interface TableTheme extends ThemeComponent<TableProps, InternalClasses> {
|
|
42
52
|
}
|
|
43
53
|
declare const _default: <T>(__VLS_props: Partial<{
|
|
44
54
|
sort: string[];
|
|
55
|
+
error: boolean;
|
|
45
56
|
items: T[];
|
|
46
57
|
loading: boolean;
|
|
47
58
|
fixed: boolean;
|
|
48
59
|
headers: TableHeader[];
|
|
60
|
+
loadingSkeleton: boolean;
|
|
61
|
+
loadingLines: string | number;
|
|
49
62
|
dense: boolean;
|
|
50
63
|
striped: boolean;
|
|
51
64
|
pointer: boolean;
|
|
52
65
|
scrollable: boolean;
|
|
53
66
|
stickyHeader: boolean;
|
|
67
|
+
expandable: boolean;
|
|
54
68
|
}> & Omit<{
|
|
55
69
|
readonly sort: string[];
|
|
70
|
+
readonly error: boolean;
|
|
56
71
|
readonly items: T[];
|
|
57
72
|
readonly loading: boolean;
|
|
58
73
|
readonly fixed: boolean;
|
|
59
74
|
readonly headers: TableHeader[];
|
|
75
|
+
readonly loadingSkeleton: boolean;
|
|
76
|
+
readonly loadingLines: string | number;
|
|
60
77
|
readonly dense: boolean;
|
|
61
78
|
readonly striped: boolean;
|
|
62
79
|
readonly pointer: boolean;
|
|
63
80
|
readonly scrollable: boolean;
|
|
64
81
|
readonly stickyHeader: boolean;
|
|
82
|
+
readonly expandable: boolean;
|
|
65
83
|
"onUpdate:sort"?: ((...args: any[]) => any) | undefined;
|
|
66
84
|
"onClick-row"?: ((...args: any[]) => any) | undefined;
|
|
67
85
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -78,6 +96,12 @@ declare const _default: <T>(__VLS_props: Partial<{
|
|
|
78
96
|
default: () => never[];
|
|
79
97
|
};
|
|
80
98
|
loading: BooleanConstructor;
|
|
99
|
+
loadingSkeleton: BooleanConstructor;
|
|
100
|
+
loadingLines: {
|
|
101
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
102
|
+
default: number;
|
|
103
|
+
};
|
|
104
|
+
error: BooleanConstructor;
|
|
81
105
|
dense: BooleanConstructor;
|
|
82
106
|
fixed: BooleanConstructor;
|
|
83
107
|
striped: BooleanConstructor;
|
|
@@ -90,32 +114,41 @@ declare const _default: <T>(__VLS_props: Partial<{
|
|
|
90
114
|
type: BooleanConstructor;
|
|
91
115
|
default: boolean;
|
|
92
116
|
};
|
|
117
|
+
expandable: BooleanConstructor;
|
|
93
118
|
}>> & {
|
|
94
119
|
"onUpdate:sort"?: ((...args: any[]) => any) | undefined;
|
|
95
120
|
"onClick-row"?: ((...args: any[]) => any) | undefined;
|
|
96
|
-
}, "sort" | "items" | "loading" | "fixed" | "headers" | "dense" | "striped" | "pointer" | "scrollable" | "stickyHeader"> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: Pick<{
|
|
121
|
+
}, "sort" | "error" | "items" | "loading" | "fixed" | "headers" | "loadingSkeleton" | "loadingLines" | "dense" | "striped" | "pointer" | "scrollable" | "stickyHeader" | "expandable"> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: Pick<{
|
|
97
122
|
props: Partial<{
|
|
98
123
|
sort: string[];
|
|
124
|
+
error: boolean;
|
|
99
125
|
items: T[];
|
|
100
126
|
loading: boolean;
|
|
101
127
|
fixed: boolean;
|
|
102
128
|
headers: TableHeader[];
|
|
129
|
+
loadingSkeleton: boolean;
|
|
130
|
+
loadingLines: string | number;
|
|
103
131
|
dense: boolean;
|
|
104
132
|
striped: boolean;
|
|
105
133
|
pointer: boolean;
|
|
106
134
|
scrollable: boolean;
|
|
107
135
|
stickyHeader: boolean;
|
|
136
|
+
expandable: boolean;
|
|
108
137
|
}> & Omit<{
|
|
109
138
|
readonly sort: string[];
|
|
139
|
+
readonly error: boolean;
|
|
110
140
|
readonly items: T[];
|
|
111
141
|
readonly loading: boolean;
|
|
112
142
|
readonly fixed: boolean;
|
|
113
143
|
readonly headers: TableHeader[];
|
|
144
|
+
readonly loadingSkeleton: boolean;
|
|
145
|
+
readonly loadingLines: string | number;
|
|
114
146
|
readonly dense: boolean;
|
|
115
147
|
readonly striped: boolean;
|
|
116
148
|
readonly pointer: boolean;
|
|
117
149
|
readonly scrollable: boolean;
|
|
118
150
|
readonly stickyHeader: boolean;
|
|
151
|
+
readonly expandable: boolean;
|
|
119
152
|
"onUpdate:sort"?: ((...args: any[]) => any) | undefined;
|
|
120
153
|
"onClick-row"?: ((...args: any[]) => any) | undefined;
|
|
121
154
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -132,6 +165,12 @@ declare const _default: <T>(__VLS_props: Partial<{
|
|
|
132
165
|
default: () => never[];
|
|
133
166
|
};
|
|
134
167
|
loading: BooleanConstructor;
|
|
168
|
+
loadingSkeleton: BooleanConstructor;
|
|
169
|
+
loadingLines: {
|
|
170
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
171
|
+
default: number;
|
|
172
|
+
};
|
|
173
|
+
error: BooleanConstructor;
|
|
135
174
|
dense: BooleanConstructor;
|
|
136
175
|
fixed: BooleanConstructor;
|
|
137
176
|
striped: BooleanConstructor;
|
|
@@ -144,39 +183,60 @@ declare const _default: <T>(__VLS_props: Partial<{
|
|
|
144
183
|
type: BooleanConstructor;
|
|
145
184
|
default: boolean;
|
|
146
185
|
};
|
|
186
|
+
expandable: BooleanConstructor;
|
|
147
187
|
}>> & {
|
|
148
188
|
"onUpdate:sort"?: ((...args: any[]) => any) | undefined;
|
|
149
189
|
"onClick-row"?: ((...args: any[]) => any) | undefined;
|
|
150
|
-
}, "sort" | "items" | "loading" | "fixed" | "headers" | "dense" | "striped" | "pointer" | "scrollable" | "stickyHeader">;
|
|
190
|
+
}, "sort" | "error" | "items" | "loading" | "fixed" | "headers" | "loadingSkeleton" | "loadingLines" | "dense" | "striped" | "pointer" | "scrollable" | "stickyHeader" | "expandable">;
|
|
151
191
|
expose(exposed: {}): void;
|
|
152
192
|
attrs: any;
|
|
153
193
|
slots: Partial<Record<string, (_: {
|
|
194
|
+
header: TableHeader;
|
|
195
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
196
|
+
item: number;
|
|
197
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
154
198
|
item: T;
|
|
155
|
-
}) => any
|
|
199
|
+
}) => any>> & {
|
|
200
|
+
title?(_: {}): any;
|
|
201
|
+
actions?(_: {}): any;
|
|
202
|
+
error?(_: {}): any;
|
|
203
|
+
empty?(_: {}): any;
|
|
204
|
+
"expanded-row"?(_: {
|
|
205
|
+
item: T;
|
|
206
|
+
}): any;
|
|
207
|
+
};
|
|
156
208
|
emit: (event: "update:sort" | "click-row", ...args: any[]) => void;
|
|
157
209
|
}, "emit" | "attrs" | "slots"> | undefined, __VLS_setup?: {
|
|
158
210
|
props: Partial<{
|
|
159
211
|
sort: string[];
|
|
212
|
+
error: boolean;
|
|
160
213
|
items: T[];
|
|
161
214
|
loading: boolean;
|
|
162
215
|
fixed: boolean;
|
|
163
216
|
headers: TableHeader[];
|
|
217
|
+
loadingSkeleton: boolean;
|
|
218
|
+
loadingLines: string | number;
|
|
164
219
|
dense: boolean;
|
|
165
220
|
striped: boolean;
|
|
166
221
|
pointer: boolean;
|
|
167
222
|
scrollable: boolean;
|
|
168
223
|
stickyHeader: boolean;
|
|
224
|
+
expandable: boolean;
|
|
169
225
|
}> & Omit<{
|
|
170
226
|
readonly sort: string[];
|
|
227
|
+
readonly error: boolean;
|
|
171
228
|
readonly items: T[];
|
|
172
229
|
readonly loading: boolean;
|
|
173
230
|
readonly fixed: boolean;
|
|
174
231
|
readonly headers: TableHeader[];
|
|
232
|
+
readonly loadingSkeleton: boolean;
|
|
233
|
+
readonly loadingLines: string | number;
|
|
175
234
|
readonly dense: boolean;
|
|
176
235
|
readonly striped: boolean;
|
|
177
236
|
readonly pointer: boolean;
|
|
178
237
|
readonly scrollable: boolean;
|
|
179
238
|
readonly stickyHeader: boolean;
|
|
239
|
+
readonly expandable: boolean;
|
|
180
240
|
"onUpdate:sort"?: ((...args: any[]) => any) | undefined;
|
|
181
241
|
"onClick-row"?: ((...args: any[]) => any) | undefined;
|
|
182
242
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -193,6 +253,12 @@ declare const _default: <T>(__VLS_props: Partial<{
|
|
|
193
253
|
default: () => never[];
|
|
194
254
|
};
|
|
195
255
|
loading: BooleanConstructor;
|
|
256
|
+
loadingSkeleton: BooleanConstructor;
|
|
257
|
+
loadingLines: {
|
|
258
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
259
|
+
default: number;
|
|
260
|
+
};
|
|
261
|
+
error: BooleanConstructor;
|
|
196
262
|
dense: BooleanConstructor;
|
|
197
263
|
fixed: BooleanConstructor;
|
|
198
264
|
striped: BooleanConstructor;
|
|
@@ -205,15 +271,28 @@ declare const _default: <T>(__VLS_props: Partial<{
|
|
|
205
271
|
type: BooleanConstructor;
|
|
206
272
|
default: boolean;
|
|
207
273
|
};
|
|
274
|
+
expandable: BooleanConstructor;
|
|
208
275
|
}>> & {
|
|
209
276
|
"onUpdate:sort"?: ((...args: any[]) => any) | undefined;
|
|
210
277
|
"onClick-row"?: ((...args: any[]) => any) | undefined;
|
|
211
|
-
}, "sort" | "items" | "loading" | "fixed" | "headers" | "dense" | "striped" | "pointer" | "scrollable" | "stickyHeader">;
|
|
278
|
+
}, "sort" | "error" | "items" | "loading" | "fixed" | "headers" | "loadingSkeleton" | "loadingLines" | "dense" | "striped" | "pointer" | "scrollable" | "stickyHeader" | "expandable">;
|
|
212
279
|
expose(exposed: {}): void;
|
|
213
280
|
attrs: any;
|
|
214
281
|
slots: Partial<Record<string, (_: {
|
|
282
|
+
header: TableHeader;
|
|
283
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
284
|
+
item: number;
|
|
285
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
215
286
|
item: T;
|
|
216
|
-
}) => any
|
|
287
|
+
}) => any>> & {
|
|
288
|
+
title?(_: {}): any;
|
|
289
|
+
actions?(_: {}): any;
|
|
290
|
+
error?(_: {}): any;
|
|
291
|
+
empty?(_: {}): any;
|
|
292
|
+
"expanded-row"?(_: {
|
|
293
|
+
item: T;
|
|
294
|
+
}): any;
|
|
295
|
+
};
|
|
217
296
|
emit: (event: "update:sort" | "click-row", ...args: any[]) => void;
|
|
218
297
|
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
219
298
|
[key: string]: any;
|
|
@@ -221,26 +300,34 @@ declare const _default: <T>(__VLS_props: Partial<{
|
|
|
221
300
|
__ctx?: {
|
|
222
301
|
props: Partial<{
|
|
223
302
|
sort: string[];
|
|
303
|
+
error: boolean;
|
|
224
304
|
items: T[];
|
|
225
305
|
loading: boolean;
|
|
226
306
|
fixed: boolean;
|
|
227
307
|
headers: TableHeader[];
|
|
308
|
+
loadingSkeleton: boolean;
|
|
309
|
+
loadingLines: string | number;
|
|
228
310
|
dense: boolean;
|
|
229
311
|
striped: boolean;
|
|
230
312
|
pointer: boolean;
|
|
231
313
|
scrollable: boolean;
|
|
232
314
|
stickyHeader: boolean;
|
|
315
|
+
expandable: boolean;
|
|
233
316
|
}> & Omit<{
|
|
234
317
|
readonly sort: string[];
|
|
318
|
+
readonly error: boolean;
|
|
235
319
|
readonly items: T[];
|
|
236
320
|
readonly loading: boolean;
|
|
237
321
|
readonly fixed: boolean;
|
|
238
322
|
readonly headers: TableHeader[];
|
|
323
|
+
readonly loadingSkeleton: boolean;
|
|
324
|
+
readonly loadingLines: string | number;
|
|
239
325
|
readonly dense: boolean;
|
|
240
326
|
readonly striped: boolean;
|
|
241
327
|
readonly pointer: boolean;
|
|
242
328
|
readonly scrollable: boolean;
|
|
243
329
|
readonly stickyHeader: boolean;
|
|
330
|
+
readonly expandable: boolean;
|
|
244
331
|
"onUpdate:sort"?: ((...args: any[]) => any) | undefined;
|
|
245
332
|
"onClick-row"?: ((...args: any[]) => any) | undefined;
|
|
246
333
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -257,6 +344,12 @@ declare const _default: <T>(__VLS_props: Partial<{
|
|
|
257
344
|
default: () => never[];
|
|
258
345
|
};
|
|
259
346
|
loading: BooleanConstructor;
|
|
347
|
+
loadingSkeleton: BooleanConstructor;
|
|
348
|
+
loadingLines: {
|
|
349
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
350
|
+
default: number;
|
|
351
|
+
};
|
|
352
|
+
error: BooleanConstructor;
|
|
260
353
|
dense: BooleanConstructor;
|
|
261
354
|
fixed: BooleanConstructor;
|
|
262
355
|
striped: BooleanConstructor;
|
|
@@ -269,15 +362,28 @@ declare const _default: <T>(__VLS_props: Partial<{
|
|
|
269
362
|
type: BooleanConstructor;
|
|
270
363
|
default: boolean;
|
|
271
364
|
};
|
|
365
|
+
expandable: BooleanConstructor;
|
|
272
366
|
}>> & {
|
|
273
367
|
"onUpdate:sort"?: ((...args: any[]) => any) | undefined;
|
|
274
368
|
"onClick-row"?: ((...args: any[]) => any) | undefined;
|
|
275
|
-
}, "sort" | "items" | "loading" | "fixed" | "headers" | "dense" | "striped" | "pointer" | "scrollable" | "stickyHeader">;
|
|
369
|
+
}, "sort" | "error" | "items" | "loading" | "fixed" | "headers" | "loadingSkeleton" | "loadingLines" | "dense" | "striped" | "pointer" | "scrollable" | "stickyHeader" | "expandable">;
|
|
276
370
|
expose(exposed: {}): void;
|
|
277
371
|
attrs: any;
|
|
278
372
|
slots: Partial<Record<string, (_: {
|
|
373
|
+
header: TableHeader;
|
|
374
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
375
|
+
item: number;
|
|
376
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
279
377
|
item: T;
|
|
280
|
-
}) => any
|
|
378
|
+
}) => any>> & {
|
|
379
|
+
title?(_: {}): any;
|
|
380
|
+
actions?(_: {}): any;
|
|
381
|
+
error?(_: {}): any;
|
|
382
|
+
empty?(_: {}): any;
|
|
383
|
+
"expanded-row"?(_: {
|
|
384
|
+
item: T;
|
|
385
|
+
}): any;
|
|
386
|
+
};
|
|
281
387
|
emit: (event: "update:sort" | "click-row", ...args: any[]) => void;
|
|
282
388
|
} | undefined;
|
|
283
389
|
};
|