@aemforms/af-core 0.22.26 → 0.22.29

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 (54) hide show
  1. package/lib/cjs/index.cjs +345 -1886
  2. package/lib/esm/BaseNode-d78cc1b0.js +478 -0
  3. package/lib/esm/BaseNode.d.ts +1 -1
  4. package/lib/esm/BaseNode.js +26 -454
  5. package/lib/esm/Checkbox.js +37 -1
  6. package/lib/esm/CheckboxGroup.js +38 -1
  7. package/lib/esm/Container.d.ts +6 -1
  8. package/lib/esm/Container.js +108 -19
  9. package/lib/esm/DateField.js +38 -2
  10. package/lib/esm/Field.d.ts +2 -2
  11. package/lib/esm/Field.js +62 -26
  12. package/lib/esm/Fieldset.js +36 -3
  13. package/lib/esm/FileObject.js +23 -1
  14. package/lib/esm/FileUpload.js +34 -1
  15. package/lib/esm/Form.d.ts +1 -1
  16. package/lib/esm/Form.js +40 -8
  17. package/lib/esm/FormInstance.js +53 -5
  18. package/lib/esm/FormMetaData.js +26 -1
  19. package/lib/esm/InstanceManager.js +35 -8
  20. package/lib/esm/Node.js +25 -1
  21. package/lib/esm/Scriptable.js +29 -2
  22. package/lib/esm/controller/EventQueue.js +23 -1
  23. package/lib/esm/controller/Events.d.ts +1 -1
  24. package/lib/esm/controller/Events.js +41 -19
  25. package/lib/esm/controller/Logger.d.ts +2 -2
  26. package/lib/esm/controller/Logger.js +23 -1
  27. package/lib/esm/data/DataGroup.js +24 -1
  28. package/lib/esm/data/DataValue.js +23 -1
  29. package/lib/esm/data/EmptyDataValue.js +23 -1
  30. package/lib/esm/index.js +55 -21
  31. package/lib/esm/rules/FunctionRuntime.d.ts +3 -3
  32. package/lib/esm/rules/FunctionRuntime.js +31 -6
  33. package/lib/esm/rules/RuleEngine.js +30 -1
  34. package/lib/esm/types/Json.d.ts +16 -16
  35. package/lib/esm/types/Json.js +24 -2
  36. package/lib/esm/types/Model.d.ts +4 -4
  37. package/lib/esm/types/Model.js +23 -1
  38. package/lib/esm/types/index.js +22 -2
  39. package/lib/esm/utils/DataRefParser.d.ts +2 -2
  40. package/lib/esm/utils/DataRefParser.js +31 -6
  41. package/lib/esm/utils/Fetch.d.ts +1 -1
  42. package/lib/esm/utils/Fetch.js +24 -2
  43. package/lib/esm/utils/FormCreationUtils.js +40 -2
  44. package/lib/esm/utils/FormUtils.js +33 -8
  45. package/lib/esm/utils/JsonUtils.js +34 -11
  46. package/lib/esm/utils/LogUtils.js +23 -1
  47. package/lib/esm/utils/SchemaUtils.js +24 -2
  48. package/lib/esm/utils/TranslationUtils.d.ts +1 -1
  49. package/lib/esm/utils/TranslationUtils.js +32 -9
  50. package/lib/esm/utils/ValidationUtils.d.ts +4 -4
  51. package/lib/esm/utils/ValidationUtils.js +30 -4
  52. package/package.json +14 -2
  53. package/lib/browser/afb-events.js +0 -151
  54. package/lib/browser/afb-runtime.js +0 -3620
@@ -1,3 +1,23 @@
1
+ /*************************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * ___________________
4
+ *
5
+ * Copyright 2022 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+
17
+ * Adobe permits you to use and modify this file solely in accordance with
18
+ * the terms of the Adobe license agreement accompanying it.
19
+ *************************************************************************/
20
+
1
21
  import Form from './Form.js';
2
22
  import { jsonString } from './utils/JsonUtils.js';
3
23
  import { request } from './utils/Fetch.js';
@@ -6,7 +26,33 @@ import EventQueue from './controller/EventQueue.js';
6
26
  import { Logger } from './controller/Logger.js';
7
27
  import { FormFieldFactory } from './utils/FormCreationUtils.js';
8
28
  import { FunctionRuntime } from './rules/FunctionRuntime.js';
