Skip to content

Commit

Permalink
fix: global config
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-jenicek committed Oct 22, 2022
1 parent bb903b5 commit 0b9eab7
Show file tree
Hide file tree
Showing 12 changed files with 396 additions and 390 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import { DataControl } from '../../../core/global-classes';
import { DefaultLoaderComponent } from '../../../default-loader/default-loader.component';
import { DialogCustomStyles, DialogSettings } from './classes';
import * as i0 from "@angular/core";
import * as i1 from "../../../core/global-config.service";
export class DialogConfigService {
constructor(userConfig = {}) {
constructor(userConfig = {}, gConfigService) {
this.userConfig = userConfig;
this.gConfigService = gConfigService;
this.authorConfig = new DialogSettings();
this.productionConfig = new DialogSettings();
const userConfigBase = new DialogSettings();
Expand All @@ -32,7 +34,7 @@ export class DialogConfigService {
dataControl.copyValuesFrom(userConfig.dialogCoreConfig, this.productionConfig.dialogCoreConfig);
}
}
DialogConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DialogConfigService, deps: [{ token: 'dialogConfig' }], target: i0.ɵɵFactoryTarget.Injectable });
DialogConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DialogConfigService, deps: [{ token: 'dialogConfig' }, { token: i1.GlobalConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
DialogConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DialogConfigService, providedIn: 'root' });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DialogConfigService, decorators: [{
type: Injectable,
Expand All @@ -42,5 +44,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImpor
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
type: Inject,
args: ['dialogConfig']
}] }]; } });
//# source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yQ29tcG9uZW50ID0gRGVmYXVsdExvYWRlckNvbXBvbmVudDtcbiAgICB0aGlzLmF1dGhvckNvbmZpZy5kaWFsb2dDb3JlQ29uZmlnLmFuaW1hdGlvbkluID0gQXBwZWFyYW5jZUFuaW1hdGlvbi5aT09NX0lOO1xuICAgIHRoaXMuYXV0aG9yQ29uZmlnLmRpYWxvZ0NvcmVDb25maWcuYW5pbWF0aW9uT3V0ID0gRGlzYXBwZWFyYW5jZUFuaW1hdGlvbi5aT09NX09VVDtcbiAgICB0aGlzLmF1dGhvckNvbmZpZy5kaWFsb2dDb3JlQ29uZmlnLmN1c3RvbVN0eWxlcyA9IG5ldyBEaWFsb2dDdXN0b21TdHlsZXMoKTtcblxuICAgIC8vIGVuZHJlZ2lvblxuXG4gICAgZGF0YUNvbnRyb2wuY29weVZhbHVlc0Zyb20odGhpcy5hdXRob3JDb25maWcuZGlhbG9nQ29yZUNvbmZpZywgdGhpcy5wcm9kdWN0aW9uQ29uZmlnLmRpYWxvZ0NvcmVDb25maWcpO1xuICAgIGRhdGFDb250cm9sLmNvcHlWYWx1ZXNGcm9tKHVzZXJDb25maWcuZGlhbG9nQ29yZUNvbmZpZywgdGhpcy5wcm9kdWN0aW9uQ29uZmlnLmRpYWxvZ0NvcmVDb25maWcpO1xuXG4gICAgLy8gYnV0dG9uc1xuICAgIC8qaWYodXNlckNvbmZpZy5idXR0b25zKXtcblx0XHRcdHRoaXMuY29uZmlnLmJ1dHRvbnMucHVzaChcblx0XHRcdFx0bmV3IEJ1dHRvbk1ha2VyKCdPaycsICdvaycsIEJ1dHRvbkxheW91dERpc3BsYXkuUFJJTUFSWSlcblx0XHRcdFx0LG5ldyBCdXR0b25NYWtlcignQ2FuY2VsJywgJ2NhbmNlbCcsIEJ1dHRvbkxheW91dERpc3BsYXkuU0VDT05EQVJZKVxuXHRcdFx0KTtcblx0XHR9Ki9cbiAgfVxufVxuIl19
}] }, { type: i1.GlobalConfigService }]; } });
//# sourceMappingURL=data:application/json;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