@seniorsistemas/angular-components 17.9.7 → 17.10.1

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 (99) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +893 -169
  2. package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
  4. package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
  5. package/components/button/button.component.d.ts +1 -0
  6. package/components/dynamic-form/services/IAssist/models/index.d.ts +2 -0
  7. package/components/index.d.ts +2 -0
  8. package/components/inline-edit/components/fields/inline-edit-calendar/inline-edit-calendar.component.d.ts +17 -0
  9. package/components/inline-edit/components/fields/inline-edit-lookup/inline-edit-lookup.component.d.ts +10 -0
  10. package/components/inline-edit/components/fields/inline-edit-number/inline-edit-number.component.d.ts +18 -0
  11. package/components/inline-edit/components/fields/inline-edit-text/inline-edit-text.component.d.ts +9 -0
  12. package/components/inline-edit/components/fields/inline-edit-text-area/inline-edit-text-area.component.d.ts +10 -0
  13. package/components/inline-edit/components/fields/inline-edit-text-area-ia/inline-edit-text-area-ia.component.d.ts +9 -0
  14. package/components/inline-edit/components/index.d.ts +7 -0
  15. package/components/inline-edit/components/inline-edit-item/inline-edit-item.component.d.ts +27 -0
  16. package/components/inline-edit/fields/index.d.ts +7 -0
  17. package/components/inline-edit/fields/inline-edit-calendar-field.d.ts +44 -0
  18. package/components/inline-edit/fields/inline-edit-field.d.ts +13 -0
  19. package/components/inline-edit/fields/inline-edit-lookup-field.d.ts +79 -0
  20. package/components/inline-edit/fields/inline-edit-number-field.d.ts +38 -0
  21. package/components/inline-edit/fields/inline-edit-text-area-field.d.ts +14 -0
  22. package/components/inline-edit/fields/inline-edit-text-area-ia-field.d.ts +6 -0
  23. package/components/inline-edit/fields/inline-edit-text-field.d.ts +6 -0
  24. package/components/inline-edit/index.d.ts +3 -0
  25. package/components/inline-edit/inline-edit.component.d.ts +14 -0
  26. package/components/inline-edit/inline-edit.module.d.ts +2 -0
  27. package/components/text-area-ia/index.d.ts +2 -0
  28. package/components/text-area-ia/text-area-ia.component.d.ts +39 -0
  29. package/components/text-area-ia/text-area-ia.module.d.ts +2 -0
  30. package/components/tooltip/tooltip.directive.d.ts +1 -1
  31. package/esm2015/components/button/button.component.js +5 -2
  32. package/esm2015/components/dynamic-form/components/fields/lookup/lookup-field.component.js +2 -2
  33. package/esm2015/components/dynamic-form/components/lookup/lookup.component.js +1 -1
  34. package/esm2015/components/dynamic-form/services/IAssist/models/index.js +1 -0
  35. package/esm2015/components/index.js +3 -1
  36. package/esm2015/components/inline-edit/components/fields/inline-edit-calendar/inline-edit-calendar.component.js +51 -0
  37. package/esm2015/components/inline-edit/components/fields/inline-edit-lookup/inline-edit-lookup.component.js +30 -0
  38. package/esm2015/components/inline-edit/components/fields/inline-edit-number/inline-edit-number.component.js +75 -0
  39. package/esm2015/components/inline-edit/components/fields/inline-edit-text/inline-edit-text.component.js +30 -0
  40. package/esm2015/components/inline-edit/components/fields/inline-edit-text-area/inline-edit-text-area.component.js +30 -0
  41. package/esm2015/components/inline-edit/components/fields/inline-edit-text-area-ia/inline-edit-text-area-ia.component.js +30 -0
  42. package/esm2015/components/inline-edit/components/index.js +8 -0
  43. package/esm2015/components/inline-edit/components/inline-edit-item/inline-edit-item.component.js +98 -0
  44. package/esm2015/components/inline-edit/fields/index.js +8 -0
  45. package/esm2015/components/inline-edit/fields/inline-edit-calendar-field.js +26 -0
  46. package/esm2015/components/inline-edit/fields/inline-edit-field.js +9 -0
  47. package/esm2015/components/inline-edit/fields/inline-edit-lookup-field.js +32 -0
  48. package/esm2015/components/inline-edit/fields/inline-edit-number-field.js +24 -0
  49. package/esm2015/components/inline-edit/fields/inline-edit-text-area-field.js +11 -0
  50. package/esm2015/components/inline-edit/fields/inline-edit-text-area-ia-field.js +7 -0
  51. package/esm2015/components/inline-edit/fields/inline-edit-text-field.js +7 -0
  52. package/esm2015/components/inline-edit/index.js +4 -0
  53. package/esm2015/components/inline-edit/inline-edit.component.js +70 -0
  54. package/esm2015/components/inline-edit/inline-edit.module.js +62 -0
  55. package/esm2015/components/text-area-ia/index.js +3 -0
  56. package/esm2015/components/text-area-ia/text-area-ia.component.js +128 -0
  57. package/esm2015/components/text-area-ia/text-area-ia.module.js +32 -0
  58. package/esm2015/components/tooltip/tooltip.component.js +3 -3
  59. package/esm2015/components/tooltip/tooltip.directive.js +59 -138
  60. package/esm2015/locale/fallback.js +3 -1
  61. package/esm2015/seniorsistemas-angular-components.js +37 -29
  62. package/esm5/components/button/button.component.js +5 -2
  63. package/esm5/components/dynamic-form/components/fields/lookup/lookup-field.component.js +2 -2
  64. package/esm5/components/dynamic-form/components/lookup/lookup.component.js +1 -1
  65. package/esm5/components/dynamic-form/services/IAssist/models/index.js +1 -0
  66. package/esm5/components/index.js +3 -1
  67. package/esm5/components/inline-edit/components/fields/inline-edit-calendar/inline-edit-calendar.component.js +53 -0
  68. package/esm5/components/inline-edit/components/fields/inline-edit-lookup/inline-edit-lookup.component.js +33 -0
  69. package/esm5/components/inline-edit/components/fields/inline-edit-number/inline-edit-number.component.js +99 -0
  70. package/esm5/components/inline-edit/components/fields/inline-edit-text/inline-edit-text.component.js +33 -0
  71. package/esm5/components/inline-edit/components/fields/inline-edit-text-area/inline-edit-text-area.component.js +33 -0
  72. package/esm5/components/inline-edit/components/fields/inline-edit-text-area-ia/inline-edit-text-area-ia.component.js +33 -0
  73. package/esm5/components/inline-edit/components/index.js +8 -0
  74. package/esm5/components/inline-edit/components/inline-edit-item/inline-edit-item.component.js +112 -0
  75. package/esm5/components/inline-edit/fields/index.js +8 -0
  76. package/esm5/components/inline-edit/fields/inline-edit-calendar-field.js +31 -0
  77. package/esm5/components/inline-edit/fields/inline-edit-field.js +11 -0
  78. package/esm5/components/inline-edit/fields/inline-edit-lookup-field.js +50 -0
  79. package/esm5/components/inline-edit/fields/inline-edit-number-field.js +29 -0
  80. package/esm5/components/inline-edit/fields/inline-edit-text-area-field.js +16 -0
  81. package/esm5/components/inline-edit/fields/inline-edit-text-area-ia-field.js +11 -0
  82. package/esm5/components/inline-edit/fields/inline-edit-text-field.js +11 -0
  83. package/esm5/components/inline-edit/index.js +4 -0
  84. package/esm5/components/inline-edit/inline-edit.component.js +84 -0
  85. package/esm5/components/inline-edit/inline-edit.module.js +65 -0
  86. package/esm5/components/text-area-ia/index.js +3 -0
  87. package/esm5/components/text-area-ia/text-area-ia.component.js +131 -0
  88. package/esm5/components/text-area-ia/text-area-ia.module.js +35 -0
  89. package/esm5/components/tooltip/tooltip.component.js +3 -3
  90. package/esm5/components/tooltip/tooltip.directive.js +71 -139
  91. package/esm5/locale/fallback.js +3 -1
  92. package/esm5/seniorsistemas-angular-components.js +37 -29
  93. package/fesm2015/seniorsistemas-angular-components.js +731 -142
  94. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  95. package/fesm5/seniorsistemas-angular-components.js +848 -143
  96. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  97. package/package.json +1 -1
  98. package/seniorsistemas-angular-components.d.ts +36 -28
  99. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -525,8 +525,8 @@
525
525
  }
526
526
  TooltipComponent = __decorate([
527
527
  core.Component({
528
- template: "<div\n class=\"tooltip\"\n [ngClass]=\"['tooltip--' + position]\"\n [class.tooltip--visible]=\"visible\"\n [ngStyle]=\"{\n 'left': left + 'px',\n 'top': top + 'px'\n }\">\n <ng-template\n *ngIf=\"escape;\n then escapeTemplate;\n else noEscapeTemplate\">\n </ng-template> \n</div>\n\n<ng-template #noEscapeTemplate>\n <span\n class=\"tooltip__content\"\n [innerHTML]=\"tooltip\">\n </span>\n</ng-template>\n\n<ng-template #escapeTemplate>\n <span class=\"tooltip__content\">\n {{ tooltip }}\n </span>\n</ng-template>",
529
- styles: [".tooltip{background-color:#000;border-radius:2px;color:#fff;font-family:\"Open Sans\",sans-serif;font-size:14px;font-weight:400;line-height:21px;margin-top:5px;opacity:0;padding:8px;position:fixed;transform:translateX(-50%);text-align:center;max-width:150px;word-wrap:break-word;z-index:99999}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip::before{content:\"\";height:0;position:absolute;width:0}.tooltip--bottom{margin-top:8px;transform:translateX(-50%)}.tooltip--bottom::before{border:5px solid transparent;border-bottom:5px solid #000;left:calc(50% - 5px);top:-10px}.tooltip--top{margin-bottom:8px;transform:translate(-50%,-100%)}.tooltip--top::before{border:5px solid transparent;border-top:5px solid #000;left:calc(50% - 5px);bottom:-10px}.tooltip--left{margin-right:28px;transform:translate(calc(-100% - 7px),-50%)}.tooltip--left::before{border:5px solid transparent;border-left:5px solid #000;right:-10px;bottom:calc(50% - 5px)}.tooltip--right{margin-left:7px;transform:translateY(-50%)}.tooltip--right::before{border:5px solid transparent;border-right:5px solid #000;left:-10px;bottom:calc(50% - 5px)}"]
528
+ template: "<div\n id=\"tooltip\"\n class=\"tooltip\"\n [ngClass]=\"['tooltip--' + position]\"\n [class.tooltip--visible]=\"visible\"\n [ngStyle]=\"{\n 'left': left + 'px',\n 'top': top + 'px'\n }\">\n <ng-template\n *ngIf=\"escape;\n then escapeTemplate;\n else noEscapeTemplate\">\n </ng-template> \n</div>\n\n<ng-template #noEscapeTemplate>\n <span\n class=\"tooltip__content\"\n [innerHTML]=\"tooltip\">\n </span>\n</ng-template>\n\n<ng-template #escapeTemplate>\n <span class=\"tooltip__content\">\n {{ tooltip }}\n </span>\n</ng-template>",
529
+ styles: [".tooltip{background-color:#000;border-radius:2px;color:#fff;font-family:\"Open Sans\",sans-serif;font-size:14px;font-weight:400;line-height:21px;margin-top:5px;opacity:0;padding:8px;position:fixed;transform:translateX(-50%);text-align:center;max-width:220px;word-wrap:break-word;z-index:99999}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip::before{content:\"\";height:0;position:absolute;width:0}.tooltip--bottom{margin-top:8px;transform:translateX(-50%)}.tooltip--bottom::before{border:5px solid transparent;border-bottom:5px solid #000;left:calc(50% - 5px);top:-10px}.tooltip--top{margin-bottom:8px;transform:translate(-50%,-100%)}.tooltip--top::before{border:5px solid transparent;border-top:5px solid #000;left:calc(50% - 5px);bottom:-10px}.tooltip--left{margin-right:28px;transform:translate(calc(-100% - 7px),-50%)}.tooltip--left::before{border:5px solid transparent;border-left:5px solid #000;right:-10px;bottom:calc(50% - 5px)}.tooltip--right{margin-left:7px;transform:translateY(-50%)}.tooltip--right::before{border:5px solid transparent;border-right:5px solid #000;left:-10px;bottom:calc(50% - 5px)}"]
530
530
  })
531
531
  ], TooltipComponent);
532
532
  return TooltipComponent;
@@ -626,7 +626,7 @@
626
626
  top: Math.min(elementRect.top, toolTipRect.top),
627
627
  right: Math.max(elementRect.right, toolTipRect.right),
628
628
  left: Math.min(elementRect.left, toolTipRect.left),
629
- bottom: Math.max(elementRect.bottom, toolTipRect.bottom)
629
+ bottom: Math.max(elementRect.bottom, toolTipRect.bottom),
630
630
  };
