@formio/js 5.1.0-dev.6115.a496b38 → 5.1.0-dev.6126.7fb6eb6

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 (141) hide show
  1. package/dist/formio.embed.js +1 -1
  2. package/dist/formio.embed.min.js +1 -1
  3. package/dist/formio.form.js +113 -124
  4. package/dist/formio.form.min.js +1 -1
  5. package/dist/formio.full.js +120 -131
  6. package/dist/formio.full.min.js +1 -1
  7. package/dist/formio.js +62 -51
  8. package/dist/formio.min.js +1 -1
  9. package/dist/formio.utils.js +72 -72
  10. package/dist/formio.utils.min.js +1 -1
  11. package/lib/cjs/Element.js +13 -36
  12. package/lib/cjs/Embed.js +9 -1
  13. package/lib/cjs/EventEmitter.js +2 -25
  14. package/lib/cjs/Form.js +2 -25
  15. package/lib/cjs/PDF.js +1 -1
  16. package/lib/cjs/PDFBuilder.js +4 -5
  17. package/lib/cjs/Webform.js +5 -6
  18. package/lib/cjs/WebformBuilder.js +9 -10
  19. package/lib/cjs/Wizard.js +1 -1
  20. package/lib/cjs/WizardBuilder.js +1 -1
  21. package/lib/cjs/components/_classes/component/Component.d.ts +0 -1
  22. package/lib/cjs/components/_classes/component/Component.js +33 -54
  23. package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.js +1 -1
  24. package/lib/cjs/components/_classes/component/editForm/Component.edit.logic.js +1 -1
  25. package/lib/cjs/components/_classes/componentModal/ComponentModal.js +1 -1
  26. package/lib/cjs/components/_classes/input/Input.js +1 -1
  27. package/lib/cjs/components/_classes/list/ListComponent.js +1 -1
  28. package/lib/cjs/components/_classes/nested/NestedComponent.js +6 -6
  29. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
  30. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +1 -1
  31. package/lib/cjs/components/address/Address.js +1 -1
  32. package/lib/cjs/components/alert/Alert.js +1 -1
  33. package/lib/cjs/components/button/Button.d.ts +1 -1
  34. package/lib/cjs/components/button/Button.js +4 -4
  35. package/lib/cjs/components/checkbox/Checkbox.js +1 -1
  36. package/lib/cjs/components/container/Container.js +1 -1
  37. package/lib/cjs/components/currency/Currency.js +1 -1
  38. package/lib/cjs/components/datagrid/DataGrid.js +1 -1
  39. package/lib/cjs/components/datamap/DataMap.d.ts +1 -1
  40. package/lib/cjs/components/datamap/DataMap.js +4 -4
  41. package/lib/cjs/components/datetime/DateTime.d.ts +1 -1
  42. package/lib/cjs/components/datetime/DateTime.js +15 -13
  43. package/lib/cjs/components/day/Day.js +1 -1
  44. package/lib/cjs/components/editgrid/EditGrid.js +1 -1
  45. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +1 -1
  46. package/lib/cjs/components/file/File.js +1 -1
  47. package/lib/cjs/components/form/Form.js +1 -1
  48. package/lib/cjs/components/form/editForm/Form.edit.form.js +4 -3
  49. package/lib/cjs/components/number/Number.js +1 -1
  50. package/lib/cjs/components/panel/Panel.js +1 -1
  51. package/lib/cjs/components/radio/Radio.js +1 -1
  52. package/lib/cjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +1 -1
  53. package/lib/cjs/components/select/Select.js +1 -1
  54. package/lib/cjs/components/select/editForm/Select.edit.data.js +1 -1
  55. package/lib/cjs/components/selectboxes/SelectBoxes.js +1 -1
  56. package/lib/cjs/components/signature/Signature.js +1 -1
  57. package/lib/cjs/components/survey/Survey.js +1 -1
  58. package/lib/cjs/components/tags/Tags.js +1 -1
  59. package/lib/cjs/components/textarea/TextArea.js +3 -3
  60. package/lib/cjs/components/textfield/TextField.js +7 -30
  61. package/lib/cjs/components/time/Time.js +1 -1
  62. package/lib/cjs/formio.form.js +3 -3
  63. package/lib/cjs/i18n.js +1 -1
  64. package/lib/cjs/providers/storage/uploadAdapter.js +1 -1
  65. package/lib/cjs/utils/Evaluator.d.ts +13 -6
  66. package/lib/cjs/utils/Evaluator.js +27 -15
  67. package/lib/cjs/utils/builder.js +5 -5
  68. package/lib/cjs/utils/conditionOperators/IsEqualTo.js +3 -3
  69. package/lib/cjs/utils/i18n.js +3 -3
  70. package/lib/cjs/utils/index.d.ts +161 -2
  71. package/lib/cjs/utils/index.js +12 -2
  72. package/lib/cjs/utils/utils.d.ts +18 -33
  73. package/lib/cjs/utils/utils.js +52 -130
  74. package/lib/cjs/widgets/CalendarWidget.d.ts +0 -7
  75. package/lib/cjs/widgets/CalendarWidget.js +15 -39
  76. package/lib/mjs/Element.js +6 -6
  77. package/lib/mjs/Embed.js +9 -1
  78. package/lib/mjs/EventEmitter.js +2 -2
  79. package/lib/mjs/Form.js +1 -1
  80. package/lib/mjs/PDF.js +1 -1
  81. package/lib/mjs/PDFBuilder.js +1 -2
  82. package/lib/mjs/Webform.js +3 -4
  83. package/lib/mjs/WebformBuilder.js +1 -2
  84. package/lib/mjs/Wizard.js +1 -1
  85. package/lib/mjs/WizardBuilder.js +1 -1
  86. package/lib/mjs/components/_classes/component/Component.d.ts +0 -1
  87. package/lib/mjs/components/_classes/component/Component.js +6 -4
  88. package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.js +1 -1
  89. package/lib/mjs/components/_classes/component/editForm/Component.edit.logic.js +1 -1
  90. package/lib/mjs/components/_classes/componentModal/ComponentModal.js +1 -1
  91. package/lib/mjs/components/_classes/input/Input.js +1 -1
  92. package/lib/mjs/components/_classes/list/ListComponent.js +1 -1
  93. package/lib/mjs/components/_classes/nested/NestedComponent.js +6 -6
  94. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
  95. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +1 -1
  96. package/lib/mjs/components/address/Address.js +1 -1
  97. package/lib/mjs/components/alert/Alert.js +1 -1
  98. package/lib/mjs/components/button/Button.d.ts +1 -1
  99. package/lib/mjs/components/button/Button.js +1 -1
  100. package/lib/mjs/components/checkbox/Checkbox.js +1 -1
  101. package/lib/mjs/components/container/Container.js +1 -1
  102. package/lib/mjs/components/currency/Currency.js +1 -1
  103. package/lib/mjs/components/datagrid/DataGrid.js +1 -1
  104. package/lib/mjs/components/datamap/DataMap.d.ts +1 -1
  105. package/lib/mjs/components/datamap/DataMap.js +1 -1
  106. package/lib/mjs/components/datetime/DateTime.d.ts +1 -1
  107. package/lib/mjs/components/datetime/DateTime.js +15 -13
  108. package/lib/mjs/components/day/Day.js +1 -1
  109. package/lib/mjs/components/editgrid/EditGrid.js +1 -1
  110. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +1 -1
  111. package/lib/mjs/components/file/File.js +1 -1
  112. package/lib/mjs/components/form/Form.js +1 -1
  113. package/lib/mjs/components/form/editForm/Form.edit.form.js +3 -2
  114. package/lib/mjs/components/number/Number.js +1 -1
  115. package/lib/mjs/components/panel/Panel.js +1 -1
  116. package/lib/mjs/components/radio/Radio.js +1 -1
  117. package/lib/mjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +1 -1
  118. package/lib/mjs/components/select/Select.js +1 -1
  119. package/lib/mjs/components/select/editForm/Select.edit.data.js +1 -1
  120. package/lib/mjs/components/selectboxes/SelectBoxes.js +1 -1
  121. package/lib/mjs/components/signature/Signature.js +1 -1
  122. package/lib/mjs/components/survey/Survey.js +1 -1
  123. package/lib/mjs/components/tags/Tags.js +1 -1
  124. package/lib/mjs/components/textarea/TextArea.js +3 -3
  125. package/lib/mjs/components/textfield/TextField.js +1 -1
  126. package/lib/mjs/components/time/Time.js +1 -1
  127. package/lib/mjs/formio.form.js +2 -2
  128. package/lib/mjs/i18n.js +1 -1
  129. package/lib/mjs/providers/storage/uploadAdapter.js +1 -1
  130. package/lib/mjs/utils/Evaluator.d.ts +13 -6
  131. package/lib/mjs/utils/Evaluator.js +21 -13
  132. package/lib/mjs/utils/builder.js +1 -1
  133. package/lib/mjs/utils/conditionOperators/IsEqualTo.js +1 -1
  134. package/lib/mjs/utils/i18n.js +1 -1
  135. package/lib/mjs/utils/index.d.ts +161 -2
  136. package/lib/mjs/utils/index.js +11 -1
  137. package/lib/mjs/utils/utils.d.ts +18 -33
  138. package/lib/mjs/utils/utils.js +45 -105
  139. package/lib/mjs/widgets/CalendarWidget.d.ts +0 -7
  140. package/lib/mjs/widgets/CalendarWidget.js +15 -39
  141. package/package.json +3 -2
