@arquimedes.co/eureka-forms 1.9.65-test → 1.9.66-test

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.
@@ -36,6 +36,7 @@ interface TermLink {
36
36
  export interface Classifier {
37
37
  _id: string;
38
38
  name: string;
39
+ clientName?: string;
39
40
  children: string[];
40
41
  }
41
42
  export type FormStyle = MaterialStyle;
package/dist/App.js CHANGED
@@ -273,7 +273,7 @@ function App(_a) {
273
273
  if (handleConfirmed) {
274
274
  handleConfirmed();
275
275
  }
276
- }, editable: editable, postview: postview === true, partial: partial === true, internal: internal === true, apiKey: apiKey, domain: domain, customSend: customSend, originalValues: originalValues, containerRef: containerRef, organization: organizationInfo !== null && organizationInfo !== void 0 ? organizationInfo : { idOrganization: domain }, customSteps: customSteps !== null && customSteps !== void 0 ? customSteps : {}, isWidget: isWidget === true })) })));
276
+ }, editable: editable, postview: postview === true, preview: preview === true, partial: partial === true, internal: internal === true, apiKey: apiKey, domain: domain, customSend: customSend, originalValues: originalValues, containerRef: containerRef, organization: organizationInfo !== null && organizationInfo !== void 0 ? organizationInfo : { idOrganization: domain }, customSteps: customSteps !== null && customSteps !== void 0 ? customSteps : {}, isWidget: isWidget === true })) })));
277
277
  }
278
278
  }
279
279
  export default App;
@@ -324,6 +324,9 @@ function calcDependencies(steps, originalValues, allSteps, dependencies) {
324
324
  if (depStep && dependencies[idDep] === undefined) {
325
325
  dependencies[idDep] = calcStepDependencyValue(depStep, originalValues);
326
326
  }
327
+ else if (dependencies[idDep] === undefined) {
328
+ dependencies[idDep] = originalValues[idDep];
329
+ }
327
330
  }
328
331
  }
329
332
  if (step.type === Types.MAPPER) {
@@ -20,6 +20,7 @@ export interface FormComponentProps {
20
20
  reload: Function;
21
21
  partial: boolean;
22
22
  postview: boolean;
23
+ preview: boolean;
23
24
  formStyle: FormStyle;
24
25
  domain?: string;
25
26
  apiKey: string | undefined;
@@ -11,6 +11,7 @@ export interface RecursiveData {
11
11
  formStyle: FormStyle;
12
12
  /** If the formsteps can be edited (For internal) */
13
13
  editable: boolean;
14
+ preview: boolean;
14
15
  postview: boolean;
15
16
  partial: boolean;
16
17
  domain?: string;
@@ -50,7 +50,12 @@ function ClassifierSelector(_a) {
50
50
  }).map(function (idClassifier) {
51
51
  var _a;
52
52
  var classifier = (_a = form.classifiers) === null || _a === void 0 ? void 0 : _a[idClassifier];
53
- return { value: classifier === null || classifier === void 0 ? void 0 : classifier._id, label: classifier === null || classifier === void 0 ? void 0 : classifier.name };
53
+ return {
54
+ value: classifier === null || classifier === void 0 ? void 0 : classifier._id,
55
+ label: (classifier === null || classifier === void 0 ? void 0 : classifier.clientName) && others.preview
56
+ ? classifier.clientName
57
+ : classifier === null || classifier === void 0 ? void 0 : classifier.name,
58
+ };
54
59
  });
55
60
  var sizeChange = function () {
56
61
  handleSizeChange === null || handleSizeChange === void 0 ? void 0 : handleSizeChange();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arquimedes.co/eureka-forms",
3
3
  "repository": "git://github.com/Arquimede5/Eureka-Forms.git",
4
- "version":"1.9.65-test",
4
+ "version":"1.9.66-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",