ng-inail-common 2.0.32-beta.2 → 2.0.32-beta.6
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 +89 -8
- 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/form/select/select.component.js +12 -2
- package/esm2015/lib/components/core/table/table/table.component.js +7 -2
- package/esm2015/lib/components/core/table/tr-accordion/tr-accordion.component.js +63 -0
- package/esm2015/lib/ng-inail-common.config.js +2 -2
- package/esm2015/lib/ng-inail-common.module.js +6 -3
- package/esm2015/public-api.js +2 -1
- package/fesm2015/ng-inail-common.js +83 -5
- package/fesm2015/ng-inail-common.js.map +1 -1
- package/lib/components/core/table/table/table.component.d.ts +1 -0
- package/lib/components/core/table/tr-accordion/tr-accordion.component.d.ts +19 -0
- package/lib/ng-inail-common.config.d.ts +5 -1
- package/ng-inail-common.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs/internal-compatibility'), require('@angular/forms'), require('@angular/common'), require('@angular/common/http'), require('@angular/platform-browser'), require('rxjs/operators'), require('@angular/router'), require('rxjs')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('ng-inail-common', ['exports', '@angular/core', 'rxjs/internal-compatibility', '@angular/forms', '@angular/common', '@angular/common/http', '@angular/platform-browser', 'rxjs/operators', '@angular/router', 'rxjs'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ng-inail-common'] = {}, global.ng.core, global.rxjs['internal-compatibility'], global.ng.forms, global.ng.common, global.ng.common.http, global.ng.platformBrowser, global.rxjs.operators, global.ng.router, global.rxjs));
|
|
5
|
-
}(this, (function (exports, core, internalCompatibility, forms, common, http, platformBrowser, operators, router, rxjs) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs/internal-compatibility'), require('@angular/forms'), require('@angular/common'), require('@angular/common/http'), require('@angular/platform-browser'), require('rxjs/operators'), require('@angular/router'), require('rxjs'), require('@lib-ng-inail-common-components/core/basic-ux-element.component'), require('@lib-ng-inail-common-components/core/base.component')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('ng-inail-common', ['exports', '@angular/core', 'rxjs/internal-compatibility', '@angular/forms', '@angular/common', '@angular/common/http', '@angular/platform-browser', 'rxjs/operators', '@angular/router', 'rxjs', '@lib-ng-inail-common-components/core/basic-ux-element.component', '@lib-ng-inail-common-components/core/base.component'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ng-inail-common'] = {}, global.ng.core, global.rxjs['internal-compatibility'], global.ng.forms, global.ng.common, global.ng.common.http, global.ng.platformBrowser, global.rxjs.operators, global.ng.router, global.rxjs, global.basicUxElement_component, global.base_component));
|
|
5
|
+
}(this, (function (exports, core, internalCompatibility, forms, common, http, platformBrowser, operators, router, rxjs, basicUxElement_component, base_component) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var isBlankOrNull = function (s) { return s == undefined || String(s).trim().length == 0; };
|
|
8
8
|
var isNotBlankOrNull = function (s) { return !isBlankOrNull(s); };
|
|
@@ -3376,7 +3376,17 @@
|
|
|
3376
3376
|
_this.cdr.detectChanges();
|
|
3377
3377
|
_this.emitDebug("this.valueChange.emit(" + _this.selectedValue + ")");
|
|
3378
3378
|
_this.valueChange.emit(_this.selectedValue);
|
|
3379
|
-
|
|
3379
|
+
var optionToEmit;
|
|
3380
|
+
if (_this.options) {
|
|
3381
|
+
optionToEmit = _this.options.find(function (opt) { return (opt === null || opt === void 0 ? void 0 : opt.value) === _this.selectedValue; });
|
|
3382
|
+
// this.select.emit(this.options.find(opt => opt?.value === this.selectedValue));
|
|
3383
|
+
}
|
|
3384
|
+
if (!optionToEmit && _this.blankOption && _this.selectedValue === '') {
|
|
3385
|
+
optionToEmit = { value: '', label: _this.blankOptionText };
|
|
3386
|
+
}
|
|
3387
|
+
if (optionToEmit) {
|
|
3388
|
+
_this.select.emit(optionToEmit);
|
|
3389
|
+
}
|
|
3380
3390
|
if (_this.cleanErrorOnChange) {
|
|
3381
3391
|
_this.cleanError();
|
|
3382
3392
|
}
|
|
@@ -5330,7 +5340,7 @@
|
|
|
5330
5340
|
}
|
|
5331
5341
|
TableComponent.prototype.ngOnChanges = function (changes) {
|
|
5332
5342
|
var _this = this;
|
|
5333
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5343
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
5334
5344
|
_super.prototype.ngOnChanges.call(this, changes);
|
|
5335
5345
|
// Controllo se la paginazione richiesta e' interna o esterna
|
|
5336
5346
|
if (!this.externalPaginationSorting
|
|
@@ -5393,6 +5403,10 @@
|
|
|
5393
5403
|
if ((_k = changes.selectableRowValues) === null || _k === void 0 ? void 0 : _k.currentValue) {
|
|
5394
5404
|
this.righeSelezionabili = __spread((_l = changes.selectableRowValues) === null || _l === void 0 ? void 0 : _l.currentValue);
|
|
5395
5405
|
}
|
|
5406
|
+
// Righe selezionate in input
|
|
5407
|
+
if ((_m = changes.checkedRows) === null || _m === void 0 ? void 0 : _m.currentValue) {
|
|
5408
|
+
this.righeSelezionate = __spread((_o = changes.checkedRows) === null || _o === void 0 ? void 0 : _o.currentValue);
|
|
5409
|
+
}
|
|
5396
5410
|
this.cdr.detectChanges();
|
|
5397
5411
|
};
|
|
5398
5412
|
// Verifica la congruenza tra pagaNumber e pageIndex
|
|
@@ -5835,6 +5849,7 @@
|
|
|
5835
5849
|
detailsLink: [{ type: core.Input }],
|
|
5836
5850
|
selectableRowValues: [{ type: core.Input }],
|
|
5837
5851
|
detailsClick: [{ type: core.Output }],
|
|
5852
|
+
checkedRows: [{ type: core.Input }],
|
|
5838
5853
|
checkedRowsChange: [{ type: core.Output }],
|
|
5839
5854
|
thLabelComponents: [{ type: core.ContentChildren, args: [ThLabelComponent, { descendants: true },] }],
|
|
5840
5855
|
trCheckboxComponents: [{ type: core.ContentChildren, args: [TrCheckboxComponent, { descendants: true },] }],
|
|
@@ -6831,6 +6846,69 @@
|
|
|
6831
6846
|
value: [{ type: core.Input }]
|
|
6832
6847
|
};
|
|
6833
6848
|
|
|
6849
|
+
var TrAccordionComponent = /** @class */ (function (_super) {
|
|
6850
|
+
__extends(TrAccordionComponent, _super);
|
|
6851
|
+
function TrAccordionComponent(elRef, cdr, libConfig) {
|
|
6852
|
+
var _this = this;
|
|
6853
|
+
var _a, _b;
|
|
6854
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
6855
|
+
_this.elRef = elRef;
|
|
6856
|
+
_this.cdr = cdr;
|
|
6857
|
+
_this.libConfig = libConfig;
|
|
6858
|
+
_this.expanded = base_component.getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.trAccordionComponent) === null || _b === void 0 ? void 0 : _b.expanded, false);
|
|
6859
|
+
_this.expandedChange = new core.EventEmitter();
|
|
6860
|
+
_this.isExpanded = function () { return _this.expanded === true; };
|
|
6861
|
+
_this.logPrefix = '[inail-tr-accordion]';
|
|
6862
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.trAccordionComponent);
|
|
6863
|
+
_this.detach();
|
|
6864
|
+
return _this;
|
|
6865
|
+
}
|
|
6866
|
+
TrAccordionComponent.prototype.ngOnChanges = function (changes) {
|
|
6867
|
+
_super.prototype.ngOnChanges.call(this, changes);
|
|
6868
|
+
this.cdr.detectChanges();
|
|
6869
|
+
};
|
|
6870
|
+
TrAccordionComponent.prototype.ngOnInit = function () {
|
|
6871
|
+
_super.prototype.ngOnInit.call(this);
|
|
6872
|
+
};
|
|
6873
|
+
TrAccordionComponent.prototype.toggle = function (expanded) {
|
|
6874
|
+
if (this.trParent) {
|
|
6875
|
+
this.expanded = (expanded != undefined) ? expanded : this.trParent.hidden;
|
|
6876
|
+
this.trParent.hidden = !this.expanded;
|
|
6877
|
+
this.expandedChange.emit(this.expanded);
|
|
6878
|
+
this.cdr.detectChanges();
|
|
6879
|
+
}
|
|
6880
|
+
};
|
|
6881
|
+
TrAccordionComponent.prototype.ngOnDestroy = function () {
|
|
6882
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
6883
|
+
};
|
|
6884
|
+
TrAccordionComponent.prototype.ngAfterViewInit = function () {
|
|
6885
|
+
var _a, _b, _c, _d;
|
|
6886
|
+
this.trParent = this.elRef.nativeElement;
|
|
6887
|
+
this.colspan = (_d = (_c = (_b = (_a = this.trParent) === null || _a === void 0 ? void 0 : _a.closest('table')) === null || _b === void 0 ? void 0 : _b.querySelector('thead')) === null || _c === void 0 ? void 0 : _c.querySelectorAll('tr th')) === null || _d === void 0 ? void 0 : _d.length;
|
|
6888
|
+
this.toggle(this.expanded);
|
|
6889
|
+
this.cdr.detectChanges();
|
|
6890
|
+
};
|
|
6891
|
+
return TrAccordionComponent;
|
|
6892
|
+
}(basicUxElement_component.BasicUxElementComponent));
|
|
6893
|
+
TrAccordionComponent.decorators = [
|
|
6894
|
+
{ type: core.Component, args: [{
|
|
6895
|
+
selector: '.inail-tr-accordion',
|
|
6896
|
+
template: "<td [colSpan]=\"colspan\" class=\"accordionTab\">\n <form class=\"row form-grey pop\">\n <ng-content select=\"[content]\"></ng-content>\n </form>\n <div class=\"row baseFooter\">\n <ng-content select=\"[footer]\"></ng-content>\n </div>\n</td>\n",
|
|
6897
|
+
changeDetection: base_component.CHANGE_DETECTION_STRATEGY,
|
|
6898
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
6899
|
+
styles: [""]
|
|
6900
|
+
},] }
|
|
6901
|
+
];
|
|
6902
|
+
TrAccordionComponent.ctorParameters = function () { return [
|
|
6903
|
+
{ type: core.ElementRef },
|
|
6904
|
+
{ type: core.ChangeDetectorRef },
|
|
6905
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
6906
|
+
]; };
|
|
6907
|
+
TrAccordionComponent.propDecorators = {
|
|
6908
|
+
expanded: [{ type: core.Input }],
|
|
6909
|
+
expandedChange: [{ type: core.Output }]
|
|
6910
|
+
};
|
|
6911
|
+
|
|
6834
6912
|
var NgInailCommonModule = /** @class */ (function () {
|
|
6835
6913
|
function NgInailCommonModule() {
|
|
6836
6914
|
}
|
|
@@ -6898,7 +6976,8 @@
|
|
|
6898
6976
|
TrCheckboxComponent,
|
|
6899
6977
|
ProgressBarComponent,
|
|
6900
6978
|
MultiSelectComponent,
|
|
6901
|
-
InputTimeComponent
|
|
6979
|
+
InputTimeComponent,
|
|
6980
|
+
TrAccordionComponent
|
|
6902
6981
|
],
|
|
6903
6982
|
imports: [
|
|
6904
6983
|
common.CommonModule,
|
|
@@ -6949,7 +7028,8 @@
|
|
|
6949
7028
|
TrCheckboxComponent,
|
|
6950
7029
|
ProgressBarComponent,
|
|
6951
7030
|
MultiSelectComponent,
|
|
6952
|
-
InputTimeComponent
|
|
7031
|
+
InputTimeComponent,
|
|
7032
|
+
TrAccordionComponent
|
|
6953
7033
|
],
|
|
6954
7034
|
providers: [common.DatePipe]
|
|
6955
7035
|
},] }
|
|
@@ -7013,6 +7093,7 @@
|
|
|
7013
7093
|
exports.TablePageLengthSelectorComponent = TablePageLengthSelectorComponent;
|
|
7014
7094
|
exports.TextareaComponent = TextareaComponent;
|
|
7015
7095
|
exports.ThLabelComponent = ThLabelComponent;
|
|
7096
|
+
exports.TrAccordionComponent = TrAccordionComponent;
|
|
7016
7097
|
exports.TrCheckboxComponent = TrCheckboxComponent;
|
|
7017
7098
|
exports.WizardComponent = WizardComponent;
|
|
7018
7099
|
exports.addZero = addZero;
|