@seniorsistemas/angular-components 17.2.19 → 17.3.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 (55) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +439 -7
  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/kanban/components/kanban-column/kanban-column.component.d.ts +16 -0
  6. package/components/kanban/components/kanban-item/kanban-item.component.d.ts +13 -0
  7. package/components/kanban/components/kanban-item-dragging/kanban-item-dragging.component.d.ts +3 -0
  8. package/components/kanban/index.d.ts +4 -0
  9. package/components/kanban/kanban-event.service.d.ts +12 -0
  10. package/components/kanban/kanban.component.d.ts +41 -0
  11. package/components/kanban/kanban.module.d.ts +2 -0
  12. package/components/kanban/models/index.d.ts +2 -0
  13. package/components/kanban/models/kanban-data.d.ts +20 -0
  14. package/components/kanban/models/kanban-template-types.d.ts +7 -0
  15. package/components/kanban/template.directive.d.ts +6 -0
  16. package/esm2015/components/dynamic-form/components/fields/text-area-ia/text-area-ia-field.component.js +3 -3
  17. package/esm2015/components/kanban/components/kanban-column/kanban-column.component.js +82 -0
  18. package/esm2015/components/kanban/components/kanban-item/kanban-item.component.js +44 -0
  19. package/esm2015/components/kanban/components/kanban-item-dragging/kanban-item-dragging.component.js +19 -0
  20. package/esm2015/components/kanban/index.js +5 -0
  21. package/esm2015/components/kanban/kanban-event.service.js +27 -0
  22. package/esm2015/components/kanban/kanban.component.js +209 -0
  23. package/esm2015/components/kanban/kanban.module.js +45 -0
  24. package/esm2015/components/kanban/models/index.js +2 -0
  25. package/esm2015/components/kanban/models/kanban-data.js +1 -0
  26. package/esm2015/components/kanban/models/kanban-template-types.js +9 -0
  27. package/esm2015/components/kanban/template.directive.js +20 -0
  28. package/esm2015/components/progressbar/components/progressbar-determinate/progressbar-determinate.component.js +1 -1
  29. package/esm2015/locale/fallback.js +3 -1
  30. package/esm2015/public-api.js +2 -1
  31. package/esm2015/seniorsistemas-angular-components.js +5 -1
  32. package/esm5/components/dynamic-form/components/fields/text-area-ia/text-area-ia-field.component.js +3 -3
  33. package/esm5/components/kanban/components/kanban-column/kanban-column.component.js +84 -0
  34. package/esm5/components/kanban/components/kanban-item/kanban-item.component.js +45 -0
  35. package/esm5/components/kanban/components/kanban-item-dragging/kanban-item-dragging.component.js +20 -0
  36. package/esm5/components/kanban/index.js +5 -0
  37. package/esm5/components/kanban/kanban-event.service.js +28 -0
  38. package/esm5/components/kanban/kanban.component.js +213 -0
  39. package/esm5/components/kanban/kanban.module.js +48 -0
  40. package/esm5/components/kanban/models/index.js +2 -0
  41. package/esm5/components/kanban/models/kanban-data.js +1 -0
  42. package/esm5/components/kanban/models/kanban-template-types.js +9 -0
  43. package/esm5/components/kanban/template.directive.js +21 -0
  44. package/esm5/components/progressbar/components/progressbar-determinate/progressbar-determinate.component.js +1 -1
  45. package/esm5/locale/fallback.js +3 -1
  46. package/esm5/public-api.js +2 -1
  47. package/esm5/seniorsistemas-angular-components.js +5 -1
  48. package/fesm2015/seniorsistemas-angular-components.js +417 -4
  49. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  50. package/fesm5/seniorsistemas-angular-components.js +430 -4
  51. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  52. package/package.json +1 -1
  53. package/public-api.d.ts +1 -0
  54. package/seniorsistemas-angular-components.d.ts +4 -0
  55. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/forms'), require('@angular/router'), require('primeng/breadcrumb'), require('primeng/tieredmenu'), require('primeng/tooltip'), require('primeng/dom'), require('primeng/calendar'), require('@ngx-translate/core'), require('ngx-mask'), require('@angular/common/http'), require('angular2-hotkeys'), require('bignumber.js'), require('primeng/autocomplete'), require('primeng/dialog'), require('primeng/table'), require('@seniorsistemas/ng2-currency-mask'), require('@seniorsistemas/senior-platform-data'), require('moment'), require('ngx-cookie-service'), require('ng2-currency-mask'), require('primeng/button'), require('primeng/checkbox'), require('primeng/chips'), require('primeng/dropdown'), require('primeng/fieldset'), require('primeng/inputmask'), require('primeng/inputtext'), require('primeng/inputtextarea'), require('primeng/keyfilter'), require('primeng/multiselect'), require('primeng/panel'), require('primeng/radiobutton'), require('primeng/slider'), require('primeng/api'), require('primeng/progressbar'), require('@angular/platform-browser'), require('@angular/cdk/clipboard'), require('cropperjs'), require('element-resize-detector'), require('@angular/cdk/a11y'), require('primeng/scrollpanel'), require('primeng/sidebar'), require('primeng/confirmdialog'), require('@codemirror/view'), require('@codemirror/state'), require('@codemirror/lint'), require('@codemirror/language'), require('@lezer/generator'), require('@codemirror/highlight'), require('@codemirror/autocomplete'), require('@codemirror/tooltip'), require('@codemirror/gutter')) :
