ng-inail-common 2.0.29 → 2.0.30-beta.3

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.
Files changed (74) hide show
  1. package/bundles/ng-inail-common.umd.js +355 -166
  2. package/bundles/ng-inail-common.umd.js.map +1 -1
  3. package/bundles/ng-inail-common.umd.min.js +2 -2
  4. package/bundles/ng-inail-common.umd.min.js.map +1 -1
  5. package/esm2015/lib/components/core/base.component.js +15 -5
  6. package/esm2015/lib/components/core/basic-ux-element.component.js +13 -5
  7. package/esm2015/lib/components/core/form/checkbox/checkbox.component.js +9 -5
  8. package/esm2015/lib/components/core/form/form-element.component.js +20 -8
  9. package/esm2015/lib/components/core/form/input-date/input-date.component.js +15 -6
  10. package/esm2015/lib/components/core/form/input-file/input-file.component.js +18 -9
  11. package/esm2015/lib/components/core/form/input-number/input-number.component.js +16 -7
  12. package/esm2015/lib/components/core/form/input-text/input-text.component.js +15 -22
  13. package/esm2015/lib/components/core/form/multi-select/multi-select.component.js +13 -7
  14. package/esm2015/lib/components/core/form/radio-select/radio-select.component.js +13 -6
  15. package/esm2015/lib/components/core/form/select/select.component.js +15 -9
  16. package/esm2015/lib/components/core/form/textarea/textarea.component.js +16 -8
  17. package/esm2015/lib/components/core/layout/breadcrumb/breadcrumb.component.js +8 -5
  18. package/esm2015/lib/components/core/layout/menu/menu.component.js +21 -9
  19. package/esm2015/lib/components/core/responsive-element.component.js +13 -5
  20. package/esm2015/lib/components/core/table/table/table.component.js +17 -12
  21. package/esm2015/lib/components/core/table/tr-checkbox/tr-checkbox.component.js +12 -7
  22. package/esm2015/lib/components/core/ux/accordion/accordion.component.js +17 -10
  23. package/esm2015/lib/components/core/ux/alert/alert.component.js +16 -12
  24. package/esm2015/lib/components/core/ux/button/button.component.js +8 -5
  25. package/esm2015/lib/components/core/ux/confirm/confirm.component.js +19 -15
  26. package/esm2015/lib/components/core/ux/feedback/feedback.component.js +16 -9
  27. package/esm2015/lib/components/core/ux/modal/modal.component.js +16 -9
  28. package/esm2015/lib/components/core/ux/page-title/page-title.component.js +14 -7
  29. package/esm2015/lib/components/core/ux/popover/popover.component.js +15 -6
  30. package/esm2015/lib/components/core/ux/progress-bar/progress-bar.component.js +8 -5
  31. package/esm2015/lib/components/core/ux/selector/selector.component.js +17 -11
  32. package/esm2015/lib/components/core/ux/tab-group/tab-group.component.js +8 -5
  33. package/esm2015/lib/components/core/ux/tab-pane/tab-pane.component.js +13 -8
  34. package/esm2015/lib/components/core/ux/wizard/wizard.component.js +14 -9
  35. package/esm2015/lib/ng-inail-common.config.js +3 -0
  36. package/esm2015/lib/ng-inail-common.module.js +13 -1
  37. package/esm2015/public-api.js +2 -1
  38. package/fesm2015/ng-inail-common.js +333 -168
  39. package/fesm2015/ng-inail-common.js.map +1 -1
  40. package/lib/components/core/base.component.d.ts +5 -1
  41. package/lib/components/core/basic-ux-element.component.d.ts +4 -1
  42. package/lib/components/core/form/checkbox/checkbox.component.d.ts +3 -1
  43. package/lib/components/core/form/form-element.component.d.ts +4 -1
  44. package/lib/components/core/form/input-date/input-date.component.d.ts +3 -1
  45. package/lib/components/core/form/input-file/input-file.component.d.ts +3 -1
  46. package/lib/components/core/form/input-number/input-number.component.d.ts +3 -1
  47. package/lib/components/core/form/input-text/input-text.component.d.ts +3 -1
  48. package/lib/components/core/form/multi-select/multi-select.component.d.ts +3 -1
  49. package/lib/components/core/form/radio-select/radio-select.component.d.ts +3 -1
  50. package/lib/components/core/form/select/select.component.d.ts +3 -1
  51. package/lib/components/core/form/textarea/textarea.component.d.ts +3 -1
  52. package/lib/components/core/layout/breadcrumb/breadcrumb.component.d.ts +3 -1
  53. package/lib/components/core/layout/menu/menu.component.d.ts +3 -1
  54. package/lib/components/core/responsive-element.component.d.ts +4 -1
  55. package/lib/components/core/table/table/table.component.d.ts +3 -1
  56. package/lib/components/core/table/tr-checkbox/tr-checkbox.component.d.ts +3 -1
  57. package/lib/components/core/ux/accordion/accordion.component.d.ts +3 -1
  58. package/lib/components/core/ux/alert/alert.component.d.ts +3 -1
  59. package/lib/components/core/ux/button/button.component.d.ts +3 -1
  60. package/lib/components/core/ux/confirm/confirm.component.d.ts +3 -1
  61. package/lib/components/core/ux/feedback/feedback.component.d.ts +3 -1
  62. package/lib/components/core/ux/modal/modal.component.d.ts +3 -1
  63. package/lib/components/core/ux/page-title/page-title.component.d.ts +3 -1
  64. package/lib/components/core/ux/popover/popover.component.d.ts +3 -1
  65. package/lib/components/core/ux/progress-bar/progress-bar.component.d.ts +3 -1
  66. package/lib/components/core/ux/selector/selector.component.d.ts +3 -1
  67. package/lib/components/core/ux/tab-group/tab-group.component.d.ts +3 -1
  68. package/lib/components/core/ux/tab-pane/tab-pane.component.d.ts +3 -1
  69. package/lib/components/core/ux/wizard/wizard.component.d.ts +3 -1
  70. package/lib/ng-inail-common.config.d.ts +157 -0
  71. package/lib/ng-inail-common.module.d.ts +3 -0
  72. package/ng-inail-common.metadata.json +1 -1
  73. package/package.json +1 -1
  74. 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";
@@ -71,15 +73,18 @@
71
73
  })(exports.LogLevel || (exports.LogLevel = {}));
72
74
  var CHANGE_DETECTION_STRATEGY = core.ChangeDetectionStrategy.OnPush;
73
75
  // export const CHANGE_DETECTION_STRATEGY = ChangeDetectionStrategy.Default;
76
+ var getConfigValue = function (value, defaultValue) { return value != undefined ? value : defaultValue; };
74
77
  var BaseComponent = /** @class */ (function () {
75
- function BaseComponent(baseComponentCdr) {
78
+ function BaseComponent(baseComponentCdr, baseElementLibConfig) {
76
79
  var _this = this;
80
+ var _a;
77
81
  this.baseComponentCdr = baseComponentCdr;
82
+ this.baseElementLibConfig = baseElementLibConfig;
78
83
  /**
79
84
  * Se true effettua il log direttamente nella console.
80
85
  * Altrimenti emette l'evento log
81
86
  */
82
- this.logOnConsole = false;
87
+ this.logOnConsole = getConfigValue((_a = this.baseElementLibConfig) === null || _a === void 0 ? void 0 : _a.logOnConsole, false);
83
88
  /**
84
89
  *
85
90
  */
@@ -96,6 +101,11 @@
96
101
  this.log = new core.EventEmitter();
97
102
  saveEE();
98
103
  }
104
+ BaseComponent.prototype.overrideConfig = function (config) {
105
+ if (config) {
106
+ this.logOnConsole = getConfigValue(config.logOnConsole, this.logOnConsole);
107
+ }
108
+ };
99
109
  BaseComponent.prototype.ngOnChanges = function (changes) {
100
110
  this.emitDebug('ngOnChanges');
101
111
  this.emitDebug(changes);
@@ -152,7 +162,8 @@
152
162
  },] }
153
163
  ];
