@indielayer/ui 1.18.1 → 2.0.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/docs/assets/css/hljs.css +0 -1
- package/docs/assets/css/tailwind.css +35 -10
- package/docs/components/common/CodePreview.vue +1 -1
- package/docs/components/common/CodeSnippet.vue +30 -18
- package/docs/components/common/DocsHero.vue +3 -3
- package/docs/components/common/DocumentPage.vue +29 -27
- package/docs/components/common/ExampleBlocks.vue +147 -8
- package/docs/components/menu/DocsMenu.vue +3 -1
- package/docs/components/toolbar/PreToolbar.vue +1 -1
- package/docs/components/toolbar/Toolbar.vue +1 -1
- package/docs/components/toolbar/ToolbarSearch.vue +3 -3
- package/docs/main.ts +5 -0
- package/docs/pages/colors.vue +11 -19
- package/docs/pages/component/button/variants.vue +1 -1
- package/docs/pages/component/drawer/index.vue +1 -1
- package/docs/pages/component/empty/actions.vue +11 -0
- package/docs/pages/component/empty/bordered.vue +7 -0
- package/docs/pages/component/empty/index.vue +43 -0
- package/docs/pages/component/empty/usage.vue +6 -0
- package/docs/pages/component/form/usage.vue +36 -0
- package/docs/pages/component/formGroup/index.vue +1 -1
- package/docs/pages/component/icon/formats.vue +65 -0
- package/docs/pages/component/icon/index.vue +11 -4
- package/docs/pages/component/icon/usage.vue +52 -4
- package/docs/pages/component/image/index.vue +16 -2
- package/docs/pages/component/image/sizing.vue +42 -0
- package/docs/pages/component/image/states.vue +45 -0
- package/docs/pages/component/image/usage.vue +9 -6
- package/docs/pages/component/infiniteLoader/composable.vue +7 -5
- package/docs/pages/component/infiniteLoader/usage.vue +7 -5
- package/docs/pages/component/input/index.vue +1 -1
- package/docs/pages/component/input/variants.vue +11 -0
- package/docs/pages/component/inputGroup/index.vue +43 -0
- package/docs/pages/component/inputGroup/mixed.vue +18 -0
- package/docs/pages/component/inputGroup/usage.vue +20 -0
- package/docs/pages/component/inputGroup/validation.vue +33 -0
- package/docs/pages/component/radio/index.vue +23 -9
- package/docs/pages/component/radio/payment-method.vue +28 -0
- package/docs/pages/component/radio/radio-button-form-group.vue +28 -0
- package/docs/pages/component/radio/radio-button.vue +26 -0
- package/docs/pages/component/skeleton/usage.vue +1 -1
- package/docs/pages/component/stepper/index.vue +9 -2
- package/docs/pages/component/stepper/usage.vue +56 -12
- package/docs/pages/component/stepper/wizard.vue +126 -0
- package/docs/pages/component/table/index.vue +1 -1
- package/docs/pages/component/table/states.vue +5 -3
- package/docs/pages/component/table/virtual.vue +1 -1
- package/docs/pages/component/tooltip/content.vue +11 -0
- package/docs/pages/component/tooltip/index.vue +30 -2
- package/docs/pages/component/tooltip/placement.vue +18 -0
- package/docs/pages/component/tooltip/states.vue +5 -0
- package/docs/pages/component/tooltip/toggle-tip.vue +6 -0
- package/docs/pages/component/tooltip/usage.vue +8 -9
- package/docs/pages/component/virtualGrid/usage.vue +5 -2
- package/docs/pages/component/virtualList/dynamicHeight.vue +8 -8
- package/docs/pages/component/virtualList/usage.vue +5 -2
- package/docs/pages/index.vue +30 -33
- package/docs/search/components.json +1 -1
- package/docs/search/index.json +1 -1
- package/docs/utils/shikiHighlighter.ts +22 -0
- package/exports/nuxt.mjs +1 -1
- package/exports/nuxt.plugin.js +1 -0
- package/exports/tailwind.css +74 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +7 -8
- package/lib/_virtual/_rolldown/runtime.js +17 -0
- package/lib/common/colors.js +370 -19
- package/lib/common/icons.d.ts +1 -0
- package/lib/common/icons.js +4 -22
- package/lib/common/inputGroupRadius.d.ts +2 -0
- package/lib/common/inputGroupRadius.js +6 -0
- package/lib/common/props.d.ts +27 -0
- package/lib/common/props.js +18 -0
- package/lib/common/utils.js +17 -24
- package/lib/componentDefaults.d.ts +18 -0
- package/lib/components/accordion/Accordion.js +5 -0
- package/lib/components/accordion/Accordion.vue.d.ts +3 -4
- package/lib/components/accordion/Accordion.vue_vue_type_script_setup_true_lang.js +37 -0
- package/lib/components/accordion/AccordionItem.js +5 -0
- package/lib/components/accordion/AccordionItem.vue.d.ts +3 -4
- package/lib/components/accordion/AccordionItem.vue_vue_type_script_setup_true_lang.js +138 -0
- package/lib/components/accordion/theme/Accordion.base.theme.js +4 -8
- package/lib/components/accordion/theme/Accordion.carbon.theme.js +4 -4
- package/lib/components/accordion/theme/AccordionItem.base.theme.js +14 -16
- package/lib/components/accordion/theme/AccordionItem.carbon.theme.js +4 -4
- package/lib/components/alert/Alert.js +6 -0
- package/lib/components/alert/Alert.vue.d.ts +12 -16
- package/lib/components/alert/Alert.vue_vue_type_script_setup_true_lang.js +54 -0
- package/lib/components/alert/Alert.vue_vue_type_style_index_0_lang.module.js +6 -0
- package/lib/components/alert/theme/Alert.base.theme.js +38 -40
- package/lib/components/alert/theme/Alert.carbon.theme.js +38 -40
- package/lib/components/avatar/Avatar.js +6 -0
- package/lib/components/avatar/Avatar.vue.d.ts +6 -8
- package/lib/components/avatar/Avatar.vue_vue_type_script_setup_true_lang.js +66 -0
- package/lib/components/avatar/Avatar.vue_vue_type_style_index_0_lang.module.js +3 -0
- package/lib/components/avatar/theme/Avatar.base.theme.js +17 -21
- package/lib/components/avatar/theme/Avatar.carbon.theme.js +4 -4
- package/lib/components/badge/Badge.js +5 -0
- package/lib/components/badge/Badge.vue.d.ts +6 -8
- package/lib/components/badge/Badge.vue_vue_type_script_setup_true_lang.js +76 -0
- package/lib/components/badge/theme/Badge.base.theme.js +9 -11
- package/lib/components/badge/theme/Badge.carbon.theme.js +4 -4
- package/lib/components/breadcrumbs/Breadcrumbs.js +5 -0
- package/lib/components/breadcrumbs/Breadcrumbs.vue.d.ts +6 -8
- package/lib/components/breadcrumbs/Breadcrumbs.vue_vue_type_script_setup_true_lang.js +62 -0
- package/lib/components/breadcrumbs/theme/Breadcrumbs.base.theme.js +8 -10
- package/lib/components/breadcrumbs/theme/Breadcrumbs.carbon.theme.js +7 -9
- package/lib/components/button/Button.js +6 -0
- package/lib/components/button/Button.vue.d.ts +23 -28
- package/lib/components/button/Button.vue_vue_type_script_setup_true_lang.js +139 -0
- package/lib/components/button/Button.vue_vue_type_style_index_0_scoped_4402fde2_lang.module.js +6 -0
- package/lib/components/button/ButtonGroup.js +6 -0
- package/lib/components/button/ButtonGroup.vue.d.ts +21 -20
- package/lib/components/button/ButtonGroup.vue_vue_type_script_setup_true_lang.js +45 -0
- package/lib/components/button/ButtonGroup.vue_vue_type_style_index_0_lang.module.js +7 -0
- package/lib/components/button/theme/Button.base.theme.js +139 -140
- package/lib/components/button/theme/Button.carbon.theme.js +136 -137
- package/lib/components/button/theme/ButtonGroup.base.theme.js +4 -8
- package/lib/components/button/theme/ButtonGroup.carbon.theme.js +4 -8
- package/lib/components/card/Card.js +5 -0
- package/lib/components/card/Card.vue.d.ts +3 -4
- package/lib/components/card/Card.vue_vue_type_script_setup_true_lang.js +26 -0
- package/lib/components/card/theme/Card.base.theme.js +4 -8
- package/lib/components/card/theme/Card.carbon.theme.js +4 -4
- package/lib/components/carousel/Carousel.js +5 -0
- package/lib/components/carousel/Carousel.vue.d.ts +3 -4
- package/lib/components/carousel/Carousel.vue_vue_type_script_setup_true_lang.js +91 -0
- package/lib/components/carousel/CarouselSlide.js +6 -0
- package/lib/components/carousel/CarouselSlide.vue_vue_type_script_setup_true_lang.js +26 -0
- package/lib/components/carousel/CarouselSlide.vue_vue_type_style_index_0_scoped_e90d2127_lang.module.js +4 -0
- package/lib/components/carousel/theme/Carousel.base.theme.js +14 -16
- package/lib/components/carousel/theme/Carousel.carbon.theme.js +4 -4
- package/lib/components/carousel/theme/CarouselSlide.base.theme.js +4 -8
- package/lib/components/carousel/theme/CarouselSlide.carbon.theme.js +4 -4
- package/lib/components/checkbox/Checkbox.js +6 -0
- package/lib/components/checkbox/Checkbox.vue.d.ts +3 -4
- package/lib/components/checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +129 -0
- package/lib/components/checkbox/Checkbox.vue_vue_type_style_index_0_lang.module.js +4 -0
- package/lib/components/checkbox/theme/Checkbox.base.theme.js +58 -58
- package/lib/components/checkbox/theme/Checkbox.carbon.theme.js +58 -58
- package/lib/components/container/Container.js +5 -0
- package/lib/components/container/Container.vue_vue_type_script_setup_true_lang.js +28 -0
- package/lib/components/container/theme/Container.base.theme.js +7 -11
- package/lib/components/container/theme/Container.carbon.theme.js +4 -4
- package/lib/components/datepicker/Datepicker.js +6 -0
- package/lib/components/datepicker/Datepicker.vue.d.ts +9 -5
- package/lib/components/datepicker/Datepicker.vue_vue_type_script_setup_true_lang.js +638 -0
- package/lib/components/datepicker/theme/Datepicker.base.theme.js +26 -61
- package/lib/components/datepicker/theme/Datepicker.carbon.theme.js +4 -4
- package/lib/components/divider/Divider.js +5 -0
- package/lib/components/divider/Divider.vue.d.ts +4 -6
- package/lib/components/divider/Divider.vue_vue_type_script_setup_true_lang.js +43 -0
- package/lib/components/divider/theme/Divider.base.theme.js +8 -10
- package/lib/components/divider/theme/Divider.carbon.theme.js +4 -4
- package/lib/components/drawer/Drawer.js +5 -0
- package/lib/components/drawer/Drawer.vue_vue_type_script_setup_true_lang.js +149 -0
- package/lib/components/drawer/theme/Drawer.base.theme.js +7 -9
- package/lib/components/drawer/theme/Drawer.carbon.theme.js +4 -4
- package/lib/components/empty/Empty.js +5 -0
- package/lib/components/empty/Empty.vue.d.ts +62 -0
- package/lib/components/empty/Empty.vue_vue_type_script_setup_true_lang.js +67 -0
- package/lib/components/empty/index.d.ts +2 -0
- package/lib/components/empty/theme/Empty.base.theme.d.ts +3 -0
- package/lib/components/empty/theme/Empty.base.theme.js +20 -0
- package/lib/components/empty/theme/Empty.carbon.theme.d.ts +3 -0
- package/lib/components/empty/theme/Empty.carbon.theme.js +5 -0
- package/lib/components/form/Form.js +5 -0
- package/lib/components/form/Form.vue_vue_type_script_setup_true_lang.js +97 -0
- package/lib/components/form/theme/Form.base.theme.js +10 -12
- package/lib/components/form/theme/Form.carbon.theme.js +10 -12
- package/lib/components/formGroup/FormGroup.js +5 -0
- package/lib/components/formGroup/FormGroup.vue.d.ts +9 -2
- package/lib/components/formGroup/FormGroup.vue_vue_type_script_setup_true_lang.js +91 -0
- package/lib/components/formGroup/theme/FormGroup.base.theme.js +7 -11
- package/lib/components/formGroup/theme/FormGroup.carbon.theme.js +7 -11
- package/lib/components/icon/Icon.js +5 -0
- package/lib/components/icon/Icon.vue.d.ts +3 -4
- package/lib/components/icon/Icon.vue_vue_type_script_setup_true_lang.js +85 -0
- package/lib/components/icon/theme/Icon.base.theme.js +4 -11
- package/lib/components/icon/theme/Icon.carbon.theme.js +4 -11
- package/lib/components/image/Image.js +5 -0
- package/lib/components/image/Image.vue_vue_type_script_setup_true_lang.js +25 -0
- package/lib/components/image/theme/Image.base.theme.js +4 -8
- package/lib/components/image/theme/Image.carbon.theme.js +4 -4
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.js +128 -120
- package/lib/components/input/Input.js +5 -0
- package/lib/components/input/Input.vue.d.ts +17 -17
- package/lib/components/input/Input.vue_vue_type_script_setup_true_lang.js +238 -0
- package/lib/components/input/theme/Input.base.theme.js +22 -16
- package/lib/components/input/theme/Input.carbon.theme.js +21 -16
- package/lib/components/inputFooter/InputFooter.js +5 -0
- package/lib/components/inputFooter/InputFooter.vue.d.ts +4 -6
- package/lib/components/inputFooter/InputFooter.vue_vue_type_script_setup_true_lang.js +37 -0
- package/lib/components/inputFooter/theme/InputFooter.base.theme.js +10 -12
- package/lib/components/inputFooter/theme/InputFooter.carbon.theme.js +10 -12
- package/lib/components/inputGroup/InputGroup.js +5 -0
- package/lib/components/inputGroup/InputGroup.vue.d.ts +164 -0
- package/lib/components/inputGroup/InputGroup.vue_vue_type_script_setup_true_lang.js +120 -0
- package/lib/components/inputGroup/index.d.ts +2 -0
- package/lib/components/inputGroup/theme/InputGroup.base.theme.d.ts +3 -0
- package/lib/components/inputGroup/theme/InputGroup.base.theme.js +4 -0
- package/lib/components/inputGroup/theme/InputGroup.carbon.theme.d.ts +3 -0
- package/lib/components/inputGroup/theme/InputGroup.carbon.theme.js +5 -0
- package/lib/components/label/Label.js +5 -0
- package/lib/components/label/Label.vue.d.ts +8 -5
- package/lib/components/label/Label.vue_vue_type_script_setup_true_lang.js +59 -0
- package/lib/components/label/theme/Label.base.theme.js +13 -15
- package/lib/components/label/theme/Label.carbon.theme.js +10 -12
- package/lib/components/link/Link.js +6 -0
- package/lib/components/link/Link.vue.d.ts +9 -12
- package/lib/components/link/Link.vue_vue_type_script_setup_true_lang.js +47 -0
- package/lib/components/link/Link.vue_vue_type_style_index_0_scoped_8e0e4d08_lang.module.js +6 -0
- package/lib/components/link/theme/Link.base.theme.js +18 -24
- package/lib/components/link/theme/Link.carbon.theme.js +18 -24
- package/lib/components/loader/Loader.js +5 -0
- package/lib/components/loader/Loader.vue_vue_type_script_setup_true_lang.js +61 -0
- package/lib/components/loader/theme/Loader.base.theme.js +9 -11
- package/lib/components/loader/theme/Loader.carbon.theme.js +9 -11
- package/lib/components/menu/Menu.js +5 -0
- package/lib/components/menu/Menu.vue.d.ts +6 -8
- package/lib/components/menu/Menu.vue_vue_type_script_setup_true_lang.js +178 -0
- package/lib/components/menu/MenuItem.js +6 -0
- package/lib/components/menu/MenuItem.vue.d.ts +6 -8
- package/lib/components/menu/MenuItem.vue_vue_type_script_setup_true_lang.js +149 -0
- package/lib/components/menu/MenuItem.vue_vue_type_style_index_0_scoped_2a6b7341_lang.module.js +7 -0
- package/lib/components/menu/theme/Menu.base.theme.js +4 -8
- package/lib/components/menu/theme/Menu.carbon.theme.js +4 -4
- package/lib/components/menu/theme/MenuItem.base.theme.js +71 -75
- package/lib/components/menu/theme/MenuItem.carbon.theme.js +4 -4
- package/lib/components/modal/Modal.js +5 -0
- package/lib/components/modal/Modal.vue_vue_type_script_setup_true_lang.js +194 -0
- package/lib/components/modal/theme/Modal.base.theme.js +25 -27
- package/lib/components/modal/theme/Modal.carbon.theme.js +27 -29
- package/lib/components/notifications/Notifications.js +5 -0
- package/lib/components/notifications/Notifications.vue_vue_type_script_setup_true_lang.js +234 -0
- package/lib/components/notifications/theme/Notifications.base.theme.js +8 -10
- package/lib/components/notifications/theme/Notifications.carbon.theme.js +8 -10
- package/lib/components/pagination/Pagination.js +5 -0
- package/lib/components/pagination/Pagination.vue.d.ts +3 -4
- package/lib/components/pagination/Pagination.vue_vue_type_script_setup_true_lang.js +152 -0
- package/lib/components/pagination/PaginationItem.js +5 -0
- package/lib/components/pagination/PaginationItem.vue.d.ts +3 -4
- package/lib/components/pagination/PaginationItem.vue_vue_type_script_setup_true_lang.js +44 -0
- package/lib/components/pagination/theme/Pagination.base.theme.js +12 -12
- package/lib/components/pagination/theme/Pagination.carbon.theme.js +4 -4
- package/lib/components/pagination/theme/PaginationItem.base.theme.js +4 -8
- package/lib/components/pagination/theme/PaginationItem.carbon.theme.js +4 -4
- package/lib/components/popover/Popover.js +6 -0
- package/lib/components/popover/Popover.vue_vue_type_script_setup_true_lang.js +189 -0
- package/lib/components/popover/PopoverContainer.js +5 -0
- package/lib/components/popover/PopoverContainer.vue_vue_type_script_setup_true_lang.js +22 -0
- package/lib/components/popover/theme/Popover.base.theme.js +7 -9
- package/lib/components/popover/theme/Popover.carbon.theme.js +4 -4
- package/lib/components/popover/theme/PopoverContainer.base.theme.js +4 -8
- package/lib/components/popover/theme/PopoverContainer.carbon.theme.js +4 -8
- package/lib/components/progress/Progress.js +5 -0
- package/lib/components/progress/Progress.vue.d.ts +6 -8
- package/lib/components/progress/Progress.vue_vue_type_script_setup_true_lang.js +38 -0
- package/lib/components/progress/theme/Progress.base.theme.js +13 -17
- package/lib/components/progress/theme/Progress.carbon.theme.js +4 -4
- package/lib/components/qrCode/QrCode.js +5 -0
- package/lib/components/qrCode/QrCode.vue_vue_type_script_setup_true_lang.js +79 -0
- package/lib/components/qrCode/qrcodegen.js +766 -571
- package/lib/components/qrCode/theme/QrCode.base.theme.js +4 -8
- package/lib/components/qrCode/theme/QrCode.carbon.theme.js +4 -4
- package/lib/components/radio/Radio.js +6 -0
- package/lib/components/radio/Radio.vue.d.ts +3 -4
- package/lib/components/radio/Radio.vue_vue_type_script_setup_true_lang.js +116 -0
- package/lib/components/radio/Radio.vue_vue_type_style_index_0_lang.module.js +7 -0
- package/lib/components/radio/theme/Radio.base.theme.js +69 -69
- package/lib/components/radio/theme/Radio.carbon.theme.js +63 -63
- package/lib/components/radioButton/RadioButton.js +6 -0
- package/lib/components/radioButton/RadioButton.vue.d.ts +182 -0
- package/lib/components/radioButton/RadioButton.vue_vue_type_script_setup_true_lang.js +83 -0
- package/lib/components/radioButton/RadioButton.vue_vue_type_style_index_0_lang.module.js +6 -0
- package/lib/components/radioButton/index.d.ts +2 -0
- package/lib/components/radioButton/theme/RadioButton.base.theme.d.ts +3 -0
- package/lib/components/radioButton/theme/RadioButton.base.theme.js +110 -0
- package/lib/components/radioButton/theme/RadioButton.carbon.theme.d.ts +3 -0
- package/lib/components/radioButton/theme/RadioButton.carbon.theme.js +15 -0
- package/lib/components/scroll/Scroll.js +6 -0
- package/lib/components/scroll/Scroll.vue.d.ts +9 -12
- package/lib/components/scroll/Scroll.vue_vue_type_script_setup_true_lang.js +48 -0
- package/lib/components/scroll/Scroll.vue_vue_type_style_index_0_lang.module.js +12 -0
- package/lib/components/scroll/theme/Scroll.base.theme.js +4 -8
- package/lib/components/scroll/theme/Scroll.carbon.theme.js +4 -4
- package/lib/components/select/Select.js +5 -0
- package/lib/components/select/Select.vue.d.ts +81 -239
- package/lib/components/select/Select.vue_vue_type_script_setup_true_lang.js +548 -0
- package/lib/components/select/theme/Select.base.theme.js +26 -25
- package/lib/components/select/theme/Select.carbon.theme.js +23 -23
- package/lib/components/skeleton/Skeleton.js +5 -0
- package/lib/components/skeleton/Skeleton.vue_vue_type_script_setup_true_lang.js +30 -0
- package/lib/components/skeleton/theme/Skeleton.base.theme.js +7 -11
- package/lib/components/skeleton/theme/Skeleton.carbon.theme.js +4 -4
- package/lib/components/slider/Slider.js +7 -0
- package/lib/components/slider/Slider.vue_vue_type_script_setup_true_lang.js +106 -0
- package/lib/components/slider/theme/Slider.base.theme.js +17 -19
- package/lib/components/slider/theme/Slider.carbon.theme.js +4 -4
- package/lib/components/spacer/Spacer.js +9 -11
- package/lib/components/spinner/Spinner.js +5 -0
- package/lib/components/spinner/Spinner.vue_vue_type_script_setup_true_lang.js +23 -0
- package/lib/components/stepper/Stepper.js +5 -0
- package/lib/components/stepper/Stepper.vue.d.ts +137 -32
- package/lib/components/stepper/Stepper.vue_vue_type_script_setup_true_lang.js +377 -0
- package/lib/components/stepper/index.d.ts +1 -1
- package/lib/components/stepper/theme/Stepper.base.theme.js +33 -20
- package/lib/components/stepper/theme/Stepper.carbon.theme.js +4 -4
- package/lib/components/tab/Tab.js +5 -0
- package/lib/components/tab/Tab.vue.d.ts +3 -4
- package/lib/components/tab/Tab.vue_vue_type_script_setup_true_lang.js +139 -0
- package/lib/components/tab/TabGroup.js +5 -0
- package/lib/components/tab/TabGroup.vue.d.ts +6 -8
- package/lib/components/tab/TabGroup.vue_vue_type_script_setup_true_lang.js +122 -0
- package/lib/components/tab/theme/Tab.base.theme.js +13 -15
- package/lib/components/tab/theme/Tab.carbon.theme.js +16 -18
- package/lib/components/tab/theme/TabGroup.base.theme.js +30 -30
- package/lib/components/tab/theme/TabGroup.carbon.theme.js +30 -30
- package/lib/components/table/Table.js +5 -0
- package/lib/components/table/Table.vue.d.ts +49 -304
- package/lib/components/table/Table.vue_vue_type_script_setup_true_lang.js +385 -0
- package/lib/components/table/TableBody.js +9 -14
- package/lib/components/table/TableCell.js +5 -0
- package/lib/components/table/TableCell.vue.d.ts +6 -8
- package/lib/components/table/TableCell.vue_vue_type_script_setup_true_lang.js +81 -0
- package/lib/components/table/TableHead.js +5 -0
- package/lib/components/table/TableHead.vue.d.ts +4 -6
- package/lib/components/table/TableHead.vue_vue_type_script_setup_true_lang.js +17 -0
- package/lib/components/table/TableHeader.js +5 -0
- package/lib/components/table/TableHeader.vue.d.ts +3 -4
- package/lib/components/table/TableHeader.vue_vue_type_script_setup_true_lang.js +78 -0
- package/lib/components/table/TableRow.js +5 -0
- package/lib/components/table/TableRow.vue.d.ts +9 -12
- package/lib/components/table/TableRow.vue_vue_type_script_setup_true_lang.js +39 -0
- package/lib/components/table/theme/Table.base.theme.js +11 -13
- package/lib/components/table/theme/Table.carbon.theme.js +11 -13
- package/lib/components/table/theme/TableCell.base.theme.js +7 -11
- package/lib/components/table/theme/TableCell.carbon.theme.js +7 -11
- package/lib/components/table/theme/TableHead.base.theme.js +10 -12
- package/lib/components/table/theme/TableHead.carbon.theme.js +10 -12
- package/lib/components/table/theme/TableHeader.base.theme.js +14 -16
- package/lib/components/table/theme/TableHeader.carbon.theme.js +10 -12
- package/lib/components/table/theme/TableRow.base.theme.js +7 -11
- package/lib/components/table/theme/TableRow.carbon.theme.js +7 -11
- package/lib/components/tag/Tag.js +5 -0
- package/lib/components/tag/Tag.vue.d.ts +12 -16
- package/lib/components/tag/Tag.vue_vue_type_script_setup_true_lang.js +62 -0
- package/lib/components/tag/theme/Tag.base.theme.js +21 -23
- package/lib/components/tag/theme/Tag.carbon.theme.js +21 -23
- package/lib/components/textarea/Textarea.js +5 -0
- package/lib/components/textarea/Textarea.vue.d.ts +26 -29
- package/lib/components/textarea/Textarea.vue_vue_type_script_setup_true_lang.js +197 -0
- package/lib/components/textarea/theme/Textarea.base.theme.js +17 -13
- package/lib/components/textarea/theme/Textarea.carbon.theme.js +16 -13
- package/lib/components/themeProvider/ThemeProvider.js +5 -0
- package/lib/components/themeProvider/ThemeProvider.vue_vue_type_script_setup_true_lang.js +15 -0
- package/lib/components/toggle/Toggle.js +5 -0
- package/lib/components/toggle/Toggle.vue.d.ts +3 -4
- package/lib/components/toggle/Toggle.vue_vue_type_script_setup_true_lang.js +101 -0
- package/lib/components/toggle/theme/Toggle.base.theme.js +23 -28
- package/lib/components/toggle/theme/Toggle.carbon.theme.js +4 -4
- package/lib/components/tooltip/ToggleTip.js +5 -0
- package/lib/components/tooltip/ToggleTip.vue_vue_type_script_setup_true_lang.js +25 -0
- package/lib/components/tooltip/Tooltip.js +5 -0
- package/lib/components/tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +105 -0
- package/lib/components/tooltip/theme/Tooltip.base.theme.js +4 -8
- package/lib/components/tooltip/theme/Tooltip.carbon.theme.js +4 -4
- package/lib/components/upload/Upload.js +5 -0
- package/lib/components/upload/Upload.vue.d.ts +23 -9
- package/lib/components/upload/Upload.vue_vue_type_script_setup_true_lang.js +261 -0
- package/lib/components/upload/theme/Upload.base.theme.js +4 -8
- package/lib/components/upload/theme/Upload.carbon.theme.js +4 -4
- package/lib/composables/index.d.ts +1 -0
- package/lib/composables/keys.d.ts +2 -0
- package/lib/composables/keys.js +4 -12
- package/lib/composables/resolveComponentDefaults.d.ts +4 -0
- package/lib/composables/resolveComponentDefaults.js +15 -0
- package/lib/composables/useCSS.js +29 -25
- package/lib/composables/useColors.js +44 -51
- package/lib/composables/useCommon.js +15 -17
- package/lib/composables/useFocusTrap.js +50 -53
- package/lib/composables/useInputtable.d.ts +12 -2
- package/lib/composables/useInputtable.js +135 -113
- package/lib/composables/useInteractive.js +14 -20
- package/lib/composables/useNotifications.js +8 -8
- package/lib/composables/useTheme.js +44 -56
- package/lib/composables/useVirtualList.d.ts +1 -2
- package/lib/composables/useVirtualList.js +120 -115
- package/lib/create.d.ts +2 -0
- package/lib/create.js +21 -24
- package/lib/index.d.ts +1 -0
- package/lib/index.js +87 -169
- package/lib/index.umd.js +57 -41
- package/lib/install.js +14 -18
- package/lib/node_modules/.pnpm/@floating-ui_core@1.5.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +321 -489
- package/lib/node_modules/.pnpm/@floating-ui_dom@1.1.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.js +288 -215
- package/lib/node_modules/.pnpm/@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +99 -115
- package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.34_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +5380 -0
- package/lib/node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.34_typescript@5.2.2_/node_modules/@vueuse/core/index.js +407 -0
- package/lib/node_modules/.pnpm/@vueuse_shared@11.1.0_vue@3.5.34_typescript@5.2.2_/node_modules/@vueuse/shared/index.js +75 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/addLeadingZeros.js +5 -6
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.js +6 -6
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/formatters.js +378 -513
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/lightFormatters.js +42 -58
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/longFormatters.js +39 -51
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +7 -17
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.js +7 -10
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeInterval.js +10 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/protectedTokens.js +19 -17
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/add.js +10 -19
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addDays.js +8 -9
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addHours.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMilliseconds.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMonths.js +11 -20
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addQuarters.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addYears.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/compareAsc.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js +6 -9
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarDays.js +10 -15
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarYears.js +7 -12
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInYears.js +11 -16
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachDayOfInterval.js +14 -19
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachQuarterOfInterval.js +13 -19
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfQuarter.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfWeek.js +8 -10
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfYear.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/format.js +57 -58
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDay.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDayOfYear.js +9 -10
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDaysInMonth.js +8 -9
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDefaultOptions.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getHours.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISODay.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeek.js +10 -11
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeekYear.js +13 -14
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMinutes.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMonth.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getQuarter.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getSeconds.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeek.js +10 -11
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeekYear.js +14 -16
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getYear.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isAfter.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isBefore.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isDate.js +5 -6
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isEqual.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameQuarter.js +8 -13
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isValid.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +8 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +16 -17
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +19 -28
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -16
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +68 -69
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +31 -32
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -11
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.js +200 -153
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.js +123 -109
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js +17 -18
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/Parser.js +15 -21
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/Setter.js +29 -40
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/constants.js +29 -48
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +45 -48
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +45 -48
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js +63 -60
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +40 -50
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js +61 -44
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +43 -48
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js +24 -29
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +26 -20
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +14 -21
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +28 -31
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +30 -31
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +31 -32
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +29 -32
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +73 -98
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +27 -47
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +27 -47
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +39 -48
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +33 -39
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -73
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +38 -47
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +47 -68
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +22 -31
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +58 -70
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +57 -69
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +22 -31
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -73
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +58 -70
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +57 -69
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +14 -20
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +14 -20
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js +42 -48
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers.js +66 -66
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/utils.js +64 -93
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse.js +61 -88
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/set.js +9 -10
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setDay.js +9 -11
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setHours.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setISODay.js +9 -10
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setISOWeek.js +8 -9
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMilliseconds.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMinutes.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMonth.js +11 -12
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setSeconds.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setWeek.js +8 -9
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setYear.js +8 -9
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfDay.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeek.js +9 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeekYear.js +9 -10
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfMonth.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfQuarter.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js +8 -10
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeekYear.js +10 -12
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfYear.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/sub.js +9 -18
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subDays.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subMonths.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subYears.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/transpose.js +9 -16
- package/lib/node_modules/.pnpm/floating-vue@5.2.2_@nuxt_kit@4.4.6_magicast@0.5.3__vue@3.5.34_typescript@5.2.2_/node_modules/floating-vue/dist/floating-vue.js +1243 -0
- package/lib/node_modules/.pnpm/vue-demi@0.14.10_vue@3.5.34_typescript@5.2.2_/node_modules/vue-demi/lib/index.js +28 -0
- package/lib/nuxt.mjs +1 -1
- package/lib/nuxt.plugin.js +1 -0
- package/lib/tailwind.css +74 -0
- package/lib/theme.d.ts +4 -1
- package/lib/theme.js +12 -13
- package/lib/themes/base/components.d.ts +3 -0
- package/lib/themes/base/components.js +118 -108
- package/lib/themes/base/index.js +10 -10
- package/lib/themes/base/styles.d.ts +1 -1
- package/lib/themes/base/styles.js +4 -91
- package/lib/themes/carbon/components.d.ts +3 -0
- package/lib/themes/carbon/components.js +118 -108
- package/lib/themes/carbon/index.js +23 -13
- package/lib/themes/carbon/styles.d.ts +1 -1
- package/lib/themes/carbon/styles.js +4 -87
- package/lib/version.d.ts +1 -1
- package/lib/version.js +4 -4
- package/lib/virtual/components/infiniteLoader/InfiniteLoader.js +5 -0
- package/lib/virtual/components/infiniteLoader/InfiniteLoader.vue_vue_type_script_setup_true_lang.js +18 -0
- package/lib/virtual/components/virtualGrid/VirtualGrid.js +5 -0
- package/lib/virtual/components/virtualGrid/VirtualGrid.vue_vue_type_script_setup_true_lang.js +194 -0
- package/lib/virtual/components/virtualList/VirtualList.js +5 -0
- package/lib/virtual/components/virtualList/VirtualList.vue_vue_type_script_setup_true_lang.js +139 -0
- package/lib/virtual/components/virtualList/isDynamicRowHeight.js +5 -5
- package/lib/virtual/components/virtualList/useDynamicRowHeight.js +58 -67
- package/lib/virtual/composables/infinite-loader/scanForUnloadedIndices.js +26 -40
- package/lib/virtual/composables/infinite-loader/useInfiniteLoader.js +30 -41
- package/lib/virtual/core/createCachedBounds.js +40 -54
- package/lib/virtual/core/getEstimatedSize.js +11 -21
- package/lib/virtual/core/getOffsetForIndex.js +17 -39
- package/lib/virtual/core/getStartStopIndices.js +21 -30
- package/lib/virtual/core/useCachedBounds.js +10 -16
- package/lib/virtual/core/useIsRtl.js +10 -14
- package/lib/virtual/core/useItemSize.js +15 -26
- package/lib/virtual/core/useVirtualizer.js +145 -170
- package/lib/virtual/utils/adjustScrollOffsetForRtl.js +15 -23
- package/lib/virtual/utils/assert.js +5 -6
- package/lib/virtual/utils/getRTLOffsetType.js +12 -12
- package/lib/virtual/utils/getScrollbarSize.js +10 -10
- package/lib/virtual/utils/isRtl.js +10 -11
- package/lib/virtual/utils/parseNumericStyleValue.js +10 -14
- package/lib/virtual/utils/shallowCompare.js +9 -13
- package/package.json +20 -22
- package/src/common/__tests__/inputGroupRadius.spec.ts +14 -0
- package/src/common/icons.ts +1 -0
- package/src/common/inputGroupRadius.ts +11 -0
- package/src/common/props.ts +34 -0
- package/src/componentDefaults.ts +19 -0
- package/src/components/accordion/Accordion.vue +3 -1
- package/src/components/accordion/AccordionItem.vue +3 -1
- package/src/components/alert/Alert.vue +28 -24
- package/src/components/avatar/Avatar.vue +5 -3
- package/src/components/badge/Badge.vue +7 -3
- package/src/components/breadcrumbs/Breadcrumbs.vue +4 -2
- package/src/components/button/Button.vue +98 -55
- package/src/components/button/ButtonGroup.vue +23 -25
- package/src/components/button/theme/Button.base.theme.ts +7 -2
- package/src/components/button/theme/Button.carbon.theme.ts +8 -2
- package/src/components/card/Card.vue +3 -1
- package/src/components/card/theme/Card.base.theme.ts +1 -1
- package/src/components/carousel/Carousel.vue +3 -1
- package/src/components/carousel/CarouselSlide.vue +1 -1
- package/src/components/checkbox/Checkbox.vue +7 -7
- package/src/components/checkbox/theme/Checkbox.carbon.theme.ts +1 -1
- package/src/components/datepicker/Datepicker.vue +32 -10
- package/src/components/divider/Divider.vue +3 -2
- package/src/components/divider/theme/Divider.base.theme.ts +2 -2
- package/src/components/empty/Empty.vue +86 -0
- package/src/components/empty/__tests__/Empty.spec.ts +11 -0
- package/src/components/empty/index.ts +2 -0
- package/src/components/empty/theme/Empty.base.theme.ts +40 -0
- package/src/components/empty/theme/Empty.carbon.theme.ts +7 -0
- package/src/components/formGroup/FormGroup.vue +19 -7
- package/src/components/formGroup/__tests__/FormGroup.spec.ts +37 -2
- package/src/components/formGroup/theme/FormGroup.base.theme.ts +7 -3
- package/src/components/formGroup/theme/FormGroup.carbon.theme.ts +7 -3
- package/src/components/icon/Icon.vue +3 -1
- package/src/components/index.ts +3 -0
- package/src/components/input/Input.vue +114 -35
- package/src/components/input/__tests__/Input.spec.ts +28 -1
- package/src/components/input/theme/Input.base.theme.ts +10 -1
- package/src/components/input/theme/Input.carbon.theme.ts +5 -0
- package/src/components/inputFooter/InputFooter.vue +3 -1
- package/src/components/inputGroup/InputGroup.vue +185 -0
- package/src/components/inputGroup/__tests__/InputGroup.spec.ts +104 -0
- package/src/components/inputGroup/index.ts +2 -0
- package/src/components/inputGroup/theme/InputGroup.base.theme.ts +9 -0
- package/src/components/inputGroup/theme/InputGroup.carbon.theme.ts +7 -0
- package/src/components/label/Label.vue +23 -3
- package/src/components/label/theme/Label.base.theme.ts +2 -2
- package/src/components/label/theme/Label.carbon.theme.ts +2 -2
- package/src/components/link/Link.vue +34 -29
- package/src/components/menu/Menu.vue +4 -2
- package/src/components/menu/MenuItem.vue +39 -41
- package/src/components/pagination/Pagination.vue +3 -1
- package/src/components/pagination/PaginationItem.vue +3 -1
- package/src/components/popover/Popover.vue +12 -15
- package/src/components/progress/Progress.vue +4 -2
- package/src/components/radio/Radio.vue +27 -24
- package/src/components/radio/theme/Radio.base.theme.ts +1 -1
- package/src/components/radio/theme/Radio.carbon.theme.ts +1 -1
- package/src/components/radioButton/RadioButton.vue +154 -0
- package/src/components/radioButton/__tests__/RadioButton.spec.ts +48 -0
- package/src/components/radioButton/index.ts +2 -0
- package/src/components/radioButton/theme/RadioButton.base.theme.ts +155 -0
- package/src/components/radioButton/theme/RadioButton.carbon.theme.ts +31 -0
- package/src/components/scroll/Scroll.vue +6 -4
- package/src/components/select/Select.vue +57 -16
- package/src/components/select/theme/Select.base.theme.ts +7 -1
- package/src/components/select/theme/Select.carbon.theme.ts +2 -0
- package/src/components/slider/Slider.vue +19 -8
- package/src/components/spacer/Spacer.tsx +1 -1
- package/src/components/spacer/__tests__/Spacer.spec.ts +1 -1
- package/src/components/stepper/Stepper.vue +603 -80
- package/src/components/stepper/__tests__/Stepper.spec.ts +199 -5
- package/src/components/stepper/index.ts +4 -0
- package/src/components/stepper/theme/Stepper.base.theme.ts +49 -19
- package/src/components/tab/Tab.vue +6 -2
- package/src/components/tab/TabGroup.vue +8 -4
- package/src/components/table/Table.vue +31 -11
- package/src/components/table/TableCell.vue +4 -2
- package/src/components/table/TableHead.vue +3 -1
- package/src/components/table/TableHeader.vue +3 -1
- package/src/components/table/TableRow.vue +5 -3
- package/src/components/table/__tests__/Table.spec.ts +53 -0
- package/src/components/table/theme/Table.carbon.theme.ts +1 -1
- package/src/components/tag/Tag.vue +12 -8
- package/src/components/textarea/Textarea.vue +83 -19
- package/src/components/textarea/theme/Textarea.base.theme.ts +10 -1
- package/src/components/textarea/theme/Textarea.carbon.theme.ts +5 -0
- package/src/components/toggle/Toggle.vue +3 -1
- package/src/components/upload/Upload.vue +6 -2
- package/src/composables/__tests__/resolveComponentDefaults.spec.ts +139 -0
- package/src/composables/index.ts +1 -0
- package/src/composables/keys.ts +2 -0
- package/src/composables/resolveComponentDefaults.ts +33 -0
- package/src/composables/useInputtable.ts +56 -9
- package/src/composables/useTheme.ts +10 -3
- package/src/composables/useVirtualList.ts +1 -2
- package/src/create.ts +2 -0
- package/src/index.ts +1 -0
- package/src/theme.ts +6 -0
- package/src/themes/base/components.ts +3 -0
- package/src/themes/base/styles.ts +28 -20
- package/src/themes/carbon/components.ts +3 -0
- package/src/themes/carbon/styles.ts +25 -17
- package/src/version.ts +1 -1
- package/src/virtual/components/virtualList/VirtualList.test.ts +42 -4
- package/src/virtual/core/useVirtualizer.ts +18 -4
- package/docs/pages/component/radio/variants.vue +0 -39
- package/exports/tailwind.preset.js +0 -40
- package/lib/components/accordion/Accordion.vue.js +0 -40
- package/lib/components/accordion/Accordion.vue2.js +0 -4
- package/lib/components/accordion/AccordionItem.vue.js +0 -150
- package/lib/components/accordion/AccordionItem.vue2.js +0 -4
- package/lib/components/accordion/__tests__/Accordion.spec.d.ts +0 -1
- package/lib/components/alert/Alert.vue.js +0 -9
- package/lib/components/alert/Alert.vue2.js +0 -62
- package/lib/components/alert/Alert.vue3.js +0 -8
- package/lib/components/alert/__tests__/Alert.spec.d.ts +0 -1
- package/lib/components/avatar/Avatar.vue.js +0 -9
- package/lib/components/avatar/Avatar.vue2.js +0 -76
- package/lib/components/avatar/Avatar.vue3.js +0 -7
- package/lib/components/avatar/__tests__/Avatar.spec.d.ts +0 -1
- package/lib/components/badge/Badge.vue.js +0 -93
- package/lib/components/badge/Badge.vue2.js +0 -4
- package/lib/components/badge/__tests__/Badge.spec.d.ts +0 -1
- package/lib/components/breadcrumbs/Breadcrumbs.vue.js +0 -69
- package/lib/components/breadcrumbs/Breadcrumbs.vue2.js +0 -4
- package/lib/components/breadcrumbs/__tests__/Breadcrumbs.spec.d.ts +0 -1
- package/lib/components/button/Button.vue.js +0 -9
- package/lib/components/button/Button.vue2.js +0 -117
- package/lib/components/button/Button.vue3.js +0 -8
- package/lib/components/button/ButtonGroup.vue.js +0 -9
- package/lib/components/button/ButtonGroup.vue2.js +0 -53
- package/lib/components/button/ButtonGroup.vue3.js +0 -7
- package/lib/components/button/__tests__/ Button.spec.d.ts +0 -1
- package/lib/components/button/__tests__/ ButtonGroup.spec.d.ts +0 -1
- package/lib/components/card/Card.vue.js +0 -30
- package/lib/components/card/Card.vue2.js +0 -4
- package/lib/components/card/__tests__/Card.spec.d.ts +0 -1
- package/lib/components/carousel/Carousel.vue.js +0 -97
- package/lib/components/carousel/Carousel.vue2.js +0 -4
- package/lib/components/carousel/CarouselSlide.vue.js +0 -9
- package/lib/components/carousel/CarouselSlide.vue2.js +0 -32
- package/lib/components/carousel/CarouselSlide.vue3.js +0 -6
- package/lib/components/carousel/__tests__/Carousel.spec.d.ts +0 -1
- package/lib/components/checkbox/Checkbox.vue.js +0 -9
- package/lib/components/checkbox/Checkbox.vue2.js +0 -143
- package/lib/components/checkbox/Checkbox.vue3.js +0 -6
- package/lib/components/checkbox/__tests__/Checkbox.spec.d.ts +0 -1
- package/lib/components/container/Container.vue.js +0 -33
- package/lib/components/container/Container.vue2.js +0 -4
- package/lib/components/container/__tests__/Container.spec.d.ts +0 -1
- package/lib/components/datepicker/Datepicker.vue.js +0 -309
- package/lib/components/datepicker/Datepicker.vue2.js +0 -4
- package/lib/components/datepicker/Datepicker.vue3.js +0 -5
- package/lib/components/datepicker/__tests__/Datepicker.spec.d.ts +0 -1
- package/lib/components/divider/Divider.vue.js +0 -52
- package/lib/components/divider/Divider.vue2.js +0 -4
- package/lib/components/divider/__tests__/Divider.spec.d.ts +0 -1
- package/lib/components/drawer/Drawer.vue.js +0 -160
- package/lib/components/drawer/Drawer.vue2.js +0 -4
- package/lib/components/drawer/__tests__/Drawer.spec.d.ts +0 -1
- package/lib/components/form/Form.vue.js +0 -111
- package/lib/components/form/Form.vue2.js +0 -4
- package/lib/components/form/__tests__/Form.spec.d.ts +0 -1
- package/lib/components/formGroup/FormGroup.vue.js +0 -91
- package/lib/components/formGroup/FormGroup.vue2.js +0 -4
- package/lib/components/formGroup/__tests__/FormGroup.spec.d.ts +0 -1
- package/lib/components/icon/Icon.vue.js +0 -73
- package/lib/components/icon/Icon.vue2.js +0 -4
- package/lib/components/icon/__tests__/Icon.spec.d.ts +0 -1
- package/lib/components/image/Image.vue.js +0 -31
- package/lib/components/image/Image.vue2.js +0 -4
- package/lib/components/image/__tests__/Image.spec.d.ts +0 -1
- package/lib/components/input/Input.vue.js +0 -164
- package/lib/components/input/Input.vue2.js +0 -4
- package/lib/components/input/__tests__/Input.spec.d.ts +0 -1
- package/lib/components/inputFooter/InputFooter.vue.js +0 -43
- package/lib/components/inputFooter/InputFooter.vue2.js +0 -4
- package/lib/components/inputFooter/__tests__/InputFooter.spec.d.ts +0 -1
- package/lib/components/label/Label.vue.js +0 -54
- package/lib/components/label/Label.vue2.js +0 -4
- package/lib/components/label/__tests__/Label.spec.d.ts +0 -1
- package/lib/components/link/Link.vue.js +0 -9
- package/lib/components/link/Link.vue2.js +0 -47
- package/lib/components/link/Link.vue3.js +0 -8
- package/lib/components/link/__tests__/Link.spec.d.ts +0 -1
- package/lib/components/loader/Loader.vue.js +0 -54
- package/lib/components/loader/Loader.vue2.js +0 -4
- package/lib/components/loader/__tests__/Loader.spec.d.ts +0 -1
- package/lib/components/menu/Menu.vue.js +0 -141
- package/lib/components/menu/Menu.vue2.js +0 -4
- package/lib/components/menu/MenuItem.vue.js +0 -9
- package/lib/components/menu/MenuItem.vue2.js +0 -164
- package/lib/components/menu/MenuItem.vue3.js +0 -7
- package/lib/components/menu/__tests__/Menu.spec.d.ts +0 -1
- package/lib/components/menu/__tests__/MenuItem.spec.d.ts +0 -1
- package/lib/components/modal/Modal.vue.js +0 -211
- package/lib/components/modal/Modal.vue2.js +0 -4
- package/lib/components/modal/__tests__/Modal.spec.d.ts +0 -1
- package/lib/components/notifications/Notifications.vue.js +0 -266
- package/lib/components/notifications/Notifications.vue2.js +0 -4
- package/lib/components/notifications/__tests__/Notifications.spec.d.ts +0 -1
- package/lib/components/pagination/Pagination.vue.js +0 -131
- package/lib/components/pagination/Pagination.vue2.js +0 -4
- package/lib/components/pagination/PaginationItem.vue.js +0 -47
- package/lib/components/pagination/PaginationItem.vue2.js +0 -4
- package/lib/components/pagination/__tests__/Pagination.spec.d.ts +0 -1
- package/lib/components/pagination/__tests__/PaginationItem.spec.d.ts +0 -1
- package/lib/components/popover/Popover.vue.js +0 -134
- package/lib/components/popover/Popover.vue2.js +0 -4
- package/lib/components/popover/Popover.vue3.js +0 -5
- package/lib/components/popover/PopoverContainer.vue.js +0 -29
- package/lib/components/popover/PopoverContainer.vue2.js +0 -4
- package/lib/components/popover/__tests__/Popover.spec.d.ts +0 -1
- package/lib/components/popover/__tests__/PopoverContainer.spec.d.ts +0 -1
- package/lib/components/progress/Progress.vue.js +0 -50
- package/lib/components/progress/Progress.vue2.js +0 -4
- package/lib/components/progress/__tests__/Progress.spec.d.ts +0 -1
- package/lib/components/qrCode/QrCode.vue.js +0 -93
- package/lib/components/qrCode/QrCode.vue2.js +0 -4
- package/lib/components/qrCode/__tests__/QrCode.spec.d.ts +0 -1
- package/lib/components/radio/Radio.vue.js +0 -9
- package/lib/components/radio/Radio.vue2.js +0 -132
- package/lib/components/radio/Radio.vue3.js +0 -10
- package/lib/components/radio/__tests__/Radio.spec.d.ts +0 -1
- package/lib/components/scroll/Scroll.vue.js +0 -9
- package/lib/components/scroll/Scroll.vue2.js +0 -63
- package/lib/components/scroll/Scroll.vue3.js +0 -17
- package/lib/components/scroll/__tests__/Scroll.spec.d.ts +0 -1
- package/lib/components/select/Select.vue.js +0 -696
- package/lib/components/select/Select.vue2.js +0 -4
- package/lib/components/select/__tests__/Select.spec.d.ts +0 -1
- package/lib/components/skeleton/Skeleton.vue.js +0 -39
- package/lib/components/skeleton/Skeleton.vue2.js +0 -4
- package/lib/components/skeleton/__tests__/Skeleton.spec.d.ts +0 -1
- package/lib/components/slider/Slider.vue.js +0 -7
- package/lib/components/slider/Slider.vue2.js +0 -103
- package/lib/components/slider/Slider.vue3.js +0 -4
- package/lib/components/slider/__tests__/Slider.spec.d.ts +0 -1
- package/lib/components/spacer/__tests__/Spacer.spec.d.ts +0 -1
- package/lib/components/spinner/Spinner.vue.js +0 -27
- package/lib/components/spinner/Spinner.vue2.js +0 -4
- package/lib/components/spinner/__tests__/Spinner.spec.d.ts +0 -1
- package/lib/components/stepper/Stepper.vue.js +0 -129
- package/lib/components/stepper/Stepper.vue2.js +0 -4
- package/lib/components/stepper/__tests__/Stepper.spec.d.ts +0 -1
- package/lib/components/tab/Tab.vue.js +0 -150
- package/lib/components/tab/Tab.vue2.js +0 -4
- package/lib/components/tab/TabGroup.vue.js +0 -135
- package/lib/components/tab/TabGroup.vue2.js +0 -4
- package/lib/components/tab/__tests__/Tab.spec.d.ts +0 -1
- package/lib/components/tab/__tests__/TabGroup.spec.d.ts +0 -1
- package/lib/components/table/Table.vue.js +0 -424
- package/lib/components/table/Table.vue2.js +0 -4
- package/lib/components/table/TableCell.vue.js +0 -65
- package/lib/components/table/TableCell.vue2.js +0 -4
- package/lib/components/table/TableHead.vue.js +0 -24
- package/lib/components/table/TableHead.vue2.js +0 -4
- package/lib/components/table/TableHeader.vue.js +0 -82
- package/lib/components/table/TableHeader.vue2.js +0 -4
- package/lib/components/table/TableRow.vue.js +0 -30
- package/lib/components/table/TableRow.vue2.js +0 -4
- package/lib/components/table/__tests__/Table.spec.d.ts +0 -1
- package/lib/components/tag/Tag.vue.js +0 -73
- package/lib/components/tag/Tag.vue2.js +0 -4
- package/lib/components/tag/__tests__/Tag.spec.d.ts +0 -1
- package/lib/components/textarea/Textarea.vue.js +0 -141
- package/lib/components/textarea/Textarea.vue2.js +0 -4
- package/lib/components/textarea/__tests__/Textarea.spec.d.ts +0 -1
- package/lib/components/themeProvider/ThemeProvider.vue.js +0 -18
- package/lib/components/themeProvider/ThemeProvider.vue2.js +0 -4
- package/lib/components/toggle/Toggle.vue.js +0 -108
- package/lib/components/toggle/Toggle.vue2.js +0 -4
- package/lib/components/toggle/__tests__/Toggle.spec.d.ts +0 -1
- package/lib/components/tooltip/ToggleTip.vue.js +0 -29
- package/lib/components/tooltip/ToggleTip.vue2.js +0 -4
- package/lib/components/tooltip/Tooltip.vue.js +0 -132
- package/lib/components/tooltip/Tooltip.vue2.js +0 -4
- package/lib/components/tooltip/__tests__/ToggleTip.spec.d.ts +0 -1
- package/lib/components/tooltip/__tests__/Tooltip.spec.d.ts +0 -1
- package/lib/components/upload/Upload.vue.js +0 -275
- package/lib/components/upload/Upload.vue2.js +0 -4
- package/lib/components/upload/__tests__/Upload.spec.d.ts +0 -1
- package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.10_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/main.css.js +0 -4
- package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.10_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +0 -5210
- package/lib/node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js +0 -501
- package/lib/node_modules/.pnpm/@vueuse_shared@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/shared/index.js +0 -96
- package/lib/node_modules/.pnpm/floating-vue@5.2.2_@nuxt_kit@3.10.1_rollup@3.29.4__vue@3.5.10_typescript@5.2.2_/node_modules/floating-vue/dist/floating-vue.js +0 -1371
- package/lib/tailwind.preset.js +0 -40
- package/lib/virtual/components/infiniteLoader/InfiniteLoader.vue.js +0 -21
- package/lib/virtual/components/infiniteLoader/InfiniteLoader.vue2.js +0 -4
- package/lib/virtual/components/virtualGrid/VirtualGrid.vue.js +0 -241
- package/lib/virtual/components/virtualGrid/VirtualGrid.vue2.js +0 -4
- package/lib/virtual/components/virtualList/VirtualList.vue.js +0 -159
- package/lib/virtual/components/virtualList/VirtualList.vue2.js +0 -4
|
@@ -1,571 +1,766 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
1
|
+
//#region src/components/qrCode/qrcodegen.ts
|
|
2
|
+
var e;
|
|
3
|
+
(function(t) {
|
|
4
|
+
class n {
|
|
5
|
+
version;
|
|
6
|
+
errorCorrectionLevel;
|
|
7
|
+
static encodeText(t, r) {
|
|
8
|
+
let i = e.QrSegment.makeSegments(t);
|
|
9
|
+
return n.encodeSegments(i, r);
|
|
10
|
+
}
|
|
11
|
+
static encodeBinary(t, r) {
|
|
12
|
+
let i = e.QrSegment.makeBytes(t);
|
|
13
|
+
return n.encodeSegments([i], r);
|
|
14
|
+
}
|
|
15
|
+
static encodeSegments(e, t, i = 1, s = 40, c = -1, l = !0) {
|
|
16
|
+
if (!(n.MIN_VERSION <= i && i <= s && s <= n.MAX_VERSION) || c < -1 || c > 7) throw RangeError("Invalid value");
|
|
17
|
+
let u, d;
|
|
18
|
+
for (u = i;; u++) {
|
|
19
|
+
let r = n.getNumDataCodewords(u, t) * 8, i = o.getTotalBits(e, u);
|
|
20
|
+
if (i <= r) {
|
|
21
|
+
d = i;
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
if (u >= s) throw RangeError("Data too long");
|
|
25
|
+
}
|
|
26
|
+
for (let e of [
|
|
27
|
+
n.Ecc.MEDIUM,
|
|
28
|
+
n.Ecc.QUARTILE,
|
|
29
|
+
n.Ecc.HIGH
|
|
30
|
+
]) l && d <= n.getNumDataCodewords(u, e) * 8 && (t = e);
|
|
31
|
+
let f = [];
|
|
32
|
+
for (let t of e) {
|
|
33
|
+
r(t.mode.modeBits, 4, f), r(t.numChars, t.mode.numCharCountBits(u), f);
|
|
34
|
+
for (let e of t.getData()) f.push(e);
|
|
35
|
+
}
|
|
36
|
+
a(f.length == d);
|
|
37
|
+
let p = n.getNumDataCodewords(u, t) * 8;
|
|
38
|
+
a(f.length <= p), r(0, Math.min(4, p - f.length), f), r(0, (8 - f.length % 8) % 8, f), a(f.length % 8 == 0);
|
|
39
|
+
for (let e = 236; f.length < p; e ^= 253) r(e, 8, f);
|
|
40
|
+
let m = [];
|
|
41
|
+
for (; m.length * 8 < f.length;) m.push(0);
|
|
42
|
+
return f.forEach((e, t) => m[t >>> 3] |= e << 7 - (t & 7)), new n(u, t, m, c);
|
|
43
|
+
}
|
|
44
|
+
size;
|
|
45
|
+
mask;
|
|
46
|
+
modules = [];
|
|
47
|
+
isFunction = [];
|
|
48
|
+
constructor(e, t, r, i) {
|
|
49
|
+
if (this.version = e, this.errorCorrectionLevel = t, e < n.MIN_VERSION || e > n.MAX_VERSION) throw RangeError("Version value out of range");
|
|
50
|
+
if (i < -1 || i > 7) throw RangeError("Mask value out of range");
|
|
51
|
+
this.size = e * 4 + 17;
|
|
52
|
+
let o = [];
|
|
53
|
+
for (let e = 0; e < this.size; e++) o.push(!1);
|
|
54
|
+
for (let e = 0; e < this.size; e++) this.modules.push(o.slice()), this.isFunction.push(o.slice());
|
|
55
|
+
this.drawFunctionPatterns();
|
|
56
|
+
let s = this.addEccAndInterleave(r);
|
|
57
|
+
if (this.drawCodewords(s), i == -1) {
|
|
58
|
+
let e = 1e9;
|
|
59
|
+
for (let t = 0; t < 8; t++) {
|
|
60
|
+
this.applyMask(t), this.drawFormatBits(t);
|
|
61
|
+
let n = this.getPenaltyScore();
|
|
62
|
+
n < e && (i = t, e = n), this.applyMask(t);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
a(0 <= i && i <= 7), this.mask = i, this.applyMask(i), this.drawFormatBits(i), this.isFunction = [];
|
|
66
|
+
}
|
|
67
|
+
getModule(e, t) {
|
|
68
|
+
return 0 <= e && e < this.size && 0 <= t && t < this.size && this.modules[t][e];
|
|
69
|
+
}
|
|
70
|
+
drawFunctionPatterns() {
|
|
71
|
+
for (let e = 0; e < this.size; e++) this.setFunctionModule(6, e, e % 2 == 0), this.setFunctionModule(e, 6, e % 2 == 0);
|
|
72
|
+
this.drawFinderPattern(3, 3), this.drawFinderPattern(this.size - 4, 3), this.drawFinderPattern(3, this.size - 4);
|
|
73
|
+
let e = this.getAlignmentPatternPositions(), t = e.length;
|
|
74
|
+
for (let n = 0; n < t; n++) for (let r = 0; r < t; r++) n == 0 && r == 0 || n == 0 && r == t - 1 || n == t - 1 && r == 0 || this.drawAlignmentPattern(e[n], e[r]);
|
|
75
|
+
this.drawFormatBits(0), this.drawVersion();
|
|
76
|
+
}
|
|
77
|
+
drawFormatBits(e) {
|
|
78
|
+
let t = this.errorCorrectionLevel.formatBits << 3 | e, n = t;
|
|
79
|
+
for (let e = 0; e < 10; e++) n = n << 1 ^ (n >>> 9) * 1335;
|
|
80
|
+
let r = (t << 10 | n) ^ 21522;
|
|
81
|
+
a(r >>> 15 == 0);
|
|
82
|
+
for (let e = 0; e <= 5; e++) this.setFunctionModule(8, e, i(r, e));
|
|
83
|
+
this.setFunctionModule(8, 7, i(r, 6)), this.setFunctionModule(8, 8, i(r, 7)), this.setFunctionModule(7, 8, i(r, 8));
|
|
84
|
+
for (let e = 9; e < 15; e++) this.setFunctionModule(14 - e, 8, i(r, e));
|
|
85
|
+
for (let e = 0; e < 8; e++) this.setFunctionModule(this.size - 1 - e, 8, i(r, e));
|
|
86
|
+
for (let e = 8; e < 15; e++) this.setFunctionModule(8, this.size - 15 + e, i(r, e));
|
|
87
|
+
this.setFunctionModule(8, this.size - 8, !0);
|
|
88
|
+
}
|
|
89
|
+
drawVersion() {
|
|
90
|
+
if (this.version < 7) return;
|
|
91
|
+
let e = this.version;
|
|
92
|
+
for (let t = 0; t < 12; t++) e = e << 1 ^ (e >>> 11) * 7973;
|
|
93
|
+
let t = this.version << 12 | e;
|
|
94
|
+
a(t >>> 18 == 0);
|
|
95
|
+
for (let e = 0; e < 18; e++) {
|
|
96
|
+
let n = i(t, e), r = this.size - 11 + e % 3, a = Math.floor(e / 3);
|
|
97
|
+
this.setFunctionModule(r, a, n), this.setFunctionModule(a, r, n);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
drawFinderPattern(e, t) {
|
|
101
|
+
for (let n = -4; n <= 4; n++) for (let r = -4; r <= 4; r++) {
|
|
102
|
+
let i = Math.max(Math.abs(r), Math.abs(n)), a = e + r, o = t + n;
|
|
103
|
+
0 <= a && a < this.size && 0 <= o && o < this.size && this.setFunctionModule(a, o, i != 2 && i != 4);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
drawAlignmentPattern(e, t) {
|
|
107
|
+
for (let n = -2; n <= 2; n++) for (let r = -2; r <= 2; r++) this.setFunctionModule(e + r, t + n, Math.max(Math.abs(r), Math.abs(n)) != 1);
|
|
108
|
+
}
|
|
109
|
+
setFunctionModule(e, t, n) {
|
|
110
|
+
this.modules[t][e] = n, this.isFunction[t][e] = !0;
|
|
111
|
+
}
|
|
112
|
+
addEccAndInterleave(e) {
|
|
113
|
+
let t = this.version, r = this.errorCorrectionLevel;
|
|
114
|
+
if (e.length != n.getNumDataCodewords(t, r)) throw RangeError("Invalid argument");
|
|
115
|
+
let i = n.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t], o = n.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t], s = Math.floor(n.getNumRawDataModules(t) / 8), c = i - s % i, l = Math.floor(s / i), u = [], d = n.reedSolomonComputeDivisor(o);
|
|
116
|
+
for (let t = 0, r = 0; t < i; t++) {
|
|
117
|
+
let i = e.slice(r, r + l - o + (t < c ? 0 : 1));
|
|
118
|
+
r += i.length;
|
|
119
|
+
let a = n.reedSolomonComputeRemainder(i, d);
|
|
120
|
+
t < c && i.push(0), u.push(i.concat(a));
|
|
121
|
+
}
|
|
122
|
+
let f = [];
|
|
123
|
+
for (let e = 0; e < u[0].length; e++) u.forEach((t, n) => {
|
|
124
|
+
(e != l - o || n >= c) && f.push(t[e]);
|
|
125
|
+
});
|
|
126
|
+
return a(f.length == s), f;
|
|
127
|
+
}
|
|
128
|
+
drawCodewords(e) {
|
|
129
|
+
if (e.length != Math.floor(n.getNumRawDataModules(this.version) / 8)) throw RangeError("Invalid argument");
|
|
130
|
+
let t = 0;
|
|
131
|
+
for (let n = this.size - 1; n >= 1; n -= 2) {
|
|
132
|
+
n == 6 && (n = 5);
|
|
133
|
+
for (let r = 0; r < this.size; r++) for (let a = 0; a < 2; a++) {
|
|
134
|
+
let o = n - a, s = n + 1 & 2 ? r : this.size - 1 - r;
|
|
135
|
+
!this.isFunction[s][o] && t < e.length * 8 && (this.modules[s][o] = i(e[t >>> 3], 7 - (t & 7)), t++);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
a(t == e.length * 8);
|
|
139
|
+
}
|
|
140
|
+
applyMask(e) {
|
|
141
|
+
if (e < 0 || e > 7) throw RangeError("Mask value out of range");
|
|
142
|
+
for (let t = 0; t < this.size; t++) for (let n = 0; n < this.size; n++) {
|
|
143
|
+
let r;
|
|
144
|
+
switch (e) {
|
|
145
|
+
case 0:
|
|
146
|
+
r = (n + t) % 2 == 0;
|
|
147
|
+
break;
|
|
148
|
+
case 1:
|
|
149
|
+
r = t % 2 == 0;
|
|
150
|
+
break;
|
|
151
|
+
case 2:
|
|
152
|
+
r = n % 3 == 0;
|
|
153
|
+
break;
|
|
154
|
+
case 3:
|
|
155
|
+
r = (n + t) % 3 == 0;
|
|
156
|
+
break;
|
|
157
|
+
case 4:
|
|
158
|
+
r = (Math.floor(n / 3) + Math.floor(t / 2)) % 2 == 0;
|
|
159
|
+
break;
|
|
160
|
+
case 5:
|
|
161
|
+
r = n * t % 2 + n * t % 3 == 0;
|
|
162
|
+
break;
|
|
163
|
+
case 6:
|
|
164
|
+
r = (n * t % 2 + n * t % 3) % 2 == 0;
|
|
165
|
+
break;
|
|
166
|
+
case 7:
|
|
167
|
+
r = ((n + t) % 2 + n * t % 3) % 2 == 0;
|
|
168
|
+
break;
|
|
169
|
+
default: throw Error("Unreachable");
|
|
170
|
+
}
|
|
171
|
+
!this.isFunction[t][n] && r && (this.modules[t][n] = !this.modules[t][n]);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
getPenaltyScore() {
|
|
175
|
+
let e = 0;
|
|
176
|
+
for (let t = 0; t < this.size; t++) {
|
|
177
|
+
let r = !1, i = 0, a = [
|
|
178
|
+
0,
|
|
179
|
+
0,
|
|
180
|
+
0,
|
|
181
|
+
0,
|
|
182
|
+
0,
|
|
183
|
+
0,
|
|
184
|
+
0
|
|
185
|
+
];
|
|
186
|
+
for (let o = 0; o < this.size; o++) this.modules[t][o] == r ? (i++, i == 5 ? e += n.PENALTY_N1 : i > 5 && e++) : (this.finderPenaltyAddHistory(i, a), r || (e += this.finderPenaltyCountPatterns(a) * n.PENALTY_N3), r = this.modules[t][o], i = 1);
|
|
187
|
+
e += this.finderPenaltyTerminateAndCount(r, i, a) * n.PENALTY_N3;
|
|
188
|
+
}
|
|
189
|
+
for (let t = 0; t < this.size; t++) {
|
|
190
|
+
let r = !1, i = 0, a = [
|
|
191
|
+
0,
|
|
192
|
+
0,
|
|
193
|
+
0,
|
|
194
|
+
0,
|
|
195
|
+
0,
|
|
196
|
+
0,
|
|
197
|
+
0
|
|
198
|
+
];
|
|
199
|
+
for (let o = 0; o < this.size; o++) this.modules[o][t] == r ? (i++, i == 5 ? e += n.PENALTY_N1 : i > 5 && e++) : (this.finderPenaltyAddHistory(i, a), r || (e += this.finderPenaltyCountPatterns(a) * n.PENALTY_N3), r = this.modules[o][t], i = 1);
|
|
200
|
+
e += this.finderPenaltyTerminateAndCount(r, i, a) * n.PENALTY_N3;
|
|
201
|
+
}
|
|
202
|
+
for (let t = 0; t < this.size - 1; t++) for (let r = 0; r < this.size - 1; r++) {
|
|
203
|
+
let i = this.modules[t][r];
|
|
204
|
+
i == this.modules[t][r + 1] && i == this.modules[t + 1][r] && i == this.modules[t + 1][r + 1] && (e += n.PENALTY_N2);
|
|
205
|
+
}
|
|
206
|
+
let t = 0;
|
|
207
|
+
for (let e of this.modules) t = e.reduce((e, t) => e + +!!t, t);
|
|
208
|
+
let r = this.size * this.size, i = Math.ceil(Math.abs(t * 20 - r * 10) / r) - 1;
|
|
209
|
+
return a(0 <= i && i <= 9), e += i * n.PENALTY_N4, a(0 <= e && e <= 2568888), e;
|
|
210
|
+
}
|
|
211
|
+
getAlignmentPatternPositions() {
|
|
212
|
+
if (this.version == 1) return [];
|
|
213
|
+
{
|
|
214
|
+
let e = Math.floor(this.version / 7) + 2, t = this.version == 32 ? 26 : Math.ceil((this.version * 4 + 4) / (e * 2 - 2)) * 2, n = [6];
|
|
215
|
+
for (let r = this.size - 7; n.length < e; r -= t) n.splice(1, 0, r);
|
|
216
|
+
return n;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
static getNumRawDataModules(e) {
|
|
220
|
+
if (e < n.MIN_VERSION || e > n.MAX_VERSION) throw RangeError("Version number out of range");
|
|
221
|
+
let t = (16 * e + 128) * e + 64;
|
|
222
|
+
if (e >= 2) {
|
|
223
|
+
let n = Math.floor(e / 7) + 2;
|
|
224
|
+
t -= (25 * n - 10) * n - 55, e >= 7 && (t -= 36);
|
|
225
|
+
}
|
|
226
|
+
return a(208 <= t && t <= 29648), t;
|
|
227
|
+
}
|
|
228
|
+
static getNumDataCodewords(e, t) {
|
|
229
|
+
return Math.floor(n.getNumRawDataModules(e) / 8) - n.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e] * n.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e];
|
|
230
|
+
}
|
|
231
|
+
static reedSolomonComputeDivisor(e) {
|
|
232
|
+
if (e < 1 || e > 255) throw RangeError("Degree out of range");
|
|
233
|
+
let t = [];
|
|
234
|
+
for (let n = 0; n < e - 1; n++) t.push(0);
|
|
235
|
+
t.push(1);
|
|
236
|
+
let r = 1;
|
|
237
|
+
for (let i = 0; i < e; i++) {
|
|
238
|
+
for (let e = 0; e < t.length; e++) t[e] = n.reedSolomonMultiply(t[e], r), e + 1 < t.length && (t[e] ^= t[e + 1]);
|
|
239
|
+
r = n.reedSolomonMultiply(r, 2);
|
|
240
|
+
}
|
|
241
|
+
return t;
|
|
242
|
+
}
|
|
243
|
+
static reedSolomonComputeRemainder(e, t) {
|
|
244
|
+
let r = t.map((e) => 0);
|
|
245
|
+
for (let i of e) {
|
|
246
|
+
let e = i ^ r.shift();
|
|
247
|
+
r.push(0), t.forEach((t, i) => r[i] ^= n.reedSolomonMultiply(t, e));
|
|
248
|
+
}
|
|
249
|
+
return r;
|
|
250
|
+
}
|
|
251
|
+
static reedSolomonMultiply(e, t) {
|
|
252
|
+
if (e >>> 8 || t >>> 8) throw RangeError("Byte out of range");
|
|
253
|
+
let n = 0;
|
|
254
|
+
for (let r = 7; r >= 0; r--) n = n << 1 ^ (n >>> 7) * 285, n ^= (t >>> r & 1) * e;
|
|
255
|
+
return a(n >>> 8 == 0), n;
|
|
256
|
+
}
|
|
257
|
+
finderPenaltyCountPatterns(e) {
|
|
258
|
+
let t = e[1];
|
|
259
|
+
a(t <= this.size * 3);
|
|
260
|
+
let n = t > 0 && e[2] == t && e[3] == t * 3 && e[4] == t && e[5] == t;
|
|
261
|
+
return (n && e[0] >= t * 4 && e[6] >= t ? 1 : 0) + (n && e[6] >= t * 4 && e[0] >= t ? 1 : 0);
|
|
262
|
+
}
|
|
263
|
+
finderPenaltyTerminateAndCount(e, t, n) {
|
|
264
|
+
return e && (this.finderPenaltyAddHistory(t, n), t = 0), t += this.size, this.finderPenaltyAddHistory(t, n), this.finderPenaltyCountPatterns(n);
|
|
265
|
+
}
|
|
266
|
+
finderPenaltyAddHistory(e, t) {
|
|
267
|
+
t[0] == 0 && (e += this.size), t.pop(), t.unshift(e);
|
|
268
|
+
}
|
|
269
|
+
static MIN_VERSION = 1;
|
|
270
|
+
static MAX_VERSION = 40;
|
|
271
|
+
static PENALTY_N1 = 3;
|
|
272
|
+
static PENALTY_N2 = 3;
|
|
273
|
+
static PENALTY_N3 = 40;
|
|
274
|
+
static PENALTY_N4 = 10;
|
|
275
|
+
static ECC_CODEWORDS_PER_BLOCK = [
|
|
276
|
+
[
|
|
277
|
+
-1,
|
|
278
|
+
7,
|
|
279
|
+
10,
|
|
280
|
+
15,
|
|
281
|
+
20,
|
|
282
|
+
26,
|
|
283
|
+
18,
|
|
284
|
+
20,
|
|
285
|
+
24,
|
|
286
|
+
30,
|
|
287
|
+
18,
|
|
288
|
+
20,
|
|
289
|
+
24,
|
|
290
|
+
26,
|
|
291
|
+
30,
|
|
292
|
+
22,
|
|
293
|
+
24,
|
|
294
|
+
28,
|
|
295
|
+
30,
|
|
296
|
+
28,
|
|
297
|
+
28,
|
|
298
|
+
28,
|
|
299
|
+
28,
|
|
300
|
+
30,
|
|
301
|
+
30,
|
|
302
|
+
26,
|
|
303
|
+
28,
|
|
304
|
+
30,
|
|
305
|
+
30,
|
|
306
|
+
30,
|
|
307
|
+
30,
|
|
308
|
+
30,
|
|
309
|
+
30,
|
|
310
|
+
30,
|
|
311
|
+
30,
|
|
312
|
+
30,
|
|
313
|
+
30,
|
|
314
|
+
30,
|
|
315
|
+
30,
|
|
316
|
+
30,
|
|
317
|
+
30
|
|
318
|
+
],
|
|
319
|
+
[
|
|
320
|
+
-1,
|
|
321
|
+
10,
|
|
322
|
+
16,
|
|
323
|
+
26,
|
|
324
|
+
18,
|
|
325
|
+
24,
|
|
326
|
+
16,
|
|
327
|
+
18,
|
|
328
|
+
22,
|
|
329
|
+
22,
|
|
330
|
+
26,
|
|
331
|
+
30,
|
|
332
|
+
22,
|
|
333
|
+
22,
|
|
334
|
+
24,
|
|
335
|
+
24,
|
|
336
|
+
28,
|
|
337
|
+
28,
|
|
338
|
+
26,
|
|
339
|
+
26,
|
|
340
|
+
26,
|
|
341
|
+
26,
|
|
342
|
+
28,
|
|
343
|
+
28,
|
|
344
|
+
28,
|
|
345
|
+
28,
|
|
346
|
+
28,
|
|
347
|
+
28,
|
|
348
|
+
28,
|
|
349
|
+
28,
|
|
350
|
+
28,
|
|
351
|
+
28,
|
|
352
|
+
28,
|
|
353
|
+
28,
|
|
354
|
+
28,
|
|
355
|
+
28,
|
|
356
|
+
28,
|
|
357
|
+
28,
|
|
358
|
+
28,
|
|
359
|
+
28,
|
|
360
|
+
28
|
|
361
|
+
],
|
|
362
|
+
[
|
|
363
|
+
-1,
|
|
364
|
+
13,
|
|
365
|
+
22,
|
|
366
|
+
18,
|
|
367
|
+
26,
|
|
368
|
+
18,
|
|
369
|
+
24,
|
|
370
|
+
18,
|
|
371
|
+
22,
|
|
372
|
+
20,
|
|
373
|
+
24,
|
|
374
|
+
28,
|
|
375
|
+
26,
|
|
376
|
+
24,
|
|
377
|
+
20,
|
|
378
|
+
30,
|
|
379
|
+
24,
|
|
380
|
+
28,
|
|
381
|
+
28,
|
|
382
|
+
26,
|
|
383
|
+
30,
|
|
384
|
+
28,
|
|
385
|
+
30,
|
|
386
|
+
30,
|
|
387
|
+
30,
|
|
388
|
+
30,
|
|
389
|
+
28,
|
|
390
|
+
30,
|
|
391
|
+
30,
|
|
392
|
+
30,
|
|
393
|
+
30,
|
|
394
|
+
30,
|
|
395
|
+
30,
|
|
396
|
+
30,
|
|
397
|
+
30,
|
|
398
|
+
30,
|
|
399
|
+
30,
|
|
400
|
+
30,
|
|
401
|
+
30,
|
|
402
|
+
30,
|
|
403
|
+
30
|
|
404
|
+
],
|
|
405
|
+
[
|
|
406
|
+
-1,
|
|
407
|
+
17,
|
|
408
|
+
28,
|
|
409
|
+
22,
|
|
410
|
+
16,
|
|
411
|
+
22,
|
|
412
|
+
28,
|
|
413
|
+
26,
|
|
414
|
+
26,
|
|
415
|
+
24,
|
|
416
|
+
28,
|
|
417
|
+
24,
|
|
418
|
+
28,
|
|
419
|
+
22,
|
|
420
|
+
24,
|
|
421
|
+
24,
|
|
422
|
+
30,
|
|
423
|
+
28,
|
|
424
|
+
28,
|
|
425
|
+
26,
|
|
426
|
+
28,
|
|
427
|
+
30,
|
|
428
|
+
24,
|
|
429
|
+
30,
|
|
430
|
+
30,
|
|
431
|
+
30,
|
|
432
|
+
30,
|
|
433
|
+
30,
|
|
434
|
+
30,
|
|
435
|
+
30,
|
|
436
|
+
30,
|
|
437
|
+
30,
|
|
438
|
+
30,
|
|
439
|
+
30,
|
|
440
|
+
30,
|
|
441
|
+
30,
|
|
442
|
+
30,
|
|
443
|
+
30,
|
|
444
|
+
30,
|
|
445
|
+
30,
|
|
446
|
+
30
|
|
447
|
+
]
|
|
448
|
+
];
|
|
449
|
+
static NUM_ERROR_CORRECTION_BLOCKS = [
|
|
450
|
+
[
|
|
451
|
+
-1,
|
|
452
|
+
1,
|
|
453
|
+
1,
|
|
454
|
+
1,
|
|
455
|
+
1,
|
|
456
|
+
1,
|
|
457
|
+
2,
|
|
458
|
+
2,
|
|
459
|
+
2,
|
|
460
|
+
2,
|
|
461
|
+
4,
|
|
462
|
+
4,
|
|
463
|
+
4,
|
|
464
|
+
4,
|
|
465
|
+
4,
|
|
466
|
+
6,
|
|
467
|
+
6,
|
|
468
|
+
6,
|
|
469
|
+
6,
|
|
470
|
+
7,
|
|
471
|
+
8,
|
|
472
|
+
8,
|
|
473
|
+
9,
|
|
474
|
+
9,
|
|
475
|
+
10,
|
|
476
|
+
12,
|
|
477
|
+
12,
|
|
478
|
+
12,
|
|
479
|
+
13,
|
|
480
|
+
14,
|
|
481
|
+
15,
|
|
482
|
+
16,
|
|
483
|
+
17,
|
|
484
|
+
18,
|
|
485
|
+
19,
|
|
486
|
+
19,
|
|
487
|
+
20,
|
|
488
|
+
21,
|
|
489
|
+
22,
|
|
490
|
+
24,
|
|
491
|
+
25
|
|
492
|
+
],
|
|
493
|
+
[
|
|
494
|
+
-1,
|
|
495
|
+
1,
|
|
496
|
+
1,
|
|
497
|
+
1,
|
|
498
|
+
2,
|
|
499
|
+
2,
|
|
500
|
+
4,
|
|
501
|
+
4,
|
|
502
|
+
4,
|
|
503
|
+
5,
|
|
504
|
+
5,
|
|
505
|
+
5,
|
|
506
|
+
8,
|
|
507
|
+
9,
|
|
508
|
+
9,
|
|
509
|
+
10,
|
|
510
|
+
10,
|
|
511
|
+
11,
|
|
512
|
+
13,
|
|
513
|
+
14,
|
|
514
|
+
16,
|
|
515
|
+
17,
|
|
516
|
+
17,
|
|
517
|
+
18,
|
|
518
|
+
20,
|
|
519
|
+
21,
|
|
520
|
+
23,
|
|
521
|
+
25,
|
|
522
|
+
26,
|
|
523
|
+
28,
|
|
524
|
+
29,
|
|
525
|
+
31,
|
|
526
|
+
33,
|
|
527
|
+
35,
|
|
528
|
+
37,
|
|
529
|
+
38,
|
|
530
|
+
40,
|
|
531
|
+
43,
|
|
532
|
+
45,
|
|
533
|
+
47,
|
|
534
|
+
49
|
|
535
|
+
],
|
|
536
|
+
[
|
|
537
|
+
-1,
|
|
538
|
+
1,
|
|
539
|
+
1,
|
|
540
|
+
2,
|
|
541
|
+
2,
|
|
542
|
+
4,
|
|
543
|
+
4,
|
|
544
|
+
6,
|
|
545
|
+
6,
|
|
546
|
+
8,
|
|
547
|
+
8,
|
|
548
|
+
8,
|
|
549
|
+
10,
|
|
550
|
+
12,
|
|
551
|
+
16,
|
|
552
|
+
12,
|
|
553
|
+
17,
|
|
554
|
+
16,
|
|
555
|
+
18,
|
|
556
|
+
21,
|
|
557
|
+
20,
|
|
558
|
+
23,
|
|
559
|
+
23,
|
|
560
|
+
25,
|
|
561
|
+
27,
|
|
562
|
+
29,
|
|
563
|
+
34,
|
|
564
|
+
34,
|
|
565
|
+
35,
|
|
566
|
+
38,
|
|
567
|
+
40,
|
|
568
|
+
43,
|
|
569
|
+
45,
|
|
570
|
+
48,
|
|
571
|
+
51,
|
|
572
|
+
53,
|
|
573
|
+
56,
|
|
574
|
+
59,
|
|
575
|
+
62,
|
|
576
|
+
65,
|
|
577
|
+
68
|
|
578
|
+
],
|
|
579
|
+
[
|
|
580
|
+
-1,
|
|
581
|
+
1,
|
|
582
|
+
1,
|
|
583
|
+
2,
|
|
584
|
+
4,
|
|
585
|
+
4,
|
|
586
|
+
4,
|
|
587
|
+
5,
|
|
588
|
+
6,
|
|
589
|
+
8,
|
|
590
|
+
8,
|
|
591
|
+
11,
|
|
592
|
+
11,
|
|
593
|
+
16,
|
|
594
|
+
16,
|
|
595
|
+
18,
|
|
596
|
+
16,
|
|
597
|
+
19,
|
|
598
|
+
21,
|
|
599
|
+
25,
|
|
600
|
+
25,
|
|
601
|
+
25,
|
|
602
|
+
34,
|
|
603
|
+
30,
|
|
604
|
+
32,
|
|
605
|
+
35,
|
|
606
|
+
37,
|
|
607
|
+
40,
|
|
608
|
+
42,
|
|
609
|
+
45,
|
|
610
|
+
48,
|
|
611
|
+
51,
|
|
612
|
+
54,
|
|
613
|
+
57,
|
|
614
|
+
60,
|
|
615
|
+
63,
|
|
616
|
+
66,
|
|
617
|
+
70,
|
|
618
|
+
74,
|
|
619
|
+
77,
|
|
620
|
+
81
|
|
621
|
+
]
|
|
622
|
+
];
|
|
623
|
+
}
|
|
624
|
+
t.QrCode = n;
|
|
625
|
+
function r(e, t, n) {
|
|
626
|
+
if (t < 0 || t > 31 || e >>> t) throw RangeError("Value out of range");
|
|
627
|
+
for (let r = t - 1; r >= 0; r--) n.push(e >>> r & 1);
|
|
628
|
+
}
|
|
629
|
+
function i(e, t) {
|
|
630
|
+
return (e >>> t & 1) != 0;
|
|
631
|
+
}
|
|
632
|
+
function a(e) {
|
|
633
|
+
if (!e) throw Error("Assertion error");
|
|
634
|
+
}
|
|
635
|
+
class o {
|
|
636
|
+
mode;
|
|
637
|
+
numChars;
|
|
638
|
+
bitData;
|
|
639
|
+
static makeBytes(e) {
|
|
640
|
+
let t = [];
|
|
641
|
+
for (let n of e) r(n, 8, t);
|
|
642
|
+
return new o(o.Mode.BYTE, e.length, t);
|
|
643
|
+
}
|
|
644
|
+
static makeNumeric(e) {
|
|
645
|
+
if (!o.isNumeric(e)) throw RangeError("String contains non-numeric characters");
|
|
646
|
+
let t = [];
|
|
647
|
+
for (let n = 0; n < e.length;) {
|
|
648
|
+
let i = Math.min(e.length - n, 3);
|
|
649
|
+
r(parseInt(e.substring(n, n + i), 10), i * 3 + 1, t), n += i;
|
|
650
|
+
}
|
|
651
|
+
return new o(o.Mode.NUMERIC, e.length, t);
|
|
652
|
+
}
|
|
653
|
+
static makeAlphanumeric(e) {
|
|
654
|
+
if (!o.isAlphanumeric(e)) throw RangeError("String contains unencodable characters in alphanumeric mode");
|
|
655
|
+
let t = [], n;
|
|
656
|
+
for (n = 0; n + 2 <= e.length; n += 2) {
|
|
657
|
+
let i = o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(n)) * 45;
|
|
658
|
+
i += o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(n + 1)), r(i, 11, t);
|
|
659
|
+
}
|
|
660
|
+
return n < e.length && r(o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(n)), 6, t), new o(o.Mode.ALPHANUMERIC, e.length, t);
|
|
661
|
+
}
|
|
662
|
+
static makeSegments(e) {
|
|
663
|
+
return e == "" ? [] : o.isNumeric(e) ? [o.makeNumeric(e)] : o.isAlphanumeric(e) ? [o.makeAlphanumeric(e)] : [o.makeBytes(o.toUtf8ByteArray(e))];
|
|
664
|
+
}
|
|
665
|
+
static makeEci(e) {
|
|
666
|
+
let t = [];
|
|
667
|
+
if (e < 0) throw RangeError("ECI assignment value out of range");
|
|
668
|
+
if (e < 128) r(e, 8, t);
|
|
669
|
+
else if (e < 16384) r(2, 2, t), r(e, 14, t);
|
|
670
|
+
else if (e < 1e6) r(6, 3, t), r(e, 21, t);
|
|
671
|
+
else throw RangeError("ECI assignment value out of range");
|
|
672
|
+
return new o(o.Mode.ECI, 0, t);
|
|
673
|
+
}
|
|
674
|
+
static isNumeric(e) {
|
|
675
|
+
return o.NUMERIC_REGEX.test(e);
|
|
676
|
+
}
|
|
677
|
+
static isAlphanumeric(e) {
|
|
678
|
+
return o.ALPHANUMERIC_REGEX.test(e);
|
|
679
|
+
}
|
|
680
|
+
constructor(e, t, n) {
|
|
681
|
+
if (this.mode = e, this.numChars = t, this.bitData = n, t < 0) throw RangeError("Invalid argument");
|
|
682
|
+
this.bitData = n.slice();
|
|
683
|
+
}
|
|
684
|
+
getData() {
|
|
685
|
+
return this.bitData.slice();
|
|
686
|
+
}
|
|
687
|
+
static getTotalBits(e, t) {
|
|
688
|
+
let n = 0;
|
|
689
|
+
for (let r of e) {
|
|
690
|
+
let e = r.mode.numCharCountBits(t);
|
|
691
|
+
if (r.numChars >= 1 << e) return Infinity;
|
|
692
|
+
n += 4 + e + r.bitData.length;
|
|
693
|
+
}
|
|
694
|
+
return n;
|
|
695
|
+
}
|
|
696
|
+
static toUtf8ByteArray(e) {
|
|
697
|
+
e = encodeURI(e);
|
|
698
|
+
let t = [];
|
|
699
|
+
for (let n = 0; n < e.length; n++) e.charAt(n) == "%" ? (t.push(parseInt(e.substring(n + 1, n + 3), 16)), n += 2) : t.push(e.charCodeAt(n));
|
|
700
|
+
return t;
|
|
701
|
+
}
|
|
702
|
+
static NUMERIC_REGEX = /^[0-9]*$/;
|
|
703
|
+
static ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/;
|
|
704
|
+
static ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
|
|
705
|
+
}
|
|
706
|
+
t.QrSegment = o;
|
|
707
|
+
})(e ||= {}), (function(e) {
|
|
708
|
+
let t;
|
|
709
|
+
(function(e) {
|
|
710
|
+
class t {
|
|
711
|
+
ordinal;
|
|
712
|
+
formatBits;
|
|
713
|
+
static LOW = new t(0, 1);
|
|
714
|
+
static MEDIUM = new t(1, 0);
|
|
715
|
+
static QUARTILE = new t(2, 3);
|
|
716
|
+
static HIGH = new t(3, 2);
|
|
717
|
+
constructor(e, t) {
|
|
718
|
+
this.ordinal = e, this.formatBits = t;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
e.Ecc = t;
|
|
722
|
+
})(t ||= e.QrCode ||= {});
|
|
723
|
+
})(e ||= {}), (function(e) {
|
|
724
|
+
let t;
|
|
725
|
+
(function(e) {
|
|
726
|
+
class t {
|
|
727
|
+
modeBits;
|
|
728
|
+
numBitsCharCount;
|
|
729
|
+
static NUMERIC = new t(1, [
|
|
730
|
+
10,
|
|
731
|
+
12,
|
|
732
|
+
14
|
|
733
|
+
]);
|
|
734
|
+
static ALPHANUMERIC = new t(2, [
|
|
735
|
+
9,
|
|
736
|
+
11,
|
|
737
|
+
13
|
|
738
|
+
]);
|
|
739
|
+
static BYTE = new t(4, [
|
|
740
|
+
8,
|
|
741
|
+
16,
|
|
742
|
+
16
|
|
743
|
+
]);
|
|
744
|
+
static KANJI = new t(8, [
|
|
745
|
+
8,
|
|
746
|
+
10,
|
|
747
|
+
12
|
|
748
|
+
]);
|
|
749
|
+
static ECI = new t(7, [
|
|
750
|
+
0,
|
|
751
|
+
0,
|
|
752
|
+
0
|
|
753
|
+
]);
|
|
754
|
+
constructor(e, t) {
|
|
755
|
+
this.modeBits = e, this.numBitsCharCount = t;
|
|
756
|
+
}
|
|
757
|
+
numCharCountBits(e) {
|
|
758
|
+
return this.numBitsCharCount[Math.floor((e + 7) / 17)];
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
e.Mode = t;
|
|
762
|
+
})(t ||= e.QrSegment ||= {});
|
|
763
|
+
})(e ||= {});
|
|
764
|
+
var t = e;
|
|
765
|
+
//#endregion
|
|
766
|
+
export { t as default };
|