@seniorsistemas/angular-components 17.9.7 → 17.10.0

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 (92) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +822 -30
  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/esm2015/components/button/button.component.js +5 -2
  31. package/esm2015/components/dynamic-form/components/lookup/lookup.component.js +1 -1
  32. package/esm2015/components/dynamic-form/services/IAssist/models/index.js +1 -0
  33. package/esm2015/components/index.js +3 -1
  34. package/esm2015/components/inline-edit/components/fields/inline-edit-calendar/inline-edit-calendar.component.js +51 -0
  35. package/esm2015/components/inline-edit/components/fields/inline-edit-lookup/inline-edit-lookup.component.js +30 -0
  36. package/esm2015/components/inline-edit/components/fields/inline-edit-number/inline-edit-number.component.js +75 -0
  37. package/esm2015/components/inline-edit/components/fields/inline-edit-text/inline-edit-text.component.js +30 -0
  38. package/esm2015/components/inline-edit/components/fields/inline-edit-text-area/inline-edit-text-area.component.js +30 -0
  39. package/esm2015/components/inline-edit/components/fields/inline-edit-text-area-ia/inline-edit-text-area-ia.component.js +30 -0
  40. package/esm2015/components/inline-edit/components/index.js +8 -0
  41. package/esm2015/components/inline-edit/components/inline-edit-item/inline-edit-item.component.js +98 -0
  42. package/esm2015/components/inline-edit/fields/index.js +8 -0
  43. package/esm2015/components/inline-edit/fields/inline-edit-calendar-field.js +26 -0
  44. package/esm2015/components/inline-edit/fields/inline-edit-field.js +9 -0
  45. package/esm2015/components/inline-edit/fields/inline-edit-lookup-field.js +32 -0
  46. package/esm2015/components/inline-edit/fields/inline-edit-number-field.js +24 -0
  47. package/esm2015/components/inline-edit/fields/inline-edit-text-area-field.js +11 -0
  48. package/esm2015/components/inline-edit/fields/inline-edit-text-area-ia-field.js +7 -0
  49. package/esm2015/components/inline-edit/fields/inline-edit-text-field.js +7 -0
  50. package/esm2015/components/inline-edit/index.js +4 -0
  51. package/esm2015/components/inline-edit/inline-edit.component.js +70 -0
  52. package/esm2015/components/inline-edit/inline-edit.module.js +62 -0
  53. package/esm2015/components/text-area-ia/index.js +3 -0
  54. package/esm2015/components/text-area-ia/text-area-ia.component.js +128 -0
  55. package/esm2015/components/text-area-ia/text-area-ia.module.js +32 -0
  56. package/esm2015/locale/fallback.js +3 -1
  57. package/esm2015/seniorsistemas-angular-components.js +37 -29
  58. package/esm5/components/button/button.component.js +5 -2
  59. package/esm5/components/dynamic-form/components/lookup/lookup.component.js +1 -1
  60. package/esm5/components/dynamic-form/services/IAssist/models/index.js +1 -0
  61. package/esm5/components/index.js +3 -1
  62. package/esm5/components/inline-edit/components/fields/inline-edit-calendar/inline-edit-calendar.component.js +53 -0
  63. package/esm5/components/inline-edit/components/fields/inline-edit-lookup/inline-edit-lookup.component.js +33 -0
  64. package/esm5/components/inline-edit/components/fields/inline-edit-number/inline-edit-number.component.js +99 -0
  65. package/esm5/components/inline-edit/components/fields/inline-edit-text/inline-edit-text.component.js +33 -0
  66. package/esm5/components/inline-edit/components/fields/inline-edit-text-area/inline-edit-text-area.component.js +33 -0
  67. package/esm5/components/inline-edit/components/fields/inline-edit-text-area-ia/inline-edit-text-area-ia.component.js +33 -0
  68. package/esm5/components/inline-edit/components/index.js +8 -0
  69. package/esm5/components/inline-edit/components/inline-edit-item/inline-edit-item.component.js +112 -0
  70. package/esm5/components/inline-edit/fields/index.js +8 -0
  71. package/esm5/components/inline-edit/fields/inline-edit-calendar-field.js +31 -0
  72. package/esm5/components/inline-edit/fields/inline-edit-field.js +11 -0
  73. package/esm5/components/inline-edit/fields/inline-edit-lookup-field.js +50 -0
  74. package/esm5/components/inline-edit/fields/inline-edit-number-field.js +29 -0
  75. package/esm5/components/inline-edit/fields/inline-edit-text-area-field.js +16 -0
  76. package/esm5/components/inline-edit/fields/inline-edit-text-area-ia-field.js +11 -0
  77. package/esm5/components/inline-edit/fields/inline-edit-text-field.js +11 -0
  78. package/esm5/components/inline-edit/index.js +4 -0
  79. package/esm5/components/inline-edit/inline-edit.component.js +84 -0
  80. package/esm5/components/inline-edit/inline-edit.module.js +65 -0
  81. package/esm5/components/text-area-ia/index.js +3 -0
  82. package/esm5/components/text-area-ia/text-area-ia.component.js +131 -0
  83. package/esm5/components/text-area-ia/text-area-ia.module.js +35 -0
  84. package/esm5/locale/fallback.js +3 -1
  85. package/esm5/seniorsistemas-angular-components.js +37 -29
  86. package/fesm2015/seniorsistemas-angular-components.js +671 -3
  87. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  88. package/fesm5/seniorsistemas-angular-components.js +776 -3
  89. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  90. package/package.json +1 -1
  91. package/seniorsistemas-angular-components.d.ts +36 -28
  92. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -1695,6 +1695,9 @@
1695
1695
  __decorate([
1696
1696
  core.Input()
1697
1697
  ], ButtonComponent.prototype, "badge", void 0);
1698
+ __decorate([
1699
+ core.Input()
1700
+ ], ButtonComponent.prototype, "iconColor", void 0);
1698
1701
  __decorate([
1699
1702
  core.Output()
1700
1703
  ], ButtonComponent.prototype, "onClick", void 0);
