ng-inail-common 2.0.30-beta.0 → 2.0.30-beta.4
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 +502 -170
- 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 +14 -5
- package/esm2015/lib/components/core/basic-ux-element.component.js +13 -5
- package/esm2015/lib/components/core/form/checkbox/checkbox.component.js +9 -5
- package/esm2015/lib/components/core/form/form-element.component.js +20 -8
- package/esm2015/lib/components/core/form/input-date/input-date.component.js +15 -6
- package/esm2015/lib/components/core/form/input-file/input-file.component.js +18 -9
- package/esm2015/lib/components/core/form/input-number/input-number.component.js +16 -7
- package/esm2015/lib/components/core/form/input-text/input-text.component.js +15 -22
- package/esm2015/lib/components/core/form/input-time/input-time.component.js +160 -0
- package/esm2015/lib/components/core/form/multi-select/multi-select.component.js +13 -7
- package/esm2015/lib/components/core/form/radio-select/radio-select.component.js +13 -6
- package/esm2015/lib/components/core/form/select/select.component.js +15 -9
- package/esm2015/lib/components/core/form/textarea/textarea.component.js +16 -8
- package/esm2015/lib/components/core/layout/breadcrumb/breadcrumb.component.js +8 -5
- package/esm2015/lib/components/core/layout/menu/menu.component.js +21 -9
- package/esm2015/lib/components/core/responsive-element.component.js +13 -5
- package/esm2015/lib/components/core/table/table/table.component.js +17 -12
- package/esm2015/lib/components/core/table/tr-checkbox/tr-checkbox.component.js +12 -7
- package/esm2015/lib/components/core/ux/accordion/accordion.component.js +17 -10
- package/esm2015/lib/components/core/ux/alert/alert.component.js +16 -12
- package/esm2015/lib/components/core/ux/button/button.component.js +8 -5
- package/esm2015/lib/components/core/ux/confirm/confirm.component.js +19 -15
- package/esm2015/lib/components/core/ux/feedback/feedback.component.js +16 -9
- package/esm2015/lib/components/core/ux/modal/modal.component.js +16 -9
- package/esm2015/lib/components/core/ux/page-title/page-title.component.js +5 -5
- package/esm2015/lib/components/core/ux/popover/popover.component.js +15 -6
- package/esm2015/lib/components/core/ux/progress-bar/progress-bar.component.js +8 -5
- package/esm2015/lib/components/core/ux/selector/selector.component.js +17 -11
- package/esm2015/lib/components/core/ux/tab-group/tab-group.component.js +8 -5
- package/esm2015/lib/components/core/ux/tab-pane/tab-pane.component.js +13 -8
- package/esm2015/lib/components/core/ux/wizard/wizard.component.js +14 -9
- package/esm2015/lib/ng-inail-common.config.js +1 -1
- package/esm2015/lib/ng-inail-common.module.js +6 -3
- package/esm2015/public-api.js +2 -1
- package/fesm2015/ng-inail-common.js +473 -172
- package/fesm2015/ng-inail-common.js.map +1 -1
- package/lib/components/core/base.component.d.ts +4 -1
- package/lib/components/core/basic-ux-element.component.d.ts +4 -1
- package/lib/components/core/form/checkbox/checkbox.component.d.ts +3 -1
- package/lib/components/core/form/form-element.component.d.ts +4 -1
- package/lib/components/core/form/input-date/input-date.component.d.ts +3 -1
- package/lib/components/core/form/input-file/input-file.component.d.ts +3 -1
- package/lib/components/core/form/input-number/input-number.component.d.ts +3 -1
- package/lib/components/core/form/input-text/input-text.component.d.ts +3 -1
- package/lib/components/core/form/input-time/input-time.component.d.ts +46 -0
- package/lib/components/core/form/multi-select/multi-select.component.d.ts +3 -1
- package/lib/components/core/form/radio-select/radio-select.component.d.ts +3 -1
- package/lib/components/core/form/select/select.component.d.ts +3 -1
- package/lib/components/core/form/textarea/textarea.component.d.ts +3 -1
- package/lib/components/core/layout/breadcrumb/breadcrumb.component.d.ts +3 -1
- package/lib/components/core/layout/menu/menu.component.d.ts +3 -1
- package/lib/components/core/responsive-element.component.d.ts +4 -1
- package/lib/components/core/table/table/table.component.d.ts +3 -1
- package/lib/components/core/table/tr-checkbox/tr-checkbox.component.d.ts +3 -1
- package/lib/components/core/ux/accordion/accordion.component.d.ts +3 -1
- package/lib/components/core/ux/alert/alert.component.d.ts +3 -1
- package/lib/components/core/ux/button/button.component.d.ts +3 -1
- package/lib/components/core/ux/confirm/confirm.component.d.ts +3 -1
- package/lib/components/core/ux/feedback/feedback.component.d.ts +3 -1
- package/lib/components/core/ux/modal/modal.component.d.ts +3 -1
- package/lib/components/core/ux/popover/popover.component.d.ts +3 -1
- package/lib/components/core/ux/progress-bar/progress-bar.component.d.ts +3 -1
- package/lib/components/core/ux/selector/selector.component.d.ts +3 -1
- package/lib/components/core/ux/tab-group/tab-group.component.d.ts +3 -1
- package/lib/components/core/ux/tab-pane/tab-pane.component.d.ts +3 -1
- package/lib/components/core/ux/wizard/wizard.component.d.ts +3 -1
- package/lib/ng-inail-common.config.d.ts +163 -3
- package/ng-inail-common.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -61,6 +61,8 @@
|
|
|
61
61
|
};
|
|
62
62
|
var setPageScroll = function (scroll) { return document.getElementsByTagName('html')[0].style['overflow-y'] = scroll ? 'scroll' : 'hidden'; };
|
|
63
63
|
|
|
64
|
+
var NG_INAIL_COMMON_CONFIG = new core.InjectionToken('NG_INAIL_COMMON_CONFIG');
|
|
65
|
+
|
|
64
66
|
(function (LogLevel) {
|
|
65
67
|
LogLevel["LOG"] = "log";
|
|
66
68
|
LogLevel["TRACE"] = "trace";
|
|
@@ -73,14 +75,16 @@
|
|
|
73
75
|
// export const CHANGE_DETECTION_STRATEGY = ChangeDetectionStrategy.Default;
|
|
74
76
|
var getConfigValue = function (value, defaultValue) { return value != undefined ? value : defaultValue; };
|
|
75
77
|
var BaseComponent = /** @class */ (function () {
|
|
76
|
-
function BaseComponent(baseComponentCdr) {
|
|
78
|
+
function BaseComponent(baseComponentCdr, baseElementLibConfig) {
|
|
77
79
|
var _this = this;
|
|
80
|
+
var _a;
|
|
78
81
|
this.baseComponentCdr = baseComponentCdr;
|
|
82
|
+
this.baseElementLibConfig = baseElementLibConfig;
|
|
79
83
|
/**
|
|
80
84
|
* Se true effettua il log direttamente nella console.
|
|
81
85
|
* Altrimenti emette l'evento log
|
|
82
86
|
*/
|
|
83
|
-
this.logOnConsole = false;
|
|
87
|
+
this.logOnConsole = getConfigValue((_a = this.baseElementLibConfig) === null || _a === void 0 ? void 0 : _a.logOnConsole, false);
|
|
84
88
|
/**
|
|
85
89
|
*
|
|
86
90
|
*/
|
|
@@ -97,6 +101,11 @@
|
|
|
97
101
|
this.log = new core.EventEmitter();
|
|
98
102
|
saveEE();
|
|
99
103
|
}
|
|
104
|
+
BaseComponent.prototype.overrideConfig = function (config) {
|
|
105
|
+
if (config) {
|
|
106
|
+
this.logOnConsole = getConfigValue(config.logOnConsole, this.logOnConsole);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
100
109
|
BaseComponent.prototype.ngOnChanges = function (changes) {
|
|
101
110
|
this.emitDebug('ngOnChanges');
|
|
102
111
|
this.emitDebug(changes);
|
|
@@ -153,7 +162,8 @@
|
|
|
153
162
|
},] }
|
|
154
163
|
];
|
|
155
164
|
BaseComponent.ctorParameters = function () { return [
|
|
156
|
-
{ type: core.ChangeDetectorRef }
|
|
165
|
+
{ type: core.ChangeDetectorRef },
|
|
166
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
157
167
|
]; };
|
|
158
168
|
BaseComponent.propDecorators = {
|
|
159
169
|
log: [{ type: core.Output }],
|
|
@@ -478,12 +488,18 @@
|
|
|
478
488
|
|
|
479
489
|
var BasicUxElementComponent = /** @class */ (function (_super) {
|
|
480
490
|
__extends(BasicUxElementComponent, _super);
|
|
481
|
-
function BasicUxElementComponent(uxElementCdr) {
|
|
482
|
-
var _this = _super.call(this, uxElementCdr) || this;
|
|
491
|
+
function BasicUxElementComponent(uxElementCdr, uxElementLibConfig) {
|
|
492
|
+
var _this = _super.call(this, uxElementCdr, uxElementLibConfig) || this;
|
|
483
493
|
_this.uxElementCdr = uxElementCdr;
|
|
494
|
+
_this.uxElementLibConfig = uxElementLibConfig;
|
|
484
495
|
_this.id = uuidv4();
|
|
485
496
|
return _this;
|
|
486
497
|
}
|
|
498
|
+
BasicUxElementComponent.prototype.overrideConfig = function (config) {
|
|
499
|
+
if (config) {
|
|
500
|
+
_super.prototype.overrideConfig.call(this, config);
|
|
501
|
+
}
|
|
502
|
+
};
|
|
487
503
|
BasicUxElementComponent.prototype.ngOnChanges = function (changes) {
|
|
488
504
|
_super.prototype.ngOnChanges.call(this, changes);
|
|
489
505
|
};
|
|
@@ -505,7 +521,8 @@
|
|
|
505
521
|
},] }
|
|
506
522
|
];
|
|
507
523
|
BasicUxElementComponent.ctorParameters = function () { return [
|
|
508
|
-
{ type: core.ChangeDetectorRef }
|
|
524
|
+
{ type: core.ChangeDetectorRef },
|
|
525
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
509
526
|
]; };
|
|
510
527
|
BasicUxElementComponent.propDecorators = {
|
|
511
528
|
id: [{ type: core.Input }],
|
|
@@ -514,9 +531,10 @@
|
|
|
514
531
|
|
|
515
532
|
var ResponsiveElementComponent = /** @class */ (function (_super) {
|
|
516
533
|
__extends(ResponsiveElementComponent, _super);
|
|
517
|
-
function ResponsiveElementComponent(responsiveElementCdr) {
|
|
518
|
-
var _this = _super.call(this, responsiveElementCdr) || this;
|
|
534
|
+
function ResponsiveElementComponent(responsiveElementCdr, responsiveElementLibConfig) {
|
|
535
|
+
var _this = _super.call(this, responsiveElementCdr, responsiveElementLibConfig) || this;
|
|
519
536
|
_this.responsiveElementCdr = responsiveElementCdr;
|
|
537
|
+
_this.responsiveElementLibConfig = responsiveElementLibConfig;
|
|
520
538
|
_this.xs = 12;
|
|
521
539
|
_this.xsClass = function () { return _this.xs != undefined ? "col-xs-" + _this.xs + " " : ''; };
|
|
522
540
|
_this.smClass = function () { return _this.sm != undefined ? "col-sm-" + _this.sm + " " : ''; };
|
|
@@ -525,6 +543,11 @@
|
|
|
525
543
|
_this.getResponsiveClass = function () { return ("" + _this.xsClass() + _this.smClass() + _this.mdClass() + _this.lgClass()).trim(); };
|
|
526
544
|
return _this;
|
|
527
545
|
}
|
|
546
|
+
ResponsiveElementComponent.prototype.overrideConfig = function (config) {
|
|
547
|
+
if (config) {
|
|
548
|
+
_super.prototype.overrideConfig.call(this, config);
|
|
549
|
+
}
|
|
550
|
+
};
|
|
528
551
|
ResponsiveElementComponent.prototype.ngOnChanges = function (changes) {
|
|
529
552
|
_super.prototype.ngOnChanges.call(this, changes);
|
|
530
553
|
};
|
|
@@ -542,7 +565,8 @@
|
|
|
542
565
|
},] }
|
|
543
566
|
];
|
|
544
567
|
ResponsiveElementComponent.ctorParameters = function () { return [
|
|
545
|
-
{ type: core.ChangeDetectorRef }
|
|
568
|
+
{ type: core.ChangeDetectorRef },
|
|
569
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
546
570
|
]; };
|
|
547
571
|
ResponsiveElementComponent.propDecorators = {
|
|
548
572
|
lg: [{ type: core.Input }],
|
|
@@ -1600,10 +1624,13 @@
|
|
|
1600
1624
|
var ɵ1 = cloneItems;
|
|
1601
1625
|
var MenuComponent = /** @class */ (function (_super) {
|
|
1602
1626
|
__extends(MenuComponent, _super);
|
|
1603
|
-
function MenuComponent(router, cdr) {
|
|
1604
|
-
var _this =
|
|
1627
|
+
function MenuComponent(router, cdr, libConfig) {
|
|
1628
|
+
var _this = this;
|
|
1629
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1630
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
1605
1631
|
_this.router = router;
|
|
1606
1632
|
_this.cdr = cdr;
|
|
1633
|
+
_this.libConfig = libConfig;
|
|
1607
1634
|
/**
|
|
1608
1635
|
* Elemento parent del menu.
|
|
1609
1636
|
* ( Questo input non deve essere passato, serve internamente per far funzionare il menu )
|
|
@@ -1615,24 +1642,30 @@
|
|
|
1615
1642
|
* quando la proprieta linkRegex matcha
|
|
1616
1643
|
* con l'url corrente
|
|
1617
1644
|
*/
|
|
1618
|
-
_this.disableLinkOverwriting = false;
|
|
1645
|
+
_this.disableLinkOverwriting = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.menuComponent) === null || _b === void 0 ? void 0 : _b.disableLinkOverwriting, false);
|
|
1619
1646
|
/**
|
|
1620
1647
|
* Se true indica che le voci del menu sono collassabili.
|
|
1621
1648
|
* Questa impostazione viene sovrascritta se specificato diversamente
|
|
1622
1649
|
* negli elementi del menu
|
|
1623
1650
|
*/
|
|
1624
|
-
_this.collapsible = false;
|
|
1651
|
+
_this.collapsible = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.menuComponent) === null || _d === void 0 ? void 0 : _d.collapsible, false);
|
|
1652
|
+
/**
|
|
1653
|
+
* Indica lo stato iniziale del menu, se colassato o espanso.
|
|
1654
|
+
* Questa impostazione viene sovrascritta se specificato diversamente
|
|
1655
|
+
* negli elementi del menu
|
|
1656
|
+
*/
|
|
1657
|
+
_this.collapsed = getConfigValue((_f = (_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.menuComponent) === null || _f === void 0 ? void 0 : _f.collapsed, undefined);
|
|
1625
1658
|
/**
|
|
1626
1659
|
* Se true abilita l'effetto fisarmonica
|
|
1627
1660
|
* sulle voci di menu espandibili.
|
|
1628
1661
|
*/
|
|
1629
|
-
_this.collapseOther = false;
|
|
1662
|
+
_this.collapseOther = getConfigValue((_h = (_g = _this.libConfig) === null || _g === void 0 ? void 0 : _g.menuComponent) === null || _h === void 0 ? void 0 : _h.collapseOther, false);
|
|
1630
1663
|
/**
|
|
1631
1664
|
* Se true espande automaticamente il percorso
|
|
1632
1665
|
* verso un elemento
|
|
1633
1666
|
* quando questo si riferisce all'url corrente
|
|
1634
1667
|
*/
|
|
1635
|
-
_this.expandAutomatically = true;
|
|
1668
|
+
_this.expandAutomatically = getConfigValue((_k = (_j = _this.libConfig) === null || _j === void 0 ? void 0 : _j.menuComponent) === null || _k === void 0 ? void 0 : _k.expandAutomatically, true);
|
|
1636
1669
|
/**
|
|
1637
1670
|
* Emette la voce di menu selezionata.
|
|
1638
1671
|
*/
|
|
@@ -1742,6 +1775,7 @@
|
|
|
1742
1775
|
_this.espandiItem = function (item) { return _this.setCollapsed(item, 'show'); };
|
|
1743
1776
|
_this.collassaItem = function (item) { return _this.setCollapsed(item, 'hide'); };
|
|
1744
1777
|
_this.toggleItem = function (item) { return _this.setCollapsed(item, 'toggle'); };
|
|
1778
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.menuComponent);
|
|
1745
1779
|
_this.logPrefix = '[inail-menu]';
|
|
1746
1780
|
return _this;
|
|
1747
1781
|
}
|
|
@@ -2059,7 +2093,8 @@
|
|
|
2059
2093
|
];
|
|
2060
2094
|
MenuComponent.ctorParameters = function () { return [
|
|
2061
2095
|
{ type: router.Router },
|
|
2062
|
-
{ type: core.ChangeDetectorRef }
|
|
2096
|
+
{ type: core.ChangeDetectorRef },
|
|
2097
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
2063
2098
|
]; };
|
|
2064
2099
|
MenuComponent.propDecorators = {
|
|
2065
2100
|
parent: [{ type: core.Input }],
|
|
@@ -2085,9 +2120,10 @@
|
|
|
2085
2120
|
var ButtonComponent = /** @class */ (function (_super) {
|
|
2086
2121
|
__extends(ButtonComponent, _super);
|
|
2087
2122
|
// inizializzazioneTerminata: boolean = false;
|
|
2088
|
-
function ButtonComponent(cdr) {
|
|
2089
|
-
var _this = _super.call(this, cdr) || this;
|
|
2123
|
+
function ButtonComponent(cdr, libConfig) {
|
|
2124
|
+
var _this = _super.call(this, cdr, libConfig) || this;
|
|
2090
2125
|
_this.cdr = cdr;
|
|
2126
|
+
_this.libConfig = libConfig;
|
|
2091
2127
|
_this.onclick = new core.EventEmitter();
|
|
2092
2128
|
_this.setFocusOnError = false;
|
|
2093
2129
|
_this.logPrefix = "[inail-button]";
|
|
@@ -2139,7 +2175,8 @@
|
|
|
2139
2175
|
},] }
|
|
2140
2176
|
];
|
|
2141
2177
|
ButtonComponent.ctorParameters = function () { return [
|
|
2142
|
-
{ type: core.ChangeDetectorRef }
|
|
2178
|
+
{ type: core.ChangeDetectorRef },
|
|
2179
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
2143
2180
|
]; };
|
|
2144
2181
|
ButtonComponent.propDecorators = {
|
|
2145
2182
|
label: [{ type: core.Input }],
|
|
@@ -2845,10 +2882,11 @@
|
|
|
2845
2882
|
|
|
2846
2883
|
var BreadcrumbComponent = /** @class */ (function (_super) {
|
|
2847
2884
|
__extends(BreadcrumbComponent, _super);
|
|
2848
|
-
function BreadcrumbComponent(router, cdr) {
|
|
2849
|
-
var _this = _super.call(this, cdr) || this;
|
|
2885
|
+
function BreadcrumbComponent(router, cdr, libConfig) {
|
|
2886
|
+
var _this = _super.call(this, cdr, libConfig) || this;
|
|
2850
2887
|
_this.router = router;
|
|
2851
2888
|
_this.cdr = cdr;
|
|
2889
|
+
_this.libConfig = libConfig;
|
|
2852
2890
|
_this.logPrefix = '[inail-breadcrumb]';
|
|
2853
2891
|
_this.detach();
|
|
2854
2892
|
return _this;
|
|
@@ -2912,7 +2950,8 @@
|
|
|
2912
2950
|
];
|
|
2913
2951
|
BreadcrumbComponent.ctorParameters = function () { return [
|
|
2914
2952
|
{ type: router.Router },
|
|
2915
|
-
{ type: core.ChangeDetectorRef }
|
|
2953
|
+
{ type: core.ChangeDetectorRef },
|
|
2954
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
2916
2955
|
]; };
|
|
2917
2956
|
BreadcrumbComponent.propDecorators = {
|
|
2918
2957
|
currentPage: [{ type: core.Input }],
|
|
@@ -2921,12 +2960,15 @@
|
|
|
2921
2960
|
|
|
2922
2961
|
var FormElementComponent = /** @class */ (function (_super) {
|
|
2923
2962
|
__extends(FormElementComponent, _super);
|
|
2924
|
-
function FormElementComponent(formElementCdr) {
|
|
2925
|
-
var _this =
|
|
2963
|
+
function FormElementComponent(formElementCdr, formElementLibConfig) {
|
|
2964
|
+
var _this = this;
|
|
2965
|
+
var _a, _b, _c, _d;
|
|
2966
|
+
_this = _super.call(this, formElementCdr, formElementLibConfig) || this;
|
|
2926
2967
|
_this.formElementCdr = formElementCdr;
|
|
2968
|
+
_this.formElementLibConfig = formElementLibConfig;
|
|
2927
2969
|
_this.required = false;
|
|
2928
|
-
_this.requiredSimbol = '*';
|
|
2929
|
-
_this.requiredSimbolPosition = 'left';
|
|
2970
|
+
_this.requiredSimbol = getConfigValue((_b = (_a = _this.formElementLibConfig) === null || _a === void 0 ? void 0 : _a.formElementComponent) === null || _b === void 0 ? void 0 : _b.requiredSimbol, '*');
|
|
2971
|
+
_this.requiredSimbolPosition = getConfigValue((_d = (_c = _this.formElementLibConfig) === null || _c === void 0 ? void 0 : _c.formElementComponent) === null || _d === void 0 ? void 0 : _d.requiredSimbolPosition, 'left');
|
|
2930
2972
|
_this.disabled = false;
|
|
2931
2973
|
_this.readonly = false;
|
|
2932
2974
|
_this.hasError = false;
|
|
@@ -2941,8 +2983,16 @@
|
|
|
2941
2983
|
_this.getAriaDescribedBy = function () { return _this.showError() || isNotBlankOrNull(_this.description) ? _this.id + "-description" : undefined; };
|
|
2942
2984
|
// showPopover = (): boolean => isNotBlankOrNull(this.popoverHeader) || isNotBlankOrNull(this.popoverContent);
|
|
2943
2985
|
_this.showPopover = function () { return _this.popover === true; };
|
|
2986
|
+
_super.prototype.overrideConfig.call(_this, formElementLibConfig === null || formElementLibConfig === void 0 ? void 0 : formElementLibConfig.formElementComponent);
|
|
2944
2987
|
return _this;
|
|
2945
2988
|
}
|
|
2989
|
+
FormElementComponent.prototype.overrideConfig = function (config) {
|
|
2990
|
+
if (config) {
|
|
2991
|
+
_super.prototype.overrideConfig.call(this, config);
|
|
2992
|
+
this.requiredSimbol = getConfigValue(config.requiredSimbol, this.requiredSimbol);
|
|
2993
|
+
this.requiredSimbolPosition = getConfigValue(config.requiredSimbolPosition, this.requiredSimbolPosition);
|
|
2994
|
+
}
|
|
2995
|
+
};
|
|
2946
2996
|
FormElementComponent.prototype.ngOnChanges = function (changes) {
|
|
2947
2997
|
_super.prototype.ngOnChanges.call(this, changes);
|
|
2948
2998
|
this.title = this.getNotBlankValue(this.title);
|
|
@@ -3005,7 +3055,8 @@
|
|
|
3005
3055
|
},] }
|
|
3006
3056
|
];
|
|
3007
3057
|
FormElementComponent.ctorParameters = function () { return [
|
|
3008
|
-
{ type: core.ChangeDetectorRef }
|
|
3058
|
+
{ type: core.ChangeDetectorRef },
|
|
3059
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
3009
3060
|
]; };
|
|
3010
3061
|
FormElementComponent.propDecorators = {
|
|
3011
3062
|
label: [{ type: core.Input }],
|
|
@@ -3125,23 +3176,26 @@
|
|
|
3125
3176
|
|
|
3126
3177
|
var InputTextComponent = /** @class */ (function (_super) {
|
|
3127
3178
|
__extends(InputTextComponent, _super);
|
|
3128
|
-
function InputTextComponent(cdr, datePipe) {
|
|
3129
|
-
var _this =
|
|
3179
|
+
function InputTextComponent(cdr, datePipe, libConfig) {
|
|
3180
|
+
var _this = this;
|
|
3181
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3182
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
3130
3183
|
_this.cdr = cdr;
|
|
3131
3184
|
_this.datePipe = datePipe;
|
|
3185
|
+
_this.libConfig = libConfig;
|
|
3186
|
+
_this.placeholder = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.inputTextComponent) === null || _b === void 0 ? void 0 : _b.placeholder, undefined);
|
|
3132
3187
|
_this.isDate = false;
|
|
3133
3188
|
_this.valueChange = new core.EventEmitter();
|
|
3189
|
+
_this.preventPasting = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.inputTextComponent) === null || _d === void 0 ? void 0 : _d.preventPasting, false);
|
|
3134
3190
|
_this.logPrefix = "[inail-input-text]";
|
|
3191
|
+
_this.emitDebug('NgInailCommonConfig:');
|
|
3192
|
+
_this.emitDebug((_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.inputTextComponent);
|
|
3193
|
+
_super.prototype.overrideConfig.call(_this, (_f = _this.libConfig) === null || _f === void 0 ? void 0 : _f.inputTextComponent);
|
|
3135
3194
|
_this.detach();
|
|
3136
3195
|
return _this;
|
|
3137
3196
|
}
|
|
3138
3197
|
InputTextComponent.prototype.ngOnChanges = function (changes) {
|
|
3139
3198
|
_super.prototype.ngOnChanges.call(this, changes);
|
|
3140
|
-
// Con Form Control
|
|
3141
|
-
// if (changes?.formControl?.isFirstChange()) {
|
|
3142
|
-
//
|
|
3143
|
-
// this.externalformControl = true;
|
|
3144
|
-
// }
|
|
3145
3199
|
this.maxlength = this.getNotBlankValue(this.maxlength);
|
|
3146
3200
|
this.placeholder = this.getNotBlankValue(this.placeholder);
|
|
3147
3201
|
this.cdr.detectChanges();
|
|
@@ -3166,7 +3220,6 @@
|
|
|
3166
3220
|
},
|
|
3167
3221
|
set: function (value) {
|
|
3168
3222
|
this.emitDebug("@Input set value: " + this.inputValue + " -> " + value);
|
|
3169
|
-
// this.inputValue = value; // Con Form Control
|
|
3170
3223
|
this.setValue(value);
|
|
3171
3224
|
},
|
|
3172
3225
|
enumerable: false,
|
|
@@ -3189,16 +3242,6 @@
|
|
|
3189
3242
|
this.onChange(value);
|
|
3190
3243
|
}
|
|
3191
3244
|
}
|
|
3192
|
-
// Con Form Control
|
|
3193
|
-
// if (value != this.formControl.value && !this.externalformControl) {
|
|
3194
|
-
//
|
|
3195
|
-
// this.emitDebug(`update value: ${this.formControl.value} -> ${value}`);
|
|
3196
|
-
//
|
|
3197
|
-
// // Serve per evitare l'errore ExpressionChangedAfterItHasBeenCheckedError
|
|
3198
|
-
// setTimeout(() => {
|
|
3199
|
-
// this.formControl.setValue((this.isDate && isDate(value)) ? this.datePipe.transform(value, 'dd/MM/yyyy') : value);
|
|
3200
|
-
// })
|
|
3201
|
-
// }
|
|
3202
3245
|
};
|
|
3203
3246
|
InputTextComponent.prototype.onPaste = function ($event) {
|
|
3204
3247
|
if (this.preventPasting === true) {
|
|
@@ -3228,7 +3271,8 @@
|
|
|
3228
3271
|
];
|
|
3229
3272
|
InputTextComponent.ctorParameters = function () { return [
|
|
3230
3273
|
{ type: core.ChangeDetectorRef },
|
|
3231
|
-
{ type: common.DatePipe }
|
|
3274
|
+
{ type: common.DatePipe },
|
|
3275
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
3232
3276
|
]; };
|
|
3233
3277
|
InputTextComponent.propDecorators = {
|
|
3234
3278
|
formControlElement: [{ type: core.ViewChild, args: ['formControl', { static: true },] }],
|
|
@@ -3242,17 +3286,22 @@
|
|
|
3242
3286
|
|
|
3243
3287
|
var SelectComponent = /** @class */ (function (_super) {
|
|
3244
3288
|
__extends(SelectComponent, _super);
|
|
3245
|
-
function SelectComponent(cdr) {
|
|
3246
|
-
var _this =
|
|
3289
|
+
function SelectComponent(cdr, libConfig) {
|
|
3290
|
+
var _this = this;
|
|
3291
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3292
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
3247
3293
|
_this.cdr = cdr;
|
|
3294
|
+
_this.libConfig = libConfig;
|
|
3248
3295
|
_this.selectedValue = '';
|
|
3249
3296
|
_this.options = [];
|
|
3250
|
-
_this.blankOption = true;
|
|
3251
|
-
_this.blankOptionText = '- seleziona opzione -';
|
|
3252
|
-
_this.blankOptionDisabled = false;
|
|
3297
|
+
_this.blankOption = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.selectComponent) === null || _b === void 0 ? void 0 : _b.blankOption, true);
|
|
3298
|
+
_this.blankOptionText = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.selectComponent) === null || _d === void 0 ? void 0 : _d.blankOptionText, '- seleziona opzione -');
|
|
3299
|
+
_this.blankOptionDisabled = getConfigValue((_f = (_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.selectComponent) === null || _f === void 0 ? void 0 : _f.blankOptionDisabled, false);
|
|
3300
|
+
_this.sort = getConfigValue((_h = (_g = _this.libConfig) === null || _g === void 0 ? void 0 : _g.selectComponent) === null || _h === void 0 ? void 0 : _h.sort, undefined);
|
|
3253
3301
|
_this.select = new core.EventEmitter();
|
|
3254
3302
|
_this.valueChange = new core.EventEmitter();
|
|
3255
3303
|
_this.logPrefix = "[inail-select]";
|
|
3304
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.selectComponent);
|
|
3256
3305
|
_this.detach();
|
|
3257
3306
|
return _this;
|
|
3258
3307
|
}
|
|
@@ -3336,7 +3385,8 @@
|
|
|
3336
3385
|
},] }
|
|
3337
3386
|
];
|
|
3338
3387
|
SelectComponent.ctorParameters = function () { return [
|
|
3339
|
-
{ type: core.ChangeDetectorRef }
|
|
3388
|
+
{ type: core.ChangeDetectorRef },
|
|
3389
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
3340
3390
|
]; };
|
|
3341
3391
|
SelectComponent.propDecorators = {
|
|
3342
3392
|
formControlElement: [{ type: core.ViewChild, args: ['formControl',] }],
|
|
@@ -3395,22 +3445,20 @@
|
|
|
3395
3445
|
title: [{ type: core.Input }]
|
|
3396
3446
|
};
|
|
3397
3447
|
|
|
3398
|
-
var NG_INAIL_COMMON_CONFIG = new core.InjectionToken('NG_INAIL_COMMON_CONFIG');
|
|
3399
|
-
|
|
3400
3448
|
var PageTitleComponent = /** @class */ (function (_super) {
|
|
3401
3449
|
__extends(PageTitleComponent, _super);
|
|
3402
3450
|
function PageTitleComponent(cdr, libConfig) {
|
|
3403
3451
|
var _this = this;
|
|
3404
3452
|
var _a, _b;
|
|
3405
|
-
_this = _super.call(this, cdr) || this;
|
|
3453
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
3406
3454
|
_this.cdr = cdr;
|
|
3407
3455
|
_this.libConfig = libConfig;
|
|
3408
|
-
_this.autoCatchFocus = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.
|
|
3456
|
+
_this.autoCatchFocus = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.pageTitleComponent) === null || _b === void 0 ? void 0 : _b.autoCatchFocus, true);
|
|
3409
3457
|
_this.logPrefix = '[inail-page-title]';
|
|
3410
3458
|
_this.emitDebug('NgInailCommonConfig:');
|
|
3411
|
-
_this.emitDebug(libConfig === null || libConfig === void 0 ? void 0 : libConfig.
|
|
3459
|
+
_this.emitDebug(libConfig === null || libConfig === void 0 ? void 0 : libConfig.pageTitleComponent);
|
|
3460
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.pageTitleComponent);
|
|
3412
3461
|
_this.detach();
|
|
3413
|
-
console.warn('libConfig', libConfig); // todo
|
|
3414
3462
|
return _this;
|
|
3415
3463
|
}
|
|
3416
3464
|
PageTitleComponent.prototype.ngOnChanges = function (changes) {
|
|
@@ -3501,20 +3549,26 @@
|
|
|
3501
3549
|
|
|
3502
3550
|
var FeedbackComponent = /** @class */ (function (_super) {
|
|
3503
3551
|
__extends(FeedbackComponent, _super);
|
|
3504
|
-
function FeedbackComponent(cdr) {
|
|
3505
|
-
var _this =
|
|
3552
|
+
function FeedbackComponent(cdr, libConfig) {
|
|
3553
|
+
var _this = this;
|
|
3554
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3555
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
3506
3556
|
_this.cdr = cdr;
|
|
3557
|
+
_this.libConfig = libConfig;
|
|
3507
3558
|
// Queste inizializzazioni servono per essere usate nel template
|
|
3508
3559
|
_this.errorType = 'ERROR';
|
|
3509
3560
|
_this.successType = 'SUCCESS';
|
|
3510
3561
|
_this.type = 'SUCCESS';
|
|
3511
|
-
_this.showIcon = true;
|
|
3512
|
-
_this.
|
|
3513
|
-
_this.
|
|
3562
|
+
_this.showIcon = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.feedbackComponent) === null || _b === void 0 ? void 0 : _b.showIcon, true);
|
|
3563
|
+
_this.detailsAsList = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.feedbackComponent) === null || _d === void 0 ? void 0 : _d.detailsAsList, undefined);
|
|
3564
|
+
_this.detailsAsOrderedList = getConfigValue((_f = (_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.feedbackComponent) === null || _f === void 0 ? void 0 : _f.detailsAsOrderedList, undefined);
|
|
3565
|
+
_this.autoCatchFocus = getConfigValue((_h = (_g = _this.libConfig) === null || _g === void 0 ? void 0 : _g.feedbackComponent) === null || _h === void 0 ? void 0 : _h.autoCatchFocus, false);
|
|
3566
|
+
_this.scrollToFocus = getConfigValue((_k = (_j = _this.libConfig) === null || _j === void 0 ? void 0 : _j.feedbackComponent) === null || _k === void 0 ? void 0 : _k.scrollToFocus, true);
|
|
3514
3567
|
_this.labelFeedback = false;
|
|
3515
3568
|
// hasContent = () => this.feedbackContent?.nativeElement?.childElementCount > 0;
|
|
3516
3569
|
_this.hasContent = function () { var _a, _b; return isNotBlankOrNull((_b = (_a = _this.feedbackContent) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.textContent); };
|
|
3517
3570
|
_this.logPrefix = '[inail-feedback]';
|
|
3571
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.confirmComponent);
|
|
3518
3572
|
_this.detach();
|
|
3519
3573
|
return _this;
|
|
3520
3574
|
}
|
|
@@ -3565,7 +3619,8 @@
|
|
|
3565
3619
|
},] }
|
|
3566
3620
|
];
|
|
3567
3621
|
FeedbackComponent.ctorParameters = function () { return [
|
|
3568
|
-
{ type: core.ChangeDetectorRef }
|
|
3622
|
+
{ type: core.ChangeDetectorRef },
|
|
3623
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
3569
3624
|
]; };
|
|
3570
3625
|
FeedbackComponent.propDecorators = {
|
|
3571
3626
|
mainMessage: [{ type: core.ViewChild, args: ['mainMessage',] }],
|
|
@@ -3598,14 +3653,19 @@
|
|
|
3598
3653
|
|
|
3599
3654
|
var AccordionComponent = /** @class */ (function (_super) {
|
|
3600
3655
|
__extends(AccordionComponent, _super);
|
|
3601
|
-
function AccordionComponent(cdr, renderer) {
|
|
3602
|
-
var _this =
|
|
3656
|
+
function AccordionComponent(cdr, renderer, libConfig) {
|
|
3657
|
+
var _this = this;
|
|
3658
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3659
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
3603
3660
|
_this.cdr = cdr;
|
|
3604
3661
|
_this.renderer = renderer;
|
|
3605
|
-
_this.
|
|
3606
|
-
_this.
|
|
3607
|
-
_this.
|
|
3608
|
-
_this.
|
|
3662
|
+
_this.libConfig = libConfig;
|
|
3663
|
+
_this.ariaLabel = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.accordionComponent) === null || _b === void 0 ? void 0 : _b.ariaLabel, undefined);
|
|
3664
|
+
_this.ariaLabelOpened = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.accordionComponent) === null || _d === void 0 ? void 0 : _d.ariaLabelOpened, "Riduce l'accordion");
|
|
3665
|
+
_this.ariaLabelClosed = getConfigValue((_f = (_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.accordionComponent) === null || _f === void 0 ? void 0 : _f.ariaLabelClosed, "Espande l'accordion");
|
|
3666
|
+
_this.collapsed = getConfigValue((_h = (_g = _this.libConfig) === null || _g === void 0 ? void 0 : _g.accordionComponent) === null || _h === void 0 ? void 0 : _h.collapsed, undefined);
|
|
3667
|
+
_this.requiredSimbol = getConfigValue((_k = (_j = _this.libConfig) === null || _j === void 0 ? void 0 : _j.accordionComponent) === null || _k === void 0 ? void 0 : _k.requiredSimbol, '*');
|
|
3668
|
+
_this.requiredSimbolPosition = getConfigValue((_m = (_l = _this.libConfig) === null || _l === void 0 ? void 0 : _l.accordionComponent) === null || _m === void 0 ? void 0 : _m.requiredSimbolPosition, 'left');
|
|
3609
3669
|
_this.ontoggle = new core.EventEmitter();
|
|
3610
3670
|
_this.getTitle = function () { return "" + ((_this.required && _this.requiredSimbolPosition === 'left') ? _this.requiredSimbol + " " : '') + _this.title + ((_this.required && _this.requiredSimbolPosition === 'right') ? " " + _this.requiredSimbol : ''); };
|
|
3611
3671
|
_this.panelBodyHeight$ = new rxjs.BehaviorSubject(undefined);
|
|
@@ -3641,6 +3701,7 @@
|
|
|
3641
3701
|
// }
|
|
3642
3702
|
};
|
|
3643
3703
|
_this.logPrefix = '[inail-accordion]';
|
|
3704
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.accordionComponent);
|
|
3644
3705
|
_this.detach();
|
|
3645
3706
|
return _this;
|
|
3646
3707
|
}
|
|
@@ -3696,7 +3757,8 @@
|
|
|
3696
3757
|
];
|
|
3697
3758
|
AccordionComponent.ctorParameters = function () { return [
|
|
3698
3759
|
{ type: core.ChangeDetectorRef },
|
|
3699
|
-
{ type: core.Renderer2 }
|
|
3760
|
+
{ type: core.Renderer2 },
|
|
3761
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
3700
3762
|
]; };
|
|
3701
3763
|
AccordionComponent.propDecorators = {
|
|
3702
3764
|
title: [{ type: core.Input }],
|
|
@@ -3717,11 +3779,14 @@
|
|
|
3717
3779
|
|
|
3718
3780
|
var TabPaneComponent = /** @class */ (function (_super) {
|
|
3719
3781
|
__extends(TabPaneComponent, _super);
|
|
3720
|
-
function TabPaneComponent(cdr) {
|
|
3721
|
-
var _this =
|
|
3782
|
+
function TabPaneComponent(cdr, libConfig) {
|
|
3783
|
+
var _this = this;
|
|
3784
|
+
var _a, _b, _c, _d;
|
|
3785
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
3722
3786
|
_this.cdr = cdr;
|
|
3723
|
-
_this.
|
|
3724
|
-
_this.
|
|
3787
|
+
_this.libConfig = libConfig;
|
|
3788
|
+
_this.requiredSimbol = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.tabPaneComponent) === null || _b === void 0 ? void 0 : _b.requiredSimbol, '*');
|
|
3789
|
+
_this.requiredSimbolPosition = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.tabPaneComponent) === null || _d === void 0 ? void 0 : _d.requiredSimbolPosition, 'left');
|
|
3725
3790
|
_this.activeChange = new core.EventEmitter();
|
|
3726
3791
|
// @Output()
|
|
3727
3792
|
// selected: EventEmitter<boolean> = new EventEmitter<boolean>();
|
|
@@ -3729,6 +3794,7 @@
|
|
|
3729
3794
|
_this.doDetechChange = function () { return _this.cdr.detectChanges(); };
|
|
3730
3795
|
_this.getTitle = function () { return "" + ((_this.required && _this.requiredSimbolPosition === 'left') ? _this.requiredSimbol + " " : '') + _this.title + ((_this.required && _this.requiredSimbolPosition === 'right') ? " " + _this.requiredSimbol : ''); };
|
|
3731
3796
|
_this.logPrefix = '[inail-tab-pane]';
|
|
3797
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.tabPaneComponent);
|
|
3732
3798
|
_this.detach();
|
|
3733
3799
|
return _this;
|
|
3734
3800
|
}
|
|
@@ -3762,7 +3828,8 @@
|
|
|
3762
3828
|
},] }
|
|
3763
3829
|
];
|
|
3764
3830
|
TabPaneComponent.ctorParameters = function () { return [
|
|
3765
|
-
{ type: core.ChangeDetectorRef }
|
|
3831
|
+
{ type: core.ChangeDetectorRef },
|
|
3832
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
3766
3833
|
]; };
|
|
3767
3834
|
TabPaneComponent.propDecorators = {
|
|
3768
3835
|
title: [{ type: core.Input }],
|
|
@@ -3775,9 +3842,10 @@
|
|
|
3775
3842
|
|
|
3776
3843
|
var TabGroupComponent = /** @class */ (function (_super) {
|
|
3777
3844
|
__extends(TabGroupComponent, _super);
|
|
3778
|
-
function TabGroupComponent(cdr) {
|
|
3779
|
-
var _this = _super.call(this, cdr) || this;
|
|
3845
|
+
function TabGroupComponent(cdr, libConfig) {
|
|
3846
|
+
var _this = _super.call(this, cdr, libConfig) || this;
|
|
3780
3847
|
_this.cdr = cdr;
|
|
3848
|
+
_this.libConfig = libConfig;
|
|
3781
3849
|
_this.selected = new core.EventEmitter();
|
|
3782
3850
|
_this.isActive = function (id) { return _this.panes.some(function (pane) { return pane.id == id && pane.active; }); };
|
|
3783
3851
|
// getPaneTitle = (pane: TabPaneComponent) => `${pane.title}${pane.required ? ' *' : ''}`;
|
|
@@ -3840,7 +3908,8 @@
|
|
|
3840
3908
|
},] }
|
|
3841
3909
|
];
|
|
3842
3910
|
TabGroupComponent.ctorParameters = function () { return [
|
|
3843
|
-
{ type: core.ChangeDetectorRef }
|
|
3911
|
+
{ type: core.ChangeDetectorRef },
|
|
3912
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
3844
3913
|
]; };
|
|
3845
3914
|
TabGroupComponent.propDecorators = {
|
|
3846
3915
|
panes: [{ type: core.ContentChildren, args: [TabPaneComponent,] }],
|
|
@@ -3857,10 +3926,18 @@
|
|
|
3857
3926
|
// }
|
|
3858
3927
|
var PopoverComponent = /** @class */ (function (_super) {
|
|
3859
3928
|
__extends(PopoverComponent, _super);
|
|
3860
|
-
function PopoverComponent(cdr) {
|
|
3861
|
-
var _this =
|
|
3929
|
+
function PopoverComponent(cdr, libConfig) {
|
|
3930
|
+
var _this = this;
|
|
3931
|
+
var _a, _b, _c, _d;
|
|
3932
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
3862
3933
|
_this.cdr = cdr;
|
|
3934
|
+
_this.libConfig = libConfig;
|
|
3935
|
+
// @Input()
|
|
3936
|
+
// data: Popover;
|
|
3937
|
+
_this.iconClass = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.popoverComponent) === null || _b === void 0 ? void 0 : _b.iconClass, undefined);
|
|
3938
|
+
_this.buttonTitle = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.popoverComponent) === null || _d === void 0 ? void 0 : _d.buttonTitle, undefined);
|
|
3863
3939
|
_this.logPrefix = '[inail-popover]';
|
|
3940
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.popoverComponent);
|
|
3864
3941
|
_this.detach();
|
|
3865
3942
|
return _this;
|
|
3866
3943
|
}
|
|
@@ -3907,7 +3984,8 @@
|
|
|
3907
3984
|
},] }
|
|
3908
3985
|
];
|
|
3909
3986
|
PopoverComponent.ctorParameters = function () { return [
|
|
3910
|
-
{ type: core.ChangeDetectorRef }
|
|
3987
|
+
{ type: core.ChangeDetectorRef },
|
|
3988
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
3911
3989
|
]; };
|
|
3912
3990
|
PopoverComponent.propDecorators = {
|
|
3913
3991
|
openButton: [{ type: core.ViewChild, args: ['openButton',] }],
|
|
@@ -3920,12 +3998,18 @@
|
|
|
3920
3998
|
|
|
3921
3999
|
var TextareaComponent = /** @class */ (function (_super) {
|
|
3922
4000
|
__extends(TextareaComponent, _super);
|
|
3923
|
-
function TextareaComponent(cdr) {
|
|
3924
|
-
var _this =
|
|
4001
|
+
function TextareaComponent(cdr, libConfig) {
|
|
4002
|
+
var _this = this;
|
|
4003
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4004
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
3925
4005
|
_this.cdr = cdr;
|
|
4006
|
+
_this.libConfig = libConfig;
|
|
4007
|
+
_this.placeholder = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.textareaComponent) === null || _b === void 0 ? void 0 : _b.placeholder, undefined);
|
|
3926
4008
|
_this.valueChange = new core.EventEmitter();
|
|
3927
|
-
_this.maxlength = 300;
|
|
3928
|
-
_this.rows = 10;
|
|
4009
|
+
_this.maxlength = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.textareaComponent) === null || _d === void 0 ? void 0 : _d.maxlength, 300);
|
|
4010
|
+
_this.rows = getConfigValue((_f = (_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.textareaComponent) === null || _f === void 0 ? void 0 : _f.rows, 10);
|
|
4011
|
+
_this.cols = getConfigValue((_h = (_g = _this.libConfig) === null || _g === void 0 ? void 0 : _g.textareaComponent) === null || _h === void 0 ? void 0 : _h.cols, undefined);
|
|
4012
|
+
_this.preventPasting = getConfigValue((_k = (_j = _this.libConfig) === null || _j === void 0 ? void 0 : _j.textareaComponent) === null || _k === void 0 ? void 0 : _k.preventPasting, undefined);
|
|
3929
4013
|
_this.getCaratteriDisponibili = function () { return _this.maxlength - (_this.inputValue ? _this.inputValue.length : 0); };
|
|
3930
4014
|
_this.isTextTooLong = function () { return _this.inputValue && _this.inputValue.length > _this.maxlength; };
|
|
3931
4015
|
_this.isThereTextareaError = function () { return _this.isThereError() || _this.isTextTooLong(); };
|
|
@@ -3934,6 +4018,7 @@
|
|
|
3934
4018
|
? "Il testo non può essere lungo di " + _this.maxlength + " caratteri"
|
|
3935
4019
|
: _this.error; };
|
|
3936
4020
|
_this.logPrefix = "[inail-textarea]";
|
|
4021
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.textareaComponent);
|
|
3937
4022
|
_this.detach();
|
|
3938
4023
|
return _this;
|
|
3939
4024
|
}
|
|
@@ -4018,7 +4103,8 @@
|
|
|
4018
4103
|
},] }
|
|
4019
4104
|
];
|
|
4020
4105
|
TextareaComponent.ctorParameters = function () { return [
|
|
4021
|
-
{ type: core.ChangeDetectorRef }
|
|
4106
|
+
{ type: core.ChangeDetectorRef },
|
|
4107
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
4022
4108
|
]; };
|
|
4023
4109
|
TextareaComponent.propDecorators = {
|
|
4024
4110
|
formControlElement: [{ type: core.ViewChild, args: ['formControl', { static: true },] }],
|
|
@@ -4037,10 +4123,17 @@
|
|
|
4037
4123
|
var ɵ1$2 = isLongTime;
|
|
4038
4124
|
var InputDateComponent = /** @class */ (function (_super) {
|
|
4039
4125
|
__extends(InputDateComponent, _super);
|
|
4040
|
-
function InputDateComponent(cdr) {
|
|
4041
|
-
var _this =
|
|
4126
|
+
function InputDateComponent(cdr, libConfig) {
|
|
4127
|
+
var _this = this;
|
|
4128
|
+
var _a, _b;
|
|
4129
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
4042
4130
|
_this.cdr = cdr;
|
|
4131
|
+
_this.libConfig = libConfig;
|
|
4043
4132
|
_this.valueChange = new core.EventEmitter();
|
|
4133
|
+
// @Input()
|
|
4134
|
+
// modelFormat: DateFormat;
|
|
4135
|
+
// https://bootstrap-datepicker.readthedocs.io/en/latest/options.html
|
|
4136
|
+
_this.options = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.inputDateComponent) === null || _b === void 0 ? void 0 : _b.options, undefined);
|
|
4044
4137
|
_this.isValidInputValue = function () { return isBlankOrNull(_this.visibleData) || isInItalianFormat(_this.visibleData); };
|
|
4045
4138
|
_this.isThereDataError = function () { return _this.isThereError() || !_this.isValidInputValue(); };
|
|
4046
4139
|
_this.showDataError = function () { return _this.isThereDataError() && isNotBlankOrNull(_this.getDescError()); };
|
|
@@ -4053,6 +4146,7 @@
|
|
|
4053
4146
|
_this.isDataDisabilitata = function (data) { return _this.disabledDates != undefined && _this.disabledDates.some(function (regex) { return _this.match(data, regex) != undefined; }); };
|
|
4054
4147
|
_this.match = function (date, regex) { return date != undefined && date.match(new RegExp('^'.concat(regex).concat('$'), 'i')); };
|
|
4055
4148
|
_this.logPrefix = "[inail-input-date]";
|
|
4149
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.inputDateComponent);
|
|
4056
4150
|
_this.detach();
|
|
4057
4151
|
return _this;
|
|
4058
4152
|
}
|
|
@@ -4210,7 +4304,8 @@
|
|
|
4210
4304
|
},] }
|
|
4211
4305
|
];
|
|
4212
4306
|
InputDateComponent.ctorParameters = function () { return [
|
|
4213
|
-
{ type: core.ChangeDetectorRef }
|
|
4307
|
+
{ type: core.ChangeDetectorRef },
|
|
4308
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
4214
4309
|
]; };
|
|
4215
4310
|
InputDateComponent.propDecorators = {
|
|
4216
4311
|
formControlElement: [{ type: core.ViewChild, args: ['formControl', { static: true },] }],
|
|
@@ -4429,14 +4524,20 @@
|
|
|
4429
4524
|
var ɵ0$4 = clone$1;
|
|
4430
4525
|
var RadioSelectComponent = /** @class */ (function (_super) {
|
|
4431
4526
|
__extends(RadioSelectComponent, _super);
|
|
4432
|
-
function RadioSelectComponent(cdr) {
|
|
4433
|
-
var _this =
|
|
4527
|
+
function RadioSelectComponent(cdr, libConfig) {
|
|
4528
|
+
var _this = this;
|
|
4529
|
+
var _a, _b, _c, _d;
|
|
4530
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
4434
4531
|
_this.cdr = cdr;
|
|
4532
|
+
_this.libConfig = libConfig;
|
|
4435
4533
|
_this.selectedValue = '';
|
|
4534
|
+
_this.sort = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.radioSelectComponent) === null || _b === void 0 ? void 0 : _b.sort, undefined);
|
|
4535
|
+
_this.inline = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.radioSelectComponent) === null || _d === void 0 ? void 0 : _d.inline, false);
|
|
4436
4536
|
_this.select = new core.EventEmitter();
|
|
4437
4537
|
_this.valueChange = new core.EventEmitter();
|
|
4438
4538
|
_this.getName = function () { return _this.name || _this.id + "-name"; };
|
|
4439
4539
|
_this.logPrefix = "[inail-radio-select]";
|
|
4540
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.radioSelectComponent);
|
|
4440
4541
|
_this.detach();
|
|
4441
4542
|
return _this;
|
|
4442
4543
|
}
|
|
@@ -4531,7 +4632,8 @@
|
|
|
4531
4632
|
},] }
|
|
4532
4633
|
];
|
|
4533
4634
|
RadioSelectComponent.ctorParameters = function () { return [
|
|
4534
|
-
{ type: core.ChangeDetectorRef }
|
|
4635
|
+
{ type: core.ChangeDetectorRef },
|
|
4636
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
4535
4637
|
]; };
|
|
4536
4638
|
RadioSelectComponent.propDecorators = {
|
|
4537
4639
|
formControlElement: [{ type: core.ViewChild, args: ['formControl',] }],
|
|
@@ -4554,9 +4656,10 @@
|
|
|
4554
4656
|
|
|
4555
4657
|
var CheckboxComponent = /** @class */ (function (_super) {
|
|
4556
4658
|
__extends(CheckboxComponent, _super);
|
|
4557
|
-
function CheckboxComponent(cdr) {
|
|
4558
|
-
var _this = _super.call(this, cdr) || this;
|
|
4659
|
+
function CheckboxComponent(cdr, libConfig) {
|
|
4660
|
+
var _this = _super.call(this, cdr, libConfig) || this;
|
|
4559
4661
|
_this.cdr = cdr;
|
|
4662
|
+
_this.libConfig = libConfig;
|
|
4560
4663
|
_this.checkedChange = new core.EventEmitter();
|
|
4561
4664
|
_this.checkboxClick = new core.EventEmitter();
|
|
4562
4665
|
_this.click = new core.EventEmitter();
|
|
@@ -4570,6 +4673,7 @@
|
|
|
4570
4673
|
_this.state.firstChange = false;
|
|
4571
4674
|
};
|
|
4572
4675
|
_this.logPrefix = "[inail-checkbox]";
|
|
4676
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.checkboxComponent);
|
|
4573
4677
|
_this.detach();
|
|
4574
4678
|
return _this;
|
|
4575
4679
|
}
|
|
@@ -4650,7 +4754,8 @@
|
|
|
4650
4754
|
},] }
|
|
4651
4755
|
];
|
|
4652
4756
|
CheckboxComponent.ctorParameters = function () { return [
|
|
4653
|
-
{ type: core.ChangeDetectorRef }
|
|
4757
|
+
{ type: core.ChangeDetectorRef },
|
|
4758
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
4654
4759
|
]; };
|
|
4655
4760
|
CheckboxComponent.propDecorators = {
|
|
4656
4761
|
formControlElement: [{ type: core.ViewChild, args: ['formControl', { static: true },] }],
|
|
@@ -4667,13 +4772,18 @@
|
|
|
4667
4772
|
var PREVENT_PADDING_STYLE_CLASS = 'inail-modal-prevent-padding-style';
|
|
4668
4773
|
var ModalComponent = /** @class */ (function (_super) {
|
|
4669
4774
|
__extends(ModalComponent, _super);
|
|
4670
|
-
function ModalComponent(cdr) {
|
|
4671
|
-
var _this =
|
|
4775
|
+
function ModalComponent(cdr, libConfig) {
|
|
4776
|
+
var _this = this;
|
|
4777
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4778
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
4672
4779
|
_this.cdr = cdr;
|
|
4673
|
-
_this.
|
|
4780
|
+
_this.libConfig = libConfig;
|
|
4781
|
+
_this.title = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.modalComponent) === null || _b === void 0 ? void 0 : _b.title, undefined);
|
|
4782
|
+
_this.closeButtonTitle = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.modalComponent) === null || _d === void 0 ? void 0 : _d.closeButtonTitle, 'Chiudi modale');
|
|
4674
4783
|
_this.close = new core.EventEmitter();
|
|
4675
|
-
_this.width = 'M';
|
|
4676
|
-
_this.
|
|
4784
|
+
_this.width = getConfigValue((_f = (_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.modalComponent) === null || _f === void 0 ? void 0 : _f.width, 'M');
|
|
4785
|
+
_this.setFocusOnError = getConfigValue((_h = (_g = _this.libConfig) === null || _g === void 0 ? void 0 : _g.modalComponent) === null || _h === void 0 ? void 0 : _h.setFocusOnError, undefined);
|
|
4786
|
+
_this.preventPageScroll = getConfigValue((_k = (_j = _this.libConfig) === null || _j === void 0 ? void 0 : _j.modalComponent) === null || _k === void 0 ? void 0 : _k.preventPageScroll, true);
|
|
4677
4787
|
_this.closeOnClick = function () { return _this.showModal(false); };
|
|
4678
4788
|
_this.setFocusOnLastPageActiveElement = function () {
|
|
4679
4789
|
if (_this.pageActiveElement != undefined) {
|
|
@@ -4686,6 +4796,7 @@
|
|
|
4686
4796
|
}
|
|
4687
4797
|
};
|
|
4688
4798
|
_this.logPrefix = '[inail-modal]';
|
|
4799
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.modalComponent);
|
|
4689
4800
|
_this.detach();
|
|
4690
4801
|
return _this;
|
|
4691
4802
|
}
|
|
@@ -4812,7 +4923,8 @@
|
|
|
4812
4923
|
},] }
|
|
4813
4924
|
];
|
|
4814
4925
|
ModalComponent.ctorParameters = function () { return [
|
|
4815
|
-
{ type: core.ChangeDetectorRef }
|
|
4926
|
+
{ type: core.ChangeDetectorRef },
|
|
4927
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
4816
4928
|
]; };
|
|
4817
4929
|
ModalComponent.propDecorators = {
|
|
4818
4930
|
title: [{ type: core.Input }],
|
|
@@ -4826,18 +4938,21 @@
|
|
|
4826
4938
|
|
|
4827
4939
|
var AlertComponent = /** @class */ (function (_super) {
|
|
4828
4940
|
__extends(AlertComponent, _super);
|
|
4829
|
-
function AlertComponent(_cdr) {
|
|
4830
|
-
var _this =
|
|
4941
|
+
function AlertComponent(_cdr, libConfig) {
|
|
4942
|
+
var _this = this;
|
|
4943
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4944
|
+
_this = _super.call(this, _cdr, libConfig) || this;
|
|
4831
4945
|
_this._cdr = _cdr;
|
|
4832
|
-
_this.
|
|
4946
|
+
_this.libConfig = libConfig;
|
|
4833
4947
|
_this.close = new core.EventEmitter();
|
|
4834
|
-
_this.
|
|
4835
|
-
_this.preventPageScroll = true;
|
|
4948
|
+
_this.setFocusOnError = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.alertComponent) === null || _b === void 0 ? void 0 : _b.setFocusOnError, undefined);
|
|
4949
|
+
_this.preventPageScroll = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.alertComponent) === null || _d === void 0 ? void 0 : _d.preventPageScroll, true);
|
|
4836
4950
|
_this.okOnClick = function () { var _a; return (_a = _this.show) === null || _a === void 0 ? void 0 : _a.emit(false); };
|
|
4837
4951
|
_this.logPrefix = '[inail-alert]';
|
|
4838
|
-
_this.title = 'Messaggio informativo';
|
|
4839
|
-
_this.width = 'S';
|
|
4840
|
-
_this.closeButtonTitle = 'Chiudi messaggio informativo';
|
|
4952
|
+
_this.title = getConfigValue((_f = (_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.alertComponent) === null || _f === void 0 ? void 0 : _f.title, 'Messaggio informativo');
|
|
4953
|
+
_this.width = getConfigValue((_h = (_g = _this.libConfig) === null || _g === void 0 ? void 0 : _g.alertComponent) === null || _h === void 0 ? void 0 : _h.width, 'S');
|
|
4954
|
+
_this.closeButtonTitle = getConfigValue((_k = (_j = _this.libConfig) === null || _j === void 0 ? void 0 : _j.alertComponent) === null || _k === void 0 ? void 0 : _k.closeButtonTitle, 'Chiudi messaggio informativo');
|
|
4955
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.alertComponent);
|
|
4841
4956
|
_this.detach();
|
|
4842
4957
|
return _this;
|
|
4843
4958
|
}
|
|
@@ -4866,7 +4981,8 @@
|
|
|
4866
4981
|
},] }
|
|
4867
4982
|
];
|
|
4868
4983
|
AlertComponent.ctorParameters = function () { return [
|
|
4869
|
-
{ type: core.ChangeDetectorRef }
|
|
4984
|
+
{ type: core.ChangeDetectorRef },
|
|
4985
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
4870
4986
|
]; };
|
|
4871
4987
|
AlertComponent.propDecorators = {
|
|
4872
4988
|
title: [{ type: core.Input }],
|
|
@@ -4882,22 +4998,25 @@
|
|
|
4882
4998
|
|
|
4883
4999
|
var ConfirmComponent = /** @class */ (function (_super) {
|
|
4884
5000
|
__extends(ConfirmComponent, _super);
|
|
4885
|
-
function ConfirmComponent(_cdr) {
|
|
4886
|
-
var _this =
|
|
5001
|
+
function ConfirmComponent(_cdr, libConfig) {
|
|
5002
|
+
var _this = this;
|
|
5003
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
5004
|
+
_this = _super.call(this, _cdr, libConfig) || this;
|
|
4887
5005
|
_this._cdr = _cdr;
|
|
4888
|
-
_this.
|
|
5006
|
+
_this.libConfig = libConfig;
|
|
4889
5007
|
_this.close = new core.EventEmitter();
|
|
4890
|
-
_this.
|
|
4891
|
-
_this.preventPageScroll = true;
|
|
4892
|
-
_this.confirmButtonLabel = 'Si';
|
|
4893
|
-
_this.rejectButtonLabel = 'No';
|
|
5008
|
+
_this.setFocusOnError = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.confirmComponent) === null || _b === void 0 ? void 0 : _b.setFocusOnError, undefined);
|
|
5009
|
+
_this.preventPageScroll = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.confirmComponent) === null || _d === void 0 ? void 0 : _d.preventPageScroll, true);
|
|
5010
|
+
_this.confirmButtonLabel = getConfigValue((_f = (_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.confirmComponent) === null || _f === void 0 ? void 0 : _f.confirmButtonLabel, 'Si');
|
|
5011
|
+
_this.rejectButtonLabel = getConfigValue((_h = (_g = _this.libConfig) === null || _g === void 0 ? void 0 : _g.confirmComponent) === null || _h === void 0 ? void 0 : _h.rejectButtonLabel, 'No');
|
|
4894
5012
|
_this.confirm = new core.EventEmitter();
|
|
4895
5013
|
_this.reject = new core.EventEmitter();
|
|
4896
5014
|
_this.logPrefix = '[inail-confirm]';
|
|
4897
|
-
_this.title = 'Conferma operazione';
|
|
4898
|
-
_this.message = 'Confermare l\'operazione richiesta?';
|
|
4899
|
-
_this.width = 'S';
|
|
4900
|
-
_this.closeButtonTitle = 'Chiudi modale di conferma';
|
|
5015
|
+
_this.title = getConfigValue((_k = (_j = _this.libConfig) === null || _j === void 0 ? void 0 : _j.confirmComponent) === null || _k === void 0 ? void 0 : _k.title, 'Conferma operazione');
|
|
5016
|
+
_this.message = getConfigValue((_m = (_l = _this.libConfig) === null || _l === void 0 ? void 0 : _l.confirmComponent) === null || _m === void 0 ? void 0 : _m.message, 'Confermare l\'operazione richiesta?');
|
|
5017
|
+
_this.width = getConfigValue((_p = (_o = _this.libConfig) === null || _o === void 0 ? void 0 : _o.confirmComponent) === null || _p === void 0 ? void 0 : _p.width, 'S');
|
|
5018
|
+
_this.closeButtonTitle = getConfigValue((_r = (_q = _this.libConfig) === null || _q === void 0 ? void 0 : _q.confirmComponent) === null || _r === void 0 ? void 0 : _r.closeButtonTitle, 'Chiudi modale di conferma');
|
|
5019
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.confirmComponent);
|
|
4901
5020
|
_this.detach();
|
|
4902
5021
|
return _this;
|
|
4903
5022
|
}
|
|
@@ -4941,7 +5060,8 @@
|
|
|
4941
5060
|
},] }
|
|
4942
5061
|
];
|
|
4943
5062
|
ConfirmComponent.ctorParameters = function () { return [
|
|
4944
|
-
{ type: core.ChangeDetectorRef }
|
|
5063
|
+
{ type: core.ChangeDetectorRef },
|
|
5064
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
4945
5065
|
]; };
|
|
4946
5066
|
ConfirmComponent.propDecorators = {
|
|
4947
5067
|
title: [{ type: core.Input }],
|
|
@@ -5236,18 +5356,22 @@
|
|
|
5236
5356
|
|
|
5237
5357
|
var TrCheckboxComponent = /** @class */ (function (_super) {
|
|
5238
5358
|
__extends(TrCheckboxComponent, _super);
|
|
5239
|
-
function TrCheckboxComponent(cdr) {
|
|
5240
|
-
var _this =
|
|
5359
|
+
function TrCheckboxComponent(cdr, libConfig) {
|
|
5360
|
+
var _this = this;
|
|
5361
|
+
var _a, _b;
|
|
5362
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
5241
5363
|
_this.cdr = cdr;
|
|
5364
|
+
_this.libConfig = libConfig;
|
|
5242
5365
|
// @Input()
|
|
5243
5366
|
// checkAll: boolean = false;
|
|
5244
|
-
_this.hiddenLabel = true;
|
|
5367
|
+
_this.hiddenLabel = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.trCheckboxComponent) === null || _b === void 0 ? void 0 : _b.hiddenLabel, true);
|
|
5245
5368
|
_this.disabled = false;
|
|
5246
5369
|
_this.initComplete = new rxjs.ReplaySubject();
|
|
5247
5370
|
_this.onclick = new core.EventEmitter();
|
|
5248
5371
|
_this.onDestroy = new core.EventEmitter();
|
|
5249
5372
|
_this.checked = false;
|
|
5250
5373
|
_this.logPrefix = "[inail-tr-checkbox]";
|
|
5374
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.trCheckboxComponent);
|
|
5251
5375
|
_this.detach();
|
|
5252
5376
|
return _this;
|
|
5253
5377
|
}
|
|
@@ -5289,7 +5413,8 @@
|
|
|
5289
5413
|
},] }
|
|
5290
5414
|
];
|
|
5291
5415
|
TrCheckboxComponent.ctorParameters = function () { return [
|
|
5292
|
-
{ type: core.ChangeDetectorRef }
|
|
5416
|
+
{ type: core.ChangeDetectorRef },
|
|
5417
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
5293
5418
|
]; };
|
|
5294
5419
|
TrCheckboxComponent.propDecorators = {
|
|
5295
5420
|
label: [{ type: core.Input }],
|
|
@@ -5307,26 +5432,29 @@
|
|
|
5307
5432
|
var DESC = 'desc';
|
|
5308
5433
|
var TableComponent = /** @class */ (function (_super) {
|
|
5309
5434
|
__extends(TableComponent, _super);
|
|
5310
|
-
function TableComponent(cdr, renderer) {
|
|
5311
|
-
var _this =
|
|
5435
|
+
function TableComponent(cdr, renderer, libConfig) {
|
|
5436
|
+
var _this = this;
|
|
5437
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5438
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
5312
5439
|
_this.cdr = cdr;
|
|
5313
5440
|
_this.renderer = renderer;
|
|
5441
|
+
_this.libConfig = libConfig;
|
|
5314
5442
|
_this.externalPaginationSorting = false;
|
|
5315
5443
|
_this.displayedDataChange = new core.EventEmitter();
|
|
5316
|
-
_this.elementsPerPage = DEFAULT_TABLE_LENGTH$1;
|
|
5444
|
+
_this.elementsPerPage = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.tableComponent) === null || _b === void 0 ? void 0 : _b.elementsPerPage, DEFAULT_TABLE_LENGTH$1);
|
|
5317
5445
|
// -----------------------------------------------------------------------
|
|
5318
|
-
_this.elementsPerPageOptions = [10, 25, 50, 100];
|
|
5446
|
+
_this.elementsPerPageOptions = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.tableComponent) === null || _d === void 0 ? void 0 : _d.elementsPerPageOptions, [10, 25, 50, 100]);
|
|
5319
5447
|
// @Input()
|
|
5320
5448
|
// waiting: boolean = false;
|
|
5321
5449
|
// @Input()
|
|
5322
5450
|
// waitingText: string = 'Recupero in corso...';
|
|
5323
5451
|
_this.noDataFound = false;
|
|
5324
|
-
_this.noDataFoundText = 'Nessun elemento trovato';
|
|
5452
|
+
_this.noDataFoundText = getConfigValue((_f = (_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.tableComponent) === null || _f === void 0 ? void 0 : _f.noDataFoundText, 'Nessun elemento trovato');
|
|
5325
5453
|
_this.disablePagination = false;
|
|
5326
5454
|
_this.pagination = new core.EventEmitter();
|
|
5327
|
-
_this.tallRows = false;
|
|
5328
|
-
_this.captionHidden = false;
|
|
5329
|
-
_this.bgWhite = true;
|
|
5455
|
+
_this.tallRows = getConfigValue((_h = (_g = _this.libConfig) === null || _g === void 0 ? void 0 : _g.tableComponent) === null || _h === void 0 ? void 0 : _h.tallRows, false);
|
|
5456
|
+
_this.captionHidden = getConfigValue((_k = (_j = _this.libConfig) === null || _j === void 0 ? void 0 : _j.tableComponent) === null || _k === void 0 ? void 0 : _k.captionHidden, false);
|
|
5457
|
+
_this.bgWhite = getConfigValue((_m = (_l = _this.libConfig) === null || _l === void 0 ? void 0 : _l.tableComponent) === null || _m === void 0 ? void 0 : _m.bgWhite, true);
|
|
5330
5458
|
_this.detailsClick = new core.EventEmitter();
|
|
5331
5459
|
_this.checkedRowsChange = new core.EventEmitter();
|
|
5332
5460
|
_this.visualizzaBaseFooter = true;
|
|
@@ -5345,6 +5473,7 @@
|
|
|
5345
5473
|
_this.isThCheckbox = function (trcb) { return document.querySelectorAll("th #" + trcb.id).length > 0; };
|
|
5346
5474
|
_this.isSelezionabile = function (value) { return _this.righeSelezionabili.some(function (valoreSelezionabile) { return valoreSelezionabile == value; }); };
|
|
5347
5475
|
_this.logPrefix = '[inail-table]';
|
|
5476
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.tableComponent);
|
|
5348
5477
|
_this.detach();
|
|
5349
5478
|
return _this;
|
|
5350
5479
|
}
|
|
@@ -5826,7 +5955,8 @@
|
|
|
5826
5955
|
];
|
|
5827
5956
|
TableComponent.ctorParameters = function () { return [
|
|
5828
5957
|
{ type: core.ChangeDetectorRef },
|
|
5829
|
-
{ type: core.Renderer2 }
|
|
5958
|
+
{ type: core.Renderer2 },
|
|
5959
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
5830
5960
|
]; };
|
|
5831
5961
|
TableComponent.propDecorators = {
|
|
5832
5962
|
dataSource: [{ type: core.Input }],
|
|
@@ -5861,15 +5991,22 @@
|
|
|
5861
5991
|
|
|
5862
5992
|
var InputFileComponent = /** @class */ (function (_super) {
|
|
5863
5993
|
__extends(InputFileComponent, _super);
|
|
5864
|
-
function InputFileComponent(cdr) {
|
|
5865
|
-
var _this =
|
|
5994
|
+
function InputFileComponent(cdr, libConfig) {
|
|
5995
|
+
var _this = this;
|
|
5996
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5997
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
5866
5998
|
_this.cdr = cdr;
|
|
5867
|
-
_this.
|
|
5868
|
-
_this.
|
|
5869
|
-
_this.
|
|
5870
|
-
_this.
|
|
5999
|
+
_this.libConfig = libConfig;
|
|
6000
|
+
_this.placeholder = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.inputFileComponent) === null || _b === void 0 ? void 0 : _b.placeholder, undefined);
|
|
6001
|
+
_this.chooseButtonText = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.inputFileComponent) === null || _d === void 0 ? void 0 : _d.chooseButtonText, 'Scegli il file');
|
|
6002
|
+
_this.addButtonText = getConfigValue((_f = (_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.inputFileComponent) === null || _f === void 0 ? void 0 : _f.addButtonText, 'Aggiungi');
|
|
6003
|
+
_this.chooseButton = getConfigValue((_h = (_g = _this.libConfig) === null || _g === void 0 ? void 0 : _g.inputFileComponent) === null || _h === void 0 ? void 0 : _h.chooseButton, true);
|
|
6004
|
+
_this.addButton = getConfigValue((_k = (_j = _this.libConfig) === null || _j === void 0 ? void 0 : _j.inputFileComponent) === null || _k === void 0 ? void 0 : _k.addButton, true);
|
|
6005
|
+
/** Estensioni accettate separate da virgola (esempio: ".pdf, .txt, .doc") */
|
|
6006
|
+
_this.accept = getConfigValue((_m = (_l = _this.libConfig) === null || _l === void 0 ? void 0 : _l.inputFileComponent) === null || _m === void 0 ? void 0 : _m.accept, undefined);
|
|
5871
6007
|
_this.fileChange = new core.EventEmitter();
|
|
5872
6008
|
_this.logPrefix = "[inail-input-file]";
|
|
6009
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.inputFileComponent);
|
|
5873
6010
|
_this.detach();
|
|
5874
6011
|
return _this;
|
|
5875
6012
|
}
|
|
@@ -5923,7 +6060,8 @@
|
|
|
5923
6060
|
},] }
|
|
5924
6061
|
];
|
|
5925
6062
|
InputFileComponent.ctorParameters = function () { return [
|
|
5926
|
-
{ type: core.ChangeDetectorRef }
|
|
6063
|
+
{ type: core.ChangeDetectorRef },
|
|
6064
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
5927
6065
|
]; };
|
|
5928
6066
|
InputFileComponent.propDecorators = {
|
|
5929
6067
|
placeholder: [{ type: core.Input }],
|
|
@@ -5938,12 +6076,20 @@
|
|
|
5938
6076
|
|
|
5939
6077
|
var InputNumberComponent = /** @class */ (function (_super) {
|
|
5940
6078
|
__extends(InputNumberComponent, _super);
|
|
5941
|
-
function InputNumberComponent(cdr) {
|
|
5942
|
-
var _this =
|
|
6079
|
+
function InputNumberComponent(cdr, libConfig) {
|
|
6080
|
+
var _this = this;
|
|
6081
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6082
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
5943
6083
|
_this.cdr = cdr;
|
|
5944
|
-
_this.
|
|
6084
|
+
_this.libConfig = libConfig;
|
|
6085
|
+
_this.max = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.inputNumberComponent) === null || _b === void 0 ? void 0 : _b.max, undefined);
|
|
6086
|
+
_this.min = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.inputNumberComponent) === null || _d === void 0 ? void 0 : _d.min, undefined);
|
|
6087
|
+
_this.step = getConfigValue((_f = (_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.inputNumberComponent) === null || _f === void 0 ? void 0 : _f.step, undefined);
|
|
6088
|
+
_this.numberOfDecimals = getConfigValue((_h = (_g = _this.libConfig) === null || _g === void 0 ? void 0 : _g.inputNumberComponent) === null || _h === void 0 ? void 0 : _h.numberOfDecimals, undefined);
|
|
6089
|
+
_this.hideArrows = getConfigValue((_k = (_j = _this.libConfig) === null || _j === void 0 ? void 0 : _j.inputNumberComponent) === null || _k === void 0 ? void 0 : _k.hideArrows, false);
|
|
5945
6090
|
_this.valueChange = new core.EventEmitter();
|
|
5946
6091
|
_this.logPrefix = "[inail-input-number]";
|
|
6092
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.inputNumberComponent);
|
|
5947
6093
|
_this.detach();
|
|
5948
6094
|
return _this;
|
|
5949
6095
|
}
|
|
@@ -6062,7 +6208,8 @@
|
|
|
6062
6208
|
},] }
|
|
6063
6209
|
];
|
|
6064
6210
|
InputNumberComponent.ctorParameters = function () { return [
|
|
6065
|
-
{ type: core.ChangeDetectorRef }
|
|
6211
|
+
{ type: core.ChangeDetectorRef },
|
|
6212
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
6066
6213
|
]; };
|
|
6067
6214
|
InputNumberComponent.propDecorators = {
|
|
6068
6215
|
formControlElement: [{ type: core.ViewChild, args: ['formControl', { static: true },] }],
|
|
@@ -6120,18 +6267,22 @@
|
|
|
6120
6267
|
|
|
6121
6268
|
var SelectorComponent = /** @class */ (function (_super) {
|
|
6122
6269
|
__extends(SelectorComponent, _super);
|
|
6123
|
-
function SelectorComponent(cdr, re2) {
|
|
6124
|
-
var _this =
|
|
6270
|
+
function SelectorComponent(cdr, re2, libConfig) {
|
|
6271
|
+
var _this = this;
|
|
6272
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
6273
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
6125
6274
|
_this.cdr = cdr;
|
|
6126
6275
|
_this.re2 = re2;
|
|
6127
|
-
_this.
|
|
6128
|
-
_this.
|
|
6129
|
-
_this.
|
|
6276
|
+
_this.libConfig = libConfig;
|
|
6277
|
+
_this.showNumber = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.selectorComponent) === null || _b === void 0 ? void 0 : _b.showNumber, false);
|
|
6278
|
+
_this.separator = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.selectorComponent) === null || _d === void 0 ? void 0 : _d.separator, undefined);
|
|
6279
|
+
_this.fullNavigation = getConfigValue((_f = (_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.selectorComponent) === null || _f === void 0 ? void 0 : _f.fullNavigation, true);
|
|
6280
|
+
_this.contentsHidden = getConfigValue((_h = (_g = _this.libConfig) === null || _g === void 0 ? void 0 : _g.selectorComponent) === null || _h === void 0 ? void 0 : _h.contentsHidden, true);
|
|
6130
6281
|
_this.currentItem = 0;
|
|
6131
6282
|
_this.currentItemChange = new core.EventEmitter();
|
|
6132
6283
|
_this.itemChange = new core.EventEmitter();
|
|
6133
|
-
_this.prevButtonTitle = 'scorri selettore a destra';
|
|
6134
|
-
_this.nextButtonTitle = 'scorri selettore a sinistra';
|
|
6284
|
+
_this.prevButtonTitle = getConfigValue((_k = (_j = _this.libConfig) === null || _j === void 0 ? void 0 : _j.selectorComponent) === null || _k === void 0 ? void 0 : _k.prevButtonTitle, 'scorri selettore a destra');
|
|
6285
|
+
_this.nextButtonTitle = getConfigValue((_m = (_l = _this.libConfig) === null || _l === void 0 ? void 0 : _l.selectorComponent) === null || _m === void 0 ? void 0 : _m.nextButtonTitle, 'scorri selettore a sinistra');
|
|
6135
6286
|
_this.inizializzazioneContenutiCompletata = false;
|
|
6136
6287
|
_this.totalTranslate = 0;
|
|
6137
6288
|
_this.getItemLabel = function (item, isLast) { return "" + item.label + (item.required ? ' *' : '') + (isNotBlankOrNull(_this.separator) ? ' ' : '') + (!isLast && isNotBlankOrNull(_this.separator) ? _this.separator : ''); };
|
|
@@ -6142,6 +6293,7 @@
|
|
|
6142
6293
|
_this.re2.setStyle(_this.slickTrack.nativeElement, 'transform', "translate(" + _this.totalTranslate + "px)");
|
|
6143
6294
|
};
|
|
6144
6295
|
_this.logPrefix = '[inail-selector]';
|
|
6296
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.selectorComponent);
|
|
6145
6297
|
_this.detach();
|
|
6146
6298
|
return _this;
|
|
6147
6299
|
}
|
|
@@ -6292,7 +6444,8 @@
|
|
|
6292
6444
|
];
|
|
6293
6445
|
SelectorComponent.ctorParameters = function () { return [
|
|
6294
6446
|
{ type: core.ChangeDetectorRef },
|
|
6295
|
-
{ type: core.Renderer2 }
|
|
6447
|
+
{ type: core.Renderer2 },
|
|
6448
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
6296
6449
|
]; };
|
|
6297
6450
|
SelectorComponent.propDecorators = {
|
|
6298
6451
|
items: [{ type: core.Input }],
|
|
@@ -6316,20 +6469,24 @@
|
|
|
6316
6469
|
|
|
6317
6470
|
var WizardComponent = /** @class */ (function (_super) {
|
|
6318
6471
|
__extends(WizardComponent, _super);
|
|
6319
|
-
function WizardComponent(cdr, re2) {
|
|
6320
|
-
var _this =
|
|
6472
|
+
function WizardComponent(cdr, re2, libConfig) {
|
|
6473
|
+
var _this = this;
|
|
6474
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6475
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
6321
6476
|
_this.cdr = cdr;
|
|
6322
6477
|
_this.re2 = re2;
|
|
6478
|
+
_this.libConfig = libConfig;
|
|
6323
6479
|
_this.showNumber = true;
|
|
6324
6480
|
_this.separator = '>';
|
|
6325
|
-
_this.contentsHidden = true;
|
|
6481
|
+
_this.contentsHidden = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.wizardComponent) === null || _b === void 0 ? void 0 : _b.contentsHidden, true);
|
|
6326
6482
|
_this.currentStep = 0;
|
|
6327
6483
|
_this.currentStepChange = new core.EventEmitter();
|
|
6328
6484
|
_this.stepChange = new core.EventEmitter();
|
|
6329
6485
|
_this.switchTo = new core.EventEmitter();
|
|
6330
|
-
_this.prevButtonTitle = 'scorri wizard a destra';
|
|
6331
|
-
_this.nextButtonTitle = 'scorri wizard a sinistra';
|
|
6486
|
+
_this.prevButtonTitle = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.wizardComponent) === null || _d === void 0 ? void 0 : _d.prevButtonTitle, 'scorri wizard a destra');
|
|
6487
|
+
_this.nextButtonTitle = getConfigValue((_f = (_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.wizardComponent) === null || _f === void 0 ? void 0 : _f.nextButtonTitle, 'scorri wizard a sinistra');
|
|
6332
6488
|
_this.logPrefix = '[inail-wizard]';
|
|
6489
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.wizardComponent);
|
|
6333
6490
|
_this.detach();
|
|
6334
6491
|
return _this;
|
|
6335
6492
|
}
|
|
@@ -6397,7 +6554,8 @@
|
|
|
6397
6554
|
];
|
|
6398
6555
|
WizardComponent.ctorParameters = function () { return [
|
|
6399
6556
|
{ type: core.ChangeDetectorRef },
|
|
6400
|
-
{ type: core.Renderer2 }
|
|
6557
|
+
{ type: core.Renderer2 },
|
|
6558
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
6401
6559
|
]; };
|
|
6402
6560
|
WizardComponent.propDecorators = {
|
|
6403
6561
|
steps: [{ type: core.Input }],
|
|
@@ -6417,9 +6575,10 @@
|
|
|
6417
6575
|
|
|
6418
6576
|
var ProgressBarComponent = /** @class */ (function (_super) {
|
|
6419
6577
|
__extends(ProgressBarComponent, _super);
|
|
6420
|
-
function ProgressBarComponent(cdr) {
|
|
6421
|
-
var _this = _super.call(this, cdr) || this;
|
|
6578
|
+
function ProgressBarComponent(cdr, libConfig) {
|
|
6579
|
+
var _this = _super.call(this, cdr, libConfig) || this;
|
|
6422
6580
|
_this.cdr = cdr;
|
|
6581
|
+
_this.libConfig = libConfig;
|
|
6423
6582
|
_this.valuenow = 0;
|
|
6424
6583
|
_this.logPrefix = "[inail-progress-bar]";
|
|
6425
6584
|
_this.detach();
|
|
@@ -6458,7 +6617,8 @@
|
|
|
6458
6617
|
},] }
|
|
6459
6618
|
];
|
|
6460
6619
|
ProgressBarComponent.ctorParameters = function () { return [
|
|
6461
|
-
{ type: core.ChangeDetectorRef }
|
|
6620
|
+
{ type: core.ChangeDetectorRef },
|
|
6621
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
6462
6622
|
]; };
|
|
6463
6623
|
ProgressBarComponent.propDecorators = {
|
|
6464
6624
|
label: [{ type: core.Input }],
|
|
@@ -6467,13 +6627,17 @@
|
|
|
6467
6627
|
|
|
6468
6628
|
var MultiSelectComponent = /** @class */ (function (_super) {
|
|
6469
6629
|
__extends(MultiSelectComponent, _super);
|
|
6470
|
-
function MultiSelectComponent(cdr) {
|
|
6471
|
-
var _this =
|
|
6630
|
+
function MultiSelectComponent(cdr, libConfig) {
|
|
6631
|
+
var _this = this;
|
|
6632
|
+
var _a, _b, _c, _d;
|
|
6633
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
6472
6634
|
_this.cdr = cdr;
|
|
6635
|
+
_this.libConfig = libConfig;
|
|
6473
6636
|
_this.options = [];
|
|
6474
6637
|
_this.values = [];
|
|
6475
6638
|
_this.valuesChange = new core.EventEmitter();
|
|
6476
|
-
_this.placeholder = '- seleziona opzioni -';
|
|
6639
|
+
_this.placeholder = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.multiSelectComponent) === null || _b === void 0 ? void 0 : _b.placeholder, '- seleziona opzioni -');
|
|
6640
|
+
_this.sort = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.multiSelectComponent) === null || _d === void 0 ? void 0 : _d.sort, undefined);
|
|
6477
6641
|
_this.toggle = function () { return window['$'](_this.formControlElement.nativeElement).dropdown('toggle'); };
|
|
6478
6642
|
_this.isExpanded = function () { return _this.formControlElement.nativeElement.getAttribute('aria-expanded') === 'true'; };
|
|
6479
6643
|
_this.hasFormControlFocus = function () { return _this.formControlElement.nativeElement.matches(':focus'); };
|
|
@@ -6483,6 +6647,7 @@
|
|
|
6483
6647
|
_this.pushValue = function (value) { return _this.values = _this.options.filter(function (opt) { return opt.value === value || _this.isChecked(opt.value); }).map(function (opt) { return opt.value; }); };
|
|
6484
6648
|
_this.isFocusOut = function () { return window['$'](_this.multiSelect.nativeElement).find(document.activeElement).length == 0; };
|
|
6485
6649
|
_this.logPrefix = "[inail-multi-select]";
|
|
6650
|
+
_super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.multiSelectComponent);
|
|
6486
6651
|
_this.detach();
|
|
6487
6652
|
return _this;
|
|
6488
6653
|
}
|
|
@@ -6577,7 +6742,8 @@
|
|
|
6577
6742
|
},] }
|
|
6578
6743
|
];
|
|
6579
6744
|
MultiSelectComponent.ctorParameters = function () { return [
|
|
6580
|
-
{ type: core.ChangeDetectorRef }
|
|
6745
|
+
{ type: core.ChangeDetectorRef },
|
|
6746
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
6581
6747
|
]; };
|
|
6582
6748
|
MultiSelectComponent.propDecorators = {
|
|
6583
6749
|
multiSelect: [{ type: core.ViewChild, args: ['multiSelect', { static: true },] }],
|
|
@@ -6590,6 +6756,169 @@
|
|
|
6590
6756
|
sort: [{ type: core.Input }]
|
|
6591
6757
|
};
|
|
6592
6758
|
|
|
6759
|
+
var HM_PLACEHOLDER = 'HH:MM';
|
|
6760
|
+
var HMS_PLACEHOLDER = 'HH:MM:SS';
|
|
6761
|
+
var ACCEPTED_INPUTS = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'Backspace', 'Delete'];
|
|
6762
|
+
var InputTimeComponent = /** @class */ (function (_super) {
|
|
6763
|
+
__extends(InputTimeComponent, _super);
|
|
6764
|
+
function InputTimeComponent(cdr, libConfig) {
|
|
6765
|
+
var _this = this;
|
|
6766
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
6767
|
+
_this = _super.call(this, cdr, libConfig) || this;
|
|
6768
|
+
_this.cdr = cdr;
|
|
6769
|
+
_this.libConfig = libConfig;
|
|
6770
|
+
_this.timeHMRegex = new RegExp(/^((([01][0-9])|([2][0-3]))[:]([0-5][0-9])$)/gm);
|
|
6771
|
+
_this.timeHMSRegex = new RegExp(/^((([01][0-9])|([2][0-3]))[:]([0-5][0-9])[:]([0-5][0-9])$)/gm);
|
|
6772
|
+
_this.validInputRegx = new RegExp(/^([0-9]+[0-9:]*)$/gm);
|
|
6773
|
+
_this.nativeInputTypeTime = getConfigValue((_b = (_a = _this.libConfig) === null || _a === void 0 ? void 0 : _a.inputTimeComponent) === null || _b === void 0 ? void 0 : _b.nativeInputTypeTime, false);
|
|
6774
|
+
_this.withSeconds = getConfigValue((_d = (_c = _this.libConfig) === null || _c === void 0 ? void 0 : _c.inputTimeComponent) === null || _d === void 0 ? void 0 : _d.withSeconds, false);
|
|
6775
|
+
_this.selfValidation = getConfigValue((_f = (_e = _this.libConfig) === null || _e === void 0 ? void 0 : _e.inputTimeComponent) === null || _f === void 0 ? void 0 : _f.selfValidation, true);
|
|
6776
|
+
_this.selfValidationError = getConfigValue((_h = (_g = _this.libConfig) === null || _g === void 0 ? void 0 : _g.inputTimeComponent) === null || _h === void 0 ? void 0 : _h.selfValidationError, 'Orario non valido');
|
|
6777
|
+
_this.step = getConfigValue((_k = (_j = _this.libConfig) === null || _j === void 0 ? void 0 : _j.inputTimeComponent) === null || _k === void 0 ? void 0 : _k.step, undefined);
|
|
6778
|
+
_this.valueChange = new core.EventEmitter();
|
|
6779
|
+
_this.preventPasting = getConfigValue((_m = (_l = _this.libConfig) === null || _l === void 0 ? void 0 : _l.inputTimeComponent) === null || _m === void 0 ? void 0 : _m.preventPasting, false);
|
|
6780
|
+
_this.getType = function () { return _this.nativeInputTypeTime ? 'time' : 'text'; };
|
|
6781
|
+
_this.getStep = function () { return _this.nativeInputTypeTime ? _this.step : undefined; };
|
|
6782
|
+
_this.getMaxLength = function () { return _this.nativeInputTypeTime ? undefined : (_this.withSeconds ? 8 : 5); };
|
|
6783
|
+
_this.isBefore2Points = function (value) { return (value === null || value === void 0 ? void 0 : value.length) == 2 || (_this.withSeconds == true && (value === null || value === void 0 ? void 0 : value.length) == 5); };
|
|
6784
|
+
_this.isValidValue = function (value) { return _this.withSeconds ? _this.timeHMSRegex.test(value) : _this.timeHMRegex.test(value); };
|
|
6785
|
+
_this.isValidInput = function (value) { return _this.validInputRegx.test(value); };
|
|
6786
|
+
_this.logPrefix = "[inail-input-time]";
|
|
6787
|
+
_this.emitDebug('NgInailCommonConfig:');
|
|
6788
|
+
_this.emitDebug((_o = _this.libConfig) === null || _o === void 0 ? void 0 : _o.inputTimeComponent);
|
|
6789
|
+
_super.prototype.overrideConfig.call(_this, (_p = _this.libConfig) === null || _p === void 0 ? void 0 : _p.inputTimeComponent);
|
|
6790
|
+
_this.detach();
|
|
6791
|
+
return _this;
|
|
6792
|
+
}
|
|
6793
|
+
InputTimeComponent.prototype.ngOnChanges = function (changes) {
|
|
6794
|
+
var _a, _b, _c;
|
|
6795
|
+
_super.prototype.ngOnChanges.call(this, changes);
|
|
6796
|
+
if (((_a = changes === null || changes === void 0 ? void 0 : changes.withSeconds) === null || _a === void 0 ? void 0 : _a.currentValue) != undefined) {
|
|
6797
|
+
this.placeholder = getConfigValue((_c = (_b = this.libConfig) === null || _b === void 0 ? void 0 : _b.inputTimeComponent) === null || _c === void 0 ? void 0 : _c.placeholder, this.withSeconds ? HMS_PLACEHOLDER : HM_PLACEHOLDER);
|
|
6798
|
+
}
|
|
6799
|
+
this.placeholder = this.getNotBlankValue(this.placeholder);
|
|
6800
|
+
this.cdr.detectChanges();
|
|
6801
|
+
};
|
|
6802
|
+
InputTimeComponent.prototype.ngOnInit = function () {
|
|
6803
|
+
var _this = this;
|
|
6804
|
+
_super.prototype.ngOnInit.call(this);
|
|
6805
|
+
this.emitDebug("@ViewChild('formControl')");
|
|
6806
|
+
this.emitDebug(this.formControlElement);
|
|
6807
|
+
if (this.focus) {
|
|
6808
|
+
this.push(this.focus.subscribe(function (scroll) {
|
|
6809
|
+
_this.emitDebug("Catch focus!");
|
|
6810
|
+
setFocus(_this.formControlElement.nativeElement, scroll);
|
|
6811
|
+
}));
|
|
6812
|
+
}
|
|
6813
|
+
};
|
|
6814
|
+
InputTimeComponent.prototype.ngAfterViewInit = function () {
|
|
6815
|
+
};
|
|
6816
|
+
Object.defineProperty(InputTimeComponent.prototype, "value", {
|
|
6817
|
+
get: function () {
|
|
6818
|
+
return this.inputValue;
|
|
6819
|
+
},
|
|
6820
|
+
set: function (value) {
|
|
6821
|
+
this.emitDebug("@Input set value: " + this.inputValue + " -> " + value);
|
|
6822
|
+
this.setValue(value);
|
|
6823
|
+
},
|
|
6824
|
+
enumerable: false,
|
|
6825
|
+
configurable: true
|
|
6826
|
+
});
|
|
6827
|
+
InputTimeComponent.prototype.writeValue = function (value) {
|
|
6828
|
+
this.emitDebug("writeValue: " + value);
|
|
6829
|
+
this.setValue(value);
|
|
6830
|
+
};
|
|
6831
|
+
InputTimeComponent.prototype.setValue = function (value) {
|
|
6832
|
+
this.emitDebug("setValue: " + value);
|
|
6833
|
+
if (this.inputValue != value) {
|
|
6834
|
+
this.emitDebug("update value: " + this.inputValue + " -> " + value);
|
|
6835
|
+
if (!this.nativeInputTypeTime) {
|
|
6836
|
+
value = this.bonificaValore(value);
|
|
6837
|
+
this.inputValue = this.isBefore2Points(value) ? value + ":" : value;
|
|
6838
|
+
if (isNotBlankOrNull(this.inputValue) && this.selfValidation && !this.isValidValue(this.inputValue)) {
|
|
6839
|
+
this.setDescError(this.selfValidationError);
|
|
6840
|
+
}
|
|
6841
|
+
else {
|
|
6842
|
+
this.cleanError();
|
|
6843
|
+
}
|
|
6844
|
+
}
|
|
6845
|
+
else {
|
|
6846
|
+
this.inputValue = value;
|
|
6847
|
+
this.cleanError();
|
|
6848
|
+
}
|
|
6849
|
+
this.cdr.detectChanges();
|
|
6850
|
+
this.emitDebug("this.valueChange.emit(" + this.inputValue + ")");
|
|
6851
|
+
this.valueChange.emit(this.inputValue);
|
|
6852
|
+
if (this.onChange) {
|
|
6853
|
+
this.onChange(value);
|
|
6854
|
+
}
|
|
6855
|
+
}
|
|
6856
|
+
};
|
|
6857
|
+
InputTimeComponent.prototype.bonificaValore = function (value) {
|
|
6858
|
+
var valoreBonificato = undefined;
|
|
6859
|
+
if (value != undefined) {
|
|
6860
|
+
var parti = value.replace(/([:]{2,})/g, ':').split(':');
|
|
6861
|
+
if (parti[0] != undefined && parti[0] == '24') {
|
|
6862
|
+
parti[0] = '00';
|
|
6863
|
+
}
|
|
6864
|
+
if (parti[1] != undefined && parti[1] == '60') {
|
|
6865
|
+
parti[1] = '00';
|
|
6866
|
+
}
|
|
6867
|
+
if (parti[2] != undefined && parti[2] == '60') {
|
|
6868
|
+
parti[2] = '00';
|
|
6869
|
+
}
|
|
6870
|
+
valoreBonificato = parti.join(':');
|
|
6871
|
+
}
|
|
6872
|
+
return valoreBonificato;
|
|
6873
|
+
};
|
|
6874
|
+
InputTimeComponent.prototype.onPaste = function ($event) {
|
|
6875
|
+
if (this.preventPasting === true) {
|
|
6876
|
+
$event.preventDefault();
|
|
6877
|
+
}
|
|
6878
|
+
};
|
|
6879
|
+
InputTimeComponent.prototype.onKeyDown = function (ev) {
|
|
6880
|
+
if (!ACCEPTED_INPUTS.some(function (v) { return v === ev.key; }) && ev.ctrlKey == false) {
|
|
6881
|
+
ev.preventDefault();
|
|
6882
|
+
}
|
|
6883
|
+
};
|
|
6884
|
+
InputTimeComponent.prototype.ngOnDestroy = function () {
|
|
6885
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
6886
|
+
};
|
|
6887
|
+
return InputTimeComponent;
|
|
6888
|
+
}(FormElementComponent));
|
|
6889
|
+
InputTimeComponent.decorators = [
|
|
6890
|
+
{ type: core.Component, args: [{
|
|
6891
|
+
selector: 'inail-input-time',
|
|
6892
|
+
template: "<div class=\"form-group {{getResponsiveClass()}} noPaddingLeft {{class}} inail-input-time\"\n [ngClass]=\"{'has-error': isThereError()}\">\n <label *ngIf=\"label\"\n class=\"control-label {{labelClass}}\"\n [ngClass]=\"{'sr-only': hiddenLabel}\"\n [attr.title]=\"labelTitle\"\n [for]=\"id\"\n [innerHTML]=\"getLabel()\"></label>\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 <div class=\"form-control-wrapper\"\n [ngClass]=\"{'no-label' : hiddenLabel || !label}\">\n <input #formControl\n [id]=\"id\"\n [attr.type]=\"getType()\"\n [attr.step]=\"getStep()\"\n class=\"form-control {{inputClass}}\"\n [ngClass]=\"{'disabled': disabled}\"\n [attr.name]=\"name\"\n [attr.title]=\"title\"\n [attr.maxlength]=\"getMaxLength()\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [attr.placeholder]=\"placeholder\"\n [attr.aria-required]=\"required === true ? true : undefined\"\n [attr.aria-invalid]=\"isThereError() === true ? true : undefined\"\n [attr.aria-describedBy]=\"getAriaDescribedBy()\"\n (blur)=\"onBlur()\"\n (keydown)=\"onKeyDown($event)\"\n (paste)=\"onPaste($event)\"\n (keyup.enter)=\"enterUp.emit()\"\n [(ngModel)]=\"value\">\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 <debug-pre *ngIf=\"showState\">\n <state-propertie [label]=\"'id'\" [propertie]=\"id\"></state-propertie>\n <state-propertie [label]=\"'label'\" [propertie]=\"label\"></state-propertie>\n <state-propertie [label]=\"'inputValue'\" [propertie]=\"inputValue\"></state-propertie>\n <state-propertie [label]=\"'placeholder'\" [propertie]=\"placeholder\" [hideIfNull]=\"false\"></state-propertie>\n <inail-form-element-state-properties [formElement]=\"this\"></inail-form-element-state-properties>\n </debug-pre>\n</div>\n",
|
|
6893
|
+
changeDetection: CHANGE_DETECTION_STRATEGY,
|
|
6894
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
6895
|
+
providers: [
|
|
6896
|
+
{
|
|
6897
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
6898
|
+
useExisting: core.forwardRef(function () { return InputTimeComponent; }),
|
|
6899
|
+
multi: true
|
|
6900
|
+
}
|
|
6901
|
+
],
|
|
6902
|
+
styles: [".inail-input-time .form-control-wrapper:after{font-family:FontAwesome;content:\"\\f017\";right:30px;position:absolute;top:30px;background-color:#fff;font-size:17px}.inail-input-time input[type=time]{padding-right:33px}.inail-input-time .form-control-wrapper.no-label:after{top:11px}"]
|
|
6903
|
+
},] }
|
|
6904
|
+
];
|
|
6905
|
+
InputTimeComponent.ctorParameters = function () { return [
|
|
6906
|
+
{ type: core.ChangeDetectorRef },
|
|
6907
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
|
|
6908
|
+
]; };
|
|
6909
|
+
InputTimeComponent.propDecorators = {
|
|
6910
|
+
formControlElement: [{ type: core.ViewChild, args: ['formControl', { static: true },] }],
|
|
6911
|
+
nativeInputTypeTime: [{ type: core.Input }],
|
|
6912
|
+
withSeconds: [{ type: core.Input }],
|
|
6913
|
+
selfValidation: [{ type: core.Input }],
|
|
6914
|
+
selfValidationError: [{ type: core.Input }],
|
|
6915
|
+
step: [{ type: core.Input }],
|
|
6916
|
+
placeholder: [{ type: core.Input }],
|
|
6917
|
+
valueChange: [{ type: core.Output }],
|
|
6918
|
+
preventPasting: [{ type: core.Input }],
|
|
6919
|
+
value: [{ type: core.Input }]
|
|
6920
|
+
};
|
|
6921
|
+
|
|
6593
6922
|
var NgInailCommonModule = /** @class */ (function () {
|
|
6594
6923
|
function NgInailCommonModule() {
|
|
6595
6924
|
}
|
|
@@ -6656,7 +6985,8 @@
|
|
|
6656
6985
|
ContainerComponent,
|
|
6657
6986
|
TrCheckboxComponent,
|
|
6658
6987
|
ProgressBarComponent,
|
|
6659
|
-
MultiSelectComponent
|
|
6988
|
+
MultiSelectComponent,
|
|
6989
|
+
InputTimeComponent
|
|
6660
6990
|
],
|
|
6661
6991
|
imports: [
|
|
6662
6992
|
common.CommonModule,
|
|
@@ -6706,7 +7036,8 @@
|
|
|
6706
7036
|
ContainerComponent,
|
|
6707
7037
|
TrCheckboxComponent,
|
|
6708
7038
|
ProgressBarComponent,
|
|
6709
|
-
MultiSelectComponent
|
|
7039
|
+
MultiSelectComponent,
|
|
7040
|
+
InputTimeComponent
|
|
6710
7041
|
],
|
|
6711
7042
|
providers: [common.DatePipe]
|
|
6712
7043
|
},] }
|
|
@@ -6743,6 +7074,7 @@
|
|
|
6743
7074
|
exports.InputFileComponent = InputFileComponent;
|
|
6744
7075
|
exports.InputNumberComponent = InputNumberComponent;
|
|
6745
7076
|
exports.InputTextComponent = InputTextComponent;
|
|
7077
|
+
exports.InputTimeComponent = InputTimeComponent;
|
|
6746
7078
|
exports.LoaderComponent = LoaderComponent;
|
|
6747
7079
|
exports.MenuComponent = MenuComponent;
|
|
6748
7080
|
exports.MenuIntranetComponent = MenuIntranetComponent;
|