@seniorsistemas/angular-components 17.15.5 → 17.16.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 (30) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +372 -1
  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/index.d.ts +1 -0
  6. package/components/picklist/index.d.ts +4 -0
  7. package/components/picklist/picklist/models/picklist-models.d.ts +8 -0
  8. package/components/picklist/picklist/picklist.component.d.ts +71 -0
  9. package/components/picklist/picklist.module.d.ts +2 -0
  10. package/esm2015/components/index.js +2 -1
  11. package/esm2015/components/picklist/index.js +5 -0
  12. package/esm2015/components/picklist/picklist/models/picklist-models.js +6 -0
  13. package/esm2015/components/picklist/picklist/picklist.component.js +305 -0
  14. package/esm2015/components/picklist/picklist.module.js +25 -0
  15. package/esm2015/locale/fallback.js +7 -2
  16. package/esm2015/seniorsistemas-angular-components.js +2 -1
  17. package/esm5/components/index.js +2 -1
  18. package/esm5/components/picklist/index.js +5 -0
  19. package/esm5/components/picklist/picklist/models/picklist-models.js +6 -0
  20. package/esm5/components/picklist/picklist/picklist.component.js +339 -0
  21. package/esm5/components/picklist/picklist.module.js +28 -0
  22. package/esm5/locale/fallback.js +7 -2
  23. package/esm5/seniorsistemas-angular-components.js +2 -1
  24. package/fesm2015/seniorsistemas-angular-components.js +328 -3
  25. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  26. package/fesm5/seniorsistemas-angular-components.js +365 -3
  27. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  28. package/package.json +1 -1
  29. package/seniorsistemas-angular-components.d.ts +1 -0
  30. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { __decorate, __awaiter, __param, __rest } from 'tslib';
2
2
  import { EventEmitter, Input, Output, Component, ContentChildren, ViewChild, HostListener, forwardRef, NgModule, ɵɵdefineInjectable, Injectable, ElementRef, ApplicationRef, ComponentFactoryResolver, Injector, Renderer2, Directive, KeyValueDiffers, HostBinding, ChangeDetectorRef, TemplateRef, InjectionToken, Inject, Pipe, ɵɵinject, ViewEncapsulation, ViewContainerRef, ContentChild, Optional, ViewChildren } from '@angular/core';
3
3
  import { trigger, transition, style as style$7, animate, state, group, query, animateChild } from '@angular/animations';
4
- import { Subject, of, from, ReplaySubject, throwError, fromEvent, forkJoin } from 'rxjs';
4
+ import { Subject, of, from, ReplaySubject, throwError, fromEvent, forkJoin, pipe } from 'rxjs';
5
5
  import { takeUntil, tap, map, switchMap, catchError, first, filter, take, delay, debounceTime, repeat, finalize } from 'rxjs/operators';
6
6
  import { CommonModule } from '@angular/common';
7
7
  import { NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule, FormControl, FormGroup, NG_VALIDATORS, FormBuilder, Validators, FormArray, ControlContainer } from '@angular/forms';
@@ -18787,6 +18787,326 @@ LabelValueModule = __decorate([
18787
18787
  })
18788
18788
  ], LabelValueModule);
18789
18789
 