@@ -1,3 +1,162 @@
1
- export { FormioUtils as Utils };
1
+ export * from "./utils";
2
+ export * from "./formUtils";
2
3
  export default FormioUtils;
3
- import * as FormioUtils from './utils';
4
+ declare const FormioUtils: {
5
+ Evaluator: import("./Evaluator").DefaultEvaluator;
6
+ flattenComponents: typeof import("@formio/core/lib/utils/formUtil").flattenComponents;
7
+ guid: typeof import("@formio/core/lib/utils/formUtil").guid;
8
+ uniqueName: typeof import("@formio/core/lib/utils/formUtil").uniqueName;
9
+ MODEL_TYPES_OF_KNOWN_COMPONENTS: {
10
+ nestedArray: string[];
11
+ nestedDataArray: string[];
12
+ dataObject: string[];
13
+ object: string[];
14
+ map: string[];
15
+ content: string[];
16
+ string: string[];
17
+ number: string[];
18
+ boolean: string[];
19
+ none: string[];
20
+ any: string[];
21
+ };
22
+ getModelType: typeof import("@formio/core/lib/utils/formUtil").getModelType;
23
+ getComponentPath: any;
24
+ setComponentScope: typeof import("@formio/core/lib/utils/formUtil").setComponentScope;
25
+ resetComponentScope: typeof import("@formio/core/lib/utils/formUtil").resetComponentScope;
26
+ isComponentNestedDataType: typeof import("@formio/core/lib/utils/formUtil").isComponentNestedDataType;
27
+ componentPath: typeof import("@formio/core/lib/utils/formUtil").componentPath;
28
+ getComponentPaths: typeof import("@formio/core/lib/utils/formUtil").getComponentPaths;
29
+ componentMatches: typeof import("@formio/core/lib/utils/formUtil").componentMatches;
30
+ getBestMatch: typeof import("@formio/core/lib/utils/formUtil").getBestMatch;
31
+ getComponentFromPath: typeof import("@formio/core/lib/utils/formUtil").getComponentFromPath;
32
+ getComponentValue: typeof import("@formio/core/lib/utils/formUtil").getComponentValue;
33
+ findComponents: typeof import("@formio/core/lib/utils/formUtil").findComponents;
34
+ eachComponentDataAsync: (components: import("@formio/core").Component[], data: import("@formio/core").DataObject, fn: import("@formio/core").EachComponentDataAsyncCallback, includeAll?: boolean | undefined, local?: boolean | undefined, parent?: import("@formio/core").Component | undefined, parentPaths?: import("@formio/core").ComponentPaths | undefined) => Promise<void>;
35
+ eachComponentData: (components: import("@formio/core").Component[], data: import("@formio/core").DataObject, fn: import("@formio/core").EachComponentDataCallback, includeAll?: boolean | undefined, local?: boolean | undefined, parent?: import("@formio/core").Component | undefined, parentPaths?: import("@formio/core").ComponentPaths | undefined) => void;
36
+ getComponentKey: typeof import("@formio/core/lib/utils/formUtil").getComponentKey;
37
+ getContextualRowPath: typeof import("@formio/core/lib/utils/formUtil").getContextualRowPath;
38
+ getContextualRowData: typeof import("@formio/core/lib/utils/formUtil").getContextualRowData;
39
+ componentInfo: typeof import("@formio/core/lib/utils/formUtil").componentInfo;
40
+ eachComponent: typeof import("@formio/core/lib/utils/formUtil").eachComponent;
41
+ eachComponentAsync: typeof import("@formio/core/lib/utils/formUtil").eachComponentAsync;
42
+ getComponentData: typeof import("@formio/core/lib/utils/formUtil").getComponentData;
43
+ getComponentActualValue: any;
44
+ isLayoutComponent: typeof import("@formio/core/lib/utils/formUtil").isLayoutComponent;
45
+ matchComponent: typeof import("@formio/core/lib/utils/formUtil").matchComponent;
46
+ getComponent: typeof import("@formio/core/lib/utils/formUtil").getComponent;
47
+ searchComponents: typeof import("@formio/core/lib/utils/formUtil").searchComponents;
48
+ removeComponent: typeof import("@formio/core/lib/utils/formUtil").removeComponent;
49
+ hasCondition: typeof import("@formio/core/lib/utils/formUtil").hasCondition;
50
+ parseFloatExt: typeof import("@formio/core/lib/utils/formUtil").parseFloatExt;
51
+ formatAsCurrency: typeof import("@formio/core/lib/utils/formUtil").formatAsCurrency;
52
+ escapeRegExCharacters: typeof import("@formio/core/lib/utils/formUtil").escapeRegExCharacters;
53
+ getValue: typeof import("@formio/core/lib/utils/formUtil").getValue;
54
+ getStrings: typeof import("@formio/core/lib/utils/formUtil").getStrings;
55
+ generateFormChange: typeof import("@formio/core/lib/utils/formUtil").generateFormChange;
56
+ applyFormChanges: typeof import("@formio/core/lib/utils/formUtil").applyFormChanges;
57
+ findComponent: typeof import("@formio/core/lib/utils/formUtil").findComponent;
58
+ getEmptyValue: typeof import("@formio/core/lib/utils/formUtil").getEmptyValue;
59
+ isComponentDataEmpty: typeof import("@formio/core/lib/utils/formUtil").isComponentDataEmpty;
60
+ isSelectResourceWithObjectValue: typeof import("@formio/core/lib/utils/formUtil").isSelectResourceWithObjectValue;
61
+ compareSelectResourceWithObjectTypeValues: typeof import("@formio/core/lib/utils/formUtil").compareSelectResourceWithObjectTypeValues;
62
+ getItemTemplateKeys: typeof import("@formio/core/lib/utils/formUtil").getItemTemplateKeys;
63
+ evaluate(func: string | object | Function, args: any, ret: string, interpolate: boolean, options?: import("@formio/core").EvaluatorOptions): any;
64
+ getRandomComponentId(): string;
65
+ getPropertyValue(style: CSSStyleDeclaration, prop: string): number;
66
+ getElementRect(element: HTMLElement): {
67
+ x: number;
68
+ y: number;
69
+ width: number;
70
+ height: number;
71
+ };
72
+ getScriptPlugin(property: string): any;
73
+ boolValue(value: string | boolean): boolean;
74
+ isMongoId(text: string): boolean;
75
+ checkCalculated(component: import("@formio/core").Component, submission: import("@formio/core").Submission, rowData: any): void;
76
+ checkSimpleConditional(component: any, condition: any, row: any, data: any, instance: any): boolean;
77
+ checkCustomConditional(component: import("@formio/core").Component, custom: string, row: any, data: any, form: import("@formio/core").Form, variable: string, onError: any, instance: any): any;
78
+ checkJsonConditional(component: import("@formio/core").Component, json: import("@formio/core").JSONConditional, row: any, data: any, form: import("@formio/core").Form, onError: any): boolean;
79
+ checkCondition(component: import("@formio/core").Component, row: any, data: any, form: import("@formio/core").Form, instance: any): boolean;
80
+ checkTrigger(component: import("@formio/core").Component, trigger: any, row: import("@formio/core").DataObject, data: import("@formio/core").DataObject, form: import("@formio/core").Form, instance: any): boolean;
81
+ setActionProperty(component: import("@formio/core").Component, action: any, result: string, row: import("@formio/core").DataObject, data: import("@formio/core").DataObject, instance: any): import("@formio/core").Component;
82
+ removeHTML(str: string): string;
83
+ unescapeHTML(str: string): string;
84
+ convertStringToHTMLElement(str: string, selector: string): HTMLElement;
85
+ getDateSetting(date: string | Date): import("dayjs").Dayjs | null;
86
+ isValidDate(date: string | Date): boolean;
87
+ currentTimezone(): string;
88
+ offsetDate(date: Date, timezone: string): {
89
+ date: Date;
90
+ abbr: string;
91
+ };
92
+ shouldHandleTimezone(timezone: string): boolean;
93
+ dayjsDate(value: string | Date, format: string, timezone: string, options: object): import("dayjs").Dayjs;
94
+ formatDate(value: string | Date, format: string, timezone: string, flatPickrInputFormat: string): string;
95
+ formatOffset(formatFn: Function, date: string | Date, format: string, timezone: string): string;
96
+ getLocaleDateFormatInfo(locale: Intl.LocalesArgument): object;
97
+ convertFormatToFlatpickr(format: string): string;
98
+ convertFormatToDayjs(format: string): string;
99
+ convertFormatToMask(format: string): string;
100
+ getInputMask(mask: string, placeholderChar: string): any[];
101
+ unmaskValue(value: string, mask: string, placeholderChar: string): string;
102
+ matchInputMask(value: string, inputMask: string): boolean;
103
+ getNumberSeparators(lang?: string): {
104
+ delimiter: string;
105
+ decimalSeparator: string;
106
+ };
107
+ getNumberDecimalLimit(component: import("@formio/core").Component, defaultLimit: number): number;
108
+ getCurrencyAffixes({ currency, decimalLimit, decimalSeparator, lang, }: {
109
+ currency: string;
110
+ decimalLimit: number;
111
+ decimalSeparator: string;
112
+ lang: string;
113
+ }): {
114
+ prefix: string;
115
+ suffix: string;
116
+ };
117
+ fieldData(data: import("@formio/core").DataObject, component: import("@formio/core").Component): any;
118
+ delay(fn: Function, delay?: number, ...args: any[]): any;
119
+ iterateKey(key: string): string;
120
+ uniqueKey(map: Record<string, string>, base: string): string;
121
+ bootstrapVersion(options: {
122
+ bootstrap: string;
123
+ }): number;
124
+ unfold(e: any): any;
125
+ withSwitch(a: any, b: any): Functions[];
126
+ observeOverload(callback: Function, options?: {
127
+ limit: number;
128
+ delay: number;
129
+ }): Function;
130
+ getContextComponents(context: any, excludeNested: boolean, excludedTypes?: string[]): any[];
131
+ getContextButtons(context: any): any[];
132
+ translateHTMLTemplate(template: string, translate: Function): string;
133
+ sanitize(string: string, options: any): string;
134
+ fastCloneDeep(obj: any): any;
135
+ isInputComponent(componentJson: import("@formio/core").Component): bool;
136
+ getArrayFromComponentPath(pathStr: string): Arryay<number>;
137
+ isChildOf(child: any, parent: any): boolean;
138
+ getStringFromComponentPath(path: number[]): string;
139
+ round(number: number, precision: number): string;
140
+ getIEBrowserVersion(): number | null;
141
+ getBrowserInfo(): object;
142
+ getComponentPathWithoutIndicies(path?: string): string;
143
+ getDataParentComponent(componentInstance: Component): any;
144
+ isPromise(value: any): boolean;
145
+ getFocusableElements(element: HTMLElement): NodeList<HTMLElement>;
146
+ getComponentSavedTypes(fullSchema: import("@formio/core").Component): string[] | null;
147
+ hasEncodedTimezone(value: string): boolean;
148
+ firstNonNil: any;
149
+ componentValueTypes: {
150
+ number: string;
151
+ string: string;
152
+ boolean: string;
153
+ array: string;
154
+ object: string;
155
+ date: string;
156
+ any: string;
157
+ };
158
+ interpolateErrors: (component: Component, errors: FieldError[], interpolateFn: Function) => [];
159
+ };
160
+ import { Evaluator } from './Evaluator';
161
+ import { registerEvaluator } from './Evaluator';
162
+ export { FormioUtils as Utils, Evaluator, registerEvaluator };
@@ -22,11 +22,21 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
25
28
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.Utils = void 0;
27
- const FormioUtils = __importStar(require("./utils"));
29
+ exports.registerEvaluator = exports.Evaluator = exports.Utils = void 0;
30
+ const utils = __importStar(require("./utils"));
31
+ const formUtils = __importStar(require("./formUtils"));
32
+ const Evaluator_1 = require("./Evaluator");
33
+ Object.defineProperty(exports, "Evaluator", { enumerable: true, get: function () { return Evaluator_1.Evaluator; } });
34
+ Object.defineProperty(exports, "registerEvaluator", { enumerable: true, get: function () { return Evaluator_1.registerEvaluator; } });
35
+ const FormioUtils = Object.assign(Object.assign(Object.assign({}, utils), formUtils), { Evaluator: Evaluator_1.Evaluator });
28
36
  exports.Utils = FormioUtils;