9
- export const createFormInstance = (formModel, callback, logLevel = 'error', fModel = undefined) => {
29
+ import './Container.js';
30
+ import './BaseNode-d78cc1b0.js';
31
+ import './controller/Events.js';
32
+ import './utils/DataRefParser.js';
33
+ import './data/DataGroup.js';
34
+ import './data/DataValue.js';
35
+ import './data/EmptyDataValue.js';
36
+ import './Scriptable.js';
37
+ import './types/Json.js';
38
+ import './utils/SchemaUtils.js';
39
+ import './FormMetaData.js';
40
+ import './Node.js';
41
+ import './utils/FormUtils.js';
42
+ import './FileObject.js';
43
+ import '@adobe/json-formula';
44
+ import './InstanceManager.js';
45
+ import './Fieldset.js';
46
+ import './FileUpload.js';
47
+ import './Field.js';
48
+ import './types/Model.js';
49
+ import './utils/ValidationUtils.js';
50
+ import '@aemforms/af-formatters';
51
+ import './Checkbox.js';
52
+ import './CheckboxGroup.js';
53
+ import './DateField.js';
54
+
55
+ const createFormInstance = (formModel, callback, logLevel = 'error', fModel = undefined) => {
10
56
  try {
11
57
  let f = fModel;
12
58
  if (f == null) {
@@ -27,7 +73,7 @@ export const createFormInstance = (formModel, callback, logLevel = 'error', fMod
27
73
  throw new Error(e);
28
74
  }
29
75
  };
30
- export const validateFormInstance = (formModel, data) => {
76
+ const validateFormInstance = (formModel, data) => {
31
77
  try {
32
78
  const f = new Form({ ...formModel }, FormFieldFactory, new RuleEngine());
33
79
  if (data) {
@@ -39,7 +85,7 @@ export const validateFormInstance = (formModel, data) => {
39
85
  throw new Error(e);
40
86
  }
41
87
  };
42
- export const validateFormData = (formModel, data) => {
88
+ const validateFormData = (formModel, data) => {
43
89
  try {
44
90
  const f = new Form({ ...formModel }, FormFieldFactory, new RuleEngine());
45
91
  if (data) {
@@ -55,7 +101,7 @@ export const validateFormData = (formModel, data) => {
55
101
  throw new Error(e);
56
102
  }
57
103
  };
58
- export const fetchForm = (url, headers = {}) => {
104
+ const fetchForm = (url, headers = {}) => {
59
105
  const headerObj = new Headers();
60
106
  Object.entries(headers).forEach(([key, value]) => {
61
107
  headerObj.append(key, value);
@@ -76,6 +122,8 @@ export const fetchForm = (url, headers = {}) => {
76
122
  });
77
123
  });
78
124
  };
79
- export const registerFunctions = (functions) => {
125
+ const registerFunctions = (functions) => {
80
126
  FunctionRuntime.registerFunctions(functions);
81
127
  };
128
+
129
+ export { createFormInstance, fetchForm, registerFunctions, validateFormData, validateFormInstance };
@@ -1,4 +1,28 @@
1
+ /*************************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * ___________________
4
+ *
5
+ * Copyright 2022 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+
17
+ * Adobe permits you to use and modify this file solely in accordance with
18
+ * the terms of the Adobe license agreement accompanying it.
19
+ *************************************************************************/
20
+
1
21
  import Node from './Node.js';
22
+ import './utils/JsonUtils.js';
23
+ import './types/Json.js';
24
+ import './utils/SchemaUtils.js';
25
+
2
26
  class FormMetaData extends Node {
3
27
  get version() {
4
28
  return this.getP('version', '');
@@ -7,4 +31,5 @@ class FormMetaData extends Node {
7
31
  return this.getP('grammar', '');
8
32
  }
9
33
  }
10
- export default FormMetaData;
34
+
35
+ export { FormMetaData as default };
@@ -1,12 +1,37 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
1
+ /*************************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * ___________________
4
+ *
5
+ * Copyright 2022 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+
17
+ * Adobe permits you to use and modify this file solely in accordance with
18
+ * the terms of the Adobe license agreement accompanying it.
19
+ *************************************************************************/
20
+
21
+ import { _ as __decorate, d as dependencyTracked } from './BaseNode-d78cc1b0.js';
7
22
  import { Fieldset } from './Fieldset.js';
8
- import { dependencyTracked } from './BaseNode.js';
9
- export class InstanceManager extends Fieldset {
23
+ import './controller/Events.js';
24
+ import './utils/DataRefParser.js';
25
+ import './data/DataGroup.js';
26
+ import './data/DataValue.js';
27
+ import './data/EmptyDataValue.js';
28
+ import './Container.js';
29
+ import './utils/JsonUtils.js';
30
+ import './types/Json.js';
31
+ import './utils/SchemaUtils.js';
32
+ import './Scriptable.js';
33
+
34
+ class InstanceManager extends Fieldset {
10
35
  get maxOccur() {
11
36
  return this._jsonModel.maxItems;
12
37
  }
@@ -29,3 +54,5 @@ __decorate([
29
54
  __decorate([
30
55
  dependencyTracked()
31
56
  ], InstanceManager.prototype, "minOccur", null);
57
+
58
+ export { InstanceManager };
package/lib/esm/Node.js CHANGED
@@ -1,4 +1,27 @@
1
+ /*************************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * ___________________
4
+ *
5
+ * Copyright 2022 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+
17
+ * Adobe permits you to use and modify this file solely in accordance with
18
+ * the terms of the Adobe license agreement accompanying it.
19
+ *************************************************************************/
20
+
1
21
  import { getProperty } from './utils/JsonUtils.js';
22
+ import './types/Json.js';
23
+ import './utils/SchemaUtils.js';
24
+
2
25
  class Node {
3
26
  _jsonModel;
4
27
  constructor(inputModel) {
@@ -13,4 +36,5 @@ class Node {
13
36
  return false;
14
37
  }
15
38
  }
16
- export default Node;
39
+
40
+ export { Node as default };
@@ -1,4 +1,30 @@
1
- import { BaseNode, editableProperties } from './BaseNode.js';
1
+ /*************************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * ___________________
4
+ *
5
+ * Copyright 2022 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+
17
+ * Adobe permits you to use and modify this file solely in accordance with
18
+ * the terms of the Adobe license agreement accompanying it.
19
+ *************************************************************************/
20
+
21
+ import { B as BaseNode, a as editableProperties } from './BaseNode-d78cc1b0.js';
22
+ import './controller/Events.js';
23
+ import './utils/DataRefParser.js';
24
+ import './data/DataGroup.js';
25
+ import './data/DataValue.js';
26
+ import './data/EmptyDataValue.js';
27
+
2
28
  class Scriptable extends BaseNode {
3
29
  _events = {};
4
30
  _rules = {};
@@ -160,4 +186,5 @@ class Scriptable extends BaseNode {
160
186
  this.notifyDependents(action);
161
187
  }
162
188
  }
163
- export default Scriptable;
189
+
190
+ export { Scriptable as default };
@@ -1,4 +1,25 @@
1
+ /*************************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * ___________________
4
+ *
5
+ * Copyright 2022 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+
17
+ * Adobe permits you to use and modify this file solely in accordance with
18
+ * the terms of the Adobe license agreement accompanying it.
19
+ *************************************************************************/
20
+
1
21
  import { Logger } from './Logger.js';
22
+
2
23
  class EventNode {
3
24
  _node;
4
25
  _event;
@@ -83,4 +104,5 @@ class EventQueue {
83
104
  this._isProcessing = false;
84
105
  }
85
106
  }
86
- export default EventQueue;
107
+
108
+ export { EventQueue as default };
@@ -18,7 +18,7 @@ declare class ActionImpl implements Action {
18
18
  };
19
19
  toString(): string;
20
20
  }
21
- export declare type ChangePayload = {
21
+ export type ChangePayload = {
22
22
  changes: Array<{
23
23
  propertyName: string;
24
24
  prevValue?: any;
@@ -1,3 +1,23 @@
1
+ /*************************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * ___________________
4
+ *
5
+ * Copyright 2022 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+
17
+ * Adobe permits you to use and modify this file solely in accordance with
18
+ * the terms of the Adobe license agreement accompanying it.
19
+ *************************************************************************/
20
+
1
21
  class ActionImpl {
2
22
  _metadata;
3
23
  _type;
@@ -37,7 +57,7 @@ class ActionImpl {
37
57
  return JSON.stringify(this.toJson());
38
58
  }
39
59
  }
40
- export class Change extends ActionImpl {
60
+ class Change extends ActionImpl {
41
61
  constructor(payload, dispatch = false) {
42
62
  super(payload, 'change', { dispatch });
43
63
  }
@@ -45,22 +65,22 @@ export class Change extends ActionImpl {
45
65
  return new Change(this.payload.changes.concat(change.payload.changes), this.metadata);
46
66
  }
47
67
  }
48
- export class Invalid extends ActionImpl {
68
+ class Invalid extends ActionImpl {
49
69
  constructor(payload = {}) {
50
70
  super(payload, 'invalid', {});
51
71
  }
52
72
  }
53
- export class Valid extends ActionImpl {
73
+ class Valid extends ActionImpl {
54
74
  constructor(payload = {}) {
55
75
  super(payload, 'valid', {});
56
76
  }
57
77
  }
58
- export class ExecuteRule extends ActionImpl {
78
+ class ExecuteRule extends ActionImpl {
59
79
  constructor(payload = {}, dispatch = false) {
60
80
  super(payload, 'executeRule', { dispatch });
61
81
  }
62
82
  }
63
- export const propertyChange = (propertyName, currentValue, prevValue) => {
83
+ const propertyChange = (propertyName, currentValue, prevValue) => {
64
84
  return new Change({
65
85
  changes: [
66
86
  {
@@ -71,47 +91,47 @@ export const propertyChange = (propertyName, currentValue, prevValue) => {
71
91
  ]
72
92
  });
73
93
  };
74
- export class Initialize extends ActionImpl {
94
+ class Initialize extends ActionImpl {
75
95
  constructor(payload, dispatch = false) {
76
96
  super(payload, 'initialize', { dispatch });
77
97
  }
78
98
  }
79
- export class FormLoad extends ActionImpl {
99
+ class FormLoad extends ActionImpl {
80
100
  constructor() {
81
101
  super({}, 'load', { dispatch: false });
82
102
  }
83
103
  }
84
- export class Click extends ActionImpl {
104
+ class Click extends ActionImpl {
85
105
  constructor(payload, dispatch = false) {
86
106
  super(payload, 'click', { dispatch });
87
107
  }
88
108
  }
89
- export class Blur extends ActionImpl {
109
+ class Blur extends ActionImpl {
90
110
  constructor(payload, dispatch = false) {
91
111
  super(payload, 'blur', { dispatch });
92
112
  }
93
113
  }
94
- export class ValidationComplete extends ActionImpl {
114
+ class ValidationComplete extends ActionImpl {
95
115
  constructor(payload, dispatch = false) {
96
116
  super(payload, 'validationComplete', { dispatch });
97
117
  }
98
118
  }
99
- export class Focus extends ActionImpl {
119
+ class Focus extends ActionImpl {
100
120
  constructor() {
101
121
  super({}, 'focus', { dispatch: false });
102
122
  }
103
123
  }
104
- export class Submit extends ActionImpl {
124
+ class Submit extends ActionImpl {
105
125
  constructor(payload, dispatch = false) {
106
126
  super(payload, 'submit', { dispatch });
107
127
  }
108
128
  }
109
- export class Reset extends ActionImpl {
129
+ class Reset extends ActionImpl {
110
130
  constructor(payload, dispatch = false) {
111
131
  super(payload, 'reset', { dispatch });
112
132
  }
113
133
  }
114
- export class FieldChanged extends ActionImpl {
134
+ class FieldChanged extends ActionImpl {
115
135
  constructor(changes, field) {
116
136
  super({
117
137
  field,
@@ -119,7 +139,7 @@ export class FieldChanged extends ActionImpl {
119
139
  }, 'fieldChanged');
120
140
  }
121
141
  }
122
- export class CustomEvent extends ActionImpl {
142
+ class CustomEvent extends ActionImpl {
123
143
  constructor(eventName, payload = {}, dispatch = false) {
124
144
  super(payload, eventName, { dispatch });
125
145
  }
@@ -127,23 +147,25 @@ export class CustomEvent extends ActionImpl {
127
147
  return true;
128
148
  }
129
149
  }
130
- export class AddItem extends ActionImpl {
150
+ class AddItem extends ActionImpl {
131
151
  constructor(payload) {
132
152
  super(payload, 'addItem');
133
153
  }
134
154
  }
135
- export class RemoveItem extends ActionImpl {
155
+ class RemoveItem extends ActionImpl {
136
156
  constructor(payload) {
137
157
  super(payload, 'removeItem');
138
158
  }
139
159
  }
140
- export class AddInstance extends ActionImpl {
160
+ class AddInstance extends ActionImpl {
141
161
  constructor(payload) {
142
162
  super(payload, 'addInstance');
143
163
  }
144
164
  }
145
- export class RemoveInstance extends ActionImpl {
165
+ class RemoveInstance extends ActionImpl {
146
166
  constructor(payload) {
147
167
  super(payload, 'removeInstance');
148
168
  }
149
169
  }
170
+
171
+ export { AddInstance, AddItem, Blur, Change, Click, CustomEvent, ExecuteRule, FieldChanged, Focus, FormLoad, Initialize, Invalid, RemoveInstance, RemoveItem, Reset, Submit, Valid, ValidationComplete, propertyChange };
@@ -1,5 +1,5 @@
1
- export declare type LogFunction = 'info' | 'warn' | 'error' | 'debug';
2
- export declare type LogLevel = 'off' | LogFunction;
1
+ export type LogFunction = 'info' | 'warn' | 'error' | 'debug';
2
+ export type LogLevel = 'off' | LogFunction;
3
3
  export declare class Logger {
4
4
  debug(msg: string): void;
5
5
  info(msg: string): void;
@@ -1,3 +1,23 @@
1
+ /*************************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * ___________________
4
+ *
5
+ * Copyright 2022 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+
17
+ * Adobe permits you to use and modify this file solely in accordance with
18
+ * the terms of the Adobe license agreement accompanying it.
19
+ *************************************************************************/
20
+
1
21
  const levels = {
2
22
  off: 0,
3
23
  debug: 1,
@@ -5,7 +25,7 @@ const levels = {
5
25
  warn: 3,
6
26
  error: 4
7
27
  };
8
- export class Logger {
28
+ class Logger {
9
29
  debug(msg) {
10
30
  this.log(msg, 'debug');
11
31
  }
@@ -28,3 +48,5 @@ export class Logger {
28
48
  this.logLevel = levels[logLevel];
29
49
  }
30
50
  }
51
+
52
+ export { Logger };
@@ -1,6 +1,27 @@
1
+ /*************************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * ___________________
4
+ *
5
+ * Copyright 2022 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+
17
+ * Adobe permits you to use and modify this file solely in accordance with
18
+ * the terms of the Adobe license agreement accompanying it.
19
+ *************************************************************************/
20
+
1
21
  import DataValue from './DataValue.js';
2
22
  import NullDataValue from './EmptyDataValue.js';
3
- export default class DataGroup extends DataValue {
23
+
24
+ class DataGroup extends DataValue {
4
25
  $_items;
5
26
  createEntry(key, value) {
6
27
  const t = value instanceof Array ? 'array' : typeof value;
@@ -75,3 +96,5 @@ export default class DataGroup extends DataValue {
75
96
  return true;
76
97
  }
77
98
  }
99
+
100
+ export { DataGroup as default };
@@ -1,4 +1,24 @@
1
- export default class DataValue {
1
+ /*************************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * ___________________
4
+ *
5
+ * Copyright 2022 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+
17
+ * Adobe permits you to use and modify this file solely in accordance with
18
+ * the terms of the Adobe license agreement accompanying it.
19
+ *************************************************************************/
20
+
21
+ class DataValue {
2
22
  $_name;
3
23
  $_value;
4
24
  $_type;
@@ -44,3 +64,5 @@ export default class DataValue {
44
64
  return false;
45
65
  }
46
66
  }
67
+
68
+ export { DataValue as default };
@@ -1,4 +1,25 @@
1
+ /*************************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * ___________________
4
+ *
5
+ * Copyright 2022 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+
17
+ * Adobe permits you to use and modify this file solely in accordance with
18
+ * the terms of the Adobe license agreement accompanying it.
19
+ *************************************************************************/
20
+
1
21
  import DataValue from './DataValue.js';
22
+
2
23
  const value = Symbol('NullValue');
3
24
  class NullDataValueClass extends DataValue {
4
25
  constructor() {
@@ -26,4 +47,5 @@ class NullDataValueClass extends DataValue {
26
47
  }
27
48
  }
28
49
  const NullDataValue = new NullDataValueClass();
29
- export default NullDataValue;
50
+
51
+ export { NullDataValue as default };