@omnia/fx 8.0.457-dev → 8.0.458-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.
Files changed (39) hide show
  1. package/internal-do-not-import-from-here/ux/aurora/components/buttonstyle/store/ButtonStyleEditorStore.d.ts +11 -2
  2. package/internal-do-not-import-from-here/ux/aurora/components/headerpicker/HeaderRenderer.d.ts +4 -8
  3. package/internal-do-not-import-from-here/ux/aurora/components/headerpicker/store/HeaderStyleEditorStore.d.ts +7 -3
  4. package/internal-do-not-import-from-here/ux/aurora/components/tabs/store/TabStyleEditorStore.d.ts +6 -3
  5. package/internal-do-not-import-from-here/ux/aurora/store/ThemeStorage.d.ts +1 -1
  6. package/internal-do-not-import-from-here/ux/aurora/store/index.d.ts +1 -14
  7. package/internal-do-not-import-from-here/ux/mobile/index.d.ts +2 -1
  8. package/internal-do-not-import-from-here/ux/oxide/tab/Tabs.d.ts +2 -2
  9. package/internal-do-not-import-from-here/ux/use/UseColorSchemaSetup.d.ts +1 -1
  10. package/internal-do-not-import-from-here/ux/velcron/core/index.d.ts +0 -1
  11. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +4 -4
  12. package/internal-do-not-import-from-here/ux/velcron/renderer/VelcronRenderer.d.ts +5 -15
  13. package/internal-do-not-import-from-here/wctypings.d.ts +0 -8
  14. package/package.json +2 -2
  15. package/internal-do-not-import-from-here/ux/aurora/components/headerpicker/HeaderPicker.css.d.ts +0 -4
  16. package/internal-do-not-import-from-here/ux/aurora/components/headerpicker/HeaderPicker_old.d.ts +0 -0
  17. package/internal-do-not-import-from-here/ux/aurora/components/headerpicker/HeaderViewer.d.ts +0 -24
  18. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/ColorManager.d.ts +0 -9
  19. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/ColorSchemaStore.d.ts +0 -46
  20. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/ComponentBlueprintStore.d.ts +0 -54
  21. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/DefineThemeProvider.d.ts +0 -4
  22. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/FontStore.d.ts +0 -18
  23. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/SpacingBlueprintStore.d.ts +0 -42
  24. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/TemplateRegistrationStore.d.ts +0 -20
  25. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/ThemeContextStore.d.ts +0 -16
  26. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/ThemeMigrations.d.ts +0 -12
  27. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/ThemeNormalizer.d.ts +0 -5
  28. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/ThemeProvider.d.ts +0 -39
  29. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/ThemeSharedModels.d.ts +0 -33
  30. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/ThemeStore.d.ts +0 -91
  31. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/TypographyBlueprintManager.d.ts +0 -22
  32. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/TypographyBlueprintStore.d.ts +0 -34
  33. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/VariantManager.d.ts +0 -7
  34. package/internal-do-not-import-from-here/ux/aurora/shared-mobile/index.d.ts +0 -15
  35. package/internal-do-not-import-from-here/ux/aurora/styling/styles/StyleFormatters.d.ts +0 -4
  36. package/internal-do-not-import-from-here/ux/velcron/core/stores/VelcronColorSchema.d.ts +0 -25
  37. package/internal-do-not-import-from-here/ux/velcron/core/stores/VelcronStore.d.ts +0 -12
  38. package/internal-do-not-import-from-here/ux/velcron/core/stores/VelcronTheming.d.ts +0 -19
  39. package/internal-do-not-import-from-here/ux/velcron/core/stores/index.d.ts +0 -3
@@ -1,4 +1,4 @@
1
- import { ButtonBlueprint, ButtonBlueprintVariant, TextBlueprint } from "@omnia/fx-models";
1
+ import { ButtonBlueprint, ButtonBlueprintVariant, TextBlueprint, VelcronAppDefinition, VelcronRendererResolverReference } from "@omnia/fx-models";
2
2
  export declare const useButtonStyleEditorStore: () => {
3
3
  state: {
4
4
  internalModel: ButtonBlueprint;
@@ -6,12 +6,21 @@ export declare const useButtonStyleEditorStore: () => {
6
6
  upperCase: boolean;
7
7
  defaultColorSchemaType: "background" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "accent7" | "accent8" | "accent9" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
8
8
  enableDynamicColor: boolean;
9
- velcronTemplate: boolean;
9
+ editingDefault: ButtonBlueprint;
10
+ editingTemplate: {
11
+ viewRenderer: VelcronRendererResolverReference;
12
+ velcronTemplate: boolean;
13
+ state: any;
14
+ definition: VelcronAppDefinition;
15
+ };
10
16
  settings: {
11
17
  buttonLabel: string;
12
18
  };
13
19
  };
14
20
  actions: import("@omnia/fx/stores").StoreReturnDefineAction<{
21
+ loadVelcronDefinitionForRenderer: () => void;
22
+ setRenderer: (renderer: VelcronRendererResolverReference) => void;
23
+ setDesignMode: (isTemplate: boolean) => void;
15
24
  updateName: (name: string) => void;
16
25
  initState: (model: ButtonBlueprint | ButtonBlueprintVariant, buttonLabel: string) => void;
17
26
  }>;
@@ -1,15 +1,11 @@
1
1
  import { BlueprintVariant, HeaderBlueprint } from "@omnia/fx-models";
2
2
  declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
3
- "emit:update:modelValue": (value: BlueprintVariant | HeaderBlueprint) => void;
4
- } & {
5
- "v-model"?: BlueprintVariant | HeaderBlueprint;
6
- } & {
7
- modelValue?: BlueprintVariant | HeaderBlueprint;
8
- }> & {
9
- "onUpdate:modelValue"?: (value: BlueprintVariant | HeaderBlueprint) => any;
3
+ blueprint?: BlueprintVariant | HeaderBlueprint;
10
4
  } & {
5
+ text?: string;
6
+ }> & {} & {
11
7
  "v-slots"?: {} & Omit<{
12
8
  default?: import("vue").Slot;
13
9
  }, never>;
14
- } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "modelValue" | "emit:update:modelValue" | "v-model"> & import("@omnia/fx/ux").VNodeEvents) => any;
10
+ } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "text" | "blueprint"> & import("@omnia/fx/ux").VNodeEvents) => any;
15
11
  export default _default;
