wt-front-shared 1.0.41 → 1.0.42
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/esm2020/lib/core/components/auto-form/components/form-field-select/form-field-select.component.mjs +1 -6
- package/fesm2015/wt-front-shared.mjs +0 -5
- package/fesm2015/wt-front-shared.mjs.map +1 -1
- package/fesm2020/wt-front-shared.mjs +0 -5
- package/fesm2020/wt-front-shared.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7256,7 +7256,6 @@ class FormFieldSelectComponent {
|
|
|
7256
7256
|
this.unSubscribeSubject$ = new Subject();
|
|
7257
7257
|
}
|
|
7258
7258
|
ngOnInit() {
|
|
7259
|
-
console.log('ngOnInit');
|
|
7260
7259
|
if (this.fieldData.options.subscribeToFormChanges) {
|
|
7261
7260
|
this.subscribeToFormChanges();
|
|
7262
7261
|
this.placeholder = this.fieldData.options.subscribeToFormChanges.emptyTitle;
|
|
@@ -7275,13 +7274,11 @@ class FormFieldSelectComponent {
|
|
|
7275
7274
|
this.unSubscribeSubject$.complete();
|
|
7276
7275
|
}
|
|
7277
7276
|
ngOnChanges(changes) {
|
|
7278
|
-
console.log('changes', changes);
|
|
7279
7277
|
if (changes.fieldData && changes.fieldData.currentValue) {
|
|
7280
7278
|
const { loadOptionFromStore, selectOptions } = changes.fieldData.currentValue.options;
|
|
7281
7279
|
if (selectOptions && selectOptions.length) {
|
|
7282
7280
|
this.options = selectOptions;
|
|
7283
7281
|
}
|
|
7284
|
-
console.log('loadOptionFromStore', loadOptionFromStore);
|
|
7285
7282
|
if (loadOptionFromStore) {
|
|
7286
7283
|
this.loadOptionsFromStore(loadOptionFromStore);
|
|
7287
7284
|
}
|
|
@@ -7327,9 +7324,7 @@ class FormFieldSelectComponent {
|
|
|
7327
7324
|
const listKeys = loadOptionFromStore.split('.');
|
|
7328
7325
|
this.store.select(state => {
|
|
7329
7326
|
let selectedStore = state;
|
|
7330
|
-
console.log('state', state);
|
|
7331
7327
|
listKeys.forEach(key => {
|
|
7332
|
-
console.log('key', key);
|
|
7333
7328
|
selectedStore = selectedStore[key];
|
|
7334
7329
|
});
|
|
7335
7330
|
return selectedStore;
|