@sdata/web-vue 3.14.0 → 3.15.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/dist/sd.css +26 -3
- package/dist/sd.min.css +1 -1
- package/es/_components/resize-trigger.vue_vue_type_script_setup_true_lang.js +6 -3
- package/es/_components/select-view/select-view.js +3 -1
- package/es/alert/alert.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/back-top/back-top.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/basic-crud-table/basic-crud-modal.js +5 -0
- package/es/basic-crud-table/basic-crud-modal.vue.d.ts +264 -0
- package/es/basic-crud-table/basic-crud-modal.vue_vue_type_script_setup_true_lang.js +139 -0
- package/es/basic-crud-table/basic-crud-table.js +5 -0
- package/es/basic-crud-table/basic-crud-table.vue.d.ts +935 -0
- package/es/basic-crud-table/basic-crud-table.vue_vue_type_script_setup_true_lang.js +510 -0
- package/es/basic-crud-table/index.d.ts +2722 -0
- package/es/basic-crud-table/index.js +9 -0
- package/es/basic-crud-table/style/css.js +2 -0
- package/es/basic-crud-table/style/index.css +42 -0
- package/es/basic-crud-table/style/index.d.ts +2 -0
- package/es/basic-crud-table/style/index.js +2 -0
- package/es/basic-crud-table/style/index.scss +33 -0
- package/es/basic-crud-table/style/token.scss +8 -0
- package/es/basic-crud-table/types.d.ts +69 -0
- package/es/breadcrumb/breadcrumb-item.js +4 -2
- package/es/breadcrumb/breadcrumb.js +3 -1
- package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/calendar/components/headings-bar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/carousel/carousel-arrow.vue_vue_type_script_setup_true_lang.js +9 -5
- package/es/carousel/carousel-indicator.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/carousel/carousel-item.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/carousel/carousel.js +3 -1
- package/es/cascader/cascader-option.js +1 -1
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/color-picker/panel.js +5 -3
- package/es/components.d.ts +1 -0
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/hooks/use-provide-datepicker-transform.js +1 -1
- package/es/date-picker/panels/header.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +4 -3
- package/es/dropdown/dropdown-button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +13 -9
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/form/index.js +1 -1
- package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/grid/grid-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/grid/grid-row.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/image.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview-arrow.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/index.css +26 -3
- package/es/index.d.ts +2 -0
- package/es/index.js +55 -54
- package/es/index.scss +1 -0
- package/es/input/input.js +3 -1
- package/es/input-number/input-number.js +8 -6
- package/es/json-form/style/index.css +0 -3
- package/es/json-form/style/index.scss +4 -3
- package/es/json-form/utils.js +4 -4
- package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +9 -7
- package/es/link/link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/list.js +1 -1
- package/es/locale/interface.d.ts +39 -0
- package/es/locale/lang/ar-eg.js +38 -0
- package/es/locale/lang/de-de.js +38 -0
- package/es/locale/lang/en-us.js +38 -0
- package/es/locale/lang/es-es.js +38 -0
- package/es/locale/lang/fr-fr.js +38 -0
- package/es/locale/lang/id-id.js +38 -0
- package/es/locale/lang/it-it.js +38 -0
- package/es/locale/lang/ja-jp.js +38 -0
- package/es/locale/lang/km-kh.js +38 -0
- package/es/locale/lang/ko-kr.js +38 -0
- package/es/locale/lang/ms-my.js +38 -0
- package/es/locale/lang/nl-nl.js +38 -0
- package/es/locale/lang/pt-pt.js +38 -0
- package/es/locale/lang/ru-ru.js +38 -0
- package/es/locale/lang/th-th.js +38 -0
- package/es/locale/lang/vi-vn.js +38 -0
- package/es/locale/lang/zh-cn.js +38 -0
- package/es/locale/lang/zh-tw.js +38 -0
- package/es/menu/item.d.ts +1 -1
- package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +4 -3
- package/es/overflow-list/overflow-list.js +1 -1
- package/es/page-header/page-header.vue_vue_type_script_setup_true_lang.js +8 -2
- package/es/pagination/page-item-ellipsis.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/pagination/page-item-step.vue_vue_type_script_setup_true_lang.js +5 -3
- package/es/pagination/pagination.js +1 -1
- package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/rate/rate.js +3 -1
- package/es/sd-vue.js +54 -52
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +3 -1
- package/es/select/select.js +2 -2
- package/es/statistic/statistic.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/steps/steps.vue_vue_type_script_setup_true_lang.js +6 -3
- package/es/table/index.d.ts +4 -4
- package/es/table/table-operation-td.js +3 -3
- package/es/table/table-operation-th.js +1 -1
- package/es/table/table-th.d.ts +1 -1
- package/es/table/table-th.js +3 -3
- package/es/table/table.d.ts +1 -1
- package/es/table/table.js +2 -2
- package/es/tabs/tabs-button.js +1 -1
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +8 -2
- package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/toolbar/index.d.ts +3 -3
- package/es/toolbar/toolbar.vue.d.ts +2 -2
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/transfer/transfer-list-item.js +3 -1
- package/es/transfer/transfer.vue_vue_type_script_setup_true_lang.js +7 -5
- package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/node-switcher.vue_vue_type_script_lang.js +1 -1
- package/es/typography/edit-content.vue_vue_type_script_setup_true_lang.js +8 -2
- package/es/upload/upload-list-item.js +1 -1
- package/es/upload/upload-picture-item.js +5 -3
- package/es/verification-code/verification-code.js +4 -2
- package/json/vetur-tags.json +3 -0
- package/json/web-types.json +7 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getComponentPrefix, setGlobalConfig } from "../_utils/global-config.js";
|
|
2
|
+
import basic_crud_table_default from "./basic-crud-table.js";
|
|
3
|
+
//#region components/basic-crud-table/index.ts
|
|
4
|
+
var BasicCrudTable = Object.assign(basic_crud_table_default, { install: (app, options) => {
|
|
5
|
+
setGlobalConfig(app, options);
|
|
6
|
+
app.component(getComponentPrefix(options) + basic_crud_table_default.name, basic_crud_table_default);
|
|
7
|
+
} });
|
|
8
|
+
//#endregion
|
|
9
|
+
export { BasicCrudTable as default };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/******** borderSize *******/
|
|
2
|
+
/******** borderStyle *******/
|
|
3
|
+
/******** radius *******/
|
|
4
|
+
/******** shadow distance *******/
|
|
5
|
+
/******** size *******/
|
|
6
|
+
/******** spacing *******/
|
|
7
|
+
/******** shadow *******/
|
|
8
|
+
/******** opacity *******/
|
|
9
|
+
/******** fontSize *******/
|
|
10
|
+
/******** fontWeight ********/
|
|
11
|
+
/******** Primary *******/
|
|
12
|
+
/******** success *******/
|
|
13
|
+
/******** warning *******/
|
|
14
|
+
/******** danger *******/
|
|
15
|
+
/******** link *******/
|
|
16
|
+
/******** radius *******/
|
|
17
|
+
/********* icon hover *********/
|
|
18
|
+
.sd-basic-crud-table {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
gap: 8px;
|
|
22
|
+
width: 100%;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
}
|
|
25
|
+
.sd-basic-crud-table-header {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
gap: 8px;
|
|
29
|
+
}
|
|
30
|
+
.sd-basic-crud-table-header-actions {
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: flex-end;
|
|
33
|
+
}
|
|
34
|
+
.sd-basic-crud-table-title {
|
|
35
|
+
margin: 0;
|
|
36
|
+
color: var(--sd-color-text-1);
|
|
37
|
+
font-size: 24px;
|
|
38
|
+
}
|
|
39
|
+
.sd-basic-crud-table-body {
|
|
40
|
+
width: 100%;
|
|
41
|
+
min-width: 0;
|
|
42
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use '@style/theme/index.scss' as theme;
|
|
2
|
+
@use 'sass:string';
|
|
3
|
+
@use '@components/basic-crud-table/style/token.scss' as *;
|
|
4
|
+
$basic-crud-table-prefix-cls: string.unquote('#{theme.$prefix}-basic-crud-table');
|
|
5
|
+
.#{$basic-crud-table-prefix-cls} {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: $basic-crud-table-gap;
|
|
9
|
+
width: 100%;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
|
|
12
|
+
&-header {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
gap: $basic-crud-table-gap;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-header-actions {
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: flex-end;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-title {
|
|
24
|
+
margin: 0;
|
|
25
|
+
color: $basic-crud-table-title-color;
|
|
26
|
+
font-size: $basic-crud-table-title-size;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-body {
|
|
30
|
+
width: 100%;
|
|
31
|
+
min-width: 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
@use '@style/theme/index.scss' as global;
|
|
2
|
+
|
|
3
|
+
@forward '@style/theme/index.scss';
|
|
4
|
+
|
|
5
|
+
@use 'sass:string';
|
|
6
|
+
$basic-crud-table-gap: global.$spacing-4;
|
|
7
|
+
$basic-crud-table-title-size: global.$font-size-title-3;
|
|
8
|
+
$basic-crud-table-title-color: var(string.unquote('#{global.$sd-cssvars-prefix}-color-text-1'));
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { UnknownRecord } from 'type-fest';
|
|
2
|
+
import type { JsonFormProps } from '../json-form';
|
|
3
|
+
import type ModalComponent from '../modal/modal.vue';
|
|
4
|
+
import type { TableColumnData, TableData, TableInstance } from '../table';
|
|
5
|
+
import type { ToolbarProps } from '../toolbar';
|
|
6
|
+
export type MaybePromise<T> = T | Promise<T>;
|
|
7
|
+
export type BasicCrudTableDataResult<TData extends TableData = TableData> = TData[] | {
|
|
8
|
+
data: TData[];
|
|
9
|
+
total?: number;
|
|
10
|
+
count?: number;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
export type BasicCrudTableTableProps = Omit<TableInstance['$props'], 'columns' | 'data' | 'onChange' | 'onPageChange' | 'onPageSizeChange'>;
|
|
14
|
+
export type BasicCrudTableToolbarProps = Omit<ToolbarProps, 'loading'>;
|
|
15
|
+
export type BasicCrudTableModalProps = Omit<InstanceType<typeof ModalComponent>['$props'], 'visible' | 'title' | 'onBeforeOk' | 'onClose' | 'onUpdate:visible'>;
|
|
16
|
+
export type BasicCrudTableModalFormProps = Omit<JsonFormProps, 'model'>;
|
|
17
|
+
export interface BasicCrudTableProps<TRow extends TableData = TableData> {
|
|
18
|
+
title?: string;
|
|
19
|
+
columns: TableColumnData[];
|
|
20
|
+
tableProps?: BasicCrudTableTableProps;
|
|
21
|
+
toolbarProps?: BasicCrudTableToolbarProps;
|
|
22
|
+
modalProps?: BasicCrudTableModalProps;
|
|
23
|
+
modalFormProps?: BasicCrudTableModalFormProps;
|
|
24
|
+
showCreate?: boolean;
|
|
25
|
+
openCreateModal?: boolean;
|
|
26
|
+
showEdit?: boolean;
|
|
27
|
+
showDelete?: boolean;
|
|
28
|
+
showToolbar?: boolean;
|
|
29
|
+
showHeader?: boolean;
|
|
30
|
+
showTitle?: boolean;
|
|
31
|
+
showActionColumn?: boolean;
|
|
32
|
+
fetchExcludeEmptyValues?: boolean;
|
|
33
|
+
fetchTableOnMounted?: boolean;
|
|
34
|
+
actionWidth?: number;
|
|
35
|
+
fetchTableApi?: (params: UnknownRecord) => MaybePromise<unknown>;
|
|
36
|
+
tableDataTransformer?: (data: unknown) => MaybePromise<BasicCrudTableDataResult<TRow>>;
|
|
37
|
+
createApi?: (data: UnknownRecord) => MaybePromise<unknown>;
|
|
38
|
+
updateApi?: (data: UnknownRecord) => MaybePromise<unknown>;
|
|
39
|
+
detailApi?: (row: TRow) => MaybePromise<UnknownRecord>;
|
|
40
|
+
valueTransformer?: (data: UnknownRecord) => UnknownRecord;
|
|
41
|
+
beforeModalSubmit?: (context: BasicCrudTableModalSubmitContext<TRow>) => MaybePromise<boolean | void>;
|
|
42
|
+
deleteContent?: string | ((row: TRow) => MaybePromise<string>);
|
|
43
|
+
deleteApi?: (row: TRow) => MaybePromise<unknown>;
|
|
44
|
+
beforeDelete?: (row: TRow) => MaybePromise<boolean | void>;
|
|
45
|
+
deleteNameKey?: string;
|
|
46
|
+
}
|
|
47
|
+
export type BasicCrudTableModalSubmitContext<TRow extends TableData = TableData> = {
|
|
48
|
+
type: 'create' | 'edit';
|
|
49
|
+
row?: TRow;
|
|
50
|
+
model: UnknownRecord;
|
|
51
|
+
};
|
|
52
|
+
export type BasicCrudTableActionSlotProps<TRow extends TableData = TableData> = {
|
|
53
|
+
record: TRow;
|
|
54
|
+
column: TableColumnData;
|
|
55
|
+
rowIndex: number;
|
|
56
|
+
};
|
|
57
|
+
export type BasicCrudTableModalSlotProps<TRow extends TableData = TableData> = {
|
|
58
|
+
type: 'create' | 'edit';
|
|
59
|
+
row?: TRow;
|
|
60
|
+
model: UnknownRecord;
|
|
61
|
+
};
|
|
62
|
+
export type InferBasicCrudTableRowFromValue<TValue> = TValue extends readonly (infer TItem)[] ? TItem : TValue extends {
|
|
63
|
+
data: infer TData;
|
|
64
|
+
} ? InferBasicCrudTableRowFromValue<TData> : TValue extends {
|
|
65
|
+
results: infer TResults;
|
|
66
|
+
} ? InferBasicCrudTableRowFromValue<TResults> : never;
|
|
67
|
+
type AwaitedReturn<T> = T extends (...args: never[]) => infer TResult ? Awaited<TResult> : never;
|
|
68
|
+
export type InferBasicCrudTableRow<TFetchTableApi, TTableDataTransformer = undefined> = TTableDataTransformer extends (...args: never[]) => unknown ? InferBasicCrudTableRowFromValue<AwaitedReturn<TTableDataTransformer>> : InferBasicCrudTableRowFromValue<AwaitedReturn<TFetchTableApi>>;
|
|
69
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
2
|
+
import { useI18n } from "../locale/index.js";
|
|
2
3
|
import IconMore from "../icon/icon-more/index.js";
|
|
4
|
+
import IconDown from "../icon/icon-down/index.js";
|
|
3
5
|
import dropdown_option_default from "../dropdown/dropdown-option.js";
|
|
4
6
|
import Dropdown from "../dropdown/index.js";
|
|
5
|
-
import IconDown from "../icon/icon-down/index.js";
|
|
6
7
|
import IconObliqueLine from "../icon/icon-oblique-line/index.js";
|
|
7
8
|
import { breadcrumbInjectKey } from "./context.js";
|
|
8
9
|
import { Fragment, computed, createVNode, defineComponent, inject, mergeProps, ref } from "vue";
|
|
@@ -47,6 +48,7 @@ var breadcrumb_item_default = /* @__PURE__ */ defineComponent({
|
|
|
47
48
|
* @version 2.36.0
|
|
48
49
|
*/
|
|
49
50
|
setup(props, { slots, attrs }) {
|
|
51
|
+
const { t } = useI18n();
|
|
50
52
|
const prefixCls = getPrefixCls("breadcrumb-item");
|
|
51
53
|
const breadcrumbCtx = inject(breadcrumbInjectKey, void 0);
|
|
52
54
|
const dropdownVisible = ref(false);
|
|
@@ -78,7 +80,7 @@ var breadcrumb_item_default = /* @__PURE__ */ defineComponent({
|
|
|
78
80
|
return createVNode("div", mergeProps({
|
|
79
81
|
"role": "listitem",
|
|
80
82
|
"class": [prefixCls, { [`${prefixCls}-with-dropdown`]: props.droplist || slots.droplist }]
|
|
81
|
-
}, displayMore.value ? { "aria-label": "
|
|
83
|
+
}, displayMore.value ? { "aria-label": t("a11y.breadcrumbEllipsis") } : void 0, attrs), [displayMore.value ? (_breadcrumbCtx$slots$2 = breadcrumbCtx === null || breadcrumbCtx === void 0 || (_breadcrumbCtx$slots3 = (_breadcrumbCtx$slots2 = breadcrumbCtx.slots)["more-icon"]) === null || _breadcrumbCtx$slots3 === void 0 ? void 0 : _breadcrumbCtx$slots3.call(_breadcrumbCtx$slots2)) !== null && _breadcrumbCtx$slots$2 !== void 0 ? _breadcrumbCtx$slots$2 : createVNode(IconMore, null, null) : (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots), (props.droplist || slots.droplist) && createVNode("span", {
|
|
82
84
|
"aria-hidden": true,
|
|
83
85
|
"class": [`${prefixCls}-dropdown-icon`, { [`${prefixCls}-dropdown-icon-active`]: dropdownVisible.value }]
|
|
84
86
|
}, [createVNode(IconDown, null, null)])]);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
2
2
|
import { getAllElements } from "../_utils/vue-utils.js";
|
|
3
|
+
import { useI18n } from "../locale/index.js";
|
|
3
4
|
import { breadcrumbInjectKey } from "./context.js";
|
|
4
5
|
import breadcrumb_item_default from "./breadcrumb-item.js";
|
|
5
6
|
import { computed, createVNode, defineComponent, mergeProps, provide, reactive, ref, toRefs } from "vue";
|
|
@@ -56,6 +57,7 @@ var breadcrumb_default = /* @__PURE__ */ defineComponent({
|
|
|
56
57
|
*/
|
|
57
58
|
setup(props, { slots }) {
|
|
58
59
|
const { maxCount, separator, routes } = toRefs(props);
|
|
60
|
+
const { t } = useI18n();
|
|
59
61
|
const prefixCls = getPrefixCls("breadcrumb");
|
|
60
62
|
const total = ref(0);
|
|
61
63
|
provide(breadcrumbInjectKey, reactive({
|
|
@@ -105,7 +107,7 @@ var breadcrumb_default = /* @__PURE__ */ defineComponent({
|
|
|
105
107
|
return () => {
|
|
106
108
|
return createVNode("div", {
|
|
107
109
|
"role": "list",
|
|
108
|
-
"aria-label": "
|
|
110
|
+
"aria-label": t("a11y.breadcrumb"),
|
|
109
111
|
"class": prefixCls
|
|
110
112
|
}, [slots.default ? renderByChildren() : renderByRoutes()]);
|
|
111
113
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
import { PerformantEllipsis } from "../../ellipsis/index.js";
|
|
2
3
|
import { calendarInjectionKey } from "../context.js";
|
|
3
4
|
import { minutesToPercentage } from "../utils/conversions.js";
|
|
4
|
-
import { PerformantEllipsis } from "../../ellipsis/index.js";
|
|
5
5
|
import { Transition, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, normalizeClass, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderSlot, shallowRef, toDisplayString, toHandlers, unref, watch, withCtx, withModifiers } from "vue";
|
|
6
6
|
//#region components/calendar/components/event.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var _hoisted_1 = ["draggable"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { PerformantEllipsis } from "../../ellipsis/index.js";
|
|
1
2
|
import { calendarElInjectionKey, calendarInjectionKey } from "../context.js";
|
|
2
3
|
import { weekdays } from "../core/config.js";
|
|
3
|
-
import { PerformantEllipsis } from "../../ellipsis/index.js";
|
|
4
4
|
import cell_default from "./cell.js";
|
|
5
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeProps, normalizeClass, onBeforeUnmount, openBlock, ref, renderList, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
6
6
|
//#region components/calendar/components/headings-bar.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isActivationKey } from "../_utils/keyboard.js";
|
|
4
|
+
import { useI18n } from "../locale/index.js";
|
|
5
|
+
import IconLeft from "../icon/icon-left/index.js";
|
|
4
6
|
import IconRight from "../icon/icon-right/index.js";
|
|
5
7
|
import IconDown from "../icon/icon-down/index.js";
|
|
6
|
-
import IconLeft from "../icon/icon-left/index.js";
|
|
7
8
|
import IconUp from "../icon/icon-up/index.js";
|
|
8
9
|
import { computed, createBlock, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, unref } from "vue";
|
|
9
10
|
//#region components/carousel/carousel-arrow.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
+
var _hoisted_1 = ["aria-label"];
|
|
12
|
+
var _hoisted_2 = ["aria-label"];
|
|
10
13
|
var carousel_arrow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "Arrow" }), {}, {
|
|
11
14
|
__name: "carousel-arrow",
|
|
12
15
|
props: {
|
|
@@ -23,6 +26,7 @@ var carousel_arrow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
23
26
|
setup(__props, { emit: __emit }) {
|
|
24
27
|
const props = __props;
|
|
25
28
|
const emit = __emit;
|
|
29
|
+
const { t } = useI18n();
|
|
26
30
|
const prefixCls = getPrefixCls("carousel");
|
|
27
31
|
const onPreviousClick = (ev) => {
|
|
28
32
|
emit("previousClick", ev);
|
|
@@ -42,18 +46,18 @@ var carousel_arrow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
42
46
|
return openBlock(), createElementBlock("div", { class: normalizeClass(cls.value) }, [createElementVNode("div", {
|
|
43
47
|
role: "button",
|
|
44
48
|
tabindex: "0",
|
|
45
|
-
"aria-label": "
|
|
49
|
+
"aria-label": unref(t)("a11y.prevSlide"),
|
|
46
50
|
class: normalizeClass(`${unref(prefixCls)}-arrow-${__props.direction === "vertical" ? "top" : "left"}`),
|
|
47
51
|
onClick: onPreviousClick,
|
|
48
52
|
onKeydown: _cache[0] || (_cache[0] = (e) => onKeydown(e, "previous"))
|
|
49
|
-
}, [__props.direction === "horizontal" ? (openBlock(), createBlock(unref(IconLeft), { key: 0 })) : (openBlock(), createBlock(unref(IconUp), { key: 1 }))],
|
|
53
|
+
}, [__props.direction === "horizontal" ? (openBlock(), createBlock(unref(IconLeft), { key: 0 })) : (openBlock(), createBlock(unref(IconUp), { key: 1 }))], 42, _hoisted_1), createElementVNode("div", {
|
|
50
54
|
role: "button",
|
|
51
55
|
tabindex: "0",
|
|
52
|
-
"aria-label": "
|
|
56
|
+
"aria-label": unref(t)("a11y.nextSlide"),
|
|
53
57
|
class: normalizeClass(`${unref(prefixCls)}-arrow-${__props.direction === "vertical" ? "bottom" : "right"}`),
|
|
54
58
|
onClick: onNextClick,
|
|
55
59
|
onKeydown: _cache[1] || (_cache[1] = (e) => onKeydown(e, "next"))
|
|
56
|
-
}, [__props.direction === "horizontal" ? (openBlock(), createBlock(unref(IconRight), { key: 0 })) : (openBlock(), createBlock(unref(IconDown), { key: 1 }))],
|
|
60
|
+
}, [__props.direction === "horizontal" ? (openBlock(), createBlock(unref(IconRight), { key: 0 })) : (openBlock(), createBlock(unref(IconDown), { key: 1 }))], 42, _hoisted_2)], 2);
|
|
57
61
|
};
|
|
58
62
|
}
|
|
59
63
|
}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isActivationKey } from "../_utils/keyboard.js";
|
|
4
|
+
import { useI18n } from "../locale/index.js";
|
|
4
5
|
import { Fragment, computed, createElementBlock, defineComponent, mergeProps, normalizeClass, normalizeStyle, openBlock, renderList, unref } from "vue";
|
|
5
6
|
//#region components/carousel/carousel-indicator.vue?vue&type=script&setup=true&lang.ts
|
|
6
7
|
var _hoisted_1 = ["aria-label"];
|
|
@@ -38,6 +39,7 @@ var carousel_indicator_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
38
39
|
setup(__props, { emit: __emit }) {
|
|
39
40
|
const props = __props;
|
|
40
41
|
const emit = __emit;
|
|
42
|
+
const { t } = useI18n();
|
|
41
43
|
const prefixCls = getPrefixCls("carousel-indicator");
|
|
42
44
|
const onClick = (event) => {
|
|
43
45
|
event.preventDefault();
|
|
@@ -79,7 +81,7 @@ var carousel_indicator_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
79
81
|
return openBlock(), createElementBlock("div", mergeProps({ class: cls.value }, eventHandlers.value), [__props.type === "slider" ? (openBlock(), createElementBlock("span", {
|
|
80
82
|
key: 0,
|
|
81
83
|
style: normalizeStyle(sliderStyle.value),
|
|
82
|
-
"aria-label":
|
|
84
|
+
"aria-label": unref(t)("a11y.slideOf", __props.activeIndex + 1, __props.count),
|
|
83
85
|
class: normalizeClass([`${unref(prefixCls)}-item`, `${unref(prefixCls)}-item-active`])
|
|
84
86
|
}, null, 14, _hoisted_1)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(Array(__props.count), (_, index) => {
|
|
85
87
|
return openBlock(), createElementBlock("span", {
|
|
@@ -87,7 +89,7 @@ var carousel_indicator_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
87
89
|
role: "button",
|
|
88
90
|
tabindex: "0",
|
|
89
91
|
"data-index": index,
|
|
90
|
-
"aria-label":
|
|
92
|
+
"aria-label": unref(t)("a11y.goToSlide", index + 1),
|
|
91
93
|
"aria-current": index === __props.activeIndex ? "true" : void 0,
|
|
92
94
|
class: normalizeClass([`${unref(prefixCls)}-item`, { [`${unref(prefixCls)}-item-active`]: index === __props.activeIndex }]),
|
|
93
95
|
onKeydown: ($event) => onItemKeydown($event, index)
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
|
+
import { useI18n } from "../locale/index.js";
|
|
3
4
|
import { carouselInjectionKey } from "./context.js";
|
|
4
|
-
import { computed, createElementBlock, defineComponent, getCurrentInstance, inject, normalizeClass, normalizeStyle, openBlock, renderSlot } from "vue";
|
|
5
|
+
import { computed, createElementBlock, defineComponent, getCurrentInstance, inject, normalizeClass, normalizeStyle, openBlock, renderSlot, unref } from "vue";
|
|
5
6
|
//#region components/carousel/carousel-item.vue?vue&type=script&setup=true&lang.ts
|
|
6
7
|
var _hoisted_1 = ["aria-label", "aria-hidden"];
|
|
7
8
|
var carousel_item_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "CarouselItem" }), {}, {
|
|
8
9
|
__name: "carousel-item",
|
|
9
10
|
setup(__props) {
|
|
11
|
+
const { t } = useI18n();
|
|
10
12
|
const prefixCls = getPrefixCls("carousel-item");
|
|
11
13
|
const instance = getCurrentInstance();
|
|
12
14
|
const context = inject(carouselInjectionKey, {});
|
|
@@ -45,7 +47,7 @@ var carousel_item_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
45
47
|
return openBlock(), createElementBlock("div", {
|
|
46
48
|
role: "group",
|
|
47
49
|
"aria-roledescription": "slide",
|
|
48
|
-
"aria-label":
|
|
50
|
+
"aria-label": unref(t)("a11y.slideOf", index.value + 1, slideCount.value),
|
|
49
51
|
"aria-hidden": !isCurrent.value,
|
|
50
52
|
class: normalizeClass(cls.value),
|
|
51
53
|
style: normalizeStyle(animationStyle.value)
|
package/es/carousel/carousel.js
CHANGED
|
@@ -2,6 +2,7 @@ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helper
|
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isNumber, isObject } from "../_utils/is.js";
|
|
4
4
|
import { KEYBOARD_KEY } from "../_utils/keyboard.js";
|
|
5
|
+
import { useI18n } from "../locale/index.js";
|
|
5
6
|
import { useChildrenComponents } from "../_hooks/use-children-components.js";
|
|
6
7
|
import carousel_arrow_default from "./carousel-arrow.js";
|
|
7
8
|
import carousel_indicator_default from "./carousel-indicator.js";
|
|
@@ -142,6 +143,7 @@ var carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
142
143
|
},
|
|
143
144
|
setup(props, { emit, slots }) {
|
|
144
145
|
const { current, animationName, moveSpeed, transitionTimingFunction } = toRefs(props);
|
|
146
|
+
const { t } = useI18n();
|
|
145
147
|
const prefixCls = getPrefixCls("carousel");
|
|
146
148
|
const isPause = ref(false);
|
|
147
149
|
const previousIndex = ref();
|
|
@@ -260,7 +262,7 @@ var carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
260
262
|
"class": cls.value,
|
|
261
263
|
"role": "region",
|
|
262
264
|
"aria-roledescription": "carousel",
|
|
263
|
-
"aria-label": "
|
|
265
|
+
"aria-label": t("a11y.carousel"),
|
|
264
266
|
"tabindex": "0",
|
|
265
267
|
"onKeydown": onKeydown
|
|
266
268
|
}, eventHandlers.value), [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
2
2
|
import { isFunction } from "../_utils/is.js";
|
|
3
3
|
import IconLoading from "../icon/icon-loading/index.js";
|
|
4
|
-
import IconRight from "../icon/icon-right/index.js";
|
|
5
4
|
import { PerformantEllipsis } from "../ellipsis/index.js";
|
|
5
|
+
import IconRight from "../icon/icon-right/index.js";
|
|
6
6
|
import Checkbox from "../checkbox/index.js";
|
|
7
7
|
import Radio from "../radio/index.js";
|
|
8
8
|
import { cascaderInjectionKey } from "./context.js";
|
|
@@ -8,14 +8,14 @@ import { resolveDropdownVirtualListProps } from "../_utils/virtual-dropdown.js";
|
|
|
8
8
|
import { useReadonlyTip, useReadonlyTipText } from "../_hooks/use-readonly-tip.js";
|
|
9
9
|
import Trigger from "../trigger/index.js";
|
|
10
10
|
import Tooltip from "../tooltip/index.js";
|
|
11
|
-
import {
|
|
11
|
+
import { debounce } from "../_utils/debounce.js";
|
|
12
12
|
import { cascaderInjectionKey } from "./context.js";
|
|
13
13
|
import { getCheckedStatus, getLeafOptionInfos, getLeafOptionKeys, getOptionInfos, getOptionLabel, getValidValues, getValueKey } from "./utils.js";
|
|
14
14
|
import base_cascader_panel_default from "./base-cascader-panel.js";
|
|
15
15
|
import { useSelectedPath } from "./hooks/use-selected-path.js";
|
|
16
16
|
import select_view_default from "../_components/select-view/select-view.js";
|
|
17
17
|
import { useAllowSearch } from "../_hooks/use-allow-search.js";
|
|
18
|
-
import {
|
|
18
|
+
import { useTrigger } from "../_hooks/use-trigger.js";
|
|
19
19
|
import cascader_search_panel_default from "./cascader-search-panel.js";
|
|
20
20
|
import { computed, createBlock, createSlots, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, mergeProps, normalizeProps, openBlock, provide, reactive, ref, renderSlot, toRef, toRefs, unref, useAttrs, useSlots, watch, withCtx } from "vue";
|
|
21
21
|
//#region components/cascader/cascader.vue?vue&type=script&setup=true&lang.ts
|
package/es/color-picker/panel.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
|
+
import { useI18n } from "../locale/index.js";
|
|
3
4
|
import input_group_default from "../input/input-group.js";
|
|
4
5
|
import Input from "../input/index.js";
|
|
5
|
-
import Radio from "../radio/index.js";
|
|
6
|
-
import { colors } from "./colors.js";
|
|
7
6
|
import InputNumber from "../input-number/index.js";
|
|
7
|
+
import Radio from "../radio/index.js";
|
|
8
8
|
import Select from "../select/index.js";
|
|
9
|
+
import { colors } from "./colors.js";
|
|
9
10
|
import control_bar_default from "./control-bar.js";
|
|
10
11
|
import palette_default from "./palette.js";
|
|
11
12
|
import { addGradientColor, formatColor, formatColorState, getActiveGradientPoint, getColorBackground, getColorObject, getDefaultColorState, getDefaultGradientState, getFormatInputs, getGradientThumbBackground, getLinearGradientString, normalizeFormat, parseColorState, parseFormatInputValues, removeGradientColor, round, setActiveColorHsva, setGradientColors, setGradientDegree, setGradientSelectedPoint } from "./utils.js";
|
|
@@ -158,6 +159,7 @@ var panel_default = /* @__PURE__ */ defineComponent({
|
|
|
158
159
|
onPaletteBarChange: Function
|
|
159
160
|
},
|
|
160
161
|
setup(props) {
|
|
162
|
+
const { t } = useI18n();
|
|
161
163
|
const prefixCls = getPrefixCls("color-picker");
|
|
162
164
|
const sliderRef = ref();
|
|
163
165
|
const gradientShellRef = ref();
|
|
@@ -332,7 +334,7 @@ var panel_default = /* @__PURE__ */ defineComponent({
|
|
|
332
334
|
"key": value,
|
|
333
335
|
"type": "button",
|
|
334
336
|
"class": `${prefixCls}-color-block`,
|
|
335
|
-
"aria-label":
|
|
337
|
+
"aria-label": t("a11y.selectColor", value),
|
|
336
338
|
"onClick": () => emitStateChange(parseColorState(value, props.colorModes), trigger)
|
|
337
339
|
}, [createVNode("div", {
|
|
338
340
|
"class": `${prefixCls}-block`,
|
package/es/components.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ declare module 'vue' {
|
|
|
15
15
|
SdBackTop: SDVue['BackTop'];
|
|
16
16
|
SdBorderBeam: SDVue['BorderBeam'];
|
|
17
17
|
SdBadge: SDVue['Badge'];
|
|
18
|
+
SdBasicCrudTable: SDVue['BasicCrudTable'];
|
|
18
19
|
SdBreadcrumb: SDVue['Breadcrumb'];
|
|
19
20
|
SdBreadcrumbItem: SDVue['BreadcrumbItem'];
|
|
20
21
|
SdButton: SDVue['Button'];
|
|
@@ -3,8 +3,8 @@ import { getPrefixCls } from "../_utils/global-config.js";
|
|
|
3
3
|
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/asyncToGenerator.js";
|
|
4
4
|
import Tooltip from "../tooltip/index.js";
|
|
5
5
|
import Button from "../button/index.js";
|
|
6
|
-
import IconCopy from "../icon/icon-copy/index.js";
|
|
7
6
|
import Link from "../link/index.js";
|
|
7
|
+
import IconCopy from "../icon/icon-copy/index.js";
|
|
8
8
|
import Message from "../message/index.js";
|
|
9
9
|
import { computed, createBlock, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, unref, useAttrs, useSlots, withCtx } from "vue";
|
|
10
10
|
import copy from "copy-to-clipboard";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useI18n } from "../../locale/index.js";
|
|
2
|
-
import { dayjs } from "../../_utils/date.js";
|
|
3
2
|
import { getValueByPath } from "../../_utils/get-value-by-path.js";
|
|
3
|
+
import { dayjs } from "../../_utils/date.js";
|
|
4
4
|
import { PickerInjectionKey } from "../context.js";
|
|
5
5
|
import { provide, toRefs } from "vue";
|
|
6
6
|
//#region components/date-picker/hooks/use-provide-datepicker-transform.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { isFunction } from "../../_utils/is.js";
|
|
3
|
-
import IconRight from "../../icon/icon-right/index.js";
|
|
4
3
|
import IconLeft from "../../icon/icon-left/index.js";
|
|
4
|
+
import IconRight from "../../icon/icon-right/index.js";
|
|
5
5
|
import useDatePickerTransform from "../hooks/use-inject-datepicker-transform.js";
|
|
6
6
|
import IconDoubleLeft from "../../icon/icon-double-left/index.js";
|
|
7
7
|
import IconDoubleRight from "../../icon/icon-double-right/index.js";
|
|
@@ -2,16 +2,16 @@ import { useFormItem } from "../_hooks/use-form-item.js";
|
|
|
2
2
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isBoolean, isFunction } from "../_utils/is.js";
|
|
5
|
-
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
6
5
|
import { useI18n } from "../locale/index.js";
|
|
6
|
+
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
7
7
|
import { omit } from "../_utils/omit.js";
|
|
8
8
|
import pick from "../_utils/pick.js";
|
|
9
9
|
import Trigger from "../trigger/index.js";
|
|
10
10
|
import useState from "../_hooks/use-state.js";
|
|
11
11
|
import useMergeState from "../_hooks/use-merge-state.js";
|
|
12
|
-
import { getDateValue, getDayjsValue, getNow, initializeDateLocale, isValueChange, toLocal } from "../_utils/date.js";
|
|
13
|
-
import input_default from "../_components/picker/input.js";
|
|
14
12
|
import { useConfigProviderProp } from "../_hooks/use-config-provider-prop.js";
|
|
13
|
+
import input_default from "../_components/picker/input.js";
|
|
14
|
+
import { getDateValue, getDayjsValue, getNow, initializeDateLocale, isValueChange, toLocal } from "../_utils/date.js";
|
|
15
15
|
import IconCalendar from "../icon/icon-calendar/index.js";
|
|
16
16
|
import { getFormattedValue, isValidInputValue } from "../time-picker/utils/index.js";
|
|
17
17
|
import useFormat from "./hooks/use-format.js";
|
|
@@ -3,15 +3,15 @@ import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
|
3
3
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
5
5
|
import { isArray, isBoolean } from "../_utils/is.js";
|
|
6
|
-
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
7
6
|
import { useI18n } from "../locale/index.js";
|
|
7
|
+
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
8
8
|
import { omit } from "../_utils/omit.js";
|
|
9
9
|
import pick from "../_utils/pick.js";
|
|
10
10
|
import Trigger from "../trigger/index.js";
|
|
11
11
|
import useState from "../_hooks/use-state.js";
|
|
12
12
|
import useMergeState from "../_hooks/use-merge-state.js";
|
|
13
|
-
import { getDateValue, getDayjsValue, getNow, getSortedDayjsArray, initializeDateLocale, isValueChange, toLocal } from "../_utils/date.js";
|
|
14
13
|
import { useConfigProviderProp } from "../_hooks/use-config-provider-prop.js";
|
|
14
|
+
import { getDateValue, getDayjsValue, getNow, getSortedDayjsArray, initializeDateLocale, isValueChange, toLocal } from "../_utils/date.js";
|
|
15
15
|
import IconCalendar from "../icon/icon-calendar/index.js";
|
|
16
16
|
import { getFormattedValue, isValidInputValue } from "../time-picker/utils/index.js";
|
|
17
17
|
import useFormat from "./hooks/use-format.js";
|
|
@@ -5,8 +5,8 @@ import { off, on } from "../_utils/dom.js";
|
|
|
5
5
|
import icon_hover_default from "../_components/icon-hover.js";
|
|
6
6
|
import { KEYBOARD_KEY, onActivate } from "../_utils/keyboard.js";
|
|
7
7
|
import IconClose from "../icon/icon-close/index.js";
|
|
8
|
-
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/asyncToGenerator.js";
|
|
9
8
|
import { useI18n } from "../locale/index.js";
|
|
9
|
+
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/asyncToGenerator.js";
|
|
10
10
|
import client_only_default from "../_components/client-only.js";
|
|
11
11
|
import usePopupManager from "../_hooks/use-popup-manager.js";
|
|
12
12
|
import { useTeleportContainer } from "../_hooks/use-teleport-container.js";
|
|
@@ -19,6 +19,7 @@ import { DRAWER_PLACEMENTS } from "./utils.js";
|
|
|
19
19
|
import { Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, toDisplayString, toRefs, unref, useSlots, vShow, watch, withCtx, withDirectives } from "vue";
|
|
20
20
|
//#region components/drawer/drawer.vue?vue&type=script&setup=true&lang.ts
|
|
21
21
|
var _hoisted_1 = ["aria-labelledby"];
|
|
22
|
+
var _hoisted_2 = ["aria-label"];
|
|
22
23
|
var drawer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, {
|
|
23
24
|
name: "Drawer",
|
|
24
25
|
inheritAttrs: false
|
|
@@ -554,14 +555,14 @@ var drawer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
554
555
|
key: 1,
|
|
555
556
|
tabindex: "0",
|
|
556
557
|
role: "button",
|
|
557
|
-
"aria-label": "
|
|
558
|
+
"aria-label": unref(t)("a11y.close"),
|
|
558
559
|
class: normalizeClass(`${unref(prefixCls)}-close-btn`),
|
|
559
560
|
onClick: handleCancel,
|
|
560
561
|
onKeydown: _cache[0] || (_cache[0] = ($event) => unref(onActivate)(handleCancel))
|
|
561
562
|
}, [createVNode(icon_hover_default, null, {
|
|
562
563
|
default: withCtx(() => [createVNode(unref(IconClose))]),
|
|
563
564
|
_: 1
|
|
564
|
-
})],
|
|
565
|
+
})], 42, _hoisted_2)) : createCommentVNode("", true)])], 2)) : createCommentVNode("", true),
|
|
565
566
|
createElementVNode("div", {
|
|
566
567
|
id: bodyId,
|
|
567
568
|
class: normalizeClass([`${unref(prefixCls)}-body`, __props.bodyClass]),
|
|
@@ -2,8 +2,8 @@ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helper
|
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import button_group_default from "../button/button-group.js";
|
|
4
4
|
import Button from "../button/index.js";
|
|
5
|
-
import { useTrigger } from "../_hooks/use-trigger.js";
|
|
6
5
|
import IconMore from "../icon/icon-more/index.js";
|
|
6
|
+
import { useTrigger } from "../_hooks/use-trigger.js";
|
|
7
7
|
import dropdown_default from "./dropdown.js";
|
|
8
8
|
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, renderSlot, toRefs, unref, withCtx } from "vue";
|
|
9
9
|
//#region components/dropdown/dropdown-button.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -3,8 +3,8 @@ import { getPrefixCls } from "../_utils/global-config.js";
|
|
|
3
3
|
import { isNumber } from "../_utils/is.js";
|
|
4
4
|
import { KEYBOARD_KEY } from "../_utils/keyboard.js";
|
|
5
5
|
import Scrollbar from "../scrollbar/index.js";
|
|
6
|
-
import { dropdownInjectionKey } from "./context.js";
|
|
7
6
|
import Empty from "../empty/index.js";
|
|
7
|
+
import { dropdownInjectionKey } from "./context.js";
|
|
8
8
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, inject, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderSlot, unref, useSlots, withCtx } from "vue";
|
|
9
9
|
//#region components/dropdown/dropdown-panel.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var dropdown_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "DropdownPanel" }), {}, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import Trigger from "../trigger/index.js";
|
|
4
|
+
import IconRight from "../icon/icon-right/index.js";
|
|
4
5
|
import { useTrigger } from "../_hooks/use-trigger.js";
|
|
5
6
|
import dropdown_panel_default from "./dropdown-panel.js";
|
|
6
7
|
import dropdown_option_default from "./dropdown-option.js";
|
|
7
|
-
import IconRight from "../icon/icon-right/index.js";
|
|
8
8
|
import { createBlock, createSlots, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, toRefs, unref, withCtx } from "vue";
|
|
9
9
|
//#region components/dropdown/dropdown-submenu.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var dropdown_submenu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "Dsubmenu" }), {}, {
|