@omnia/fx 8.0.403-dev → 8.0.405-dev
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/internal-do-not-import-from-here/core/utils/Utils.d.ts +3 -1
- package/internal-do-not-import-from-here/stores/DefineStore.d.ts +1 -68
- package/internal-do-not-import-from-here/ux/admin/usermanagement/loc/localize.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/admin/usermanagement/userproperties/GDPRBlade.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/aurora/admin/blades/typography/blades/SelectBreakpointBlade.d.ts +16 -0
- package/internal-do-not-import-from-here/ux/aurora/admin/blades/typography/store/TypographyEditorStore.d.ts +99 -62
- package/internal-do-not-import-from-here/ux/aurora/components/textstylepicker/store/TextStylePickerStore.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/aurora/components/typography/{TypographyEditor.d.ts → TextStyleEditor.d.ts} +39 -21
- package/internal-do-not-import-from-here/ux/aurora/components/typography/TypographyBlueprintsViewer.d.ts +6 -4
- package/internal-do-not-import-from-here/ux/aurora/components/typography/components/TypographyFillRenderer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/aurora/components/typography/store/TextStyleEditorStore.d.ts +53 -0
- package/internal-do-not-import-from-here/ux/aurora/components/typography/store/TypographyViewerStore.d.ts +45 -0
- package/internal-do-not-import-from-here/ux/aurora/designkits/documentation/themes/BlueprintsTypography.d.ts +0 -108
- package/internal-do-not-import-from-here/ux/aurora/store/TypographyBlueprintManager.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/aurora/styling/styles/Typography.d.ts +43 -8
- package/internal-do-not-import-from-here/ux/datetimezonerenderer/DateTimeZoneRenderer.d.ts +4 -4
- package/internal-do-not-import-from-here/ux/enterpriseproperties/settings/extendedproperty/ExtendedPropertySettings.d.ts +8 -4
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/colorstyle/ColorButton.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/link/LinkButton.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/spacing/SpacingButton.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/typography/TypographyButton.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/markdown/MarkdownEditor.d.ts +8 -8
- package/internal-do-not-import-from-here/ux/markdown/MarkdownRenderer.d.ts +8 -8
- package/internal-do-not-import-from-here/ux/mediagallery/gallerydialogproviders/slider/Delimiter.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/oxide/appbar/Appbar.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/column/ColumnGrid.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/dialog/Dialog.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/list/List.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/panel/store/PanelStore.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/oxide/text/Text.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/properties/builtins/birthday/BirthdayEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/date/DateEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/date-time/DateTimeEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/phone-number/PhoneNumberConfiguration.d.ts +7 -0
- package/internal-do-not-import-from-here/ux/properties/builtins/phone-number/PhoneNumberEditor.d.ts +19 -67
- package/internal-do-not-import-from-here/ux/properties/property-configuration/LabelOptionsRenderer.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/properties/property-cover/PropertyCover.d.ts +4 -3
- package/internal-do-not-import-from-here/wctypings.d.ts +16 -8
- package/package.json +2 -2
- package/internal-do-not-import-from-here/ux/aurora/components/typography/store/TypographyEditorStore.d.ts +0 -63
@@ -1,4 +1,4 @@
|
|
1
|
-
import { TimePeriodSettings, TenantRegionalSettings, IIcon } from "../../models";
|
1
|
+
import { TimePeriodSettings, TenantRegionalSettings, IIcon, FirstDayOfWeeks } from "../../models";
|
2
2
|
export declare namespace Utils {
|
3
3
|
function asyncForEach<T>(array: Array<T>, callback: (item: T, index?: number, items?: Array<T>) => Promise<void>): Promise<void>;
|
4
4
|
function isPromise(val: any): boolean;
|
@@ -126,6 +126,7 @@ export declare namespace Utils {
|
|
126
126
|
function getFileType(fileName: string): string;
|
127
127
|
function isImageFormatSupportForMediaPicker(fileName: string): boolean;
|
128
128
|
function formatDateTime(regionalSettings: TenantRegionalSettings, date?: Date | string): string;
|
129
|
+
function getVuetifyFirstDayOfWeek(value: FirstDayOfWeeks): 0 | 1;
|
129
130
|
function removeClaimPrefixFromLoginName(loginName: string): string;
|
130
131
|
/**
|
131
132
|
* Get profile url for online and other environment like sharepoint server
|
@@ -154,4 +155,5 @@ export declare namespace Utils {
|
|
154
155
|
* @returns
|
155
156
|
*/
|
156
157
|
function getQueryStringFromCurrentUrl(name: string): string;
|
158
|
+
function convertStringToArray(object: any): any;
|
157
159
|
}
|
@@ -1,68 +1 @@
|
|
1
|
-
|
2
|
-
import { IMessageBusSubscriptionHandler, IMessageBusTopicPublishSubscriber, InstanceLifetimes } from "@omnia/fx-models";
|
3
|
-
type MutateFn<T> = (value: T | ((prev: T) => T)) => void;
|
4
|
-
export type StoreEvents<TState extends object, TEvents extends Record<string, IMessageBusTopicPublishSubscriber<any>> = {}> = {
|
5
|
-
[K in keyof TState as `onMutated${Capitalize<string & K>}`]: MessageBusExposeOnlySubscription<TState[K]>;
|
6
|
-
} & TEvents;
|
7
|
-
type MapActionOnDispatching<T extends Function> = T extends (...args: infer U) => any ? (...args: U) => void : never;
|
8
|
-
type MapActionOnDispatched<T extends Function> = T extends (...args: infer U) => Promise<infer Y> | infer Y ? (result: Y, ...args: U) => void : never;
|
9
|
-
type MapActionOnFailure<T extends Function> = T extends (...args: infer U) => any ? (failureReason: any, ...args: U) => void : never;
|
10
|
-
export type StoreReturnDefineAction<TAction extends {
|
11
|
-
[key: string]: any;
|
12
|
-
}> = {
|
13
|
-
onDispatching: {
|
14
|
-
[k in keyof TAction]: {
|
15
|
-
subscribe(fn: MapActionOnDispatching<TAction[k]>): IMessageBusSubscriptionHandler;
|
16
|
-
};
|
17
|
-
};
|
18
|
-
onDispatched: {
|
19
|
-
[k in keyof TAction]: {
|
20
|
-
subscribe(fn: MapActionOnDispatched<TAction[k]>): IMessageBusSubscriptionHandler;
|
21
|
-
};
|
22
|
-
};
|
23
|
-
onFailure: {
|
24
|
-
[k in keyof TAction]: {
|
25
|
-
subscribe(fn: MapActionOnFailure<TAction[k]>): IMessageBusSubscriptionHandler;
|
26
|
-
};
|
27
|
-
};
|
28
|
-
} & TAction;
|
29
|
-
export interface SetupStoreContext extends SetupFactoryContext {
|
30
|
-
defineState<TState extends object, TEvents extends Record<string, IMessageBusTopicPublishSubscriber<any>> = Record<string, IMessageBusTopicPublishSubscriber<any>>>(state: TState): {
|
31
|
-
state: TState;
|
32
|
-
events: StoreEvents<TState, TEvents>;
|
33
|
-
mutate: {
|
34
|
-
[K in keyof TState]: MutateFn<TState[K]>;
|
35
|
-
};
|
36
|
-
};
|
37
|
-
defineActions<TActions extends {
|
38
|
-
[key: string]: any;
|
39
|
-
}>(actions: TActions): StoreReturnDefineAction<TActions>;
|
40
|
-
}
|
41
|
-
export interface IReturnSetupStore<TState, TGetters, TActions extends {
|
42
|
-
[key: string]: Function;
|
43
|
-
}, TEvents> {
|
44
|
-
state?: TState;
|
45
|
-
get?: TGetters;
|
46
|
-
actions?: StoreReturnDefineAction<TActions>;
|
47
|
-
events?: TEvents;
|
48
|
-
name?: string;
|
49
|
-
}
|
50
|
-
export declare function defineStore<TState extends object, TGetters extends object, TActions extends {
|
51
|
-
[key: string]: any;
|
52
|
-
}, TEvents extends Record<string, MessageBusExposeOnlySubscription<any>>, InferReturnSetup extends IReturnSetupStore<TState, TGetters, TActions, TEvents>>(name: string, setup: (ctx: SetupStoreContext) => InferReturnSetup, lifetime?: InstanceLifetimes): ReturnType<typeof defineFactory<InferReturnSetup>>;
|
53
|
-
export declare function defineStore<TState extends object, TGetters extends object, TActions extends {
|
54
|
-
[key: string]: any;
|
55
|
-
}, TEvents extends Record<string, MessageBusExposeOnlySubscription<any>>, InferReturnSetup extends IReturnSetupStore<TState, TGetters, TActions, TEvents>, T1>(name: string, setup: (ctx: SetupStoreContext, param1: T1) => InferReturnSetup, lifetime?: InstanceLifetimes): ReturnType<typeof defineFactory<InferReturnSetup, T1>>;
|
56
|
-
export declare function defineStore<TState extends object, TGetters extends object, TActions extends {
|
57
|
-
[key: string]: any;
|
58
|
-
}, TEvents extends Record<string, MessageBusExposeOnlySubscription<any>>, InferReturnSetup extends IReturnSetupStore<TState, TGetters, TActions, TEvents>, T1, T2>(name: string, setup: (ctx: SetupStoreContext, param1: T1, param2: T2) => InferReturnSetup, lifetime?: InstanceLifetimes): ReturnType<typeof defineFactory<InferReturnSetup, T1, T2>>;
|
59
|
-
export declare function defineStore<TState extends object, TGetters extends object, TActions extends {
|
60
|
-
[key: string]: any;
|
61
|
-
}, TEvents extends Record<string, MessageBusExposeOnlySubscription<any>>, InferReturnSetup extends IReturnSetupStore<TState, TGetters, TActions, TEvents>, T1, T2, T3>(name: string, setup: (ctx: SetupStoreContext, param1: T1, param2: T2, param3: T3, lifetime?: InstanceLifetimes) => InferReturnSetup): ReturnType<typeof defineFactory<InferReturnSetup, T1, T2, T3>>;
|
62
|
-
export declare function defineStore<TState extends object, TGetters extends object, TActions extends {
|
63
|
-
[key: string]: any;
|
64
|
-
}, TEvents extends Record<string, MessageBusExposeOnlySubscription<any>>, InferReturnSetup extends IReturnSetupStore<TState, TGetters, TActions, TEvents>, T1, T2, T3, T4>(name: string, setup: (ctx: SetupStoreContext, param1: T1, param2: T2, param3: T3, param4: T4, lifetime?: InstanceLifetimes) => InferReturnSetup): ReturnType<typeof defineFactory<InferReturnSetup, T1, T2, T3, T4>>;
|
65
|
-
export declare function defineStore<TState extends object, TGetters extends object, TActions extends {
|
66
|
-
[key: string]: any;
|
67
|
-
}, TEvents extends Record<string, MessageBusExposeOnlySubscription<any>>, InferReturnSetup extends IReturnSetupStore<TState, TGetters, TActions, TEvents>, T1, T2, T3, T4, T5>(name: string, setup: (ctx: SetupStoreContext, param1: T1, param2: T2, param3: T3, param4: T4, param5: T5) => InferReturnSetup, lifetime?: InstanceLifetimes): ReturnType<typeof defineFactory<InferReturnSetup, T1, T2, T3, T4, T5>>;
|
68
|
-
export {};
|
1
|
+
export { defineStore, type IReturnSetupStore, type SetupStoreContext, type StoreEvents, type StoreReturnDefineAction } from "@omnia/fx-models/internal-do-not-import-from-here/shared";
|
@@ -177,7 +177,7 @@ export declare namespace UserManagementLocalization {
|
|
177
177
|
General: string;
|
178
178
|
Authentication: string;
|
179
179
|
Onboarding: string;
|
180
|
-
|
180
|
+
UserProfileCompletion: string;
|
181
181
|
};
|
182
182
|
AuthenticationBlades: {
|
183
183
|
ExternalProviders: string;
|
package/internal-do-not-import-from-here/ux/admin/usermanagement/userproperties/GDPRBlade.d.ts
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
declare const _default: (props: import("@omnia/fx/ux").ExtractProps<Record<string, any>> & {} & {
|
2
|
+
"v-slots"?: {} & Omit<{
|
3
|
+
default?: import("vue").Slot;
|
4
|
+
}, never>;
|
5
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, string> & import("@omnia/fx/ux").VNodeEvents) => any;
|
6
|
+
export default _default;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{}>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
3
|
+
P: {};
|
4
|
+
B: {};
|
5
|
+
D: {};
|
6
|
+
C: {};
|
7
|
+
M: {};
|
8
|
+
Defaults: {};
|
9
|
+
}, Readonly<import("vue").ExtractPropTypes<{}>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {}>;
|
10
|
+
__isFragment?: never;
|
11
|
+
__isTeleport?: never;
|
12
|
+
__isSuspense?: never;
|
13
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, 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 & {
|
14
|
+
propsDefinition: Omit<Readonly<{} & {}>, never>;
|
15
|
+
};
|
16
|
+
export default _default;
|
@@ -1,85 +1,110 @@
|
|
1
|
-
import { guid, ITemplateRegistration, TypographyBlueprint, TextStyleDefinition, TextStyleSizes, TextStyleType, TypographyFontDefinition, IFontBlueprints, TypographyFontRef, BlueprintVariant, FontAwesomeIcon } from "@omnia/fx-models";
|
1
|
+
import { guid, ITemplateRegistration, TypographyBlueprint, TextStyleDefinition, TextStyleSizes, TextStyleType, TypographyFontDefinition, IFontBlueprints, TypographyFontRef, BlueprintVariant, FontAwesomeIcon, TextStyleBreakpointType } from "@omnia/fx-models";
|
2
2
|
export interface BreakpointItem {
|
3
3
|
icon: FontAwesomeIcon;
|
4
4
|
title: string;
|
5
|
-
|
6
|
-
|
5
|
+
subTitle: string;
|
6
|
+
scale: TextStyleBreakpointType;
|
7
7
|
}
|
8
|
+
type StyleVariant = "system-styles" | "custom-styles" | "type-scale";
|
8
9
|
export declare const useTypographyEditorStore: () => {
|
9
10
|
state: {
|
10
11
|
blueprintRegistration: ITemplateRegistration<TypographyBlueprint>;
|
11
12
|
availableFonts: ITemplateRegistration<IFontBlueprints>;
|
12
13
|
blueprint: TypographyBlueprint;
|
13
14
|
editMode: boolean;
|
14
|
-
|
15
|
-
styleEditVariant: "system-styles" | "custom-styles";
|
16
|
-
selectedTypography: {
|
15
|
+
editing: {
|
17
16
|
type: TextStyleType;
|
18
|
-
|
19
|
-
|
17
|
+
styleVariant: StyleVariant;
|
18
|
+
};
|
19
|
+
selected: {
|
20
|
+
textStyle: {
|
21
|
+
type: TextStyleType;
|
22
|
+
size: TextStyleSizes;
|
23
|
+
definition: TextStyleDefinition;
|
24
|
+
typeScaleDefinition: TextStyleDefinition;
|
25
|
+
};
|
26
|
+
breakpoint: BreakpointItem;
|
20
27
|
};
|
21
|
-
selectedBreakpoint: BreakpointItem;
|
22
28
|
};
|
23
29
|
events: import("@omnia/fx/stores").StoreEvents<{
|
24
30
|
blueprintRegistration: ITemplateRegistration<TypographyBlueprint>;
|
25
31
|
availableFonts: ITemplateRegistration<IFontBlueprints>;
|
26
32
|
blueprint: TypographyBlueprint;
|
27
33
|
editMode: boolean;
|
28
|
-
|
29
|
-
styleEditVariant: "system-styles" | "custom-styles";
|
30
|
-
selectedTypography: {
|
34
|
+
editing: {
|
31
35
|
type: TextStyleType;
|
32
|
-
|
33
|
-
|
36
|
+
styleVariant: StyleVariant;
|
37
|
+
};
|
38
|
+
selected: {
|
39
|
+
textStyle: {
|
40
|
+
type: TextStyleType;
|
41
|
+
size: TextStyleSizes;
|
42
|
+
definition: TextStyleDefinition;
|
43
|
+
typeScaleDefinition: TextStyleDefinition;
|
44
|
+
};
|
45
|
+
breakpoint: BreakpointItem;
|
34
46
|
};
|
35
|
-
selectedBreakpoint: BreakpointItem;
|
36
47
|
}, Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>>;
|
37
48
|
actions: import("@omnia/fx/stores").StoreReturnDefineAction<{
|
49
|
+
styles(): {
|
50
|
+
edit: (type: StyleVariant) => void;
|
51
|
+
};
|
52
|
+
typeScale(): {
|
53
|
+
update: {
|
54
|
+
scale(value: number): void;
|
55
|
+
baseFontSize(value: number): void;
|
56
|
+
lineHeightMultiplier(value: number): void;
|
57
|
+
};
|
58
|
+
ativateBreakpoint(value: boolean): void;
|
59
|
+
};
|
38
60
|
calculate(): {
|
39
61
|
editingDefinitionFromBaseStyles(): void;
|
40
62
|
baseScale(): void;
|
41
63
|
};
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
}
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
64
|
+
breakpoint(): {
|
65
|
+
setSelected(breakpoint: TextStyleBreakpointType): void;
|
66
|
+
activate(value: boolean): void;
|
67
|
+
};
|
68
|
+
variants(): {
|
69
|
+
add(variantType: TextStyleType): BlueprintVariant;
|
70
|
+
delete(): void;
|
71
|
+
};
|
72
|
+
definition(): {
|
73
|
+
updateSelected(): void;
|
74
|
+
setSelected(type: TextStyleType, size: TextStyleSizes): void;
|
75
|
+
};
|
76
|
+
blueprints(): {
|
77
|
+
edit(blueprints: ITemplateRegistration<TypographyBlueprint>): void;
|
78
|
+
add(): void;
|
79
|
+
copy(blueprint: TypographyBlueprint): void;
|
80
|
+
};
|
81
|
+
font(): {
|
82
|
+
set: {
|
83
|
+
font(font: {
|
84
|
+
family: string;
|
85
|
+
cdn?: string;
|
86
|
+
manifestId?: guid;
|
87
|
+
}): void;
|
88
|
+
fontForTypoType(font: TypographyFontDefinition): void;
|
89
|
+
fontForTypoTypeSize(font: TypographyFontDefinition): void;
|
90
|
+
};
|
91
|
+
};
|
92
|
+
save(): {
|
93
|
+
registration(): Promise<boolean>;
|
94
|
+
tenantAvailableFont(): Promise<boolean>;
|
95
|
+
};
|
96
|
+
deleteRegistration(): Promise<boolean>;
|
59
97
|
}>;
|
60
98
|
get: {
|
61
|
-
|
62
|
-
|
63
|
-
|
99
|
+
textStyleName: (textStyleType: TextStyleType, size: TextStyleSizes) => string;
|
100
|
+
typeScale: {
|
101
|
+
active: {
|
102
|
+
readonly scale: number;
|
103
|
+
readonly baseFontSize: number;
|
104
|
+
readonly lineHeight: number;
|
64
105
|
};
|
65
106
|
};
|
66
|
-
definitionType: () => import("@omnia/fx-models").VariantBlueprints<
|
67
|
-
baseFontSize?: import("@omnia/fx-models").BaseScaleBreakpoint;
|
68
|
-
scale?: import("@omnia/fx-models").BaseScaleBreakpoint;
|
69
|
-
lineHeightMultiplier?: import("@omnia/fx-models").BaseScaleBreakpoint;
|
70
|
-
styles: {
|
71
|
-
s1: TextStyleDefinition;
|
72
|
-
s2: TextStyleDefinition;
|
73
|
-
s3: TextStyleDefinition;
|
74
|
-
s4: TextStyleDefinition;
|
75
|
-
s5: TextStyleDefinition;
|
76
|
-
s6: TextStyleDefinition;
|
77
|
-
s7: TextStyleDefinition;
|
78
|
-
s8: TextStyleDefinition;
|
79
|
-
s9: TextStyleDefinition;
|
80
|
-
s10: TextStyleDefinition;
|
81
|
-
};
|
82
|
-
} | import("@omnia/fx-models").VariantBlueprints<TextStyleDefinition> | {
|
107
|
+
definitionType: () => import("@omnia/fx-models").VariantBlueprints<TextStyleDefinition> | {
|
83
108
|
xl: TextStyleDefinition;
|
84
109
|
l: TextStyleDefinition;
|
85
110
|
m: TextStyleDefinition;
|
@@ -87,28 +112,35 @@ export declare const useTypographyEditorStore: () => {
|
|
87
112
|
xs: TextStyleDefinition;
|
88
113
|
font?: TypographyFontRef;
|
89
114
|
} | {
|
90
|
-
xl
|
115
|
+
xl: TextStyleDefinition;
|
91
116
|
l: TextStyleDefinition;
|
92
117
|
m: TextStyleDefinition;
|
93
118
|
s: TextStyleDefinition;
|
94
119
|
xs: TextStyleDefinition;
|
95
120
|
font?: TypographyFontRef;
|
96
121
|
} | {
|
97
|
-
xl
|
98
|
-
l
|
122
|
+
xl: TextStyleDefinition;
|
123
|
+
l: TextStyleDefinition;
|
99
124
|
m: TextStyleDefinition;
|
100
|
-
s
|
101
|
-
xs
|
125
|
+
s: TextStyleDefinition;
|
126
|
+
xs: TextStyleDefinition;
|
102
127
|
font?: TypographyFontRef;
|
103
128
|
} | {
|
104
129
|
xl?: TextStyleDefinition;
|
105
|
-
l
|
130
|
+
l: TextStyleDefinition;
|
131
|
+
m: TextStyleDefinition;
|
132
|
+
s: TextStyleDefinition;
|
133
|
+
xs: TextStyleDefinition;
|
134
|
+
font?: TypographyFontRef;
|
135
|
+
} | {
|
136
|
+
xl: TextStyleDefinition;
|
137
|
+
l: TextStyleDefinition;
|
106
138
|
m: TextStyleDefinition;
|
107
|
-
s
|
108
|
-
xs
|
139
|
+
s: TextStyleDefinition;
|
140
|
+
xs: TextStyleDefinition;
|
109
141
|
font?: TypographyFontRef;
|
110
142
|
};
|
111
|
-
|
143
|
+
selectedTextStyleSizeFont: () => string;
|
112
144
|
};
|
113
145
|
bladeId: {
|
114
146
|
startBlade: guid;
|
@@ -117,10 +149,14 @@ export declare const useTypographyEditorStore: () => {
|
|
117
149
|
editStylesBlade: guid;
|
118
150
|
editScaleBlade: guid;
|
119
151
|
settingsBlade: guid;
|
152
|
+
breakpointBlade: guid;
|
120
153
|
};
|
121
154
|
rules: {
|
122
155
|
breakpoint: {
|
123
|
-
|
156
|
+
readonly showStatus: boolean;
|
157
|
+
isActive: (size: TextStyleBreakpointType) => boolean;
|
158
|
+
readonly showEnableDisable: boolean;
|
159
|
+
readonly isEnabled: boolean;
|
124
160
|
};
|
125
161
|
};
|
126
162
|
dataTypes: {
|
@@ -129,3 +165,4 @@ export declare const useTypographyEditorStore: () => {
|
|
129
165
|
} & {
|
130
166
|
dispose?: () => void;
|
131
167
|
};
|
168
|
+
export {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { TextStyleDefinition } from "@omnia/fx-models";
|
1
|
+
import { TextStyleDefinition, TypographyBlueprint, TextStyleBreakpointType, TextStyleSizes } from "@omnia/fx-models";
|
2
2
|
import { VNodeChild } from "vue";
|
3
3
|
type EditorVariant = "default" | "dialog" | "blade-inline";
|
4
4
|
declare const _default: {
|
@@ -14,8 +14,17 @@ declare const _default: {
|
|
14
14
|
sampleText: {
|
15
15
|
type: import("vue").PropType<string>;
|
16
16
|
};
|
17
|
+
breakpoint: {
|
18
|
+
type: import("vue").PropType<TextStyleBreakpointType>;
|
19
|
+
};
|
20
|
+
textStyleSize: {
|
21
|
+
type: import("vue").PropType<TextStyleSizes>;
|
22
|
+
};
|
17
23
|
textStyleType: {
|
18
|
-
type: import("vue").PropType<"
|
24
|
+
type: import("vue").PropType<"display" | "headline" | "title" | "text" | "label" | "variants">;
|
25
|
+
};
|
26
|
+
blueprint: {
|
27
|
+
type: import("vue").PropType<TypographyBlueprint>;
|
19
28
|
};
|
20
29
|
variant: {
|
21
30
|
type: import("vue").PropType<EditorVariant>;
|
@@ -86,11 +95,7 @@ declare const _default: {
|
|
86
95
|
};
|
87
96
|
}>;
|
88
97
|
};
|
89
|
-
}
|
90
|
-
"onClick:confirm"?: (model: TextStyleDefinition) => any;
|
91
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
92
|
-
"click:confirm": (model: TextStyleDefinition) => true;
|
93
|
-
}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
98
|
+
}>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
94
99
|
P: {};
|
95
100
|
B: {};
|
96
101
|
D: {};
|
@@ -109,8 +114,17 @@ declare const _default: {
|
|
109
114
|
sampleText: {
|
110
115
|
type: import("vue").PropType<string>;
|
111
116
|
};
|
117
|
+
breakpoint: {
|
118
|
+
type: import("vue").PropType<TextStyleBreakpointType>;
|
119
|
+
};
|
120
|
+
textStyleSize: {
|
121
|
+
type: import("vue").PropType<TextStyleSizes>;
|
122
|
+
};
|
112
123
|
textStyleType: {
|
113
|
-
type: import("vue").PropType<"
|
124
|
+
type: import("vue").PropType<"display" | "headline" | "title" | "text" | "label" | "variants">;
|
125
|
+
};
|
126
|
+
blueprint: {
|
127
|
+
type: import("vue").PropType<TypographyBlueprint>;
|
114
128
|
};
|
115
129
|
variant: {
|
116
130
|
type: import("vue").PropType<EditorVariant>;
|
@@ -181,9 +195,7 @@ declare const _default: {
|
|
181
195
|
};
|
182
196
|
}>;
|
183
197
|
};
|
184
|
-
}
|
185
|
-
"onClick:confirm"?: (model: TextStyleDefinition) => any;
|
186
|
-
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {}>;
|
198
|
+
}>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {}>;
|
187
199
|
__isFragment?: never;
|
188
200
|
__isTeleport?: never;
|
189
201
|
__isSuspense?: never;
|
@@ -199,8 +211,17 @@ declare const _default: {
|
|
199
211
|
sampleText: {
|
200
212
|
type: import("vue").PropType<string>;
|
201
213
|
};
|
214
|
+
breakpoint: {
|
215
|
+
type: import("vue").PropType<TextStyleBreakpointType>;
|
216
|
+
};
|
217
|
+
textStyleSize: {
|
218
|
+
type: import("vue").PropType<TextStyleSizes>;
|
219
|
+
};
|
202
220
|
textStyleType: {
|
203
|
-
type: import("vue").PropType<"
|
221
|
+
type: import("vue").PropType<"display" | "headline" | "title" | "text" | "label" | "variants">;
|
222
|
+
};
|
223
|
+
blueprint: {
|
224
|
+
type: import("vue").PropType<TypographyBlueprint>;
|
204
225
|
};
|
205
226
|
variant: {
|
206
227
|
type: import("vue").PropType<EditorVariant>;
|
@@ -271,11 +292,7 @@ declare const _default: {
|
|
271
292
|
};
|
272
293
|
}>;
|
273
294
|
};
|
274
|
-
}
|
275
|
-
"onClick:confirm"?: (model: TextStyleDefinition) => any;
|
276
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
277
|
-
"click:confirm": (model: TextStyleDefinition) => true;
|
278
|
-
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
295
|
+
}>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, 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 & {
|
279
296
|
propsDefinition: Omit<Readonly<{} & {
|
280
297
|
name?: {
|
281
298
|
[x: `onUpdate:${string}`]: {
|
@@ -338,6 +355,7 @@ declare const _default: {
|
|
338
355
|
};
|
339
356
|
}>;
|
340
357
|
};
|
358
|
+
blueprint?: TypographyBlueprint;
|
341
359
|
variant?: EditorVariant;
|
342
360
|
modelValue?: TextStyleDefinition;
|
343
361
|
"v-slots"?: {
|
@@ -349,9 +367,9 @@ declare const _default: {
|
|
349
367
|
"v-model"?: TextStyleDefinition;
|
350
368
|
sampleText?: string;
|
351
369
|
toolbarCallback?: (value: () => VNodeChild) => void;
|
352
|
-
textStyleType?: "
|
353
|
-
|
354
|
-
|
355
|
-
}
|
370
|
+
textStyleType?: "display" | "headline" | "title" | "text" | "label" | "variants";
|
371
|
+
textStyleSize?: TextStyleSizes;
|
372
|
+
breakpoint?: TextStyleBreakpointType;
|
373
|
+
}>, never>;
|
356
374
|
};
|
357
375
|
export default _default;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { BlueprintVariant, ThemeContextType, TypographyBlueprint, TextStyleSizes, TextStyleType } from "@omnia/fx-models";
|
1
|
+
import { BlueprintVariant, ThemeContextType, TypographyBlueprint, TextStyleSizes, TextStyleType, TextStyleBreakpointType } from "@omnia/fx-models";
|
2
2
|
import { DefineEmit } from "@omnia/fx/ux";
|
3
|
+
import { ViewTypes } from "./store/TypographyViewerStore";
|
3
4
|
type Variant = "list" | "picker";
|
4
|
-
type ViewTypes = "type-scale" | "system-styles" | "custom-styles";
|
5
5
|
declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
|
6
6
|
blueprint?: TypographyBlueprint;
|
7
7
|
} & {
|
@@ -12,18 +12,20 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
|
|
12
12
|
variant?: Variant;
|
13
13
|
} & {
|
14
14
|
viewtype?: ViewTypes;
|
15
|
+
} & {
|
16
|
+
breakpoint?: TextStyleBreakpointType;
|
15
17
|
} & {
|
16
18
|
editable?: boolean;
|
17
19
|
} & {
|
18
20
|
themeType?: ThemeContextType;
|
19
21
|
} & DefineEmit<"click:select", (typography: TextStyleType, size: TextStyleSizes) => true> & DefineEmit<"click:selectFill", (variant: BlueprintVariant) => true> & DefineEmit<"click:add", () => true> & DefineEmit<"click:addFill", () => true>> & {
|
20
22
|
"onClick:add"?: () => any;
|
21
|
-
"onClick:select"?: (typography: "
|
23
|
+
"onClick:select"?: (typography: "display" | "headline" | "title" | "text" | "label" | "variants", size: TextStyleSizes) => any;
|
22
24
|
"onClick:selectFill"?: (variant: BlueprintVariant) => any;
|
23
25
|
"onClick:addFill"?: () => any;
|
24
26
|
} & {
|
25
27
|
"v-slots"?: {} & Omit<{
|
26
28
|
default?: import("vue").Slot;
|
27
29
|
}, never>;
|
28
|
-
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "blueprint" | "variant" | "editable" | "toned" | "themeType" | "emit:click:add" | "emit:click:select" | "sampleText" | "viewtype" | "emit:click:selectFill" | "emit:click:addFill"> & import("@omnia/fx/ux").VNodeEvents) => any;
|
30
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "blueprint" | "variant" | "editable" | "toned" | "themeType" | "emit:click:add" | "emit:click:select" | "sampleText" | "breakpoint" | "viewtype" | "emit:click:selectFill" | "emit:click:addFill"> & import("@omnia/fx/ux").VNodeEvents) => any;
|
29
31
|
export default _default;
|
@@ -9,7 +9,7 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
|
|
9
9
|
} & {
|
10
10
|
themeType?: ThemeContextType;
|
11
11
|
} & DefineEmit<"click:select", (typography: TextStyleType, size: TextStyleSizes) => true> & DefineEmit<"click:selectFill", (variant: BlueprintVariant) => true>> & {
|
12
|
-
"onClick:select"?: (typography: "
|
12
|
+
"onClick:select"?: (typography: "display" | "headline" | "title" | "text" | "label" | "variants", size: TextStyleSizes) => any;
|
13
13
|
"onClick:selectFill"?: (variant: BlueprintVariant) => any;
|
14
14
|
} & {
|
15
15
|
"v-slots"?: {} & Omit<{
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { FontAwesomeIcon, TextStyleBreakPoint, TextStyleDefinition, TextStyleType, TypographyBlueprint, TextStyleBreakpointType, TextStyleSizes } from "@omnia/fx-models";
|
2
|
+
export interface BreakpointItem {
|
3
|
+
icon: FontAwesomeIcon;
|
4
|
+
title: string;
|
5
|
+
active: boolean;
|
6
|
+
breakpoint: TextStyleBreakpointType;
|
7
|
+
}
|
8
|
+
export declare const useTextStyleEditorStore: () => {
|
9
|
+
state: {
|
10
|
+
internalModel: TextStyleDefinition;
|
11
|
+
blueprint: TypographyBlueprint;
|
12
|
+
textStyleType: "display" | "headline" | "title" | "text" | "label" | "variants";
|
13
|
+
textStyleSize: TextStyleSizes;
|
14
|
+
breakpoint: TextStyleBreakpointType;
|
15
|
+
};
|
16
|
+
actions: import("@omnia/fx/stores").StoreReturnDefineAction<{
|
17
|
+
set: () => {
|
18
|
+
fontSize: {
|
19
|
+
activateCustom: (value: boolean) => void;
|
20
|
+
value(value: number): void;
|
21
|
+
};
|
22
|
+
lineHeight: {
|
23
|
+
readonly calculate: void;
|
24
|
+
activateCustom: (value: boolean) => void;
|
25
|
+
value(value: number): void;
|
26
|
+
multiplier: (value: number) => void;
|
27
|
+
};
|
28
|
+
fontWeight: (value: number) => void;
|
29
|
+
letterSpacing: (value: number) => void;
|
30
|
+
};
|
31
|
+
cleanBreakpoint: () => void;
|
32
|
+
ensureBreakpoint: () => void;
|
33
|
+
initState: (model: TextStyleDefinition, textStyleType: TextStyleType, breakpoint: TextStyleBreakpointType, blueprint: TypographyBlueprint, textStyleSize: TextStyleSizes) => void;
|
34
|
+
}>;
|
35
|
+
get: {
|
36
|
+
typeScale: {
|
37
|
+
readonly lineHeightMultiplier: number;
|
38
|
+
readonly defaultTextStyle: TextStyleBreakPoint;
|
39
|
+
};
|
40
|
+
readonly textDefinition: TextStyleBreakPoint;
|
41
|
+
};
|
42
|
+
rules: {
|
43
|
+
show: {
|
44
|
+
readonly name: boolean;
|
45
|
+
readonly upperCaseAndItalicSettings: boolean;
|
46
|
+
};
|
47
|
+
};
|
48
|
+
dataTypes: {
|
49
|
+
breakpoints: BreakpointItem[];
|
50
|
+
};
|
51
|
+
} & {
|
52
|
+
dispose?: () => void;
|
53
|
+
};
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { TextStyleDefinition, TextStyleSizes, TextStyleType, TypographyBlueprint, TextStyleBreakpointType } from "@omnia/fx-models";
|
2
|
+
export type ViewTypes = "type-scale" | "system-styles" | "custom-styles";
|
3
|
+
export declare const useTypographyViewerStore: () => {
|
4
|
+
state: {
|
5
|
+
blueprint: TypographyBlueprint;
|
6
|
+
viewType: ViewTypes;
|
7
|
+
breakPoint: TextStyleBreakpointType;
|
8
|
+
sampleText: string;
|
9
|
+
};
|
10
|
+
actions: import("@omnia/fx/stores").StoreReturnDefineAction<{
|
11
|
+
initState: (blueprint: TypographyBlueprint, viewType: ViewTypes, breakPoint: TextStyleBreakpointType, sampleText: string) => void;
|
12
|
+
}>;
|
13
|
+
get: {
|
14
|
+
typeScale: {
|
15
|
+
definition: {
|
16
|
+
bySize: (size: any) => {
|
17
|
+
textStyleDefinition: TextStyleDefinition;
|
18
|
+
fontSize: number;
|
19
|
+
lineHeight: number;
|
20
|
+
};
|
21
|
+
fontSize: (definition: TextStyleDefinition) => number;
|
22
|
+
lineHeight: (definition: TextStyleDefinition) => number;
|
23
|
+
};
|
24
|
+
};
|
25
|
+
textStyleName: (textStyle: TextStyleType, size: TextStyleSizes) => string;
|
26
|
+
fontSizeDisplayFormat: (fontCss: string) => string;
|
27
|
+
sampleText: (typography: TextStyleType, size: TextStyleSizes) => string;
|
28
|
+
typeStyling: (textStyleTpe: TextStyleType, size: TextStyleSizes) => any;
|
29
|
+
};
|
30
|
+
rules: {
|
31
|
+
typeScale: {
|
32
|
+
isBaseSize: (size: number) => size is 4;
|
33
|
+
isSizeUsed(size: number): boolean;
|
34
|
+
};
|
35
|
+
breakpoint: {
|
36
|
+
readonly isCustomBreakpoint: boolean;
|
37
|
+
};
|
38
|
+
variants: {
|
39
|
+
isPlaceholder: (size: string) => boolean;
|
40
|
+
};
|
41
|
+
canStyleBeDisplayed: (textStyleType: TextStyleType, size: TextStyleSizes, isVariants: boolean) => boolean;
|
42
|
+
};
|
43
|
+
} & {
|
44
|
+
dispose?: () => void;
|
45
|
+
};
|