@@ -1704,7 +1707,7 @@
1704
1707
  ButtonComponent = ButtonComponent_1 = __decorate([
1705
1708
  core.Component({
1706
1709
  selector: "s-button",
1707
- template: "<p-tieredMenu\n [id]=\"id + '-menu'\"\n [popup]=\"true\"\n appendTo=\"body\"\n [baseZIndex]=\"baseZIndex\">\n</p-tieredMenu>\n\n<button\n [id]=\"id\"\n [type]=\"type\"\n [class]=\"styleClass\"\n [ngClass]=\"{\n 's-button-auxiliary': auxiliary,\n 's-button-with-icon': iconClass,\n 's-button-with-text': label,\n 's-button-empty': !iconClass && !label,\n 's-button-size-default': size === 'default',\n 's-button-size-small': size === 'small',\n 's-button-priority-default': priority === 'default',\n 's-button-priority-primary': priority === 'primary',\n 's-button-priority-secondary': priority === 'secondary',\n 's-button-priority-link': priority === 'link',\n 's-button-priority-danger': priority === 'danger',\n 's-button-multiple': (caret && (model && model.length)) || rightIconClass,\n 's-button-active': isOpen(),\n 's-button--slide': validateSlideButton(),\n 's-button--rotate-animation': isRotateAnimation()\n }\"\n [disabled]=\"disabled\"\n [pTooltip]=\"tooltip\"\n [tooltipPosition]=\"tooltipPosition\"\n showDelay=\"500\"\n [tooltipZIndex]=\"tooltipZIndex\"\n (click)=\"onClick.emit($event)\"\n (mouseenter)=\"updateTooltipZIndex()\">\n <div *ngIf=\"badge\" class=\"badge\">\n <s-badge\n [color]=\"badge.color\"\n [text]=\"badge.text\"\n [iconClass]=\"badge.iconClass\">\n </s-badge>\n </div>\n <span \n *ngIf=\"iconClass\" \n [class]=\"iconClass\" \n [ngClass]=\"{ \n 's-button-icon': true,\n 's-button-icon-margin-right': !label && model && model.length\n }\" \n aria-hidden=\"true\">\n </span>\n <span \n *ngIf=\"label\" \n class=\"s-button-text\"\n [ngClass]=\"{\n 's-button-icon-margin-right': !!rightIconClass || (model && model.length),\n 's-button-icon-margin-left': !!iconClass\n }\">\n {{ label }}\n </span>\n <ng-content></ng-content>\n <span \n *ngIf=\"rightIconClass\" \n [class]=\"rightIconClass\" \n [ngClass]=\"{ 's-button-right-icon': true }\" \n aria-hidden=\"true\">\n </span>\n <span\n *ngIf=\"caret && (model && model.length)\" \n class=\"fa fa-fw fa-caret-down\"\n aria-hidden=\"true\">\n </span>\n</button>\n",
1710
+ template: "<p-tieredMenu\n [id]=\"id + '-menu'\"\n [popup]=\"true\"\n appendTo=\"body\"\n [baseZIndex]=\"baseZIndex\">\n</p-tieredMenu>\n\n<button\n [id]=\"id\"\n [type]=\"type\"\n [class]=\"styleClass\"\n [ngClass]=\"{\n 's-button-auxiliary': auxiliary,\n 's-button-with-icon': iconClass,\n 's-button-with-text': label,\n 's-button-empty': !iconClass && !label,\n 's-button-size-default': size === 'default',\n 's-button-size-small': size === 'small',\n 's-button-priority-default': priority === 'default',\n 's-button-priority-primary': priority === 'primary',\n 's-button-priority-secondary': priority === 'secondary',\n 's-button-priority-link': priority === 'link',\n 's-button-priority-danger': priority === 'danger',\n 's-button-multiple': (caret && (model && model.length)) || rightIconClass,\n 's-button-active': isOpen(),\n 's-button--slide': validateSlideButton(),\n 's-button--rotate-animation': isRotateAnimation()\n }\"\n [disabled]=\"disabled\"\n [pTooltip]=\"tooltip\"\n [tooltipPosition]=\"tooltipPosition\"\n showDelay=\"500\"\n [tooltipZIndex]=\"tooltipZIndex\"\n (click)=\"onClick.emit($event)\"\n (mouseenter)=\"updateTooltipZIndex()\">\n <div *ngIf=\"badge\" class=\"badge\">\n <s-badge\n [color]=\"badge.color\"\n [text]=\"badge.text\"\n [iconClass]=\"badge.iconClass\">\n </s-badge>\n </div>\n <span \n *ngIf=\"iconClass\" \n [class]=\"iconClass\" \n [ngClass]=\"{ \n 's-button-icon': true,\n 's-button-icon-margin-right': !label && model && model.length\n }\"\n [ngStyle]=\"{ color: iconColor }\"\n aria-hidden=\"true\">\n </span>\n <span \n *ngIf=\"label\" \n class=\"s-button-text\"\n [ngClass]=\"{\n 's-button-icon-margin-right': !!rightIconClass || (model && model.length),\n 's-button-icon-margin-left': !!iconClass\n }\">\n {{ label }}\n </span>\n <ng-content></ng-content>\n <span \n *ngIf=\"rightIconClass\" \n [class]=\"rightIconClass\" \n [ngClass]=\"{ 's-button-right-icon': true }\"\n [ngStyle]=\"{ color: iconColor }\"\n aria-hidden=\"true\">\n </span>\n <span\n *ngIf=\"caret && (model && model.length)\" \n class=\"fa fa-fw fa-caret-down\"\n aria-hidden=\"true\">\n </span>\n</button>\n",
1708
1711
  styles: ["button{-ms-flex-align:center;align-items:center;border:1px solid;border-radius:4px;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font-family:\"Open Sans\",sans-serif;font-size:14px;height:34px;-ms-flex-pack:center;justify-content:center;max-width:100%;min-width:40px;outline:0;overflow:visible;padding:5px 10px;position:relative;text-decoration:none;text-transform:none;transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out;vertical-align:bottom}button:disabled{opacity:.5;filter:Alpha(Opacity=50);background-image:none}button:disabled,button:disabled *{cursor:text!important}button.s-button-auxiliary{border-radius:20px}button.s-button-size-small{height:25px;padding:0 20px}button.s-button-with-icon.s-button-multiple,button.s-button-with-text{min-width:80px}button.s-button-with-icon.s-button-with-text.s-button-multiple{min-width:100px}button .s-button-icon,button .s-button-menu-icon,button .s-button-right-icon,button.s-button-with-icon.s-button-multiple:not(.s-button-with-text) .s-button-icon{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}button.s-button-multiple .s-button-text{-ms-flex-align:left;align-items:left;display:-ms-flexbox;display:flex;-ms-flex-pack:left;justify-content:left}button.s-button-with-icon .s-button-text{-ms-flex-align:right;align-items:right;display:-ms-flexbox;display:flex;-ms-flex-pack:right;justify-content:right}.s-button-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.s-button-menu-icon{right:10px;transition:transform .2s ease-out}.s-button-icon-margin-left{margin-left:10px}.s-button-icon-margin-right{margin-right:10px}.s-button-active .s-button-menu-icon{transform:rotateX(180deg)}button,button.s-button-priority-primary{background-color:#428bca;border-color:#428bca}button .s-button-icon,button .s-button-menu-icon,button .s-button-right-icon,button .s-button-text,button.s-button-priority-primary .s-button-icon,button.s-button-priority-primary .s-button-menu-icon,button.s-button-priority-primary .s-button-right-icon,button.s-button-priority-primary .s-button-text{color:#fff}button.s-button-priority-primary:hover,button:hover{background-color:#2a6496}button.s-button-priority-primary:focus,button:focus{background-color:#2a6496;border-color:#22dce6}button.s-button-active:not(:disabled),button.s-button-priority-primary.s-button-active:not(:disabled),button.s-button-priority-primary:active:not(:disabled),button:active:not(:disabled){background-color:#245682;border-color:#245682}button.s-button-priority-secondary{background-color:#7892a1;border-color:#7892a1}button.s-button-priority-secondary .s-button-icon,button.s-button-priority-secondary .s-button-menu-icon,button.s-button-priority-secondary .s-button-right-icon,button.s-button-priority-secondary .s-button-text{color:#fff}button.s-button-priority-secondary:hover{background-color:#546b79}button.s-button-priority-secondary:focus{background-color:#546b79;border-color:#22dce6}button.s-button-priority-secondary.s-button-active:not(:disabled),button.s-button-priority-secondary:active:not(:disabled){background-color:#495e6a;border-color:#495e6a}button.s-button-priority-default{background-color:#fff;border-color:#ccc}button.s-button-priority-default .s-button-icon,button.s-button-priority-default .s-button-menu-icon,button.s-button-priority-default .s-button-right-icon,button.s-button-priority-default .s-button-text{color:#333}button.s-button-priority-default:hover{background-color:#d9d9d9}button.s-button-priority-default:focus{background-color:#d9d9d9;border-color:#22dce6}button.s-button-priority-default.s-button-active:not(:disabled),button.s-button-priority-default:active:not(:disabled){background-color:#ccc;border-color:#ccc}.s-button-priority-danger{background-color:#9c3a3a;border-color:#9c3a3a}.s-button-priority-danger .s-button-icon,.s-button-priority-danger .s-button-menu-icon,.s-button-priority-danger .s-button-right-icon,.s-button-priority-danger .s-button-text{color:#fff}.s-button-priority-danger:hover{background-color:#642525}.s-button-priority-danger:focus{background-color:#642525;border-color:#22dce6}.s-button-priority-danger.s-button-active:not(:disabled),.s-button-priority-danger:active:not(:disabled){background-color:#521e1e;border-color:#521e1e}button.s-button-priority-link{background-color:transparent;border-color:transparent}button.s-button-priority-link .s-button-icon,button.s-button-priority-link .s-button-menu-icon,button.s-button-priority-link .s-button-right-icon,button.s-button-priority-link .s-button-text{color:#428bca}button.s-button-priority-link:hover{background-color:transparent}button.s-button-priority-link:hover .s-button-icon,button.s-button-priority-link:hover .s-button-menu-icon,button.s-button-priority-link:hover .s-button-right-icon,button.s-button-priority-link:hover .s-button-text{color:#2a6496}button.s-button-priority-link:focus{border-color:#22dce6;background-color:transparent}button.s-button-priority-link:focus .s-button-icon,button.s-button-priority-link:focus .s-button-menu-icon,button.s-button-priority-link:focus .s-button-right-icon,button.s-button-priority-link:focus .s-button-text{color:#2a6496}button.s-button-priority-link.s-button-active:not(:disabled),button.s-button-priority-link:active:not(:disabled){background-color:transparent;border-color:transparent}button.s-button-priority-link.s-button-active:not(:disabled) .s-button-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-menu-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-right-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-text,button.s-button-priority-link:active:not(:disabled) .s-button-icon,button.s-button-priority-link:active:not(:disabled) .s-button-menu-icon,button.s-button-priority-link:active:not(:disabled) .s-button-right-icon,button.s-button-priority-link:active:not(:disabled) .s-button-text{color:#245682}.s-button--slide.s-button-with-icon.s-button-multiple,.s-button--slide.s-button-with-text{min-width:40px}.s-button--slide .s-button-text{position:absolute;opacity:0;width:0}.s-button--slide:hover .s-button-text{opacity:1;position:relative;transition:1s;width:auto}.s-button--slide:hover.s-button--rotate-animation .s-button-icon,.s-button--slide:hover.s-button--rotate-animation .s-button-right-icon{transform:rotate(360deg);transition:1.5s}.badge{position:absolute;top:-10px;right:-10px;z-index:99}"]
1709
1712
  })
1710
1713
  ], ButtonComponent);
