@sdata/web-vue 1.12.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_components/icon-hover.vue.d.ts +1 -1
- package/es/_components/picker/input-range.vue.d.ts +1 -1
- package/es/_components/picker/input.vue.d.ts +1 -1
- package/es/_components/virtual-list/virtual-list.vue.d.ts +6 -6
- package/es/_hooks/use-component-ref.d.ts +1 -1
- package/es/_hooks/use-config-provider-prop.d.ts +10 -0
- package/es/_hooks/use-config-provider-prop.js +19 -0
- package/es/_hooks/use-dropdown-virtual-list-props.d.ts +5 -0
- package/es/_hooks/use-dropdown-virtual-list-props.js +21 -0
- package/es/_hooks/use-form-item.d.ts +1 -1
- package/es/_hooks/use-size.d.ts +1 -1
- package/es/_hooks/use-trigger.d.ts +1 -1
- package/es/alert/alert.vue.d.ts +2 -2
- package/es/alert/index.d.ts +5 -5
- package/es/auto-complete/auto-complete.d.ts +1 -1
- package/es/auto-complete/auto-complete.js +5 -3
- package/es/auto-complete/index.d.ts +3 -3
- package/es/cascader/cascader.vue.d.ts +3 -3
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +21 -5
- package/es/checkbox/checkbox.d.ts +1 -1
- package/es/checkbox/index.d.ts +2 -2
- package/es/collapse/collapse-item.d.ts +1 -1
- package/es/collapse/index.d.ts +1 -1
- package/es/color-picker/color-picker.d.ts +1 -1
- package/es/color-picker/index.d.ts +3 -3
- package/es/comment/comment.vue.d.ts +2 -2
- package/es/comment/index.d.ts +3 -3
- package/es/config-provider/config-provider.vue.d.ts +26 -0
- package/es/config-provider/config-provider.vue_vue_type_script_lang.js +25 -1
- package/es/config-provider/context.d.ts +51 -1
- package/es/config-provider/index.d.ts +36 -0
- package/es/date-picker/index.d.ts +32 -32
- package/es/date-picker/panels/date/index.vue.d.ts +1 -1
- package/es/date-picker/panels/week/index.vue.d.ts +1 -1
- package/es/date-picker/picker-panel.vue.d.ts +2 -2
- package/es/date-picker/picker.vue.d.ts +24 -24
- package/es/date-picker/picker.vue_vue_type_script_lang.js +62 -11
- package/es/date-picker/range-picker-panel.vue.d.ts +3 -3
- package/es/date-picker/range-picker.vue.d.ts +111 -111
- package/es/date-picker/range-picker.vue_vue_type_script_lang.js +54 -10
- package/es/descriptions/descriptions.d.ts +1 -1
- package/es/descriptions/index.d.ts +3 -3
- package/es/drawer/drawer.js +9 -9
- package/es/drawer/drawer.vue.d.ts +12 -2
- package/es/drawer/drawer.vue_vue_type_script_lang.js +118 -9
- package/es/drawer/index.d.ts +35 -5
- package/es/dropdown/dropdown-button.vue.d.ts +18 -18
- package/es/dropdown/dropdown-option.vue.d.ts +2 -2
- package/es/dropdown/dropdown-panel.vue.d.ts +6 -6
- package/es/dropdown/dropdown-submenu.vue.d.ts +20 -20
- package/es/dropdown/dropdown.vue.d.ts +18 -18
- package/es/dropdown/index.d.ts +76 -76
- package/es/ellipsis/ellipsis.vue.d.ts +24 -24
- package/es/ellipsis/index.d.ts +96 -96
- package/es/ellipsis/performant-ellipsis.vue.d.ts +24 -24
- package/es/form/form-item-label.vue.d.ts +24 -24
- package/es/form/form-item.vue.d.ts +28 -28
- package/es/form/index.d.ts +28 -28
- package/es/image/image.vue.d.ts +26 -26
- package/es/image/preview-action.d.ts +24 -24
- package/es/image/preview-group.vue.d.ts +24 -24
- package/es/image/preview-toolbar.vue.d.ts +24 -24
- package/es/image/preview.vue.d.ts +24 -24
- package/es/input/index.d.ts +5 -5
- package/es/input/input-password.vue.d.ts +2 -2
- package/es/input/input.d.ts +1 -1
- package/es/input-number/index.d.ts +3 -3
- package/es/input-number/input-number.d.ts +1 -1
- package/es/list/index.d.ts +3 -3
- package/es/list/list.d.ts +1 -1
- package/es/mention/index.d.ts +6 -6
- package/es/mention/mention.d.ts +2 -2
- package/es/menu/base-menu.vue.d.ts +1 -1
- package/es/menu/menu.d.ts +2 -2
- package/es/menu/sub-menu-pop.vue.d.ts +13 -13
- package/es/message/message.vue.d.ts +1 -1
- package/es/modal/index.d.ts +29 -5
- package/es/modal/modal.js +8 -8
- package/es/modal/modal.vue.d.ts +10 -2
- package/es/modal/modal.vue_vue_type_script_lang.js +134 -12
- package/es/notification/notification.vue.d.ts +1 -1
- package/es/overflow-list/index.d.ts +3 -3
- package/es/overflow-list/overflow-list.d.ts +1 -1
- package/es/page-header/index.d.ts +2 -2
- package/es/page-header/page-header.vue.d.ts +1 -1
- package/es/pagination/page-jumper.vue.d.ts +3 -3
- package/es/pagination/page-options.vue.d.ts +34 -34
- package/es/popconfirm/index.d.ts +24 -24
- package/es/popconfirm/popconfirm.vue.d.ts +12 -12
- package/es/popover/index.d.ts +24 -24
- package/es/popover/popover.vue.d.ts +12 -12
- package/es/progress/circle.vue.d.ts +3 -3
- package/es/progress/index.d.ts +23 -23
- package/es/progress/line.vue.d.ts +2 -2
- package/es/progress/progress.vue.d.ts +12 -12
- package/es/progress/steps.vue.d.ts +2 -2
- package/es/radio/index.d.ts +2 -2
- package/es/radio/radio.d.ts +1 -1
- package/es/scrollbar/index.d.ts +6 -6
- package/es/scrollbar/scrollbar.vue.d.ts +3 -3
- package/es/select/index.d.ts +34 -34
- package/es/select/option.vue.d.ts +4 -4
- package/es/select/select-dropdown.vue.d.ts +7 -7
- package/es/select/select.d.ts +14 -14
- package/es/select/select.js +5 -3
- package/es/slider/index.d.ts +54 -54
- package/es/slider/slider-button.vue.d.ts +24 -24
- package/es/slider/slider-input.vue.d.ts +3 -3
- package/es/slider/slider.vue.d.ts +27 -27
- package/es/space/index.d.ts +6 -6
- package/es/space/space.d.ts +1 -1
- package/es/steps/index.d.ts +3 -3
- package/es/steps/steps.vue.d.ts +1 -1
- package/es/table/index.d.ts +14 -14
- package/es/table/table-column.d.ts +2 -2
- package/es/table/table-operation-td.d.ts +4 -4
- package/es/table/table.d.ts +7 -7
- package/es/tabs/tabs-tab.vue.d.ts +1 -1
- package/es/tag/index.d.ts +485 -485
- package/es/tag/tag.vue.d.ts +194 -194
- package/es/textarea/index.d.ts +2 -2
- package/es/textarea/textarea.vue.d.ts +1 -1
- package/es/time-picker/index.d.ts +35 -35
- package/es/time-picker/panel.vue.d.ts +1 -1
- package/es/time-picker/range-panel.d.ts +1 -1
- package/es/time-picker/time-picker.vue.d.ts +17 -17
- package/es/tooltip/index.d.ts +24 -24
- package/es/tooltip/tooltip.vue.d.ts +12 -12
- package/es/transfer/index.d.ts +27 -27
- package/es/transfer/transfer-view.vue.d.ts +12 -12
- package/es/transfer/transfer.vue.d.ts +13 -13
- package/es/tree/base-node.vue.d.ts +2 -2
- package/es/tree/transition-node-list.vue.d.ts +2 -2
- package/es/tree/tree.vue.d.ts +8 -8
- package/es/tree-select/tree-select.vue.d.ts +17 -17
- package/es/tree-select/tree-select.vue_vue_type_script_lang.js +6 -2
- package/es/trigger/index.d.ts +12 -12
- package/es/trigger/trigger.d.ts +7 -7
- package/es/typography/base.d.ts +1 -1
- package/es/typography/edit-content.vue.d.ts +15 -15
- package/es/typography/index.d.ts +1 -1
- package/es/typography/operations.vue.d.ts +24 -24
- package/es/typography/title.d.ts +1 -1
- package/es/upload/upload-button.d.ts +1 -1
- package/es/verification-code/index.d.ts +3 -3
- package/es/verification-code/verification-code.d.ts +1 -1
- package/es/watermark/index.d.ts +3 -3
- package/es/watermark/watermark.d.ts +1 -1
- package/json/vetur-attributes.json +12 -0
- package/json/vetur-tags.json +4 -0
- package/json/web-types.json +37 -5
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ import { useI18n } from "../locale/index.js";
|
|
|
11
11
|
import Trigger from "../trigger/index.js";
|
|
12
12
|
import { dayjs, getDateValue, getNow, initializeDateLocale, isValueChange } from "../_utils/date.js";
|
|
13
13
|
import input_default from "../_components/picker/input.js";
|
|
14
|
+
import { useConfigProviderProp } from "../_hooks/use-config-provider-prop.js";
|
|
14
15
|
import IconCalendar from "../icon/icon-calendar/index.js";
|
|
15
16
|
import { getFormattedValue, isValidInputValue } from "../time-picker/utils/index.js";
|
|
16
17
|
import useFormat from "./hooks/use-format.js";
|
|
@@ -329,10 +330,60 @@ var picker_vue_vue_type_script_lang_default = defineComponent({
|
|
|
329
330
|
* @slot icon-next-double
|
|
330
331
|
*/
|
|
331
332
|
setup(props, { emit, slots }) {
|
|
332
|
-
const { mode, modelValue, defaultValue, format, valueFormat, placeholder, popupVisible, defaultPopupVisible, disabled, showTime, timePickerProps, disabledDate, disabledTime, readonly, allowClear, locale, pickerValue, defaultPickerValue, dayStartOfWeek, previewShortcut, showConfirmBtn } = toRefs(props);
|
|
333
|
+
const { mode, modelValue, defaultValue, format, valueFormat, placeholder, popupVisible, defaultPopupVisible, disabled, showTime, timePickerProps, disabledDate, disabledTime, readonly, allowClear, locale, pickerValue, defaultPickerValue, dayStartOfWeek, shortcuts, shortcutsPosition, previewShortcut, showConfirmBtn, showNowBtn, abbreviation } = toRefs(props);
|
|
334
|
+
const { mergedValue: mergedDayStartOfWeek } = useConfigProviderProp(dayStartOfWeek, {
|
|
335
|
+
propNames: ["dayStartOfWeek", "day-start-of-week"],
|
|
336
|
+
getGlobalValue: (configProviderCtx) => {
|
|
337
|
+
var _configProviderCtx$da;
|
|
338
|
+
return configProviderCtx === null || configProviderCtx === void 0 || (_configProviderCtx$da = configProviderCtx.datePicker) === null || _configProviderCtx$da === void 0 ? void 0 : _configProviderCtx$da.dayStartOfWeek;
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
const { mergedValue: mergedShortcuts } = useConfigProviderProp(shortcuts, {
|
|
342
|
+
propNames: ["shortcuts"],
|
|
343
|
+
getGlobalValue: (configProviderCtx) => {
|
|
344
|
+
var _configProviderCtx$da2;
|
|
345
|
+
return configProviderCtx === null || configProviderCtx === void 0 || (_configProviderCtx$da2 = configProviderCtx.datePicker) === null || _configProviderCtx$da2 === void 0 ? void 0 : _configProviderCtx$da2.shortcuts;
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
const { mergedValue: mergedShortcutsPosition } = useConfigProviderProp(shortcutsPosition, {
|
|
349
|
+
propNames: ["shortcutsPosition", "shortcuts-position"],
|
|
350
|
+
getGlobalValue: (configProviderCtx) => {
|
|
351
|
+
var _configProviderCtx$da3;
|
|
352
|
+
return configProviderCtx === null || configProviderCtx === void 0 || (_configProviderCtx$da3 = configProviderCtx.datePicker) === null || _configProviderCtx$da3 === void 0 ? void 0 : _configProviderCtx$da3.shortcutsPosition;
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
const { mergedValue: mergedPreviewShortcut } = useConfigProviderProp(previewShortcut, {
|
|
356
|
+
propNames: ["previewShortcut", "preview-shortcut"],
|
|
357
|
+
getGlobalValue: (configProviderCtx) => {
|
|
358
|
+
var _configProviderCtx$da4;
|
|
359
|
+
return configProviderCtx === null || configProviderCtx === void 0 || (_configProviderCtx$da4 = configProviderCtx.datePicker) === null || _configProviderCtx$da4 === void 0 ? void 0 : _configProviderCtx$da4.previewShortcut;
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
const { mergedValue: mergedShowConfirmBtn } = useConfigProviderProp(showConfirmBtn, {
|
|
363
|
+
propNames: ["showConfirmBtn", "show-confirm-btn"],
|
|
364
|
+
getGlobalValue: (configProviderCtx) => {
|
|
365
|
+
var _configProviderCtx$da5;
|
|
366
|
+
return configProviderCtx === null || configProviderCtx === void 0 || (_configProviderCtx$da5 = configProviderCtx.datePicker) === null || _configProviderCtx$da5 === void 0 ? void 0 : _configProviderCtx$da5.showConfirmBtn;
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
const { mergedValue: mergedShowNowBtn } = useConfigProviderProp(showNowBtn, {
|
|
370
|
+
propNames: ["showNowBtn", "show-now-btn"],
|
|
371
|
+
getGlobalValue: (configProviderCtx) => {
|
|
372
|
+
var _configProviderCtx$da6;
|
|
373
|
+
return configProviderCtx === null || configProviderCtx === void 0 || (_configProviderCtx$da6 = configProviderCtx.datePicker) === null || _configProviderCtx$da6 === void 0 ? void 0 : _configProviderCtx$da6.showNowBtn;
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
const { mergedValue: mergedAbbreviation } = useConfigProviderProp(abbreviation, {
|
|
377
|
+
propNames: ["abbreviation"],
|
|
378
|
+
getGlobalValue: (configProviderCtx) => {
|
|
379
|
+
var _configProviderCtx$da7;
|
|
380
|
+
return configProviderCtx === null || configProviderCtx === void 0 || (_configProviderCtx$da7 = configProviderCtx.datePicker) === null || _configProviderCtx$da7 === void 0 ? void 0 : _configProviderCtx$da7.abbreviation;
|
|
381
|
+
}
|
|
382
|
+
});
|
|
333
383
|
const { locale: globalLocal } = useI18n();
|
|
334
384
|
watchEffect(() => {
|
|
335
|
-
|
|
385
|
+
var _mergedDayStartOfWeek;
|
|
386
|
+
initializeDateLocale(globalLocal.value, (_mergedDayStartOfWeek = mergedDayStartOfWeek.value) !== null && _mergedDayStartOfWeek !== void 0 ? _mergedDayStartOfWeek : 0);
|
|
336
387
|
});
|
|
337
388
|
const { mergedDisabled, eventHandlers } = useFormItem({ disabled });
|
|
338
389
|
const { mergedAllowClear } = useAllowClear(allowClear);
|
|
@@ -363,7 +414,7 @@ var picker_vue_vue_type_script_lang_default = defineComponent({
|
|
|
363
414
|
disabledTime,
|
|
364
415
|
showTime
|
|
365
416
|
}));
|
|
366
|
-
const needConfirm = computed(() => showTime.value ||
|
|
417
|
+
const needConfirm = computed(() => showTime.value || mergedShowConfirmBtn.value);
|
|
367
418
|
const confirmBtnDisabled = computed(() => needConfirm.value && (!forSelectedValue.value || isDisabledDate(forSelectedValue.value)));
|
|
368
419
|
const isDateTime = computed(() => mode.value === "date" && showTime.value);
|
|
369
420
|
const { value: selectedValue, setValue: setSelectedValue } = usePickerState(reactive({
|
|
@@ -543,16 +594,16 @@ var picker_vue_vue_type_script_lang_default = defineComponent({
|
|
|
543
594
|
refInput,
|
|
544
595
|
panelProps: computed(() => _objectSpread2(_objectSpread2({}, pick(props, [
|
|
545
596
|
"mode",
|
|
546
|
-
"shortcuts",
|
|
547
|
-
"shortcutsPosition",
|
|
548
|
-
"dayStartOfWeek",
|
|
549
597
|
"disabledDate",
|
|
550
598
|
"disabledTime",
|
|
551
599
|
"showTime",
|
|
552
|
-
"hideTrigger"
|
|
553
|
-
"abbreviation"
|
|
600
|
+
"hideTrigger"
|
|
554
601
|
])), {}, {
|
|
555
|
-
|
|
602
|
+
shortcuts: mergedShortcuts.value,
|
|
603
|
+
shortcutsPosition: mergedShortcutsPosition.value,
|
|
604
|
+
dayStartOfWeek: mergedDayStartOfWeek.value,
|
|
605
|
+
abbreviation: mergedAbbreviation.value,
|
|
606
|
+
showNowBtn: mergedShowNowBtn.value && mode.value === "date",
|
|
556
607
|
prefixCls,
|
|
557
608
|
format: parseValueFormat.value,
|
|
558
609
|
value: panelValue.value,
|
|
@@ -576,8 +627,8 @@ var picker_vue_vue_type_script_lang_default = defineComponent({
|
|
|
576
627
|
onTimePickerSelect,
|
|
577
628
|
onConfirm: onPanelConfirm,
|
|
578
629
|
onShortcutClick: onPanelShortcutClick,
|
|
579
|
-
onShortcutMouseEnter:
|
|
580
|
-
onShortcutMouseLeave:
|
|
630
|
+
onShortcutMouseEnter: mergedPreviewShortcut.value ? onPanelShortcutMouseEnter : void 0,
|
|
631
|
+
onShortcutMouseLeave: mergedPreviewShortcut.value ? onPanelShortcutMouseLeave : void 0,
|
|
581
632
|
onTodayBtnClick: onPanelSelect,
|
|
582
633
|
onHeaderLabelClick: onPanelHeaderLabelClick,
|
|
583
634
|
onHeaderSelect: onPanelHeaderSelect,
|
|
@@ -245,9 +245,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
245
245
|
"onStart-header-select"?: ((...args: any[]) => any) | undefined;
|
|
246
246
|
"onEnd-header-select"?: ((...args: any[]) => any) | undefined;
|
|
247
247
|
}>, {
|
|
248
|
+
visible: boolean;
|
|
248
249
|
disabled: boolean[];
|
|
249
250
|
value: (Dayjs | undefined)[];
|
|
250
|
-
visible: boolean;
|
|
251
251
|
mode: Mode;
|
|
252
252
|
dayStartOfWeek: WeekStart;
|
|
253
253
|
hideTrigger: boolean;
|
|
@@ -2384,8 +2384,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
2384
2384
|
onSelect?: ((value: Dayjs) => any) | undefined;
|
|
2385
2385
|
onConfirm?: ((value: Dayjs) => any) | undefined;
|
|
2386
2386
|
}>, {
|
|
2387
|
-
disabled: boolean;
|
|
2388
2387
|
visible: boolean;
|
|
2388
|
+
disabled: boolean;
|
|
2389
2389
|
format: string;
|
|
2390
2390
|
isRange: boolean;
|
|
2391
2391
|
use12Hours: boolean;
|
|
@@ -4249,8 +4249,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
4249
4249
|
onSelect?: ((value: Dayjs) => any) | undefined;
|
|
4250
4250
|
onConfirm?: ((value: Dayjs) => any) | undefined;
|
|
4251
4251
|
}>, {
|
|
4252
|
-
disabled: boolean;
|
|
4253
4252
|
visible: boolean;
|
|
4253
|
+
disabled: boolean;
|
|
4254
4254
|
format: string;
|
|
4255
4255
|
isRange: boolean;
|
|
4256
4256
|
use12Hours: boolean;
|