3
- typeof define === 'function' && define.amd ? define('@seniorsistemas/angular-components', ['exports', '@angular/core', '@angular/animations', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/forms', '@angular/router', 'primeng/breadcrumb', 'primeng/tieredmenu', 'primeng/tooltip', 'primeng/dom', 'primeng/calendar', '@ngx-translate/core', 'ngx-mask', '@angular/common/http', 'angular2-hotkeys', 'bignumber.js', 'primeng/autocomplete', 'primeng/dialog', 'primeng/table', '@seniorsistemas/ng2-currency-mask', '@seniorsistemas/senior-platform-data', 'moment', 'ngx-cookie-service', 'ng2-currency-mask', 'primeng/button', 'primeng/checkbox', 'primeng/chips', 'primeng/dropdown', 'primeng/fieldset', 'primeng/inputmask', 'primeng/inputtext', 'primeng/inputtextarea', 'primeng/keyfilter', 'primeng/multiselect', 'primeng/panel', 'primeng/radiobutton', 'primeng/slider', 'primeng/api', 'primeng/progressbar', '@angular/platform-browser', '@angular/cdk/clipboard', 'cropperjs', 'element-resize-detector', '@angular/cdk/a11y', 'primeng/scrollpanel', 'primeng/sidebar', 'primeng/confirmdialog', '@codemirror/view', '@codemirror/state', '@codemirror/lint', '@codemirror/language', '@lezer/generator', '@codemirror/highlight', '@codemirror/autocomplete', '@codemirror/tooltip', '@codemirror/gutter'], factory) :
4
- (global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['angular-components'] = {}), global.ng.core, global.ng.animations, global.rxjs, global.rxjs.operators, global.ng.common, global.ng.forms, global.ng.router, global.breadcrumb, global.tieredmenu, global.tooltip, global.dom, global.calendar, global.core$1, global.ngxMask, global.ng.common.http, global.angular2Hotkeys, global.BigNumber, global.autocomplete$1, global.dialog, global.table, global.ng2CurrencyMask, global.seniorPlatformData, global.moment_, global.ngxCookieService, global.ng2CurrencyMask$1, global.button, global.checkbox, global.chips, global.dropdown, global.fieldset, global.inputmask, global.inputtext, global.inputtextarea, global.keyfilter, global.multiselect, global.panel, global.radiobutton, global.slider, global.api, global.progressbar, global.ng.platformBrowser, global.ng.cdk.clipboard, global.Cropper, global.elementResizeDetectorMaker_, global.ng.cdk.a11y, global.scrollpanel, global.sidebar, global.confirmdialog, global.view, global.state, global.lint, global.language, global.generator, global.highlight, global.autocomplete$2, global.tooltip$1, global.gutter));
5
- }(this, (function (exports, core, animations, rxjs, operators, common, forms, router, breadcrumb, tieredmenu, tooltip, dom, calendar, core$1, ngxMask, http, angular2Hotkeys, BigNumber, autocomplete$1, dialog, table, ng2CurrencyMask, seniorPlatformData, moment_, ngxCookieService, ng2CurrencyMask$1, button, checkbox, chips, dropdown, fieldset, inputmask, inputtext, inputtextarea, keyfilter, multiselect, panel, radiobutton, slider, api, progressbar, platformBrowser, clipboard, Cropper, elementResizeDetectorMaker_, a11y, scrollpanel, sidebar, confirmdialog, view, state, lint, language, generator, highlight, autocomplete$2, tooltip$1, gutter) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/forms'), require('@angular/router'), require('primeng/breadcrumb'), require('primeng/tieredmenu'), require('primeng/tooltip'), require('primeng/dom'), require('primeng/calendar'), require('@ngx-translate/core'), require('ngx-mask'), require('@angular/common/http'), require('angular2-hotkeys'), require('bignumber.js'), require('primeng/autocomplete'), require('primeng/dialog'), require('primeng/table'), require('@seniorsistemas/ng2-currency-mask'), require('@seniorsistemas/senior-platform-data'), require('moment'), require('ngx-cookie-service'), require('ng2-currency-mask'), require('primeng/button'), require('primeng/checkbox'), require('primeng/chips'), require('primeng/dropdown'), require('primeng/fieldset'), require('primeng/inputmask'), require('primeng/inputtext'), require('primeng/inputtextarea'), require('primeng/keyfilter'), require('primeng/multiselect'), require('primeng/panel'), require('primeng/radiobutton'), require('primeng/slider'), require('primeng/api'), require('primeng/progressbar'), require('@angular/platform-browser'), require('@angular/cdk/clipboard'), require('cropperjs'), require('element-resize-detector'), require('@angular/cdk/a11y'), require('primeng/scrollpanel'), require('primeng/sidebar'), require('primeng/confirmdialog'), require('@codemirror/view'), require('@codemirror/state'), require('@codemirror/lint'), require('@codemirror/language'), require('@lezer/generator'), require('@codemirror/highlight'), require('@codemirror/autocomplete'), require('@codemirror/tooltip'), require('@codemirror/gutter'), require('@angular/cdk/drag-drop')) :
3
+ typeof define === 'function' && define.amd ? define('@seniorsistemas/angular-components', ['exports', '@angular/core', '@angular/animations', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/forms', '@angular/router', 'primeng/breadcrumb', 'primeng/tieredmenu', 'primeng/tooltip', 'primeng/dom', 'primeng/calendar', '@ngx-translate/core', 'ngx-mask', '@angular/common/http', 'angular2-hotkeys', 'bignumber.js', 'primeng/autocomplete', 'primeng/dialog', 'primeng/table', '@seniorsistemas/ng2-currency-mask', '@seniorsistemas/senior-platform-data', 'moment', 'ngx-cookie-service', 'ng2-currency-mask', 'primeng/button', 'primeng/checkbox', 'primeng/chips', 'primeng/dropdown', 'primeng/fieldset', 'primeng/inputmask', 'primeng/inputtext', 'primeng/inputtextarea', 'primeng/keyfilter', 'primeng/multiselect', 'primeng/panel', 'primeng/radiobutton', 'primeng/slider', 'primeng/api', 'primeng/progressbar', '@angular/platform-browser', '@angular/cdk/clipboard', 'cropperjs', 'element-resize-detector', '@angular/cdk/a11y', 'primeng/scrollpanel', 'primeng/sidebar', 'primeng/confirmdialog', '@codemirror/view', '@codemirror/state', '@codemirror/lint', '@codemirror/language', '@lezer/generator', '@codemirror/highlight', '@codemirror/autocomplete', '@codemirror/tooltip', '@codemirror/gutter', '@angular/cdk/drag-drop'], factory) :
4
+ (global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['angular-components'] = {}), global.ng.core, global.ng.animations, global.rxjs, global.rxjs.operators, global.ng.common, global.ng.forms, global.ng.router, global.breadcrumb, global.tieredmenu, global.tooltip, global.dom, global.calendar, global.core$1, global.ngxMask, global.ng.common.http, global.angular2Hotkeys, global.BigNumber, global.autocomplete$1, global.dialog, global.table, global.ng2CurrencyMask, global.seniorPlatformData, global.moment_, global.ngxCookieService, global.ng2CurrencyMask$1, global.button, global.checkbox, global.chips, global.dropdown, global.fieldset, global.inputmask, global.inputtext, global.inputtextarea, global.keyfilter, global.multiselect, global.panel, global.radiobutton, global.slider, global.api, global.progressbar, global.ng.platformBrowser, global.ng.cdk.clipboard, global.Cropper, global.elementResizeDetectorMaker_, global.ng.cdk.a11y, global.scrollpanel, global.sidebar, global.confirmdialog, global.view, global.state, global.lint, global.language, global.generator, global.highlight, global.autocomplete$2, global.tooltip$1, global.gutter, global.ng.cdk['drag-drop']));
5
+ }(this, (function (exports, core, animations, rxjs, operators, common, forms, router, breadcrumb, tieredmenu, tooltip, dom, calendar, core$1, ngxMask, http, angular2Hotkeys, BigNumber, autocomplete$1, dialog, table, ng2CurrencyMask, seniorPlatformData, moment_, ngxCookieService, ng2CurrencyMask$1, button, checkbox, chips, dropdown, fieldset, inputmask, inputtext, inputtextarea, keyfilter, multiselect, panel, radiobutton, slider, api, progressbar, platformBrowser, clipboard, Cropper, elementResizeDetectorMaker_, a11y, scrollpanel, sidebar, confirmdialog, view, state, lint, language, generator, highlight, autocomplete$2, tooltip$1, gutter, dragDrop) { 'use strict';
6
6
 
7
7
  var BigNumber__default = 'default' in BigNumber ? BigNumber['default'] : BigNumber;
8
8
  Cropper = Cropper && Cropper.hasOwnProperty('default') ? Cropper['default'] : Cropper;
@@ -7927,7 +7927,7 @@
7927
7927
  this.fields = [
7928
7928
  new FormField({
7929
7929
  name: "context",
7930
- type: exports.FieldType.String,
7930
+ type: exports.FieldType.Text,
7931
7931
  label: this._translateService.instant("platform.angular_components.context"),
7932
7932
  size: { sm: 12, md: 12, lg: 12, xl: 12 },
7933
7933
  }),
@@ -7951,7 +7951,7 @@
7951
7951
  ], TextAreaIAFieldComponent.prototype, "formControl", void 0);
7952
7952
  TextAreaIAFieldComponent = __decorate([
7953
7953
  core.Component({
7954
- 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 {{ 'platform.angular_components.iassist_text_generator' | translate }}\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]=\"(field.id || field.name)\"\n pInputTextarea\n [rows]=\"field.rows\"\n [cols]=\"field.cols\"\n [formControl]=\"formControl\"\n style=\"resize: vertical;\"\n [ngStyle]=\"field.style\">\n </textarea>\n <button\n class=\"iassist-button\"\n (click)=\"showDialog()\"\n [sTooltip]=\"'platform.angular_components.iassist_text_generator' | translate\">\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>",
7954
+ 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]=\"(field.id || field.name)\"\n pInputTextarea\n [rows]=\"field.rows\"\n [cols]=\"field.cols\"\n [formControl]=\"formControl\"\n style=\"resize: vertical;\"\n [ngStyle]=\"field.style\">\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>",
7955
7955
  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}.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}"]
7956
7956
  })
7957
7957
  ], TextAreaIAFieldComponent);
