ngx-smz-ui 3.4.9 → 3.4.10
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.
|
@@ -11535,6 +11535,7 @@
|
|
|
11535
11535
|
}
|
|
11536
11536
|
}
|
|
11537
11537
|
|
|
11538
|
+
var rbkConfig = GlobalInjector.instance.get(NgxRbkUtilsConfig);
|
|
11538
11539
|
function convertFormFeature(entityName, store, entity, options) {
|
|
11539
11540
|
if (entity === void 0) { entity = null; }
|
|
11540
11541
|
if (options === void 0) { options = null; }
|
|
@@ -11711,6 +11712,11 @@
|
|
|
11711
11712
|
if (inputs == null)
|
|
11712
11713
|
throw new Error('Inputs could not be null');
|
|
11713
11714
|
var _loop_6 = function (config) {
|
|
11715
|
+
if (rbkConfig.debugMode) {
|
|
11716
|
+
console.groupCollapsed(config.propertyName);
|
|
11717
|
+
console.log('config', config);
|
|
11718
|
+
console.log('options', options);
|
|
11719
|
+
}
|
|
11714
11720
|
if (config.controlType.id === "" + exports.SmzControlType.TEXT) {
|
|
11715
11721
|
var input = Object.assign(Object.assign({}, convertBaseControl(config)), { defaultValue: config.defaultValue, type: exports.SmzControlType.TEXT });
|
|
11716
11722
|
results.push(input);
|
|
@@ -11733,6 +11739,9 @@
|
|
|
11733
11739
|
}
|
|
11734
11740
|
else if (config.controlType.id === "" + exports.SmzControlType.DROPDOWN) {
|
|
11735
11741
|
var list = getInputOptions(config, store, options);
|
|
11742
|
+
if (rbkConfig.debugMode) {
|
|
11743
|
+
console.log('list', list);
|
|
11744
|
+
}
|
|
11736
11745
|
var input = Object.assign(Object.assign({}, convertBaseControl(config)), { defaultValue: config.required ? list[0].id : config.defaultValue, type: exports.SmzControlType.DROPDOWN, filterMatchMode: config.filterMatchMode, showFilter: config.showFilter, options: list });
|
|
11737
11746
|
results.push(input);
|
|
11738
11747
|
}
|
|
@@ -11781,6 +11790,10 @@
|
|
|
11781
11790
|
results.push(parentInput);
|
|
11782
11791
|
results.push(childInput);
|
|
11783
11792
|
}
|
|
11793
|
+
if (rbkConfig.debugMode) {
|
|
11794
|
+
console.log('results', results[(results === null || results === void 0 ? void 0 : results.length) - 1]);
|
|
11795
|
+
console.groupEnd();
|
|
11796
|
+
}
|
|
11784
11797
|
};
|
|
11785
11798
|
try {
|
|
11786
11799
|
for (var inputs_1 = __values(inputs), inputs_1_1 = inputs_1.next(); !inputs_1_1.done; inputs_1_1 = inputs_1.next()) {
|
|
@@ -11873,6 +11886,12 @@
|
|
|
11873
11886
|
if (storeData === null) {
|
|
11874
11887
|
throw new Error('The data was loaded from the store, but it seems to be null. Please check that your store is populated or that your selector is not returning null');
|
|
11875
11888
|
}
|
|
11889
|
+
if (rbkConfig.debugMode) {
|
|
11890
|
+
console.log(' >> getDataFromStore()');
|
|
11891
|
+
console.log(' >> config', storeData);
|
|
11892
|
+
console.log(' >> options', options);
|
|
11893
|
+
console.log(' >> storeData', storeData);
|
|
11894
|
+
}
|
|
11876
11895
|
return storeData;
|
|
11877
11896
|
}
|
|
11878
11897
|
function convertBaseControl(config) {
|