@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
@@ -366,8 +366,8 @@ let TooltipComponent = class TooltipComponent {
366
366
  };
367
367
  TooltipComponent = __decorate([
368
368
  Component({
369
- 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>",
370
- 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)}"]
369
+ 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>",
370
+ 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)}"]
371
371
  })
372
372
  ], TooltipComponent);
373
373
 
@@ -449,7 +449,7 @@ let TooltipDirective = class TooltipDirective {
449
449
  top: Math.min(elementRect.top, toolTipRect.top),
450
450
  right: Math.max(elementRect.right, toolTipRect.right),
451
451
  left: Math.min(elementRect.left, toolTipRect.left),
452
- bottom: Math.max(elementRect.bottom, toolTipRect.bottom)
452
+ bottom: Math.max(elementRect.bottom, toolTipRect.bottom),
453
453
  };
454
454
  if (this.isMousePositionOutsideOfElement(event.clientX, event.clientY, totalElementArea)) {
455
455
  this.destroy();
@@ -465,12 +465,12 @@ let TooltipDirective = class TooltipDirective {
465
465
  if (this.focusedInputRef) {
466
466
  const inputFocus = this.focusedInputRef;
467
467
  const icon = this.getIconFromFocusedInput();
468
- this.renderer.listen(this.focusedInputRef, 'focus', () => {
468
+ this.renderer.listen(this.focusedInputRef, "focus", () => {
469
469
  if (icon && this.isMatchingTooltip(icon)) {
470
470
  this.createTootipByFocus(icon);
471
471
  }
472
472
  });
473
- this.renderer.listen(inputFocus, 'blur', () => {
473
+ this.renderer.listen(inputFocus, "blur", () => {
474
474
  if (icon && this.isMatchingTooltip(icon)) {
475
475
  this.removeTooltip(icon);
476
476
  this.destroy();
@@ -491,7 +491,7 @@ let TooltipDirective = class TooltipDirective {
491
491
  * @returns true se o tooltip corresponde; caso contrário, false.
492
492
  */
493
493
  isMatchingTooltip(icon) {
494
- const tooltipText = icon.getAttribute('ng-reflect-tooltip');
494
+ const tooltipText = icon.getAttribute("ng-reflect-tooltip");
495
495
  return this.tooltip === tooltipText;
496
496
  }
497
497
  /**
@@ -499,7 +499,7 @@ let TooltipDirective = class TooltipDirective {
499
499
  * @param icon O ícone do input em focus.
500
500
  */
501
501
  removeTooltip(icon) {
502
- const tooltip = icon.querySelector('.tooltip');
502
+ const tooltip = icon.querySelector(".tooltip");
503
503
  if (tooltip) {
504
504
  tooltip.remove();
505
505
  }
@@ -507,9 +507,7 @@ let TooltipDirective = class TooltipDirective {
507
507
  // whenever the component with the tooltip is clicked I destroy the tooltip.
508
508
  // whenever a key is pressed on the component with the tooltip I destroy the tooltip.
509
509
  onClick() {
510
- if (this.tooltipEvent === TooltipEvent.Hover &&
511
- !navigator.userAgent.match(/Android/i) &&
512
- !navigator.userAgent.match(/iPhone/i)) {
510
+ if (this.tooltipEvent === TooltipEvent.Hover && !navigator.userAgent.match(/Android/i) && !navigator.userAgent.match(/iPhone/i)) {
513
511
  this.destroy();
514
512
  }
515
513
  }
@@ -554,12 +552,7 @@ let TooltipDirective = class TooltipDirective {
554
552
  }
555
553
  }
556
554
  validatePosition() {
557
- const containsPosition = [
558
- TooltipPosition.Top,
559
- TooltipPosition.Right,
560
- TooltipPosition.Bottom,
561
- TooltipPosition.Left,
562
- ].includes(this.position);
555
+ const containsPosition = [TooltipPosition.Top, TooltipPosition.Right, TooltipPosition.Bottom, TooltipPosition.Left].includes(this.position);
563
556
  if (!containsPosition) {
564
557
  this.position = TooltipPosition.Top;
565
558
  throw new Error(`Tooltip ${this.position} position is unexpected`);
@@ -572,7 +565,7 @@ let TooltipDirective = class TooltipDirective {
572
565
  document.body.appendChild(domElem);
573
566
  this.setTooltipComponentProperties();
574
567
  this.showTimeout = window.setTimeout(this.showTooltip.bind(this), this.showDelay);
575
- this.tooltipDivElement = domElem.querySelector('.tooltip');
568
+ this.tooltipDivElement = domElem.querySelector(".tooltip");
576
569
  if (this.displayTime) {
577
570
  window.setTimeout(this.destroy.bind(this), this.displayTime);
578
571
  }
@@ -593,142 +586,70 @@ let TooltipDirective = class TooltipDirective {
593
586
  var _a;
594
587
  if (this.componentRef === null && ((_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.length)) {
595
588
  const domElem = this.getDomElement();
596
- const tooltip = domElem.querySelector('.tooltip');
589
+ const tooltip = domElem.querySelector(".tooltip");
597
590
  icon.appendChild(tooltip);
598
591
  this.setTooltipComponentProperties();
599
592
  setTimeout(() => tooltip.classList.add("tooltip--visible"), 0);
600
- this.renderer.listen(window, 'scroll', () => {
601
- this.updateTooltipPosition();
593
+ this.renderer.listen(window, "scroll", () => {
594
+ this.setTooltipPositionProperty();
602
595
  });
603
596
  }
604
597
  }
605
- updateTooltipPosition() {
606
- if (this.componentRef) {
607
- const { left, right, top, bottom } = this.elementRef.nativeElement.getBoundingClientRect();
608
- const tooltipWidth = right - left;
609
- const tooltipHeight = bottom - top;
610
- switch (this.position) {
611
- case TooltipPosition.Top:
612
- this.componentRef.instance.left = Math.round(tooltipWidth / 2 + left);
613
- this.componentRef.instance.top = Math.round(top - 20 - 5);
614
- break;
615
- case TooltipPosition.Bottom:
616
- this.componentRef.instance.left = Math.round(tooltipWidth / 2 + left);
617
- this.componentRef.instance.top = Math.round(bottom + 20);
618
- break;
619
- case TooltipPosition.Left:
620
- this.componentRef.instance.left = Math.round(left - 20);
621
- this.componentRef.instance.top = Math.round(top + tooltipHeight / 2 - 5);
622
- break;
623
- case TooltipPosition.Right:
624
- this.componentRef.instance.left = Math.round(right + 20);
625
- this.componentRef.instance.top = Math.round(top + tooltipHeight / 2 - 5);
626
- break;
627
- default:
628
- break;
629
- }
630
- }
631
- }
632
598
  showTooltip() {
633
599
  if (this.componentRef !== null) {
634
600
  this.componentRef.instance.visible = this.visible;
635
- window.addEventListener('mousemove', this.boundOnWindowMouseMoveFunction);
601
+ this.setTooltipPositionProperty();
602
+ window.addEventListener("mousemove", this.boundOnWindowMouseMoveFunction);
636
603
  }
637
604
  }
638
- setTooltipComponentProperties() {
605
+ setTooltipPositionProperty() {
639
606
  const margin = 20;
640
607
  const anchorSize = 5;
608
+ const domElem = this.componentRef.hostView.rootNodes[0].querySelector("#tooltip");
609
+ const { height, width } = domElem.getBoundingClientRect();
610
+ const { left, right, top, bottom } = this.elementRef.nativeElement.getBoundingClientRect();
611
+ const positions = [
612
+ {
613
+ pos: TooltipPosition.Top,
614
+ check: () => top > height,
615
+ set: () => ({ left: left + (right - left) / 2, top: top - margin - anchorSize }),
616
+ },
617
+ {
618
+ pos: TooltipPosition.Bottom,
619
+ check: () => document.body.clientHeight - bottom > height,
620
+ set: () => ({ left: left + (right - left) / 2, top: bottom + margin }),
621
+ },
622
+ {
623
+ pos: TooltipPosition.Left,
624
+ check: () => left > width,
625
+ set: () => ({ left: left - margin, top: top + height / 2 - anchorSize }),
626
+ },
627
+ {
628
+ pos: TooltipPosition.Right,
629
+ check: () => document.body.clientWidth - right > width,
630
+ set: () => ({ left: right + margin, top: top + height / 2 - anchorSize }),
631
+ },
632
+ ];
633
+ for (const { pos, check, set } of positions) {
634
+ if (check()) {
635
+ this.position = pos;
636
+ const { left, top } = set();
637
+ this.componentRef.instance.left = Math.round(left);
638
+ this.componentRef.instance.top = Math.round(top);
639
+ this.componentRef.instance.position = this.position;
640
+ return;
641
+ }
642
+ }
643
+ // Se não conseguir posicionar, mostrar abaixo
644
+ this.position = TooltipPosition.Bottom;
645
+ this.componentRef.instance.left = Math.round(left + (right - left) / 2);
646
+ this.componentRef.instance.top = Math.round(bottom + margin);
647
+ this.componentRef.instance.position = this.position;
648
+ }
649
+ setTooltipComponentProperties() {
641
650
  if (this.componentRef !== null) {
642
651
  this.componentRef.instance.tooltip = this.tooltip;
643
652
  this.componentRef.instance.escape = this.escape;
644
- const { left, right, top, bottom } = this.elementRef.nativeElement.getBoundingClientRect();
645
- const tooltipHeight = bottom - top;
646
- const tooltipWidth = right - left;
647
- const safeSpace = 150;
648
- let positioned = false;
649
- const invalidOptions = [];
650
- while (!positioned) {
651
- if (invalidOptions.includes(TooltipPosition.Top)
652
- && invalidOptions.includes(TooltipPosition.Bottom)
653
- && invalidOptions.includes(TooltipPosition.Left)
654
- && invalidOptions.includes(TooltipPosition.Right)) {
655
- this.destroy();
656
- throw new Error("No space to show tooltip");
657
- }
658
- switch (this.position) {
659
- case TooltipPosition.Top: {
660
- if (invalidOptions.includes(TooltipPosition.Top)) {
661
- this.position = TooltipPosition.Left;
662
- break;
663
- }
664
- const topShift = top;
665
- if (topShift <= tooltipHeight + safeSpace) {
666
- this.position = TooltipPosition.Bottom;
667
- invalidOptions.push(TooltipPosition.Top);
668
- positioned = false;
669
- break;
670
- }
671
- this.componentRef.instance.left = Math.round(tooltipWidth / 2 + left);
672
- this.componentRef.instance.top = Math.round(top - margin - anchorSize);
673
- positioned = true;
674
- break;
675
- }
676
- case TooltipPosition.Bottom: {
677
- if (invalidOptions.includes(TooltipPosition.Bottom)) {
678
- this.position = TooltipPosition.Left;
679
- break;
680
- }
681
- const bottomShift = document.body.clientHeight - bottom;
682
- if (bottomShift <= tooltipHeight + safeSpace) {
683
- this.position = TooltipPosition.Top;
684
- invalidOptions.push(TooltipPosition.Bottom);
685
- break;
686
- }
687
- this.componentRef.instance.left = Math.round(tooltipWidth / 2 + left);
688
- this.componentRef.instance.top = Math.round(bottom + margin);
689
- positioned = true;
690
- break;
691
- }
692
- case TooltipPosition.Left: {
693
- if (invalidOptions.includes(TooltipPosition.Left)) {
694
- this.position = TooltipPosition.Top;
695
- break;
696
- }
697
- const leftShift = left;
698
- if (leftShift <= tooltipWidth + safeSpace) {
699
- this.position = TooltipPosition.Right;
700
- invalidOptions.push(TooltipPosition.Left);
701
- positioned = false;
702
- break;
703
- }
704
- this.componentRef.instance.left = Math.round(left - margin);
705
- this.componentRef.instance.top = Math.round(top + tooltipHeight / 2 - anchorSize);
706
- positioned = true;
707
- break;
708
- }
709
- case TooltipPosition.Right: {
710
- if (invalidOptions.includes(TooltipPosition.Right)) {
711
- this.position = TooltipPosition.Top;
712
- break;
713
- }
714
- const rightShift = document.body.clientWidth - right;
715
- if (rightShift <= tooltipWidth + safeSpace) {
716
- this.position = TooltipPosition.Left;
717
- invalidOptions.push(TooltipPosition.Right);
718
- positioned = false;
719
- break;
720
- }
721
- this.componentRef.instance.left = Math.round(right + margin);
722
- this.componentRef.instance.top = Math.round(top + tooltipHeight / 2 - anchorSize);
723
- positioned = true;
724
- break;
725
- }
726
- default: {
727
- break;
728
- }
729
- }
730
- this.componentRef.instance.position = this.position;
731
- }
732
653
  }
733
654
  }
734
655
  destroy() {
@@ -739,7 +660,7 @@ let TooltipDirective = class TooltipDirective {
739
660
  this.componentRef = null;
740
661
  this.tooltipDivElement = null;
741
662
  }
742
- window.removeEventListener('mousemove', this.boundOnWindowMouseMoveFunction);
663
+ window.removeEventListener("mousemove", this.boundOnWindowMouseMoveFunction);
743
664
  }
744
665
  };
745
666
  TooltipDirective.ctorParameters = () => [
@@ -1468,6 +1389,9 @@ __decorate([
1468
1389
  __decorate([
1469
1390
  Input()
1470
1391
  ], ButtonComponent.prototype, "badge", void 0);
1392
+ __decorate([
1393
+ Input()
1394
+ ], ButtonComponent.prototype, "iconColor", void 0);
1471
1395
  __decorate([
1472
1396
  Output()
1473
1397
  ], ButtonComponent.prototype, "onClick", void 0);
@@ -1477,7 +1401,7 @@ __decorate([
1477
1401
  ButtonComponent = ButtonComponent_1 = __decorate([
1478
1402
  Component({
1479
1403
  selector: "s-button",
1480
- 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",
1404
+ 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",
1481
1405
  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}"]
1482
1406
  })
1483
1407
  ], ButtonComponent);
@@ -5415,7 +5339,7 @@ LookupComponent = LookupComponent_1 = __decorate([
5415
5339
  transition("* <=> *", animate("{{transitionParams}}")),
5416
5340
  ]),
5417
5341
  ],
5418
- 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%}}"]
5342
+ 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%}}"]
5419
5343
  })
5420
5344
  ], LookupComponent);
5421
5345
 
@@ -8812,7 +8736,7 @@ __decorate([
8812
8736
  ], LookupFieldComponent.prototype, "formControl", void 0);
8813
8737
  LookupFieldComponent = __decorate([
8814
8738
  Component({
8815
- 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"
8739
+ 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"
8816
8740
  })
8817
8741
  ], LookupFieldComponent);
8818
8742
 
@@ -13915,6 +13839,669 @@ IAInsightModule = __decorate([
13915
13839
  })
13916
13840
  ], IAInsightModule);
13917
13841
 
13842
+ class InlineEditField {
13843
+ constructor(options) {
13844
+ this.label = options.label;
13845
+ this.name = options.name;
13846
+ this.tooltip = options.tooltip;
13847
+ this.errorMessages = options.errorMessages;
13848
+ }
13849
+ }
13850
+
13851
+ class InlineEditCalendarField extends InlineEditField {
13852
+ constructor(options) {
13853
+ super(options);
13854
+ this.view = options.view || "date";
13855
+ this.minDate = options.minDate;
13856
+ this.maxDate = options.maxDate;
13857
+ this.defaultDate = options.defaultDate;
13858
+ this.appendTo = options.appendTo;
13859
+ this.showOnFocus = typeof options.showOnFocus === "boolean" ? options.showOnFocus : true;
13860
+ this.onBlur = options.onBlur;
13861
+ this.onFocus = options.onFocus;
13862
+ this.onSelect = options.onSelect;
13863
+ this.onInput = options.onInput;
13864
+ this.onClose = options.onClose;
13865
+ this.onTodayClick = options.onTodayClick;
13866
+ this.onClearClick = options.onClearClick;
13867
+ this.onMonthChange = options.onMonthChange;
13868
+ this.onYearChange = options.onYearChange;
13869
+ this.selectionMode = options.selectionMode || "single";
13870
+ this.rangeSeparator = options.rangeSeparator || "-";
13871
+ this.showSeconds = options.showSeconds;
13872
+ this.placeholder = options.placeholder;
13873
+ }
13874
+ }
13875
+
13876
+ class InlineEditLookupField extends InlineEditField {
13877
+ constructor(options) {
13878
+ super(options);
13879
+ this.multiple = false;
13880
+ this.showSearch = true;
13881
+ this.autocompleteForceSelection = true;
13882
+ this.showAddOption = false;
13883
+ this.showEditOption = false;
13884
+ this.showRemoveOption = false;
13885
+ this.onSelect = (event) => { };
13886
+ this.onUnselect = (event) => { };
13887
+ Object.assign(this, options);
13888
+ this.suggestionsObservable.subscribe(suggestions => (this.lookupSuggestions = suggestions));
13889
+ this.searchObservable.pipe(delay(0)).subscribe(({ totalRecords, gridData, searchTotalRecordsLabel }) => {
13890
+ this._gridData = gridData;
13891
+ this._searchTotalRecords = totalRecords;
13892
+ this._searchTotalRecordsLabel = searchTotalRecordsLabel;
13893
+ });
13894
+ }
13895
+ get gridData() {
13896
+ return this._gridData;
13897
+ }
13898
+ get searchTotalRecords() {
13899
+ return this._searchTotalRecords;
13900
+ }
13901
+ get searchTotalRecordsLabel() {
13902
+ return this._searchTotalRecordsLabel;
13903
+ }
13904
+ }
13905
+
13906
+ class InlineEditNumberField extends InlineEditField {
13907
+ constructor(options) {
13908
+ var _a, _b, _c, _d;
13909
+ super(options);
13910
+ this.allowNegative = (_a = options.allowNegative) !== null && _a !== void 0 ? _a : true;
13911
+ this.numberLocaleOptions = options.numberLocaleOptions;
13912
+ this.browserAutocomplete = options.browserAutocomplete;
13913
+ this.precision = options.precision;
13914
+ this.scale = (_b = options.scale) !== null && _b !== void 0 ? _b : 2;
13915
+ this.alignTo = this.scale ? AlignmentOptions.RIGHT : AlignmentOptions.LEFT;
13916
+ this.mask = options.mask;
13917
+ this.leftAddon = options.leftAddon;
13918
+ this.rightAddon = options.rightAddon;
13919
+ this.onBlur = options.onBlur;
13920
+ this.onFocus = options.onFocus;
13921
+ this.onComplete = options.onComplete;
13922
+ this.onInput = options.onInput;
13923
+ this.autoClear = (_c = options.autoClear) !== null && _c !== void 0 ? _c : true;
13924
+ this.placeholder = (_d = options.placeholder) !== null && _d !== void 0 ? _d : "";
13925
+ }
13926
+ }
13927
+
13928
+ class InlineEditTextAreaField extends InlineEditField {
13929
+ constructor(options) {
13930
+ super(options);
13931
+ this.cols = options.cols;
13932
+ this.rows = options.rows;
13933
+ this.keyFilter = options.keyFilter;
13934
+ this.readonly = options.readonly;
13935
+ }
13936
+ }
13937
+
13938
+ class InlineEditTextField extends InlineEditField {
13939
+ constructor(options) {
13940
+ super(options);
13941
+ }
13942
+ }
13943
+
13944
+ class InlineEditTextAreaIAField extends InlineEditField {
13945
+ constructor(options) {
13946
+ super(options);
13947
+ }
13948
+ }
13949
+
13950
+ let InlineEditItemComponent = class InlineEditItemComponent {
13951
+ constructor(localeService) {
13952
+ this.localeService = localeService;
13953
+ this.isEditing = false;
13954
+ }
13955
+ ngOnInit() {
13956
+ this._getCalendarLocaleOptions();
13957
+ }
13958
+ get showEmptyValueButton() {
13959
+ var _a;
13960
+ return !this.isEditing && !((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value);
13961
+ }
13962
+ get showEditButton() {
13963
+ var _a;
13964
+ return !this.isEditing && ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value);
13965
+ }
13966
+ get showValue() {
13967
+ var _a;
13968
+ return !this.isEditing && ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value);
13969
+ }
13970
+ onEdit() {
13971
+ this.isEditing = !this.isEditing;
13972
+ }
13973
+ onCancel() {
13974
+ this.isEditing = !this.isEditing;
13975
+ }
13976
+ onSave() {
13977
+ if (this.dynamicComponentRef && this.dynamicComponentRef.instance.saveValue) {
13978
+ const control = this.formGroup.get(this.field.name);
13979
+ control.markAsDirty({ onlySelf: true });
13980
+ this.dynamicComponentRef.instance.saveValue();
13981
+ }
13982
+ if (this.formGroup.get(this.field.name).valid) {
13983
+ this.isEditing = !this.isEditing;
13984
+ }
13985
+ }
13986
+ setDynamicComponentRef(ref) {
13987
+ this.dynamicComponentRef = ref;
13988
+ }
13989
+ getErrorMessages(errorMessages) {
13990
+ if (errorMessages)
13991
+ return errorMessages instanceof Function
13992
+ ? Object.assign(Object.assign({}, this.errorMessages), errorMessages()) : Object.assign(Object.assign({}, this.errorMessages), errorMessages);
13993
+ return this.errorMessages;
13994
+ }
13995
+ getFormattedValue(value) {
13996
+ if (this.field instanceof InlineEditCalendarField) {
13997
+ return this.dynamicComponentRef.instance.getValueAsText();
13998
+ }
13999
+ if (this.field instanceof InlineEditLookupField) {
14000
+ const lookupField = this.field;
14001
+ return this.field.multiple
14002
+ ? value.map((val) => val[lookupField.lookupDisplayField]).join(" - ")
14003
+ : value[lookupField.lookupDisplayField];
14004
+ }
14005
+ return value;
14006
+ }
14007
+ _getCalendarLocaleOptions() {
14008
+ this.localeService
14009
+ .get()
14010
+ .pipe(first())
14011
+ .subscribe((localeOptions) => {
14012
+ this._locale = localeOptions.locale;
14013
+ });
14014
+ }
14015
+ };
14016
+ InlineEditItemComponent.ctorParameters = () => [
14017
+ { type: LocaleService }
14018
+ ];
14019
+ __decorate([
14020
+ ViewChild("formContainer", { read: ViewContainerRef, static: true })
14021
+ ], InlineEditItemComponent.prototype, "viewContainerRef", void 0);
14022
+ __decorate([
14023
+ Input()
14024
+ ], InlineEditItemComponent.prototype, "label", void 0);
14025
+ __decorate([
14026
+ Input()
14027
+ ], InlineEditItemComponent.prototype, "formGroup", void 0);
14028
+ __decorate([
14029
+ Input()
14030
+ ], InlineEditItemComponent.prototype, "field", void 0);
14031
+ __decorate([
14032
+ Input()
14033
+ ], InlineEditItemComponent.prototype, "errorMessages", void 0);
14034
+ InlineEditItemComponent = __decorate([
14035
+ Component({
14036
+ selector: "s-inline-edit-item",
14037
+ 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",
14038
+ 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}"]
14039
+ })
14040
+ ], InlineEditItemComponent);
14041
+
14042
+ let InlineEditCalendarComponent = class InlineEditCalendarComponent {
14043
+ constructor(localeService) {
14044
+ this.localeService = localeService;
14045
+ }
14046
+ ngOnInit() {
14047
+ var _a;
14048
+ this._getLocaleOptions();
14049
+ if (this.formGroup && this.field) {
14050
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
14051
+ }
14052
+ }
14053
+ saveValue() {
14054
+ var _a;
14055
+ if (this.formGroup && this.field) {
14056
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
14057
+ }
14058
+ }
14059
+ getValueAsText() {
14060
+ return this.calendar.el.nativeElement.querySelector('input').value;
14061
+ }
14062
+ _getLocaleOptions() {
14063
+ this.localeService.get().pipe(first()).subscribe((locale) => {
14064
+ this.calendarLocaleOptions = locale.calendar;
14065
+ });
14066
+ }
14067
+ };
14068
+ InlineEditCalendarComponent.ctorParameters = () => [
14069
+ { type: LocaleService }
14070
+ ];
14071
+ __decorate([
14072
+ Input()
14073
+ ], InlineEditCalendarComponent.prototype, "field", void 0);
14074
+ __decorate([
14075
+ Input()
14076
+ ], InlineEditCalendarComponent.prototype, "formGroup", void 0);
14077
+ __decorate([
14078
+ ViewChild(Calendar)
14079
+ ], InlineEditCalendarComponent.prototype, "calendar", void 0);
14080
+ InlineEditCalendarComponent = __decorate([
14081
+ Component({
14082
+ 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",
14083
+ styles: [""]
14084
+ })
14085
+ ], InlineEditCalendarComponent);
14086
+
14087
+ let InlineEditLookupComponent = class InlineEditLookupComponent {
14088
+ ngOnInit() {
14089
+ var _a;
14090
+ if (this.formGroup && this.field) {
14091
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || "";
14092
+ }
14093
+ }
14094
+ saveValue() {
14095
+ var _a;
14096
+ if (this.formGroup && this.field) {
14097
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
14098
+ }
14099
+ }
14100
+ };
14101
+ __decorate([
14102
+ Input()
14103
+ ], InlineEditLookupComponent.prototype, "field", void 0);
14104
+ __decorate([
14105
+ Input()
14106
+ ], InlineEditLookupComponent.prototype, "formGroup", void 0);
14107
+ InlineEditLookupComponent = __decorate([
14108
+ Component({
14109
+ 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",
14110
+ styles: [""]
14111
+ })
14112
+ ], InlineEditLookupComponent);
14113
+
14114
+ let InlineEditNumberComponent = class InlineEditNumberComponent {
14115
+ constructor(localeService) {
14116
+ this.localeService = localeService;
14117
+ }
14118
+ ngOnInit() {
14119
+ var _a;
14120
+ this._onLocaleService();
14121
+ if (this.formGroup && this.field) {
14122
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
14123
+ }
14124
+ }
14125
+ saveValue() {
14126
+ var _a;
14127
+ if (this.formGroup && this.field) {
14128
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
14129
+ }
14130
+ }
14131
+ get mask() {
14132
+ return typeof this.field.mask === 'function' ? this.field.mask() : this.field.mask;
14133
+ }
14134
+ get leftAddonDisabled() {
14135
+ return typeof this.field.leftAddon.disabled === 'function' ? this.field.leftAddon.disabled() : this.field.leftAddon.disabled;
14136
+ }
14137
+ get rightAddonDisabled() {
14138
+ return typeof this.field.rightAddon.disabled === 'function' ? this.field.rightAddon.disabled() : this.field.rightAddon.disabled;
14139
+ }
14140
+ get precision() {
14141
+ return typeof this.field.precision === 'function' ? this.field.precision() : this.field.precision;
14142
+ }
14143
+ get scale() {
14144
+ return typeof this.field.scale === 'function' ? this.field.scale() : this.field.scale;
14145
+ }
14146
+ _onLocaleService() {
14147
+ this.localeService
14148
+ .getLocale()
14149
+ .pipe(first())
14150
+ .subscribe({
14151
+ next: () => {
14152
+ var _a, _b;
14153
+ if (!((_a = this.field.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator)) {
14154
+ this.field.numberLocaleOptions = Object.assign(Object.assign({}, this.field.numberLocaleOptions), { decimalSeparator: this.localeService.getDecimalSeparator() });
14155
+ }
14156
+ if (!((_b = this.field.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator)) {
14157
+ this.field.numberLocaleOptions = Object.assign(Object.assign({}, this.field.numberLocaleOptions), { thousandsSeparator: this.localeService.getGroupingSeparator() });
14158
+ }
14159
+ },
14160
+ error: () => (this.field.numberLocaleOptions = {
14161
+ thousandsSeparator: ".",
14162
+ decimalSeparator: ",",
14163
+ currencySymbol: "",
14164
+ }),
14165
+ });
14166
+ }
14167
+ };
14168
+ InlineEditNumberComponent.ctorParameters = () => [
14169
+ { type: LocaleService }
14170
+ ];
14171
+ __decorate([
14172
+ Input()
14173
+ ], InlineEditNumberComponent.prototype, "field", void 0);
14174
+ __decorate([
14175
+ Input()
14176
+ ], InlineEditNumberComponent.prototype, "formGroup", void 0);
14177
+ InlineEditNumberComponent = __decorate([
14178
+ Component({
14179
+ 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",
14180
+ styles: [""]
14181
+ })
14182
+ ], InlineEditNumberComponent);
14183
+
14184
+ let InlineEditTextAreaComponent = class InlineEditTextAreaComponent {
14185
+ ngOnInit() {
14186
+ var _a;
14187
+ if (this.formGroup && this.field) {
14188
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
14189
+ }
14190
+ }
14191
+ saveValue() {
14192
+ var _a;
14193
+ if (this.formGroup && this.field) {
14194
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
14195
+ }
14196
+ }
14197
+ };
14198
+ __decorate([
14199
+ Input()
14200
+ ], InlineEditTextAreaComponent.prototype, "field", void 0);
14201
+ __decorate([
14202
+ Input()
14203
+ ], InlineEditTextAreaComponent.prototype, "formGroup", void 0);
14204
+ InlineEditTextAreaComponent = __decorate([
14205
+ Component({
14206
+ 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",
14207
+ styles: [".textarea-input{resize:vertical}"]
14208
+ })
14209
+ ], InlineEditTextAreaComponent);
14210
+
14211
+ let InlineEditTextComponent = class InlineEditTextComponent {
14212
+ ngOnInit() {
14213
+ var _a;
14214
+ if (this.formGroup && this.field) {
14215
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
14216
+ }
14217
+ }
14218
+ saveValue() {
14219
+ var _a;
14220
+ if (this.formGroup && this.field) {
14221
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
14222
+ }
14223
+ }
14224
+ };
14225
+ __decorate([
14226
+ Input()
14227
+ ], InlineEditTextComponent.prototype, "field", void 0);
14228
+ __decorate([
14229
+ Input()
14230
+ ], InlineEditTextComponent.prototype, "formGroup", void 0);
14231
+ InlineEditTextComponent = __decorate([
14232
+ Component({
14233
+ template: "<input\n type=\"text\"\n pInputText\n [(ngModel)]=\"tempValue\" />",
14234
+ styles: [""]
14235
+ })
14236
+ ], InlineEditTextComponent);
14237
+
14238
+ let InlineEditTextAreaIAComponent = class InlineEditTextAreaIAComponent {
14239
+ ngOnInit() {
14240
+ var _a;
14241
+ if (this.formGroup && this.field) {
14242
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
14243
+ }
14244
+ }
14245
+ saveValue() {
14246
+ var _a;
14247
+ if (this.formGroup && this.field) {
14248
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
14249
+ }
14250
+ }
14251
+ };
14252
+ __decorate([
14253
+ Input()
14254
+ ], InlineEditTextAreaIAComponent.prototype, "field", void 0);
14255
+ __decorate([
14256
+ Input()
14257
+ ], InlineEditTextAreaIAComponent.prototype, "formGroup", void 0);
14258
+ InlineEditTextAreaIAComponent = __decorate([
14259
+ Component({
14260
+ template: "<s-text-area-ia [(ngModel)]=\"tempValue\"></s-text-area-ia>",
14261
+ styles: [""]
14262
+ })
14263
+ ], InlineEditTextAreaIAComponent);
14264
+
14265
+ let InlineEditComponent = class InlineEditComponent {
14266
+ constructor(resolver) {
14267
+ this.resolver = resolver;
14268
+ this.fields = [];
14269
+ this._componentMap = {
14270
+ [InlineEditCalendarField.name]: InlineEditCalendarComponent,
14271
+ [InlineEditLookupField.name]: InlineEditLookupComponent,
14272
+ [InlineEditTextField.name]: InlineEditTextComponent,
14273
+ [InlineEditNumberField.name]: InlineEditNumberComponent,
14274
+ [InlineEditTextAreaField.name]: InlineEditTextAreaComponent,
14275
+ [InlineEditTextAreaIAField.name]: InlineEditTextAreaIAComponent,
14276
+ };
14277
+ }
14278
+ ngOnInit() {
14279
+ this._createFields();
14280
+ }
14281
+ _createFields() {
14282
+ this.container.clear();
14283
+ const createComponent = (componentClass, field) => {
14284
+ const componentFactory = this.resolver.resolveComponentFactory(componentClass);
14285
+ const componentRef = this.container.createComponent(componentFactory);
14286
+ componentRef.instance.field = field;
14287
+ componentRef.instance.formGroup = this.formGroup;
14288
+ return componentRef;
14289
+ };
14290
+ for (let field of this.fields) {
14291
+ let componentClass = this._componentMap[field.constructor.name];
14292
+ if (componentClass) {
14293
+ const inlineEditItemFactory = this.resolver.resolveComponentFactory(InlineEditItemComponent);
14294
+ const inlineEditItemRef = this.container.createComponent(inlineEditItemFactory);
14295
+ inlineEditItemRef.instance.label = field.label;
14296
+ inlineEditItemRef.instance.formGroup = this.formGroup;
14297
+ inlineEditItemRef.instance.field = field;
14298
+ inlineEditItemRef.instance.errorMessages = this.errorMessages;
14299
+ const dynamicComponentRef = createComponent(componentClass, field);
14300
+ const inlineEditItemInstance = inlineEditItemRef.instance;
14301
+ inlineEditItemInstance.viewContainerRef.insert(dynamicComponentRef.hostView);
14302
+ inlineEditItemInstance.setDynamicComponentRef(dynamicComponentRef);
14303
+ }
14304
+ }
14305
+ }
14306
+ };
14307
+ InlineEditComponent.ctorParameters = () => [
14308
+ { type: ComponentFactoryResolver }
14309
+ ];
14310
+ __decorate([
14311
+ Input()
14312
+ ], InlineEditComponent.prototype, "formGroup", void 0);
14313
+ __decorate([
14314
+ Input()
14315
+ ], InlineEditComponent.prototype, "fields", void 0);
14316
+ __decorate([
14317
+ Input()
14318
+ ], InlineEditComponent.prototype, "errorMessages", void 0);
14319
+ __decorate([
14320
+ ViewChild("formContainer", { read: ViewContainerRef, static: true })
14321
+ ], InlineEditComponent.prototype, "container", void 0);
14322
+ InlineEditComponent = __decorate([
14323
+ Component({
14324
+ selector: "s-inline-edit",
14325
+ template: "<div class=\"inline-edit\">\n <ng-template #formContainer></ng-template>\n</div>\n",
14326
+ styles: [".inline-edit{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}"]
14327
+ })
14328
+ ], InlineEditComponent);
14329
+
14330
+ var TextAreaIAComponent_1;
14331
+ let TextAreaIAComponent = TextAreaIAComponent_1 = class TextAreaIAComponent {
14332
+ constructor(_iassistService, // Mover pra uma pasta global
14333
+ _formBuilder, _translateService) {
14334
+ this._iassistService = _iassistService;
14335
+ this._formBuilder = _formBuilder;
14336
+ this._translateService = _translateService;
14337
+ this.isVisible = false;
14338
+ this.isLoading = false;
14339
+ }
14340
+ ngOnInit() {
14341
+ this._createDialogFields();
14342
+ this._createDialogFormGroup();
14343
+ }
14344
+ writeValue(value) {
14345
+ this.value = value;
14346
+ }
14347
+ registerOnChange(onChange) {
14348
+ this._onChange = onChange;
14349
+ }
14350
+ registerOnTouched(onTouched) {
14351
+ this._onTouched = onTouched;
14352
+ }
14353
+ setDisabledState(isDisabled) {
14354
+ this._isDisabled = isDisabled;
14355
+ }
14356
+ onValueChange(value) {
14357
+ var _a;
14358
+ this.value = value;
14359
+ (_a = this._onChange) === null || _a === void 0 ? void 0 : _a.call(this, value);
14360
+ }
14361
+ showDialog() {
14362
+ this.isVisible = true;
14363
+ this._onTouched();
14364
+ }
14365
+ hideDialog() {
14366
+ this.isVisible = false;
14367
+ }
14368
+ onHideDialog() {
14369
+ this.formGroup.get("context").setValue("");
14370
+ }
14371
+ submitContext() {
14372
+ const context = this.formGroup.get("context");
14373
+ this.isLoading = true;
14374
+ this._iassistService
14375
+ .askIA(context.value, {
14376
+ id: this.id,
14377
+ label: this.label,
14378
+ placeholder: this.placeholder,
14379
+ prompt: this.prompt,
14380
+ })
14381
+ .pipe(catchError((err) => {
14382
+ this.isLoading = false;
14383
+ return throwError(err);
14384
+ }))
14385
+ .subscribe((res) => {
14386
+ this.value = res.text;
14387
+ this._onChange(this.value);
14388
+ this.isLoading = false;
14389
+ });
14390
+ this.hideDialog();
14391
+ }
14392
+ _createDialogFields() {
14393
+ this.fields = [
14394
+ new FormField({
14395
+ name: "context",
14396
+ type: FieldType.Text,
14397
+ label: this._translateService.instant("platform.angular_components.context"),
14398
+ size: { sm: 12, md: 12, lg: 12, xl: 12 },
14399
+ }),
14400
+ ];
14401
+ }
14402
+ _createDialogFormGroup() {
14403
+ this.formGroup = this._formBuilder.group({
14404
+ context: [""],
14405
+ });
14406
+ }
14407
+ };
14408
+ TextAreaIAComponent.ctorParameters = () => [
14409
+ { type: IAssistService },
14410
+ { type: FormBuilder },
14411
+ { type: TranslateService }
14412
+ ];
14413
+ __decorate([
14414
+ Input()
14415
+ ], TextAreaIAComponent.prototype, "id", void 0);
14416
+ __decorate([
14417
+ Input()
14418
+ ], TextAreaIAComponent.prototype, "label", void 0);
14419
+ __decorate([
14420
+ Input()
14421
+ ], TextAreaIAComponent.prototype, "placeholder", void 0);
14422
+ __decorate([
14423
+ Input()
14424
+ ], TextAreaIAComponent.prototype, "prompt", void 0);
14425
+ __decorate([
14426
+ Input()
14427
+ ], TextAreaIAComponent.prototype, "readonly", void 0);
14428
+ __decorate([
14429
+ Input()
14430
+ ], TextAreaIAComponent.prototype, "rows", void 0);
14431
+ __decorate([
14432
+ Input()
14433
+ ], TextAreaIAComponent.prototype, "cols", void 0);
14434
+ TextAreaIAComponent = TextAreaIAComponent_1 = __decorate([
14435
+ Component({
14436
+ selector: "s-text-area-ia",
14437
+ 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>",
14438
+ providers: [
14439
+ {
14440
+ provide: NG_VALUE_ACCESSOR,
14441
+ useExisting: forwardRef(() => TextAreaIAComponent_1),
14442
+ multi: true,
14443
+ },
14444
+ ],
14445
+ 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}"]
14446
+ })
14447
+ ], TextAreaIAComponent);
14448
+
14449
+ let TextAreaIAModule = class TextAreaIAModule {
14450
+ };
14451
+ TextAreaIAModule = __decorate([
14452
+ NgModule({
14453
+ imports: [
14454
+ CommonModule,
14455
+ FormsModule,
14456
+ ReactiveFormsModule,
14457
+ TranslateModule,
14458
+ DialogModule,
14459
+ InputTextareaModule,
14460
+ ButtonModule,
14461
+ DynamicFormModule,
14462
+ LoadingStateModule,
14463
+ ],
14464
+ declarations: [TextAreaIAComponent],
14465
+ exports: [TextAreaIAComponent],
14466
+ })
14467
+ ], TextAreaIAModule);
14468
+
14469
+ let InlineEditModule = class InlineEditModule {
14470
+ };
14471
+ InlineEditModule = __decorate([
14472
+ NgModule({
14473
+ imports: [
14474
+ CommonModule,
14475
+ FormsModule,
14476
+ ReactiveFormsModule,
14477
+ TranslateModule,
14478
+ BignumberInputModule,
14479
+ ButtonModule,
14480
+ ControlErrorsModule,
14481
+ InfoSignModule,
14482
+ DynamicFormModule,
14483
+ TextAreaIAModule,
14484
+ TooltipModule,
14485
+ CalendarModule,
14486
+ InputMaskModule,
14487
+ InputTextModule,
14488
+ InputTextareaModule,
14489
+ KeyFilterModule,
14490
+ ],
14491
+ declarations: [
14492
+ InlineEditComponent,
14493
+ InlineEditItemComponent,
14494
+ InlineEditCalendarComponent,
14495
+ InlineEditLookupComponent,
14496
+ InlineEditNumberComponent,
14497
+ InlineEditTextComponent,
14498
+ InlineEditTextAreaComponent,
14499
+ InlineEditTextAreaIAComponent,
14500
+ ],
14501
+ exports: [InlineEditComponent],
14502
+ })
14503
+ ], InlineEditModule);
14504
+
13918
14505
  let KanbanEventService = class KanbanEventService {
13919
14506
  constructor() {
13920
14507
  this.selectAllColumnItemsEvent = new EventEmitter();
@@ -17324,9 +17911,11 @@ const fallback = {
17324
17911
  "platform.angular_components.date_format": "dd/mm/yy",
17325
17912
  "platform.angular_components.ia_text_generator": "Gerador de texto por IA",
17326
17913
  "platform.angular_components.attach_files": "Anexar arquivos",
17914
+ "platform.angular_components.add_information": "Adicionar informação",
17327
17915
  "platform.angular_components.add": "Adicionar",
17328
17916
  "platform.angular_components.edit": "Editar",
17329
17917
  "platform.angular_components.remove": "Remover",
17918
+ "platform.angular_components.save": "Salvar",
17330
17919
  "platform.angular_components.file_attached_successfully": "Arquivo anexado com sucesso",
17331
17920
  "platform.angular_components.loading_file": "Carregando arquivo",
17332
17921
  "platform.angular_components.iassist_text_generator": "IAssist Gerador de texto",
@@ -17576,5 +18165,5 @@ const fallback = {
17576
18165
  * Generated bundle index. Do not edit.
17577
18166
  */
17578
18167
 
17579
- export { AccordionComponent, AccordionModule, AccordionPanelComponent, AlertComponent, AlertModule, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CurrencyService, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileUploadPermissions, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, KanbanComponent, KanbanModule, KanbanTemplateTypes, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationButtonComponent, NavigationButtonModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, NumericService, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, convertToMomentDateFormat, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, PasswordFieldComponent as ɵba, TextFieldModule as ɵbb, TextFieldComponent as ɵbc, NumberFieldModule as ɵbd, LocalizedNumberInputModule as ɵbe, NumberInputModule as ɵbf, NumberFieldComponent as ɵbg, CurrencyFieldModule as ɵbh, CurrencyFieldComponent as ɵbi, BignumberFieldModule as ɵbj, BignumberInputModule as ɵbk, BignumberFieldComponent as ɵbl, ProfilePictureModule as ɵbm, ThumbnailService as ɵbn, StructureModule as ɵbo, HeaderComponent as ɵbp, FooterComponent as ɵbq, ProfilePictureFieldComponent as ɵbr, AutocompleteFieldComponent as ɵbs, BooleanFieldComponent as ɵbt, BooleanSwitchFieldComponent as ɵbu, CalendarFieldComponent as ɵbv, ChipsFieldComponent as ɵbw, CountryPhonePickerFieldComponent as ɵbx, DynamicFieldComponent as ɵby, DynamicFormDirective as ɵbz, TemplateDirective as ɵc, FieldsetComponent as ɵca, FileUploadComponent$1 as ɵcb, LookupFieldComponent as ɵcc, RadioButtonComponent as ɵcd, RowComponent as ɵce, SectionComponent as ɵcf, SelectFieldComponent as ɵcg, SliderFieldComponent as ɵch, TextAreaFieldComponent as ɵci, TextAreaIAFieldComponent as ɵcj, IAssistService as ɵck, DecimalField as ɵcm, SideTableComponent as ɵcn, InfiniteScrollModule as ɵco, InfiniteScrollDirective as ɵcp, IAInsightSidebarComponent as ɵcq, IAInsightCardComponent as ɵcr, IAInsightCardLoaderComponent as ɵcs, KanbanEventService as ɵct, KanbanItemComponent as ɵcu, KanbanColumnComponent as ɵcv, KanbanItemDraggingComponent as ɵcw, NumberLocaleOptions as ɵcx, TieredMenuEventService as ɵcy, TieredMenuService as ɵcz, TemplateModule as ɵd, TieredMenuGlobalService as ɵda, TieredMenuComponent as ɵdb, TieredMenuNestedComponent as ɵdc, TieredMenuItemComponent as ɵdd, TieredMenuDividerComponent as ɵde, BorderButtonModule as ɵdf, BorderButtonComponent as ɵdg, ProgressBarDeterminateComponent as ɵdh, ProgressBarIndeterminateComponent as ɵdi, SelectButtonItemComponent as ɵdj, SlidePanelService as ɵdk, TimelineItemModule as ɵdl, TimelineIconItemComponent as ɵdm, HorizontalTimelineModule as ɵdn, HorizontalTimelineComponent as ɵdo, VerticalTimelineModule as ɵdp, VerticalTimelineComponent as ɵdq, RangeLineComponent as ɵdr, CollapseOptionComponent as ɵds, CollapsedItemsComponent as ɵdt, VerticalItemsComponent as ɵdu, CustomTranslationsModule as ɵe, CodeEditorComponent as ɵf, CoreFacade as ɵg, CodeMirror6Core as ɵh, CountryPhonePickerService as ɵi, LocalizedCurrencyImpurePipe as ɵj, LocalizedBignumberPipe as ɵk, LocalizedBignumberImpurePipe as ɵl, NumericPipe as ɵm, EmptyStateGoBackComponent as ɵn, IAssistIconComponent as ɵo, SeniorIconComponent as ɵp, DotsIndicatorComponent as ɵq, LoadingIndicatorComponent as ɵr, FileUploadService as ɵs, InfoSignComponent as ɵt, TableColumnsComponent as ɵu, TablePagingComponent as ɵv, PasswordFieldModule as ɵw, FieldLabelModule as ɵx, InfoSignModule as ɵy, FieldLabelComponent as ɵz };
18168
+ export { AccordionComponent, AccordionModule, AccordionPanelComponent, AlertComponent, AlertModule, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CurrencyService, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileUploadPermissions, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, InlineEditCalendarField, InlineEditComponent, InlineEditField, InlineEditLookupField, InlineEditModule, InlineEditNumberField, InlineEditTextAreaField, InlineEditTextAreaIAField, InlineEditTextField, KanbanComponent, KanbanModule, KanbanTemplateTypes, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationButtonComponent, NavigationButtonModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, NumericService, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextAreaIAComponent, TextAreaIAModule, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, convertToMomentDateFormat, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, PasswordFieldComponent as ɵba, TextFieldModule as ɵbb, TextFieldComponent as ɵbc, NumberFieldModule as ɵbd, LocalizedNumberInputModule as ɵbe, NumberInputModule as ɵbf, NumberFieldComponent as ɵbg, CurrencyFieldModule as ɵbh, CurrencyFieldComponent as ɵbi, BignumberFieldModule as ɵbj, BignumberInputModule as ɵbk, BignumberFieldComponent as ɵbl, ProfilePictureModule as ɵbm, ThumbnailService as ɵbn, StructureModule as ɵbo, HeaderComponent as ɵbp, FooterComponent as ɵbq, ProfilePictureFieldComponent as ɵbr, AutocompleteFieldComponent as ɵbs, BooleanFieldComponent as ɵbt, BooleanSwitchFieldComponent as ɵbu, CalendarFieldComponent as ɵbv, ChipsFieldComponent as ɵbw, CountryPhonePickerFieldComponent as ɵbx, DynamicFieldComponent as ɵby, DynamicFormDirective as ɵbz, TemplateDirective as ɵc, FieldsetComponent as ɵca, FileUploadComponent$1 as ɵcb, LookupFieldComponent as ɵcc, RadioButtonComponent as ɵcd, RowComponent as ɵce, SectionComponent as ɵcf, SelectFieldComponent as ɵcg, SliderFieldComponent as ɵch, TextAreaFieldComponent as ɵci, TextAreaIAFieldComponent as ɵcj, IAssistService as ɵck, DecimalField as ɵcm, SideTableComponent as ɵcn, InfiniteScrollModule as ɵco, InfiniteScrollDirective as ɵcp, IAInsightSidebarComponent as ɵcq, IAInsightCardComponent as ɵcr, IAInsightCardLoaderComponent as ɵcs, InlineEditItemComponent as ɵct, LocaleService as ɵcu, InlineEditCalendarComponent as ɵcv, InlineEditLookupComponent as ɵcw, InlineEditNumberComponent as ɵcx, InlineEditTextComponent as ɵcy, InlineEditTextAreaComponent as ɵcz, TemplateModule as ɵd, InlineEditTextAreaIAComponent as ɵda, KanbanEventService as ɵdb, KanbanItemComponent as ɵdc, KanbanColumnComponent as ɵdd, KanbanItemDraggingComponent as ɵde, NumberLocaleOptions as ɵdf, TieredMenuEventService as ɵdg, TieredMenuService as ɵdh, TieredMenuGlobalService as ɵdi, TieredMenuComponent as ɵdj, TieredMenuNestedComponent as ɵdk, TieredMenuItemComponent as ɵdl, TieredMenuDividerComponent as ɵdm, BorderButtonModule as ɵdn, BorderButtonComponent as ɵdo, ProgressBarDeterminateComponent as ɵdp, ProgressBarIndeterminateComponent as ɵdq, SelectButtonItemComponent as ɵdr, SlidePanelService as ɵds, TimelineItemModule as ɵdt, TimelineIconItemComponent as ɵdu, HorizontalTimelineModule as ɵdv, HorizontalTimelineComponent as ɵdw, VerticalTimelineModule as ɵdx, VerticalTimelineComponent as ɵdy, RangeLineComponent as ɵdz, CustomTranslationsModule as ɵe, CollapseOptionComponent as ɵea, CollapsedItemsComponent as ɵeb, VerticalItemsComponent as ɵec, CodeEditorComponent as ɵf, CoreFacade as ɵg, CodeMirror6Core as ɵh, CountryPhonePickerService as ɵi, LocalizedCurrencyImpurePipe as ɵj, LocalizedBignumberPipe as ɵk, LocalizedBignumberImpurePipe as ɵl, NumericPipe as ɵm, EmptyStateGoBackComponent as ɵn, IAssistIconComponent as ɵo, SeniorIconComponent as ɵp, DotsIndicatorComponent as ɵq, LoadingIndicatorComponent as ɵr, FileUploadService as ɵs, InfoSignComponent as ɵt, TableColumnsComponent as ɵu, TablePagingComponent as ɵv, PasswordFieldModule as ɵw, FieldLabelModule as ɵx, InfoSignModule as ɵy, FieldLabelComponent as ɵz };
17580
18169
  //# sourceMappingURL=seniorsistemas-angular-components.js.map