@sdata/web-vue 2.10.1 → 2.11.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 +4 -1
- package/dist/sd.min.css +1 -1
- package/es/button/context.js +1 -1
- package/es/calendar/core/config.js +1 -1
- package/es/calendar/core/i18n.js +3 -3
- package/es/config-provider/config-provider.vue.d.ts +8 -8
- package/es/config-provider/context.d.ts +2 -2
- package/es/config-provider/index.d.ts +10 -10
- package/es/config-provider/theme-provider.vue.d.ts +4 -4
- package/es/config-provider/theme.d.ts +6 -6
- package/es/index.css +4 -1
- package/es/index.d.ts +1 -1
- package/es/layout/style/index.css +4 -1
- package/es/layout/style/index.scss +5 -0
- package/es/layout/style/token.scss +1 -1
- package/es/locale/index.d.ts +3 -3
- package/es/locale/interface.d.ts +2 -2
- package/es/locale/lang/ar-eg.d.ts +2 -2
- package/es/locale/lang/de-de.d.ts +2 -2
- package/es/locale/lang/en-us.d.ts +2 -2
- package/es/locale/lang/es-es.d.ts +2 -2
- package/es/locale/lang/fr-fr.d.ts +2 -2
- package/es/locale/lang/id-id.d.ts +2 -2
- package/es/locale/lang/it-it.d.ts +2 -2
- package/es/locale/lang/ja-jp.d.ts +2 -2
- package/es/locale/lang/km-kh.d.ts +2 -2
- package/es/locale/lang/ko-kr.d.ts +2 -2
- package/es/locale/lang/ms-my.d.ts +2 -2
- package/es/locale/lang/nl-nl.d.ts +2 -2
- package/es/locale/lang/pt-pt.d.ts +2 -2
- package/es/locale/lang/ru-ru.d.ts +2 -2
- package/es/locale/lang/th-th.d.ts +2 -2
- package/es/locale/lang/vi-vn.d.ts +2 -2
- package/es/locale/lang/zh-cn.d.ts +2 -2
- package/es/locale/lang/zh-tw.d.ts +2 -2
- package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/theme-provider/index.d.ts +9 -9
- package/es/transfer/transfer.vue_vue_type_script_setup_true_lang.js +4 -4
- package/json/web-types.json +4 -4
- package/package.json +1 -1
package/es/button/context.js
CHANGED
|
@@ -434,7 +434,7 @@ export const useConfig = (calendar, props, attrs) => {
|
|
|
434
434
|
|
|
435
435
|
/**
|
|
436
436
|
* Initializes dayjs locale and loads calendar texts from both
|
|
437
|
-
* dayjs locale data (month/weekday names) and the library's
|
|
437
|
+
* dayjs locale data (month/weekday names) and the library's SdLang
|
|
438
438
|
* calendar section (UI labels).
|
|
439
439
|
*/
|
|
440
440
|
const loadTexts = async (locale) => {
|
package/es/calendar/core/i18n.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* After `initializeDateLocale()` has been called (from config.js), the active
|
|
5
5
|
* dayjs locale contains month names, weekday names, AM/PM labels, etc.
|
|
6
6
|
* This module extracts that data into the shape the calendar runtime expects,
|
|
7
|
-
* merging it with UI text from the library's
|
|
7
|
+
* merging it with UI text from the library's SdLang `calendar` section.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { dayjs } from '../../_utils/date';
|
|
@@ -17,12 +17,12 @@ const reorderSunToMon = (arr) => [arr[1], arr[2], arr[3], arr[4], arr[5], arr[6]
|
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Builds the calendar `texts` object from the currently active dayjs locale
|
|
20
|
-
* and the library's
|
|
20
|
+
* and the library's SdLang calendar section.
|
|
21
21
|
*
|
|
22
22
|
* Must be called **after** `initializeDateLocale()` so that the dayjs locale
|
|
23
23
|
* data is loaded and set.
|
|
24
24
|
*
|
|
25
|
-
* @param {object} [calendarLang] — The `calendar` section from
|
|
25
|
+
* @param {object} [calendarLang] — The `calendar` section from SdLang (from `useI18n().i18nMessage.value.calendar`).
|
|
26
26
|
* @returns {object} Calendar texts ready to merge into `calendar.texts`.
|
|
27
27
|
*/
|
|
28
28
|
export const createCalendarTexts = (calendarLang) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import { VirtualListProps } from '../_components/virtual-list/interface';
|
|
3
3
|
import { Size } from '../_utils/constant';
|
|
4
|
-
import {
|
|
4
|
+
import { SdLang } from '../locale/interface';
|
|
5
5
|
import { ConfigProviderDatePicker, ConfigProviderDrawer, type JsonFormProviderConfig, ConfigProviderModal } from './context';
|
|
6
|
-
import {
|
|
6
|
+
import { SdThemeConfig, SdThemeMode } from './theme';
|
|
7
7
|
declare var __VLS_8: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_8) => any;
|
|
@@ -14,7 +14,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
16
|
locale: {
|
|
17
|
-
type: PropType<
|
|
17
|
+
type: PropType<SdLang>;
|
|
18
18
|
};
|
|
19
19
|
size: {
|
|
20
20
|
type: PropType<Size>;
|
|
@@ -67,10 +67,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
67
67
|
type: PropType<JsonFormProviderConfig>;
|
|
68
68
|
};
|
|
69
69
|
theme: {
|
|
70
|
-
type: PropType<
|
|
70
|
+
type: PropType<SdThemeConfig>;
|
|
71
71
|
};
|
|
72
72
|
themeMode: {
|
|
73
|
-
type: PropType<
|
|
73
|
+
type: PropType<SdThemeMode>;
|
|
74
74
|
};
|
|
75
75
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
76
|
prefixCls: {
|
|
@@ -78,7 +78,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
78
78
|
default: string;
|
|
79
79
|
};
|
|
80
80
|
locale: {
|
|
81
|
-
type: PropType<
|
|
81
|
+
type: PropType<SdLang>;
|
|
82
82
|
};
|
|
83
83
|
size: {
|
|
84
84
|
type: PropType<Size>;
|
|
@@ -131,10 +131,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
131
131
|
type: PropType<JsonFormProviderConfig>;
|
|
132
132
|
};
|
|
133
133
|
theme: {
|
|
134
|
-
type: PropType<
|
|
134
|
+
type: PropType<SdThemeConfig>;
|
|
135
135
|
};
|
|
136
136
|
themeMode: {
|
|
137
|
-
type: PropType<
|
|
137
|
+
type: PropType<SdThemeMode>;
|
|
138
138
|
};
|
|
139
139
|
}>> & Readonly<{}>, {
|
|
140
140
|
updateAtScroll: boolean;
|
|
@@ -6,7 +6,7 @@ import { Size } from '../_utils/constant';
|
|
|
6
6
|
import { ButtonProps } from '../button';
|
|
7
7
|
import { ShortcutType, WeekStart } from '../date-picker/interface';
|
|
8
8
|
import { EllipsisTooltipProps } from '../ellipsis';
|
|
9
|
-
import {
|
|
9
|
+
import { SdLang } from '../locale/interface';
|
|
10
10
|
import { SDThemeNormalized } from './theme';
|
|
11
11
|
export interface ConfigProviderModal {
|
|
12
12
|
mask?: boolean;
|
|
@@ -56,7 +56,7 @@ export interface ConfigProviderDatePicker {
|
|
|
56
56
|
export interface ConfigProvider {
|
|
57
57
|
slots: Slots;
|
|
58
58
|
prefixCls?: string;
|
|
59
|
-
locale?:
|
|
59
|
+
locale?: SdLang;
|
|
60
60
|
size?: Size;
|
|
61
61
|
allowClear?: boolean;
|
|
62
62
|
allowSearch?: boolean;
|
|
@@ -8,7 +8,7 @@ declare const ConfigProvider: {
|
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
locale: {
|
|
11
|
-
type: import("vue").PropType<import("../locale/interface.ts").
|
|
11
|
+
type: import("vue").PropType<import("../locale/interface.ts").SdLang>;
|
|
12
12
|
};
|
|
13
13
|
size: {
|
|
14
14
|
type: import("vue").PropType<import("../index.ts").Size>;
|
|
@@ -61,10 +61,10 @@ declare const ConfigProvider: {
|
|
|
61
61
|
type: import("vue").PropType<import("./context.ts").JsonFormProviderConfig>;
|
|
62
62
|
};
|
|
63
63
|
theme: {
|
|
64
|
-
type: import("vue").PropType<import("./theme").
|
|
64
|
+
type: import("vue").PropType<import("./theme").SdThemeConfig>;
|
|
65
65
|
};
|
|
66
66
|
themeMode: {
|
|
67
|
-
type: import("vue").PropType<import("./theme").
|
|
67
|
+
type: import("vue").PropType<import("./theme").SdThemeMode>;
|
|
68
68
|
};
|
|
69
69
|
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
70
70
|
updateAtScroll: boolean;
|
|
@@ -89,7 +89,7 @@ declare const ConfigProvider: {
|
|
|
89
89
|
default: string;
|
|
90
90
|
};
|
|
91
91
|
locale: {
|
|
92
|
-
type: import("vue").PropType<import("../locale/interface.ts").
|
|
92
|
+
type: import("vue").PropType<import("../locale/interface.ts").SdLang>;
|
|
93
93
|
};
|
|
94
94
|
size: {
|
|
95
95
|
type: import("vue").PropType<import("../index.ts").Size>;
|
|
@@ -142,10 +142,10 @@ declare const ConfigProvider: {
|
|
|
142
142
|
type: import("vue").PropType<import("./context.ts").JsonFormProviderConfig>;
|
|
143
143
|
};
|
|
144
144
|
theme: {
|
|
145
|
-
type: import("vue").PropType<import("./theme").
|
|
145
|
+
type: import("vue").PropType<import("./theme").SdThemeConfig>;
|
|
146
146
|
};
|
|
147
147
|
themeMode: {
|
|
148
|
-
type: import("vue").PropType<import("./theme").
|
|
148
|
+
type: import("vue").PropType<import("./theme").SdThemeMode>;
|
|
149
149
|
};
|
|
150
150
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
151
151
|
updateAtScroll: boolean;
|
|
@@ -167,7 +167,7 @@ declare const ConfigProvider: {
|
|
|
167
167
|
default: string;
|
|
168
168
|
};
|
|
169
169
|
locale: {
|
|
170
|
-
type: import("vue").PropType<import("../locale/interface.ts").
|
|
170
|
+
type: import("vue").PropType<import("../locale/interface.ts").SdLang>;
|
|
171
171
|
};
|
|
172
172
|
size: {
|
|
173
173
|
type: import("vue").PropType<import("../index.ts").Size>;
|
|
@@ -220,10 +220,10 @@ declare const ConfigProvider: {
|
|
|
220
220
|
type: import("vue").PropType<import("./context.ts").JsonFormProviderConfig>;
|
|
221
221
|
};
|
|
222
222
|
theme: {
|
|
223
|
-
type: import("vue").PropType<import("./theme").
|
|
223
|
+
type: import("vue").PropType<import("./theme").SdThemeConfig>;
|
|
224
224
|
};
|
|
225
225
|
themeMode: {
|
|
226
|
-
type: import("vue").PropType<import("./theme").
|
|
226
|
+
type: import("vue").PropType<import("./theme").SdThemeMode>;
|
|
227
227
|
};
|
|
228
228
|
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
229
229
|
updateAtScroll: boolean;
|
|
@@ -243,6 +243,6 @@ declare const ConfigProvider: {
|
|
|
243
243
|
install: (app: App, options?: SDOptions) => void;
|
|
244
244
|
};
|
|
245
245
|
export type ConfigProviderInstance = InstanceType<typeof _ConfigProvider>;
|
|
246
|
-
export type {
|
|
246
|
+
export type { SdThemeConfig, SdThemeMeta, SdThemeMode, ThemeTokenMap, ThemeTokenValue, } from './theme';
|
|
247
247
|
export type { JsonFormProviderConfig as ConfigProviderJsonFormConfig } from '../json-form';
|
|
248
248
|
export default ConfigProvider;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SdThemeConfig, type SdThemeMode } from './theme';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
theme?:
|
|
4
|
-
themeMode?:
|
|
3
|
+
theme?: SdThemeConfig;
|
|
4
|
+
themeMode?: SdThemeMode;
|
|
5
5
|
global?: boolean;
|
|
6
6
|
tag?: string;
|
|
7
7
|
};
|
|
@@ -13,7 +13,7 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
15
|
tag: string;
|
|
16
|
-
themeMode:
|
|
16
|
+
themeMode: SdThemeMode;
|
|
17
17
|
global: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export type ThemeTokenValue = string | number;
|
|
2
2
|
export type ThemeTokenMap = Record<string, ThemeTokenValue>;
|
|
3
|
-
export interface
|
|
3
|
+
export interface SdThemeMeta {
|
|
4
4
|
name?: string;
|
|
5
5
|
schemaVersion?: number;
|
|
6
6
|
cssVarPrefix?: string;
|
|
7
7
|
}
|
|
8
|
-
export type
|
|
9
|
-
export interface
|
|
8
|
+
export type SdThemeMode = 'light' | 'dark';
|
|
9
|
+
export interface SdThemeConfig {
|
|
10
10
|
tokens?: ThemeTokenMap;
|
|
11
11
|
components?: Record<string, ThemeTokenMap>;
|
|
12
|
-
meta?:
|
|
12
|
+
meta?: SdThemeMeta;
|
|
13
13
|
token?: ThemeTokenMap;
|
|
14
14
|
component?: Record<string, ThemeTokenMap>;
|
|
15
15
|
[key: string]: unknown;
|
|
@@ -17,10 +17,10 @@ export interface SDThemeConfig {
|
|
|
17
17
|
export interface SDThemeNormalized {
|
|
18
18
|
tokens: ThemeTokenMap;
|
|
19
19
|
components: Record<string, ThemeTokenMap>;
|
|
20
|
-
meta: Required<Pick<
|
|
20
|
+
meta: Required<Pick<SdThemeMeta, 'schemaVersion' | 'cssVarPrefix'>> & Pick<SdThemeMeta, 'name'>;
|
|
21
21
|
}
|
|
22
22
|
export declare function normalizeTokenKey(key: string): string;
|
|
23
|
-
export declare function normalizeTheme(theme?:
|
|
23
|
+
export declare function normalizeTheme(theme?: SdThemeConfig): SDThemeNormalized;
|
|
24
24
|
export declare function resolveThemeToken(theme: SDThemeNormalized, componentName: string, tokenKey: string): ThemeTokenValue | undefined;
|
|
25
25
|
export declare function getThemeCSSVariables(theme: SDThemeNormalized): Record<string, string>;
|
|
26
26
|
export declare function applyThemeCSSVariables(target: HTMLElement, theme: SDThemeNormalized, previousKeys?: Set<string>): Set<string>;
|
package/es/index.css
CHANGED
|
@@ -10462,10 +10462,13 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
10462
10462
|
.sd-layout-header {
|
|
10463
10463
|
height: 64px;
|
|
10464
10464
|
padding: 0 50px;
|
|
10465
|
-
color: var(--sd-color-
|
|
10465
|
+
color: color-mix(in srgb, var(--sd-color-menu-dark-bg), #fff 90%);
|
|
10466
10466
|
line-height: 64px;
|
|
10467
10467
|
background: var(--sd-color-menu-dark-bg);
|
|
10468
10468
|
}
|
|
10469
|
+
.sd-layout-header .sd-btn-text {
|
|
10470
|
+
color: color-mix(in srgb, var(--sd-color-menu-dark-bg), #fff 90%);
|
|
10471
|
+
}
|
|
10469
10472
|
|
|
10470
10473
|
.sd-layout-footer {
|
|
10471
10474
|
padding: 24px 50px;
|
package/es/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export type { CommentInstance } from './comment';
|
|
|
39
39
|
export { default as ColorPicker } from './color-picker';
|
|
40
40
|
export type { ColorPickerInstance } from './color-picker';
|
|
41
41
|
export { default as ConfigProvider } from './config-provider';
|
|
42
|
-
export type { ConfigProviderInstance,
|
|
42
|
+
export type { ConfigProviderInstance, SdThemeConfig, SdThemeMeta, SdThemeMode, ThemeTokenMap, ThemeTokenValue, } from './config-provider';
|
|
43
43
|
export { default as ThemeProvider } from './theme-provider';
|
|
44
44
|
export type { ThemeProviderInstance } from './theme-provider';
|
|
45
45
|
export { default as Copy } from './copy';
|
|
@@ -67,10 +67,13 @@
|
|
|
67
67
|
.sd-layout-header {
|
|
68
68
|
height: 64px;
|
|
69
69
|
padding: 0 50px;
|
|
70
|
-
color: var(--sd-color-
|
|
70
|
+
color: color-mix(in srgb, var(--sd-color-menu-dark-bg), #fff 90%);
|
|
71
71
|
line-height: 64px;
|
|
72
72
|
background: var(--sd-color-menu-dark-bg);
|
|
73
73
|
}
|
|
74
|
+
.sd-layout-header .sd-btn-text {
|
|
75
|
+
color: color-mix(in srgb, var(--sd-color-menu-dark-bg), #fff 90%);
|
|
76
|
+
}
|
|
74
77
|
|
|
75
78
|
.sd-layout-footer {
|
|
76
79
|
padding: 24px 50px;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@use '@components/layout/style/token.scss' as *;
|
|
4
4
|
|
|
5
5
|
$layout-prefix-cls: string.unquote('#{theme.$prefix}-layout');
|
|
6
|
+
$btn-text-prefix-cls: string.unquote('#{theme.$prefix}-btn-text');
|
|
6
7
|
$sider-prefix-cls: string.unquote('#{theme.$prefix}-layout-sider');
|
|
7
8
|
$text-color: var(string.unquote('#{theme.$sd-cssvars-prefix}-color-text-1'));
|
|
8
9
|
|
|
@@ -48,6 +49,10 @@ $text-color: var(string.unquote('#{theme.$sd-cssvars-prefix}-color-text-1'));
|
|
|
48
49
|
color: $layout-header-color;
|
|
49
50
|
line-height: $layout-header-height;
|
|
50
51
|
background: $layout-header-bg;
|
|
52
|
+
|
|
53
|
+
.#{$btn-text-prefix-cls} {
|
|
54
|
+
color: $layout-header-color;
|
|
55
|
+
}
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
// ==================== Footer ====================
|
|
@@ -19,7 +19,7 @@ $layout-header-bg: var(string.unquote('#{global.$sd-cssvars-prefix}-color-menu-d
|
|
|
19
19
|
$layout-header-height: global.$size-16; // 64px
|
|
20
20
|
$layout-header-padding-horizontal: 50px;
|
|
21
21
|
$layout-header-padding: 0 $layout-header-padding-horizontal;
|
|
22
|
-
$layout-header-color:
|
|
22
|
+
$layout-header-color: color-mix(in srgb, $layout-header-bg, #fff 90%);
|
|
23
23
|
|
|
24
24
|
/*****************************************************
|
|
25
25
|
* Footer
|
package/es/locale/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const addI18nMessages: (messages:
|
|
1
|
+
import type { SdI18nMessages, SdLang } from './interface';
|
|
2
|
+
export declare const addI18nMessages: (messages: SdI18nMessages, options?: {
|
|
3
3
|
overwrite?: boolean;
|
|
4
4
|
}) => void;
|
|
5
5
|
export declare const useLocale: (locale: string) => void;
|
|
6
6
|
export declare const getLocale: () => string;
|
|
7
7
|
export declare const useI18n: () => {
|
|
8
|
-
i18nMessage: import("vue").ComputedRef<
|
|
8
|
+
i18nMessage: import("vue").ComputedRef<SdLang>;
|
|
9
9
|
locale: import("vue").ComputedRef<string>;
|
|
10
10
|
t: (key: string, ...args: unknown[]) => string;
|
|
11
11
|
};
|
package/es/locale/interface.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ export interface ValidateMessage {
|
|
|
114
114
|
false: string;
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
export interface
|
|
117
|
+
export interface SdLang {
|
|
118
118
|
locale: string;
|
|
119
119
|
empty: {
|
|
120
120
|
description: string;
|
|
@@ -207,4 +207,4 @@ export interface SDLang {
|
|
|
207
207
|
empty: string;
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
|
-
export type
|
|
210
|
+
export type SdI18nMessages = Record<string, SdLang>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const lang:
|
|
1
|
+
import { SdLang } from '../interface';
|
|
2
|
+
declare const lang: SdLang;
|
|
3
3
|
export default lang;
|
|
@@ -9,6 +9,7 @@ import IconCloseCircleFill from "../icon/icon-close-circle-fill/index.js";
|
|
|
9
9
|
import IconExclamationCircleFill from "../icon/icon-exclamation-circle-fill/index.js";
|
|
10
10
|
import IconInfoCircleFill from "../icon/icon-info-circle-fill/index.js";
|
|
11
11
|
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/asyncToGenerator.js";
|
|
12
|
+
import Button from "../button/index.js";
|
|
12
13
|
import { KEYBOARD_KEY } from "../_utils/keyboard.js";
|
|
13
14
|
import client_only_default from "../_components/client-only.js";
|
|
14
15
|
import usePopupManager from "../_hooks/use-popup-manager.js";
|
|
@@ -18,7 +19,7 @@ import Ellipsis from "../ellipsis/index.js";
|
|
|
18
19
|
import { useConfigProviderProp } from "../_hooks/use-config-provider-prop.js";
|
|
19
20
|
import { useOverflow } from "../_hooks/use-overflow.js";
|
|
20
21
|
import { useDraggable } from "./hooks/use-draggable.js";
|
|
21
|
-
import { Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderSlot,
|
|
22
|
+
import { Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, toDisplayString, toRefs, unref, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
22
23
|
//#region components/modal/modal.vue?vue&type=script&setup=true&lang.tsx
|
|
23
24
|
var modal_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, {
|
|
24
25
|
name: "Modal",
|
|
@@ -599,7 +600,6 @@ var modal_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
599
600
|
return style;
|
|
600
601
|
});
|
|
601
602
|
return (_ctx, _cache) => {
|
|
602
|
-
const _component_sd_button = resolveComponent("sd-button");
|
|
603
603
|
return openBlock(), createBlock(unref(client_only_default), null, {
|
|
604
604
|
default: withCtx(() => [(openBlock(), createBlock(Teleport, {
|
|
605
605
|
to: unref(teleportContainer),
|
|
@@ -680,10 +680,10 @@ var modal_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
680
680
|
unref(mergedFooter) ? (openBlock(), createElementBlock("div", {
|
|
681
681
|
key: 1,
|
|
682
682
|
class: normalizeClass(`${unref(prefixCls)}-footer`)
|
|
683
|
-
}, [renderSlot(_ctx.$slots, "footer", {}, () => [!unref(mergedHideCancel) ? (openBlock(), createBlock(
|
|
683
|
+
}, [renderSlot(_ctx.$slots, "footer", {}, () => [!unref(mergedHideCancel) ? (openBlock(), createBlock(unref(Button), mergeProps({ key: 0 }, unref(mergedCancelButtonProps), { onClick: handleCancel }), {
|
|
684
684
|
default: withCtx(() => [createTextVNode(toDisplayString(cancelDisplayText.value), 1)]),
|
|
685
685
|
_: 1
|
|
686
|
-
}, 16)) : createCommentVNode("", true), createVNode(
|
|
686
|
+
}, 16)) : createCommentVNode("", true), createVNode(unref(Button), mergeProps({ type: "primary" }, unref(mergedOkButtonProps), {
|
|
687
687
|
loading: mergedOkLoading.value,
|
|
688
688
|
onClick: handleOk
|
|
689
689
|
}), {
|
|
@@ -6,9 +6,10 @@ import IconCloseCircleFill from "../icon/icon-close-circle-fill/index.js";
|
|
|
6
6
|
import IconExclamationCircleFill from "../icon/icon-exclamation-circle-fill/index.js";
|
|
7
7
|
import IconInfoCircleFill from "../icon/icon-info-circle-fill/index.js";
|
|
8
8
|
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/asyncToGenerator.js";
|
|
9
|
+
import Button from "../button/index.js";
|
|
9
10
|
import Trigger from "../trigger/index.js";
|
|
10
11
|
import { useI18n } from "../locale/index.js";
|
|
11
|
-
import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, renderSlot,
|
|
12
|
+
import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
12
13
|
//#region components/popconfirm/popconfirm.vue?vue&type=script&setup=true&lang.ts
|
|
13
14
|
var popconfirm_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "Popconfirm" }), {}, {
|
|
14
15
|
__name: "popconfirm",
|
|
@@ -216,7 +217,6 @@ var popconfirm_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
216
217
|
const contentCls = computed(() => [`${prefixCls}-popup-content`, props.contentClass]);
|
|
217
218
|
const arrowCls = computed(() => [`${prefixCls}-popup-arrow`, props.arrowClass]);
|
|
218
219
|
return (_ctx, _cache) => {
|
|
219
|
-
const _component_sd_button = resolveComponent("sd-button");
|
|
220
220
|
return openBlock(), createBlock(unref(Trigger), {
|
|
221
221
|
class: normalizeClass(unref(prefixCls)),
|
|
222
222
|
trigger: "click",
|
|
@@ -233,10 +233,10 @@ var popconfirm_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
233
233
|
"auto-fit-transform-origin": "",
|
|
234
234
|
onPopupVisibleChange: handlePopupVisibleChange
|
|
235
235
|
}, {
|
|
236
|
-
content: withCtx(() => [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-body`) }, [createElementVNode("span", { class: normalizeClass(`${unref(prefixCls)}-icon`) }, [renderSlot(_ctx.$slots, "icon", {}, () => [__props.type === "info" ? (openBlock(), createBlock(unref(IconInfoCircleFill), { key: 0 })) : __props.type === "success" ? (openBlock(), createBlock(unref(IconCheckCircleFill), { key: 1 })) : __props.type === "warning" ? (openBlock(), createBlock(unref(IconExclamationCircleFill), { key: 2 })) : __props.type === "error" ? (openBlock(), createBlock(unref(IconCloseCircleFill), { key: 3 })) : createCommentVNode("", true)])], 2), createElementVNode("span", { class: normalizeClass(`${unref(prefixCls)}-content`) }, [renderSlot(_ctx.$slots, "content", {}, () => [createTextVNode(toDisplayString(__props.content), 1)])], 2)], 2), createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-footer`) }, [createVNode(
|
|
236
|
+
content: withCtx(() => [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-body`) }, [createElementVNode("span", { class: normalizeClass(`${unref(prefixCls)}-icon`) }, [renderSlot(_ctx.$slots, "icon", {}, () => [__props.type === "info" ? (openBlock(), createBlock(unref(IconInfoCircleFill), { key: 0 })) : __props.type === "success" ? (openBlock(), createBlock(unref(IconCheckCircleFill), { key: 1 })) : __props.type === "warning" ? (openBlock(), createBlock(unref(IconExclamationCircleFill), { key: 2 })) : __props.type === "error" ? (openBlock(), createBlock(unref(IconCloseCircleFill), { key: 3 })) : createCommentVNode("", true)])], 2), createElementVNode("span", { class: normalizeClass(`${unref(prefixCls)}-content`) }, [renderSlot(_ctx.$slots, "content", {}, () => [createTextVNode(toDisplayString(__props.content), 1)])], 2)], 2), createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-footer`) }, [createVNode(unref(Button), mergeProps({ size: "mini" }, __props.cancelButtonProps, { onClick: handleCancel }), {
|
|
237
237
|
default: withCtx(() => [createTextVNode(toDisplayString(__props.cancelText || unref(t)("popconfirm.cancelText")), 1)]),
|
|
238
238
|
_: 1
|
|
239
|
-
}, 16), createVNode(
|
|
239
|
+
}, 16), createVNode(unref(Button), mergeProps({
|
|
240
240
|
type: "primary",
|
|
241
241
|
size: "mini"
|
|
242
242
|
}, __props.okButtonProps, {
|
|
@@ -3,13 +3,13 @@ import type { SDOptions } from '../_utils/types';
|
|
|
3
3
|
import _ThemeProvider from '../config-provider/theme-provider.vue';
|
|
4
4
|
declare const ThemeProvider: {
|
|
5
5
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
6
|
-
theme?: import("../index.ts").
|
|
7
|
-
themeMode?: import("../index.ts").
|
|
6
|
+
theme?: import("../index.ts").SdThemeConfig;
|
|
7
|
+
themeMode?: import("../index.ts").SdThemeMode;
|
|
8
8
|
global?: boolean;
|
|
9
9
|
tag?: string;
|
|
10
10
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
11
11
|
tag: string;
|
|
12
|
-
themeMode: import("../index.ts").
|
|
12
|
+
themeMode: import("../index.ts").SdThemeMode;
|
|
13
13
|
global: boolean;
|
|
14
14
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
15
15
|
P: {};
|
|
@@ -19,26 +19,26 @@ declare const ThemeProvider: {
|
|
|
19
19
|
M: {};
|
|
20
20
|
Defaults: {};
|
|
21
21
|
}, Readonly<{
|
|
22
|
-
theme?: import("../index.ts").
|
|
23
|
-
themeMode?: import("../index.ts").
|
|
22
|
+
theme?: import("../index.ts").SdThemeConfig;
|
|
23
|
+
themeMode?: import("../index.ts").SdThemeMode;
|
|
24
24
|
global?: boolean;
|
|
25
25
|
tag?: string;
|
|
26
26
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
27
27
|
tag: string;
|
|
28
|
-
themeMode: import("../index.ts").
|
|
28
|
+
themeMode: import("../index.ts").SdThemeMode;
|
|
29
29
|
global: boolean;
|
|
30
30
|
}>;
|
|
31
31
|
__isFragment?: never;
|
|
32
32
|
__isTeleport?: never;
|
|
33
33
|
__isSuspense?: never;
|
|
34
34
|
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
35
|
-
theme?: import("../index.ts").
|
|
36
|
-
themeMode?: import("../index.ts").
|
|
35
|
+
theme?: import("../index.ts").SdThemeConfig;
|
|
36
|
+
themeMode?: import("../index.ts").SdThemeMode;
|
|
37
37
|
global?: boolean;
|
|
38
38
|
tag?: string;
|
|
39
39
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
40
40
|
tag: string;
|
|
41
|
-
themeMode: import("../index.ts").
|
|
41
|
+
themeMode: import("../index.ts").SdThemeMode;
|
|
42
42
|
global: boolean;
|
|
43
43
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
44
44
|
$slots: {
|