@omnia/fx-models 8.0.34-dev → 8.0.35-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/Exposes.d.ts +1 -0
- package/Exposes.js +1 -0
- package/ManifestIds.d.ts +1 -0
- package/ManifestIds.js +3 -0
- package/NotNullish.d.ts +1 -0
- package/NotNullish.js +7 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +2 -1
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.d.ts +2 -1
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.d.ts +4 -0
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/index.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/index.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/hub/index.js +1 -0
- package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.d.ts +4 -0
- package/oxide/OxideTypeDefinitions.d.ts +3 -0
- package/oxide/OxideTypeDefinitions.js +3 -1
- package/package.json +1 -1
- package/ux/AdminApi.d.ts +21 -8
- package/ux/InternalAdminApi.d.ts +15 -11
- package/velcron/VelcronDefinitionRegistration.d.ts +2 -2
package/Exposes.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ export * from "./FilterpickerModel";
|
|
|
101
101
|
export * from "./RollupMetricSettings";
|
|
102
102
|
export * from "./ChromeLayoutDefinition";
|
|
103
103
|
export * from "./NullOf";
|
|
104
|
+
export * from "./NotNullish";
|
|
104
105
|
export * from "./ux";
|
|
105
106
|
export * from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
|
106
107
|
export * from "./admin";
|
package/Exposes.js
CHANGED
|
@@ -107,6 +107,7 @@ tslib_1.__exportStar(require("./FilterpickerModel"), exports);
|
|
|
107
107
|
tslib_1.__exportStar(require("./RollupMetricSettings"), exports);
|
|
108
108
|
tslib_1.__exportStar(require("./ChromeLayoutDefinition"), exports);
|
|
109
109
|
tslib_1.__exportStar(require("./NullOf"), exports);
|
|
110
|
+
tslib_1.__exportStar(require("./NotNullish"), exports);
|
|
110
111
|
//************************************************************************************ */
|
|
111
112
|
// End of file exports
|
|
112
113
|
//************************************************************************************ */
|
package/ManifestIds.d.ts
CHANGED
|
@@ -151,6 +151,7 @@ export declare class OmniaWebComponentManifests {
|
|
|
151
151
|
static get OAlert(): Guid;
|
|
152
152
|
static get OInfiniteScroll(): Guid;
|
|
153
153
|
static get OAvatar(): Guid;
|
|
154
|
+
static get OLazy(): Guid;
|
|
154
155
|
static get OBadge(): Guid;
|
|
155
156
|
static get OBtn(): Guid;
|
|
156
157
|
static get OBtnGroup(): Guid;
|
package/ManifestIds.js
CHANGED
|
@@ -464,6 +464,9 @@ class OmniaWebComponentManifests {
|
|
|
464
464
|
static get OAvatar() {
|
|
465
465
|
return new models_1.Guid("8848766a-05fd-4a7a-8e1a-89376b3cf09a");
|
|
466
466
|
}
|
|
467
|
+
static get OLazy() {
|
|
468
|
+
return new models_1.Guid("2df6ab65-eea8-4ed8-bab2-97dff9c56224");
|
|
469
|
+
}
|
|
467
470
|
static get OBadge() {
|
|
468
471
|
return new models_1.Guid("4cc48714-e16a-45fe-b2d2-13932a13d1f8");
|
|
469
472
|
}
|
package/NotNullish.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function notNullish<T = any>(val?: T | null | undefined): val is T;
|
package/NotNullish.js
ADDED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DynamicState, GuidValue, StronglyTypedId } from "../..";
|
|
1
|
+
import { DynamicState, GuidValue, StronglyTypedId, TemporaryFileId } from "../..";
|
|
2
2
|
import { ChannelId } from "./ActivityChannel";
|
|
3
3
|
import { ActivitySenderId } from "./ActivitySender";
|
|
4
4
|
import { ActivityRenderer, ActivityRendererReference } from "./ActivityRenderer";
|
|
@@ -48,6 +48,7 @@ export interface CreateActivityRequest {
|
|
|
48
48
|
senderId: ActivitySenderId;
|
|
49
49
|
stateJson: string;
|
|
50
50
|
rendererJson: string;
|
|
51
|
+
activityIdPlaceHolder?: TemporaryFileId;
|
|
51
52
|
expires?: Date;
|
|
52
53
|
notificationTeaser: NotificationTeaser;
|
|
53
54
|
targeting: Array<Array<SourceRelatedHubProperty>>;
|
|
@@ -19,9 +19,11 @@ export interface ActivityFeedResult extends ActivityFeedBase {
|
|
|
19
19
|
export interface ActivityFeedBase {
|
|
20
20
|
newActivities: Array<NewActivitiesBySenderBase>;
|
|
21
21
|
nextStartingFromId: ActivityId;
|
|
22
|
+
recentSenders: Array<ActivitySenderId>;
|
|
22
23
|
}
|
|
23
24
|
export interface FeedQuery {
|
|
24
25
|
newerThenId?: ActivityId;
|
|
25
26
|
olderThenId?: ActivityId;
|
|
26
27
|
filterBySenderId?: ActivitySenderId;
|
|
28
|
+
includeRecentSenders?: number;
|
|
27
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActivitySender, ActivitySenderId, DynamicState } from "../..";
|
|
1
|
+
import { ActivitySender, ActivitySenderId, ChannelId, DynamicState } from "../..";
|
|
2
2
|
import { Activity, ActivityId } from "./Activity";
|
|
3
3
|
export declare enum IdentityActivityStatus {
|
|
4
4
|
new = 0,
|
|
@@ -28,4 +28,5 @@ export interface NewActivitiesBySenderBase {
|
|
|
28
28
|
}
|
|
29
29
|
export interface NewActivitiesBySender extends NewActivitiesBySenderBase {
|
|
30
30
|
sender: ActivitySender;
|
|
31
|
+
channelId: ChannelId;
|
|
31
32
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VelcronAppDefinition } from "@omnia/fx-models";
|
|
2
|
-
import { Guid } from "../Guid";
|
|
2
|
+
import { Guid, GuidValue } from "../Guid";
|
|
3
3
|
import { SpacingDefinition, SpacingSettings } from "./SpacingSetting";
|
|
4
4
|
import { ColorSchemaType, ColorSchemaTypes, ColorType } from "./ThemeDefinitionV2";
|
|
5
5
|
import { TypographyDefinition } from "./TypographyDefinition";
|
|
@@ -32,7 +32,7 @@ export interface BlueprintItemDefinition {
|
|
|
32
32
|
export interface BlockBlueprint extends BlueprintItemDefinition {
|
|
33
33
|
type: "block";
|
|
34
34
|
header: {
|
|
35
|
-
definitionId:
|
|
35
|
+
definitionId: GuidValue;
|
|
36
36
|
definition?: VelcronAppDefinition;
|
|
37
37
|
};
|
|
38
38
|
colors: {
|
|
@@ -181,4 +181,7 @@ export interface OSelectRenderingItem<TValue = any, TRaw = any> {
|
|
|
181
181
|
[key: string]: any;
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
+
/** Lazy */
|
|
185
|
+
export declare const OLazyVariationDefinitions: readonly ["intersect", "next-tick"];
|
|
186
|
+
export type OLazyVariants = typeof OLazyVariationDefinitions[number];
|
|
184
187
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OListLineTypesName = exports.OListLineTypeDefinitions = exports.OListTypesName = exports.OListTypeDefinitions = exports.OListItemVariantsName = exports.OListItemVariantDefinitions = exports.ORatioTypesName = exports.ORatioTypeDefinitions = exports.OIconVariantsName = exports.OIconVariantDefinitions = exports.OIconAnimationsName = exports.OIconAnimationsDefinition = exports.OIconSizesName = exports.OIconSizeDefinitions = exports.OIconPresetsName = exports.OIconPresetDefinitions = exports.OPanelTypesName = exports.OPanelTypeDefinitions = exports.OPageDividerTypesName = exports.OPageDividerTypeDefinitions = exports.ODialogSizeDefinitions = exports.ODialogTypesName = exports.ODialogTypeDefinitions = exports.OAlignmentTypesName = exports.OAlignmentTypeDefinitions = exports.OColValuesName = exports.OColValueDefinitions = exports.OButtonGroupTypesName = exports.OButtonGroupTypeDefinitions = exports.OButtonVariantsName = exports.OButtonVariantDefinitions = exports.OButtonPresetsName = exports.OButtonPresetDefinitions = exports.OAlertTypesName = exports.OAlertTypeDefinitions = exports.OAppBarTypesName = exports.OAppBarTypeDefinitions = exports.OProgressSizeTypesName = exports.OProgressSizeTypeDefinitions = exports.OProgressVariantsName = exports.OProgressVariantDefinitions = exports.OProgressTypesName = exports.OProgressTypeDefinitions = exports.OSliderVariantsName = exports.OSliderVariantDefinitions = exports.ODirectionTypesName = exports.ODirectionDefinitions = exports.OContentHeightDefinitions = exports.OSizeTypesName = exports.OSizeTypeDefinitions = void 0;
|
|
4
|
-
exports.OInfiniteScrollStatusDefinitions = exports.ODatePickerVariantsName = exports.ODatePickerVariationDefinitions = exports.ODraggableVariantsName = exports.ODraggableVariationDefinitions = exports.OToolbarVariantsName = exports.OToolbarVariationDefinitions = exports.OTextBoxTypesName = exports.OTextBoxTypeDefinitions = exports.OTextBoxVariantTypesName = exports.OTextBoxVariantTypeDefinitions = exports.OTabVariantsName = exports.OTabVariantDefinitions = exports.OScrollOffsetTypesName = exports.OScrollOffsetTypeDefinitions = exports.OSkeletonLoaderName = exports.OSkeletonLoaderTypeDefinitions = exports.OSelectTypesName = exports.OSelectTypeDefinitions = exports.OVerticalAlignmentsName = exports.OVerticalAlignmentDefinitions = exports.OHorizontalAlignmentsName = exports.OHorizontalAlignmentDefinitions = exports.OPanelDirectionsName = exports.OPanelDirectionDefinitions = exports.OPanelVariantsName = exports.OPanelVariantDefinitions = exports.OPaddingTypesName = exports.OPaddingTypeDefinitions = exports.ODividerTypesName = exports.ODividerTypeDefinitions = exports.ONavigationDrawerVariantsName = exports.ONavigationDrawerVariantDefinitions = exports.ONavigationDrawerLocationsName = exports.ONavigationDrawerLocationDefinitions = exports.OMenuLocationsName = exports.OMenuLocationDefinitions = void 0;
|
|
4
|
+
exports.OLazyVariationDefinitions = exports.OInfiniteScrollStatusDefinitions = exports.ODatePickerVariantsName = exports.ODatePickerVariationDefinitions = exports.ODraggableVariantsName = exports.ODraggableVariationDefinitions = exports.OToolbarVariantsName = exports.OToolbarVariationDefinitions = exports.OTextBoxTypesName = exports.OTextBoxTypeDefinitions = exports.OTextBoxVariantTypesName = exports.OTextBoxVariantTypeDefinitions = exports.OTabVariantsName = exports.OTabVariantDefinitions = exports.OScrollOffsetTypesName = exports.OScrollOffsetTypeDefinitions = exports.OSkeletonLoaderName = exports.OSkeletonLoaderTypeDefinitions = exports.OSelectTypesName = exports.OSelectTypeDefinitions = exports.OVerticalAlignmentsName = exports.OVerticalAlignmentDefinitions = exports.OHorizontalAlignmentsName = exports.OHorizontalAlignmentDefinitions = exports.OPanelDirectionsName = exports.OPanelDirectionDefinitions = exports.OPanelVariantsName = exports.OPanelVariantDefinitions = exports.OPaddingTypesName = exports.OPaddingTypeDefinitions = exports.ODividerTypesName = exports.ODividerTypeDefinitions = exports.ONavigationDrawerVariantsName = exports.ONavigationDrawerVariantDefinitions = exports.ONavigationDrawerLocationsName = exports.ONavigationDrawerLocationDefinitions = exports.OMenuLocationsName = exports.OMenuLocationDefinitions = void 0;
|
|
5
5
|
/**Shared */
|
|
6
6
|
const block = ["top", "bottom"];
|
|
7
7
|
const inline = ["start", "end", "left", "right"];
|
|
@@ -123,3 +123,5 @@ exports.ODatePickerVariationDefinitions = ["modern", "classic"];
|
|
|
123
123
|
exports.ODatePickerVariantsName = "DatePickerVariants";
|
|
124
124
|
/** Infinte Scroll */
|
|
125
125
|
exports.OInfiniteScrollStatusDefinitions = ["ok", "empty", "loading", "error"];
|
|
126
|
+
/** Lazy */
|
|
127
|
+
exports.OLazyVariationDefinitions = ["intersect", "next-tick"];
|
package/package.json
CHANGED
package/ux/AdminApi.d.ts
CHANGED
|
@@ -8,9 +8,11 @@ export interface IRegisterAdminNavigationNode {
|
|
|
8
8
|
export interface IRegisterAdminNavigationMenuNode {
|
|
9
9
|
registerNavigationMenuNode: (nodes: NavigationMenuNode | NavigationMenuNode[]) => void;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
export interface INavigationRootNodeRegistration {
|
|
12
|
+
register(node: AdminNavigationNode, category: string, weight?: number): void;
|
|
13
|
+
}
|
|
14
|
+
export interface INavigationSubNodeRegistration {
|
|
15
|
+
register(node: AdminNavigationNode, parentNodeId: Guid, weight?: number): void;
|
|
14
16
|
}
|
|
15
17
|
export interface IAdminApi {
|
|
16
18
|
registration: {
|
|
@@ -21,7 +23,12 @@ export interface IAdminApi {
|
|
|
21
23
|
initializeNavigationNode: Promise<IMessageBusTopicPublishSubscriber<NavigationNodeInitializeMessage>>;
|
|
22
24
|
};
|
|
23
25
|
navigations: {
|
|
24
|
-
|
|
26
|
+
rootNodes: {
|
|
27
|
+
registrations: Promise<INavigationRootNodeRegistration>;
|
|
28
|
+
};
|
|
29
|
+
subNodes: {
|
|
30
|
+
registrations: Promise<INavigationSubNodeRegistration>;
|
|
31
|
+
};
|
|
25
32
|
};
|
|
26
33
|
}
|
|
27
34
|
declare module "./UxApi" {
|
|
@@ -38,10 +45,16 @@ declare module "./UxApi" {
|
|
|
38
45
|
initializeNavigationNode: ApiPath;
|
|
39
46
|
};
|
|
40
47
|
navigations: {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
rootNodes: {
|
|
49
|
+
registrations: IExtendApiManifestWithConfiguration<{
|
|
50
|
+
category: string;
|
|
51
|
+
}>;
|
|
52
|
+
};
|
|
53
|
+
subNodes: {
|
|
54
|
+
registrations: IExtendApiManifestWithConfiguration<{
|
|
55
|
+
parentNodeId: GuidValue;
|
|
56
|
+
}>;
|
|
57
|
+
};
|
|
45
58
|
};
|
|
46
59
|
};
|
|
47
60
|
}
|
package/ux/InternalAdminApi.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GuidValue } from "@omnia/fx-models";
|
|
2
2
|
import { AdminNavigationNode, NavigationNode } from "../admin";
|
|
3
3
|
import { NavigationMenuNode, IMessageBusTopicSubscription } from "../Messaging";
|
|
4
|
-
import { IRegisterAdminNavigationNode, IRegisterAdminNavigationMenuNode,
|
|
4
|
+
import { IRegisterAdminNavigationNode, IRegisterAdminNavigationMenuNode, INavigationRootNodeRegistration, INavigationSubNodeRegistration } from "./AdminApi";
|
|
5
5
|
export interface AdminNavigationNodeRegistration {
|
|
6
6
|
node: AdminNavigationNode;
|
|
7
7
|
/**
|
|
@@ -10,19 +10,23 @@ export interface AdminNavigationNodeRegistration {
|
|
|
10
10
|
*/
|
|
11
11
|
weight: number;
|
|
12
12
|
}
|
|
13
|
-
export interface IInternalAdminApi extends IRegisterAdminNavigationNode, IRegisterAdminNavigationMenuNode
|
|
13
|
+
export interface IInternalAdminApi extends IRegisterAdminNavigationNode, IRegisterAdminNavigationMenuNode {
|
|
14
14
|
getNavigationNodes: () => NavigationNode[];
|
|
15
15
|
getNavigationMenuNodes: () => NavigationMenuNode[];
|
|
16
16
|
onNavigationNodesChange: () => IMessageBusTopicSubscription<NavigationNode[]>;
|
|
17
17
|
onNavigationMenuNodesChange: () => IMessageBusTopicSubscription<NavigationMenuNode[]>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
node: AdminNavigationNodeRegistration;
|
|
23
|
-
}>;
|
|
24
|
-
onNavigationNodeRegistrationToCategoryAdded: () => IMessageBusTopicSubscription<{
|
|
18
|
+
}
|
|
19
|
+
export interface IInternalNavigationRootNodeApi extends INavigationRootNodeRegistration {
|
|
20
|
+
getRegistrations(category: string): Promise<AdminNavigationNodeRegistration[]>;
|
|
21
|
+
onRegistrationsChanged: () => IMessageBusTopicSubscription<{
|
|
25
22
|
category: string;
|
|
26
|
-
|
|
23
|
+
nodes: AdminNavigationNodeRegistration[];
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
export interface IInternalNavigationSubNodeApi extends INavigationSubNodeRegistration {
|
|
27
|
+
getRegistrations(parentNodeId: GuidValue): Promise<AdminNavigationNodeRegistration[]>;
|
|
28
|
+
onRegistrationsChanged: () => IMessageBusTopicSubscription<{
|
|
29
|
+
parentNodeId: GuidValue;
|
|
30
|
+
nodes: AdminNavigationNodeRegistration[];
|
|
27
31
|
}>;
|
|
28
32
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DynamicState,
|
|
1
|
+
import { DynamicState, GuidValue, ThemeDefinitionV2, VelcronAppDefinition } from "..";
|
|
2
2
|
export type VelcronDefitinionRegistrationsTypes = "content" | "card" | "header" | "general" | "property" | "block-header" | "social";
|
|
3
3
|
export interface VelcronDefinitionRegistration<TDefinitionState extends DynamicState = DynamicState> {
|
|
4
|
-
id:
|
|
4
|
+
id: GuidValue;
|
|
5
5
|
definition: VelcronAppDefinition<TDefinitionState>;
|
|
6
6
|
title: string;
|
|
7
7
|
previewTheme?: ThemeDefinitionV2;
|