@omnia/velcron 8.0.101-vnext → 8.0.102-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.
Files changed (131) hide show
  1. package/actions/Array.js +9 -2
  2. package/actions/Clone.d.ts +2 -0
  3. package/actions/Clone.js +11 -0
  4. package/actions/Http.js +23 -6
  5. package/actions/index.d.ts +1 -0
  6. package/actions/index.js +1 -0
  7. package/internal-do-not-import-from-here/shared/models/Broadcasting.js +1 -1
  8. package/internal-do-not-import-from-here/shared/models/DynamicState.d.ts +1 -0
  9. package/internal-do-not-import-from-here/shared/models/Equals.js +33 -3
  10. package/internal-do-not-import-from-here/shared/models/Future.d.ts +17 -1
  11. package/internal-do-not-import-from-here/shared/models/Future.js +26 -5
  12. package/internal-do-not-import-from-here/shared/models/Guid.d.ts +1 -0
  13. package/internal-do-not-import-from-here/shared/models/Guid.js +13 -6
  14. package/internal-do-not-import-from-here/shared/models/HttpCommon.d.ts +27 -0
  15. package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +7 -1
  16. package/internal-do-not-import-from-here/shared/models/Realtime.d.ts +1 -13
  17. package/internal-do-not-import-from-here/shared/models/Realtime.js +1 -22
  18. package/internal-do-not-import-from-here/shared/models/StronglyTypedId.d.ts +3 -0
  19. package/internal-do-not-import-from-here/shared/models/StronglyTypedId.js +2 -0
  20. package/internal-do-not-import-from-here/shared/models/Tokens.d.ts +1 -0
  21. package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.d.ts +7 -1
  22. package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.js +5 -1
  23. package/internal-do-not-import-from-here/shared/models/Workers.js +1 -1
  24. package/internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.d.ts +2 -0
  25. package/internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.js +2 -0
  26. package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.d.ts +13 -0
  27. package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.js +20 -0
  28. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +67 -0
  29. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +7 -0
  30. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.d.ts +7 -0
  31. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.js +5 -0
  32. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityDefinition.d.ts +14 -0
  33. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityDefinition.js +15 -0
  34. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +30 -0
  35. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.js +2 -0
  36. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.d.ts +15 -0
  37. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.js +5 -0
  38. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRendererLoadingReferences.d.ts +8 -0
  39. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRendererLoadingReferences.js +2 -0
  40. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.d.ts +15 -0
  41. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.js +5 -0
  42. package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.d.ts +40 -0
  43. package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.js +39 -0
  44. package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +8 -0
  45. package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +11 -0
  46. package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.d.ts +3 -0
  47. package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.js +5 -0
  48. package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.d.ts +4 -0
  49. package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.js +5 -0
  50. package/internal-do-not-import-from-here/shared/models/hub/fileupload/index.d.ts +2 -0
  51. package/internal-do-not-import-from-here/shared/models/hub/fileupload/index.js +5 -0
  52. package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +5 -0
  53. package/internal-do-not-import-from-here/shared/models/hub/index.js +8 -0
  54. package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.d.ts +10 -0
  55. package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.js +2 -0
  56. package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.d.ts +5 -0
  57. package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.js +2 -0
  58. package/internal-do-not-import-from-here/shared/models/hub/social/index.d.ts +2 -0
  59. package/internal-do-not-import-from-here/shared/models/hub/social/index.js +5 -0
  60. package/internal-do-not-import-from-here/shared/models/index.d.ts +5 -1
  61. package/internal-do-not-import-from-here/shared/models/index.js +5 -1
  62. package/internal-do-not-import-from-here/shared/models/theming/ChromeDefinition.d.ts +25 -0
  63. package/internal-do-not-import-from-here/shared/models/theming/ChromeDefinition.js +2 -0
  64. package/internal-do-not-import-from-here/shared/models/theming/ComponentDefinitions.d.ts +92 -0
  65. package/internal-do-not-import-from-here/shared/models/theming/ComponentDefinitions.js +12 -0
  66. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +2 -2
  67. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +8 -7
  68. package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.d.ts +5 -4
  69. package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.js +1 -1
  70. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +22 -13
  71. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +8 -10
  72. package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.d.ts +5 -0
  73. package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.js +2 -2
  74. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +3 -5
  75. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +4 -30
  76. package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +2 -2
  77. package/internal-do-not-import-from-here/shared/models/theming/index.js +3 -2
  78. package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +87 -0
  79. package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.js +2 -0
  80. package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.js +2 -0
  81. package/internal-do-not-import-from-here/shared/models/velcron/index.d.ts +2 -0
  82. package/internal-do-not-import-from-here/shared/models/velcron/index.js +5 -0
  83. package/models/ActionHooks.d.ts +12 -0
  84. package/models/ActionHooks.js +2 -0
  85. package/models/Enums.js +7 -7
  86. package/models/VelcronDefinitions.d.ts +76 -86
  87. package/models/VelcronDefinitions.js +1 -1
  88. package/models/VelcronPropertyEditorDefinitions.d.ts +229 -16
  89. package/models/VelcronPropertyEditorDefinitions.js +114 -2
  90. package/models/VelcronTypes.d.ts +1 -1
  91. package/models/ViewModelAndContext.d.ts +1 -1
  92. package/models/index.d.ts +1 -1
  93. package/models/index.js +1 -1
  94. package/package.json +1 -1
  95. package/parser/VelcronActions.d.ts +7 -1
  96. package/parser/VelcronActions.js +20 -3
  97. package/parser/VelcronConstants.d.ts +6 -1
  98. package/parser/VelcronConstants.js +7 -2
  99. package/parser/VelcronData.d.ts +3 -2
  100. package/parser/VelcronData.js +13 -12
  101. package/parser/VelcronPropertyEditors.js +1 -1
  102. package/parser/VelcronRenderers.d.ts +2 -1
  103. package/parser/VelcronRenderers.js +20 -20
  104. package/parser/VelcronStyles.d.ts +2 -1
  105. package/parser/VelcronStyles.js +168 -65
  106. package/stores/ReactivitySystem.d.ts +2 -2
  107. package/stores/ReactivitySystem.js +1 -1
  108. package/stores/VelcronColorSchema.d.ts +9 -8
  109. package/stores/VelcronTheming.d.ts +4 -3
  110. package/stores/VelcronTheming.js +15 -3
  111. package/stores/index.d.ts +0 -1
  112. package/stores/index.js +1 -1
  113. package/templatebuilder/editor/VelcronEditorBuilder2.d.ts +15 -0
  114. package/templatebuilder/editor/VelcronEditorBuilder2.js +106 -0
  115. package/templatebuilder/editor/VelcronEditorBuilderBase.d.ts +1 -1
  116. package/templatebuilder/index.d.ts +1 -0
  117. package/templatebuilder/index.js +1 -0
  118. package/templatebuilder/state/VelcronBlockHeaderStateBuilder.d.ts +0 -0
  119. package/templatebuilder/state/VelcronBlockHeaderStateBuilder.js +38 -0
  120. package/templatebuilder/useVelcronEditorBuilder.d.ts +2 -0
  121. package/templatebuilder/useVelcronEditorBuilder.js +9 -0
  122. package/internal-do-not-import-from-here/shared/models/Bring.d.ts +0 -23
  123. package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.d.ts +0 -63
  124. package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.js +0 -18
  125. package/internal-do-not-import-from-here/shared/models/theming/OmniaThemes.d.ts +0 -5
  126. package/internal-do-not-import-from-here/shared/models/theming/OmniaThemes.js +0 -18
  127. package/stores/VelcronBlueprint.d.ts +0 -39
  128. package/stores/VelcronBlueprint.js +0 -55
  129. /package/internal-do-not-import-from-here/shared/models/{Bring.js → DynamicState.js} +0 -0
  130. /package/{models/VelcronEvents.js → internal-do-not-import-from-here/shared/models/HttpCommon.js} +0 -0
  131. /package/{models → internal-do-not-import-from-here/shared/models/velcron}/VelcronEvents.d.ts +0 -0