154
164
  BaseComponent.ctorParameters = function () { return [
155
- { type: core.ChangeDetectorRef }
165
+ { type: core.ChangeDetectorRef },
166
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
156
167
  ]; };
157
168
  BaseComponent.propDecorators = {
158
169
  log: [{ type: core.Output }],
@@ -477,12 +488,18 @@
477
488
 
478
489
  var BasicUxElementComponent = /** @class */ (function (_super) {
479
490
  __extends(BasicUxElementComponent, _super);
480
- function BasicUxElementComponent(uxElementCdr) {
481
- var _this = _super.call(this, uxElementCdr) || this;
491
+ function BasicUxElementComponent(uxElementCdr, uxElementLibConfig) {
492
+ var _this = _super.call(this, uxElementCdr, uxElementLibConfig) || this;
482
493
  _this.uxElementCdr = uxElementCdr;
494
+ _this.uxElementLibConfig = uxElementLibConfig;
483
495
  _this.id = uuidv4();
484
496
  return _this;
485
497
  }
498
+ BasicUxElementComponent.prototype.overrideConfig = function (config) {
499
+ if (config) {
500
+ _super.prototype.overrideConfig.call(this, config);
501
+ }
502
+ };
486
503
  BasicUxElementComponent.prototype.ngOnChanges = function (changes) {
487
504
  _super.prototype.ngOnChanges.call(this, changes);
488
505
  };
@@ -504,7 +521,8 @@
504
521
  },] }
505
522
  ];
506
523
  BasicUxElementComponent.ctorParameters = function () { return [
507
- { type: core.ChangeDetectorRef }
524
+ { type: core.ChangeDetectorRef },
525
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
508
526
  ]; };
509
527
  BasicUxElementComponent.propDecorators = {
510
528
  id: [{ type: core.Input }],
@@ -513,9 +531,10 @@
513
531
 
514
532
  var ResponsiveElementComponent = /** @class */ (function (_super) {
515
533
  __extends(ResponsiveElementComponent, _super);
516
- function ResponsiveElementComponent(responsiveElementCdr) {
517
- var _this = _super.call(this, responsiveElementCdr) || this;
534
+ function ResponsiveElementComponent(responsiveElementCdr, responsiveElementLibConfig) {
535
+ var _this = _super.call(this, responsiveElementCdr, responsiveElementLibConfig) || this;
518
536
  _this.responsiveElementCdr = responsiveElementCdr;
537
+ _this.responsiveElementLibConfig = responsiveElementLibConfig;
519
538
  _this.xs = 12;
520
539
  _this.xsClass = function () { return _this.xs != undefined ? "col-xs-" + _this.xs + " " : ''; };
521
540
  _this.smClass = function () { return _this.sm != undefined ? "col-sm-" + _this.sm + " " : ''; };
@@ -524,6 +543,11 @@
524
543
  _this.getResponsiveClass = function () { return ("" + _this.xsClass() + _this.smClass() + _this.mdClass() + _this.lgClass()).trim(); };
525
544
  return _this;
526
545
  }
546
+ ResponsiveElementComponent.prototype.overrideConfig = function (config) {
547
+ if (config) {
548
+ _super.prototype.overrideConfig.call(this, config);
549
+ }
550
+ };
527
551
  ResponsiveElementComponent.prototype.ngOnChanges = function (changes) {
528
552
  _super.prototype.ngOnChanges.call(this, changes);
529
553
  };
@@ -541,7 +565,8 @@
541
565
  },] }
542
566
  ];
543
567
  ResponsiveElementComponent.ctorParameters = function () { return [
544
- { type: core.ChangeDetectorRef }
568
+ { type: core.ChangeDetectorRef },
569
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
545
570
  ]; };
546
571
  ResponsiveElementComponent.propDecorators = {
547
572
  lg: [{ type: core.Input }],
@@ -1599,10 +1624,13 @@
1599
1624
  var ɵ1 = cloneItems;
1600
1625
  var MenuComponent = /** @class */ (function (_super) {
1601
1626
  __extends(MenuComponent, _super);
1602
- function MenuComponent(router, cdr) {
1603
- var _this = _super.call(this, cdr) || 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;
1604
1631
  _this.router = router;
1605
1632
  _this.cdr = cdr;
1633
+ _this.libConfig = libConfig;
1606
1634
  /**
1607
1635
  * Elemento parent del menu.
1608
1636
  * ( Questo input non deve essere passato, serve internamente per far funzionare il menu )
@@ -1614,24 +1642,30 @@
1614
1642
  * quando la proprieta linkRegex matcha
1615
1643
  * con l'url corrente
1616
1644
  */
1617
- _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);
1618
1646
  /**
1619
1647
  * Se true indica che le voci del menu sono collassabili.
1620
1648
  * Questa impostazione viene sovrascritta se specificato diversamente
1621
1649
  * negli elementi del menu
1622
1650
  */
1623
- _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);
1624
1658
  /**
1625
1659
  * Se true abilita l'effetto fisarmonica
1626
1660
  * sulle voci di menu espandibili.
1627
1661
  */
1628
- _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);
1629
1663
  /**
1630
1664
  * Se true espande automaticamente il percorso
1631
1665
  * verso un elemento
1632
1666
  * quando questo si riferisce all'url corrente
1633
1667
  */
1634
- _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);
1635
1669
  /**
1636
1670
  * Emette la voce di menu selezionata.
1637
1671
  */
@@ -1741,6 +1775,7 @@
1741
1775
  _this.espandiItem = function (item) { return _this.setCollapsed(item, 'show'); };
1742
1776
  _this.collassaItem = function (item) { return _this.setCollapsed(item, 'hide'); };
1743
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);
1744
1779
  _this.logPrefix = '[inail-menu]';
1745
1780
  return _this;
1746
1781
  }
@@ -2058,7 +2093,8 @@
2058
2093
  ];
2059
2094
  MenuComponent.ctorParameters = function () { return [
2060
2095
  { type: router.Router },
2061
- { type: core.ChangeDetectorRef }
2096
+ { type: core.ChangeDetectorRef },
2097
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
2062
2098
  ]; };