@@ -15639,7 +15639,7 @@
15639
15639
  core.Component({
15640
15640
  selector: "s-progressbar-determinate",
15641
15641
  template: "<div class=\"progressbar-determinate\">\n <div class=\"progressbar-container\">\n <div\n class=\"progressbar-active\"\n [ngClass]=\"{\n 'progressbar-active--blue' : activeColor === 'blue',\n 'progressbar-active--green': activeColor === 'green',\n 'progressbar-active--red': activeColor === 'red',\n 'progressbar-active--yellow': activeColor === 'yellow'\n }\"\n [ngStyle]=\"{ 'width': value + '%' }\">\n {{ showValue && value ? value + '%' : '' }}\n </div>\n </div>\n <div\n *ngIf=\"targetValue\"\n class=\"target\"\n [ngStyle]=\"{\n 'left': targetValue <= 50 ? targetValue + '%' : 'unset',\n 'right': targetValue > 50 ? 100 - targetValue + '%' : 'unset',\n 'align-items': targetValue > 50 ? 'flex-end' : 'flex-start'\n }\">\n <span class=\"target-line\"></span>\n <span class=\"target-label\">\n {{ targetLabel || value + '%' }}\n </span>\n </div>\n </div>\n ",
15642
- styles: [".progressbar-determinate{position:relative}.progressbar-determinate .progressbar-container{background-color:#d8d8d8;border-radius:4px;height:24px;overflow:hidden;width:100%}.progressbar-determinate .progressbar-container .progressbar-active{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;font-family:\"Open Sans\",sans-serif;font-size:14px;height:100%;-ms-flex-pack:center;justify-content:center;line-height:150%;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:80%}.progressbar-determinate .progressbar-container .progressbar-active--blue{background-color:#428bca}.progressbar-determinate .progressbar-container .progressbar-active--green{background-color:#0c9348}.progressbar-determinate .progressbar-container .progressbar-active--red{background-color:#c13018}.progressbar-determinate .progressbar-container .progressbar-active--yellow{background-color:#fcbf10}.progressbar-determinate .target{-ms-flex-align:start;align-items:flex-start;bottom:-38px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute}.progressbar-determinate .target .target-line{background-color:#333;height:40px;margin:8px 0;width:1px}.progressbar-determinate .target .target-label{background-color:#426e78;border-radius:10px;color:#e5eaea;font-family:\"Open Sans\",sans-serif;font-size:12px;line-height:150%;padding:2px 12px}"]
15642
+ styles: [".progressbar-determinate{position:relative}.progressbar-determinate .progressbar-container{background-color:#d8d8d8;border-radius:4px;height:24px;overflow:hidden;width:100%}.progressbar-determinate .progressbar-container .progressbar-active{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;font-family:\"Open Sans\",sans-serif;font-size:14px;height:100%;-ms-flex-pack:center;justify-content:center;line-height:150%;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:80%}.progressbar-determinate .progressbar-container .progressbar-active--blue{background-color:#428bca}.progressbar-determinate .progressbar-container .progressbar-active--green{background-color:#0c9348}.progressbar-determinate .progressbar-container .progressbar-active--red{background-color:#c13018}.progressbar-determinate .progressbar-container .progressbar-active--yellow{background-color:#fcbf10;color:#212533}.progressbar-determinate .target{-ms-flex-align:start;align-items:flex-start;bottom:-38px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute}.progressbar-determinate .target .target-line{background-color:#333;height:40px;margin:8px 0;width:1px}.progressbar-determinate .target .target-label{background-color:#426e78;border-radius:10px;color:#e5eaea;font-family:\"Open Sans\",sans-serif;font-size:12px;line-height:150%;padding:2px 12px}"]
15643
15643
  })