29
37
  if (typeof global === 'object') {
30
38
  global.FormioUtils = FormioUtils;
31
39
  }
40
+ __exportStar(require("./utils"), exports);
41
+ __exportStar(require("./formUtils"), exports);
32
42
  exports.default = FormioUtils;
@@ -164,9 +164,9 @@ export function guid(): string;
164
164
  /**
165
165
  * Return a translated date setting.
166
166
  * @param {string|Date} date - The date to translate.
167
- * @returns {(null|Date)} - The translated date.
167
+ * @returns {(null|dayjs.Dayjs)} - The translated date.
168
168
  */
169
- export function getDateSetting(date: string | Date): (null | Date);
169
+ export function getDateSetting(date: string | Date): (null | dayjs.Dayjs);
170
170
  /**
171
171
  * Returns true if the date is a valid date. False otherwise.
172
172
  * @param {Date|string} date - The date to check for validity.
@@ -182,56 +182,45 @@ export function currentTimezone(): string;
182
182
  * Get an offset date provided a date object and timezone object.
183
183
  * @param {Date} date - The date to offset.
184
184
  * @param {string} timezone - The timezone to offset the date to.
185
- * @returns {Date} - The offset date.
185
+ * @returns {{date: Date, abbr: string}} - The offset date.
186
186
  */