@@ -2,9 +2,13 @@ import { ButtonBlueprint, ButtonBlueprintVariant, HeaderBlueprint, VelcronAppDef
2
2
  export declare const useHeaderStyleEditorStore: () => {
3
3
  state: {
4
4
  internalModel: HeaderBlueprint;
5
- viewRenderer: VelcronRendererResolverReference;
6
- velcronTemplate: boolean;
7
- editingDefinition: VelcronAppDefinition;
5
+ editingTemplate: {
6
+ viewRenderer: VelcronRendererResolverReference;
7
+ velcronTemplate: boolean;
8
+ state: any;
9
+ definition: VelcronAppDefinition;
10
+ };
11
+ editingDefault: HeaderBlueprint;
8
12
  settings: {
9
13
  headerLabel: string;
10
14
  };
@@ -1,4 +1,4 @@
1
- import { ColorSchemaType, ColorValue, guid, TabsBlueprint, TextBlueprint, VelcronRendererResolverReference } from "@omnia/fx-models";
1
+ import { ColorSchemaType, ColorValue, guid, TabsBlueprint, TextBlueprint, VelcronAppDefinition, VelcronRendererResolverReference } from "@omnia/fx-models";
2
2
  export declare const useTabStyleEditorStore: () => {
3
3
  state: {
4
4
  internalModel: TabsBlueprint;
@@ -7,12 +7,14 @@ export declare const useTabStyleEditorStore: () => {
7
7
  activeTab: {
8
8
  model: any;
9
9
  textBlueprint: TextBlueprint;
10
- viewTemplate: VelcronRendererResolverReference;
10
+ renderer: VelcronRendererResolverReference;
11
+ definition: VelcronAppDefinition;
11
12
  };
12
13
  inactiveTab: {
13
14
  model: any;
14
15
  textBlueprint: TextBlueprint;
15
- viewTemplate: VelcronRendererResolverReference;
16
+ renderer: VelcronRendererResolverReference;
17
+ definition: VelcronAppDefinition;
16
18
  };
17
19
  velcronTemplate: boolean;
18
20
  alignment: any;
@@ -23,6 +25,7 @@ export declare const useTabStyleEditorStore: () => {
23
25
  sliderColor: ColorValue;
24
26
  };
25
27
  actions: import("@omnia/fx/stores").StoreReturnDefineAction<{
28
+ loadVelcronDefinitionForRenderer: () => void;
26
29
  setDesignMode: (isTemplate: boolean) => void;
27
30
  activeTab: () => {
28
31
  setTextBlueprint: (textBlueprint: TextBlueprint) => void;
@@ -1,4 +1,4 @@
1
- import { ThemeRegistration } from "../shared-mobile";
1
+ import { ThemeRegistration } from "@omnia/fx-models/internal-do-not-import-from-here/shared/aurora/stores";
2
2
  import { ColorSchema, ComponentBlueprints, guid, ResolvedThemeDefinition, SpacingBlueprint, TemplateRegistrationType, ThemeDefinition, TypographyBlueprint } from "@omnia/fx-models";
3
3
  type ThemesResolved = Array<ThemeDefinition | ColorSchema | TypographyBlueprint | SpacingBlueprint | ComponentBlueprints>;
4
4
  export declare const useThemeProviderStore: () => {
@@ -1,17 +1,4 @@
1
- export * from "../shared-mobile/ColorManager";
2
- export { useColorSchemaStore, type ColorSchemaStoreType } from "../shared-mobile/ColorSchemaStore";
3
- export * from "../shared-mobile/ComponentBlueprintStore";
4
- export * from "../shared-mobile/FontStore";
5
- export * from "../shared-mobile/SpacingBlueprintStore";
6
- export * from "../shared-mobile/TemplateRegistrationStore";
7
- export * from "../shared-mobile/ThemeContextStore";
8
- export * from "../shared-mobile/ThemeMigrations";
9
- export * from "../shared-mobile/ThemeNormalizer";
10
- export * from "../shared-mobile/ThemeSharedModels";
11
- export * from "../shared-mobile/ThemeStore";
12
- export * from "../shared-mobile/TypographyBlueprintManager";
13
- export * from "../shared-mobile/TypographyBlueprintStore";
14
- export * from "../shared-mobile/VariantManager";
1
+ export * from "@omnia/fx-models/internal-do-not-import-from-here/shared/aurora/stores";
15
2
  export * from "./ColorSchemaManager";
16
3
  export * from "./StateManager";
17
4
  export * from "./ThemeStorage";
@@ -6,5 +6,6 @@ export * from "@omnia/fx-models/internal-do-not-import-from-here/shared/factory"
6
6
  export * from "@omnia/fx-models/internal-do-not-import-from-here/shared/messaging";
7
7
  export * from "@omnia/fx-models/internal-do-not-import-from-here/shared/events";
8
8
  export * from "@omnia/fx-models/internal-do-not-import-from-here/shared/stores";
9
- export * from "internal/fx/ux/aurora/shared-mobile";
9
+ export * from "@omnia/fx-models/internal-do-not-import-from-here/shared/aurora/stores";
10
+ export * from "@omnia/fx-models/internal-do-not-import-from-here/shared/aurora/styles";
10
11
  export * from "internal/fx/ux/shared-mobile/stylex";
@@ -1,6 +1,6 @@
1
1
  import { DefineProp, DefinePropTheming, DefineVModel } from "@omnia/fx/ux";
2
- import { OTabAlignments, OScrollOffsetTypes, OTabVariants, TabsBlueprint } from "@omnia/fx-models";
3
- type TabsProps = DefinePropTheming & DefineProp<"class", String | String[]> & DefineVModel<"", number, false, 0, false, "The v-model of the component"> & DefineProp<"contentClass", string | string[], false, null, "The class of the content container."> & DefineProp<"stacked", boolean, false, null, "Applies the stacked prop to all children o.tab components."> & DefineProp<"variant", OTabVariants, false, null, "Applies a distinct style to the component."> & DefineProp<"toned", boolean, false, null> & DefineProp<"vertical", boolean, false, null> & DefineProp<"hideTabNameIfOnlyOneTab", boolean, false, null, "Hides the tab name if there is only one tab in the component."> & DefineProp<"noScrolling", boolean, false, null, "Removes the scrolling from the tabs component."> & DefineProp<"alignTabs", OTabAlignments, false, "start", "sets the horizontal alignment of the tabs."> & DefineProp<"grow", boolean, false, null, "sets how the flex grows in relation to other flexes of the tab."> & DefineProp<"scrolling", OScrollOffsetTypes, false, null, "Sets a custom blueprint for the tab control."> & DefineProp<"blueprint", TabsBlueprint, false, null, "Applies the blueprint to the component."> & DefineProp<"disableBlueprint", boolean, false, null, "Disables the blueprint and use properties instead.">;
2
+ import { OTabAlignments, OScrollOffsetTypes, OTabVariants, TabsBlueprint, BlueprintVariant } from "@omnia/fx-models";
3
+ type TabsProps = DefinePropTheming & DefineProp<"class", String | String[]> & DefineVModel<"", number, false, 0, false, "The v-model of the component"> & DefineProp<"contentClass", string | string[], false, null, "The class of the content container."> & DefineProp<"stacked", boolean, false, null, "Applies the stacked prop to all children o.tab components."> & DefineProp<"variant", OTabVariants, false, null, "Applies a distinct style to the component."> & DefineProp<"toned", boolean, false, null> & DefineProp<"vertical", boolean, false, null> & DefineProp<"hideTabNameIfOnlyOneTab", boolean, false, null, "Hides the tab name if there is only one tab in the component."> & DefineProp<"noScrolling", boolean, false, null, "Removes the scrolling from the tabs component."> & DefineProp<"alignTabs", OTabAlignments, false, "start", "sets the horizontal alignment of the tabs."> & DefineProp<"grow", boolean, false, null, "sets how the flex grows in relation to other flexes of the tab."> & DefineProp<"scrolling", OScrollOffsetTypes, false, null, "Sets a custom blueprint for the tab control."> & DefineProp<"blueprint", TabsBlueprint | BlueprintVariant, false, null, "Applies the blueprint to the component."> & DefineProp<"disableBlueprint", boolean, false, null, "Disables the blueprint and use properties instead.">;
4
4
  declare const _default: (props: import("@omnia/fx/ux").ExtractProps<TabsProps> & {
5
5
  "onUpdate:modelValue"?: (value: number) => any;
6
6
  } & {
@@ -1,4 +1,4 @@
1
- export declare function useColorSchemaSetup(props: object): import("../aurora/store").ColorSchemaStoreType & {
1
+ export declare function useColorSchemaSetup(props: object): import("@omnia/fx-models/internal-do-not-import-from-here/shared/aurora/stores/ColorSchemaStore").ColorSchemaStoreType & {
2
2
  actions: {
3
3
  disableAutoDispose(): void;
4
4
  };
@@ -1,7 +1,6 @@
1
1
  export * from "./models";
2
2
  export * from "./parser";
3
3
  export * from "./actions";
4
- export * from "./stores";
5
4
  export * from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
6
5
  export * from "./rules";
7
6
  export * from "./templatebuilder";
@@ -1,11 +1,11 @@
1
1
  import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference, EventHook, Future, TextBlueprint, VelcronBindableProp, VelcronEditor, ContainerFillBlueprint, BackgroundDefinition, BlueprintVariant, IconBlueprint, ButtonBlueprint, VelcronOnPressOutsideEvent, VelcronOnPointerEnterEvent, VelcronOnPointerLeaveEvent, VelcronColorStyling, VelcronOverflowValues, VelcronImageRatios } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { VelcronComponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
3
3
  import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VelcronVerticalAlignments } from "./Enums";
4
- import { DynamicState, VelcronDefinition, VelcronEffects, useVelcronThemingStore } from "..";
4
+ import { DynamicState, VelcronDefinition, VelcronEffects } from "..";
5
5
  import { guid, PropertyConfiguration, PropertyValue, PropertyDefinition, PropertySetupBase } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
6
- import { useVelcronColorSchemaStore } from "../stores/VelcronColorSchema";
7
6
  import { Properties } from "csstype";
8
7
  import type { AnimationOptionsWithOverrides, InViewOptions, VariantDefinition, Variants } from "motion";
8
+ import { useColorSchemaStore, useThemeStore } from "internal/fx/ux/mobile";
9
9
  export interface ResolvedComponentRenderer {
10
10
  component: unknown;
11
11
  definition: VelcronDefinition;
@@ -83,8 +83,8 @@ export interface VelcronRenderContext {
83
83
  id?: string;
84
84
  rootContext: DynamicState;
85
85
  currentContext: DynamicState;
86
- theming?: ReturnType<typeof useVelcronThemingStore>;
87
- colors?: ReturnType<typeof useVelcronColorSchemaStore>;
86
+ theming?: ReturnType<typeof useThemeStore>;
87
+ colors?: ReturnType<typeof useColorSchemaStore>;
88
88
  actions?: {
89
89
  [name: string]: Array<string>;
90
90
  };
@@ -1,9 +1,9 @@
1
- import { ColorSchemaType, ColorSchemaTypes, ResolvedThemeDefinition, VelcronAppDefinition, VelcronRenderContext } from "@omnia/fx-models";
1
+ import { VelcronAppDefinition, VelcronRenderContext } from "@omnia/fx-models";
2
2
  import { VelcronRenderContextEventHandlers, DynamicState } from "../core";
3
3
  declare const _default: {
4
4
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
5
5
  colorSchemaType: {
6
- type: import("vue").PropType<ColorSchemaTypes | ColorSchemaType>;
6
+ type: import("vue").PropType<import("@omnia/fx-models").ColorSchemaTypes | import("@omnia/fx-models").ColorSchemaType>;
7
7
  required: boolean;
8
8
  };
9
9
  container: {
@@ -20,9 +20,6 @@ declare const _default: {
20
20
  editMode: {
21
21
  type: import("vue").PropType<boolean>;
22
22
  };
23
- themeDefinition: {
24
- type: import("vue").PropType<ResolvedThemeDefinition>;
25
- };
26
23
  eventHandlers: {
27
24
  type: import("vue").PropType<VelcronRenderContextEventHandlers>;
28
25
  };
@@ -50,7 +47,7 @@ declare const _default: {
50
47
  Defaults: {};
51
48
  }, Readonly<import("vue").ExtractPropTypes<{
52
49
  colorSchemaType: {
53
- type: import("vue").PropType<ColorSchemaTypes | ColorSchemaType>;
50
+ type: import("vue").PropType<import("@omnia/fx-models").ColorSchemaTypes | import("@omnia/fx-models").ColorSchemaType>;
54
51
  required: boolean;
55
52
  };
56
53
  container: {
@@ -67,9 +64,6 @@ declare const _default: {
67
64
  editMode: {
68
65
  type: import("vue").PropType<boolean>;
69
66
  };
70
- themeDefinition: {
71
- type: import("vue").PropType<ResolvedThemeDefinition>;
72
- };
73
67
  eventHandlers: {
74
68
  type: import("vue").PropType<VelcronRenderContextEventHandlers>;
75
69
  };
@@ -91,7 +85,7 @@ declare const _default: {
91
85
  __isSuspense?: never;
92
86
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
93
87
  colorSchemaType: {
94
- type: import("vue").PropType<ColorSchemaTypes | ColorSchemaType>;
88
+ type: import("vue").PropType<import("@omnia/fx-models").ColorSchemaTypes | import("@omnia/fx-models").ColorSchemaType>;
95
89
  required: boolean;
96
90
  };
97
91
  container: {
@@ -108,9 +102,6 @@ declare const _default: {
108
102
  editMode: {
109
103
  type: import("vue").PropType<boolean>;
110
104
  };
111
- themeDefinition: {
112
- type: import("vue").PropType<ResolvedThemeDefinition>;
113
- };
114
105
  eventHandlers: {
115
106
  type: import("vue").PropType<VelcronRenderContextEventHandlers>;
116
107
  };
@@ -135,8 +126,7 @@ declare const _default: {
135
126
  } & {
136
127
  container?: boolean;
137
128
  active?: boolean;
138
- colorSchemaType?: "background" | "primary" | "secondary" | ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "accent7" | "accent8" | "accent9" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
139
- themeDefinition?: ResolvedThemeDefinition;
129
+ colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "accent7" | "accent8" | "accent9" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
140
130
  colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
141
131
  context?: VelcronRenderContext;
142
132
  editMode?: boolean;
@@ -413,7 +413,6 @@ import wcd7ac9d3575424277926a0b231dc4f2e3 from './ux/aurora/components/container
413
413
  import wcbb2e0efa0634452f94d99d1f33ae5b64 from './ux/aurora/components/fillpicker/FillPicker';
414
414
  import wc349a445fe7a2403b8f98fceff168f87e from './ux/aurora/components/fillpicker/FillPreview';
415
415
  import wc44e2dd896269442f800da69000d4c2f1 from './ux/aurora/components/headerpicker/HeaderPicker';
416
- import wcb059e461e6c048fe830c6d32722e5cdc from './ux/aurora/components/headerpicker/HeaderViewer';
417
416
  import wcb1acedf8859a4daab8c683bd87142462 from './ux/aurora/components/headerpicker/HeaderRenderer';
418
417
  import wcadc7e708d0e7419bb327998ca3f3564b from './ux/aurora/components/headerpicker/HeaderStyleEditor';
419
418
  import wc5542a25df57c464897a59a336eee0e56 from './ux/aurora/components/iconstylepicker/IconStylePicker';
@@ -4200,13 +4199,6 @@ declare global {
4200
4199
  $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
4201
4200
  };
4202
4201
  } : typeof wc44e2dd896269442f800da69000d4c2f1;
4203
- "viewer": typeof wcb059e461e6c048fe830c6d32722e5cdc extends {
4204
- propsDefinition: infer TProp;
4205
- } ? {
4206
- new (...args: any[]): {
4207
- $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
4208
- };
4209
- } : typeof wcb059e461e6c048fe830c6d32722e5cdc;
4210
4202
  "renderer": typeof wcb1acedf8859a4daab8c683bd87142462 extends {
4211
4203
  propsDefinition: infer TProp;
4212
4204
  } ? {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "8.0.457-dev",
4
+ "version": "8.0.458-dev",
5
5
  "description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "author": "Omnia Digital Workplace AB",
22
22
  "dependencies": {
23
- "@omnia/fx-models": "8.0.457-dev",
23
+ "@omnia/fx-models": "8.0.458-dev",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.11.7",
@@ -1,4 +0,0 @@
1
- export declare const HeaderPickerStyles: {
2
- selector: (dark: boolean) => string;
3
- container: string;
4
- };
@@ -1,24 +0,0 @@
1
- import { BlueprintVariant, HeaderBlueprints } from "@omnia/fx-models";
2
- import { DefineEmit } from "@omnia/fx/ux";
3
- declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
4
- "emit:update:modelValue": (value: HeaderBlueprints) => void;
5
- } & {
6
- "v-model"?: HeaderBlueprints;
7
- } & {
8
- modelValue?: HeaderBlueprints;
9
- } & {
10
- toned?: boolean;
11
- } & {
12
- selectable?: boolean;
13
- } & {
14
- editable?: boolean;
15
- } & DefineEmit<"click:select", (variant: BlueprintVariant) => true> & DefineEmit<"click:add", () => true>> & {
16
- "onUpdate:modelValue"?: (value: HeaderBlueprints) => any;
17
- "onClick:add"?: () => any;
18
- "onClick:select"?: (variant: BlueprintVariant) => any;
19
- } & {
20
- "v-slots"?: {} & Omit<{
21
- default?: import("vue").Slot;
22
- }, never>;
23
- } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "editable" | "modelValue" | "emit:update:modelValue" | "v-model" | "toned" | "emit:click:add" | "emit:click:select" | "selectable"> & import("@omnia/fx/ux").VNodeEvents) => any;
24
- export default _default;
@@ -1,9 +0,0 @@
1
- import { ColorDefinition } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- export declare function useColorManager(): {
3
- isWcagCompliant: (color1: string, color2: string, level: "AA" | "AAA") => boolean;
4
- getColorDefinition: (color: string, isBaseColorDark: boolean) => ColorDefinition;
5
- isDarkColor: (color: any) => boolean;
6
- addOpacityToColor: (color: any, opacity: any) => any;
7
- isValidColor: (color: string) => boolean;
8
- hasOpacity: (color: string) => boolean;
9
- };
@@ -1,46 +0,0 @@
1
- import { type StoreEvents, type StoreReturnDefineAction } from "@omnia/fx-models/internal-do-not-import-from-here/shared";
2
- import { ColorDefinition, ColorGradientValue, ColorSchema, ColorSchemaType, ColorSchemaTypes, ColorTypes, ColorValue, guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
3
- import { useThemeStore } from "./ThemeStore";
4
- export type ColorSchemaStoreType = {
5
- state: {
6
- base: ColorDefinition;
7
- onBase: ColorDefinition;
8
- name: string;
9
- colorSchemaType: ColorSchemaTypes | ColorSchemaType;
10
- id: guid;
11
- };
12
- events: StoreEvents<{
13
- base: ColorDefinition;
14
- onBase: ColorDefinition;
15
- name: string;
16
- colorSchemaType: ColorSchemaTypes | ColorSchemaType;
17
- id: guid;
18
- }>;
19
- actions: StoreReturnDefineAction<{
20
- setColorSchema(colorSchemaType: ColorSchemaTypes | ColorSchemaType, container?: boolean): void;
21
- setCustomColorSchema(colorSchema: ColorSchema, container?: boolean): void;
22
- setColor(colorDefinition: ColorDefinition, colorType: ColorTypes): void;
23
- setThemeStore(themeStoreInstance: ReturnType<typeof useThemeStore>): void;
24
- }>;
25
- get: {
26
- themeStore: ReturnType<typeof useThemeStore>;
27
- colorValue(color: ColorValue | ColorGradientValue, colorSchema?: ColorSchema): string;
28
- colorSchema: ColorSchema;
29
- theme: "dark" | "light";
30
- base: ColorDefinition;
31
- onBase: ColorDefinition;
32
- };
33
- dispose(force?: boolean): void;
34
- };
35
- export type InternalColorSchemaStoreType = ColorSchemaStoreType & {
36
- actions: {
37
- disableAutoDispose(): void;
38
- };
39
- };
40
- export declare const useColorSchemaStore: () => ColorSchemaStoreType & {
41
- actions: {
42
- disableAutoDispose(): void;
43
- };
44
- } & {
45
- dispose?: () => void;
46
- };
@@ -1,54 +0,0 @@
1
- import { Blueprint, BlueprintsStrategyBase, BlueprintVariant, ButtonBlueprint, ButtonBlueprintVariant, ComponentBlueprints, ContainerFillValue, HeaderBlueprint, IconBlueprint, InputBlueprint, OIconSizes, TabsBlueprint, TextStyleDefinition, TypographyBlueprint, WebBlueprintItemDefintionType } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- type blueprintType = "default";
3
- export declare const useComponentBlueprintStore: () => {
4
- state: {
5
- blueprints: ComponentBlueprints;
6
- };
7
- events: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreEvents<{
8
- blueprints: ComponentBlueprints;
9
- }, Record<string, import("@omnia/fx-models/internal-do-not-import-from-here/shared").IMessageBusTopicPublishSubscriber<any>>>;
10
- actions: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreReturnDefineAction<{
11
- ensure(): {
12
- buttons: () => void;
13
- };
14
- setBlueprint(type: blueprintType): void;
15
- setBluePrints(componentBlueprints: ComponentBlueprints): void;
16
- }>;
17
- get: {
18
- byType<TType extends Blueprint>(type: WebBlueprintItemDefintionType): any;
19
- readonly blueprints: ComponentBlueprints;
20
- fallbackBlueprints: {
21
- get(): ComponentBlueprints;
22
- byType(strategyType: BlueprintsStrategyBase): ComponentBlueprints;
23
- };
24
- button: {
25
- iconBlueprintBySize(sizeType: OIconSizes): ButtonBlueprint;
26
- blueprintByType(type: ButtonBlueprintVariant | ButtonBlueprint): any;
27
- };
28
- input: {
29
- blueprintByType(type: BlueprintVariant | InputBlueprint): InputBlueprint;
30
- };
31
- tabs: {
32
- blueprintByType(type: BlueprintVariant | TabsBlueprint): TabsBlueprint;
33
- };
34
- icon: {
35
- blueprint(size: OIconSizes): IconBlueprint;
36
- size: {
37
- byBluePrint(blueprint: IconBlueprint, typographyBlueprint: TypographyBlueprint): TextStyleDefinition;
38
- byIconSize(size: OIconSizes, typographyBlueprint: TypographyBlueprint): TextStyleDefinition;
39
- };
40
- };
41
- containerFill: {
42
- hasVariant(type: BlueprintVariant | string): boolean;
43
- getByType(type: ContainerFillValue): any;
44
- };
45
- header: {
46
- hasVariant(type: BlueprintVariant | string): boolean;
47
- getRendererBlueprint(type: HeaderBlueprint): HeaderBlueprint;
48
- };
49
- };
50
- deactivated(): void;
51
- } & {
52
- dispose?: () => void;
53
- };
54
- export {};
@@ -1,4 +0,0 @@
1
- import { useThemeProviderStore } from "./ThemeProvider";
2
- type SetupThemeProvider = Pick<ReturnType<typeof useThemeProviderStore>["actions"], "registerStore" | "registerDefaultTypographyBlueprints" | "registerDefaultSpacingBlueprints" | "registerDefaultLightColorSchema" | "registerDefaultDarkColorSchema" | "registerComponentBlueprintStrategy" | "defineCustomFontLoader">;
3
- export declare function defineThemeProvider(setup: (ctx: SetupThemeProvider) => void): void;
4
- export {};
@@ -1,18 +0,0 @@
1
- import { Future, ITemplateRegistration, TypographyFontDefinition } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- export declare const useFontStore: () => {
3
- actions: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreReturnDefineAction<{
4
- ensureLoadFonts: () => Future<ITemplateRegistration<TypographyFontDefinition, import("@omnia/fx-models/internal-do-not-import-from-here/shared").TemplateRegistrationType>[]>;
5
- addFont(font: TypographyFontDefinition): void;
6
- editFont(font: TypographyFontDefinition): void;
7
- onFinishLoad(): Future<Record<string, ITemplateRegistration<any, import("@omnia/fx-models/internal-do-not-import-from-here/shared").TemplateRegistrationType>>>;
8
- saveFont(): Promise<boolean>;
9
- delete(font: TypographyFontDefinition): Promise<void>;
10
- }>;
11
- get: {
12
- readonly availableFonts: TypographyFontDefinition[];
13
- findFont(family: string): ITemplateRegistration<TypographyFontDefinition, import("@omnia/fx-models/internal-do-not-import-from-here/shared").TemplateRegistrationType>;
14
- readonly finishLoad: boolean;
15
- };
16
- } & {
17
- dispose?: () => void;
18
- };
@@ -1,42 +0,0 @@
1
- import { BlueprintVariant, guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- import { useThemeStore } from "./ThemeStore";
3
- export declare const useSpacingBlueprintStore: () => {
4
- state: {
5
- blueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingBlueprint;
6
- blueprintType: BlueprintVariant;
7
- id: guid;
8
- isCustomBlueprint: boolean;
9
- };
10
- events: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreEvents<{
11
- blueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingBlueprint;
12
- blueprintType: BlueprintVariant;
13
- id: guid;
14
- isCustomBlueprint: boolean;
15
- }, Record<string, import("@omnia/fx-models/internal-do-not-import-from-here/shared").IMessageBusTopicPublishSubscriber<any>>>;
16
- actions: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreReturnDefineAction<{
17
- setBlueprint(): void;
18
- setThemeStore(themeStoreInstance: ReturnType<typeof useThemeStore>): void;
19
- }>;
20
- get: {
21
- readonly defaultSpacingBlueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingBlueprint;
22
- readonly themeStore: ReturnType<typeof useThemeStore>;
23
- readonly blueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingBlueprint;
24
- readonly spacingScaling: {
25
- get: {
26
- valueWithoutScale: (value: import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingValue) => string | number;
27
- scaleFromValue: (value: import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingValue) => import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingScale;
28
- scale: (value: import("@omnia/fx-models/internal-do-not-import-from-here/shared").Spacing | import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingValue) => import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingScale;
29
- };
30
- add: {
31
- scaleToValue: (value: import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingValue, scale: import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingScale) => string | number;
32
- fallBackScale: (value: import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingValue, scale: import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingScale) => string | number;
33
- };
34
- has: {
35
- scaling: (value: import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingValue) => boolean;
36
- };
37
- };
38
- };
39
- deactivated(): void;
40
- } & {
41
- dispose?: () => void;
42
- };
@@ -1,20 +0,0 @@
1
- import { guid, ITemplateRegistration, TemplateRegistrationType, Future } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- export declare const useTemplateRegistrationStore: () => {
3
- state: {
4
- registrations: Record<string, ITemplateRegistration<any, TemplateRegistrationType>>;
5
- };
6
- events: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreEvents<{
7
- registrations: Record<string, ITemplateRegistration<any, TemplateRegistrationType>>;
8
- }, Record<string, import("@omnia/fx-models/internal-do-not-import-from-here/shared").IMessageBusTopicPublishSubscriber<any>>>;
9
- actions: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreReturnDefineAction<{
10
- upsertRegistration<TTemplateRegistration extends ITemplateRegistration<any>>(registration: TTemplateRegistration): Promise<boolean>;
11
- deleteRegistration(registrationId: guid): Promise<boolean>;
12
- ensureLoadTemplates: () => Future<Record<string, ITemplateRegistration<any, TemplateRegistrationType>>>;
13
- }>;
14
- get: {
15
- byId: <TTemplateRegistration extends ITemplateRegistration<any>>(id: guid) => ITemplateRegistration<any, TemplateRegistrationType>;
16
- getByType: <TTemplateRegistration extends ITemplateRegistration<any>>(type: TemplateRegistrationType) => Array<TTemplateRegistration>;
17
- };
18
- } & {
19
- dispose?: () => void;
20
- };
@@ -1,16 +0,0 @@
1
- import { ThemeContextType } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- import { useThemeStore } from "./ThemeStore";
3
- export declare const useThemeContextStore: () => {
4
- actions: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreReturnDefineAction<{
5
- saveTheme(variant: ThemeContextType): void;
6
- }>;
7
- get: {
8
- readonly defaultTheme: ReturnType<typeof useThemeStore>;
9
- readonly adminTheme: ReturnType<typeof useThemeStore>;
10
- readonly previewTheme: ReturnType<typeof useThemeStore>;
11
- readonly designerTheme: ReturnType<typeof useThemeStore>;
12
- byType(type: ThemeContextType): ReturnType<typeof useThemeStore>;
13
- };
14
- } & {
15
- dispose?: () => void;
16
- };
@@ -1,12 +0,0 @@
1
- import { SpacingBlueprint, TypographyBlueprint } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- export declare function ThemeMigrations(): {
3
- spacing: {
4
- migrate: (blueprint: SpacingBlueprint) => SpacingBlueprint;
5
- };
6
- typography: {
7
- migrate: (blueprint: TypographyBlueprint) => TypographyBlueprint;
8
- };
9
- theme: {
10
- migrate(themeDefinition: any): any;
11
- };
12
- };
@@ -1,5 +0,0 @@
1
- import { ResolvedThemeDefinition, TypographyBlueprint } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- export declare function ThemeNormalizer(): {
3
- normalizeTypography: (typography: TypographyBlueprint) => TypographyBlueprint;
4
- normalize: (themeDefinition: ResolvedThemeDefinition) => ResolvedThemeDefinition;
5
- };
@@ -1,39 +0,0 @@
1
- import { ColorSchemas, guid, ResolvedThemeDefinition, SpacingBlueprint, TypographyBlueprint, TypographyFontDefinition } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- import { ThemeRegistrationStoreType, ThemeRegistration, ComponentBlueprintStrategyType } from "./ThemeSharedModels";
3
- export declare const useThemeProviderStore: () => {
4
- actions: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreReturnDefineAction<{
5
- registerStore(store: () => ThemeRegistrationStoreType): void;
6
- initiateStore(): void;
7
- registerDefaultTypographyBlueprints(blueprints: TypographyBlueprint): void;
8
- registerDefaultSpacingBlueprints(blueprints: SpacingBlueprint): void;
9
- registerDefaultLightColorSchema(blueprints: ColorSchemas): void;
10
- registerDefaultDarkColorSchema(blueprints: ColorSchemas): void;
11
- registerComponentBlueprintStrategy(strategy: ComponentBlueprintStrategyType): void;
12
- defineCustomFontLoader(loader: (font: TypographyFontDefinition) => void): void;
13
- loadAll(): Promise<import("./ThemeSharedModels").ThemesResolved>;
14
- save(theme: ThemeRegistration): Promise<any>;
15
- delete(id: guid): Promise<any>;
16
- setAdminTheme(theme: ResolvedThemeDefinition): void;
17
- setDefaultTheme(theme: ResolvedThemeDefinition): void;
18
- loadCustomFont(font: TypographyFontDefinition): void;
19
- }>;
20
- get: {
21
- readonly adminTheme: ResolvedThemeDefinition;
22
- readonly defaultTheme: ResolvedThemeDefinition;
23
- readonly defaultTypographyBlueprints: TypographyBlueprint;
24
- readonly defaultSpacingBlueprints: SpacingBlueprint;
25
- readonly defaultLightColorSchema: ColorSchemas;
26
- readonly defaultDarkColorSchema: ColorSchemas;
27
- readonly componentBlueprintStrategy: ComponentBlueprintStrategyType;
28
- };
29
- readonly events: {
30
- onMutatedAdminTheme: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<ResolvedThemeDefinition>;
31
- onMutatedDefaultTheme: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<ResolvedThemeDefinition>;
32
- };
33
- validations: {
34
- checkPlatformStoreRegistered(): void;
35
- checkDefaultBlueprintsRegistered(type: "typography" | "spacing" | "light" | "dark" | "component"): void;
36
- };
37
- } & {
38
- dispose?: () => void;
39
- };
@@ -1,33 +0,0 @@
1
- import { ColorSchema, ComponentBlueprints, guid, ITemplateRegistration, ResolvedThemeDefinition, SpacingBlueprint, TemplateRegistrationType, ThemeDefinition, TypographyBlueprint } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- import { StoreEvents, StoreReturnDefineAction } from "@omnia/fx-models/internal-do-not-import-from-here/shared";
3
- export type ThemeRegistration = ITemplateRegistration<ResolvedThemeDefinition, TemplateRegistrationType> | ITemplateRegistration<ColorSchema> | ITemplateRegistration<TypographyBlueprint> | ITemplateRegistration<ComponentBlueprints> | ITemplateRegistration<SpacingBlueprint>;
4
- export type ThemesResolved = Array<ThemeDefinition | ColorSchema | TypographyBlueprint | SpacingBlueprint | ComponentBlueprints>;
5
- export type ThemeRegistrationStoreType = {
6
- state: {
7
- adminTheme: ResolvedThemeDefinition;
8
- defaultTheme: ResolvedThemeDefinition;
9
- };
10
- events: StoreEvents<{
11
- adminTheme: ResolvedThemeDefinition;
12
- defaultTheme: ResolvedThemeDefinition;
13
- }>;
14
- actions: StoreReturnDefineAction<{
15
- loadAll(): Promise<ThemesResolved>;
16
- save(theme: ThemeRegistration): Promise<any>;
17
- delete(id: guid): Promise<any>;
18
- }>;
19
- get: {
20
- readonly adminTheme: ResolvedThemeDefinition;
21
- readonly defaultTheme: ResolvedThemeDefinition;
22
- };
23
- };
24
- export type ComponentBlueprintStrategyType = {
25
- roundness: {
26
- readonly none: ComponentBlueprints;
27
- readonly xs: ComponentBlueprints;
28
- readonly s: ComponentBlueprints;
29
- readonly m: ComponentBlueprints;
30
- readonly l: ComponentBlueprints;
31
- readonly full: ComponentBlueprints;
32
- };
33
- };
@@ -1,91 +0,0 @@
1
- import { ColorSchema, ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes, BlueprintVariant, ResolvedThemeDefinition, guid, TextFillDefinitionValue, ContainerFillValue, ContainerFillBlueprint } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- import { type ColorSchemaStoreType } from "./ColorSchemaStore";
3
- export declare const useThemeStore: () => {
4
- id: guid;
5
- state: {
6
- currentTheme: ResolvedThemeDefinition;
7
- };
8
- events: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreEvents<{
9
- currentTheme: ResolvedThemeDefinition;
10
- }, Record<string, import("@omnia/fx-models/internal-do-not-import-from-here/shared").IMessageBusTopicPublishSubscriber<any>>>;
11
- actions: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreReturnDefineAction<{
12
- setTheme(themeDefinition: ResolvedThemeDefinition): void;
13
- }>;
14
- get: {
15
- getOrSetColorSchema(colorSchemaType: ColorSchemaTypes | ColorSchemaType, container?: boolean): {
16
- value: ColorSchemaStoreType;
17
- setValue(value: ColorSchemaStoreType): void;
18
- };
19
- componentBlueprintStore(): {
20
- state: {
21
- blueprints: import("@omnia/fx-models/internal-do-not-import-from-here/shared").ComponentBlueprints;
22
- };
23
- events: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreEvents<{
24
- blueprints: import("@omnia/fx-models/internal-do-not-import-from-here/shared").ComponentBlueprints;
25
- }, Record<string, import("@omnia/fx-models/internal-do-not-import-from-here/shared").IMessageBusTopicPublishSubscriber<any>>>;
26
- actions: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreReturnDefineAction<{
27
- ensure(): {
28
- buttons: () => void;
29
- };
30
- setBlueprint(type: "default"): void;
31
- setBluePrints(componentBlueprints: import("@omnia/fx-models/internal-do-not-import-from-here/shared").ComponentBlueprints): void;
32
- }>;
33
- get: {
34
- byType<TType extends import("@omnia/fx-models/internal-do-not-import-from-here/shared").Blueprint>(type: import("@omnia/fx-models/internal-do-not-import-from-here/shared").WebBlueprintItemDefintionType): any;
35
- readonly blueprints: import("@omnia/fx-models/internal-do-not-import-from-here/shared").ComponentBlueprints;
36
- fallbackBlueprints: {
37
- get(): import("@omnia/fx-models/internal-do-not-import-from-here/shared").ComponentBlueprints;
38
- byType(strategyType: import("@omnia/fx-models/internal-do-not-import-from-here/shared").BlueprintsStrategyBase): import("@omnia/fx-models/internal-do-not-import-from-here/shared").ComponentBlueprints;
39
- };
40
- button: {
41
- iconBlueprintBySize(sizeType: import("@omnia/fx-models/internal-do-not-import-from-here/shared").OIconSizes): import("@omnia/fx-models/internal-do-not-import-from-here/shared").ButtonBlueprint;
42
- blueprintByType(type: import("@omnia/fx-models/internal-do-not-import-from-here/shared").ButtonBlueprintVariant | import("@omnia/fx-models/internal-do-not-import-from-here/shared").ButtonBlueprint): any;
43
- };
44
- input: {
45
- blueprintByType(type: BlueprintVariant | import("@omnia/fx-models/internal-do-not-import-from-here/shared").InputBlueprint): import("@omnia/fx-models/internal-do-not-import-from-here/shared").InputBlueprint;
46
- };
47
- tabs: {
48
- blueprintByType(type: BlueprintVariant | import("@omnia/fx-models/internal-do-not-import-from-here/shared").TabsBlueprint): import("@omnia/fx-models/internal-do-not-import-from-here/shared").TabsBlueprint;
49
- };
50
- icon: {
51
- blueprint(size: import("@omnia/fx-models/internal-do-not-import-from-here/shared").OIconSizes): import("@omnia/fx-models/internal-do-not-import-from-here/shared").IconBlueprint;
52
- size: {
53
- byBluePrint(blueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared").IconBlueprint, typographyBlueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared").TypographyBlueprint): import("@omnia/fx-models/internal-do-not-import-from-here/shared").TextStyleDefinition;
54
- byIconSize(size: import("@omnia/fx-models/internal-do-not-import-from-here/shared").OIconSizes, typographyBlueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared").TypographyBlueprint): import("@omnia/fx-models/internal-do-not-import-from-here/shared").TextStyleDefinition;
55
- };
56
- };
57
- containerFill: {
58
- hasVariant(type: BlueprintVariant | string): boolean;
59
- getByType(type: ContainerFillValue): any;
60
- };
61
- header: {
62
- hasVariant(type: BlueprintVariant | string): boolean;
63
- getRendererBlueprint(type: import("@omnia/fx-models/internal-do-not-import-from-here/shared").HeaderBlueprint): import("@omnia/fx-models/internal-do-not-import-from-here/shared").HeaderBlueprint;
64
- };
65
- };
66
- deactivated(): void;
67
- } & {
68
- dispose?: () => void;
69
- };
70
- colorSchema(colorSchemaType: ColorSchemaTypes | ColorSchemaType | ColorSchema): ColorSchema;
71
- typography(): import("@omnia/fx-models/internal-do-not-import-from-here/shared").TypographyBlueprint;
72
- fills(): {
73
- text: {
74
- hasVariant(type: BlueprintVariant | string): boolean;
75
- byValue(value: TextFillDefinitionValue): TextFillDefinitionValue;
76
- };
77
- container: {
78
- hasVariant(type: BlueprintVariant | string): boolean;
79
- bluePrints(): import("@omnia/fx-models/internal-do-not-import-from-here/shared").ContainerFillBlueprints;
80
- byValue(value: ContainerFillValue): ContainerFillBlueprint;
81
- };
82
- };
83
- spacing(): import("@omnia/fx-models/internal-do-not-import-from-here/shared").SpacingBlueprint;
84
- component(): import("@omnia/fx-models/internal-do-not-import-from-here/shared").ComponentBlueprints;
85
- color(colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType): string;
86
- colorDefinition(colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType): import("@omnia/fx-models/internal-do-not-import-from-here/shared").ColorDefinition;
87
- currentTheme(): ResolvedThemeDefinition;
88
- };
89
- } & {
90
- dispose?: () => void;
91
- };
@@ -1,22 +0,0 @@
1
- import { TextStyleDefinition, TypographyBlueprint } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- interface BreakpointScale {
3
- lg: number;
4
- md: number;
5
- sm: number;
6
- }
7
- export declare function useTypographyBlueprintManager(): {
8
- typeScale: {
9
- getFontSize: (blueprint: TypographyBlueprint, scaleSlots: BreakpointScale) => void;
10
- createTextStyleDefinition: (blueprint: TypographyBlueprint, scaleSlots: BreakpointScale) => TextStyleDefinition;
11
- };
12
- textStyledefinition: {
13
- createAll(blueprint: TypographyBlueprint): TypographyBlueprint;
14
- update(definition: TextStyleDefinition, blueprint: TypographyBlueprint): TextStyleDefinition;
15
- strip(definition: TextStyleDefinition): TextStyleDefinition;
16
- };
17
- blueprint: {
18
- initFromScale(blueprint: TypographyBlueprint): TypographyBlueprint;
19
- strip(blueprint: TypographyBlueprint): TypographyBlueprint;
20
- };
21
- };
22
- export {};
@@ -1,34 +0,0 @@
1
- import { guid, TextStyleDefinition, TextStyleSize, TextStyleSizes, TextStyleType, TextStyleTypes, TypographyBlueprint, TypographyFontDefinition } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- import { useThemeStore } from "./ThemeStore";
3
- export declare const useTypographyBlueprintStore: () => {
4
- state: {
5
- blueprint: TypographyBlueprint;
6
- id: guid;
7
- availableFonts: TypographyFontDefinition[];
8
- isCustomBlueprint: boolean;
9
- };
10
- events: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreEvents<{
11
- blueprint: TypographyBlueprint;
12
- id: guid;
13
- availableFonts: TypographyFontDefinition[];
14
- isCustomBlueprint: boolean;
15
- }, Record<string, import("@omnia/fx-models/internal-do-not-import-from-here/shared").IMessageBusTopicPublishSubscriber<any>>>;
16
- rules: {
17
- isStyleActive: (textStyleType: TextStyleType, size: TextStyleSizes) => boolean;
18
- };
19
- actions: import("@omnia/fx-models/internal-do-not-import-from-here/shared").StoreReturnDefineAction<{
20
- normalize(blueprint: TypographyBlueprint): TypographyBlueprint;
21
- setBlueprint(): void;
22
- setThemeStore(themeStoreInstance: ReturnType<typeof useThemeStore>): void;
23
- }>;
24
- get: {
25
- readonly defaultTypographyBlueprint: TypographyBlueprint;
26
- textStyleName: (textStyle: TextStyleType, size: TextStyleSizes) => any;
27
- readonly themeStore: ReturnType<typeof useThemeStore>;
28
- readonly blueprint: TypographyBlueprint;
29
- typography(typographyType: TextStyleTypes | TextStyleType, size: TextStyleSize | TextStyleSizes): TextStyleDefinition;
30
- };
31
- deactivated(): void;
32
- } & {
33
- dispose?: () => void;
34
- };
@@ -1,7 +0,0 @@
1
- export declare function useVariantManager<TVariants extends Record<string, any>, TVariant>(): {
2
- countVariants: (variants: TVariants, variantTypes: Array<string>) => number;
3
- getEmptyVariant: (variants: TVariants, variantTypes: Array<string>) => string;
4
- hasEmptySlots: (variants: TVariants, variantTypes: Array<string>) => boolean;
5
- hasVariant: (variants: TVariants, variant: string) => boolean;
6
- getVariant: (variants: TVariants, variant: string) => any;
7
- };
@@ -1,15 +0,0 @@
1
- export * from "./ColorManager";
2
- export * from "./ColorSchemaStore";
3
- export * from "./ComponentBlueprintStore";
4
- export * from "./FontStore";
5
- export * from "./SpacingBlueprintStore";
6
- export * from "./TemplateRegistrationStore";
7
- export * from "./ThemeContextStore";
8
- export * from "./ThemeMigrations";
9
- export * from "./ThemeNormalizer";
10
- export * from "./DefineThemeProvider";
11
- export * from "./ThemeSharedModels";
12
- export * from "./ThemeStore";
13
- export * from "./TypographyBlueprintManager";
14
- export * from "./TypographyBlueprintStore";
15
- export * from "./VariantManager";
@@ -1,4 +0,0 @@
1
- export declare namespace StyleFormatters {
2
- function formatPixelValue(value: any): string;
3
- function formatMediaUrl(url: string): string;
4
- }
@@ -1,25 +0,0 @@
1
- import { ColorDefinition, ColorSchema, ColorSchemaType, ColorSchemaTypes, guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- import { useVelcronThemingStore } from ".";
3
- export declare const useVelcronColorSchemaStore: (newStateWithName?: string) => {
4
- state: {
5
- base: ColorDefinition;
6
- onBase: ColorDefinition;
7
- container: ColorDefinition;
8
- onContainer: ColorDefinition;
9
- isContainer: boolean;
10
- name: string;
11
- colorSchemaType: ColorSchemaTypes | ColorSchemaType;
12
- id: guid;
13
- };
14
- get: {
15
- readonly colorSchema: ColorSchema;
16
- readonly base: ColorDefinition;
17
- readonly onBase: ColorDefinition;
18
- readonly container: ColorDefinition;
19
- readonly onContainer: ColorDefinition;
20
- };
21
- actions: {
22
- setThemeStore: (themeStoreInstance: ReturnType<typeof useVelcronThemingStore>, colorSchemaType?: ColorSchemaTypes | ColorSchemaType, container?: boolean) => void;
23
- setColorSchema: (colorSchemaType: ColorSchemaType, container?: boolean) => void;
24
- };
25
- };
@@ -1,12 +0,0 @@
1
- export declare function defineVelcronStore<TSetup extends {
2
- state: object;
3
- privateState?: object;
4
- }, TGetters, TActions>(name: string, definition: {
5
- setup: () => TSetup;
6
- getters?: (state: TSetup["state"], privateState?: TSetup["privateState"]) => TGetters;
7
- actions?: (state: TSetup["state"], privateState?: TSetup["privateState"]) => TActions;
8
- }): (newStateWithName?: string) => {
9
- state: TSetup["state"];
10
- get: TGetters;
11
- actions: TActions;
12
- };
@@ -1,19 +0,0 @@
1
- import { ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes, ContainerFillBlueprint, BlueprintVariant, ResolvedThemeDefinition, TextStyleSize, TextStyleSizes, TextStyleType, TextStyleTypes } from "..";
2
- export declare const useVelcronThemingStore: (newStateWithName?: string) => {
3
- state: {
4
- currentTheme: ResolvedThemeDefinition;
5
- };
6
- get: {
7
- componentBlueprints: () => void;
8
- containerBlueprint: (type: BlueprintVariant | ContainerFillBlueprint | string) => any;
9
- colorSchema: (colorSchemaType: ColorSchemaTypes | ColorSchemaType) => import("..").ColorSchema;
10
- spacing: () => import("..").SpacingBlueprint;
11
- typography: (typographyType: TextStyleTypes | TextStyleType, size: TextStyleSizes | TextStyleSize) => any;
12
- color: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => string;
13
- colorDefinition: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => import("..").ColorDefinition;
14
- currentTheme: () => ResolvedThemeDefinition;
15
- };
16
- actions: {
17
- setTheme(newTheme: ResolvedThemeDefinition): void;
18
- };
19
- };
@@ -1,3 +0,0 @@
1
- export * from "./VelcronStore";
2
- export * from "./VelcronTheming";
3
- export * from "./VelcronColorSchema";