@seniorsistemas/angular-components 17.16.14 → 17.17.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.
- package/bundles/seniorsistemas-angular-components.umd.js +359 -0
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/chips/chip-item/chip-item.component.d.ts +22 -0
- package/components/chips/chips/chips.component.d.ts +55 -0
- package/components/chips/chips.module.d.ts +2 -0
- package/components/chips/index.d.ts +3 -0
- package/components/chips/models/chip-models.d.ts +7 -0
- package/components/index.d.ts +1 -0
- package/components/shared/helpers.d.ts +18 -0
- package/components/shared/index.d.ts +1 -0
- package/esm2015/components/chips/chip-item/chip-item.component.js +68 -0
- package/esm2015/components/chips/chips/chips.component.js +228 -0
- package/esm2015/components/chips/chips.module.js +24 -0
- package/esm2015/components/chips/index.js +3 -0
- package/esm2015/components/chips/models/chip-models.js +1 -0
- package/esm2015/components/index.js +2 -1
- package/esm2015/components/shared/helpers.js +30 -0
- package/esm2015/components/shared/index.js +2 -1
- package/esm2015/seniorsistemas-angular-components.js +2 -1
- package/esm5/components/chips/chip-item/chip-item.component.js +77 -0
- package/esm5/components/chips/chips/chips.component.js +235 -0
- package/esm5/components/chips/chips.module.js +27 -0
- package/esm5/components/chips/index.js +3 -0
- package/esm5/components/chips/models/chip-models.js +1 -0
- package/esm5/components/index.js +2 -1
- package/esm5/components/shared/helpers.js +35 -0
- package/esm5/components/shared/index.js +2 -1
- package/esm5/seniorsistemas-angular-components.js +2 -1
- package/fesm2015/seniorsistemas-angular-components.js +334 -3
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +358 -3
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +1 -0
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -35,7 +35,7 @@ import { Table, TableService, RowToggler, TableModule as TableModule$1 } from 'p
|
|
|
35
35
|
import { CurrencyMaskDirective as CurrencyMaskDirective$1 } from 'ng2-currency-mask';
|
|
36
36
|
import { ButtonModule as ButtonModule$1 } from 'primeng/button';
|
|
37
37
|
import { CheckboxModule as CheckboxModule$1 } from 'primeng/checkbox';
|
|
38
|
-
import { ChipsModule } from 'primeng/chips';
|
|
38
|
+
import { ChipsModule as ChipsModule$1 } from 'primeng/chips';
|
|
39
39
|
import { DropdownModule } from 'primeng/dropdown';
|
|
40
40
|
import { FieldsetModule } from 'primeng/fieldset';
|
|
41
41
|
import { InputMaskModule } from 'primeng/inputmask';
|
|
@@ -12688,7 +12688,7 @@ var DynamicFormModule = /** @class */ (function () {
|
|
|
12688
12688
|
CalendarMaskModule,
|
|
12689
12689
|
CalendarModule,
|
|
12690
12690
|
CheckboxModule$1,
|
|
12691
|
-
ChipsModule,
|
|
12691
|
+
ChipsModule$1,
|
|
12692
12692
|
CommonModule,
|
|
12693
12693
|
ControlErrorsModule,
|
|
12694
12694
|
CountryPhonePickerModule,
|
|
@@ -18193,6 +18193,41 @@ var SelectButtonModule = /** @class */ (function () {
|
|
|
18193
18193
|
return SelectButtonModule;
|
|
18194
18194
|
}());
|
|
18195
18195
|
|
|
18196
|
+
/**
|
|
18197
|
+
* A decorator that can be used to disable functions based on a boolean property on the component.
|
|
18198
|
+
*
|
|
18199
|
+
* @param disabledField The name of the boolean property that will be used to determine if the decorated
|
|
18200
|
+
* function should be disabled. Defaults to 'disabled'.
|
|
18201
|
+
* @returns A decorator function that can be used to decorate a function.
|
|
18202
|
+
*
|
|
18203
|
+
* @example
|
|
18204
|
+
* class MyComponent {
|
|
18205
|
+
* disabled = true;
|
|
18206
|
+
*
|
|
18207
|
+
* @CheckDisabled()
|
|
18208
|
+
* onClick() {
|
|
18209
|
+
* console.log('Button was clicked');
|
|
18210
|
+
* }
|
|
18211
|
+
* }
|
|
18212
|
+
*/
|
|
18213
|
+
function CheckDisabled(disabledField) {
|
|
18214
|
+
if (disabledField === void 0) { disabledField = 'disabled'; }
|
|
18215
|
+
return function (_target, _propertyKey, descriptor) {
|
|
18216
|
+
var originalMethod = descriptor.value;
|
|
18217
|
+
descriptor.value = function () {
|
|
18218
|
+
var args = [];
|
|
18219
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
18220
|
+
args[_i] = arguments[_i];
|
|
18221
|
+
}
|
|
18222
|
+
if (this[disabledField]) {
|
|
18223
|
+
return;
|
|
18224
|
+
}
|
|
18225
|
+
return originalMethod.apply(this, args);
|
|
18226
|
+
};
|
|
18227
|
+
return descriptor;
|
|
18228
|
+
};
|
|
18229
|
+
}
|
|
18230
|
+
|
|
18196
18231
|
var SidebarComponent = /** @class */ (function () {
|
|
18197
18232
|
function SidebarComponent(focusTrapFactory) {
|
|
18198
18233
|
this.focusTrapFactory = focusTrapFactory;
|
|
@@ -20497,6 +20532,326 @@ var PicklistModule = /** @class */ (function () {
|
|
|
20497
20532
|
return PicklistModule;
|
|
20498
20533
|
}());
|
|
20499
20534
|
|
|
20535
|
+
var ChipsComponent = /** @class */ (function () {
|
|
20536
|
+
function ChipsComponent(cdr) {
|
|
20537
|
+
this.cdr = cdr;
|
|
20538
|
+
this.newItem = '';
|
|
20539
|
+
this.value = [];
|
|
20540
|
+
this.placeholder = '';
|
|
20541
|
+
this.inputId = "chips-" + ChipsComponent_1._id++;
|
|
20542
|
+
this.allowDuplicated = true;
|
|
20543
|
+
this.caseSensitiveDuplication = false;
|
|
20544
|
+
this.addOnTab = true;
|
|
20545
|
+
this.addOnBlur = true;
|
|
20546
|
+
this.autofocus = false;
|
|
20547
|
+
this.infoLabel = '';
|
|
20548
|
+
this.showTooltip = true;
|
|
20549
|
+
this.maxLengthRenderWithoutTooltip = 20;
|
|
20550
|
+
this.onAdd = new EventEmitter();
|
|
20551
|
+
this.onRemove = new EventEmitter();
|
|
20552
|
+
this.onFocus = new EventEmitter();
|
|
20553
|
+
this.onBlur = new EventEmitter();
|
|
20554
|
+
this.onChipClick = new EventEmitter();
|
|
20555
|
+
this.valueChange = new EventEmitter();
|
|
20556
|
+
this.isTabEventActive = false;
|
|
20557
|
+
this.onChange = function () { };
|
|
20558
|
+
this.onTouched = function () { };
|
|
20559
|
+
}
|
|
20560
|
+
ChipsComponent_1 = ChipsComponent;
|
|
20561
|
+
ChipsComponent.prototype.ngAfterViewInit = function () {
|
|
20562
|
+
var _a;
|
|
20563
|
+
if (this.autofocus && this.input) {
|
|
20564
|
+
this.input.nativeElement.focus();
|
|
20565
|
+
}
|
|
20566
|
+
this.chipTemplate = (_a = this.templates.find(function (x) { return x.type === 'chip-container'; })) === null || _a === void 0 ? void 0 : _a.template;
|
|
20567
|
+
this.cdr.detectChanges();
|
|
20568
|
+
};
|
|
20569
|
+
ChipsComponent.prototype.writeValue = function (obj) {
|
|
20570
|
+
this.value = obj;
|
|
20571
|
+
};
|
|
20572
|
+
ChipsComponent.prototype.registerOnChange = function (fn) {
|
|
20573
|
+
this.onChange = fn;
|
|
20574
|
+
};
|
|
20575
|
+
ChipsComponent.prototype.registerOnTouched = function (fn) {
|
|
20576
|
+
this.onTouched = fn;
|
|
20577
|
+
};
|
|
20578
|
+
ChipsComponent.prototype.setDisabledState = function (isDisabled) {
|
|
20579
|
+
this.disabled = isDisabled;
|
|
20580
|
+
};
|
|
20581
|
+
ChipsComponent.prototype.onKeydown = function ($event) {
|
|
20582
|
+
var _this = this;
|
|
20583
|
+
var isEnter = $event.key === 'Enter';
|
|
20584
|
+
var isSeparator = this.separator && $event.key === this.separator;
|
|
20585
|
+
var eventKeyIsTab = $event.key === 'Tab';
|
|
20586
|
+
if (eventKeyIsTab) {
|
|
20587
|
+
this.isTabEventActive = true;
|
|
20588
|
+
setTimeout(function () {
|
|
20589
|
+
_this.isTabEventActive = false;
|
|
20590
|
+
}, 50);
|
|
20591
|
+
}
|
|
20592
|
+
var isTab = this.addOnTab && eventKeyIsTab;
|
|
20593
|
+
if (isEnter || isSeparator || isTab) {
|
|
20594
|
+
$event.preventDefault();
|
|
20595
|
+
this.addItem();
|
|
20596
|
+
}
|
|
20597
|
+
};
|
|
20598
|
+
ChipsComponent.prototype.onInputFocus = function ($event) {
|
|
20599
|
+
this.onFocus.emit($event);
|
|
20600
|
+
};
|
|
20601
|
+
ChipsComponent.prototype.onInputLostFocus = function ($event) {
|
|
20602
|
+
if (!this.addOnBlur || this.isTabEventActive) {
|
|
20603
|
+
return;
|
|
20604
|
+
}
|
|
20605
|
+
this.addItem();
|
|
20606
|
+
this.onBlur.emit($event);
|
|
20607
|
+
};
|
|
20608
|
+
ChipsComponent.prototype.removeItem = function (_a) {
|
|
20609
|
+
var itemIndex = _a.itemIndex, event = _a.event;
|
|
20610
|
+
var _removedItem = this.value[itemIndex];
|
|
20611
|
+
this.value.splice(itemIndex, 1);
|
|
20612
|
+
this.onRemove.emit({ value: _removedItem, originalEvent: event });
|
|
20613
|
+
};
|
|
20614
|
+
ChipsComponent.prototype.chipClicked = function (_a) {
|
|
20615
|
+
var event = _a.event, data = _a.data;
|
|
20616
|
+
this.onChipClick.emit({ value: data, originalEvent: event });
|
|
20617
|
+
};
|
|
20618
|
+
ChipsComponent.prototype.addItem = function () {
|
|
20619
|
+
var _a;
|
|
20620
|
+
var _this = this;
|
|
20621
|
+
var hasValue = !!this.newItem;
|
|
20622
|
+
if (!hasValue) {
|
|
20623
|
+
return;
|
|
20624
|
+
}
|
|
20625
|
+
if (this.max && this.value.length === this.max) {
|
|
20626
|
+
return;
|
|
20627
|
+
}
|
|
20628
|
+
var validItemLength = this.maxLength ? this.newItem.length <= this.maxLength : true;
|
|
20629
|
+
if (!validItemLength) {
|
|
20630
|
+
return;
|
|
20631
|
+
}
|
|
20632
|
+
var hasField = !!this.field;
|
|
20633
|
+
var _mappedValues = this.field ? this.value.map(function (x) { return x[_this.field]; }) : this.value;
|
|
20634
|
+
var valueToAdd = hasField ? (_a = {}, _a[this.field] = this.newItem, _a) : this.newItem;
|
|
20635
|
+
var duplicatedItem = _mappedValues.find(function (x) {
|
|
20636
|
+
if (_this.caseSensitiveDuplication) {
|
|
20637
|
+
return x === _this.newItem;
|
|
20638
|
+
}
|
|
20639
|
+
else {
|
|
20640
|
+
return x.toLowerCase() === _this.newItem.toLowerCase();
|
|
20641
|
+
}
|
|
20642
|
+
});
|
|
20643
|
+
var hasDuplicatedItem = false;
|
|
20644
|
+
if (!this.allowDuplicated) {
|
|
20645
|
+
hasDuplicatedItem = duplicatedItem ? Boolean(duplicatedItem) : false;
|
|
20646
|
+
}
|
|
20647
|
+
if (!hasDuplicatedItem) {
|
|
20648
|
+
this.storeValue(valueToAdd);
|
|
20649
|
+
}
|
|
20650
|
+
this.newItem = '';
|
|
20651
|
+
};
|
|
20652
|
+
ChipsComponent.prototype.storeValue = function (value) {
|
|
20653
|
+
this.value = __spread(this.value, [value]);
|
|
20654
|
+
this.onAdd.emit({ value: value });
|
|
20655
|
+
this.valueChange.emit(this.value);
|
|
20656
|
+
this.writeValue(this.value);
|
|
20657
|
+
this.onChange(this.value);
|
|
20658
|
+
this.onTouched(this.value);
|
|
20659
|
+
};
|
|
20660
|
+
var ChipsComponent_1;
|
|
20661
|
+
ChipsComponent._id = 0;
|
|
20662
|
+
ChipsComponent.ctorParameters = function () { return [
|
|
20663
|
+
{ type: ChangeDetectorRef }
|
|
20664
|
+
]; };
|
|
20665
|
+
__decorate([
|
|
20666
|
+
Input()
|
|
20667
|
+
], ChipsComponent.prototype, "disabled", void 0);
|
|
20668
|
+
__decorate([
|
|
20669
|
+
Input()
|
|
20670
|
+
], ChipsComponent.prototype, "field", void 0);
|
|
20671
|
+
__decorate([
|
|
20672
|
+
Input()
|
|
20673
|
+
], ChipsComponent.prototype, "value", void 0);
|
|
20674
|
+
__decorate([
|
|
20675
|
+
Input()
|
|
20676
|
+
], ChipsComponent.prototype, "placeholder", void 0);
|
|
20677
|
+
__decorate([
|
|
20678
|
+
Input()
|
|
20679
|
+
], ChipsComponent.prototype, "max", void 0);
|
|
20680
|
+
__decorate([
|
|
20681
|
+
Input()
|
|
20682
|
+
], ChipsComponent.prototype, "maxLength", void 0);
|
|
20683
|
+
__decorate([
|
|
20684
|
+
Input()
|
|
20685
|
+
], ChipsComponent.prototype, "inputId", void 0);
|
|
20686
|
+
__decorate([
|
|
20687
|
+
Input()
|
|
20688
|
+
], ChipsComponent.prototype, "allowDuplicated", void 0);
|
|
20689
|
+
__decorate([
|
|
20690
|
+
Input()
|
|
20691
|
+
], ChipsComponent.prototype, "caseSensitiveDuplication", void 0);
|
|
20692
|
+
__decorate([
|
|
20693
|
+
Input()
|
|
20694
|
+
], ChipsComponent.prototype, "addOnTab", void 0);
|
|
20695
|
+
__decorate([
|
|
20696
|
+
Input()
|
|
20697
|
+
], ChipsComponent.prototype, "addOnBlur", void 0);
|
|
20698
|
+
__decorate([
|
|
20699
|
+
Input()
|
|
20700
|
+
], ChipsComponent.prototype, "separator", void 0);
|
|
20701
|
+
__decorate([
|
|
20702
|
+
Input()
|
|
20703
|
+
], ChipsComponent.prototype, "autofocus", void 0);
|
|
20704
|
+
__decorate([
|
|
20705
|
+
Input()
|
|
20706
|
+
], ChipsComponent.prototype, "infoLabel", void 0);
|
|
20707
|
+
__decorate([
|
|
20708
|
+
Input()
|
|
20709
|
+
], ChipsComponent.prototype, "keyFilter", void 0);
|
|
20710
|
+
__decorate([
|
|
20711
|
+
Input()
|
|
20712
|
+
], ChipsComponent.prototype, "showTooltip", void 0);
|
|
20713
|
+
__decorate([
|
|
20714
|
+
Input()
|
|
20715
|
+
], ChipsComponent.prototype, "maxLengthRenderWithoutTooltip", void 0);
|
|
20716
|
+
__decorate([
|
|
20717
|
+
Output()
|
|
20718
|
+
], ChipsComponent.prototype, "onAdd", void 0);
|
|
20719
|
+
__decorate([
|
|
20720
|
+
Output()
|
|
20721
|
+
], ChipsComponent.prototype, "onRemove", void 0);
|
|
20722
|
+
__decorate([
|
|
20723
|
+
Output()
|
|
20724
|
+
], ChipsComponent.prototype, "onFocus", void 0);
|
|
20725
|
+
__decorate([
|
|
20726
|
+
Output()
|
|
20727
|
+
], ChipsComponent.prototype, "onBlur", void 0);
|
|
20728
|
+
__decorate([
|
|
20729
|
+
Output()
|
|
20730
|
+
], ChipsComponent.prototype, "onChipClick", void 0);
|
|
20731
|
+
__decorate([
|
|
20732
|
+
Output()
|
|
20733
|
+
], ChipsComponent.prototype, "valueChange", void 0);
|
|
20734
|
+
__decorate([
|
|
20735
|
+
ContentChildren(TemplateDirective)
|
|
20736
|
+
], ChipsComponent.prototype, "templates", void 0);
|
|
20737
|
+
__decorate([
|
|
20738
|
+
ViewChild('input', { read: ElementRef })
|
|
20739
|
+
], ChipsComponent.prototype, "input", void 0);
|
|
20740
|
+
__decorate([
|
|
20741
|
+
HostListener("document:keydown", ["$event"]),
|
|
20742
|
+
CheckDisabled()
|
|
20743
|
+
], ChipsComponent.prototype, "onKeydown", null);
|
|
20744
|
+
__decorate([
|
|
20745
|
+
CheckDisabled()
|
|
20746
|
+
], ChipsComponent.prototype, "onInputLostFocus", null);
|
|
20747
|
+
ChipsComponent = ChipsComponent_1 = __decorate([
|
|
20748
|
+
Component({
|
|
20749
|
+
selector: 's-chips',
|
|
20750
|
+
template: "<ul class=\"chips-container\">\n <li *ngFor=\"let item of value; let index = index\">\n <s-chip-item\n [templateRef]=\"chipTemplate\"\n [dataRender]=\"item\"\n [objectField]=\"field\"\n [itemIndex]=\"index\"\n [disabled]=\"disabled\"\n [showTooltip]=\"showTooltip\"\n [maxLengthRenderWithoutTooltip]=\"maxLengthRenderWithoutTooltip\"\n (clickRemove)=\"removeItem($event)\"\n (chipClicked)=\"chipClicked($event)\">\n </s-chip-item>\n </li>\n <ng-container *ngIf=\"keyFilter\">\n <input\n #input\n [disabled]=\"disabled || max === value?.length\"\n [placeholder]=\"placeholder\"\n [maxlength]=\"maxLength\"\n [id]=\"inputId\"\n [(ngModel)]=\"newItem\"\n [pKeyFilter]=\"keyFilter\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputLostFocus($event)\">\n </ng-container>\n <ng-container *ngIf=\"!keyFilter\">\n <input\n #input\n [disabled]=\"disabled || max === value?.length\"\n [placeholder]=\"placeholder\"\n [maxlength]=\"maxLength\"\n [id]=\"inputId\"\n [(ngModel)]=\"newItem\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputLostFocus($event)\">\n </ng-container>\n</ul>\n<ng-container *ngIf=\"infoLabel\">\n <span class=\"info-label\">\n {{ infoLabel }}\n </span>\n</ng-container>\n",
|
|
20751
|
+
providers: [
|
|
20752
|
+
{
|
|
20753
|
+
provide: NG_VALUE_ACCESSOR,
|
|
20754
|
+
useExisting: forwardRef(function () { return ChipsComponent_1; }),
|
|
20755
|
+
multi: true
|
|
20756
|
+
}
|
|
20757
|
+
],
|
|
20758
|
+
styles: [".chips-container{width:100%;padding:8px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;border-radius:3px;border:1px solid #c1c1cc;background-color:#fff;list-style:none;gap:8px}.chips-container input{background-color:#fff;width:100%;border:none;min-height:2em;min-width:15%;-ms-flex:1;flex:1}.chips-container input:focus-visible{outline:0}.info-label{color:#888b99;font-size:12px;font-style:normal;font-weight:400}"]
|
|
20759
|
+
})
|
|
20760
|
+
], ChipsComponent);
|
|
20761
|
+
return ChipsComponent;
|
|
20762
|
+
}());
|
|
20763
|
+
|
|
20764
|
+
var ChipItemComponent = /** @class */ (function () {
|
|
20765
|
+
function ChipItemComponent() {
|
|
20766
|
+
this.disabled = false;
|
|
20767
|
+
this.itemIndex = -1;
|
|
20768
|
+
this.showTooltip = true;
|
|
20769
|
+
this.maxLengthRenderWithoutTooltip = 20;
|
|
20770
|
+
this.clickRemove = new EventEmitter();
|
|
20771
|
+
this.chipClicked = new EventEmitter();
|
|
20772
|
+
}
|
|
20773
|
+
ChipItemComponent.prototype.clickedRemove = function ($event) {
|
|
20774
|
+
this.clickRemove.emit({ index: this.itemIndex, event: $event });
|
|
20775
|
+
};
|
|
20776
|
+
ChipItemComponent.prototype.onChipClicked = function ($event) {
|
|
20777
|
+
this.chipClicked.emit({ event: $event, data: this.dataRender });
|
|
20778
|
+
};
|
|
20779
|
+
Object.defineProperty(ChipItemComponent.prototype, "_text", {
|
|
20780
|
+
get: function () {
|
|
20781
|
+
var _text = this._rawText;
|
|
20782
|
+
return _text.substring(0, _text.length > this.maxLengthRenderWithoutTooltip ? this.maxLengthRenderWithoutTooltip : _text.length) + (_text.length > this.maxLengthRenderWithoutTooltip ? '...' : '');
|
|
20783
|
+
},
|
|
20784
|
+
enumerable: true,
|
|
20785
|
+
configurable: true
|
|
20786
|
+
});
|
|
20787
|
+
Object.defineProperty(ChipItemComponent.prototype, "_rawText", {
|
|
20788
|
+
get: function () {
|
|
20789
|
+
return this.objectField ? this.dataRender[this.objectField] || '' : this.dataRender || '';
|
|
20790
|
+
},
|
|
20791
|
+
enumerable: true,
|
|
20792
|
+
configurable: true
|
|
20793
|
+
});
|
|
20794
|
+
__decorate([
|
|
20795
|
+
Input()
|
|
20796
|
+
], ChipItemComponent.prototype, "dataRender", void 0);
|
|
20797
|
+
__decorate([
|
|
20798
|
+
Input()
|
|
20799
|
+
], ChipItemComponent.prototype, "objectField", void 0);
|
|
20800
|
+
__decorate([
|
|
20801
|
+
Input()
|
|
20802
|
+
], ChipItemComponent.prototype, "disabled", void 0);
|
|
20803
|
+
__decorate([
|
|
20804
|
+
Input()
|
|
20805
|
+
], ChipItemComponent.prototype, "templateRef", void 0);
|
|
20806
|
+
__decorate([
|
|
20807
|
+
Input()
|
|
20808
|
+
], ChipItemComponent.prototype, "itemIndex", void 0);
|
|
20809
|
+
__decorate([
|
|
20810
|
+
Input()
|
|
20811
|
+
], ChipItemComponent.prototype, "showTooltip", void 0);
|
|
20812
|
+
__decorate([
|
|
20813
|
+
Input()
|
|
20814
|
+
], ChipItemComponent.prototype, "maxLengthRenderWithoutTooltip", void 0);
|
|
20815
|
+
__decorate([
|
|
20816
|
+
Output()
|
|
20817
|
+
], ChipItemComponent.prototype, "clickRemove", void 0);
|
|
20818
|
+
__decorate([
|
|
20819
|
+
Output()
|
|
20820
|
+
], ChipItemComponent.prototype, "chipClicked", void 0);
|
|
20821
|
+
__decorate([
|
|
20822
|
+
CheckDisabled()
|
|
20823
|
+
], ChipItemComponent.prototype, "clickedRemove", null);
|
|
20824
|
+
__decorate([
|
|
20825
|
+
CheckDisabled()
|
|
20826
|
+
], ChipItemComponent.prototype, "onChipClicked", null);
|
|
20827
|
+
ChipItemComponent = __decorate([
|
|
20828
|
+
Component({
|
|
20829
|
+
selector: 's-chip-item',
|
|
20830
|
+
template: "<ng-template #itemRender>\n <div\n class=\"chip-item\"\n [class.chip-item-disabled]=\"disabled\"\n (click)=\"onChipClicked($event)\"\n [sTooltip]=\"_rawText\"\n [showDelay]=\"0\"\n [visible]=\"showTooltip ? _rawText.length > maxLengthRenderWithoutTooltip : false\">\n <ng-container *ngIf=\"templateRef\">\n <ng-container *ngTemplateOutlet=\"templateRef; context: { $implicit: dataRender, text: _text }\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"!templateRef\">\n {{ _text }}\n </ng-container>\n <i class=\"fas fa-times\" (click)=\"clickedRemove($event)\"></i>\n </div>\n</ng-template>\n\n\n<ng-container *ngIf=\"objectField && !templateRef\">\n <ng-container *ngTemplateOutlet=\"itemRender;\"></ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"!objectField && !templateRef\">\n <ng-container *ngTemplateOutlet=\"itemRender;\"></ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"templateRef\">\n <ng-container *ngTemplateOutlet=\"itemRender\"></ng-container>\n</ng-container>\n",
|
|
20831
|
+
styles: [".chip-item{border-radius:4px;border:1px solid #888b99;background-color:#eeebf2;word-break:break-word;font-size:12px;font-weight:400;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;padding:0 8px}.chip-item i{cursor:pointer}.chip-item:hover:not(.chip-item-disabled){background:#c1c1cc}.chip-item-disabled{opacity:.5}.chip-item-disabled i{cursor:default}"]
|
|
20832
|
+
})
|
|
20833
|
+
], ChipItemComponent);
|
|
20834
|
+
return ChipItemComponent;
|
|
20835
|
+
}());
|
|
20836
|
+
|
|
20837
|
+
var ChipsModule = /** @class */ (function () {
|
|
20838
|
+
function ChipsModule() {
|
|
20839
|
+
}
|
|
20840
|
+
ChipsModule = __decorate([
|
|
20841
|
+
NgModule({
|
|
20842
|
+
declarations: [ChipsComponent, ChipItemComponent],
|
|
20843
|
+
imports: [
|
|
20844
|
+
CommonModule,
|
|
20845
|
+
FormsModule,
|
|
20846
|
+
TooltipModule,
|
|
20847
|
+
KeyFilterModule
|
|
20848
|
+
],
|
|
20849
|
+
exports: [ChipsComponent]
|
|
20850
|
+
})
|
|
20851
|
+
], ChipsModule);
|
|
20852
|
+
return ChipsModule;
|
|
20853
|
+
}());
|
|
20854
|
+
|
|
20500
20855
|
var fallback = {
|
|
20501
20856
|
"platform.angular_components.drag_your_photo_or": "Arraste sua foto ou",
|
|
20502
20857
|
"platform.angular_components.select_a_file": "selecione um arquivo",
|
|
@@ -20823,5 +21178,5 @@ var fallback = {
|
|
|
20823
21178
|
* Generated bundle index. Do not edit.
|
|
20824
21179
|
*/
|
|
20825
21180
|
|
|
20826
|
-
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, isNullOrUndefined, parseItensPickList, ɵ0$3 as ɵ0, ɵ1$2 as ɵ1, ɵ2$1 as ɵ2, ɵ3$1 as ɵ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 };
|
|
21181
|
+
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, CheckDisabled, CheckboxComponent, CheckboxModule, ChipsComponent, ChipsField, ChipsModule, 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, isNullOrUndefined, parseItensPickList, ɵ0$3 as ɵ0, ɵ1$2 as ɵ1, ɵ2$1 as ɵ2, ɵ3$1 as ɵ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, ChipItemComponent as ɵeg, 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 };
|
|
20827
21182
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|