187
- export function offsetDate(date: Date, timezone: string): Date;
188
- /**
189
- * Returns if the zones are loaded.
190
- * @returns {boolean} - TRUE if the zones are loaded; FALSE otherwise.
191
- */
192
- export function zonesLoaded(): boolean;
187
+ export function offsetDate(date: Date, timezone: string): {
188
+ date: Date;
189
+ abbr: string;
190
+ };
193
191
  /**
194
- * Returns if we should load the zones.
192
+ * Returns if we should handle a timezone difference.
195
193
  * @param {string} timezone - The timezone to check if we should load the zones.
196
- * @returns {boolean} - TRUE if we should load the zones; FALSE otherwise.
197
- */
198
- export function shouldLoadZones(timezone: string): boolean;
199
- /**
200
- * Externally load the timezone data.
201
- * @param {string} url - The URL to load the timezone data from.
202
- * @param {string} timezone - The timezone to load.
203
- * @returns {Promise<any> | *} - Resolves when the zones for this timezone are loaded.
194
+ * @returns {boolean} - TRUE if we should handle timezones; FALSE otherwise.
204
195
  */
205
- export function loadZones(url: string, timezone: string): Promise<any> | any;
196
+ export function shouldHandleTimezone(timezone: string): boolean;
206
197
  /**
207
- * Get the moment date object for translating dates with timezones.
208
- * @param {string|Date} value - The value to convert into a moment date.
198
+ * Get the Dayjs date object for translating dates with timezones.
199
+ * @param {string|Date} value - The value to convert into a dayjs date.
209
200
  * @param {string} format - The format to convert the date to.
210
201
  * @param {string} timezone - The timezone to convert the date to.
211
202
  * @param {object} options - The options object
212
- * @returns {Date} - The moment date object.
203
+ * @returns {dayjs.Dayjs} - The dayjs date object.
213
204
  */