2063
2099
  MenuComponent.propDecorators = {
2064
2100
  parent: [{ type: core.Input }],
@@ -2084,9 +2120,10 @@
2084
2120
  var ButtonComponent = /** @class */ (function (_super) {
2085
2121
  __extends(ButtonComponent, _super);
2086
2122
  // inizializzazioneTerminata: boolean = false;
2087
- function ButtonComponent(cdr) {
2088
- var _this = _super.call(this, cdr) || this;
2123
+ function ButtonComponent(cdr, libConfig) {
2124
+ var _this = _super.call(this, cdr, libConfig) || this;
2089
2125
  _this.cdr = cdr;
2126
+ _this.libConfig = libConfig;
2090
2127
  _this.onclick = new core.EventEmitter();
2091
2128
  _this.setFocusOnError = false;
2092
2129
  _this.logPrefix = "[inail-button]";
@@ -2138,7 +2175,8 @@
2138
2175
  },] }
2139
2176
  ];
2140
2177
  ButtonComponent.ctorParameters = function () { return [
2141
- { type: core.ChangeDetectorRef }
2178
+ { type: core.ChangeDetectorRef },
2179
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
2142
2180
  ]; };
2143
2181
  ButtonComponent.propDecorators = {
2144
2182
  label: [{ type: core.Input }],
@@ -2844,10 +2882,11 @@
2844
2882
 
2845
2883
  var BreadcrumbComponent = /** @class */ (function (_super) {
2846
2884
  __extends(BreadcrumbComponent, _super);
2847
- function BreadcrumbComponent(router, cdr) {
2848
- var _this = _super.call(this, cdr) || this;
2885
+ function BreadcrumbComponent(router, cdr, libConfig) {
2886
+ var _this = _super.call(this, cdr, libConfig) || this;
2849
2887
  _this.router = router;
2850
2888
  _this.cdr = cdr;
2889
+ _this.libConfig = libConfig;
2851
2890
  _this.logPrefix = '[inail-breadcrumb]';
2852
2891
  _this.detach();
2853
2892
  return _this;
@@ -2911,7 +2950,8 @@
2911
2950
  ];
2912
2951
  BreadcrumbComponent.ctorParameters = function () { return [
2913
2952
  { type: router.Router },
2914
- { type: core.ChangeDetectorRef }
2953
+ { type: core.ChangeDetectorRef },
2954
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
2915
2955
  ]; };
2916
2956
  BreadcrumbComponent.propDecorators = {
2917
2957
  currentPage: [{ type: core.Input }],
@@ -2920,12 +2960,15 @@
2920
2960
 
2921
2961
  var FormElementComponent = /** @class */ (function (_super) {
2922
2962
  __extends(FormElementComponent, _super);
2923
- function FormElementComponent(formElementCdr) {
2924
- var _this = _super.call(this, formElementCdr) || this;
2963
+ function FormElementComponent(formElementCdr, formElementLibConfig) {
2964
+ var _this = this;
2965
+ var _a, _b, _c, _d;
2966
+ _this = _super.call(this, formElementCdr, formElementLibConfig) || this;
2925
2967
  _this.formElementCdr = formElementCdr;
2968
+ _this.formElementLibConfig = formElementLibConfig;
2926
2969
  _this.required = false;
2927
- _this.requiredSimbol = '*';
2928
- _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');
2929
2972
  _this.disabled = false;
2930
2973
  _this.readonly = false;
2931
2974
  _this.hasError = false;
@@ -2940,8 +2983,16 @@
2940
2983
  _this.getAriaDescribedBy = function () { return _this.showError() || isNotBlankOrNull(_this.description) ? _this.id + "-description" : undefined; };
2941
2984
  // showPopover = (): boolean => isNotBlankOrNull(this.popoverHeader) || isNotBlankOrNull(this.popoverContent);
2942
2985
  _this.showPopover = function () { return _this.popover === true; };
2986
+ _super.prototype.overrideConfig.call(_this, formElementLibConfig === null || formElementLibConfig === void 0 ? void 0 : formElementLibConfig.formElementComponent);
2943
2987
  return _this;
2944
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
+ };
2945
2996
  FormElementComponent.prototype.ngOnChanges = function (changes) {
2946
2997
  _super.prototype.ngOnChanges.call(this, changes);
2947
2998
  this.title = this.getNotBlankValue(this.title);
@@ -3004,7 +3055,8 @@
3004
3055
  },] }
3005
3056
  ];
3006
3057
  FormElementComponent.ctorParameters = function () { return [
3007
- { type: core.ChangeDetectorRef }
3058
+ { type: core.ChangeDetectorRef },
3059
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
3008
3060
  ]; };
3009
3061
  FormElementComponent.propDecorators = {
3010
3062
  label: [{ type: core.Input }],
@@ -3124,23 +3176,26 @@
3124
3176
 
3125
3177
  var InputTextComponent = /** @class */ (function (_super) {
3126
3178
  __extends(InputTextComponent, _super);
3127
- function InputTextComponent(cdr, datePipe) {
3128
- var _this = _super.call(this, cdr) || 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;
3129
3183
  _this.cdr = cdr;
3130
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);
3131
3187
  _this.isDate = false;
3132
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);
3133
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);
3134
3194
  _this.detach();
3135
3195
  return _this;
3136
3196
  }
3137
3197
  InputTextComponent.prototype.ngOnChanges = function (changes) {
3138
3198
  _super.prototype.ngOnChanges.call(this, changes);
3139
- // Con Form Control
3140
- // if (changes?.formControl?.isFirstChange()) {
3141
- //
3142
- // this.externalformControl = true;
3143
- // }
3144
3199
  this.maxlength = this.getNotBlankValue(this.maxlength);
3145
3200
  this.placeholder = this.getNotBlankValue(this.placeholder);
3146
3201
  this.cdr.detectChanges();
@@ -3165,7 +3220,6 @@
3165
3220
  },
3166
3221
  set: function (value) {
3167
3222
  this.emitDebug("@Input set value: " + this.inputValue + " -> " + value);
3168
- // this.inputValue = value; // Con Form Control
3169
3223
  this.setValue(value);
3170
3224
  },
3171
3225
  enumerable: false,
@@ -3188,16 +3242,6 @@
3188
3242
  this.onChange(value);
3189
3243
  }
3190
3244
  }
3191
- // Con Form Control
3192
- // if (value != this.formControl.value && !this.externalformControl) {
3193
- //
3194
- // this.emitDebug(`update value: ${this.formControl.value} -> ${value}`);
3195
- //
3196
- // // Serve per evitare l'errore ExpressionChangedAfterItHasBeenCheckedError
3197
- // setTimeout(() => {
3198
- // this.formControl.setValue((this.isDate && isDate(value)) ? this.datePipe.transform(value, 'dd/MM/yyyy') : value);
3199
- // })
3200
- // }
3201
3245
  };
3202
3246
  InputTextComponent.prototype.onPaste = function ($event) {
3203
3247
  if (this.preventPasting === true) {
@@ -3227,7 +3271,8 @@
3227
3271
  ];
3228
3272
  InputTextComponent.ctorParameters = function () { return [
3229
3273
  { type: core.ChangeDetectorRef },
3230
- { type: common.DatePipe }
3274
+ { type: common.DatePipe },
3275
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
3231
3276
  ]; };
3232
3277
  InputTextComponent.propDecorators = {
3233
3278
  formControlElement: [{ type: core.ViewChild, args: ['formControl', { static: true },] }],
@@ -3241,17 +3286,22 @@
3241
3286
 
3242
3287
  var SelectComponent = /** @class */ (function (_super) {
3243
3288
  __extends(SelectComponent, _super);
3244
- function SelectComponent(cdr) {
3245
- var _this = _super.call(this, cdr) || 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;
3246
3293
  _this.cdr = cdr;
3294
+ _this.libConfig = libConfig;
3247
3295
  _this.selectedValue = '';
3248
3296
  _this.options = [];
3249
- _this.blankOption = true;
3250
- _this.blankOptionText = '- seleziona opzione -';
3251
- _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);
3252
3301
  _this.select = new core.EventEmitter();
3253
3302
  _this.valueChange = new core.EventEmitter();
3254
3303
  _this.logPrefix = "[inail-select]";
3304
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.selectComponent);
3255
3305
  _this.detach();
3256
3306
  return _this;
3257
3307
  }
@@ -3335,7 +3385,8 @@
3335
3385
  },] }
3336
3386
  ];
3337
3387
  SelectComponent.ctorParameters = function () { return [
3338
- { type: core.ChangeDetectorRef }
3388
+ { type: core.ChangeDetectorRef },
3389
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
3339
3390
  ]; };
3340
3391
  SelectComponent.propDecorators = {
3341
3392
  formControlElement: [{ type: core.ViewChild, args: ['formControl',] }],
@@ -3396,11 +3447,17 @@
3396
3447
 
3397
3448
  var PageTitleComponent = /** @class */ (function (_super) {
3398
3449
  __extends(PageTitleComponent, _super);
3399
- function PageTitleComponent(cdr) {
3400
- var _this = _super.call(this, cdr) || this;
3450
+ function PageTitleComponent(cdr, libConfig) {
3451
+ var _this = this;
3452
+ var _a, _b;
3453
+ _this = _super.call(this, cdr, libConfig) || this;
3401
3454
  _this.cdr = cdr;
3402
- _this.autoCatchFocus = true;
3455
+ _this.libConfig = libConfig;
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);
3403
3457
  _this.logPrefix = '[inail-page-title]';
3458
+ _this.emitDebug('NgInailCommonConfig:');
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);
3404
3461
  _this.detach();
3405
3462
  return _this;
3406
3463
  }
@@ -3477,7 +3534,8 @@
3477
3534
  },] }
