ng-inail-common 2.0.31 → 2.0.32-beta.11
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 +120 -27
- 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/radio-select/radio-select.component.js +2 -2
- package/esm2015/lib/components/core/form/select/select.component.js +12 -2
- package/esm2015/lib/components/core/layout/menu/menu.component.js +6 -6
- package/esm2015/lib/components/core/layout/navigazione-secondaria/navigazione-secondaria.component.js +2 -1
- package/esm2015/lib/components/core/table/table/table.component.js +8 -2
- package/esm2015/lib/components/core/table/tr-accordion/tr-accordion.component.js +63 -0
- package/esm2015/lib/components/core/ux/feedback/feedback.component.js +4 -3
- 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 +92 -13
- package/fesm2015/ng-inail-common.js.map +1 -1
- package/lib/components/core/layout/menu/menu.component.d.ts +2 -2
- 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/components/core/ux/feedback/feedback.component.d.ts +2 -1
- package/lib/ng-inail-common.config.d.ts +5 -1
- package/ng-inail-common.metadata.json +1 -1
- package/package.json +4 -4
- package/public-api.d.ts +1 -0
|
@@ -403,10 +403,16 @@
|
|
|
403
403
|
r[k] = a[j];
|
|
404
404
|
return r;
|
|
405
405
|
}
|
|
406
|
-
function __spreadArray(to, from) {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
406
|
+
function __spreadArray(to, from, pack) {
|
|
407
|
+
if (pack || arguments.length === 2)
|
|
408
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
409
|
+
if (ar || !(i in from)) {
|
|
410
|
+
if (!ar)
|
|
411
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
412
|
+
ar[i] = from[i];
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
410
416
|
}
|
|
411
417
|
function __await(v) {
|
|
412
418
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -472,18 +478,21 @@
|
|
|
472
478
|
function __importDefault(mod) {
|
|
473
479
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
474
480
|
}
|
|
475
|
-
function __classPrivateFieldGet(receiver,
|
|
476
|
-
if (!
|
|
477
|
-
throw new TypeError("
|
|
478
|
-
|
|
479
|
-
|
|
481
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
482
|
+
if (kind === "a" && !f)
|
|
483
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
484
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
485
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
486
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
480
487
|
}
|
|
481
|
-
function __classPrivateFieldSet(receiver,
|
|
482
|
-
if (
|
|
483
|
-
throw new TypeError("
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
488
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
489
|
+
if (kind === "m")
|
|
490
|
+
throw new TypeError("Private method is not writable");
|
|
491
|
+
if (kind === "a" && !f)
|
|
492
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
493
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
494
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
495
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
487
496
|
}
|
|
488
497
|
|
|
489
498
|
var BasicUxElementComponent = /** @class */ (function (_super) {
|
|
@@ -1663,9 +1672,9 @@
|
|
|
1663
1672
|
*/
|
|
1664
1673
|
_this.expandAutomatically = getConfigValue((_k = (_j = _this.libConfig) === null || _j === void 0 ? void 0 : _j.menuComponent) === null || _k === void 0 ? void 0 : _k.expandAutomatically, true);
|
|
1665
1674
|
/**
|
|
1666
|
-
* Emette
|
|
1675
|
+
* Emette l'oggetto MenuItem associato alla voce di menu sulla quale si e' cliccato.
|
|
1667
1676
|
*/
|
|
1668
|
-
_this.
|
|
1677
|
+
_this.itemClick = new core.EventEmitter();
|
|
1669
1678
|
/**
|
|
1670
1679
|
* Emette la voce di menu che corrisponde
|
|
1671
1680
|
* con l'url corrente
|
|
@@ -2033,7 +2042,7 @@
|
|
|
2033
2042
|
}
|
|
2034
2043
|
}
|
|
2035
2044
|
}
|
|
2036
|
-
this.
|
|
2045
|
+
this.itemClick.emit(item);
|
|
2037
2046
|
};
|
|
2038
2047
|
/**
|
|
2039
2048
|
* Effetto fisarmonica
|
|
@@ -2090,7 +2099,7 @@
|
|
|
2090
2099
|
MenuComponent.decorators = [
|
|
2091
2100
|
{ type: core.Component, args: [{
|
|
2092
2101
|
selector: 'inail-menu',
|
|
2093
|
-
template: "<ng-container *ngIf=\"inizializzazioneCompletata\">\n\n <ul #menu\n id=\"{{id}}\"\n [attr.role]=\"'menu'\"\n class=\"inail-menu {{class}}\"\n [ngStyle]=\"{'height.px': (menuHeight$ | async)}\"\n [ngClass]=\"{'livello_2': innerMenu, 'collapsed': isCollapsed()}\">\n\n <debug-pre *ngIf=\"showState\">[inail-menu-intranet]<br>\n <state-propertie [label]=\"'id'\" [propertie]=\"id\"></state-propertie>\n <state-propertie [label]=\"'innerMenu'\" [propertie]=\"innerMenu\"></state-propertie>\n <state-propertie [label]=\"'collapsible'\" [propertie]=\"collapsible\"></state-propertie>\n <state-propertie [label]=\"'collapsed'\" [propertie]=\"collapsed\"></state-propertie>\n <state-propertie [label]=\"'collapseOther'\" [propertie]=\"collapseOther\"></state-propertie>\n <!-- {{elements | json}}-->\n </debug-pre>\n\n <ng-container *ngFor=\"let item of items\">\n\n <li *ngIf=\"showItem(item)\"\n [attr.role]=\"item.link ? 'menuitem' : undefined\"\n [ngClass]=\"{
|
|
2102
|
+
template: "<ng-container *ngIf=\"inizializzazioneCompletata\">\n\n <ul #menu\n id=\"{{id}}\"\n [attr.role]=\"'menu'\"\n class=\"inail-menu {{class}}\"\n [ngStyle]=\"{'height.px': (menuHeight$ | async)}\"\n [ngClass]=\"{'livello_2': innerMenu, 'collapsed': isCollapsed()}\">\n\n <debug-pre *ngIf=\"showState\">[inail-menu-intranet]<br>\n <state-propertie [label]=\"'id'\" [propertie]=\"id\"></state-propertie>\n <state-propertie [label]=\"'innerMenu'\" [propertie]=\"innerMenu\"></state-propertie>\n <state-propertie [label]=\"'collapsible'\" [propertie]=\"collapsible\"></state-propertie>\n <state-propertie [label]=\"'collapsed'\" [propertie]=\"collapsed\"></state-propertie>\n <state-propertie [label]=\"'collapseOther'\" [propertie]=\"collapseOther\"></state-propertie>\n <!-- {{elements | json}}-->\n </debug-pre>\n\n <ng-container *ngFor=\"let item of items\">\n\n <li *ngIf=\"showItem(item)\"\n [attr.role]=\"item.link ? 'menuitem' : undefined\"\n [ngClass]=\"{selected: isActive(item)}\"\n class=\"livello_1\">\n <a *ngIf=\"item.link\"\n [id]=\"item.id\"\n [attr.title]=\"getItemTitle(item)\"\n [attr.aria-label]=\"getItemAriaLabel(item)\"\n [attr.tabindex]=\"isCollapsed() ? '-1' : '0'\"\n [routerLink]=\"getItemLink(item)\"\n [queryParams]=\"item.queryParams\"\n [innerHTML]=\"getItemLabel(item)\"\n [attr.aria-expanded]=\"isItemCollapsible(item) ? !item.collapsed : undefined\"\n (click)=\"itemOnClick(item)\"\n (keyup.arrowUp)=\"itemOnArrowUp()\"\n (keyup.arrowDown)=\"itemOnArrowDown()\"\n (keyup.space)=\"itemOnClick($event)\">\n </a>\n <a *ngIf=\"!item.link\"\n [id]=\"item.id\"\n [attr.title]=\"getItemTitle(item)\"\n [attr.aria-label]=\"getItemAriaLabel(item)\"\n [attr.tabindex]=\"isCollapsed() ? '-1' : '0'\"\n role=\"button\"\n [innerHTML]=\"getItemLabel(item)\"\n [attr.aria-expanded]=\"isItemCollapsible(item) ? !item.collapsed : undefined\"\n (click)=\"itemOnClick(item)\"\n (keyup.arrowUp)=\"itemOnArrowUp()\"\n (keyup.arrowDown)=\"itemOnArrowDown()\"\n (keyup.enter)=\"itemOnClick(item)\"\n (keyup.space)=\"itemOnClick(item)\">\n </a>\n <debug-pre *ngIf=\"showState\">[menu-item]<br>\n <state-propertie [label]=\"'id'\" [propertie]=\"item.id\"></state-propertie>\n <state-propertie [label]=\"'collapsible'\" [propertie]=\"item.collapsible\"></state-propertie>\n <state-propertie [label]=\"'collapsed'\" [propertie]=\"item.collapsed\"></state-propertie>\n <!-- {{element | json}}-->\n </debug-pre>\n <inail-menu *ngIf=\"hasSubItems(item)\"\n [id]=\"item.id+'-items'\"\n [activeItem]=\"activeItem\"\n [items]=\"item.subItems\"\n [parent]=\"item\"\n [innerMenu]=\"true\"\n [emitCurrent]=\"emitCurrent\"\n [collapsible]=\"item.collapsible\"\n [collapsed]=\"item.collapsed\"\n [collapseOther]=\"collapseOther\"\n [collapse]=\"collapse\"\n [toggle]=\"toggle\"\n [show]=\"mostraItem\"\n [showState]=\"showState\"\n (itemClick)=\"itemClick.emit($event)\"\n (currentItem)=\"currentItemHandler($event, item)\">\n </inail-menu>\n </li>\n </ng-container>\n </ul>\n</ng-container>\n\n\n",
|
|
2094
2103
|
encapsulation: core.ViewEncapsulation.None,
|
|
2095
2104
|
styles: ["ul.inail-menu{padding:0 10px!important;overflow:hidden;transition:height .3s ease-out}ul.inail-menu.collapsed{height:0}ul.inail-menu ul{padding:0!important}"]
|
|
2096
2105
|
},] }
|
|
@@ -2115,7 +2124,7 @@
|
|
|
2115
2124
|
collapsed: [{ type: core.Input }],
|
|
2116
2125
|
collapseOther: [{ type: core.Input }],
|
|
2117
2126
|
expandAutomatically: [{ type: core.Input }],
|
|
2118
|
-
|
|
2127
|
+
itemClick: [{ type: core.Output }],
|
|
2119
2128
|
currentItem: [{ type: core.Output }],
|
|
2120
2129
|
menu: [{ type: core.ViewChild, args: ['menu',] }]
|
|
2121
2130
|
};
|
|
@@ -2862,6 +2871,7 @@
|
|
|
2862
2871
|
setTimeout(function () {
|
|
2863
2872
|
_this.visualizzaSidebarInferiore = _this.sidebarInferiore.nativeElement.childElementCount > 0;
|
|
2864
2873
|
_this.detach();
|
|
2874
|
+
_this.cdr.detectChanges();
|
|
2865
2875
|
});
|
|
2866
2876
|
};
|
|
2867
2877
|
NavigazioneSecondariaComponent.prototype.ngOnDestroy = function () {
|
|
@@ -3366,7 +3376,17 @@
|
|
|
3366
3376
|
_this.cdr.detectChanges();
|
|
3367
3377
|
_this.emitDebug("this.valueChange.emit(" + _this.selectedValue + ")");
|
|
3368
3378
|
_this.valueChange.emit(_this.selectedValue);
|
|
3369
|
-
|
|
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
|
+
}
|
|
3370
3390
|
if (_this.cleanErrorOnChange) {
|
|
3371
3391
|
_this.cleanError();
|
|
3372
3392
|
}
|
|
@@ -3573,6 +3593,7 @@
|
|
|
3573
3593
|
// Queste inizializzazioni servono per essere usate nel template
|
|
3574
3594
|
_this.errorType = 'ERROR';
|
|
3575
3595
|
_this.successType = 'SUCCESS';
|
|
3596
|
+
_this.warningType = 'WARNING';
|
|
3576
3597
|
_this.type = 'SUCCESS';
|
|
3577
3598
|
_this.showIcon = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.feedbackComponent) === null || _b === void 0 ? void 0 : _b.showIcon, true);
|
|
3578
3599
|
_this.detailsAsList = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.feedbackComponent) === null || _d === void 0 ? void 0 : _d.detailsAsList, undefined);
|
|
@@ -3627,10 +3648,10 @@
|
|
|
3627
3648
|
FeedbackComponent.decorators = [
|
|
3628
3649
|
{ type: core.Component, args: [{
|
|
3629
3650
|
selector: 'inail-feedback',
|
|
3630
|
-
template: "<div *ngIf=\"!labelFeedback\"\n [id]='id'\n class=\"row feedback-box inail-feedback {{class}}\"\n [ngClass]=\"{'feedback-box-error': type==errorType, 'global-feedback': globalFeedback === true}\">\n <div>\n <div class=\"feedback-header\"\n [ngClass]=\"{'feedback-header-error': type==errorType}\">\n <span>\n <span class=\"fa white-check\"\n [ngClass]=\"{'fa-times': showIcon && type==errorType,\n 'fa-check':showIcon && (type==successType || !type)}\"></span>\n <span tabindex=\"0\" [id]=\"id+'-message'\" class=\"feedback-focusable\" [innerHTML]=\"message\" #mainMessage></span>\n </span>\n </div>\n <div [hidden]=\"!hasContent()\"\n class=\"feedback-content\"\n [ngClass]=\"contentClass\"\n #feedbackContent>\n <p *ngIf=\"contentTitle\">\n <strong>{{contentTitle}}</strong>\n </p>\n <ng-container *ngIf=\"detailsAsList || detailsAsOrderedList\">\n <ol *ngIf=\"detailsAsOrderedList\">\n <li *ngFor=\"let dettaglio of details\" [innerHTML]=\"dettaglio\"></li>\n </ol>\n <ul *ngIf=\"detailsAsList && !detailsAsOrderedList\">\n <li *ngFor=\"let dettaglio of details\" [innerHTML]=\"dettaglio\"></li>\n </ul>\n </ng-container>\n <ng-container *ngIf=\"!(detailsAsList || detailsAsOrderedList)\">\n <p *ngFor=\"let dettaglio of details\" [innerHTML]=\"dettaglio\"></p>\n </ng-container>\n <p
|
|
3651
|
+
template: "<div *ngIf=\"!labelFeedback\"\n [id]='id'\n class=\"row feedback-box inail-feedback {{class}}\"\n [ngClass]=\"{'feedback-box-error': type==errorType, 'feedback-box-warning': type==warningType, 'global-feedback': globalFeedback === true}\">\n <div>\n <div class=\"feedback-header\"\n [ngClass]=\"{'feedback-header-error': type==errorType, 'feedback-header-warning': type==warningType}\">\n <span>\n <span class=\"fa white-check\"\n [ngClass]=\"{'fa-times': showIcon && type==errorType, 'fa-exclamation-triangle': showIcon && type==warningType,\n 'fa-check':showIcon && (type==successType || !type)}\"></span>\n <span tabindex=\"0\" [id]=\"id+'-message'\" class=\"feedback-focusable\" [innerHTML]=\"message\" #mainMessage></span>\n </span>\n </div>\n <div [hidden]=\"!hasContent()\"\n class=\"feedback-content\"\n [ngClass]=\"contentClass\"\n #feedbackContent>\n <p *ngIf=\"contentTitle\">\n <strong>{{contentTitle}}</strong>\n </p>\n <ng-container *ngIf=\"detailsAsList || detailsAsOrderedList\">\n <ol *ngIf=\"detailsAsOrderedList\">\n <li *ngFor=\"let dettaglio of details\" [innerHTML]=\"dettaglio\"></li>\n </ol>\n <ul *ngIf=\"detailsAsList && !detailsAsOrderedList\">\n <li *ngFor=\"let dettaglio of details\" [innerHTML]=\"dettaglio\"></li>\n </ul>\n </ng-container>\n <ng-container *ngIf=\"!(detailsAsList || detailsAsOrderedList)\">\n <p *ngFor=\"let dettaglio of details\" [innerHTML]=\"dettaglio\"></p>\n </ng-container>\n <p>\n <ng-content></ng-content>\n </p>\n </div>\n </div>\n</div>\n<span *ngIf=\"labelFeedback\"\n [id]='id'\n class=\"inail-feedback col-xs-12 form-group {{class}}\"\n [ngClass]=\"{'feedback-box-error': type==errorType, 'feedback-box-warning': type==warningType, 'global-feedback': globalFeedback === true}\">\n <span *ngIf=\"showIcon\"\n class=\"green-check fa fa-check-circle\"\n [ngClass]=\"{\n 'green-check fa-check-circle': type==successType || !type,\n 'red-check fa-times-circle': type==errorType,\n 'red-check fa-exclamation-circle': type==warningType\n }\"></span>\n <strong tabindex=\"0\"\n [id]=\"id+'-message'\"\n class=\"labelFeedback feedback-focusable\"\n [innerHTML]=\"message\" #mainMessage>\n </strong>\n</span>\n",
|
|
3631
3652
|
changeDetection: CHANGE_DETECTION_STRATEGY,
|
|
3632
3653
|
encapsulation: core.ViewEncapsulation.None,
|
|
3633
|
-
styles: [".inail-feedback.feedback-box{margin-bottom:15px!important}.inail-feedback .feedback-content{padding-top:30px!important}.inail-feedback .feedback-content p{padding-top:0!important}.inail-feedback .feedback-header .feedback-focusable:focus{outline:1px dotted #fff!important}.inail-feedback .fa.fa-times-circle{color:#c9291b;margin-right:5px}"]
|
|
3654
|
+
styles: [".inail-feedback.feedback-box{margin-bottom:15px!important}.inail-feedback .feedback-content{padding-top:30px!important}.inail-feedback .feedback-content p{padding-top:0!important}.inail-feedback .feedback-header .feedback-focusable:focus{outline:1px dotted #fff!important}.inail-feedback .fa.fa-times-circle{color:#c9291b;margin-right:5px}.inail-feedback .fa.fa-exclamation-circle{color:#ffaa02;margin-right:5px}.inail-feedback .feedback-header-warning{color:#000;background-color:#ffaa02!important}.feedback-header.feedback-header-warning span{color:#000}"]
|
|
3634
3655
|
},] }
|
|
3635
3656
|
];
|
|
3636
3657
|
FeedbackComponent.ctorParameters = function () { return [
|
|
@@ -4454,7 +4475,7 @@
|
|
|
4454
4475
|
RadioSelectComponent.decorators = [
|
|
4455
4476
|
{ type: core.Component, args: [{
|
|
4456
4477
|
selector: 'inail-radio-select',
|
|
4457
|
-
template: "<div [id]='id' class=\"{{getResponsiveClass()}} {{class}} noPadding inail-radio-select\" #formControl>\n <fieldset class=\"form-group col-xs-12 noPaddingLeft\" [id]=\"getName()\"\n role=\"radiogroup\"\n [attr.aria-required]=\"required === true ? true : undefined\">\n <legend class=\"radio-legend {{labelClass}}\"\n [ngStyle]=\"{'display': hiddenLabel ? 'none': 'contents'}\"\n [innerHTML]=\"getLabel()\">\n </legend>\n <span *ngIf=\"showPopover()\"\n [style.padding-left.px]=\"5\">\n <inail-popover [iconClass]=\"popoverButtonIcon\"\n [buttonTitle]=\"popoverButtonTitle\"\n [header]=\"popoverHeader\"\n [content]=\"popoverContent\">\n </inail-popover>\n </span>\n <br *ngIf=\"!hiddenLabel\">\n <div class=\"radio {{inline === true ? 'inline' : ''}}\" *ngFor=\"let option of options\">\n <label [for]=\"option?.id\">\n <input [attr.id]=\"option?.id\"\n #inputRadio\n type=\"radio\"\n class=\"{{inputClass}} {{option?.class}}\"\n [name]=\"getName()\"\n [attr.title]=\"option?.title || title\"\n [disabled]=\"disabled\"\n [attr.aria-invalid]=\"isThereError() === true ? true : undefined\"\n [attr.aria-describedBy]=\"getAriaDescribedBy()\"\n [value]=\"option?.value\"\n (blur)=\"onBlur()\"\n (keyup.enter)=\"enterUp.emit()\"\n [(ngModel)]=\"value\">\n <span [innerHTML]=\"option?.label\"\n [ngClass]=\"{'sr-only': hiddenLabel}\">\n </span>\n </label>\n <span *ngIf=\"option?.popover === true\"\n [style.padding-left.px]=\"5\">\n <inail-popover [iconClass]=\"option?.popoverButtonIcon\"\n [buttonTitle]=\"option?.popoverButtonTitle\"\n [header]=\"option?.popoverHeader\"\n [content]=\"option?.popoverContent\">\n </inail-popover>\n </span>\n </div>\n <div *ngIf=\"showError()\" [id]=\"id+'-description'\">\n <div class=\"msg msg-errore\">\n <strong [innerHTML]=\"'ERRORE: '+this.error\"></strong>\n </div>\n <div *ngIf=\"description\" [innerHTML]=\"this.description\"></div>\n </div>\n <div *ngIf=\"description && !showError()\"\n [id]=\"id+'-description'\"\n [innerHTML]=\"this.description\">\n </div>\n </fieldset>\n</div>\n",
|
|
4478
|
+
template: "<div [id]='id' class=\"{{getResponsiveClass()}} {{class}} noPadding inail-radio-select\" #formControl>\n <fieldset class=\"form-group col-xs-12 noPaddingLeft\" [id]=\"getName()\"\n role=\"radiogroup\"\n [attr.aria-required]=\"required === true ? true : undefined\">\n <legend class=\"radio-legend {{labelClass}}\"\n [ngStyle]=\"{'display': hiddenLabel ? 'none': 'contents'}\"\n [innerHTML]=\"getLabel()\">\n </legend>\n <span *ngIf=\"showPopover()\"\n [style.padding-left.px]=\"5\">\n <inail-popover [iconClass]=\"popoverButtonIcon\"\n [buttonTitle]=\"popoverButtonTitle\"\n [header]=\"popoverHeader\"\n [content]=\"popoverContent\">\n </inail-popover>\n </span>\n <br *ngIf=\"!hiddenLabel\">\n <div class=\"radio {{inline === true ? 'inline' : ''}}\" *ngFor=\"let option of options\">\n <label [for]=\"option?.id\">\n <input [attr.id]=\"option?.id\"\n #inputRadio\n type=\"radio\"\n class=\"{{inputClass}} {{option?.class}}\"\n [attr.name]=\"getName()\"\n [attr.title]=\"option?.title || title\"\n [disabled]=\"disabled\"\n [attr.aria-invalid]=\"isThereError() === true ? true : undefined\"\n [attr.aria-describedBy]=\"getAriaDescribedBy()\"\n [value]=\"option?.value\"\n (blur)=\"onBlur()\"\n (keyup.enter)=\"enterUp.emit()\"\n [(ngModel)]=\"value\">\n <span [innerHTML]=\"option?.label\"\n [ngClass]=\"{'sr-only': hiddenLabel}\">\n </span>\n </label>\n <span *ngIf=\"option?.popover === true\"\n [style.padding-left.px]=\"5\">\n <inail-popover [iconClass]=\"option?.popoverButtonIcon\"\n [buttonTitle]=\"option?.popoverButtonTitle\"\n [header]=\"option?.popoverHeader\"\n [content]=\"option?.popoverContent\">\n </inail-popover>\n </span>\n </div>\n <div *ngIf=\"showError()\" [id]=\"id+'-description'\">\n <div class=\"msg msg-errore\">\n <strong [innerHTML]=\"'ERRORE: '+this.error\"></strong>\n </div>\n <div *ngIf=\"description\" [innerHTML]=\"this.description\"></div>\n </div>\n <div *ngIf=\"description && !showError()\"\n [id]=\"id+'-description'\"\n [innerHTML]=\"this.description\">\n </div>\n </fieldset>\n</div>\n",
|
|
4458
4479
|
changeDetection: CHANGE_DETECTION_STRATEGY,
|
|
4459
4480
|
encapsulation: core.ViewEncapsulation.None,
|
|
4460
4481
|
providers: [
|
|
@@ -5320,7 +5341,7 @@
|
|
|
5320
5341
|
}
|
|
5321
5342
|
TableComponent.prototype.ngOnChanges = function (changes) {
|
|
5322
5343
|
var _this = this;
|
|
5323
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5344
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
5324
5345
|
_super.prototype.ngOnChanges.call(this, changes);
|
|
5325
5346
|
// Controllo se la paginazione richiesta e' interna o esterna
|
|
5326
5347
|
if (!this.externalPaginationSorting
|
|
@@ -5383,6 +5404,10 @@
|
|
|
5383
5404
|
if ((_k = changes.selectableRowValues) === null || _k === void 0 ? void 0 : _k.currentValue) {
|
|
5384
5405
|
this.righeSelezionabili = __spread((_l = changes.selectableRowValues) === null || _l === void 0 ? void 0 : _l.currentValue);
|
|
5385
5406
|
}
|
|
5407
|
+
// Righe selezionate in input
|
|
5408
|
+
if ((_m = changes.checkedRows) === null || _m === void 0 ? void 0 : _m.currentValue) {
|
|
5409
|
+
this.righeSelezionate = __spread((_o = changes.checkedRows) === null || _o === void 0 ? void 0 : _o.currentValue);
|
|
5410
|
+
}
|
|
5386
5411
|
this.cdr.detectChanges();
|
|
5387
5412
|
};
|
|
5388
5413
|
// Verifica la congruenza tra pagaNumber e pageIndex
|
|
@@ -5422,6 +5447,7 @@
|
|
|
5422
5447
|
this.lookAtThLabel(this.thLabelComponents);
|
|
5423
5448
|
this.attivaThLabelOrdinamentoSpecificato();
|
|
5424
5449
|
setTimeout(function () { var _a; return _this.visualizzaBaseFooter = ((_a = _this.baseFooter) === null || _a === void 0 ? void 0 : _a.nativeElement.childElementCount) > 0; });
|
|
5450
|
+
this.numeroColonne = document.querySelectorAll("#" + this.id + " th").length;
|
|
5425
5451
|
this.cdr.detectChanges();
|
|
5426
5452
|
};
|
|
5427
5453
|
TableComponent.prototype.ngAfterViewChecked = function () {
|
|
@@ -5825,6 +5851,7 @@
|
|
|
5825
5851
|
detailsLink: [{ type: core.Input }],
|
|
5826
5852
|
selectableRowValues: [{ type: core.Input }],
|
|
5827
5853
|
detailsClick: [{ type: core.Output }],
|
|
5854
|
+
checkedRows: [{ type: core.Input }],
|
|
5828
5855
|
checkedRowsChange: [{ type: core.Output }],
|
|
5829
5856
|
thLabelComponents: [{ type: core.ContentChildren, args: [ThLabelComponent, { descendants: true },] }],
|
|
5830
5857
|
trCheckboxComponents: [{ type: core.ContentChildren, args: [TrCheckboxComponent, { descendants: true },] }],
|
|
@@ -6821,6 +6848,69 @@
|
|
|
6821
6848
|
value: [{ type: core.Input }]
|
|
6822
6849
|
};
|
|
6823
6850
|
|
|
6851
|
+
var TrAccordionComponent = /** @class */ (function (_super) {
|
|
6852
|
+
__extends(TrAccordionComponent, _super);
|
|
6853
|
+
function TrAccordionComponent(elRef, cdr, libConfig) {
|
|
6854
|
+
var _this = this;
|
|
6855
|
+
var _a, _b;
|
|
6856
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
6857
|
+
_this.elRef = elRef;
|
|
6858
|
+
_this.cdr = cdr;
|
|
6859
|
+
_this.libConfig = libConfig;
|
|
6860
|
+
_this.expanded = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.trAccordionComponent) === null || _b === void 0 ? void 0 : _b.expanded, false);
|
|
6861
|
+
_this.expandedChange = new core.EventEmitter();
|
|
6862
|
+
_this.isExpanded = function () { return _this.expanded === true; };
|
|
6863
|
+
_this.logPrefix = '[inail-tr-accordion]';
|
|
6864
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.trAccordionComponent);
|
|
6865
|
+
_this.detach();
|
|
6866
|
+
return _this;
|
|
6867
|
+
}
|
|
6868
|
+
TrAccordionComponent.prototype.ngOnChanges = function (changes) {
|
|
6869
|
+
_super.prototype.ngOnChanges.call(this, changes);
|
|
6870
|
+
this.cdr.detectChanges();
|
|
6871
|
+
};
|
|
6872
|
+
TrAccordionComponent.prototype.ngOnInit = function () {
|
|
6873
|
+
_super.prototype.ngOnInit.call(this);
|
|
6874
|
+
};
|
|
6875
|
+
TrAccordionComponent.prototype.toggle = function (expanded) {
|
|
6876
|
+
if (this.trParent) {
|
|
6877
|
+
this.expanded = (expanded != undefined) ? expanded : this.trParent.hidden;
|
|
6878
|
+
this.trParent.hidden = !this.expanded;
|
|
6879
|
+
this.expandedChange.emit(this.expanded);
|
|
6880
|
+
this.cdr.detectChanges();
|
|
6881
|
+
}
|
|
6882
|
+
};
|
|
6883
|
+
TrAccordionComponent.prototype.ngOnDestroy = function () {
|
|
6884
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
6885
|
+
};
|
|
6886
|
+
TrAccordionComponent.prototype.ngAfterViewInit = function () {
|
|
6887
|
+
var _a, _b, _c, _d;
|
|
6888
|
+
this.trParent = this.elRef.nativeElement;
|
|
6889
|
+
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;
|
|
6890
|
+
this.toggle(this.expanded);
|
|
6891
|
+
this.cdr.detectChanges();
|
|
6892
|
+
};
|
|
6893
|
+
return TrAccordionComponent;
|
|
6894
|
+
}(BasicUxElementComponent));
|
|
6895
|
+
TrAccordionComponent.decorators = [
|
|
6896
|
+
{ type: core.Component, args: [{
|
|
6897
|
+
selector: '.inail-tr-accordion',
|
|
6898
|
+
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",
|
|
6899
|
+
changeDetection: CHANGE_DETECTION_STRATEGY,
|
|
6900
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
6901
|
+
styles: [".inail-tr-accordion .accordionTab div.form-group label{display:block!important}"]
|
|
6902
|
+
},] }
|
|
6903
|
+
];
|
|
6904
|
+
TrAccordionComponent.ctorParameters = function () { return [
|
|
6905
|
+
{ type: core.ElementRef },
|
|
6906
|
+
{ type: core.ChangeDetectorRef },
|
|
6907
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
6908
|
+
]; };
|
|
6909
|
+
TrAccordionComponent.propDecorators = {
|
|
6910
|
+
expanded: [{ type: core.Input }],
|
|
6911
|
+
expandedChange: [{ type: core.Output }]
|
|
6912
|
+
};
|
|
6913
|
+
|
|
6824
6914
|
var NgInailCommonModule = /** @class */ (function () {
|
|
6825
6915
|
function NgInailCommonModule() {
|
|
6826
6916
|
}
|
|
@@ -6888,7 +6978,8 @@
|
|
|
6888
6978
|
TrCheckboxComponent,
|
|
6889
6979
|
ProgressBarComponent,
|
|
6890
6980
|
MultiSelectComponent,
|
|
6891
|
-
InputTimeComponent
|
|
6981
|
+
InputTimeComponent,
|
|
6982
|
+
TrAccordionComponent
|
|
6892
6983
|
],
|
|
6893
6984
|
imports: [
|
|
6894
6985
|
common.CommonModule,
|
|
@@ -6939,7 +7030,8 @@
|
|
|
6939
7030
|
TrCheckboxComponent,
|
|
6940
7031
|
ProgressBarComponent,
|
|
6941
7032
|
MultiSelectComponent,
|
|
6942
|
-
InputTimeComponent
|
|
7033
|
+
InputTimeComponent,
|
|
7034
|
+
TrAccordionComponent
|
|
6943
7035
|
],
|
|
6944
7036
|
providers: [common.DatePipe]
|
|
6945
7037
|
},] }
|
|
@@ -7003,6 +7095,7 @@
|
|
|
7003
7095
|
exports.TablePageLengthSelectorComponent = TablePageLengthSelectorComponent;
|
|
7004
7096
|
exports.TextareaComponent = TextareaComponent;
|
|
7005
7097
|
exports.ThLabelComponent = ThLabelComponent;
|
|
7098
|
+
exports.TrAccordionComponent = TrAccordionComponent;
|
|
7006
7099
|
exports.TrCheckboxComponent = TrCheckboxComponent;
|
|
7007
7100
|
exports.WizardComponent = WizardComponent;
|
|
7008
7101
|
exports.addZero = addZero;
|