@@ -5917,7 +5920,7 @@
5917
5920
  animations.transition("* <=> *", animations.animate("{{transitionParams}}")),
5918
5921
  ]),
5919
5922
  ],
5920
- styles: ["s-lookup.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-lookup .ui-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}s-lookup .inputgroup p-autocomplete+button,s-lookup p-autocomplete .ui-autocomplete-dropdown.ui-button{background-color:#fff;border-color:#ccc;border-width:1px 1px 1px 0;color:#333;min-height:34px;height:auto!important;min-width:auto;width:34px!important;overflow:hidden;border-top-left-radius:0;border-bottom-left-radius:0}.ui-fluid s-lookup .inputgroup,s-lookup p-autocomplete span.ui-autocomplete-multiple{display:-ms-flexbox;display:flex}.ui-fluid s-lookup .inputgroup p-autocomplete{display:inline-block}.ui-fluid s-lookup .inputgroup p-autocomplete,.ui-fluid s-lookup p-autocomplete .ui-autocomplete-input{width:calc(100% - 34px)}.ui-fluid s-lookup .inputgroup p-autocomplete .ui-autocomplete-input{width:100%}s-lookup .inputgroup p-autocomplete+button:enabled:hover,s-lookup .inputgroup p-autocomplete+button:focus{background-color:#e6e6e6;border-color:#ccc}s-lookup .inputgroup p-autocomplete .ui-widget .ui-inputtext{border-right-width:1px;border-right-style:solid}s-lookup .ui-autocomplete-input-token,s-lookup .ui-autocomplete-input-token input{width:100%}s-lookup .ui-autocomplete .ui-autocomplete-token{max-width:100%}s-lookup .ui-autocomplete .ui-autocomplete-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body .s-lookup-modal.ui-dialog .ui-dialog-content{padding:0;margin-bottom:0;max-height:none}s-lookup .ui-table-scrollable-body{min-width:100%}.s-lookup-modal{height:80%!important;max-width:100%!important;max-height:inherit!important;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column}.s-lookup-modal .ui-dialog-content{height:auto!important;-ms-flex:1;flex:1;overflow:auto}.s-lookup-modal .ui-dialog-footer,.s-lookup-modal .ui-dialog-header{-ms-flex-negative:0;flex-shrink:0;border-radius:0 0 4px 4px}.s-lookup-modal .s-lookup-modal-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%}.s-lookup-modal .s-lookup-modal-container .filter{position:relative;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:85%;background-color:rgba(229,234,234,.5);height:100%;padding:.571rem}.s-lookup-modal .s-lookup-modal-container .filter form{width:100%;height:100%}.s-lookup-modal .s-lookup-modal-container .filter form .form-content{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.s-lookup-modal .s-lookup-modal-container .filter form .form-content .filter-title{padding-left:.5rem}.s-lookup-modal .s-lookup-modal-container .filter form .form-content .form-fields{overflow-y:auto}.s-lookup-modal .s-lookup-modal-container .filter-toggle{-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:34px;border-radius:0 4px 4px 0}.s-lookup-modal .s-lookup-modal-container .filter-toggle button{-ms-flex-align:center;align-items:center;position:relative;background-color:rgba(229,234,234,.5);height:34px;width:100%;border:1px solid #e5eaea;outline:0;border-left:none;border-radius:0 4px 4px 0;cursor:pointer;text-decoration:none;text-transform:none;padding:7px;transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out}.s-lookup-modal .s-lookup-modal-container .filter-toggle button:focus,.s-lookup-modal .s-lookup-modal-container .filter-toggle button:hover{background-color:rgba(201,211,211,.5);border-color:#c9d3d3}.s-lookup-modal .s-lookup-modal-container .filter-toggle--start-border-mask{height:15px;border-left:1px solid #e5eaea}.s-lookup-modal .s-lookup-modal-container .filter-toggle--end-border-mask{height:calc(100% - 49px);border-left:1px solid #e5eaea}.s-lookup-modal .s-lookup-modal-container .content{-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:auto;flex-basis:auto;overflow-x:auto;padding:.5rem}.s-lookup-modal .s-lookup-modal-container .content.empty-content{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.s-lookup-modal .s-lookup-modal-container .content .s-loading-state-container,.s-lookup-modal .s-lookup-modal-container .content .s-loading-state-container .contents{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table{position:relative;height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper{height:calc(100% - 60px)}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-view{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-view .ui-table-scrollable-body{position:relative;height:calc(100% - 60px)}@media (max-width:767px){.s-lookup-modal{border:none!important;top:0!important;left:0!important;width:100%!important;height:100%!important}}@media (min-width:768px){.s-lookup-modal{width:80%!important}.s-lookup-modal .s-lookup-modal-container .filter{width:40%}}@media (min-width:1200px){.s-lookup-modal{width:60%!important}.s-lookup-modal .s-lookup-modal-container .filter{width:30%}}"]
5923
+ styles: ["s-lookup.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-lookup .ui-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}s-lookup .inputgroup p-autocomplete+button,s-lookup p-autocomplete .ui-autocomplete-dropdown.ui-button{background-color:#fff;border-color:#ccc;border-width:1px 1px 1px 0;color:#333;min-height:34px;height:auto!important;min-width:auto;width:34px!important;overflow:hidden;border-top-left-radius:0;border-bottom-left-radius:0}s-lookup .inputgroup,s-lookup p-autocomplete span.ui-autocomplete-multiple{display:-ms-flexbox;display:flex}s-lookup .inputgroup p-autocomplete{display:inline-block}s-lookup .inputgroup p-autocomplete,s-lookup p-autocomplete .ui-autocomplete-input{width:calc(100% - 34px)}s-lookup .inputgroup p-autocomplete .ui-autocomplete-input{width:100%}s-lookup .inputgroup p-autocomplete+button:enabled:hover,s-lookup .inputgroup p-autocomplete+button:focus{background-color:#e6e6e6;border-color:#ccc}s-lookup .inputgroup p-autocomplete .ui-widget .ui-inputtext{border-right-width:1px;border-right-style:solid}s-lookup .ui-autocomplete-input-token,s-lookup .ui-autocomplete-input-token input{width:100%}s-lookup .ui-autocomplete .ui-autocomplete-token{max-width:100%}s-lookup .ui-autocomplete .ui-autocomplete-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body .s-lookup-modal.ui-dialog .ui-dialog-content{padding:0;margin-bottom:0;max-height:none}s-lookup .ui-table-scrollable-body{min-width:100%}.s-lookup-modal{height:80%!important;max-width:100%!important;max-height:inherit!important;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column}.s-lookup-modal .ui-dialog-content{height:auto!important;-ms-flex:1;flex:1;overflow:auto}.s-lookup-modal .ui-dialog-footer,.s-lookup-modal .ui-dialog-header{-ms-flex-negative:0;flex-shrink:0;border-radius:0 0 4px 4px}.s-lookup-modal .s-lookup-modal-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%}.s-lookup-modal .s-lookup-modal-container .filter{position:relative;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:85%;background-color:rgba(229,234,234,.5);height:100%;padding:.571rem}.s-lookup-modal .s-lookup-modal-container .filter form{width:100%;height:100%}.s-lookup-modal .s-lookup-modal-container .filter form .form-content{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.s-lookup-modal .s-lookup-modal-container .filter form .form-content .filter-title{padding-left:.5rem}.s-lookup-modal .s-lookup-modal-container .filter form .form-content .form-fields{overflow-y:auto}.s-lookup-modal .s-lookup-modal-container .filter-toggle{-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:34px;border-radius:0 4px 4px 0}.s-lookup-modal .s-lookup-modal-container .filter-toggle button{-ms-flex-align:center;align-items:center;position:relative;background-color:rgba(229,234,234,.5);height:34px;width:100%;border:1px solid #e5eaea;outline:0;border-left:none;border-radius:0 4px 4px 0;cursor:pointer;text-decoration:none;text-transform:none;padding:7px;transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out}.s-lookup-modal .s-lookup-modal-container .filter-toggle button:focus,.s-lookup-modal .s-lookup-modal-container .filter-toggle button:hover{background-color:rgba(201,211,211,.5);border-color:#c9d3d3}.s-lookup-modal .s-lookup-modal-container .filter-toggle--start-border-mask{height:15px;border-left:1px solid #e5eaea}.s-lookup-modal .s-lookup-modal-container .filter-toggle--end-border-mask{height:calc(100% - 49px);border-left:1px solid #e5eaea}.s-lookup-modal .s-lookup-modal-container .content{-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:auto;flex-basis:auto;overflow-x:auto;padding:.5rem}.s-lookup-modal .s-lookup-modal-container .content.empty-content{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.s-lookup-modal .s-lookup-modal-container .content .s-loading-state-container,.s-lookup-modal .s-lookup-modal-container .content .s-loading-state-container .contents{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table{position:relative;height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper{height:calc(100% - 60px)}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-view{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-view .ui-table-scrollable-body{position:relative;height:calc(100% - 60px)}@media (max-width:767px){.s-lookup-modal{border:none!important;top:0!important;left:0!important;width:100%!important;height:100%!important}}@media (min-width:768px){.s-lookup-modal{width:80%!important}.s-lookup-modal .s-lookup-modal-container .filter{width:40%}}@media (min-width:1200px){.s-lookup-modal{width:60%!important}.s-lookup-modal .s-lookup-modal-container .filter{width:30%}}"]
5921
5924
  })