15644
15644
  ], ProgressBarDeterminateComponent);
15645
15645
  return ProgressBarDeterminateComponent;
@@ -15898,6 +15898,8 @@
15898
15898
  }());
15899
15899
 
15900
15900
  var fallback = {
15901
+ "platform.angular_components.count_items_in_target": "{{ count }} itens em {{ target }}",
15902
+ "platform.angular_components.count_items_selected": "{{ count }} itens selecionados",
15901
15903
  "platform.angular_components.january": "Janeiro",
15902
15904
  "platform.angular_components.february": "Fevereiro",
15903
15905
  "platform.angular_components.march": "Março",
@@ -16194,6 +16196,429 @@
16194
16196
  "platform.angular_components.date_modified_custom_blob": "Enviado às {{hour}}:{{minutes}} de {{day}}/{{month}}/{{fullYear}}"
16195
16197
  };
16196
16198
 
16199
+
16200
+ (function (KanbanTemplateTypes) {
16201
+ KanbanTemplateTypes["ColumnHeader"] = "column-header";
16202
+ KanbanTemplateTypes["ColumnEmptyMessage"] = "column-empty-message";
16203
+ KanbanTemplateTypes["ItemHeader"] = "item-header";
16204
+ KanbanTemplateTypes["ItemBody"] = "item-body";
16205
+ KanbanTemplateTypes["ItemFooter"] = "item-footer";
16206
+ })(exports.KanbanTemplateTypes || (exports.KanbanTemplateTypes = {}));
16207
+
16208
+ var TemplateDirective = /** @class */ (function () {
16209
+ function TemplateDirective(template) {
16210
+ this.template = template;
16211
+ }
16212
+ TemplateDirective.ctorParameters = function () { return [
16213
+ { type: core.TemplateRef }
16214
+ ]; };
16215
+ __decorate([
16216
+ core.Input("sTemplate")
16217
+ ], TemplateDirective.prototype, "type", void 0);
16218
+ TemplateDirective = __decorate([
16219
+ core.Directive({
16220
+ selector: "[sTemplate]",
16221
+ })
16222
+ ], TemplateDirective);
16223
+ return TemplateDirective;
16224
+ }());
16225
+
16226
+ var KanbanEventService = /** @class */ (function () {
16227
+ function KanbanEventService() {
16228
+ this.selectAllColumnItemsEvent = new core.EventEmitter();
16229
+ this.unselectAllColumnItemsEvent = new core.EventEmitter();
16230
+ this.selectItemEvent = new core.EventEmitter();
16231
+ this.unselectItemEvent = new core.EventEmitter();
16232
+ }
16233
+ KanbanEventService.prototype.emitSelectAllColumnItemsEvent = function (column) {
16234
+ this.selectAllColumnItemsEvent.emit(column);
16235
+ };
16236
+ KanbanEventService.prototype.emitUnselectAllColumnItemsEvent = function (column) {
16237
+ this.unselectAllColumnItemsEvent.emit(column);
16238
+ };
16239
+ KanbanEventService.prototype.emitSelectItemEvent = function (item) {
16240
+ this.selectItemEvent.emit(item);
16241
+ };
16242
+ KanbanEventService.prototype.emitUnselectItemEvent = function (item) {
16243
+ this.unselectItemEvent.emit(item);
16244
+ };
16245
+ KanbanEventService = __decorate([
16246
+ core.Injectable()
16247
+ ], KanbanEventService);
16248
+ return KanbanEventService;
16249
+ }());
16250
+
16251
+ var KanbanComponent = /** @class */ (function () {
16252
+ function KanbanComponent(kanbanEventService) {
16253
+ this.kanbanEventService = kanbanEventService;
16254
+ this.itemsMoved = new core.EventEmitter();
16255
+ this.dataUpdated = new core.EventEmitter();
16256
+ this.itemsSelected = new core.EventEmitter();
16257
+ this.selectedItems = new Set();
16258
+ this.draggingItems = new Set();
16259
+ this._unsubscribe$ = new rxjs.Subject();
16260
+ }
16261
+ KanbanComponent.prototype.ngOnInit = function () {
16262
+ this._subscribeEvents();
16263
+ this._normalizeData();
16264
+ this._validateInputs();
16265
+ };
16266
+ KanbanComponent.prototype.ngAfterContentInit = function () {
16267
+ this._getTemplates();
16268
+ };
16269
+ KanbanComponent.prototype.ngOnDestroy = function () {
16270
+ this._unsubscribe$.next();
16271
+ this._unsubscribe$.complete();
16272
+ };
16273
+ KanbanComponent.prototype.drop = function (event) {
16274
+ var _this = this;
16275
+ var _a;
16276
+ var previousColumn = this.data.columns.find(function (column) { return column.id === event.previousContainer.id; });
16277
+ var targetColumn = this.data.columns.find(function (column) { return column.id === event.container.id; });
16278
+ if (!previousColumn || !targetColumn) {
16279
+ throw new Error("Unable to obtain information about columns when performing drag and drop");
16280
+ }
16281
+ if (event.previousContainer === event.container) {
16282
+ dragDrop.moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);
16283
+ }
16284
+ else {
16285
+ dragDrop.transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);
16286
+ }
16287
+ this.selectedItems.forEach(function (item) {
16288
+ var previousIndex = event.previousContainer.data.indexOf(item);
16289
+ if (previousIndex !== -1 && item !== event.item.data) {
16290
+ if (event.previousContainer === event.container) {
16291
+ dragDrop.moveItemInArray(event.container.data, previousIndex, event.currentIndex);
16292
+ }
16293
+ else {
16294
+ dragDrop.transferArrayItem(event.previousContainer.data, event.container.data, previousIndex, event.currentIndex);
16295
+ }
16296
+ }
16297
+ });
16298
+ this.selectedItems.add(event.item.data);
16299
+ this.itemsMoved.emit({
16300
+ items: __spread(this.selectedItems),
16301
+ previousColumn: previousColumn,
16302
+ targetColumn: targetColumn,
16303
+ });
16304
+ if ((_a = this.dataUpdated.observers) === null || _a === void 0 ? void 0 : _a.length) {
16305
+ this.dataUpdated.emit(__assign({}, this.data));
16306
+ }
16307
+ this.data.columns.forEach(function (column) {
16308
+ _this.kanbanEventService.emitUnselectAllColumnItemsEvent(column);
16309
+ });
16310
+ this.selectedItems.clear();
16311
+ };
16312
+ KanbanComponent.prototype.selectItem = function (event, item, column) {
16313
+ if (event.ctrlKey) {
16314
+ if (this.selectedItems.delete(item)) {
16315
+ this.kanbanEventService.emitUnselectItemEvent(item);
16316
+ }
16317
+ else {
16318
+ if (this.selectedColumn && !this.selectedColumn.items.includes(item)) {
16319
+ this.selectedItems.clear();
16320
+ }
16321
+ this.selectedItems.add(item);
16322
+ this.selectedColumn = column;
16323
+ this.kanbanEventService.emitSelectItemEvent(item);
16324
+ }
16325
+ }
16326
+ else {
16327
+ this.selectedItems.clear();
16328
+ this.selectedItems.add(item);
16329
+ this.selectedColumn = column;
16330
+ this.kanbanEventService.emitSelectItemEvent(item);
16331
+ }
16332
+ };
16333
+ KanbanComponent.prototype.dragStarted = function () {
16334
+ var _this = this;
16335
+ this.selectedItems.forEach(function (item) {
16336
+ _this.draggingItems.add(item);
16337
+ });
16338
+ };
16339
+ KanbanComponent.prototype.dragReleased = function () {
16340
+ this.draggingItems.clear();
16341
+ };
16342
+ KanbanComponent.prototype.getLinkedColumns = function (currentColumn) {
16343
+ return this.data.columns
16344
+ .filter(function (column) { return column != currentColumn; })
16345
+ .map(function (column) { return column.id; });
16346
+ };
16347
+ KanbanComponent.prototype.getColumnHeaderTemplate = function () {
16348
+ return this._getCustomTemplate(exports.KanbanTemplateTypes.ColumnHeader);
16349
+ };
16350
+ KanbanComponent.prototype.getColumnEmptyMessageTemplate = function () {
16351
+ return this._getCustomTemplate(exports.KanbanTemplateTypes.ColumnEmptyMessage);
16352
+ };
16353
+ KanbanComponent.prototype.getItemHeaderTemplate = function () {
16354
+ return this._getCustomTemplate(exports.KanbanTemplateTypes.ItemHeader);
16355
+ };
16356
+ KanbanComponent.prototype.getItemBodyTemplate = function () {
16357
+ return this._getCustomTemplate(exports.KanbanTemplateTypes.ItemBody);
16358
+ };
16359
+ KanbanComponent.prototype.getItemFooterTemplate = function () {
16360
+ return this._getCustomTemplate(exports.KanbanTemplateTypes.ItemFooter);
16361
+ };
16362
+ KanbanComponent.prototype._getCustomTemplate = function (type) {
16363
+ var _a;
16364
+ return (_a = this.templates.find(function (template) { return template.type === type; })) === null || _a === void 0 ? void 0 : _a.template;
16365
+ };
16366
+ KanbanComponent.prototype._subscribeEvents = function () {
16367
+ var _this = this;
16368
+ this.kanbanEventService.selectAllColumnItemsEvent
16369
+ .pipe(operators.takeUntil(this._unsubscribe$))
16370
+ .subscribe(function (column) {
16371
+ column.items
16372
+ .filter(function (item) { return !item.disabled; })
16373
+ .forEach(function (item) {
16374
+ _this.selectedItems.add(item);
16375
+ });
16376
+ _this.selectedColumn = column;
16377
+ _this.itemsSelected.emit(__spread(_this.selectedItems));
16378
+ });
16379
+ this.kanbanEventService.unselectAllColumnItemsEvent
16380
+ .pipe(operators.takeUntil(this._unsubscribe$))
16381
+ .subscribe(function (_) {
16382
+ _this.selectedItems.clear();
16383
+ });
16384
+ this.kanbanEventService.selectItemEvent
16385
+ .pipe(operators.takeUntil(this._unsubscribe$))
16386
+ .subscribe(function (item) {
16387
+ if (_this.selectedColumn && !_this.selectedColumn.items.includes(item)) {
16388
+ _this.selectedItems.clear();
16389
+ }
16390
+ _this.selectedItems.add(item);
16391
+ _this.itemsSelected.emit(__spread(_this.selectedItems));
16392
+ // Finding the item column and setting selectedColumn.
16393
+ _this.data.columns.forEach(function (column) {
16394
+ column.items.forEach(function (currentItem) {
16395
+ if (currentItem === item) {
16396
+ _this.selectedColumn = column;
16397
+ return;
16398
+ }
16399
+ });
16400
+ });
16401
+ });
16402
+ this.kanbanEventService.unselectItemEvent
16403
+ .pipe(operators.takeUntil(this._unsubscribe$))
16404
+ .subscribe(function (item) {
16405
+ _this.selectedItems.delete(item);
16406
+ });
16407
+ };
16408
+ KanbanComponent.prototype._normalizeData = function () {
16409
+ this.data.columns.forEach(function (column) {
16410
+ column.id = column.id || "id-" + Math.random().toString(36).substring(2, 9) + "-" + Date.now().toString(36);
16411
+ });
16412
+ };
16413
+ KanbanComponent.prototype._validateInputs = function () {
16414
+ var columns = this.data.columns;
16415
+ var columnIds = this.data.columns.map(function (column) { return column.id; });
16416
+ if (new Set(columnIds).size !== columns.length) {
16417
+ throw new Error("Repeated IDs are not accepted.");
16418
+ }
16419
+ };
16420
+ KanbanComponent.prototype._getTemplates = function () {
16421
+ this.columnHeaderTemplate = this.getColumnHeaderTemplate();
16422
+ this.columnEmptyMessageTemplate = this.getColumnEmptyMessageTemplate();
16423
+ this.itemHeaderTemplate = this.getItemHeaderTemplate();
16424
+ this.itemBodyTemplate = this.getItemBodyTemplate();
16425
+ this.itemFooterTemplate = this.getItemFooterTemplate();
16426
+ };
16427
+ KanbanComponent.ctorParameters = function () { return [
16428
+ { type: KanbanEventService }
16429
+ ]; };
16430
+ __decorate([
16431
+ core.Input()
16432
+ ], KanbanComponent.prototype, "data", void 0);
16433
+ __decorate([
16434
+ core.Output()
16435
+ ], KanbanComponent.prototype, "itemsMoved", void 0);
16436
+ __decorate([
16437
+ core.Output()
16438
+ ], KanbanComponent.prototype, "dataUpdated", void 0);
16439
+ __decorate([
16440
+ core.Output()
16441
+ ], KanbanComponent.prototype, "itemsSelected", void 0);
16442
+ __decorate([
16443
+ core.ContentChildren(TemplateDirective)
16444
+ ], KanbanComponent.prototype, "templates", void 0);
16445
+ KanbanComponent = __decorate([
16446
+ core.Component({
16447
+ selector: 's-kanban',
16448
+ template: "<div class=\"kanban\">\n <s-kanban-column\n *ngFor=\"let column of data.columns\"\n [data]=\"column\"\n [headerTemplate]=\"columnHeaderTemplate\">\n <div\n [id]=\"column.id\"\n style=\"height: 100%; width: 100%;\"\n cdkDropList\n #dynamicList=\"cdkDropList\"\n [cdkDropListData]=\"column.items\"\n [cdkDropListConnectedTo]=\"getLinkedColumns(column)\"\n (cdkDropListDropped)=\"drop($event)\">\n\n <ng-container *ngIf=\"!columnEmptyMessageTemplate; then defaultEmptyMessageTemplate else customEmptyMessageTemplate\"></ng-container>\n\n <ng-template #defaultEmptyMessageTemplate>\n <div *ngIf=\"!column.items.length\" class=\"empty-message\">\n <p class=\"text\">\n <span class=\"fas fa-clock\"></span>&nbsp;\n <span>{{ \"platform.angular_components.count_items_in_target\" | translate:{ count: column.items.length, target: column.title } }}</span>\n </p>\n </div>\n </ng-template>\n\n <ng-template #customEmptyMessageTemplate>\n <ng-container *ngTemplateOutlet=\"columnEmptyMessageTemplate; context: { $implicit: column }\"></ng-container>\n </ng-template>\n\n <div\n *ngFor=\"let item of column.items\"\n cdkDrag\n [cdkDragData]=\"item\"\n [cdkDragDisabled]=\"item.disabled\"\n (cdkDragStarted)=\"dragStarted()\"\n (cdkDragReleased)=\"dragReleased()\"\n (click)=\"selectItem($event, item, column)\">\n \n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n\n <ng-container *cdkDragPreview>\n <ng-container *ngIf=\"selectedItems.size > 1; then itemDraggingTemplate else itemTemplate\"></ng-container>\n </ng-container>\n\n <ng-template #itemTemplate>\n <s-kanban-item\n [item]=\"item\"\n [selected]=\"selectedItems.has(item)\"\n [headerTemplate]=\"itemHeaderTemplate\"\n [bodyTemplate]=\"itemBodyTemplate\"\n [footerTemplate]=\"itemFooterTemplate\">\n </s-kanban-item>\n </ng-template>\n\n <ng-template #itemDraggingTemplate>\n <s-kanban-item-dragging [quantityItems]=\"selectedItems.size\"></s-kanban-item-dragging>\n </ng-template>\n\n <div *cdkDragPlaceholder>\n <div class=\"placeholder\">\n <div class=\"placeholder-line\"></div>\n </div>\n </div>\n </div>\n </div>\n </s-kanban-column>\n</div>\n\n",
16449
+ styles: [".kanban{display:-ms-flexbox;display:flex;gap:16px;width:100%}.kanban .empty-message{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:16px}.kanban .empty-message .text{overflow:hidden;text-align:center;text-overflow:ellipsis;width:100%;white-space:nowrap}@media screen and (max-width:600px){.kanban{-ms-flex-direction:column;flex-direction:column}}s-kanban-column{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;min-width:292px}.placeholder{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.placeholder .placeholder-line{background-color:#a5a5b2;height:1px;margin:6px 0;width:50%}"]
16450
+ })
16451
+ ], KanbanComponent);
16452
+ return KanbanComponent;
16453
+ }());
16454
+
16455
+ var KanbanItemComponent = /** @class */ (function () {
16456
+ function KanbanItemComponent(_kanbanEventService) {
16457
+ this._kanbanEventService = _kanbanEventService;
16458
+ this.selected = false;
16459
+ }
16460
+ KanbanItemComponent.prototype.onSelectedChange = function (value) {
16461
+ if (value) {
16462
+ this._kanbanEventService.emitSelectItemEvent(this.item);
16463
+ }
16464
+ else {
16465
+ this._kanbanEventService.emitUnselectItemEvent(this.item);
16466
+ }
16467
+ };
16468
+ KanbanItemComponent.ctorParameters = function () { return [
16469
+ { type: KanbanEventService }
16470
+ ]; };
16471
+ __decorate([
16472
+ core.Input()
16473
+ ], KanbanItemComponent.prototype, "item", void 0);
16474
+ __decorate([
16475
+ core.Input()
16476
+ ], KanbanItemComponent.prototype, "selected", void 0);
16477
+ __decorate([
16478
+ core.Input()
16479
+ ], KanbanItemComponent.prototype, "headerTemplate", void 0);
16480
+ __decorate([
16481
+ core.Input()
16482
+ ], KanbanItemComponent.prototype, "bodyTemplate", void 0);
16483
+ __decorate([
16484
+ core.Input()
16485
+ ], KanbanItemComponent.prototype, "footerTemplate", void 0);
16486
+ KanbanItemComponent = __decorate([
16487
+ core.Component({
16488
+ selector: 's-kanban-item',
16489
+ template: "<p-tieredMenu\n #optionsMenu\n [popup]=\"true\"\n appendTo=\"body\"\n [baseZIndex]=\"9999\"\n [model]=\"item.options\">\n</p-tieredMenu>\n\n<div\n class=\"kanban-item\"\n [ngClass]=\"{\n 'kanban-item--selected': selected && !item.disabled,\n 'kanban-item--disabled': item.disabled\n }\">\n <div class=\"kanban-item__header\">\n <div class=\"content\">\n <form>\n <input\n *ngIf=\"!item.disabled\"\n type=\"checkbox\"\n name=\"checkbox\"\n [(ngModel)]=\"selected\"\n (ngModelChange)=\"onSelectedChange($event)\"\n (click)=\"$event.stopPropagation()\">\n </form>\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: item }\"></ng-container>\n </div>\n <button\n *ngIf=\"item.options && !item.disabled\"\n class=\"options-button\"\n (click)=\"optionsMenu.toggle($event); $event.stopPropagation();\">\n <i class=\"fas fa-ellipsis-v\"></i>\n </button>\n </div>\n <div class=\"kanban-item__body\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: { $implicit: item }\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"kanban-item__footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate; context: { $implicit: item }\"></ng-container> \n </div>\n</div>",
16490
+ styles: [".kanban-item{background-color:#fff;border-radius:4px;box-shadow:0 1px 5px 0 rgba(0,0,0,.25);cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:16px;min-width:260px;padding:16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.kanban-item .kanban-item__header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__header .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-item .kanban-item__header .options-button{background-color:transparent;border:none;cursor:pointer;margin-right:-8px;padding:0 8px}.kanban-item .kanban-item__body{margin:16px 0}.kanban-item .kanban-item__footer{border-top:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__footer .date-info{-ms-flex-align:center;align-items:center;color:#6e7280;display:-ms-flexbox;display:flex;font-family:\"Open Sans\" sans-serif;font-size:12px;gap:4px;line-height:150%}.kanban-item--selected{border:1px solid #428bca}.kanban-item--disabled{opacity:50%}"]
16491
+ })
16492
+ ], KanbanItemComponent);
16493
+ return KanbanItemComponent;
16494
+ }());
16495
+
16496
+ var KanbanColumnComponent = /** @class */ (function () {
16497
+ function KanbanColumnComponent(kanbanEventService) {
16498
+ this.kanbanEventService = kanbanEventService;
16499
+ this.selectionControl = new forms.FormControl(false);
16500
+ this._unsubscribe$ = new rxjs.Subject();
16501
+ }
16502
+ KanbanColumnComponent.prototype.ngOnInit = function () {
16503
+ this._validateInputs();
16504
+ this._subscriveEvents();
16505
+ };
16506
+ KanbanColumnComponent.prototype.ngOnDestroy = function () {
16507
+ this._unsubscribe$.next();
16508
+ this._unsubscribe$.complete();
16509
+ };
16510
+ KanbanColumnComponent.prototype._subscriveEvents = function () {
16511
+ var _this = this;
16512
+ this.selectionControl.valueChanges
16513
+ .pipe(operators.takeUntil(this._unsubscribe$))
16514
+ .subscribe(function (value) {
16515
+ if (value) {
16516
+ _this.kanbanEventService.emitSelectAllColumnItemsEvent(_this.data);
16517
+ }
16518
+ else {
16519
+ _this.kanbanEventService.emitUnselectAllColumnItemsEvent(_this.data);
16520
+ }
16521
+ });
16522
+ this.kanbanEventService.unselectItemEvent
16523
+ .pipe(operators.takeUntil(this._unsubscribe$))
16524
+ .subscribe(function (_) {
16525
+ _this.selectionControl.setValue(false, { emitEvent: false });
16526
+ });
16527
+ this.kanbanEventService.selectItemEvent
16528
+ .pipe(operators.takeUntil(this._unsubscribe$))
16529
+ .subscribe(function (item) {
16530
+ if (!_this.data.items.includes(item)) {
16531
+ _this.selectionControl.setValue(false, { emitEvent: false });
16532
+ }
16533
+ });
16534
+ this.kanbanEventService.selectAllColumnItemsEvent
16535
+ .pipe(operators.takeUntil(this._unsubscribe$))
16536
+ .subscribe(function (column) {
16537
+ if (_this.data !== column) {
16538
+ _this.selectionControl.setValue(false, { emitEvent: false });
16539
+ }
16540
+ });
16541
+ this.kanbanEventService.unselectAllColumnItemsEvent
16542
+ .pipe(operators.takeUntil(this._unsubscribe$))
16543
+ .subscribe(function (column) {
16544
+ if (_this.data !== column) {
16545
+ _this.selectionControl.setValue(false, { emitEvent: false });
16546
+ }
16547
+ });
16548
+ };
16549
+ KanbanColumnComponent.prototype._validateInputs = function () {
16550
+ if (!this.data) {
16551
+ throw new Error("data parameter is required");
16552
+ }
16553
+ };
16554
+ KanbanColumnComponent.ctorParameters = function () { return [
16555
+ { type: KanbanEventService }
16556
+ ]; };
16557
+ __decorate([
16558
+ core.Input()
16559
+ ], KanbanColumnComponent.prototype, "data", void 0);
16560
+ __decorate([
16561
+ core.Input()
16562
+ ], KanbanColumnComponent.prototype, "headerTemplate", void 0);
16563
+ KanbanColumnComponent = __decorate([
16564
+ core.Component({
16565
+ selector: "s-kanban-column",
16566
+ template: "<div class=\"kanban-column\">\n <div class=\"kanban-column__header\">\n <div class=\"content\">\n <form>\n <input\n type=\"checkbox\"\n name=\"checkbox\"\n [formControl]=\"selectionControl\">\n </form>\n\n <ng-container *ngIf=\"!headerTemplate; then defaultHeaderTemplate else customHeaderTemplate\"></ng-container>\n \n <ng-template #defaultHeaderTemplate>\n <div class=\"header\">\n <span class=\"title\">{{ data.title }} ({{ data.items.length }})</span>\n </div>\n </ng-template>\n \n <ng-template #customHeaderTemplate>\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: data }\"></ng-container>\n </ng-template>\n </div>\n <s-button\n *ngIf=\"data.options\"\n priority=\"default\"\n [disabled]=\"false\"\n [auxiliary]=\"true\"\n size=\"small\"\n [model]=\"data.options\">\n </s-button>\n </div>\n <div class=\"kanban-column__body\">\n <ng-content></ng-content>\n </div>\n</div>",
16567
+ styles: [".kanban-column{-ms-flex-align:center;align-items:center;background-color:#fbfafc;border:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;min-height:120px;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}.kanban-column .kanban-column__header{-ms-flex-align:center;align-items:center;border-bottom:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:16px 16px 8px;width:100%}.kanban-column .kanban-column__header .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-column .kanban-column__header .content .teste{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-family:\"Open Sans\" sans-serif}.kanban-column .kanban-column__header .content .teste .title{font-size:14px;font-weight:800}.kanban-column .kanban-column__header .content .teste .description{font-size:12px}.kanban-column .kanban-column__body{display:-ms-flexbox;display:flex;height:100%;-ms-flex-pack:center;justify-content:center;width:100%}"]
16568
+ })
16569
+ ], KanbanColumnComponent);
16570
+ return KanbanColumnComponent;
16571
+ }());
16572
+
16573
+ var KanbanItemDraggingComponent = /** @class */ (function () {
16574
+ function KanbanItemDraggingComponent() {
16575
+ this.quantityItems = 0;
16576
+ }
16577
+ __decorate([
16578
+ core.Input()
16579
+ ], KanbanItemDraggingComponent.prototype, "quantityItems", void 0);
16580
+ KanbanItemDraggingComponent = __decorate([
16581
+ core.Component({
16582
+ selector: "s-kanban-item-dragging",
16583
+ template: "<div\n *ngIf=\"quantityItems\"\n class=\"kanban-item-dragging\">\n</div>\n\n<div\n class=\"kanban-item-dragging\"\n [ngClass]=\"{ 'kanban-item-dragging--over': quantityItems }\">\n <div class=\"content\">\n <input type=\"checkbox\" checked />\n <s-badge\n [text]=\"'platform.angular_components.count_items_selected' | translate:{ count: quantityItems }\"\n color=\"blue\">\n </s-badge>\n </div>\n</div>",
16584
+ styles: [".kanban-item-dragging{background-color:#fff;border:1px solid #428bca;border-radius:4px;box-shadow:0 1px 5px 0 rgba(0,0,0,.25);height:52px;padding:16px;width:260px}.kanban-item-dragging .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-item-dragging--over{left:12px;position:relative;top:-64px}"]
16585
+ })
16586
+ ], KanbanItemDraggingComponent);
16587
+ return KanbanItemDraggingComponent;
16588
+ }());
16589
+
16590
+ var KanbanModule = /** @class */ (function () {
16591
+ function KanbanModule() {
16592
+ }
16593
+ KanbanModule = __decorate([
16594
+ core.NgModule({
16595
+ imports: [
16596
+ common.CommonModule,
16597
+ forms.FormsModule,
16598
+ forms.ReactiveFormsModule,
16599
+ core$1.TranslateModule,
16600
+ dragDrop.DragDropModule,
16601
+ BadgeModule,
16602
+ ButtonModule,
16603
+ tieredmenu.TieredMenuModule,
16604
+ ],
16605
+ declarations: [
16606
+ KanbanComponent,
16607
+ KanbanItemComponent,
16608
+ KanbanColumnComponent,
16609
+ KanbanItemDraggingComponent,
16610
+ TemplateDirective,
16611
+ ],
16612
+ exports: [
16613
+ KanbanComponent,
16614
+ TemplateDirective,
16615
+ ],
16616
+ providers: [KanbanEventService],
16617
+ })
16618
+ ], KanbanModule);
16619
+ return KanbanModule;
16620
+ }());
16621
+
16197
16622
  exports.AccordionComponent = AccordionComponent;
