naive-ui 2.21.1 → 2.21.2
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/scrollbar/src/ScrollBar.js +9 -4
- package/es/_internal/select-menu/src/SelectMenu.d.ts +1 -0
- package/es/_internal/selection/src/Selection.d.ts +1 -0
- package/es/_styles/common/dark.js +2 -1
- package/es/_styles/common/light.d.ts +1 -0
- package/es/_styles/common/light.js +1 -1
- package/es/alert/src/Alert.d.ts +1 -0
- package/es/auto-complete/src/AutoComplete.d.ts +1 -0
- package/es/auto-complete/src/AutoComplete.js +4 -1
- package/es/calendar/src/Calendar.d.ts +1 -0
- package/es/card/src/Card.d.ts +1 -0
- package/es/cascader/src/Cascader.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 +1 -0
- package/es/checkbox/src/Checkbox.d.ts +1 -0
- package/es/collapse/src/Collapse.d.ts +1 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +1 -0
- package/es/data-table/src/DataTable.d.ts +1 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +1 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -1
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Cell.d.ts +2 -0
- package/es/data-table/src/TableParts/Header.d.ts +1 -0
- package/es/data-table/src/styles/index.cssr.js +2 -2
- package/es/data-table/src/use-table-data.js +3 -3
- package/es/data-table/styles/light.js +4 -4
- package/es/date-picker/src/DatePicker.d.ts +1 -0
- package/es/date-picker/src/panel/date.d.ts +2 -1
- package/es/date-picker/src/panel/daterange.d.ts +3 -2
- package/es/date-picker/src/panel/datetime.d.ts +2 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +3 -2
- package/es/date-picker/src/panel/month.d.ts +2 -1
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -1
- package/es/date-picker/src/panel/use-calendar.js +2 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +3 -2
- package/es/date-picker/src/panel/use-dual-calendar.js +4 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +1 -0
- package/es/dialog/src/Dialog.d.ts +1 -0
- package/es/drawer/src/Drawer.d.ts +1 -0
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -0
- package/es/drawer/src/DrawerContent.d.ts +1 -0
- package/es/dropdown/src/Dropdown.d.ts +6 -5
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -0
- package/es/dynamic-input/src/InputPreset.d.ts +1 -0
- package/es/dynamic-input/src/PairPreset.d.ts +1 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -0
- package/es/ellipsis/src/Ellipsis.d.ts +1 -0
- package/es/input/src/Input.d.ts +1 -0
- package/es/input-number/src/InputNumber.d.ts +35 -0
- package/es/input-number/src/InputNumber.js +22 -6
- 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/log/src/Log.d.ts +7 -25
- package/es/log/src/Log.js +2 -11
- package/es/log/src/LogLine.d.ts +1 -0
- package/es/log/src/LogLine.js +12 -10
- package/es/mention/src/Mention.d.ts +1 -0
- package/es/menu/src/Menu.d.ts +1 -0
- package/es/menu/src/MenuOption.d.ts +1 -0
- package/es/modal/src/BodyWrapper.d.ts +1 -0
- package/es/notification/src/NotificationContainer.d.ts +8 -0
- package/es/notification/src/NotificationContainer.js +7 -2
- package/es/notification/src/NotificationProvider.d.ts +17 -0
- package/es/notification/src/NotificationProvider.js +38 -3
- package/es/notification/src/styles/index.cssr.d.ts +2 -1
- package/es/notification/src/styles/index.cssr.js +41 -12
- package/es/pagination/src/Pagination.d.ts +1 -0
- package/es/popconfirm/src/Popconfirm.d.ts +6 -5
- package/es/popover/src/Popover.d.ts +6 -6
- package/es/popover/src/Popover.js +2 -5
- package/es/popover/src/PopoverBody.d.ts +5 -5
- package/es/popover/src/PopoverBody.js +2 -1
- package/es/popover/src/styles/index.cssr.js +0 -1
- package/es/popselect/src/Popselect.d.ts +6 -5
- package/es/popselect/src/PopselectPanel.d.ts +1 -0
- package/es/select/src/Select.d.ts +1 -0
- package/es/slider/src/Slider.d.ts +1 -0
- package/es/slider/src/Slider.js +70 -54
- package/es/table/styles/light.js +2 -2
- package/es/theme-editor/src/ThemeEditor.d.ts +1 -0
- package/es/time-picker/src/Panel.d.ts +1 -0
- package/es/time-picker/src/TimePicker.d.ts +1 -0
- package/es/tooltip/src/Tooltip.d.ts +6 -5
- package/es/transfer/src/Transfer.d.ts +1 -0
- package/es/transfer/src/TransferFilter.d.ts +1 -0
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferListItem.d.ts +1 -0
- package/es/tree/src/Tree.d.ts +1 -0
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/es/tree-select/src/TreeSelect.d.ts +1 -0
- package/es/upload/index.d.ts +1 -2
- package/es/upload/src/Upload.d.ts +8 -9
- package/es/upload/src/Upload.js +69 -16
- package/es/upload/src/UploadFile.d.ts +1 -0
- package/es/upload/src/UploadProgress.d.ts +1 -0
- package/es/upload/src/interface.d.ts +14 -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/scrollbar/src/ScrollBar.js +9 -4
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +1 -0
- package/lib/_internal/selection/src/Selection.d.ts +1 -0
- package/lib/_styles/common/dark.js +2 -1
- package/lib/_styles/common/light.d.ts +1 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/alert/src/Alert.d.ts +1 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -0
- package/lib/auto-complete/src/AutoComplete.js +4 -1
- package/lib/calendar/src/Calendar.d.ts +1 -0
- package/lib/card/src/Card.d.ts +1 -0
- package/lib/cascader/src/Cascader.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 +1 -0
- package/lib/checkbox/src/Checkbox.d.ts +1 -0
- package/lib/collapse/src/Collapse.d.ts +1 -0
- package/lib/color-picker/src/ColorInputUnit.d.ts +1 -0
- package/lib/data-table/src/DataTable.d.ts +1 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +1 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -1
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +2 -0
- package/lib/data-table/src/TableParts/Header.d.ts +1 -0
- package/lib/data-table/src/styles/index.cssr.js +2 -2
- package/lib/data-table/src/use-table-data.js +3 -3
- package/lib/data-table/styles/light.js +4 -4
- package/lib/date-picker/src/DatePicker.d.ts +1 -0
- package/lib/date-picker/src/panel/date.d.ts +2 -1
- package/lib/date-picker/src/panel/daterange.d.ts +3 -2
- package/lib/date-picker/src/panel/datetime.d.ts +2 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +3 -2
- package/lib/date-picker/src/panel/month.d.ts +2 -1
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -1
- package/lib/date-picker/src/panel/use-calendar.js +2 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +3 -2
- package/lib/date-picker/src/panel/use-dual-calendar.js +4 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +1 -0
- package/lib/dialog/src/Dialog.d.ts +1 -0
- package/lib/drawer/src/Drawer.d.ts +1 -0
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -0
- package/lib/drawer/src/DrawerContent.d.ts +1 -0
- package/lib/dropdown/src/Dropdown.d.ts +6 -5
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +1 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +1 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -0
- package/lib/ellipsis/src/Ellipsis.d.ts +1 -0
- package/lib/input/src/Input.d.ts +1 -0
- package/lib/input-number/src/InputNumber.d.ts +35 -0
- package/lib/input-number/src/InputNumber.js +22 -6
- 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/log/src/Log.d.ts +7 -25
- package/lib/log/src/Log.js +2 -11
- package/lib/log/src/LogLine.d.ts +1 -0
- package/lib/log/src/LogLine.js +11 -9
- package/lib/mention/src/Mention.d.ts +1 -0
- package/lib/menu/src/Menu.d.ts +1 -0
- package/lib/menu/src/MenuOption.d.ts +1 -0
- package/lib/modal/src/BodyWrapper.d.ts +1 -0
- package/lib/notification/src/NotificationContainer.d.ts +8 -0
- package/lib/notification/src/NotificationContainer.js +7 -2
- package/lib/notification/src/NotificationProvider.d.ts +17 -0
- package/lib/notification/src/NotificationProvider.js +38 -3
- package/lib/notification/src/styles/index.cssr.d.ts +2 -1
- package/lib/notification/src/styles/index.cssr.js +41 -12
- package/lib/pagination/src/Pagination.d.ts +1 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +6 -5
- package/lib/popover/src/Popover.d.ts +6 -6
- package/lib/popover/src/Popover.js +2 -5
- package/lib/popover/src/PopoverBody.d.ts +5 -5
- package/lib/popover/src/PopoverBody.js +2 -1
- package/lib/popover/src/styles/index.cssr.js +0 -1
- package/lib/popselect/src/Popselect.d.ts +6 -5
- package/lib/popselect/src/PopselectPanel.d.ts +1 -0
- package/lib/select/src/Select.d.ts +1 -0
- package/lib/slider/src/Slider.d.ts +1 -0
- package/lib/slider/src/Slider.js +70 -54
- package/lib/table/styles/light.js +2 -2
- package/lib/theme-editor/src/ThemeEditor.d.ts +1 -0
- package/lib/time-picker/src/Panel.d.ts +1 -0
- package/lib/time-picker/src/TimePicker.d.ts +1 -0
- package/lib/tooltip/src/Tooltip.d.ts +6 -5
- package/lib/transfer/src/Transfer.d.ts +1 -0
- package/lib/transfer/src/TransferFilter.d.ts +1 -0
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferListItem.d.ts +1 -0
- package/lib/tree/src/Tree.d.ts +1 -0
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/lib/tree-select/src/TreeSelect.d.ts +1 -0
- package/lib/upload/index.d.ts +1 -2
- package/lib/upload/src/Upload.d.ts +8 -9
- package/lib/upload/src/Upload.js +69 -16
- package/lib/upload/src/UploadFile.d.ts +1 -0
- package/lib/upload/src/UploadProgress.d.ts +1 -0
- package/lib/upload/src/interface.d.ts +14 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -3
- package/web-types.json +51 -6
|
@@ -120,6 +120,7 @@ declare const Scrollbar: import("vue").DefineComponent<{
|
|
|
120
120
|
scrollTo: ScrollTo;
|
|
121
121
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
122
122
|
containerScrollTop: import("vue").Ref<number>;
|
|
123
|
+
wrapperRef: import("vue").Ref<HTMLElement | null>;
|
|
123
124
|
containerRef: import("vue").Ref<HTMLElement | null>;
|
|
124
125
|
contentRef: import("vue").Ref<HTMLElement | null>;
|
|
125
126
|
yRailRef: import("vue").Ref<HTMLElement | null>;
|
|
@@ -27,6 +27,7 @@ const Scrollbar = defineComponent({
|
|
|
27
27
|
setup(props) {
|
|
28
28
|
const { mergedClsPrefixRef } = useConfig(props);
|
|
29
29
|
// dom ref
|
|
30
|
+
const wrapperRef = ref(null);
|
|
30
31
|
const containerRef = ref(null);
|
|
31
32
|
const contentRef = ref(null);
|
|
32
33
|
const yRailRef = ref(null);
|
|
@@ -285,6 +286,10 @@ const Scrollbar = defineComponent({
|
|
|
285
286
|
syncPositionState();
|
|
286
287
|
syncScrollState();
|
|
287
288
|
}
|
|
289
|
+
function isMouseUpAway(e) {
|
|
290
|
+
var _a;
|
|
291
|
+
return !((_a = wrapperRef.value) === null || _a === void 0 ? void 0 : _a.contains(e.target));
|
|
292
|
+
}
|
|
288
293
|
function handleXScrollMouseDown(e) {
|
|
289
294
|
e.preventDefault();
|
|
290
295
|
e.stopPropagation();
|
|
@@ -329,8 +334,7 @@ const Scrollbar = defineComponent({
|
|
|
329
334
|
off('mouseup', window, handleXScrollMouseUp, true);
|
|
330
335
|
xBarPressed = false;
|
|
331
336
|
sync();
|
|
332
|
-
|
|
333
|
-
if (!(container === null || container === void 0 ? void 0 : container.contains(e.target))) {
|
|
337
|
+
if (isMouseUpAway(e)) {
|
|
334
338
|
hideBar();
|
|
335
339
|
}
|
|
336
340
|
}
|
|
@@ -375,8 +379,7 @@ const Scrollbar = defineComponent({
|
|
|
375
379
|
off('mouseup', window, handleYScrollMouseUp, true);
|
|
376
380
|
yBarPressed = false;
|
|
377
381
|
sync();
|
|
378
|
-
|
|
379
|
-
if (!(container === null || container === void 0 ? void 0 : container.contains(e.target))) {
|
|
382
|
+
if (isMouseUpAway(e)) {
|
|
380
383
|
hideBar();
|
|
381
384
|
}
|
|
382
385
|
}
|
|
@@ -432,6 +435,7 @@ const Scrollbar = defineComponent({
|
|
|
432
435
|
scrollTo,
|
|
433
436
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
434
437
|
containerScrollTop: containerScrollTopRef,
|
|
438
|
+
wrapperRef,
|
|
435
439
|
containerRef,
|
|
436
440
|
contentRef,
|
|
437
441
|
yRailRef,
|
|
@@ -470,6 +474,7 @@ const Scrollbar = defineComponent({
|
|
|
470
474
|
if (!this.scrollable)
|
|
471
475
|
return renderSlot($slots, 'default');
|
|
472
476
|
const createChildren = () => h('div', mergeProps(this.$attrs, {
|
|
477
|
+
ref: 'wrapperRef',
|
|
473
478
|
class: `${mergedClsPrefix}-scrollbar`,
|
|
474
479
|
style: this.cssVars,
|
|
475
480
|
onMouseenter: this.handleMouseEnterWrapper,
|
|
@@ -279,6 +279,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
279
279
|
tableHeaderColor: string;
|
|
280
280
|
hoverColor: string;
|
|
281
281
|
tableColorHover: string;
|
|
282
|
+
tableColorStriped: string;
|
|
282
283
|
pressedColor: string;
|
|
283
284
|
opacityDisabled: string;
|
|
284
285
|
inputColorDisabled: string;
|
|
@@ -332,6 +332,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
332
332
|
tableHeaderColor: string;
|
|
333
333
|
hoverColor: string;
|
|
334
334
|
tableColorHover: string;
|
|
335
|
+
tableColorStriped: string;
|
|
335
336
|
pressedColor: string;
|
|
336
337
|
opacityDisabled: string;
|
|
337
338
|
inputColorDisabled: string;
|
|
@@ -18,6 +18,7 @@ const base = {
|
|
|
18
18
|
alphaDisabledInput: '0.06',
|
|
19
19
|
alphaPending: '0.09',
|
|
20
20
|
alphaTablePending: '0.06',
|
|
21
|
+
alphaTableStriped: '0.05',
|
|
21
22
|
alphaPressed: '0.05',
|
|
22
23
|
alphaAvatar: '0.18',
|
|
23
24
|
alphaRail: '0.2',
|
|
@@ -87,5 +88,5 @@ const derived = Object.assign(Object.assign({ name: 'common' }, commonVariables)
|
|
|
87
88
|
// close
|
|
88
89
|
closeColorHover: overlay(Number(base.alphaClose) * 1.25), closeColor: overlay(Number(base.alphaClose)), closeColorPressed: overlay(Number(base.alphaClose) * 0.8), closeColorDisabled: overlay(base.alpha4),
|
|
89
90
|
// clear
|
|
90
|
-
clearColor: overlay(base.alpha4), clearColorHover: scaleColor(overlay(base.alpha4), { alpha: 1.25 }), clearColorPressed: scaleColor(overlay(base.alpha4), { alpha: 0.8 }), scrollbarColor: overlay(base.alphaScrollbar), scrollbarColorHover: overlay(base.alphaScrollbarHover), scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', progressRailColor: overlay(base.alphaProgressRail), railColor: overlay(base.alphaRail), popoverColor: base.neutralPopover, tableColor: base.neutralCard, cardColor: base.neutralCard, modalColor: base.neutralModal, bodyColor: base.neutralBody, tagColor: neutral(base.alphaTag), avatarColor: overlay(base.alphaAvatar), invertedColor: base.neutralBase, inputColor: overlay(base.alphaInput), codeColor: overlay(base.alphaCode), tabColor: overlay(base.alphaTab), actionColor: overlay(base.alphaAction), tableHeaderColor: overlay(base.alphaAction), hoverColor: overlay(base.alphaPending), tableColorHover: overlay(base.alphaTablePending), pressedColor: overlay(base.alphaPressed), opacityDisabled: base.alphaDisabled, inputColorDisabled: overlay(base.alphaDisabledInput), buttonColor2: 'rgba(255, 255, 255, .06)', buttonColor2Hover: 'rgba(255, 255, 255, .09)', buttonColor2Pressed: 'rgba(255, 255, 255, .05)', boxShadow1: '0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)', boxShadow2: '0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)', boxShadow3: '0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)' });
|
|
91
|
+
clearColor: overlay(base.alpha4), clearColorHover: scaleColor(overlay(base.alpha4), { alpha: 1.25 }), clearColorPressed: scaleColor(overlay(base.alpha4), { alpha: 0.8 }), scrollbarColor: overlay(base.alphaScrollbar), scrollbarColorHover: overlay(base.alphaScrollbarHover), scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', progressRailColor: overlay(base.alphaProgressRail), railColor: overlay(base.alphaRail), popoverColor: base.neutralPopover, tableColor: base.neutralCard, cardColor: base.neutralCard, modalColor: base.neutralModal, bodyColor: base.neutralBody, tagColor: neutral(base.alphaTag), avatarColor: overlay(base.alphaAvatar), invertedColor: base.neutralBase, inputColor: overlay(base.alphaInput), codeColor: overlay(base.alphaCode), tabColor: overlay(base.alphaTab), actionColor: overlay(base.alphaAction), tableHeaderColor: overlay(base.alphaAction), hoverColor: overlay(base.alphaPending), tableColorHover: overlay(base.alphaTablePending), tableColorStriped: overlay(base.alphaTableStriped), pressedColor: overlay(base.alphaPressed), opacityDisabled: base.alphaDisabled, inputColorDisabled: overlay(base.alphaDisabledInput), buttonColor2: 'rgba(255, 255, 255, .06)', buttonColor2Hover: 'rgba(255, 255, 255, .09)', buttonColor2Pressed: 'rgba(255, 255, 255, .05)', boxShadow1: '0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)', boxShadow2: '0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)', boxShadow3: '0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)' });
|
|
91
92
|
export default derived;
|
|
@@ -89,7 +89,7 @@ const derived = Object.assign(Object.assign({ name: 'common' }, commonVariables)
|
|
|
89
89
|
// clear
|
|
90
90
|
clearColor: neutral(base.alpha4), clearColorHover: scaleColor(neutral(base.alpha4), { lightness: 0.75 }), clearColorPressed: scaleColor(neutral(base.alpha4), { lightness: 0.9 }), scrollbarColor: overlay(base.alphaScrollbar), scrollbarColorHover: overlay(base.alphaScrollbarHover), scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', progressRailColor: neutral(base.alphaProgressRail), railColor: 'rgb(219, 219, 223)', popoverColor: base.neutralPopover, tableColor: base.neutralCard, cardColor: base.neutralCard, modalColor: base.neutralModal, bodyColor: base.neutralBody, tagColor: 'rgb(250, 250, 252)', avatarColor: neutral(base.alphaAvatar), invertedColor: 'rgb(0, 20, 40)', inputColor: neutral(base.alphaInput), codeColor: 'rgb(244, 244, 248)', tabColor: 'rgb(247, 247, 250)', actionColor: 'rgb(250, 250, 252)', tableHeaderColor: 'rgb(250, 250, 252)', hoverColor: 'rgb(243, 243, 245)',
|
|
91
91
|
// use color with alpha since it can be nested with header filter & sorter effect
|
|
92
|
-
tableColorHover: 'rgba(0, 0, 100, 0.02)', pressedColor: 'rgb(237, 237, 239)', opacityDisabled: base.alphaDisabled, inputColorDisabled: 'rgb(250, 250, 252)',
|
|
92
|
+
tableColorHover: 'rgba(0, 0, 100, 0.03)', tableColorStriped: 'rgba(0, 0, 100, 0.02)', pressedColor: 'rgb(237, 237, 239)', opacityDisabled: base.alphaDisabled, inputColorDisabled: 'rgb(250, 250, 252)',
|
|
93
93
|
// secondary button color
|
|
94
94
|
// can also be used in tertiary button & quaternary button
|
|
95
95
|
buttonColor2: 'rgba(46, 51, 56, .05)', buttonColor2Hover: 'rgba(46, 51, 56, .09)', buttonColor2Pressed: 'rgba(46, 51, 56, .13)', boxShadow1: '0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)', boxShadow2: '0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)', boxShadow3: '0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)' });
|
package/es/alert/src/Alert.d.ts
CHANGED
|
@@ -437,6 +437,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
437
437
|
tableHeaderColor: string;
|
|
438
438
|
hoverColor: string;
|
|
439
439
|
tableColorHover: string;
|
|
440
|
+
tableColorStriped: string;
|
|
440
441
|
pressedColor: string;
|
|
441
442
|
opacityDisabled: string;
|
|
442
443
|
inputColorDisabled: string;
|
|
@@ -891,6 +891,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
891
891
|
tableHeaderColor: string;
|
|
892
892
|
hoverColor: string;
|
|
893
893
|
tableColorHover: string;
|
|
894
|
+
tableColorStriped: string;
|
|
894
895
|
pressedColor: string;
|
|
895
896
|
opacityDisabled: string;
|
|
896
897
|
inputColorDisabled: string;
|
|
@@ -232,7 +232,10 @@ export default defineComponent({
|
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
234
|
const { mergedTheme } = this;
|
|
235
|
-
return (h(NInput, { theme: mergedTheme.peers.Input, themeOverrides: mergedTheme.peerOverrides.Input, bordered: this.mergedBordered, value: this.mergedValue, placeholder: this.placeholder, size: this.mergedSize, disabled: this.mergedDisabled, clearable: this.clearable, loading: this.loading, inputProps: this.inputProps, onClear: this.handleClear, onFocus: this.handleFocus, onUpdateValue: this.handleInput, onBlur: this.handleBlur }
|
|
235
|
+
return (h(NInput, { theme: mergedTheme.peers.Input, themeOverrides: mergedTheme.peerOverrides.Input, bordered: this.mergedBordered, value: this.mergedValue, placeholder: this.placeholder, size: this.mergedSize, disabled: this.mergedDisabled, clearable: this.clearable, loading: this.loading, inputProps: this.inputProps, onClear: this.handleClear, onFocus: this.handleFocus, onUpdateValue: this.handleInput, onBlur: this.handleBlur }, {
|
|
236
|
+
suffix: this.$slots.suffix,
|
|
237
|
+
prefix: this.$slots.prefix
|
|
238
|
+
}));
|
|
236
239
|
}
|
|
237
240
|
}),
|
|
238
241
|
h(VFollower, { show: this.active, to: this.adjustedTo, containerClass: this.namespace, zIndex: this.zIndex, teleportDisabled: this.adjustedTo === useAdjustedTo.tdkey, placement: "bottom-start", width: "target" }, {
|
|
@@ -1484,6 +1484,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1484
1484
|
tableHeaderColor: string;
|
|
1485
1485
|
hoverColor: string;
|
|
1486
1486
|
tableColorHover: string;
|
|
1487
|
+
tableColorStriped: string;
|
|
1487
1488
|
pressedColor: string;
|
|
1488
1489
|
opacityDisabled: string;
|
|
1489
1490
|
inputColorDisabled: string;
|
package/es/card/src/Card.d.ts
CHANGED
|
@@ -340,6 +340,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
340
340
|
tableHeaderColor: string;
|
|
341
341
|
hoverColor: string;
|
|
342
342
|
tableColorHover: string;
|
|
343
|
+
tableColorStriped: string;
|
|
343
344
|
pressedColor: string;
|
|
344
345
|
opacityDisabled: string;
|
|
345
346
|
inputColorDisabled: string;
|
|
@@ -1316,6 +1316,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1316
1316
|
tableHeaderColor: string;
|
|
1317
1317
|
hoverColor: string;
|
|
1318
1318
|
tableColorHover: string;
|
|
1319
|
+
tableColorStriped: string;
|
|
1319
1320
|
pressedColor: string;
|
|
1320
1321
|
opacityDisabled: string;
|
|
1321
1322
|
inputColorDisabled: string;
|
|
@@ -101,6 +101,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
101
101
|
tableHeaderColor: string;
|
|
102
102
|
hoverColor: string;
|
|
103
103
|
tableColorHover: string;
|
|
104
|
+
tableColorStriped: string;
|
|
104
105
|
pressedColor: string;
|
|
105
106
|
opacityDisabled: string;
|
|
106
107
|
inputColorDisabled: string;
|
|
@@ -311,6 +311,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
311
311
|
tableHeaderColor: string;
|
|
312
312
|
hoverColor: string;
|
|
313
313
|
tableColorHover: string;
|
|
314
|
+
tableColorStriped: string;
|
|
314
315
|
pressedColor: string;
|
|
315
316
|
opacityDisabled: string;
|
|
316
317
|
inputColorDisabled: string;
|
|
@@ -189,6 +189,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
189
189
|
tableHeaderColor: string;
|
|
190
190
|
hoverColor: string;
|
|
191
191
|
tableColorHover: string;
|
|
192
|
+
tableColorStriped: string;
|
|
192
193
|
pressedColor: string;
|
|
193
194
|
opacityDisabled: string;
|
|
194
195
|
inputColorDisabled: string;
|
|
@@ -3939,6 +3939,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3939
3939
|
tableHeaderColor: string;
|
|
3940
3940
|
hoverColor: string;
|
|
3941
3941
|
tableColorHover: string;
|
|
3942
|
+
tableColorStriped: string;
|
|
3942
3943
|
pressedColor: string;
|
|
3943
3944
|
opacityDisabled: string;
|
|
3944
3945
|
inputColorDisabled: string;
|
|
@@ -105,6 +105,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
105
105
|
tableHeaderColor: string;
|
|
106
106
|
hoverColor: string;
|
|
107
107
|
tableColorHover: string;
|
|
108
|
+
tableColorStriped: string;
|
|
108
109
|
pressedColor: string;
|
|
109
110
|
opacityDisabled: string;
|
|
110
111
|
inputColorDisabled: string;
|
|
@@ -170,7 +171,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
170
171
|
thColorHoverPopover: string;
|
|
171
172
|
tdColorPopover: string;
|
|
172
173
|
boxShadowBefore: string;
|
|
173
|
-
boxShadowAfter: string;
|
|
174
|
+
boxShadowAfter: string; /** this branch is for compatibility */
|
|
174
175
|
loadingColor: string;
|
|
175
176
|
loadingSize: string;
|
|
176
177
|
opacityLoading: string;
|
|
@@ -85,6 +85,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
85
|
tableHeaderColor: string;
|
|
86
86
|
hoverColor: string;
|
|
87
87
|
tableColorHover: string;
|
|
88
|
+
tableColorStriped: string;
|
|
88
89
|
pressedColor: string;
|
|
89
90
|
opacityDisabled: string;
|
|
90
91
|
inputColorDisabled: string;
|
|
@@ -1048,6 +1049,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1048
1049
|
tableHeaderColor: string;
|
|
1049
1050
|
hoverColor: string;
|
|
1050
1051
|
tableColorHover: string;
|
|
1052
|
+
tableColorStriped: string;
|
|
1051
1053
|
pressedColor: string;
|
|
1052
1054
|
opacityDisabled: string;
|
|
1053
1055
|
inputColorDisabled: string;
|
|
@@ -85,7 +85,7 @@ c('&:last-child', 'flex-grow: 1;')])])])])])])]), c('>', [cB('base-loading', `
|
|
|
85
85
|
margin-right: 8px;
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
font-size: 16px;
|
|
88
|
-
vertical-align:
|
|
88
|
+
vertical-align: -0.2em;
|
|
89
89
|
`), cB('data-table-thead', {
|
|
90
90
|
transition: 'background-color .3s var(--bezier)',
|
|
91
91
|
backgroundColor: 'var(--merged-th-color)'
|
|
@@ -93,7 +93,7 @@ c('&:last-child', 'flex-grow: 1;')])])])])])])]), c('>', [cB('base-loading', `
|
|
|
93
93
|
box-sizing: border-box;
|
|
94
94
|
background-clip: padding-box;
|
|
95
95
|
transition: background-color .3s var(--bezier);
|
|
96
|
-
`, [
|
|
96
|
+
`, [cM('striped', 'background-color: var(--merged-td-color-striped);', [cB('data-table-td', 'background-color: var(--merged-td-color-striped);')]), c('&:hover', 'background-color: var(--merged-td-color-hover);', [cB('data-table-td', 'background-color: var(--merged-td-color-hover);')])]), cB('data-table-th', `
|
|
97
97
|
padding: var(--th-padding);
|
|
98
98
|
position: relative;
|
|
99
99
|
text-align: start;
|
|
@@ -208,7 +208,7 @@ export function useTableData(props, { dataRelatedColsRef }) {
|
|
|
208
208
|
const mergedPaginationRef = computed(() => {
|
|
209
209
|
return Object.assign(Object.assign({}, props.pagination), {
|
|
210
210
|
// reset deprecated methods
|
|
211
|
-
onChange: undefined, onPageSizeChange: undefined, 'onUpdate:page': mergedOnUpdatePage, 'onUpdate:pageSize': mergedOnUpdatePageSize,
|
|
211
|
+
onChange: undefined, onUpdatePage: undefined, onUpdatePageSize: undefined, onPageSizeChange: undefined, 'onUpdate:page': mergedOnUpdatePage, 'onUpdate:pageSize': mergedOnUpdatePageSize,
|
|
212
212
|
// writing merged props after pagination to avoid
|
|
213
213
|
// pagination[key] === undefined
|
|
214
214
|
// key still exists but value is undefined
|
|
@@ -220,10 +220,10 @@ export function useTableData(props, { dataRelatedColsRef }) {
|
|
|
220
220
|
const { 'onUpdate:page': _onUpdatePage, onPageChange, onUpdatePage } = props;
|
|
221
221
|
if (onUpdatePage)
|
|
222
222
|
call(onUpdatePage, page);
|
|
223
|
-
if (onPageChange)
|
|
224
|
-
call(onPageChange, page);
|
|
225
223
|
if (_onUpdatePage)
|
|
226
224
|
call(_onUpdatePage, page);
|
|
225
|
+
if (onPageChange)
|
|
226
|
+
call(onPageChange, page);
|
|
227
227
|
uncontrolledCurrentPageRef.value = page;
|
|
228
228
|
}
|
|
229
229
|
function doUpdatePageSize(pageSize) {
|
|
@@ -11,16 +11,16 @@ import { emptyLight } from '../../empty/styles';
|
|
|
11
11
|
import { commonLight } from '../../_styles/common';
|
|
12
12
|
import { createTheme } from '../../_mixins';
|
|
13
13
|
export const self = (vars) => {
|
|
14
|
-
const { cardColor, modalColor, popoverColor, textColor2, textColor1, tableHeaderColor, tableColorHover, iconColor, primaryColor, fontWeightStrong, borderRadius, lineHeight, fontSizeSmall, fontSizeMedium, fontSizeLarge, dividerColor, heightSmall, opacityDisabled } = vars;
|
|
14
|
+
const { cardColor, modalColor, popoverColor, textColor2, textColor1, tableHeaderColor, tableColorHover, iconColor, primaryColor, fontWeightStrong, borderRadius, lineHeight, fontSizeSmall, fontSizeMedium, fontSizeLarge, dividerColor, heightSmall, opacityDisabled, tableColorStriped } = vars;
|
|
15
15
|
return Object.assign(Object.assign({}, commonVariables), { actionDividerColor: dividerColor, lineHeight,
|
|
16
16
|
borderRadius,
|
|
17
17
|
fontSizeSmall,
|
|
18
18
|
fontSizeMedium,
|
|
19
|
-
fontSizeLarge, borderColor: composite(cardColor, dividerColor), tdColorHover: composite(cardColor, tableColorHover), tdColorStriped: composite(cardColor,
|
|
19
|
+
fontSizeLarge, borderColor: composite(cardColor, dividerColor), tdColorHover: composite(cardColor, tableColorHover), tdColorStriped: composite(cardColor, tableColorStriped), thColor: composite(cardColor, tableHeaderColor), thColorHover: composite(composite(cardColor, tableHeaderColor), tableColorHover), tdColor: cardColor, tdTextColor: textColor2, thTextColor: textColor1, thFontWeight: fontWeightStrong, thButtonColorHover: tableColorHover, thIconColor: iconColor, thIconColorActive: primaryColor,
|
|
20
20
|
// modal
|
|
21
|
-
borderColorModal: composite(modalColor, dividerColor), tdColorHoverModal: composite(modalColor, tableColorHover), tdColorStripedModal: composite(modalColor,
|
|
21
|
+
borderColorModal: composite(modalColor, dividerColor), tdColorHoverModal: composite(modalColor, tableColorHover), tdColorStripedModal: composite(modalColor, tableColorStriped), thColorModal: composite(modalColor, tableHeaderColor), thColorHoverModal: composite(composite(modalColor, tableHeaderColor), tableColorHover), tdColorModal: modalColor,
|
|
22
22
|
// popover
|
|
23
|
-
borderColorPopover: composite(popoverColor, dividerColor), tdColorHoverPopover: composite(popoverColor, tableColorHover), tdColorStripedPopover: composite(popoverColor,
|
|
23
|
+
borderColorPopover: composite(popoverColor, dividerColor), tdColorHoverPopover: composite(popoverColor, tableColorHover), tdColorStripedPopover: composite(popoverColor, tableColorStriped), thColorPopover: composite(popoverColor, tableHeaderColor), thColorHoverPopover: composite(composite(popoverColor, tableHeaderColor), tableColorHover), tdColorPopover: popoverColor, boxShadowBefore: 'inset -12px 0 8px -12px rgba(0, 0, 0, .18)', boxShadowAfter: 'inset 12px 0 8px -12px rgba(0, 0, 0, .18)',
|
|
24
24
|
// loading
|
|
25
25
|
loadingColor: primaryColor, loadingSize: heightSmall, opacityLoading: opacityDisabled });
|
|
26
26
|
};
|
|
@@ -3909,6 +3909,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3909
3909
|
tableHeaderColor: string;
|
|
3910
3910
|
hoverColor: string;
|
|
3911
3911
|
tableColorHover: string;
|
|
3912
|
+
tableColorStriped: string;
|
|
3912
3913
|
pressedColor: string;
|
|
3913
3914
|
opacityDisabled: string;
|
|
3914
3915
|
inputColorDisabled: string;
|
|
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
handleDateClick: (dateItem: import("../utils").DateItem | import("../utils").MonthItem | import("../utils").YearItem) => void;
|
|
29
29
|
handleDateInputBlur: () => void;
|
|
30
30
|
handleDateInput: (value: string) => void;
|
|
31
|
-
handleTimePickerChange: (value: number) => void;
|
|
31
|
+
handleTimePickerChange: (value: number | null) => void;
|
|
32
32
|
clearSelectedDateTime: () => void;
|
|
33
33
|
virtualListContainer: () => HTMLElement;
|
|
34
34
|
virtualListContent: () => HTMLElement;
|
|
@@ -127,6 +127,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
127
127
|
tableHeaderColor: string;
|
|
128
128
|
hoverColor: string;
|
|
129
129
|
tableColorHover: string;
|
|
130
|
+
tableColorStriped: string;
|
|
130
131
|
pressedColor: string;
|
|
131
132
|
opacityDisabled: string;
|
|
132
133
|
inputColorDisabled: string;
|
|
@@ -31,8 +31,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
startTimeValue: import("vue").ComputedRef<number | null>;
|
|
32
32
|
endTimeValue: import("vue").ComputedRef<number | null>;
|
|
33
33
|
handleFocusDetectorFocus: () => void;
|
|
34
|
-
handleStartTimePickerChange: (value: number) => void;
|
|
35
|
-
handleEndTimePickerChange: (value: number) => void;
|
|
34
|
+
handleStartTimePickerChange: (value: number | null) => void;
|
|
35
|
+
handleEndTimePickerChange: (value: number | null) => void;
|
|
36
36
|
handleStartDateInput: (value: string) => void;
|
|
37
37
|
handleStartDateInputBlur: () => void;
|
|
38
38
|
handleEndDateInput: (value: string) => void;
|
|
@@ -125,6 +125,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
125
125
|
tableHeaderColor: string;
|
|
126
126
|
hoverColor: string;
|
|
127
127
|
tableColorHover: string;
|
|
128
|
+
tableColorStriped: string;
|
|
128
129
|
pressedColor: string;
|
|
129
130
|
opacityDisabled: string;
|
|
130
131
|
inputColorDisabled: string;
|
|
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
handleDateClick: (dateItem: import("../utils").DateItem | import("../utils").MonthItem | import("../utils").YearItem) => void;
|
|
29
29
|
handleDateInputBlur: () => void;
|
|
30
30
|
handleDateInput: (value: string) => void;
|
|
31
|
-
handleTimePickerChange: (value: number) => void;
|
|
31
|
+
handleTimePickerChange: (value: number | null) => void;
|
|
32
32
|
clearSelectedDateTime: () => void;
|
|
33
33
|
virtualListContainer: () => HTMLElement;
|
|
34
34
|
virtualListContent: () => HTMLElement;
|
|
@@ -127,6 +127,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
127
127
|
tableHeaderColor: string;
|
|
128
128
|
hoverColor: string;
|
|
129
129
|
tableColorHover: string;
|
|
130
|
+
tableColorStriped: string;
|
|
130
131
|
pressedColor: string;
|
|
131
132
|
opacityDisabled: string;
|
|
132
133
|
inputColorDisabled: string;
|
|
@@ -31,8 +31,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
startTimeValue: import("vue").ComputedRef<number | null>;
|
|
32
32
|
endTimeValue: import("vue").ComputedRef<number | null>;
|
|
33
33
|
handleFocusDetectorFocus: () => void;
|
|
34
|
-
handleStartTimePickerChange: (value: number) => void;
|
|
35
|
-
handleEndTimePickerChange: (value: number) => void;
|
|
34
|
+
handleStartTimePickerChange: (value: number | null) => void;
|
|
35
|
+
handleEndTimePickerChange: (value: number | null) => void;
|
|
36
36
|
handleStartDateInput: (value: string) => void;
|
|
37
37
|
handleStartDateInputBlur: () => void;
|
|
38
38
|
handleEndDateInput: (value: string) => void;
|
|
@@ -125,6 +125,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
125
125
|
tableHeaderColor: string;
|
|
126
126
|
hoverColor: string;
|
|
127
127
|
tableColorHover: string;
|
|
128
|
+
tableColorStriped: string;
|
|
128
129
|
pressedColor: string;
|
|
129
130
|
opacityDisabled: string;
|
|
130
131
|
inputColorDisabled: string;
|
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
handleDateClick: (dateItem: import("../utils").DateItem | MonthItem | YearItem) => void;
|
|
36
36
|
handleDateInputBlur: () => void;
|
|
37
37
|
handleDateInput: (value: string) => void;
|
|
38
|
-
handleTimePickerChange: (value: number) => void;
|
|
38
|
+
handleTimePickerChange: (value: number | null) => void;
|
|
39
39
|
clearSelectedDateTime: () => void;
|
|
40
40
|
virtualListContainer: () => HTMLElement;
|
|
41
41
|
virtualListContent: () => HTMLElement;
|
|
@@ -134,6 +134,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
134
134
|
tableHeaderColor: string;
|
|
135
135
|
hoverColor: string;
|
|
136
136
|
tableColorHover: string;
|
|
137
|
+
tableColorStriped: string;
|
|
137
138
|
pressedColor: string;
|
|
138
139
|
opacityDisabled: string;
|
|
139
140
|
inputColorDisabled: string;
|
|
@@ -32,7 +32,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
32
32
|
handleDateClick: (dateItem: DateItem | MonthItem | YearItem) => void;
|
|
33
33
|
handleDateInputBlur: () => void;
|
|
34
34
|
handleDateInput: (value: string) => void;
|
|
35
|
-
handleTimePickerChange: (value: number) => void;
|
|
35
|
+
handleTimePickerChange: (value: number | null) => void;
|
|
36
36
|
clearSelectedDateTime: () => void;
|
|
37
37
|
virtualListContainer: () => HTMLElement;
|
|
38
38
|
virtualListContent: () => HTMLElement;
|
|
@@ -131,6 +131,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
131
131
|
tableHeaderColor: string;
|
|
132
132
|
hoverColor: string;
|
|
133
133
|
tableColorHover: string;
|
|
134
|
+
tableColorStriped: string;
|
|
134
135
|
pressedColor: string;
|
|
135
136
|
opacityDisabled: string;
|
|
136
137
|
inputColorDisabled: string;
|
|
@@ -208,6 +208,8 @@ function useCalendar(props, type) {
|
|
|
208
208
|
(_a = scrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.sync();
|
|
209
209
|
}
|
|
210
210
|
function handleTimePickerChange(value) {
|
|
211
|
+
if (value === null)
|
|
212
|
+
return;
|
|
211
213
|
panelCommon.doUpdateValue(value, false);
|
|
212
214
|
}
|
|
213
215
|
function handleSingleShortcutMouseenter(shortcut) {
|
|
@@ -35,8 +35,8 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
35
35
|
startTimeValue: import("vue").ComputedRef<number | null>;
|
|
36
36
|
endTimeValue: import("vue").ComputedRef<number | null>;
|
|
37
37
|
handleFocusDetectorFocus: () => void;
|
|
38
|
-
handleStartTimePickerChange: (value: number) => void;
|
|
39
|
-
handleEndTimePickerChange: (value: number) => void;
|
|
38
|
+
handleStartTimePickerChange: (value: number | null) => void;
|
|
39
|
+
handleEndTimePickerChange: (value: number | null) => void;
|
|
40
40
|
handleStartDateInput: (value: string) => void;
|
|
41
41
|
handleStartDateInputBlur: () => void;
|
|
42
42
|
handleEndDateInput: (value: string) => void;
|
|
@@ -129,6 +129,7 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
129
129
|
tableHeaderColor: string;
|
|
130
130
|
hoverColor: string;
|
|
131
131
|
tableColorHover: string;
|
|
132
|
+
tableColorStriped: string;
|
|
132
133
|
pressedColor: string;
|
|
133
134
|
opacityDisabled: string;
|
|
134
135
|
inputColorDisabled: string;
|
|
@@ -417,9 +417,13 @@ function useDualCalendar(props, type = 'datetime') {
|
|
|
417
417
|
endDateInputRef.value = format(times[1], dateFormat, panelCommon.dateFnsOptions.value);
|
|
418
418
|
}
|
|
419
419
|
function handleStartTimePickerChange(value) {
|
|
420
|
+
if (value === null)
|
|
421
|
+
return;
|
|
420
422
|
changeStartDateTime(value);
|
|
421
423
|
}
|
|
422
424
|
function handleEndTimePickerChange(value) {
|
|
425
|
+
if (value === null)
|
|
426
|
+
return;
|
|
423
427
|
changeEndDateTime(value);
|
|
424
428
|
}
|
|
425
429
|
function handleRangeShortcutMouseenter(shortcut) {
|
|
@@ -827,6 +827,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
827
827
|
tableHeaderColor: string;
|
|
828
828
|
hoverColor: string;
|
|
829
829
|
tableColorHover: string;
|
|
830
|
+
tableColorStriped: string;
|
|
830
831
|
pressedColor: string;
|
|
831
832
|
opacityDisabled: string;
|
|
832
833
|
inputColorDisabled: string;
|
|
@@ -333,6 +333,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
333
333
|
tableHeaderColor: string;
|
|
334
334
|
hoverColor: string;
|
|
335
335
|
tableColorHover: string;
|
|
336
|
+
tableColorStriped: string;
|
|
336
337
|
pressedColor: string;
|
|
337
338
|
opacityDisabled: string;
|
|
338
339
|
inputColorDisabled: string;
|
|
@@ -103,6 +103,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
103
103
|
tableHeaderColor: string;
|
|
104
104
|
hoverColor: string;
|
|
105
105
|
tableColorHover: string;
|
|
106
|
+
tableColorStriped: string;
|
|
106
107
|
pressedColor: string;
|
|
107
108
|
opacityDisabled: string;
|
|
108
109
|
inputColorDisabled: string;
|