novo-elements 11.1.0 → 11.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/novo-elements-elements-button.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-chips.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-common.mjs +0 -11
- package/fesm2022/novo-elements-elements-common.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-date-picker.mjs +1 -0
- package/fesm2022/novo-elements-elements-date-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-drag-drop.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-field.mjs +0 -2
- package/fesm2022/novo-elements-elements-field.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-form.mjs +9 -9
- package/fesm2022/novo-elements-elements-form.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-layout.mjs +0 -2
- package/fesm2022/novo-elements-elements-layout.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-picker.mjs +1 -1
- package/fesm2022/novo-elements-elements-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-query-builder.mjs +0 -1
- package/fesm2022/novo-elements-elements-query-builder.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-search.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-select-search.mjs +1 -2
- package/fesm2022/novo-elements-elements-select-search.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-tabbed-group-picker.mjs +8 -3
- package/fesm2022/novo-elements-elements-tabbed-group-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-utils.mjs +120 -8
- package/fesm2022/novo-elements-utils.mjs.map +1 -1
- package/package.json +1 -1
- package/utils/Helpers.d.ts +114 -0
|
@@ -1867,39 +1867,39 @@ class FieldInteractionApi {
|
|
|
1867
1867
|
}
|
|
1868
1868
|
getFieldSet(key, otherForm) {
|
|
1869
1869
|
if (!key) {
|
|
1870
|
-
console.error('[FieldInteractionAPI] - invalid or missing "key"');
|
|
1870
|
+
console.error('[FieldInteractionAPI] - invalid or missing "key"');
|
|
1871
1871
|
return null;
|
|
1872
1872
|
}
|
|
1873
1873
|
const form = otherForm || this.form;
|
|
1874
1874
|
const fieldSet = form.fieldsets.find((fs) => fs.key && fs.key.toLowerCase() === key.toLowerCase());
|
|
1875
1875
|
if (!fieldSet) {
|
|
1876
|
-
console.error('[FieldInteractionAPI] - could not find a fieldset in the form by the key --', key);
|
|
1876
|
+
console.error('[FieldInteractionAPI] - could not find a fieldset in the form by the key --', key);
|
|
1877
1877
|
return null;
|
|
1878
1878
|
}
|
|
1879
1879
|
return fieldSet;
|
|
1880
1880
|
}
|
|
1881
1881
|
getControl(key, otherForm) {
|
|
1882
1882
|
if (!key) {
|
|
1883
|
-
console.error('[FieldInteractionAPI] - invalid or missing "key"');
|
|
1883
|
+
console.error('[FieldInteractionAPI] - invalid or missing "key"');
|
|
1884
1884
|
return null;
|
|
1885
1885
|
}
|
|
1886
1886
|
const form = otherForm || this.form;
|
|
1887
1887
|
const control = form.controls[key];
|
|
1888
1888
|
if (!control) {
|
|
1889
|
-
console.error('[FieldInteractionAPI] - could not find a control in the form by the key --', key);
|
|
1889
|
+
console.error('[FieldInteractionAPI] - could not find a control in the form by the key --', key);
|
|
1890
1890
|
return null;
|
|
1891
1891
|
}
|
|
1892
1892
|
return control;
|
|
1893
1893
|
}
|
|
1894
1894
|
getFormGroupArray(key, otherForm) {
|
|
1895
1895
|
if (!key) {
|
|
1896
|
-
console.error('[FieldInteractionAPI] - invalid or missing "key"');
|
|
1896
|
+
console.error('[FieldInteractionAPI] - invalid or missing "key"');
|
|
1897
1897
|
return null;
|
|
1898
1898
|
}
|
|
1899
1899
|
const form = otherForm || this.form;
|
|
1900
1900
|
const formArray = form.controls[key];
|
|
1901
1901
|
if (!formArray || !formArray.controls) {
|
|
1902
|
-
console.error('[FieldInteractionAPI] - could not find a form array in the form by the key --', key);
|
|
1902
|
+
console.error('[FieldInteractionAPI] - could not find a form array in the form by the key --', key);
|
|
1903
1903
|
return null;
|
|
1904
1904
|
}
|
|
1905
1905
|
return formArray.controls;
|
|
@@ -2321,7 +2321,7 @@ class FieldInteractionApi {
|
|
|
2321
2321
|
}
|
|
2322
2322
|
addControl(key, metaForNewField, position = FieldInteractionApi.FIELD_POSITIONS.ABOVE_FIELD, initialValue, otherForm) {
|
|
2323
2323
|
if (!metaForNewField.key && !metaForNewField.name) {
|
|
2324
|
-
console.error('[FieldInteractionAPI] - missing "key" in meta for new field');
|
|
2324
|
+
console.error('[FieldInteractionAPI] - missing "key" in meta for new field');
|
|
2325
2325
|
return null;
|
|
2326
2326
|
}
|
|
2327
2327
|
if (!metaForNewField.key) {
|
|
@@ -2797,8 +2797,8 @@ class NovoControlElement extends OutsideClick {
|
|
|
2797
2797
|
interaction.script(this.fieldInteractionApi, this.control.key);
|
|
2798
2798
|
}
|
|
2799
2799
|
catch (err) {
|
|
2800
|
-
console.info('Field Interaction Error!', this.control.key);
|
|
2801
|
-
console.error(err);
|
|
2800
|
+
console.info('Field Interaction Error!', this.control.key);
|
|
2801
|
+
console.error(err);
|
|
2802
2802
|
}
|
|
2803
2803
|
});
|
|
2804
2804
|
}
|