18790
+ var PicklistTemplateTypes;
18791
+ (function (PicklistTemplateTypes) {
18792
+ PicklistTemplateTypes["ItemToSelect"] = "item-to-select";
18793
+ PicklistTemplateTypes["SelectedItem"] = "selected-item";
18794
+ })(PicklistTemplateTypes || (PicklistTemplateTypes = {}));
18795
+
18796
+ let PicklistComponent = class PicklistComponent {
18797
+ constructor(cdr) {
18798
+ this.cdr = cdr;
18799
+ this.itensToSelect = [];
18800
+ this.selectedItens = [];
18801
+ this.showCheckbox = false;
18802
+ this.filterBy = '';
18803
+ this.selectedItensChange = new EventEmitter();
18804
+ this.itensToSelectChange = new EventEmitter();
18805
+ this.availableItensFilter = '';
18806
+ this.selectedItensFilter = '';
18807
+ this.itensToSelectFilterUtil = {
18808
+ rawItensToSelect: [],
18809
+ filteredItensToSelect: [],
18810
+ };
18811
+ this.selectedItensFilterUtil = {
18812
+ rawSelectedItens: [],
18813
+ filteredSelectedItens: [],
18814
+ };
18815
+ this.selectedItensMap = new Set();
18816
+ this.itensToSelectId = randomHash('itensToSelect');
18817
+ this.selectedItensId = randomHash('selectedItens');
18818
+ }
18819
+ ngAfterViewInit() {
18820
+ var _a, _b;
18821
+ this.itemToSelectTemplate = (_a = this.templates.find(x => x.type === PicklistTemplateTypes.ItemToSelect)) === null || _a === void 0 ? void 0 : _a.template;
18822
+ this.itemSelectedTemplate = (_b = this.templates.find(x => x.type === PicklistTemplateTypes.SelectedItem)) === null || _b === void 0 ? void 0 : _b.template;
18823
+ if (!this.itemToSelectTemplate) {
18824
+ console.error(`Missing template for ${PicklistTemplateTypes.ItemToSelect} add this template using sTemplate directive.`);
18825
+ }
18826
+ if (!this.itemSelectedTemplate) {
18827
+ console.error(`Missing template for ${PicklistTemplateTypes.SelectedItem} add this template using sTemplate directive.`);
18828
+ }
18829
+ this.cdr.detectChanges();
18830
+ }
18831
+ ngOnChanges(changes) {
18832
+ if (changes.itensToSelect && changes.itensToSelect.firstChange) {
18833
+ this.itensToSelectFilterUtil = {
18834
+ rawItensToSelect: this.itensToSelect,
18835
+ filteredItensToSelect: this.itensToSelect,
18836
+ };
18837
+ }
18838
+ if (changes.selectedItens && changes.selectedItens.firstChange) {
18839
+ this.selectedItensFilterUtil = {
18840
+ filteredSelectedItens: this.selectedItens,
18841
+ rawSelectedItens: this.selectedItens
18842
+ };
18843
+ }
18844
+ }
18845
+ toggleSelected(internalPicklistItem, containerListId) {
18846
+ if (internalPicklistItem.disabled) {
18847
+ return;
18848
+ }
18849
+ this.unselectedItensByListId(this.getOppositiveId(containerListId));
18850
+ internalPicklistItem.selected = !internalPicklistItem.selected;
18851
+ if (internalPicklistItem.selected) {
18852
+ this.selectedItensMap.add(internalPicklistItem);
18853
+ }
18854
+ else {
18855
+ this.selectedItensMap.delete(internalPicklistItem);
18856
+ }
18857
+ this.cdr.detectChanges();
18858
+ }
18859
+ remove(all = false) {
18860
+ const itens = filterEnabled((all ? this.selectedItensFilterUtil.rawSelectedItens : this.selectedItensMap));
18861
+ if (!itens.length) {
18862
+ return;
18863
+ }
18864
+ itens.forEach((itemRemove) => {
18865
+ this.itensToSelect.push(itemRemove);
18866
+ itemRemove.selected = false;
18867
+ this.selectedItensMap.delete(itemRemove);
18868
+ });
18869
+ this.selectedItens = this.selectedItens.filter(x => !itens.includes(x));
18870
+ this.selectedItensFilterUtil.rawSelectedItens = this.selectedItens;
18871
+ this.filterSelectedItens();
18872
+ this.filterItensToSelect();
18873
+ this.emitData();
18874
+ this.cdr.detectChanges();
18875
+ }
18876
+ add(all = false) {
18877
+ const itens = filterEnabled((all ? this.itensToSelectFilterUtil.rawItensToSelect : this.selectedItensMap));
18878
+ if (!itens.length) {
18879
+ return;
18880
+ }
18881
+ itens.forEach((itemRemove) => {
18882
+ this.selectedItens.push(itemRemove);
18883
+ itemRemove.selected = false;
18884
+ this.selectedItensMap.delete(itemRemove);
18885
+ });
18886
+ this.itensToSelect = this.itensToSelect.filter(x => !itens.includes(x));
18887
+ this.itensToSelectFilterUtil.rawItensToSelect = this.itensToSelect;
18888
+ this.filterSelectedItens();
18889
+ this.filterItensToSelect();
18890
+ this.emitData();
18891
+ this.cdr.detectChanges();
18892
+ }
18893
+ filterItensToSelect() {
18894
+ let searchTerm = this.availableItensFilter;
18895
+ searchTerm = searchTerm.trim();
18896
+ if (searchTerm) {
18897
+ this.itensToSelectFilterUtil.filteredItensToSelect = this.itensToSelectFilterUtil.rawItensToSelect
18898
+ .filter((item) => compareStrings(item.data[this.filterBy], searchTerm));
18899
+ }
18900
+ else {
18901
+ this.itensToSelectFilterUtil.filteredItensToSelect = this.itensToSelectFilterUtil.rawItensToSelect;
18902
+ }
18903
+ this.cdr.detectChanges();
18904
+ }
18905
+ filterSelectedItens() {
18906
+ let searchTerm = this.selectedItensFilter;
18907
+ searchTerm = searchTerm.trim();
18908
+ if (searchTerm) {
18909
+ this.selectedItensFilterUtil.filteredSelectedItens = this.selectedItensFilterUtil.rawSelectedItens
18910
+ .filter((item) => compareStrings(item.data[this.filterBy], searchTerm));
18911
+ }
18912
+ else {
18913
+ this.selectedItensFilterUtil.filteredSelectedItens = this.selectedItensFilterUtil.rawSelectedItens;
18914
+ }
18915
+ }
18916
+ drop(event) {
18917
+ const isDifferentContainer = event.container !== event.previousContainer;
18918
+ if (!isDifferentContainer) {
18919
+ return;
18920
+ }
18921
+ const isRemovedItens = event.previousContainer.id === this.selectedItensId;
18922
+ if (isRemovedItens) {
18923
+ this.remove();
18924
+ }
18925
+ else {
18926
+ this.add();
18927
+ }
18928
+ this.cdr.detectChanges();
18929
+ }
18930
+ onDragStart(event, dragListId) {
18931
+ this.unselectedItensByListId(this.getOppositiveId(dragListId));
18932
+ event.source.data.selected = true;
18933
+ this.selectedItensMap.add(event.source.data);
18934
+ this.selectedItensMap.forEach((x) => x.invisible = true);
18935
+ this.cdr.detectChanges();
18936
+ }
18937
+ onDragRelease() {
18938
+ this.selectedItensMap.forEach((item) => item.invisible = false);
18939
+ }
18940
+ checkAllAvailableItensChange(checked) {
18941
+ this._checkAllSelectedItensChange(checked, this.itensToSelectFilterUtil.filteredItensToSelect, this.itensToSelectId);
18942
+ }
18943
+ checkAllSelectedItensChange(checked) {
18944
+ this._checkAllSelectedItensChange(checked, this.selectedItensFilterUtil.filteredSelectedItens, this.selectedItensId);
18945
+ }
18946
+ get disableSelectedItensCheckbox() {
18947
+ return filterEnabled(this.selectedItensFilterUtil.filteredSelectedItens).length === 0;
18948
+ }
18949
+ get disableItensToSelectCheckbox() {
18950
+ return filterEnabled(this.itensToSelectFilterUtil.filteredItensToSelect).length === 0;
18951
+ }
18952
+ get itensToSelectAllSelected() {
18953
+ return this._checkAllSelectedByList(this.itensToSelectFilterUtil.filteredItensToSelect);
18954
+ }
18955
+ get selectedItensAllSelected() {
18956
+ return this._checkAllSelectedByList(this.selectedItensFilterUtil.filteredSelectedItens);
18957
+ }
18958
+ get canAddItens() {
18959
+ return this.itensToSelect.filter((x) => x === null || x === void 0 ? void 0 : x.selected).length > 0;
18960
+ }
18961
+ get canRemoveItens() {
18962
+ return this.selectedItens.filter((x) => x === null || x === void 0 ? void 0 : x.selected).length > 0;
18963
+ }
18964
+ _checkAllSelectedByList(list) {
18965
+ const _listItens = filterEnabled(list);
18966
+ if (!_listItens.length) {
18967
+ return false;
18968
+ }
18969
+ else {
18970
+ return _listItens.every((x) => x.selected);
18971
+ }
18972
+ }
18973
+ _checkAllSelectedItensChange(checked, list, listId) {
18974
+ this.unselectedItensByListId(listId === this.selectedItensId ? this.itensToSelectId : this.selectedItensId);
18975
+ filterEnabled(list).forEach((item) => {
18976
+ item.selected = checked;
18977
+ this.selectedItensMap.add(item);
18978
+ });
18979
+ this.cdr.detectChanges();
18980
+ }
18981
+ unselectedItensByListId(listId) {
18982
+ const clearList = this.getAllElementsByListId(listId);
18983
+ clearList.forEach((x) => {
18984
+ x.selected = false;
18985
+ this.selectedItensMap.delete(x);
18986
+ });
18987
+ this.cdr.detectChanges();
18988
+ }
18989
+ getAllElementsByListId(listId) {
18990
+ return listId === this.selectedItensId ? this.selectedItensFilterUtil.rawSelectedItens : this.itensToSelectFilterUtil.rawItensToSelect;
18991
+ }
18992
+ getOppositiveId(listId) {
18993
+ return listId === this.selectedItensId ? this.itensToSelectId : this.selectedItensId;
18994
+ }
18995
+ emitData() {
18996
+ this.itensToSelectChange.emit(parseValueEmit(this.itensToSelect));
18997
+ this.selectedItensChange.emit(parseValueEmit(this.selectedItens));
18998
+ }
18999
+ };
19000
+ PicklistComponent.ctorParameters = () => [
19001
+ { type: ChangeDetectorRef }
19002
+ ];
19003
+ __decorate([
19004
+ Input()
19005
+ ], PicklistComponent.prototype, "itensToSelect", void 0);
19006
+ __decorate([
19007
+ Input()
19008
+ ], PicklistComponent.prototype, "selectedItens", void 0);
19009
+ __decorate([
19010
+ Input()
19011
+ ], PicklistComponent.prototype, "availableItensLabel", void 0);
19012
+ __decorate([
19013
+ Input()
19014
+ ], PicklistComponent.prototype, "availableItensPlaceholder", void 0);
19015
+ __decorate([
19016
+ Input()
19017
+ ], PicklistComponent.prototype, "addSelectedItensLabel", void 0);
19018
+ __decorate([
19019
+ Input()
19020
+ ], PicklistComponent.prototype, "addAllItensLabel", void 0);
19021
+ __decorate([
19022
+ Input()
19023
+ ], PicklistComponent.prototype, "selectedItensLabel", void 0);
19024
+ __decorate([
19025
+ Input()
19026
+ ], PicklistComponent.prototype, "selectedItensPlaceholder", void 0);
19027
+ __decorate([
19028
+ Input()
19029
+ ], PicklistComponent.prototype, "removeSelectedItemsLabel", void 0);
19030
+ __decorate([
19031
+ Input()
19032
+ ], PicklistComponent.prototype, "removeAllItemsLabel", void 0);
19033
+ __decorate([
19034
+ Input()
19035
+ ], PicklistComponent.prototype, "showCheckbox", void 0);
19036
+ __decorate([
19037
+ Input()
19038
+ ], PicklistComponent.prototype, "filterBy", void 0);
19039
+ __decorate([
19040
+ Output()
19041
+ ], PicklistComponent.prototype, "selectedItensChange", void 0);
19042
+ __decorate([
19043
+ Output()
19044
+ ], PicklistComponent.prototype, "itensToSelectChange", void 0);
19045
+ __decorate([
19046
+ ContentChildren(TemplateDirective)
19047
+ ], PicklistComponent.prototype, "templates", void 0);
19048
+ PicklistComponent = __decorate([
19049
+ Component({
19050
+ selector: 's-picklist',
19051
+ template: "<ng-template #previewRender let-itens=\"itens\" let-template=\"template\">\n <section class=\"picklist-items\">\n <ng-container *ngFor=\"let item of itens\">\n <ng-container *ngTemplateOutlet=\"template; context: { item: item.data }\"></ng-container>\n </ng-container>\n </section>\n</ng-template>\n\n<ng-template #picklistItensRender let-id=\"id\" let-itens=\"itens\" let-template=\"template\" let-listConnectedTo=\"listConnectedTo\">\n <div\n class=\"picklist-items\"\n cdkDropList\n [id]=\"id\"\n [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListData]=\"itens\"\n [cdkDropListConnectedTo]=\"listConnectedTo\"\n (cdkDropListDropped)=\"drop($event)\">\n <div\n *ngFor=\"let item of itens\"\n cdkDrag\n [cdkDragDisabled]=\"item.disabled\"\n [cdkDragData]=\"item\"\n (click)=\"toggleSelected(item, id)\"\n (cdkDragStarted)=\"onDragStart($event, id)\"\n (cdkDragReleased)=\"onDragRelease()\"\n class=\"picklist-item\"\n [class.picklist-disabled]=\"item.disabled\"\n [class.picklist-item-invisible]=\"item.invisible\"\n [class.picklist-item-active]=\"item.selected\">\n <input\n type=\"checkbox\"\n class=\"input-checkbox\"\n [(ngModel)]=\"item.selected\"\n [disabled]=\"item.disabled\"\n *ngIf=\"showCheckbox\">\n <div class=\"picklist-content\">\n <ng-container *ngTemplateOutlet=\"template; context: { item: item.data, selected: item.selected, disabled: item.disabled }\"></ng-container>\n </div>\n <ng-container *cdkDragPreview>\n <ng-container *ngTemplateOutlet=\"previewRender; context: { itens: selectedItensMap, template: template }\"></ng-container>\n </ng-container>\n </div>\n</div>\n</ng-template>\n\n<ng-template #checkboxTitleRender let-disabled=\"disabled\" let-checked=\"checked\" let-changeFn=\"changeFn\">\n <input\n *ngIf=\"showCheckbox\"\n class=\"input-checkbox\"\n type=\"checkbox\"\n [disabled]=\"disabled\"\n [checked]=\"checked\"\n (change)=\"changeFn($event.target.checked)\">\n</ng-template>\n\n<div class=\"picklist-container\">\n <div class=\"picklist-item-container\">\n <div class=\"picklist-box\">\n <div class=\"picklist-title-container\">\n <ng-container *ngIf=\"!filterBy\">\n <ng-container *ngTemplateOutlet=\"checkboxTitleRender; context: { disabled: disableItensToSelectCheckbox, checked: itensToSelectAllSelected, changeFn: checkAllAvailableItensChange.bind(this) }\"></ng-container>\n </ng-container>\n <span class=\"picklist-title\">\n {{ availableItensLabel || 'platform.angular_components.available-items' | translate }}\n </span>\n </div>\n <div class=\"picklist-filter\" *ngIf=\"filterBy && showCheckbox\">\n <ng-container *ngTemplateOutlet=\"checkboxTitleRender; context: { disabled: disableItensToSelectCheckbox, checked: itensToSelectAllSelected, changeFn: checkAllAvailableItensChange.bind(this) }\"></ng-container>\n <input\n *ngIf=\"filterBy\"\n type=\"text\"\n class=\"input-search\"\n [(ngModel)]=\"availableItensFilter\"\n (ngModelChange)=\"filterItensToSelect()\"\n [placeholder]=\"availableItensPlaceholder || 'plataform.angular_components.picklist-placeholder' | translate\">\n </div>\n <ng-container *ngTemplateOutlet=\"picklistItensRender;\n context: {\n id: itensToSelectId,\n itens: itensToSelectFilterUtil.filteredItensToSelect,\n template: itemToSelectTemplate,\n listConnectedTo: selectedItensId\n }\">\n </ng-container>\n </div>\n <div class=\"buttons-container\">\n <s-button\n [label]=\"addSelectedItensLabel || 'platform.angular_components.add' | translate\"\n priority=\"primary\"\n rightIconClass=\"fa fa-fw fa-arrow-right\"\n [disabled]=\"!canAddItens\"\n (onClick)=\"add()\"\n [auxiliary]=\"false\"\n [caret]=\"false\">\n </s-button>\n <s-button\n [label]=\"addAllItensLabel || 'platform.angular_components.add_all' | translate\"\n priority=\"link\"\n (onClick)=\"add(true)\"\n [auxiliary]=\"false\">\n </s-button>\n </div>\n </div>\n <div class=\"picklist-item-container\">\n <div class=\"picklist-box\">\n <div class=\"picklist-title-container\">\n <ng-container *ngIf=\"!filterBy\">\n <ng-container *ngTemplateOutlet=\"checkboxTitleRender; context: { disabled: disableSelectedItensCheckbox, checked: selectedItensAllSelected, changeFn: checkAllSelectedItensChange.bind(this) }\"></ng-container>\n </ng-container>\n <span class=\"picklist-title\">\n {{ selectedItensLabel || 'platform.angular_components.selected-items' | translate }}\n </span>\n </div>\n <div class=\"picklist-filter\" *ngIf=\"filterBy && showCheckbox\">\n <ng-container *ngTemplateOutlet=\"checkboxTitleRender; context: { disabled: disableSelectedItensCheckbox, checked: selectedItensAllSelected, changeFn: checkAllSelectedItensChange.bind(this) }\"></ng-container>\n <input\n *ngIf=\"filterBy\"\n type=\"text\"\n class=\"input-search\"\n [(ngModel)]=\"selectedItensFilter\"\n (ngModelChange)=\"filterSelectedItens()\"\n [placeholder]=\"selectedItensPlaceholder || 'plataform.angular_components.picklist-placeholder' | translate\">\n </div>\n <ng-container *ngTemplateOutlet=\"picklistItensRender;\n context: {\n id: selectedItensId,\n itens: selectedItensFilterUtil.filteredSelectedItens,\n template: itemSelectedTemplate,\n listConnectedTo: itensToSelectId\n }\">\n\n </ng-container>\n </div>\n <div class=\"buttons-container\">\n <s-button\n [label]=\"removeSelectedItemsLabel || 'platform.angular_components.remove' | translate\"\n priority=\"primary\"\n iconClass=\"fa fa-fw fa-arrow-left\"\n [disabled]=\"!canRemoveItens\"\n [auxiliary]=\"false\"\n (onClick)=\"remove()\"\n [caret]=\"false\">\n </s-button>\n <s-button\n [label]=\"removeAllItemsLabel || 'platform.angular_components.remove_all' | translate\"\n priority=\"link\"\n (onClick)=\"remove(true)\"\n [auxiliary]=\"false\">\n </s-button>\n </div>\n </div>\n</div>\n",
19052
+ styles: [".picklist-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;border-radius:4px solid #dedce5;width:100%;background-color:#fff;gap:20px;padding:8px}.picklist-container .picklist-item-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1}.picklist-container .picklist-item-container .picklist-box{border:1px solid #dedce5;padding:8px;height:100%;min-width:200px}.picklist-container .picklist-item-container .picklist-box .picklist-filter{display:-ms-flexbox;display:flex;width:100%}.picklist-container .picklist-item-container .picklist-box .picklist-filter .input-search{border:1px solid #dedce5;min-height:35px;width:100%;border-radius:3px;margin-bottom:10px;margin-top:10px;padding:0 8px;-ms-flex:1;flex:1}.picklist-container .picklist-item-container .picklist-box .picklist-title-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.picklist-container .picklist-item-container .picklist-box .picklist-title-container .picklist-title{font-family:Open Sans;font-size:14px;font-weight:700;line-height:21px;text-underline-position:from-font;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}.picklist-container .picklist-item-container .picklist-box .picklist-items{max-height:23em;overflow:auto;height:100%;min-height:55px}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-content{width:100%;height:100%;padding-right:8px;border-radius:3px;margin-bottom:8px}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item{height:55px;border:3px;display:-ms-flexbox;display:flex}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item:not(.picklist-disabled){cursor:pointer}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item:hover:not(.picklist-disabled,.picklist-item-active,.picklist-item-invisible){background-color:#f1f7f8}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item-active:not(.picklist-item-invisible){background-color:#d5e8ec}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-disabled{opacity:.5;background-color:#fbfafc}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item-invisible{display:none!important}.picklist-container .picklist-item-container .buttons-container{padding-top:10px;display:-ms-flexbox;display:flex}.picklist-container .picklist-item-container .input-checkbox{margin:12px}"]
19053
+ })
19054
+ ], PicklistComponent);
19055
+ const normalizeString = (str) => {
19056
+ return str.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase();
19057
+ };
19058
+ const ɵ0$3 = normalizeString;
19059
+ /**
19060
+ * Compares two strings by normalizing them to a case-insensitive and accent-free form,
19061
+ * and checks if the main string contains the substring.
19062
+ *
19063
+ * @param mainString - The string to be searched.
19064
+ * @param substring - The string to search for within the main string.
19065
+ * @returns A boolean indicating whether the normalized main string contains the normalized substring.
19066
+ */
19067
+ const compareStrings = (mainString, substring) => {
19068
+ return normalizeString(mainString).includes(normalizeString(substring));
19069
+ };
19070
+ const ɵ1$2 = compareStrings;
19071
+ const randomHash = (prefix = 'id') => {
19072
+ return `${prefix}-${Math.random().toString(36).substring(2, 9)}-${Date.now().toString(36)}`;
19073
+ };
19074
+ const ɵ2$1 = randomHash;
19075
+ const filterEnabled = (list) => {
19076
+ const _list = list instanceof Set ? Array.from(list) : list;
19077
+ return _list.filter((x) => !x.disabled);
19078
+ };
19079
+ const ɵ3 = filterEnabled;
19080
+ const mapData = (list) => {
19081
+ return list.map((x) => x.data);
19082
+ };
19083
+ const ɵ4 = mapData;
19084
+ const parseValueEmit = pipe(filterEnabled, mapData);
19085
+ const parseItensPickList = (array, disabledFn) => {
19086
+ return array.map((x) => {
19087
+ return {
19088
+ data: x,
19089
+ disabled: disabledFn ? disabledFn(x) : false
19090
+ };
19091
+ });
19092
+ };
19093
+
19094
+ let PicklistModule = class PicklistModule {
19095
+ };
19096
+ PicklistModule = __decorate([
19097
+ NgModule({
19098
+ declarations: [PicklistComponent],
19099
+ imports: [
19100
+ CommonModule,
19101
+ TranslateModule,
19102
+ DragDropModule,
19103
+ FormsModule,
19104
+ ButtonModule,
19105
+ ],
19106
+ exports: [PicklistComponent]
19107
+ })
19108
+ ], PicklistModule);
19109
+
18790
19110
  const fallback = {
18791
19111
  "platform.angular_components.drag_your_photo_or": "Arraste sua foto ou",
18792
19112
  "platform.angular_components.select_a_file": "selecione um arquivo",
@@ -19101,12 +19421,17 @@ const fallback = {
19101
19421
  "platform.angular_components.country_name_tm": "Turquemenistão",
19102
19422
  "platform.angular_components.country_name_uz": "Uzbequistão",
19103
19423
  "platform.angular_components.country_name_ve": "Venezuela",
19104
- "platform.angular_components.date_modified_custom_blob": "Enviado às {{hour}}:{{minutes}} de {{day}}/{{month}}/{{fullYear}}"
19424
+ "platform.angular_components.date_modified_custom_blob": "Enviado às {{hour}}:{{minutes}} de {{day}}/{{month}}/{{fullYear}}",
19425
+ "platform.angular_components.available-items": "Itens disponíveis",
19426
+ "platform.angular_components.selected-items": "Itens selecionados",
19427
+ "plataform.angular_components.picklist-placeholder": "Busque pelo nome ou termo",
19428
+ "platform.angular_components.add_all": "Adicionar todos",
19429
+ "platform.angular_components.remove_all": "Remover todos"
19105
19430
  };
19106
19431
 
19107
19432
  /**
19108
19433
  * Generated bundle index. Do not edit.
19109
19434
  */
19110
19435
 
19111
- export { AccordionComponent, AccordionModule, AccordionPanelComponent, AlertComponent, AlertModule, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, CheckboxComponent, CheckboxModule, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CurrencyService, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileUploadPermissions, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, InlineEditCalendarField, InlineEditComponent, InlineEditField, InlineEditLookupField, InlineEditModule, InlineEditNumberField, InlineEditTextAreaField, InlineEditTextAreaIAField, InlineEditTextField, KanbanComponent, KanbanModule, KanbanTemplateTypes, LabelValueComponent, LabelValueModule, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationButtonComponent, NavigationButtonModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, NumericService, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SliderComponent, SliderModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TemplateDirective, TemplateModule, TextAreaField, TextAreaIAComponent, TextAreaIAModule, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, convertToMomentDateFormat, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, TablePagingComponent as ɵba, PasswordFieldModule as ɵbb, FieldLabelModule as ɵbc, InfoSignModule as ɵbd, FieldLabelComponent as ɵbe, PasswordFieldComponent as ɵbf, TextFieldModule as ɵbg, TextFieldComponent as ɵbh, NumberFieldModule as ɵbi, LocalizedNumberInputModule as ɵbj, NumberInputModule as ɵbk, NumberFieldComponent as ɵbl, CurrencyFieldModule as ɵbm, CurrencyFieldComponent as ɵbn, BignumberFieldModule as ɵbo, BignumberInputModule as ɵbp, BignumberFieldComponent as ɵbq, CheckboxFieldModule as ɵbr, CheckboxFieldComponent as ɵbs, ProfilePictureModule as ɵbt, ThumbnailService as ɵbu, StructureModule as ɵbv, HeaderComponent as ɵbw, FooterComponent as ɵbx, ProfilePictureFieldComponent as ɵby, EditorFieldModule as ɵbz, TieredMenuEventService as ɵc, EditorFieldComponent as ɵca, AutocompleteFieldComponent as ɵcb, BooleanFieldComponent as ɵcc, BooleanSwitchFieldComponent as ɵcd, CalendarFieldComponent as ɵce, ChipsFieldComponent as ɵcf, CountryPhonePickerFieldComponent as ɵcg, DynamicFieldComponent as ɵch, DynamicFormDirective as ɵci, FieldsetComponent as ɵcj, FileUploadComponent$1 as ɵck, LookupFieldComponent as ɵcl, RadioButtonComponent as ɵcm, RowComponent as ɵcn, SectionComponent as ɵco, SelectFieldComponent as ɵcp, SliderFieldComponent as ɵcq, TextAreaFieldComponent as ɵcr, TextAreaIAFieldComponent as ɵcs, IAssistService as ɵct, DecimalField as ɵcv, SideTableComponent as ɵcw, InfiniteScrollModule as ɵcx, InfiniteScrollDirective as ɵcy, IAInsightSidebarComponent as ɵcz, TieredMenuService as ɵd, IAInsightCardComponent as ɵda, IAInsightCardLoaderComponent as ɵdb, InlineEditItemComponent as ɵdc, LocaleService as ɵdd, InlineEditCalendarComponent as ɵde, InlineEditLookupComponent as ɵdf, InlineEditNumberComponent as ɵdg, InlineEditTextComponent as ɵdh, InlineEditTextAreaComponent as ɵdi, InlineEditTextAreaIAComponent as ɵdj, KanbanEventService as ɵdk, KanbanItemComponent as ɵdl, KanbanColumnComponent as ɵdm, KanbanItemDraggingComponent as ɵdn, NumberLocaleOptions as ɵdo, BorderButtonModule as ɵdp, BorderButtonComponent as ɵdq, ProgressBarDeterminateComponent as ɵdr, ProgressBarIndeterminateComponent as ɵds, SelectButtonItemComponent as ɵdt, SlidePanelService as ɵdu, TimelineItemModule as ɵdv, TimelineIconItemComponent as ɵdw, HorizontalTimelineModule as ɵdx, HorizontalTimelineComponent as ɵdy, VerticalTimelineModule as ɵdz, TieredMenuGlobalService as ɵe, VerticalTimelineComponent as ɵea, RangeLineComponent as ɵeb, CollapseOptionComponent as ɵec, CollapsedItemsComponent as ɵed, VerticalItemsComponent as ɵee, TieredMenuComponent as ɵf, TieredMenuNestedComponent as ɵg, TieredMenuItemComponent as ɵh, TieredMenuDividerComponent as ɵi, CustomTranslationsModule as ɵj, CodeEditorComponent as ɵk, CoreFacade as ɵl, CodeMirror6Core as ɵm, CountryPhonePickerService as ɵn, LocalizedCurrencyImpurePipe as ɵo, LocalizedBignumberPipe as ɵp, LocalizedBignumberImpurePipe as ɵq, NumericPipe as ɵr, EmptyStateGoBackComponent as ɵs, IAssistIconComponent as ɵt, SeniorIconComponent as ɵu, DotsIndicatorComponent as ɵv, LoadingIndicatorComponent as ɵw, FileUploadService as ɵx, InfoSignComponent as ɵy, TableColumnsComponent as ɵz };
19436
+ export { AccordionComponent, AccordionModule, AccordionPanelComponent, AlertComponent, AlertModule, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, CheckboxComponent, CheckboxModule, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CurrencyService, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileUploadPermissions, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, InlineEditCalendarField, InlineEditComponent, InlineEditField, InlineEditLookupField, InlineEditModule, InlineEditNumberField, InlineEditTextAreaField, InlineEditTextAreaIAField, InlineEditTextField, KanbanComponent, KanbanModule, KanbanTemplateTypes, LabelValueComponent, LabelValueModule, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationButtonComponent, NavigationButtonModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, NumericService, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, PicklistComponent, PicklistModule, PicklistTemplateTypes, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SliderComponent, SliderModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TemplateDirective, TemplateModule, TextAreaField, TextAreaIAComponent, TextAreaIAModule, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, convertToMomentDateFormat, countries, fallback, parseItensPickList, ɵ0$3 as ɵ0, ɵ1$2 as ɵ1, ɵ2$1 as ɵ2, ɵ3, ɵ4, TooltipComponent as ɵa, TooltipDirective as ɵb, TablePagingComponent as ɵba, PasswordFieldModule as ɵbb, FieldLabelModule as ɵbc, InfoSignModule as ɵbd, FieldLabelComponent as ɵbe, PasswordFieldComponent as ɵbf, TextFieldModule as ɵbg, TextFieldComponent as ɵbh, NumberFieldModule as ɵbi, LocalizedNumberInputModule as ɵbj, NumberInputModule as ɵbk, NumberFieldComponent as ɵbl, CurrencyFieldModule as ɵbm, CurrencyFieldComponent as ɵbn, BignumberFieldModule as ɵbo, BignumberInputModule as ɵbp, BignumberFieldComponent as ɵbq, CheckboxFieldModule as ɵbr, CheckboxFieldComponent as ɵbs, ProfilePictureModule as ɵbt, ThumbnailService as ɵbu, StructureModule as ɵbv, HeaderComponent as ɵbw, FooterComponent as ɵbx, ProfilePictureFieldComponent as ɵby, EditorFieldModule as ɵbz, TieredMenuEventService as ɵc, EditorFieldComponent as ɵca, AutocompleteFieldComponent as ɵcb, BooleanFieldComponent as ɵcc, BooleanSwitchFieldComponent as ɵcd, CalendarFieldComponent as ɵce, ChipsFieldComponent as ɵcf, CountryPhonePickerFieldComponent as ɵcg, DynamicFieldComponent as ɵch, DynamicFormDirective as ɵci, FieldsetComponent as ɵcj, FileUploadComponent$1 as ɵck, LookupFieldComponent as ɵcl, RadioButtonComponent as ɵcm, RowComponent as ɵcn, SectionComponent as ɵco, SelectFieldComponent as ɵcp, SliderFieldComponent as ɵcq, TextAreaFieldComponent as ɵcr, TextAreaIAFieldComponent as ɵcs, IAssistService as ɵct, DecimalField as ɵcv, SideTableComponent as ɵcw, InfiniteScrollModule as ɵcx, InfiniteScrollDirective as ɵcy, IAInsightSidebarComponent as ɵcz, TieredMenuService as ɵd, IAInsightCardComponent as ɵda, IAInsightCardLoaderComponent as ɵdb, InlineEditItemComponent as ɵdc, LocaleService as ɵdd, InlineEditCalendarComponent as ɵde, InlineEditLookupComponent as ɵdf, InlineEditNumberComponent as ɵdg, InlineEditTextComponent as ɵdh, InlineEditTextAreaComponent as ɵdi, InlineEditTextAreaIAComponent as ɵdj, KanbanEventService as ɵdk, KanbanItemComponent as ɵdl, KanbanColumnComponent as ɵdm, KanbanItemDraggingComponent as ɵdn, NumberLocaleOptions as ɵdo, BorderButtonModule as ɵdp, BorderButtonComponent as ɵdq, ProgressBarDeterminateComponent as ɵdr, ProgressBarIndeterminateComponent as ɵds, SelectButtonItemComponent as ɵdt, SlidePanelService as ɵdu, TimelineItemModule as ɵdv, TimelineIconItemComponent as ɵdw, HorizontalTimelineModule as ɵdx, HorizontalTimelineComponent as ɵdy, VerticalTimelineModule as ɵdz, TieredMenuGlobalService as ɵe, VerticalTimelineComponent as ɵea, RangeLineComponent as ɵeb, CollapseOptionComponent as ɵec, CollapsedItemsComponent as ɵed, VerticalItemsComponent as ɵee, ButtonModule as ɵef, TieredMenuComponent as ɵf, TieredMenuNestedComponent as ɵg, TieredMenuItemComponent as ɵh, TieredMenuDividerComponent as ɵi, CustomTranslationsModule as ɵj, CodeEditorComponent as ɵk, CoreFacade as ɵl, CodeMirror6Core as ɵm, CountryPhonePickerService as ɵn, LocalizedCurrencyImpurePipe as ɵo, LocalizedBignumberPipe as ɵp, LocalizedBignumberImpurePipe as ɵq, NumericPipe as ɵr, EmptyStateGoBackComponent as ɵs, IAssistIconComponent as ɵt, SeniorIconComponent as ɵu, DotsIndicatorComponent as ɵv, LoadingIndicatorComponent as ɵw, FileUploadService as ɵx, InfoSignComponent as ɵy, TableColumnsComponent as ɵz };
19112
19437
  //# sourceMappingURL=seniorsistemas-angular-components.js.map