5922
5925
  ], LookupComponent);
5923
5926
  return LookupComponent;
@@ -14994,6 +14997,774 @@
14994
14997
  return IAInsightModule;
14995
14998
  }());
14996
14999
 
15000
+ var InlineEditField = /** @class */ (function () {
15001
+ function InlineEditField(options) {
15002
+ this.label = options.label;
15003
+ this.name = options.name;
15004
+ this.tooltip = options.tooltip;
15005
+ this.errorMessages = options.errorMessages;
15006
+ }
15007
+ return InlineEditField;
15008
+ }());
15009
+
15010
+ var InlineEditCalendarField = /** @class */ (function (_super) {
15011
+ __extends(InlineEditCalendarField, _super);
15012
+ function InlineEditCalendarField(options) {
15013
+ var _this = _super.call(this, options) || this;
15014
+ _this.view = options.view || "date";
15015
+ _this.minDate = options.minDate;
15016
+ _this.maxDate = options.maxDate;
15017
+ _this.defaultDate = options.defaultDate;
15018
+ _this.appendTo = options.appendTo;
15019
+ _this.showOnFocus = typeof options.showOnFocus === "boolean" ? options.showOnFocus : true;
15020
+ _this.onBlur = options.onBlur;
15021
+ _this.onFocus = options.onFocus;
15022
+ _this.onSelect = options.onSelect;
15023
+ _this.onInput = options.onInput;
15024
+ _this.onClose = options.onClose;
15025
+ _this.onTodayClick = options.onTodayClick;
15026
+ _this.onClearClick = options.onClearClick;
15027
+ _this.onMonthChange = options.onMonthChange;
15028
+ _this.onYearChange = options.onYearChange;
15029
+ _this.selectionMode = options.selectionMode || "single";
15030
+ _this.rangeSeparator = options.rangeSeparator || "-";
15031
+ _this.showSeconds = options.showSeconds;
15032
+ _this.placeholder = options.placeholder;
15033
+ return _this;
15034
+ }
15035
+ return InlineEditCalendarField;
15036
+ }(InlineEditField));
15037
+
15038
+ var InlineEditLookupField = /** @class */ (function (_super) {
15039
+ __extends(InlineEditLookupField, _super);
15040
+ function InlineEditLookupField(options) {
15041
+ var _this = _super.call(this, options) || this;
15042
+ _this.multiple = false;
15043
+ _this.showSearch = true;
15044
+ _this.autocompleteForceSelection = true;
15045
+ _this.showAddOption = false;
15046
+ _this.showEditOption = false;
15047
+ _this.showRemoveOption = false;
15048
+ _this.onSelect = function (event) { };
15049
+ _this.onUnselect = function (event) { };
15050
+ Object.assign(_this, options);
15051
+ _this.suggestionsObservable.subscribe(function (suggestions) { return (_this.lookupSuggestions = suggestions); });
15052
+ _this.searchObservable.pipe(operators.delay(0)).subscribe(function (_a) {
15053
+ var totalRecords = _a.totalRecords, gridData = _a.gridData, searchTotalRecordsLabel = _a.searchTotalRecordsLabel;
15054
+ _this._gridData = gridData;
15055
+ _this._searchTotalRecords = totalRecords;
15056
+ _this._searchTotalRecordsLabel = searchTotalRecordsLabel;
15057
+ });
15058
+ return _this;
15059
+ }
15060
+ Object.defineProperty(InlineEditLookupField.prototype, "gridData", {
15061
+ get: function () {
15062
+ return this._gridData;
15063
+ },
15064
+ enumerable: true,
15065
+ configurable: true
15066
+ });
15067
+ Object.defineProperty(InlineEditLookupField.prototype, "searchTotalRecords", {
15068
+ get: function () {
15069
+ return this._searchTotalRecords;
15070
+ },
15071
+ enumerable: true,
15072
+ configurable: true
15073
+ });
15074
+ Object.defineProperty(InlineEditLookupField.prototype, "searchTotalRecordsLabel", {
15075
+ get: function () {
15076
+ return this._searchTotalRecordsLabel;
15077
+ },
15078
+ enumerable: true,
15079
+ configurable: true
15080
+ });
15081
+ return InlineEditLookupField;
15082
+ }(InlineEditField));
15083
+
15084
+ var InlineEditNumberField = /** @class */ (function (_super) {
15085
+ __extends(InlineEditNumberField, _super);
15086
+ function InlineEditNumberField(options) {
15087
+ var _a, _b, _c, _d;
15088
+ var _this = _super.call(this, options) || this;
15089
+ _this.allowNegative = (_a = options.allowNegative) !== null && _a !== void 0 ? _a : true;
15090
+ _this.numberLocaleOptions = options.numberLocaleOptions;
15091
+ _this.browserAutocomplete = options.browserAutocomplete;
15092
+ _this.precision = options.precision;
15093
+ _this.scale = (_b = options.scale) !== null && _b !== void 0 ? _b : 2;
15094
+ _this.alignTo = _this.scale ? ng2CurrencyMask.AlignmentOptions.RIGHT : ng2CurrencyMask.AlignmentOptions.LEFT;
15095
+ _this.mask = options.mask;
15096
+ _this.leftAddon = options.leftAddon;
15097
+ _this.rightAddon = options.rightAddon;
15098
+ _this.onBlur = options.onBlur;
15099
+ _this.onFocus = options.onFocus;
15100
+ _this.onComplete = options.onComplete;
15101
+ _this.onInput = options.onInput;
15102
+ _this.autoClear = (_c = options.autoClear) !== null && _c !== void 0 ? _c : true;
15103
+ _this.placeholder = (_d = options.placeholder) !== null && _d !== void 0 ? _d : "";
15104
+ return _this;
15105
+ }
15106
+ return InlineEditNumberField;
15107
+ }(InlineEditField));
15108
+
15109
+ var InlineEditTextAreaField = /** @class */ (function (_super) {
15110
+ __extends(InlineEditTextAreaField, _super);
15111
+ function InlineEditTextAreaField(options) {
15112
+ var _this = _super.call(this, options) || this;
15113
+ _this.cols = options.cols;
15114
+ _this.rows = options.rows;
15115
+ _this.keyFilter = options.keyFilter;
15116
+ _this.readonly = options.readonly;
15117
+ return _this;
15118
+ }
15119
+ return InlineEditTextAreaField;
15120
+ }(InlineEditField));
15121
+
15122
+ var InlineEditTextField = /** @class */ (function (_super) {
15123
+ __extends(InlineEditTextField, _super);
15124
+ function InlineEditTextField(options) {
15125
+ return _super.call(this, options) || this;
15126
+ }
15127
+ return InlineEditTextField;
15128
+ }(InlineEditField));
15129
+
15130
+ var InlineEditTextAreaIAField = /** @class */ (function (_super) {
15131
+ __extends(InlineEditTextAreaIAField, _super);
15132
+ function InlineEditTextAreaIAField(options) {
15133
+ return _super.call(this, options) || this;
15134
+ }
15135
+ return InlineEditTextAreaIAField;
15136
+ }(InlineEditField));
15137
+
15138
+ var InlineEditItemComponent = /** @class */ (function () {
15139
+ function InlineEditItemComponent(localeService) {
15140
+ this.localeService = localeService;
15141
+ this.isEditing = false;
15142
+ }
15143
+ InlineEditItemComponent.prototype.ngOnInit = function () {
15144
+ this._getCalendarLocaleOptions();
15145
+ };
15146
+ Object.defineProperty(InlineEditItemComponent.prototype, "showEmptyValueButton", {
15147
+ get: function () {
15148
+ var _a;
15149
+ return !this.isEditing && !((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value);
15150
+ },
15151
+ enumerable: true,
15152
+ configurable: true
15153
+ });
15154
+ Object.defineProperty(InlineEditItemComponent.prototype, "showEditButton", {
15155
+ get: function () {
15156
+ var _a;
15157
+ return !this.isEditing && ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value);
15158
+ },
15159
+ enumerable: true,
15160
+ configurable: true
15161
+ });
15162
+ Object.defineProperty(InlineEditItemComponent.prototype, "showValue", {
15163
+ get: function () {
15164
+ var _a;
15165
+ return !this.isEditing && ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value);
15166
+ },
15167
+ enumerable: true,
15168
+ configurable: true
15169
+ });
15170
+ InlineEditItemComponent.prototype.onEdit = function () {
15171
+ this.isEditing = !this.isEditing;
15172
+ };
15173
+ InlineEditItemComponent.prototype.onCancel = function () {
15174
+ this.isEditing = !this.isEditing;
15175
+ };
15176
+ InlineEditItemComponent.prototype.onSave = function () {
15177
+ if (this.dynamicComponentRef && this.dynamicComponentRef.instance.saveValue) {
15178
+ var control = this.formGroup.get(this.field.name);
15179
+ control.markAsDirty({ onlySelf: true });
15180
+ this.dynamicComponentRef.instance.saveValue();
15181
+ }
15182
+ if (this.formGroup.get(this.field.name).valid) {
15183
+ this.isEditing = !this.isEditing;
15184
+ }
15185
+ };
15186
+ InlineEditItemComponent.prototype.setDynamicComponentRef = function (ref) {
15187
+ this.dynamicComponentRef = ref;
15188
+ };
15189
+ InlineEditItemComponent.prototype.getErrorMessages = function (errorMessages) {
15190
+ if (errorMessages)
15191
+ return errorMessages instanceof Function
15192
+ ? __assign(__assign({}, this.errorMessages), errorMessages()) : __assign(__assign({}, this.errorMessages), errorMessages);
15193
+ return this.errorMessages;
15194
+ };
15195
+ InlineEditItemComponent.prototype.getFormattedValue = function (value) {
15196
+ if (this.field instanceof InlineEditCalendarField) {
15197
+ return this.dynamicComponentRef.instance.getValueAsText();
15198
+ }
15199
+ if (this.field instanceof InlineEditLookupField) {
15200
+ var lookupField_1 = this.field;
15201
+ return this.field.multiple
15202
+ ? value.map(function (val) { return val[lookupField_1.lookupDisplayField]; }).join(" - ")
15203
+ : value[lookupField_1.lookupDisplayField];
15204
+ }
15205
+ return value;
15206
+ };
15207
+ InlineEditItemComponent.prototype._getCalendarLocaleOptions = function () {
15208
+ var _this = this;
15209
+ this.localeService
15210
+ .get()
15211
+ .pipe(operators.first())
15212
+ .subscribe(function (localeOptions) {
15213
+ _this._locale = localeOptions.locale;
15214
+ });
15215
+ };
15216
+ InlineEditItemComponent.ctorParameters = function () { return [
15217
+ { type: LocaleService }
15218
+ ]; };
15219
+ __decorate([
15220
+ core.ViewChild("formContainer", { read: core.ViewContainerRef, static: true })
15221
+ ], InlineEditItemComponent.prototype, "viewContainerRef", void 0);
15222
+ __decorate([
15223
+ core.Input()
15224
+ ], InlineEditItemComponent.prototype, "label", void 0);
15225
+ __decorate([
15226
+ core.Input()
15227
+ ], InlineEditItemComponent.prototype, "formGroup", void 0);
15228
+ __decorate([
15229
+ core.Input()
15230
+ ], InlineEditItemComponent.prototype, "field", void 0);
15231
+ __decorate([
15232
+ core.Input()
15233
+ ], InlineEditItemComponent.prototype, "errorMessages", void 0);
15234
+ InlineEditItemComponent = __decorate([
15235
+ core.Component({
15236
+ selector: "s-inline-edit-item",
15237
+ 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",
15238
+ 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}"]
15239
+ })
15240
+ ], InlineEditItemComponent);
15241
+ return InlineEditItemComponent;
15242
+ }());
15243
+
15244
+ var InlineEditCalendarComponent = /** @class */ (function () {
15245
+ function InlineEditCalendarComponent(localeService) {
15246
+ this.localeService = localeService;
15247
+ }
15248
+ InlineEditCalendarComponent.prototype.ngOnInit = function () {
15249
+ var _a;
15250
+ this._getLocaleOptions();
15251
+ if (this.formGroup && this.field) {
15252
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
15253
+ }
15254
+ };
15255
+ InlineEditCalendarComponent.prototype.saveValue = function () {
15256
+ var _a;
15257
+ if (this.formGroup && this.field) {
15258
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
15259
+ }
15260
+ };
15261
+ InlineEditCalendarComponent.prototype.getValueAsText = function () {
15262
+ return this.calendar.el.nativeElement.querySelector('input').value;
15263
+ };
15264
+ InlineEditCalendarComponent.prototype._getLocaleOptions = function () {
15265
+ var _this = this;
15266
+ this.localeService.get().pipe(operators.first()).subscribe(function (locale) {
15267
+ _this.calendarLocaleOptions = locale.calendar;
15268
+ });
15269
+ };
15270
+ InlineEditCalendarComponent.ctorParameters = function () { return [
15271
+ { type: LocaleService }
15272
+ ]; };
15273
+ __decorate([
15274
+ core.Input()
15275
+ ], InlineEditCalendarComponent.prototype, "field", void 0);
15276
+ __decorate([
15277
+ core.Input()
15278
+ ], InlineEditCalendarComponent.prototype, "formGroup", void 0);
15279
+ __decorate([
15280
+ core.ViewChild(calendar.Calendar)
15281
+ ], InlineEditCalendarComponent.prototype, "calendar", void 0);
15282
+ InlineEditCalendarComponent = __decorate([
15283
+ core.Component({
15284
+ 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",
15285
+ styles: [""]
15286
+ })
15287
+ ], InlineEditCalendarComponent);
15288
+ return InlineEditCalendarComponent;
15289
+ }());
15290
+
15291
+ var InlineEditLookupComponent = /** @class */ (function () {
15292
+ function InlineEditLookupComponent() {
15293
+ }
15294
+ InlineEditLookupComponent.prototype.ngOnInit = function () {
15295
+ var _a;
15296
+ if (this.formGroup && this.field) {
15297
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || "";
15298
+ }
15299
+ };
15300
+ InlineEditLookupComponent.prototype.saveValue = function () {
15301
+ var _a;
15302
+ if (this.formGroup && this.field) {
15303
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
15304
+ }
15305
+ };
15306
+ __decorate([
15307
+ core.Input()
15308
+ ], InlineEditLookupComponent.prototype, "field", void 0);
15309
+ __decorate([
15310
+ core.Input()
15311
+ ], InlineEditLookupComponent.prototype, "formGroup", void 0);
15312
+ InlineEditLookupComponent = __decorate([
15313
+ core.Component({
15314
+ 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",
15315
+ styles: [""]
15316
+ })
15317
+ ], InlineEditLookupComponent);
15318
+ return InlineEditLookupComponent;
15319
+ }());
15320
+
15321
+ var InlineEditNumberComponent = /** @class */ (function () {
15322
+ function InlineEditNumberComponent(localeService) {
15323
+ this.localeService = localeService;
15324
+ }
15325
+ InlineEditNumberComponent.prototype.ngOnInit = function () {
15326
+ var _a;
15327
+ this._onLocaleService();
15328
+ if (this.formGroup && this.field) {
15329
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
15330
+ }
15331
+ };
15332
+ InlineEditNumberComponent.prototype.saveValue = function () {
15333
+ var _a;
15334
+ if (this.formGroup && this.field) {
15335
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
15336
+ }
15337
+ };
15338
+ Object.defineProperty(InlineEditNumberComponent.prototype, "mask", {
15339
+ get: function () {
15340
+ return typeof this.field.mask === 'function' ? this.field.mask() : this.field.mask;
15341
+ },
15342
+ enumerable: true,
15343
+ configurable: true
15344
+ });
15345
+ Object.defineProperty(InlineEditNumberComponent.prototype, "leftAddonDisabled", {
15346
+ get: function () {
15347
+ return typeof this.field.leftAddon.disabled === 'function' ? this.field.leftAddon.disabled() : this.field.leftAddon.disabled;
15348
+ },
15349
+ enumerable: true,
15350
+ configurable: true
15351
+ });
15352
+ Object.defineProperty(InlineEditNumberComponent.prototype, "rightAddonDisabled", {
15353
+ get: function () {
15354
+ return typeof this.field.rightAddon.disabled === 'function' ? this.field.rightAddon.disabled() : this.field.rightAddon.disabled;
15355
+ },
15356
+ enumerable: true,
15357
+ configurable: true
15358
+ });
15359
+ Object.defineProperty(InlineEditNumberComponent.prototype, "precision", {
15360
+ get: function () {
15361
+ return typeof this.field.precision === 'function' ? this.field.precision() : this.field.precision;
15362
+ },
15363
+ enumerable: true,
15364
+ configurable: true
15365
+ });
15366
+ Object.defineProperty(InlineEditNumberComponent.prototype, "scale", {
15367
+ get: function () {
15368
+ return typeof this.field.scale === 'function' ? this.field.scale() : this.field.scale;
15369
+ },
15370
+ enumerable: true,
15371
+ configurable: true
15372
+ });
15373
+ InlineEditNumberComponent.prototype._onLocaleService = function () {
15374
+ var _this = this;
15375
+ this.localeService
15376
+ .getLocale()
15377
+ .pipe(operators.first())
15378
+ .subscribe({
15379
+ next: function () {
15380
+ var _a, _b;
15381
+ if (!((_a = _this.field.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator)) {
15382
+ _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { decimalSeparator: _this.localeService.getDecimalSeparator() });
15383
+ }
15384
+ if (!((_b = _this.field.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator)) {
15385
+ _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { thousandsSeparator: _this.localeService.getGroupingSeparator() });
15386
+ }
15387
+ },
15388
+ error: function () {
15389
+ return (_this.field.numberLocaleOptions = {
15390
+ thousandsSeparator: ".",
15391
+ decimalSeparator: ",",
15392
+ currencySymbol: "",
15393
+ });
15394
+ },
15395
+ });
15396
+ };
15397
+ InlineEditNumberComponent.ctorParameters = function () { return [
15398
+ { type: LocaleService }
15399
+ ]; };
15400
+ __decorate([
15401
+ core.Input()
15402
+ ], InlineEditNumberComponent.prototype, "field", void 0);
15403
+ __decorate([
15404
+ core.Input()
15405
+ ], InlineEditNumberComponent.prototype, "formGroup", void 0);
15406
+ InlineEditNumberComponent = __decorate([
15407
+ core.Component({
15408
+ 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",
15409
+ styles: [""]
15410
+ })
15411
+ ], InlineEditNumberComponent);
15412
+ return InlineEditNumberComponent;
15413
+ }());
15414
+
15415
+ var InlineEditTextAreaComponent = /** @class */ (function () {
15416
+ function InlineEditTextAreaComponent() {
15417
+ }
15418
+ InlineEditTextAreaComponent.prototype.ngOnInit = function () {
15419
+ var _a;
15420
+ if (this.formGroup && this.field) {
15421
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
15422
+ }
15423
+ };
15424
+ InlineEditTextAreaComponent.prototype.saveValue = function () {
15425
+ var _a;
15426
+ if (this.formGroup && this.field) {
15427
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
15428
+ }
15429
+ };
15430
+ __decorate([
15431
+ core.Input()
15432
+ ], InlineEditTextAreaComponent.prototype, "field", void 0);
15433
+ __decorate([
15434
+ core.Input()
15435
+ ], InlineEditTextAreaComponent.prototype, "formGroup", void 0);
15436
+ InlineEditTextAreaComponent = __decorate([
15437
+ core.Component({
15438
+ 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",
15439
+ styles: [".textarea-input{resize:vertical}"]
15440
+ })
15441
+ ], InlineEditTextAreaComponent);
15442
+ return InlineEditTextAreaComponent;
15443
+ }());
15444
+
15445
+ var InlineEditTextComponent = /** @class */ (function () {
15446
+ function InlineEditTextComponent() {
15447
+ }
15448
+ InlineEditTextComponent.prototype.ngOnInit = function () {
15449
+ var _a;
15450
+ if (this.formGroup && this.field) {
15451
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
15452
+ }
15453
+ };
15454
+ InlineEditTextComponent.prototype.saveValue = function () {
15455
+ var _a;
15456
+ if (this.formGroup && this.field) {
15457
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
15458
+ }
15459
+ };
15460
+ __decorate([
15461
+ core.Input()
15462
+ ], InlineEditTextComponent.prototype, "field", void 0);
15463
+ __decorate([
15464
+ core.Input()
15465
+ ], InlineEditTextComponent.prototype, "formGroup", void 0);
15466
+ InlineEditTextComponent = __decorate([
15467
+ core.Component({
15468
+ template: "<input\n type=\"text\"\n pInputText\n [(ngModel)]=\"tempValue\" />",
15469
+ styles: [""]
15470
+ })
15471
+ ], InlineEditTextComponent);
15472
+ return InlineEditTextComponent;
15473
+ }());
15474
+
15475
+ var InlineEditTextAreaIAComponent = /** @class */ (function () {
15476
+ function InlineEditTextAreaIAComponent() {
15477
+ }
15478
+ InlineEditTextAreaIAComponent.prototype.ngOnInit = function () {
15479
+ var _a;
15480
+ if (this.formGroup && this.field) {
15481
+ this.tempValue = ((_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.value) || '';
15482
+ }
15483
+ };
15484
+ InlineEditTextAreaIAComponent.prototype.saveValue = function () {
15485
+ var _a;
15486
+ if (this.formGroup && this.field) {
15487
+ (_a = this.formGroup.get(this.field.name)) === null || _a === void 0 ? void 0 : _a.setValue(this.tempValue);
15488
+ }
15489
+ };
15490
+ __decorate([
15491
+ core.Input()
15492
+ ], InlineEditTextAreaIAComponent.prototype, "field", void 0);
15493
+ __decorate([
15494
+ core.Input()
15495
+ ], InlineEditTextAreaIAComponent.prototype, "formGroup", void 0);
15496
+ InlineEditTextAreaIAComponent = __decorate([
15497
+ core.Component({
15498
+ template: "<s-text-area-ia [(ngModel)]=\"tempValue\"></s-text-area-ia>",
15499
+ styles: [""]
15500
+ })
15501
+ ], InlineEditTextAreaIAComponent);
15502
+ return InlineEditTextAreaIAComponent;
15503
+ }());
15504
+
15505
+ var InlineEditComponent = /** @class */ (function () {
15506
+ function InlineEditComponent(resolver) {
15507
+ var _a;
15508
+ this.resolver = resolver;
15509
+ this.fields = [];
15510
+ this._componentMap = (_a = {},
15511
+ _a[InlineEditCalendarField.name] = InlineEditCalendarComponent,
15512
+ _a[InlineEditLookupField.name] = InlineEditLookupComponent,
15513
+ _a[InlineEditTextField.name] = InlineEditTextComponent,
15514
+ _a[InlineEditNumberField.name] = InlineEditNumberComponent,
15515
+ _a[InlineEditTextAreaField.name] = InlineEditTextAreaComponent,
15516
+ _a[InlineEditTextAreaIAField.name] = InlineEditTextAreaIAComponent,
15517
+ _a);
15518
+ }
15519
+ InlineEditComponent.prototype.ngOnInit = function () {
15520
+ this._createFields();
15521
+ };
15522
+ InlineEditComponent.prototype._createFields = function () {
15523
+ var e_1, _a;
15524
+ var _this = this;
15525
+ this.container.clear();
15526
+ var createComponent = function (componentClass, field) {
15527
+ var componentFactory = _this.resolver.resolveComponentFactory(componentClass);
15528
+ var componentRef = _this.container.createComponent(componentFactory);
15529
+ componentRef.instance.field = field;
15530
+ componentRef.instance.formGroup = _this.formGroup;
15531
+ return componentRef;
15532
+ };
15533
+ try {
15534
+ for (var _b = __values(this.fields), _c = _b.next(); !_c.done; _c = _b.next()) {
15535
+ var field = _c.value;
15536
+ var componentClass = this._componentMap[field.constructor.name];
15537
+ if (componentClass) {
15538
+ var inlineEditItemFactory = this.resolver.resolveComponentFactory(InlineEditItemComponent);
15539
+ var inlineEditItemRef = this.container.createComponent(inlineEditItemFactory);
15540
+ inlineEditItemRef.instance.label = field.label;
15541
+ inlineEditItemRef.instance.formGroup = this.formGroup;
15542
+ inlineEditItemRef.instance.field = field;
15543
+ inlineEditItemRef.instance.errorMessages = this.errorMessages;
15544
+ var dynamicComponentRef = createComponent(componentClass, field);
15545
+ var inlineEditItemInstance = inlineEditItemRef.instance;
15546
+ inlineEditItemInstance.viewContainerRef.insert(dynamicComponentRef.hostView);
15547
+ inlineEditItemInstance.setDynamicComponentRef(dynamicComponentRef);
15548
+ }
15549
+ }
15550
+ }
15551
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
15552
+ finally {
15553
+ try {
15554
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
15555
+ }
15556
+ finally { if (e_1) throw e_1.error; }
15557
+ }
15558
+ };
15559
+ InlineEditComponent.ctorParameters = function () { return [
15560
+ { type: core.ComponentFactoryResolver }
15561
+ ]; };
15562
+ __decorate([
15563
+ core.Input()
15564
+ ], InlineEditComponent.prototype, "formGroup", void 0);
15565
+ __decorate([
15566
+ core.Input()
15567
+ ], InlineEditComponent.prototype, "fields", void 0);
15568
+ __decorate([
15569
+ core.Input()
15570
+ ], InlineEditComponent.prototype, "errorMessages", void 0);
15571
+ __decorate([
15572
+ core.ViewChild("formContainer", { read: core.ViewContainerRef, static: true })
15573
+ ], InlineEditComponent.prototype, "container", void 0);
15574
+ InlineEditComponent = __decorate([
15575
+ core.Component({
15576
+ selector: "s-inline-edit",
15577
+ template: "<div class=\"inline-edit\">\n <ng-template #formContainer></ng-template>\n</div>\n",
15578
+ styles: [".inline-edit{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}"]
15579
+ })
15580
+ ], InlineEditComponent);
15581
+ return InlineEditComponent;
15582
+ }());
15583
+
15584
+ var TextAreaIAComponent = /** @class */ (function () {
15585
+ function TextAreaIAComponent(_iassistService, // Mover pra uma pasta global
15586
+ _formBuilder, _translateService) {
15587
+ this._iassistService = _iassistService;
15588
+ this._formBuilder = _formBuilder;
15589
+ this._translateService = _translateService;
15590
+ this.isVisible = false;
15591
+ this.isLoading = false;
15592
+ }
15593
+ TextAreaIAComponent_1 = TextAreaIAComponent;
15594
+ TextAreaIAComponent.prototype.ngOnInit = function () {
15595
+ this._createDialogFields();
15596
+ this._createDialogFormGroup();
15597
+ };
15598
+ TextAreaIAComponent.prototype.writeValue = function (value) {
15599
+ this.value = value;
15600
+ };
15601
+ TextAreaIAComponent.prototype.registerOnChange = function (onChange) {
15602
+ this._onChange = onChange;
15603
+ };
15604
+ TextAreaIAComponent.prototype.registerOnTouched = function (onTouched) {
15605
+ this._onTouched = onTouched;
15606
+ };
15607
+ TextAreaIAComponent.prototype.setDisabledState = function (isDisabled) {
15608
+ this._isDisabled = isDisabled;
15609
+ };
15610
+ TextAreaIAComponent.prototype.onValueChange = function (value) {
15611
+ var _a;
15612
+ this.value = value;
15613
+ (_a = this._onChange) === null || _a === void 0 ? void 0 : _a.call(this, value);
15614
+ };
15615
+ TextAreaIAComponent.prototype.showDialog = function () {
15616
+ this.isVisible = true;
15617
+ this._onTouched();
15618
+ };
15619
+ TextAreaIAComponent.prototype.hideDialog = function () {
15620
+ this.isVisible = false;
15621
+ };
15622
+ TextAreaIAComponent.prototype.onHideDialog = function () {
15623
+ this.formGroup.get("context").setValue("");
15624
+ };
15625
+ TextAreaIAComponent.prototype.submitContext = function () {
15626
+ var _this = this;
15627
+ var context = this.formGroup.get("context");
15628
+ this.isLoading = true;
15629
+ this._iassistService
15630
+ .askIA(context.value, {
15631
+ id: this.id,
15632
+ label: this.label,
15633
+ placeholder: this.placeholder,
15634
+ prompt: this.prompt,
15635
+ })
15636
+ .pipe(operators.catchError(function (err) {
15637
+ _this.isLoading = false;
15638
+ return rxjs.throwError(err);
15639
+ }))
15640
+ .subscribe(function (res) {
15641
+ _this.value = res.text;
15642
+ _this._onChange(_this.value);
15643
+ _this.isLoading = false;
15644
+ });
15645
+ this.hideDialog();
15646
+ };
15647
+ TextAreaIAComponent.prototype._createDialogFields = function () {
15648
+ this.fields = [
15649
+ new FormField({
15650
+ name: "context",
15651
+ type: exports.FieldType.Text,
15652
+ label: this._translateService.instant("platform.angular_components.context"),
15653
+ size: { sm: 12, md: 12, lg: 12, xl: 12 },
15654
+ }),
15655
+ ];
15656
+ };
15657
+ TextAreaIAComponent.prototype._createDialogFormGroup = function () {
15658
+ this.formGroup = this._formBuilder.group({
15659
+ context: [""],
15660
+ });
15661
+ };
15662
+ var TextAreaIAComponent_1;
15663
+ TextAreaIAComponent.ctorParameters = function () { return [
15664
+ { type: IAssistService },
15665
+ { type: forms.FormBuilder },
15666
+ { type: core$1.TranslateService }
15667
+ ]; };
15668
+ __decorate([
15669
+ core.Input()
15670
+ ], TextAreaIAComponent.prototype, "id", void 0);
15671
+ __decorate([
15672
+ core.Input()
15673
+ ], TextAreaIAComponent.prototype, "label", void 0);
15674
+ __decorate([
15675
+ core.Input()
15676
+ ], TextAreaIAComponent.prototype, "placeholder", void 0);
15677
+ __decorate([
15678
+ core.Input()
15679
+ ], TextAreaIAComponent.prototype, "prompt", void 0);
15680
+ __decorate([
15681
+ core.Input()
15682
+ ], TextAreaIAComponent.prototype, "readonly", void 0);
15683
+ __decorate([
15684
+ core.Input()
15685
+ ], TextAreaIAComponent.prototype, "rows", void 0);
15686
+ __decorate([
15687
+ core.Input()
15688
+ ], TextAreaIAComponent.prototype, "cols", void 0);
15689
+ TextAreaIAComponent = TextAreaIAComponent_1 = __decorate([
15690
+ core.Component({
15691
+ selector: "s-text-area-ia",
15692
+ 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>",
15693
+ providers: [
15694
+ {
15695
+ provide: forms.NG_VALUE_ACCESSOR,
15696
+ useExisting: core.forwardRef(function () { return TextAreaIAComponent_1; }),
15697
+ multi: true,
15698
+ },
15699
+ ],
15700
+ 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}"]
15701
+ })
15702
+ ], TextAreaIAComponent);
15703
+ return TextAreaIAComponent;
15704
+ }());
15705
+
15706
+ var TextAreaIAModule = /** @class */ (function () {
15707
+ function TextAreaIAModule() {
15708
+ }
15709
+ TextAreaIAModule = __decorate([
15710
+ core.NgModule({
15711
+ imports: [
15712
+ common.CommonModule,
15713
+ forms.FormsModule,
15714
+ forms.ReactiveFormsModule,
15715
+ core$1.TranslateModule,
15716
+ dialog.DialogModule,
15717
+ inputtextarea.InputTextareaModule,
15718
+ ButtonModule,
15719
+ DynamicFormModule,
15720
+ LoadingStateModule,
15721
+ ],
15722
+ declarations: [TextAreaIAComponent],
15723
+ exports: [TextAreaIAComponent],
15724
+ })
15725
+ ], TextAreaIAModule);
15726
+ return TextAreaIAModule;
15727
+ }());
15728
+
15729
+ var InlineEditModule = /** @class */ (function () {
15730
+ function InlineEditModule() {
15731
+ }
15732
+ InlineEditModule = __decorate([
15733
+ core.NgModule({
15734
+ imports: [
15735
+ common.CommonModule,
15736
+ forms.FormsModule,
15737
+ forms.ReactiveFormsModule,
15738
+ core$1.TranslateModule,
15739
+ BignumberInputModule,
15740
+ ButtonModule,
15741
+ ControlErrorsModule,
15742
+ InfoSignModule,
15743
+ DynamicFormModule,
15744
+ TextAreaIAModule,
15745
+ TooltipModule,
15746
+ calendar.CalendarModule,
15747
+ inputmask.InputMaskModule,
15748
+ inputtext.InputTextModule,
15749
+ inputtextarea.InputTextareaModule,
15750
+ keyfilter.KeyFilterModule,
15751
+ ],
15752
+ declarations: [
15753
+ InlineEditComponent,
15754
+ InlineEditItemComponent,
15755
+ InlineEditCalendarComponent,
15756
+ InlineEditLookupComponent,
15757
+ InlineEditNumberComponent,
15758
+ InlineEditTextComponent,
15759
+ InlineEditTextAreaComponent,
15760
+ InlineEditTextAreaIAComponent,
15761
+ ],
15762
+ exports: [InlineEditComponent],
15763
+ })
15764
+ ], InlineEditModule);
15765
+ return InlineEditModule;
15766
+ }());
15767
+
14997
15768
  var KanbanEventService = /** @class */ (function () {
14998
15769
  function KanbanEventService() {
14999
15770
  this.selectAllColumnItemsEvent = new core.EventEmitter();
@@ -18614,9 +19385,11 @@
18614
19385
  "platform.angular_components.date_format": "dd/mm/yy",
18615
19386
  "platform.angular_components.ia_text_generator": "Gerador de texto por IA",
18616
19387
  "platform.angular_components.attach_files": "Anexar arquivos",
19388
+ "platform.angular_components.add_information": "Adicionar informação",
18617
19389
  "platform.angular_components.add": "Adicionar",
18618
19390
  "platform.angular_components.edit": "Editar",
18619
19391
  "platform.angular_components.remove": "Remover",
19392
+ "platform.angular_components.save": "Salvar",
18620
19393
  "platform.angular_components.file_attached_successfully": "Arquivo anexado com sucesso",
18621
19394
  "platform.angular_components.loading_file": "Carregando arquivo",
18622
19395
  "platform.angular_components.iassist_text_generator": "IAssist Gerador de texto",
@@ -18932,6 +19705,15 @@
18932
19705
  exports.ImageCropperService = ImageCropperService;
18933
19706
  exports.InfoSignDirective = InfoSignDirective;
18934
19707
  exports.InfoSignModule = InfoSignModule;
19708
+ exports.InlineEditCalendarField = InlineEditCalendarField;
19709
+ exports.InlineEditComponent = InlineEditComponent;
19710
+ exports.InlineEditField = InlineEditField;
19711
+ exports.InlineEditLookupField = InlineEditLookupField;
19712
+ exports.InlineEditModule = InlineEditModule;
19713
+ exports.InlineEditNumberField = InlineEditNumberField;
19714
+ exports.InlineEditTextAreaField = InlineEditTextAreaField;
19715
+ exports.InlineEditTextAreaIAField = InlineEditTextAreaIAField;
19716
+ exports.InlineEditTextField = InlineEditTextField;
18935
19717
  exports.KanbanComponent = KanbanComponent;
18936
19718
  exports.KanbanModule = KanbanModule;
18937
19719
  exports.LoadingStateComponent = LoadingStateComponent;
@@ -19011,6 +19793,8 @@
19011
19793
  exports.TableModule = TableModule;
19012
19794
  exports.TaxCalculationLanguageConfigs = TaxCalculationLanguageConfigs;
19013
19795
  exports.TextAreaField = TextAreaField;
19796
+ exports.TextAreaIAComponent = TextAreaIAComponent;
19797
+ exports.TextAreaIAModule = TextAreaIAModule;
19014
19798
  exports.TextField = TextField;
19015
19799
  exports.ThumbnailComponent = ThumbnailComponent;
19016
19800
  exports.ThumbnailModule = ThumbnailModule;
@@ -19076,36 +19860,44 @@
19076
19860
  exports.ɵcq = IAInsightSidebarComponent;
19077
19861
  exports.ɵcr = IAInsightCardComponent;
19078
19862
  exports.ɵcs = IAInsightCardLoaderComponent;
19079
- exports.ɵct = KanbanEventService;
19080
- exports.ɵcu = KanbanItemComponent;
19081
- exports.ɵcv = KanbanColumnComponent;
19082
- exports.ɵcw = KanbanItemDraggingComponent;
19083
- exports.ɵcx = NumberLocaleOptions;
19084
- exports.ɵcy = TieredMenuEventService;
19085
- exports.ɵcz = TieredMenuService;
19863
+ exports.ɵct = InlineEditItemComponent;
19864
+ exports.ɵcu = LocaleService;
19865
+ exports.ɵcv = InlineEditCalendarComponent;
19866
+ exports.ɵcw = InlineEditLookupComponent;
19867
+ exports.ɵcx = InlineEditNumberComponent;
19868
+ exports.ɵcy = InlineEditTextComponent;
19869
+ exports.ɵcz = InlineEditTextAreaComponent;
19086
19870
  exports.ɵd = TemplateModule;
19087
- exports.ɵda = TieredMenuGlobalService;
19088
- exports.ɵdb = TieredMenuComponent;
19089
- exports.ɵdc = TieredMenuNestedComponent;
19090
- exports.ɵdd = TieredMenuItemComponent;
19091
- exports.ɵde = TieredMenuDividerComponent;
19092
- exports.ɵdf = BorderButtonModule;
19093
- exports.ɵdg = BorderButtonComponent;
19094
- exports.ɵdh = ProgressBarDeterminateComponent;
19095
- exports.ɵdi = ProgressBarIndeterminateComponent;
19096
- exports.ɵdj = SelectButtonItemComponent;
19097
- exports.ɵdk = SlidePanelService;
19098
- exports.ɵdl = TimelineItemModule;
19099
- exports.ɵdm = TimelineIconItemComponent;
19100
- exports.ɵdn = HorizontalTimelineModule;
19101
- exports.ɵdo = HorizontalTimelineComponent;
19102
- exports.ɵdp = VerticalTimelineModule;
19103
- exports.ɵdq = VerticalTimelineComponent;
19104
- exports.ɵdr = RangeLineComponent;
19105
- exports.ɵds = CollapseOptionComponent;
19106
- exports.ɵdt = CollapsedItemsComponent;
19107
- exports.ɵdu = VerticalItemsComponent;
19871
+ exports.ɵda = InlineEditTextAreaIAComponent;
19872
+ exports.ɵdb = KanbanEventService;
19873
+ exports.ɵdc = KanbanItemComponent;
19874
+ exports.ɵdd = KanbanColumnComponent;
19875
+ exports.ɵde = KanbanItemDraggingComponent;
19876
+ exports.ɵdf = NumberLocaleOptions;
19877
+ exports.ɵdg = TieredMenuEventService;
19878
+ exports.ɵdh = TieredMenuService;
19879
+ exports.ɵdi = TieredMenuGlobalService;
19880
+ exports.ɵdj = TieredMenuComponent;
19881
+ exports.ɵdk = TieredMenuNestedComponent;
19882
+ exports.ɵdl = TieredMenuItemComponent;
19883
+ exports.ɵdm = TieredMenuDividerComponent;
19884
+ exports.ɵdn = BorderButtonModule;
19885
+ exports.ɵdo = BorderButtonComponent;
19886
+ exports.ɵdp = ProgressBarDeterminateComponent;
19887
+ exports.ɵdq = ProgressBarIndeterminateComponent;
19888
+ exports.ɵdr = SelectButtonItemComponent;
19889
+ exports.ɵds = SlidePanelService;
19890
+ exports.ɵdt = TimelineItemModule;
19891
+ exports.ɵdu = TimelineIconItemComponent;
19892
+ exports.ɵdv = HorizontalTimelineModule;
19893
+ exports.ɵdw = HorizontalTimelineComponent;
19894
+ exports.ɵdx = VerticalTimelineModule;
19895
+ exports.ɵdy = VerticalTimelineComponent;
19896
+ exports.ɵdz = RangeLineComponent;
19108
19897
  exports.ɵe = CustomTranslationsModule;
19898
+ exports.ɵea = CollapseOptionComponent;
19899
+ exports.ɵeb = CollapsedItemsComponent;
19900
+ exports.ɵec = VerticalItemsComponent;
19109
19901
  exports.ɵf = CodeEditorComponent;
19110
19902
  exports.ɵg = CoreFacade;
19111
19903
  exports.ɵh = CodeMirror6Core;