214
- export function momentDate(value: string | Date, format: string, timezone: string, options: object): Date;
205
+ export function dayjsDate(value: string | Date, format: string, timezone: string, options: object): dayjs.Dayjs;
215
206
  /**
216
207
  * Format a date provided a value, format, and timezone object.
217
- * @param {string} timezonesUrl - The URL to load the timezone data from.
218
208
  * @param {string|Date} value - The value to format.
219
209
  * @param {string} format - The format to format the date to.
220
210
  * @param {string} timezone - The timezone to format the date to.
221
211
  * @param {string} flatPickrInputFormat - The format to use for flatpickr input.
222
212
  * @returns {string} - The formatted date.
223
213
  */
224
- export function formatDate(timezonesUrl: string, value: string | Date, format: string, timezone: string, flatPickrInputFormat: string): string;
214
+ export function formatDate(value: string | Date, format: string, timezone: string, flatPickrInputFormat: string): string;
225
215
  /**
226
216
  * Pass a format function to format within a timezone.
227
- * @param {string} timezonesUrl - The URL to load the timezone data from.
228
217
  * @param {Function} formatFn - The format function to use.
229
218
  * @param {Date|string} date - The date to format.
230
219
  * @param {string} format - The format to format the date to.
231
220
  * @param {string} timezone - The timezone to format the date to.
232
221
  * @returns {string} - The formatted date.
233
222
  */
234
- export function formatOffset(timezonesUrl: string, formatFn: Function, date: Date | string, format: string, timezone: string): string;
223
+ export function formatOffset(formatFn: Function, date: Date | string, format: string, timezone: string): string;
235
224
  /**
236
225
  * Returns the local date format information.
237
226
  * @param {Intl.LocalesArgument} locale - The locale to get the date format for.
@@ -249,7 +238,7 @@ export function convertFormatToFlatpickr(format: string): string;
249
238
  * @param {string} format - The format to convert.
250
239
  * @returns {string} - The converted format.
251
240
  */
252
- export function convertFormatToMoment(format: string): string;
241
+ export function convertFormatToDayjs(format: string): string;
253
242
  /**
254
243
  * Convert the format from the angular-datepicker module to mask format.
255
244
  * @param {string} format - The format to convert.
@@ -499,7 +488,6 @@ export function getComponentSavedTypes(fullSchema: import('@formio/core').Compon
499
488
  * @returns {boolean} if value has encoded timezone
500
489
  */
501
490
  export function hasEncodedTimezone(value: string): boolean;
502
- export * from "./formUtils";
503
491
  /**
504
492
  * Map values through unfold and return first non-nil value.
505
493
  * @param {Array<T>} collection - The collection to map through unfold.;
@@ -516,7 +504,4 @@ export namespace componentValueTypes {
516
504
  let any: string;
517
505
  }
518
506
  export function interpolateErrors(component: Component, errors: FieldError[], interpolateFn: Function): [];
519
- import ConditionOperators from './conditionOperators';
520
- import { Evaluator } from './Evaluator';
521
- export const interpolate: typeof Evaluator.interpolate;
522
- export { jsonLogic, ConditionOperators, moment, Evaluator, _ };
507
+ import dayjs from "dayjs";
@@ -1,57 +1,26 @@
1
1
  "use strict";
2
- /* global jQuery */
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
- };
17
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
18
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
4
  };