@@ -12,7 +12,7 @@ class VelcronData {
12
12
  }
13
13
  const tokens = this.getTokens(text, false);
14
14
  tokens.forEach((token) => {
15
- let data = this.getOrSetObjectByPathUsingRenderContext(renderContext, token.replace(/\s*{{\s*|\s*}}\s*/g, ""));
15
+ let data = this.getOrSet(renderContext, token.replace(/\s*{{\s*|\s*}}\s*/g, ""));
16
16
  if (data instanceof TextValue_1.TextValue) {
17
17
  data = data.value;
18
18
  }
@@ -70,11 +70,11 @@ class VelcronData {
70
70
  let propertiesToEval = {};
71
71
  if (renderContext.properties) {
72
72
  //Custom component properties evaluation
73
- propertiesToEval = {};
74
- Object.keys(renderContext.properties).forEach((key) => {
75
- propertiesToEval[key] = "properties";
76
- });
77
- names.push("properties");
73
+ // propertiesToEval = {};
74
+ // Object.keys(renderContext.properties).forEach((key) => {
75
+ // propertiesToEval[key] = VelcronConstants.properties.propsToken;
76
+ // });
77
+ names.push(VelcronConstants_1.VelcronConstants.properties.propsToken);
78
78
  obj.push(renderContext.properties);
79
79
  }
80
80
  else if (overrideNamesMatching) {
@@ -84,7 +84,8 @@ class VelcronData {
84
84
  "null",
85
85
  "return"
86
86
  ];
87
- template = VelcronData.addCtxToVariableNames(template, undefined, reservedWords, propertiesToEval);
87
+ const skipName = "$props";
88
+ template = VelcronData.addCtxToVariableNames(template, skipName, reservedWords, propertiesToEval);
88
89
  names.push("rootCtx");
89
90
  names.push("currentCtx");
90
91
  obj.push(renderContext.rootContext);
@@ -223,7 +224,7 @@ class VelcronData {
223
224
  }
224
225
  else {
225
226
  //Try get value from rootContext or currentContext
226
- value = VelcronData.getOrSetObjectByPathUsingRenderContext(renderContext, value);
227
+ value = VelcronData.getOrSet(renderContext, value);
227
228
  }
228
229
  }
229
230
  }
@@ -243,7 +244,7 @@ class VelcronData {
243
244
  runEvaluation = true;
244
245
  }
245
246
  }
246
- const existingVal = VelcronData.getOrSetObjectByPathUsingRenderContext(renderContext, path);
247
+ const existingVal = VelcronData.getOrSet(renderContext, path);
247
248
  if (assignOperator === models_1.AssignOperators.equals || assignOperator === models_1.AssignOperators.equalsExclamation) {
248
249
  //debugger;
249
250
  if (typeof existingVal === "boolean" && typeof value !== "boolean") {
@@ -285,7 +286,7 @@ class VelcronData {
285
286
  }
286
287
  else {
287
288
  //try get value from render context
288
- const localVal = VelcronData.getOrSetObjectByPathUsingRenderContext(renderContext, value);
289
+ const localVal = VelcronData.getOrSet(renderContext, value);
289
290
  if (localVal !== undefined && localVal !== null) {
290
291
  value = localVal;
291
292
  }
@@ -494,7 +495,7 @@ class VelcronData {
494
495
  }
495
496
  return object;
496
497
  }
497
- static getOrSetObjectByPathUsingRenderContext(renderContext, path, value = undefined) {
498
+ static getOrSet(renderContext, path, value = undefined) {
498
499
  let result;
499
500
  if (VelcronData.isUndefined(path)) {
500
501
  return result;
@@ -637,5 +638,5 @@ class VelcronData {
637
638
  return { promise, reject, resolve };
638
639
  }
639
640
  }
640
- VelcronData.variables = {};
641
641
  exports.VelcronData = VelcronData;
642
+ VelcronData.variables = {};
@@ -36,5 +36,5 @@ class VelcronPropertyEditors {
36
36
  return result;
37
37
  }
38
38
  }
39
- VelcronPropertyEditors.editors = {};
40
39
  exports.VelcronPropertyEditors = VelcronPropertyEditors;
40
+ VelcronPropertyEditors.editors = {};
@@ -1,4 +1,5 @@
1
- import { BuiltInComponentRenderers, DynamicState, ResolvedComponentRenderer, VelcronDefinition, VelcronRenderContext } from "../models";
1
+ import { BuiltInComponentRenderers, ResolvedComponentRenderer, VelcronRenderContext } from "../models";
2
+ import { DynamicState, VelcronDefinition } from "..";
2
3
  export declare class VelcronRenderers {
3
4
  private static components;
4
5
  static registerComponent(type: string, component: any): void;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VelcronRenderers = void 0;
4
- const VelcronLogger_1 = require("./VelcronLogger");
5
4
  const VelcronData_1 = require("./VelcronData");
6
5
  const __1 = require("..");
7
6
  class VelcronRenderers {
@@ -74,8 +73,9 @@ class VelcronRenderers {
74
73
  computed: currentRenderCtx.computed,
75
74
  colors: currentRenderCtx.colors,
76
75
  editMode: currentRenderCtx.editMode,
77
- blueprints: currentRenderCtx.blueprints,
78
- disposers: currentRenderCtx.disposers
76
+ //blueprints: currentRenderCtx.blueprints,
77
+ disposers: currentRenderCtx.disposers,
78
+ properties: currentRenderCtx.properties,
79
79
  };
80
80
  if (VelcronRenderers.definitionContainsCustomColorSchema(definition)) {
81
81
  const colorSchemaStore = (0, __1.useVelcronColorSchemaStore)(definition.key.toString());
@@ -98,23 +98,23 @@ class VelcronRenderers {
98
98
  if (customDef.properties) {
99
99
  Object.keys(customDef.properties).forEach((propName) => {
100
100
  const prop = customDef.properties ? customDef.properties[propName] : null;
101
- if (!prop || (prop.required && !definition.hasOwnProperty(propName))) {
102
- VelcronLogger_1.VelcronLogger.logCustomComponentError(`Component of type ${customDef.type} requires property ${propName} but its missing`);
103
- }
101
+ // if (!prop || (prop.required && !definition.hasOwnProperty(propName))) {
102
+ // VelcronLogger.logCustomComponentError(`Component of type ${customDef.type} requires property ${propName} but its missing`);
103
+ // }
104
104
  result.properties = result.properties || {};
105
- if (definition.hasOwnProperty(propName)) {
106
- if (VelcronData_1.VelcronData.isString(definition[propName])) {
107
- //Properties can be databound so if its a string we try do databind
108
- //this is true for other values such as number / string also
109
- result.properties[propName] = VelcronData_1.VelcronData.dataBind(result, definition[propName]);
110
- }
111
- else {
112
- result.properties[propName] = definition[propName];
113
- }
114
- }
115
- else if (prop.hasOwnProperty("defaultValue")) {
116
- result.properties[propName] = prop.defaultValue;
117
- }
105
+ // if (definition.hasOwnProperty(propName)) {
106
+ // if (VelcronData.isString(definition[propName])) {
107
+ // //Properties can be databound so if its a string we try do databind
108
+ // //this is true for other values such as number / string also
109
+ // result.properties[propName] = VelcronData.dataBind(result, definition[propName]);
110
+ // }
111
+ // else {
112
+ // result.properties[propName] = definition[propName];
113
+ // }
114
+ // }
115
+ // else if (prop.hasOwnProperty("defaultValue")) {
116
+ // result.properties[propName] = prop.defaultValue;
117
+ // }
118
118
  });
119
119
  }
120
120
  }
@@ -122,5 +122,5 @@ class VelcronRenderers {
122
122
  return result;
123
123
  }
124
124
  }
125
- VelcronRenderers.components = {};
126
125
  exports.VelcronRenderers = VelcronRenderers;
126
+ VelcronRenderers.components = {};
@@ -1,5 +1,6 @@
1
- import { VelcronBorder, VelcronColorStyling, VelcronDefinition, VelcronDimensions, VelcronRenderContext } from "../models";
1
+ import { VelcronBorder, VelcronColorStyling, VelcronDimensions, VelcronRenderContext } from "../models";
2
2
  import { VelcronUnitProvider } from "../models/VelcronUnitProvider";
3
+ import { VelcronDefinition } from "..";
3
4
  export declare class VelcronStyles {
4
5
  static styleProvider: (baseStyles: object, definition: VelcronDefinition, renderCtx: VelcronRenderContext) => any;
5
6
  static unitProvider: VelcronUnitProvider;
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VelcronStyles = void 0;
4
4
  const VelcronData_1 = require("./VelcronData");
5
- const models_1 = require("../models");
6
5
  const VelcronConstants_1 = require("./VelcronConstants");
7
6
  const __1 = require("..");
8
7
  class VelcronStyles {
@@ -25,6 +24,7 @@ class VelcronStyles {
25
24
  }
26
25
  if (colorValue) {
27
26
  styleBase["backgroundColor"] = color.toned ? colorValue.colorToned : colorValue.color;
27
+ //styleBase["backgroundColor"] = colorValue.colorToned;
28
28
  }
29
29
  //styleBase["backgroundColor"] = renderCtx.colors.get.base.color;
30
30
  }
@@ -80,6 +80,7 @@ class VelcronStyles {
80
80
  styleBase["borderLeftStyle"] = "solid";
81
81
  styleBase["borderLeftColor"] = borderColor;
82
82
  }
83
+ styleBase["borderWidth"] = borderSettings.width ? this.unitProvider.formatDimension(borderSettings.width) : 1;
83
84
  }
84
85
  static create(definition, renderCtx) {
85
86
  if (!definition) {
@@ -88,14 +89,14 @@ class VelcronStyles {
88
89
  const styleBase = { ...definition.style };
89
90
  /**Generic styling */
90
91
  if (definition.margin) {
91
- const spacing = renderCtx.blueprints.get.spacing.inner;
92
- styleBase["marginTop"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(definition.margin.top, spacing));
93
- styleBase["marginRight"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(definition.margin.right, spacing));
94
- styleBase["marginBottom"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(definition.margin.bottom, spacing));
95
- styleBase["marginLeft"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(definition.margin.left, spacing));
92
+ const spacing = renderCtx.theming.get.spacing();
93
+ styleBase["marginTop"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronData_1.VelcronData.dataBind(renderCtx, definition.margin.top), spacing));
94
+ styleBase["marginRight"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronData_1.VelcronData.dataBind(renderCtx, definition.margin.right), spacing));
95
+ styleBase["marginBottom"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronData_1.VelcronData.dataBind(renderCtx, definition.margin.bottom), spacing));
96
+ styleBase["marginLeft"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronData_1.VelcronData.dataBind(renderCtx, definition.margin.left), spacing));
96
97
  }
97
98
  if (definition.padding) {
98
- const spacing = renderCtx.blueprints.get.spacing.inner;
99
+ const spacing = renderCtx.theming.get.spacing();
99
100
  // const padding:VelcronSpacing = definition.padding instanceof Object ? definition.padding :
100
101
  // VelcronData.getOrSetObjectByPathUsingRenderContext(renderCtx, definition.padding);
101
102
  //const padding = VelcronData.dataBind(renderCtx, definition.padding) as any as VelcronDimensions;
@@ -143,79 +144,181 @@ class VelcronStyles {
143
144
  else {
144
145
  styleBase["color"] = textDefinition.toned ? renderCtx.colors.get.onBase.colorToned : renderCtx.colors.get.onBase.color;
145
146
  }
147
+ if (textDefinition.noWrap) {
148
+ styleBase["textWrap"] = "nowrap";
149
+ }
150
+ }
151
+ else if (definition.type === VelcronConstants_1.VelcronConstants.components.flex) {
152
+ const flexDefinition = definition;
153
+ // styleBase["position"] = "absolute";
154
+ styleBase["width"] = "100%";
155
+ styleBase["boxSizing"] = "border-box";
156
+ this.insertBackgroundColor(styleBase, flexDefinition, renderCtx);
146
157
  }
147
- else if (definition.type === VelcronConstants_1.VelcronConstants.components.view) {
148
- const flexViewDefinition = definition;
149
- styleBase["overflow"] = "hidden";
150
- if (flexViewDefinition.absolute) {
151
- const spacing = renderCtx.blueprints.get.spacing.inner;
158
+ else if (definition.type === VelcronConstants_1.VelcronConstants.components.row) {
159
+ const flexDefinition = definition;
160
+ let alignX = null;
161
+ let alignY = null;
162
+ const gapX = flexDefinition.gapX ? flexDefinition.gapX : flexDefinition.gapY;
163
+ const gapY = flexDefinition.gapY ? flexDefinition.gapY : flexDefinition.gapX;
164
+ const width = VelcronData_1.VelcronData.dataBind(renderCtx, flexDefinition.width);
165
+ const minWidth = VelcronData_1.VelcronData.dataBind(renderCtx, flexDefinition.minWidth);
166
+ const height = VelcronData_1.VelcronData.dataBind(renderCtx, flexDefinition.height);
167
+ const minHeight = VelcronData_1.VelcronData.dataBind(renderCtx, flexDefinition.minHeight);
168
+ if (flexDefinition.absolute) {
169
+ const spacing = renderCtx.theming.get.spacing();
152
170
  styleBase["position"] = "absolute";
153
171
  /**Use margin to position the element since flex does not support absolute positioning */
154
- styleBase["marginTop"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronData_1.VelcronData.dataBind(renderCtx, flexViewDefinition.absolute.top), spacing));
155
- styleBase["marginRight"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronData_1.VelcronData.dataBind(renderCtx, flexViewDefinition.absolute.right), spacing));
156
- styleBase["marginBottom"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronData_1.VelcronData.dataBind(renderCtx, flexViewDefinition.absolute.bottom), spacing));
157
- styleBase["marginLeft"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronData_1.VelcronData.dataBind(renderCtx, flexViewDefinition.absolute.left), spacing));
172
+ styleBase["marginTop"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronData_1.VelcronData.dataBind(renderCtx, flexDefinition.absolute.top), spacing));
173
+ styleBase["marginRight"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronData_1.VelcronData.dataBind(renderCtx, flexDefinition.absolute.right), spacing));
174
+ styleBase["marginBottom"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronData_1.VelcronData.dataBind(renderCtx, flexDefinition.absolute.bottom), spacing));
175
+ styleBase["marginLeft"] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronData_1.VelcronData.dataBind(renderCtx, flexDefinition.absolute.left), spacing));
158
176
  }
