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
|
@@ -33,6 +33,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
|
|
|
33
33
|
setup(props) {
|
|
34
34
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
35
35
|
// dom ref
|
|
36
|
+
const wrapperRef = (0, vue_1.ref)(null);
|
|
36
37
|
const containerRef = (0, vue_1.ref)(null);
|
|
37
38
|
const contentRef = (0, vue_1.ref)(null);
|
|
38
39
|
const yRailRef = (0, vue_1.ref)(null);
|
|
@@ -291,6 +292,10 @@ const Scrollbar = (0, vue_1.defineComponent)({
|
|
|
291
292
|
syncPositionState();
|
|
292
293
|
syncScrollState();
|
|
293
294
|
}
|
|
295
|
+
function isMouseUpAway(e) {
|
|
296
|
+
var _a;
|
|
297
|
+
return !((_a = wrapperRef.value) === null || _a === void 0 ? void 0 : _a.contains(e.target));
|
|
298
|
+
}
|
|
294
299
|
function handleXScrollMouseDown(e) {
|
|
295
300
|
e.preventDefault();
|
|
296
301
|
e.stopPropagation();
|
|
@@ -335,8 +340,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
|
|
|
335
340
|
(0, evtd_1.off)('mouseup', window, handleXScrollMouseUp, true);
|
|
336
341
|
xBarPressed = false;
|
|
337
342
|
sync();
|
|
338
|
-
|
|
339
|
-
if (!(container === null || container === void 0 ? void 0 : container.contains(e.target))) {
|
|
343
|
+
if (isMouseUpAway(e)) {
|
|
340
344
|
hideBar();
|
|
341
345
|
}
|
|
342
346
|
}
|
|
@@ -381,8 +385,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
|
|
|
381
385
|
(0, evtd_1.off)('mouseup', window, handleYScrollMouseUp, true);
|
|
382
386
|
yBarPressed = false;
|
|
383
387
|
sync();
|
|
384
|
-
|
|
385
|
-
if (!(container === null || container === void 0 ? void 0 : container.contains(e.target))) {
|
|
388
|
+
if (isMouseUpAway(e)) {
|
|
386
389
|
hideBar();
|
|
387
390
|
}
|
|
388
391
|
}
|
|
@@ -438,6 +441,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
|
|
|
438
441
|
scrollTo,
|
|
439
442
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
440
443
|
containerScrollTop: containerScrollTopRef,
|
|
444
|
+
wrapperRef,
|
|
441
445
|
containerRef,
|
|
442
446
|
contentRef,
|
|
443
447
|
yRailRef,
|
|
@@ -476,6 +480,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
|
|
|
476
480
|
if (!this.scrollable)
|
|
477
481
|
return (0, vue_1.renderSlot)($slots, 'default');
|
|
478
482
|
const createChildren = () => (0, vue_1.h)('div', (0, vue_1.mergeProps)(this.$attrs, {
|
|
483
|
+
ref: 'wrapperRef',
|
|
479
484
|
class: `${mergedClsPrefix}-scrollbar`,
|
|
480
485
|
style: this.cssVars,
|
|
481
486
|
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;
|
|
@@ -23,6 +23,7 @@ const base = {
|
|
|
23
23
|
alphaDisabledInput: '0.06',
|
|
24
24
|
alphaPending: '0.09',
|
|
25
25
|
alphaTablePending: '0.06',
|
|
26
|
+
alphaTableStriped: '0.05',
|
|
26
27
|
alphaPressed: '0.05',
|
|
27
28
|
alphaAvatar: '0.18',
|
|
28
29
|
alphaRail: '0.2',
|
|
@@ -92,5 +93,5 @@ const derived = Object.assign(Object.assign({ name: 'common' }, _common_1.defaul
|
|
|
92
93
|
// close
|
|
93
94
|
closeColorHover: overlay(Number(base.alphaClose) * 1.25), closeColor: overlay(Number(base.alphaClose)), closeColorPressed: overlay(Number(base.alphaClose) * 0.8), closeColorDisabled: overlay(base.alpha4),
|
|
94
95
|
// clear
|
|
95
|
-
clearColor: overlay(base.alpha4), clearColorHover: (0, seemly_1.scaleColor)(overlay(base.alpha4), { alpha: 1.25 }), clearColorPressed: (0, seemly_1.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)' });
|
|
96
|
+
clearColor: overlay(base.alpha4), clearColorHover: (0, seemly_1.scaleColor)(overlay(base.alpha4), { alpha: 1.25 }), clearColorPressed: (0, seemly_1.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)' });
|
|
96
97
|
exports.default = derived;
|
|
@@ -94,7 +94,7 @@ const derived = Object.assign(Object.assign({ name: 'common' }, _common_1.defaul
|
|
|
94
94
|
// clear
|
|
95
95
|
clearColor: neutral(base.alpha4), clearColorHover: (0, seemly_1.scaleColor)(neutral(base.alpha4), { lightness: 0.75 }), clearColorPressed: (0, seemly_1.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)',
|
|
96
96
|
// use color with alpha since it can be nested with header filter & sorter effect
|
|
97
|
-
tableColorHover: 'rgba(0, 0, 100, 0.02)', pressedColor: 'rgb(237, 237, 239)', opacityDisabled: base.alphaDisabled, inputColorDisabled: 'rgb(250, 250, 252)',
|
|
97
|
+
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)',
|
|
98
98
|
// secondary button color
|
|
99
99
|
// can also be used in tertiary button & quaternary button
|
|
100
100
|
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/lib/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;
|
|
@@ -237,7 +237,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
const { mergedTheme } = this;
|
|
240
|
-
return ((0, vue_1.h)(input_1.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 }
|
|
240
|
+
return ((0, vue_1.h)(input_1.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 }, {
|
|
241
|
+
suffix: this.$slots.suffix,
|
|
242
|
+
prefix: this.$slots.prefix
|
|
243
|
+
}));
|
|
241
244
|
}
|
|
242
245
|
}),
|
|
243
246
|
(0, vue_1.h)(vueuc_1.VFollower, { show: this.active, to: this.adjustedTo, containerClass: this.namespace, zIndex: this.zIndex, teleportDisabled: this.adjustedTo === _utils_1.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/lib/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;
|
|
@@ -99,7 +99,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('data-table', `
|
|
|
99
99
|
margin-right: 8px;
|
|
100
100
|
cursor: pointer;
|
|
101
101
|
font-size: 16px;
|
|
102
|
-
vertical-align:
|
|
102
|
+
vertical-align: -0.2em;
|
|
103
103
|
`), (0, cssr_1.cB)('data-table-thead', {
|
|
104
104
|
transition: 'background-color .3s var(--bezier)',
|
|
105
105
|
backgroundColor: 'var(--merged-th-color)'
|
|
@@ -107,7 +107,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('data-table', `
|
|
|
107
107
|
box-sizing: border-box;
|
|
108
108
|
background-clip: padding-box;
|
|
109
109
|
transition: background-color .3s var(--bezier);
|
|
110
|
-
`, [(0, cssr_1.
|
|
110
|
+
`, [(0, cssr_1.cM)('striped', 'background-color: var(--merged-td-color-striped);', [(0, cssr_1.cB)('data-table-td', 'background-color: var(--merged-td-color-striped);')]), (0, cssr_1.c)('&:hover', 'background-color: var(--merged-td-color-hover);', [(0, cssr_1.cB)('data-table-td', 'background-color: var(--merged-td-color-hover);')])]), (0, cssr_1.cB)('data-table-th', `
|
|
111
111
|
padding: var(--th-padding);
|
|
112
112
|
position: relative;
|
|
113
113
|
text-align: start;
|
|
@@ -211,7 +211,7 @@ function useTableData(props, { dataRelatedColsRef }) {
|
|
|
211
211
|
const mergedPaginationRef = (0, vue_1.computed)(() => {
|
|
212
212
|
return Object.assign(Object.assign({}, props.pagination), {
|
|
213
213
|
// reset deprecated methods
|
|
214
|
-
onChange: undefined, onPageSizeChange: undefined, 'onUpdate:page': mergedOnUpdatePage, 'onUpdate:pageSize': mergedOnUpdatePageSize,
|
|
214
|
+
onChange: undefined, onUpdatePage: undefined, onUpdatePageSize: undefined, onPageSizeChange: undefined, 'onUpdate:page': mergedOnUpdatePage, 'onUpdate:pageSize': mergedOnUpdatePageSize,
|
|
215
215
|
// writing merged props after pagination to avoid
|
|
216
216
|
// pagination[key] === undefined
|
|
217
217
|
// key still exists but value is undefined
|
|
@@ -223,10 +223,10 @@ function useTableData(props, { dataRelatedColsRef }) {
|
|
|
223
223
|
const { 'onUpdate:page': _onUpdatePage, onPageChange, onUpdatePage } = props;
|
|
224
224
|
if (onUpdatePage)
|
|
225
225
|
(0, _utils_1.call)(onUpdatePage, page);
|
|
226
|
-
if (onPageChange)
|
|
227
|
-
(0, _utils_1.call)(onPageChange, page);
|
|
228
226
|
if (_onUpdatePage)
|
|
229
227
|
(0, _utils_1.call)(_onUpdatePage, page);
|
|
228
|
+
if (onPageChange)
|
|
229
|
+
(0, _utils_1.call)(onPageChange, page);
|
|
230
230
|
uncontrolledCurrentPageRef.value = page;
|
|
231
231
|
}
|
|
232
232
|
function doUpdatePageSize(pageSize) {
|
|
@@ -17,16 +17,16 @@ const styles_8 = require("../../empty/styles");
|
|
|
17
17
|
const common_1 = require("../../_styles/common");
|
|
18
18
|
const _mixins_1 = require("../../_mixins");
|
|
19
19
|
const self = (vars) => {
|
|
20
|
-
const { cardColor, modalColor, popoverColor, textColor2, textColor1, tableHeaderColor, tableColorHover, iconColor, primaryColor, fontWeightStrong, borderRadius, lineHeight, fontSizeSmall, fontSizeMedium, fontSizeLarge, dividerColor, heightSmall, opacityDisabled } = vars;
|
|
20
|
+
const { cardColor, modalColor, popoverColor, textColor2, textColor1, tableHeaderColor, tableColorHover, iconColor, primaryColor, fontWeightStrong, borderRadius, lineHeight, fontSizeSmall, fontSizeMedium, fontSizeLarge, dividerColor, heightSmall, opacityDisabled, tableColorStriped } = vars;
|
|
21
21
|
return Object.assign(Object.assign({}, _common_1.default), { actionDividerColor: dividerColor, lineHeight,
|
|
22
22
|
borderRadius,
|
|
23
23
|
fontSizeSmall,
|
|
24
24
|
fontSizeMedium,
|
|
25
|
-
fontSizeLarge, borderColor: (0, seemly_1.composite)(cardColor, dividerColor), tdColorHover: (0, seemly_1.composite)(cardColor, tableColorHover), tdColorStriped: (0, seemly_1.composite)(cardColor,
|
|
25
|
+
fontSizeLarge, borderColor: (0, seemly_1.composite)(cardColor, dividerColor), tdColorHover: (0, seemly_1.composite)(cardColor, tableColorHover), tdColorStriped: (0, seemly_1.composite)(cardColor, tableColorStriped), thColor: (0, seemly_1.composite)(cardColor, tableHeaderColor), thColorHover: (0, seemly_1.composite)((0, seemly_1.composite)(cardColor, tableHeaderColor), tableColorHover), tdColor: cardColor, tdTextColor: textColor2, thTextColor: textColor1, thFontWeight: fontWeightStrong, thButtonColorHover: tableColorHover, thIconColor: iconColor, thIconColorActive: primaryColor,
|
|
26
26
|
// modal
|
|
27
|
-
borderColorModal: (0, seemly_1.composite)(modalColor, dividerColor), tdColorHoverModal: (0, seemly_1.composite)(modalColor, tableColorHover), tdColorStripedModal: (0, seemly_1.composite)(modalColor,
|
|
27
|
+
borderColorModal: (0, seemly_1.composite)(modalColor, dividerColor), tdColorHoverModal: (0, seemly_1.composite)(modalColor, tableColorHover), tdColorStripedModal: (0, seemly_1.composite)(modalColor, tableColorStriped), thColorModal: (0, seemly_1.composite)(modalColor, tableHeaderColor), thColorHoverModal: (0, seemly_1.composite)((0, seemly_1.composite)(modalColor, tableHeaderColor), tableColorHover), tdColorModal: modalColor,
|
|
28
28
|
// popover
|
|
29
|
-
borderColorPopover: (0, seemly_1.composite)(popoverColor, dividerColor), tdColorHoverPopover: (0, seemly_1.composite)(popoverColor, tableColorHover), tdColorStripedPopover: (0, seemly_1.composite)(popoverColor,
|
|
29
|
+
borderColorPopover: (0, seemly_1.composite)(popoverColor, dividerColor), tdColorHoverPopover: (0, seemly_1.composite)(popoverColor, tableColorHover), tdColorStripedPopover: (0, seemly_1.composite)(popoverColor, tableColorStriped), thColorPopover: (0, seemly_1.composite)(popoverColor, tableHeaderColor), thColorHoverPopover: (0, seemly_1.composite)((0, seemly_1.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)',
|
|
30
30
|
// loading
|
|
31
31
|
loadingColor: primaryColor, loadingSize: heightSmall, opacityLoading: opacityDisabled });
|
|
32
32
|
};
|
|
@@ -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;
|
|
@@ -211,6 +211,8 @@ function useCalendar(props, type) {
|
|
|
211
211
|
(_a = scrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.sync();
|
|
212
212
|
}
|
|
213
213
|
function handleTimePickerChange(value) {
|
|
214
|
+
if (value === null)
|
|
215
|
+
return;
|
|
214
216
|
panelCommon.doUpdateValue(value, false);
|
|
215
217
|
}
|
|
216
218
|
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;
|
|
@@ -420,9 +420,13 @@ function useDualCalendar(props, type = 'datetime') {
|
|
|
420
420
|
endDateInputRef.value = (0, date_fns_1.format)(times[1], dateFormat, panelCommon.dateFnsOptions.value);
|
|
421
421
|
}
|
|
422
422
|
function handleStartTimePickerChange(value) {
|
|
423
|
+
if (value === null)
|
|
424
|
+
return;
|
|
423
425
|
changeStartDateTime(value);
|
|
424
426
|
}
|
|
425
427
|
function handleEndTimePickerChange(value) {
|
|
428
|
+
if (value === null)
|
|
429
|
+
return;
|
|
426
430
|
changeEndDateTime(value);
|
|
427
431
|
}
|
|
428
432
|
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;
|