naive-ui 2.25.3 → 2.25.6
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/es/_internal/scrollbar/src/ScrollBar.d.ts +1 -0
- package/es/_internal/select-menu/src/SelectMenu.d.ts +1 -0
- package/es/_mixins/use-css-vars-class.js +2 -1
- package/es/button/src/styles/button-rtl.cssr.js +2 -2
- package/es/cascader/src/Cascader.d.ts +10 -0
- package/es/cascader/src/CascaderMenu.d.ts +1 -0
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/es/cascader/styles/light.d.ts +1 -0
- package/es/checkbox/src/Checkbox.d.ts +12 -0
- package/es/checkbox/src/Checkbox.js +14 -7
- package/es/checkbox/src/styles/index.cssr.js +16 -8
- package/es/checkbox/src/styles/rtl.cssr.d.ts +2 -0
- package/es/checkbox/src/styles/rtl.cssr.js +4 -0
- package/es/checkbox/styles/index.d.ts +1 -0
- package/es/checkbox/styles/index.js +1 -0
- package/es/checkbox/styles/light.d.ts +1 -0
- package/es/checkbox/styles/light.js +2 -2
- package/es/checkbox/styles/rtl.d.ts +2 -0
- package/es/checkbox/styles/rtl.js +5 -0
- package/es/code/src/Code.js +3 -1
- package/es/collapse/src/Collapse.d.ts +1 -0
- package/es/collapse/src/Collapse.js +9 -2
- package/es/collapse/src/CollapseItem.d.ts +1 -0
- package/es/collapse/src/CollapseItem.js +8 -3
- package/es/collapse/src/styles/rtl.cssr.d.ts +2 -0
- package/es/collapse/src/styles/rtl.cssr.js +15 -0
- package/es/collapse/styles/index.d.ts +1 -0
- package/es/collapse/styles/index.js +1 -0
- package/es/collapse/styles/rtl.d.ts +2 -0
- package/es/collapse/styles/rtl.js +5 -0
- package/es/collapse-transition/src/CollapseTransition.d.ts +3 -1
- package/es/collapse-transition/src/CollapseTransition.js +27 -14
- package/es/config-provider/src/ConfigProvider.js +6 -0
- package/es/config-provider/src/internal-interface.d.ts +1 -0
- package/es/data-table/src/DataTable.d.ts +20 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +3 -0
- package/es/data-table/src/TableParts/Cell.d.ts +4 -0
- package/es/data-table/src/TableParts/Header.d.ts +2 -0
- package/es/data-table/styles/light.d.ts +2 -0
- package/es/date-picker/src/DatePicker.d.ts +7 -2
- package/es/date-picker/src/DatePicker.js +80 -68
- package/es/date-picker/src/panel/date.d.ts +6 -0
- package/es/date-picker/src/panel/date.js +7 -2
- package/es/date-picker/src/panel/daterange.d.ts +4 -0
- package/es/date-picker/src/panel/daterange.js +7 -2
- package/es/date-picker/src/panel/datetime.d.ts +6 -0
- package/es/date-picker/src/panel/datetime.js +7 -2
- package/es/date-picker/src/panel/datetimerange.d.ts +4 -0
- package/es/date-picker/src/panel/datetimerange.js +7 -2
- package/es/date-picker/src/panel/month.d.ts +6 -0
- package/es/date-picker/src/panel/month.js +4 -2
- package/es/date-picker/src/panel/panelHeader.d.ts +10 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -0
- package/es/date-picker/src/panel/use-panel-common.js +3 -1
- package/es/drawer/src/Drawer.d.ts +3 -1
- package/es/drawer/src/Drawer.js +39 -27
- package/es/dropdown/src/Dropdown.d.ts +7 -5
- package/es/dropdown/src/Dropdown.js +59 -52
- package/es/dynamic-input/src/DynamicInput.d.ts +3 -1
- package/es/dynamic-input/src/DynamicInput.js +17 -10
- package/es/form/src/FormItem.d.ts +3 -1
- package/es/form/src/FormItem.js +40 -33
- package/es/form/src/FormItemRow.js +1 -1
- package/es/gradient-text/src/GradientText.d.ts +3 -1
- package/es/gradient-text/src/GradientText.js +23 -15
- package/es/icon/src/Icon.d.ts +3 -5
- package/es/icon/src/Icon.js +29 -19
- package/es/image/src/ImagePreview.d.ts +3 -1
- package/es/image/src/ImagePreview.js +28 -15
- package/es/input/src/Input.d.ts +4 -1
- package/es/input/src/Input.js +27 -6
- package/es/input/src/InputGroupLabel.d.ts +3 -1
- package/es/input/src/InputGroupLabel.js +26 -19
- package/es/input/src/styles/input.cssr.js +1 -0
- package/es/input/src/styles/rtl.cssr.d.ts +2 -0
- package/es/input/src/styles/rtl.cssr.js +16 -0
- package/es/input/styles/index.d.ts +1 -0
- package/es/input/styles/index.js +1 -0
- package/es/input/styles/rtl.d.ts +2 -0
- package/es/input/styles/rtl.js +5 -0
- package/es/input-number/src/InputNumber.d.ts +1 -0
- package/es/input-number/src/InputNumber.js +8 -3
- package/es/input-number/src/styles/rtl.cssr.d.ts +2 -0
- package/es/input-number/src/styles/rtl.cssr.js +4 -0
- package/es/input-number/styles/index.d.ts +1 -0
- package/es/input-number/styles/index.js +1 -0
- package/es/input-number/styles/rtl.d.ts +2 -0
- package/es/input-number/styles/rtl.js +8 -0
- package/es/layout/src/Layout.d.ts +2 -0
- package/es/layout/src/LayoutContent.d.ts +1 -0
- package/es/layout/src/LayoutSider.d.ts +1 -0
- package/es/legacy-grid/src/styles/index.cssr.js +1 -1
- package/es/list/src/List.d.ts +3 -1
- package/es/list/src/List.js +27 -19
- package/es/loading-bar/src/LoadingBar.d.ts +3 -1
- package/es/loading-bar/src/LoadingBar.js +29 -15
- package/es/log/src/Log.d.ts +1 -0
- package/es/mention/src/Mention.d.ts +3 -1
- package/es/mention/src/Mention.js +20 -10
- package/es/message/src/Message.d.ts +12 -24
- package/es/message/src/Message.js +57 -40
- package/es/message/src/MessageEnvironment.d.ts +9 -0
- package/es/message/src/MessageEnvironment.js +1 -1
- package/es/message/src/MessageProvider.d.ts +67 -0
- package/es/message/src/MessageProvider.js +3 -0
- package/es/message/src/message-props.d.ts +4 -0
- package/es/message/src/message-props.js +4 -0
- package/es/message/src/styles/index.cssr.js +2 -1
- package/es/message/src/types.d.ts +3 -1
- package/es/message/styles/light.d.ts +7 -0
- package/es/message/styles/light.js +1 -1
- package/es/modal/src/BodyWrapper.d.ts +1 -0
- package/es/notification/src/Notification.d.ts +3 -1
- package/es/notification/src/Notification.js +44 -32
- package/es/notification/src/NotificationProvider.d.ts +1 -0
- package/es/notification/src/NotificationProvider.js +1 -0
- package/es/popconfirm/src/Popconfirm.d.ts +3 -2
- package/es/popconfirm/src/Popconfirm.js +2 -1
- package/es/popconfirm/src/PopconfirmPanel.d.ts +3 -1
- package/es/popconfirm/src/PopconfirmPanel.js +32 -25
- package/es/popconfirm/src/interface.d.ts +2 -0
- package/es/popover/src/PopoverBody.d.ts +4 -0
- package/es/popover/src/PopoverBody.js +3 -2
- package/es/popover/src/styles/index.cssr.js +49 -29
- package/es/radio/src/Radio.d.ts +7 -0
- package/es/radio/src/Radio.js +14 -7
- package/es/radio/src/RadioGroup.d.ts +9 -0
- package/es/radio/src/styles/radio.cssr.js +16 -9
- package/es/radio/styles/dark.js +2 -2
- package/es/radio/styles/light.d.ts +1 -0
- package/es/radio/styles/light.js +2 -2
- package/es/scrollbar/src/ScrollBar.d.ts +1 -0
- package/es/select/src/Select.d.ts +3 -1
- package/es/select/src/Select.js +31 -23
- package/es/slider/src/Slider.d.ts +6 -2
- package/es/slider/src/Slider.js +74 -51
- package/es/steps/src/Step.d.ts +3 -1
- package/es/steps/src/Step.js +32 -20
- package/es/styles.d.ts +4 -4
- package/es/styles.js +4 -4
- package/es/tabs/src/styles/index.cssr.js +2 -0
- package/es/time-picker/src/Panel.js +4 -4
- package/es/time-picker/src/TimePicker.d.ts +12 -4
- package/es/time-picker/src/TimePicker.js +90 -35
- package/es/timeline/src/Timeline.d.ts +9 -9
- package/es/timeline/src/TimelineItem.d.ts +4 -2
- package/es/timeline/src/TimelineItem.js +34 -20
- package/es/timeline/styles/_common.d.ts +1 -1
- package/es/timeline/styles/_common.js +1 -1
- package/es/timeline/styles/light.d.ts +1 -1
- package/es/transfer/src/Transfer.d.ts +10 -0
- package/es/transfer/src/TransferFilter.d.ts +1 -0
- package/es/transfer/src/TransferList.d.ts +2 -0
- package/es/transfer/src/TransferListItem.d.ts +1 -0
- package/es/transfer/styles/light.d.ts +1 -0
- package/es/tree/src/Tree.d.ts +16 -3
- package/es/tree/src/Tree.js +50 -28
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/es/tree/styles/light.d.ts +1 -0
- package/es/tree-select/src/TreeSelect.d.ts +23 -10
- package/es/tree-select/src/TreeSelect.js +26 -17
- package/es/tree-select/styles/light.d.ts +1 -0
- package/es/upload/src/Upload.d.ts +3 -1
- package/es/upload/src/Upload.js +23 -13
- package/es/upload/src/UploadFileList.js +8 -3
- package/es/upload/src/interface.d.ts +3 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +1 -0
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +1 -0
- package/lib/_mixins/use-css-vars-class.js +2 -1
- package/lib/button/src/styles/button-rtl.cssr.js +2 -2
- package/lib/cascader/src/Cascader.d.ts +10 -0
- package/lib/cascader/src/CascaderMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/lib/cascader/styles/light.d.ts +1 -0
- package/lib/checkbox/src/Checkbox.d.ts +12 -0
- package/lib/checkbox/src/Checkbox.js +14 -7
- package/lib/checkbox/src/styles/index.cssr.js +16 -8
- package/lib/checkbox/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/checkbox/src/styles/rtl.cssr.js +11 -0
- package/lib/checkbox/styles/index.d.ts +1 -0
- package/lib/checkbox/styles/index.js +3 -1
- package/lib/checkbox/styles/light.d.ts +1 -0
- package/lib/checkbox/styles/light.js +2 -2
- package/lib/checkbox/styles/rtl.d.ts +2 -0
- package/lib/checkbox/styles/rtl.js +11 -0
- package/lib/code/src/Code.js +3 -1
- package/lib/collapse/src/Collapse.d.ts +1 -0
- package/lib/collapse/src/Collapse.js +9 -2
- package/lib/collapse/src/CollapseItem.d.ts +1 -0
- package/lib/collapse/src/CollapseItem.js +7 -2
- package/lib/collapse/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/collapse/src/styles/rtl.cssr.js +22 -0
- package/lib/collapse/styles/index.d.ts +1 -0
- package/lib/collapse/styles/index.js +3 -1
- package/lib/collapse/styles/rtl.d.ts +2 -0
- package/lib/collapse/styles/rtl.js +11 -0
- package/lib/collapse-transition/src/CollapseTransition.d.ts +3 -1
- package/lib/collapse-transition/src/CollapseTransition.js +26 -13
- package/lib/config-provider/src/ConfigProvider.js +6 -0
- package/lib/config-provider/src/internal-interface.d.ts +1 -0
- package/lib/data-table/src/DataTable.d.ts +20 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.d.ts +3 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +4 -0
- package/lib/data-table/src/TableParts/Header.d.ts +2 -0
- package/lib/data-table/styles/light.d.ts +2 -0
- package/lib/date-picker/src/DatePicker.d.ts +7 -2
- package/lib/date-picker/src/DatePicker.js +79 -67
- package/lib/date-picker/src/panel/date.d.ts +6 -0
- package/lib/date-picker/src/panel/date.js +7 -2
- package/lib/date-picker/src/panel/daterange.d.ts +4 -0
- package/lib/date-picker/src/panel/daterange.js +7 -2
- package/lib/date-picker/src/panel/datetime.d.ts +6 -0
- package/lib/date-picker/src/panel/datetime.js +7 -2
- package/lib/date-picker/src/panel/datetimerange.d.ts +4 -0
- package/lib/date-picker/src/panel/datetimerange.js +7 -2
- package/lib/date-picker/src/panel/month.d.ts +6 -0
- package/lib/date-picker/src/panel/month.js +4 -2
- package/lib/date-picker/src/panel/panelHeader.d.ts +10 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -0
- package/lib/date-picker/src/panel/use-panel-common.js +3 -1
- package/lib/drawer/src/Drawer.d.ts +4 -1
- package/lib/drawer/src/Drawer.js +38 -26
- package/lib/dropdown/src/Dropdown.d.ts +7 -5
- package/lib/dropdown/src/Dropdown.js +58 -51
- package/lib/dynamic-input/src/DynamicInput.d.ts +3 -1
- package/lib/dynamic-input/src/DynamicInput.js +16 -9
- package/lib/form/src/FormItem.d.ts +3 -1
- package/lib/form/src/FormItem.js +39 -32
- package/lib/form/src/FormItemRow.js +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +3 -1
- package/lib/gradient-text/src/GradientText.js +22 -14
- package/lib/icon/src/Icon.d.ts +3 -5
- package/lib/icon/src/Icon.js +28 -18
- package/lib/image/src/ImagePreview.d.ts +3 -1
- package/lib/image/src/ImagePreview.js +27 -14
- package/lib/input/src/Input.d.ts +4 -1
- package/lib/input/src/Input.js +27 -6
- package/lib/input/src/InputGroupLabel.d.ts +3 -1
- package/lib/input/src/InputGroupLabel.js +25 -18
- package/lib/input/src/styles/input.cssr.js +1 -0
- package/lib/input/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/input/src/styles/rtl.cssr.js +23 -0
- package/lib/input/styles/index.d.ts +1 -0
- package/lib/input/styles/index.js +3 -1
- package/lib/input/styles/rtl.d.ts +2 -0
- package/lib/input/styles/rtl.js +11 -0
- package/lib/input-number/src/InputNumber.d.ts +1 -0
- package/lib/input-number/src/InputNumber.js +8 -3
- package/lib/input-number/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/input-number/src/styles/rtl.cssr.js +11 -0
- package/lib/input-number/styles/index.d.ts +1 -0
- package/lib/input-number/styles/index.js +3 -1
- package/lib/input-number/styles/rtl.d.ts +2 -0
- package/lib/input-number/styles/rtl.js +14 -0
- package/lib/layout/src/Layout.d.ts +2 -0
- package/lib/layout/src/LayoutContent.d.ts +1 -0
- package/lib/layout/src/LayoutSider.d.ts +1 -0
- package/lib/legacy-grid/src/styles/index.cssr.js +1 -1
- package/lib/list/src/List.d.ts +3 -1
- package/lib/list/src/List.js +26 -18
- package/lib/loading-bar/src/LoadingBar.d.ts +3 -1
- package/lib/loading-bar/src/LoadingBar.js +28 -14
- package/lib/log/src/Log.d.ts +1 -0
- package/lib/mention/src/Mention.d.ts +3 -1
- package/lib/mention/src/Mention.js +19 -9
- package/lib/message/src/Message.d.ts +12 -24
- package/lib/message/src/Message.js +56 -39
- package/lib/message/src/MessageEnvironment.d.ts +9 -0
- package/lib/message/src/MessageEnvironment.js +1 -1
- package/lib/message/src/MessageProvider.d.ts +67 -0
- package/lib/message/src/MessageProvider.js +3 -0
- package/lib/message/src/message-props.d.ts +4 -0
- package/lib/message/src/message-props.js +4 -0
- package/lib/message/src/styles/index.cssr.js +2 -1
- package/lib/message/src/types.d.ts +3 -1
- package/lib/message/styles/light.d.ts +7 -0
- package/lib/message/styles/light.js +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +1 -0
- package/lib/notification/src/Notification.d.ts +3 -1
- package/lib/notification/src/Notification.js +44 -32
- package/lib/notification/src/NotificationProvider.d.ts +1 -0
- package/lib/notification/src/NotificationProvider.js +1 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +3 -2
- package/lib/popconfirm/src/Popconfirm.js +2 -1
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +3 -1
- package/lib/popconfirm/src/PopconfirmPanel.js +30 -23
- package/lib/popconfirm/src/interface.d.ts +2 -0
- package/lib/popover/src/PopoverBody.d.ts +4 -0
- package/lib/popover/src/PopoverBody.js +3 -2
- package/lib/popover/src/styles/index.cssr.js +50 -29
- package/lib/radio/src/Radio.d.ts +7 -0
- package/lib/radio/src/Radio.js +13 -6
- package/lib/radio/src/RadioGroup.d.ts +9 -0
- package/lib/radio/src/styles/radio.cssr.js +16 -9
- package/lib/radio/styles/dark.js +2 -2
- package/lib/radio/styles/light.d.ts +1 -0
- package/lib/radio/styles/light.js +2 -2
- package/lib/scrollbar/src/ScrollBar.d.ts +1 -0
- package/lib/select/src/Select.d.ts +3 -1
- package/lib/select/src/Select.js +30 -22
- package/lib/slider/src/Slider.d.ts +6 -2
- package/lib/slider/src/Slider.js +73 -50
- package/lib/steps/src/Step.d.ts +3 -1
- package/lib/steps/src/Step.js +32 -20
- package/lib/styles.d.ts +4 -4
- package/lib/styles.js +6 -2
- package/lib/tabs/src/styles/index.cssr.js +2 -0
- package/lib/time-picker/src/Panel.js +4 -4
- package/lib/time-picker/src/TimePicker.d.ts +12 -4
- package/lib/time-picker/src/TimePicker.js +89 -34
- package/lib/timeline/src/Timeline.d.ts +9 -9
- package/lib/timeline/src/TimelineItem.d.ts +4 -2
- package/lib/timeline/src/TimelineItem.js +34 -20
- package/lib/timeline/styles/_common.d.ts +1 -1
- package/lib/timeline/styles/_common.js +1 -1
- package/lib/timeline/styles/light.d.ts +1 -1
- package/lib/transfer/src/Transfer.d.ts +10 -0
- package/lib/transfer/src/TransferFilter.d.ts +1 -0
- package/lib/transfer/src/TransferList.d.ts +2 -0
- package/lib/transfer/src/TransferListItem.d.ts +1 -0
- package/lib/transfer/styles/light.d.ts +1 -0
- package/lib/tree/src/Tree.d.ts +16 -3
- package/lib/tree/src/Tree.js +49 -27
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/lib/tree/styles/light.d.ts +1 -0
- package/lib/tree-select/src/TreeSelect.d.ts +23 -10
- package/lib/tree-select/src/TreeSelect.js +25 -16
- package/lib/tree-select/styles/light.d.ts +1 -0
- package/lib/upload/src/Upload.d.ts +3 -1
- package/lib/upload/src/Upload.js +22 -12
- package/lib/upload/src/UploadFileList.js +8 -3
- package/lib/upload/src/interface.d.ts +3 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
8
|
+
|
|
9
|
+
exports.default = (0, cssr_1.cB)('input', [(0, cssr_1.cM)('rtl', `
|
|
10
|
+
direction: rtl;
|
|
11
|
+
`, [(0, cssr_1.cE)('prefix', {
|
|
12
|
+
marginRight: 0,
|
|
13
|
+
marginLeft: '4px'
|
|
14
|
+
}), (0, cssr_1.cE)('suffix', {
|
|
15
|
+
marginRight: '4px',
|
|
16
|
+
marginLeft: 0
|
|
17
|
+
}), (0, cssr_1.cM)('textarea', 'width: 100%;', [(0, cssr_1.cB)('input-word-count', `
|
|
18
|
+
left: var(--n-padding-right);
|
|
19
|
+
right: unset;
|
|
20
|
+
`)]), (0, cssr_1.cB)('input-word-count', `
|
|
21
|
+
margin-left: 0;
|
|
22
|
+
margin-right: 4px;
|
|
23
|
+
`)])]);
|
|
@@ -3,8 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.inputLight = exports.inputDark = void 0;
|
|
6
|
+
exports.inputRtl = exports.inputLight = exports.inputDark = void 0;
|
|
7
7
|
var dark_1 = require("./dark");
|
|
8
8
|
Object.defineProperty(exports, "inputDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
|
|
9
9
|
var light_1 = require("./light");
|
|
10
10
|
Object.defineProperty(exports, "inputLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
|
|
11
|
+
var rtl_1 = require("./rtl");
|
|
12
|
+
Object.defineProperty(exports, "inputRtl", { enumerable: true, get: function () { return rtl_1.inputRtl; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.inputRtl = void 0;
|
|
7
|
+
const rtl_cssr_1 = __importDefault(require("../src/styles/rtl.cssr"));
|
|
8
|
+
exports.inputRtl = {
|
|
9
|
+
name: 'Input',
|
|
10
|
+
style: rtl_cssr_1.default
|
|
11
|
+
};
|
|
@@ -1712,6 +1712,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1712
1712
|
}, any>;
|
|
1713
1713
|
}>>>;
|
|
1714
1714
|
}, {
|
|
1715
|
+
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
1715
1716
|
inputInstRef: import("vue").Ref<{
|
|
1716
1717
|
wrapperElRef: HTMLElement | null;
|
|
1717
1718
|
textareaElRef: HTMLTextAreaElement | null;
|
|
@@ -16,6 +16,7 @@ const _utils_1 = require("../../_utils");
|
|
|
16
16
|
const styles_1 = require("../styles");
|
|
17
17
|
const utils_1 = require("./utils");
|
|
18
18
|
const input_number_cssr_1 = __importDefault(require("./styles/input-number.cssr"));
|
|
19
|
+
const use_rtl_1 = __importDefault(require("../../_mixins/use-rtl"));
|
|
19
20
|
const HOLDING_CHANGE_THRESHOLD = 800;
|
|
20
21
|
const HOLDING_CHANGE_INTERVAL = 100;
|
|
21
22
|
const inputNumberProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { loading: {
|
|
@@ -56,7 +57,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
56
57
|
}
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
|
-
const { mergedBorderedRef, mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
60
|
+
const { mergedBorderedRef, mergedClsPrefixRef, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
60
61
|
const themeRef = (0, _mixins_1.useTheme)('InputNumber', '-input-number', input_number_cssr_1.default, styles_1.inputNumberLight, props, mergedClsPrefixRef);
|
|
61
62
|
const { localeRef } = (0, _mixins_1.useLocale)('InputNumber');
|
|
62
63
|
const formItem = (0, _mixins_1.useFormItem)(props);
|
|
@@ -403,7 +404,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
403
404
|
focus: () => { var _a; return (_a = inputInstRef.value) === null || _a === void 0 ? void 0 : _a.focus(); },
|
|
404
405
|
blur: () => { var _a; return (_a = inputInstRef.value) === null || _a === void 0 ? void 0 : _a.blur(); }
|
|
405
406
|
};
|
|
406
|
-
|
|
407
|
+
const rtlEnabledRef = (0, use_rtl_1.default)('InputNumber', mergedRtlRef, mergedClsPrefixRef);
|
|
408
|
+
return Object.assign(Object.assign({}, exposedMethods), { rtlEnabled: rtlEnabledRef, inputInstRef,
|
|
407
409
|
minusButtonInstRef,
|
|
408
410
|
addButtonInstRef, mergedClsPrefix: mergedClsPrefixRef, mergedBordered: mergedBorderedRef, uncontrolledValue: uncontrolledValueRef, mergedValue: mergedValueRef, mergedPlaceholder: mergedPlaceholderRef, displayedValueInvalid: displayedValueInvalidRef, mergedSize: mergedSizeRef, mergedDisabled: mergedDisabledRef, displayedValue: displayedValueRef, addable: addableRef, minusable: minusableRef, mergedStatus: mergedStatusRef, handleFocus,
|
|
409
411
|
handleBlur,
|
|
@@ -431,7 +433,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
431
433
|
},
|
|
432
434
|
render() {
|
|
433
435
|
const { mergedClsPrefix } = this;
|
|
434
|
-
return ((0, vue_1.h)("div", { class:
|
|
436
|
+
return ((0, vue_1.h)("div", { class: [
|
|
437
|
+
`${mergedClsPrefix}-input-number`,
|
|
438
|
+
this.rtlEnabled && `${mergedClsPrefix}-input-number--rtl`
|
|
439
|
+
] },
|
|
435
440
|
(0, vue_1.h)(input_1.NInput, { ref: "inputInstRef", status: this.mergedStatus, bordered: this.mergedBordered, loading: this.loading, value: this.displayedValue, onUpdateValue: this.handleUpdateDisplayedValue, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, builtinThemeOverrides: this.inputThemeOverrides, size: this.mergedSize, placeholder: this.mergedPlaceholder, disabled: this.mergedDisabled, readonly: this.readonly, textDecoration: this.displayedValueInvalid ? 'line-through' : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeydown: this.handleKeyDown, onMousedown: this.handleMouseDown, onClear: this.handleClear, clearable: this.clearable, internalLoadingBeforeSuffix: true }, {
|
|
436
441
|
prefix: () => { var _a, _b; return (_b = (_a = this.$slots).prefix) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
437
442
|
suffix: () => {
|
|
@@ -3,8 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.inputNumberLight = exports.inputNumberDark = void 0;
|
|
6
|
+
exports.inputNumberRtl = exports.inputNumberLight = exports.inputNumberDark = void 0;
|
|
7
7
|
var dark_1 = require("./dark");
|
|
8
8
|
Object.defineProperty(exports, "inputNumberDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
|
|
9
9
|
var light_1 = require("./light");
|
|
10
10
|
Object.defineProperty(exports, "inputNumberLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
|
|
11
|
+
var rtl_1 = require("./rtl");
|
|
12
|
+
Object.defineProperty(exports, "inputNumberRtl", { enumerable: true, get: function () { return rtl_1.inputNumberRtl; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.inputNumberRtl = void 0;
|
|
7
|
+
const rtl_cssr_1 = __importDefault(require("../src/styles/rtl.cssr"));
|
|
8
|
+
const rtl_1 = require("../../input/styles/rtl");
|
|
9
|
+
const rtl_2 = require("../../button/styles/rtl");
|
|
10
|
+
exports.inputNumberRtl = {
|
|
11
|
+
name: 'InputNumber',
|
|
12
|
+
style: rtl_cssr_1.default,
|
|
13
|
+
peers: [rtl_1.inputRtl, rtl_2.buttonRtl]
|
|
14
|
+
};
|
|
@@ -162,6 +162,7 @@ export declare function createLayoutComponent(isContent: boolean): import("vue")
|
|
|
162
162
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
163
163
|
scrollableElRef: import("vue").Ref<HTMLElement | null>;
|
|
164
164
|
scrollbarInstRef: import("vue").Ref<{
|
|
165
|
+
$el: HTMLElement;
|
|
165
166
|
containerRef: HTMLElement | null;
|
|
166
167
|
contentRef: HTMLElement | null;
|
|
167
168
|
containerScrollTop: number;
|
|
@@ -558,6 +559,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
558
559
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
559
560
|
scrollableElRef: import("vue").Ref<HTMLElement | null>;
|
|
560
561
|
scrollbarInstRef: import("vue").Ref<{
|
|
562
|
+
$el: HTMLElement;
|
|
561
563
|
containerRef: HTMLElement | null;
|
|
562
564
|
contentRef: HTMLElement | null;
|
|
563
565
|
containerScrollTop: number;
|
|
@@ -114,6 +114,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
114
114
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
115
115
|
scrollableElRef: import("vue").Ref<HTMLElement | null>;
|
|
116
116
|
scrollbarInstRef: import("vue").Ref<{
|
|
117
|
+
$el: HTMLElement;
|
|
117
118
|
containerRef: HTMLElement | null;
|
|
118
119
|
contentRef: HTMLElement | null;
|
|
119
120
|
containerScrollTop: number;
|
|
@@ -201,6 +201,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
201
201
|
scrollTo: ((options: ScrollToOptions) => void) & ((x: number, y: number) => void);
|
|
202
202
|
scrollableElRef: import("vue").Ref<HTMLElement | null>;
|
|
203
203
|
scrollbarInstRef: import("vue").Ref<{
|
|
204
|
+
$el: HTMLElement;
|
|
204
205
|
containerRef: HTMLElement | null;
|
|
205
206
|
contentRef: HTMLElement | null;
|
|
206
207
|
containerScrollTop: number;
|
|
@@ -10,7 +10,7 @@ const positionStyles = Array.apply(null, {
|
|
|
10
10
|
length: 24
|
|
11
11
|
}).map((_, index) => {
|
|
12
12
|
const prefixIndex = index + 1;
|
|
13
|
-
const percent = (
|
|
13
|
+
const percent = `calc(100% / 24 * ${prefixIndex})`;
|
|
14
14
|
return [(0, cssr_1.cM)(`${prefixIndex}-span`, {
|
|
15
15
|
width: percent
|
|
16
16
|
}), (0, cssr_1.cM)(`${prefixIndex}-offset`, {
|
package/lib/list/src/List.d.ts
CHANGED
|
@@ -103,7 +103,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
103
103
|
'--n-border-color-popover': string;
|
|
104
104
|
'--n-color-modal': string;
|
|
105
105
|
'--n-color-popover': string;
|
|
106
|
-
}
|
|
106
|
+
}> | undefined;
|
|
107
|
+
themeClass: Ref<string> | undefined;
|
|
108
|
+
onRender: (() => void) | undefined;
|
|
107
109
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
108
110
|
size: {
|
|
109
111
|
type: PropType<"small" | "medium" | "large">;
|
package/lib/list/src/List.js
CHANGED
|
@@ -21,36 +21,44 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
21
21
|
name: 'List',
|
|
22
22
|
props: listProps,
|
|
23
23
|
setup(props) {
|
|
24
|
-
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
24
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
25
25
|
const themeRef = (0, _mixins_1.useTheme)('List', '-list', index_cssr_1.default, styles_1.listLight, props, mergedClsPrefixRef);
|
|
26
26
|
(0, vue_1.provide)(exports.listInjectionKey, {
|
|
27
27
|
mergedClsPrefixRef
|
|
28
28
|
});
|
|
29
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
30
|
+
const { common: { cubicBezierEaseInOut }, self: { fontSize, textColor, color, colorModal, colorPopover, borderColor, borderColorModal, borderColorPopover, borderRadius } } = themeRef.value;
|
|
31
|
+
return {
|
|
32
|
+
'--n-font-size': fontSize,
|
|
33
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
34
|
+
'--n-text-color': textColor,
|
|
35
|
+
'--n-color': color,
|
|
36
|
+
'--n-border-radius': borderRadius,
|
|
37
|
+
'--n-border-color': borderColor,
|
|
38
|
+
'--n-border-color-modal': borderColorModal,
|
|
39
|
+
'--n-border-color-popover': borderColorPopover,
|
|
40
|
+
'--n-color-modal': colorModal,
|
|
41
|
+
'--n-color-popover': colorPopover
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
const themeClassHandle = inlineThemeDisabled
|
|
45
|
+
? (0, _mixins_1.useThemeClass)('list', undefined, cssVarsRef, props)
|
|
46
|
+
: undefined;
|
|
29
47
|
return {
|
|
30
48
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
31
|
-
cssVars:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
'--n-font-size': fontSize,
|
|
35
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
36
|
-
'--n-text-color': textColor,
|
|
37
|
-
'--n-color': color,
|
|
38
|
-
'--n-border-radius': borderRadius,
|
|
39
|
-
'--n-border-color': borderColor,
|
|
40
|
-
'--n-border-color-modal': borderColorModal,
|
|
41
|
-
'--n-border-color-popover': borderColorPopover,
|
|
42
|
-
'--n-color-modal': colorModal,
|
|
43
|
-
'--n-color-popover': colorPopover
|
|
44
|
-
};
|
|
45
|
-
})
|
|
49
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
50
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
51
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
46
52
|
};
|
|
47
53
|
},
|
|
48
54
|
render() {
|
|
49
55
|
var _a;
|
|
50
|
-
const { $slots, mergedClsPrefix } = this;
|
|
56
|
+
const { $slots, mergedClsPrefix, onRender } = this;
|
|
57
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
51
58
|
return ((0, vue_1.h)("ul", { class: [
|
|
52
59
|
`${mergedClsPrefix}-list`,
|
|
53
|
-
this.bordered && `${mergedClsPrefix}-list--bordered
|
|
60
|
+
this.bordered && `${mergedClsPrefix}-list--bordered`,
|
|
61
|
+
this.themeClass
|
|
54
62
|
], style: this.cssVars },
|
|
55
63
|
$slots.header ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-list__header` }, $slots.header())) : null, (_a = $slots.default) === null || _a === void 0 ? void 0 :
|
|
56
64
|
_a.call($slots),
|
|
@@ -16,6 +16,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
16
16
|
'--n-height': string;
|
|
17
17
|
'--n-color-loading': string;
|
|
18
18
|
'--n-color-error': string;
|
|
19
|
-
}
|
|
19
|
+
}> | undefined;
|
|
20
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
21
|
+
onRender: (() => void) | undefined;
|
|
20
22
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
21
23
|
export default _default;
|
|
@@ -22,7 +22,8 @@ function createClassName(status, clsPrefix) {
|
|
|
22
22
|
}
|
|
23
23
|
exports.default = (0, vue_1.defineComponent)({
|
|
24
24
|
name: 'LoadingBar',
|
|
25
|
-
setup() {
|
|
25
|
+
setup(props) {
|
|
26
|
+
const { inlineThemeDisabled } = (0, _mixins_1.useConfig)();
|
|
26
27
|
const { props: providerProps, mergedClsPrefixRef
|
|
27
28
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
28
29
|
} = (0, vue_1.inject)(context_1.loadingBarProviderInjectionKey);
|
|
@@ -116,6 +117,17 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
116
117
|
});
|
|
117
118
|
}
|
|
118
119
|
const themeRef = (0, _mixins_1.useTheme)('LoadingBar', '-loading-bar', index_cssr_1.default, styles_1.loadingBarLight, providerProps, mergedClsPrefixRef);
|
|
120
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
121
|
+
const { self: { height, colorError, colorLoading } } = themeRef.value;
|
|
122
|
+
return {
|
|
123
|
+
'--n-height': height,
|
|
124
|
+
'--n-color-loading': colorLoading,
|
|
125
|
+
'--n-color-error': colorError
|
|
126
|
+
};
|
|
127
|
+
});
|
|
128
|
+
const themeClassHandle = inlineThemeDisabled
|
|
129
|
+
? (0, _mixins_1.useThemeClass)('loading-bar', undefined, cssVarsRef, providerProps)
|
|
130
|
+
: undefined;
|
|
119
131
|
return {
|
|
120
132
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
121
133
|
loadingBarRef,
|
|
@@ -130,14 +142,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
130
142
|
handleAfterEnter,
|
|
131
143
|
handleAfterLeave,
|
|
132
144
|
mergedLoadingBarStyle,
|
|
133
|
-
cssVars:
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
'--n-height': height,
|
|
137
|
-
'--n-color-loading': colorLoading,
|
|
138
|
-
'--n-color-error': colorError
|
|
139
|
-
};
|
|
140
|
-
})
|
|
145
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
146
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
147
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
141
148
|
};
|
|
142
149
|
},
|
|
143
150
|
render() {
|
|
@@ -145,11 +152,18 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
145
152
|
return null;
|
|
146
153
|
const { mergedClsPrefix } = this;
|
|
147
154
|
return ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-transition", appear: true, onEnter: this.handleEnter, onAfterEnter: this.handleAfterEnter, onAfterLeave: this.handleAfterLeave, css: !this.transitionDisabled }, {
|
|
148
|
-
default: () =>
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
155
|
+
default: () => {
|
|
156
|
+
var _a;
|
|
157
|
+
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
158
|
+
return (0, vue_1.withDirectives)((0, vue_1.h)("div", { class: [
|
|
159
|
+
`${mergedClsPrefix}-loading-bar-container`,
|
|
160
|
+
this.themeClass
|
|
161
|
+
] },
|
|
162
|
+
(0, vue_1.h)("div", { ref: "loadingBarRef", class: [`${mergedClsPrefix}-loading-bar`], style: [
|
|
163
|
+
this.cssVars,
|
|
164
|
+
this.mergedLoadingBarStyle
|
|
165
|
+
] })), [[vue_1.vShow, this.loading || (!this.loading && this.entering)]]);
|
|
166
|
+
}
|
|
153
167
|
}));
|
|
154
168
|
}
|
|
155
169
|
});
|
package/lib/log/src/Log.d.ts
CHANGED
|
@@ -244,6 +244,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
244
244
|
}, {
|
|
245
245
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
246
246
|
scrollbarRef: Ref<{
|
|
247
|
+
$el: HTMLElement;
|
|
247
248
|
containerRef: HTMLElement | null;
|
|
248
249
|
contentRef: HTMLElement | null;
|
|
249
250
|
containerScrollTop: number;
|
|
@@ -1104,7 +1104,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1104
1104
|
blur: () => void;
|
|
1105
1105
|
cssVars: import("vue").ComputedRef<{
|
|
1106
1106
|
'--n-menu-box-shadow': string;
|
|
1107
|
-
}
|
|
1107
|
+
}> | undefined;
|
|
1108
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
1109
|
+
onRender: (() => void) | undefined;
|
|
1108
1110
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1109
1111
|
readonly to: {
|
|
1110
1112
|
type: PropType<string | boolean | HTMLElement>;
|
|
@@ -53,7 +53,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
53
53
|
name: 'Mention',
|
|
54
54
|
props: mentionProps,
|
|
55
55
|
setup(props) {
|
|
56
|
-
const { namespaceRef, mergedClsPrefixRef, mergedBorderedRef } = (0, _mixins_1.useConfig)(props);
|
|
56
|
+
const { namespaceRef, mergedClsPrefixRef, mergedBorderedRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
57
57
|
const themeRef = (0, _mixins_1.useTheme)('Mention', '-mention', index_cssr_1.default, styles_1.mentionLight, props, mergedClsPrefixRef);
|
|
58
58
|
const formItem = (0, _mixins_1.useFormItem)(props);
|
|
59
59
|
const inputInstRef = (0, vue_1.ref)(null);
|
|
@@ -89,6 +89,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
89
89
|
const uncontrolledValueRef = (0, vue_1.ref)(props.defaultValue);
|
|
90
90
|
const controlledValueRef = (0, vue_1.toRef)(props, 'value');
|
|
91
91
|
const mergedValueRef = (0, vooks_1.useMergedState)(controlledValueRef, uncontrolledValueRef);
|
|
92
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
93
|
+
const { self: { menuBoxShadow } } = themeRef.value;
|
|
94
|
+
return {
|
|
95
|
+
'--n-menu-box-shadow': menuBoxShadow
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
const themeClassHandle = inlineThemeDisabled
|
|
99
|
+
? (0, _mixins_1.useThemeClass)('mention', undefined, cssVarsRef, props)
|
|
100
|
+
: undefined;
|
|
92
101
|
function doUpdateShowMenu(show) {
|
|
93
102
|
if (props.disabled)
|
|
94
103
|
return;
|
|
@@ -306,12 +315,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
306
315
|
handleInputMouseDown,
|
|
307
316
|
focus,
|
|
308
317
|
blur,
|
|
309
|
-
cssVars:
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
'--n-menu-box-shadow': menuBoxShadow
|
|
313
|
-
};
|
|
314
|
-
})
|
|
318
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
319
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
320
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
315
321
|
};
|
|
316
322
|
},
|
|
317
323
|
render() {
|
|
@@ -338,8 +344,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
338
344
|
(0, vue_1.h)(vueuc_1.VFollower, { ref: "followerRef", placement: this.placement, show: this.showMenu, containerClass: this.namespace, to: this.adjustedTo, teleportDisabled: this.adjustedTo === _utils_1.useAdjustedTo.tdkey }, {
|
|
339
345
|
default: () => ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
|
|
340
346
|
default: () => {
|
|
341
|
-
const { mergedTheme } = this;
|
|
342
|
-
|
|
347
|
+
const { mergedTheme, onRender } = this;
|
|
348
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
349
|
+
return this.showMenu ? ((0, vue_1.h)(_internal_1.NInternalSelectMenu, { clsPrefix: mergedClsPrefix, theme: mergedTheme.peers.InternalSelectMenu, themeOverrides: mergedTheme.peerOverrides.InternalSelectMenu, autoPending: true, ref: "selectMenuInstRef", class: [
|
|
350
|
+
`${mergedClsPrefix}-mention-menu`,
|
|
351
|
+
this.themeClass
|
|
352
|
+
], loading: this.loading, treeMate: this.treeMate, virtualScroll: false, style: this.cssVars, onToggle: this.handleSelect, renderLabel: this.renderLabel }, $slots)) : null;
|
|
343
353
|
}
|
|
344
354
|
}))
|
|
345
355
|
})
|
|
@@ -8,6 +8,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
readonly default: "info";
|
|
9
9
|
};
|
|
10
10
|
content: PropType<string | number | (() => VNodeChild)>;
|
|
11
|
+
showIcon: {
|
|
12
|
+
readonly type: BooleanConstructor;
|
|
13
|
+
readonly default: true;
|
|
14
|
+
};
|
|
11
15
|
closable: BooleanConstructor;
|
|
12
16
|
keepAliveOnHover: BooleanConstructor;
|
|
13
17
|
onClose: PropType<() => void>;
|
|
@@ -17,30 +21,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
21
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
18
22
|
messageProviderProps: import("./MessageProvider").MessageProviderSetupProps;
|
|
19
23
|
handleClose(): void;
|
|
20
|
-
cssVars:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'--n-padding': string;
|
|
24
|
-
'--n-max-width': string;
|
|
25
|
-
'--n-font-size': string;
|
|
26
|
-
'--n-icon-margin': string;
|
|
27
|
-
'--n-icon-size': string;
|
|
28
|
-
'--n-close-size': string;
|
|
29
|
-
'--n-close-margin': string;
|
|
30
|
-
'--n-text-color': string;
|
|
31
|
-
'--n-color': string;
|
|
32
|
-
'--n-box-shadow': string;
|
|
33
|
-
'--n-icon-color-info': string;
|
|
34
|
-
'--n-icon-color-success': string;
|
|
35
|
-
'--n-icon-color-warning': string;
|
|
36
|
-
'--n-icon-color-error': string;
|
|
37
|
-
'--n-icon-color-loading': string;
|
|
38
|
-
'--n-close-color': string;
|
|
39
|
-
'--n-close-color-pressed': string;
|
|
40
|
-
'--n-close-color-hover': string;
|
|
41
|
-
'--n-line-height': string;
|
|
42
|
-
'--n-border-radius': string;
|
|
43
|
-
}>;
|
|
24
|
+
cssVars: false | undefined;
|
|
25
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
26
|
+
onRender: (() => void) | undefined;
|
|
44
27
|
placement: "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
45
28
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
29
|
render: PropType<MessageRenderMessage>;
|
|
@@ -50,6 +33,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
33
|
readonly default: "info";
|
|
51
34
|
};
|
|
52
35
|
content: PropType<string | number | (() => VNodeChild)>;
|
|
36
|
+
showIcon: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: true;
|
|
39
|
+
};
|
|
53
40
|
closable: BooleanConstructor;
|
|
54
41
|
keepAliveOnHover: BooleanConstructor;
|
|
55
42
|
onClose: PropType<() => void>;
|
|
@@ -57,6 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
44
|
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
58
45
|
}>>, {
|
|
59
46
|
type: MessageType;
|
|
47
|
+
showIcon: boolean;
|
|
60
48
|
closable: boolean;
|
|
61
49
|
keepAliveOnHover: boolean;
|
|
62
50
|
}>;
|