@omnia/velcron 8.0.82-vnext → 8.0.83-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/actions/Alert.js +1 -1
- package/actions/Array.js +9 -2
- package/actions/Clone.d.ts +2 -0
- package/actions/Clone.js +11 -0
- package/actions/Date.d.ts +3 -0
- package/actions/Date.js +29 -0
- package/actions/Http.js +23 -6
- package/actions/IActionHandler.d.ts +1 -0
- package/actions/Timer.d.ts +4 -0
- package/actions/Timer.js +80 -0
- package/actions/index.d.ts +3 -0
- package/actions/index.js +3 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/internal-do-not-import-from-here/shared/models/Broadcasting.js +1 -1
- package/internal-do-not-import-from-here/shared/models/DynamicState.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/Equals.js +33 -3
- package/internal-do-not-import-from-here/shared/models/Future.d.ts +17 -1
- package/internal-do-not-import-from-here/shared/models/Future.js +26 -5
- package/internal-do-not-import-from-here/shared/models/Guid.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/Guid.js +13 -6
- package/internal-do-not-import-from-here/shared/models/HttpCommon.d.ts +27 -0
- package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +7 -1
- package/internal-do-not-import-from-here/shared/models/Realtime.d.ts +1 -13
- package/internal-do-not-import-from-here/shared/models/Realtime.js +1 -22
- 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/Tokens.d.ts +1 -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/Workers.js +1 -1
- package/internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.js +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.d.ts +13 -0
- package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.js +20 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +67 -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/ActivityDefinition.d.ts +14 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityDefinition.js +15 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +30 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.js +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.d.ts +15 -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/ActivityRendererLoadingReferences.d.ts +8 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRendererLoadingReferences.js +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.d.ts +15 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.d.ts +40 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.js +39 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +8 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +11 -0
- 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 +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/index.js +8 -0
- package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.d.ts +10 -0
- package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.js +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.d.ts +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.js +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/social/index.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/social/index.js +5 -0
- package/internal-do-not-import-from-here/shared/models/index.d.ts +5 -1
- package/internal-do-not-import-from-here/shared/models/index.js +5 -1
- package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.d.ts +44 -46
- package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.js +7 -13
- package/internal-do-not-import-from-here/shared/models/theming/ChromeDefinition.d.ts +31 -0
- package/internal-do-not-import-from-here/shared/models/theming/ChromeDefinition.js +2 -0
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +8 -7
- package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.d.ts +5 -4
- package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.js +1 -1
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +4 -11
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +3 -10
- package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.d.ts +8 -4
- package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.js +2 -3
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +3 -5
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +4 -33
- package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/theming/index.js +1 -0
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +87 -0
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.js +2 -0
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.js +2 -0
- package/internal-do-not-import-from-here/shared/models/velcron/index.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/velcron/index.js +5 -0
- package/models/ActionHooks.d.ts +12 -0
- package/models/ActionHooks.js +2 -0
- package/models/Enums.d.ts +6 -0
- package/models/Enums.js +14 -7
- package/models/VelcronDefinitions.d.ts +101 -91
- package/models/VelcronDefinitions.js +2 -2
- package/models/VelcronPropertyEditorDefinitions.d.ts +293 -17
- package/models/VelcronPropertyEditorDefinitions.js +116 -2
- package/models/VelcronTypes.d.ts +1 -1
- package/models/ViewModelAndContext.d.ts +1 -1
- package/models/index.d.ts +1 -1
- package/models/index.js +1 -1
- package/package.json +1 -1
- package/parser/VelcronActions.d.ts +8 -2
- package/parser/VelcronActions.js +24 -4
- package/parser/VelcronConstants.d.ts +17 -5
- package/parser/VelcronConstants.js +19 -7
- package/parser/VelcronData.d.ts +4 -3
- package/parser/VelcronData.js +58 -54
- package/parser/VelcronPropertyEditors.d.ts +9 -0
- package/parser/VelcronPropertyEditors.js +40 -0
- package/parser/VelcronRenderers.d.ts +2 -1
- package/parser/VelcronRenderers.js +22 -22
- package/parser/VelcronStyles.d.ts +2 -1
- package/parser/VelcronStyles.js +181 -72
- package/parser/index.d.ts +1 -0
- package/parser/index.js +1 -0
- package/stores/ReactivitySystem.d.ts +2 -2
- package/stores/ReactivitySystem.js +1 -1
- package/stores/VelcronColorSchema.d.ts +10 -9
- package/stores/VelcronTheming.d.ts +4 -3
- package/stores/VelcronTheming.js +15 -3
- package/stores/index.d.ts +0 -1
- package/stores/index.js +1 -1
- package/templatebuilder/editor/VelcronColorSchemaEditor.d.ts +9 -0
- package/templatebuilder/editor/VelcronColorSchemaEditor.js +28 -0
- package/templatebuilder/editor/VelcronContentEditor.d.ts +38 -0
- package/templatebuilder/editor/VelcronContentEditor.js +206 -0
- package/templatebuilder/editor/VelcronEditorBuilder.d.ts +16 -0
- package/templatebuilder/editor/VelcronEditorBuilder.js +50 -0
- package/templatebuilder/editor/VelcronEditorBuilder2.d.ts +15 -0
- package/templatebuilder/editor/VelcronEditorBuilder2.js +106 -0
- package/templatebuilder/editor/VelcronEditorBuilderBase.d.ts +9 -0
- package/templatebuilder/editor/VelcronEditorBuilderBase.js +16 -0
- package/templatebuilder/editor/VelcronImageEditor.d.ts +11 -0
- package/templatebuilder/editor/VelcronImageEditor.js +30 -0
- package/templatebuilder/editor/VelcronPropertyMappingEditorBuilder.d.ts +9 -0
- package/templatebuilder/editor/VelcronPropertyMappingEditorBuilder.js +30 -0
- package/templatebuilder/index.d.ts +2 -0
- package/templatebuilder/index.js +5 -0
- package/templatebuilder/state/VelcronBlockHeaderStateBuilder.d.ts +0 -0
- package/templatebuilder/state/VelcronBlockHeaderStateBuilder.js +38 -0
- package/templatebuilder/state/VelcronColorSchemaBuilder.d.ts +16 -0
- package/templatebuilder/state/VelcronColorSchemaBuilder.js +32 -0
- package/templatebuilder/state/VelcronContentStateBuilder.d.ts +11 -0
- package/templatebuilder/state/VelcronContentStateBuilder.js +47 -0
- package/templatebuilder/state/VelcronImageStateBuilder.d.ts +18 -0
- package/templatebuilder/state/VelcronImageStateBuilder.js +49 -0
- package/templatebuilder/state/VelcronPropertyMappingStateBuilder.d.ts +12 -0
- package/templatebuilder/state/VelcronPropertyMappingStateBuilder.js +35 -0
- package/templatebuilder/state/VelcronStateBuilder.d.ts +16 -0
- package/templatebuilder/state/VelcronStateBuilder.js +42 -0
- package/templatebuilder/state/VelcronStateBuilderBase.d.ts +12 -0
- package/templatebuilder/state/VelcronStateBuilderBase.js +19 -0
- package/templatebuilder/state/VelcronTextContentBuilder.d.ts +32 -0
- package/templatebuilder/state/VelcronTextContentBuilder.js +110 -0
- package/templatebuilder/useVelcronEditorBuilder.d.ts +2 -0
- package/templatebuilder/useVelcronEditorBuilder.js +9 -0
- package/templatebuilder/useVelcronTemplateBuilder.d.ts +6 -0
- package/templatebuilder/useVelcronTemplateBuilder.js +13 -0
- package/internal-do-not-import-from-here/shared/models/Bring.d.ts +0 -23
- package/stores/VelcronBlueprint.d.ts +0 -39
- package/stores/VelcronBlueprint.js +0 -55
- /package/internal-do-not-import-from-here/shared/models/{Bring.js → DynamicState.js} +0 -0
- /package/{models/VelcronEvents.js → internal-do-not-import-from-here/shared/models/HttpCommon.js} +0 -0
- /package/{models → internal-do-not-import-from-here/shared/models/velcron}/VelcronEvents.d.ts +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VelcronContentStateBuilder = void 0;
|
|
4
|
+
const VelcronStateBuilderBase_1 = require("./VelcronStateBuilderBase");
|
|
5
|
+
const VelcronTextContentBuilder_1 = require("./VelcronTextContentBuilder");
|
|
6
|
+
// title?: VelcronTextState;
|
|
7
|
+
// summary?: VelcronTextState;
|
|
8
|
+
class VelcronContentStateBuilder extends VelcronStateBuilderBase_1.VelcronStateBuilderBase {
|
|
9
|
+
constructor(stateBuilder) {
|
|
10
|
+
super(stateBuilder);
|
|
11
|
+
this.main = new VelcronTextContentBuilder_1.VelcronTextContentBuilder(this, "content.main");
|
|
12
|
+
this.caption = new VelcronTextContentBuilder_1.VelcronTextContentBuilder(this, "content.caption");
|
|
13
|
+
this.title = new VelcronTextContentBuilder_1.VelcronTextContentBuilder(this, "content.title");
|
|
14
|
+
this.summary = new VelcronTextContentBuilder_1.VelcronTextContentBuilder(this, "content.summary");
|
|
15
|
+
}
|
|
16
|
+
internalBuild() {
|
|
17
|
+
const resultValue = {};
|
|
18
|
+
let hasContent = false;
|
|
19
|
+
const mainContent = this.main.internalBuild();
|
|
20
|
+
const captionContent = this.caption.internalBuild();
|
|
21
|
+
const titleContent = this.title.internalBuild();
|
|
22
|
+
const summaryContent = this.summary.internalBuild();
|
|
23
|
+
if (mainContent) {
|
|
24
|
+
hasContent = true;
|
|
25
|
+
resultValue.main = mainContent;
|
|
26
|
+
}
|
|
27
|
+
if (captionContent) {
|
|
28
|
+
hasContent = true;
|
|
29
|
+
resultValue.caption = captionContent;
|
|
30
|
+
}
|
|
31
|
+
if (titleContent) {
|
|
32
|
+
hasContent = true;
|
|
33
|
+
resultValue.title = titleContent;
|
|
34
|
+
}
|
|
35
|
+
if (summaryContent) {
|
|
36
|
+
hasContent = true;
|
|
37
|
+
resultValue.summary = summaryContent;
|
|
38
|
+
}
|
|
39
|
+
if (!hasContent) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
content: resultValue
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.VelcronContentStateBuilder = VelcronContentStateBuilder;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VelcronImageRatios, VelcronState } from "@omnia/fx-models";
|
|
2
|
+
import { VelcronStateBuilderBase } from "./VelcronStateBuilderBase";
|
|
3
|
+
export declare class VelcronImageStateBuilder extends VelcronStateBuilderBase {
|
|
4
|
+
private mainImageUrl;
|
|
5
|
+
private mainImageRatio;
|
|
6
|
+
constructor(stateBuilder: any);
|
|
7
|
+
main: {
|
|
8
|
+
url: {
|
|
9
|
+
add: (url: string) => VelcronImageStateBuilder;
|
|
10
|
+
bind: string;
|
|
11
|
+
};
|
|
12
|
+
ratio: {
|
|
13
|
+
add: (ratio: VelcronImageRatios) => VelcronImageStateBuilder;
|
|
14
|
+
bind: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
protected internalBuild(): VelcronState;
|
|
18
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VelcronImageStateBuilder = void 0;
|
|
4
|
+
const VelcronStateBuilderBase_1 = require("./VelcronStateBuilderBase");
|
|
5
|
+
class VelcronImageStateBuilder extends VelcronStateBuilderBase_1.VelcronStateBuilderBase {
|
|
6
|
+
constructor(stateBuilder) {
|
|
7
|
+
super(stateBuilder);
|
|
8
|
+
this.main = {
|
|
9
|
+
url: {
|
|
10
|
+
add: (url) => {
|
|
11
|
+
this.mainImageUrl = url;
|
|
12
|
+
return this;
|
|
13
|
+
},
|
|
14
|
+
bind: "{{images.main.url}}"
|
|
15
|
+
},
|
|
16
|
+
ratio: {
|
|
17
|
+
add: (ratio) => {
|
|
18
|
+
this.mainImageRatio = ratio;
|
|
19
|
+
return this;
|
|
20
|
+
},
|
|
21
|
+
bind: "{{images.main.ratio}}"
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
internalBuild() {
|
|
26
|
+
if (!this.mainImageUrl) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
let hasContent = false;
|
|
30
|
+
const resultValue = {};
|
|
31
|
+
if (this.mainImageRatio) {
|
|
32
|
+
resultValue["ratio"] = this.mainImageRatio;
|
|
33
|
+
hasContent = true;
|
|
34
|
+
}
|
|
35
|
+
if (this.mainImageUrl) {
|
|
36
|
+
resultValue["url"] = this.mainImageUrl;
|
|
37
|
+
hasContent = true;
|
|
38
|
+
}
|
|
39
|
+
if (!hasContent) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
images: {
|
|
44
|
+
main: resultValue
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.VelcronImageStateBuilder = VelcronImageStateBuilder;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VelcronState } from "@omnia/fx-models";
|
|
2
|
+
import { VelcronStateBuilderBase } from "./VelcronStateBuilderBase";
|
|
3
|
+
export declare class VelcronPropertyMappingStateBuilder extends VelcronStateBuilderBase {
|
|
4
|
+
private propertyItemsValue;
|
|
5
|
+
constructor(stateBuilder: any);
|
|
6
|
+
items: {
|
|
7
|
+
add: (items?: any[]) => VelcronPropertyMappingStateBuilder;
|
|
8
|
+
bind: string;
|
|
9
|
+
foreach: string;
|
|
10
|
+
};
|
|
11
|
+
protected internalBuild(): VelcronState;
|
|
12
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VelcronPropertyMappingStateBuilder = void 0;
|
|
4
|
+
const VelcronStateBuilderBase_1 = require("./VelcronStateBuilderBase");
|
|
5
|
+
class VelcronPropertyMappingStateBuilder extends VelcronStateBuilderBase_1.VelcronStateBuilderBase {
|
|
6
|
+
constructor(stateBuilder) {
|
|
7
|
+
super(stateBuilder);
|
|
8
|
+
this.propertyItemsValue = [];
|
|
9
|
+
this.items = {
|
|
10
|
+
add: (items) => {
|
|
11
|
+
this.propertyItemsValue = items;
|
|
12
|
+
return this;
|
|
13
|
+
},
|
|
14
|
+
bind: "$properties.mappings",
|
|
15
|
+
foreach: "properties.mappings"
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
internalBuild() {
|
|
19
|
+
const resultValue = {};
|
|
20
|
+
let hasContent = false;
|
|
21
|
+
if (this.propertyItemsValue) {
|
|
22
|
+
resultValue.mappings = this.propertyItemsValue;
|
|
23
|
+
hasContent = true;
|
|
24
|
+
}
|
|
25
|
+
if (!hasContent) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
properties: {
|
|
30
|
+
...resultValue
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.VelcronPropertyMappingStateBuilder = VelcronPropertyMappingStateBuilder;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VelcronState } from "@omnia/fx-models";
|
|
2
|
+
import { VelcronColorSchemaStateBuilder } from "./VelcronColorSchemaBuilder";
|
|
3
|
+
import { VelcronContentStateBuilder } from "./VelcronContentStateBuilder";
|
|
4
|
+
import { VelcronImageStateBuilder } from "./VelcronImageStateBuilder";
|
|
5
|
+
import { VelcronPropertyMappingStateBuilder } from "./VelcronPropertyMappingStateBuilder";
|
|
6
|
+
export declare class VelcronStateBuilder {
|
|
7
|
+
private contentStateBuilder;
|
|
8
|
+
private imageStateBuilder;
|
|
9
|
+
private colorSchemaStateBuilder;
|
|
10
|
+
private propertyMappingStateBuilder;
|
|
11
|
+
content(): VelcronContentStateBuilder;
|
|
12
|
+
image(): VelcronImageStateBuilder;
|
|
13
|
+
colorSchemaType(): VelcronColorSchemaStateBuilder;
|
|
14
|
+
properties(): VelcronPropertyMappingStateBuilder;
|
|
15
|
+
build(): VelcronState;
|
|
16
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VelcronStateBuilder = void 0;
|
|
4
|
+
const VelcronColorSchemaBuilder_1 = require("./VelcronColorSchemaBuilder");
|
|
5
|
+
const VelcronContentStateBuilder_1 = require("./VelcronContentStateBuilder");
|
|
6
|
+
const VelcronImageStateBuilder_1 = require("./VelcronImageStateBuilder");
|
|
7
|
+
const VelcronPropertyMappingStateBuilder_1 = require("./VelcronPropertyMappingStateBuilder");
|
|
8
|
+
class VelcronStateBuilder {
|
|
9
|
+
content() {
|
|
10
|
+
if (!this.contentStateBuilder) {
|
|
11
|
+
this.contentStateBuilder = new VelcronContentStateBuilder_1.VelcronContentStateBuilder(this);
|
|
12
|
+
}
|
|
13
|
+
return this.contentStateBuilder;
|
|
14
|
+
}
|
|
15
|
+
image() {
|
|
16
|
+
if (!this.imageStateBuilder) {
|
|
17
|
+
this.imageStateBuilder = new VelcronImageStateBuilder_1.VelcronImageStateBuilder(this);
|
|
18
|
+
}
|
|
19
|
+
return this.imageStateBuilder;
|
|
20
|
+
}
|
|
21
|
+
colorSchemaType() {
|
|
22
|
+
if (!this.colorSchemaStateBuilder) {
|
|
23
|
+
this.colorSchemaStateBuilder = new VelcronColorSchemaBuilder_1.VelcronColorSchemaStateBuilder(this);
|
|
24
|
+
}
|
|
25
|
+
return this.colorSchemaStateBuilder;
|
|
26
|
+
}
|
|
27
|
+
properties() {
|
|
28
|
+
if (!this.propertyMappingStateBuilder) {
|
|
29
|
+
this.propertyMappingStateBuilder = new VelcronPropertyMappingStateBuilder_1.VelcronPropertyMappingStateBuilder(this);
|
|
30
|
+
}
|
|
31
|
+
return this.propertyMappingStateBuilder;
|
|
32
|
+
}
|
|
33
|
+
build() {
|
|
34
|
+
return {
|
|
35
|
+
...this?.contentStateBuilder?.internalBuild(),
|
|
36
|
+
...this?.imageStateBuilder?.internalBuild(),
|
|
37
|
+
...this?.colorSchemaStateBuilder?.internalBuild(),
|
|
38
|
+
...this?.propertyMappingStateBuilder?.internalBuild(),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.VelcronStateBuilder = VelcronStateBuilder;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VelcronStateBuilder } from "./VelcronStateBuilder";
|
|
2
|
+
export declare abstract class VelcronStateBuilderStrategy {
|
|
3
|
+
abstract done(): any;
|
|
4
|
+
protected abstract internalBuild(): any;
|
|
5
|
+
}
|
|
6
|
+
export declare abstract class VelcronStateBuilderBase extends VelcronStateBuilderStrategy {
|
|
7
|
+
protected stateBuilder: VelcronStateBuilder;
|
|
8
|
+
constructor(stateBuilder: VelcronStateBuilder);
|
|
9
|
+
done(): VelcronStateBuilder;
|
|
10
|
+
build(): import("@omnia/fx-models").VelcronState;
|
|
11
|
+
protected abstract internalBuild(): any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VelcronStateBuilderBase = exports.VelcronStateBuilderStrategy = void 0;
|
|
4
|
+
class VelcronStateBuilderStrategy {
|
|
5
|
+
}
|
|
6
|
+
exports.VelcronStateBuilderStrategy = VelcronStateBuilderStrategy;
|
|
7
|
+
class VelcronStateBuilderBase extends VelcronStateBuilderStrategy {
|
|
8
|
+
constructor(stateBuilder) {
|
|
9
|
+
super();
|
|
10
|
+
this.stateBuilder = stateBuilder;
|
|
11
|
+
}
|
|
12
|
+
done() {
|
|
13
|
+
return this.stateBuilder;
|
|
14
|
+
}
|
|
15
|
+
build() {
|
|
16
|
+
return this.stateBuilder.build();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.VelcronStateBuilderBase = VelcronStateBuilderBase;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { TypographySize, TypographyType, VelcronTextState, VelcronTypographyState } from "@omnia/fx-models";
|
|
2
|
+
import { VelcronStateBuilderStrategy } from "./VelcronStateBuilderBase";
|
|
3
|
+
export declare class VelcronTextContentBuilder<TBaseBuilder> extends VelcronStateBuilderStrategy {
|
|
4
|
+
private _textState;
|
|
5
|
+
private bindingContextValue;
|
|
6
|
+
private _typographyState;
|
|
7
|
+
private baseBuilder;
|
|
8
|
+
constructor(baseBuilder: TBaseBuilder, bind: string);
|
|
9
|
+
get typographyState(): VelcronTypographyState;
|
|
10
|
+
get textState(): VelcronTextState;
|
|
11
|
+
get bindingContext(): string;
|
|
12
|
+
text: {
|
|
13
|
+
add: (value: string) => VelcronTextContentBuilder<TBaseBuilder>;
|
|
14
|
+
bind: () => string;
|
|
15
|
+
};
|
|
16
|
+
typography: {
|
|
17
|
+
type: {
|
|
18
|
+
add: (type: TypographyType) => VelcronTextContentBuilder<TBaseBuilder>;
|
|
19
|
+
bind: () => string;
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
add: (size: TypographySize) => VelcronTextContentBuilder<TBaseBuilder>;
|
|
23
|
+
bind: () => string;
|
|
24
|
+
};
|
|
25
|
+
toned: {
|
|
26
|
+
add: (toned: boolean) => VelcronTextContentBuilder<TBaseBuilder>;
|
|
27
|
+
bind: () => string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
done(): TBaseBuilder;
|
|
31
|
+
protected internalBuild(): VelcronTextState;
|
|
32
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VelcronTextContentBuilder = void 0;
|
|
4
|
+
const VelcronStateBuilderBase_1 = require("./VelcronStateBuilderBase");
|
|
5
|
+
// export interface VelcronTextState {
|
|
6
|
+
// text:string,
|
|
7
|
+
// typography?:{
|
|
8
|
+
// type?: TypographyType,
|
|
9
|
+
// size?:TypographySize
|
|
10
|
+
// toned?:boolean;
|
|
11
|
+
// }
|
|
12
|
+
// }
|
|
13
|
+
class VelcronTextContentBuilder extends VelcronStateBuilderBase_1.VelcronStateBuilderStrategy {
|
|
14
|
+
constructor(baseBuilder, bind) {
|
|
15
|
+
super();
|
|
16
|
+
this._textState = undefined;
|
|
17
|
+
this.bindingContextValue = undefined;
|
|
18
|
+
this._typographyState = undefined;
|
|
19
|
+
// :VelcronTextContentBuilder<TBaseBuilder>
|
|
20
|
+
this.text = {
|
|
21
|
+
add: (value) => {
|
|
22
|
+
this.textState.text = value;
|
|
23
|
+
return this;
|
|
24
|
+
},
|
|
25
|
+
bind: () => { return `{{ ${this.bindingContextValue}.text }}`; }
|
|
26
|
+
};
|
|
27
|
+
this.typography = {
|
|
28
|
+
type: {
|
|
29
|
+
add: (type) => {
|
|
30
|
+
this.typographyState.type = type;
|
|
31
|
+
return this;
|
|
32
|
+
},
|
|
33
|
+
bind: () => { return `{{ ${this.bindingContextValue}.typography.type }}`; }
|
|
34
|
+
},
|
|
35
|
+
size: {
|
|
36
|
+
add: (size) => {
|
|
37
|
+
this.typographyState.size = size;
|
|
38
|
+
return this;
|
|
39
|
+
},
|
|
40
|
+
bind: () => { return `{{ ${this.bindingContextValue}.typography.size }}`; }
|
|
41
|
+
},
|
|
42
|
+
toned: {
|
|
43
|
+
add: (toned) => {
|
|
44
|
+
this.typographyState.toned = toned;
|
|
45
|
+
return this;
|
|
46
|
+
},
|
|
47
|
+
bind: () => { return `{{ ${this.bindingContextValue}.typography.toned }}`; }
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
this.baseBuilder = baseBuilder;
|
|
51
|
+
this.bindingContextValue = bind;
|
|
52
|
+
}
|
|
53
|
+
get typographyState() {
|
|
54
|
+
if (!this._typographyState) {
|
|
55
|
+
this._typographyState = {};
|
|
56
|
+
}
|
|
57
|
+
return this._typographyState;
|
|
58
|
+
}
|
|
59
|
+
get textState() {
|
|
60
|
+
if (!this._textState) {
|
|
61
|
+
this._textState = {};
|
|
62
|
+
}
|
|
63
|
+
return this._textState;
|
|
64
|
+
}
|
|
65
|
+
get bindingContext() {
|
|
66
|
+
return this.bindingContextValue;
|
|
67
|
+
}
|
|
68
|
+
// typography(type?: TypographyType,size?:TypographySize,toned?:boolean):VelcronTextContentBuilder<TBaseBuilder>{
|
|
69
|
+
// this.textState.typography = {
|
|
70
|
+
// type:type,
|
|
71
|
+
// size:size,
|
|
72
|
+
// toned:toned
|
|
73
|
+
// };
|
|
74
|
+
// return this;
|
|
75
|
+
// }
|
|
76
|
+
done() {
|
|
77
|
+
return this.baseBuilder;
|
|
78
|
+
}
|
|
79
|
+
internalBuild() {
|
|
80
|
+
const resultValue = {};
|
|
81
|
+
let hasContent = false;
|
|
82
|
+
// if(this.mainContent){
|
|
83
|
+
// resultValue["main"] = this.mainContent;
|
|
84
|
+
// hasContent = true;
|
|
85
|
+
// }
|
|
86
|
+
// if(this.captionContent){
|
|
87
|
+
// resultValue["caption"] = this.captionContent;
|
|
88
|
+
// hasContent = true;
|
|
89
|
+
// }
|
|
90
|
+
// if(!hasContent){
|
|
91
|
+
// return null;
|
|
92
|
+
// }
|
|
93
|
+
// return <VelcronState>{
|
|
94
|
+
// content: resultValue as VelcronContentState
|
|
95
|
+
// };
|
|
96
|
+
if (this._textState) {
|
|
97
|
+
hasContent = true;
|
|
98
|
+
resultValue.text = this._textState.text;
|
|
99
|
+
}
|
|
100
|
+
if (this._typographyState) {
|
|
101
|
+
hasContent = true;
|
|
102
|
+
resultValue.typography = this._typographyState;
|
|
103
|
+
}
|
|
104
|
+
if (!hasContent) {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
return resultValue;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.VelcronTextContentBuilder = VelcronTextContentBuilder;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { VelcronContentState, VelcronImagePropertyEditor, VelcronImageRatios, VelcronImageState, VelcronMarkdownPropertyEditor, VelcronTextPropertyEditor} from "@omnia/fx-models";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.useVelcronEditorBuilder = void 0;
|
|
5
|
+
const VelcronEditorBuilder2_1 = require("./editor/VelcronEditorBuilder2");
|
|
6
|
+
function useVelcronEditorBuilder() {
|
|
7
|
+
return new VelcronEditorBuilder2_1.VelcronEditorBuilder2();
|
|
8
|
+
}
|
|
9
|
+
exports.useVelcronEditorBuilder = useVelcronEditorBuilder;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { VelcronContentState, VelcronImagePropertyEditor, VelcronImageRatios, VelcronImageState, VelcronMarkdownPropertyEditor, VelcronTextPropertyEditor} from "@omnia/fx-models";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.useVelcronTemplateBuilder = void 0;
|
|
5
|
+
const VelcronEditorBuilder_1 = require("./editor/VelcronEditorBuilder");
|
|
6
|
+
const VelcronStateBuilder_1 = require("./state/VelcronStateBuilder");
|
|
7
|
+
function useVelcronTemplateBuilder() {
|
|
8
|
+
return {
|
|
9
|
+
state: new VelcronStateBuilder_1.VelcronStateBuilder(),
|
|
10
|
+
editor: new VelcronEditorBuilder_1.VelcronEditorBuilder()
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
exports.useVelcronTemplateBuilder = useVelcronTemplateBuilder;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export type BringMethods = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
2
|
-
export type BringCacheOptions = "no-cache" | "reload" | "force-cache" | "only-if-cached";
|
|
3
|
-
export type BringCredentials = "include" | "omit" | "same-origin";
|
|
4
|
-
export interface BringInterceptOptions {
|
|
5
|
-
beforeRequest?: (request: BringConfig) => BringConfig;
|
|
6
|
-
afterRequest?: <T>(response: BringResponse<T>, request: BringConfig) => BringResponse<T>;
|
|
7
|
-
}
|
|
8
|
-
export interface BringConfig {
|
|
9
|
-
baseUrl?: string;
|
|
10
|
-
headers?: {
|
|
11
|
-
[key: string]: string;
|
|
12
|
-
};
|
|
13
|
-
cache?: BringCacheOptions;
|
|
14
|
-
interceptors?: BringInterceptOptions;
|
|
15
|
-
abortable?: boolean;
|
|
16
|
-
credentials?: BringCredentials;
|
|
17
|
-
}
|
|
18
|
-
export interface BringResponse<TData> {
|
|
19
|
-
data?: TData;
|
|
20
|
-
status: Number;
|
|
21
|
-
statusText: String;
|
|
22
|
-
ok: Boolean;
|
|
23
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { BlueprintDefinition, BlueprintItemDefinition, BlueprintType, BlueprintTypes, SpacingBlueprint, TypographyBlueprint, VelcronBlueprintDefintionType } from "@omnia/fx-models";
|
|
2
|
-
import { useVelcronThemingStore } from ".";
|
|
3
|
-
export declare const useVelcronBlueprintStore: (newStateWithName?: string) => {
|
|
4
|
-
state: {
|
|
5
|
-
blueprint: BlueprintDefinition;
|
|
6
|
-
blueprintType: BlueprintType | BlueprintTypes;
|
|
7
|
-
themeStore: {
|
|
8
|
-
state: {
|
|
9
|
-
currentTheme: import("@omnia/fx-models").ThemeDefinitionV2;
|
|
10
|
-
};
|
|
11
|
-
get: {
|
|
12
|
-
blueprint: (blueprintType: BlueprintType | BlueprintTypes) => BlueprintDefinition;
|
|
13
|
-
colorSchema: (colorSchemaType: import("@omnia/fx-models").ColorSchemaTypes | import("@omnia/fx-models").ColorSchemaType) => import("@omnia/fx-models").ColorSchema;
|
|
14
|
-
typography: (typographyType: import("@omnia/fx-models").TypographyType | import("@omnia/fx-models").TypographyTypes, size: import("@omnia/fx-models").TypographySize | import("@omnia/fx-models").TypographySizes) => import("@omnia/fx-models").TypographyTypeDefinition;
|
|
15
|
-
color: (colorSchemaType: import("@omnia/fx-models").ColorSchemaTypes | import("@omnia/fx-models").ColorSchemaType, colorType: import("@omnia/fx-models").ColorType | import("@omnia/fx-models").ColorTypes) => string;
|
|
16
|
-
colorDefinition: (colorSchemaType: import("@omnia/fx-models").ColorSchemaTypes | import("@omnia/fx-models").ColorSchemaType, colorType: import("@omnia/fx-models").ColorType | import("@omnia/fx-models").ColorTypes) => import("@omnia/fx-models").ColorDefinition;
|
|
17
|
-
complementaryColorType: (colorType: import("@omnia/fx-models").ColorType | import("@omnia/fx-models").ColorTypes) => import("@omnia/fx-models").ColorTypes;
|
|
18
|
-
complementaryColor: (colorSchemaType: import("@omnia/fx-models").ColorSchemaTypes | import("@omnia/fx-models").ColorSchemaType, colorType: import("@omnia/fx-models").ColorType | import("@omnia/fx-models").ColorTypes) => string;
|
|
19
|
-
complementaryColorDefinition: (colorSchemaType: import("@omnia/fx-models").ColorSchemaTypes | import("@omnia/fx-models").ColorSchemaType, colorType: import("@omnia/fx-models").ColorType | import("@omnia/fx-models").ColorTypes) => import("@omnia/fx-models").ColorDefinition;
|
|
20
|
-
currentTheme: () => import("@omnia/fx-models").ThemeDefinitionV2;
|
|
21
|
-
};
|
|
22
|
-
actions: {
|
|
23
|
-
setTheme(newTheme: import("@omnia/fx-models").ThemeDefinitionV2): void;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
get: {
|
|
28
|
-
readonly all: BlueprintDefinition;
|
|
29
|
-
byType: <TType extends BlueprintItemDefinition>(type: VelcronBlueprintDefintionType | VelcronBlueprintDefintionType) => TType;
|
|
30
|
-
readonly typography: TypographyBlueprint;
|
|
31
|
-
spacing: {
|
|
32
|
-
readonly inner: SpacingBlueprint;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
actions: {
|
|
36
|
-
setThemeStore: (themeStoreInstance: ReturnType<typeof useVelcronThemingStore>, blueprintType?: BlueprintTypes | BlueprintType) => void;
|
|
37
|
-
setBlueprint: (type: BlueprintTypes | BlueprintType) => void;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useVelcronBlueprintStore = void 0;
|
|
4
|
-
const fx_models_1 = require("@omnia/fx-models");
|
|
5
|
-
const _1 = require(".");
|
|
6
|
-
exports.useVelcronBlueprintStore = (0, _1.defineVelcronStore)("BlueprintStore", {
|
|
7
|
-
setup() {
|
|
8
|
-
return {
|
|
9
|
-
state: {
|
|
10
|
-
blueprint: {},
|
|
11
|
-
blueprintType: fx_models_1.BlueprintTypes.default,
|
|
12
|
-
themeStore: undefined,
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
getters(state) {
|
|
17
|
-
function allDefinitions() {
|
|
18
|
-
return state.blueprint;
|
|
19
|
-
}
|
|
20
|
-
function byType(type) {
|
|
21
|
-
return state.blueprint.definitions.find(x => x.type === type);
|
|
22
|
-
}
|
|
23
|
-
return {
|
|
24
|
-
get all() {
|
|
25
|
-
return allDefinitions();
|
|
26
|
-
},
|
|
27
|
-
byType,
|
|
28
|
-
get typography() {
|
|
29
|
-
return byType(fx_models_1.VelcronBlueprintDefintionTypes.typography);
|
|
30
|
-
},
|
|
31
|
-
spacing: {
|
|
32
|
-
get inner() {
|
|
33
|
-
return byType(fx_models_1.VelcronBlueprintDefintionTypes.innerspacing);
|
|
34
|
-
},
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
actions(state) {
|
|
39
|
-
function setBlueprint(type) {
|
|
40
|
-
const blueprint = state.themeStore.get.blueprint(type);
|
|
41
|
-
if (blueprint) {
|
|
42
|
-
state.blueprint = blueprint;
|
|
43
|
-
state.blueprintType = type;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
function setThemeStore(themeStoreInstance, blueprintType) {
|
|
47
|
-
state.themeStore = themeStoreInstance;
|
|
48
|
-
setBlueprint(blueprintType);
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
setThemeStore,
|
|
52
|
-
setBlueprint
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
});
|
|
File without changes
|
/package/{models/VelcronEvents.js → internal-do-not-import-from-here/shared/models/HttpCommon.js}
RENAMED
|
File without changes
|
/package/{models → internal-do-not-import-from-here/shared/models/velcron}/VelcronEvents.d.ts
RENAMED
|
File without changes
|