20
5
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.firstNonNil = exports.unfold = exports.bootstrapVersion = exports.uniqueKey = exports.iterateKey = exports.delay = exports.fieldData = exports.getCurrencyAffixes = exports.getNumberDecimalLimit = exports.getNumberSeparators = exports.matchInputMask = exports.unmaskValue = exports.getInputMask = exports.convertFormatToMask = exports.convertFormatToMoment = exports.convertFormatToFlatpickr = exports.getLocaleDateFormatInfo = exports.formatOffset = exports.formatDate = exports.momentDate = exports.loadZones = exports.shouldLoadZones = exports.zonesLoaded = exports.offsetDate = exports.currentTimezone = exports.isValidDate = exports.getDateSetting = exports.guid = exports.uniqueName = exports.convertStringToHTMLElement = exports.unescapeHTML = exports.removeHTML = exports.setActionProperty = exports.checkTrigger = exports.checkCondition = exports.checkJsonConditional = exports.checkCustomConditional = exports.getComponentActualValue = exports.checkSimpleConditional = exports.checkCalculated = exports.isMongoId = exports.boolValue = exports.getScriptPlugin = exports.getElementRect = exports.getPropertyValue = exports.getRandomComponentId = exports.evaluate = exports.moment = exports.ConditionOperators = exports.jsonLogic = void 0;
22
- exports.hasEncodedTimezone = exports.interpolateErrors = exports.getComponentSavedTypes = exports.componentValueTypes = exports._ = exports.getFocusableElements = exports.isPromise = exports.getDataParentComponent = exports.getComponentPath = exports.getComponentPathWithoutIndicies = exports.getBrowserInfo = exports.getIEBrowserVersion = exports.round = exports.getStringFromComponentPath = exports.isChildOf = exports.getArrayFromComponentPath = exports.isInputComponent = exports.interpolate = exports.Evaluator = exports.fastCloneDeep = exports.sanitize = exports.translateHTMLTemplate = exports.getContextButtons = exports.getContextComponents = exports.observeOverload = exports.withSwitch = void 0;
6
+ exports.translateHTMLTemplate = exports.getContextButtons = exports.getContextComponents = exports.observeOverload = exports.withSwitch = exports.firstNonNil = exports.unfold = exports.bootstrapVersion = exports.uniqueKey = exports.iterateKey = exports.delay = exports.fieldData = exports.getCurrencyAffixes = exports.getNumberDecimalLimit = exports.getNumberSeparators = exports.matchInputMask = exports.unmaskValue = exports.getInputMask = exports.convertFormatToMask = exports.convertFormatToDayjs = exports.convertFormatToFlatpickr = exports.getLocaleDateFormatInfo = exports.formatOffset = exports.formatDate = exports.dayjsDate = exports.shouldHandleTimezone = exports.offsetDate = exports.currentTimezone = exports.isValidDate = exports.getDateSetting = exports.guid = exports.uniqueName = exports.convertStringToHTMLElement = exports.unescapeHTML = exports.removeHTML = exports.setActionProperty = exports.checkTrigger = exports.checkCondition = exports.checkJsonConditional = exports.checkCustomConditional = exports.getComponentActualValue = exports.checkSimpleConditional = exports.checkCalculated = exports.isMongoId = exports.boolValue = exports.getScriptPlugin = exports.getElementRect = exports.getPropertyValue = exports.getRandomComponentId = exports.evaluate = void 0;
7
+ exports.hasEncodedTimezone = exports.interpolateErrors = exports.getComponentSavedTypes = exports.componentValueTypes = exports.getFocusableElements = exports.isPromise = exports.getDataParentComponent = exports.getComponentPath = exports.getComponentPathWithoutIndicies = exports.getBrowserInfo = exports.getIEBrowserVersion = exports.round = exports.getStringFromComponentPath = exports.isChildOf = exports.getArrayFromComponentPath = exports.isInputComponent = exports.fastCloneDeep = exports.sanitize = void 0;
8
+ /* global jQuery */
23
9
  const lodash_1 = __importDefault(require("lodash"));
24
- exports._ = lodash_1.default;
25
- const json_logic_js_1 = __importDefault(require("json-logic-js"));
26
- exports.jsonLogic = json_logic_js_1.default;
27
10
  const moment_timezone_1 = __importDefault(require("moment-timezone/moment-timezone"));
28
- exports.moment = moment_timezone_1.default;
29
11
  const jstimezonedetect_1 = __importDefault(require("jstimezonedetect"));
30
- const operators_1 = require("./jsonlogic/operators");
31
12
  const dompurify_1 = __importDefault(require("dompurify"));
13
+ const dayjs_1 = __importDefault(require("dayjs"));
14
+ const utc_1 = __importDefault(require("dayjs/plugin/utc"));
15
+ const timezone_1 = __importDefault(require("dayjs/plugin/timezone"));
16
+ const advancedFormat_1 = __importDefault(require("dayjs/plugin/advancedFormat"));
17
+ const core_1 = require("@formio/core");
32
18
  const formUtils_1 = require("./formUtils");
33
19
  const Evaluator_1 = require("./Evaluator");
34
- Object.defineProperty(exports, "Evaluator", { enumerable: true, get: function () { return Evaluator_1.Evaluator; } });
35
20
  const conditionOperators_1 = __importDefault(require("./conditionOperators"));
36
- exports.ConditionOperators = conditionOperators_1.default;
37
- const core_1 = require("@formio/core");
38
- const interpolate = Evaluator_1.Evaluator.interpolate;
39
- exports.interpolate = interpolate;
40
- __exportStar(require("./formUtils"), exports);
41
- // Configure JsonLogic
42
- operators_1.lodashOperators.forEach((name) => json_logic_js_1.default.add_operation(`_${name}`, lodash_1.default[name]));
43
- // Retrieve Any Date
44
- json_logic_js_1.default.add_operation('getDate', (date) => {
45
- return (0, moment_timezone_1.default)(date).toISOString();
46
- });
47
- // Set Relative Minimum Date
48
- json_logic_js_1.default.add_operation('relativeMinDate', (relativeMinDate) => {
49
- return (0, moment_timezone_1.default)().subtract(relativeMinDate, 'days').toISOString();
50
- });
51
- // Set Relative Maximum Date
52
- json_logic_js_1.default.add_operation('relativeMaxDate', (relativeMaxDate) => {
53
- return (0, moment_timezone_1.default)().add(relativeMaxDate, 'days').toISOString();
54
- });
21
+ dayjs_1.default.extend(timezone_1.default);
22
+ dayjs_1.default.extend(advancedFormat_1.default);
23
+ dayjs_1.default.extend(utc_1.default);
55
24
  /**
56
25
  * Evaluate a method.
57
26
  * @param {Function|string|object} func - The function to evaluate.
@@ -335,7 +304,7 @@ exports.checkCustomConditional = checkCustomConditional;
335
304
  */
