ng-inail-common 2.0.29 → 2.0.30-beta.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/bundles/ng-inail-common.umd.js +27 -4
- package/bundles/ng-inail-common.umd.js.map +1 -1
- package/bundles/ng-inail-common.umd.min.js +2 -2
- package/bundles/ng-inail-common.umd.min.js.map +1 -1
- package/esm2015/lib/components/core/base.component.js +2 -1
- package/esm2015/lib/components/core/ux/page-title/page-title.component.js +13 -6
- package/esm2015/lib/ng-inail-common.config.js +3 -0
- package/esm2015/lib/ng-inail-common.module.js +13 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/ng-inail-common.js +25 -5
- package/fesm2015/ng-inail-common.js.map +1 -1
- package/lib/components/core/base.component.d.ts +1 -0
- package/lib/components/core/ux/page-title/page-title.component.d.ts +3 -1
- package/lib/ng-inail-common.config.d.ts +7 -0
- package/lib/ng-inail-common.module.d.ts +3 -0
- package/ng-inail-common.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
})(exports.LogLevel || (exports.LogLevel = {}));
|
|
72
72
|
var CHANGE_DETECTION_STRATEGY = core.ChangeDetectionStrategy.OnPush;
|
|
73
73
|
// export const CHANGE_DETECTION_STRATEGY = ChangeDetectionStrategy.Default;
|
|
74
|
+
var getConfigValue = function (value, defaultValue) { return value != undefined ? value : defaultValue; };
|
|
74
75
|
var BaseComponent = /** @class */ (function () {
|
|
75
76
|
function BaseComponent(baseComponentCdr) {
|
|
76
77
|
var _this = this;
|
|
@@ -3394,14 +3395,22 @@
|
|
|
3394
3395
|
title: [{ type: core.Input }]
|
|
3395
3396
|
};
|
|
3396
3397
|
|
|
3398
|
+
var NG_INAIL_COMMON_CONFIG = new core.InjectionToken('NG_INAIL_COMMON_CONFIG');
|
|
3399
|
+
|
|
3397
3400
|
var PageTitleComponent = /** @class */ (function (_super) {
|
|
3398
3401
|
__extends(PageTitleComponent, _super);
|
|
3399
|
-
function PageTitleComponent(cdr) {
|
|
3400
|
-
var _this =
|
|
3402
|
+
function PageTitleComponent(cdr, libConfig) {
|
|
3403
|
+
var _this = this;
|
|
3404
|
+
var _a, _b;
|
|
3405
|
+
_this = _super.call(this, cdr) || this;
|
|
3401
3406
|
_this.cdr = cdr;
|
|
3402
|
-
_this.
|
|
3407
|
+
_this.libConfig = libConfig;
|
|
3408
|
+
_this.autoCatchFocus = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.PageTitleComponent) === null || _b === void 0 ? void 0 : _b.autoCatchFocus, true);
|
|
3403
3409
|
_this.logPrefix = '[inail-page-title]';
|
|
3410
|
+
_this.emitDebug('NgInailCommonConfig:');
|
|
3411
|
+
_this.emitDebug(libConfig === null || libConfig === void 0 ? void 0 : libConfig.PageTitleComponent);
|
|
3404
3412
|
_this.detach();
|
|
3413
|
+
console.warn('libConfig', libConfig); // todo
|
|
3405
3414
|
return _this;
|
|
3406
3415
|
}
|
|
3407
3416
|
PageTitleComponent.prototype.ngOnChanges = function (changes) {
|
|
@@ -3477,7 +3486,8 @@
|
|
|
3477
3486
|
},] }
|
|
3478
3487
|
];
|
|
3479
3488
|
PageTitleComponent.ctorParameters = function () { return [
|
|
3480
|
-
{ type: core.ChangeDetectorRef }
|
|
3489
|
+
{ type: core.ChangeDetectorRef },
|
|
3490
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
3481
3491
|
]; };
|
|
3482
3492
|
PageTitleComponent.propDecorators = {
|
|
3483
3493
|
title: [{ type: core.Input }],
|
|
@@ -6583,6 +6593,17 @@
|
|
|
6583
6593
|
var NgInailCommonModule = /** @class */ (function () {
|
|
6584
6594
|
function NgInailCommonModule() {
|
|
6585
6595
|
}
|
|
6596
|
+
NgInailCommonModule.forRoot = function (config) {
|
|
6597
|
+
return {
|
|
6598
|
+
ngModule: NgInailCommonModule,
|
|
6599
|
+
providers: [
|
|
6600
|
+
{
|
|
6601
|
+
provide: NG_INAIL_COMMON_CONFIG,
|
|
6602
|
+
useValue: config
|
|
6603
|
+
}
|
|
6604
|
+
]
|
|
6605
|
+
};
|
|
6606
|
+
};
|
|
6586
6607
|
return NgInailCommonModule;
|
|
6587
6608
|
}());
|
|
6588
6609
|
NgInailCommonModule.decorators = [
|
|
@@ -6728,6 +6749,7 @@
|
|
|
6728
6749
|
exports.MenuItem = MenuItem;
|
|
6729
6750
|
exports.ModalComponent = ModalComponent;
|
|
6730
6751
|
exports.MultiSelectComponent = MultiSelectComponent;
|
|
6752
|
+
exports.NG_INAIL_COMMON_CONFIG = NG_INAIL_COMMON_CONFIG;
|
|
6731
6753
|
exports.NavigazioneInternaComponent = NavigazioneInternaComponent;
|
|
6732
6754
|
exports.NavigazionePrincipaleComponent = NavigazionePrincipaleComponent;
|
|
6733
6755
|
exports.NavigazioneSecondariaComponent = NavigazioneSecondariaComponent;
|
|
@@ -6754,6 +6776,7 @@
|
|
|
6754
6776
|
exports.call = call;
|
|
6755
6777
|
exports.clone = clone;
|
|
6756
6778
|
exports.dateToString = dateToString;
|
|
6779
|
+
exports.getConfigValue = getConfigValue;
|
|
6757
6780
|
exports.isAbsolute = isAbsolute;
|
|
6758
6781
|
exports.isBlankOrNull = isBlankOrNull;
|
|
6759
6782
|
exports.isDate = isDate;
|