@omnia/fx-models 8.0.429-dev → 8.0.431-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/Icon.d.ts CHANGED
@@ -51,7 +51,7 @@ export interface IconTooltipOptions {
51
51
  element?: JSX.Element;
52
52
  position?: TooltipPosition;
53
53
  }
54
- export interface IconPickerModel extends IIcon {
54
+ export interface LegacyIconPickerModel extends IIcon {
55
55
  iconSource?: IconSources;
56
56
  faClass?: string;
57
57
  fabClass?: string;
package/Layout.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { MultilingualString, LegacyThemeDefinition, IIcon, Spacing, IconPickerModel, WebComponentDefinition, OmniaBlock, guid, RadialGradientShapes, BlockTitleSettings, LayoutItemActions, LayoutEditorModes, BlockRenderingModes, TabbedDisplayModes, TabbedIconPositions, LayoutDrawerTabs, ILayoutCanvasDefinitionBuilder, MediaPickerImage, IMessageBusTopicSubscription, MediaPickerStorageProviderContext, OmniaBackendRuntimes, OmniaClientRuntimes, LayoutCanvasModes, HorizontalAlignments, SpacingValue, ColorValue, VerticalAlignments, BlueprintVariant, ContainerFillBlueprint, ColorSchemaTypes, ColorSchema, TabsBlueprint, HeaderBlueprint } from ".";
1
+ import { MultilingualString, LegacyThemeDefinition, IIcon, Spacing, LegacyIconPickerModel, WebComponentDefinition, OmniaBlock, guid, RadialGradientShapes, BlockTitleSettings, LayoutItemActions, LayoutEditorModes, BlockRenderingModes, TabbedDisplayModes, TabbedIconPositions, LayoutDrawerTabs, ILayoutCanvasDefinitionBuilder, MediaPickerImage, IMessageBusTopicSubscription, MediaPickerStorageProviderContext, OmniaBackendRuntimes, OmniaClientRuntimes, LayoutCanvasModes, HorizontalAlignments, SpacingValue, ColorValue, VerticalAlignments, BlueprintVariant, ContainerFillBlueprint, ColorSchemaTypes, ColorSchema, TabsBlueprint, HeaderBlueprint } from ".";
2
2
  import { MessageBusTopicMediator } from "../";
3
3
  import { TargetingFilterProperty } from "../sp";
4
4
  import { ShapeDividerSettings } from "./ShapeDividerSettingsModel";
@@ -233,7 +233,7 @@ export interface TabbedSectionItemSettings extends SectionItemSettings {
233
233
  type: SectionTypes.Tab;
234
234
  label: MultilingualString;
235
235
  tooltip: MultilingualString;
236
- icon: IconPickerModel;
236
+ icon: LegacyIconPickerModel;
237
237
  customAnchorNameEnabled: boolean;
238
238
  anchorName?: string;
239
239
  scrollIntoViewDisabled: boolean;
@@ -242,7 +242,7 @@ export interface AccordionedSectionItemSettings extends SectionItemSettings {
242
242
  type: SectionTypes.Accordion;
243
243
  label: MultilingualString;
244
244
  tooltip: MultilingualString;
245
- icon: IconPickerModel;
245
+ icon: LegacyIconPickerModel;
246
246
  customAnchorNameEnabled: boolean;
247
247
  anchorName?: string;
248
248
  scrollIntoViewDisabled: boolean;
package/apps/App.d.ts CHANGED
@@ -2,7 +2,7 @@ import { guid, ThemeSelection, IIcon } from "@omnia/fx-models/internal-do-not-im
2
2
  import { TargetingFilterProperty } from "../../sp/models";
3
3
  import { ProvisioningTemplateEnterpriseProperty } from "../enterprise-properties/EnterpriseProperty";
4
4
  import { AppCategories, AppInstanceScopedQueryTypes, AppInstanceStatus, AppTemplatePermissionLevel } from "../Enums";
5
- import { IconPickerModel } from "../Icon";
5
+ import { LegacyIconPickerModel } from "../Icon";
6
6
  import { Identity } from "../identities";
7
7
  import { MediaPickerImage } from "../media-picker";
8
8
  import { MultilingualString } from "../MultilingualString";
@@ -100,7 +100,7 @@ export interface AppTemplate {
100
100
  appDefinitionId: guid;
101
101
  title: MultilingualString;
102
102
  description: MultilingualString;
103
- icons: IconPickerModel[];
103
+ icons: LegacyIconPickerModel[];
104
104
  features: guid[];
105
105
  permissionIdentities: string[];
106
106
  properties: AppTemplateProperties;
@@ -1 +1,2 @@
1
1
  export * from "./Broadcast";
2
+ export * from "./Leader";
@@ -0,0 +1,4 @@
1
+ type Resolver = <TProvide, TConstructor>(provide: TProvide, constructorArgs?: TConstructor) => TProvide extends new (...args: any) => infer P ? P : TProvide extends (...args: any) => infer P2 ? P2 : TProvide extends Object ? TProvide : never;
2
+ export declare function registerProvideResolver(resolver: Resolver): void;
3
+ export declare function useProvide<TProvide, TConstructor>(provide: TProvide, constructorArgs?: TConstructor): TProvide extends new (...args: any) => infer P ? P : TProvide extends (...args: any) => infer P2 ? P2 : TProvide extends Object ? TProvide : never;
4
+ export {};
@@ -2,3 +2,4 @@ export * from "./ServiceContainer";
2
2
  export * from "./Injectable";
3
3
  export * from "./Inject";
4
4
  export * from "./DefineFactory";
5
+ export * from "./Provide";
@@ -53,8 +53,9 @@ export interface ContainerFillBlueprint extends Blueprints, BlueprintsReference
53
53
  export interface IFontBlueprints extends Blueprints, BlueprintsReference {
54
54
  fonts: Array<TypographyFontDefinition>;
55
55
  }
56
+ export type BlueprintsStrategyBase = "none" | "x-small" | "small" | "medium" | "large" | "full";
56
57
  export interface ComponentBlueprints extends ThemeBase {
57
- strategy?: "MD2" | "MD3";
58
+ baseStrategy?: BlueprintsStrategyBase;
58
59
  buttons?: ButtonBlueprints;
59
60
  tabs?: TabsBlueprints;
60
61
  icons?: IconBlueprints;
@@ -1,2 +1 @@
1
1
  export * from "./WorkerProxy";
2
- export * from "./Leader";
@@ -1,5 +1,5 @@
1
1
  import { guid, Id } from "@omnia/fx-models/internal-do-not-import-from-here/shared";
2
- import { IconPickerModel } from "../Icon";
2
+ import { LegacyIconPickerModel } from "../Icon";
3
3
  export type LinkProviderId = Id<guid, "LinkProviderId">;
4
4
  export declare function LinkProviderId(id: guid): LinkProviderId;
5
5
  export interface LinkItem {
@@ -7,6 +7,6 @@ export interface LinkItem {
7
7
  linkType?: string;
8
8
  title: string;
9
9
  url: string;
10
- icon: IconPickerModel;
10
+ icon: LegacyIconPickerModel;
11
11
  openInNewWindow: boolean;
12
12
  }
@@ -7,9 +7,10 @@ export interface ActionDefinition {
7
7
  disabled?: boolean;
8
8
  loading?: boolean;
9
9
  icon: IIcon;
10
- type?: "default" | "switch";
10
+ type?: "default" | "switch" | "custom";
11
11
  onClick?: () => void;
12
12
  activator?: (activatorRenderer: VNodeChild) => VNodeChild;
13
+ customRenderer?: () => VNodeChild;
13
14
  colorSchemaType?: ColorSchemaTypes | ColorSchemaType;
14
15
  }
15
16
  export interface ActionSwitchDefinition extends ActionDefinition {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.429-dev",
4
+ "version": "8.0.431-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"