3478
3535
  ];
3479
3536
  PageTitleComponent.ctorParameters = function () { return [
3480
- { type: core.ChangeDetectorRef }
3537
+ { type: core.ChangeDetectorRef },
3538
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
3481
3539
  ]; };
3482
3540
  PageTitleComponent.propDecorators = {
3483
3541
  title: [{ type: core.Input }],
@@ -3491,20 +3549,26 @@
3491
3549
 
3492
3550
  var FeedbackComponent = /** @class */ (function (_super) {
3493
3551
  __extends(FeedbackComponent, _super);
3494
- function FeedbackComponent(cdr) {
3495
- var _this = _super.call(this, cdr) || 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;
3496
3556
  _this.cdr = cdr;
3557
+ _this.libConfig = libConfig;
3497
3558
  // Queste inizializzazioni servono per essere usate nel template
3498
3559
  _this.errorType = 'ERROR';
3499
3560
  _this.successType = 'SUCCESS';
3500
3561
  _this.type = 'SUCCESS';
3501
- _this.showIcon = true;
3502
- _this.autoCatchFocus = false;
3503
- _this.scrollToFocus = true;
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);
3504
3567
  _this.labelFeedback = false;
3505
3568
  // hasContent = () => this.feedbackContent?.nativeElement?.childElementCount > 0;
3506
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); };
3507
3570
  _this.logPrefix = '[inail-feedback]';
3571
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.confirmComponent);
3508
3572
  _this.detach();
3509
3573
  return _this;
3510
3574
  }
@@ -3555,7 +3619,8 @@
3555
3619
  },] }
3556
3620
  ];
3557
3621
  FeedbackComponent.ctorParameters = function () { return [
3558
- { type: core.ChangeDetectorRef }
3622
+ { type: core.ChangeDetectorRef },
3623
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
3559
3624
  ]; };
3560
3625
  FeedbackComponent.propDecorators = {
3561
3626
  mainMessage: [{ type: core.ViewChild, args: ['mainMessage',] }],
@@ -3588,14 +3653,19 @@
3588
3653
 
3589
3654
  var AccordionComponent = /** @class */ (function (_super) {
3590
3655
  __extends(AccordionComponent, _super);
3591
- function AccordionComponent(cdr, renderer) {
3592
- var _this = _super.call(this, cdr) || 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;
3593
3660
  _this.cdr = cdr;
3594
3661
  _this.renderer = renderer;
3595
- _this.ariaLabelOpened = "Riduce l'accordion";
3596
- _this.ariaLabelClosed = "Espande l'accordion";
3597
- _this.requiredSimbol = '*';
3598
- _this.requiredSimbolPosition = 'left';
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');
3599
3669
  _this.ontoggle = new core.EventEmitter();
3600
3670
  _this.getTitle = function () { return "" + ((_this.required && _this.requiredSimbolPosition === 'left') ? _this.requiredSimbol + " " : '') + _this.title + ((_this.required && _this.requiredSimbolPosition === 'right') ? " " + _this.requiredSimbol : ''); };
3601
3671
  _this.panelBodyHeight$ = new rxjs.BehaviorSubject(undefined);
@@ -3631,6 +3701,7 @@
3631
3701
  // }
3632
3702
  };
3633
3703
  _this.logPrefix = '[inail-accordion]';
3704
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.accordionComponent);
3634
3705
  _this.detach();
3635
3706
  return _this;
3636
3707
  }
@@ -3686,7 +3757,8 @@
3686
3757
  ];
3687
3758
  AccordionComponent.ctorParameters = function () { return [
3688
3759
  { type: core.ChangeDetectorRef },
3689
- { type: core.Renderer2 }
3760
+ { type: core.Renderer2 },
3761
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
3690
3762
  ]; };
3691
3763
  AccordionComponent.propDecorators = {
3692
3764
  title: [{ type: core.Input }],
@@ -3707,11 +3779,14 @@
3707
3779
 
3708
3780
  var TabPaneComponent = /** @class */ (function (_super) {
3709
3781
  __extends(TabPaneComponent, _super);
3710
- function TabPaneComponent(cdr) {
3711
- var _this = _super.call(this, cdr) || this;
3782
+ function TabPaneComponent(cdr, libConfig) {
3783
+ var _this = this;
3784
+ var _a, _b, _c, _d;
3785
+ _this = _super.call(this, cdr, libConfig) || this;
3712
3786
  _this.cdr = cdr;
3713
- _this.requiredSimbol = '*';
3714
- _this.requiredSimbolPosition = 'left';
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');
3715
3790
  _this.activeChange = new core.EventEmitter();
3716
3791
  // @Output()
3717
3792
  // selected: EventEmitter<boolean> = new EventEmitter<boolean>();
@@ -3719,6 +3794,7 @@
3719
3794
  _this.doDetechChange = function () { return _this.cdr.detectChanges(); };
3720
3795
  _this.getTitle = function () { return "" + ((_this.required && _this.requiredSimbolPosition === 'left') ? _this.requiredSimbol + " " : '') + _this.title + ((_this.required && _this.requiredSimbolPosition === 'right') ? " " + _this.requiredSimbol : ''); };
3721
3796
  _this.logPrefix = '[inail-tab-pane]';
3797
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.tabPaneComponent);
3722
3798
  _this.detach();
3723
3799
  return _this;
3724
3800
  }
@@ -3752,7 +3828,8 @@
3752
3828
  },] }
3753
3829
  ];
