cosey 0.1.3 → 0.1.4
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/components/audio-card/style/index.d.ts +1 -1
- package/components/audio-viewer/style/index.d.ts +1 -1
- package/components/close/style/index.d.ts +1 -1
- package/components/col/style/index.d.ts +1 -1
- package/components/col/style/index.js +1 -1
- package/components/config-provider/config-provider.vue.js +8 -4
- package/components/config-provider/override-element-plus.d.ts +3 -2
- package/components/config-provider/override-element-plus.js +2 -2
- package/components/container/container.d.ts +0 -1
- package/components/container/container.vue.js +0 -4
- package/components/container/style/index.d.ts +1 -1
- package/components/context-menu/style/index.d.ts +1 -1
- package/components/copy/copy.d.ts +0 -2
- package/components/copy/copy.vue.d.ts +1 -7
- package/components/copy/copy.vue.js +0 -1
- package/components/copy/index.d.ts +3 -19
- package/components/copy/style/index.d.ts +1 -1
- package/components/dnd-sort/dnd-sort-item.vue.js +1 -1
- package/components/dnd-sort/style/index.d.ts +1 -1
- package/components/dnd-sort/style/index.js +1 -0
- package/components/editor/components/color-picker/color-picker.style.d.ts +1 -1
- package/components/editor/components/list/list.style.d.ts +1 -1
- package/components/editor/components/picker/picker.style.d.ts +1 -1
- package/components/editor/components/resize/resize.style.d.ts +1 -1
- package/components/editor/components/table-toolbar/table-toolbar.style.d.ts +1 -1
- package/components/editor/components/toolbar/formats/table.style.d.ts +1 -1
- package/components/editor/editor.d.ts +0 -2
- package/components/editor/editor.vue.js +1 -11
- package/components/editor/modules/image-uploader/formats/image-loading.style.d.ts +1 -1
- package/components/editor/modules/image-uploader/formats/image-loading.style.js +3 -3
- package/components/editor/style/hljs.d.ts +1 -1
- package/components/editor/style/index.d.ts +1 -1
- package/components/file-card/style/index.d.ts +1 -1
- package/components/form/style/index.d.ts +1 -1
- package/components/form-list/style/index.d.ts +1 -1
- package/components/form-query/style/index.d.ts +1 -1
- package/components/highlight/highlight.d.ts +1 -1
- package/components/highlight/highlight.vue.js +11 -4
- package/components/highlight/style/index.d.ts +1 -1
- package/components/highlight/style/index.js +15 -5
- package/components/horizontal-tree/style/index.d.ts +1 -1
- package/components/icon/style/index.d.ts +1 -1
- package/components/image-card/style/index.d.ts +1 -1
- package/components/index.js +1 -0
- package/components/long-text/style/index.d.ts +1 -1
- package/components/mask/style/index.d.ts +1 -1
- package/components/media-card-group/style/index.d.ts +1 -1
- package/components/panel/style/index.d.ts +1 -1
- package/components/row/style/index.d.ts +1 -1
- package/components/scroll-view/style/index.d.ts +1 -1
- package/components/snug-menu/style/index.d.ts +1 -1
- package/components/table/style/index.d.ts +1 -1
- package/components/table/table-column/style/index.d.ts +1 -1
- package/components/table/table-column/table-column.vue.d.ts +3 -3
- package/components/table/table-column-editor/item.vue.js +1 -1
- package/components/table/table-column-editor/style/index.d.ts +1 -1
- package/components/table/table-column-editor/style/index.js +1 -0
- package/components/table/table-export/style/index.d.ts +1 -1
- package/components/table-action/style/index.d.ts +1 -1
- package/components/theme/getGlobalStyleHook.d.ts +2 -3
- package/components/theme/getGlobalStyleHook.js +3 -8
- package/components/theme/getOverrideStyleHook.d.ts +8 -0
- package/components/theme/getOverrideStyleHook.js +39 -0
- package/components/theme/getSimpleStyleHook.d.ts +2 -2
- package/components/theme/getSimpleStyleHook.js +3 -7
- package/components/theme/getStyleHook.d.ts +2 -2
- package/components/theme/getStyleHook.js +3 -7
- package/components/theme/index.d.ts +2 -1
- package/components/theme/index.js +1 -0
- package/components/theme/theme-context.d.ts +11 -2
- package/components/theme/theme-context.js +36 -6
- package/components/theme/useStyleRegister.d.ts +1 -7
- package/components/theme/useStyleRegister.js +3 -4
- package/components/theme/util/useToken.d.ts +4 -4
- package/components/theme/util/useToken.js +6 -6
- package/components/transition/style/index.d.ts +1 -1
- package/components/transition-group/index.d.ts +3 -3
- package/components/transition-group/style/index.d.ts +1 -1
- package/components/transition-group/transition-group.vue.d.ts +1 -1
- package/components/upload/index.d.ts +0 -3
- package/components/upload/style/index.d.ts +1 -1
- package/components/upload/upload.d.ts +0 -2
- package/components/upload/upload.js +0 -1
- package/components/upload/upload.vue.d.ts +0 -1
- package/components/upload/upload.vue.js +0 -4
- package/components/video-card/style/index.d.ts +1 -1
- package/components/video-card/video-card.vue.js +1 -1
- package/components/video-viewer/style/index.d.ts +1 -1
- package/config/http.d.ts +1 -1
- package/config/http.js +1 -1
- package/config/index.d.ts +22 -22
- package/config/nprogress.style.d.ts +1 -1
- package/config/nprogress.style.js +1 -1
- package/hooks/useUpsert.d.ts +15 -16
- package/hooks/useUpsert.js +3 -3
- package/layout/layout-aside/style/index.d.ts +1 -1
- package/layout/layout-auth/style/index.d.ts +1 -1
- package/layout/layout-base/layout-base.vue.js +8 -8
- package/layout/layout-base/style/index.d.ts +1 -1
- package/layout/layout-brand/style/index.d.ts +1 -1
- package/layout/layout-change-password/style/index.d.ts +1 -1
- package/layout/layout-color-scheme/style/index.d.ts +2 -2
- package/layout/layout-content/style/index.d.ts +1 -1
- package/layout/layout-exception/style/index.d.ts +1 -1
- package/layout/layout-header/style/index.d.ts +1 -1
- package/layout/layout-iframe/style/index.d.ts +1 -1
- package/layout/layout-login/style/index.d.ts +1 -1
- package/layout/layout-main/style/index.d.ts +1 -1
- package/layout/layout-mask/style/index.d.ts +1 -1
- package/layout/layout-menu/layout-menu.vue.js +5 -0
- package/layout/layout-menu/style/index.d.ts +1 -1
- package/layout/layout-search/style/index.d.ts +1 -1
- package/layout/layout-sidebar/style/index.d.ts +1 -1
- package/layout/layout-snug-aside/style/index.d.ts +1 -1
- package/layout/layout-switch-effect/style/index.d.ts +1 -1
- package/layout/layout-tabbar/layout-tabbar.vue.js +6 -1
- package/layout/layout-tabbar/style/index.d.ts +1 -1
- package/layout/layout-tabbar/style/index.js +4 -0
- package/layout/layout-topbar/style/index.d.ts +1 -1
- package/layout/layout-user-menu/style/index.d.ts +1 -1
- package/package.json +3 -3
- package/router/guard/index.js +2 -0
- package/router/guard/pageTitle.d.ts +2 -0
- package/router/guard/pageTitle.js +11 -0
- package/router/index.js +1 -1
- package/router/routes/static/auth.js +5 -6
- package/router/routes/static/exception.js +3 -3
- package/router/utils.js +11 -3
- package/store/layout.d.ts +2 -2
- package/store/user.d.ts +3 -3
- package/store/user.js +1 -0
- package/utils/dynamicCSS.d.ts +3 -2
- package/utils/dynamicCSS.js +12 -1
- package/utils/index.js +1 -1
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface AudioCardToken extends FullToken<'AudioCard'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface AudioViewerToken extends FullToken<'AudioViewer'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface CloseToken extends FullToken<'Close'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -6,7 +6,7 @@ export interface ComponentToken {
|
|
|
6
6
|
export interface ColToken extends FullToken<'Col'> {
|
|
7
7
|
}
|
|
8
8
|
export declare const getColSizeStyle: (token: ColToken, size: RowSize | null) => CSSObject;
|
|
9
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
9
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
10
10
|
hashId: import("vue").Ref<string, string>;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed, onMounted, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from 'vue';
|
|
1
|
+
import { defineComponent, computed, onUnmounted, onMounted, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from 'vue';
|
|
2
2
|
import useMergeTheme from './useMergeTheme.js';
|
|
3
3
|
import { useConfig, useConfigProvide } from './config-provider.js';
|
|
4
|
-
import { useThemeProvide } from '../theme/theme-context.js';
|
|
4
|
+
import { ThemeManager, useThemeProvide } from '../theme/theme-context.js';
|
|
5
5
|
import stdin_default$1 from './override-element-plus.js';
|
|
6
6
|
|
|
7
7
|
var stdin_default = /* @__PURE__ */defineComponent({
|
|
@@ -38,10 +38,14 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
38
38
|
prefixCls: mergedPrefixCls
|
|
39
39
|
};
|
|
40
40
|
useConfigProvide(configProvider);
|
|
41
|
-
|
|
41
|
+
const themeManager = new ThemeManager(mergedTheme);
|
|
42
|
+
onUnmounted(() => {
|
|
43
|
+
themeManager.destroy();
|
|
44
|
+
});
|
|
45
|
+
useThemeProvide(themeManager);
|
|
42
46
|
const {
|
|
43
47
|
hashId
|
|
44
|
-
} = stdin_default$1(
|
|
48
|
+
} = stdin_default$1(themeManager);
|
|
45
49
|
onMounted(() => {
|
|
46
50
|
if (!parentContext.theme) {
|
|
47
51
|
document.documentElement.classList.add(hashId.value);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare const _default: (
|
|
2
|
-
|
|
1
|
+
declare const _default: (_themeManager?: import("../theme/theme-context").ThemeManager) => {
|
|
2
|
+
readonly token: import("vue").ComputedRef<import("..").GlobalToken>;
|
|
3
|
+
readonly hashId: import("vue").Ref<string, string>;
|
|
3
4
|
};
|
|
4
5
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TinyColor } from '@ctrl/tinycolor';
|
|
2
2
|
import { capitalize } from 'lodash-es';
|
|
3
|
-
import {
|
|
3
|
+
import { getOverrideStyleHook } from '../theme/getOverrideStyleHook.js';
|
|
4
4
|
|
|
5
5
|
function generateColorPalettes(type, token, alias) {
|
|
6
6
|
const capType = capitalize(type);
|
|
@@ -22,7 +22,7 @@ function generateColorPalettes(type, token, alias) {
|
|
|
22
22
|
function getRGBVar(color) {
|
|
23
23
|
return `${color.r},${color.g},${color.b}`;
|
|
24
24
|
}
|
|
25
|
-
var stdin_default =
|
|
25
|
+
var stdin_default = getOverrideStyleHook("OverrideElementPlus", (token) => {
|
|
26
26
|
const { hashId } = token;
|
|
27
27
|
return {
|
|
28
28
|
[`.${hashId}`]: {
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface ContainerToken extends FullToken<'Container'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -5,7 +5,7 @@ export interface ComponentToken {
|
|
|
5
5
|
export interface ContextMenuToken extends FullToken<'ContextMenu'> {
|
|
6
6
|
}
|
|
7
7
|
export declare const getContextMenuContentStyle: GenerateStyle<ContextMenuToken, CSSObject>;
|
|
8
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
8
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
9
9
|
hashId: import("vue").Ref<string, string>;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { type CopyProps, type CopySlots } from './copy';
|
|
2
2
|
type __VLS_Slots = CopySlots;
|
|
3
|
-
declare const __VLS_component: import("vue").DefineComponent<CopyProps, {
|
|
4
|
-
method: () => void;
|
|
5
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
|
-
click: () => any;
|
|
7
|
-
}, string, import("vue").PublicProps, Readonly<CopyProps> & Readonly<{
|
|
8
|
-
onClick?: (() => any) | undefined;
|
|
9
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const __VLS_component: import("vue").DefineComponent<CopyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CopyProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
4
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
5
|
export default _default;
|
|
12
6
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,33 +1,17 @@
|
|
|
1
1
|
export * from './copy';
|
|
2
2
|
declare const _Copy: {
|
|
3
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./copy").CopyProps> & Readonly<{
|
|
4
|
-
onClick?: (() => any) | undefined;
|
|
5
|
-
}>, {
|
|
6
|
-
method: () => void;
|
|
7
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
-
click: () => any;
|
|
9
|
-
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./copy").CopyProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
10
4
|
P: {};
|
|
11
5
|
B: {};
|
|
12
6
|
D: {};
|
|
13
7
|
C: {};
|
|
14
8
|
M: {};
|
|
15
9
|
Defaults: {};
|
|
16
|
-
}, Readonly<import("./copy").CopyProps> & Readonly<{
|
|
17
|
-
onClick?: (() => any) | undefined;
|
|
18
|
-
}>, {
|
|
19
|
-
method: () => void;
|
|
20
|
-
}, {}, {}, {}, {}>;
|
|
10
|
+
}, Readonly<import("./copy").CopyProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
21
11
|
__isFragment?: never;
|
|
22
12
|
__isTeleport?: never;
|
|
23
13
|
__isSuspense?: never;
|
|
24
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("./copy").CopyProps> & Readonly<{
|
|
25
|
-
onClick?: (() => any) | undefined;
|
|
26
|
-
}>, {
|
|
27
|
-
method: () => void;
|
|
28
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
29
|
-
click: () => any;
|
|
30
|
-
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
14
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./copy").CopyProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
31
15
|
$slots: import("./copy").CopySlots;
|
|
32
16
|
}) & import("vue").Plugin;
|
|
33
17
|
export { _Copy as Copy };
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface MaskToken extends FullToken<'Mask'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -46,7 +46,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
46
46
|
class: `${unref(prefixCls)}-item-holder`
|
|
47
47
|
}), [createVNode(stdin_default$2, {
|
|
48
48
|
name: "co:draggable",
|
|
49
|
-
size: "
|
|
49
|
+
size: "lg"
|
|
50
50
|
})], 16
|
|
51
51
|
/* FULL_PROPS */)) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
52
52
|
class: normalizeClass(`${unref(prefixCls)}-item-content`)
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface DndSortToken extends FullToken<'DndSort'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
1
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../../theme/theme-context").ThemeManager) => {
|
|
2
2
|
hashId: import("vue").Ref<string, string>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
1
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../../theme/theme-context").ThemeManager) => {
|
|
2
2
|
hashId: import("vue").Ref<string, string>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
1
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../../theme/theme-context").ThemeManager) => {
|
|
2
2
|
hashId: import("vue").Ref<string, string>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
1
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../../theme/theme-context").ThemeManager) => {
|
|
2
2
|
hashId: import("vue").Ref<string, string>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
1
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../../theme/theme-context").ThemeManager) => {
|
|
2
2
|
hashId: import("vue").Ref<string, string>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
1
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../../../theme/theme-context").ThemeManager) => {
|
|
2
2
|
hashId: import("vue").Ref<string, string>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
@@ -34,14 +34,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
34
34
|
type: String,
|
|
35
35
|
required: false
|
|
36
36
|
},
|
|
37
|
-
minHeight: {
|
|
38
|
-
type: String,
|
|
39
|
-
required: false
|
|
40
|
-
},
|
|
41
|
-
maxHeight: {
|
|
42
|
-
type: String,
|
|
43
|
-
required: false
|
|
44
|
-
},
|
|
45
37
|
readonly: {
|
|
46
38
|
type: Boolean,
|
|
47
39
|
required: false
|
|
@@ -140,9 +132,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
140
132
|
ref: element,
|
|
141
133
|
class: normalizeClass(`${unref(prefixCls)}-container`),
|
|
142
134
|
style: normalizeStyle({
|
|
143
|
-
height: _ctx.height
|
|
144
|
-
minHeight: _ctx.minHeight,
|
|
145
|
-
maxHeight: _ctx.maxHeight
|
|
135
|
+
height: _ctx.height
|
|
146
136
|
})
|
|
147
137
|
}, null, 6
|
|
148
138
|
/* CLASS, STYLE */), createVNode(stdin_default$5), createVNode(stdin_default$6)], 2
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (
|
|
1
|
+
declare const _default: (themeManager?: import("../../../../theme/theme-context").ThemeManager) => void;
|
|
2
2
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getGlobalStyleHook } from '../../../../theme/getGlobalStyleHook.js';
|
|
2
|
-
import { spinner,
|
|
2
|
+
import { spinner, rotation } from '../../../../style/animation.js';
|
|
3
3
|
|
|
4
|
-
var stdin_default = getGlobalStyleHook("
|
|
4
|
+
var stdin_default = getGlobalStyleHook("EditorImageLoading", (token) => {
|
|
5
5
|
return {
|
|
6
6
|
".co-editor-image-loading": {
|
|
7
7
|
position: "relative",
|
|
@@ -22,7 +22,7 @@ var stdin_default = getGlobalStyleHook("co-editor-image-loading", (token) => {
|
|
|
22
22
|
display: "inline",
|
|
23
23
|
height: 42,
|
|
24
24
|
width: 42,
|
|
25
|
-
animationName:
|
|
25
|
+
animationName: rotation,
|
|
26
26
|
animationDuration: "2s",
|
|
27
27
|
animationTimingFunction: "linear",
|
|
28
28
|
animationIterationCount: "infinite",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (
|
|
1
|
+
declare const _default: (themeManager?: import("../../theme/theme-context").ThemeManager) => void;
|
|
2
2
|
export default _default;
|
|
@@ -5,7 +5,7 @@ export interface ComponentToken {
|
|
|
5
5
|
export interface EditorToken extends FullToken<'Editor'> {
|
|
6
6
|
}
|
|
7
7
|
export declare const getQuillArticleStyle: GenerateStyle<EditorToken, CSSObject>;
|
|
8
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
8
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
9
9
|
hashId: import("vue").Ref<string, string>;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface FileCardToken extends FullToken<'FileCard'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -4,7 +4,7 @@ export interface ComponentToken {
|
|
|
4
4
|
export interface FormToken extends FullToken<'Form'> {
|
|
5
5
|
formItemCls: string;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
7
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
8
8
|
hashId: import("vue").Ref<string, string>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface FormListToken extends FullToken<'FormList'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface FormQueryToken extends FullToken<'FormQuery'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -10,7 +10,7 @@ type ts = 'typescript' | 'ts' | 'tsx' | 'mts' | 'cts';
|
|
|
10
10
|
type plaintext = 'plaintext' | 'text' | 'txt';
|
|
11
11
|
export interface HighlightProps {
|
|
12
12
|
code?: string;
|
|
13
|
-
lang?: xml | json | js | ts | plaintext | 'css' | 'scss' | 'less';
|
|
13
|
+
lang?: xml | json | js | ts | plaintext | 'css' | 'scss' | 'less' | (string & {});
|
|
14
14
|
}
|
|
15
15
|
export interface HighlightSlots {
|
|
16
16
|
default?: (props: Record<string, never>) => any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createElementVNode } from 'vue';
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createVNode } from 'vue';
|
|
2
2
|
import './highlight.js';
|
|
3
3
|
import stdin_default$1 from './style/index.js';
|
|
4
|
+
import stdin_default$2 from '../copy/copy.vue.js';
|
|
4
5
|
import { useComponentConfig } from '../config-provider/config-provider.js';
|
|
5
6
|
import hljs from 'highlight.js/lib/core';
|
|
6
7
|
|
|
@@ -35,12 +36,18 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
35
36
|
}).value);
|
|
36
37
|
__expose();
|
|
37
38
|
return (_ctx, _cache) => {
|
|
38
|
-
return openBlock(), createElementBlock("
|
|
39
|
+
return openBlock(), createElementBlock("div", {
|
|
39
40
|
class: normalizeClass([unref(hashId), unref(prefixCls)])
|
|
40
|
-
}, [createElementVNode("code", {
|
|
41
|
+
}, [createElementVNode("pre", null, [createElementVNode("code", {
|
|
41
42
|
class: "hljs",
|
|
42
43
|
innerHTML: highlightedCode.value
|
|
43
|
-
}, null, 8, _hoisted_1)],
|
|
44
|
+
}, null, 8, _hoisted_1)]), createElementVNode("div", {
|
|
45
|
+
class: normalizeClass(`${unref(prefixCls)}-copy`)
|
|
46
|
+
}, [createVNode(stdin_default$2, {
|
|
47
|
+
text: _ctx.code,
|
|
48
|
+
class: normalizeClass(`${unref(prefixCls)}-copy`)
|
|
49
|
+
}, null, 8, ["text", "class"])], 2
|
|
50
|
+
/* CLASS */)], 2
|
|
44
51
|
/* CLASS */);
|
|
45
52
|
};
|
|
46
53
|
}
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface MaskToken extends FullToken<'Mask'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -5,11 +5,21 @@ const getMaskStyle = (token) => {
|
|
|
5
5
|
const { componentCls } = token;
|
|
6
6
|
return {
|
|
7
7
|
[componentCls]: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
position: "relative",
|
|
9
|
+
pre: {
|
|
10
|
+
padding: token.paddingSM,
|
|
11
|
+
overflow: "auto",
|
|
12
|
+
color: "#abb2bf",
|
|
13
|
+
background: "#282c34",
|
|
14
|
+
borderRadius: token.borderRadius
|
|
15
|
+
},
|
|
16
|
+
[`${componentCls}-copy`]: {
|
|
17
|
+
position: "absolute",
|
|
18
|
+
top: token.sizeXXS,
|
|
19
|
+
right: token.sizeXXS,
|
|
20
|
+
zIndex: 10,
|
|
21
|
+
color: token.colorWhite
|
|
22
|
+
},
|
|
13
23
|
...getHljs()
|
|
14
24
|
}
|
|
15
25
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
1
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
2
2
|
hashId: import("vue").Ref<string, string>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface IconToken extends FullToken<'Icon'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface ImageCardToken extends FullToken<'ImageCard'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
package/components/index.js
CHANGED
|
@@ -87,6 +87,7 @@ export { default as defaultAlgorithm } from './theme/themes/default/index.js';
|
|
|
87
87
|
export { generateColorPalettes as defaultGenerateColorPalettes } from './theme/themes/default/colors.js';
|
|
88
88
|
export { extractCacheStyle, extractStyle } from './theme/extractStyle.js';
|
|
89
89
|
export { getGlobalStyleHook } from './theme/getGlobalStyleHook.js';
|
|
90
|
+
export { getOverrideStyleHook } from './theme/getOverrideStyleHook.js';
|
|
90
91
|
export { getSimpleStyleHook } from './theme/getSimpleStyleHook.js';
|
|
91
92
|
export { getStyleHook } from './theme/getStyleHook.js';
|
|
92
93
|
export { default as seedToken } from './theme/themes/seed.js';
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface LongTextToken extends FullToken<'LongText'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface MaskToken extends FullToken<'Mask'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
1
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
2
2
|
hashId: import("vue").Ref<string, string>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface PanelToken extends FullToken<'Panel'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface RowToken extends FullToken<'Row'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface ScrollViewToken extends FullToken<'ScrollView'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -3,7 +3,7 @@ export interface ComponentToken {
|
|
|
3
3
|
}
|
|
4
4
|
export interface SnugMenuToken extends FullToken<'SnugMenu'> {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string,
|
|
6
|
+
declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
|
|
7
7
|
hashId: import("vue").Ref<string, string>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|