@omnia/fx-models 8.0.124-dev → 8.0.127-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/BlockTitleSettings.d.ts +2 -2
- package/Constants.d.ts +1 -0
- package/Constants.js +1 -0
- package/FilterEngineStyles.d.ts +2 -2
- package/Http.d.ts +1 -23
- package/Http.js +6 -7
- package/Layout.d.ts +13 -13
- package/ManifestIds.d.ts +2 -1
- package/ManifestIds.js +5 -2
- package/PropertiesBlockStyles.d.ts +2 -2
- package/ShapeDividerSettingsModel.d.ts +2 -2
- package/apps/AppInstanceRollup.d.ts +3 -3
- package/enterprise-properties/EnterprisePropertySettings.d.ts +3 -3
- package/internal-do-not-import-from-here/shared/models/HttpCommon.d.ts +14 -0
- package/internal-do-not-import-from-here/shared/models/HttpCommon.js +7 -0
- package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +2 -1
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +14 -6
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +7 -1
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +10 -9
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.d.ts +16 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.d.ts +40 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.js +17 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +2 -2
- package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.d.ts +21 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.js +10 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/ExternalActorId.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/index.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/index.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +3 -1
- package/internal-do-not-import-from-here/shared/models/hub/index.js +3 -1
- package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.d.ts +3 -3
- package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts +10 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.js +19 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.js +7 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/index.js +4 -0
- package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +122 -0
- package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.d.ts → Chrome.d.ts} +6 -6
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +6 -6
- package/internal-do-not-import-from-here/shared/models/theming/Spacing.d.ts +22 -0
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +4 -4
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +1 -0
- package/internal-do-not-import-from-here/shared/models/theming/{TypographyDefinition.d.ts → Typography.d.ts} +19 -19
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +4 -4
- package/internal-do-not-import-from-here/shared/models/theming/index.js +4 -4
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.d.ts +20 -0
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.js +5 -0
- package/internal-do-not-import-from-here/shared/models/velcron/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/velcron/index.js +1 -0
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +27 -7
- package/media-picker/MediaPickerTransformations.d.ts +1 -0
- package/media-picker/index.d.ts +1 -0
- package/media-picker/index.js +1 -0
- package/media-picker/interfaces/IImageTransformHandler.d.ts +16 -0
- package/media-picker/interfaces/IImageTransformHandler.js +2 -0
- package/media-picker/interfaces/IMediaPickerGalleryHandler.d.ts +10 -0
- package/media-picker/interfaces/IMediaPickerGalleryHandler.js +2 -0
- package/media-picker/interfaces/IMediaPickerProviderMediaHandler.d.ts +58 -0
- package/media-picker/interfaces/IMediaPickerProviderMediaHandler.js +2 -0
- package/media-picker/interfaces/index.d.ts +4 -0
- package/media-picker/interfaces/index.js +7 -0
- package/media-picker/interfaces/types.d.ts +55 -0
- package/media-picker/interfaces/types.js +2 -0
- package/oxide/SharedSettings.d.ts +6 -0
- package/package.json +1 -1
- package/properties/definitions/IdentityPropertyDefinition.d.ts +3 -1
- package/properties/definitions/IdentityPropertyDefinition.js +2 -2
- package/internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.d.ts +0 -2
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.d.ts +0 -15
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.js +0 -5
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.d.ts +0 -40
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.js +0 -39
- package/internal-do-not-import-from-here/shared/models/theming/ComponentDefinitions.d.ts +0 -93
- package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.d.ts +0 -30
- /package/internal-do-not-import-from-here/shared/models/hub/{ExternalIdentityId.js → actors/ExternalActorId.js} +0 -0
- /package/internal-do-not-import-from-here/shared/models/theming/{ComponentDefinitions.js → Blueprints.js} +0 -0
- /package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.js → Chrome.js} +0 -0
- /package/internal-do-not-import-from-here/shared/models/theming/{SpacingSetting.js → Spacing.js} +0 -0
- /package/internal-do-not-import-from-here/shared/models/theming/{TypographyDefinition.js → Typography.js} +0 -0
@@ -0,0 +1,58 @@
|
|
1
|
+
import { MediaPickerImageScaling } from "../MediaPickerImageScaling";
|
2
|
+
import { MediaPickerVideo } from "../MediaPickerMedia";
|
3
|
+
import { MediaItem, ImageInformation } from "../Shared";
|
4
|
+
/**
|
5
|
+
* @description interface for media picker provider, which contains the logic for **handling the media picker provider** events
|
6
|
+
*/
|
7
|
+
export interface IMediaPickerProviderHandler {
|
8
|
+
/**
|
9
|
+
* @description handle select media event in the provider
|
10
|
+
* @param media the media that gets selected in the provider
|
11
|
+
*/
|
12
|
+
selectMedia: (media: MediaItem | MediaPickerVideo) => Promise<void>;
|
13
|
+
/**
|
14
|
+
* @param searchKeyword handle the search event in the provider
|
15
|
+
* @returns {Promise<Array<MediaItem>>} the result of the search
|
16
|
+
*/
|
17
|
+
search: (searchKeyword: string) => Promise<Array<MediaItem>>;
|
18
|
+
/**
|
19
|
+
* @description handle the search more event in the provider, when the user scrolls to the bottom of the search result
|
20
|
+
* @param searchQueryText search query text
|
21
|
+
* @param lastLoadedIndex index of the last loaded item
|
22
|
+
* @returns {Promise<Array<MediaItem>>} the result of the search
|
23
|
+
*/
|
24
|
+
searchMore: (searchQueryText: string, lastLoadedIndex: number) => Promise<Array<MediaItem>>;
|
25
|
+
}
|
26
|
+
export type ProcessImageOptions = {
|
27
|
+
needScaling: boolean;
|
28
|
+
imageInfo: ImageInformation;
|
29
|
+
scalingOptions?: MediaPickerImageScaling;
|
30
|
+
};
|
31
|
+
export interface IMediaPickerImageProviderHandler extends IMediaPickerProviderHandler {
|
32
|
+
/**
|
33
|
+
* @description handle the image scaling event in the provider, when the user selects the image scaling option
|
34
|
+
* @param imageInfo the image info of the selected image
|
35
|
+
* @returns {Promise<boolean>} if the image needs scaling
|
36
|
+
*/
|
37
|
+
handleImageScaling: (imageInfo: ImageInformation) => Promise<boolean>;
|
38
|
+
/**
|
39
|
+
* @description check if the image supports transformation, This is because we need to handle the event when user selecting scaling options in a provider
|
40
|
+
* @param imageInfo the image info of the selected image
|
41
|
+
* @returns {boolean} if the image supports transformation
|
42
|
+
*/
|
43
|
+
processImageAndAddToGallery: (options: ProcessImageOptions) => Promise<void>;
|
44
|
+
/**
|
45
|
+
* @description handle the select image event in the provider, when the provider already process the image.
|
46
|
+
* @param imageInfo the image info of the selected image
|
47
|
+
*/
|
48
|
+
selectImageInfo: (imageInfo: ImageInformation) => Promise<void>;
|
49
|
+
}
|
50
|
+
export interface IMediaPickerVideoProviderHandler extends IMediaPickerProviderHandler {
|
51
|
+
/**
|
52
|
+
* @description handle the update media event in the provider, when the user updates the media in the gallery
|
53
|
+
* @note This will probably be used only for video providers, because in omnia the video provider will update the video, while the image transformer will transform the image **NOT** the provider
|
54
|
+
* @param media This will be the media that gets updated in the gallery
|
55
|
+
* @param id the id of the media that gets updated in gallery store
|
56
|
+
*/
|
57
|
+
updateMedia: (media: MediaItem | MediaPickerVideo) => Promise<void>;
|
58
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./IImageTransformHandler"), exports);
|
5
|
+
tslib_1.__exportStar(require("./IMediaPickerGalleryHandler"), exports);
|
6
|
+
tslib_1.__exportStar(require("./IMediaPickerProviderMediaHandler"), exports);
|
7
|
+
tslib_1.__exportStar(require("./types"), exports);
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { GuidValue } from "@omnia/fx/internal-do-not-import-from-here/shared";
|
2
|
+
import { MediaPickerRenditionData } from "../MediaPickerImageRendition";
|
3
|
+
import { MediaPickerImageTransformationResult } from "../MediaPickerImageTransformationResult";
|
4
|
+
import { MediaPickerImage, MediaPickerVideo, MediaPickerMedia } from "../MediaPickerMedia";
|
5
|
+
import { MediaPickerProvider } from "../MediaPickerProvider";
|
6
|
+
import { MediaPickerTransformedBase64Image } from "../MediaPickerTransformedBase64Image";
|
7
|
+
import { IIcon } from "../../Icon";
|
8
|
+
export type MediaPickerMediaItem = MediaPickerImage | MediaPickerVideo | MediaPickerMedia;
|
9
|
+
export type MediaGallery = Array<MediaPickerMediaItem>;
|
10
|
+
export type ImageMetaData = {
|
11
|
+
[imageId: string]: {
|
12
|
+
renditions: Array<MediaPickerRenditionData>;
|
13
|
+
imageTransformationSource: MediaPickerTransformedBase64Image;
|
14
|
+
};
|
15
|
+
};
|
16
|
+
export type MediaPickerActionButton = {
|
17
|
+
text: string;
|
18
|
+
show: boolean;
|
19
|
+
onClick: any;
|
20
|
+
icon?: string;
|
21
|
+
iconLeft?: boolean;
|
22
|
+
loading?: boolean;
|
23
|
+
highLighted?: boolean;
|
24
|
+
leftAligned?: boolean;
|
25
|
+
};
|
26
|
+
export type MediaState = {
|
27
|
+
id: GuidValue;
|
28
|
+
isVideo: boolean;
|
29
|
+
isChanged: boolean;
|
30
|
+
media?: MediaPickerMediaItem;
|
31
|
+
transformerInfo?: MediaPickerImageTransformationResult;
|
32
|
+
isNew: boolean;
|
33
|
+
convertingFromBase64ToMediaPicker: boolean;
|
34
|
+
provider?: MediaPickerProvider;
|
35
|
+
index?: number;
|
36
|
+
};
|
37
|
+
export type MenuItem = {
|
38
|
+
menuItemId: GuidValue;
|
39
|
+
title?: string;
|
40
|
+
icon: IIcon;
|
41
|
+
connectedProvider: MediaPickerProvider;
|
42
|
+
};
|
43
|
+
export type MediaResult = {
|
44
|
+
index: number;
|
45
|
+
media: MediaPickerMediaItem;
|
46
|
+
};
|
47
|
+
export type MediaPickerMessage = {
|
48
|
+
message: string;
|
49
|
+
icon?: IIcon;
|
50
|
+
};
|
51
|
+
export type ImageRendition = {
|
52
|
+
mediaStateId: GuidValue;
|
53
|
+
mediaPickerRenditionData: MediaPickerRenditionData[];
|
54
|
+
sourceImage: MediaPickerTransformedBase64Image;
|
55
|
+
};
|
@@ -1,7 +1,13 @@
|
|
1
|
+
import { TabsBlueprint } from "../Exposes";
|
1
2
|
export interface ExpansionPanelSharedSettings {
|
2
3
|
variant?: string;
|
3
4
|
toned?: boolean;
|
4
5
|
}
|
6
|
+
export interface TabSharedSettings {
|
7
|
+
blueprint?: TabsBlueprint;
|
8
|
+
selectedIndex?: number;
|
9
|
+
tabRegistrations?: number;
|
10
|
+
}
|
5
11
|
export interface ListItemSharedSettings {
|
6
12
|
variant?: string;
|
7
13
|
toned?: boolean;
|
package/package.json
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
import { Guid } from "@omnia/fx
|
1
|
+
import { Guid } from "@omnia/fx/internal-do-not-import-from-here/shared";
|
2
2
|
import { LockStatusExcludeChildren, PropertyLockStatusType } from "../../../ux";
|
3
|
+
import { PrincipalTypes } from "../../Enums";
|
3
4
|
import { PropertyDefinition, PropertyDisplaySettingsBase, PropertyEditorSettingsBase } from "../PropertyDefinition";
|
4
5
|
import { IdentityPropertyValue } from "../values";
|
5
6
|
export declare class IdentityPropertyDisplaySettings extends PropertyDisplaySettingsBase {
|
@@ -11,6 +12,7 @@ export declare class IdentityPropertyDisplaySettings extends PropertyDisplaySett
|
|
11
12
|
export declare class IdentityPropertyEditorSettings extends PropertyEditorSettingsBase {
|
12
13
|
locks?: PropertyLockStatusType<Omit<IdentityPropertyEditorSettings, "locks">>;
|
13
14
|
multiple?: boolean;
|
15
|
+
type?: PrincipalTypes;
|
14
16
|
}
|
15
17
|
export declare const identityPropertyDefinitionId: Guid;
|
16
18
|
export declare class IdentityPropertyDefinition extends PropertyDefinition<IdentityPropertyValue, IdentityPropertyDisplaySettings, IdentityPropertyEditorSettings> {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.IdentityPropertyDefinition = exports.identityPropertyDefinitionId = exports.IdentityPropertyEditorSettings = exports.IdentityPropertyDisplaySettings = void 0;
|
4
|
-
const
|
4
|
+
const shared_1 = require("@omnia/fx/internal-do-not-import-from-here/shared");
|
5
5
|
const PropertyDefinition_1 = require("../PropertyDefinition");
|
6
6
|
class IdentityPropertyDisplaySettings extends PropertyDefinition_1.PropertyDisplaySettingsBase {
|
7
7
|
}
|
@@ -9,7 +9,7 @@ exports.IdentityPropertyDisplaySettings = IdentityPropertyDisplaySettings;
|
|
9
9
|
class IdentityPropertyEditorSettings extends PropertyDefinition_1.PropertyEditorSettingsBase {
|
10
10
|
}
|
11
11
|
exports.IdentityPropertyEditorSettings = IdentityPropertyEditorSettings;
|
12
|
-
exports.identityPropertyDefinitionId = new
|
12
|
+
exports.identityPropertyDefinitionId = new shared_1.Guid("4dfc3b66-a203-447d-8f64-171f47e5b63a");
|
13
13
|
class IdentityPropertyDefinition extends PropertyDefinition_1.PropertyDefinition {
|
14
14
|
constructor() {
|
15
15
|
super(...arguments);
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { StronglyTypedId } from "../../StronglyTypedId";
|
2
|
-
export type ActivitySenderId = StronglyTypedId<number, "ActivitySenderId">;
|
3
|
-
export declare function ActivitySenderId(id: number): ActivitySenderId;
|
4
|
-
export interface ActivitySenderWithBag<TBag> extends ActivitySender {
|
5
|
-
bag: TBag;
|
6
|
-
}
|
7
|
-
export interface ActivitySender extends ActivitySenderBase {
|
8
|
-
id: ActivitySenderId;
|
9
|
-
imageUrl: string;
|
10
|
-
}
|
11
|
-
export interface ActivitySenderBase {
|
12
|
-
name: Record<string, string>;
|
13
|
-
description: Record<string, string>;
|
14
|
-
externalId: string;
|
15
|
-
}
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import { DynamicState } from "../../DynamicState";
|
2
|
-
import { Activity, ActivityId } from "./Activity";
|
3
|
-
import { ChannelId } from "./ActivityChannel";
|
4
|
-
import { ActivitySender, ActivitySenderId } from "./ActivitySender";
|
5
|
-
export declare enum IdentityActivityStatus {
|
6
|
-
new = 0,
|
7
|
-
read = 1,
|
8
|
-
completed = 2
|
9
|
-
}
|
10
|
-
export declare enum IdentityActivityCategory {
|
11
|
-
none = 0,
|
12
|
-
important = 1,
|
13
|
-
todo = 2,
|
14
|
-
snoozed = 3,
|
15
|
-
bookmarked = 4
|
16
|
-
}
|
17
|
-
export interface IdentityActivityBase {
|
18
|
-
activityId: ActivityId;
|
19
|
-
status: IdentityActivityStatus;
|
20
|
-
category: IdentityActivityCategory;
|
21
|
-
}
|
22
|
-
export interface IdentityActivity<TRenderState extends DynamicState, TState extends DynamicState> extends IdentityActivityBase {
|
23
|
-
activity: Activity<TRenderState>;
|
24
|
-
state?: TState;
|
25
|
-
}
|
26
|
-
export interface IdentityActivityWithJson extends IdentityActivityBase {
|
27
|
-
stateJson: string;
|
28
|
-
}
|
29
|
-
export interface NewActivitiesBySenderBase {
|
30
|
-
count: number;
|
31
|
-
senderId: ActivitySenderId;
|
32
|
-
}
|
33
|
-
export interface NewActivitiesBySender extends NewActivitiesBySenderBase {
|
34
|
-
sender: ActivitySender;
|
35
|
-
channelId: ChannelId;
|
36
|
-
}
|
37
|
-
export interface ActivityCategoryCount {
|
38
|
-
category: IdentityActivityCategory;
|
39
|
-
count: number;
|
40
|
-
}
|
@@ -1,39 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.IdentityActivityCategory = exports.IdentityActivityStatus = void 0;
|
4
|
-
var IdentityActivityStatus;
|
5
|
-
(function (IdentityActivityStatus) {
|
6
|
-
IdentityActivityStatus[IdentityActivityStatus["new"] = 0] = "new";
|
7
|
-
IdentityActivityStatus[IdentityActivityStatus["read"] = 1] = "read";
|
8
|
-
IdentityActivityStatus[IdentityActivityStatus["completed"] = 2] = "completed";
|
9
|
-
})(IdentityActivityStatus || (exports.IdentityActivityStatus = IdentityActivityStatus = {}));
|
10
|
-
var IdentityActivityCategory;
|
11
|
-
(function (IdentityActivityCategory) {
|
12
|
-
IdentityActivityCategory[IdentityActivityCategory["none"] = 0] = "none";
|
13
|
-
IdentityActivityCategory[IdentityActivityCategory["important"] = 1] = "important";
|
14
|
-
IdentityActivityCategory[IdentityActivityCategory["todo"] = 2] = "todo";
|
15
|
-
IdentityActivityCategory[IdentityActivityCategory["snoozed"] = 3] = "snoozed";
|
16
|
-
IdentityActivityCategory[IdentityActivityCategory["bookmarked"] = 4] = "bookmarked";
|
17
|
-
})(IdentityActivityCategory || (exports.IdentityActivityCategory = IdentityActivityCategory = {}));
|
18
|
-
// Usage
|
19
|
-
// const activity1: IdentityActivity<SomeRenderState> = {
|
20
|
-
// activity: {
|
21
|
-
// // Initialize your Activity here
|
22
|
-
// },
|
23
|
-
// state: {
|
24
|
-
// // Initialize your State here
|
25
|
-
// },
|
26
|
-
// };
|
27
|
-
// const activity2: IdentityActivity<SomeRenderState, SomeState> = {
|
28
|
-
// activity: {
|
29
|
-
// // Initialize your Activity here
|
30
|
-
// },
|
31
|
-
// state: {
|
32
|
-
// // Initialize your State here
|
33
|
-
// },
|
34
|
-
// };
|
35
|
-
// const activity3: IdentityActivityWithJson = {
|
36
|
-
// activityId: 22,
|
37
|
-
// status: IdentityActivityStatus.unRead,
|
38
|
-
// stateJson: "someJson",
|
39
|
-
// };
|
@@ -1,93 +0,0 @@
|
|
1
|
-
import { BackgroundDefinition, FillDefinition } from "./ThemeDefinitionV2";
|
2
|
-
import { ChromeDefinition } from "./ChromeDefinition";
|
3
|
-
import { SpacingDefinition, SpacingSettings } from "./SpacingSetting";
|
4
|
-
import { TypographyDefinition, TypographyValue } from "./TypographyDefinition";
|
5
|
-
export interface BoxDimensions extends SpacingSettings {
|
6
|
-
}
|
7
|
-
export interface ChromeBluePrintDefinitions {
|
8
|
-
default: ChromeDefinition;
|
9
|
-
variant1: ChromeDefinition;
|
10
|
-
variant2: ChromeDefinition;
|
11
|
-
variant3: ChromeDefinition;
|
12
|
-
}
|
13
|
-
export type BlueprintType = "chrome" | "typography" | "spacing" | "component";
|
14
|
-
export type ChromeBlueprintVariants = "default" | "variant1" | "variant2" | "variant3";
|
15
|
-
export type TypographyBlueprintVariants = "default" | "variant1";
|
16
|
-
export type SpacingBlueprintVariants = "default";
|
17
|
-
export interface BlueprintDefinition {
|
18
|
-
type: BlueprintType;
|
19
|
-
name: string;
|
20
|
-
}
|
21
|
-
export interface ChromeBlueprint extends BlueprintDefinition {
|
22
|
-
type: "chrome";
|
23
|
-
default: ChromeDefinition;
|
24
|
-
variant1?: ChromeDefinition;
|
25
|
-
variant2?: ChromeDefinition;
|
26
|
-
variant3?: ChromeDefinition;
|
27
|
-
}
|
28
|
-
export interface TypographyBlueprint extends BlueprintDefinition {
|
29
|
-
type: "typography";
|
30
|
-
default: TypographyDefinition;
|
31
|
-
variant1?: TypographyDefinition;
|
32
|
-
}
|
33
|
-
export interface SpacingBlueprint extends BlueprintDefinition {
|
34
|
-
type: "spacing";
|
35
|
-
default: SpacingItemBluePrintDefinition;
|
36
|
-
}
|
37
|
-
export interface ComponentBlueprint extends BlueprintDefinition {
|
38
|
-
type: "component";
|
39
|
-
buttons?: {
|
40
|
-
high: {
|
41
|
-
regular: ButtonBlueprint;
|
42
|
-
icon: ButtonBlueprint;
|
43
|
-
};
|
44
|
-
medium: {
|
45
|
-
regular: ButtonBlueprint;
|
46
|
-
icon: ButtonBlueprint;
|
47
|
-
};
|
48
|
-
low: {
|
49
|
-
regular: ButtonBlueprint;
|
50
|
-
icon: ButtonBlueprint;
|
51
|
-
};
|
52
|
-
};
|
53
|
-
}
|
54
|
-
export interface SpacingItemBluePrintDefinition {
|
55
|
-
layout: SpacingDefinition;
|
56
|
-
inner: SpacingDefinition;
|
57
|
-
}
|
58
|
-
export type SpacingBlueprintTypes = "inner" | "layout";
|
59
|
-
export type WebBlueprintItemDefintionType = "button" | "searchbox" | "text" | "icon";
|
60
|
-
export declare enum WebBlueprintItemDefintionTypes {
|
61
|
-
button = "button",
|
62
|
-
searchbox = "searchbox"
|
63
|
-
}
|
64
|
-
export type VelcronBlueprintDefintionType = "button";
|
65
|
-
export declare enum VelcronBlueprintDefintionTypes {
|
66
|
-
button = "button"
|
67
|
-
}
|
68
|
-
export interface BlueprintItemDefinition {
|
69
|
-
type: VelcronBlueprintDefintionType | WebBlueprintItemDefintionType;
|
70
|
-
}
|
71
|
-
export interface SearchBoxBlueprint extends BlueprintItemDefinition {
|
72
|
-
type: "searchbox";
|
73
|
-
borderRadius?: BoxDimensions;
|
74
|
-
variant?: "outlined" | "solo" | "regular" | "plain" | "underlined";
|
75
|
-
}
|
76
|
-
export interface ButtonBlueprint extends BlueprintItemDefinition {
|
77
|
-
type: "button";
|
78
|
-
padding?: SpacingSettings;
|
79
|
-
background?: BackgroundDefinition;
|
80
|
-
alterCase?: boolean;
|
81
|
-
text?: TextBlueprint;
|
82
|
-
icon?: IconBlueprint;
|
83
|
-
}
|
84
|
-
export interface TextBlueprint extends BlueprintItemDefinition {
|
85
|
-
type: "text";
|
86
|
-
color?: FillDefinition;
|
87
|
-
typography?: TypographyValue;
|
88
|
-
}
|
89
|
-
export interface IconBlueprint extends BlueprintItemDefinition {
|
90
|
-
type: "icon";
|
91
|
-
color?: FillDefinition;
|
92
|
-
size?: number;
|
93
|
-
}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import { Guid } from "../Guid";
|
2
|
-
export interface Spacing {
|
3
|
-
top?: number;
|
4
|
-
right?: number;
|
5
|
-
bottom?: number;
|
6
|
-
left?: number;
|
7
|
-
}
|
8
|
-
export interface SpacingSettings {
|
9
|
-
top?: number | SpacingType;
|
10
|
-
right?: number | SpacingType;
|
11
|
-
bottom?: number | SpacingType;
|
12
|
-
left?: number | SpacingType;
|
13
|
-
}
|
14
|
-
export interface SpacingDefinition {
|
15
|
-
name: string;
|
16
|
-
id: Guid;
|
17
|
-
xs: number;
|
18
|
-
s: number;
|
19
|
-
m: number;
|
20
|
-
l: number;
|
21
|
-
xl: number;
|
22
|
-
}
|
23
|
-
export type SpacingType = "xs" | "s" | "m" | "l" | "xl";
|
24
|
-
export declare enum SpacingTypes {
|
25
|
-
xs = "xs",
|
26
|
-
s = "s",
|
27
|
-
m = "m",
|
28
|
-
l = "l",
|
29
|
-
xl = "xl"
|
30
|
-
}
|
File without changes
|
File without changes
|
/package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.js → Chrome.js}
RENAMED
File without changes
|
/package/internal-do-not-import-from-here/shared/models/theming/{SpacingSetting.js → Spacing.js}
RENAMED
File without changes
|
File without changes
|