@woodger/antd 0.1.2 → 0.1.3
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/dist/affix/Affix.svelte +7 -2
- package/dist/affix/affix.types.d.ts +3 -2
- package/dist/alert/Alert.svelte +17 -12
- package/dist/alert/alert.types.d.ts +12 -11
- package/dist/anchor/AnchorLink.svelte +4 -1
- package/dist/anchor/anchor.types.d.ts +10 -9
- package/dist/app/App.svelte +2 -1
- package/dist/app/app.types.d.ts +3 -2
- package/dist/auto-complete/AutoComplete.svelte +206 -41
- package/dist/auto-complete/auto-complete.types.d.ts +34 -3
- package/dist/avatar/Avatar.svelte +43 -30
- package/dist/avatar/AvatarGroup.svelte +31 -10
- package/dist/avatar/AvatarGroupOverflow.svelte +27 -8
- package/dist/avatar/AvatarGroupOverflow.svelte.d.ts +2 -0
- package/dist/avatar/avatar-group-context.d.ts +10 -0
- package/dist/avatar/avatar-group-context.js +11 -0
- package/dist/avatar/avatar-group.engine.d.ts +13 -4
- package/dist/avatar/avatar-group.engine.js +18 -0
- package/dist/avatar/avatar-group.types.d.ts +11 -5
- package/dist/avatar/avatar.types.d.ts +6 -4
- package/dist/badge/Badge.svelte +34 -15
- package/dist/badge/BadgeRibbon.svelte +23 -19
- package/dist/badge/badge-ribbon.dom.d.ts +2 -4
- package/dist/badge/badge-ribbon.dom.js +14 -10
- package/dist/badge/badge-ribbon.types.d.ts +12 -11
- package/dist/badge/badge-style.dom.d.ts +2 -2
- package/dist/badge/badge-style.dom.js +9 -5
- package/dist/badge/badge-style.engine.d.ts +5 -0
- package/dist/badge/badge-style.engine.js +9 -2
- package/dist/badge/badge.engine.js +1 -1
- package/dist/badge/badge.types.d.ts +15 -11
- package/dist/border-beam/BorderBeam.svelte +4 -2
- package/dist/border-beam/border-beam.engine.d.ts +2 -2
- package/dist/border-beam/border-beam.engine.js +7 -12
- package/dist/border-beam/border-beam.types.d.ts +4 -3
- package/dist/breadcrumb/Breadcrumb.svelte +4 -1
- package/dist/breadcrumb/BreadcrumbEntry.svelte +6 -19
- package/dist/breadcrumb/breadcrumb.engine.d.ts +5 -2
- package/dist/breadcrumb/breadcrumb.engine.js +25 -2
- package/dist/breadcrumb/breadcrumb.types.d.ts +30 -18
- package/dist/button/Button.svelte +28 -6
- package/dist/button/ButtonLabel.svelte +23 -0
- package/dist/button/ButtonLabel.svelte.d.ts +13 -0
- package/dist/button/button.engine.d.ts +6 -0
- package/dist/button/button.engine.js +35 -0
- package/dist/button/button.types.d.ts +11 -8
- package/dist/calendar/CalendarCore.svelte +23 -17
- package/dist/calendar/calendar.types.d.ts +8 -7
- package/dist/card/Card.svelte +55 -16
- package/dist/card/CardGrid.svelte +4 -1
- package/dist/card/CardMeta.svelte +4 -1
- package/dist/card/card-semantic.engine.d.ts +1 -1
- package/dist/card/card-semantic.engine.js +2 -2
- package/dist/card/card.engine.d.ts +2 -0
- package/dist/card/card.engine.js +7 -0
- package/dist/card/card.types.d.ts +19 -19
- package/dist/carousel/Carousel.svelte +5 -2
- package/dist/carousel/carousel-settings.engine.d.ts +1 -1
- package/dist/carousel/carousel.types.d.ts +4 -3
- package/dist/cascader/Cascader.svelte +8 -3
- package/dist/cascader/Cascader.svelte.d.ts +13 -13
- package/dist/cascader/CascaderColumns.svelte +25 -27
- package/dist/cascader/CascaderColumns.svelte.d.ts +9 -7
- package/dist/cascader/CascaderCore.svelte +807 -132
- package/dist/cascader/CascaderCore.svelte.d.ts +14 -14
- package/dist/cascader/CascaderPanel.svelte +9 -3
- package/dist/cascader/CascaderPanel.svelte.d.ts +13 -13
- package/dist/cascader/cascader.component.d.ts +9 -3
- package/dist/cascader/cascader.dom.d.ts +1 -1
- package/dist/cascader/cascader.dom.js +2 -2
- package/dist/cascader/cascader.engine.d.ts +51 -24
- package/dist/cascader/cascader.engine.js +69 -6
- package/dist/cascader/cascader.types.d.ts +126 -45
- package/dist/checkbox/Checkbox.svelte +10 -6
- package/dist/checkbox/CheckboxGroup.svelte +8 -3
- package/dist/checkbox/checkbox-group.types.d.ts +5 -4
- package/dist/checkbox/checkbox.types.d.ts +15 -13
- package/dist/collapse/Collapse.svelte +39 -10
- package/dist/collapse/CollapseItemView.svelte +5 -4
- package/dist/collapse/CollapsePanel.svelte +35 -3
- package/dist/collapse/CollapsePanel.svelte.d.ts +3 -0
- package/dist/collapse/collapse-context.d.ts +5 -1
- package/dist/collapse/collapse.engine.d.ts +4 -4
- package/dist/collapse/collapse.types.d.ts +20 -14
- package/dist/color-picker/ColorPicker.svelte +165 -107
- package/dist/color-picker/ColorPickerPresets.svelte +4 -1
- package/dist/color-picker/color-picker-alignment.dom.d.ts +17 -0
- package/dist/color-picker/color-picker-alignment.dom.js +144 -0
- package/dist/color-picker/color-picker.types.d.ts +14 -13
- package/dist/component-refs.types.d.ts +1 -1
- package/dist/descriptions/Descriptions.svelte +16 -9
- package/dist/descriptions/DescriptionsCell.svelte +19 -19
- package/dist/descriptions/DescriptionsCell.svelte.d.ts +2 -1
- package/dist/descriptions/descriptions-semantic.engine.d.ts +2 -2
- package/dist/descriptions/descriptions-semantic.engine.js +2 -2
- package/dist/descriptions/descriptions.types.d.ts +13 -13
- package/dist/dialog/dialog-container.model.svelte.js +2 -2
- package/dist/divider/Divider.svelte +19 -12
- package/dist/divider/divider.types.d.ts +6 -5
- package/dist/drawer/Drawer.svelte +32 -17
- package/dist/drawer/DrawerPanel.svelte +8 -6
- package/dist/drawer/drawer-ancestor-clip.dom.d.ts +15 -0
- package/dist/drawer/drawer-ancestor-clip.dom.js +145 -0
- package/dist/drawer/drawer-clip-plane.dom.d.ts +22 -0
- package/dist/drawer/drawer-clip-plane.dom.js +100 -0
- package/dist/drawer/drawer-clip-shape.dom.d.ts +5 -0
- package/dist/drawer/drawer-clip-shape.dom.js +52 -0
- package/dist/drawer/drawer-clip-style.dom.d.ts +34 -0
- package/dist/drawer/drawer-clip-style.dom.js +190 -0
- package/dist/drawer/drawer-layout.dom.d.ts +6 -0
- package/dist/drawer/drawer-layout.dom.js +240 -0
- package/dist/drawer/drawer-overflow.dom.d.ts +9 -0
- package/dist/drawer/drawer-overflow.dom.js +249 -0
- package/dist/drawer/drawer-overflow.engine.d.ts +54 -0
- package/dist/drawer/drawer-overflow.engine.js +205 -0
- package/dist/drawer/drawer-panel.engine.d.ts +3 -2
- package/dist/drawer/drawer-panel.engine.js +4 -5
- package/dist/drawer/drawer-svg-clip.dom.d.ts +9 -0
- package/dist/drawer/drawer-svg-clip.dom.js +394 -0
- package/dist/drawer/drawer.dom.d.ts +2 -0
- package/dist/drawer/drawer.dom.js +16 -6
- package/dist/drawer/drawer.types.d.ts +22 -21
- package/dist/dropdown/Dropdown.svelte +122 -21
- package/dist/dropdown/dropdown-position.dom.d.ts +3 -1
- package/dist/dropdown/dropdown-position.dom.js +18 -7
- package/dist/dropdown/dropdown.engine.d.ts +10 -7
- package/dist/dropdown/dropdown.engine.js +29 -13
- package/dist/dropdown/dropdown.types.d.ts +7 -6
- package/dist/empty/Empty.svelte +12 -9
- package/dist/empty/empty.types.d.ts +9 -8
- package/dist/flex/Flex.svelte +21 -7
- package/dist/flex/flex.types.d.ts +2 -1
- package/dist/float-button/FloatButton.svelte +18 -10
- package/dist/float-button/FloatButtonBackTop.svelte +6 -6
- package/dist/float-button/FloatButtonGroup.svelte +20 -21
- package/dist/float-button/float-button-context.d.ts +2 -1
- package/dist/float-button/float-button.types.d.ts +10 -8
- package/dist/form/Form.svelte +6 -2
- package/dist/form/FormItem.svelte +39 -23
- package/dist/form/FormItem.svelte.d.ts +4 -2
- package/dist/form/FormItemTooltip.svelte +2 -2
- package/dist/form/form-internal.d.ts +1 -0
- package/dist/form/form.model.svelte.js +37 -13
- package/dist/form/form.types.d.ts +18 -13
- package/dist/grid/Col.svelte +14 -15
- package/dist/grid/Row.svelte +6 -11
- package/dist/grid/grid.engine.d.ts +4 -1
- package/dist/grid/grid.engine.js +15 -3
- package/dist/grid/grid.types.d.ts +5 -2
- package/dist/image/Image.svelte +9 -8
- package/dist/image/ImagePreview.svelte +15 -11
- package/dist/image/ImagePreview.svelte.d.ts +2 -1
- package/dist/image/ImageProgress.svelte +8 -5
- package/dist/image/ImageProgress.svelte.d.ts +2 -1
- package/dist/image/image-preview-group.types.d.ts +2 -1
- package/dist/image/image-semantic.engine.d.ts +14 -13
- package/dist/image/image-semantic.engine.js +5 -9
- package/dist/image/image.types.d.ts +23 -22
- package/dist/index.d.ts +12 -12
- package/dist/index.js +2 -2
- package/dist/input/Input.svelte +70 -52
- package/dist/input/InputOTP.svelte +9 -7
- package/dist/input/InputPassword.svelte +10 -26
- package/dist/input/InputSearch.svelte +39 -16
- package/dist/input/TextArea.svelte +24 -29
- package/dist/input/input-otp.types.d.ts +12 -9
- package/dist/input/input-password.types.d.ts +6 -6
- package/dist/input/input-search.types.d.ts +8 -8
- package/dist/input/input-value.svelte.d.ts +7 -0
- package/dist/input/input-value.svelte.js +21 -0
- package/dist/input/input.types.d.ts +13 -8
- package/dist/input/textarea.types.d.ts +12 -8
- package/dist/input-number/InputNumberAction.svelte +2 -2
- package/dist/input-number/InputNumberControl.svelte +31 -21
- package/dist/input-number/input-number.types.d.ts +16 -16
- package/dist/layout/Layout.svelte +2 -1
- package/dist/layout/LayoutPart.svelte +2 -1
- package/dist/layout/LayoutSider.svelte +22 -15
- package/dist/layout/layout.types.d.ts +6 -5
- package/dist/listy/Listy.svelte +17 -12
- package/dist/listy/ListyGroupHeader.svelte +8 -2
- package/dist/listy/ListyGroupHeader.svelte.d.ts +2 -1
- package/dist/listy/ListyRaw.svelte +7 -9
- package/dist/listy/ListyVirtual.svelte +5 -2
- package/dist/listy/listy.types.d.ts +13 -10
- package/dist/masonry/Masonry.svelte +27 -17
- package/dist/masonry/MasonryItem.svelte +0 -1
- package/dist/masonry/masonry.types.d.ts +8 -7
- package/dist/mentions/Mentions.svelte +41 -7
- package/dist/mentions/MentionsListbox.svelte +2 -1
- package/dist/mentions/mentions.engine.d.ts +35 -0
- package/dist/mentions/mentions.engine.js +7 -0
- package/dist/mentions/mentions.types.d.ts +12 -8
- package/dist/menu/Menu.svelte +6 -4
- package/dist/menu/MenuItem.svelte +23 -14
- package/dist/menu/MenuItemTooltip.svelte +2 -1
- package/dist/menu/MenuList.svelte +7 -4
- package/dist/menu/MenuSubMenu.svelte +109 -32
- package/dist/menu/menu-motion.engine.js +3 -28
- package/dist/menu/menu-motion.svelte.d.ts +1 -7
- package/dist/menu/menu-motion.svelte.js +1 -33
- package/dist/menu/menu-popup-align.dom.d.ts +1 -1
- package/dist/menu/menu-popup-align.engine.d.ts +2 -2
- package/dist/menu/menu-popup-align.engine.js +1 -4
- package/dist/menu/menu-semantic.engine.d.ts +8 -8
- package/dist/menu/menu-semantic.engine.js +16 -6
- package/dist/menu/menu.engine.d.ts +5 -1
- package/dist/menu/menu.engine.js +15 -0
- package/dist/menu/menu.types.d.ts +25 -22
- package/dist/message/MessageHolder.svelte +6 -5
- package/dist/message/MessageNotice.svelte +12 -9
- package/dist/message/MessageNotice.svelte.d.ts +2 -1
- package/dist/message/message-semantic.engine.d.ts +1 -1
- package/dist/message/message.model.svelte.d.ts +2 -1
- package/dist/message/message.model.svelte.js +2 -1
- package/dist/message/message.types.d.ts +12 -10
- package/dist/modal/Modal.svelte +120 -46
- package/dist/modal/ModalConfirmation.svelte +9 -10
- package/dist/modal/modal-close.engine.d.ts +1 -1
- package/dist/modal/modal-semantic.engine.d.ts +7 -6
- package/dist/modal/modal-semantic.engine.js +2 -2
- package/dist/modal/modal.types.d.ts +25 -18
- package/dist/motion/collapse-motion.engine.d.ts +3 -0
- package/dist/motion/collapse-motion.engine.js +31 -0
- package/dist/motion/css-motion.svelte.d.ts +7 -0
- package/dist/motion/css-motion.svelte.js +35 -0
- package/dist/notice/notice-queue.model.svelte.js +4 -0
- package/dist/notice/notice-semantic.engine.d.ts +10 -7
- package/dist/notice/notice-semantic.engine.js +9 -4
- package/dist/notification/NotificationHolder.svelte +4 -4
- package/dist/notification/NotificationList.svelte +5 -2
- package/dist/notification/NotificationList.svelte.d.ts +2 -1
- package/dist/notification/NotificationNotice.svelte +16 -18
- package/dist/notification/NotificationNotice.svelte.d.ts +2 -1
- package/dist/notification/notification.model.svelte.d.ts +2 -1
- package/dist/notification/notification.types.d.ts +12 -9
- package/dist/pagination/Pagination.svelte +87 -16
- package/dist/pagination/PaginationControl.svelte +2 -0
- package/dist/pagination/pagination.types.d.ts +19 -14
- package/dist/picker/DatePicker.svelte +9 -1
- package/dist/picker/DatePicker.svelte.d.ts +3 -3
- package/dist/picker/DatePickerCalendar.svelte +15 -12
- package/dist/picker/DatePickerCalendar.svelte.d.ts +2 -2
- package/dist/picker/DatePickerTimePanel.svelte +5 -1
- package/dist/picker/DatePickerTimePanel.svelte.d.ts +2 -4
- package/dist/picker/PickerTimeColumn.svelte +27 -12
- package/dist/picker/PickerTimeColumn.svelte.d.ts +3 -0
- package/dist/picker/PickerTimePanel.svelte +16 -0
- package/dist/picker/PickerTimePanel.svelte.d.ts +3 -0
- package/dist/picker/RangePicker.svelte +3 -1
- package/dist/picker/RangePickerCore.svelte +872 -363
- package/dist/picker/RangePickerCore.svelte.d.ts +1 -0
- package/dist/picker/SinglePicker.svelte +682 -309
- package/dist/picker/SinglePicker.svelte.d.ts +1 -0
- package/dist/picker/TimePicker.svelte +3 -1
- package/dist/picker/TimeRangePicker.svelte +2 -0
- package/dist/picker/date-picker-semantic.engine.d.ts +7 -6
- package/dist/picker/date-picker-semantic.engine.js +5 -4
- package/dist/picker/date-picker.types.d.ts +58 -30
- package/dist/picker/picker-adapter-props.engine.d.ts +2 -0
- package/dist/picker/picker-adapter-props.engine.js +4 -0
- package/dist/picker/picker-mask-input.model.svelte.js +9 -5
- package/dist/picker/picker-panel-updates.d.ts +6 -0
- package/dist/picker/picker-panel-updates.js +33 -0
- package/dist/picker/picker-popup-portal.dom.d.ts +49 -0
- package/dist/picker/picker-popup-portal.dom.js +49 -0
- package/dist/picker/picker-popup.dom.d.ts +14 -2
- package/dist/picker/picker-popup.dom.js +153 -40
- package/dist/picker/picker-popup.model.svelte.d.ts +30 -7
- package/dist/picker/picker-popup.model.svelte.js +149 -19
- package/dist/picker/picker-prefix.engine.js +4 -1
- package/dist/picker/picker-style.engine.d.ts +27 -0
- package/dist/picker/picker-style.engine.js +64 -0
- package/dist/picker/picker-time-scroll.model.svelte.d.ts +16 -0
- package/dist/picker/picker-time-scroll.model.svelte.js +31 -0
- package/dist/picker/range-picker-interaction.engine.d.ts +3 -2
- package/dist/picker/range-picker-interaction.engine.js +10 -4
- package/dist/picker/range-picker-popup.dom.d.ts +2 -0
- package/dist/picker/range-picker-popup.dom.js +47 -0
- package/dist/picker/range-picker.types.d.ts +13 -6
- package/dist/picker/time-picker-column.dom.d.ts +6 -1
- package/dist/picker/time-picker-column.dom.js +27 -3
- package/dist/picker/time-picker-props.engine.js +3 -2
- package/dist/picker/time-picker-semantic.engine.d.ts +6 -2
- package/dist/picker/time-picker-semantic.engine.js +32 -18
- package/dist/picker/time-picker.component.d.ts +1 -1
- package/dist/picker/time-picker.types.d.ts +28 -24
- package/dist/picker/time-range-picker-semantic.engine.d.ts +2 -0
- package/dist/picker/time-range-picker-semantic.engine.js +6 -8
- package/dist/picker/time-range-picker.types.d.ts +5 -4
- package/dist/popconfirm/Popconfirm.svelte +42 -11
- package/dist/popconfirm/popconfirm.types.d.ts +15 -11
- package/dist/popover/Popover.svelte +34 -29
- package/dist/popover/popover.types.d.ts +17 -12
- package/dist/popup/PopupContentContext.svelte +14 -0
- package/dist/popup/PopupContentContext.svelte.d.ts +7 -0
- package/dist/popup/overlay-motion.css +86 -3
- package/dist/popup/overlay-portal-alignment.dom.d.ts +34 -0
- package/dist/popup/overlay-portal-alignment.dom.js +166 -0
- package/dist/popup/overlay-semantic.engine.d.ts +16 -15
- package/dist/popup/overlay-semantic.engine.js +5 -6
- package/dist/popup/popup-css-motion.dom.d.ts +24 -0
- package/dist/{tree-select/tree-select-motion.dom.js → popup/popup-css-motion.dom.js} +13 -3
- package/dist/popup/popup-css-motion.model.svelte.d.ts +25 -0
- package/dist/popup/popup-css-motion.model.svelte.js +73 -0
- package/dist/popup/popup-geometry.dom.d.ts +8 -0
- package/dist/popup/popup-geometry.dom.js +68 -0
- package/dist/popup/popup-plane.engine.d.ts +6 -0
- package/dist/popup/popup-plane.engine.js +18 -0
- package/dist/popup/popup-portal-fit.dom.d.ts +3 -0
- package/dist/popup/popup-portal-fit.dom.js +81 -0
- package/dist/popup/popup-portal-projection.dom.d.ts +52 -0
- package/dist/popup/popup-portal-projection.dom.js +208 -0
- package/dist/popup/popup-position.engine.d.ts +5 -3
- package/dist/popup/popup.dom.d.ts +4 -1
- package/dist/popup/popup.dom.js +66 -21
- package/dist/popup/select-popup-motion.engine.d.ts +4 -0
- package/dist/popup/select-popup-motion.engine.js +18 -0
- package/dist/progress/Progress.svelte +53 -26
- package/dist/progress/ProgressCircle.svelte +40 -22
- package/dist/progress/ProgressCircle.svelte.d.ts +2 -1
- package/dist/progress/progress.types.d.ts +6 -5
- package/dist/qr-code/QRCode.svelte +7 -5
- package/dist/qr-code/qrcode.types.d.ts +10 -9
- package/dist/radio/Radio.svelte +10 -6
- package/dist/radio/RadioGroup.svelte +8 -3
- package/dist/radio/radio.types.d.ts +20 -18
- package/dist/rate/Rate.svelte +5 -2
- package/dist/rate/rate.types.d.ts +5 -4
- package/dist/render-content.engine.d.ts +9 -0
- package/dist/render-content.engine.js +21 -0
- package/dist/result/Result.svelte +14 -11
- package/dist/result/result.types.d.ts +11 -10
- package/dist/segmented/Segmented.svelte +23 -13
- package/dist/segmented/segmented.engine.js +2 -1
- package/dist/segmented/segmented.types.d.ts +11 -11
- package/dist/select/Select.svelte +306 -67
- package/dist/select/select-editor-focus.dom.d.ts +14 -0
- package/dist/select/select-editor-focus.dom.js +51 -0
- package/dist/select/select-icons.engine.d.ts +2 -0
- package/dist/select/select-icons.engine.js +17 -8
- package/dist/select/select-mouse-boundary.dom.d.ts +7 -0
- package/dist/select/select-mouse-boundary.dom.js +57 -0
- package/dist/select/select-semantic.engine.d.ts +2 -2
- package/dist/select/select-style.engine.d.ts +2 -2
- package/dist/select/select-style.engine.js +24 -2
- package/dist/select/select-token.engine.d.ts +4 -0
- package/dist/select/select-token.engine.js +13 -0
- package/dist/select/select.types.d.ts +35 -12
- package/dist/skeleton/Skeleton.svelte +20 -13
- package/dist/skeleton/SkeletonElement.svelte +11 -6
- package/dist/skeleton/skeleton.types.d.ts +11 -10
- package/dist/slider/SliderRange.svelte +26 -12
- package/dist/slider/SliderSingle.svelte +47 -67
- package/dist/slider/SliderTooltip.svelte +111 -13
- package/dist/slider/SliderTooltip.svelte.d.ts +4 -3
- package/dist/slider/slider-handle.dom.d.ts +5 -0
- package/dist/slider/slider-handle.dom.js +60 -0
- package/dist/slider/slider-range.engine.d.ts +4 -2
- package/dist/slider/slider-range.engine.js +15 -0
- package/dist/slider/slider-range.types.d.ts +10 -8
- package/dist/slider/slider-semantic.engine.d.ts +1 -1
- package/dist/slider/slider-semantic.engine.js +2 -6
- package/dist/slider/slider.types.d.ts +5 -3
- package/dist/space/Space.svelte +29 -13
- package/dist/space/SpaceAddon.svelte +5 -2
- package/dist/space/SpaceCompact.svelte +3 -1
- package/dist/space/SpaceCompactItem.svelte +4 -1
- package/dist/space/space-compact.types.d.ts +6 -6
- package/dist/space/space.engine.d.ts +5 -1
- package/dist/space/space.engine.js +32 -7
- package/dist/space/space.types.d.ts +15 -12
- package/dist/spin/Spin.svelte +20 -12
- package/dist/spin/spin.types.d.ts +5 -3
- package/dist/splitter/Splitter.svelte +9 -11
- package/dist/splitter/SplitterBar.svelte +2 -1
- package/dist/splitter/SplitterPanel.svelte +14 -2
- package/dist/splitter/SplitterPanel.svelte.d.ts +2 -1
- package/dist/splitter/SplitterPanelDeclaration.svelte +20 -0
- package/dist/splitter/SplitterPanelDeclaration.svelte.d.ts +4 -0
- package/dist/splitter/SplitterPanelDeclarations.svelte +16 -0
- package/dist/splitter/SplitterPanelDeclarations.svelte.d.ts +10 -0
- package/dist/splitter/SplitterRoot.svelte +18 -0
- package/dist/splitter/SplitterRoot.svelte.d.ts +4 -0
- package/dist/splitter/splitter-panel-context.d.ts +10 -0
- package/dist/splitter/splitter-panel-context.js +11 -0
- package/dist/splitter/splitter.component.d.ts +7 -0
- package/dist/splitter/splitter.component.js +6 -0
- package/dist/splitter/splitter.engine.d.ts +6 -1
- package/dist/splitter/splitter.engine.js +18 -0
- package/dist/splitter/splitter.types.d.ts +13 -10
- package/dist/statistic/Statistic.svelte +20 -9
- package/dist/statistic/statistic.types.d.ts +6 -4
- package/dist/steps/StepIcon.svelte +4 -2
- package/dist/steps/StepIcon.svelte.d.ts +2 -1
- package/dist/steps/StepItem.svelte +12 -16
- package/dist/steps/Steps.svelte +4 -7
- package/dist/steps/steps-data.engine.d.ts +5 -4
- package/dist/steps/steps-expanded.types.d.ts +2 -1
- package/dist/steps/steps-icon-context.d.ts +2 -1
- package/dist/steps/steps.types.d.ts +4 -3
- package/dist/style/inline-style-layers.engine.d.ts +11 -0
- package/dist/style/inline-style-layers.engine.js +120 -0
- package/dist/style/inline-style.engine.d.ts +4 -0
- package/dist/style/inline-style.engine.js +17 -9
- package/dist/style/inline-style.types.d.ts +12 -0
- package/dist/style/inline-style.types.js +1 -0
- package/dist/style/semantic-style.engine.d.ts +18 -12
- package/dist/style/semantic-style.engine.js +15 -9
- package/dist/switch/Switch.svelte +12 -7
- package/dist/switch/switch.types.d.ts +14 -12
- package/dist/table/Table.svelte +27 -19
- package/dist/table/Table.svelte.d.ts +4 -2
- package/dist/table/TableColumn.svelte +20 -0
- package/dist/table/TableColumn.svelte.d.ts +25 -0
- package/dist/table/TableColumnDeclarations.svelte +18 -0
- package/dist/table/TableColumnDeclarations.svelte.d.ts +10 -0
- package/dist/table/TableColumnGroup.svelte +31 -0
- package/dist/table/TableColumnGroup.svelte.d.ts +25 -0
- package/dist/table/TableRoot.svelte +55 -0
- package/dist/table/TableRoot.svelte.d.ts +29 -0
- package/dist/table/table-cell.engine.d.ts +8 -8
- package/dist/table/table-column-declarations.svelte.d.ts +22 -0
- package/dist/table/table-column-declarations.svelte.js +45 -0
- package/dist/table/table-semantic.engine.d.ts +18 -6
- package/dist/table/table-semantic.engine.js +14 -14
- package/dist/table/table.component.d.ts +10 -2
- package/dist/table/table.component.js +4 -1
- package/dist/table/table.types.d.ts +53 -25
- package/dist/tabs/Tabs.svelte +29 -14
- package/dist/tabs/TabsNav.svelte +33 -18
- package/dist/tabs/TabsNav.svelte.d.ts +2 -1
- package/dist/tabs/TabsOverflow.svelte +98 -122
- package/dist/tabs/TabsOverflow.svelte.d.ts +2 -1
- package/dist/tabs/TabsPanel.svelte +10 -5
- package/dist/tabs/TabsPanel.svelte.d.ts +4 -3
- package/dist/tabs/tabs-more-alignment.dom.d.ts +32 -0
- package/dist/tabs/tabs-more-alignment.dom.js +158 -0
- package/dist/tabs/tabs-more.dom.d.ts +69 -13
- package/dist/tabs/tabs-more.dom.js +76 -65
- package/dist/tabs/tabs-motion.dom.d.ts +2 -1
- package/dist/tabs/tabs-motion.dom.js +2 -1
- package/dist/tabs/tabs-motion.types.d.ts +4 -3
- package/dist/tabs/tabs-nav.types.d.ts +6 -7
- package/dist/tabs/tabs-semantic.engine.d.ts +18 -12
- package/dist/tabs/tabs-semantic.engine.js +70 -19
- package/dist/tabs/tabs.types.d.ts +35 -29
- package/dist/tag/CheckableTag.svelte +5 -3
- package/dist/tag/CheckableTagGroup.svelte +39 -31
- package/dist/tag/CheckableTagGroup.svelte.d.ts +12 -12
- package/dist/tag/Tag.svelte +11 -19
- package/dist/tag/tag-style.dom.d.ts +3 -1
- package/dist/tag/tag-style.dom.js +19 -1
- package/dist/tag/tag.types.d.ts +30 -27
- package/dist/timeline/Timeline.svelte +8 -3
- package/dist/timeline/timeline.engine.js +3 -1
- package/dist/timeline/timeline.types.d.ts +7 -6
- package/dist/tooltip/Tooltip.svelte +2 -3
- package/dist/tooltip/TooltipPopup.svelte +22 -16
- package/dist/tooltip/TooltipUniqueContent.svelte +3 -6
- package/dist/tooltip/TooltipUniqueContent.svelte.d.ts +0 -1
- package/dist/tooltip/TooltipUniquePopup.svelte +1 -1
- package/dist/tooltip/tooltip.engine.d.ts +58 -2
- package/dist/tooltip/tooltip.engine.js +54 -27
- package/dist/tooltip/tooltip.types.d.ts +22 -13
- package/dist/tour/Tour.svelte +34 -13
- package/dist/tour/TourPanel.svelte +13 -12
- package/dist/tour/TourPanel.svelte.d.ts +2 -1
- package/dist/tour/tour.engine.d.ts +7 -2
- package/dist/tour/tour.engine.js +58 -11
- package/dist/tour/tour.types.d.ts +20 -19
- package/dist/transfer/Transfer.svelte +41 -35
- package/dist/transfer/TransferAction.svelte +6 -7
- package/dist/transfer/TransferAction.svelte.d.ts +3 -2
- package/dist/transfer/TransferCheckbox.svelte +6 -2
- package/dist/transfer/TransferCheckbox.svelte.d.ts +2 -1
- package/dist/transfer/TransferList.svelte +18 -0
- package/dist/transfer/TransferList.svelte.d.ts +45 -0
- package/dist/transfer/TransferOperation.svelte +43 -0
- package/dist/transfer/TransferOperation.svelte.d.ts +4 -0
- package/dist/transfer/TransferSearch.svelte +44 -0
- package/dist/transfer/TransferSearch.svelte.d.ts +4 -0
- package/dist/transfer/TransferSection.svelte +42 -30
- package/dist/transfer/TransferSection.svelte.d.ts +2 -4
- package/dist/transfer/transfer-style.engine.d.ts +7 -0
- package/dist/transfer/transfer-style.engine.js +33 -0
- package/dist/transfer/transfer.component.d.ts +12 -0
- package/dist/transfer/transfer.component.js +6 -0
- package/dist/transfer/transfer.types.d.ts +44 -4
- package/dist/tree/Tree.svelte +5 -3
- package/dist/tree/TreeMotion.svelte +5 -1
- package/dist/tree/tree-motion.dom.js +12 -3
- package/dist/tree/tree-motion.types.d.ts +4 -3
- package/dist/tree/tree-semantic.engine.d.ts +9 -2
- package/dist/tree/tree-semantic.engine.js +37 -3
- package/dist/tree/tree.types.d.ts +8 -6
- package/dist/tree-select/TreeSelectControl.svelte +123 -86
- package/dist/tree-select/tree-select-align.engine.d.ts +2 -6
- package/dist/tree-select/tree-select-align.engine.js +1 -18
- package/dist/tree-select/tree-select-motion-frame.dom.d.ts +2 -5
- package/dist/tree-select/tree-select-semantic.engine.d.ts +6 -6
- package/dist/tree-select/tree-select-semantic.engine.js +50 -25
- package/dist/tree-select/tree-select-token.engine.d.ts +1 -3
- package/dist/tree-select/tree-select-token.engine.js +1 -13
- package/dist/tree-select/tree-select.types.d.ts +9 -5
- package/dist/types.d.ts +3 -0
- package/dist/typography/TypographyEditable.svelte +6 -3
- package/dist/typography/TypographyEditable.svelte.d.ts +3 -2
- package/dist/typography/TypographyElement.svelte +7 -4
- package/dist/typography/TypographyElement.svelte.d.ts +3 -2
- package/dist/typography/typography-semantic.engine.d.ts +9 -2
- package/dist/typography/typography-semantic.engine.js +15 -4
- package/dist/typography/typography.types.d.ts +8 -7
- package/dist/utils/declaration-order.svelte.d.ts +12 -0
- package/dist/utils/declaration-order.svelte.js +53 -0
- package/dist/vendor/date-picker-prefix.css.js +2 -2
- package/dist/vendor/tree-select-popup-motion.css +112 -112
- package/dist/vendor/tree-select-popup-motion.css.js +2 -2
- package/dist/watermark/Watermark.svelte +8 -6
- package/dist/watermark/watermark.types.d.ts +3 -2
- package/package.json +1 -1
- package/readme.md +2 -2
- package/dist/picker/time-range-picker-popup.dom.d.ts +0 -2
- package/dist/picker/time-range-picker-popup.dom.js +0 -42
- package/dist/tree-select/tree-select-motion-css.engine.d.ts +0 -2
- package/dist/tree-select/tree-select-motion-css.engine.js +0 -11
- package/dist/tree-select/tree-select-motion.dom.d.ts +0 -18
- package/dist/tree-select/tree-select-motion.engine.d.ts +0 -2
- package/dist/tree-select/tree-select-motion.engine.js +0 -5
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
textAreaResizeStyle
|
|
19
19
|
} from './textarea.engine';
|
|
20
20
|
import { createTextAreaMeasure, textAreaChangeEvent } from './textarea.dom';
|
|
21
|
+
import { createInputValue } from './input-value.svelte';
|
|
21
22
|
import { getInputPrefixCss } from './input-prefix.engine';
|
|
23
|
+
import { inlineStyleText } from '../style/inline-style-layers.engine';
|
|
22
24
|
import { useRuntimeStyles } from '../theme/theme-context.svelte';
|
|
23
25
|
import ThemeScopeStyle from '../theme/ThemeScopeStyle.svelte';
|
|
24
26
|
import type { TextAreaProps } from './textarea.types';
|
|
@@ -26,6 +28,7 @@
|
|
|
26
28
|
|
|
27
29
|
let {
|
|
28
30
|
value = $bindable(),
|
|
31
|
+
value: providedValue,
|
|
29
32
|
defaultValue,
|
|
30
33
|
size,
|
|
31
34
|
status,
|
|
@@ -90,6 +93,7 @@
|
|
|
90
93
|
const itemStatus = useFormItemStatusContext();
|
|
91
94
|
const feedback = useFormFeedback();
|
|
92
95
|
const initialDefault = untrack(() => defaultValue);
|
|
96
|
+
const fieldValue = createInputValue(() => value, () => providedValue, next => { value = next; });
|
|
93
97
|
let useDefault = $state(true);
|
|
94
98
|
let focused = $state(false);
|
|
95
99
|
let mouseDown = $state(false);
|
|
@@ -100,7 +104,10 @@
|
|
|
100
104
|
let wrapper = $state<HTMLSpanElement>();
|
|
101
105
|
let measure: ReturnType<typeof createTextAreaMeasure> | undefined;
|
|
102
106
|
let removeMouseUp: (() => void) | undefined;
|
|
103
|
-
let text = $derived(String(
|
|
107
|
+
let text = $derived(String(fieldValue.current ?? (useDefault ? initialDefault : '') ?? ''));
|
|
108
|
+
let explicitResetValue = $derived(attributes.defaultvalue);
|
|
109
|
+
// The native default must populate the editor before its first live value assignment.
|
|
110
|
+
let resetValue = $derived(explicitResetValue === undefined ? text : explicitResetValue);
|
|
104
111
|
let resolvedSize = $derived(size ?? compact?.size ?? config.componentSize);
|
|
105
112
|
let resolvedStatus = $derived(status ?? ('status' in itemStatus ? itemStatus.status : field?.status));
|
|
106
113
|
|
|
@@ -179,28 +186,18 @@
|
|
|
179
186
|
: config.textArea?.styles
|
|
180
187
|
);
|
|
181
188
|
let localStyles = $derived(typeof styles === 'function' ? styles(semanticInfo) : styles);
|
|
182
|
-
let
|
|
183
|
-
|
|
189
|
+
let rootStyleLayers = $derived([
|
|
190
|
+
componentTheme.style, contextStyles?.root, config.textArea?.style, localStyles?.root, style
|
|
191
|
+
]);
|
|
192
|
+
let rootStyle = $derived(inlineStyleText(...rootStyleLayers));
|
|
193
|
+
let leafStyle = $derived(wrapped
|
|
194
|
+
? inlineStyleText(
|
|
184
195
|
componentTheme.style,
|
|
185
|
-
|
|
186
|
-
config.textArea?.style,
|
|
187
|
-
localStyles?.root,
|
|
188
|
-
style
|
|
189
|
-
].filter(Boolean).join(';')
|
|
190
|
-
);
|
|
191
|
-
let leafStyle = $derived(
|
|
192
|
-
[
|
|
193
|
-
wrapped && componentTheme.style,
|
|
194
|
-
wrapped && textAreaResizeStyle(rootStyle),
|
|
196
|
+
textAreaResizeStyle(rootStyle),
|
|
195
197
|
contextStyles?.textarea,
|
|
196
|
-
localStyles?.textarea
|
|
197
|
-
!wrapped && rootStyle
|
|
198
|
-
].filter(
|
|
199
|
-
Boolean
|
|
200
|
-
).join(
|
|
201
|
-
';'
|
|
198
|
+
localStyles?.textarea
|
|
202
199
|
)
|
|
203
|
-
|
|
200
|
+
: inlineStyleText(contextStyles?.textarea, localStyles?.textarea, ...rootStyleLayers));
|
|
204
201
|
let variantClasses = $derived(
|
|
205
202
|
[`${componentPrefix}-${appearance}`, resolvedStatus && `${componentPrefix}-status-${resolvedStatus}`]
|
|
206
203
|
);
|
|
@@ -276,7 +273,7 @@
|
|
|
276
273
|
const notifyLegacy = legacy || event.type === 'compositionend' && raw !== next && next !== text;
|
|
277
274
|
const selection = raw !== next ? [element.selectionStart, element.selectionEnd] : undefined;
|
|
278
275
|
useDefault = false;
|
|
279
|
-
|
|
276
|
+
fieldValue.update(next);
|
|
280
277
|
if (notifyLegacy)
|
|
281
278
|
onValueChange?.(next);
|
|
282
279
|
onChange?.(textAreaChangeEvent(event, element, next));
|
|
@@ -301,7 +298,7 @@
|
|
|
301
298
|
return;
|
|
302
299
|
}
|
|
303
300
|
useDefault = false;
|
|
304
|
-
|
|
301
|
+
fieldValue.update('');
|
|
305
302
|
focus();
|
|
306
303
|
onValueChange?.('');
|
|
307
304
|
onChange?.(textAreaChangeEvent(event, element, ''));
|
|
@@ -345,7 +342,8 @@
|
|
|
345
342
|
</style>
|
|
346
343
|
|
|
347
344
|
{#snippet control()}
|
|
348
|
-
<textarea {...attributes} bind:this={nativeElement} id={id ?? field?.id} name={name ?? field?.name}
|
|
345
|
+
<textarea {...attributes} bind:this={nativeElement} id={id ?? field?.id} name={name ?? field?.name}
|
|
346
|
+
defaultValue={resetValue} value={text}
|
|
349
347
|
data-ant-input-node data-ant-input-prefix={hasCustomPrefix ? componentPrefix : undefined}
|
|
350
348
|
data-ant-input-mouse-active={mouseDown || undefined}
|
|
351
349
|
required={attributes.required ?? field?.required} disabled={blocked} readonly={read} maxlength={maximum} hidden={wrapped ? undefined : hidden}
|
|
@@ -439,17 +437,14 @@
|
|
|
439
437
|
(counter.show || feedback.hasFeedback) && `${componentPrefix}-clear-icon-has-suffix`,
|
|
440
438
|
contextClasses?.clear,
|
|
441
439
|
localClasses?.clear
|
|
442
|
-
]} style={
|
|
443
|
-
|
|
444
|
-
)} onpointerdown={event => event.preventDefault()} onclick={handleClear}>
|
|
440
|
+
]} style={inlineStyleText(contextStyles?.clear, localStyles?.clear)}
|
|
441
|
+
onpointerdown={event => event.preventDefault()} onclick={handleClear}>
|
|
445
442
|
{#if typeof clear.clearIcon === 'function'}{@render clear.clearIcon()}{:else if clear.clearIcon === undefined}<Icon name="close-circle-filled" />{:else}{clear.clearIcon || '✖'}{/if}
|
|
446
443
|
</button>{/if}{#if feedback.hasFeedback}<span class={`${componentPrefix}-textarea-suffix`}>{#if feedback.icon}<FormFeedbackIcon descriptor={feedback.icon} />{/if}</span>{/if}{#if counter.show}<span class={[
|
|
447
444
|
`${componentPrefix}-data-count`,
|
|
448
445
|
contextClasses?.count,
|
|
449
446
|
localClasses?.count
|
|
450
|
-
]} style={
|
|
451
|
-
';'
|
|
452
|
-
)}>
|
|
447
|
+
]} style={inlineStyleText(contextStyles?.count, localStyles?.count)}>
|
|
453
448
|
{#if typeof counter.content === 'function'}{@render counter.content(counter.info)}{:else if counter.content !== false && counter.content !== true}{counter.content}{/if}
|
|
454
449
|
</span>{/if}
|
|
455
450
|
</span>
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import type { HTMLAttributes, HTMLInputAttributes } from 'svelte/elements';
|
|
3
|
+
import type { FormValidateStatus } from '../form/form-error-list.types';
|
|
3
4
|
import type { ComponentSize } from '../types';
|
|
4
|
-
import type { InputVariant } from './input.types';
|
|
5
|
-
export type InputOTPSemanticSlots = Partial<Record<'root' | 'input' | 'separator',
|
|
5
|
+
import type { InputStyle, InputVariant } from './input.types';
|
|
6
|
+
export type InputOTPSemanticSlots<Content = string> = Partial<Record<'root' | 'input' | 'separator', Content>>;
|
|
6
7
|
/** Callback receives the original Props with default length and authorized variant. */
|
|
7
|
-
export type InputOTPSemantic = InputOTPSemanticSlots | ((info: {
|
|
8
|
+
export type InputOTPSemantic<Content = string> = InputOTPSemanticSlots<Content> | ((info: {
|
|
8
9
|
props: InputOTPProps;
|
|
9
|
-
}) => InputOTPSemanticSlots | undefined);
|
|
10
|
+
}) => InputOTPSemanticSlots<Content> | undefined);
|
|
10
11
|
export type InputOTPSeparatorContent = string | number | boolean | null | Snippet<[number]>;
|
|
11
12
|
/**
|
|
12
13
|
* Settings ConfigProvider.otp; local Props take precedence, nested config is replaced entirely.
|
|
@@ -14,15 +15,15 @@ export type InputOTPSeparatorContent = string | number | boolean | null | Snippe
|
|
|
14
15
|
export interface InputOTPConfig {
|
|
15
16
|
variant?: InputVariant;
|
|
16
17
|
class?: string;
|
|
17
|
-
style?:
|
|
18
|
+
style?: InputStyle;
|
|
18
19
|
classNames?: InputOTPSemantic;
|
|
19
|
-
styles?: InputOTPSemantic
|
|
20
|
+
styles?: InputOTPSemantic<InputStyle>;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* Svelte-export Input.OTP. Each cell stores one UTF-16 code unit; normal input accepts any text.
|
|
23
24
|
* Native attributes refer to div role=group, except for explicit input Props.
|
|
24
25
|
*/
|
|
25
|
-
export interface InputOTPProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'class'> {
|
|
26
|
+
export interface InputOTPProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'class' | 'style'> {
|
|
26
27
|
/** CSS prefix groups, cells, masks and separator; empty/undefined inherited ConfigProvider. */
|
|
27
28
|
prefixCls?: string;
|
|
28
29
|
/** Number of cells; by default 6. */
|
|
@@ -56,16 +57,18 @@ export interface InputOTPProps extends Omit<HTMLAttributes<HTMLDivElement>, 'chi
|
|
|
56
57
|
/** By default, size ConfigProvider; Compact continues to operate on internal Input. */
|
|
57
58
|
size?: ComponentSize | 'medium';
|
|
58
59
|
disabled?: boolean;
|
|
59
|
-
status?:
|
|
60
|
+
status?: FormValidateStatus;
|
|
60
61
|
/** Priority: local variant, Form, otp, input, global variant, */
|
|
61
62
|
variant?: InputVariant;
|
|
62
63
|
/** Is called for cells, including a focus redirected to the first empty cell. */
|
|
63
64
|
onFocus?: HTMLInputAttributes['onfocus'];
|
|
64
65
|
onBlur?: HTMLInputAttributes['onblur'];
|
|
65
66
|
class?: string;
|
|
67
|
+
/** Inline declarations for the group. */
|
|
68
|
+
style?: InputStyle;
|
|
66
69
|
rootClassName?: string;
|
|
67
70
|
classNames?: InputOTPSemantic;
|
|
68
|
-
styles?: InputOTPSemantic
|
|
71
|
+
styles?: InputOTPSemantic<InputStyle>;
|
|
69
72
|
/** bind:nativeElement returns div groups; bind:this provides focus() and blur(). */
|
|
70
73
|
nativeElement?: HTMLDivElement;
|
|
71
74
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InputContent, InputProps, InputSemanticSlots, InputVariant } from './input.types';
|
|
1
|
+
import type { InputContent, InputProps, InputSemanticSlots, InputStyle, InputVariant } from './input.types';
|
|
2
2
|
/** Switch settings; without visible visibility is stored inside the component. */
|
|
3
3
|
export interface InputPasswordVisibilityToggle {
|
|
4
4
|
/** By default 0; disabled always eliminates the switch from Tab order. */
|
|
@@ -11,9 +11,9 @@ export interface InputPasswordVisibilityToggle {
|
|
|
11
11
|
/** Returns a scalar or Snippet without arguments; the falsy result leaves an empty button. */
|
|
12
12
|
export type InputPasswordIconRender = (visible: boolean) => InputContent | undefined;
|
|
13
13
|
/** Callback receives Props with allowed disabled and variants. */
|
|
14
|
-
export type InputPasswordSemantic = InputSemanticSlots | ((info: {
|
|
14
|
+
export type InputPasswordSemantic<Content = string> = InputSemanticSlots<Content> | ((info: {
|
|
15
15
|
props: InputPasswordProps;
|
|
16
|
-
}) => InputSemanticSlots | undefined);
|
|
16
|
+
}) => InputSemanticSlots<Content> | undefined);
|
|
17
17
|
/**
|
|
18
18
|
* Settings ConfigProvider.inputPassword. Local Props take precedence; nested inputPassword replaces
|
|
19
19
|
* the object in its entirety. General settings Input are inherited separately.
|
|
@@ -22,9 +22,9 @@ export interface InputPasswordConfig {
|
|
|
22
22
|
iconRender?: InputPasswordIconRender;
|
|
23
23
|
variant?: InputVariant;
|
|
24
24
|
class?: string;
|
|
25
|
-
style?:
|
|
25
|
+
style?: InputStyle;
|
|
26
26
|
classNames?: InputPasswordSemantic;
|
|
27
|
-
styles?: InputPasswordSemantic
|
|
27
|
+
styles?: InputPasswordSemantic<InputStyle>;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Svelte-export React Input.Password. Saves string bind:value, events and refs Input; type is
|
|
@@ -45,5 +45,5 @@ export interface InputPasswordProps extends Omit<InputProps, 'classNames' | 'sty
|
|
|
45
45
|
variant?: InputVariant;
|
|
46
46
|
classNames?: InputPasswordSemantic;
|
|
47
47
|
/** Root: context styles.root → context style → local styles.root → local style. */
|
|
48
|
-
styles?: InputPasswordSemantic
|
|
48
|
+
styles?: InputPasswordSemantic<InputStyle>;
|
|
49
49
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import type { HTMLButtonAttributes } from 'svelte/elements';
|
|
3
3
|
import type { ButtonProps, ButtonSlots } from '../button/button.types';
|
|
4
|
-
import type { InputChangeEvent, InputContent, InputProps, InputSemanticSlots, InputVariant } from './input.types';
|
|
4
|
+
import type { InputChangeEvent, InputContent, InputProps, InputSemanticSlots, InputStyle, InputVariant } from './input.types';
|
|
5
5
|
/**
|
|
6
6
|
* Replacement React cloneElement for enterButton snippet. Apply the result to Button or native
|
|
7
7
|
* button: save your own callbacks, disabled/loading and the order of handlers.
|
|
@@ -12,25 +12,25 @@ export interface InputSearchButtonContext {
|
|
|
12
12
|
/** Saves native class/type; loading additionally blocks the native button. */
|
|
13
13
|
getNativeProps: (props?: HTMLButtonAttributes) => HTMLButtonAttributes;
|
|
14
14
|
}
|
|
15
|
-
export type InputSearchSemanticSlots = InputSemanticSlots & {
|
|
16
|
-
button?: ButtonSlots | string;
|
|
15
|
+
export type InputSearchSemanticSlots<Content = string> = InputSemanticSlots<Content> & {
|
|
16
|
+
button?: Partial<Record<keyof ButtonSlots, Content>> | string;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* The callback receives the original props with the default enterButton and Search variant. As in
|
|
20
20
|
* upstream, ConfigProvider does not override disabled here. A string in button is shorthand for
|
|
21
21
|
* button.root.
|
|
22
22
|
*/
|
|
23
|
-
export type InputSearchSemantic = InputSearchSemanticSlots | ((info: {
|
|
23
|
+
export type InputSearchSemantic<Content = string> = InputSearchSemanticSlots<Content> | ((info: {
|
|
24
24
|
props: InputSearchProps;
|
|
25
|
-
}) => InputSearchSemanticSlots | undefined);
|
|
25
|
+
}) => InputSearchSemanticSlots<Content> | undefined);
|
|
26
26
|
/** Settings ConfigProvider.inputSearch; the nested object replaces the parent whole. */
|
|
27
27
|
export interface InputSearchConfig {
|
|
28
28
|
searchIcon?: InputContent;
|
|
29
29
|
variant?: InputVariant;
|
|
30
30
|
class?: string;
|
|
31
|
-
style?:
|
|
31
|
+
style?: InputStyle;
|
|
32
32
|
classNames?: InputSearchSemantic;
|
|
33
|
-
styles?: InputSearchSemantic
|
|
33
|
+
styles?: InputSearchSemantic<InputStyle>;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Svelte-export Input.Search from bind:value and events Input. Class/style/hidden and data-* refer
|
|
@@ -60,5 +60,5 @@ export interface InputSearchProps extends Omit<InputProps, 'classNames' | 'style
|
|
|
60
60
|
/** Blocked at loading/IME and is called before onSearch for Enter. */
|
|
61
61
|
onPressEnter?: InputProps['onPressEnter'];
|
|
62
62
|
classNames?: InputSearchSemantic;
|
|
63
|
-
styles?: InputSearchSemantic
|
|
63
|
+
styles?: InputSearchSemantic<InputStyle>;
|
|
64
64
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Shares draft retention between a field and the Input components that delegate to it. */
|
|
2
|
+
export declare function createInputValue(readValue: () => string | undefined, readOwnerValue: () => string | undefined, writeValue: (value: string | undefined) => void): {
|
|
3
|
+
/** Uses the active prop, with an accepted local draft for an absent owner value. */
|
|
4
|
+
readonly current: string | undefined;
|
|
5
|
+
/** Records an edit after the binding setter has accepted it. */
|
|
6
|
+
update(next: string | undefined): void;
|
|
7
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Tracks the accepted local draft when Svelte replaces the bindable prop's shadow.
|
|
2
|
+
import { untrack } from 'svelte';
|
|
3
|
+
/** Shares draft retention between a field and the Input components that delegate to it. */
|
|
4
|
+
export function createInputValue(readValue, readOwnerValue, writeValue) {
|
|
5
|
+
let draft = $state();
|
|
6
|
+
$effect(() => {
|
|
7
|
+
if (readOwnerValue() !== undefined)
|
|
8
|
+
draft = undefined;
|
|
9
|
+
});
|
|
10
|
+
return {
|
|
11
|
+
/** Uses the active prop, with an accepted local draft for an absent owner value. */
|
|
12
|
+
get current() {
|
|
13
|
+
return readValue() ?? (readOwnerValue() === undefined ? draft : undefined);
|
|
14
|
+
},
|
|
15
|
+
/** Records an edit after the binding setter has accepted it. */
|
|
16
|
+
update(next) {
|
|
17
|
+
writeValue(next);
|
|
18
|
+
draft = untrack(() => readOwnerValue() === undefined && readValue() === next ? next : undefined);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import type { HTMLInputAttributes } from 'svelte/elements';
|
|
3
|
+
import type { FormValidateStatus } from '../form/form-error-list.types';
|
|
3
4
|
import type { ComponentSize, Variant } from '../types';
|
|
5
|
+
import type { CSSStyle } from '../style/inline-style.types';
|
|
4
6
|
import type { InputAllowClear, InputCountConfig, InputShowCount } from './input-count.types';
|
|
5
7
|
export type { InputAllowClear, InputCountConfig, InputCountInfo, InputCountFormatter, InputCountContent } from './input-count.types';
|
|
6
8
|
export type InputVariant = Variant;
|
|
7
9
|
export type InputContent = string | number | boolean | null | Snippet;
|
|
8
|
-
export type
|
|
10
|
+
export type InputStyle = CSSStyle;
|
|
11
|
+
export type InputSemanticSlots<Content = string> = Partial<Record<'root' | 'input' | 'prefix' | 'suffix' | 'clear' | 'count', Content>>;
|
|
9
12
|
/** Callback receives Props with permitted size and disabled size; root is an external wrapper. */
|
|
10
|
-
export type InputSemantic = InputSemanticSlots | ((info: {
|
|
13
|
+
export type InputSemantic<Content = string> = InputSemanticSlots<Content> | ((info: {
|
|
11
14
|
props: InputProps;
|
|
12
|
-
}) => InputSemanticSlots | undefined);
|
|
15
|
+
}) => InputSemanticSlots<Content> | undefined);
|
|
13
16
|
/**
|
|
14
17
|
* Adaptation DOM Event for onChange. target and currentTarget — a copy of input with the value at
|
|
15
18
|
* the time of the call; nativeEvent is the original event. For input type is replaced with change;
|
|
@@ -29,12 +32,12 @@ export interface InputConfig {
|
|
|
29
32
|
autoComplete?: HTMLInputAttributes['autocomplete'];
|
|
30
33
|
variant?: InputVariant;
|
|
31
34
|
class?: string;
|
|
32
|
-
style?:
|
|
35
|
+
style?: InputStyle;
|
|
33
36
|
classNames?: InputSemantic;
|
|
34
|
-
styles?: InputSemantic
|
|
37
|
+
styles?: InputSemantic<InputStyle>;
|
|
35
38
|
}
|
|
36
39
|
/** Input with bind:value, native HTML attributes and compatible callbacks Ant Design. */
|
|
37
|
-
export interface InputProps extends Omit<HTMLInputAttributes, 'value' | 'defaultValue' | 'children' | 'size' | 'class' | 'prefix'> {
|
|
40
|
+
export interface InputProps extends Omit<HTMLInputAttributes, 'value' | 'defaultValue' | 'children' | 'size' | 'class' | 'prefix' | 'style'> {
|
|
38
41
|
/** Maintenances bind:value. The external value is not trimmed through count.exceedFormatter. */
|
|
39
42
|
value?: string;
|
|
40
43
|
/** Initial value in missing value; subsequent changes do not apply. */
|
|
@@ -43,7 +46,7 @@ export interface InputProps extends Omit<HTMLInputAttributes, 'value' | 'default
|
|
|
43
46
|
size?: ComponentSize | 'medium';
|
|
44
47
|
/** Native attribute size; the visual size is set through size. */
|
|
45
48
|
htmlSize?: number;
|
|
46
|
-
status?:
|
|
49
|
+
status?: FormValidateStatus;
|
|
47
50
|
/** Priority: variant, Form, component config, global variant, */
|
|
48
51
|
variant?: InputVariant;
|
|
49
52
|
prefix?: InputContent;
|
|
@@ -61,10 +64,12 @@ export interface InputProps extends Omit<HTMLInputAttributes, 'value' | 'default
|
|
|
61
64
|
autoComplete?: HTMLInputAttributes['autocomplete'];
|
|
62
65
|
autoFocus?: boolean;
|
|
63
66
|
class?: string;
|
|
67
|
+
/** Inline declarations for the outer field. */
|
|
68
|
+
style?: InputStyle;
|
|
64
69
|
rootClassName?: string;
|
|
65
70
|
classNames?: InputSemantic;
|
|
66
71
|
/** Inline CSS on semantic slots; local styles go after settings ConfigProvider.input. */
|
|
67
|
-
styles?: InputSemantic
|
|
72
|
+
styles?: InputSemantic<InputStyle>;
|
|
68
73
|
/** bind:inputElement returns native input. */
|
|
69
74
|
inputElement?: HTMLInputElement;
|
|
70
75
|
/** bind:nativeElement returns external root: input or span at affixes. */
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { InputCountFormatter as TextAreaCountFormatter, InputCountConfig as TextAreaCountConfig, InputAllowClear as TextAreaAllowClear } from './input-count.types';
|
|
2
2
|
import type { HTMLTextareaAttributes } from 'svelte/elements';
|
|
3
|
+
import type { FormValidateStatus } from '../form/form-error-list.types';
|
|
3
4
|
import type { ComponentSize } from '../types';
|
|
5
|
+
import type { InputStyle } from './input.types';
|
|
4
6
|
export type TextAreaVariant = 'outlined' | 'filled' | 'borderless' | 'underlined';
|
|
5
7
|
export type { InputCountInfo as TextAreaCountInfo, InputCountContent as TextAreaCountContent, InputCountFormatter as TextAreaCountFormatter, InputCountConfig as TextAreaCountConfig, InputAllowClear as TextAreaAllowClear } from './input-count.types';
|
|
6
|
-
export type TextAreaSemanticSlots = Partial<Record<'root' | 'textarea' | 'clear' | 'count',
|
|
7
|
-
export type TextAreaSemantic = TextAreaSemanticSlots | ((info: {
|
|
8
|
+
export type TextAreaSemanticSlots<Content = string> = Partial<Record<'root' | 'textarea' | 'clear' | 'count', Content>>;
|
|
9
|
+
export type TextAreaSemantic<Content = string> = TextAreaSemanticSlots<Content> | ((info: {
|
|
8
10
|
props: TextAreaProps;
|
|
9
|
-
}) => TextAreaSemanticSlots | undefined);
|
|
11
|
+
}) => TextAreaSemanticSlots<Content> | undefined);
|
|
10
12
|
export type TextAreaChangeEvent = Event & {
|
|
11
13
|
target: HTMLTextAreaElement;
|
|
12
14
|
currentTarget: HTMLTextAreaElement;
|
|
@@ -21,18 +23,18 @@ export interface TextAreaConfig {
|
|
|
21
23
|
autoComplete?: HTMLTextareaAttributes['autocomplete'];
|
|
22
24
|
variant?: TextAreaVariant;
|
|
23
25
|
class?: string;
|
|
24
|
-
style?:
|
|
26
|
+
style?: InputStyle;
|
|
25
27
|
classNames?: TextAreaSemantic;
|
|
26
|
-
styles?: TextAreaSemantic
|
|
28
|
+
styles?: TextAreaSemantic<InputStyle>;
|
|
27
29
|
}
|
|
28
30
|
/** Multi-string native control from bind:value, autoSize, clear/count and FormItem. */
|
|
29
|
-
export interface TextAreaProps extends Omit<HTMLTextareaAttributes, 'value' | 'defaultValue' | 'children' | 'class'> {
|
|
31
|
+
export interface TextAreaProps extends Omit<HTMLTextareaAttributes, 'value' | 'defaultValue' | 'children' | 'class' | 'style'> {
|
|
30
32
|
/** Maintenances bind:value. */
|
|
31
33
|
value?: string;
|
|
32
34
|
/** Initial local value. Later prop changes do not reinitialize state. */
|
|
33
35
|
defaultValue?: string;
|
|
34
36
|
size?: ComponentSize | 'medium';
|
|
35
|
-
status?:
|
|
37
|
+
status?: FormValidateStatus;
|
|
36
38
|
/** Priority: variant, Form, textArea config, global variant, */
|
|
37
39
|
variant?: TextAreaVariant;
|
|
38
40
|
/** Measures the contents or placeholder; minRows/maxRows limits the height. */
|
|
@@ -51,7 +53,9 @@ export interface TextAreaProps extends Omit<HTMLTextareaAttributes, 'value' | 'd
|
|
|
51
53
|
autoComplete?: HTMLTextareaAttributes['autocomplete'];
|
|
52
54
|
autoFocus?: boolean;
|
|
53
55
|
classNames?: TextAreaSemantic;
|
|
54
|
-
styles?: TextAreaSemantic
|
|
56
|
+
styles?: TextAreaSemantic<InputStyle>;
|
|
57
|
+
/** Inline declarations for the outer field. */
|
|
58
|
+
style?: InputStyle;
|
|
55
59
|
rootClassName?: string;
|
|
56
60
|
/** Total from Input basic CSS prefix; empty/undefined inherits ConfigProvider. */
|
|
57
61
|
prefixCls?: string;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { connectInputNumberStep } from './input-number.dom';
|
|
5
5
|
import type { InputNumberContent } from './input-number.types';
|
|
6
6
|
import Icon from '../icon/Icon.svelte';
|
|
7
|
+
import RenderContent from '../RenderContent.svelte';
|
|
7
8
|
|
|
8
9
|
let {
|
|
9
10
|
prefixCls,
|
|
@@ -56,8 +57,7 @@
|
|
|
56
57
|
onclick={event => {
|
|
57
58
|
if (event.detail === 0) onStep();
|
|
58
59
|
}}>
|
|
59
|
-
{#if
|
|
60
|
-
{:else if content}{content}
|
|
60
|
+
{#if content}<RenderContent value={content} />
|
|
61
61
|
{:else}
|
|
62
62
|
<span class={['action-icon', !spinner && action === 'up' && 'up-icon']}>
|
|
63
63
|
<Icon name={spinner ? action === 'up' ? 'plus' : 'minus' : 'down'} />
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import { useConfig } from '../config-provider/config-context';
|
|
6
6
|
import { useVariant } from '../config-provider/variant.svelte';
|
|
7
7
|
import { useComponentTheme } from '../theme/theme-component.svelte';
|
|
8
|
+
import { inlineStyleText } from '../style/inline-style-layers.engine';
|
|
9
|
+
import type { CSSStyle } from '../style/inline-style.types';
|
|
8
10
|
import { getInputNumberPrefixCss } from './input-number-prefix.engine';
|
|
9
11
|
import { useRuntimeStyles } from '../theme/theme-context.svelte';
|
|
10
12
|
import ThemeScopeStyle from '../theme/ThemeScopeStyle.svelte';
|
|
@@ -14,6 +16,7 @@
|
|
|
14
16
|
import { useFormItemStatusContext } from '../form/form-item-status';
|
|
15
17
|
import { useFormFeedback } from '../form/form-feedback-context';
|
|
16
18
|
import FormFeedbackIcon from '../form/FormFeedbackIcon.svelte';
|
|
19
|
+
import RenderContent from '../RenderContent.svelte';
|
|
17
20
|
import { formatInputNumber, normalizeInputNumber } from './input-number.engine';
|
|
18
21
|
import {
|
|
19
22
|
commitInputNumberValue,
|
|
@@ -121,14 +124,19 @@
|
|
|
121
124
|
? config.inputNumber.styles(info) : config.inputNumber?.styles);
|
|
122
125
|
let localStyles = $derived(typeof props.styles === 'function'
|
|
123
126
|
? props.styles(info) : props.styles);
|
|
124
|
-
|
|
127
|
+
const semanticSlots = ['root', 'prefix', 'suffix', 'input', 'actions', 'action'] as const;
|
|
128
|
+
let classes = $derived(mergeClassSlots(
|
|
125
129
|
{ root: componentTheme.className },
|
|
126
130
|
contextClasses,
|
|
127
131
|
localClasses
|
|
128
132
|
));
|
|
129
|
-
let styles = $derived(
|
|
133
|
+
let styles = $derived(mergeStyleSlots(
|
|
134
|
+
{ root: componentTheme.style },
|
|
135
|
+
contextStyles,
|
|
130
136
|
{ root: config.inputNumber?.style },
|
|
131
|
-
localStyles,
|
|
137
|
+
localStyles,
|
|
138
|
+
{ root: props.style }
|
|
139
|
+
));
|
|
132
140
|
const owned = new Set([
|
|
133
141
|
'value', 'defaultValue', 'stringMode', 'min', 'max', 'step', 'precision', 'decimalSeparator',
|
|
134
142
|
'formatter', 'parser', 'controls', 'keyboard', 'changeOnWheel', 'changeOnBlur', 'mode', 'size',
|
|
@@ -145,21 +153,23 @@
|
|
|
145
153
|
let attributes = $derived(Object.fromEntries(Object.entries(props)
|
|
146
154
|
.filter(([key]) => !owned.has(key))));
|
|
147
155
|
|
|
148
|
-
function
|
|
149
|
-
a?: InputNumberSlots,
|
|
150
|
-
b?: InputNumberSlots,
|
|
151
|
-
c?: InputNumberSlots,
|
|
152
|
-
d?: InputNumberSlots,
|
|
153
|
-
e?: InputNumberSlots,
|
|
154
|
-
separator = ' '
|
|
155
|
-
) {
|
|
156
|
+
function mergeClassSlots(...layers: readonly (InputNumberSlots | undefined)[]) {
|
|
156
157
|
const result: InputNumberSlots = {};
|
|
157
158
|
|
|
158
|
-
for (const
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
for (const slot of semanticSlots) {
|
|
160
|
+
const classes = layers.map(layer => layer?.[slot]);
|
|
161
|
+
result[slot] = classes.filter(Boolean).join(' ') || undefined;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return result;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function mergeStyleSlots(...layers: readonly (InputNumberSlots<CSSStyle> | undefined)[]) {
|
|
168
|
+
const result: InputNumberSlots = {};
|
|
169
|
+
|
|
170
|
+
for (const slot of semanticSlots) {
|
|
171
|
+
const styles = layers.map(layer => layer?.[slot]);
|
|
172
|
+
result[slot] = inlineStyleText(...styles) || undefined;
|
|
163
173
|
}
|
|
164
174
|
|
|
165
175
|
return result;
|
|
@@ -575,9 +585,8 @@
|
|
|
575
585
|
}}>
|
|
576
586
|
{#if mode === 'spinner' && controls}{@render action('down')}{/if}
|
|
577
587
|
{#if props.prefix !== undefined}
|
|
578
|
-
<div class={[`${prefixCls}-prefix`, classes.prefix]} style={styles.prefix}
|
|
579
|
-
{
|
|
580
|
-
</div>
|
|
588
|
+
<div class={[`${prefixCls}-prefix`, classes.prefix]} style={styles.prefix}><RenderContent
|
|
589
|
+
value={props.prefix} /></div>
|
|
581
590
|
{/if}
|
|
582
591
|
<!-- svelte-ignore a11y_autofocus (Public autoFocus and HTML autofocus honor the consumer's choice.) -->
|
|
583
592
|
<input {...attributes} {...numericAria} bind:this={inputElement} id={controlId} type={props.type ?? 'text'}
|
|
@@ -607,8 +616,9 @@
|
|
|
607
616
|
if (alive) props.oncompositionend?.(event);
|
|
608
617
|
}} />
|
|
609
618
|
{#if props.suffix !== undefined || feedback.hasFeedback}
|
|
610
|
-
<div class={[`${prefixCls}-suffix`, 'input-number-suffix', classes.suffix]}
|
|
611
|
-
{
|
|
619
|
+
<div class={[`${prefixCls}-suffix`, 'input-number-suffix', classes.suffix]}
|
|
620
|
+
style={styles.suffix}><RenderContent value={props.suffix} />{#if feedback.hasFeedback && feedback.icon}<FormFeedbackIcon
|
|
621
|
+
descriptor={feedback.icon} />{/if}
|
|
612
622
|
</div>
|
|
613
623
|
{/if}
|
|
614
624
|
{#if mode === 'spinner' && controls}{@render action('up')}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Snippet } from 'svelte';
|
|
2
1
|
import type { HTMLInputAttributes } from 'svelte/elements';
|
|
3
|
-
import type { ComponentSize } from '../types';
|
|
2
|
+
import type { ComponentSize, RenderEmptyContent } from '../types';
|
|
4
3
|
import type { InputVariant } from '../input/input.types';
|
|
4
|
+
import type { CSSStyle } from '../style/inline-style.types';
|
|
5
5
|
export type InputNumberValue = number | string;
|
|
6
|
-
export type InputNumberContent =
|
|
6
|
+
export type InputNumberContent = RenderEmptyContent;
|
|
7
7
|
export interface InputNumberFocusOptions extends FocusOptions {
|
|
8
8
|
cursor?: 'start' | 'end' | 'all';
|
|
9
9
|
}
|
|
@@ -17,17 +17,17 @@ export interface InputNumberStepInfo {
|
|
|
17
17
|
type: 'up' | 'down';
|
|
18
18
|
emitter: 'handler' | 'keyboard' | 'wheel';
|
|
19
19
|
}
|
|
20
|
-
export interface InputNumberSlots {
|
|
21
|
-
root?:
|
|
22
|
-
prefix?:
|
|
23
|
-
suffix?:
|
|
24
|
-
input?:
|
|
25
|
-
actions?:
|
|
26
|
-
action?:
|
|
20
|
+
export interface InputNumberSlots<SlotValue = string> {
|
|
21
|
+
root?: SlotValue;
|
|
22
|
+
prefix?: SlotValue;
|
|
23
|
+
suffix?: SlotValue;
|
|
24
|
+
input?: SlotValue;
|
|
25
|
+
actions?: SlotValue;
|
|
26
|
+
action?: SlotValue;
|
|
27
27
|
}
|
|
28
|
-
export type InputNumberSemantic = InputNumberSlots | ((info: {
|
|
28
|
+
export type InputNumberSemantic<SlotValue = string> = InputNumberSlots<SlotValue> | ((info: {
|
|
29
29
|
props: InputNumberProps<InputNumberValue>;
|
|
30
|
-
}) => InputNumberSlots);
|
|
30
|
+
}) => InputNumberSlots<SlotValue>);
|
|
31
31
|
type InputNumberEvent<EventType extends Event> = EventType & {
|
|
32
32
|
currentTarget: EventTarget & HTMLInputElement;
|
|
33
33
|
};
|
|
@@ -70,9 +70,9 @@ export interface InputNumberProps<Value extends InputNumberValue = number> exten
|
|
|
70
70
|
/** CSS prefix control and its parts; empty/undefined inherited ConfigProvider. */
|
|
71
71
|
prefixCls?: string;
|
|
72
72
|
class?: string;
|
|
73
|
-
style?:
|
|
73
|
+
style?: CSSStyle;
|
|
74
74
|
classNames?: InputNumberSemantic;
|
|
75
|
-
styles?: InputNumberSemantic
|
|
75
|
+
styles?: InputNumberSemantic<CSSStyle>;
|
|
76
76
|
type?: HTMLInputAttributes['type'];
|
|
77
77
|
autoFocus?: boolean;
|
|
78
78
|
autoComplete?: HTMLInputAttributes['autocomplete'];
|
|
@@ -117,9 +117,9 @@ export interface InputNumberProps<Value extends InputNumberValue = number> exten
|
|
|
117
117
|
/** Local semantic styles overlap config; config variant is inherited without local. */
|
|
118
118
|
export interface InputNumberConfig {
|
|
119
119
|
class?: string;
|
|
120
|
-
style?:
|
|
120
|
+
style?: CSSStyle;
|
|
121
121
|
variant?: InputVariant;
|
|
122
122
|
classNames?: InputNumberSemantic;
|
|
123
|
-
styles?: InputNumberSemantic
|
|
123
|
+
styles?: InputNumberSemantic<CSSStyle>;
|
|
124
124
|
}
|
|
125
125
|
export {};
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import { getLayoutPrefixCss } from './layout-prefix.engine';
|
|
8
8
|
import { useRuntimeStyles } from '../theme/theme-context.svelte';
|
|
9
9
|
import ThemeScopeStyle from '../theme/ThemeScopeStyle.svelte';
|
|
10
|
+
import { inlineStyleText } from '../style/inline-style-layers.engine';
|
|
10
11
|
import type { LayoutProps } from './layout.types';
|
|
11
12
|
|
|
12
13
|
let {
|
|
@@ -41,6 +42,6 @@
|
|
|
41
42
|
config.layout?.class,
|
|
42
43
|
className,
|
|
43
44
|
rootClassName
|
|
44
|
-
]} style={
|
|
45
|
+
]} style={inlineStyleText(componentTheme.style, config.layout?.style, style)}>
|
|
45
46
|
{@render children?.()}
|
|
46
47
|
</div>
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { getLayoutSectionPrefixCss } from './layout-prefix.engine';
|
|
6
6
|
import { useRuntimeStyles } from '../theme/theme-context.svelte';
|
|
7
7
|
import ThemeScopeStyle from '../theme/ThemeScopeStyle.svelte';
|
|
8
|
+
import { inlineStyleText } from '../style/inline-style-layers.engine';
|
|
8
9
|
import type { LayoutSectionProps } from './layout.types';
|
|
9
10
|
let {
|
|
10
11
|
tag,
|
|
@@ -37,6 +38,6 @@
|
|
|
37
38
|
data-ant-layout-prefix={needsSectionScope ? part : undefined}
|
|
38
39
|
data-ant-layout-standalone={!layout ? '' : undefined}
|
|
39
40
|
class={['ant-layout-css-var', componentPrefix, componentTheme.className, className, rootClassName]}
|
|
40
|
-
style={
|
|
41
|
+
style={inlineStyleText(layout ? undefined : componentTheme.style, style)}>
|
|
41
42
|
{@render children?.()}
|
|
42
43
|
</svelte:element>
|