631
631
  if (this.isMousePositionOutsideOfElement(event.clientX, event.clientY, totalElementArea)) {
632
632
  this.destroy();
@@ -643,12 +643,12 @@
643
643
  if (this.focusedInputRef) {
644
644
  var inputFocus = this.focusedInputRef;
645
645
  var icon_1 = this.getIconFromFocusedInput();
646
- this.renderer.listen(this.focusedInputRef, 'focus', function () {
646
+ this.renderer.listen(this.focusedInputRef, "focus", function () {
647
647
  if (icon_1 && _this.isMatchingTooltip(icon_1)) {
648
648
  _this.createTootipByFocus(icon_1);
649
649
  }
650
650
  });
651
- this.renderer.listen(inputFocus, 'blur', function () {
651
+ this.renderer.listen(inputFocus, "blur", function () {
652
652
  if (icon_1 && _this.isMatchingTooltip(icon_1)) {
653
653
  _this.removeTooltip(icon_1);
654
654
  _this.destroy();
@@ -669,7 +669,7 @@
669
669
  * @returns true se o tooltip corresponde; caso contrário, false.
670
670
  */
671
671
  TooltipDirective.prototype.isMatchingTooltip = function (icon) {
672
- var tooltipText = icon.getAttribute('ng-reflect-tooltip');
672
+ var tooltipText = icon.getAttribute("ng-reflect-tooltip");
673
673
  return this.tooltip === tooltipText;
674
674
  };
675
675
  /**
@@ -677,7 +677,7 @@
677
677
  * @param icon O ícone do input em focus.
678
678
  */
679
679
  TooltipDirective.prototype.removeTooltip = function (icon) {
680
- var tooltip = icon.querySelector('.tooltip');
680
+ var tooltip = icon.querySelector(".tooltip");
681
681
  if (tooltip) {
682
682
  tooltip.remove();
683
683
  }
@@ -685,9 +685,7 @@
685
685
  // whenever the component with the tooltip is clicked I destroy the tooltip.
686
686
  // whenever a key is pressed on the component with the tooltip I destroy the tooltip.
687
687
  TooltipDirective.prototype.onClick = function () {
688
- if (this.tooltipEvent === TooltipEvent.Hover &&
689
- !navigator.userAgent.match(/Android/i) &&
690
- !navigator.userAgent.match(/iPhone/i)) {
688
+ if (this.tooltipEvent === TooltipEvent.Hover && !navigator.userAgent.match(/Android/i) && !navigator.userAgent.match(/iPhone/i)) {
691
689
  this.destroy();
692
690
  }
693
691
  };
@@ -732,12 +730,7 @@
732
730
  }
733
731
  };
734
732
  TooltipDirective.prototype.validatePosition = function () {
735
- var containsPosition = [
736
- exports.TooltipPosition.Top,
737
- exports.TooltipPosition.Right,
738
- exports.TooltipPosition.Bottom,
739
- exports.TooltipPosition.Left,
740
- ].includes(this.position);
733
+ var containsPosition = [exports.TooltipPosition.Top, exports.TooltipPosition.Right, exports.TooltipPosition.Bottom, exports.TooltipPosition.Left].includes(this.position);
741
734
  if (!containsPosition) {
742
735
  this.position = exports.TooltipPosition.Top;
743
736
  throw new Error("Tooltip " + this.position + " position is unexpected");
@@ -750,7 +743,7 @@
750
743
  document.body.appendChild(domElem);
751
744
  this.setTooltipComponentProperties();
752
745
  this.showTimeout = window.setTimeout(this.showTooltip.bind(this), this.showDelay);
753
- this.tooltipDivElement = domElem.querySelector('.tooltip');
746
+ this.tooltipDivElement = domElem.querySelector(".tooltip");
754
747
  if (this.displayTime) {
755
748
  window.setTimeout(this.destroy.bind(this), this.displayTime);
756
749
  }
@@ -772,142 +765,81 @@
772
765
  var _a;
773
766
  if (this.componentRef === null && ((_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.length)) {
774
767
  var domElem = this.getDomElement();
775
- var tooltip_1 = domElem.querySelector('.tooltip');
768
+ var tooltip_1 = domElem.querySelector(".tooltip");
776
769
  icon.appendChild(tooltip_1);
777
770
  this.setTooltipComponentProperties();
778
771
  setTimeout(function () { return tooltip_1.classList.add("tooltip--visible"); }, 0);
779
- this.renderer.listen(window, 'scroll', function () {
780
- _this.updateTooltipPosition();
772
+ this.renderer.listen(window, "scroll", function () {
773
+ _this.setTooltipPositionProperty();
781
774
  });
782
775
  }
783
776
  };
784
- TooltipDirective.prototype.updateTooltipPosition = function () {
785
- if (this.componentRef) {
786
- var _a = this.elementRef.nativeElement.getBoundingClientRect(), left = _a.left, right = _a.right, top_1 = _a.top, bottom = _a.bottom;
787
- var tooltipWidth = right - left;
788
- var tooltipHeight = bottom - top_1;
789
- switch (this.position) {
790
- case exports.TooltipPosition.Top:
791
- this.componentRef.instance.left = Math.round(tooltipWidth / 2 + left);
792
- this.componentRef.instance.top = Math.round(top_1 - 20 - 5);
793
- break;
794
- case exports.TooltipPosition.Bottom:
795
- this.componentRef.instance.left = Math.round(tooltipWidth / 2 + left);
796
- this.componentRef.instance.top = Math.round(bottom + 20);
797
- break;
798
- case exports.TooltipPosition.Left:
799
- this.componentRef.instance.left = Math.round(left - 20);
800
- this.componentRef.instance.top = Math.round(top_1 + tooltipHeight / 2 - 5);
801
- break;
802
- case exports.TooltipPosition.Right:
803
- this.componentRef.instance.left = Math.round(right + 20);
804
- this.componentRef.instance.top = Math.round(top_1 + tooltipHeight / 2 - 5);
805
- break;
806
- default:
807
- break;
808
- }
809
- }
810
- };
811
777
  TooltipDirective.prototype.showTooltip = function () {
812
778
  if (this.componentRef !== null) {
813
779
  this.componentRef.instance.visible = this.visible;
814
- window.addEventListener('mousemove', this.boundOnWindowMouseMoveFunction);
780
+ this.setTooltipPositionProperty();
781
+ window.addEventListener("mousemove", this.boundOnWindowMouseMoveFunction);
815
782
  }
816
783
  };
817
- TooltipDirective.prototype.setTooltipComponentProperties = function () {
784
+ TooltipDirective.prototype.setTooltipPositionProperty = function () {
785
+ var e_1, _a;
818
786
  var margin = 20;
819
787
  var anchorSize = 5;
788
+ var domElem = this.componentRef.hostView.rootNodes[0].querySelector("#tooltip");
789
+ var _b = domElem.getBoundingClientRect(), height = _b.height, width = _b.width;
790
+ var _c = this.elementRef.nativeElement.getBoundingClientRect(), left = _c.left, right = _c.right, top = _c.top, bottom = _c.bottom;
791
+ var positions = [
792
+ {
793
+ pos: exports.TooltipPosition.Top,
794
+ check: function () { return top > height; },
795
+ set: function () { return ({ left: left + (right - left) / 2, top: top - margin - anchorSize }); },
796
+ },
797
+ {
798
+ pos: exports.TooltipPosition.Bottom,
799
+ check: function () { return document.body.clientHeight - bottom > height; },
800
+ set: function () { return ({ left: left + (right - left) / 2, top: bottom + margin }); },
801
+ },
802
+ {
803
+ pos: exports.TooltipPosition.Left,
804
+ check: function () { return left > width; },
805
+ set: function () { return ({ left: left - margin, top: top + height / 2 - anchorSize }); },
806
+ },
807
+ {
808
+ pos: exports.TooltipPosition.Right,
809
+ check: function () { return document.body.clientWidth - right > width; },
810
+ set: function () { return ({ left: right + margin, top: top + height / 2 - anchorSize }); },
811
+ },
812
+ ];
813
+ try {
814
+ for (var positions_1 = __values(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
815
+ var _d = positions_1_1.value, pos = _d.pos, check = _d.check, set = _d.set;
816
+ if (check()) {
817
+ this.position = pos;
818
+ var _e = set(), left_1 = _e.left, top_1 = _e.top;
819
+ this.componentRef.instance.left = Math.round(left_1);
820
+ this.componentRef.instance.top = Math.round(top_1);
821
+ this.componentRef.instance.position = this.position;
822
+ return;
823
+ }
824
+ }
825
+ }
826
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
827
+ finally {
828
+ try {
829
+ if (positions_1_1 && !positions_1_1.done && (_a = positions_1.return)) _a.call(positions_1);
830
+ }
831
+ finally { if (e_1) throw e_1.error; }
832
+ }
833
+ // Se não conseguir posicionar, mostrar abaixo
834
+ this.position = exports.TooltipPosition.Bottom;
835
+ this.componentRef.instance.left = Math.round(left + (right - left) / 2);
836
+ this.componentRef.instance.top = Math.round(bottom + margin);
837
+ this.componentRef.instance.position = this.position;
838
+ };
839
+ TooltipDirective.prototype.setTooltipComponentProperties = function () {
820
840
  if (this.componentRef !== null) {
821
841
  this.componentRef.instance.tooltip = this.tooltip;
822
842
  this.componentRef.instance.escape = this.escape;
823
- var _a = this.elementRef.nativeElement.getBoundingClientRect(), left = _a.left, right = _a.right, top_2 = _a.top, bottom = _a.bottom;
824
- var tooltipHeight = bottom - top_2;
825
- var tooltipWidth = right - left;
826
- var safeSpace = 150;
827
- var positioned = false;
828
- var invalidOptions = [];
829
- while (!positioned) {
830
- if (invalidOptions.includes(exports.TooltipPosition.Top)
831
- && invalidOptions.includes(exports.TooltipPosition.Bottom)
832
- && invalidOptions.includes(exports.TooltipPosition.Left)
833
- && invalidOptions.includes(exports.TooltipPosition.Right)) {
834
- this.destroy();
835
- throw new Error("No space to show tooltip");
836
- }
837
- switch (this.position) {
838
- case exports.TooltipPosition.Top: {
839
- if (invalidOptions.includes(exports.TooltipPosition.Top)) {
840
- this.position = exports.TooltipPosition.Left;
841
- break;
842
- }
843
- var topShift = top_2;
844
- if (topShift <= tooltipHeight + safeSpace) {
845
- this.position = exports.TooltipPosition.Bottom;
846
- invalidOptions.push(exports.TooltipPosition.Top);
847
- positioned = false;
848
- break;
849
- }
850
- this.componentRef.instance.left = Math.round(tooltipWidth / 2 + left);
851
- this.componentRef.instance.top = Math.round(top_2 - margin - anchorSize);
852
- positioned = true;
853
- break;
854
- }
855
- case exports.TooltipPosition.Bottom: {
856
- if (invalidOptions.includes(exports.TooltipPosition.Bottom)) {
857
- this.position = exports.TooltipPosition.Left;
858
- break;
859
- }
860
- var bottomShift = document.body.clientHeight - bottom;
861
- if (bottomShift <= tooltipHeight + safeSpace) {
862
- this.position = exports.TooltipPosition.Top;
863
- invalidOptions.push(exports.TooltipPosition.Bottom);
864
- break;
865
- }
866
- this.componentRef.instance.left = Math.round(tooltipWidth / 2 + left);
867
- this.componentRef.instance.top = Math.round(bottom + margin);
868
- positioned = true;
869
- break;
870
- }
871
- case exports.TooltipPosition.Left: {
872
- if (invalidOptions.includes(exports.TooltipPosition.Left)) {
873
- this.position = exports.TooltipPosition.Top;
874
- break;
875
- }
876
- var leftShift = left;
877
- if (leftShift <= tooltipWidth + safeSpace) {
878
- this.position = exports.TooltipPosition.Right;
879
- invalidOptions.push(exports.TooltipPosition.Left);
880
- positioned = false;
881
- break;
882
- }
883
- this.componentRef.instance.left = Math.round(left - margin);
884
- this.componentRef.instance.top = Math.round(top_2 + tooltipHeight / 2 - anchorSize);
885
- positioned = true;
886
- break;
887
- }
888
- case exports.TooltipPosition.Right: {
889
- if (invalidOptions.includes(exports.TooltipPosition.Right)) {
890
- this.position = exports.TooltipPosition.Top;
891
- break;
892
- }
893
- var rightShift = document.body.clientWidth - right;
894
- if (rightShift <= tooltipWidth + safeSpace) {
895
- this.position = exports.TooltipPosition.Left;
896
- invalidOptions.push(exports.TooltipPosition.Right);
897
- positioned = false;
898
- break;
899
- }
900
- this.componentRef.instance.left = Math.round(right + margin);
901
- this.componentRef.instance.top = Math.round(top_2 + tooltipHeight / 2 - anchorSize);
902
- positioned = true;
903
- break;
904
- }
905
- default: {
906
- break;
907
- }
908
- }
909
- this.componentRef.instance.position = this.position;
910
- }
911
843
  }
912
844
  };
913
845
  TooltipDirective.prototype.destroy = function () {
@@ -918,7 +850,7 @@
918
850
  this.componentRef = null;
919
851
  this.tooltipDivElement = null;
920
852
  }
921
- window.removeEventListener('mousemove', this.boundOnWindowMouseMoveFunction);
853
+ window.removeEventListener("mousemove", this.boundOnWindowMouseMoveFunction);
922
854
  };
923
855
  TooltipDirective.ctorParameters = function () { return [
924
856
  { type: core.ElementRef },
@@ -1695,6 +1627,9 @@
1695
1627
  __decorate([
1696
1628
  core.Input()
1697
1629
  ], ButtonComponent.prototype, "badge", void 0);
1630
+ __decorate([
1631
+ core.Input()
1632
+ ], ButtonComponent.prototype, "iconColor", void 0);
1698
1633
  __decorate([
1699
1634
  core.Output()
1700
1635
  ], ButtonComponent.prototype, "onClick", void 0);
@@ -1704,7 +1639,7 @@
1704
1639
  ButtonComponent = ButtonComponent_1 = __decorate([
1705
1640
  core.Component({
1706
1641
  selector: "s-button",
1707
- template: "<p-tieredMenu\n [id]=\"id + '-menu'\"\n [popup]=\"true\"\n appendTo=\"body\"\n [baseZIndex]=\"baseZIndex\">\n</p-tieredMenu>\n\n<button\n [id]=\"id\"\n [type]=\"type\"\n [class]=\"styleClass\"\n [ngClass]=\"{\n 's-button-auxiliary': auxiliary,\n 's-button-with-icon': iconClass,\n 's-button-with-text': label,\n 's-button-empty': !iconClass && !label,\n 's-button-size-default': size === 'default',\n 's-button-size-small': size === 'small',\n 's-button-priority-default': priority === 'default',\n 's-button-priority-primary': priority === 'primary',\n 's-button-priority-secondary': priority === 'secondary',\n 's-button-priority-link': priority === 'link',\n 's-button-priority-danger': priority === 'danger',\n 's-button-multiple': (caret && (model && model.length)) || rightIconClass,\n 's-button-active': isOpen(),\n 's-button--slide': validateSlideButton(),\n 's-button--rotate-animation': isRotateAnimation()\n }\"\n [disabled]=\"disabled\"\n [pTooltip]=\"tooltip\"\n [tooltipPosition]=\"tooltipPosition\"\n showDelay=\"500\"\n [tooltipZIndex]=\"tooltipZIndex\"\n (click)=\"onClick.emit($event)\"\n (mouseenter)=\"updateTooltipZIndex()\">\n <div *ngIf=\"badge\" class=\"badge\">\n <s-badge\n [color]=\"badge.color\"\n [text]=\"badge.text\"\n [iconClass]=\"badge.iconClass\">\n </s-badge>\n </div>\n <span \n *ngIf=\"iconClass\" \n [class]=\"iconClass\" \n [ngClass]=\"{ \n 's-button-icon': true,\n 's-button-icon-margin-right': !label && model && model.length\n }\" \n aria-hidden=\"true\">\n </span>\n <span \n *ngIf=\"label\" \n class=\"s-button-text\"\n [ngClass]=\"{\n 's-button-icon-margin-right': !!rightIconClass || (model && model.length),\n 's-button-icon-margin-left': !!iconClass\n }\">\n {{ label }}\n </span>\n <ng-content></ng-content>\n <span \n *ngIf=\"rightIconClass\" \n [class]=\"rightIconClass\" \n [ngClass]=\"{ 's-button-right-icon': true }\" \n aria-hidden=\"true\">\n </span>\n <span\n *ngIf=\"caret && (model && model.length)\" \n class=\"fa fa-fw fa-caret-down\"\n aria-hidden=\"true\">\n </span>\n</button>\n",
1642
+ template: "<p-tieredMenu\n [id]=\"id + '-menu'\"\n [popup]=\"true\"\n appendTo=\"body\"\n [baseZIndex]=\"baseZIndex\">\n</p-tieredMenu>\n\n<button\n [id]=\"id\"\n [type]=\"type\"\n [class]=\"styleClass\"\n [ngClass]=\"{\n 's-button-auxiliary': auxiliary,\n 's-button-with-icon': iconClass,\n 's-button-with-text': label,\n 's-button-empty': !iconClass && !label,\n 's-button-size-default': size === 'default',\n 's-button-size-small': size === 'small',\n 's-button-priority-default': priority === 'default',\n 's-button-priority-primary': priority === 'primary',\n 's-button-priority-secondary': priority === 'secondary',\n 's-button-priority-link': priority === 'link',\n 's-button-priority-danger': priority === 'danger',\n 's-button-multiple': (caret && (model && model.length)) || rightIconClass,\n 's-button-active': isOpen(),\n 's-button--slide': validateSlideButton(),\n 's-button--rotate-animation': isRotateAnimation()\n }\"\n [disabled]=\"disabled\"\n [pTooltip]=\"tooltip\"\n [tooltipPosition]=\"tooltipPosition\"\n showDelay=\"500\"\n [tooltipZIndex]=\"tooltipZIndex\"\n (click)=\"onClick.emit($event)\"\n (mouseenter)=\"updateTooltipZIndex()\">\n <div *ngIf=\"badge\" class=\"badge\">\n <s-badge\n [color]=\"badge.color\"\n [text]=\"badge.text\"\n [iconClass]=\"badge.iconClass\">\n </s-badge>\n </div>\n <span \n *ngIf=\"iconClass\" \n [class]=\"iconClass\" \n [ngClass]=\"{ \n 's-button-icon': true,\n 's-button-icon-margin-right': !label && model && model.length\n }\"\n [ngStyle]=\"{ color: iconColor }\"\n aria-hidden=\"true\">\n </span>\n <span \n *ngIf=\"label\" \n class=\"s-button-text\"\n [ngClass]=\"{\n 's-button-icon-margin-right': !!rightIconClass || (model && model.length),\n 's-button-icon-margin-left': !!iconClass\n }\">\n {{ label }}\n </span>\n <ng-content></ng-content>\n <span \n *ngIf=\"rightIconClass\" \n [class]=\"rightIconClass\" \n [ngClass]=\"{ 's-button-right-icon': true }\"\n [ngStyle]=\"{ color: iconColor }\"\n aria-hidden=\"true\">\n </span>\n <span\n *ngIf=\"caret && (model && model.length)\" \n class=\"fa fa-fw fa-caret-down\"\n aria-hidden=\"true\">\n </span>\n</button>\n",
1708
1643
  styles: ["button{-ms-flex-align:center;align-items:center;border:1px solid;border-radius:4px;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font-family:\"Open Sans\",sans-serif;font-size:14px;height:34px;-ms-flex-pack:center;justify-content:center;max-width:100%;min-width:40px;outline:0;overflow:visible;padding:5px 10px;position:relative;text-decoration:none;text-transform:none;transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out;vertical-align:bottom}button:disabled{opacity:.5;filter:Alpha(Opacity=50);background-image:none}button:disabled,button:disabled *{cursor:text!important}button.s-button-auxiliary{border-radius:20px}button.s-button-size-small{height:25px;padding:0 20px}button.s-button-with-icon.s-button-multiple,button.s-button-with-text{min-width:80px}button.s-button-with-icon.s-button-with-text.s-button-multiple{min-width:100px}button .s-button-icon,button .s-button-menu-icon,button .s-button-right-icon,button.s-button-with-icon.s-button-multiple:not(.s-button-with-text) .s-button-icon{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}button.s-button-multiple .s-button-text{-ms-flex-align:left;align-items:left;display:-ms-flexbox;display:flex;-ms-flex-pack:left;justify-content:left}button.s-button-with-icon .s-button-text{-ms-flex-align:right;align-items:right;display:-ms-flexbox;display:flex;-ms-flex-pack:right;justify-content:right}.s-button-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.s-button-menu-icon{right:10px;transition:transform .2s ease-out}.s-button-icon-margin-left{margin-left:10px}.s-button-icon-margin-right{margin-right:10px}.s-button-active .s-button-menu-icon{transform:rotateX(180deg)}button,button.s-button-priority-primary{background-color:#428bca;border-color:#428bca}button .s-button-icon,button .s-button-menu-icon,button .s-button-right-icon,button .s-button-text,button.s-button-priority-primary .s-button-icon,button.s-button-priority-primary .s-button-menu-icon,button.s-button-priority-primary .s-button-right-icon,button.s-button-priority-primary .s-button-text{color:#fff}button.s-button-priority-primary:hover,button:hover{background-color:#2a6496}button.s-button-priority-primary:focus,button:focus{background-color:#2a6496;border-color:#22dce6}button.s-button-active:not(:disabled),button.s-button-priority-primary.s-button-active:not(:disabled),button.s-button-priority-primary:active:not(:disabled),button:active:not(:disabled){background-color:#245682;border-color:#245682}button.s-button-priority-secondary{background-color:#7892a1;border-color:#7892a1}button.s-button-priority-secondary .s-button-icon,button.s-button-priority-secondary .s-button-menu-icon,button.s-button-priority-secondary .s-button-right-icon,button.s-button-priority-secondary .s-button-text{color:#fff}button.s-button-priority-secondary:hover{background-color:#546b79}button.s-button-priority-secondary:focus{background-color:#546b79;border-color:#22dce6}button.s-button-priority-secondary.s-button-active:not(:disabled),button.s-button-priority-secondary:active:not(:disabled){background-color:#495e6a;border-color:#495e6a}button.s-button-priority-default{background-color:#fff;border-color:#ccc}button.s-button-priority-default .s-button-icon,button.s-button-priority-default .s-button-menu-icon,button.s-button-priority-default .s-button-right-icon,button.s-button-priority-default .s-button-text{color:#333}button.s-button-priority-default:hover{background-color:#d9d9d9}button.s-button-priority-default:focus{background-color:#d9d9d9;border-color:#22dce6}button.s-button-priority-default.s-button-active:not(:disabled),button.s-button-priority-default:active:not(:disabled){background-color:#ccc;border-color:#ccc}.s-button-priority-danger{background-color:#9c3a3a;border-color:#9c3a3a}.s-button-priority-danger .s-button-icon,.s-button-priority-danger .s-button-menu-icon,.s-button-priority-danger .s-button-right-icon,.s-button-priority-danger .s-button-text{color:#fff}.s-button-priority-danger:hover{background-color:#642525}.s-button-priority-danger:focus{background-color:#642525;border-color:#22dce6}.s-button-priority-danger.s-button-active:not(:disabled),.s-button-priority-danger:active:not(:disabled){background-color:#521e1e;border-color:#521e1e}button.s-button-priority-link{background-color:transparent;border-color:transparent}button.s-button-priority-link .s-button-icon,button.s-button-priority-link .s-button-menu-icon,button.s-button-priority-link .s-button-right-icon,button.s-button-priority-link .s-button-text{color:#428bca}button.s-button-priority-link:hover{background-color:transparent}button.s-button-priority-link:hover .s-button-icon,button.s-button-priority-link:hover .s-button-menu-icon,button.s-button-priority-link:hover .s-button-right-icon,button.s-button-priority-link:hover .s-button-text{color:#2a6496}button.s-button-priority-link:focus{border-color:#22dce6;background-color:transparent}button.s-button-priority-link:focus .s-button-icon,button.s-button-priority-link:focus .s-button-menu-icon,button.s-button-priority-link:focus .s-button-right-icon,button.s-button-priority-link:focus .s-button-text{color:#2a6496}button.s-button-priority-link.s-button-active:not(:disabled),button.s-button-priority-link:active:not(:disabled){background-color:transparent;border-color:transparent}button.s-button-priority-link.s-button-active:not(:disabled) .s-button-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-menu-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-right-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-text,button.s-button-priority-link:active:not(:disabled) .s-button-icon,button.s-button-priority-link:active:not(:disabled) .s-button-menu-icon,button.s-button-priority-link:active:not(:disabled) .s-button-right-icon,button.s-button-priority-link:active:not(:disabled) .s-button-text{color:#245682}.s-button--slide.s-button-with-icon.s-button-multiple,.s-button--slide.s-button-with-text{min-width:40px}.s-button--slide .s-button-text{position:absolute;opacity:0;width:0}.s-button--slide:hover .s-button-text{opacity:1;position:relative;transition:1s;width:auto}.s-button--slide:hover.s-button--rotate-animation .s-button-icon,.s-button--slide:hover.s-button--rotate-animation .s-button-right-icon{transform:rotate(360deg);transition:1.5s}.badge{position:absolute;top:-10px;right:-10px;z-index:99}"]
1709
1644
  })
1710
1645
  ], ButtonComponent);
@@ -5917,7 +5852,7 @@
5917
5852
  animations.transition("* <=> *", animations.animate("{{transitionParams}}")),
5918
5853
  ]),
5919
5854
  ],
5920
- styles: ["s-lookup.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-lookup .ui-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}s-lookup .inputgroup p-autocomplete+button,s-lookup p-autocomplete .ui-autocomplete-dropdown.ui-button{background-color:#fff;border-color:#ccc;border-width:1px 1px 1px 0;color:#333;min-height:34px;height:auto!important;min-width:auto;width:34px!important;overflow:hidden;border-top-left-radius:0;border-bottom-left-radius:0}.ui-fluid s-lookup .inputgroup,s-lookup p-autocomplete span.ui-autocomplete-multiple{display:-ms-flexbox;display:flex}.ui-fluid s-lookup .inputgroup p-autocomplete{display:inline-block}.ui-fluid s-lookup .inputgroup p-autocomplete,.ui-fluid s-lookup p-autocomplete .ui-autocomplete-input{width:calc(100% - 34px)}.ui-fluid s-lookup .inputgroup p-autocomplete .ui-autocomplete-input{width:100%}s-lookup .inputgroup p-autocomplete+button:enabled:hover,s-lookup .inputgroup p-autocomplete+button:focus{background-color:#e6e6e6;border-color:#ccc}s-lookup .inputgroup p-autocomplete .ui-widget .ui-inputtext{border-right-width:1px;border-right-style:solid}s-lookup .ui-autocomplete-input-token,s-lookup .ui-autocomplete-input-token input{width:100%}s-lookup .ui-autocomplete .ui-autocomplete-token{max-width:100%}s-lookup .ui-autocomplete .ui-autocomplete-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body .s-lookup-modal.ui-dialog .ui-dialog-content{padding:0;margin-bottom:0;max-height:none}s-lookup .ui-table-scrollable-body{min-width:100%}.s-lookup-modal{height:80%!important;max-width:100%!important;max-height:inherit!important;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column}.s-lookup-modal .ui-dialog-content{height:auto!important;-ms-flex:1;flex:1;overflow:auto}.s-lookup-modal .ui-dialog-footer,.s-lookup-modal .ui-dialog-header{-ms-flex-negative:0;flex-shrink:0;border-radius:0 0 4px 4px}.s-lookup-modal .s-lookup-modal-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%}.s-lookup-modal .s-lookup-modal-container .filter{position:relative;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:85%;background-color:rgba(229,234,234,.5);height:100%;padding:.571rem}.s-lookup-modal .s-lookup-modal-container .filter form{width:100%;height:100%}.s-lookup-modal .s-lookup-modal-container .filter form .form-content{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.s-lookup-modal .s-lookup-modal-container .filter form .form-content .filter-title{padding-left:.5rem}.s-lookup-modal .s-lookup-modal-container .filter form .form-content .form-fields{overflow-y:auto}.s-lookup-modal .s-lookup-modal-container .filter-toggle{-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:34px;border-radius:0 4px 4px 0}.s-lookup-modal .s-lookup-modal-container .filter-toggle button{-ms-flex-align:center;align-items:center;position:relative;background-color:rgba(229,234,234,.5);height:34px;width:100%;border:1px solid #e5eaea;outline:0;border-left:none;border-radius:0 4px 4px 0;cursor:pointer;text-decoration:none;text-transform:none;padding:7px;transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out}.s-lookup-modal .s-lookup-modal-container .filter-toggle button:focus,.s-lookup-modal .s-lookup-modal-container .filter-toggle button:hover{background-color:rgba(201,211,211,.5);border-color:#c9d3d3}.s-lookup-modal .s-lookup-modal-container .filter-toggle--start-border-mask{height:15px;border-left:1px solid #e5eaea}.s-lookup-modal .s-lookup-modal-container .filter-toggle--end-border-mask{height:calc(100% - 49px);border-left:1px solid #e5eaea}.s-lookup-modal .s-lookup-modal-container .content{-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:auto;flex-basis:auto;overflow-x:auto;padding:.5rem}.s-lookup-modal .s-lookup-modal-container .content.empty-content{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.s-lookup-modal .s-lookup-modal-container .content .s-loading-state-container,.s-lookup-modal .s-lookup-modal-container .content .s-loading-state-container .contents{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table{position:relative;height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper{height:calc(100% - 60px)}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-view{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-view .ui-table-scrollable-body{position:relative;height:calc(100% - 60px)}@media (max-width:767px){.s-lookup-modal{border:none!important;top:0!important;left:0!important;width:100%!important;height:100%!important}}@media (min-width:768px){.s-lookup-modal{width:80%!important}.s-lookup-modal .s-lookup-modal-container .filter{width:40%}}@media (min-width:1200px){.s-lookup-modal{width:60%!important}.s-lookup-modal .s-lookup-modal-container .filter{width:30%}}"]
5855
+ styles: ["s-lookup.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-lookup .ui-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}s-lookup .inputgroup p-autocomplete+button,s-lookup p-autocomplete .ui-autocomplete-dropdown.ui-button{background-color:#fff;border-color:#ccc;border-width:1px 1px 1px 0;color:#333;min-height:34px;height:auto!important;min-width:auto;width:34px!important;overflow:hidden;border-top-left-radius:0;border-bottom-left-radius:0}s-lookup .inputgroup,s-lookup p-autocomplete span.ui-autocomplete-multiple{display:-ms-flexbox;display:flex}s-lookup .inputgroup p-autocomplete{display:inline-block}s-lookup .inputgroup p-autocomplete,s-lookup p-autocomplete .ui-autocomplete-input{width:calc(100% - 34px)}s-lookup .inputgroup p-autocomplete .ui-autocomplete-input{width:100%}s-lookup .inputgroup p-autocomplete+button:enabled:hover,s-lookup .inputgroup p-autocomplete+button:focus{background-color:#e6e6e6;border-color:#ccc}s-lookup .inputgroup p-autocomplete .ui-widget .ui-inputtext{border-right-width:1px;border-right-style:solid}s-lookup .ui-autocomplete-input-token,s-lookup .ui-autocomplete-input-token input{width:100%}s-lookup .ui-autocomplete .ui-autocomplete-token{max-width:100%}s-lookup .ui-autocomplete .ui-autocomplete-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body .s-lookup-modal.ui-dialog .ui-dialog-content{padding:0;margin-bottom:0;max-height:none}s-lookup .ui-table-scrollable-body{min-width:100%}.s-lookup-modal{height:80%!important;max-width:100%!important;max-height:inherit!important;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column}.s-lookup-modal .ui-dialog-content{height:auto!important;-ms-flex:1;flex:1;overflow:auto}.s-lookup-modal .ui-dialog-footer,.s-lookup-modal .ui-dialog-header{-ms-flex-negative:0;flex-shrink:0;border-radius:0 0 4px 4px}.s-lookup-modal .s-lookup-modal-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%}.s-lookup-modal .s-lookup-modal-container .filter{position:relative;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:85%;background-color:rgba(229,234,234,.5);height:100%;padding:.571rem}.s-lookup-modal .s-lookup-modal-container .filter form{width:100%;height:100%}.s-lookup-modal .s-lookup-modal-container .filter form .form-content{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.s-lookup-modal .s-lookup-modal-container .filter form .form-content .filter-title{padding-left:.5rem}.s-lookup-modal .s-lookup-modal-container .filter form .form-content .form-fields{overflow-y:auto}.s-lookup-modal .s-lookup-modal-container .filter-toggle{-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:34px;border-radius:0 4px 4px 0}.s-lookup-modal .s-lookup-modal-container .filter-toggle button{-ms-flex-align:center;align-items:center;position:relative;background-color:rgba(229,234,234,.5);height:34px;width:100%;border:1px solid #e5eaea;outline:0;border-left:none;border-radius:0 4px 4px 0;cursor:pointer;text-decoration:none;text-transform:none;padding:7px;transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out}.s-lookup-modal .s-lookup-modal-container .filter-toggle button:focus,.s-lookup-modal .s-lookup-modal-container .filter-toggle button:hover{background-color:rgba(201,211,211,.5);border-color:#c9d3d3}.s-lookup-modal .s-lookup-modal-container .filter-toggle--start-border-mask{height:15px;border-left:1px solid #e5eaea}.s-lookup-modal .s-lookup-modal-container .filter-toggle--end-border-mask{height:calc(100% - 49px);border-left:1px solid #e5eaea}.s-lookup-modal .s-lookup-modal-container .content{-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:auto;flex-basis:auto;overflow-x:auto;padding:.5rem}.s-lookup-modal .s-lookup-modal-container .content.empty-content{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.s-lookup-modal .s-lookup-modal-container .content .s-loading-state-container,.s-lookup-modal .s-lookup-modal-container .content .s-loading-state-container .contents{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table{position:relative;height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper{height:calc(100% - 60px)}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-view{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-view .ui-table-scrollable-body{position:relative;height:calc(100% - 60px)}@media (max-width:767px){.s-lookup-modal{border:none!important;top:0!important;left:0!important;width:100%!important;height:100%!important}}@media (min-width:768px){.s-lookup-modal{width:80%!important}.s-lookup-modal .s-lookup-modal-container .filter{width:40%}}@media (min-width:1200px){.s-lookup-modal{width:60%!important}.s-lookup-modal .s-lookup-modal-container .filter{width:30%}}"]
5921
5856
  })
5922
5857
  ], LookupComponent);
5923
5858
  return LookupComponent;
@@ -9569,7 +9504,7 @@
9569
9504
  ], LookupFieldComponent.prototype, "formControl", void 0);
9570
9505
  LookupFieldComponent = __decorate([
9571
9506
  core.Component({
9572
- template: "<s-field-label [field]=\"field\">\n\n<div [sTooltip]=\"field.tooltip\" tooltipPosition=\"top\" [showDelay]=\"500\">\n <s-lookup\n [id]=\"field.id || field.name\"\n [multiple]=\"field.multiple\"\n [formControl]=\"formControl\"\n [lookupSuggestions]=\"field.lookupSuggestions\"\n [dataKey]=\"field.dataKey\"\n [placeholder]=\"field.placeholder\"\n [showSearch]=\"field.showSearch\"\n [searchFields]=\"field.searchFields\"\n [searchGridFields]=\"field.searchGridFields\"\n [searchGridData]=\"field.gridData\"\n (onLookupRequest)=\"field.onLookupRequest($event)\"\n (onSearchRequest)=\"field.onSearchRequest($event)\"\n [lookupDisplayField]=\"field.lookupDisplayField\"\n [searchTotalRecords]=\"field.searchTotalRecords\"\n [searchTotalRecordsLabel]=\"field.searchTotalRecordsLabel\"\n [searchTitle]=\"field.searchTitle\"\n [selectLabel]=\"field.selectLabel\"\n [searchEmptyTitle]=\"field.searchEmptyTitle\"\n [filterLabel]=\"field.filterLabel\"\n [filterTitle]=\"field.filterTitle\"\n [clearLabel]=\"field.clearLabel\"\n [cancelLabel]=\"field.cancelLabel\"\n [emptyFieldLabel]=\"field.emptyFieldLabel\"\n (onSelect)=\"field.onSelect($event)\"\n (onUnselect)=\"field.onUnselect($event)\"\n (onClear)=\"field.onClear ? field.onClear($event) : null\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n [lookupAppendTo]=\"field.appendTo\"\n [lookupEmptyMessage]=\"field.emptyMessage\"\n [recordLabel]=\"field.recordLabel\"\n [recordsLabel]=\"field.recordsLabel\"\n [defaultFilter]=\"field.defaultFilter\"\n [autocompleteForceSelection]=\"field.autocompleteForceSelection\"\n [showAddOption]=\"field.showAddOption\"\n [showEditOption]=\"field.showEditOption\"\n [showRemoveOption]=\"field.showRemoveOption\"\n (onAdd)=\"field.onAdd()\"\n (onEdit)=\"field.onEdit($event)\"\n (onRemove)=\"field.onRemove($event)\"\n >\n </s-lookup>\n</div>\n"
9507
+ template: "<s-field-label [field]=\"field\"></s-field-label>\n\n<div [sTooltip]=\"field.tooltip\" tooltipPosition=\"top\" [showDelay]=\"500\">\n <s-lookup\n [id]=\"field.id || field.name\"\n [multiple]=\"field.multiple\"\n [formControl]=\"formControl\"\n [lookupSuggestions]=\"field.lookupSuggestions\"\n [dataKey]=\"field.dataKey\"\n [placeholder]=\"field.placeholder\"\n [showSearch]=\"field.showSearch\"\n [searchFields]=\"field.searchFields\"\n [searchGridFields]=\"field.searchGridFields\"\n [searchGridData]=\"field.gridData\"\n (onLookupRequest)=\"field.onLookupRequest($event)\"\n (onSearchRequest)=\"field.onSearchRequest($event)\"\n [lookupDisplayField]=\"field.lookupDisplayField\"\n [searchTotalRecords]=\"field.searchTotalRecords\"\n [searchTotalRecordsLabel]=\"field.searchTotalRecordsLabel\"\n [searchTitle]=\"field.searchTitle\"\n [selectLabel]=\"field.selectLabel\"\n [searchEmptyTitle]=\"field.searchEmptyTitle\"\n [filterLabel]=\"field.filterLabel\"\n [filterTitle]=\"field.filterTitle\"\n [clearLabel]=\"field.clearLabel\"\n [cancelLabel]=\"field.cancelLabel\"\n [emptyFieldLabel]=\"field.emptyFieldLabel\"\n (onSelect)=\"field.onSelect($event)\"\n (onUnselect)=\"field.onUnselect($event)\"\n (onClear)=\"field.onClear ? field.onClear($event) : null\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n [lookupAppendTo]=\"field.appendTo\"\n [lookupEmptyMessage]=\"field.emptyMessage\"\n [recordLabel]=\"field.recordLabel\"\n [recordsLabel]=\"field.recordsLabel\"\n [defaultFilter]=\"field.defaultFilter\"\n [autocompleteForceSelection]=\"field.autocompleteForceSelection\"\n [showAddOption]=\"field.showAddOption\"\n [showEditOption]=\"field.showEditOption\"\n [showRemoveOption]=\"field.showRemoveOption\"\n (onAdd)=\"field.onAdd()\"\n (onEdit)=\"field.onEdit($event)\"\n (onRemove)=\"field.onRemove($event)\"\n >\n </s-lookup>\n</div>\n"
9573
9508
  })
9574
9509
  ], LookupFieldComponent);
9575
9510
  return LookupFieldComponent;
@@ -14994,6 +14929,774 @@
14994
14929
  return IAInsightModule;
14995
14930
  }());
14996
14931
 
14932
+ var InlineEditField = /** @class */ (function () {
14933
+ function InlineEditField(options) {
14934
+ this.label = options.label;
14935
+ this.name = options.name;
14936
+ this.tooltip = options.tooltip;
14937
+ this.errorMessages = options.errorMessages;
14938
+ }
14939
+ return InlineEditField;
14940
+ }());
14941
+
14942
+ var InlineEditCalendarField = /** @class */ (function (_super) {
14943
+ __extends(InlineEditCalendarField, _super);
14944
+ function InlineEditCalendarField(options) {
14945
+ var _this = _super.call(this, options) || this;
14946
+ _this.view = options.view || "date";
14947
+ _this.minDate = options.minDate;
14948
+ _this.maxDate = options.maxDate;
14949
+ _this.defaultDate = options.defaultDate;
14950
+ _this.appendTo = options.appendTo;
14951
+ _this.showOnFocus = typeof options.showOnFocus === "boolean" ? options.showOnFocus : true;
14952
+ _this.onBlur = options.onBlur;
14953
+ _this.onFocus = options.onFocus;
14954
+ _this.onSelect = options.onSelect;
14955
+ _this.onInput = options.onInput;
14956
+ _this.onClose = options.onClose;
14957
+ _this.onTodayClick = options.onTodayClick;
14958
+ _this.onClearClick = options.onClearClick;
14959
+ _this.onMonthChange = options.onMonthChange;
14960
+ _this.onYearChange = options.onYearChange;
14961
+ _this.selectionMode = options.selectionMode || "single";
14962
+ _this.rangeSeparator = options.rangeSeparator || "-";
14963
+ _this.showSeconds = options.showSeconds;
14964
+ _this.placeholder = options.placeholder;
14965
+ return _this;
14966
+ }
14967
+ return InlineEditCalendarField;
14968
+ }(InlineEditField));
14969
+
14970
+ var InlineEditLookupField = /** @class */ (function (_super) {
14971
+ __extends(InlineEditLookupField, _super);
14972
+ function InlineEditLookupField(options) {
14973
+ var _this = _super.call(this, options) || this;
14974
+ _this.multiple = false;
14975
+ _this.showSearch = true;
14976
+ _this.autocompleteForceSelection = true;
14977
+ _this.showAddOption = false;
14978
+ _this.showEditOption = false;
14979
+ _this.showRemoveOption = false;
14980
+ _this.onSelect = function (event) { };
14981
+ _this.onUnselect = function (event) { };
14982
+ Object.assign(_this, options);
14983
+ _this.suggestionsObservable.subscribe(function (suggestions) { return (_this.lookupSuggestions = suggestions); });
14984
+ _this.searchObservable.pipe(operators.delay(0)).subscribe(function (_a) {
14985
+ var totalRecords = _a.totalRecords, gridData = _a.gridData, searchTotalRecordsLabel = _a.searchTotalRecordsLabel;
14986
+ _this._gridData = gridData;
14987
+ _this._searchTotalRecords = totalRecords;
14988
+ _this._searchTotalRecordsLabel = searchTotalRecordsLabel;
14989
+ });
14990
+ return _this;
14991
+ }
14992
+ Object.defineProperty(InlineEditLookupField.prototype, "gridData", {
14993
+ get: function () {
14994
+ return this._gridData;
14995
+ },
14996
+ enumerable: true,
14997
+ configurable: true
14998
+ });
14999
+ Object.defineProperty(InlineEditLookupField.prototype, "searchTotalRecords", {
15000
+ get: function () {
15001
+ return this._searchTotalRecords;
15002
+ },
15003
+ enumerable: true,
15004
+ configurable: true
15005
+ });
15006
+ Object.defineProperty(InlineEditLookupField.prototype, "searchTotalRecordsLabel", {
15007
+ get: function () {
15008
+ return this._searchTotalRecordsLabel;
15009
+ },
15010
+ enumerable: true,
15011
+ configurable: true
15012
+ });
15013
+ return InlineEditLookupField;
15014
+ }(InlineEditField));
15015
+
15016
+ var InlineEditNumberField = /** @class */ (function (_super) {
15017
+ __extends(InlineEditNumberField, _super);
15018
+ function InlineEditNumberField(options) {
15019
+ var _a, _b, _c, _d;
15020
+ var _this = _super.call(this, options) || this;
15021
+ _this.allowNegative = (_a = options.allowNegative) !== null && _a !== void 0 ? _a : true;
15022
+ _this.numberLocaleOptions = options.numberLocaleOptions;
15023
+ _this.browserAutocomplete = options.browserAutocomplete;
15024
+ _this.precision = options.precision;
15025
+ _this.scale = (_b = options.scale) !== null && _b !== void 0 ? _b : 2;
15026
+ _this.alignTo = _this.scale ? ng2CurrencyMask.AlignmentOptions.RIGHT : ng2CurrencyMask.AlignmentOptions.LEFT;
15027
+ _this.mask = options.mask;
15028
+ _this.leftAddon = options.leftAddon;
15029
+ _this.rightAddon = options.rightAddon;
15030
+ _this.onBlur = options.onBlur;
15031
+ _this.onFocus = options.onFocus;
15032
+ _this.onComplete = options.onComplete;
15033
+ _this.onInput = options.onInput;
15034
+ _this.autoClear = (_c = options.autoClear) !== null && _c !== void 0 ? _c : true;
15035
+ _this.placeholder = (_d = options.placeholder) !== null && _d !== void 0 ? _d : "";
15036
+ return _this;
15037
+ }
15038
+ return InlineEditNumberField;
15039
+ }(InlineEditField));
15040
+
15041
+ var InlineEditTextAreaField = /** @class */ (function (_super) {
15042
+ __extends(InlineEditTextAreaField, _super);
15043
+ function InlineEditTextAreaField(options) {
15044
+ var _this = _super.call(this, options) || this;
15045
+ _this.cols = options.cols;
15046
+ _this.rows = options.rows;
15047
+ _this.keyFilter = options.keyFilter;
15048
+ _this.readonly = options.readonly;
15049
+ return _this;
15050
+ }
15051
+ return InlineEditTextAreaField;
15052
+ }(InlineEditField));
15053
+
15054
+ var InlineEditTextField = /** @class */ (function (_super) {
15055
+ __extends(InlineEditTextField, _super);
15056
+ function InlineEditTextField(options) {
15057
+ return _super.call(this, options) || this;
15058
+ }
15059
+ return InlineEditTextField;
15060
+ }(InlineEditField));
15061
+
15062
+ var InlineEditTextAreaIAField = /** @class */ (function (_super) {
15063
+ __extends(InlineEditTextAreaIAField, _super);
15064
+ function InlineEditTextAreaIAField(options) {
15065
+ return _super.call(this, options) || this;
15066
+ }
15067
+ return InlineEditTextAreaIAField;
15068
+ }(InlineEditField));
15069
+
15070
+ var InlineEditItemComponent = /** @class */ (function () {
15071
+ function InlineEditItemComponent(localeService) {
15072
+ this.localeService = localeService;
15073
+ this.isEditing = false;
15074
+ }
15075
+ InlineEditItemComponent.prototype.ngOnInit = function () {
15076
+ this._getCalendarLocaleOptions();
15077
+ };
15078
+ Object.defineProperty(InlineEditItemComponent.prototype, "showEmptyValueButton", {
15079
+ get: function () {
15080
+ var _a;
15081
+ return !this.isEditing && !((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value);
15082
+ },
15083
+ enumerable: true,
15084
+ configurable: true
15085
+ });
15086
+ Object.defineProperty(InlineEditItemComponent.prototype, "showEditButton", {
15087
+ get: function () {
15088
+ var _a;
15089
+ return !this.isEditing && ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value);
15090
+ },
15091
+ enumerable: true,
15092
+ configurable: true
15093
+ });
15094
+ Object.defineProperty(InlineEditItemComponent.prototype, "showValue", {
15095
+ get: function () {
15096
+ var _a;
15097
+ return !this.isEditing && ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value);
15098
+ },
15099
+ enumerable: true,
15100
+ configurable: true
15101
+ });
15102
+ InlineEditItemComponent.prototype.onEdit = function () {
15103
+ this.isEditing = !this.isEditing;
15104
+ };
15105
+ InlineEditItemComponent.prototype.onCancel = function () {
15106
+ this.isEditing = !this.isEditing;
15107
+ };
15108
+ InlineEditItemComponent.prototype.onSave = function () {
15109
+ if (this.dynamicComponentRef && this.dynamicComponentRef.instance.saveValue) {
15110
+ var control = this.formGroup.get(this.field.name);
15111
+ control.markAsDirty({ onlySelf: true });
15112
+ this.dynamicComponentRef.instance.saveValue();
15113
+ }
15114
+ if (this.formGroup.get(this.field.name).valid) {
15115
+ this.isEditing = !this.isEditing;
15116
+ }
15117
+ };
15118
+ InlineEditItemComponent.prototype.setDynamicComponentRef = function (ref) {
15119
+ this.dynamicComponentRef = ref;
15120
+ };
15121
+ InlineEditItemComponent.prototype.getErrorMessages = function (errorMessages) {
15122
+ if (errorMessages)
15123
+ return errorMessages instanceof Function
15124
+ ? __assign(__assign({}, this.errorMessages), errorMessages()) : __assign(__assign({}, this.errorMessages), errorMessages);
15125
+ return this.errorMessages;
15126
+ };
15127
+ InlineEditItemComponent.prototype.getFormattedValue = function (value) {
15128
+ if (this.field instanceof InlineEditCalendarField) {
15129
+ return this.dynamicComponentRef.instance.getValueAsText();
15130
+ }
15131
+ if (this.field instanceof InlineEditLookupField) {
15132
+ var lookupField_1 = this.field;
15133
+ return this.field.multiple
15134
+ ? value.map(function (val) { return val[lookupField_1.lookupDisplayField]; }).join(" - ")
15135
+ : value[lookupField_1.lookupDisplayField];
15136
+ }
15137
+ return value;
15138
+ };
15139
+ InlineEditItemComponent.prototype._getCalendarLocaleOptions = function () {
15140
+ var _this = this;
15141
+ this.localeService
15142
+ .get()
15143
+ .pipe(operators.first())
15144
+ .subscribe(function (localeOptions) {
15145
+ _this._locale = localeOptions.locale;
15146
+ });
15147
+ };
15148
+ InlineEditItemComponent.ctorParameters = function () { return [
15149
+ { type: LocaleService }
15150
+ ]; };
15151
+ __decorate([
15152
+ core.ViewChild("formContainer", { read: core.ViewContainerRef, static: true })
15153
+ ], InlineEditItemComponent.prototype, "viewContainerRef", void 0);
15154
+ __decorate([
15155
+ core.Input()
15156
+ ], InlineEditItemComponent.prototype, "label", void 0);
15157
+ __decorate([
15158
+ core.Input()
15159
+ ], InlineEditItemComponent.prototype, "formGroup", void 0);
15160
+ __decorate([
15161
+ core.Input()
15162
+ ], InlineEditItemComponent.prototype, "field", void 0);
15163
+ __decorate([
15164
+ core.Input()
15165
+ ], InlineEditItemComponent.prototype, "errorMessages", void 0);
15166
+ InlineEditItemComponent = __decorate([
15167
+ core.Component({
15168
+ selector: "s-inline-edit-item",
15169
+ template: "<div class=\"inline-edit-item\">\n <label\n class=\"label\"\n *sInfoSign=\"field.tooltip\">\n {{ label }}:\n </label>\n\n <div class=\"content\">\n <span *ngIf=\"showValue\" class=\"value\">\n {{ getFormattedValue(formGroup.get(field.name)?.value) }}\n </span>\n\n <s-button\n *ngIf=\"showEmptyValueButton\"\n style=\"margin-left: -8px\"\n priority=\"link\"\n [label]=\"'platform.angular_components.add_information' | translate\"\n (onClick)=\"onEdit()\">\n </s-button>\n\n <div [hidden]=\"!isEditing\" class=\"form-container\">\n <ng-container #formContainer></ng-container>\n </div>\n\n <div class=\"options\">\n <s-button\n *ngIf=\"showEditButton\"\n [tooltip]=\"'platform.angular_components.edit' | translate\"\n (onClick)=\"onEdit()\"\n priority=\"link\"\n [auxiliary]=\"true\"\n iconClass=\"fas fa-edit\">\n </s-button>\n <s-button\n *ngIf=\"isEditing\"\n [tooltip]=\"'platform.angular_components.save' | translate\"\n (onClick)=\"onSave()\"\n priority=\"default\"\n [auxiliary]=\"true\"\n iconClass=\"fas fa-check\"\n styleClass=\"save-option\"\n iconColor=\"#428bca\">\n </s-button>\n <s-button\n *ngIf=\"isEditing\"\n [tooltip]=\"'platform.angular_components.cancel' | translate\"\n (onClick)=\"onCancel()\"\n priority=\"default\"\n [auxiliary]=\"true\"\n iconClass=\"fas fa-times\"\n iconColor=\"#c13018\">\n </s-button>\n </div>\n </div>\n <s-control-errors\n [form]=\"formGroup\"\n [control]=\"formGroup.controls[field.name]\"\n [errorMessages]=\"getErrorMessages(field.errorMessages)\">\n </s-control-errors>\n</div>\n",
15170
+ styles: [".inline-edit-item{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.inline-edit-item .label{color:#333;font-family:\"Open Sans\" sans-serif;font-size:14px;font-weight:700;margin-bottom:0}.inline-edit-item .content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:16px}.inline-edit-item .content .value{color:#999;font-family:\"Open Sans\" sans-serif;font-size:14px}.inline-edit-item .content .options{display:-ms-flexbox;display:flex}"]
15171
+ })
15172
+ ], InlineEditItemComponent);
15173
+ return InlineEditItemComponent;
15174
+ }());
15175
+
15176
+ var InlineEditCalendarComponent = /** @class */ (function () {
15177
+ function InlineEditCalendarComponent(localeService) {
15178
+ this.localeService = localeService;
15179
+ }
15180
+ InlineEditCalendarComponent.prototype.ngOnInit = function () {
15181
+ var _a;
15182
+ this._getLocaleOptions();
15183
+ if (this.formGroup && this.field) {
15184
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
15185
+ }
15186
+ };
15187
+ InlineEditCalendarComponent.prototype.saveValue = function () {
15188
+ var _a;
15189
+ if (this.formGroup && this.field) {
15190
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
15191
+ }
15192
+ };
15193
+ InlineEditCalendarComponent.prototype.getValueAsText = function () {
15194
+ return this.calendar.el.nativeElement.querySelector('input').value;
15195
+ };
15196
+ InlineEditCalendarComponent.prototype._getLocaleOptions = function () {
15197
+ var _this = this;
15198
+ this.localeService.get().pipe(operators.first()).subscribe(function (locale) {
15199
+ _this.calendarLocaleOptions = locale.calendar;
15200
+ });
15201
+ };
15202
+ InlineEditCalendarComponent.ctorParameters = function () { return [
15203
+ { type: LocaleService }
15204
+ ]; };
15205
+ __decorate([
15206
+ core.Input()
15207
+ ], InlineEditCalendarComponent.prototype, "field", void 0);
15208
+ __decorate([
15209
+ core.Input()
15210
+ ], InlineEditCalendarComponent.prototype, "formGroup", void 0);
15211
+ __decorate([
15212
+ core.ViewChild(calendar.Calendar)
15213
+ ], InlineEditCalendarComponent.prototype, "calendar", void 0);
15214
+ InlineEditCalendarComponent = __decorate([
15215
+ core.Component({
15216
+ template: "<p-calendar\n #calendar\n sCalendarMask\n [inputId]=\"field.name\"\n [name]=\"field.name\"\n [showIcon]=\"true\"\n [selectionMode]=\"field.selectionMode\"\n [rangeSeparator]=\"field.rangeSeparator\"\n [showSeconds]=\"field.showSeconds\"\n [showOnFocus]=\"field.showOnFocus\"\n icon=\"fa fa-calendar\"\n [minDate]=\"field.minDate\"\n [maxDate]=\"field.maxDate\"\n [dateFormat]=\"calendarLocaleOptions.dateFormat\"\n [hourFormat]=\"calendarLocaleOptions.hourFormat\"\n [defaultDate]=\"field.defaultDate\"\n [view]=\"field.view\"\n [placeholder]=\"field.placeholder\"\n inputStyleClass=\"mousetrap\"\n [appendTo]=\"field.appendTo\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n (onFocus)=\"field.onFocus ? field.onFocus($event) : null\"\n (onSelect)=\"field.onSelect ? field.onSelect($event) : null\"\n (onClose)=\"field.onClose ? field.onClose($event) : null\"\n (onTodayClick)=\"field.onTodayClick ? field.onTodayClick($event) : null\"\n (onClearClick)=\"field.onClearClick ? field.onClearClick($event) : null\"\n (onMonthChange)=\"field.onMonthChange ? field.onMonthChange($event) : null\"\n (onYearChange)=\"field.onYearChange ? field.onYearChange($event) : null\"\n [showTransitionOptions]=\"'0ms'\"\n [hideTransitionOptions]=\"'0ms'\"\n [(ngModel)]=\"tempValue\">\n</p-calendar>\n",
15217
+ styles: [""]
15218
+ })
15219
+ ], InlineEditCalendarComponent);
15220
+ return InlineEditCalendarComponent;
15221
+ }());
15222
+
15223
+ var InlineEditLookupComponent = /** @class */ (function () {
15224
+ function InlineEditLookupComponent() {
15225
+ }
15226
+ InlineEditLookupComponent.prototype.ngOnInit = function () {
15227
+ var _a;
15228
+ if (this.formGroup && this.field) {
15229
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || "";
15230
+ }
15231
+ };
15232
+ InlineEditLookupComponent.prototype.saveValue = function () {
15233
+ var _a;
15234
+ if (this.formGroup && this.field) {
15235
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
15236
+ }
15237
+ };
15238
+ __decorate([
15239
+ core.Input()
15240
+ ], InlineEditLookupComponent.prototype, "field", void 0);
15241
+ __decorate([
15242
+ core.Input()
15243
+ ], InlineEditLookupComponent.prototype, "formGroup", void 0);
15244
+ InlineEditLookupComponent = __decorate([
15245
+ core.Component({
15246
+ template: "<s-lookup\n [id]=\"field.name\"\n [multiple]=\"field.multiple\"\n [lookupSuggestions]=\"field.lookupSuggestions\"\n [dataKey]=\"field.dataKey\"\n [placeholder]=\"field.placeholder\"\n [showSearch]=\"field.showSearch\"\n [searchFields]=\"field.searchFields\"\n [searchGridFields]=\"field.searchGridFields\"\n [searchGridData]=\"field.gridData\"\n (onLookupRequest)=\"field.onLookupRequest($event)\"\n (onSearchRequest)=\"field.onSearchRequest($event)\"\n [lookupDisplayField]=\"field.lookupDisplayField\"\n [searchTotalRecords]=\"field.searchTotalRecords\"\n [searchTotalRecordsLabel]=\"field.searchTotalRecordsLabel\"\n [searchTitle]=\"field.searchTitle\"\n [searchEmptyTitle]=\"field.searchEmptyTitle\"\n [filterTitle]=\"field.filterTitle\"\n (onSelect)=\"field.onSelect($event)\"\n (onUnselect)=\"field.onUnselect($event)\"\n (onClear)=\"field.onClear ? field.onClear($event) : null\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n [lookupAppendTo]=\"field.appendTo\"\n [lookupEmptyMessage]=\"field.emptyMessage\"\n [defaultFilter]=\"field.defaultFilter\"\n [autocompleteForceSelection]=\"field.autocompleteForceSelection\"\n [showAddOption]=\"field.showAddOption\"\n [showEditOption]=\"field.showEditOption\"\n [showRemoveOption]=\"field.showRemoveOption\"\n (onAdd)=\"field.onAdd()\"\n (onEdit)=\"field.onEdit($event)\"\n (onRemove)=\"field.onRemove($event)\"\n [(ngModel)]=\"tempValue\">\n</s-lookup>\n",
15247
+ styles: [""]
15248
+ })
15249
+ ], InlineEditLookupComponent);
15250
+ return InlineEditLookupComponent;
15251
+ }());
15252
+
15253
+ var InlineEditNumberComponent = /** @class */ (function () {
15254
+ function InlineEditNumberComponent(localeService) {
15255
+ this.localeService = localeService;
15256
+ }
15257
+ InlineEditNumberComponent.prototype.ngOnInit = function () {
15258
+ var _a;
15259
+ this._onLocaleService();
15260
+ if (this.formGroup && this.field) {
15261
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
15262
+ }
15263
+ };
15264
+ InlineEditNumberComponent.prototype.saveValue = function () {
15265
+ var _a;
15266
+ if (this.formGroup && this.field) {
15267
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
15268
+ }
15269
+ };
15270
+ Object.defineProperty(InlineEditNumberComponent.prototype, "mask", {
15271
+ get: function () {
15272
+ return typeof this.field.mask === 'function' ? this.field.mask() : this.field.mask;
15273
+ },
15274
+ enumerable: true,
15275
+ configurable: true
15276
+ });
15277
+ Object.defineProperty(InlineEditNumberComponent.prototype, "leftAddonDisabled", {
15278
+ get: function () {
15279
+ return typeof this.field.leftAddon.disabled === 'function' ? this.field.leftAddon.disabled() : this.field.leftAddon.disabled;
15280
+ },
15281
+ enumerable: true,
15282
+ configurable: true
15283
+ });
15284
+ Object.defineProperty(InlineEditNumberComponent.prototype, "rightAddonDisabled", {
15285
+ get: function () {
15286
+ return typeof this.field.rightAddon.disabled === 'function' ? this.field.rightAddon.disabled() : this.field.rightAddon.disabled;
15287
+ },
15288
+ enumerable: true,
15289
+ configurable: true
15290
+ });
15291
+ Object.defineProperty(InlineEditNumberComponent.prototype, "precision", {
15292
+ get: function () {
15293
+ return typeof this.field.precision === 'function' ? this.field.precision() : this.field.precision;
15294
+ },
15295
+ enumerable: true,
15296
+ configurable: true
15297
+ });
15298
+ Object.defineProperty(InlineEditNumberComponent.prototype, "scale", {
15299
+ get: function () {
15300
+ return typeof this.field.scale === 'function' ? this.field.scale() : this.field.scale;
15301
+ },
15302
+ enumerable: true,
15303
+ configurable: true
15304
+ });
15305
+ InlineEditNumberComponent.prototype._onLocaleService = function () {
15306
+ var _this = this;
15307
+ this.localeService
15308
+ .getLocale()
15309
+ .pipe(operators.first())
15310
+ .subscribe({
15311
+ next: function () {
15312
+ var _a, _b;
15313
+ if (!((_a = _this.field.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator)) {
15314
+ _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { decimalSeparator: _this.localeService.getDecimalSeparator() });
15315
+ }
15316
+ if (!((_b = _this.field.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator)) {
15317
+ _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { thousandsSeparator: _this.localeService.getGroupingSeparator() });
15318
+ }
15319
+ },
15320
+ error: function () {
15321
+ return (_this.field.numberLocaleOptions = {
15322
+ thousandsSeparator: ".",
15323
+ decimalSeparator: ",",
15324
+ currencySymbol: "",
15325
+ });
15326
+ },
15327
+ });
15328
+ };
15329
+ InlineEditNumberComponent.ctorParameters = function () { return [
15330
+ { type: LocaleService }
15331
+ ]; };
15332
+ __decorate([
15333
+ core.Input()
15334
+ ], InlineEditNumberComponent.prototype, "field", void 0);
15335
+ __decorate([
15336
+ core.Input()
15337
+ ], InlineEditNumberComponent.prototype, "formGroup", void 0);
15338
+ InlineEditNumberComponent = __decorate([
15339
+ core.Component({
15340
+ template: "<p-inputMask\n *ngIf=\"field.mask; else noMask\"\n type=\"text\"\n [inputId]=\"field.name\"\n [name]=\"field.name\"\n [mask]=\"mask\"\n [placeholder]=\"field.placeholder\"\n slotChar=\"_\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [showDelay]=\"500\"\n styleClass=\"mousetrap\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n (onFocus)=\"field.onFocus ? field.onFocus($event) : null\"\n (onComplete)=\"field.onComplete ? field.onComplete($event) : null\"\n (onInput)=\"field.onInput ? field.onInput($event) : null\"\n [autoClear]=\"field.autoClear\"\n [(ngModel)]=\"tempValue\">\n</p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class=\"ui-inputgroup\">\n <ng-container *ngIf=\"field.leftAddon\">\n <span *ngIf=\"field.leftAddon.callback\" class=\"addon-button addon-button--left\">\n <s-button\n [label]=\"field.leftAddon.label\"\n [iconClass]=\"field.leftAddon.icon\"\n [priority]=\"field.leftAddon.priority\"\n [disabled]=\"leftAddonDisabled\"\n (onClick)=\"field.leftAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.leftAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.leftAddon.label\">{{ field.leftAddon.label }}</span>\n <span *ngIf=\"!field.leftAddon.label\" [ngClass]=\"field.leftAddon.icon\"></span>\n </span>\n </ng-container>\n\n <input\n [id]=\"field.name\"\n type=\"text\"\n [name]=\"field.name\"\n sBignumberInput\n [allowNegative]=\"field.allowNegative\"\n [precision]=\"precision\"\n [scale]=\"scale\"\n [alignTo]=\"field.alignTo\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"field.onFocus ? field.onFocus($event) : null\"\n [(ngModel)]=\"tempValue\"/>\n <ng-container *ngIf=\"field.rightAddon\">\n <span *ngIf=\"field.rightAddon.callback\" class=\"addon-button addon-button--right\">\n <s-button\n [label]=\"field.rightAddon.label\"\n [iconClass]=\"field.rightAddon.icon\"\n [priority]=\"field.rightAddon.priority\"\n [disabled]=\"rightAddonDisabled\"\n (onClick)=\"field.rightAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.rightAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.rightAddon.label\">{{ field.rightAddon.label }}</span>\n <span *ngIf=\"!field.rightAddon.label\" [ngClass]=\"field.rightAddon.icon\"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>\n",
15341
+ styles: [""]
15342
+ })
15343
+ ], InlineEditNumberComponent);
15344
+ return InlineEditNumberComponent;
15345
+ }());
15346
+
15347
+ var InlineEditTextAreaComponent = /** @class */ (function () {
15348
+ function InlineEditTextAreaComponent() {
15349
+ }
15350
+ InlineEditTextAreaComponent.prototype.ngOnInit = function () {
15351
+ var _a;
15352
+ if (this.formGroup && this.field) {
15353
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
15354
+ }
15355
+ };
15356
+ InlineEditTextAreaComponent.prototype.saveValue = function () {
15357
+ var _a;
15358
+ if (this.formGroup && this.field) {
15359
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
15360
+ }
15361
+ };
15362
+ __decorate([
15363
+ core.Input()
15364
+ ], InlineEditTextAreaComponent.prototype, "field", void 0);
15365
+ __decorate([
15366
+ core.Input()
15367
+ ], InlineEditTextAreaComponent.prototype, "formGroup", void 0);
15368
+ InlineEditTextAreaComponent = __decorate([
15369
+ core.Component({
15370
+ template: "<ng-container *ngIf=\"field.keyFilter; else noKeyFilter\">\n <textarea\n [id]=\"field.name\"\n pInputTextarea\n class=\"textarea-input\"\n [rows]=\"field.rows\"\n [cols]=\"field.cols\"\n [pKeyFilter]=\"field.keyFilter\"\n [readonly]=\"field.readonly ? field.readonly() : false\"\n [(ngModel)]=\"tempValue\">\n </textarea>\n</ng-container>\n<ng-template #noKeyFilter>\n <textarea\n [id]=\"field.name\"\n pInputTextarea\n class=\"textarea-input\"\n [rows]=\"field.rows\"\n [cols]=\"field.cols\"\n [readonly]=\"field.readonly ? field.readonly() : false\"\n [(ngModel)]=\"tempValue\">\n </textarea>\n</ng-template>\n",
15371
+ styles: [".textarea-input{resize:vertical}"]
15372
+ })
15373
+ ], InlineEditTextAreaComponent);
15374
+ return InlineEditTextAreaComponent;
15375
+ }());
15376
+
15377
+ var InlineEditTextComponent = /** @class */ (function () {
15378
+ function InlineEditTextComponent() {
15379
+ }
15380
+ InlineEditTextComponent.prototype.ngOnInit = function () {
15381
+ var _a;
15382
+ if (this.formGroup && this.field) {
15383
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
15384
+ }
15385
+ };
15386
+ InlineEditTextComponent.prototype.saveValue = function () {
15387
+ var _a;
15388
+ if (this.formGroup && this.field) {
15389
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
15390
+ }
15391
+ };
15392
+ __decorate([
15393
+ core.Input()
15394
+ ], InlineEditTextComponent.prototype, "field", void 0);
15395
+ __decorate([
15396
+ core.Input()
15397
+ ], InlineEditTextComponent.prototype, "formGroup", void 0);
15398
+ InlineEditTextComponent = __decorate([
15399
+ core.Component({
15400
+ template: "<input\n type=\"text\"\n pInputText\n [(ngModel)]=\"tempValue\" />",
15401
+ styles: [""]
15402
+ })
15403
+ ], InlineEditTextComponent);
15404
+ return InlineEditTextComponent;
15405
+ }());
15406
+
15407
+ var InlineEditTextAreaIAComponent = /** @class */ (function () {
15408
+ function InlineEditTextAreaIAComponent() {
15409
+ }
15410
+ InlineEditTextAreaIAComponent.prototype.ngOnInit = function () {
15411
+ var _a;
15412
+ if (this.formGroup && this.field) {
15413
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
15414
+ }
15415
+ };
15416
+ InlineEditTextAreaIAComponent.prototype.saveValue = function () {
15417
+ var _a;
15418
+ if (this.formGroup && this.field) {
15419
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
15420
+ }
15421
+ };
15422
+ __decorate([
15423
+ core.Input()
15424
+ ], InlineEditTextAreaIAComponent.prototype, "field", void 0);
15425
+ __decorate([
15426
+ core.Input()
15427
+ ], InlineEditTextAreaIAComponent.prototype, "formGroup", void 0);
15428
+ InlineEditTextAreaIAComponent = __decorate([
15429
+ core.Component({
15430
+ template: "<s-text-area-ia [(ngModel)]=\"tempValue\"></s-text-area-ia>",
15431
+ styles: [""]
15432
+ })
15433
+ ], InlineEditTextAreaIAComponent);
15434
+ return InlineEditTextAreaIAComponent;
15435
+ }());
15436
+
15437
+ var InlineEditComponent = /** @class */ (function () {
15438
+ function InlineEditComponent(resolver) {
15439
+ var _a;
15440
+ this.resolver = resolver;
15441
+ this.fields = [];
15442
+ this._componentMap = (_a = {},
15443
+ _a[InlineEditCalendarField.name] = InlineEditCalendarComponent,
15444
+ _a[InlineEditLookupField.name] = InlineEditLookupComponent,
15445
+ _a[InlineEditTextField.name] = InlineEditTextComponent,
15446
+ _a[InlineEditNumberField.name] = InlineEditNumberComponent,
15447
+ _a[InlineEditTextAreaField.name] = InlineEditTextAreaComponent,
15448
+ _a[InlineEditTextAreaIAField.name] = InlineEditTextAreaIAComponent,
15449
+ _a);
15450
+ }
15451
+ InlineEditComponent.prototype.ngOnInit = function () {
15452
+ this._createFields();
15453
+ };
15454
+ InlineEditComponent.prototype._createFields = function () {
15455
+ var e_1, _a;
15456
+ var _this = this;
15457
+ this.container.clear();
15458
+ var createComponent = function (componentClass, field) {
15459
+ var componentFactory = _this.resolver.resolveComponentFactory(componentClass);
15460
+ var componentRef = _this.container.createComponent(componentFactory);
15461
+ componentRef.instance.field = field;
15462
+ componentRef.instance.formGroup = _this.formGroup;
15463
+ return componentRef;
15464
+ };
15465
+ try {
15466
+ for (var _b = __values(this.fields), _c = _b.next(); !_c.done; _c = _b.next()) {
15467
+ var field = _c.value;
15468
+ var componentClass = this._componentMap[field.constructor.name];
15469
+ if (componentClass) {
15470
+ var inlineEditItemFactory = this.resolver.resolveComponentFactory(InlineEditItemComponent);
15471
+ var inlineEditItemRef = this.container.createComponent(inlineEditItemFactory);
15472
+ inlineEditItemRef.instance.label = field.label;
15473
+ inlineEditItemRef.instance.formGroup = this.formGroup;
15474
+ inlineEditItemRef.instance.field = field;
15475
+ inlineEditItemRef.instance.errorMessages = this.errorMessages;
15476
+ var dynamicComponentRef = createComponent(componentClass, field);
15477
+ var inlineEditItemInstance = inlineEditItemRef.instance;
15478
+ inlineEditItemInstance.viewContainerRef.insert(dynamicComponentRef.hostView);
15479
+ inlineEditItemInstance.setDynamicComponentRef(dynamicComponentRef);
15480
+ }
15481
+ }
15482
+ }
15483
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
15484
+ finally {
15485
+ try {
15486
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
15487
+ }
15488
+ finally { if (e_1) throw e_1.error; }
15489
+ }
15490
+ };
15491
+ InlineEditComponent.ctorParameters = function () { return [
15492
+ { type: core.ComponentFactoryResolver }
15493
+ ]; };
15494
+ __decorate([
15495
+ core.Input()
15496
+ ], InlineEditComponent.prototype, "formGroup", void 0);
15497
+ __decorate([
15498
+ core.Input()
15499
+ ], InlineEditComponent.prototype, "fields", void 0);
15500
+ __decorate([
15501
+ core.Input()
15502
+ ], InlineEditComponent.prototype, "errorMessages", void 0);
15503
+ __decorate([
15504
+ core.ViewChild("formContainer", { read: core.ViewContainerRef, static: true })
15505
+ ], InlineEditComponent.prototype, "container", void 0);
15506
+ InlineEditComponent = __decorate([
15507
+ core.Component({
15508
+ selector: "s-inline-edit",
15509
+ template: "<div class=\"inline-edit\">\n <ng-template #formContainer></ng-template>\n</div>\n",
15510
+ styles: [".inline-edit{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}"]
15511
+ })
15512
+ ], InlineEditComponent);
15513
+ return InlineEditComponent;
15514
+ }());
15515
+
15516
+ var TextAreaIAComponent = /** @class */ (function () {
15517
+ function TextAreaIAComponent(_iassistService, // Mover pra uma pasta global
15518
+ _formBuilder, _translateService) {
15519
+ this._iassistService = _iassistService;
15520
+ this._formBuilder = _formBuilder;
15521
+ this._translateService = _translateService;
15522
+ this.isVisible = false;
15523
+ this.isLoading = false;
15524
+ }
15525
+ TextAreaIAComponent_1 = TextAreaIAComponent;
15526
+ TextAreaIAComponent.prototype.ngOnInit = function () {
15527
+ this._createDialogFields();
15528
+ this._createDialogFormGroup();
15529
+ };
15530
+ TextAreaIAComponent.prototype.writeValue = function (value) {
15531
+ this.value = value;
15532
+ };
15533
+ TextAreaIAComponent.prototype.registerOnChange = function (onChange) {
15534
+ this._onChange = onChange;
15535
+ };
15536
+ TextAreaIAComponent.prototype.registerOnTouched = function (onTouched) {
15537
+ this._onTouched = onTouched;
15538
+ };
15539
+ TextAreaIAComponent.prototype.setDisabledState = function (isDisabled) {
15540
+ this._isDisabled = isDisabled;
15541
+ };
15542
+ TextAreaIAComponent.prototype.onValueChange = function (value) {
15543
+ var _a;
15544
+ this.value = value;
15545
+ (_a = this._onChange) === null || _a === void 0 ? void 0 : _a.call(this, value);
15546
+ };
15547
+ TextAreaIAComponent.prototype.showDialog = function () {
15548
+ this.isVisible = true;
15549
+ this._onTouched();
15550
+ };
15551
+ TextAreaIAComponent.prototype.hideDialog = function () {
15552
+ this.isVisible = false;
15553
+ };
15554
+ TextAreaIAComponent.prototype.onHideDialog = function () {
15555
+ this.formGroup.get("context").setValue("");
15556
+ };
15557
+ TextAreaIAComponent.prototype.submitContext = function () {
15558
+ var _this = this;
15559
+ var context = this.formGroup.get("context");
15560
+ this.isLoading = true;
15561
+ this._iassistService
15562
+ .askIA(context.value, {
15563
+ id: this.id,
15564
+ label: this.label,
15565
+ placeholder: this.placeholder,
15566
+ prompt: this.prompt,
15567
+ })
15568
+ .pipe(operators.catchError(function (err) {
15569
+ _this.isLoading = false;
15570
+ return rxjs.throwError(err);
15571
+ }))
15572
+ .subscribe(function (res) {
15573
+ _this.value = res.text;
15574
+ _this._onChange(_this.value);
15575
+ _this.isLoading = false;
15576
+ });
15577
+ this.hideDialog();
15578
+ };
15579
+ TextAreaIAComponent.prototype._createDialogFields = function () {
15580
+ this.fields = [
15581
+ new FormField({
15582
+ name: "context",
15583
+ type: exports.FieldType.Text,
15584
+ label: this._translateService.instant("platform.angular_components.context"),
15585
+ size: { sm: 12, md: 12, lg: 12, xl: 12 },
15586
+ }),
15587
+ ];
15588
+ };
15589
+ TextAreaIAComponent.prototype._createDialogFormGroup = function () {
15590
+ this.formGroup = this._formBuilder.group({
15591
+ context: [""],
15592
+ });
15593
+ };
15594
+ var TextAreaIAComponent_1;
15595
+ TextAreaIAComponent.ctorParameters = function () { return [
15596
+ { type: IAssistService },
15597
+ { type: forms.FormBuilder },
15598
+ { type: core$1.TranslateService }
15599
+ ]; };
15600
+ __decorate([
15601
+ core.Input()
15602
+ ], TextAreaIAComponent.prototype, "id", void 0);
15603
+ __decorate([
15604
+ core.Input()
15605
+ ], TextAreaIAComponent.prototype, "label", void 0);
15606
+ __decorate([
15607
+ core.Input()
15608
+ ], TextAreaIAComponent.prototype, "placeholder", void 0);
15609
+ __decorate([
15610
+ core.Input()
15611
+ ], TextAreaIAComponent.prototype, "prompt", void 0);
15612
+ __decorate([
15613
+ core.Input()
15614
+ ], TextAreaIAComponent.prototype, "readonly", void 0);
15615
+ __decorate([
15616
+ core.Input()
15617
+ ], TextAreaIAComponent.prototype, "rows", void 0);
15618
+ __decorate([
15619
+ core.Input()
15620
+ ], TextAreaIAComponent.prototype, "cols", void 0);
15621
+ TextAreaIAComponent = TextAreaIAComponent_1 = __decorate([
15622
+ core.Component({
15623
+ selector: "s-text-area-ia",
15624
+ template: "<s-loading-state\n [loading]=\"isLoading\"\n [blockWindow]=\"true\"> \n</s-loading-state>\n\n<p-dialog\n [(visible)]=\"isVisible\"\n [modal]=\"true\"\n [style]=\"{ width: '50vw' }\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n (onHide)=\"onHideDialog()\">\n <p-header>\n <div class=\"dialog-header\">\n <span class=\"iassist-icon\">\n <ng-container [ngTemplateOutlet]=\"iassistIcon\"></ng-container>\n </span>\n IAssist - Content Generator\n </div>\n </p-header>\n <s-dynamic-form\n [fields]=\"fields\"\n [form]=\"formGroup\">\n </s-dynamic-form>\n <p-footer>\n <div class=\"footer-content\">\n <s-button\n id=\"-submit-button\"\n type=\"button\"\n [label]=\"'platform.angular_components.generate_text' | translate\"\n (onClick)=\"submitContext()\"\n sTooltip=\"(ALT + SHIFT + S)\"\n showDelay=\"500\">\n </s-button>\n <s-button\n id=\"-cancel-button\"\n type=\"button\"\n priority=\"link\"\n [label]=\"'platform.angular_components.cancel' | translate\"\n (onClick)=\"hideDialog()\"\n sTooltip=\"(ALT + SHIFT + C)\"\n showDelay=\"500\">\n </s-button>\n </div>\n </p-footer>\n</p-dialog>\n\n<div class=\"textarea-ia\">\n <textarea\n [id]=\"id\"\n class=\"textarea-input\"\n pInputTextarea\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onValueChange($event)\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n [readOnly]=\"readonly\">\n </textarea>\n <button\n class=\"iassist-button\"\n (click)=\"showDialog()\"\n sTooltip=\"IAssist - Content Generator\">\n <ng-container [ngTemplateOutlet]=\"iassistIcon\"></ng-container>\n </button>\n</div>\n\n<ng-template #iassistIcon>\n <svg style=\"width: 100%; height: 100%;\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.81451 18.1054L5.99593 17.6059L7.52166 13.4099L7.60877 13.1726L7.61277 13.1614L7.94285 12.2543L8.01159 12.0648L8.05394 11.949L5.2998 8.52426L5.02726 8.18379C5.00569 8.15821 4.9881 8.13104 4.97292 8.10226C4.90099 7.9632 4.85063 7.81294 4.82186 7.6531C4.73075 7.1344 4.90418 6.60771 5.28382 6.24326C5.29421 6.23447 5.3038 6.22567 5.31419 6.21688L5.47164 6.0914L9.3439 3.00238L9.5469 2.84094L9.57088 2.82096L10.4101 2.15041L11.8007 1.04188C11.2181 0.925188 10.6163 0.863647 10.0001 0.863647C4.95374 0.863647 0.863281 4.9541 0.863281 9.99963C0.863281 13.5346 2.87254 16.5989 5.80971 18.1182\" fill=\"#0FA389\"/>\n <path d=\"M14.099 1.83472L13.9495 2.24632L11.997 7.61074L11.9427 7.7594L11.9003 7.87369L14.7448 11.4103C14.7463 11.4127 14.7479 11.4143 14.7495 11.4167L14.9414 11.654C14.9541 11.67 14.9661 11.6868 14.9765 11.7044C15.0764 11.8698 15.1444 12.0505 15.1779 12.2431C15.273 12.7826 15.0812 13.3284 14.676 13.6897C14.656 13.7129 14.6345 13.7344 14.6105 13.7536L11.8563 15.9507L11.6789 16.0922L11.6022 16.1537L10.7406 16.8402V16.841L10.3937 17.1176L9.85747 17.5452L9.39951 17.9112L8.11035 18.9398C8.72016 19.0677 9.35155 19.1364 9.99973 19.1364C15.0461 19.1364 19.1365 15.046 19.1365 9.99964C19.1365 6.42789 17.0857 3.33727 14.099 1.83472Z\" fill=\"#0FA389\"/>\n <path d=\"M14.7287 12.3222C14.7047 12.1832 14.6551 12.0545 14.5864 11.941L14.3954 11.7036C14.3954 11.7036 14.3946 11.7028 14.3938 11.7028L11.3839 7.96005L10.5031 6.86511L10.4256 6.7676L9.03255 5.03487L8.83674 4.79191C8.79278 4.71678 8.75681 4.63446 8.73204 4.54814C8.72085 4.51058 8.71286 4.47222 8.70566 4.43465C8.68568 4.32196 8.68408 4.21007 8.69847 4.10217L8.62334 4.16291L8.44511 4.30438L5.75731 6.44871L5.60066 6.57339C5.34011 6.82275 5.20584 7.19279 5.27218 7.57482C5.29296 7.68751 5.32892 7.79541 5.37927 7.89292C5.37927 7.89292 5.37927 7.89292 5.38007 7.89371L5.6566 8.23818L8.57139 11.8627L8.63293 11.9394L9.53047 13.0559L9.59041 13.1303L9.98363 13.6186L11.0178 14.9046C11.0186 14.9054 11.0194 14.9069 11.0202 14.9077L11.1361 15.0516V15.0524C11.2184 15.1755 11.2768 15.317 11.3048 15.4728C11.3239 15.5807 11.3263 15.6878 11.3143 15.7925L11.3175 15.7965L11.3943 15.735L11.5717 15.5935L14.3266 13.3964L14.3218 13.3908C14.6335 13.1438 14.8022 12.7394 14.7287 12.3222Z\" fill=\"#F3F3F5\"/>\n <path d=\"M10.6822 15.0082C10.6814 15.0074 10.6806 15.0058 10.6806 15.005L10.5672 14.8643L10.3809 14.6325L10.3282 14.567L10.2211 14.4335L9.40028 13.4129L9.32835 13.3242L8.77289 12.6345L8.68098 12.5194L8.44121 12.2205L8.37168 12.4099L8.04159 13.317L8.0376 13.329L7.95128 13.5664L6.42475 17.7623L6.24333 18.2618L5.90605 19.1881L5.73262 19.6645C5.73182 19.6661 5.73102 19.6677 5.73102 19.6685C5.72863 19.6749 5.72703 19.6821 5.72543 19.6885C5.71584 19.7228 5.71424 19.758 5.72063 19.7948C5.74461 19.929 5.87329 20.0193 6.00836 19.9962C6.04112 19.9898 6.07229 19.9778 6.09867 19.9602C6.09867 19.9602 6.09947 19.9602 6.10027 19.9594L6.14103 19.9266L7.39422 18.9268L9.11496 17.5537L9.57292 17.1877L10.1092 16.7601L10.4561 16.4827L10.4537 16.4811C10.7582 16.2382 10.9236 15.8402 10.8509 15.4294C10.8237 15.2735 10.7654 15.1313 10.6822 15.0082Z\" fill=\"#0C847B\"/>\n <path d=\"M9.17644 4.56325C9.2124 4.68713 9.26915 4.80062 9.34268 4.90053C9.34348 4.90053 9.34428 4.90213 9.34428 4.90213L9.40342 4.97645C9.40502 4.97805 9.40582 4.97885 9.40662 4.98045L9.56806 5.17946L9.64878 5.28096L9.67915 5.31932L9.8414 5.51993L10.5559 6.40947L10.7054 6.59569L11.2169 7.23188L11.5142 7.60192L11.5693 7.45247L13.5202 2.08964L14.1596 0.332135C14.1596 0.330536 14.1604 0.328139 14.1612 0.32654C14.174 0.288177 14.1772 0.246617 14.17 0.205058C14.1468 0.0699879 14.0182 -0.0195258 13.8823 0.00365186C13.8407 0.0116442 13.8024 0.028428 13.7712 0.0540033L12.578 1.00589L12.498 1.06982L10.6958 2.50844L9.85658 3.17819L9.8326 3.19737L9.6296 3.35961L9.45297 3.50028C9.2116 3.73925 9.08692 4.08931 9.15006 4.44976C9.15726 4.48813 9.16525 4.52649 9.17644 4.56325Z\" fill=\"#0C847B\"/>\n </svg>\n</ng-template>",
15625
+ providers: [
15626
+ {
15627
+ provide: forms.NG_VALUE_ACCESSOR,
15628
+ useExisting: core.forwardRef(function () { return TextAreaIAComponent_1; }),
15629
+ multi: true,
15630
+ },
15631
+ ],
15632
+ styles: [".footer-content{display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0}.textarea-ia{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;gap:8px}.textarea-ia .textarea-input{resize:vertical;width:100%}.iassist-button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border:none;border-radius:50%;box-shadow:none;cursor:pointer;height:32px;width:32px}.dialog-header{display:-ms-flexbox;display:flex;gap:12px}.dialog-header .iassist-icon{display:block;height:24px;width:24px}"]
15633
+ })
15634
+ ], TextAreaIAComponent);
15635
+ return TextAreaIAComponent;
15636
+ }());
15637
+
15638
+ var TextAreaIAModule = /** @class */ (function () {
15639
+ function TextAreaIAModule() {
15640
+ }
15641
+ TextAreaIAModule = __decorate([
15642
+ core.NgModule({
15643
+ imports: [
15644
+ common.CommonModule,
15645
+ forms.FormsModule,
15646
+ forms.ReactiveFormsModule,
15647
+ core$1.TranslateModule,
15648
+ dialog.DialogModule,
15649
+ inputtextarea.InputTextareaModule,
15650
+ ButtonModule,
15651
+ DynamicFormModule,
15652
+ LoadingStateModule,
15653
+ ],
15654
+ declarations: [TextAreaIAComponent],
15655
+ exports: [TextAreaIAComponent],
15656
+ })
15657
+ ], TextAreaIAModule);
15658
+ return TextAreaIAModule;
15659
+ }());
15660
+
15661
+ var InlineEditModule = /** @class */ (function () {
15662
+ function InlineEditModule() {
15663
+ }
15664
+ InlineEditModule = __decorate([
15665
+ core.NgModule({
15666
+ imports: [
15667
+ common.CommonModule,
15668
+ forms.FormsModule,
15669
+ forms.ReactiveFormsModule,
15670
+ core$1.TranslateModule,
15671
+ BignumberInputModule,
15672
+ ButtonModule,
15673
+ ControlErrorsModule,
15674
+ InfoSignModule,
15675
+ DynamicFormModule,
15676
+ TextAreaIAModule,
15677
+ TooltipModule,
15678
+ calendar.CalendarModule,
15679
+ inputmask.InputMaskModule,
15680
+ inputtext.InputTextModule,
15681
+ inputtextarea.InputTextareaModule,
15682
+ keyfilter.KeyFilterModule,
15683
+ ],
15684
+ declarations: [
15685
+ InlineEditComponent,
15686
+ InlineEditItemComponent,
15687
+ InlineEditCalendarComponent,
15688
+ InlineEditLookupComponent,
15689
+ InlineEditNumberComponent,
15690
+ InlineEditTextComponent,
15691
+ InlineEditTextAreaComponent,
15692
+ InlineEditTextAreaIAComponent,
15693
+ ],
15694
+ exports: [InlineEditComponent],
15695
+ })
15696
+ ], InlineEditModule);
15697
+ return InlineEditModule;
15698
+ }());
15699
+
14997
15700
  var KanbanEventService = /** @class */ (function () {
14998
15701
  function KanbanEventService() {
14999
15702
  this.selectAllColumnItemsEvent = new core.EventEmitter();
@@ -18614,9 +19317,11 @@
18614
19317
  "platform.angular_components.date_format": "dd/mm/yy",
18615
19318
  "platform.angular_components.ia_text_generator": "Gerador de texto por IA",
18616
19319
  "platform.angular_components.attach_files": "Anexar arquivos",
19320
+ "platform.angular_components.add_information": "Adicionar informação",
18617
19321
  "platform.angular_components.add": "Adicionar",
18618
19322
  "platform.angular_components.edit": "Editar",
18619
19323
  "platform.angular_components.remove": "Remover",
19324
+ "platform.angular_components.save": "Salvar",
18620
19325
  "platform.angular_components.file_attached_successfully": "Arquivo anexado com sucesso",
18621
19326
  "platform.angular_components.loading_file": "Carregando arquivo",
18622
19327
  "platform.angular_components.iassist_text_generator": "IAssist Gerador de texto",
@@ -18932,6 +19637,15 @@
18932
19637
  exports.ImageCropperService = ImageCropperService;
18933
19638
  exports.InfoSignDirective = InfoSignDirective;
18934
19639
  exports.InfoSignModule = InfoSignModule;
19640
+ exports.InlineEditCalendarField = InlineEditCalendarField;
19641
+ exports.InlineEditComponent = InlineEditComponent;
19642
+ exports.InlineEditField = InlineEditField;
19643
+ exports.InlineEditLookupField = InlineEditLookupField;
19644
+ exports.InlineEditModule = InlineEditModule;
19645
+ exports.InlineEditNumberField = InlineEditNumberField;
19646
+ exports.InlineEditTextAreaField = InlineEditTextAreaField;
19647
+ exports.InlineEditTextAreaIAField = InlineEditTextAreaIAField;
19648
+ exports.InlineEditTextField = InlineEditTextField;
18935
19649
  exports.KanbanComponent = KanbanComponent;
18936
19650
  exports.KanbanModule = KanbanModule;
18937
19651
  exports.LoadingStateComponent = LoadingStateComponent;
@@ -19011,6 +19725,8 @@
19011
19725
  exports.TableModule = TableModule;
19012
19726
  exports.TaxCalculationLanguageConfigs = TaxCalculationLanguageConfigs;
19013
19727
  exports.TextAreaField = TextAreaField;
19728
+ exports.TextAreaIAComponent = TextAreaIAComponent;
19729
+ exports.TextAreaIAModule = TextAreaIAModule;
19014
19730
  exports.TextField = TextField;
19015
19731
  exports.ThumbnailComponent = ThumbnailComponent;
19016
19732
  exports.ThumbnailModule = ThumbnailModule;
@@ -19076,36 +19792,44 @@
19076
19792
  exports.ɵcq = IAInsightSidebarComponent;
19077
19793
  exports.ɵcr = IAInsightCardComponent;
19078
19794
  exports.ɵcs = IAInsightCardLoaderComponent;
19079
- exports.ɵct = KanbanEventService;
19080
- exports.ɵcu = KanbanItemComponent;
19081
- exports.ɵcv = KanbanColumnComponent;
19082
- exports.ɵcw = KanbanItemDraggingComponent;
19083
- exports.ɵcx = NumberLocaleOptions;
19084
- exports.ɵcy = TieredMenuEventService;
19085
- exports.ɵcz = TieredMenuService;
19795
+ exports.ɵct = InlineEditItemComponent;
19796
+ exports.ɵcu = LocaleService;
19797
+ exports.ɵcv = InlineEditCalendarComponent;
19798
+ exports.ɵcw = InlineEditLookupComponent;
19799
+ exports.ɵcx = InlineEditNumberComponent;
19800
+ exports.ɵcy = InlineEditTextComponent;
19801
+ exports.ɵcz = InlineEditTextAreaComponent;
19086
19802
  exports.ɵd = TemplateModule;
19087
- exports.ɵda = TieredMenuGlobalService;
19088
- exports.ɵdb = TieredMenuComponent;
19089
- exports.ɵdc = TieredMenuNestedComponent;
19090
- exports.ɵdd = TieredMenuItemComponent;
19091
- exports.ɵde = TieredMenuDividerComponent;
19092
- exports.ɵdf = BorderButtonModule;
19093
- exports.ɵdg = BorderButtonComponent;
19094
- exports.ɵdh = ProgressBarDeterminateComponent;
19095
- exports.ɵdi = ProgressBarIndeterminateComponent;
19096
- exports.ɵdj = SelectButtonItemComponent;
19097
- exports.ɵdk = SlidePanelService;
19098
- exports.ɵdl = TimelineItemModule;
19099
- exports.ɵdm = TimelineIconItemComponent;
19100
- exports.ɵdn = HorizontalTimelineModule;
19101
- exports.ɵdo = HorizontalTimelineComponent;
19102
- exports.ɵdp = VerticalTimelineModule;
19103
- exports.ɵdq = VerticalTimelineComponent;
19104
- exports.ɵdr = RangeLineComponent;
19105
- exports.ɵds = CollapseOptionComponent;
19106
- exports.ɵdt = CollapsedItemsComponent;
19107
- exports.ɵdu = VerticalItemsComponent;
19803
+ exports.ɵda = InlineEditTextAreaIAComponent;
19804
+ exports.ɵdb = KanbanEventService;
19805
+ exports.ɵdc = KanbanItemComponent;
19806
+ exports.ɵdd = KanbanColumnComponent;
19807
+ exports.ɵde = KanbanItemDraggingComponent;
19808
+ exports.ɵdf = NumberLocaleOptions;
19809
+ exports.ɵdg = TieredMenuEventService;
19810
+ exports.ɵdh = TieredMenuService;
19811
+ exports.ɵdi = TieredMenuGlobalService;
19812
+ exports.ɵdj = TieredMenuComponent;
19813
+ exports.ɵdk = TieredMenuNestedComponent;
19814
+ exports.ɵdl = TieredMenuItemComponent;
19815
+ exports.ɵdm = TieredMenuDividerComponent;
19816
+ exports.ɵdn = BorderButtonModule;
19817
+ exports.ɵdo = BorderButtonComponent;
19818
+ exports.ɵdp = ProgressBarDeterminateComponent;
19819
+ exports.ɵdq = ProgressBarIndeterminateComponent;
19820
+ exports.ɵdr = SelectButtonItemComponent;
19821
+ exports.ɵds = SlidePanelService;
19822
+ exports.ɵdt = TimelineItemModule;
19823
+ exports.ɵdu = TimelineIconItemComponent;
19824
+ exports.ɵdv = HorizontalTimelineModule;
19825
+ exports.ɵdw = HorizontalTimelineComponent;
19826
+ exports.ɵdx = VerticalTimelineModule;
19827
+ exports.ɵdy = VerticalTimelineComponent;
19828
+ exports.ɵdz = RangeLineComponent;
19108
19829
  exports.ɵe = CustomTranslationsModule;
19830
+ exports.ɵea = CollapseOptionComponent;
19831
+ exports.ɵeb = CollapsedItemsComponent;
19832
+ exports.ɵec = VerticalItemsComponent;
19109
19833
  exports.ɵf = CodeEditorComponent;
19110
19834
  exports.ɵg = CoreFacade;
19111
19835
  exports.ɵh = CodeMirror6Core;