huibo-ui 0.3.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 +21 -0
- package/dist/cjs/a11y-802de67a.js +123 -0
- package/dist/cjs/a11y-802de67a.js.map +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/click-outside-3fcc00dd.js +27 -0
- package/dist/cjs/click-outside-3fcc00dd.js.map +1 -0
- package/dist/cjs/date-helpers-904747ff.js +134 -0
- package/dist/cjs/date-helpers-904747ff.js.map +1 -0
- package/dist/cjs/hb-affix.cjs.entry.js +101 -0
- package/dist/cjs/hb-affix.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-alert.cjs.entry.js +47 -0
- package/dist/cjs/hb-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-anchor.cjs.entry.js +46 -0
- package/dist/cjs/hb-anchor.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-aside.cjs.entry.js +30 -0
- package/dist/cjs/hb-aside.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-avatar.cjs.entry.js +31 -0
- package/dist/cjs/hb-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-backtop.cjs.entry.js +100 -0
- package/dist/cjs/hb-backtop.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-badge.cjs.entry.js +35 -0
- package/dist/cjs/hb-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-breadcrumb-item.cjs.entry.js +25 -0
- package/dist/cjs/hb-breadcrumb-item.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-breadcrumb.cjs.entry.js +24 -0
- package/dist/cjs/hb-breadcrumb.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-button.cjs.entry.js +39 -0
- package/dist/cjs/hb-button.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-calendar.cjs.entry.js +90 -0
- package/dist/cjs/hb-calendar.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-card.cjs.entry.js +27 -0
- package/dist/cjs/hb-card.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-carousel.cjs.entry.js +150 -0
- package/dist/cjs/hb-carousel.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-cascader.cjs.entry.js +413 -0
- package/dist/cjs/hb-cascader.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-checkbox-group.cjs.entry.js +117 -0
- package/dist/cjs/hb-checkbox-group.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-checkbox.cjs.entry.js +130 -0
- package/dist/cjs/hb-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-collapse-item.cjs.entry.js +58 -0
- package/dist/cjs/hb-collapse-item.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-collapse.cjs.entry.js +41 -0
- package/dist/cjs/hb-collapse.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-color-picker-panel.cjs.entry.js +86 -0
- package/dist/cjs/hb-color-picker-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-color-picker.cjs.entry.js +265 -0
- package/dist/cjs/hb-color-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-config-provider.cjs.entry.js +44 -0
- package/dist/cjs/hb-config-provider.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-container.cjs.entry.js +30 -0
- package/dist/cjs/hb-container.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-date-picker-pane.cjs.entry.js +150 -0
- package/dist/cjs/hb-date-picker-pane.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-date-picker.cjs.entry.js +138 -0
- package/dist/cjs/hb-date-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-date-range-picker.cjs.entry.js +222 -0
- package/dist/cjs/hb-date-range-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-date-time-picker.cjs.entry.js +140 -0
- package/dist/cjs/hb-date-time-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-descriptions.cjs.entry.js +32 -0
- package/dist/cjs/hb-descriptions.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-dialog.cjs.entry.js +114 -0
- package/dist/cjs/hb-dialog.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-divider.cjs.entry.js +36 -0
- package/dist/cjs/hb-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-drawer.cjs.entry.js +89 -0
- package/dist/cjs/hb-drawer.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-dropdown.cjs.entry.js +80 -0
- package/dist/cjs/hb-dropdown.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-empty.cjs.entry.js +24 -0
- package/dist/cjs/hb-empty.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-float-button.cjs.entry.js +57 -0
- package/dist/cjs/hb-float-button.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-footer.cjs.entry.js +30 -0
- package/dist/cjs/hb-footer.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-form-item.cjs.entry.js +112 -0
- package/dist/cjs/hb-form-item.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-form.cjs.entry.js +70 -0
- package/dist/cjs/hb-form.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-header.cjs.entry.js +30 -0
- package/dist/cjs/hb-header.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-icon.cjs.entry.js +76 -0
- package/dist/cjs/hb-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-image-preview.cjs.entry.js +179 -0
- package/dist/cjs/hb-image-preview.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-image.cjs.entry.js +35 -0
- package/dist/cjs/hb-image.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-input-number.cjs.entry.js +169 -0
- package/dist/cjs/hb-input-number.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-input-tag.cjs.entry.js +145 -0
- package/dist/cjs/hb-input-tag.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-input.cjs.entry.js +252 -0
- package/dist/cjs/hb-input.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-layout.cjs.entry.js +78 -0
- package/dist/cjs/hb-layout.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-link.cjs.entry.js +67 -0
- package/dist/cjs/hb-link.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-loading.cjs.entry.js +32 -0
- package/dist/cjs/hb-loading.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-main.cjs.entry.js +22 -0
- package/dist/cjs/hb-main.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-menu-item.cjs.entry.js +50 -0
- package/dist/cjs/hb-menu-item.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-menu.cjs.entry.js +87 -0
- package/dist/cjs/hb-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-message.cjs.entry.js +48 -0
- package/dist/cjs/hb-message.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-notification.cjs.entry.js +67 -0
- package/dist/cjs/hb-notification.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-page-header.cjs.entry.js +37 -0
- package/dist/cjs/hb-page-header.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-pagination.cjs.entry.js +107 -0
- package/dist/cjs/hb-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-popconfirm.cjs.entry.js +51 -0
- package/dist/cjs/hb-popconfirm.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-popover.cjs.entry.js +59 -0
- package/dist/cjs/hb-popover.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-progress.cjs.entry.js +39 -0
- package/dist/cjs/hb-progress.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-radio.cjs.entry.js +119 -0
- package/dist/cjs/hb-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-rate.cjs.entry.js +132 -0
- package/dist/cjs/hb-rate.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-result.cjs.entry.js +57 -0
- package/dist/cjs/hb-result.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-row.cjs.entry.js +57 -0
- package/dist/cjs/hb-row.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-scrollbar.cjs.entry.js +204 -0
- package/dist/cjs/hb-scrollbar.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-segmented.cjs.entry.js +43 -0
- package/dist/cjs/hb-segmented.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-select.cjs.entry.js +262 -0
- package/dist/cjs/hb-select.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-skeleton.cjs.entry.js +53 -0
- package/dist/cjs/hb-skeleton.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-slider.cjs.entry.js +172 -0
- package/dist/cjs/hb-slider.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-space.cjs.entry.js +72 -0
- package/dist/cjs/hb-space.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-statistic.cjs.entry.js +66 -0
- package/dist/cjs/hb-statistic.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-step.cjs.entry.js +24 -0
- package/dist/cjs/hb-step.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-steps.cjs.entry.js +50 -0
- package/dist/cjs/hb-steps.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-sub-menu.cjs.entry.js +70 -0
- package/dist/cjs/hb-sub-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-switch.cjs.entry.js +92 -0
- package/dist/cjs/hb-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-tab-pane.cjs.entry.js +26 -0
- package/dist/cjs/hb-tab-pane.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-table.cjs.entry.js +370 -0
- package/dist/cjs/hb-table.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-tabs.cjs.entry.js +115 -0
- package/dist/cjs/hb-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-tag.cjs.entry.js +45 -0
- package/dist/cjs/hb-tag.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-text.cjs.entry.js +60 -0
- package/dist/cjs/hb-text.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-time-picker.cjs.entry.js +147 -0
- package/dist/cjs/hb-time-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-time-select.cjs.entry.js +145 -0
- package/dist/cjs/hb-time-select.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-timeline.cjs.entry.js +30 -0
- package/dist/cjs/hb-timeline.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-tooltip.cjs.entry.js +74 -0
- package/dist/cjs/hb-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-tour.cjs.entry.js +119 -0
- package/dist/cjs/hb-tour.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-transfer.cjs.entry.js +173 -0
- package/dist/cjs/hb-transfer.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-tree-select.cjs.entry.js +236 -0
- package/dist/cjs/hb-tree-select.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-tree.cjs.entry.js +313 -0
- package/dist/cjs/hb-tree.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-upload.cjs.entry.js +184 -0
- package/dist/cjs/hb-upload.cjs.entry.js.map +1 -0
- package/dist/cjs/hb-watermark.cjs.entry.js +59 -0
- package/dist/cjs/hb-watermark.cjs.entry.js.map +1 -0
- package/dist/cjs/huibo-ui.cjs.js +27 -0
- package/dist/cjs/huibo-ui.cjs.js.map +1 -0
- package/dist/cjs/index-5aa5c817.js +1915 -0
- package/dist/cjs/index-5aa5c817.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/popup-manager-cde53b2f.js +83 -0
- package/dist/cjs/popup-manager-cde53b2f.js.map +1 -0
- package/dist/collection/collection-manifest.json +97 -0
- package/dist/collection/components/Affix/Affix.js +197 -0
- package/dist/collection/components/Affix/Affix.js.map +1 -0
- package/dist/collection/components/Affix/affix.css +15 -0
- package/dist/collection/components/Alert/Alert.js +193 -0
- package/dist/collection/components/Alert/Alert.js.map +1 -0
- package/dist/collection/components/Alert/alert.css +20 -0
- package/dist/collection/components/Anchor/Anchor.js +142 -0
- package/dist/collection/components/Anchor/Anchor.js.map +1 -0
- package/dist/collection/components/Anchor/anchor.css +53 -0
- package/dist/collection/components/Avatar/Avatar.js +129 -0
- package/dist/collection/components/Avatar/Avatar.js.map +1 -0
- package/dist/collection/components/Avatar/avatar.css +9 -0
- package/dist/collection/components/Backtop/Backtop.js +236 -0
- package/dist/collection/components/Backtop/Backtop.js.map +1 -0
- package/dist/collection/components/Backtop/backtop.css +33 -0
- package/dist/collection/components/Badge/Badge.js +136 -0
- package/dist/collection/components/Badge/Badge.js.map +1 -0
- package/dist/collection/components/Badge/badge.css +17 -0
- package/dist/collection/components/Breadcrumb/Breadcrumb.js +49 -0
- package/dist/collection/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/collection/components/Breadcrumb/BreadcrumbItem.js +43 -0
- package/dist/collection/components/Breadcrumb/BreadcrumbItem.js.map +1 -0
- package/dist/collection/components/Breadcrumb/breadcrumb.css +10 -0
- package/dist/collection/components/Button/Button.js +144 -0
- package/dist/collection/components/Button/Button.js.map +1 -0
- package/dist/collection/components/Button/button.css +127 -0
- package/dist/collection/components/Calendar/Calendar.js +185 -0
- package/dist/collection/components/Calendar/Calendar.js.map +1 -0
- package/dist/collection/components/Calendar/calendar.css +101 -0
- package/dist/collection/components/Card/Card.js +67 -0
- package/dist/collection/components/Card/Card.js.map +1 -0
- package/dist/collection/components/Card/card.css +17 -0
- package/dist/collection/components/Carousel/Carousel.js +312 -0
- package/dist/collection/components/Carousel/Carousel.js.map +1 -0
- package/dist/collection/components/Carousel/carousel.css +96 -0
- package/dist/collection/components/Cascader/Cascader.js +773 -0
- package/dist/collection/components/Cascader/Cascader.js.map +1 -0
- package/dist/collection/components/Cascader/cascader.css +276 -0
- package/dist/collection/components/Checkbox/Checkbox.js +372 -0
- package/dist/collection/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/collection/components/Checkbox/CheckboxGroup.js +276 -0
- package/dist/collection/components/Checkbox/CheckboxGroup.js.map +1 -0
- package/dist/collection/components/Checkbox/checkbox-group.css +17 -0
- package/dist/collection/components/Checkbox/checkbox.css +179 -0
- package/dist/collection/components/Collapse/Collapse.js +63 -0
- package/dist/collection/components/Collapse/Collapse.js.map +1 -0
- package/dist/collection/components/Collapse/CollapseItem.js +142 -0
- package/dist/collection/components/Collapse/CollapseItem.js.map +1 -0
- package/dist/collection/components/Collapse/collapse.css +2 -0
- package/dist/collection/components/ColorPicker/ColorPicker.js +416 -0
- package/dist/collection/components/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/collection/components/ColorPicker/color-picker.css +203 -0
- package/dist/collection/components/ColorPickerPanel/ColorPickerPanel.js +195 -0
- package/dist/collection/components/ColorPickerPanel/ColorPickerPanel.js.map +1 -0
- package/dist/collection/components/ColorPickerPanel/color-picker-panel.css +127 -0
- package/dist/collection/components/ConfigProvider/ConfigProvider.js +103 -0
- package/dist/collection/components/ConfigProvider/ConfigProvider.js.map +1 -0
- package/dist/collection/components/Container/Aside.js +54 -0
- package/dist/collection/components/Container/Aside.js.map +1 -0
- package/dist/collection/components/Container/Container.js +58 -0
- package/dist/collection/components/Container/Container.js.map +1 -0
- package/dist/collection/components/Container/Footer.js +54 -0
- package/dist/collection/components/Container/Footer.js.map +1 -0
- package/dist/collection/components/Container/Header.js +54 -0
- package/dist/collection/components/Container/Header.js.map +1 -0
- package/dist/collection/components/Container/Main.js +23 -0
- package/dist/collection/components/Container/Main.js.map +1 -0
- package/dist/collection/components/Container/aside.css +15 -0
- package/dist/collection/components/Container/container.css +41 -0
- package/dist/collection/components/Container/footer.css +15 -0
- package/dist/collection/components/Container/header.css +15 -0
- package/dist/collection/components/Container/main.css +14 -0
- package/dist/collection/components/DatePicker/DatePicker.js +402 -0
- package/dist/collection/components/DatePicker/DatePicker.js.map +1 -0
- package/dist/collection/components/DatePicker/date-picker.css +209 -0
- package/dist/collection/components/DatePickerPane/DatePickerPane.js +276 -0
- package/dist/collection/components/DatePickerPane/DatePickerPane.js.map +1 -0
- package/dist/collection/components/DatePickerPane/date-picker-pane.css +140 -0
- package/dist/collection/components/DateRangePicker/DateRangePicker.js +438 -0
- package/dist/collection/components/DateRangePicker/DateRangePicker.js.map +1 -0
- package/dist/collection/components/DateRangePicker/date-range-picker.css +200 -0
- package/dist/collection/components/DateTimePicker/DateTimePicker.js +341 -0
- package/dist/collection/components/DateTimePicker/DateTimePicker.js.map +1 -0
- package/dist/collection/components/DateTimePicker/date-time-picker.css +168 -0
- package/dist/collection/components/Descriptions/Descriptions.js +141 -0
- package/dist/collection/components/Descriptions/Descriptions.js.map +1 -0
- package/dist/collection/components/Descriptions/descriptions.css +52 -0
- package/dist/collection/components/Dialog/Dialog.js +348 -0
- package/dist/collection/components/Dialog/Dialog.js.map +1 -0
- package/dist/collection/components/Dialog/dialog.css +113 -0
- package/dist/collection/components/Divider/Divider.js +102 -0
- package/dist/collection/components/Divider/Divider.js.map +1 -0
- package/dist/collection/components/Divider/divider.css +40 -0
- package/dist/collection/components/Drawer/Drawer.js +289 -0
- package/dist/collection/components/Drawer/Drawer.js.map +1 -0
- package/dist/collection/components/Drawer/drawer.css +18 -0
- package/dist/collection/components/Dropdown/Dropdown.js +172 -0
- package/dist/collection/components/Dropdown/Dropdown.js.map +1 -0
- package/dist/collection/components/Dropdown/dropdown.css +62 -0
- package/dist/collection/components/Empty/Empty.js +64 -0
- package/dist/collection/components/Empty/Empty.js.map +1 -0
- package/dist/collection/components/Empty/empty.css +6 -0
- package/dist/collection/components/FloatButton/FloatButton.js +223 -0
- package/dist/collection/components/FloatButton/FloatButton.js.map +1 -0
- package/dist/collection/components/FloatButton/float-button.css +101 -0
- package/dist/collection/components/Form/Form.js +271 -0
- package/dist/collection/components/Form/Form.js.map +1 -0
- package/dist/collection/components/Form/FormItem.js +300 -0
- package/dist/collection/components/Form/FormItem.js.map +1 -0
- package/dist/collection/components/Form/form-item.css +43 -0
- package/dist/collection/components/Form/form.css +15 -0
- package/dist/collection/components/Icon/Icon.js +162 -0
- package/dist/collection/components/Icon/Icon.js.map +1 -0
- package/dist/collection/components/Icon/icon.css +43 -0
- package/dist/collection/components/Image/Image.js +200 -0
- package/dist/collection/components/Image/Image.js.map +1 -0
- package/dist/collection/components/Image/image.css +7 -0
- package/dist/collection/components/ImagePreview/ImagePreview.js +371 -0
- package/dist/collection/components/ImagePreview/ImagePreview.js.map +1 -0
- package/dist/collection/components/ImagePreview/image-preview.css +125 -0
- package/dist/collection/components/Input/Input.js +717 -0
- package/dist/collection/components/Input/Input.js.map +1 -0
- package/dist/collection/components/Input/input.css +144 -0
- package/dist/collection/components/InputNumber/InputNumber.js +510 -0
- package/dist/collection/components/InputNumber/InputNumber.js.map +1 -0
- package/dist/collection/components/InputNumber/input-number.css +168 -0
- package/dist/collection/components/InputTag/InputTag.js +427 -0
- package/dist/collection/components/InputTag/InputTag.js.map +1 -0
- package/dist/collection/components/InputTag/input-tag.css +159 -0
- package/dist/collection/components/Layout/Layout.js +270 -0
- package/dist/collection/components/Layout/Layout.js.map +1 -0
- package/dist/collection/components/Layout/Row.js +147 -0
- package/dist/collection/components/Layout/Row.js.map +1 -0
- package/dist/collection/components/Layout/layout.css +89 -0
- package/dist/collection/components/Layout/row.css +56 -0
- package/dist/collection/components/Link/Link.js +220 -0
- package/dist/collection/components/Link/Link.js.map +1 -0
- package/dist/collection/components/Link/link.css +87 -0
- package/dist/collection/components/Loading/Loading.js +96 -0
- package/dist/collection/components/Loading/Loading.js.map +1 -0
- package/dist/collection/components/Loading/loading.css +58 -0
- package/dist/collection/components/Menu/Menu.js +246 -0
- package/dist/collection/components/Menu/Menu.js.map +1 -0
- package/dist/collection/components/Menu/MenuItem.js +128 -0
- package/dist/collection/components/Menu/MenuItem.js.map +1 -0
- package/dist/collection/components/Menu/SubMenu.js +140 -0
- package/dist/collection/components/Menu/SubMenu.js.map +1 -0
- package/dist/collection/components/Menu/menu.css +143 -0
- package/dist/collection/components/Message/Message.js +139 -0
- package/dist/collection/components/Message/Message.js.map +1 -0
- package/dist/collection/components/Message/show-message.js +24 -0
- package/dist/collection/components/Message/show-message.js.map +1 -0
- package/dist/collection/components/Notification/Notification.js +262 -0
- package/dist/collection/components/Notification/Notification.js.map +1 -0
- package/dist/collection/components/Notification/notification.css +160 -0
- package/dist/collection/components/Notification/notify.js +53 -0
- package/dist/collection/components/Notification/notify.js.map +1 -0
- package/dist/collection/components/PageHeader/PageHeader.js +139 -0
- package/dist/collection/components/PageHeader/PageHeader.js.map +1 -0
- package/dist/collection/components/PageHeader/page-header.css +39 -0
- package/dist/collection/components/Pagination/Pagination.js +309 -0
- package/dist/collection/components/Pagination/Pagination.js.map +1 -0
- package/dist/collection/components/Pagination/pagination.css +83 -0
- package/dist/collection/components/Popconfirm/Popconfirm.js +185 -0
- package/dist/collection/components/Popconfirm/Popconfirm.js.map +1 -0
- package/dist/collection/components/Popconfirm/popconfirm.css +20 -0
- package/dist/collection/components/Popover/Popover.js +173 -0
- package/dist/collection/components/Popover/Popover.js.map +1 -0
- package/dist/collection/components/Popover/popover.css +10 -0
- package/dist/collection/components/Progress/Progress.js +139 -0
- package/dist/collection/components/Progress/Progress.js.map +1 -0
- package/dist/collection/components/Progress/progress.css +5 -0
- package/dist/collection/components/Radio/Radio.js +338 -0
- package/dist/collection/components/Radio/Radio.js.map +1 -0
- package/dist/collection/components/Radio/radio.css +158 -0
- package/dist/collection/components/Rate/Rate.js +357 -0
- package/dist/collection/components/Rate/Rate.js.map +1 -0
- package/dist/collection/components/Rate/rate.css +56 -0
- package/dist/collection/components/Result/Result.js +146 -0
- package/dist/collection/components/Result/Result.js.map +1 -0
- package/dist/collection/components/Result/result.css +47 -0
- package/dist/collection/components/Scrollbar/Scrollbar.js +426 -0
- package/dist/collection/components/Scrollbar/Scrollbar.js.map +1 -0
- package/dist/collection/components/Scrollbar/scrollbar.css +85 -0
- package/dist/collection/components/Segmented/Segmented.js +149 -0
- package/dist/collection/components/Segmented/Segmented.js.map +1 -0
- package/dist/collection/components/Segmented/segmented.css +46 -0
- package/dist/collection/components/Select/Select.js +595 -0
- package/dist/collection/components/Select/Select.js.map +1 -0
- package/dist/collection/components/Select/select.css +223 -0
- package/dist/collection/components/Skeleton/Skeleton.js +178 -0
- package/dist/collection/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/collection/components/Skeleton/skeleton.css +59 -0
- package/dist/collection/components/Slider/Slider.js +434 -0
- package/dist/collection/components/Slider/Slider.js.map +1 -0
- package/dist/collection/components/Slider/slider.css +141 -0
- package/dist/collection/components/Space/Space.js +212 -0
- package/dist/collection/components/Space/Space.js.map +1 -0
- package/dist/collection/components/Space/space.css +57 -0
- package/dist/collection/components/Statistic/Statistic.js +188 -0
- package/dist/collection/components/Statistic/Statistic.js.map +1 -0
- package/dist/collection/components/Statistic/statistic.css +32 -0
- package/dist/collection/components/Steps/Step.js +95 -0
- package/dist/collection/components/Steps/Step.js.map +1 -0
- package/dist/collection/components/Steps/Steps.js +137 -0
- package/dist/collection/components/Steps/Steps.js.map +1 -0
- package/dist/collection/components/Steps/steps.css +25 -0
- package/dist/collection/components/Switch/Switch.js +324 -0
- package/dist/collection/components/Switch/Switch.js.map +1 -0
- package/dist/collection/components/Switch/switch.css +85 -0
- package/dist/collection/components/Table/Table.js +860 -0
- package/dist/collection/components/Table/Table.js.map +1 -0
- package/dist/collection/components/Table/table.css +289 -0
- package/dist/collection/components/Tabs/TabPane.js +82 -0
- package/dist/collection/components/Tabs/TabPane.js.map +1 -0
- package/dist/collection/components/Tabs/Tabs.js +221 -0
- package/dist/collection/components/Tabs/Tabs.js.map +1 -0
- package/dist/collection/components/Tabs/tabs.css +66 -0
- package/dist/collection/components/Tag/Tag.js +167 -0
- package/dist/collection/components/Tag/Tag.js.map +1 -0
- package/dist/collection/components/Tag/tag.css +71 -0
- package/dist/collection/components/Text/Text.js +203 -0
- package/dist/collection/components/Text/Text.js.map +1 -0
- package/dist/collection/components/Text/text.css +61 -0
- package/dist/collection/components/TimePicker/TimePicker.js +348 -0
- package/dist/collection/components/TimePicker/TimePicker.js.map +1 -0
- package/dist/collection/components/TimePicker/time-picker.css +151 -0
- package/dist/collection/components/TimeSelect/TimeSelect.js +389 -0
- package/dist/collection/components/TimeSelect/TimeSelect.js.map +1 -0
- package/dist/collection/components/TimeSelect/time-select.css +139 -0
- package/dist/collection/components/Timeline/Timeline.js +79 -0
- package/dist/collection/components/Timeline/Timeline.js.map +1 -0
- package/dist/collection/components/Timeline/timeline.css +71 -0
- package/dist/collection/components/Tooltip/Tooltip.js +192 -0
- package/dist/collection/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/collection/components/Tooltip/tooltip.css +40 -0
- package/dist/collection/components/Tour/Tour.js +225 -0
- package/dist/collection/components/Tour/Tour.js.map +1 -0
- package/dist/collection/components/Tour/tour.css +117 -0
- package/dist/collection/components/Transfer/Transfer.js +331 -0
- package/dist/collection/components/Transfer/Transfer.js.map +1 -0
- package/dist/collection/components/Transfer/transfer.css +183 -0
- package/dist/collection/components/Tree/Tree.js +527 -0
- package/dist/collection/components/Tree/Tree.js.map +1 -0
- package/dist/collection/components/Tree/tree.css +132 -0
- package/dist/collection/components/TreeSelect/TreeSelect.js +440 -0
- package/dist/collection/components/TreeSelect/TreeSelect.js.map +1 -0
- package/dist/collection/components/TreeSelect/tree-select.css +209 -0
- package/dist/collection/components/Upload/Upload.js +504 -0
- package/dist/collection/components/Upload/Upload.js.map +1 -0
- package/dist/collection/components/Upload/upload.css +16 -0
- package/dist/collection/components/Watermark/Watermark.js +205 -0
- package/dist/collection/components/Watermark/Watermark.js.map +1 -0
- package/dist/collection/components/Watermark/watermark.css +26 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/a11y.js +130 -0
- package/dist/collection/utils/a11y.js.map +1 -0
- package/dist/collection/utils/click-outside.js +22 -0
- package/dist/collection/utils/click-outside.js.map +1 -0
- package/dist/collection/utils/date-helpers.js +120 -0
- package/dist/collection/utils/date-helpers.js.map +1 -0
- package/dist/collection/utils/form-input-base.js +48 -0
- package/dist/collection/utils/form-input-base.js.map +1 -0
- package/dist/collection/utils/popup-manager.js +75 -0
- package/dist/collection/utils/popup-manager.js.map +1 -0
- package/dist/components/hb-affix.d.ts +11 -0
- package/dist/components/hb-affix.js +121 -0
- package/dist/components/hb-affix.js.map +1 -0
- package/dist/components/hb-alert.d.ts +11 -0
- package/dist/components/hb-alert.js +70 -0
- package/dist/components/hb-alert.js.map +1 -0
- package/dist/components/hb-anchor.d.ts +11 -0
- package/dist/components/hb-anchor.js +66 -0
- package/dist/components/hb-anchor.js.map +1 -0
- package/dist/components/hb-aside.d.ts +11 -0
- package/dist/components/hb-aside.js +47 -0
- package/dist/components/hb-aside.js.map +1 -0
- package/dist/components/hb-avatar.d.ts +11 -0
- package/dist/components/hb-avatar.js +52 -0
- package/dist/components/hb-avatar.js.map +1 -0
- package/dist/components/hb-backtop.d.ts +11 -0
- package/dist/components/hb-backtop.js +122 -0
- package/dist/components/hb-backtop.js.map +1 -0
- package/dist/components/hb-badge.d.ts +11 -0
- package/dist/components/hb-badge.js +56 -0
- package/dist/components/hb-badge.js.map +1 -0
- package/dist/components/hb-breadcrumb-item.d.ts +11 -0
- package/dist/components/hb-breadcrumb-item.js +42 -0
- package/dist/components/hb-breadcrumb-item.js.map +1 -0
- package/dist/components/hb-breadcrumb.d.ts +11 -0
- package/dist/components/hb-breadcrumb.js +41 -0
- package/dist/components/hb-breadcrumb.js.map +1 -0
- package/dist/components/hb-button.d.ts +11 -0
- package/dist/components/hb-button.js +60 -0
- package/dist/components/hb-button.js.map +1 -0
- package/dist/components/hb-calendar.d.ts +11 -0
- package/dist/components/hb-calendar.js +113 -0
- package/dist/components/hb-calendar.js.map +1 -0
- package/dist/components/hb-card.d.ts +11 -0
- package/dist/components/hb-card.js +45 -0
- package/dist/components/hb-card.js.map +1 -0
- package/dist/components/hb-carousel.d.ts +11 -0
- package/dist/components/hb-carousel.js +178 -0
- package/dist/components/hb-carousel.js.map +1 -0
- package/dist/components/hb-cascader.d.ts +11 -0
- package/dist/components/hb-cascader.js +451 -0
- package/dist/components/hb-cascader.js.map +1 -0
- package/dist/components/hb-checkbox-group.d.ts +11 -0
- package/dist/components/hb-checkbox-group.js +145 -0
- package/dist/components/hb-checkbox-group.js.map +1 -0
- package/dist/components/hb-checkbox.d.ts +11 -0
- package/dist/components/hb-checkbox.js +161 -0
- package/dist/components/hb-checkbox.js.map +1 -0
- package/dist/components/hb-collapse-item.d.ts +11 -0
- package/dist/components/hb-collapse-item.js +81 -0
- package/dist/components/hb-collapse-item.js.map +1 -0
- package/dist/components/hb-collapse.d.ts +11 -0
- package/dist/components/hb-collapse.js +58 -0
- package/dist/components/hb-collapse.js.map +1 -0
- package/dist/components/hb-color-picker-panel.d.ts +11 -0
- package/dist/components/hb-color-picker-panel.js +109 -0
- package/dist/components/hb-color-picker-panel.js.map +1 -0
- package/dist/components/hb-color-picker.d.ts +11 -0
- package/dist/components/hb-color-picker.js +293 -0
- package/dist/components/hb-color-picker.js.map +1 -0
- package/dist/components/hb-config-provider.d.ts +11 -0
- package/dist/components/hb-config-provider.js +62 -0
- package/dist/components/hb-config-provider.js.map +1 -0
- package/dist/components/hb-container.d.ts +11 -0
- package/dist/components/hb-container.js +47 -0
- package/dist/components/hb-container.js.map +1 -0
- package/dist/components/hb-date-picker-pane.d.ts +11 -0
- package/dist/components/hb-date-picker-pane.js +172 -0
- package/dist/components/hb-date-picker-pane.js.map +1 -0
- package/dist/components/hb-date-picker.d.ts +11 -0
- package/dist/components/hb-date-picker.js +170 -0
- package/dist/components/hb-date-picker.js.map +1 -0
- package/dist/components/hb-date-range-picker.d.ts +11 -0
- package/dist/components/hb-date-range-picker.js +254 -0
- package/dist/components/hb-date-range-picker.js.map +1 -0
- package/dist/components/hb-date-time-picker.d.ts +11 -0
- package/dist/components/hb-date-time-picker.js +170 -0
- package/dist/components/hb-date-time-picker.js.map +1 -0
- package/dist/components/hb-descriptions.d.ts +11 -0
- package/dist/components/hb-descriptions.js +53 -0
- package/dist/components/hb-descriptions.js.map +1 -0
- package/dist/components/hb-dialog.d.ts +11 -0
- package/dist/components/hb-dialog.js +141 -0
- package/dist/components/hb-dialog.js.map +1 -0
- package/dist/components/hb-divider.d.ts +11 -0
- package/dist/components/hb-divider.js +55 -0
- package/dist/components/hb-divider.js.map +1 -0
- package/dist/components/hb-drawer.d.ts +11 -0
- package/dist/components/hb-drawer.js +116 -0
- package/dist/components/hb-drawer.js.map +1 -0
- package/dist/components/hb-dropdown.d.ts +11 -0
- package/dist/components/hb-dropdown.js +100 -0
- package/dist/components/hb-dropdown.js.map +1 -0
- package/dist/components/hb-empty.d.ts +11 -0
- package/dist/components/hb-empty.js +42 -0
- package/dist/components/hb-empty.js.map +1 -0
- package/dist/components/hb-float-button.d.ts +11 -0
- package/dist/components/hb-float-button.js +80 -0
- package/dist/components/hb-float-button.js.map +1 -0
- package/dist/components/hb-footer.d.ts +11 -0
- package/dist/components/hb-footer.js +47 -0
- package/dist/components/hb-footer.js.map +1 -0
- package/dist/components/hb-form-item.d.ts +11 -0
- package/dist/components/hb-form-item.js +139 -0
- package/dist/components/hb-form-item.js.map +1 -0
- package/dist/components/hb-form.d.ts +11 -0
- package/dist/components/hb-form.js +96 -0
- package/dist/components/hb-form.js.map +1 -0
- package/dist/components/hb-header.d.ts +11 -0
- package/dist/components/hb-header.js +47 -0
- package/dist/components/hb-header.js.map +1 -0
- package/dist/components/hb-icon.d.ts +11 -0
- package/dist/components/hb-icon.js +96 -0
- package/dist/components/hb-icon.js.map +1 -0
- package/dist/components/hb-image-preview.d.ts +11 -0
- package/dist/components/hb-image-preview.js +207 -0
- package/dist/components/hb-image-preview.js.map +1 -0
- package/dist/components/hb-image.d.ts +11 -0
- package/dist/components/hb-image.js +62 -0
- package/dist/components/hb-image.js.map +1 -0
- package/dist/components/hb-input-number.d.ts +11 -0
- package/dist/components/hb-input-number.js +202 -0
- package/dist/components/hb-input-number.js.map +1 -0
- package/dist/components/hb-input-tag.d.ts +11 -0
- package/dist/components/hb-input-tag.js +174 -0
- package/dist/components/hb-input-tag.js.map +1 -0
- package/dist/components/hb-input.d.ts +11 -0
- package/dist/components/hb-input.js +294 -0
- package/dist/components/hb-input.js.map +1 -0
- package/dist/components/hb-layout.d.ts +11 -0
- package/dist/components/hb-layout.js +103 -0
- package/dist/components/hb-layout.js.map +1 -0
- package/dist/components/hb-link.d.ts +11 -0
- package/dist/components/hb-link.js +89 -0
- package/dist/components/hb-link.js.map +1 -0
- package/dist/components/hb-loading.d.ts +11 -0
- package/dist/components/hb-loading.js +51 -0
- package/dist/components/hb-loading.js.map +1 -0
- package/dist/components/hb-main.d.ts +11 -0
- package/dist/components/hb-main.js +37 -0
- package/dist/components/hb-main.js.map +1 -0
- package/dist/components/hb-menu-item.d.ts +11 -0
- package/dist/components/hb-menu-item.js +70 -0
- package/dist/components/hb-menu-item.js.map +1 -0
- package/dist/components/hb-menu.d.ts +11 -0
- package/dist/components/hb-menu.js +113 -0
- package/dist/components/hb-menu.js.map +1 -0
- package/dist/components/hb-message.d.ts +11 -0
- package/dist/components/hb-message.js +69 -0
- package/dist/components/hb-message.js.map +1 -0
- package/dist/components/hb-notification.d.ts +11 -0
- package/dist/components/hb-notification.js +91 -0
- package/dist/components/hb-notification.js.map +1 -0
- package/dist/components/hb-page-header.d.ts +11 -0
- package/dist/components/hb-page-header.js +57 -0
- package/dist/components/hb-page-header.js.map +1 -0
- package/dist/components/hb-pagination.d.ts +11 -0
- package/dist/components/hb-pagination.js +134 -0
- package/dist/components/hb-pagination.js.map +1 -0
- package/dist/components/hb-popconfirm.d.ts +11 -0
- package/dist/components/hb-popconfirm.js +75 -0
- package/dist/components/hb-popconfirm.js.map +1 -0
- package/dist/components/hb-popover.d.ts +11 -0
- package/dist/components/hb-popover.js +82 -0
- package/dist/components/hb-popover.js.map +1 -0
- package/dist/components/hb-progress.d.ts +11 -0
- package/dist/components/hb-progress.js +60 -0
- package/dist/components/hb-progress.js.map +1 -0
- package/dist/components/hb-radio.d.ts +11 -0
- package/dist/components/hb-radio.js +149 -0
- package/dist/components/hb-radio.js.map +1 -0
- package/dist/components/hb-rate.d.ts +11 -0
- package/dist/components/hb-rate.js +161 -0
- package/dist/components/hb-rate.js.map +1 -0
- package/dist/components/hb-result.d.ts +11 -0
- package/dist/components/hb-result.js +77 -0
- package/dist/components/hb-result.js.map +1 -0
- package/dist/components/hb-row.d.ts +11 -0
- package/dist/components/hb-row.js +77 -0
- package/dist/components/hb-row.js.map +1 -0
- package/dist/components/hb-scrollbar.d.ts +11 -0
- package/dist/components/hb-scrollbar.js +235 -0
- package/dist/components/hb-scrollbar.js.map +1 -0
- package/dist/components/hb-segmented.d.ts +11 -0
- package/dist/components/hb-segmented.js +63 -0
- package/dist/components/hb-segmented.js.map +1 -0
- package/dist/components/hb-select.d.ts +11 -0
- package/dist/components/hb-select.js +299 -0
- package/dist/components/hb-select.js.map +1 -0
- package/dist/components/hb-skeleton.d.ts +11 -0
- package/dist/components/hb-skeleton.js +75 -0
- package/dist/components/hb-skeleton.js.map +1 -0
- package/dist/components/hb-slider.d.ts +11 -0
- package/dist/components/hb-slider.js +202 -0
- package/dist/components/hb-slider.js.map +1 -0
- package/dist/components/hb-space.d.ts +11 -0
- package/dist/components/hb-space.js +94 -0
- package/dist/components/hb-space.js.map +1 -0
- package/dist/components/hb-statistic.d.ts +11 -0
- package/dist/components/hb-statistic.js +88 -0
- package/dist/components/hb-statistic.js.map +1 -0
- package/dist/components/hb-step.d.ts +11 -0
- package/dist/components/hb-step.js +42 -0
- package/dist/components/hb-step.js.map +1 -0
- package/dist/components/hb-steps.d.ts +11 -0
- package/dist/components/hb-steps.js +71 -0
- package/dist/components/hb-steps.js.map +1 -0
- package/dist/components/hb-sub-menu.d.ts +11 -0
- package/dist/components/hb-sub-menu.js +91 -0
- package/dist/components/hb-sub-menu.js.map +1 -0
- package/dist/components/hb-switch.d.ts +11 -0
- package/dist/components/hb-switch.js +118 -0
- package/dist/components/hb-switch.js.map +1 -0
- package/dist/components/hb-tab-pane.d.ts +11 -0
- package/dist/components/hb-tab-pane.js +43 -0
- package/dist/components/hb-tab-pane.js.map +1 -0
- package/dist/components/hb-table.d.ts +11 -0
- package/dist/components/hb-table.js +412 -0
- package/dist/components/hb-table.js.map +1 -0
- package/dist/components/hb-tabs.d.ts +11 -0
- package/dist/components/hb-tabs.js +138 -0
- package/dist/components/hb-tabs.js.map +1 -0
- package/dist/components/hb-tag.d.ts +11 -0
- package/dist/components/hb-tag.js +66 -0
- package/dist/components/hb-tag.js.map +1 -0
- package/dist/components/hb-text.d.ts +11 -0
- package/dist/components/hb-text.js +82 -0
- package/dist/components/hb-text.js.map +1 -0
- package/dist/components/hb-time-picker.d.ts +11 -0
- package/dist/components/hb-time-picker.js +178 -0
- package/dist/components/hb-time-picker.js.map +1 -0
- package/dist/components/hb-time-select.d.ts +11 -0
- package/dist/components/hb-time-select.js +175 -0
- package/dist/components/hb-time-select.js.map +1 -0
- package/dist/components/hb-timeline.d.ts +11 -0
- package/dist/components/hb-timeline.js +48 -0
- package/dist/components/hb-timeline.js.map +1 -0
- package/dist/components/hb-tooltip.d.ts +11 -0
- package/dist/components/hb-tooltip.js +97 -0
- package/dist/components/hb-tooltip.js.map +1 -0
- package/dist/components/hb-tour.d.ts +11 -0
- package/dist/components/hb-tour.js +139 -0
- package/dist/components/hb-tour.js.map +1 -0
- package/dist/components/hb-transfer.d.ts +11 -0
- package/dist/components/hb-transfer.js +199 -0
- package/dist/components/hb-transfer.js.map +1 -0
- package/dist/components/hb-tree-select.d.ts +11 -0
- package/dist/components/hb-tree-select.js +263 -0
- package/dist/components/hb-tree-select.js.map +1 -0
- package/dist/components/hb-tree.d.ts +11 -0
- package/dist/components/hb-tree.js +344 -0
- package/dist/components/hb-tree.js.map +1 -0
- package/dist/components/hb-upload.d.ts +11 -0
- package/dist/components/hb-upload.js +213 -0
- package/dist/components/hb-upload.js.map +1 -0
- package/dist/components/hb-watermark.d.ts +11 -0
- package/dist/components/hb-watermark.js +82 -0
- package/dist/components/hb-watermark.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/p-1407a5e8.js +1662 -0
- package/dist/components/p-1407a5e8.js.map +1 -0
- package/dist/components/p-4ef5a884.js +25 -0
- package/dist/components/p-4ef5a884.js.map +1 -0
- package/dist/components/p-cc0aeb50.js +119 -0
- package/dist/components/p-cc0aeb50.js.map +1 -0
- package/dist/components/p-cf94cbf6.js +123 -0
- package/dist/components/p-cf94cbf6.js.map +1 -0
- package/dist/components/p-ecce2b5e.js +78 -0
- package/dist/components/p-ecce2b5e.js.map +1 -0
- package/dist/esm/a11y-f9ab2964.js +119 -0
- package/dist/esm/a11y-f9ab2964.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/click-outside-291294f9.js +25 -0
- package/dist/esm/click-outside-291294f9.js.map +1 -0
- package/dist/esm/date-helpers-e4d85a67.js +123 -0
- package/dist/esm/date-helpers-e4d85a67.js.map +1 -0
- package/dist/esm/hb-affix.entry.js +97 -0
- package/dist/esm/hb-affix.entry.js.map +1 -0
- package/dist/esm/hb-alert.entry.js +43 -0
- package/dist/esm/hb-alert.entry.js.map +1 -0
- package/dist/esm/hb-anchor.entry.js +42 -0
- package/dist/esm/hb-anchor.entry.js.map +1 -0
- package/dist/esm/hb-aside.entry.js +26 -0
- package/dist/esm/hb-aside.entry.js.map +1 -0
- package/dist/esm/hb-avatar.entry.js +27 -0
- package/dist/esm/hb-avatar.entry.js.map +1 -0
- package/dist/esm/hb-backtop.entry.js +96 -0
- package/dist/esm/hb-backtop.entry.js.map +1 -0
- package/dist/esm/hb-badge.entry.js +31 -0
- package/dist/esm/hb-badge.entry.js.map +1 -0
- package/dist/esm/hb-breadcrumb-item.entry.js +21 -0
- package/dist/esm/hb-breadcrumb-item.entry.js.map +1 -0
- package/dist/esm/hb-breadcrumb.entry.js +20 -0
- package/dist/esm/hb-breadcrumb.entry.js.map +1 -0
- package/dist/esm/hb-button.entry.js +35 -0
- package/dist/esm/hb-button.entry.js.map +1 -0
- package/dist/esm/hb-calendar.entry.js +86 -0
- package/dist/esm/hb-calendar.entry.js.map +1 -0
- package/dist/esm/hb-card.entry.js +23 -0
- package/dist/esm/hb-card.entry.js.map +1 -0
- package/dist/esm/hb-carousel.entry.js +146 -0
- package/dist/esm/hb-carousel.entry.js.map +1 -0
- package/dist/esm/hb-cascader.entry.js +409 -0
- package/dist/esm/hb-cascader.entry.js.map +1 -0
- package/dist/esm/hb-checkbox-group.entry.js +113 -0
- package/dist/esm/hb-checkbox-group.entry.js.map +1 -0
- package/dist/esm/hb-checkbox.entry.js +126 -0
- package/dist/esm/hb-checkbox.entry.js.map +1 -0
- package/dist/esm/hb-collapse-item.entry.js +54 -0
- package/dist/esm/hb-collapse-item.entry.js.map +1 -0
- package/dist/esm/hb-collapse.entry.js +37 -0
- package/dist/esm/hb-collapse.entry.js.map +1 -0
- package/dist/esm/hb-color-picker-panel.entry.js +82 -0
- package/dist/esm/hb-color-picker-panel.entry.js.map +1 -0
- package/dist/esm/hb-color-picker.entry.js +261 -0
- package/dist/esm/hb-color-picker.entry.js.map +1 -0
- package/dist/esm/hb-config-provider.entry.js +40 -0
- package/dist/esm/hb-config-provider.entry.js.map +1 -0
- package/dist/esm/hb-container.entry.js +26 -0
- package/dist/esm/hb-container.entry.js.map +1 -0
- package/dist/esm/hb-date-picker-pane.entry.js +146 -0
- package/dist/esm/hb-date-picker-pane.entry.js.map +1 -0
- package/dist/esm/hb-date-picker.entry.js +134 -0
- package/dist/esm/hb-date-picker.entry.js.map +1 -0
- package/dist/esm/hb-date-range-picker.entry.js +218 -0
- package/dist/esm/hb-date-range-picker.entry.js.map +1 -0
- package/dist/esm/hb-date-time-picker.entry.js +136 -0
- package/dist/esm/hb-date-time-picker.entry.js.map +1 -0
- package/dist/esm/hb-descriptions.entry.js +28 -0
- package/dist/esm/hb-descriptions.entry.js.map +1 -0
- package/dist/esm/hb-dialog.entry.js +110 -0
- package/dist/esm/hb-dialog.entry.js.map +1 -0
- package/dist/esm/hb-divider.entry.js +32 -0
- package/dist/esm/hb-divider.entry.js.map +1 -0
- package/dist/esm/hb-drawer.entry.js +85 -0
- package/dist/esm/hb-drawer.entry.js.map +1 -0
- package/dist/esm/hb-dropdown.entry.js +76 -0
- package/dist/esm/hb-dropdown.entry.js.map +1 -0
- package/dist/esm/hb-empty.entry.js +20 -0
- package/dist/esm/hb-empty.entry.js.map +1 -0
- package/dist/esm/hb-float-button.entry.js +53 -0
- package/dist/esm/hb-float-button.entry.js.map +1 -0
- package/dist/esm/hb-footer.entry.js +26 -0
- package/dist/esm/hb-footer.entry.js.map +1 -0
- package/dist/esm/hb-form-item.entry.js +108 -0
- package/dist/esm/hb-form-item.entry.js.map +1 -0
- package/dist/esm/hb-form.entry.js +66 -0
- package/dist/esm/hb-form.entry.js.map +1 -0
- package/dist/esm/hb-header.entry.js +26 -0
- package/dist/esm/hb-header.entry.js.map +1 -0
- package/dist/esm/hb-icon.entry.js +72 -0
- package/dist/esm/hb-icon.entry.js.map +1 -0
- package/dist/esm/hb-image-preview.entry.js +175 -0
- package/dist/esm/hb-image-preview.entry.js.map +1 -0
- package/dist/esm/hb-image.entry.js +31 -0
- package/dist/esm/hb-image.entry.js.map +1 -0
- package/dist/esm/hb-input-number.entry.js +165 -0
- package/dist/esm/hb-input-number.entry.js.map +1 -0
- package/dist/esm/hb-input-tag.entry.js +141 -0
- package/dist/esm/hb-input-tag.entry.js.map +1 -0
- package/dist/esm/hb-input.entry.js +248 -0
- package/dist/esm/hb-input.entry.js.map +1 -0
- package/dist/esm/hb-layout.entry.js +74 -0
- package/dist/esm/hb-layout.entry.js.map +1 -0
- package/dist/esm/hb-link.entry.js +63 -0
- package/dist/esm/hb-link.entry.js.map +1 -0
- package/dist/esm/hb-loading.entry.js +28 -0
- package/dist/esm/hb-loading.entry.js.map +1 -0
- package/dist/esm/hb-main.entry.js +18 -0
- package/dist/esm/hb-main.entry.js.map +1 -0
- package/dist/esm/hb-menu-item.entry.js +46 -0
- package/dist/esm/hb-menu-item.entry.js.map +1 -0
- package/dist/esm/hb-menu.entry.js +83 -0
- package/dist/esm/hb-menu.entry.js.map +1 -0
- package/dist/esm/hb-message.entry.js +44 -0
- package/dist/esm/hb-message.entry.js.map +1 -0
- package/dist/esm/hb-notification.entry.js +63 -0
- package/dist/esm/hb-notification.entry.js.map +1 -0
- package/dist/esm/hb-page-header.entry.js +33 -0
- package/dist/esm/hb-page-header.entry.js.map +1 -0
- package/dist/esm/hb-pagination.entry.js +103 -0
- package/dist/esm/hb-pagination.entry.js.map +1 -0
- package/dist/esm/hb-popconfirm.entry.js +47 -0
- package/dist/esm/hb-popconfirm.entry.js.map +1 -0
- package/dist/esm/hb-popover.entry.js +55 -0
- package/dist/esm/hb-popover.entry.js.map +1 -0
- package/dist/esm/hb-progress.entry.js +35 -0
- package/dist/esm/hb-progress.entry.js.map +1 -0
- package/dist/esm/hb-radio.entry.js +115 -0
- package/dist/esm/hb-radio.entry.js.map +1 -0
- package/dist/esm/hb-rate.entry.js +128 -0
- package/dist/esm/hb-rate.entry.js.map +1 -0
- package/dist/esm/hb-result.entry.js +53 -0
- package/dist/esm/hb-result.entry.js.map +1 -0
- package/dist/esm/hb-row.entry.js +53 -0
- package/dist/esm/hb-row.entry.js.map +1 -0
- package/dist/esm/hb-scrollbar.entry.js +200 -0
- package/dist/esm/hb-scrollbar.entry.js.map +1 -0
- package/dist/esm/hb-segmented.entry.js +39 -0
- package/dist/esm/hb-segmented.entry.js.map +1 -0
- package/dist/esm/hb-select.entry.js +258 -0
- package/dist/esm/hb-select.entry.js.map +1 -0
- package/dist/esm/hb-skeleton.entry.js +49 -0
- package/dist/esm/hb-skeleton.entry.js.map +1 -0
- package/dist/esm/hb-slider.entry.js +168 -0
- package/dist/esm/hb-slider.entry.js.map +1 -0
- package/dist/esm/hb-space.entry.js +68 -0
- package/dist/esm/hb-space.entry.js.map +1 -0
- package/dist/esm/hb-statistic.entry.js +62 -0
- package/dist/esm/hb-statistic.entry.js.map +1 -0
- package/dist/esm/hb-step.entry.js +20 -0
- package/dist/esm/hb-step.entry.js.map +1 -0
- package/dist/esm/hb-steps.entry.js +46 -0
- package/dist/esm/hb-steps.entry.js.map +1 -0
- package/dist/esm/hb-sub-menu.entry.js +66 -0
- package/dist/esm/hb-sub-menu.entry.js.map +1 -0
- package/dist/esm/hb-switch.entry.js +88 -0
- package/dist/esm/hb-switch.entry.js.map +1 -0
- package/dist/esm/hb-tab-pane.entry.js +22 -0
- package/dist/esm/hb-tab-pane.entry.js.map +1 -0
- package/dist/esm/hb-table.entry.js +366 -0
- package/dist/esm/hb-table.entry.js.map +1 -0
- package/dist/esm/hb-tabs.entry.js +111 -0
- package/dist/esm/hb-tabs.entry.js.map +1 -0
- package/dist/esm/hb-tag.entry.js +41 -0
- package/dist/esm/hb-tag.entry.js.map +1 -0
- package/dist/esm/hb-text.entry.js +56 -0
- package/dist/esm/hb-text.entry.js.map +1 -0
- package/dist/esm/hb-time-picker.entry.js +143 -0
- package/dist/esm/hb-time-picker.entry.js.map +1 -0
- package/dist/esm/hb-time-select.entry.js +141 -0
- package/dist/esm/hb-time-select.entry.js.map +1 -0
- package/dist/esm/hb-timeline.entry.js +26 -0
- package/dist/esm/hb-timeline.entry.js.map +1 -0
- package/dist/esm/hb-tooltip.entry.js +70 -0
- package/dist/esm/hb-tooltip.entry.js.map +1 -0
- package/dist/esm/hb-tour.entry.js +115 -0
- package/dist/esm/hb-tour.entry.js.map +1 -0
- package/dist/esm/hb-transfer.entry.js +169 -0
- package/dist/esm/hb-transfer.entry.js.map +1 -0
- package/dist/esm/hb-tree-select.entry.js +232 -0
- package/dist/esm/hb-tree-select.entry.js.map +1 -0
- package/dist/esm/hb-tree.entry.js +309 -0
- package/dist/esm/hb-tree.entry.js.map +1 -0
- package/dist/esm/hb-upload.entry.js +180 -0
- package/dist/esm/hb-upload.entry.js.map +1 -0
- package/dist/esm/hb-watermark.entry.js +55 -0
- package/dist/esm/hb-watermark.entry.js.map +1 -0
- package/dist/esm/huibo-ui.js +22 -0
- package/dist/esm/huibo-ui.js.map +1 -0
- package/dist/esm/index-fdf7135e.js +1886 -0
- package/dist/esm/index-fdf7135e.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/popup-manager-128cc685.js +78 -0
- package/dist/esm/popup-manager-128cc685.js.map +1 -0
- package/dist/huibo-ui/huibo-ui.css +6 -0
- package/dist/huibo-ui/huibo-ui.esm.js +2 -0
- package/dist/huibo-ui/huibo-ui.esm.js.map +1 -0
- package/dist/huibo-ui/index.esm.js +2 -0
- package/dist/huibo-ui/index.esm.js.map +1 -0
- package/dist/huibo-ui/p-003cee87.entry.js +2 -0
- package/dist/huibo-ui/p-003cee87.entry.js.map +1 -0
- package/dist/huibo-ui/p-06ec8d02.entry.js +2 -0
- package/dist/huibo-ui/p-06ec8d02.entry.js.map +1 -0
- package/dist/huibo-ui/p-079a4130.entry.js +2 -0
- package/dist/huibo-ui/p-079a4130.entry.js.map +1 -0
- package/dist/huibo-ui/p-0a033738.entry.js +2 -0
- package/dist/huibo-ui/p-0a033738.entry.js.map +1 -0
- package/dist/huibo-ui/p-0bef78ac.entry.js +2 -0
- package/dist/huibo-ui/p-0bef78ac.entry.js.map +1 -0
- package/dist/huibo-ui/p-0e65e1bd.entry.js +2 -0
- package/dist/huibo-ui/p-0e65e1bd.entry.js.map +1 -0
- package/dist/huibo-ui/p-0f189251.entry.js +2 -0
- package/dist/huibo-ui/p-0f189251.entry.js.map +1 -0
- package/dist/huibo-ui/p-10c088f3.entry.js +2 -0
- package/dist/huibo-ui/p-10c088f3.entry.js.map +1 -0
- package/dist/huibo-ui/p-1b5acd6d.entry.js +2 -0
- package/dist/huibo-ui/p-1b5acd6d.entry.js.map +1 -0
- package/dist/huibo-ui/p-1e5abc8a.entry.js +2 -0
- package/dist/huibo-ui/p-1e5abc8a.entry.js.map +1 -0
- package/dist/huibo-ui/p-1f0b1662.entry.js +2 -0
- package/dist/huibo-ui/p-1f0b1662.entry.js.map +1 -0
- package/dist/huibo-ui/p-21682e92.entry.js +2 -0
- package/dist/huibo-ui/p-21682e92.entry.js.map +1 -0
- package/dist/huibo-ui/p-231a7335.entry.js +2 -0
- package/dist/huibo-ui/p-231a7335.entry.js.map +1 -0
- package/dist/huibo-ui/p-24ad7eec.entry.js +2 -0
- package/dist/huibo-ui/p-24ad7eec.entry.js.map +1 -0
- package/dist/huibo-ui/p-2b286698.entry.js +2 -0
- package/dist/huibo-ui/p-2b286698.entry.js.map +1 -0
- package/dist/huibo-ui/p-2e6584ea.entry.js +2 -0
- package/dist/huibo-ui/p-2e6584ea.entry.js.map +1 -0
- package/dist/huibo-ui/p-315feadf.entry.js +2 -0
- package/dist/huibo-ui/p-315feadf.entry.js.map +1 -0
- package/dist/huibo-ui/p-332c8877.entry.js +2 -0
- package/dist/huibo-ui/p-332c8877.entry.js.map +1 -0
- package/dist/huibo-ui/p-3c7f73c8.entry.js +2 -0
- package/dist/huibo-ui/p-3c7f73c8.entry.js.map +1 -0
- package/dist/huibo-ui/p-4001c08d.entry.js +2 -0
- package/dist/huibo-ui/p-4001c08d.entry.js.map +1 -0
- package/dist/huibo-ui/p-44c48246.entry.js +2 -0
- package/dist/huibo-ui/p-44c48246.entry.js.map +1 -0
- package/dist/huibo-ui/p-463de26d.entry.js +2 -0
- package/dist/huibo-ui/p-463de26d.entry.js.map +1 -0
- package/dist/huibo-ui/p-465dcb4c.entry.js +2 -0
- package/dist/huibo-ui/p-465dcb4c.entry.js.map +1 -0
- package/dist/huibo-ui/p-476527c1.entry.js +2 -0
- package/dist/huibo-ui/p-476527c1.entry.js.map +1 -0
- package/dist/huibo-ui/p-477d8568.entry.js +2 -0
- package/dist/huibo-ui/p-477d8568.entry.js.map +1 -0
- package/dist/huibo-ui/p-4d0dff15.entry.js +2 -0
- package/dist/huibo-ui/p-4d0dff15.entry.js.map +1 -0
- package/dist/huibo-ui/p-4d8b1404.entry.js +2 -0
- package/dist/huibo-ui/p-4d8b1404.entry.js.map +1 -0
- package/dist/huibo-ui/p-4ef5a884.js +2 -0
- package/dist/huibo-ui/p-4ef5a884.js.map +1 -0
- package/dist/huibo-ui/p-58d20809.entry.js +2 -0
- package/dist/huibo-ui/p-58d20809.entry.js.map +1 -0
- package/dist/huibo-ui/p-58ebb9b3.entry.js +2 -0
- package/dist/huibo-ui/p-58ebb9b3.entry.js.map +1 -0
- package/dist/huibo-ui/p-59b2e61c.entry.js +2 -0
- package/dist/huibo-ui/p-59b2e61c.entry.js.map +1 -0
- package/dist/huibo-ui/p-5df47135.entry.js +2 -0
- package/dist/huibo-ui/p-5df47135.entry.js.map +1 -0
- package/dist/huibo-ui/p-64ca0980.entry.js +2 -0
- package/dist/huibo-ui/p-64ca0980.entry.js.map +1 -0
- package/dist/huibo-ui/p-672076c3.entry.js +2 -0
- package/dist/huibo-ui/p-672076c3.entry.js.map +1 -0
- package/dist/huibo-ui/p-6a1ec3ff.entry.js +2 -0
- package/dist/huibo-ui/p-6a1ec3ff.entry.js.map +1 -0
- package/dist/huibo-ui/p-6ac242fe.entry.js +2 -0
- package/dist/huibo-ui/p-6ac242fe.entry.js.map +1 -0
- package/dist/huibo-ui/p-6b381d0e.entry.js +2 -0
- package/dist/huibo-ui/p-6b381d0e.entry.js.map +1 -0
- package/dist/huibo-ui/p-710f38de.entry.js +2 -0
- package/dist/huibo-ui/p-710f38de.entry.js.map +1 -0
- package/dist/huibo-ui/p-756acbdb.entry.js +2 -0
- package/dist/huibo-ui/p-756acbdb.entry.js.map +1 -0
- package/dist/huibo-ui/p-75a93de3.entry.js +2 -0
- package/dist/huibo-ui/p-75a93de3.entry.js.map +1 -0
- package/dist/huibo-ui/p-769960f4.entry.js +2 -0
- package/dist/huibo-ui/p-769960f4.entry.js.map +1 -0
- package/dist/huibo-ui/p-77017274.entry.js +2 -0
- package/dist/huibo-ui/p-77017274.entry.js.map +1 -0
- package/dist/huibo-ui/p-7f6975ad.entry.js +2 -0
- package/dist/huibo-ui/p-7f6975ad.entry.js.map +1 -0
- package/dist/huibo-ui/p-80aca641.entry.js +2 -0
- package/dist/huibo-ui/p-80aca641.entry.js.map +1 -0
- package/dist/huibo-ui/p-85f68526.entry.js +2 -0
- package/dist/huibo-ui/p-85f68526.entry.js.map +1 -0
- package/dist/huibo-ui/p-88127de1.entry.js +2 -0
- package/dist/huibo-ui/p-88127de1.entry.js.map +1 -0
- package/dist/huibo-ui/p-8b027491.entry.js +2 -0
- package/dist/huibo-ui/p-8b027491.entry.js.map +1 -0
- package/dist/huibo-ui/p-8b1ae77e.entry.js +2 -0
- package/dist/huibo-ui/p-8b1ae77e.entry.js.map +1 -0
- package/dist/huibo-ui/p-8c80a765.entry.js +2 -0
- package/dist/huibo-ui/p-8c80a765.entry.js.map +1 -0
- package/dist/huibo-ui/p-8c987d57.entry.js +2 -0
- package/dist/huibo-ui/p-8c987d57.entry.js.map +1 -0
- package/dist/huibo-ui/p-8d615521.entry.js +2 -0
- package/dist/huibo-ui/p-8d615521.entry.js.map +1 -0
- package/dist/huibo-ui/p-8d925e3d.entry.js +2 -0
- package/dist/huibo-ui/p-8d925e3d.entry.js.map +1 -0
- package/dist/huibo-ui/p-9319c650.entry.js +2 -0
- package/dist/huibo-ui/p-9319c650.entry.js.map +1 -0
- package/dist/huibo-ui/p-953b9514.entry.js +2 -0
- package/dist/huibo-ui/p-953b9514.entry.js.map +1 -0
- package/dist/huibo-ui/p-965d4d02.entry.js +2 -0
- package/dist/huibo-ui/p-965d4d02.entry.js.map +1 -0
- package/dist/huibo-ui/p-a0015341.entry.js +2 -0
- package/dist/huibo-ui/p-a0015341.entry.js.map +1 -0
- package/dist/huibo-ui/p-a042e3d0.entry.js +2 -0
- package/dist/huibo-ui/p-a042e3d0.entry.js.map +1 -0
- package/dist/huibo-ui/p-ad6b0c6e.entry.js +2 -0
- package/dist/huibo-ui/p-ad6b0c6e.entry.js.map +1 -0
- package/dist/huibo-ui/p-b489a526.entry.js +2 -0
- package/dist/huibo-ui/p-b489a526.entry.js.map +1 -0
- package/dist/huibo-ui/p-be48d2aa.entry.js +2 -0
- package/dist/huibo-ui/p-be48d2aa.entry.js.map +1 -0
- package/dist/huibo-ui/p-c1a059d9.entry.js +2 -0
- package/dist/huibo-ui/p-c1a059d9.entry.js.map +1 -0
- package/dist/huibo-ui/p-c1b4eacb.entry.js +2 -0
- package/dist/huibo-ui/p-c1b4eacb.entry.js.map +1 -0
- package/dist/huibo-ui/p-c321c4aa.entry.js +2 -0
- package/dist/huibo-ui/p-c321c4aa.entry.js.map +1 -0
- package/dist/huibo-ui/p-c3e665f6.entry.js +2 -0
- package/dist/huibo-ui/p-c3e665f6.entry.js.map +1 -0
- package/dist/huibo-ui/p-c3e8893d.entry.js +2 -0
- package/dist/huibo-ui/p-c3e8893d.entry.js.map +1 -0
- package/dist/huibo-ui/p-c922d672.entry.js +2 -0
- package/dist/huibo-ui/p-c922d672.entry.js.map +1 -0
- package/dist/huibo-ui/p-cc0aeb50.js +2 -0
- package/dist/huibo-ui/p-cc0aeb50.js.map +1 -0
- package/dist/huibo-ui/p-cf94cbf6.js +2 -0
- package/dist/huibo-ui/p-cf94cbf6.js.map +1 -0
- package/dist/huibo-ui/p-d3939d44.entry.js +2 -0
- package/dist/huibo-ui/p-d3939d44.entry.js.map +1 -0
- package/dist/huibo-ui/p-d64b91ef.entry.js +2 -0
- package/dist/huibo-ui/p-d64b91ef.entry.js.map +1 -0
- package/dist/huibo-ui/p-d7815b4f.entry.js +2 -0
- package/dist/huibo-ui/p-d7815b4f.entry.js.map +1 -0
- package/dist/huibo-ui/p-d87fc21a.entry.js +2 -0
- package/dist/huibo-ui/p-d87fc21a.entry.js.map +1 -0
- package/dist/huibo-ui/p-dd05cb2c.entry.js +2 -0
- package/dist/huibo-ui/p-dd05cb2c.entry.js.map +1 -0
- package/dist/huibo-ui/p-dfaf7e37.entry.js +2 -0
- package/dist/huibo-ui/p-dfaf7e37.entry.js.map +1 -0
- package/dist/huibo-ui/p-e004fc81.entry.js +2 -0
- package/dist/huibo-ui/p-e004fc81.entry.js.map +1 -0
- package/dist/huibo-ui/p-e0768565.entry.js +2 -0
- package/dist/huibo-ui/p-e0768565.entry.js.map +1 -0
- package/dist/huibo-ui/p-e0ab9010.entry.js +2 -0
- package/dist/huibo-ui/p-e0ab9010.entry.js.map +1 -0
- package/dist/huibo-ui/p-e1255160.js +2 -0
- package/dist/huibo-ui/p-e1255160.js.map +1 -0
- package/dist/huibo-ui/p-e2a8a396.entry.js +2 -0
- package/dist/huibo-ui/p-e2a8a396.entry.js.map +1 -0
- package/dist/huibo-ui/p-e36bbe6f.entry.js +2 -0
- package/dist/huibo-ui/p-e36bbe6f.entry.js.map +1 -0
- package/dist/huibo-ui/p-e42dfa95.js +3 -0
- package/dist/huibo-ui/p-e42dfa95.js.map +1 -0
- package/dist/huibo-ui/p-e6f2d71d.entry.js +2 -0
- package/dist/huibo-ui/p-e6f2d71d.entry.js.map +1 -0
- package/dist/huibo-ui/p-e9490259.entry.js +2 -0
- package/dist/huibo-ui/p-e9490259.entry.js.map +1 -0
- package/dist/huibo-ui/p-ea74fcae.entry.js +2 -0
- package/dist/huibo-ui/p-ea74fcae.entry.js.map +1 -0
- package/dist/huibo-ui/p-ebd04656.entry.js +2 -0
- package/dist/huibo-ui/p-ebd04656.entry.js.map +1 -0
- package/dist/huibo-ui/p-ecce2b5e.js +2 -0
- package/dist/huibo-ui/p-ecce2b5e.js.map +1 -0
- package/dist/huibo-ui/p-ed0ff857.entry.js +2 -0
- package/dist/huibo-ui/p-ed0ff857.entry.js.map +1 -0
- package/dist/huibo-ui/p-f0ac7db5.entry.js +2 -0
- package/dist/huibo-ui/p-f0ac7db5.entry.js.map +1 -0
- package/dist/huibo-ui/p-f1c084c5.entry.js +2 -0
- package/dist/huibo-ui/p-f1c084c5.entry.js.map +1 -0
- package/dist/huibo-ui/p-f374d5a3.entry.js +2 -0
- package/dist/huibo-ui/p-f374d5a3.entry.js.map +1 -0
- package/dist/huibo-ui/p-f81ec512.entry.js +2 -0
- package/dist/huibo-ui/p-f81ec512.entry.js.map +1 -0
- package/dist/huibo-ui/p-fd19813c.entry.js +2 -0
- package/dist/huibo-ui/p-fd19813c.entry.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/Affix/Affix.d.ts +27 -0
- package/dist/types/components/Alert/Alert.d.ts +23 -0
- package/dist/types/components/Anchor/Anchor.d.ts +28 -0
- package/dist/types/components/Avatar/Avatar.d.ts +9 -0
- package/dist/types/components/Backtop/Backtop.d.ts +33 -0
- package/dist/types/components/Badge/Badge.d.ts +9 -0
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +9 -0
- package/dist/types/components/Breadcrumb/BreadcrumbItem.d.ts +9 -0
- package/dist/types/components/Button/Button.d.ts +17 -0
- package/dist/types/components/Calendar/Calendar.d.ts +35 -0
- package/dist/types/components/Card/Card.d.ts +6 -0
- package/dist/types/components/Carousel/Carousel.d.ts +45 -0
- package/dist/types/components/Cascader/Cascader.d.ts +150 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +66 -0
- package/dist/types/components/Checkbox/CheckboxGroup.d.ts +46 -0
- package/dist/types/components/Collapse/Collapse.d.ts +7 -0
- package/dist/types/components/Collapse/CollapseItem.d.ts +17 -0
- package/dist/types/components/ColorPicker/ColorPicker.d.ts +59 -0
- package/dist/types/components/ColorPickerPanel/ColorPickerPanel.d.ts +35 -0
- package/dist/types/components/ConfigProvider/ConfigProvider.d.ts +17 -0
- package/dist/types/components/Container/Aside.d.ts +11 -0
- package/dist/types/components/Container/Container.d.ts +12 -0
- package/dist/types/components/Container/Footer.d.ts +11 -0
- package/dist/types/components/Container/Header.d.ts +11 -0
- package/dist/types/components/Container/Main.d.ts +7 -0
- package/dist/types/components/DatePicker/DatePicker.d.ts +53 -0
- package/dist/types/components/DatePickerPane/DatePickerPane.d.ts +40 -0
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +68 -0
- package/dist/types/components/DateTimePicker/DateTimePicker.d.ts +41 -0
- package/dist/types/components/Descriptions/Descriptions.d.ts +22 -0
- package/dist/types/components/Dialog/Dialog.d.ts +42 -0
- package/dist/types/components/Divider/Divider.d.ts +14 -0
- package/dist/types/components/Drawer/Drawer.d.ts +24 -0
- package/dist/types/components/Dropdown/Dropdown.d.ts +32 -0
- package/dist/types/components/Empty/Empty.d.ts +5 -0
- package/dist/types/components/FloatButton/FloatButton.d.ts +29 -0
- package/dist/types/components/Form/Form.d.ts +41 -0
- package/dist/types/components/Form/FormItem.d.ts +30 -0
- package/dist/types/components/Icon/Icon.d.ts +17 -0
- package/dist/types/components/Image/Image.d.ts +16 -0
- package/dist/types/components/ImagePreview/ImagePreview.d.ts +59 -0
- package/dist/types/components/Input/Input.d.ts +133 -0
- package/dist/types/components/InputNumber/InputNumber.d.ts +89 -0
- package/dist/types/components/InputTag/InputTag.d.ts +79 -0
- package/dist/types/components/Layout/Layout.d.ts +48 -0
- package/dist/types/components/Layout/Row.d.ts +26 -0
- package/dist/types/components/Link/Link.d.ts +40 -0
- package/dist/types/components/Loading/Loading.d.ts +13 -0
- package/dist/types/components/Menu/Menu.d.ts +34 -0
- package/dist/types/components/Menu/MenuItem.d.ts +17 -0
- package/dist/types/components/Menu/SubMenu.d.ts +30 -0
- package/dist/types/components/Message/Message.d.ts +20 -0
- package/dist/types/components/Message/show-message.d.ts +13 -0
- package/dist/types/components/Notification/Notification.d.ts +33 -0
- package/dist/types/components/Notification/notify.d.ts +19 -0
- package/dist/types/components/PageHeader/PageHeader.d.ts +19 -0
- package/dist/types/components/Pagination/Pagination.d.ts +35 -0
- package/dist/types/components/Popconfirm/Popconfirm.d.ts +20 -0
- package/dist/types/components/Popover/Popover.d.ts +18 -0
- package/dist/types/components/Progress/Progress.d.ts +9 -0
- package/dist/types/components/Radio/Radio.d.ts +57 -0
- package/dist/types/components/Rate/Rate.d.ts +64 -0
- package/dist/types/components/Result/Result.d.ts +22 -0
- package/dist/types/components/Scrollbar/Scrollbar.d.ts +75 -0
- package/dist/types/components/Segmented/Segmented.d.ts +24 -0
- package/dist/types/components/Select/Select.d.ts +100 -0
- package/dist/types/components/Skeleton/Skeleton.d.ts +22 -0
- package/dist/types/components/Slider/Slider.d.ts +81 -0
- package/dist/types/components/Space/Space.d.ts +37 -0
- package/dist/types/components/Statistic/Statistic.d.ts +25 -0
- package/dist/types/components/Steps/Step.d.ts +7 -0
- package/dist/types/components/Steps/Steps.d.ts +15 -0
- package/dist/types/components/Switch/Switch.d.ts +58 -0
- package/dist/types/components/Table/Table.d.ts +184 -0
- package/dist/types/components/Tabs/TabPane.d.ts +12 -0
- package/dist/types/components/Tabs/Tabs.d.ts +32 -0
- package/dist/types/components/Tag/Tag.d.ts +21 -0
- package/dist/types/components/Text/Text.d.ts +37 -0
- package/dist/types/components/TimePicker/TimePicker.d.ts +62 -0
- package/dist/types/components/TimeSelect/TimeSelect.d.ts +69 -0
- package/dist/types/components/Timeline/Timeline.d.ts +16 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +28 -0
- package/dist/types/components/Tour/Tour.d.ts +39 -0
- package/dist/types/components/Transfer/Transfer.d.ts +73 -0
- package/dist/types/components/Tree/Tree.d.ts +113 -0
- package/dist/types/components/TreeSelect/TreeSelect.d.ts +71 -0
- package/dist/types/components/Upload/Upload.d.ts +55 -0
- package/dist/types/components/Watermark/Watermark.d.ts +25 -0
- package/dist/types/components.d.ts +8261 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/stencil-public-runtime.d.ts +1680 -0
- package/dist/types/utils/a11y.d.ts +66 -0
- package/dist/types/utils/click-outside.d.ts +20 -0
- package/dist/types/utils/date-helpers.d.ts +41 -0
- package/dist/types/utils/form-input-base.d.ts +62 -0
- package/dist/types/utils/popup-manager.d.ts +17 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +93 -0
- package/readme.md +111 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 无障碍(a11y)工具集
|
|
5
|
+
* 统一 ARIA 属性辅助、焦点陷阱、列表键盘导航等在交互组件(Dialog / Drawer / Menu /
|
|
6
|
+
* Dropdown / Select 等)中重复出现且容易写错的可访问性逻辑。
|
|
7
|
+
*
|
|
8
|
+
* 参考标准:WAI-ARIA Authoring Practices 1.2。
|
|
9
|
+
*/
|
|
10
|
+
/** 判定按键是否为「激活」键(Enter / Space),用于自定义可聚焦元素的点击替代 */
|
|
11
|
+
function isActivationKey(key) {
|
|
12
|
+
return key === 'Enter' || key === ' ' || key === 'Spacebar';
|
|
13
|
+
}
|
|
14
|
+
/** 查询容器内可聚焦的元素顺序(tabindex >= 0 的语义元素) */
|
|
15
|
+
const FOCUSABLE_SELECTOR = [
|
|
16
|
+
'a[href]',
|
|
17
|
+
'button:not([disabled])',
|
|
18
|
+
'textarea:not([disabled])',
|
|
19
|
+
'input:not([disabled])',
|
|
20
|
+
'select:not([disabled])',
|
|
21
|
+
'[tabindex]:not([tabindex="-1"])',
|
|
22
|
+
'[contenteditable="true"]',
|
|
23
|
+
].join(',');
|
|
24
|
+
function getFocusableElements(container) {
|
|
25
|
+
return Array.from(container.querySelectorAll(FOCUSABLE_SELECTOR)).filter((el) => el.getAttribute('aria-hidden') !== 'true' && el.style.display !== 'none');
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 创建焦点陷阱(Dialog / Drawer 打开时把 Tab 循环限制在容器内)。
|
|
29
|
+
* 关键点:Tab 与 Shift+Tab 在容器边界时回环到另一端,防止焦点逃逸到背景。
|
|
30
|
+
* 返回句柄,组件在打开时 connect()、关闭时 disconnect()。
|
|
31
|
+
*/
|
|
32
|
+
function createFocusTrap(options) {
|
|
33
|
+
const { container, autoFocus = true, returnFocusTo } = options;
|
|
34
|
+
let active = false;
|
|
35
|
+
let previouslyFocused = null;
|
|
36
|
+
const handleKeydown = (e) => {
|
|
37
|
+
if (e.key !== 'Tab')
|
|
38
|
+
return;
|
|
39
|
+
const focusable = getFocusableElements(container);
|
|
40
|
+
if (focusable.length === 0) {
|
|
41
|
+
e.preventDefault();
|
|
42
|
+
container.focus();
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const first = focusable[0];
|
|
46
|
+
const last = focusable[focusable.length - 1];
|
|
47
|
+
const activeEl = document.activeElement;
|
|
48
|
+
if (e.shiftKey) {
|
|
49
|
+
if (activeEl === first || !container.contains(activeEl)) {
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
last.focus();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
if (activeEl === last) {
|
|
56
|
+
e.preventDefault();
|
|
57
|
+
first.focus();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const connect = () => {
|
|
62
|
+
if (active)
|
|
63
|
+
return;
|
|
64
|
+
active = true;
|
|
65
|
+
previouslyFocused = (returnFocusTo ?? document.activeElement);
|
|
66
|
+
container.addEventListener('keydown', handleKeydown);
|
|
67
|
+
if (autoFocus) {
|
|
68
|
+
const focusable = getFocusableElements(container);
|
|
69
|
+
(focusable[0] ?? container).focus();
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const disconnect = () => {
|
|
73
|
+
if (!active)
|
|
74
|
+
return;
|
|
75
|
+
active = false;
|
|
76
|
+
container.removeEventListener('keydown', handleKeydown);
|
|
77
|
+
if (previouslyFocused && typeof previouslyFocused.focus === 'function') {
|
|
78
|
+
previouslyFocused.focus();
|
|
79
|
+
}
|
|
80
|
+
previouslyFocused = null;
|
|
81
|
+
};
|
|
82
|
+
return { connect, disconnect };
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* 列表 / 菜单 / 下拉选项的键盘导航核心逻辑(listbox / menu / combobox 通用)。
|
|
86
|
+
* 返回应执行的动作,由调用方据此更新 activeIndex / 触发选中 / 关闭。
|
|
87
|
+
*
|
|
88
|
+
* 支持:ArrowDown/ArrowUp(竖排)/ArrowRight/ArrowLeft(横排)移动、Home/End 跳首尾、
|
|
89
|
+
* Enter/Space 选中、Escape 关闭。
|
|
90
|
+
*/
|
|
91
|
+
function handleListKeyboard(event, options) {
|
|
92
|
+
const { activeIndex, itemCount, loop = true } = options;
|
|
93
|
+
if (itemCount <= 0)
|
|
94
|
+
return { type: 'none' };
|
|
95
|
+
const clamp = (idx) => (idx + itemCount) % itemCount;
|
|
96
|
+
const within = (idx) => Math.max(0, Math.min(idx, itemCount - 1));
|
|
97
|
+
switch (event.key) {
|
|
98
|
+
case 'ArrowDown':
|
|
99
|
+
case 'ArrowRight':
|
|
100
|
+
return { type: 'navigate', index: loop ? clamp(activeIndex + 1) : within(activeIndex + 1) };
|
|
101
|
+
case 'ArrowUp':
|
|
102
|
+
case 'ArrowLeft':
|
|
103
|
+
return { type: 'navigate', index: loop ? clamp(activeIndex - 1) : within(activeIndex - 1) };
|
|
104
|
+
case 'Home':
|
|
105
|
+
return { type: 'navigate', index: 0 };
|
|
106
|
+
case 'End':
|
|
107
|
+
return { type: 'navigate', index: itemCount - 1 };
|
|
108
|
+
case 'Enter':
|
|
109
|
+
case ' ':
|
|
110
|
+
case 'Spacebar':
|
|
111
|
+
return activeIndex >= 0 ? { type: 'select', index: activeIndex } : { type: 'none' };
|
|
112
|
+
case 'Escape':
|
|
113
|
+
return { type: 'close' };
|
|
114
|
+
default:
|
|
115
|
+
return { type: 'none' };
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
exports.createFocusTrap = createFocusTrap;
|
|
120
|
+
exports.handleListKeyboard = handleListKeyboard;
|
|
121
|
+
exports.isActivationKey = isActivationKey;
|
|
122
|
+
|
|
123
|
+
//# sourceMappingURL=a11y-802de67a.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"a11y-802de67a.js","mappings":"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","names":[],"sources":["src/utils/a11y.ts"],"sourcesContent":["/**\n * 无障碍(a11y)工具集\n * 统一 ARIA 属性辅助、焦点陷阱、列表键盘导航等在交互组件(Dialog / Drawer / Menu /\n * Dropdown / Select 等)中重复出现且容易写错的可访问性逻辑。\n *\n * 参考标准:WAI-ARIA Authoring Practices 1.2。\n */\n\n/** 判定按键是否为「激活」键(Enter / Space),用于自定义可聚焦元素的点击替代 */\nexport function isActivationKey(key: string | undefined): boolean {\n return key === 'Enter' || key === ' ' || key === 'Spacebar';\n}\n\n/** 查询容器内可聚焦的元素顺序(tabindex >= 0 的语义元素) */\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button:not([disabled])',\n 'textarea:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n '[contenteditable=\"true\"]',\n].join(',');\n\nexport function getFocusableElements(container: HTMLElement): HTMLElement[] {\n return Array.from(container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)).filter(\n (el) => el.getAttribute('aria-hidden') !== 'true' && el.style.display !== 'none',\n );\n}\n\n/** 焦点陷阱选项 */\nexport interface FocusTrapOptions {\n /** 焦点受限的容器元素 */\n container: HTMLElement;\n /** 打开时是否自动聚焦容器内首个可聚焦元素 */\n autoFocus?: boolean;\n /** 容器激活前的元素(用于关闭时归还焦点) */\n returnFocusTo?: HTMLElement | null;\n}\n\n/** 焦点陷阱句柄 */\nexport interface FocusTrap {\n /** 启用:绑定 Tab 拦截,可选自动聚焦 */\n connect: () => void;\n /** 关闭:解除拦截,归还焦点 */\n disconnect: () => void;\n}\n\n/**\n * 创建焦点陷阱(Dialog / Drawer 打开时把 Tab 循环限制在容器内)。\n * 关键点:Tab 与 Shift+Tab 在容器边界时回环到另一端,防止焦点逃逸到背景。\n * 返回句柄,组件在打开时 connect()、关闭时 disconnect()。\n */\nexport function createFocusTrap(options: FocusTrapOptions): FocusTrap {\n const { container, autoFocus = true, returnFocusTo } = options;\n let active = false;\n let previouslyFocused: HTMLElement | null = null;\n\n const handleKeydown = (e: KeyboardEvent) => {\n if (e.key !== 'Tab') return;\n const focusable = getFocusableElements(container);\n if (focusable.length === 0) {\n e.preventDefault();\n container.focus();\n return;\n }\n const first = focusable[0];\n const last = focusable[focusable.length - 1];\n const activeEl = document.activeElement;\n\n if (e.shiftKey) {\n if (activeEl === first || !container.contains(activeEl)) {\n e.preventDefault();\n last.focus();\n }\n } else {\n if (activeEl === last) {\n e.preventDefault();\n first.focus();\n }\n }\n };\n\n const connect = () => {\n if (active) return;\n active = true;\n previouslyFocused = (returnFocusTo ?? document.activeElement) as HTMLElement | null;\n container.addEventListener('keydown', handleKeydown);\n if (autoFocus) {\n const focusable = getFocusableElements(container);\n (focusable[0] ?? container).focus();\n }\n };\n\n const disconnect = () => {\n if (!active) return;\n active = false;\n container.removeEventListener('keydown', handleKeydown);\n if (previouslyFocused && typeof previouslyFocused.focus === 'function') {\n previouslyFocused.focus();\n }\n previouslyFocused = null;\n };\n\n return { connect, disconnect };\n}\n\n/** 列表键盘导航产生的动作 */\nexport type ListKeyAction =\n | { type: 'navigate'; index: number }\n | { type: 'select'; index: number }\n | { type: 'close' }\n | { type: 'none' };\n\n/** 列表键盘导航参数 */\nexport interface ListKeyboardOptions {\n /** 当前高亮项索引(-1 表示无高亮) */\n activeIndex: number;\n /** 列表项总数 */\n itemCount: number;\n /** 是否允许循环(首尾跳转) */\n loop?: boolean;\n}\n\n/**\n * 列表 / 菜单 / 下拉选项的键盘导航核心逻辑(listbox / menu / combobox 通用)。\n * 返回应执行的动作,由调用方据此更新 activeIndex / 触发选中 / 关闭。\n *\n * 支持:ArrowDown/ArrowUp(竖排)/ArrowRight/ArrowLeft(横排)移动、Home/End 跳首尾、\n * Enter/Space 选中、Escape 关闭。\n */\nexport function handleListKeyboard(event: KeyboardEvent, options: ListKeyboardOptions): ListKeyAction {\n const { activeIndex, itemCount, loop = true } = options;\n if (itemCount <= 0) return { type: 'none' };\n\n const clamp = (idx: number) => (idx + itemCount) % itemCount;\n const within = (idx: number) => Math.max(0, Math.min(idx, itemCount - 1));\n\n switch (event.key) {\n case 'ArrowDown':\n case 'ArrowRight':\n return { type: 'navigate', index: loop ? clamp(activeIndex + 1) : within(activeIndex + 1) };\n case 'ArrowUp':\n case 'ArrowLeft':\n return { type: 'navigate', index: loop ? clamp(activeIndex - 1) : within(activeIndex - 1) };\n case 'Home':\n return { type: 'navigate', index: 0 };\n case 'End':\n return { type: 'navigate', index: itemCount - 1 };\n case 'Enter':\n case ' ':\n case 'Spacebar':\n return activeIndex >= 0 ? { type: 'select', index: activeIndex } : { type: 'none' };\n case 'Escape':\n return { type: 'close' };\n default:\n return { type: 'none' };\n }\n}\n\n/**\n * 为元素批量设置 ARIA 属性(不可变:返回新映射,但直接操作 DOM 属性是 a11y 的固有需求)。\n * 组件挂载后调用一次即可,避免每次 render 重复写 setAttribute。\n */\nexport function applyAria(el: HTMLElement, attrs: Record<string, string | boolean | undefined>): void {\n Object.entries(attrs).forEach(([key, value]) => {\n if (value === undefined || value === null) {\n el.removeAttribute(`aria-${key}`);\n } else {\n el.setAttribute(`aria-${key}`, String(value));\n }\n });\n}\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"app-globals-3a1e7e63.js","mappings":";;AAAY,MAAC,aAAa,GAAG,MAAM;;;;","names":[],"sources":["@stencil/core/internal/app-globals"],"sourcesContent":["export const globalScripts = () => {};\n"],"version":3}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 点击外部检测工具
|
|
5
|
+
* 统一管理 document click 事件监听,用于下拉/弹出组件的关闭逻辑
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* 创建点击外部处理器
|
|
9
|
+
* 返回清理函数,用于在 disconnectedCallback 中移除监听
|
|
10
|
+
*/
|
|
11
|
+
function createClickOutsideHandler(options) {
|
|
12
|
+
const handler = (e) => {
|
|
13
|
+
if (!options.isOpen())
|
|
14
|
+
return;
|
|
15
|
+
const target = e.target;
|
|
16
|
+
if (!options.host.contains(target)) {
|
|
17
|
+
options.onClose();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const connect = () => document.addEventListener('click', handler);
|
|
21
|
+
const disconnect = () => document.removeEventListener('click', handler);
|
|
22
|
+
return { connect, disconnect };
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
exports.createClickOutsideHandler = createClickOutsideHandler;
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=click-outside-3fcc00dd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"click-outside-3fcc00dd.js","mappings":";;AAAA;;;;AAcA;;;;SAIgB,yBAAyB,CAAC,OAA4B;IACpE,MAAM,OAAO,GAAG,CAAC,CAAa;QAC5B,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YAAE,OAAO;QAC9B,MAAM,MAAM,GAAG,CAAC,CAAC,MAAqB,CAAC;QACvC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;YAClC,OAAO,CAAC,OAAO,EAAE,CAAC;SACnB;KACF,CAAC;IAEF,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,MAAM,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAExE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACjC;;;;","names":[],"sources":["src/utils/click-outside.ts"],"sourcesContent":["/**\n * 点击外部检测工具\n * 统一管理 document click 事件监听,用于下拉/弹出组件的关闭逻辑\n */\n\nexport interface ClickOutsideOptions {\n /** 需要检测的宿主元素 */\n host: HTMLElement;\n /** 当前是否打开状态(避免不必要的检查) */\n isOpen: () => boolean;\n /** 关闭回调 */\n onClose: () => void;\n}\n\n/**\n * 创建点击外部处理器\n * 返回清理函数,用于在 disconnectedCallback 中移除监听\n */\nexport function createClickOutsideHandler(options: ClickOutsideOptions) {\n const handler = (e: MouseEvent) => {\n if (!options.isOpen()) return;\n const target = e.target as HTMLElement;\n if (!options.host.contains(target)) {\n options.onClose();\n }\n };\n\n const connect = () => document.addEventListener('click', handler);\n const disconnect = () => document.removeEventListener('click', handler);\n\n return { connect, disconnect };\n}\n"],"version":3}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 日历和日期工具函数
|
|
5
|
+
* 从 DatePicker / DateTimePicker / DatePickerPane 中提取的共享逻辑
|
|
6
|
+
*/
|
|
7
|
+
/** 判断两个日期是否为同一天 */
|
|
8
|
+
function isSameDay(date1, date2) {
|
|
9
|
+
return (date1.getFullYear() === date2.getFullYear() &&
|
|
10
|
+
date1.getMonth() === date2.getMonth() &&
|
|
11
|
+
date1.getDate() === date2.getDate());
|
|
12
|
+
}
|
|
13
|
+
/** 生成 42 天(6 周)的日历网格数据 */
|
|
14
|
+
function getCalendarDays(viewDate, selectedDate, today = new Date()) {
|
|
15
|
+
const days = [];
|
|
16
|
+
const year = viewDate.getFullYear();
|
|
17
|
+
const month = viewDate.getMonth();
|
|
18
|
+
const firstDay = new Date(year, month, 1);
|
|
19
|
+
const lastDay = new Date(year, month + 1, 0);
|
|
20
|
+
const firstDayWeek = firstDay.getDay();
|
|
21
|
+
const daysInMonth = lastDay.getDate();
|
|
22
|
+
// 上月填充
|
|
23
|
+
const prevMonth = new Date(year, month - 1, 0);
|
|
24
|
+
for (let i = firstDayWeek - 1; i >= 0; i--) {
|
|
25
|
+
const date = new Date(year, month - 1, prevMonth.getDate() - i);
|
|
26
|
+
days.push({
|
|
27
|
+
date,
|
|
28
|
+
isCurrentMonth: false,
|
|
29
|
+
isToday: isSameDay(date, today),
|
|
30
|
+
isSelected: !!selectedDate && isSameDay(date, selectedDate),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
// 当月日期
|
|
34
|
+
for (let i = 1; i <= daysInMonth; i++) {
|
|
35
|
+
const date = new Date(year, month, i);
|
|
36
|
+
days.push({
|
|
37
|
+
date,
|
|
38
|
+
isCurrentMonth: true,
|
|
39
|
+
isToday: isSameDay(date, today),
|
|
40
|
+
isSelected: !!selectedDate && isSameDay(date, selectedDate),
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
// 下月填充(补齐 42 天)
|
|
44
|
+
const remainingDays = 42 - days.length;
|
|
45
|
+
for (let i = 1; i <= remainingDays; i++) {
|
|
46
|
+
const date = new Date(year, month + 1, i);
|
|
47
|
+
days.push({
|
|
48
|
+
date,
|
|
49
|
+
isCurrentMonth: false,
|
|
50
|
+
isToday: isSameDay(date, today),
|
|
51
|
+
isSelected: !!selectedDate && isSameDay(date, selectedDate),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
return days;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 格式化日期为指定格式字符串
|
|
58
|
+
* 支持:YYYY, MM, DD, HH, mm, ss
|
|
59
|
+
*/
|
|
60
|
+
function formatDate(date, format) {
|
|
61
|
+
const year = date.getFullYear();
|
|
62
|
+
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
63
|
+
const day = String(date.getDate()).padStart(2, '0');
|
|
64
|
+
const hours = String(date.getHours()).padStart(2, '0');
|
|
65
|
+
const minutes = String(date.getMinutes()).padStart(2, '0');
|
|
66
|
+
const seconds = String(date.getSeconds()).padStart(2, '0');
|
|
67
|
+
return format
|
|
68
|
+
.replace('YYYY', String(year))
|
|
69
|
+
.replace('MM', month)
|
|
70
|
+
.replace('DD', day)
|
|
71
|
+
.replace('HH', hours)
|
|
72
|
+
.replace('mm', minutes)
|
|
73
|
+
.replace('ss', seconds);
|
|
74
|
+
}
|
|
75
|
+
/** 安全解析日期值 */
|
|
76
|
+
function parseDate(value) {
|
|
77
|
+
if (!value)
|
|
78
|
+
return undefined;
|
|
79
|
+
const date = value instanceof Date ? value : new Date(value);
|
|
80
|
+
if (isNaN(date.getTime()))
|
|
81
|
+
return undefined;
|
|
82
|
+
return date;
|
|
83
|
+
}
|
|
84
|
+
/** 月份偏移,返回新日期对象(不可变) */
|
|
85
|
+
function addMonths(date, delta) {
|
|
86
|
+
const result = new Date(date);
|
|
87
|
+
result.setMonth(result.getMonth() + delta);
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
90
|
+
/** 年份偏移,返回新日期对象(不可变) */
|
|
91
|
+
function addYears(date, delta) {
|
|
92
|
+
const result = new Date(date);
|
|
93
|
+
result.setFullYear(result.getFullYear() + delta);
|
|
94
|
+
return result;
|
|
95
|
+
}
|
|
96
|
+
function getCalendarYears(viewDate, selectedDate, startYearBase) {
|
|
97
|
+
const year = viewDate.getFullYear();
|
|
98
|
+
const rangeStart = startYearBase ?? year - (year % 12);
|
|
99
|
+
const years = [];
|
|
100
|
+
for (let i = 0; i < 12; i++) {
|
|
101
|
+
const y = rangeStart + i;
|
|
102
|
+
years.push({
|
|
103
|
+
year: y,
|
|
104
|
+
isCurrentYearRange: y === year,
|
|
105
|
+
isSelected: !!selectedDate && selectedDate.getFullYear() === y,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
return years;
|
|
109
|
+
}
|
|
110
|
+
/** 获取 years 视图标题所显示的年份档区间起点 */
|
|
111
|
+
function getYearRangeStart(viewDate) {
|
|
112
|
+
const year = viewDate.getFullYear();
|
|
113
|
+
return year - (year % 12);
|
|
114
|
+
}
|
|
115
|
+
/** 中文月份名称 */
|
|
116
|
+
const MONTH_NAMES = [
|
|
117
|
+
'一月', '二月', '三月', '四月', '五月', '六月',
|
|
118
|
+
'七月', '八月', '九月', '十月', '十一月', '十二月',
|
|
119
|
+
];
|
|
120
|
+
/** 中文星期名称 */
|
|
121
|
+
const WEEK_DAY_NAMES = ['日', '一', '二', '三', '四', '五', '六'];
|
|
122
|
+
|
|
123
|
+
exports.MONTH_NAMES = MONTH_NAMES;
|
|
124
|
+
exports.WEEK_DAY_NAMES = WEEK_DAY_NAMES;
|
|
125
|
+
exports.addMonths = addMonths;
|
|
126
|
+
exports.addYears = addYears;
|
|
127
|
+
exports.formatDate = formatDate;
|
|
128
|
+
exports.getCalendarDays = getCalendarDays;
|
|
129
|
+
exports.getCalendarYears = getCalendarYears;
|
|
130
|
+
exports.getYearRangeStart = getYearRangeStart;
|
|
131
|
+
exports.isSameDay = isSameDay;
|
|
132
|
+
exports.parseDate = parseDate;
|
|
133
|
+
|
|
134
|
+
//# sourceMappingURL=date-helpers-904747ff.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"date-helpers-904747ff.js","mappings":"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","names":[],"sources":["src/utils/date-helpers.ts"],"sourcesContent":["/**\n * 日历和日期工具函数\n * 从 DatePicker / DateTimePicker / DatePickerPane 中提取的共享逻辑\n */\n\nexport interface CalendarDay {\n date: Date;\n isCurrentMonth: boolean;\n isToday: boolean;\n isSelected: boolean;\n}\n\n/** 判断两个日期是否为同一天 */\nexport function isSameDay(date1: Date, date2: Date): boolean {\n return (\n date1.getFullYear() === date2.getFullYear() &&\n date1.getMonth() === date2.getMonth() &&\n date1.getDate() === date2.getDate()\n );\n}\n\n/** 生成 42 天(6 周)的日历网格数据 */\nexport function getCalendarDays(\n viewDate: Date,\n selectedDate?: Date,\n today: Date = new Date()\n): CalendarDay[] {\n const days: CalendarDay[] = [];\n const year = viewDate.getFullYear();\n const month = viewDate.getMonth();\n\n const firstDay = new Date(year, month, 1);\n const lastDay = new Date(year, month + 1, 0);\n const firstDayWeek = firstDay.getDay();\n const daysInMonth = lastDay.getDate();\n\n // 上月填充\n const prevMonth = new Date(year, month - 1, 0);\n for (let i = firstDayWeek - 1; i >= 0; i--) {\n const date = new Date(year, month - 1, prevMonth.getDate() - i);\n days.push({\n date,\n isCurrentMonth: false,\n isToday: isSameDay(date, today),\n isSelected: !!selectedDate && isSameDay(date, selectedDate),\n });\n }\n\n // 当月日期\n for (let i = 1; i <= daysInMonth; i++) {\n const date = new Date(year, month, i);\n days.push({\n date,\n isCurrentMonth: true,\n isToday: isSameDay(date, today),\n isSelected: !!selectedDate && isSameDay(date, selectedDate),\n });\n }\n\n // 下月填充(补齐 42 天)\n const remainingDays = 42 - days.length;\n for (let i = 1; i <= remainingDays; i++) {\n const date = new Date(year, month + 1, i);\n days.push({\n date,\n isCurrentMonth: false,\n isToday: isSameDay(date, today),\n isSelected: !!selectedDate && isSameDay(date, selectedDate),\n });\n }\n\n return days;\n}\n\n/**\n * 格式化日期为指定格式字符串\n * 支持:YYYY, MM, DD, HH, mm, ss\n */\nexport function formatDate(date: Date, format: string): string {\n const year = date.getFullYear();\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const day = String(date.getDate()).padStart(2, '0');\n const hours = String(date.getHours()).padStart(2, '0');\n const minutes = String(date.getMinutes()).padStart(2, '0');\n const seconds = String(date.getSeconds()).padStart(2, '0');\n\n return format\n .replace('YYYY', String(year))\n .replace('MM', month)\n .replace('DD', day)\n .replace('HH', hours)\n .replace('mm', minutes)\n .replace('ss', seconds);\n}\n\n/** 安全解析日期值 */\nexport function parseDate(value: string | Date | undefined): Date | undefined {\n if (!value) return undefined;\n const date = value instanceof Date ? value : new Date(value);\n if (isNaN(date.getTime())) return undefined;\n return date;\n}\n\n/** 月份偏移,返回新日期对象(不可变) */\nexport function addMonths(date: Date, delta: number): Date {\n const result = new Date(date);\n result.setMonth(result.getMonth() + delta);\n return result;\n}\n\n/** 年份偏移,返回新日期对象(不可变) */\nexport function addYears(date: Date, delta: number): Date {\n const result = new Date(date);\n result.setFullYear(result.getFullYear() + delta);\n return result;\n}\n\n/**\n * 生成 years 视图的 12 年档数据(每档 12 年)。\n * 以 viewDate 所在年份向下取整到 12 的倍数作为起点。\n */\nexport interface CalendarYear {\n year: number;\n isCurrentYearRange: boolean;\n isSelected: boolean;\n}\n\nexport function getCalendarYears(\n viewDate: Date,\n selectedDate?: Date,\n startYearBase?: number\n): CalendarYear[] {\n const year = viewDate.getFullYear();\n const rangeStart = startYearBase ?? year - (year % 12);\n const years: CalendarYear[] = [];\n for (let i = 0; i < 12; i++) {\n const y = rangeStart + i;\n years.push({\n year: y,\n isCurrentYearRange: y === year,\n isSelected: !!selectedDate && selectedDate.getFullYear() === y,\n });\n }\n return years;\n}\n\n/** 获取 years 视图标题所显示的年份档区间起点 */\nexport function getYearRangeStart(viewDate: Date): number {\n const year = viewDate.getFullYear();\n return year - (year % 12);\n}\n\n/** 中文月份名称 */\nexport const MONTH_NAMES = [\n '一月', '二月', '三月', '四月', '五月', '六月',\n '七月', '八月', '九月', '十月', '十一月', '十二月',\n];\n\n/** 中文星期名称 */\nexport const WEEK_DAY_NAMES = ['日', '一', '二', '三', '四', '五', '六'];\n"],"version":3}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-5aa5c817.js');
|
|
6
|
+
|
|
7
|
+
const affixCss = "/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;tab-size:4;-webkit-tap-highlight-color:transparent}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex;padding-block:0}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.fixed{position:fixed}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}} /*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;:host{display:block}.hb-affix{box-sizing:border-box;display:block;transition:none;width:100%}.hb-affix--fixed{background-color:var(--hb-color-bg-container);box-shadow:var(--hb-box-shadow)}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}";
|
|
8
|
+
const HbAffixStyle0 = affixCss;
|
|
9
|
+
|
|
10
|
+
const Affix = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.hbChange = index.createEvent(this, "hbChange", 7);
|
|
14
|
+
}
|
|
15
|
+
get host() { return index.getElement(this); }
|
|
16
|
+
/** 距离窗口顶部达到指定偏移后触发固定 */
|
|
17
|
+
top = 0;
|
|
18
|
+
/** 距离窗口底部达到指定偏移后触发固定(与 top 互斥,优先 bottom) */
|
|
19
|
+
bottom;
|
|
20
|
+
/** 自定义滚动容器 selector(默认 window) */
|
|
21
|
+
target = '';
|
|
22
|
+
/** 当前是否处于固定状态 */
|
|
23
|
+
affixed = false;
|
|
24
|
+
/** 固定状态变化事件,detail 为当前 affixed 布尔值 */
|
|
25
|
+
hbChange;
|
|
26
|
+
scrollTarget = null;
|
|
27
|
+
componentDidLoad() {
|
|
28
|
+
this.scrollTarget = this.resolveTarget();
|
|
29
|
+
if (this.scrollTarget) {
|
|
30
|
+
this.scrollTarget.addEventListener('scroll', this.handleScroll, { passive: true });
|
|
31
|
+
}
|
|
32
|
+
// Note: 真实浏览器在首次 layout 后测量;jsdom 无布局,此处不立即测量,
|
|
33
|
+
// 避免在不精确的 getBoundingClientRect 下误触发 affixed。
|
|
34
|
+
}
|
|
35
|
+
disconnectedCallback() {
|
|
36
|
+
if (this.scrollTarget) {
|
|
37
|
+
this.scrollTarget.removeEventListener('scroll', this.handleScroll);
|
|
38
|
+
this.scrollTarget = null;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
resolveTarget() {
|
|
42
|
+
if (typeof window === 'undefined') {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
if (this.target) {
|
|
46
|
+
const el = document.querySelector(this.target);
|
|
47
|
+
return el || window;
|
|
48
|
+
}
|
|
49
|
+
return window;
|
|
50
|
+
}
|
|
51
|
+
updateAffixed(next) {
|
|
52
|
+
if (next === this.affixed) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
this.affixed = next;
|
|
56
|
+
this.hbChange.emit(next);
|
|
57
|
+
}
|
|
58
|
+
handleScroll = () => {
|
|
59
|
+
const host = this.host;
|
|
60
|
+
if (!host) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const rect = host.getBoundingClientRect();
|
|
64
|
+
if (this.bottom !== undefined) {
|
|
65
|
+
const viewportH = window.innerHeight || 0;
|
|
66
|
+
this.updateAffixed(rect.bottom > viewportH - this.bottom);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
this.updateAffixed(rect.top <= this.top);
|
|
70
|
+
};
|
|
71
|
+
onTestScroll() {
|
|
72
|
+
// 测试钩子:jsdom 无真实滚动,通过事件触发一次测量
|
|
73
|
+
this.handleScroll();
|
|
74
|
+
}
|
|
75
|
+
get fixedStyle() {
|
|
76
|
+
if (this.bottom !== undefined) {
|
|
77
|
+
return {
|
|
78
|
+
position: 'fixed',
|
|
79
|
+
bottom: `${this.bottom}px`,
|
|
80
|
+
left: '0',
|
|
81
|
+
right: '0',
|
|
82
|
+
zIndex: 'var(--hb-z-index-fixed)',
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
position: 'fixed',
|
|
87
|
+
top: `${this.top}px`,
|
|
88
|
+
left: '0',
|
|
89
|
+
right: '0',
|
|
90
|
+
zIndex: 'var(--hb-z-index-fixed)',
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
render() {
|
|
94
|
+
return (index.h("div", { key: 'e342673fa2ca768295c96ba2ba6f06c9dee2f38f', class: { 'hb-affix': true, 'hb-affix--fixed': this.affixed }, style: this.affixed ? this.fixedStyle : undefined }, index.h("slot", { key: 'fd66d7c127a33851bd0ca92a4e42f87a2a623ca7' })));
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
Affix.style = HbAffixStyle0;
|
|
98
|
+
|
|
99
|
+
exports.hb_affix = Affix;
|
|
100
|
+
|
|
101
|
+
//# sourceMappingURL=hb-affix.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"hb-affix.entry.cjs.js","mappings":"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","names":["h"],"sources":["src/components/Affix/affix.css?tag=hb-affix&encapsulation=shadow","src/components/Affix/Affix.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.hb-affix {\n display: block;\n width: 100%;\n box-sizing: border-box;\n transition: none;\n}\n\n.hb-affix--fixed {\n box-shadow: var(--hb-box-shadow);\n background-color: var(--hb-color-bg-container);\n}\n","import { Component, h, Prop, State, Event, EventEmitter, Listen, Element } from '@stencil/core';\n\n/**\n * Affix 固钉组件\n * 将页面元素固定在可视范围内,滚动超过阈值后吸附在顶部或底部\n */\n@Component({\n tag: 'hb-affix',\n styleUrl: 'affix.css',\n shadow: true,\n})\nexport class Affix {\n @Element() host!: HTMLElement;\n\n /** 距离窗口顶部达到指定偏移后触发固定 */\n @Prop() top: number = 0;\n\n /** 距离窗口底部达到指定偏移后触发固定(与 top 互斥,优先 bottom) */\n @Prop() bottom: number | undefined;\n\n /** 自定义滚动容器 selector(默认 window) */\n @Prop() target: string = '';\n\n /** 当前是否处于固定状态 */\n @State() affixed: boolean = false;\n\n /** 固定状态变化事件,detail 为当前 affixed 布尔值 */\n @Event() hbChange: EventEmitter<boolean>;\n\n private scrollTarget: Window | HTMLElement | null = null;\n\n componentDidLoad() {\n this.scrollTarget = this.resolveTarget();\n if (this.scrollTarget) {\n this.scrollTarget.addEventListener('scroll', this.handleScroll, { passive: true });\n }\n // Note: 真实浏览器在首次 layout 后测量;jsdom 无布局,此处不立即测量,\n // 避免在不精确的 getBoundingClientRect 下误触发 affixed。\n }\n\n disconnectedCallback() {\n if (this.scrollTarget) {\n this.scrollTarget.removeEventListener('scroll', this.handleScroll);\n this.scrollTarget = null;\n }\n }\n\n private resolveTarget(): Window | HTMLElement | null {\n if (typeof window === 'undefined') {\n return null;\n }\n if (this.target) {\n const el = document.querySelector(this.target);\n return (el as HTMLElement) || window;\n }\n return window;\n }\n\n private updateAffixed(next: boolean) {\n if (next === this.affixed) {\n return;\n }\n this.affixed = next;\n this.hbChange.emit(next);\n }\n\n private handleScroll = () => {\n const host = this.host;\n if (!host) {\n return;\n }\n const rect = host.getBoundingClientRect();\n\n if (this.bottom !== undefined) {\n const viewportH = window.innerHeight || 0;\n this.updateAffixed(rect.bottom > viewportH - this.bottom);\n return;\n }\n this.updateAffixed(rect.top <= this.top);\n };\n\n @Listen('hbTestScroll')\n onTestScroll() {\n // 测试钩子:jsdom 无真实滚动,通过事件触发一次测量\n this.handleScroll();\n }\n\n private get fixedStyle(): Record<string, string> {\n if (this.bottom !== undefined) {\n return {\n position: 'fixed',\n bottom: `${this.bottom}px`,\n left: '0',\n right: '0',\n zIndex: 'var(--hb-z-index-fixed)',\n };\n }\n return {\n position: 'fixed',\n top: `${this.top}px`,\n left: '0',\n right: '0',\n zIndex: 'var(--hb-z-index-fixed)',\n };\n }\n\n render() {\n return (\n <div\n class={{ 'hb-affix': true, 'hb-affix--fixed': this.affixed }}\n style={this.affixed ? this.fixedStyle : undefined}\n >\n <slot />\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-5aa5c817.js');
|
|
6
|
+
|
|
7
|
+
const alertCss = "/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;tab-size:4;-webkit-tap-highlight-color:transparent}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex;padding-block:0}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}} /*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;:host{display:block}.hb-alert{align-items:flex-start;border-radius:var(--hb-border-radius-base);display:flex;font-size:var(--hb-font-size-sm);gap:var(--hb-spacing-xs);line-height:1.5;padding:var(--hb-spacing-sm)var(--hb-spacing-md)}.hb-alert--center{justify-content:center;text-align:center}.hb-alert__icon{flex-shrink:0;font-size:16px;margin-top:2px}.hb-alert__body{flex:1}.hb-alert__title{font-weight:600}.hb-alert__description{font-size:var(--hb-font-size-xs);margin-top:4px;opacity:.85}.hb-alert__close{cursor:pointer;flex-shrink:0;font-size:16px;opacity:.6}.hb-alert__close:hover{opacity:1}.hb-alert--success{background:var(--hb-color-success-bg);border:1px solid var(--hb-color-success-border);color:var(--hb-color-success)}.hb-alert--warning{background:var(--hb-color-warning-bg);border:1px solid var(--hb-color-warning-border);color:var(--hb-color-warning)}.hb-alert--error{background:var(--hb-color-danger-bg);border:1px solid var(--hb-color-danger-border);color:var(--hb-color-danger)}.hb-alert--info{background:var(--hb-color-primary-bg);border:1px solid var(--hb-color-primary-border);color:var(--hb-color-primary)}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}";
|
|
8
|
+
const HbAlertStyle0 = alertCss;
|
|
9
|
+
|
|
10
|
+
const Alert = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.hbClose = index.createEvent(this, "hbClose", 7);
|
|
14
|
+
}
|
|
15
|
+
/** 标题 */
|
|
16
|
+
title = '';
|
|
17
|
+
/** 描述文字 */
|
|
18
|
+
description;
|
|
19
|
+
/** 类型 */
|
|
20
|
+
type = 'info';
|
|
21
|
+
/** 是否可关闭 */
|
|
22
|
+
closable = false;
|
|
23
|
+
/** 是否显示图标 */
|
|
24
|
+
showIcon = true;
|
|
25
|
+
/** 是否居中 */
|
|
26
|
+
center = false;
|
|
27
|
+
closed = false;
|
|
28
|
+
hbClose;
|
|
29
|
+
handleClose = () => {
|
|
30
|
+
this.closed = true;
|
|
31
|
+
this.hbClose.emit();
|
|
32
|
+
};
|
|
33
|
+
render() {
|
|
34
|
+
if (this.closed)
|
|
35
|
+
return null;
|
|
36
|
+
const icons = { success: '✓', warning: '⚠', info: 'ℹ', error: '✕' };
|
|
37
|
+
// error/warning 是紧急通告 → role=alert(断言式,屏幕阅读器即时朗读);
|
|
38
|
+
// info/success 是状态信息 → role=status(礼貌式,不打断)。
|
|
39
|
+
const liveRole = this.type === 'error' || this.type === 'warning' ? 'alert' : 'status';
|
|
40
|
+
return (index.h("div", { class: { 'hb-alert': true, [`hb-alert--${this.type}`]: true, 'hb-alert--center': this.center, 'hb-alert--with-description': !!this.description }, role: liveRole }, this.showIcon && index.h("span", { class: "hb-alert__icon", "aria-hidden": "true" }, icons[this.type]), index.h("div", { class: "hb-alert__body" }, index.h("div", { class: "hb-alert__title" }, this.title), this.description && index.h("div", { class: "hb-alert__description" }, this.description)), this.closable && index.h("span", { class: "hb-alert__close", role: "button", "aria-label": "\u5173\u95ED", tabIndex: 0, onClick: this.handleClose }, "\u00D7")));
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
Alert.style = HbAlertStyle0;
|
|
44
|
+
|
|
45
|
+
exports.hb_alert = Alert;
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=hb-alert.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"hb-alert.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,QAAQ,GAAG,otNAAotN,CAAC;AACtuN,sBAAe,QAAQ;;MCUV,KAAK;;;;;;IAER,KAAK,GAAW,EAAE,CAAC;;IAGnB,WAAW,CAAU;;IAGrB,IAAI,GAA6C,MAAM,CAAC;;IAGxD,QAAQ,GAAY,KAAK,CAAC;;IAG1B,QAAQ,GAAY,IAAI,CAAC;;IAGzB,MAAM,GAAY,KAAK,CAAC;IAEvB,MAAM,GAAY,KAAK,CAAC;IAExB,OAAO,CAAqB;IAE7B,WAAW,GAAG;QACpB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;KACrB,CAAC;IAEF,MAAM;QACJ,IAAI,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAC7B,MAAM,KAAK,GAA2B,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC;;;QAG5F,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;QACvF,QACEA,iBACE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,aAAa,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,EAAE,kBAAkB,EAAE,IAAI,CAAC,MAAM,EAAE,4BAA4B,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,EAChJ,IAAI,EAAE,QAAQ,IAEb,IAAI,CAAC,QAAQ,IAAIA,kBAAM,KAAK,EAAC,gBAAgB,iBAAa,MAAM,IAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAQ,EAC3FA,iBAAK,KAAK,EAAC,gBAAgB,IACzBA,iBAAK,KAAK,EAAC,iBAAiB,IAAE,IAAI,CAAC,KAAK,CAAO,EAC9C,IAAI,CAAC,WAAW,IAAIA,iBAAK,KAAK,EAAC,uBAAuB,IAAE,IAAI,CAAC,WAAW,CAAO,CAC5E,EACL,IAAI,CAAC,QAAQ,IAAIA,kBAAM,KAAK,EAAC,iBAAiB,EAAC,IAAI,EAAC,QAAQ,gBAAY,cAAI,EAAC,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,WAAW,aAAU,CAC1H,EACN;KACH;;;;;;","names":["h"],"sources":["src/components/Alert/alert.css?tag=hb-alert&encapsulation=shadow","src/components/Alert/Alert.tsx"],"sourcesContent":[":host { display: block; }\n.hb-alert {\n display: flex; align-items: flex-start; gap: var(--hb-spacing-xs);\n padding: var(--hb-spacing-sm) var(--hb-spacing-md);\n border-radius: var(--hb-border-radius-base);\n font-size: var(--hb-font-size-sm);\n line-height: 1.5;\n}\n.hb-alert--center { justify-content: center; text-align: center; }\n.hb-alert__icon { font-size: 16px; margin-top: 2px; flex-shrink: 0; }\n.hb-alert__body { flex: 1; }\n.hb-alert__title { font-weight: 600; }\n.hb-alert__description { margin-top: 4px; font-size: var(--hb-font-size-xs); opacity: 0.85; }\n.hb-alert__close { cursor: pointer; font-size: 16px; opacity: 0.6; flex-shrink: 0; }\n.hb-alert__close:hover { opacity: 1; }\n\n.hb-alert--success { background: var(--hb-color-success-bg); color: var(--hb-color-success); border: 1px solid var(--hb-color-success-border); }\n.hb-alert--warning { background: var(--hb-color-warning-bg); color: var(--hb-color-warning); border: 1px solid var(--hb-color-warning-border); }\n.hb-alert--error { background: var(--hb-color-danger-bg); color: var(--hb-color-danger); border: 1px solid var(--hb-color-danger-border); }\n.hb-alert--info { background: var(--hb-color-primary-bg); color: var(--hb-color-primary); border: 1px solid var(--hb-color-primary-border); }\n","import { Component, h, Prop, Event, EventEmitter, State } from '@stencil/core';\n\n/**\n * Alert 警告提示组件\n * 展示需要关注的信息\n */\n@Component({\n tag: 'hb-alert',\n styleUrl: 'alert.css',\n shadow: true,\n})\nexport class Alert {\n /** 标题 */\n @Prop() title: string = '';\n\n /** 描述文字 */\n @Prop() description?: string;\n\n /** 类型 */\n @Prop() type: 'success' | 'warning' | 'info' | 'error' = 'info';\n\n /** 是否可关闭 */\n @Prop() closable: boolean = false;\n\n /** 是否显示图标 */\n @Prop() showIcon: boolean = true;\n\n /** 是否居中 */\n @Prop() center: boolean = false;\n\n @State() closed: boolean = false;\n\n @Event() hbClose: EventEmitter<void>;\n\n private handleClose = () => {\n this.closed = true;\n this.hbClose.emit();\n };\n\n render() {\n if (this.closed) return null;\n const icons: Record<string, string> = { success: '✓', warning: '⚠', info: 'ℹ', error: '✕' };\n // error/warning 是紧急通告 → role=alert(断言式,屏幕阅读器即时朗读);\n // info/success 是状态信息 → role=status(礼貌式,不打断)。\n const liveRole = this.type === 'error' || this.type === 'warning' ? 'alert' : 'status';\n return (\n <div\n class={{ 'hb-alert': true, [`hb-alert--${this.type}`]: true, 'hb-alert--center': this.center, 'hb-alert--with-description': !!this.description }}\n role={liveRole}\n >\n {this.showIcon && <span class=\"hb-alert__icon\" aria-hidden=\"true\">{icons[this.type]}</span>}\n <div class=\"hb-alert__body\">\n <div class=\"hb-alert__title\">{this.title}</div>\n {this.description && <div class=\"hb-alert__description\">{this.description}</div>}\n </div>\n {this.closable && <span class=\"hb-alert__close\" role=\"button\" aria-label=\"关闭\" tabIndex={0} onClick={this.handleClose}>×</span>}\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-5aa5c817.js');
|
|
6
|
+
|
|
7
|
+
const anchorCss = "/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;tab-size:4;-webkit-tap-highlight-color:transparent}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex;padding-block:0}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.sticky{position:sticky}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}} /*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;:host{display:inline-block}.hb-anchor{padding-left:var(--hb-spacing-md);position:relative}.hb-anchor__ink{background-color:var(--hb-color-border,var(--hb-color-fill-secondary));border-radius:var(--hb-border-radius-xs);bottom:0;left:0;position:absolute;top:0;width:2px}.hb-anchor__list{list-style:none;margin:0;padding:0}.hb-anchor__item{margin-bottom:var(--hb-spacing-xs)}.hb-anchor__item:last-child{margin-bottom:0}.hb-anchor__link{border-radius:var(--hb-border-radius-xs);color:var(--hb-color-text-secondary);cursor:pointer;display:inline-block;font-size:var(--hb-font-size-sm);line-height:1.5;padding:var(--hb-spacing-xxs)var(--hb-spacing-xs);text-decoration:none;transition:color var(--hb-transition-duration)var(--hb-transition-function)}.hb-anchor__link--active,.hb-anchor__link:hover{color:var(--hb-color-primary)}.hb-anchor__link--active{font-weight:500}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}";
|
|
8
|
+
const HbAnchorStyle0 = anchorCss;
|
|
9
|
+
|
|
10
|
+
const Anchor = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.hbClick = index.createEvent(this, "hbClick", 7);
|
|
14
|
+
}
|
|
15
|
+
/** 锚点项数组 */
|
|
16
|
+
items = [];
|
|
17
|
+
/** 距离窗口顶部偏移(固定时使用) */
|
|
18
|
+
top;
|
|
19
|
+
/** 是否启用固钉模式(affix 包裹) */
|
|
20
|
+
affix = true;
|
|
21
|
+
/** 当前选中项的 key */
|
|
22
|
+
activeKey = '';
|
|
23
|
+
/** 点击锚点项事件 */
|
|
24
|
+
hbClick;
|
|
25
|
+
handleClick = (item, e) => {
|
|
26
|
+
e.preventDefault();
|
|
27
|
+
this.activeKey = item.key;
|
|
28
|
+
this.hbClick.emit({ key: item.key, href: item.href });
|
|
29
|
+
};
|
|
30
|
+
render() {
|
|
31
|
+
const wrapperStyle = {};
|
|
32
|
+
if (this.affix && this.top !== undefined) {
|
|
33
|
+
wrapperStyle.position = 'sticky';
|
|
34
|
+
wrapperStyle.top = `${this.top}px`;
|
|
35
|
+
}
|
|
36
|
+
return (index.h("div", { key: 'dc32d578ca843183041cfa36765c16972d96eb0a', class: "hb-anchor", style: wrapperStyle }, index.h("div", { key: '9d70c1be7984c61815bb596328aa78486f077b37', class: "hb-anchor__ink", "aria-hidden": "true" }), index.h("ul", { key: '208c2b0f328c8815e360347a06531146fdf34359', class: "hb-anchor__list" }, this.items.map((item) => (index.h("li", { class: "hb-anchor__item" }, index.h("a", { class: {
|
|
37
|
+
'hb-anchor__link': true,
|
|
38
|
+
'hb-anchor__link--active': this.activeKey === item.key,
|
|
39
|
+
}, href: item.href, "data-key": item.key, onClick: (e) => this.handleClick(item, e) }, item.title)))))));
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
Anchor.style = HbAnchorStyle0;
|
|
43
|
+
|
|
44
|
+
exports.hb_anchor = Anchor;
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=hb-anchor.cjs.entry.js.map
|