3754
3830
  TabPaneComponent.ctorParameters = function () { return [
3755
- { type: core.ChangeDetectorRef }
3831
+ { type: core.ChangeDetectorRef },
3832
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
3756
3833
  ]; };
3757
3834
  TabPaneComponent.propDecorators = {
3758
3835
  title: [{ type: core.Input }],
@@ -3765,9 +3842,10 @@
3765
3842
 
3766
3843
  var TabGroupComponent = /** @class */ (function (_super) {
3767
3844
  __extends(TabGroupComponent, _super);
3768
- function TabGroupComponent(cdr) {
3769
- var _this = _super.call(this, cdr) || this;
3845
+ function TabGroupComponent(cdr, libConfig) {
3846
+ var _this = _super.call(this, cdr, libConfig) || this;
3770
3847
  _this.cdr = cdr;
3848
+ _this.libConfig = libConfig;
3771
3849
  _this.selected = new core.EventEmitter();
3772
3850
  _this.isActive = function (id) { return _this.panes.some(function (pane) { return pane.id == id && pane.active; }); };
3773
3851
  // getPaneTitle = (pane: TabPaneComponent) => `${pane.title}${pane.required ? ' *' : ''}`;
@@ -3830,7 +3908,8 @@
3830
3908
  },] }
3831
3909
  ];
3832
3910
  TabGroupComponent.ctorParameters = function () { return [
3833
- { type: core.ChangeDetectorRef }
3911
+ { type: core.ChangeDetectorRef },
3912
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
3834
3913
  ]; };
3835
3914
  TabGroupComponent.propDecorators = {
3836
3915
  panes: [{ type: core.ContentChildren, args: [TabPaneComponent,] }],
@@ -3847,10 +3926,18 @@
3847
3926
  // }
3848
3927
  var PopoverComponent = /** @class */ (function (_super) {
3849
3928
  __extends(PopoverComponent, _super);
3850
- function PopoverComponent(cdr) {
3851
- var _this = _super.call(this, cdr) || this;
3929
+ function PopoverComponent(cdr, libConfig) {
3930
+ var _this = this;
3931
+ var _a, _b, _c, _d;
3932
+ _this = _super.call(this, cdr, libConfig) || this;
3852
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);
3853
3939
  _this.logPrefix = '[inail-popover]';
3940
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.popoverComponent);
3854
3941
  _this.detach();
3855
3942
  return _this;
3856
3943
  }
@@ -3897,7 +3984,8 @@
3897
3984
  },] }
3898
3985
  ];
3899
3986
  PopoverComponent.ctorParameters = function () { return [
3900
- { type: core.ChangeDetectorRef }
3987
+ { type: core.ChangeDetectorRef },
3988
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
3901
3989
  ]; };
3902
3990
  PopoverComponent.propDecorators = {
3903
3991
  openButton: [{ type: core.ViewChild, args: ['openButton',] }],
@@ -3910,12 +3998,18 @@
3910
3998
 
3911
3999
  var TextareaComponent = /** @class */ (function (_super) {
3912
4000
  __extends(TextareaComponent, _super);
3913
- function TextareaComponent(cdr) {
3914
- var _this = _super.call(this, cdr) || 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;
3915
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);
3916
4008
  _this.valueChange = new core.EventEmitter();
3917
- _this.maxlength = 300;
3918
- _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);
3919
4013
  _this.getCaratteriDisponibili = function () { return _this.maxlength - (_this.inputValue ? _this.inputValue.length : 0); };
3920
4014
  _this.isTextTooLong = function () { return _this.inputValue && _this.inputValue.length > _this.maxlength; };
3921
4015
  _this.isThereTextareaError = function () { return _this.isThereError() || _this.isTextTooLong(); };
@@ -3924,6 +4018,7 @@
3924
4018
  ? "Il testo non pu&ograve; essere lungo di " + _this.maxlength + " caratteri"
3925
4019
  : _this.error; };
3926
4020
  _this.logPrefix = "[inail-textarea]";
4021
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.textareaComponent);
3927
4022
  _this.detach();
3928
4023
  return _this;
3929
4024
  }
@@ -4008,7 +4103,8 @@
4008
4103
  },] }
4009
4104
  ];
4010
4105
  TextareaComponent.ctorParameters = function () { return [
4011
- { type: core.ChangeDetectorRef }
4106
+ { type: core.ChangeDetectorRef },
4107
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
4012
4108
  ]; };
4013
4109
  TextareaComponent.propDecorators = {
4014
4110
  formControlElement: [{ type: core.ViewChild, args: ['formControl', { static: true },] }],
@@ -4027,10 +4123,17 @@
4027
4123
  var ɵ1$2 = isLongTime;
4028
4124
  var InputDateComponent = /** @class */ (function (_super) {
4029
4125
  __extends(InputDateComponent, _super);
4030
- function InputDateComponent(cdr) {
4031
- var _this = _super.call(this, cdr) || this;
4126
+ function InputDateComponent(cdr, libConfig) {
4127
+ var _this = this;
4128
+ var _a, _b;
4129
+ _this = _super.call(this, cdr, libConfig) || this;
4032
4130
  _this.cdr = cdr;
4131
+ _this.libConfig = libConfig;
4033
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);
4034
4137
  _this.isValidInputValue = function () { return isBlankOrNull(_this.visibleData) || isInItalianFormat(_this.visibleData); };
4035
4138
  _this.isThereDataError = function () { return _this.isThereError() || !_this.isValidInputValue(); };
4036
4139
  _this.showDataError = function () { return _this.isThereDataError() && isNotBlankOrNull(_this.getDescError()); };
@@ -4043,6 +4146,7 @@
4043
4146
  _this.isDataDisabilitata = function (data) { return _this.disabledDates != undefined && _this.disabledDates.some(function (regex) { return _this.match(data, regex) != undefined; }); };
4044
4147
  _this.match = function (date, regex) { return date != undefined && date.match(new RegExp('^'.concat(regex).concat('$'), 'i')); };
4045
4148
  _this.logPrefix = "[inail-input-date]";
4149
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.inputDateComponent);
4046
4150
  _this.detach();
4047
4151
  return _this;
4048
4152
  }
@@ -4200,7 +4304,8 @@
4200
4304
  },] }
4201
4305
  ];
4202
4306
  InputDateComponent.ctorParameters = function () { return [
4203
- { type: core.ChangeDetectorRef }
4307
+ { type: core.ChangeDetectorRef },
4308
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
4204
4309
  ]; };
4205
4310
  InputDateComponent.propDecorators = {
4206
4311
  formControlElement: [{ type: core.ViewChild, args: ['formControl', { static: true },] }],
@@ -4419,14 +4524,20 @@
4419
4524
  var ɵ0$4 = clone$1;
4420
4525
  var RadioSelectComponent = /** @class */ (function (_super) {
4421
4526
  __extends(RadioSelectComponent, _super);
4422
- function RadioSelectComponent(cdr) {
4423
- var _this = _super.call(this, cdr) || this;
4527
+ function RadioSelectComponent(cdr, libConfig) {
4528
+ var _this = this;
4529
+ var _a, _b, _c, _d;
4530
+ _this = _super.call(this, cdr, libConfig) || this;
4424
4531
  _this.cdr = cdr;
4532
+ _this.libConfig = libConfig;
4425
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);
4426
4536
  _this.select = new core.EventEmitter();
4427
4537
  _this.valueChange = new core.EventEmitter();
4428
4538
  _this.getName = function () { return _this.name || _this.id + "-name"; };
4429
4539
  _this.logPrefix = "[inail-radio-select]";
4540
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.radioSelectComponent);
4430
4541
  _this.detach();
4431
4542
  return _this;
4432
4543
  }
@@ -4521,7 +4632,8 @@
4521
4632
  },] }