16198
16623
  exports.AccordionModule = AccordionModule;
16199
16624
  exports.AccordionPanelComponent = AccordionPanelComponent;
@@ -16257,6 +16682,8 @@
16257
16682
  exports.ImageCropperService = ImageCropperService;
16258
16683
  exports.InfoSignDirective = InfoSignDirective;
16259
16684
  exports.InfoSignModule = InfoSignModule;
16685
+ exports.KanbanComponent = KanbanComponent;
16686
+ exports.KanbanModule = KanbanModule;
16260
16687
  exports.LoadingStateComponent = LoadingStateComponent;
16261
16688
  exports.LoadingStateDirective = LoadingStateDirective;
16262
16689
  exports.LoadingStateModule = LoadingStateModule;
@@ -16326,6 +16753,7 @@
16326
16753
  exports.TableHeaderCheckboxModule = TableHeaderCheckboxModule;
16327
16754
  exports.TableModule = TableModule;
16328
16755
  exports.TaxCalculationLanguageConfigs = TaxCalculationLanguageConfigs;
16756
+ exports.TemplateDirective = TemplateDirective;
16329
16757
  exports.TextAreaField = TextAreaField;
16330
16758
  exports.TextField = TextField;
16331
16759
  exports.ThumbnailComponent = ThumbnailComponent;
@@ -16390,6 +16818,10 @@
16390
16818
  exports.ɵcp = TieredMenuDividerComponent;
16391
16819
  exports.ɵcq = ProgressBarDeterminateComponent;
16392
16820
  exports.ɵcr = ProgressBarIndeterminateComponent;
16821
+ exports.ɵcs = KanbanEventService;
16822
+ exports.ɵct = KanbanItemComponent;
16823
+ exports.ɵcu = KanbanColumnComponent;
16824
+ exports.ɵcv = KanbanItemDraggingComponent;
16393
16825
  exports.ɵd = LocalizedCurrencyImpurePipe;
16394
16826
  exports.ɵe = LocalizedBignumberPipe;
16395
16827
  exports.ɵf = LocalizedBignumberImpurePipe;