@po-ui/ng-components 5.13.1 → 5.14.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/po-ui-ng-components.umd.js +102 -16
- package/bundles/po-ui-ng-components.umd.js.map +1 -1
- package/esm2015/lib/components/po-field/po-input/po-input-base.component.js +11 -3
- package/esm2015/lib/components/po-field/po-input/po-input.component.js +8 -6
- package/esm2015/lib/components/po-field/po-input-generic/po-input-generic.js +6 -5
- package/esm2015/lib/components/po-field/po-multiselect/po-multiselect-base.component.js +16 -5
- package/esm2015/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.js +42 -2
- package/esm2015/lib/components/po-field/po-multiselect/po-multiselect-item/po-multiselect-item.component.js +3 -3
- package/esm2015/lib/components/po-field/po-multiselect/po-multiselect-literals.interface.js +1 -1
- package/esm2015/lib/components/po-field/po-multiselect/po-multiselect-search/po-multiselect-search.component.js +4 -1
- package/esm2015/lib/components/po-field/po-multiselect/po-multiselect.component.js +2 -2
- package/fesm2015/po-ui-ng-components.js +81 -16
- package/fesm2015/po-ui-ng-components.js.map +1 -1
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +3 -1
- package/lib/components/po-field/po-input/po-input.component.d.ts +2 -2
- package/lib/components/po-field/po-input-generic/po-input-generic.d.ts +2 -2
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +10 -0
- package/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.d.ts +7 -0
- package/lib/components/po-field/po-multiselect/po-multiselect-item/po-multiselect-item.component.d.ts +1 -1
- package/lib/components/po-field/po-multiselect/po-multiselect-literals.interface.d.ts +2 -0
- package/lib/components/po-field/po-multiselect/po-multiselect-search/po-multiselect-search.component.d.ts +1 -0
- package/package.json +4 -4
- package/po-ui-ng-components-5.14.0.tgz +0 -0
- package/po-ui-ng-components.metadata.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/po-ui-ng-components-5.13.1.tgz +0 -0
|
@@ -17878,7 +17878,8 @@
|
|
|
17878
17878
|
*
|
|
17879
17879
|
*/
|
|
17880
17880
|
var PoInputBaseComponent = /** @class */ (function () {
|
|
17881
|
-
function PoInputBaseComponent() {
|
|
17881
|
+
function PoInputBaseComponent(cd) {
|
|
17882
|
+
this.cd = cd;
|
|
17882
17883
|
/**
|
|
17883
17884
|
* @optional
|
|
17884
17885
|
*
|
|
@@ -18146,7 +18147,9 @@
|
|
|
18146
18147
|
// Função implementada do ControlValueAccessor
|
|
18147
18148
|
// Usada para interceptar os estados de habilitado via forms api
|
|
18148
18149
|
PoInputBaseComponent.prototype.setDisabledState = function (isDisabled) {
|
|
18150
|
+
var _a;
|
|
18149
18151
|
this.disabled = isDisabled;
|
|
18152
|
+
(_a = this.cd) === null || _a === void 0 ? void 0 : _a.markForCheck();
|
|
18150
18153
|
};
|
|
18151
18154
|
// Função implementada do ControlValueAccessor
|
|
18152
18155
|
// Usada para interceptar as mudanças e não atualizar automaticamente o Model
|
|
@@ -18201,7 +18204,9 @@
|
|
|
18201
18204
|
};
|
|
18202
18205
|
// Função implementada do ControlValueAccessor
|
|
18203
18206
|
PoInputBaseComponent.prototype.writeValue = function (value) {
|
|
18207
|
+
var _a;
|
|
18204
18208
|
this.writeValueModel(value);
|
|
18209
|
+
(_a = this.cd) === null || _a === void 0 ? void 0 : _a.markForCheck();
|
|
18205
18210
|
};
|
|
18206
18211
|
PoInputBaseComponent.prototype.validateModel = function () {
|
|
18207
18212
|
if (this.validatorChange) {
|
|
@@ -18223,6 +18228,9 @@
|
|
|
18223
18228
|
PoInputBaseComponent.decorators = [
|
|
18224
18229
|
{ type: i0.Directive }
|
|
18225
18230
|
];
|
|
18231
|
+
PoInputBaseComponent.ctorParameters = function () { return [
|
|
18232
|
+
{ type: i0.ChangeDetectorRef }
|
|
18233
|
+
]; };
|
|
18226
18234
|
PoInputBaseComponent.propDecorators = {
|
|
18227
18235
|
autoFocus: [{ type: i0.Input, args: ['p-auto-focus',] }],
|
|
18228
18236
|
icon: [{ type: i0.Input, args: ['p-icon',] }],
|
|
@@ -18879,8 +18887,8 @@
|
|
|
18879
18887
|
/* eslint-disable @angular-eslint/directive-class-suffix */
|
|
18880
18888
|
var PoInputGeneric = /** @class */ (function (_super) {
|
|
18881
18889
|
__extends(PoInputGeneric, _super);
|
|
18882
|
-
function PoInputGeneric(el) {
|
|
18883
|
-
var _this = _super.call(this) || this;
|
|
18890
|
+
function PoInputGeneric(el, cd) {
|
|
18891
|
+
var _this = _super.call(this, cd) || this;
|
|
18884
18892
|
_this.type = 'text';
|
|
18885
18893
|
_this.el = el;
|
|
18886
18894
|
return _this;
|
|
@@ -19061,7 +19069,8 @@
|
|
|
19061
19069
|
{ type: i0.Directive }
|
|
19062
19070
|
];
|
|
19063
19071
|
PoInputGeneric.ctorParameters = function () { return [
|
|
19064
|
-
{ type: i0.ElementRef }
|
|
19072
|
+
{ type: i0.ElementRef },
|
|
19073
|
+
{ type: i0.ChangeDetectorRef }
|
|
19065
19074
|
]; };
|
|
19066
19075
|
PoInputGeneric.propDecorators = {
|
|
19067
19076
|
inputEl: [{ type: i0.ViewChild, args: ['inp', { read: i0.ElementRef, static: true },] }],
|
|
@@ -20778,6 +20787,8 @@
|
|
|
20778
20787
|
this.options = [];
|
|
20779
20788
|
/** Propriedade que recebe a lista de opções que deverão ser criadas no dropdown. */
|
|
20780
20789
|
this.visibleOptions = [];
|
|
20790
|
+
/** Propriedade que indica se o campo "Selecionar todos" deverá ser escondido. */
|
|
20791
|
+
this.hideSelectAll = false;
|
|
20781
20792
|
/** Evento disparado a cada tecla digitada na pesquisa. */
|
|
20782
20793
|
this.changeSearch = new i0.EventEmitter();
|
|
20783
20794
|
/** Evento disparado a cada alteração na lista das opções selecionadas. */
|
|
@@ -20816,6 +20827,19 @@
|
|
|
20816
20827
|
this.searchElement.setFocus();
|
|
20817
20828
|
}
|
|
20818
20829
|
};
|
|
20830
|
+
PoMultiselectDropdownComponent.prototype.onClickSelectAll = function () {
|
|
20831
|
+
var selectedValues = this.selectedOptions.map(function (_b) {
|
|
20832
|
+
var value = _b.value;
|
|
20833
|
+
return value;
|
|
20834
|
+
});
|
|
20835
|
+
if (this.everyVisibleOptionsSelected(selectedValues)) {
|
|
20836
|
+
this.selectedOptions = [];
|
|
20837
|
+
}
|
|
20838
|
+
else {
|
|
20839
|
+
this.selectedOptions = this.uniqueSelectedOptions(selectedValues);
|
|
20840
|
+
}
|
|
20841
|
+
this.change.emit(this.selectedOptions);
|
|
20842
|
+
};
|
|
20819
20843
|
PoMultiselectDropdownComponent.prototype.updateSelectedValues = function (checked, option) {
|
|
20820
20844
|
if (checked) {
|
|
20821
20845
|
this.selectedOptions.push(option);
|
|
@@ -20825,6 +20849,27 @@
|
|
|
20825
20849
|
}
|
|
20826
20850
|
this.change.emit(this.selectedOptions);
|
|
20827
20851
|
};
|
|
20852
|
+
PoMultiselectDropdownComponent.prototype.everyVisibleOptionsSelected = function (selectedValues) {
|
|
20853
|
+
return this.visibleOptions.every(function (visibleOption) { return selectedValues.includes(visibleOption.value); });
|
|
20854
|
+
};
|
|
20855
|
+
PoMultiselectDropdownComponent.prototype.someVisibleOptionsSelected = function (selectedValues) {
|
|
20856
|
+
return this.visibleOptions.some(function (visibleOption) { return selectedValues.includes(visibleOption.value); });
|
|
20857
|
+
};
|
|
20858
|
+
PoMultiselectDropdownComponent.prototype.getStateSelectAll = function () {
|
|
20859
|
+
var selectedValues = this.selectedOptions.map(function (_b) {
|
|
20860
|
+
var value = _b.value;
|
|
20861
|
+
return value;
|
|
20862
|
+
});
|
|
20863
|
+
if (this.everyVisibleOptionsSelected(selectedValues)) {
|
|
20864
|
+
return true;
|
|
20865
|
+
}
|
|
20866
|
+
else if (this.someVisibleOptionsSelected(selectedValues)) {
|
|
20867
|
+
return null;
|
|
20868
|
+
}
|
|
20869
|
+
else {
|
|
20870
|
+
return false;
|
|
20871
|
+
}
|
|
20872
|
+
};
|
|
20828
20873
|
PoMultiselectDropdownComponent.prototype.callChangeSearch = function (event) {
|
|
20829
20874
|
this.changeSearch.emit(event);
|
|
20830
20875
|
};
|
|
@@ -20838,12 +20883,32 @@
|
|
|
20838
20883
|
}
|
|
20839
20884
|
});
|
|
20840
20885
|
};
|
|
20886
|
+
PoMultiselectDropdownComponent.prototype.uniqueSelectedOptions = function (selectedValues) {
|
|
20887
|
+
var e_1, _b;
|
|
20888
|
+
var newSelectedOptions = __spreadArray([], __read(this.selectedOptions));
|
|
20889
|
+
try {
|
|
20890
|
+
for (var _c = __values(this.visibleOptions), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
20891
|
+
var visibleOption = _d.value;
|
|
20892
|
+
if (!selectedValues.includes(visibleOption.value)) {
|
|
20893
|
+
newSelectedOptions.push(visibleOption);
|
|
20894
|
+
}
|
|
20895
|
+
}
|
|
20896
|
+
}
|
|
20897
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
20898
|
+
finally {
|
|
20899
|
+
try {
|
|
20900
|
+
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
20901
|
+
}
|
|
20902
|
+
finally { if (e_1) throw e_1.error; }
|
|
20903
|
+
}
|
|
20904
|
+
return newSelectedOptions;
|
|
20905
|
+
};
|
|
20841
20906
|
return PoMultiselectDropdownComponent;
|
|
20842
20907
|
}());
|
|
20843
20908
|
PoMultiselectDropdownComponent.decorators = [
|
|
20844
20909
|
{ type: i0.Component, args: [{
|
|
20845
20910
|
selector: 'po-multiselect-dropdown',
|
|
20846
|
-
template: "<div #container class=\"po-multiselect-container\" [hidden]=\"!show\">\n <po-multiselect-search\n #searchElement\n *ngIf=\"!hideSearch\"\n [p-literals]=\"literals\"\n [p-placeholder]=\"placeholderSearch\"\n (p-change)=\"callChangeSearch($event)\"\n >\n </po-multiselect-search>\n\n <ul class=\"po-multiselect-items-container\" [scrollTop]=\"scrollTop\" #ulElement>\n <div *ngIf=\"!visibleOptions.length && !isServerSearching\" class=\"po-multiselect-container-no-data po-text-center\">\n <span> {{ literals.noData }}</span>\n </div>\n\n <div *ngIf=\"isServerSearching\" class=\"po-multiselect-container-loading po-text-center\">\n <po-loading></po-loading>\n </div>\n\n <ng-container *ngIf=\"!isServerSearching\">\n <po-multiselect-item\n *ngFor=\"let option of visibleOptions\"\n [p-label]=\"option.label\"\n [p-selected]=\"isSelectedItem(option)\"\n (p-change)=\"clickItem($event, option)\"\n >\n </po-multiselect-item>\n </ng-container>\n </ul>\n</div>\n"
|
|
20911
|
+
template: "<div #container class=\"po-multiselect-container\" [hidden]=\"!show\">\n <po-multiselect-search\n #searchElement\n *ngIf=\"!hideSearch\"\n [p-literals]=\"literals\"\n [p-placeholder]=\"placeholderSearch\"\n (p-change)=\"callChangeSearch($event)\"\n >\n </po-multiselect-search>\n\n <ul class=\"po-multiselect-items-container\" [scrollTop]=\"scrollTop\" #ulElement>\n <div *ngIf=\"!visibleOptions.length && !isServerSearching\" class=\"po-multiselect-container-no-data po-text-center\">\n <span> {{ literals.noData }}</span>\n </div>\n\n <div *ngIf=\"isServerSearching\" class=\"po-multiselect-container-loading po-text-center\">\n <po-loading></po-loading>\n </div>\n\n <ng-container *ngIf=\"!isServerSearching\">\n <po-multiselect-item\n *ngIf=\"!searchElement?.inputValue && visibleOptions.length && !hideSelectAll\"\n [p-label]=\"literals?.selectAll\"\n [p-selected]=\"getStateSelectAll()\"\n (p-change)=\"onClickSelectAll()\"\n >\n </po-multiselect-item>\n\n <po-multiselect-item\n *ngFor=\"let option of visibleOptions\"\n [p-label]=\"option.label\"\n [p-selected]=\"isSelectedItem(option)\"\n (p-change)=\"clickItem($event, option)\"\n >\n </po-multiselect-item>\n </ng-container>\n </ul>\n</div>\n"
|
|
20847
20912
|
},] }
|
|
20848
20913
|
];
|
|
20849
20914
|
PoMultiselectDropdownComponent.propDecorators = {
|
|
@@ -20854,6 +20919,7 @@
|
|
|
20854
20919
|
selectedOptions: [{ type: i0.Input, args: ['p-selected-options',] }],
|
|
20855
20920
|
options: [{ type: i0.Input, args: ['p-options',] }],
|
|
20856
20921
|
visibleOptions: [{ type: i0.Input, args: ['p-visible-options',] }],
|
|
20922
|
+
hideSelectAll: [{ type: i0.Input, args: ['p-hide-select-all',] }],
|
|
20857
20923
|
changeSearch: [{ type: i0.Output, args: ['p-change-search',] }],
|
|
20858
20924
|
change: [{ type: i0.Output, args: ['p-change',] }],
|
|
20859
20925
|
closeDropdown: [{ type: i0.Output, args: ['p-close-dropdown',] }],
|
|
@@ -20886,19 +20952,23 @@
|
|
|
20886
20952
|
var poMultiselectLiteralsDefault = {
|
|
20887
20953
|
en: {
|
|
20888
20954
|
noData: 'No data found',
|
|
20889
|
-
placeholderSearch: 'Search'
|
|
20955
|
+
placeholderSearch: 'Search',
|
|
20956
|
+
selectAll: 'Select all'
|
|
20890
20957
|
},
|
|
20891
20958
|
es: {
|
|
20892
20959
|
noData: 'Datos no encontrados',
|
|
20893
|
-
placeholderSearch: 'Busca'
|
|
20960
|
+
placeholderSearch: 'Busca',
|
|
20961
|
+
selectAll: 'Seleccionar todo'
|
|
20894
20962
|
},
|
|
20895
20963
|
pt: {
|
|
20896
20964
|
noData: 'Nenhum dado encontrado',
|
|
20897
|
-
placeholderSearch: 'Buscar'
|
|
20965
|
+
placeholderSearch: 'Buscar',
|
|
20966
|
+
selectAll: 'Selecionar todos'
|
|
20898
20967
|
},
|
|
20899
20968
|
ru: {
|
|
20900
20969
|
noData: 'Данные не найдены',
|
|
20901
|
-
placeholderSearch: 'искать'
|
|
20970
|
+
placeholderSearch: 'искать',
|
|
20971
|
+
selectAll: 'Выбрать все'
|
|
20902
20972
|
}
|
|
20903
20973
|
};
|
|
20904
20974
|
/**
|
|
@@ -21363,6 +21433,9 @@
|
|
|
21363
21433
|
});
|
|
21364
21434
|
this.visibleOptionsDropdown = newOptions_1;
|
|
21365
21435
|
}
|
|
21436
|
+
else {
|
|
21437
|
+
this.visibleOptionsDropdown = __spreadArray([], __read(options));
|
|
21438
|
+
}
|
|
21366
21439
|
};
|
|
21367
21440
|
PoMultiselectBaseComponent.prototype.compareMethod = function (search, option, filterMode) {
|
|
21368
21441
|
switch (filterMode) {
|
|
@@ -21463,6 +21536,7 @@
|
|
|
21463
21536
|
placeholder: [{ type: i0.Input, args: ['p-placeholder',] }],
|
|
21464
21537
|
placeholderSearch: [{ type: i0.Input, args: ['p-placeholder-search',] }],
|
|
21465
21538
|
name: [{ type: i0.Input, args: ['name',] }],
|
|
21539
|
+
hideSelectAll: [{ type: i0.Input, args: ['p-hide-select-all',] }],
|
|
21466
21540
|
change: [{ type: i0.Output, args: ['p-change',] }],
|
|
21467
21541
|
filterService: [{ type: i0.Input, args: ['p-filter-service',] }],
|
|
21468
21542
|
autoHeight: [{ type: i0.Input, args: ['p-auto-height',] }],
|
|
@@ -21480,6 +21554,9 @@
|
|
|
21480
21554
|
__decorate([
|
|
21481
21555
|
InputBoolean()
|
|
21482
21556
|
], PoMultiselectBaseComponent.prototype, "autoFocus", void 0);
|
|
21557
|
+
__decorate([
|
|
21558
|
+
InputBoolean()
|
|
21559
|
+
], PoMultiselectBaseComponent.prototype, "hideSelectAll", void 0);
|
|
21483
21560
|
__decorate([
|
|
21484
21561
|
InputBoolean()
|
|
21485
21562
|
], PoMultiselectBaseComponent.prototype, "autoHeight", null);
|
|
@@ -21879,7 +21956,7 @@
|
|
|
21879
21956
|
PoMultiselectComponent.decorators = [
|
|
21880
21957
|
{ type: i0.Component, args: [{
|
|
21881
21958
|
selector: 'po-multiselect',
|
|
21882
|
-
template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\" [class.po-multiselect-show]=\"dropdownOpen\">\n <div\n #inputElement\n [tabindex]=\"disabled ? -1 : 0\"\n class=\"po-input po-input-icon-right po-multiselect-input po-clickable\"\n [class.po-multiselect-input-auto]=\"autoHeight\"\n [class.po-multiselect-input-static]=\"!autoHeight\"\n [class.po-multiselect-input-disabled]=\"disabled\"\n (keyup.enter)=\"toggleDropdownVisibility()\"\n (keydown)=\"onKeyDown($event)\"\n (click)=\"toggleDropdownVisibility()\"\n (blur)=\"onBlur()\"\n >\n <span *ngIf=\"placeholder && !visibleDisclaimers?.length\" class=\"po-multiselect-input-placeholder\">\n {{ placeholder }}\n </span>\n\n <po-disclaimer\n *ngFor=\"let disclaimer of visibleDisclaimers\"\n class=\"po-multiselect-input-disclaimer\"\n [p-label]=\"disclaimer.label\"\n [p-value]=\"disclaimer.value\"\n [p-hide-close]=\"disclaimer.value === '' || disabled\"\n [class.po-clickable]=\"disclaimer.value === '' && !disabled\"\n (click)=\"openDropdown(disclaimer.value === '')\"\n (p-close-action)=\"closeDisclaimer(disclaimer.value)\"\n >\n </po-disclaimer>\n\n <div class=\"po-field-icon-container-right\">\n <span\n #iconElement\n class=\"po-icon po-field-icon {{ dropdownIcon }}\"\n [ngClass]=\"disabled ? 'po-field-icon-disabled' : ''\"\n >\n </span>\n </div>\n </div>\n </div>\n\n <po-multiselect-dropdown\n #dropdownElement\n [p-searching]=\"isServerSearching\"\n [p-hide-search]=\"hideSearch\"\n [p-literals]=\"literals\"\n [p-options]=\"options\"\n [p-visible-options]=\"visibleOptionsDropdown\"\n [p-selected-options]=\"selectedOptions\"\n [p-placeholder-search]=\"placeholderSearch\"\n (p-change)=\"changeItems($event)\"\n (p-change-search)=\"changeSearch($event)\"\n (p-close-dropdown)=\"controlDropdownVisibility(false)\"\n >\n </po-multiselect-dropdown>\n\n <po-field-container-bottom></po-field-container-bottom>\n</po-field-container>\n",
|
|
21959
|
+
template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-field-container-content\" [class.po-multiselect-show]=\"dropdownOpen\">\n <div\n #inputElement\n [tabindex]=\"disabled ? -1 : 0\"\n class=\"po-input po-input-icon-right po-multiselect-input po-clickable\"\n [class.po-multiselect-input-auto]=\"autoHeight\"\n [class.po-multiselect-input-static]=\"!autoHeight\"\n [class.po-multiselect-input-disabled]=\"disabled\"\n (keyup.enter)=\"toggleDropdownVisibility()\"\n (keydown)=\"onKeyDown($event)\"\n (click)=\"toggleDropdownVisibility()\"\n (blur)=\"onBlur()\"\n >\n <span *ngIf=\"placeholder && !visibleDisclaimers?.length\" class=\"po-multiselect-input-placeholder\">\n {{ placeholder }}\n </span>\n\n <po-disclaimer\n *ngFor=\"let disclaimer of visibleDisclaimers\"\n class=\"po-multiselect-input-disclaimer\"\n [p-label]=\"disclaimer.label\"\n [p-value]=\"disclaimer.value\"\n [p-hide-close]=\"disclaimer.value === '' || disabled\"\n [class.po-clickable]=\"disclaimer.value === '' && !disabled\"\n (click)=\"openDropdown(disclaimer.value === '')\"\n (p-close-action)=\"closeDisclaimer(disclaimer.value)\"\n >\n </po-disclaimer>\n\n <div class=\"po-field-icon-container-right\">\n <span\n #iconElement\n class=\"po-icon po-field-icon {{ dropdownIcon }}\"\n [ngClass]=\"disabled ? 'po-field-icon-disabled' : ''\"\n >\n </span>\n </div>\n </div>\n </div>\n\n <po-multiselect-dropdown\n #dropdownElement\n [p-searching]=\"isServerSearching\"\n [p-hide-search]=\"hideSearch\"\n [p-hide-select-all]=\"hideSelectAll\"\n [p-literals]=\"literals\"\n [p-options]=\"options\"\n [p-visible-options]=\"visibleOptionsDropdown\"\n [p-selected-options]=\"selectedOptions\"\n [p-placeholder-search]=\"placeholderSearch\"\n (p-change)=\"changeItems($event)\"\n (p-change-search)=\"changeSearch($event)\"\n (p-close-dropdown)=\"controlDropdownVisibility(false)\"\n >\n </po-multiselect-dropdown>\n\n <po-field-container-bottom></po-field-container-bottom>\n</po-field-container>\n",
|
|
21883
21960
|
providers: providers$1
|
|
21884
21961
|
},] }
|
|
21885
21962
|
];
|
|
@@ -21907,7 +21984,7 @@
|
|
|
21907
21984
|
*/
|
|
21908
21985
|
var PoMultiselectItemComponent = /** @class */ (function () {
|
|
21909
21986
|
function PoMultiselectItemComponent() {
|
|
21910
|
-
/** Esta propriedade indica se o campo está selecionado ou não. */
|
|
21987
|
+
/** Esta propriedade indica se o campo está selecionado, indenterminate ou não. */
|
|
21911
21988
|
this.selected = false;
|
|
21912
21989
|
/** Evento que será disparado toda vez que o usuário marcar ou desmarcar um item. */
|
|
21913
21990
|
this.change = new i0.EventEmitter();
|
|
@@ -21921,7 +21998,7 @@
|
|
|
21921
21998
|
PoMultiselectItemComponent.decorators = [
|
|
21922
21999
|
{ type: i0.Component, args: [{
|
|
21923
22000
|
selector: 'po-multiselect-item',
|
|
21924
|
-
template: "<li [class.po-multiselect-item-selected]=\"selected\" (click)=\"itemClicked()\">\n <a class=\"po-multiselect-item\">\n <input\n [checked]=\"selected\"\n class=\"po-multiselect-checkbox-input\"\n [class.po-multiselect-checkbox-input-checked]=\"selected\"\n type=\"checkbox\"\n />\n\n <label class=\"po-multiselect-checkbox-label po-clickable\">\n {{ label }}\n </label>\n </a>\n</li>\n",
|
|
22001
|
+
template: "<li [class.po-multiselect-item-selected]=\"selected\" (click)=\"itemClicked()\">\n <a class=\"po-multiselect-item\">\n <input\n [checked]=\"selected\"\n class=\"po-multiselect-checkbox-input\"\n [class.po-multiselect-checkbox-input-indeterminate]=\"selected === null\"\n [class.po-multiselect-checkbox-input-checked]=\"selected\"\n type=\"checkbox\"\n />\n\n <label class=\"po-multiselect-checkbox-label po-clickable\">\n {{ label }}\n </label>\n </a>\n</li>\n",
|
|
21925
22002
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
21926
22003
|
},] }
|
|
21927
22004
|
];
|
|
@@ -21964,6 +22041,13 @@
|
|
|
21964
22041
|
enumerable: false,
|
|
21965
22042
|
configurable: true
|
|
21966
22043
|
});
|
|
22044
|
+
Object.defineProperty(PoMultiselectSearchComponent.prototype, "inputValue", {
|
|
22045
|
+
get: function () {
|
|
22046
|
+
return this.inputElement.nativeElement.value;
|
|
22047
|
+
},
|
|
22048
|
+
enumerable: false,
|
|
22049
|
+
configurable: true
|
|
22050
|
+
});
|
|
21967
22051
|
PoMultiselectSearchComponent.prototype.onChange = function (event) {
|
|
21968
22052
|
this.change.emit({ event: event, value: this.inputElement.nativeElement.value });
|
|
21969
22053
|
};
|
|
@@ -23192,8 +23276,8 @@
|
|
|
23192
23276
|
var PoInputComponent = /** @class */ (function (_super) {
|
|
23193
23277
|
__extends(PoInputComponent, _super);
|
|
23194
23278
|
/* istanbul ignore next */
|
|
23195
|
-
function PoInputComponent(el) {
|
|
23196
|
-
return _super.call(this, el) || this;
|
|
23279
|
+
function PoInputComponent(el, cd) {
|
|
23280
|
+
return _super.call(this, el, cd) || this;
|
|
23197
23281
|
}
|
|
23198
23282
|
PoInputComponent.prototype.extraValidation = function (c) {
|
|
23199
23283
|
return null;
|
|
@@ -23215,11 +23299,13 @@
|
|
|
23215
23299
|
useExisting: i0.forwardRef(function () { return PoInputComponent; }),
|
|
23216
23300
|
multi: true
|
|
23217
23301
|
}
|
|
23218
|
-
]
|
|
23302
|
+
],
|
|
23303
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
23219
23304
|
},] }
|
|
23220
23305
|
];
|
|
23221
23306
|
PoInputComponent.ctorParameters = function () { return [
|
|
23222
|
-
{ type: i0.ElementRef }
|
|
23307
|
+
{ type: i0.ElementRef },
|
|
23308
|
+
{ type: i0.ChangeDetectorRef }
|
|
23223
23309
|
]; };
|
|
23224
23310
|
|
|
23225
23311
|
var PoNumberBaseComponent = /** @class */ (function (_super) {
|