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
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, g as getElement, h } from './index-fdf7135e.js';
|
|
2
|
+
import { c as createClickOutsideHandler } from './click-outside-291294f9.js';
|
|
3
|
+
import { p as parseDate, f as formatDate, a as addMonths, g as getCalendarDays, M as MONTH_NAMES, W as WEEK_DAY_NAMES } from './date-helpers-e4d85a67.js';
|
|
4
|
+
|
|
5
|
+
const dateTimePickerCss = "/*! 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{--hb-date-time-picker-font-size:14px;--hb-date-time-picker-height:32px;--hb-date-time-picker-border-color:var(--hb-border-color,#dcdfe6);--hb-date-time-picker-border-color-hover:var(--hb-color-primary);--hb-date-time-picker-bg-color:var(--hb-color-white,#fff);display:inline-block;position:relative}.hb-date-time-picker{display:inline-block;position:relative;width:280px}.hb-date-time-picker__input-wrapper{cursor:pointer;display:inline-block;position:relative;width:100%}.hb-date-time-picker__input{background-color:var(--hb-date-time-picker-bg-color);border:1px solid var(--hb-date-time-picker-border-color);border-radius:4px;box-sizing:border-box;color:var(--hb-color-text-regular,#606266);cursor:pointer;display:inline-block;font-size:var(--hb-date-time-picker-font-size);height:var(--hb-date-time-picker-height);line-height:var(--hb-date-time-picker-height);outline:none;padding:0 30px 0 15px;transition:border-color .2s cubic-bezier(.645,.045,.355,1);width:100%}.hb-date-time-picker__suffix{align-items:center;display:flex;position:absolute;right:8px;top:50%;transform:translateY(-50%)}.hb-date-time-picker__clear{color:var(--hb-color-text-placeholder,#c0c4cc);cursor:pointer;font-size:16px;margin-right:8px}.hb-date-time-picker__dropdown{background-color:var(--hb-date-time-picker-bg-color);border:1px solid var(--hb-date-time-picker-border-color);border-radius:4px;box-shadow:0 2px 12px #0000001a;left:0;margin-top:4px;min-width:320px;padding:12px;position:absolute;top:100%;z-index:1000}.hb-date-time-picker__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:12px}.hb-date-time-picker__header-label{font-size:14px;font-weight:600}.hb-date-time-picker__next-btn,.hb-date-time-picker__prev-btn{background:0 0;border:none;cursor:pointer;font-size:18px;padding:4px 8px}.hb-date-time-picker__weekdays{display:grid;gap:4px;grid-template-columns:repeat(7,1fr);margin-bottom:8px}.hb-date-time-picker__weekday{color:var(--hb-color-text-placeholder,#c0c4cc);font-size:12px;text-align:center}.hb-date-time-picker__days{display:grid;gap:4px;grid-template-columns:repeat(7,1fr)}.hb-date-time-picker__day{align-items:center;aspect-ratio:1;border-radius:4px;cursor:pointer;display:flex;font-size:13px;justify-content:center}.hb-date-time-picker__day:hover:not(.hb-date-time-picker__day--other-month){background-color:var(--hb-fill-color-light,#f5f7fa)}.hb-date-time-picker__day--selected{background-color:var(--hb-color-primary);color:var(--hb-color-white,#fff)}.hb-date-time-picker__time-body{display:flex;padding:8px}.hb-date-time-picker__time-list{flex:1;max-height:280px;overflow-y:auto}.hb-date-time-picker__time-title{border-bottom:1px solid var(--hb-border-color-lighter,#e4e7ed);font-size:12px;padding:8px 0;text-align:center}.hb-date-time-picker__time-content{padding:4px 0}.hb-date-time-picker__time-item{cursor:pointer;font-size:13px;padding:8px 16px;text-align:center}.hb-date-time-picker__time-item:hover{background-color:var(--hb-fill-color-light,#f5f7fa)}.hb-date-time-picker__time-item--selected{background-color:var(--hb-color-primary-light-9,#ecf5ff);color:var(--hb-color-primary);font-weight:600}@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}";
|
|
6
|
+
const HbDateTimePickerStyle0 = dateTimePickerCss;
|
|
7
|
+
|
|
8
|
+
const DateTimePicker = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.hbChange = createEvent(this, "hbChange", 7);
|
|
12
|
+
}
|
|
13
|
+
get el() { return getElement(this); }
|
|
14
|
+
/** 绑定值 */
|
|
15
|
+
modelValue;
|
|
16
|
+
/** 输入框占位文本 */
|
|
17
|
+
placeholder = '请选择日期时间';
|
|
18
|
+
/** 是否禁用 */
|
|
19
|
+
disabled = false;
|
|
20
|
+
/** 输入框尺寸 */
|
|
21
|
+
size = 'default';
|
|
22
|
+
/** 是否可清空 */
|
|
23
|
+
clearable = false;
|
|
24
|
+
/** 日期时间格式 */
|
|
25
|
+
format = 'YYYY-MM-DD HH:mm:ss';
|
|
26
|
+
/** 原生 name 属性 */
|
|
27
|
+
name;
|
|
28
|
+
/** 原生 id 属性 */
|
|
29
|
+
inputId;
|
|
30
|
+
isOpen = false;
|
|
31
|
+
inputValue = '';
|
|
32
|
+
selectedDate;
|
|
33
|
+
currentView = 'date';
|
|
34
|
+
/** 值改变事件 */
|
|
35
|
+
hbChange;
|
|
36
|
+
clickOutside = createClickOutsideHandler({
|
|
37
|
+
host: null,
|
|
38
|
+
isOpen: () => this.isOpen,
|
|
39
|
+
onClose: () => { this.isOpen = false; },
|
|
40
|
+
});
|
|
41
|
+
componentDidLoad() {
|
|
42
|
+
this.clickOutside = createClickOutsideHandler({
|
|
43
|
+
host: this.el,
|
|
44
|
+
isOpen: () => this.isOpen,
|
|
45
|
+
onClose: () => { this.isOpen = false; },
|
|
46
|
+
});
|
|
47
|
+
this.clickOutside.connect();
|
|
48
|
+
this.updateInputValue();
|
|
49
|
+
}
|
|
50
|
+
disconnectedCallback() {
|
|
51
|
+
this.clickOutside.disconnect();
|
|
52
|
+
}
|
|
53
|
+
handleValueChange() {
|
|
54
|
+
this.updateInputValue();
|
|
55
|
+
}
|
|
56
|
+
updateInputValue() {
|
|
57
|
+
const date = parseDate(this.modelValue);
|
|
58
|
+
if (!date) {
|
|
59
|
+
this.inputValue = '';
|
|
60
|
+
this.selectedDate = undefined;
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
this.selectedDate = date;
|
|
64
|
+
this.inputValue = formatDate(date, this.format);
|
|
65
|
+
}
|
|
66
|
+
handleInputClick = () => {
|
|
67
|
+
if (this.disabled)
|
|
68
|
+
return;
|
|
69
|
+
this.isOpen = !this.isOpen;
|
|
70
|
+
this.currentView = 'date';
|
|
71
|
+
};
|
|
72
|
+
handleClear = (e) => {
|
|
73
|
+
e.stopPropagation();
|
|
74
|
+
this.modelValue = undefined;
|
|
75
|
+
this.inputValue = '';
|
|
76
|
+
this.selectedDate = undefined;
|
|
77
|
+
this.isOpen = false;
|
|
78
|
+
this.hbChange.emit(undefined);
|
|
79
|
+
};
|
|
80
|
+
handleDateSelect = (date) => {
|
|
81
|
+
this.selectedDate = date;
|
|
82
|
+
this.currentView = 'time';
|
|
83
|
+
};
|
|
84
|
+
handleTimeSelect = (hour, minute, second) => {
|
|
85
|
+
const date = new Date(this.selectedDate || new Date());
|
|
86
|
+
date.setHours(hour);
|
|
87
|
+
date.setMinutes(minute);
|
|
88
|
+
date.setSeconds(second);
|
|
89
|
+
this.selectedDate = date;
|
|
90
|
+
this.modelValue = date;
|
|
91
|
+
this.inputValue = formatDate(date, this.format);
|
|
92
|
+
this.isOpen = false;
|
|
93
|
+
this.hbChange.emit(date);
|
|
94
|
+
};
|
|
95
|
+
changeMonth(delta) {
|
|
96
|
+
this.selectedDate = addMonths(this.selectedDate || new Date(), delta);
|
|
97
|
+
}
|
|
98
|
+
render() {
|
|
99
|
+
const days = getCalendarDays(this.selectedDate || new Date(), this.selectedDate);
|
|
100
|
+
const current = this.selectedDate || new Date();
|
|
101
|
+
const hours = Array.from({ length: 24 }, (_, i) => i);
|
|
102
|
+
const minutes = Array.from({ length: 60 }, (_, i) => i);
|
|
103
|
+
const seconds = Array.from({ length: 60 }, (_, i) => i);
|
|
104
|
+
return (h("div", { key: '9163e484f86c08e64bde83efde16cee218c91d7d', class: {
|
|
105
|
+
'hb-date-time-picker': true,
|
|
106
|
+
'hb-date-time-picker--open': this.isOpen,
|
|
107
|
+
'hb-date-time-picker--disabled': this.disabled,
|
|
108
|
+
[`hb-date-time-picker--${this.size}`]: true,
|
|
109
|
+
} }, h("div", { key: '27f1ce225146eadc2cea57a7190a8ec692f29694', class: "hb-date-time-picker__input-wrapper", onClick: this.handleInputClick }, h("input", { key: 'c42a6797f717a3fe27544307b2c94958f18df9a7', type: "text", id: this.inputId, name: this.name, class: "hb-date-time-picker__input", placeholder: this.placeholder, value: this.inputValue, disabled: this.disabled, readonly: true }), h("span", { key: '30210b48b776ae5417cdaec2e956d9d071be3e60', class: "hb-date-time-picker__suffix" }, this.clearable && this.modelValue && (h("span", { key: '5b32d6ccbba09273cfecc84f1b400b5d282b1e87', class: "hb-date-time-picker__clear", onClick: this.handleClear }, "\u00D7")), h("span", { key: 'ec7c2a97de3147de92a7e0229c5830db801e7eb7', class: "hb-date-time-picker__icon" }, "\uD83D\uDCC5"))), this.isOpen && (h("div", { key: '6d54ed7b5001d0ab43342062d68152f6cd55d2d2', class: "hb-date-time-picker__dropdown" }, this.currentView === 'date' ? ([
|
|
110
|
+
h("div", { class: "hb-date-time-picker__header" }, h("button", { type: "button", class: "hb-date-time-picker__prev-btn", onClick: () => this.changeMonth(-1) }, "\u2039"), h("span", { class: "hb-date-time-picker__header-label" }, current.getFullYear(), "\u5E74 ", MONTH_NAMES[current.getMonth()]), h("button", { type: "button", class: "hb-date-time-picker__next-btn", onClick: () => this.changeMonth(1) }, "\u203A")),
|
|
111
|
+
h("div", { class: "hb-date-time-picker__body" }, h("div", { class: "hb-date-time-picker__weekdays" }, WEEK_DAY_NAMES.map(day => h("div", { class: "hb-date-time-picker__weekday" }, day))), h("div", { class: "hb-date-time-picker__days" }, days.map((day, index) => (h("div", { key: index, class: {
|
|
112
|
+
'hb-date-time-picker__day': true,
|
|
113
|
+
'hb-date-time-picker__day--other-month': !day.isCurrentMonth,
|
|
114
|
+
'hb-date-time-picker__day--today': day.isToday,
|
|
115
|
+
'hb-date-time-picker__day--selected': day.isSelected,
|
|
116
|
+
}, onClick: () => day.isCurrentMonth && this.handleDateSelect(day.date) }, day.date.getDate()))))),
|
|
117
|
+
]) : (h("div", { class: "hb-date-time-picker__time-body" }, h("div", { class: "hb-date-time-picker__time-list" }, h("div", { class: "hb-date-time-picker__time-title" }, "\u65F6"), h("div", { class: "hb-date-time-picker__time-content" }, hours.map((hour) => (h("div", { class: {
|
|
118
|
+
'hb-date-time-picker__time-item': true,
|
|
119
|
+
'hb-date-time-picker__time-item--selected': hour === (this.selectedDate?.getHours() || 0),
|
|
120
|
+
}, onClick: () => this.handleTimeSelect(hour, this.selectedDate?.getMinutes() || 0, this.selectedDate?.getSeconds() || 0) }, String(hour).padStart(2, '0')))))), h("div", { class: "hb-date-time-picker__time-list" }, h("div", { class: "hb-date-time-picker__time-title" }, "\u5206"), h("div", { class: "hb-date-time-picker__time-content" }, minutes.map((minute) => (h("div", { class: {
|
|
121
|
+
'hb-date-time-picker__time-item': true,
|
|
122
|
+
'hb-date-time-picker__time-item--selected': minute === (this.selectedDate?.getMinutes() || 0),
|
|
123
|
+
}, onClick: () => this.handleTimeSelect(this.selectedDate?.getHours() || 0, minute, this.selectedDate?.getSeconds() || 0) }, String(minute).padStart(2, '0')))))), h("div", { class: "hb-date-time-picker__time-list" }, h("div", { class: "hb-date-time-picker__time-title" }, "\u79D2"), h("div", { class: "hb-date-time-picker__time-content" }, seconds.map((second) => (h("div", { class: {
|
|
124
|
+
'hb-date-time-picker__time-item': true,
|
|
125
|
+
'hb-date-time-picker__time-item--selected': second === (this.selectedDate?.getSeconds() || 0),
|
|
126
|
+
}, onClick: () => this.handleTimeSelect(this.selectedDate?.getHours() || 0, this.selectedDate?.getMinutes() || 0, second) }, String(second).padStart(2, '0'))))))))))));
|
|
127
|
+
}
|
|
128
|
+
static get watchers() { return {
|
|
129
|
+
"modelValue": ["handleValueChange"]
|
|
130
|
+
}; }
|
|
131
|
+
};
|
|
132
|
+
DateTimePicker.style = HbDateTimePickerStyle0;
|
|
133
|
+
|
|
134
|
+
export { DateTimePicker as hb_date_time_picker };
|
|
135
|
+
|
|
136
|
+
//# sourceMappingURL=hb-date-time-picker.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"hb-date-time-picker.entry.js","mappings":";;;;AAAA,MAAM,iBAAiB,GAAG,yrRAAyrR,CAAC;AACptR,+BAAe,iBAAiB;;MCYnB,cAAc;;;;;;;IAIA,UAAU,CAAiB;;IAG5C,WAAW,GAAW,SAAS,CAAC;;IAGhC,Q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AM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAC5B,CACP,CAAC,CACE,CACF,EACN,WAAK,KAAK,EAAC,gCAAgC,IACzC,WAAK,KAAK,EAAC,iCAAiC,aAAQ,EACpD,WAAK,KAAK,EAAC,mCAAmC,IAC3C,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,MAClB,WACE,KAAK,EAAE;gBACL,gCAAgC,EAAE,IAAI;gBACtC,0CAA0C,EAAE,MAAM,MAAM,IAAI,CAAC,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;aAC9F,EACD,OAAO,EAAE,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,IAErH,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAC5B,CACP,CAAC,CACE,CACF,CACF,CACP,CACG,CACP,CACG,EACN;KACH;;;;;;;;;","names":[],"sources":["src/components/DateTimePicker/date-time-picker.css?tag=hb-date-time-picker&encapsulation=shadow","src/components/DateTimePicker/DateTimePicker.tsx"],"sourcesContent":[":host {\n display: inline-block;\n position: relative;\n --hb-date-time-picker-font-size: 14px;\n --hb-date-time-picker-height: 32px;\n --hb-date-time-picker-border-color: var(--hb-border-color, #dcdfe6);\n --hb-date-time-picker-border-color-hover: var(--hb-color-primary);\n --hb-date-time-picker-bg-color: var(--hb-color-white, #ffffff);\n}\n\n.hb-date-time-picker {\n display: inline-block;\n position: relative;\n width: 280px;\n}\n\n.hb-date-time-picker__input-wrapper {\n position: relative;\n display: inline-block;\n width: 100%;\n cursor: pointer;\n}\n\n.hb-date-time-picker__input {\n display: inline-block;\n width: 100%;\n height: var(--hb-date-time-picker-height);\n line-height: var(--hb-date-time-picker-height);\n padding: 0 30px 0 15px;\n font-size: var(--hb-date-time-picker-font-size);\n color: var(--hb-color-text-regular, #606266);\n background-color: var(--hb-date-time-picker-bg-color);\n border: 1px solid var(--hb-date-time-picker-border-color);\n border-radius: 4px;\n box-sizing: border-box;\n cursor: pointer;\n outline: none;\n transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n\n.hb-date-time-picker__suffix {\n position: absolute;\n right: 8px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n}\n\n.hb-date-time-picker__clear {\n margin-right: 8px;\n cursor: pointer;\n font-size: 16px;\n color: var(--hb-color-text-placeholder, #c0c4cc);\n}\n\n.hb-date-time-picker__dropdown {\n position: absolute;\n top: 100%;\n left: 0;\n margin-top: 4px;\n background-color: var(--hb-date-time-picker-bg-color);\n border: 1px solid var(--hb-date-time-picker-border-color);\n border-radius: 4px;\n box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);\n z-index: 1000;\n min-width: 320px;\n padding: 12px;\n}\n\n.hb-date-time-picker__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 12px;\n}\n\n.hb-date-time-picker__header-label {\n font-weight: 600;\n font-size: 14px;\n}\n\n.hb-date-time-picker__prev-btn,\n.hb-date-time-picker__next-btn {\n background: none;\n border: none;\n font-size: 18px;\n cursor: pointer;\n padding: 4px 8px;\n}\n\n.hb-date-time-picker__weekdays {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 4px;\n margin-bottom: 8px;\n}\n\n.hb-date-time-picker__weekday {\n text-align: center;\n font-size: 12px;\n color: var(--hb-color-text-placeholder, #c0c4cc);\n}\n\n.hb-date-time-picker__days {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 4px;\n}\n\n.hb-date-time-picker__day {\n aspect-ratio: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 13px;\n cursor: pointer;\n border-radius: 4px;\n}\n\n.hb-date-time-picker__day:hover:not(.hb-date-time-picker__day--other-month) {\n background-color: var(--hb-fill-color-light, #f5f7fa);\n}\n\n.hb-date-time-picker__day--selected {\n background-color: var(--hb-color-primary);\n color: var(--hb-color-white, #ffffff);\n}\n\n.hb-date-time-picker__time-body {\n display: flex;\n padding: 8px;\n}\n\n.hb-date-time-picker__time-list {\n flex: 1;\n max-height: 280px;\n overflow-y: auto;\n}\n\n.hb-date-time-picker__time-title {\n text-align: center;\n font-size: 12px;\n padding: 8px 0;\n border-bottom: 1px solid var(--hb-border-color-lighter, #e4e7ed);\n}\n\n.hb-date-time-picker__time-content {\n padding: 4px 0;\n}\n\n.hb-date-time-picker__time-item {\n padding: 8px 16px;\n text-align: center;\n font-size: 13px;\n cursor: pointer;\n}\n\n.hb-date-time-picker__time-item:hover {\n background-color: var(--hb-fill-color-light, #f5f7fa);\n}\n\n.hb-date-time-picker__time-item--selected {\n background-color: var(--hb-color-primary-light-9, #ecf5ff);\n color: var(--hb-color-primary);\n font-weight: 600;\n}\n\n","import { Component, h, Prop, Event, EventEmitter, State, Element, Watch } from '@stencil/core';\nimport { createClickOutsideHandler } from '../../utils/click-outside';\nimport { getCalendarDays, formatDate, parseDate, addMonths, MONTH_NAMES, WEEK_DAY_NAMES } from '../../utils/date-helpers';\n\n/**\n * DateTimePicker 日期时间选择器组件\n * 在同一个选择器里选择日期和时间\n */\n@Component({\n tag: 'hb-date-time-picker',\n styleUrl: 'date-time-picker.css',\n shadow: true,\n})\nexport class DateTimePicker {\n @Element() el: HTMLElement;\n\n /** 绑定值 */\n @Prop({ mutable: true }) modelValue?: string | Date;\n\n /** 输入框占位文本 */\n @Prop() placeholder: string = '请选择日期时间';\n\n /** 是否禁用 */\n @Prop() disabled: boolean = false;\n\n /** 输入框尺寸 */\n @Prop() size: 'large' | 'default' | 'small' = 'default';\n\n /** 是否可清空 */\n @Prop() clearable: boolean = false;\n\n /** 日期时间格式 */\n @Prop() format: string = 'YYYY-MM-DD HH:mm:ss';\n\n /** 原生 name 属性 */\n @Prop() name?: string;\n\n /** 原生 id 属性 */\n @Prop() inputId?: string;\n\n @State() isOpen: boolean = false;\n @State() inputValue: string = '';\n @State() selectedDate?: Date;\n @State() currentView: 'date' | 'time' = 'date';\n\n /** 值改变事件 */\n @Event() hbChange: EventEmitter<string | Date>;\n\n private clickOutside = createClickOutsideHandler({\n host: null as any,\n isOpen: () => this.isOpen,\n onClose: () => { this.isOpen = false; },\n });\n\n componentDidLoad() {\n this.clickOutside = createClickOutsideHandler({\n host: this.el,\n isOpen: () => this.isOpen,\n onClose: () => { this.isOpen = false; },\n });\n this.clickOutside.connect();\n this.updateInputValue();\n }\n\n disconnectedCallback() {\n this.clickOutside.disconnect();\n }\n\n @Watch('modelValue')\n handleValueChange() {\n this.updateInputValue();\n }\n\n private updateInputValue() {\n const date = parseDate(this.modelValue);\n if (!date) {\n this.inputValue = '';\n this.selectedDate = undefined;\n return;\n }\n this.selectedDate = date;\n this.inputValue = formatDate(date, this.format);\n }\n\n private handleInputClick = () => {\n if (this.disabled) return;\n this.isOpen = !this.isOpen;\n this.currentView = 'date';\n };\n\n private handleClear = (e: Event) => {\n e.stopPropagation();\n this.modelValue = undefined;\n this.inputValue = '';\n this.selectedDate = undefined;\n this.isOpen = false;\n this.hbChange.emit(undefined);\n };\n\n private handleDateSelect = (date: Date) => {\n this.selectedDate = date;\n this.currentView = 'time';\n };\n\n private handleTimeSelect = (hour: number, minute: number, second: number) => {\n const date = new Date(this.selectedDate || new Date());\n date.setHours(hour);\n date.setMinutes(minute);\n date.setSeconds(second);\n\n this.selectedDate = date;\n this.modelValue = date;\n this.inputValue = formatDate(date, this.format);\n this.isOpen = false;\n this.hbChange.emit(date);\n };\n\n private changeMonth(delta: number) {\n this.selectedDate = addMonths(this.selectedDate || new Date(), delta);\n }\n\n render() {\n const days = getCalendarDays(this.selectedDate || new Date(), this.selectedDate);\n const current = this.selectedDate || new Date();\n const hours = Array.from({ length: 24 }, (_, i) => i);\n const minutes = Array.from({ length: 60 }, (_, i) => i);\n const seconds = Array.from({ length: 60 }, (_, i) => i);\n\n return (\n <div\n class={{\n 'hb-date-time-picker': true,\n 'hb-date-time-picker--open': this.isOpen,\n 'hb-date-time-picker--disabled': this.disabled,\n [`hb-date-time-picker--${this.size}`]: true,\n }}\n >\n <div class=\"hb-date-time-picker__input-wrapper\" onClick={this.handleInputClick}>\n <input\n type=\"text\"\n id={this.inputId}\n name={this.name}\n class=\"hb-date-time-picker__input\"\n placeholder={this.placeholder}\n value={this.inputValue}\n disabled={this.disabled}\n readonly\n />\n <span class=\"hb-date-time-picker__suffix\">\n {this.clearable && this.modelValue && (\n <span class=\"hb-date-time-picker__clear\" onClick={this.handleClear}>\n ×\n </span>\n )}\n <span class=\"hb-date-time-picker__icon\">📅</span>\n </span>\n </div>\n {this.isOpen && (\n <div class=\"hb-date-time-picker__dropdown\">\n {this.currentView === 'date' ? (\n [\n <div class=\"hb-date-time-picker__header\">\n <button type=\"button\" class=\"hb-date-time-picker__prev-btn\" onClick={() => this.changeMonth(-1)}>‹</button>\n <span class=\"hb-date-time-picker__header-label\">\n {current.getFullYear()}年 {MONTH_NAMES[current.getMonth()]}\n </span>\n <button type=\"button\" class=\"hb-date-time-picker__next-btn\" onClick={() => this.changeMonth(1)}>›</button>\n </div>,\n <div class=\"hb-date-time-picker__body\">\n <div class=\"hb-date-time-picker__weekdays\">\n {WEEK_DAY_NAMES.map(day => <div class=\"hb-date-time-picker__weekday\">{day}</div>)}\n </div>\n <div class=\"hb-date-time-picker__days\">\n {days.map((day, index) => (\n <div\n key={index}\n class={{\n 'hb-date-time-picker__day': true,\n 'hb-date-time-picker__day--other-month': !day.isCurrentMonth,\n 'hb-date-time-picker__day--today': day.isToday,\n 'hb-date-time-picker__day--selected': day.isSelected,\n }}\n onClick={() => day.isCurrentMonth && this.handleDateSelect(day.date)}\n >\n {day.date.getDate()}\n </div>\n ))}\n </div>\n </div>,\n ]\n ) : (\n <div class=\"hb-date-time-picker__time-body\">\n <div class=\"hb-date-time-picker__time-list\">\n <div class=\"hb-date-time-picker__time-title\">时</div>\n <div class=\"hb-date-time-picker__time-content\">\n {hours.map((hour) => (\n <div\n class={{\n 'hb-date-time-picker__time-item': true,\n 'hb-date-time-picker__time-item--selected': hour === (this.selectedDate?.getHours() || 0),\n }}\n onClick={() => this.handleTimeSelect(hour, this.selectedDate?.getMinutes() || 0, this.selectedDate?.getSeconds() || 0)}\n >\n {String(hour).padStart(2, '0')}\n </div>\n ))}\n </div>\n </div>\n <div class=\"hb-date-time-picker__time-list\">\n <div class=\"hb-date-time-picker__time-title\">分</div>\n <div class=\"hb-date-time-picker__time-content\">\n {minutes.map((minute) => (\n <div\n class={{\n 'hb-date-time-picker__time-item': true,\n 'hb-date-time-picker__time-item--selected': minute === (this.selectedDate?.getMinutes() || 0),\n }}\n onClick={() => this.handleTimeSelect(this.selectedDate?.getHours() || 0, minute, this.selectedDate?.getSeconds() || 0)}\n >\n {String(minute).padStart(2, '0')}\n </div>\n ))}\n </div>\n </div>\n <div class=\"hb-date-time-picker__time-list\">\n <div class=\"hb-date-time-picker__time-title\">秒</div>\n <div class=\"hb-date-time-picker__time-content\">\n {seconds.map((second) => (\n <div\n class={{\n 'hb-date-time-picker__time-item': true,\n 'hb-date-time-picker__time-item--selected': second === (this.selectedDate?.getSeconds() || 0),\n }}\n onClick={() => this.handleTimeSelect(this.selectedDate?.getHours() || 0, this.selectedDate?.getMinutes() || 0, second)}\n >\n {String(second).padStart(2, '0')}\n </div>\n ))}\n </div>\n </div>\n </div>\n )}\n </div>\n )}\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-fdf7135e.js';
|
|
2
|
+
|
|
3
|
+
const descriptionsCss = "/*! 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-border-style:solid;--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{.grid{display:grid}.border{border-style:var(--tw-border-style);border-width:1px}.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-descriptions{background:var(--hb-color-bg-container);border-radius:var(--hb-border-radius-sm);color:var(--hb-color-text);font-size:var(--hb-font-size-sm)}.hb-descriptions__title{color:var(--hb-color-text-primary);font-size:var(--hb-font-size-lg);font-weight:600;margin-bottom:var(--hb-spacing-sm)}.hb-descriptions__view{width:100%}.hb-descriptions__row{display:grid;gap:0;width:100%}.hb-descriptions__item{border-bottom:1px solid var(--hb-color-border-secondary);display:flex;padding:var(--hb-spacing-sm)var(--hb-spacing-md)}.hb-descriptions__row .hb-descriptions__item:last-child{border-bottom:none}.hb-descriptions__label{color:var(--hb-color-text-secondary);flex-shrink:0;margin-right:var(--hb-spacing-sm);white-space:nowrap}.hb-descriptions__colon{margin-left:0}.hb-descriptions__value{color:var(--hb-color-text);word-break:break-all}.hb-descriptions--bordered{border:1px solid var(--hb-color-border-secondary);overflow:hidden}.hb-descriptions--bordered .hb-descriptions__title{border-bottom:1px solid var(--hb-color-border-secondary);margin-bottom:0;padding:var(--hb-spacing-sm)var(--hb-spacing-md)}.hb-descriptions--bordered .hb-descriptions__item{border-right:1px solid var(--hb-color-border-secondary);padding:var(--hb-spacing-sm)var(--hb-spacing-md)}.hb-descriptions--bordered .hb-descriptions__item:nth-child(3n){border-right:none}.hb-descriptions--bordered .hb-descriptions__item:last-child{border-bottom:none}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@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}";
|
|
4
|
+
const HbDescriptionsStyle0 = descriptionsCss;
|
|
5
|
+
|
|
6
|
+
const Descriptions = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
}
|
|
10
|
+
/** 标题 */
|
|
11
|
+
title = '';
|
|
12
|
+
/** 是否带边框 */
|
|
13
|
+
border = false;
|
|
14
|
+
/** 每行列数 */
|
|
15
|
+
column = 3;
|
|
16
|
+
/** 是否显示冒号 */
|
|
17
|
+
colon = true;
|
|
18
|
+
/** 描述项数组 */
|
|
19
|
+
items = [];
|
|
20
|
+
render() {
|
|
21
|
+
return (h("div", { key: 'bc13fcaa734ea3830c26a296e219dc90c4c453eb', class: { 'hb-descriptions': true, 'hb-descriptions--bordered': this.border } }, this.title && h("div", { key: 'e64aba674b0f6d7e460f00c0f786b670dc92da0f', class: "hb-descriptions__title" }, this.title), h("div", { key: '4cca9b0c834a60baf81d8668f79302934817f395', class: "hb-descriptions__view" }, h("div", { key: '9c321483b77f58ecb2b8bbdfba9049b7cdd11c73', class: "hb-descriptions__row", style: { gridTemplateColumns: `repeat(${this.column}, minmax(0, 1fr))` } }, this.items.map((item) => (h("div", { class: "hb-descriptions__item", style: item.span ? { gridColumn: `span ${item.span}` } : undefined }, h("span", { class: "hb-descriptions__label" }, item.label, this.colon && h("span", { class: "hb-descriptions__colon" }, "\uFF1A")), h("span", { class: "hb-descriptions__value" }, item.value))))))));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
Descriptions.style = HbDescriptionsStyle0;
|
|
25
|
+
|
|
26
|
+
export { Descriptions as hb_descriptions };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=hb-descriptions.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"hb-descriptions.entry.js","mappings":";;AAAA,MAAM,eAAe,GAAG,ssOAAssO,CAAC;AAC/tO,6BAAe,eAAe;;MCMjB,YAAY;;;;;IAEf,KAAK,GAAW,EAAE,CAAC;;IAGnB,MAAM,GAAY,KAAK,CAAC;;IAGxB,MAAM,GAAW,CAAC,CAAC;;IAGnB,KAAK,GAAY,IAAI,CAAC;;IAGtB,KAAK,GAAsB,EAAE,CAAC;IAEtC,MAAM;QACJ,QACE,4DAAK,KAAK,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,2BAA2B,EAAE,IAAI,CAAC,MAAM,EAAE,IAC9E,IAAI,CAAC,KAAK,IAAI,4DAAK,KAAK,EAAC,wBAAwB,IAAE,IAAI,CAAC,KAAK,CAAO,EACrE,4DAAK,KAAK,EAAC,uBAAuB,IAChC,4DAAK,KAAK,EAAC,sBAAsB,EAAC,KAAK,EAAE,EAAE,mBAAmB,EAAE,UAAU,IAAI,CAAC,MAAM,mBAAmB,EAAE,IACvG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,MACnB,WACE,KAAK,EAAC,uBAAuB,EAC7B,KAAK,EAAE,IAAI,CAAC,IAAI,GAAG,EAAE,UAAU,EAAE,QAAQ,IAAI,CAAC,IAAI,EAAE,EAAE,GAAG,SAAS,IAElE,YAAM,KAAK,EAAC,wBAAwB,IACjC,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,KAAK,IAAI,YAAM,KAAK,EAAC,wBAAwB,aAAS,CACvD,EACP,YAAM,KAAK,EAAC,wBAAwB,IAAE,IAAI,CAAC,KAAK,CAAQ,CACpD,CACP,CAAC,CACE,CACF,CACF,EACN;KACH;;;;;;","names":[],"sources":["src/components/Descriptions/descriptions.css?tag=hb-descriptions&encapsulation=shadow","src/components/Descriptions/Descriptions.tsx"],"sourcesContent":[":host { display: block; }\n.hb-descriptions {\n font-size: var(--hb-font-size-sm);\n color: var(--hb-color-text);\n background: var(--hb-color-bg-container);\n border-radius: var(--hb-border-radius-sm);\n}\n.hb-descriptions__title {\n font-size: var(--hb-font-size-lg);\n font-weight: 600;\n color: var(--hb-color-text-primary);\n margin-bottom: var(--hb-spacing-sm);\n}\n.hb-descriptions__view { width: 100%; }\n.hb-descriptions__row {\n display: grid;\n gap: 0;\n width: 100%;\n}\n.hb-descriptions__item {\n display: flex;\n padding: var(--hb-spacing-sm) var(--hb-spacing-md);\n border-bottom: 1px solid var(--hb-color-border-secondary);\n}\n.hb-descriptions__row .hb-descriptions__item:nth-last-child(-n+3):not(:nth-last-child(1)) {\n /* 保留默认下边框,最后一项由下方规则移除 */\n}\n/* 简化:最后一个 item 无下边框 */\n.hb-descriptions__row .hb-descriptions__item:last-child { border-bottom: none; }\n\n.hb-descriptions__label {\n color: var(--hb-color-text-secondary);\n white-space: nowrap;\n margin-right: var(--hb-spacing-sm);\n flex-shrink: 0;\n}\n.hb-descriptions__colon { margin-left: 0; }\n.hb-descriptions__value {\n color: var(--hb-color-text);\n word-break: break-all;\n}\n\n/* 带边框样式 */\n.hb-descriptions--bordered {\n border: 1px solid var(--hb-color-border-secondary);\n overflow: hidden;\n}\n.hb-descriptions--bordered .hb-descriptions__title { padding: var(--hb-spacing-sm) var(--hb-spacing-md); margin-bottom: 0; border-bottom: 1px solid var(--hb-color-border-secondary); }\n.hb-descriptions--bordered .hb-descriptions__item { border-right: 1px solid var(--hb-color-border-secondary); }\n.hb-descriptions--bordered .hb-descriptions__item:nth-child(3n) { border-right: none; }\n.hb-descriptions--bordered .hb-descriptions__item { padding: var(--hb-spacing-sm) var(--hb-spacing-md); }\n.hb-descriptions--bordered .hb-descriptions__item:last-child { border-bottom: none; }\n","import { Component, h, Prop } from '@stencil/core';\n\n/**\n * Descriptions 描述列表组件\n * 成组展示多个描述字段,支持列数、边框、冒号、跨列 span\n */\n@Component({ tag: 'hb-descriptions', styleUrl: 'descriptions.css', shadow: true })\nexport class Descriptions {\n /** 标题 */\n @Prop() title: string = '';\n\n /** 是否带边框 */\n @Prop() border: boolean = false;\n\n /** 每行列数 */\n @Prop() column: number = 3;\n\n /** 是否显示冒号 */\n @Prop() colon: boolean = true;\n\n /** 描述项数组 */\n @Prop() items: DescriptionItem[] = [];\n\n render() {\n return (\n <div class={{ 'hb-descriptions': true, 'hb-descriptions--bordered': this.border }}>\n {this.title && <div class=\"hb-descriptions__title\">{this.title}</div>}\n <div class=\"hb-descriptions__view\">\n <div class=\"hb-descriptions__row\" style={{ gridTemplateColumns: `repeat(${this.column}, minmax(0, 1fr))` }}>\n {this.items.map((item) => (\n <div\n class=\"hb-descriptions__item\"\n style={item.span ? { gridColumn: `span ${item.span}` } : undefined}\n >\n <span class=\"hb-descriptions__label\">\n {item.label}\n {this.colon && <span class=\"hb-descriptions__colon\">:</span>}\n </span>\n <span class=\"hb-descriptions__value\">{item.value}</span>\n </div>\n ))}\n </div>\n </div>\n </div>\n );\n }\n}\n\nexport interface DescriptionItem {\n label: string;\n value: string;\n span?: number;\n}\n"],"version":3}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, g as getElement, h } from './index-fdf7135e.js';
|
|
2
|
+
import { g as getNextZIndex, l as lockScroll, u as unlockScroll } from './popup-manager-128cc685.js';
|
|
3
|
+
import { c as createFocusTrap } from './a11y-f9ab2964.js';
|
|
4
|
+
|
|
5
|
+
const dialogCss = "/*! 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{.visible{visibility:visible}.container{width:100%}.hidden{display:none}.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:contents}.hb-dialog-wrapper{inset:0;pointer-events:none;position:fixed}.hb-dialog-wrapper--hidden{display:none}.hb-dialog__overlay{background-color:var(--hb-color-bg-mask);inset:0;transition:opacity .3s}.hb-dialog,.hb-dialog__overlay{pointer-events:auto;position:fixed}.hb-dialog{background-color:var(--hb-dialog-bg);border-radius:var(--hb-dialog-radius);box-shadow:var(--hb-dialog-shadow);display:flex;flex-direction:column;left:50%;max-height:90vh;opacity:0;overflow:hidden;top:50%;transform:translate(-50%,-50%)scale(.9);transition:opacity .3s,transform .3s}.hb-dialog--visible{opacity:1;transform:translate(-50%,-50%)scale(1)}.hb-dialog--fullscreen{border-radius:0;height:100vh;left:0;max-height:100vh;top:0;transform:none;width:100%!important}.hb-dialog--fullscreen.hb-dialog--visible{transform:none}.hb-dialog__header{align-items:center;border-bottom:1px solid var(--hb-color-border-secondary);display:flex;justify-content:space-between;padding:var(--hb-spacing-md)var(--hb-spacing-lg)}.hb-dialog__title{color:var(--hb-color-text-primary);font-size:var(--hb-font-size-lg);font-weight:600}.hb-dialog__close{align-items:center;background:0 0;border:none;border-radius:var(--hb-border-radius-sm);color:var(--hb-color-text-secondary);cursor:pointer;display:inline-flex;font-size:18px;height:28px;justify-content:center;transition:all var(--hb-transition-duration);width:28px}.hb-dialog__close:hover{background-color:var(--hb-color-fill-tertiary);color:var(--hb-color-text-primary)}.hb-dialog__body{color:var(--hb-color-text);flex:1;font-size:var(--hb-font-size-base);overflow-y:auto;padding:var(--hb-spacing-lg)}.hb-dialog__footer{align-items:center;border-top:1px solid var(--hb-color-border-secondary);display:flex;gap:var(--hb-spacing-xs);justify-content:flex-end;padding:var(--hb-spacing-sm)var(--hb-spacing-lg)}@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}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}";
|
|
6
|
+
const HbDialogStyle0 = dialogCss;
|
|
7
|
+
|
|
8
|
+
const Dialog = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.hbOpen = createEvent(this, "hbOpen", 7);
|
|
12
|
+
this.hbClose = createEvent(this, "hbClose", 7);
|
|
13
|
+
this.hbClosed = createEvent(this, "hbClosed", 7);
|
|
14
|
+
}
|
|
15
|
+
get el() { return getElement(this); }
|
|
16
|
+
/** 是否显示 */
|
|
17
|
+
modelValue = false;
|
|
18
|
+
/** 标题 */
|
|
19
|
+
title = '';
|
|
20
|
+
/** 宽度 */
|
|
21
|
+
width = '50%';
|
|
22
|
+
/** 是否全屏 */
|
|
23
|
+
fullscreen = false;
|
|
24
|
+
/** 是否显示遮罩 */
|
|
25
|
+
modal = true;
|
|
26
|
+
/** 是否点击遮罩关闭 */
|
|
27
|
+
closeOnClickModal = true;
|
|
28
|
+
/** 是否按 ESC 关闭 */
|
|
29
|
+
closeOnPressEscape = true;
|
|
30
|
+
/** 是否显示关闭按钮 */
|
|
31
|
+
showClose = true;
|
|
32
|
+
/** 关闭时销毁 */
|
|
33
|
+
destroyOnClose = false;
|
|
34
|
+
/** 打开事件 */
|
|
35
|
+
hbOpen;
|
|
36
|
+
/** 关闭事件 */
|
|
37
|
+
hbClose;
|
|
38
|
+
/** 已关闭动画结束事件 */
|
|
39
|
+
hbClosed;
|
|
40
|
+
zIndex = 0;
|
|
41
|
+
panelRef;
|
|
42
|
+
trap;
|
|
43
|
+
handleVisibleChange(newVal) {
|
|
44
|
+
if (newVal) {
|
|
45
|
+
this.zIndex = getNextZIndex();
|
|
46
|
+
if (this.modal)
|
|
47
|
+
lockScroll();
|
|
48
|
+
this.hbOpen.emit();
|
|
49
|
+
document.addEventListener('keydown', this.handleKeyDown);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
if (this.modal)
|
|
53
|
+
unlockScroll();
|
|
54
|
+
document.removeEventListener('keydown', this.handleKeyDown);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
disconnectedCallback() {
|
|
58
|
+
if (this.modelValue && this.modal)
|
|
59
|
+
unlockScroll();
|
|
60
|
+
document.removeEventListener('keydown', this.handleKeyDown);
|
|
61
|
+
this.trap?.disconnect();
|
|
62
|
+
}
|
|
63
|
+
componentDidRender() {
|
|
64
|
+
if (!this.panelRef)
|
|
65
|
+
return;
|
|
66
|
+
if (this.modelValue) {
|
|
67
|
+
if (!this.trap) {
|
|
68
|
+
this.trap = createFocusTrap({ container: this.panelRef });
|
|
69
|
+
}
|
|
70
|
+
this.trap.connect();
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
this.trap?.disconnect();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
handleKeyDown = (e) => {
|
|
77
|
+
if (this.closeOnPressEscape && e.key === 'Escape') {
|
|
78
|
+
this.close();
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
close = () => {
|
|
82
|
+
this.modelValue = false;
|
|
83
|
+
this.hbClose.emit();
|
|
84
|
+
setTimeout(() => this.hbClosed.emit(), 300);
|
|
85
|
+
};
|
|
86
|
+
handleOverlayClick = () => {
|
|
87
|
+
if (this.closeOnClickModal)
|
|
88
|
+
this.close();
|
|
89
|
+
};
|
|
90
|
+
render() {
|
|
91
|
+
if (this.destroyOnClose && !this.modelValue)
|
|
92
|
+
return null;
|
|
93
|
+
return (h("div", { class: { 'hb-dialog-wrapper': true, 'hb-dialog-wrapper--hidden': !this.modelValue } }, this.modal && (h("div", { class: "hb-dialog__overlay", style: { zIndex: String(this.zIndex) }, onClick: this.handleOverlayClick })), h("div", { ref: (el) => (this.panelRef = el), class: {
|
|
94
|
+
'hb-dialog': true,
|
|
95
|
+
'hb-dialog--fullscreen': this.fullscreen,
|
|
96
|
+
'hb-dialog--visible': this.modelValue,
|
|
97
|
+
}, style: {
|
|
98
|
+
zIndex: String(this.zIndex + 1),
|
|
99
|
+
width: this.fullscreen ? '100%' : this.width,
|
|
100
|
+
}, role: "dialog", "aria-modal": "true" }, h("div", { class: "hb-dialog__header" }, h("span", { class: "hb-dialog__title" }, this.title), this.showClose && (h("button", { type: "button", class: "hb-dialog__close", "aria-label": "\u5173\u95ED", onClick: this.close }, "\u00D7"))), h("div", { class: "hb-dialog__body" }, h("slot", null)), h("div", { class: "hb-dialog__footer" }, h("slot", { name: "footer" })))));
|
|
101
|
+
}
|
|
102
|
+
static get watchers() { return {
|
|
103
|
+
"modelValue": ["handleVisibleChange"]
|
|
104
|
+
}; }
|
|
105
|
+
};
|
|
106
|
+
Dialog.style = HbDialogStyle0;
|
|
107
|
+
|
|
108
|
+
export { Dialog as hb_dialog };
|
|
109
|
+
|
|
110
|
+
//# sourceMappingURL=hb-dialog.entry.js.map
|
|
@@ -0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E,CAAC,EAAE,MAAM,IAAI,CAAC,QAAQ,GAAG,EAAiB,CAAC,EAChD,KAAK,EAAE;gBACL,WAAW,EAAE,IAAI;gBACjB,uBAAuB,EAAE,IAAI,CAAC,UAAU;gBACxC,oBAAoB,EAAE,IAAI,CAAC,UAAU;aACtC,EACD,KAAK,EAAE;gBACL,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;gBAC/B,KAAK,EAAE,IAAI,CAAC,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC,KAAK;aAC7C,EACD,IAAI,EAAC,QAAQ,gBACF,MAAM,IAEjB,WAAK,KAAK,EAAC,mBAAmB,IAC5B,YAAM,KAAK,EAAC,kBAAkB,IAAE,IAAI,CAAC,KAAK,CAAQ,EACjD,IAAI,CAAC,SAAS,KACb,cAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,kBAAkB,gBAAY,cAAI,EAAC,OAAO,EAAE,IAAI,CAAC,KAAK,aAAY,CAC/F,CACG,EACN,WAAK,KAAK,EAAC,iBAAiB,IAC1B,eAAQ,CACJ,EACN,WAAK,KAAK,EAAC,mBAAmB,IAC5B,YAAM,IAAI,EAAC,QAAQ,GAAG,CAClB,CACF,CACF,EACN;KACH;;;;;;;;;","names":[],"sources":["src/components/Dialog/dialog.css?tag=hb-dialog&encapsulation=shadow","src/components/Dialog/Dialog.tsx"],"sourcesContent":[":host {\n display: contents;\n}\n\n.hb-dialog-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n\n.hb-dialog-wrapper--hidden {\n display: none;\n}\n\n.hb-dialog__overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: var(--hb-color-bg-mask);\n transition: opacity 0.3s;\n pointer-events: auto;\n}\n\n.hb-dialog {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(0.9);\n background-color: var(--hb-dialog-bg);\n border-radius: var(--hb-dialog-radius);\n box-shadow: var(--hb-dialog-shadow);\n pointer-events: auto;\n opacity: 0;\n transition: opacity 0.3s, transform 0.3s;\n display: flex;\n flex-direction: column;\n max-height: 90vh;\n overflow: hidden;\n}\n\n.hb-dialog--visible {\n opacity: 1;\n transform: translate(-50%, -50%) scale(1);\n}\n\n.hb-dialog--fullscreen {\n width: 100% !important;\n height: 100vh;\n top: 0;\n left: 0;\n transform: none;\n border-radius: 0;\n max-height: 100vh;\n}\n.hb-dialog--fullscreen.hb-dialog--visible {\n transform: none;\n}\n\n.hb-dialog__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: var(--hb-spacing-md) var(--hb-spacing-lg);\n border-bottom: 1px solid var(--hb-color-border-secondary);\n}\n\n.hb-dialog__title {\n font-size: var(--hb-font-size-lg);\n font-weight: 600;\n color: var(--hb-color-text-primary);\n}\n\n.hb-dialog__close {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n border: none;\n background: none;\n font-size: 18px;\n color: var(--hb-color-text-secondary);\n cursor: pointer;\n border-radius: var(--hb-border-radius-sm);\n transition: all var(--hb-transition-duration);\n}\n\n.hb-dialog__close:hover {\n background-color: var(--hb-color-fill-tertiary);\n color: var(--hb-color-text-primary);\n}\n\n.hb-dialog__body {\n flex: 1;\n padding: var(--hb-spacing-lg);\n overflow-y: auto;\n color: var(--hb-color-text);\n font-size: var(--hb-font-size-base);\n}\n\n.hb-dialog__footer {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: var(--hb-spacing-xs);\n padding: var(--hb-spacing-sm) var(--hb-spacing-lg);\n border-top: 1px solid var(--hb-color-border-secondary);\n}\n","import { Component, h, Prop, Event, EventEmitter, Watch, Element } from '@stencil/core';\nimport { lockScroll, unlockScroll, getNextZIndex } from '../../utils/popup-manager';\nimport { createFocusTrap, FocusTrap } from '../../utils/a11y';\n\n/**\n * Dialog 对话框组件\n * 在保留当前页面状态的情况下,告知用户并承载相关操作\n */\n@Component({\n tag: 'hb-dialog',\n styleUrl: 'dialog.css',\n shadow: true,\n})\nexport class Dialog {\n @Element() el: HTMLElement;\n\n /** 是否显示 */\n @Prop({ mutable: true }) modelValue: boolean = false;\n\n /** 标题 */\n @Prop() title: string = '';\n\n /** 宽度 */\n @Prop() width: string = '50%';\n\n /** 是否全屏 */\n @Prop() fullscreen: boolean = false;\n\n /** 是否显示遮罩 */\n @Prop() modal: boolean = true;\n\n /** 是否点击遮罩关闭 */\n @Prop() closeOnClickModal: boolean = true;\n\n /** 是否按 ESC 关闭 */\n @Prop() closeOnPressEscape: boolean = true;\n\n /** 是否显示关闭按钮 */\n @Prop() showClose: boolean = true;\n\n /** 关闭时销毁 */\n @Prop() destroyOnClose: boolean = false;\n\n /** 打开事件 */\n @Event() hbOpen: EventEmitter<void>;\n\n /** 关闭事件 */\n @Event() hbClose: EventEmitter<void>;\n\n /** 已关闭动画结束事件 */\n @Event() hbClosed: EventEmitter<void>;\n\n private zIndex: number = 0;\n private panelRef?: HTMLElement;\n private trap?: FocusTrap;\n\n @Watch('modelValue')\n handleVisibleChange(newVal: boolean) {\n if (newVal) {\n this.zIndex = getNextZIndex();\n if (this.modal) lockScroll();\n this.hbOpen.emit();\n document.addEventListener('keydown', this.handleKeyDown);\n } else {\n if (this.modal) unlockScroll();\n document.removeEventListener('keydown', this.handleKeyDown);\n }\n }\n\n disconnectedCallback() {\n if (this.modelValue && this.modal) unlockScroll();\n document.removeEventListener('keydown', this.handleKeyDown);\n this.trap?.disconnect();\n }\n\n componentDidRender() {\n if (!this.panelRef) return;\n if (this.modelValue) {\n if (!this.trap) {\n this.trap = createFocusTrap({ container: this.panelRef });\n }\n this.trap.connect();\n } else {\n this.trap?.disconnect();\n }\n }\n\n private handleKeyDown = (e: KeyboardEvent) => {\n if (this.closeOnPressEscape && e.key === 'Escape') {\n this.close();\n }\n };\n\n private close = () => {\n this.modelValue = false;\n this.hbClose.emit();\n setTimeout(() => this.hbClosed.emit(), 300);\n };\n\n private handleOverlayClick = () => {\n if (this.closeOnClickModal) this.close();\n };\n\n render() {\n if (this.destroyOnClose && !this.modelValue) return null;\n\n return (\n <div class={{ 'hb-dialog-wrapper': true, 'hb-dialog-wrapper--hidden': !this.modelValue }}>\n {this.modal && (\n <div\n class=\"hb-dialog__overlay\"\n style={{ zIndex: String(this.zIndex) }}\n onClick={this.handleOverlayClick}\n />\n )}\n <div\n ref={(el) => (this.panelRef = el as HTMLElement)}\n class={{\n 'hb-dialog': true,\n 'hb-dialog--fullscreen': this.fullscreen,\n 'hb-dialog--visible': this.modelValue,\n }}\n style={{\n zIndex: String(this.zIndex + 1),\n width: this.fullscreen ? '100%' : this.width,\n }}\n role=\"dialog\"\n aria-modal=\"true\"\n >\n <div class=\"hb-dialog__header\">\n <span class=\"hb-dialog__title\">{this.title}</span>\n {this.showClose && (\n <button type=\"button\" class=\"hb-dialog__close\" aria-label=\"关闭\" onClick={this.close}>×</button>\n )}\n </div>\n <div class=\"hb-dialog__body\">\n <slot />\n </div>\n <div class=\"hb-dialog__footer\">\n <slot name=\"footer\" />\n </div>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { r as registerInstance, g as getElement, h } from './index-fdf7135e.js';
|
|
2
|
+
|
|
3
|
+
const dividerCss = "/*! 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-divider{align-items:center;border:0;color:var(--hb-color-text-secondary);display:flex;font-size:var(--hb-font-size-sm);margin:var(--hb-spacing-md)0}.hb-divider__line{border-top:1px solid var(--hb-color-border-secondary);flex:1}.hb-divider--dashed .hb-divider__line{border-top-style:dashed}.hb-divider--vertical{display:inline-flex;flex-direction:column;height:.9em;margin:0 var(--hb-spacing-xs)}.hb-divider--vertical .hb-divider__line{border-left:1px solid var(--hb-color-border-secondary);border-top:none;flex:none;height:100%}.hb-divider__text{padding:0 var(--hb-spacing-sm);white-space:nowrap}@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}";
|
|
4
|
+
const HbDividerStyle0 = dividerCss;
|
|
5
|
+
|
|
6
|
+
const Divider = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
}
|
|
10
|
+
get el() { return getElement(this); }
|
|
11
|
+
/** 分割线方向 */
|
|
12
|
+
direction = 'horizontal';
|
|
13
|
+
/** 文字位置 */
|
|
14
|
+
contentPosition = 'center';
|
|
15
|
+
/** 是否虚线 */
|
|
16
|
+
dashed = false;
|
|
17
|
+
render() {
|
|
18
|
+
const hasContent = this.el.childNodes.length > 0;
|
|
19
|
+
return (h("div", { key: '9c92e52f27cf63f9eb08f76204c0380df1f70762', class: {
|
|
20
|
+
'hb-divider': true,
|
|
21
|
+
[`hb-divider--${this.direction}`]: true,
|
|
22
|
+
'hb-divider--dashed': this.dashed,
|
|
23
|
+
'hb-divider--with-text': hasContent,
|
|
24
|
+
[`hb-divider--with-text-${this.contentPosition}`]: hasContent,
|
|
25
|
+
} }, h("div", { key: 'be7ed538cb7c11ecd5228456c70064b7a1134c22', class: "hb-divider__line hb-divider__line--before" }), h("div", { key: '381b60a6d74c9d595d23ba931f4de73a1479d45c', class: "hb-divider__text" }, h("slot", { key: '0bd08b0d41a9d2d4dad651e0c37a7e7fc10eab4c' })), h("div", { key: 'dd0774049f2b68b47f21c7171532f830d766c276', class: "hb-divider__line hb-divider__line--after" })));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
Divider.style = HbDividerStyle0;
|
|
29
|
+
|
|
30
|
+
export { Divider as hb_divider };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=hb-divider.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"hb-divider.entry.js","mappings":";;AAAA,MAAM,UAAU,GAAG,ytMAAytM,CAAC;AAC7uM,wBAAe,UAAU;;MCUZ,OAAO;;;;;;IAIV,SAAS,GAA8B,YAAY,CAAC;;IAGpD,eAAe,GAAgC,QAAQ,CAAC;;IAGxD,MAAM,GAAY,KAAK,CAAC;IAEhC,MAAM;QACJ,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC;QACjD,QACE,4DACE,KAAK,EAAE;gBACL,YAAY,EAAE,IAAI;gBAClB,CAAC,eAAe,IAAI,CAAC,SAAS,EAAE,GAAG,IAAI;gBACvC,oBAAoB,EAAE,IAAI,CAAC,MAAM;gBACjC,uBAAuB,EAAE,UAAU;gBACnC,CAAC,yBAAyB,IAAI,CAAC,eAAe,EAAE,GAAG,UAAU;aAC9D,IAED,4DAAK,KAAK,EAAC,2CAA2C,GAAO,EAC7D,4DAAK,KAAK,EAAC,kBAAkB,IAAC,8DAAQ,CAAM,EAC5C,4DAAK,KAAK,EAAC,0CAA0C,GAAO,CACxD,EACN;KACH;;;;;;","names":[],"sources":["src/components/Divider/divider.css?tag=hb-divider&encapsulation=shadow","src/components/Divider/Divider.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.hb-divider {\n display: flex;\n align-items: center;\n margin: var(--hb-spacing-md) 0;\n border: 0;\n color: var(--hb-color-text-secondary);\n font-size: var(--hb-font-size-sm);\n}\n\n.hb-divider__line {\n flex: 1;\n border-top: 1px solid var(--hb-color-border-secondary);\n}\n\n.hb-divider--dashed .hb-divider__line {\n border-top-style: dashed;\n}\n\n.hb-divider--vertical {\n display: inline-flex;\n flex-direction: column;\n margin: 0 var(--hb-spacing-xs);\n height: 0.9em;\n}\n\n.hb-divider--vertical .hb-divider__line {\n border-top: none;\n border-left: 1px solid var(--hb-color-border-secondary);\n flex: none;\n height: 100%;\n}\n\n.hb-divider__text {\n padding: 0 var(--hb-spacing-sm);\n white-space: nowrap;\n}\n","import { Component, h, Prop, Element } from '@stencil/core';\n\n/**\n * Divider 分割线组件\n * 区隔内容的分割线\n */\n@Component({\n tag: 'hb-divider',\n styleUrl: 'divider.css',\n shadow: true,\n})\nexport class Divider {\n @Element() el: HTMLElement;\n\n /** 分割线方向 */\n @Prop() direction: 'horizontal' | 'vertical' = 'horizontal';\n\n /** 文字位置 */\n @Prop() contentPosition: 'left' | 'center' | 'right' = 'center';\n\n /** 是否虚线 */\n @Prop() dashed: boolean = false;\n\n render() {\n const hasContent = this.el.childNodes.length > 0;\n return (\n <div\n class={{\n 'hb-divider': true,\n [`hb-divider--${this.direction}`]: true,\n 'hb-divider--dashed': this.dashed,\n 'hb-divider--with-text': hasContent,\n [`hb-divider--with-text-${this.contentPosition}`]: hasContent,\n }}\n >\n <div class=\"hb-divider__line hb-divider__line--before\"></div>\n <div class=\"hb-divider__text\"><slot /></div>\n <div class=\"hb-divider__line hb-divider__line--after\"></div>\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-fdf7135e.js';
|
|
2
|
+
import { g as getNextZIndex, l as lockScroll, u as unlockScroll } from './popup-manager-128cc685.js';
|
|
3
|
+
import { c as createFocusTrap } from './a11y-f9ab2964.js';
|
|
4
|
+
|
|
5
|
+
const drawerCss = "/*! 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{.visible{visibility:visible}.container{width:100%}.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:contents}.hb-drawer-wrapper{inset:0;pointer-events:none;position:fixed;z-index:1000}.hb-drawer__overlay{background:var(--hb-color-bg-mask);inset:0;transition:opacity .3s}.hb-drawer,.hb-drawer__overlay{pointer-events:auto;position:fixed}.hb-drawer{background:var(--hb-color-bg-elevated);box-shadow:var(--hb-box-shadow-lg);display:flex;flex-direction:column;transition:transform .3s}.hb-drawer--rtl{bottom:0;right:0;top:0;transform:translate(100%)}.hb-drawer--ltr{bottom:0;left:0;top:0;transform:translate(-100%)}.hb-drawer--ttb{left:0;right:0;top:0;transform:translateY(-100%)}.hb-drawer--btt{bottom:0;left:0;right:0;transform:translateY(100%)}.hb-drawer--visible.hb-drawer--ltr,.hb-drawer--visible.hb-drawer--rtl{transform:translate(0)}.hb-drawer--visible.hb-drawer--btt,.hb-drawer--visible.hb-drawer--ttb{transform:translateY(0)}.hb-drawer__header{align-items:center;border-bottom:1px solid var(--hb-color-border-secondary);display:flex;justify-content:space-between;padding:var(--hb-spacing-md)var(--hb-spacing-lg)}.hb-drawer__title{font-size:var(--hb-font-size-lg);font-weight:600}.hb-drawer__close{align-items:center;background:0 0;border:none;border-radius:var(--hb-border-radius-sm);color:var(--hb-color-text-secondary);cursor:pointer;display:flex;font-size:18px;height:28px;justify-content:center;width:28px}.hb-drawer__close:hover{background:var(--hb-color-fill-tertiary)}.hb-drawer__body{flex:1;overflow-y:auto;padding:var(--hb-spacing-lg)}@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}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}";
|
|
6
|
+
const HbDrawerStyle0 = drawerCss;
|
|
7
|
+
|
|
8
|
+
const Drawer = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.hbOpen = createEvent(this, "hbOpen", 7);
|
|
12
|
+
this.hbClose = createEvent(this, "hbClose", 7);
|
|
13
|
+
}
|
|
14
|
+
modelValue = false;
|
|
15
|
+
title = '';
|
|
16
|
+
size = '30%';
|
|
17
|
+
direction = 'rtl';
|
|
18
|
+
closeOnClickModal = true;
|
|
19
|
+
showClose = true;
|
|
20
|
+
modal = true;
|
|
21
|
+
/** 是否按 ESC 关闭 */
|
|
22
|
+
closeOnPressEscape = true;
|
|
23
|
+
zIndexState = 0;
|
|
24
|
+
zIndex = 0;
|
|
25
|
+
panelRef;
|
|
26
|
+
trap;
|
|
27
|
+
hbOpen;
|
|
28
|
+
hbClose;
|
|
29
|
+
handleVisible(val) {
|
|
30
|
+
if (val) {
|
|
31
|
+
this.zIndex = getNextZIndex();
|
|
32
|
+
this.zIndexState = this.zIndex;
|
|
33
|
+
if (this.modal)
|
|
34
|
+
lockScroll();
|
|
35
|
+
this.hbOpen.emit();
|
|
36
|
+
document.addEventListener('keydown', this.handleKeyDown);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
if (this.modal)
|
|
40
|
+
unlockScroll();
|
|
41
|
+
this.hbClose.emit();
|
|
42
|
+
document.removeEventListener('keydown', this.handleKeyDown);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
componentDidRender() {
|
|
46
|
+
if (!this.panelRef)
|
|
47
|
+
return;
|
|
48
|
+
if (this.modelValue) {
|
|
49
|
+
if (!this.trap) {
|
|
50
|
+
this.trap = createFocusTrap({ container: this.panelRef });
|
|
51
|
+
}
|
|
52
|
+
this.trap.connect();
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
this.trap?.disconnect();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
disconnectedCallback() {
|
|
59
|
+
if (this.modelValue && this.modal)
|
|
60
|
+
unlockScroll();
|
|
61
|
+
document.removeEventListener('keydown', this.handleKeyDown);
|
|
62
|
+
this.trap?.disconnect();
|
|
63
|
+
}
|
|
64
|
+
handleKeyDown = (e) => {
|
|
65
|
+
if (this.closeOnPressEscape && e.key === 'Escape') {
|
|
66
|
+
this.close();
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
close = () => { this.modelValue = false; };
|
|
70
|
+
render() {
|
|
71
|
+
const dir = this.direction;
|
|
72
|
+
const isVertical = dir === 'ttb' || dir === 'btt';
|
|
73
|
+
const sizeStyle = isVertical ? { height: this.size } : { width: this.size };
|
|
74
|
+
const translateClass = `hb-drawer--${dir}`;
|
|
75
|
+
return (h("div", { key: 'fdcae509a34a2de7ba9405106b217fda8ce765fa', class: { 'hb-drawer-wrapper': true, 'hb-drawer-wrapper--visible': this.modelValue } }, this.modal && h("div", { key: '439a2a35c0936bc0e347e7826f801dbf87d1047b', class: "hb-drawer__overlay", style: { zIndex: String(this.zIndexState) }, onClick: () => this.closeOnClickModal && this.close() }), h("div", { key: '924fc27dc43f9d7b466b81a7b70cbfb1a6ba199e', ref: (el) => (this.panelRef = el), class: { 'hb-drawer': true, [translateClass]: true, 'hb-drawer--visible': this.modelValue }, style: { ...sizeStyle, zIndex: String(this.zIndexState + 1) }, role: "dialog", "aria-modal": "true", "aria-label": this.title || undefined }, h("div", { key: '6c0c1e6e4938ad96c51add0e4be93de8ef72a056', class: "hb-drawer__header" }, h("span", { key: 'bc061a418b7358364b19190cc6b042fb5a049c95', class: "hb-drawer__title" }, this.title), this.showClose && h("button", { key: '52ceeac26c55f0e89c8c4410959c25b13ab2e28b', type: "button", class: "hb-drawer__close", "aria-label": "\u5173\u95ED", onClick: this.close }, "\u00D7")), h("div", { key: 'ca916f681e9c7e4fb33d1d0b7cee03a20f42f7eb', class: "hb-drawer__body" }, h("slot", { key: 'f8a3fb1d251d5c16c98257bb8896c081623f321e' })))));
|
|
76
|
+
}
|
|
77
|
+
static get watchers() { return {
|
|
78
|
+
"modelValue": ["handleVisible"]
|
|
79
|
+
}; }
|
|
80
|
+
};
|
|
81
|
+
Drawer.style = HbDrawerStyle0;
|
|
82
|
+
|
|
83
|
+
export { Drawer as hb_drawer };
|
|
84
|
+
|
|
85
|
+
//# sourceMappingURL=hb-drawer.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"hb-drawer.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K,EAAE,GAAI,EACrJ,4DACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,QAAQ,GAAG,EAAiB,CAAC,EAChD,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,cAAc,GAAG,IAAI,EAAE,oBAAoB,EAAE,IAAI,CAAC,UAAU,EAAE,EAC3F,KAAK,EAAE,EAAE,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE,EAC7D,IAAI,EAAC,QAAQ,gBACF,MAAM,gBACL,IAAI,CAAC,KAAK,IAAI,SAAS,IAEnC,4DAAK,KAAK,EAAC,mBAAmB,IAC5B,6DAAM,KAAK,EAAC,kBAAkB,IAAE,IAAI,CAAC,KAAK,CAAQ,EACjD,IAAI,CAAC,SAAS,IAAI,+DAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,kBAAkB,gBAAY,cAAI,EAAC,OAAO,EAAE,IAAI,CAAC,KAAK,aAAY,CAC7G,EACN,4DAAK,KAAK,EAAC,iBAAiB,IAAC,8DAAQ,CAAM,CACvC,CACF,EACN;KACH;;;;;;;;;","names":[],"sources":["src/components/Drawer/drawer.css?tag=hb-drawer&encapsulation=shadow","src/components/Drawer/Drawer.tsx"],"sourcesContent":[":host { display: contents; }\n.hb-drawer-wrapper { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 1000; }\n.hb-drawer__overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--hb-color-bg-mask); pointer-events: auto; transition: opacity 0.3s; }\n.hb-drawer {\n position: fixed; background: var(--hb-color-bg-elevated); box-shadow: var(--hb-box-shadow-lg);\n display: flex; flex-direction: column; pointer-events: auto; transition: transform 0.3s ease;\n}\n.hb-drawer--rtl { top: 0; right: 0; bottom: 0; transform: translateX(100%); }\n.hb-drawer--ltr { top: 0; left: 0; bottom: 0; transform: translateX(-100%); }\n.hb-drawer--ttb { left: 0; right: 0; top: 0; transform: translateY(-100%); }\n.hb-drawer--btt { left: 0; right: 0; bottom: 0; transform: translateY(100%); }\n.hb-drawer--visible.hb-drawer--rtl, .hb-drawer--visible.hb-drawer--ltr { transform: translateX(0); }\n.hb-drawer--visible.hb-drawer--ttb, .hb-drawer--visible.hb-drawer--btt { transform: translateY(0); }\n.hb-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: var(--hb-spacing-md) var(--hb-spacing-lg); border-bottom: 1px solid var(--hb-color-border-secondary); }\n.hb-drawer__title { font-size: var(--hb-font-size-lg); font-weight: 600; }\n.hb-drawer__close { border: none; background: none; font-size: 18px; cursor: pointer; color: var(--hb-color-text-secondary); width: 28px; height: 28px; border-radius: var(--hb-border-radius-sm); display: flex; align-items: center; justify-content: center; }\n.hb-drawer__close:hover { background: var(--hb-color-fill-tertiary); }\n.hb-drawer__body { flex: 1; padding: var(--hb-spacing-lg); overflow-y: auto; }\n","import { Component, h, Prop, Event, EventEmitter, Watch, State } from '@stencil/core';\nimport { lockScroll, unlockScroll, getNextZIndex } from '../../utils/popup-manager';\nimport { createFocusTrap, FocusTrap } from '../../utils/a11y';\n\n@Component({ tag: 'hb-drawer', styleUrl: 'drawer.css', shadow: true })\nexport class Drawer {\n @Prop({ mutable: true }) modelValue: boolean = false;\n @Prop() title: string = '';\n @Prop() size: string = '30%';\n @Prop() direction: 'ltr' | 'rtl' | 'ttb' | 'btt' = 'rtl';\n @Prop() closeOnClickModal: boolean = true;\n @Prop() showClose: boolean = true;\n @Prop() modal: boolean = true;\n /** 是否按 ESC 关闭 */\n @Prop() closeOnPressEscape: boolean = true;\n @State() private zIndexState: number = 0;\n private zIndex: number = 0;\n private panelRef?: HTMLElement;\n private trap?: FocusTrap;\n\n @Event() hbOpen: EventEmitter<void>;\n @Event() hbClose: EventEmitter<void>;\n\n @Watch('modelValue')\n handleVisible(val: boolean) {\n if (val) {\n this.zIndex = getNextZIndex();\n this.zIndexState = this.zIndex;\n if (this.modal) lockScroll();\n this.hbOpen.emit();\n document.addEventListener('keydown', this.handleKeyDown);\n } else {\n if (this.modal) unlockScroll();\n this.hbClose.emit();\n document.removeEventListener('keydown', this.handleKeyDown);\n }\n }\n\n componentDidRender() {\n if (!this.panelRef) return;\n if (this.modelValue) {\n if (!this.trap) {\n this.trap = createFocusTrap({ container: this.panelRef });\n }\n this.trap.connect();\n } else {\n this.trap?.disconnect();\n }\n }\n\n disconnectedCallback() {\n if (this.modelValue && this.modal) unlockScroll();\n document.removeEventListener('keydown', this.handleKeyDown);\n this.trap?.disconnect();\n }\n\n private handleKeyDown = (e: KeyboardEvent) => {\n if (this.closeOnPressEscape && e.key === 'Escape') {\n this.close();\n }\n };\n\n private close = () => { this.modelValue = false; };\n\n render() {\n const dir = this.direction;\n const isVertical = dir === 'ttb' || dir === 'btt';\n const sizeStyle = isVertical ? { height: this.size } : { width: this.size };\n const translateClass = `hb-drawer--${dir}`;\n\n return (\n <div class={{ 'hb-drawer-wrapper': true, 'hb-drawer-wrapper--visible': this.modelValue }}>\n {this.modal && <div class=\"hb-drawer__overlay\" style={{ zIndex: String(this.zIndexState) }} onClick={() => this.closeOnClickModal && this.close()} />}\n <div\n ref={(el) => (this.panelRef = el as HTMLElement)}\n class={{ 'hb-drawer': true, [translateClass]: true, 'hb-drawer--visible': this.modelValue }}\n style={{ ...sizeStyle, zIndex: String(this.zIndexState + 1) }}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label={this.title || undefined}\n >\n <div class=\"hb-drawer__header\">\n <span class=\"hb-drawer__title\">{this.title}</span>\n {this.showClose && <button type=\"button\" class=\"hb-drawer__close\" aria-label=\"关闭\" onClick={this.close}>×</button>}\n </div>\n <div class=\"hb-drawer__body\"><slot /></div>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
|