4522
4633
  ];
4523
4634
  RadioSelectComponent.ctorParameters = function () { return [
4524
- { type: core.ChangeDetectorRef }
4635
+ { type: core.ChangeDetectorRef },
4636
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
4525
4637
  ]; };
4526
4638
  RadioSelectComponent.propDecorators = {
4527
4639
  formControlElement: [{ type: core.ViewChild, args: ['formControl',] }],
@@ -4544,9 +4656,10 @@
4544
4656
 
4545
4657
  var CheckboxComponent = /** @class */ (function (_super) {
4546
4658
  __extends(CheckboxComponent, _super);
4547
- function CheckboxComponent(cdr) {
4548
- var _this = _super.call(this, cdr) || this;
4659
+ function CheckboxComponent(cdr, libConfig) {
4660
+ var _this = _super.call(this, cdr, libConfig) || this;
4549
4661
  _this.cdr = cdr;
4662
+ _this.libConfig = libConfig;
4550
4663
  _this.checkedChange = new core.EventEmitter();
4551
4664
  _this.checkboxClick = new core.EventEmitter();
4552
4665
  _this.click = new core.EventEmitter();
@@ -4560,6 +4673,7 @@
4560
4673
  _this.state.firstChange = false;
4561
4674
  };
4562
4675
  _this.logPrefix = "[inail-checkbox]";
4676
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.checkboxComponent);
4563
4677
  _this.detach();
4564
4678
  return _this;
4565
4679
  }
@@ -4640,7 +4754,8 @@
4640
4754
  },] }
4641
4755
  ];
4642
4756
  CheckboxComponent.ctorParameters = function () { return [
4643
- { type: core.ChangeDetectorRef }
4757
+ { type: core.ChangeDetectorRef },
4758
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
4644
4759
  ]; };
4645
4760
  CheckboxComponent.propDecorators = {
4646
4761
  formControlElement: [{ type: core.ViewChild, args: ['formControl', { static: true },] }],
@@ -4657,13 +4772,18 @@
4657
4772
  var PREVENT_PADDING_STYLE_CLASS = 'inail-modal-prevent-padding-style';
4658
4773
  var ModalComponent = /** @class */ (function (_super) {
4659
4774
  __extends(ModalComponent, _super);
4660
- function ModalComponent(cdr) {
4661
- var _this = _super.call(this, cdr) || 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;
4662
4779
  _this.cdr = cdr;
4663
- _this.closeButtonTitle = 'Chiudi modale';
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');
4664
4783
  _this.close = new core.EventEmitter();
4665
- _this.width = 'M';
4666
- _this.preventPageScroll = true;
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);
4667
4787
  _this.closeOnClick = function () { return _this.showModal(false); };
4668
4788
  _this.setFocusOnLastPageActiveElement = function () {
4669
4789
  if (_this.pageActiveElement != undefined) {
@@ -4676,6 +4796,7 @@
4676
4796
  }
4677
4797
  };
4678
4798
  _this.logPrefix = '[inail-modal]';
4799
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.modalComponent);
4679
4800
  _this.detach();
4680
4801
  return _this;
4681
4802
  }
@@ -4802,7 +4923,8 @@
4802
4923
  },] }
4803
4924
  ];
4804
4925
  ModalComponent.ctorParameters = function () { return [
4805
- { type: core.ChangeDetectorRef }
4926
+ { type: core.ChangeDetectorRef },
4927
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
4806
4928
  ]; };
4807
4929
  ModalComponent.propDecorators = {
4808
4930
  title: [{ type: core.Input }],
@@ -4816,18 +4938,21 @@
4816
4938
 
4817
4939
  var AlertComponent = /** @class */ (function (_super) {
4818
4940
  __extends(AlertComponent, _super);
4819
- function AlertComponent(_cdr) {
4820
- var _this = _super.call(this, _cdr) || 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;
4821
4945
  _this._cdr = _cdr;
4822
- _this.closeButtonTitle = 'Chiudi modale';
4946
+ _this.libConfig = libConfig;
4823
4947
  _this.close = new core.EventEmitter();
4824
- _this.width = 'M';
4825
- _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);
4826
4950
  _this.okOnClick = function () { var _a; return (_a = _this.show) === null || _a === void 0 ? void 0 : _a.emit(false); };
4827
4951
  _this.logPrefix = '[inail-alert]';
4828
- _this.title = 'Messaggio informativo';
4829
- _this.width = 'S';
4830
- _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);
4831
4956
  _this.detach();
4832
4957
  return _this;
4833
4958
  }
@@ -4856,7 +4981,8 @@
4856
4981
  },] }
4857
4982
  ];
4858
4983
  AlertComponent.ctorParameters = function () { return [
4859
- { type: core.ChangeDetectorRef }
4984
+ { type: core.ChangeDetectorRef },
4985
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
4860
4986
  ]; };
4861
4987
  AlertComponent.propDecorators = {
4862
4988
  title: [{ type: core.Input }],
@@ -4872,22 +4998,25 @@
4872
4998
 
4873
4999
  var ConfirmComponent = /** @class */ (function (_super) {
4874
5000
  __extends(ConfirmComponent, _super);
4875
- function ConfirmComponent(_cdr) {
4876
- var _this = _super.call(this, _cdr) || 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;
4877
5005
  _this._cdr = _cdr;
4878
- _this.closeButtonTitle = 'Chiudi modale';
5006
+ _this.libConfig = libConfig;
4879
5007
  _this.close = new core.EventEmitter();
4880
- _this.width = 'M';
4881
- _this.preventPageScroll = true;
4882
- _this.confirmButtonLabel = 'Si';
4883
- _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');
4884
5012
  _this.confirm = new core.EventEmitter();
4885
5013
  _this.reject = new core.EventEmitter();
4886
5014
  _this.logPrefix = '[inail-confirm]';
4887
- _this.title = 'Conferma operazione';
4888
- _this.message = 'Confermare l\'operazione richiesta?';
4889
- _this.width = 'S';
4890
- _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);
4891
5020
  _this.detach();
4892
5021
  return _this;
4893
5022
  }
@@ -4931,7 +5060,8 @@
4931
5060
  },] }
4932
5061
  ];
4933
5062
  ConfirmComponent.ctorParameters = function () { return [
4934
- { type: core.ChangeDetectorRef }
5063
+ { type: core.ChangeDetectorRef },
5064
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
4935
5065
  ]; };