159
- const flexGrow = flexViewDefinition.grow || flexViewDefinition.grow === 0 ? flexViewDefinition.grow : 1;
160
- const direction = VelcronData_1.VelcronData.dataBind(renderCtx, flexViewDefinition.direction);
161
- styleBase["flex"] = flexGrow;
162
- styleBase["flexDirection"] = direction === "column" ? "column"
163
- : direction === "column-reverse" ? "column-reverse"
164
- : direction === "row-reverse" ? "row-reverse"
165
- : "row";
166
- if (flexViewDefinition.width) {
167
- const width = VelcronData_1.VelcronData.dataBind(renderCtx, flexViewDefinition.width);
168
- if (!direction || direction === "" || direction === "row" || direction === "row-reverse") {
169
- styleBase["flexBasis"] = this.unitProvider.formatDimension(width);
170
- styleBase["maxWidth"] = this.unitProvider.formatDimension(width);
177
+ if (flexDefinition.alignX) {
178
+ if (flexDefinition.alignX === "right") {
179
+ alignX = "flex-end";
171
180
  }
172
- else {
173
- styleBase["width"] = this.unitProvider.formatDimension(width);
181
+ else if (flexDefinition.alignX === "center") {
182
+ alignX = "center";
174
183
  }
175
- //styleBase["width"] = this.unitProvider.formatDimension(flexViewDefinition.width);
176
- }
177
- if (flexViewDefinition.minWidth) {
178
- const minWidth = VelcronData_1.VelcronData.dataBind(renderCtx, flexViewDefinition.minWidth);
179
- styleBase["minWidth"] = this.unitProvider.formatDimension(minWidth);
180
184
  }
181
- if (flexViewDefinition.height) {
182
- const height = VelcronData_1.VelcronData.dataBind(renderCtx, flexViewDefinition.height);
183
- if (direction === "column" || direction === "column-reverse") {
184
- styleBase["maxHeight"] = this.unitProvider.formatDimension(height);
185
- styleBase["flexBasis"] = this.unitProvider.formatDimension(height);
185
+ if (flexDefinition.alignY) {
186
+ if (flexDefinition.alignY === "center") {
187
+ alignY = "center";
186
188
  }
187
- else {
188
- styleBase["height"] = this.unitProvider.formatDimension(height);
189
- }
190
- //direction === "column" || direction === "column-reverse"
191
- }
192
- if (flexViewDefinition.minHeight) {
193
- const minHeight = VelcronData_1.VelcronData.dataBind(renderCtx, flexViewDefinition.minHeight);
194
- styleBase["minHeight"] = this.unitProvider.formatDimension(minHeight);
195
- }
196
- if (flexViewDefinition.hAlign) {
197
- const propertyName = direction === "column" || direction === "column-reverse" ? "alignItems" : "justifyContent";
198
- if (flexViewDefinition.hAlign === models_1.VelcronHorizontalAlignments.right) {
199
- styleBase[propertyName] = "flex-end";
189
+ else if (flexDefinition.alignY === "bottom") {
190
+ alignY = "flex-end";
200
191
  }
201
- else if (flexViewDefinition.hAlign === models_1.VelcronHorizontalAlignments.center) {
202
- styleBase[propertyName] = "center";
192
+ else {
193
+ alignY = "stretch";
203
194
  }
204
195
  }
205
- const propertyName = direction === "column" || direction === "column-reverse" ? "justifyContent" : "alignItems";
206
- if (flexViewDefinition.vAlign) {
207
- if (flexViewDefinition.vAlign === models_1.VelcronVerticalAlignments.center) {
208
- styleBase[propertyName] = "center";
196
+ styleBase["overflow"] = flexDefinition.hideOverflow ? "hidden" : null;
197
+ styleBase["flexDirection"] = flexDefinition.direction;
198
+ styleBase["display"] = "flex";
199
+ styleBase["flex"] = "1 1 auto";
200
+ styleBase["flexWrap"] = flexDefinition.wrap ? "wrap" : null;
201
+ styleBase["justifyContent"] = alignX;
202
+ styleBase["alignItems"] = alignY;
203
+ styleBase["rowGap"] = gapY;
204
+ styleBase["columnGap"] = gapX;
205
+ styleBase["flexBasis"] = flexDefinition.height ? this.unitProvider.formatDimension(height) : undefined;
206
+ styleBase["width"] = this.unitProvider.formatDimension(width);
207
+ styleBase["maxWidth"] = this.unitProvider.formatDimension(width);
208
+ styleBase["minWidth"] = this.unitProvider.formatDimension(minWidth);
209
+ styleBase["height"] = this.unitProvider.formatDimension(height);
210
+ styleBase["minHeight"] = this.unitProvider.formatDimension(minHeight);
211
+ this.insertBackgroundColor(styleBase, flexDefinition, renderCtx);
212
+ }
213
+ else if (definition.type === VelcronConstants_1.VelcronConstants.components.column) {
214
+ const flexDefinition = definition;
215
+ let yAlignment = null;
216
+ const width = VelcronData_1.VelcronData.dataBind(renderCtx, flexDefinition.width);
217
+ const minWidth = VelcronData_1.VelcronData.dataBind(renderCtx, flexDefinition.minWidth);
218
+ if (flexDefinition.alignY) {
219
+ if (flexDefinition.alignY === "center") {
220
+ yAlignment = "center";
209
221
  }
210
- else if (flexViewDefinition.vAlign === models_1.VelcronVerticalAlignments.bottom) {
211
- styleBase[propertyName] = "flex-end";
222
+ else if (flexDefinition.alignY === "bottom") {
223
+ yAlignment = "end";
212
224
  }
213
225
  }
214
- else {
215
- styleBase[propertyName] = "flex-start";
216
- }
217
- this.insertBackgroundColor(styleBase, flexViewDefinition, renderCtx);
226
+ styleBase["flexBasis"] = flexDefinition.width ? this.unitProvider.formatDimension(width) : 0;
227
+ styleBase["flexGrow"] = flexDefinition.grow || flexDefinition.grow === 0 ? flexDefinition.grow : 1;
228
+ styleBase["maxWidth"] = flexDefinition.width ? this.unitProvider.formatDimension(width) : "100%";
229
+ styleBase["alignSelf"] = yAlignment;
230
+ styleBase["minWidth"] = this.unitProvider.formatDimension(minWidth);
231
+ this.insertBackgroundColor(styleBase, flexDefinition, renderCtx);
218
232
  }
233
+ // const flexViewDefinition = definition as VelcronFlexDefinition;
234
+ // // let calculatedMaxHeight = maxHeight;
235
+ // // let calculatedHeight = height;
236
+ // styleBase["overflow"] = "hidden";
237
+ // if(flexViewDefinition.absolute){
238
+ // const spacing = renderCtx.blueprints.get.spacing.inner;
239
+ // styleBase["position"] = "absolute";
240
+ // /**Use margin to position the element since flex does not support absolute positioning */
241
+ // styleBase["marginTop"] = this.unitProvider.formatDimension(getSpacingValueFromBlueprint(VelcronData.dataBind(renderCtx,flexViewDefinition.absolute.top),spacing)) as any;
242
+ // styleBase["marginRight"] = this.unitProvider.formatDimension(getSpacingValueFromBlueprint(VelcronData.dataBind(renderCtx,flexViewDefinition.absolute.right),spacing)) as any;
243
+ // styleBase["marginBottom"] = this.unitProvider.formatDimension(getSpacingValueFromBlueprint(VelcronData.dataBind(renderCtx,flexViewDefinition.absolute.bottom),spacing)) as any;
244
+ // styleBase["marginLeft"] = this.unitProvider.formatDimension(getSpacingValueFromBlueprint(VelcronData.dataBind(renderCtx,flexViewDefinition.absolute.left),spacing)) as any;
245
+ // }
246
+ // const flexGrow = flexViewDefinition.grow === "default"?
247
+ // undefined :
248
+ // flexViewDefinition.grow || flexViewDefinition.grow === 0 ?
249
+ // flexViewDefinition.grow :
250
+ // 1;
251
+ // styleBase["flex"] = flexGrow;
252
+ // const direction = VelcronData.dataBind(renderCtx, flexViewDefinition.direction);
253
+ // //styleBase["flex"] = flexGrow; /**testing */
254
+ // styleBase["flexDirection"] = direction === "column" ? "column"
255
+ // : direction === "column-reverse" ? "column-reverse"
256
+ // : direction === "row-reverse" ? "row-reverse"
257
+ // : "row";
258
+ // if (flexViewDefinition.width) {
259
+ // const width = VelcronData.dataBind(renderCtx,flexViewDefinition.width);
260
+ // const maxWidth = VelcronData.dataBind(renderCtx,flexViewDefinition.maxWidth);
261
+ // if(!direction || direction==="" || direction === "row" || direction === "row-reverse"){
262
+ // styleBase["flexBasis"] = this.unitProvider.formatDimension(width);
263
+ // styleBase["maxWidth"] = maxWidth?this.unitProvider.formatDimension(maxWidth) : this.unitProvider.formatDimension(width);
264
+ // styleBase["width"] = this.unitProvider.formatDimension(width);
265
+ // }
266
+ // else{
267
+ // styleBase["width"] = this.unitProvider.formatDimension(width);
268
+ // if(!flexGrow){
269
+ // styleBase["maxWidth"] = maxWidth?this.unitProvider.formatDimension(maxWidth) : this.unitProvider.formatDimension(width);
270
+ // }
271
+ // }
272
+ // //styleBase["width"] = this.unitProvider.formatDimension(flexViewDefinition.width);
273
+ // }
274
+ // if(flexViewDefinition.minWidth){
275
+ // const minWidth = VelcronData.dataBind(renderCtx,flexViewDefinition.minWidth);
276
+ // styleBase["minWidth"] = this.unitProvider.formatDimension(minWidth);
277
+ // }
278
+ // if (flexViewDefinition.height) {
279
+ // const height = VelcronData.dataBind(renderCtx,flexViewDefinition.height);
280
+ // const maxHeight = VelcronData.dataBind(renderCtx,flexViewDefinition.maxHeight);
281
+ // if(direction === "column" || direction === "column-reverse"){
282
+ // styleBase["flexBasis"] = this.unitProvider.formatDimension(height);
283
+ // styleBase["maxHeight"] = maxHeight?this.unitProvider.formatDimension(maxHeight) : this.unitProvider.formatDimension(height);
284
+ // styleBase["height"] = this.unitProvider.formatDimension(height); /**Test since flex basis doesn't seem to bite on column direction */
285
+ // }
286
+ // else{
287
+ // styleBase["height"] = this.unitProvider.formatDimension(height);
288
+ // if(!flexGrow){
289
+ // styleBase["maxHeight"] = maxHeight?this.unitProvider.formatDimension(maxHeight) : this.unitProvider.formatDimension(height);
290
+ // }
291
+ // }
292
+ // //direction === "column" || direction === "column-reverse"
293
+ // }
294
+ // if(flexViewDefinition.minHeight){
295
+ // const minHeight = VelcronData.dataBind(renderCtx,flexViewDefinition.minHeight);
296
+ // styleBase["minHeight"] = this.unitProvider.formatDimension(minHeight);
297
+ // }
298
+ // if (flexViewDefinition.hAlign) {
299
+ // const propertyName = direction === "column" || direction === "column-reverse" ? "alignItems" : "justifyContent";
300
+ // if (flexViewDefinition.hAlign === VelcronHorizontalAlignments.right) {
301
+ // styleBase[propertyName] = "flex-end";
302
+ // }
303
+ // else if (flexViewDefinition.hAlign === VelcronHorizontalAlignments.center) {
304
+ // styleBase[propertyName] = "center";
305
+ // }
306
+ // }
307
+ // const propertyName = direction === "column" || direction === "column-reverse" ? "justifyContent" : "alignItems";
308
+ // if (flexViewDefinition.vAlign) {
309
+ // if (flexViewDefinition.vAlign === VelcronVerticalAlignments.center
310
+ // ) {
311
+ // styleBase[propertyName] = "center";
312
+ // }
313
+ // else if (flexViewDefinition.vAlign === VelcronVerticalAlignments.bottom) {
314
+ // styleBase[propertyName] = "flex-end";
315
+ // }
316
+ // }
317
+ // else {
318
+ // styleBase[propertyName] = "flex-start";
319
+ // }
320
+ // this.insertBackgroundColor(styleBase, flexViewDefinition, renderCtx);
321
+ //}
219
322
  /**
220
323
  *
221
324
  * Generic styles for all components
@@ -1,5 +1,5 @@
1
1
  export declare class ReactivitySystem {
2
- static makeReactive: (obj: any) => unknown;
2
+ static makeReactive: (obj: any) => any;
3
3
  static hasReactivityProvider: boolean;
4
- static registerProvider(fn: (obj: any) => unknown): void;
4
+ static registerProvider(fn: (obj: any) => any): void;
5
5
  }
@@ -7,6 +7,6 @@ class ReactivitySystem {
7
7
  ReactivitySystem.hasReactivityProvider = true;
8
8
  }
9
9
  }
10
+ exports.ReactivitySystem = ReactivitySystem;
10
11
  ReactivitySystem.makeReactive = null;
11
12
  ReactivitySystem.hasReactivityProvider = false;
12
- exports.ReactivitySystem = ReactivitySystem;
@@ -8,20 +8,21 @@ export declare const useVelcronColorSchemaStore: (newStateWithName?: string) =>
8
8
  onContainer: ColorDefinition;
9
9
  isContainer: boolean;
10
10
  name: string;
11
- colorSchemaType: "info" | "error" | ColorSchemaTypes | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background";
11
+ colorSchemaType: "info" | "error" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" | ColorSchemaTypes;
12
12
  themeStore: {
13
13
  state: {
14
14
  currentTheme: import("@omnia/fx-models").ThemeDefinitionV2;
15
15
  };
16
16
  get: {
17
- blueprint: (blueprintType: "default" | "variant1" | "variant2" | "variant3" | import("@omnia/fx-models").BlueprintTypes) => import("@omnia/fx-models").BlueprintDefinition;
18
- colorSchema: (colorSchemaType: "info" | "error" | ColorSchemaTypes | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background") => ColorSchema;
19
- typography: (typographyType: "title" | "text" | "navigation" | import("@omnia/fx-models").TypographyTypes, size: "xs" | "s" | "m" | "l" | "xl" | import("@omnia/fx-models").TypographySizes) => import("@omnia/fx-models").TypographyTypeDefinition;
20
- color: (colorSchemaType: "info" | "error" | ColorSchemaTypes | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background", colorType: "base" | "onBase" | "container" | "onContainer" | import("@omnia/fx-models").ColorTypes) => string;
21
- colorDefinition: (colorSchemaType: "info" | "error" | ColorSchemaTypes | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background", colorType: "base" | "onBase" | "container" | "onContainer" | import("@omnia/fx-models").ColorTypes) => ColorDefinition;
17
+ componentBlueprints: (blueprintType: import("@omnia/fx-models").VelcronBlueprintDefintionTypes) => import("@omnia/fx-models").ComponentBlueprint;
18
+ colorSchema: (colorSchemaType: "info" | "error" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" | ColorSchemaTypes) => ColorSchema;
19
+ spacing: () => import("@omnia/fx-models").SpacingDefinition;
20
+ typography: (typographyType: "title" | "text" | "navigation" | import("@omnia/fx-models").TypographyTypes, size: "xs" | "s" | "m" | "l" | "xl" | import("@omnia/fx-models").TypographySizes) => any;
21
+ color: (colorSchemaType: "info" | "error" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" | ColorSchemaTypes, colorType: "base" | "onBase" | "container" | "onContainer" | import("@omnia/fx-models").ColorTypes) => string;
22
+ colorDefinition: (colorSchemaType: "info" | "error" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" | ColorSchemaTypes, colorType: "base" | "onBase" | "container" | "onContainer" | import("@omnia/fx-models").ColorTypes) => ColorDefinition;
22
23
  complementaryColorType: (colorType: "base" | "onBase" | "container" | "onContainer" | import("@omnia/fx-models").ColorTypes) => import("@omnia/fx-models").ColorTypes;
23
- complementaryColor: (colorSchemaType: "info" | "error" | ColorSchemaTypes | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background", colorType: "base" | "onBase" | "container" | "onContainer" | import("@omnia/fx-models").ColorTypes) => string;
24
- complementaryColorDefinition: (colorSchemaType: "info" | "error" | ColorSchemaTypes | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background", colorType: "base" | "onBase" | "container" | "onContainer" | import("@omnia/fx-models").ColorTypes) => ColorDefinition;
24
+ complementaryColor: (colorSchemaType: "info" | "error" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" | ColorSchemaTypes, colorType: "base" | "onBase" | "container" | "onContainer" | import("@omnia/fx-models").ColorTypes) => string;
25
+ complementaryColorDefinition: (colorSchemaType: "info" | "error" | "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" | ColorSchemaTypes, colorType: "base" | "onBase" | "container" | "onContainer" | import("@omnia/fx-models").ColorTypes) => ColorDefinition;
25
26
  currentTheme: () => import("@omnia/fx-models").ThemeDefinitionV2;
26
27
  };
27
28
  actions: {
@@ -1,12 +1,13 @@
1
- import { BlueprintType, BlueprintTypes, ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes, ThemeDefinitionV2, TypographySize, TypographySizes, TypographyType, TypographyTypes } from "..";
1
+ import { ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes, ComponentBlueprint, SpacingDefinition, ThemeDefinitionV2, TypographySize, TypographySizes, TypographyType, TypographyTypes, VelcronBlueprintDefintionTypes } from "..";
2
2
  export declare const useVelcronThemingStore: (newStateWithName?: string) => {
3
3
  state: {
4
4
  currentTheme: ThemeDefinitionV2;
5
5
  };
6
6
  get: {
7
- blueprint: (blueprintType: BlueprintTypes | BlueprintType) => import("..").BlueprintDefinition;
7
+ componentBlueprints: (blueprintType: VelcronBlueprintDefintionTypes) => ComponentBlueprint;
8
8
  colorSchema: (colorSchemaType: ColorSchemaTypes | ColorSchemaType) => import("..").ColorSchema;
9
- typography: (typographyType: TypographyTypes | TypographyType, size: TypographySizes | TypographySize) => import("..").TypographyTypeDefinition;
9
+ spacing: () => SpacingDefinition;
10
+ typography: (typographyType: TypographyTypes | TypographyType, size: TypographySizes | TypographySize) => any;
10
11
  color: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => string;
11
12
  colorDefinition: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => import("..").ColorDefinition;
12
13
  complementaryColorType: (colorType: ColorTypes | ColorType) => ColorTypes;
@@ -13,14 +13,26 @@ exports.useVelcronThemingStore = (0, _1.defineVelcronStore)("VelcronTheming", {
13
13
  },
14
14
  getters(state) {
15
15
  return {
16
- blueprint: (blueprintType) => {
17
- return (0, __1.useThemeMethods)(() => state.currentTheme).blueprint(blueprintType);
16
+ componentBlueprints: (blueprintType) => {
17
+ return (0, __1.useThemeMethods)(() => state.currentTheme).bluePrintbyType("component");
18
18
  },
19
19
  colorSchema: (colorSchemaType) => {
20
20
  return (0, __1.useThemeMethods)(() => state.currentTheme).colorSchema(colorSchemaType);
21
21
  },
22
+ spacing: () => {
23
+ return (0, __1.useThemeMethods)(() => state.currentTheme).bluePrintbyType("spacing").default.inner;
24
+ },
22
25
  typography: (typographyType, size) => {
23
- return (0, __1.useThemeMethods)(() => state.currentTheme).typography(__1.BlueprintTypes.default, typographyType, size);
26
+ const typography = (0, __1.useThemeMethods)(() => state.currentTheme).bluePrintbyType("typography").default;
27
+ if (typographyType === __1.TypographyTypes.text) {
28
+ return typography.text[size];
29
+ }
30
+ else if (typographyType === __1.TypographyTypes.title) {
31
+ return typography.title[size];
32
+ }
33
+ else if (typographyType === __1.TypographyTypes.navigation) {
34
+ return typography.navigation[size];
35
+ }
24
36
  },
25
37
  color: (colorSchemaType, colorType) => {
26
38
  return (0, __1.useThemeMethods)(() => state.currentTheme).color(colorSchemaType, colorType);
package/stores/index.d.ts CHANGED
@@ -2,4 +2,3 @@ export * from "./VelcronStore";
2
2
  export * from "./VelcronTheming";
3
3
  export * from "./ReactivitySystem";
4
4
  export * from "./VelcronColorSchema";
5
- export * from "./VelcronBlueprint";
package/stores/index.js CHANGED
@@ -5,4 +5,4 @@ tslib_1.__exportStar(require("./VelcronStore"), exports);
5
5
  tslib_1.__exportStar(require("./VelcronTheming"), exports);
6
6
  tslib_1.__exportStar(require("./ReactivitySystem"), exports);
7
7
  tslib_1.__exportStar(require("./VelcronColorSchema"), exports);
8
- tslib_1.__exportStar(require("./VelcronBlueprint"), exports);
8
+ //export * from "./VelcronBlueprint";
@@ -0,0 +1,15 @@
1
+ import { TypographyType, VelcronPropertyEditor, VelcronTypographyEditorSettings } from "@omnia/fx-models";
2
+ export declare class VelcronEditorBuilder2 {
3
+ private editors;
4
+ private formatStateMapping;
5
+ add(): {
6
+ spacingEditor: (name: string, stateMapping: string, individualSelection?: boolean) => VelcronEditorBuilder2;
7
+ imageEditor: (name: string, stateMapping: string) => VelcronEditorBuilder2;
8
+ colorSchemaEditor: (name: string, stateMapping: string) => VelcronEditorBuilder2;
9
+ markdownEditor: (name: string, stateMapping: string, placeholder?: string) => VelcronEditorBuilder2;
10
+ textEditor: (name: string, stateMapping: string, typographyType: TypographyType, placeholder?: string) => VelcronEditorBuilder2;
11
+ blockHeaderEditor: () => VelcronEditorBuilder2;
12
+ typographyEditor: (stateMapping: string, settings: VelcronTypographyEditorSettings) => VelcronEditorBuilder2;
13
+ };
14
+ build(): VelcronPropertyEditor<any>[];
15
+ }