@omnia/fx-models 7.5.74-dev → 8.0.0-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 +5 -5
- package/ClientManifests.d.ts +23 -8
- package/ClientManifests.js +8 -0
- package/Constants.d.ts +1 -0
- package/Constants.js +1 -0
- package/Enums.d.ts +14 -1
- package/Enums.js +17 -2
- package/Exposes.d.ts +7 -1
- package/Exposes.js +7 -1
- package/Extends.d.ts +2 -2
- package/FilterEngineStyles.d.ts +1 -1
- package/FilterpickerModel.d.ts +9 -0
- package/Func.d.ts +28 -0
- package/IPropertiesApi.d.ts +1 -1
- package/Icon.d.ts +17 -0
- package/Icon.js +66 -1
- package/Journey.d.ts +8 -2
- package/Layout.d.ts +15 -17
- package/LayoutDefinition.d.ts +5 -1
- package/LinkHandler/linktype/DefaultLinkType.js +1 -1
- package/LinkHandler/linktype/DocumentLinkType.js +1 -1
- package/ManifestIds.d.ts +60 -4
- package/ManifestIds.js +172 -9
- package/MediaScalingSettings.d.ts +6 -0
- package/Messaging.d.ts +1 -0
- package/Secrets.d.ts +1 -0
- package/TargetingProperty.js +1 -1
- package/TokenDefinition.d.ts +1 -1
- package/apps/AppInstanceRollup.d.ts +1 -1
- package/apps/AppInstanceRollup.js +1 -1
- package/azure-openai/dalle/ErrorResponse.js +1 -1
- package/azure-openai/dalle/StatusRequest.js +1 -1
- package/componentproptypes/ThemeableComponents.d.ts +7 -0
- package/componentproptypes/ThemeableComponents.js +2 -0
- package/componentproptypes/index.d.ts +1 -0
- package/componentproptypes/index.js +4 -0
- package/docs/Api.d.ts +37 -0
- package/docs/Api.js +2 -0
- package/docs/index.d.ts +1 -0
- package/docs/index.js +4 -0
- package/editor-chrome/IActionButton.d.ts +1 -2
- package/editor-chrome/IEditorItemPanelsRenderer.d.ts +1 -1
- package/enterprise-glossary/EnterpriseGlossaryApis.d.ts +1 -1
- package/identities/Identity.d.ts +11 -3
- package/identities/Identity.js +17 -0
- package/identities/IdentityCreationRequest.js +1 -1
- package/internal-do-not-import-from-here/shared/models/Bring.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/DynamicState.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/DynamicState.js +2 -0
- package/internal-do-not-import-from-here/shared/models/Equals.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/Equals.js +45 -0
- package/internal-do-not-import-from-here/shared/models/Future.d.ts +4 -1
- package/internal-do-not-import-from-here/shared/models/Future.js +14 -6
- package/internal-do-not-import-from-here/shared/models/Guid.d.ts +9 -2
- package/internal-do-not-import-from-here/shared/models/Guid.js +26 -4
- package/internal-do-not-import-from-here/shared/models/StronglyTypedId.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/StronglyTypedId.js +2 -0
- package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.d.ts +7 -1
- package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.js +5 -1
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +35 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +7 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.d.ts +7 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.d.ts +10 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.d.ts +11 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.js +6 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/FeedResult.d.ts +11 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/FeedResult.js +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.d.ts +18 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.js +31 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +6 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +9 -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 +4 -0
- package/internal-do-not-import-from-here/shared/models/index.d.ts +4 -0
- package/internal-do-not-import-from-here/shared/models/index.js +4 -0
- package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.d.ts +54 -18
- package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.js +16 -0
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +37 -0
- package/internal-do-not-import-from-here/shared/models/theming/SharedColorMethods.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/theming/SharedColorMethods.js +45 -0
- package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.d.ts +23 -0
- package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.js +11 -0
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +55 -34
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +27 -22
- package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.d.ts +35 -15
- package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.js +15 -9
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +13 -0
- package/internal-do-not-import-from-here/shared/models/theming/{ThemeMethods.js → UseThemeMethods.js} +56 -70
- package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +5 -1
- package/internal-do-not-import-from-here/shared/models/theming/index.js +5 -1
- package/internal-do-not-import-from-here/velcron/core/models/Enums.d.ts +7 -16
- package/internal-do-not-import-from-here/velcron/core/models/Enums.js +14 -24
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +131 -83
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.js +2 -2
- package/internal-do-not-import-from-here/velcron/core/models/VelcronEvents.d.ts +5 -2
- package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +120 -0
- package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.js +16 -0
- package/internal-do-not-import-from-here/velcron/core/models/index.d.ts +1 -1
- package/internal-do-not-import-from-here/velcron/core/models/index.js +1 -1
- package/media-picker/MediaPickerImageRendition.d.ts +4 -4
- package/media-picker/MediaPickerSearchProvider.d.ts +5 -0
- package/media-picker/MediaPickerSearchProvider.js +2 -0
- package/media-picker/MediaPickerTransformations.d.ts +5 -4
- package/media-picker/Providers/CentralImageLocationProvider.js +1 -1
- package/media-picker/Providers/DallEProvider.js +1 -1
- package/media-picker/Providers/MyComputerProvider.js +1 -1
- package/media-picker/Providers/PexelProvider.js +2 -2
- package/media-picker/Providers/UnsplashProvider.d.ts +18 -0
- package/media-picker/Providers/UnsplashProvider.js +23 -0
- package/media-picker/Providers/index.d.ts +1 -0
- package/media-picker/Providers/index.js +1 -0
- package/media-picker/Shared.d.ts +7 -1
- package/media-picker/index.d.ts +2 -0
- package/media-picker/index.js +2 -0
- package/media-picker/localize.d.ts +26 -0
- package/media-picker/localize.js +7 -0
- package/mediaflow/Constants.js +2 -2
- package/oxide/OxideTypeDefinitions.d.ts +147 -0
- package/oxide/OxideTypeDefinitions.js +112 -0
- package/oxide/SharedSettings.d.ts +8 -0
- package/oxide/SharedSettings.js +2 -0
- package/oxide/TreeView.d.ts +10 -0
- package/oxide/TreeView.js +2 -0
- package/oxide/index.d.ts +3 -0
- package/oxide/index.js +6 -0
- package/package.json +1 -1
- package/properties/IPropertyValueRenderer.d.ts +3 -4
- package/properties/PropertyDefinition.d.ts +5 -1
- package/properties/PropertyDefinition.js +4 -1
- package/properties/definitions/BirthdayPropertyDefinition.d.ts +5 -6
- package/properties/definitions/BirthdayPropertyDefinition.js +7 -1
- package/properties/definitions/BooleanPropertyDefinition.d.ts +3 -2
- package/properties/definitions/BooleanPropertyDefinition.js +4 -1
- package/properties/definitions/DatePropertyDefinition.d.ts +5 -5
- package/properties/definitions/DatePropertyDefinition.js +7 -1
- package/properties/definitions/DateTimePropertyDefinition.d.ts +5 -5
- package/properties/definitions/DateTimePropertyDefinition.js +7 -1
- package/properties/definitions/EmailPropertyDefinition.d.ts +3 -3
- package/properties/definitions/EmailPropertyDefinition.js +4 -1
- package/properties/definitions/HtmlPropertyDefinition.d.ts +5 -6
- package/properties/definitions/HtmlPropertyDefinition.js +7 -1
- package/properties/definitions/IdentityPropertyDefinition.d.ts +3 -4
- package/properties/definitions/IdentityPropertyDefinition.js +4 -1
- package/properties/definitions/ImagePropertyDefinition.d.ts +5 -5
- package/properties/definitions/ImagePropertyDefinition.js +7 -1
- package/properties/definitions/IntegerPropertyDefinition.d.ts +3 -4
- package/properties/definitions/IntegerPropertyDefinition.js +4 -1
- package/properties/definitions/LanguagePropertyDefinition.d.ts +3 -5
- package/properties/definitions/LanguagePropertyDefinition.js +4 -1
- package/properties/definitions/LinkPropertyDefinition.d.ts +3 -4
- package/properties/definitions/LinkPropertyDefinition.js +4 -1
- package/properties/definitions/MediaPropertyDefinition.d.ts +3 -3
- package/properties/definitions/MediaPropertyDefinition.js +4 -1
- package/properties/definitions/MultilineTextPropertyDefinition.d.ts +3 -4
- package/properties/definitions/MultilineTextPropertyDefinition.js +4 -1
- package/properties/definitions/MultilingualTextPropertyDefinition.d.ts +5 -6
- package/properties/definitions/MultilingualTextPropertyDefinition.js +6 -3
- package/properties/definitions/PhoneNumberPropertyDefinition.d.ts +3 -4
- package/properties/definitions/PhoneNumberPropertyDefinition.js +4 -1
- package/properties/definitions/TagsPropertyDefinition.d.ts +3 -2
- package/properties/definitions/TagsPropertyDefinition.js +4 -1
- package/properties/definitions/TextPropertyDefinition.d.ts +3 -4
- package/properties/definitions/TextPropertyDefinition.js +4 -1
- package/properties/definitions/TimePropertyDefinition.d.ts +5 -6
- package/properties/definitions/TimePropertyDefinition.js +7 -1
- package/properties/values/DatePropertyValue.d.ts +1 -1
- package/properties/values/DatePropertyValue.js +1 -1
- package/richtext-editor-extensions/BoldExtension.d.ts +1 -1
- package/richtext-editor-extensions/TipTapEditor.d.ts +9 -10
- package/ux/LayoutEditorCanvas.d.ts +2 -1
- package/ux/ThemingApi.d.ts +19 -0
- package/ux/ThemingApi.js +2 -0
- package/ux/UxApi.d.ts +1 -1
- package/ux/VelcronDefinitionApi.d.ts +24 -0
- package/ux/VelcronDefinitionApi.js +2 -0
- package/ux/index.d.ts +2 -0
- package/ux/index.js +2 -0
- package/velcron/VelcronDefinitionRegistration.d.ts +9 -0
- package/velcron/VelcronDefinitionRegistration.js +2 -0
- package/velcron/index.d.ts +1 -0
- package/velcron/index.js +4 -0
- package/SpacingSetting.d.ts +0 -6
- package/VueInject.d.ts +0 -5
- package/internal-do-not-import-from-here/shared/models/theming/ThemeMethods.d.ts +0 -11
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDescriptors.d.ts +0 -35
- /package/{SpacingSetting.js → FilterpickerModel.js} +0 -0
- /package/{VueInject.js → Func.js} +0 -0
- /package/{internal-do-not-import-from-here/velcron/core/models/VelcronDescriptors.js → MediaScalingSettings.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VelcronDataTypes = exports.
|
|
3
|
+
exports.VelcronDataTypes = exports.VelcronVerticalAlignments = exports.VelcronHorizontalAlignments = exports.VelcronViewDirections = exports.VelcronIconTypes = exports.VelcronActionTypes = exports.AssignOperators = void 0;
|
|
4
4
|
var AssignOperators;
|
|
5
5
|
(function (AssignOperators) {
|
|
6
6
|
AssignOperators["equals"] = "=";
|
|
@@ -22,35 +22,25 @@ var VelcronIconTypes;
|
|
|
22
22
|
(function (VelcronIconTypes) {
|
|
23
23
|
VelcronIconTypes["fontAwesome"] = "fa";
|
|
24
24
|
})(VelcronIconTypes = exports.VelcronIconTypes || (exports.VelcronIconTypes = {}));
|
|
25
|
+
var VelcronViewDirections;
|
|
26
|
+
(function (VelcronViewDirections) {
|
|
27
|
+
VelcronViewDirections["row"] = "row";
|
|
28
|
+
VelcronViewDirections["column"] = "column";
|
|
29
|
+
VelcronViewDirections["rowReverse"] = "row-reverse";
|
|
30
|
+
VelcronViewDirections["columnRevers"] = "column-reverse";
|
|
31
|
+
})(VelcronViewDirections = exports.VelcronViewDirections || (exports.VelcronViewDirections = {}));
|
|
25
32
|
var VelcronHorizontalAlignments;
|
|
26
33
|
(function (VelcronHorizontalAlignments) {
|
|
27
34
|
VelcronHorizontalAlignments["left"] = "left";
|
|
28
35
|
VelcronHorizontalAlignments["center"] = "center";
|
|
29
36
|
VelcronHorizontalAlignments["right"] = "right";
|
|
30
37
|
})(VelcronHorizontalAlignments = exports.VelcronHorizontalAlignments || (exports.VelcronHorizontalAlignments = {}));
|
|
31
|
-
var
|
|
32
|
-
(function (
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
})(
|
|
37
|
-
var VelcronDescriptorTypes;
|
|
38
|
-
(function (VelcronDescriptorTypes) {
|
|
39
|
-
VelcronDescriptorTypes[VelcronDescriptorTypes["component"] = 0] = "component";
|
|
40
|
-
VelcronDescriptorTypes[VelcronDescriptorTypes["subComponent"] = 1] = "subComponent";
|
|
41
|
-
VelcronDescriptorTypes[VelcronDescriptorTypes["appData"] = 2] = "appData";
|
|
42
|
-
VelcronDescriptorTypes[VelcronDescriptorTypes["dataMember"] = 3] = "dataMember";
|
|
43
|
-
})(VelcronDescriptorTypes = exports.VelcronDescriptorTypes || (exports.VelcronDescriptorTypes = {}));
|
|
44
|
-
var VelcronComponentPropertyEditors;
|
|
45
|
-
(function (VelcronComponentPropertyEditors) {
|
|
46
|
-
VelcronComponentPropertyEditors[VelcronComponentPropertyEditors["text"] = 0] = "text";
|
|
47
|
-
VelcronComponentPropertyEditors[VelcronComponentPropertyEditors["colorSchemaPicker"] = 1] = "colorSchemaPicker";
|
|
48
|
-
VelcronComponentPropertyEditors[VelcronComponentPropertyEditors["slider"] = 2] = "slider";
|
|
49
|
-
VelcronComponentPropertyEditors[VelcronComponentPropertyEditors["colorPicker"] = 3] = "colorPicker";
|
|
50
|
-
VelcronComponentPropertyEditors[VelcronComponentPropertyEditors["typographyPicker"] = 4] = "typographyPicker";
|
|
51
|
-
VelcronComponentPropertyEditors[VelcronComponentPropertyEditors["ratioPicker"] = 5] = "ratioPicker";
|
|
52
|
-
VelcronComponentPropertyEditors[VelcronComponentPropertyEditors["booleanPicker"] = 6] = "booleanPicker";
|
|
53
|
-
})(VelcronComponentPropertyEditors = exports.VelcronComponentPropertyEditors || (exports.VelcronComponentPropertyEditors = {}));
|
|
38
|
+
var VelcronVerticalAlignments;
|
|
39
|
+
(function (VelcronVerticalAlignments) {
|
|
40
|
+
VelcronVerticalAlignments["top"] = "top";
|
|
41
|
+
VelcronVerticalAlignments["center"] = "center";
|
|
42
|
+
VelcronVerticalAlignments["bottom"] = "bottom";
|
|
43
|
+
})(VelcronVerticalAlignments = exports.VelcronVerticalAlignments || (exports.VelcronVerticalAlignments = {}));
|
|
54
44
|
var VelcronDataTypes;
|
|
55
45
|
(function (VelcronDataTypes) {
|
|
56
46
|
//Unknown = null
|
|
@@ -1,33 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { VelcronEvent, VelcronOnChangedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnLoadEvent, VelcronOnPressEvent } from "./VelcronEvents";
|
|
1
|
+
import { VelcronEvent, VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent, VelcronOnPressEvent } from "./VelcronEvents";
|
|
3
2
|
import { VelcroncomponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
|
|
4
|
-
import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes,
|
|
5
|
-
import {
|
|
3
|
+
import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VelcronVerticalAlignments } from "./Enums";
|
|
4
|
+
import { DynamicState, VelcronPropertyEditor, useVelcronThemingStore } from "..";
|
|
5
|
+
import { GuidValue, PropertyConfiguration, PropertyValue, PropertyDefinition, PropertySetupBase } from "@omnia/fx/models";
|
|
6
|
+
import { useVelcronColorSchemaStore } from "../stores/VelcronColorSchema";
|
|
7
|
+
import { useVelcronBlueprintStore } from "../stores/VelcronBlueprint";
|
|
6
8
|
export interface ResolvedComponentRenderer {
|
|
7
9
|
component: unknown;
|
|
8
10
|
definition: VelcronDefinition;
|
|
9
11
|
customComponent?: boolean;
|
|
10
12
|
}
|
|
11
13
|
export interface BuiltInComponentRenderers {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
14
|
+
"view": unknown;
|
|
15
|
+
"card": unknown;
|
|
16
|
+
"text": unknown;
|
|
17
|
+
"image": unknown;
|
|
18
|
+
"button": unknown;
|
|
19
|
+
"text-input": unknown;
|
|
20
|
+
"progress-circle": unknown;
|
|
21
|
+
"web-view": unknown;
|
|
22
|
+
"custom-component": unknown;
|
|
23
|
+
"dialog": unknown;
|
|
24
|
+
"icon": unknown;
|
|
25
|
+
"chip": unknown;
|
|
26
|
+
"markdown": unknown;
|
|
27
|
+
"slot": unknown;
|
|
28
|
+
"property": unknown;
|
|
25
29
|
}
|
|
26
30
|
export interface ColorSchemaReference {
|
|
27
31
|
name: string;
|
|
28
32
|
schema: string;
|
|
29
33
|
}
|
|
30
|
-
export type DynamicState = object;
|
|
31
34
|
export interface OnItemRenderedHookResult {
|
|
32
35
|
cssClass: string;
|
|
33
36
|
containerRenderer?: VelcronContainerRenderer;
|
|
@@ -37,21 +40,23 @@ export interface VelcronRenderContext {
|
|
|
37
40
|
rootContext: DynamicState;
|
|
38
41
|
currentContext: DynamicState;
|
|
39
42
|
theming?: ReturnType<typeof useVelcronThemingStore>;
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
colors?: ReturnType<typeof useVelcronColorSchemaStore>;
|
|
44
|
+
blueprints?: ReturnType<typeof useVelcronBlueprintStore>;
|
|
42
45
|
actions?: {
|
|
43
|
-
[name: string]:
|
|
46
|
+
[name: string]: Array<string>;
|
|
44
47
|
};
|
|
45
48
|
components?: Array<VelcronCustomComponentDefinition>;
|
|
46
49
|
properties?: {
|
|
47
50
|
[name: string]: VelcronPrimitiveType | VelcroncomponentArrayType;
|
|
48
51
|
};
|
|
49
52
|
computed?: {
|
|
50
|
-
[name: string]:
|
|
53
|
+
[name: string]: Array<string>;
|
|
51
54
|
};
|
|
52
55
|
parent?: VelcronRenderContext;
|
|
53
56
|
hooks?: VelcronRenderContextHooks;
|
|
54
57
|
eventHandlers?: VelcronRenderContextEventHandlers;
|
|
58
|
+
editMode?: boolean;
|
|
59
|
+
disposers: Array<() => void>;
|
|
55
60
|
}
|
|
56
61
|
export interface VelcronRenderContextEventHandlers {
|
|
57
62
|
receiving?: {
|
|
@@ -63,6 +68,7 @@ export interface VelcronRenderContextHooks {
|
|
|
63
68
|
dialogVisibilityChanged?: ((visible: boolean) => void);
|
|
64
69
|
onItemSelected?: ((item: VelcronDefinition) => void);
|
|
65
70
|
onItemRendered?: ((item: VelcronDefinition) => OnItemRenderedHookResult);
|
|
71
|
+
onItemCreatedProps?: ((item: VelcronDefinition) => object);
|
|
66
72
|
}
|
|
67
73
|
export interface VelcronContainerRenderer {
|
|
68
74
|
definition: VelcronDefinition;
|
|
@@ -104,18 +110,34 @@ export interface VelcronDefinitionBase {
|
|
|
104
110
|
*/
|
|
105
111
|
key?: string;
|
|
106
112
|
}
|
|
107
|
-
export interface
|
|
108
|
-
colorSchema?: string;
|
|
109
|
-
color?: string;
|
|
110
|
-
opacity?: number;
|
|
111
|
-
}
|
|
112
|
-
export interface VelcronDefinition extends VelcronDefinitionBase {
|
|
113
|
+
export interface VelcronDefinition extends VelcronDefinitionBase, VelcronDimensionStyling {
|
|
113
114
|
body?: Array<VelcronDefinition>;
|
|
114
115
|
style?: VelcronStyling;
|
|
115
116
|
foreach?: string;
|
|
116
117
|
if?: string;
|
|
117
118
|
events?: VelcronEvent;
|
|
118
119
|
}
|
|
120
|
+
export type VelcronBindableProp<TPropType = string> = TPropType | string;
|
|
121
|
+
export interface VelcronDefinitionWithEditMode extends VelcronDefinition {
|
|
122
|
+
edit?: VelcronBindableProp<boolean>;
|
|
123
|
+
bind?: VelcronBindableProp;
|
|
124
|
+
}
|
|
125
|
+
interface VelcronDimensionStyling {
|
|
126
|
+
margin?: VelcronSpacing;
|
|
127
|
+
padding?: VelcronSpacing;
|
|
128
|
+
}
|
|
129
|
+
export interface VelcronColorStyling {
|
|
130
|
+
colorSchemaType?: string;
|
|
131
|
+
colorType?: string;
|
|
132
|
+
filled?: boolean;
|
|
133
|
+
toned?: boolean;
|
|
134
|
+
color?: string;
|
|
135
|
+
}
|
|
136
|
+
export interface VelcronTextStyling {
|
|
137
|
+
text: string;
|
|
138
|
+
typography?: string;
|
|
139
|
+
size?: string;
|
|
140
|
+
}
|
|
119
141
|
export interface VelcronStyling {
|
|
120
142
|
margin?: number;
|
|
121
143
|
marginTop?: number;
|
|
@@ -134,132 +156,158 @@ export interface VelcronCardStyling extends VelcronStyling {
|
|
|
134
156
|
elevation: number;
|
|
135
157
|
}
|
|
136
158
|
export interface VelcronSpacing {
|
|
137
|
-
top
|
|
138
|
-
right
|
|
139
|
-
bottom
|
|
140
|
-
left
|
|
159
|
+
top?: number | string;
|
|
160
|
+
right?: number | string;
|
|
161
|
+
bottom?: number | string;
|
|
162
|
+
left?: number | string;
|
|
141
163
|
}
|
|
142
164
|
export interface VelcronIcon {
|
|
143
165
|
type: VelcronIconTypes;
|
|
144
166
|
name: string;
|
|
145
167
|
}
|
|
146
168
|
export interface VelcronAppDefinition<TState extends DynamicState = DynamicState> extends VelcronDefinitionBase {
|
|
147
|
-
type: "
|
|
169
|
+
type: "velcron";
|
|
170
|
+
version?: string;
|
|
171
|
+
name?: string;
|
|
148
172
|
body?: Array<VelcronDefinition>;
|
|
149
|
-
events?: VelcronOnLoadEvent &
|
|
173
|
+
events?: VelcronOnLoadEvent & VelcronOnEditModeEvent;
|
|
150
174
|
actions?: {
|
|
151
|
-
[name: string]:
|
|
175
|
+
[name: string]: Array<string>;
|
|
152
176
|
};
|
|
153
177
|
components?: Array<VelcronCustomComponentDefinition>;
|
|
178
|
+
propEditors?: Array<VelcronPropertyEditor>;
|
|
154
179
|
state?: TState;
|
|
155
180
|
computed?: {
|
|
156
|
-
[name: string]:
|
|
181
|
+
[name: string]: Array<string>;
|
|
157
182
|
};
|
|
158
183
|
}
|
|
159
184
|
export interface VelcronComponentDefinition extends VelcronDefinition {
|
|
160
185
|
type: string;
|
|
161
|
-
events
|
|
186
|
+
events?: any;
|
|
187
|
+
properties?: {
|
|
188
|
+
[name: string]: any;
|
|
189
|
+
};
|
|
190
|
+
icon?: any;
|
|
191
|
+
}
|
|
192
|
+
export interface VelcronRenderProp {
|
|
193
|
+
required?: boolean;
|
|
194
|
+
defaultValue?: any;
|
|
162
195
|
}
|
|
163
196
|
/*** Built-in Components *********************************************************************/
|
|
164
|
-
export interface VelcronViewDefinition extends VelcronDefinition,
|
|
165
|
-
type: "
|
|
197
|
+
export interface VelcronViewDefinition extends VelcronDefinition, VelcronColorStyling {
|
|
198
|
+
type: "view";
|
|
166
199
|
events?: VelcronOnPressEvent;
|
|
167
|
-
|
|
168
|
-
body: Array<VelcronDefinition>;
|
|
200
|
+
direction?: VelcronBindableProp<"row" | "column" | "row-reverse" | "column-reverse">;
|
|
169
201
|
columnStyle?: object;
|
|
170
|
-
|
|
171
|
-
|
|
202
|
+
hAlign?: VelcronHorizontalAlignments;
|
|
203
|
+
vAlign?: VelcronVerticalAlignments;
|
|
172
204
|
grow?: number;
|
|
205
|
+
absolute?: VelcronSpacing;
|
|
173
206
|
border?: VelcronBorder;
|
|
174
207
|
borderRadius?: VelcronDimensions;
|
|
175
|
-
width
|
|
208
|
+
width?: number | string;
|
|
209
|
+
minWidth?: number | string;
|
|
210
|
+
height?: number | string;
|
|
211
|
+
minHeight?: number | string;
|
|
176
212
|
}
|
|
177
|
-
export interface VelcronCardDefinition extends VelcronDefinition,
|
|
178
|
-
type: "
|
|
213
|
+
export interface VelcronCardDefinition extends VelcronDefinition, VelcronColorStyling {
|
|
214
|
+
type: "card";
|
|
179
215
|
style?: VelcronCardStyling;
|
|
180
216
|
footer?: Array<VelcronDefinition>;
|
|
181
217
|
events?: VelcronOnPressEvent;
|
|
182
218
|
}
|
|
183
|
-
export interface VelcronTextDefinition extends
|
|
184
|
-
type: "
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
typography?: string;
|
|
190
|
-
events?: VelcronOnPressEvent;
|
|
219
|
+
export interface VelcronTextDefinition extends VelcronDefinitionWithEditMode, VelcronColorStyling, VelcronTextStyling {
|
|
220
|
+
type: "text";
|
|
221
|
+
editLabel?: VelcronBindableProp;
|
|
222
|
+
lineClamp?: number;
|
|
223
|
+
noWrap?: boolean;
|
|
224
|
+
events?: VelcronOnPressEvent & VelcronOnUpdatedEvent;
|
|
191
225
|
}
|
|
192
226
|
export declare enum VelcronImageRatios {
|
|
193
|
-
square =
|
|
194
|
-
landscape =
|
|
227
|
+
square = "square",
|
|
228
|
+
landscape = "landscape"
|
|
195
229
|
}
|
|
196
230
|
export interface VelcronImageDefinition extends VelcronDefinition {
|
|
197
|
-
type: "
|
|
198
|
-
|
|
199
|
-
|
|
231
|
+
type: "image";
|
|
232
|
+
url?: VelcronBindableProp<string>;
|
|
233
|
+
bind?: VelcronBindableProp<string>;
|
|
234
|
+
ratio?: VelcronImageRatios | string;
|
|
235
|
+
cover?: VelcronBindableProp<boolean>;
|
|
200
236
|
borderRadius?: VelcronDimensions;
|
|
201
237
|
events?: VelcronOnPressEvent;
|
|
202
238
|
}
|
|
203
239
|
export interface VelcronButtonDefinition extends VelcronDefinition {
|
|
204
|
-
type: "
|
|
240
|
+
type: "button";
|
|
205
241
|
text: string;
|
|
206
|
-
color: string;
|
|
207
242
|
icon?: VelcronIcon;
|
|
208
243
|
disabled?: boolean;
|
|
209
244
|
events?: VelcronOnPressEvent;
|
|
210
245
|
}
|
|
211
246
|
export interface VelcronTextInputDefinition extends VelcronDefinition {
|
|
212
|
-
type: "
|
|
247
|
+
type: "text-input";
|
|
213
248
|
label?: string;
|
|
214
249
|
bind: string;
|
|
215
250
|
initialValue?: string;
|
|
216
|
-
events:
|
|
251
|
+
events: VelcronOnUpdatedEvent;
|
|
217
252
|
}
|
|
218
253
|
export interface VelcronProgressCircleDefinition extends VelcronDefinition {
|
|
219
|
-
type: "
|
|
254
|
+
type: "progress-circle";
|
|
220
255
|
events?: VelcronOnPressEvent;
|
|
221
256
|
}
|
|
222
257
|
export interface VelcronWebViewDefinition extends VelcronDefinition {
|
|
223
|
-
type: "
|
|
258
|
+
type: "web-view";
|
|
224
259
|
source: string;
|
|
225
260
|
}
|
|
226
261
|
export interface VelcronDialogDefinition extends VelcronDefinition {
|
|
227
|
-
type: "
|
|
262
|
+
type: "dialog";
|
|
228
263
|
title: string;
|
|
229
264
|
visible: string;
|
|
230
265
|
events?: VelcronOnCloseRequestedEvent & VelcronOnClosedEvent;
|
|
231
266
|
}
|
|
232
|
-
export interface VelcronIconDefinition extends VelcronDefinition,
|
|
233
|
-
type: "
|
|
267
|
+
export interface VelcronIconDefinition extends VelcronDefinition, VelcronColorStyling {
|
|
268
|
+
type: "icon";
|
|
234
269
|
icon: string;
|
|
235
|
-
|
|
236
|
-
size?: number;
|
|
270
|
+
size?: VelcronBindableProp<number>;
|
|
237
271
|
events?: VelcronOnPressEvent;
|
|
238
272
|
}
|
|
273
|
+
export interface VelcronMarkdownDefinition extends VelcronDefinitionWithEditMode, VelcronColorStyling, VelcronTextStyling {
|
|
274
|
+
type: "markdown";
|
|
275
|
+
events: VelcronOnUpdatedEvent;
|
|
276
|
+
}
|
|
239
277
|
export interface VelcronDimensions {
|
|
240
|
-
top: number;
|
|
241
|
-
right: number;
|
|
242
|
-
bottom: number;
|
|
243
|
-
left: number;
|
|
278
|
+
top: number | string;
|
|
279
|
+
right: number | string;
|
|
280
|
+
bottom: number | string;
|
|
281
|
+
left: number | string;
|
|
244
282
|
}
|
|
245
283
|
export interface VelcronBorder extends VelcronDimensions {
|
|
246
|
-
|
|
284
|
+
colorType?: string;
|
|
285
|
+
toned?: boolean;
|
|
286
|
+
opacity?: number;
|
|
247
287
|
}
|
|
248
|
-
export interface VelcronChipDefinition extends VelcronDefinition
|
|
249
|
-
type: "
|
|
288
|
+
export interface VelcronChipDefinition extends VelcronDefinition {
|
|
289
|
+
type: "chip";
|
|
250
290
|
text: string;
|
|
251
291
|
icon?: VelcronIcon;
|
|
252
292
|
disabled?: boolean;
|
|
253
293
|
events?: VelcronOnPressEvent;
|
|
254
294
|
}
|
|
255
|
-
export interface VelcronSlotDefinition extends VelcronDefinition
|
|
256
|
-
type: "
|
|
257
|
-
bind: string
|
|
258
|
-
|
|
295
|
+
export interface VelcronSlotDefinition extends VelcronDefinition {
|
|
296
|
+
type: "slot";
|
|
297
|
+
bind: VelcronBindableProp<string>;
|
|
298
|
+
}
|
|
299
|
+
export interface VelcronPropertyDefinition extends VelcronDefinition {
|
|
300
|
+
type: "property";
|
|
301
|
+
bind: VelcronBindableProp<string>;
|
|
302
|
+
}
|
|
303
|
+
export interface VelcronPropertyDefinitionValue {
|
|
304
|
+
definitionId: GuidValue;
|
|
305
|
+
value: PropertyValue;
|
|
306
|
+
configuration: PropertyConfiguration<PropertyDefinition<any, any, any, PropertySetupBase>>;
|
|
259
307
|
}
|
|
260
|
-
|
|
261
|
-
export type VelcronCustomComponentDefinition = VelcronComponentDescriptor & VelcronComponentDefinition;
|
|
308
|
+
export type VelcronCustomComponentDefinition = VelcronComponentDefinition;
|
|
262
309
|
export type VelcronRenderProps<TDefinition> = {
|
|
263
310
|
definition: TDefinition;
|
|
264
311
|
renderContext: VelcronRenderContext;
|
|
265
312
|
};
|
|
313
|
+
export {};
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VelcronImageRatios = void 0;
|
|
4
4
|
var VelcronImageRatios;
|
|
5
5
|
(function (VelcronImageRatios) {
|
|
6
|
-
VelcronImageRatios[
|
|
7
|
-
VelcronImageRatios[
|
|
6
|
+
VelcronImageRatios["square"] = "square";
|
|
7
|
+
VelcronImageRatios["landscape"] = "landscape";
|
|
8
8
|
})(VelcronImageRatios = exports.VelcronImageRatios || (exports.VelcronImageRatios = {}));
|
|
@@ -4,8 +4,11 @@ export type VelcronOnPressEvent = {
|
|
|
4
4
|
export type VelcronOnLoadEvent = {
|
|
5
5
|
onLoaded?: Array<string>;
|
|
6
6
|
};
|
|
7
|
-
export type
|
|
8
|
-
|
|
7
|
+
export type VelcronOnEditModeEvent = {
|
|
8
|
+
onEditMode?: Array<string>;
|
|
9
|
+
};
|
|
10
|
+
export type VelcronOnUpdatedEvent = {
|
|
11
|
+
onUpdated?: Array<string>;
|
|
9
12
|
};
|
|
10
13
|
export type VelcronOnCloseRequestedEvent = {
|
|
11
14
|
onCloseRequested?: Array<string>;
|
package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { TypographySize, TypographyType, VelcronImageRatios } from "@omnia/fx-models";
|
|
2
|
+
export interface ResolvedPropertyEditor {
|
|
3
|
+
editor: VelcronPropertyEditor;
|
|
4
|
+
}
|
|
5
|
+
export interface VelcronPropertyEditor<TSettings = any> {
|
|
6
|
+
name?: string;
|
|
7
|
+
category?: string;
|
|
8
|
+
type: BuiltInPropertyEditorType | string;
|
|
9
|
+
settings?: TSettings;
|
|
10
|
+
stateMapping?: string;
|
|
11
|
+
propertyMapping?: boolean;
|
|
12
|
+
multiple?: boolean;
|
|
13
|
+
component?: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface BuiltInPropertyEditors {
|
|
16
|
+
text: unknown;
|
|
17
|
+
slider: unknown;
|
|
18
|
+
switch: unknown;
|
|
19
|
+
alignment: unknown;
|
|
20
|
+
color: unknown;
|
|
21
|
+
markdown: unknown;
|
|
22
|
+
icon: unknown;
|
|
23
|
+
image: unknown;
|
|
24
|
+
typography: unknown;
|
|
25
|
+
"color-schema-type": unknown;
|
|
26
|
+
}
|
|
27
|
+
export type BuiltInPropertyEditorType = "text" | "slider" | "switch" | "alignment" | "color" | "markdown" | "icon" | "image" | "typography" | "color-schema-type";
|
|
28
|
+
export declare enum BuiltInPropertyEditorTypes {
|
|
29
|
+
text = "text",
|
|
30
|
+
slider = "slider",
|
|
31
|
+
switch = "switch",
|
|
32
|
+
alignment = "alignment",
|
|
33
|
+
color = "color",
|
|
34
|
+
markdown = "markdown",
|
|
35
|
+
icon = "icon",
|
|
36
|
+
image = "image",
|
|
37
|
+
typography = "typography",
|
|
38
|
+
"color-schema-type" = "color-schema-type"
|
|
39
|
+
}
|
|
40
|
+
export interface VelcronSliderPropertyEditorSettings {
|
|
41
|
+
min: number;
|
|
42
|
+
max: number;
|
|
43
|
+
step: number;
|
|
44
|
+
}
|
|
45
|
+
export interface VelcronTypographyEditorSettings {
|
|
46
|
+
type: "title" | "text";
|
|
47
|
+
}
|
|
48
|
+
export interface VelcronSliderPropertyEditor extends VelcronPropertyEditor<VelcronSliderPropertyEditorSettings> {
|
|
49
|
+
type: "slider";
|
|
50
|
+
}
|
|
51
|
+
export interface VelcronTextPropertyEditor extends VelcronPropertyEditor<any> {
|
|
52
|
+
type: "text";
|
|
53
|
+
}
|
|
54
|
+
export interface VelcronEnterprisePropertyEditor extends VelcronPropertyEditor<any> {
|
|
55
|
+
type: "enterprise-property";
|
|
56
|
+
}
|
|
57
|
+
export interface VelcronTypographyPropertyEditor extends VelcronPropertyEditor<VelcronTypographyEditorSettings> {
|
|
58
|
+
type: "typography";
|
|
59
|
+
}
|
|
60
|
+
export interface VelcronSwitchPropertyEditor extends VelcronPropertyEditor<any> {
|
|
61
|
+
type: "switch";
|
|
62
|
+
}
|
|
63
|
+
export interface VelcronAlignmentPropertyEditor extends VelcronPropertyEditor<any> {
|
|
64
|
+
type: "alignment";
|
|
65
|
+
}
|
|
66
|
+
export interface VelcronColorPropertyEditor extends VelcronPropertyEditor<any> {
|
|
67
|
+
type: "color";
|
|
68
|
+
}
|
|
69
|
+
export interface VelcronColorSchemaPropertyEditor extends VelcronPropertyEditor<any> {
|
|
70
|
+
type: "color-schema-type";
|
|
71
|
+
}
|
|
72
|
+
export interface VelcronIconPropertyEditor extends VelcronPropertyEditor<any> {
|
|
73
|
+
type: "icon";
|
|
74
|
+
}
|
|
75
|
+
export interface VelcronMarkdownPropertyEditor extends VelcronPropertyEditor<any> {
|
|
76
|
+
type: "markdown";
|
|
77
|
+
}
|
|
78
|
+
export interface VelcronImagePropertyEditor extends VelcronPropertyEditor<any> {
|
|
79
|
+
type: "image";
|
|
80
|
+
}
|
|
81
|
+
export interface VelcronState {
|
|
82
|
+
images?: VelcronImagesState;
|
|
83
|
+
styling?: VelcronStylingState;
|
|
84
|
+
colorSchema?: VelcronColorSchemaState;
|
|
85
|
+
content?: VelcronContentState;
|
|
86
|
+
properties?: VelcronPropertiesState;
|
|
87
|
+
}
|
|
88
|
+
export interface VelcronTextState {
|
|
89
|
+
text: string;
|
|
90
|
+
typography?: VelcronTypographyState;
|
|
91
|
+
}
|
|
92
|
+
export interface VelcronTypographyState {
|
|
93
|
+
type?: TypographyType;
|
|
94
|
+
size?: TypographySize;
|
|
95
|
+
toned?: boolean;
|
|
96
|
+
}
|
|
97
|
+
export interface VelcronContentState {
|
|
98
|
+
caption?: VelcronTextState;
|
|
99
|
+
main?: VelcronTextState;
|
|
100
|
+
title?: VelcronTextState;
|
|
101
|
+
summary?: VelcronTextState;
|
|
102
|
+
}
|
|
103
|
+
export interface VelcronPropertiesState {
|
|
104
|
+
user: any;
|
|
105
|
+
mappings: Array<any>;
|
|
106
|
+
}
|
|
107
|
+
export interface VelcronImagesState {
|
|
108
|
+
main?: VelcronImageState;
|
|
109
|
+
}
|
|
110
|
+
export interface VelcronImageState {
|
|
111
|
+
url?: string;
|
|
112
|
+
ratio?: VelcronImageRatios;
|
|
113
|
+
caption?: VelcronTextState;
|
|
114
|
+
}
|
|
115
|
+
export interface VelcronStylingState {
|
|
116
|
+
}
|
|
117
|
+
export interface VelcronColorSchemaState {
|
|
118
|
+
type?: string;
|
|
119
|
+
filled?: boolean;
|
|
120
|
+
}
|
package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuiltInPropertyEditorTypes = void 0;
|
|
4
|
+
var BuiltInPropertyEditorTypes;
|
|
5
|
+
(function (BuiltInPropertyEditorTypes) {
|
|
6
|
+
BuiltInPropertyEditorTypes["text"] = "text";
|
|
7
|
+
BuiltInPropertyEditorTypes["slider"] = "slider";
|
|
8
|
+
BuiltInPropertyEditorTypes["switch"] = "switch";
|
|
9
|
+
BuiltInPropertyEditorTypes["alignment"] = "alignment";
|
|
10
|
+
BuiltInPropertyEditorTypes["color"] = "color";
|
|
11
|
+
BuiltInPropertyEditorTypes["markdown"] = "markdown";
|
|
12
|
+
BuiltInPropertyEditorTypes["icon"] = "icon";
|
|
13
|
+
BuiltInPropertyEditorTypes["image"] = "image";
|
|
14
|
+
BuiltInPropertyEditorTypes["typography"] = "typography";
|
|
15
|
+
BuiltInPropertyEditorTypes["color-schema-type"] = "color-schema-type";
|
|
16
|
+
})(BuiltInPropertyEditorTypes = exports.BuiltInPropertyEditorTypes || (exports.BuiltInPropertyEditorTypes = {}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./VelcronDefinitions";
|
|
2
2
|
export * from "./ViewModelAndContext";
|
|
3
|
-
export * from "./VelcronDescriptors";
|
|
4
3
|
export * from "./VelcronEvents";
|
|
5
4
|
export * from "./VelcronTypes";
|
|
6
5
|
export * from "./Enums";
|
|
7
6
|
export * from "./VelcronUnitProvider";
|
|
7
|
+
export * from "./VelcronPropertyEditorDefinitions";
|
|
8
8
|
export * from "./ActionHooks";
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./VelcronDefinitions"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./ViewModelAndContext"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./VelcronDescriptors"), exports);
|
|
7
6
|
tslib_1.__exportStar(require("./VelcronEvents"), exports);
|
|
8
7
|
tslib_1.__exportStar(require("./VelcronTypes"), exports);
|
|
9
8
|
tslib_1.__exportStar(require("./Enums"), exports);
|
|
10
9
|
tslib_1.__exportStar(require("./VelcronUnitProvider"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./VelcronPropertyEditorDefinitions"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./ActionHooks"), exports);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface MediaPickerRenditionData {
|
|
2
2
|
renditionId: number;
|
|
3
|
-
positionLeft
|
|
4
|
-
positionTop
|
|
5
|
-
width
|
|
6
|
-
height
|
|
3
|
+
positionLeft?: number;
|
|
4
|
+
positionTop?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
7
|
}
|
|
8
8
|
export interface PersistedMediaPickerRendition extends MediaPickerRenditionData {
|
|
9
9
|
fileName: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ImageItem, VideoItem } from ".";
|
|
2
|
+
export interface IMediaPickerSerchProvider {
|
|
3
|
+
onSearch: (searchKeyword: string) => Promise<Array<ImageItem | VideoItem>>;
|
|
4
|
+
onSearchMore: (searchQueryText: string, lastLoadedIndex: number) => Promise<Array<ImageItem | VideoItem>>;
|
|
5
|
+
}
|
|
@@ -4,10 +4,10 @@ export interface MediaPickerTransformation {
|
|
|
4
4
|
}
|
|
5
5
|
export interface MediaPickerCropTransformation extends MediaPickerTransformation {
|
|
6
6
|
imageRatioId?: number;
|
|
7
|
-
width
|
|
8
|
-
height
|
|
9
|
-
positionLeft
|
|
10
|
-
positionTop
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
positionLeft?: number;
|
|
10
|
+
positionTop?: number;
|
|
11
11
|
}
|
|
12
12
|
export interface MediaPickerFilterTransformation extends MediaPickerTransformation {
|
|
13
13
|
grayscale?: boolean;
|
|
@@ -25,4 +25,5 @@ export interface MediaPickerFilterTransformation extends MediaPickerTransformati
|
|
|
25
25
|
export interface MediaPickerFlipTransformation extends MediaPickerTransformation {
|
|
26
26
|
flipX: boolean;
|
|
27
27
|
flipY: boolean;
|
|
28
|
+
rotation: number;
|
|
28
29
|
}
|
|
@@ -17,7 +17,7 @@ class MediaPickerCentralImageLocationProvider {
|
|
|
17
17
|
this.id = imageLocationSettings.libraryId;
|
|
18
18
|
this.category = "image";
|
|
19
19
|
this.name = providerName;
|
|
20
|
-
this.icon = new Icon_1.FontAwesomeIcon("
|
|
20
|
+
this.icon = new Icon_1.FontAwesomeIcon("fa-duotone fa-images");
|
|
21
21
|
//this.providerElementName = "omfx-media-picker-central-image-location-provider";
|
|
22
22
|
this.providerComponentId = ManifestIds_1.OmniaWebComponentManifests.FxUxCentralImageLocationProvider;
|
|
23
23
|
this.sortOrder = 20;
|
|
@@ -13,7 +13,7 @@ class MediaPickerDallEProvider {
|
|
|
13
13
|
this.id = Constants_1.Constants.ux.components.mediaPicker.providerIds.dalle;
|
|
14
14
|
this.category = "image";
|
|
15
15
|
this.name = "Dall-E";
|
|
16
|
-
this.icon = new Icon_1.SvgIcon("<svg width=\"24px\" height=\"24px\" style=\"color:
|
|
16
|
+
this.icon = new Icon_1.SvgIcon("<svg width=\"24px\" height=\"24px\" style=\"color: #919191\" role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title>OpenAI</title><path d=\"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z\" fill=\"#919191\"></path></svg>");
|
|
17
17
|
this.providerComponentId = ManifestIds_1.OmniaWebComponentManifests.FxUxDallEProvider;
|
|
18
18
|
this.selectableMediaTypes = [Enums_1.MediaPickerEnums.OmniaMediaTypes.Image];
|
|
19
19
|
this.sortOrder = 80;
|