4936
5066
  ConfirmComponent.propDecorators = {
4937
5067
  title: [{ type: core.Input }],
@@ -5226,18 +5356,22 @@
5226
5356
 
5227
5357
  var TrCheckboxComponent = /** @class */ (function (_super) {
5228
5358
  __extends(TrCheckboxComponent, _super);
5229
- function TrCheckboxComponent(cdr) {
5230
- var _this = _super.call(this, cdr) || this;
5359
+ function TrCheckboxComponent(cdr, libConfig) {
5360
+ var _this = this;
5361
+ var _a, _b;
5362
+ _this = _super.call(this, cdr, libConfig) || this;
5231
5363
  _this.cdr = cdr;
5364
+ _this.libConfig = libConfig;
5232
5365
  // @Input()
5233
5366
  // checkAll: boolean = false;
5234
- _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);
5235
5368
  _this.disabled = false;
5236
5369
  _this.initComplete = new rxjs.ReplaySubject();
5237
5370
  _this.onclick = new core.EventEmitter();
5238
5371
  _this.onDestroy = new core.EventEmitter();
5239
5372
  _this.checked = false;
5240
5373
  _this.logPrefix = "[inail-tr-checkbox]";
5374
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.trCheckboxComponent);
5241
5375
  _this.detach();
5242
5376
  return _this;
5243
5377
  }
@@ -5279,7 +5413,8 @@
5279
5413
  },] }
5280
5414
  ];
5281
5415
  TrCheckboxComponent.ctorParameters = function () { return [
5282
- { type: core.ChangeDetectorRef }
5416
+ { type: core.ChangeDetectorRef },
5417
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
5283
5418
  ]; };
5284
5419
  TrCheckboxComponent.propDecorators = {
5285
5420
  label: [{ type: core.Input }],
@@ -5297,26 +5432,29 @@
5297
5432
  var DESC = 'desc';
5298
5433
  var TableComponent = /** @class */ (function (_super) {
5299
5434
  __extends(TableComponent, _super);
5300
- function TableComponent(cdr, renderer) {
5301
- var _this = _super.call(this, cdr) || 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;
5302
5439
  _this.cdr = cdr;
5303
5440
  _this.renderer = renderer;
5441
+ _this.libConfig = libConfig;
5304
5442
  _this.externalPaginationSorting = false;
5305
5443
  _this.displayedDataChange = new core.EventEmitter();
5306
- _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);
5307
5445
  // -----------------------------------------------------------------------
5308
- _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]);
5309
5447
  // @Input()
5310
5448
  // waiting: boolean = false;
5311
5449
  // @Input()
5312
5450
  // waitingText: string = 'Recupero in corso...';
5313
5451
  _this.noDataFound = false;
5314
- _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');
5315
5453
  _this.disablePagination = false;
5316
5454
  _this.pagination = new core.EventEmitter();
5317
- _this.tallRows = false;
5318
- _this.captionHidden = false;
5319
- _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);
5320
5458
  _this.detailsClick = new core.EventEmitter();
5321
5459
  _this.checkedRowsChange = new core.EventEmitter();
5322
5460
  _this.visualizzaBaseFooter = true;
@@ -5335,6 +5473,7 @@
5335
5473
  _this.isThCheckbox = function (trcb) { return document.querySelectorAll("th #" + trcb.id).length > 0; };
5336
5474
  _this.isSelezionabile = function (value) { return _this.righeSelezionabili.some(function (valoreSelezionabile) { return valoreSelezionabile == value; }); };
5337
5475
  _this.logPrefix = '[inail-table]';
5476
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.tableComponent);
5338
5477
  _this.detach();
5339
5478
  return _this;
5340
5479
  }
@@ -5816,7 +5955,8 @@
5816
5955
  ];
5817
5956
  TableComponent.ctorParameters = function () { return [
5818
5957
  { type: core.ChangeDetectorRef },
5819
- { type: core.Renderer2 }
5958
+ { type: core.Renderer2 },
5959
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
5820
5960
  ]; };
5821
5961
  TableComponent.propDecorators = {
5822
5962
  dataSource: [{ type: core.Input }],
@@ -5851,15 +5991,22 @@
5851
5991
 
5852
5992
  var InputFileComponent = /** @class */ (function (_super) {
5853
5993
  __extends(InputFileComponent, _super);
5854
- function InputFileComponent(cdr) {
5855
- var _this = _super.call(this, cdr) || 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;
5856
5998
  _this.cdr = cdr;
5857
- _this.chooseButtonText = 'Scegli il file';
5858
- _this.addButtonText = 'Aggiungi';
5859
- _this.chooseButton = true;
5860
- _this.addButton = true;
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);
5861
6007
  _this.fileChange = new core.EventEmitter();
5862
6008
  _this.logPrefix = "[inail-input-file]";
6009
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.inputFileComponent);
5863
6010
  _this.detach();
5864
6011
  return _this;
5865
6012
  }
@@ -5913,7 +6060,8 @@
5913
6060
  },] }
5914
6061
  ];
5915
6062
  InputFileComponent.ctorParameters = function () { return [
5916
- { type: core.ChangeDetectorRef }
6063
+ { type: core.ChangeDetectorRef },
6064
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
5917
6065
  ]; };
5918
6066
  InputFileComponent.propDecorators = {
5919
6067
  placeholder: [{ type: core.Input }],
@@ -5928,12 +6076,20 @@
5928
6076
 
5929
6077
  var InputNumberComponent = /** @class */ (function (_super) {
5930
6078
  __extends(InputNumberComponent, _super);
5931
- function InputNumberComponent(cdr) {
5932
- var _this = _super.call(this, cdr) || 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;
5933
6083
  _this.cdr = cdr;
5934
- _this.hideArrows = false;
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);
5935
6090
  _this.valueChange = new core.EventEmitter();
5936
6091
  _this.logPrefix = "[inail-input-number]";
6092
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.inputNumberComponent);
5937
6093
  _this.detach();
5938
6094
  return _this;
5939
6095
  }
@@ -6052,7 +6208,8 @@
6052
6208
  },] }
6053
6209
  ];
6054
6210
  InputNumberComponent.ctorParameters = function () { return [
6055
- { type: core.ChangeDetectorRef }
6211
+ { type: core.ChangeDetectorRef },
6212
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
6056
6213
  ]; };
6057
6214
  InputNumberComponent.propDecorators = {
6058
6215
  formControlElement: [{ type: core.ViewChild, args: ['formControl', { static: true },] }],
@@ -6110,18 +6267,22 @@
6110
6267
 
6111
6268
  var SelectorComponent = /** @class */ (function (_super) {
6112
6269
  __extends(SelectorComponent, _super);
6113
- function SelectorComponent(cdr, re2) {
6114
- var _this = _super.call(this, cdr) || 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;
6115
6274
  _this.cdr = cdr;
6116
6275
  _this.re2 = re2;
6117
- _this.showNumber = false;
6118
- _this.fullNavigation = true;
6119
- _this.contentsHidden = true;
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);
6120
6281
  _this.currentItem = 0;
6121
6282
  _this.currentItemChange = new core.EventEmitter();
6122
6283
  _this.itemChange = new core.EventEmitter();
6123
- _this.prevButtonTitle = 'scorri selettore a destra';
6124
- _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');
6125
6286
  _this.inizializzazioneContenutiCompletata = false;
6126
6287
  _this.totalTranslate = 0;
6127
6288
  _this.getItemLabel = function (item, isLast) { return "" + item.label + (item.required ? ' *' : '') + (isNotBlankOrNull(_this.separator) ? ' ' : '') + (!isLast && isNotBlankOrNull(_this.separator) ? _this.separator : ''); };
@@ -6132,6 +6293,7 @@
6132
6293
  _this.re2.setStyle(_this.slickTrack.nativeElement, 'transform', "translate(" + _this.totalTranslate + "px)");
6133
6294
  };
6134
6295
  _this.logPrefix = '[inail-selector]';
6296
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.selectorComponent);
6135
6297
  _this.detach();
6136
6298
  return _this;
6137
6299
  }