336
305
  function checkJsonConditional(component, json, row, data, form, onError) {
337
306
  try {
338
- return json_logic_js_1.default.apply(json, {
307
+ return core_1.jsonLogic.apply(json, {
339
308
  data,
340
309
  row,
341
310
  form,
@@ -553,7 +522,7 @@ exports.guid = guid;
553
522
  /**
554
523
  * Return a translated date setting.
555
524
  * @param {string|Date} date - The date to translate.
556
- * @returns {(null|Date)} - The translated date.
525
+ * @returns {(null|dayjs.Dayjs)} - The translated date.
557
526
  */
558
527
  function getDateSetting(date) {
559
528
  if (lodash_1.default.isNil(date) || lodash_1.default.isNaN(date) || date === '') {
@@ -573,13 +542,13 @@ function getDateSetting(date) {
573
542
  try {
574
543
  const value = Evaluator_1.Evaluator.evaluator(`return ${date};`, 'moment')(moment_timezone_1.default);
575
544
  if (typeof value === 'string') {
576
- dateSetting = (0, moment_timezone_1.default)(value);
545
+ dateSetting = (0, dayjs_1.default)(value);
577
546
  }
578
547
  else if (typeof value.toDate === 'function') {
579
- dateSetting = (0, moment_timezone_1.default)(value.toDate().toUTCString());
548
+ dateSetting = (0, dayjs_1.default)(value.toDate().toUTCString());
580
549
  }
581
550
  else if (value instanceof Date) {
582
- dateSetting = (0, moment_timezone_1.default)(value);
551
+ dateSetting = (0, dayjs_1.default)(value);
583
552
  }
584
553
  }
585
554
  catch (e) {
@@ -609,18 +578,18 @@ exports.isValidDate = isValidDate;
609
578
  * @returns {string} - The current timezone.
610
579
  */
611
580
  function currentTimezone() {
612
- if (moment_timezone_1.default.currentTimezone) {
613
- return moment_timezone_1.default.currentTimezone;
581
+ if (dayjs_1.default.currentTimezone) {
582
+ return dayjs_1.default.currentTimezone;
614
583
  }
615
- moment_timezone_1.default.currentTimezone = jstimezonedetect_1.default.determine().name();
616
- return moment_timezone_1.default.currentTimezone;
584
+ dayjs_1.default.currentTimezone = jstimezonedetect_1.default.determine().name();
585
+ return dayjs_1.default.currentTimezone;
617
586
  }
618
587
  exports.currentTimezone = currentTimezone;
619
588
  /**
620
589
  * Get an offset date provided a date object and timezone object.
621
590
  * @param {Date} date - The date to offset.
622
591
  * @param {string} timezone - The timezone to offset the date to.
623
- * @returns {Date} - The offset date.
592
+ * @returns {{date: Date, abbr: string}} - The offset date.
624
593
  */
625
594
  function offsetDate(date, timezone) {
626
595
  if (timezone === 'UTC') {
@@ -629,7 +598,7 @@ function offsetDate(date, timezone) {
629
598
  abbr: 'UTC'
630
599
  };
631
600
  }
632
- const dateMoment = (0, moment_timezone_1.default)(date).tz(timezone);
601
+ const dateMoment = (0, dayjs_1.default)(date).tz(timezone);
633
602
  return {
634
603
  date: new Date(date.getTime() + ((dateMoment.utcOffset() + date.getTimezoneOffset()) * 60000)),
635
604
  abbr: dateMoment.format('z')
@@ -637,132 +606,85 @@ function offsetDate(date, timezone) {
637
606
  }
638
607
  exports.offsetDate = offsetDate;
639
608
  /**
640
- * Returns if the zones are loaded.
641
- * @returns {boolean} - TRUE if the zones are loaded; FALSE otherwise.
642
- */
643
- function zonesLoaded() {
644
- return moment_timezone_1.default.zonesLoaded;
645
- }
646
- exports.zonesLoaded = zonesLoaded;
647
- /**
648
- * Returns if we should load the zones.
609
+ * Returns if we should handle a timezone difference.
649
610
  * @param {string} timezone - The timezone to check if we should load the zones.
650
- * @returns {boolean} - TRUE if we should load the zones; FALSE otherwise.
611
+ * @returns {boolean} - TRUE if we should handle timezones; FALSE otherwise.
651
612
  */
652
- function shouldLoadZones(timezone) {
653
- if (timezone === currentTimezone() || timezone === 'UTC') {
654
- return false;
655
- }
656
- return true;
613
+ function shouldHandleTimezone(timezone) {
614
+ return !(timezone === currentTimezone() || timezone === 'UTC');
657
615
  }
658
- exports.shouldLoadZones = shouldLoadZones;
659
- /**
660
- * Externally load the timezone data.
661
- * @param {string} url - The URL to load the timezone data from.
662
- * @param {string} timezone - The timezone to load.
663
- * @returns {Promise<any> | *} - Resolves when the zones for this timezone are loaded.
664
- */
665
- function loadZones(url, timezone) {
666
- if (timezone && !shouldLoadZones(timezone)) {
667
- // Return non-resolving promise.
668
- return new Promise(lodash_1.default.noop);
669
- }
670
- if (moment_timezone_1.default.zonesPromise) {
671
- return moment_timezone_1.default.zonesPromise;
672
- }
673
- return moment_timezone_1.default.zonesPromise = fetch(url)
674
- .then(resp => resp.json().then(zones => {
675
- moment_timezone_1.default.tz.load(zones);
676
- moment_timezone_1.default.zonesLoaded = true;
677
- // Trigger a global event that the timezones have finished loading.
678
- if (document && document.createEvent && document.body && document.body.dispatchEvent) {
679
- var event = document.createEvent('Event');
680
- event.initEvent('zonesLoaded', true, true);
681
- document.body.dispatchEvent(event);
682
- }
683
- }));
684
- }
685
- exports.loadZones = loadZones;
616
+ exports.shouldHandleTimezone = shouldHandleTimezone;
686
617
  /**
687
- * Get the moment date object for translating dates with timezones.
688
- * @param {string|Date} value - The value to convert into a moment date.
618
+ * Get the Dayjs date object for translating dates with timezones.
619
+ * @param {string|Date} value - The value to convert into a dayjs date.
689
620
  * @param {string} format - The format to convert the date to.
690
621
  * @param {string} timezone - The timezone to convert the date to.
691
622
  * @param {object} options - The options object
692
- * @returns {Date} - The moment date object.
623
+ * @returns {dayjs.Dayjs} - The dayjs date object.
693
624
  */
694
- function momentDate(value, format, timezone, options) {
695
- const momentDate = (0, moment_timezone_1.default)(value);
625
+ function dayjsDate(value, format, timezone, options) {
626
+ const dayjsDate = (0, dayjs_1.default)(value);
696
627
  if (!timezone) {
697
- return momentDate;
628
+ return dayjsDate;
698
629
  }
699
630
  if (timezone === 'UTC') {
700
631
  timezone = 'Etc/UTC';
701
632
  }
702
- if ((timezone !== currentTimezone() || (format && format.match(/\s(z$|z\s)/))) && (moment_timezone_1.default.zonesLoaded || (options === null || options === void 0 ? void 0 : options.email))) {
703
- return momentDate.tz(timezone);
633
+ if ((timezone !== currentTimezone() || (format && format.match(/\s(z$|z\s)/))) && (shouldHandleTimezone(timezone) || (options === null || options === void 0 ? void 0 : options.email))) {
634
+ return dayjsDate.tz(timezone);
704
635
  }
705
- return momentDate;
636
+ return dayjsDate;
706
637
  }
707
- exports.momentDate = momentDate;
638
+ exports.dayjsDate = dayjsDate;
708
639
  /**
709
640
  * Format a date provided a value, format, and timezone object.
710
- * @param {string} timezonesUrl - The URL to load the timezone data from.
711
641
  * @param {string|Date} value - The value to format.
712
642
  * @param {string} format - The format to format the date to.
713
643
  * @param {string} timezone - The timezone to format the date to.
714
644
  * @param {string} flatPickrInputFormat - The format to use for flatpickr input.
715
645
  * @returns {string} - The formatted date.
716
646
  */
717
- function formatDate(timezonesUrl, value, format, timezone, flatPickrInputFormat) {
718
- const momentDate = (0, moment_timezone_1.default)(value, flatPickrInputFormat || undefined);
647
+ function formatDate(value, format, timezone, flatPickrInputFormat) {
648
+ const dayjsDate = (0, dayjs_1.default)(value, flatPickrInputFormat || undefined);
719
649
  if (timezone === currentTimezone()) {
720
650
  // See if our format contains a "z" timezone character.
721
651
  if (format.match(/\s(z$|z\s)/)) {
722
- loadZones(timezonesUrl);
723
- if (moment_timezone_1.default.zonesLoaded) {
724
- return momentDate.tz(timezone).format(convertFormatToMoment(format));
652
+ if (shouldHandleTimezone(timezone)) {
653
+ return dayjsDate.tz(timezone).format(convertFormatToDayjs(format));
725
654
  }
726
655
  else {
727
- return momentDate.format(convertFormatToMoment(format.replace(/\s(z$|z\s)/, '')));
656
+ return dayjsDate.format(convertFormatToDayjs(format.replace(/\s(z$|z\s)/, '')));
728
657
  }
729
658
  }
730
659
  // Return the standard format.
731
- return momentDate.format(convertFormatToMoment(format));
660
+ return dayjsDate.format(convertFormatToDayjs(format));
732
661
  }
733
662
  if (timezone === 'UTC') {
734
- const offset = offsetDate(momentDate.toDate(), 'UTC');
735
- return `${(0, moment_timezone_1.default)(offset.date).format(convertFormatToMoment(format))} UTC`;
736
- }
737
- // Load the zones since we need timezone information.
738
- loadZones(timezonesUrl);
739
- if (moment_timezone_1.default.zonesLoaded && timezone) {
740
- return momentDate.tz(timezone).format(`${convertFormatToMoment(format)} z`);
663
+ const offset = offsetDate(dayjsDate.toDate(), 'UTC');
664
+ return `${(0, dayjs_1.default)(offset.date).format(convertFormatToDayjs(format))} UTC`;
741
665
  }
742
- else {
743
- return momentDate.format(convertFormatToMoment(format));
666
+ if (shouldHandleTimezone(timezone)) {
667
+ return dayjsDate.tz(timezone).format(`${convertFormatToDayjs(format)} z`);
744
668
  }
669
+ return dayjsDate.format(convertFormatToDayjs(format));
745
670
  }
746
671
  exports.formatDate = formatDate;
747
672
  /**
748
673
  * Pass a format function to format within a timezone.
749
- * @param {string} timezonesUrl - The URL to load the timezone data from.
750
674
  * @param {Function} formatFn - The format function to use.
751
675
  * @param {Date|string} date - The date to format.
752
676
  * @param {string} format - The format to format the date to.
753
677
  * @param {string} timezone - The timezone to format the date to.
754
678
  * @returns {string} - The formatted date.
755
679
  */
756
- function formatOffset(timezonesUrl, formatFn, date, format, timezone) {
680
+ function formatOffset(formatFn, date, format, timezone) {
757
681
  if (timezone === currentTimezone()) {
758
682
  return formatFn(date, format);
759
683
  }
760
684
  if (timezone === 'UTC') {
761
685
  return `${formatFn(offsetDate(date, 'UTC').date, format)} UTC`;
762
686
  }
763
- // Load the zones since we need timezone information.
764
- loadZones(timezonesUrl);
765
- if (moment_timezone_1.default.zonesLoaded) {
687
+ if (shouldHandleTimezone(timezone)) {
766
688
  const offset = offsetDate(date, timezone);
767
689
  return `${formatFn(offset.date, format)} ${offset.abbr}`;
768
690
  }
@@ -822,7 +744,7 @@ exports.convertFormatToFlatpickr = convertFormatToFlatpickr;
822
744
  * @param {string} format - The format to convert.
823
745
  * @returns {string} - The converted format.
824
746
  */
825
- function convertFormatToMoment(format) {
747
+ function convertFormatToDayjs(format) {
826
748
  return format
827
749
  // Year conversion.
828
750
  .replace(/y/g, 'Y')
@@ -835,7 +757,7 @@ function convertFormatToMoment(format) {
835
757
  // Unix Timestamp
836
758
  .replace(/U/g, 'X');
837
759
  }
838
- exports.convertFormatToMoment = convertFormatToMoment;
760
+ exports.convertFormatToDayjs = convertFormatToDayjs;
839
761
  /**
840
762
  * Convert the format from the angular-datepicker module to mask format.
841
763
  * @param {string} format - The format to convert.
@@ -22,13 +22,6 @@ export default class CalendarWidget extends InputWidget {
22
22
  minDate: string;
23
23
  maxDate: string;
24
24
  };
25
- zoneLoading: boolean;
26
- timezonesUrl: string;
27
- /**
28
- * Load the timezones.
29
- * @returns {boolean} TRUE if the zones are loading, FALSE otherwise.
30
- */
31
- loadZones(): boolean;
32
25
  attach(input: any): Promise<any>;
33
26
  defaultFormat: {
34
27
  date: string;