@@ -6282,7 +6444,8 @@
6282
6444
  ];
6283
6445
  SelectorComponent.ctorParameters = function () { return [
6284
6446
  { type: core.ChangeDetectorRef },
6285
- { type: core.Renderer2 }
6447
+ { type: core.Renderer2 },
6448
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
6286
6449
  ]; };
6287
6450
  SelectorComponent.propDecorators = {
6288
6451
  items: [{ type: core.Input }],
@@ -6306,20 +6469,24 @@
6306
6469
 
6307
6470
  var WizardComponent = /** @class */ (function (_super) {
6308
6471
  __extends(WizardComponent, _super);
6309
- function WizardComponent(cdr, re2) {
6310
- var _this = _super.call(this, cdr) || 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;
6311
6476
  _this.cdr = cdr;
6312
6477
  _this.re2 = re2;
6478
+ _this.libConfig = libConfig;
6313
6479
  _this.showNumber = true;
6314
6480
  _this.separator = '>';
6315
- _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);
6316
6482
  _this.currentStep = 0;
6317
6483
  _this.currentStepChange = new core.EventEmitter();
6318
6484
  _this.stepChange = new core.EventEmitter();
6319
6485
  _this.switchTo = new core.EventEmitter();
6320
- _this.prevButtonTitle = 'scorri wizard a destra';
6321
- _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');
6322
6488
  _this.logPrefix = '[inail-wizard]';
6489
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.wizardComponent);
6323
6490
  _this.detach();
6324
6491
  return _this;
6325
6492
  }
@@ -6387,7 +6554,8 @@
6387
6554
  ];
6388
6555
  WizardComponent.ctorParameters = function () { return [
6389
6556
  { type: core.ChangeDetectorRef },
6390
- { type: core.Renderer2 }
6557
+ { type: core.Renderer2 },
6558
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
6391
6559
  ]; };
6392
6560
  WizardComponent.propDecorators = {
6393
6561
  steps: [{ type: core.Input }],
@@ -6407,9 +6575,10 @@
6407
6575
 
6408
6576
  var ProgressBarComponent = /** @class */ (function (_super) {
6409
6577
  __extends(ProgressBarComponent, _super);
6410
- function ProgressBarComponent(cdr) {
6411
- var _this = _super.call(this, cdr) || this;
6578
+ function ProgressBarComponent(cdr, libConfig) {
6579
+ var _this = _super.call(this, cdr, libConfig) || this;
6412
6580
  _this.cdr = cdr;
6581
+ _this.libConfig = libConfig;
6413
6582
  _this.valuenow = 0;
6414
6583
  _this.logPrefix = "[inail-progress-bar]";
6415
6584
  _this.detach();
@@ -6448,7 +6617,8 @@
6448
6617
  },] }
6449
6618
  ];
6450
6619
  ProgressBarComponent.ctorParameters = function () { return [
6451
- { type: core.ChangeDetectorRef }
6620
+ { type: core.ChangeDetectorRef },
6621
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
6452
6622
  ]; };
6453
6623
  ProgressBarComponent.propDecorators = {
6454
6624
  label: [{ type: core.Input }],
@@ -6457,13 +6627,17 @@
6457
6627
 
6458
6628
  var MultiSelectComponent = /** @class */ (function (_super) {
6459
6629
  __extends(MultiSelectComponent, _super);
6460
- function MultiSelectComponent(cdr) {
6461
- var _this = _super.call(this, cdr) || this;
6630
+ function MultiSelectComponent(cdr, libConfig) {
6631
+ var _this = this;
6632
+ var _a, _b, _c, _d;
6633
+ _this = _super.call(this, cdr, libConfig) || this;
6462
6634
  _this.cdr = cdr;
6635
+ _this.libConfig = libConfig;
6463
6636
  _this.options = [];
6464
6637
  _this.values = [];
6465
6638
  _this.valuesChange = new core.EventEmitter();
6466
- _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);
6467
6641
  _this.toggle = function () { return window['$'](_this.formControlElement.nativeElement).dropdown('toggle'); };
6468
6642
  _this.isExpanded = function () { return _this.formControlElement.nativeElement.getAttribute('aria-expanded') === 'true'; };
6469
6643
  _this.hasFormControlFocus = function () { return _this.formControlElement.nativeElement.matches(':focus'); };
@@ -6473,6 +6647,7 @@
6473
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; }); };
6474
6648
  _this.isFocusOut = function () { return window['$'](_this.multiSelect.nativeElement).find(document.activeElement).length == 0; };
6475
6649
  _this.logPrefix = "[inail-multi-select]";
6650
+ _super.prototype.overrideConfig.call(_this, libConfig === null || libConfig === void 0 ? void 0 : libConfig.multiSelectComponent);
6476
6651
  _this.detach();
6477
6652
  return _this;
6478
6653
  }
@@ -6567,7 +6742,8 @@
6567
6742
  },] }
6568
6743
  ];
6569
6744
  MultiSelectComponent.ctorParameters = function () { return [
6570
- { type: core.ChangeDetectorRef }
6745
+ { type: core.ChangeDetectorRef },
6746
+ { type: undefined, decorators: [{ type: core.Inject, args: [NG_INAIL_COMMON_CONFIG,] }] }
6571
6747
  ]; };
6572
6748
  MultiSelectComponent.propDecorators = {
6573
6749
  multiSelect: [{ type: core.ViewChild, args: ['multiSelect', { static: true },] }],
@@ -6583,6 +6759,17 @@
6583
6759
  var NgInailCommonModule = /** @class */ (function () {
6584
6760
  function NgInailCommonModule() {
6585
6761
  }
6762
+ NgInailCommonModule.forRoot = function (config) {
6763
+ return {
6764
+ ngModule: NgInailCommonModule,
6765
+ providers: [
6766
+ {
6767
+ provide: NG_INAIL_COMMON_CONFIG,
6768
+ useValue: config
6769
+ }
6770
+ ]
6771
+ };
6772
+ };
6586
6773
  return NgInailCommonModule;
6587
6774
  }());
6588
6775
  NgInailCommonModule.decorators = [
@@ -6728,6 +6915,7 @@
6728
6915
  exports.MenuItem = MenuItem;
6729
6916
  exports.ModalComponent = ModalComponent;
6730
6917
  exports.MultiSelectComponent = MultiSelectComponent;
6918
+ exports.NG_INAIL_COMMON_CONFIG = NG_INAIL_COMMON_CONFIG;
6731
6919
  exports.NavigazioneInternaComponent = NavigazioneInternaComponent;
6732
6920
  exports.NavigazionePrincipaleComponent = NavigazionePrincipaleComponent;
6733
6921
  exports.NavigazioneSecondariaComponent = NavigazioneSecondariaComponent;
@@ -6754,6 +6942,7 @@
6754
6942
  exports.call = call;
6755
6943
  exports.clone = clone;
6756
6944
  exports.dateToString = dateToString;
6945
+ exports.getConfigValue = getConfigValue;
6757
6946
  exports.isAbsolute = isAbsolute;
6758
6947
  exports.isBlankOrNull = isBlankOrNull;
6759
6948
  exports.isDate = isDate;