@po-ui/ng-components 18.2.0 → 18.4.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/esm2022/lib/components/po-field/po-combo/po-combo-base.component.mjs +2 -1
- package/esm2022/lib/components/po-field/po-combo/po-combo.component.mjs +66 -47
- package/esm2022/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.mjs +8 -4
- package/esm2022/lib/components/po-field/po-multiselect/po-multiselect.component.mjs +52 -34
- package/esm2022/lib/components/po-listbox/po-listbox-base.component.mjs +6 -2
- package/esm2022/lib/components/po-listbox/po-listbox.component.mjs +23 -5
- package/esm2022/lib/components/po-loading/po-loading-overlay/po-loading-overlay-base.component.mjs +10 -4
- package/esm2022/lib/components/po-tabs/po-tabs.component.mjs +2 -3
- package/esm2022/lib/services/po-theme/po-theme.service.mjs +10 -1
- package/fesm2022/po-ui-ng-components.mjs +194 -116
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +1 -0
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +3 -0
- package/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.d.ts +2 -1
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +3 -0
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +2 -1
- package/lib/components/po-listbox/po-listbox.component.d.ts +2 -0
- package/lib/components/po-loading/po-loading-overlay/po-loading-overlay-base.component.d.ts +9 -3
- package/lib/services/po-theme/po-theme.service.d.ts +9 -0
- package/package.json +4 -4
- package/po-ui-ng-components-18.4.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v17/index.js +1 -1
- package/schematics/ng-update/v18/index.js +2 -2
- 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/schematics/ng-update/v6/index.js +1 -1
- package/po-ui-ng-components-18.2.0.tgz +0 -0
|
@@ -2566,7 +2566,7 @@ class PoTooltipDirective extends PoTooltipBaseDirective {
|
|
|
2566
2566
|
const _c0$1I = ["tagContainer"];
|
|
2567
2567
|
const _c1$I = ["tagClose"];
|
|
2568
2568
|
const _c2$l = ["poTag"];
|
|
2569
|
-
const _c3$
|
|
2569
|
+
const _c3$g = a0 => ({ "color": a0 });
|
|
2570
2570
|
function PoTagComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
2571
2571
|
i0.ɵɵelementStart(0, "div", 13)(1, "span", 14);
|
|
2572
2572
|
i0.ɵɵtext(2);
|
|
@@ -2580,7 +2580,7 @@ function PoTagComponent_po_icon_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
2580
2580
|
i0.ɵɵelement(0, "po-icon", 15);
|
|
2581
2581
|
} if (rf & 2) {
|
|
2582
2582
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
2583
|
-
i0.ɵɵproperty("p-icon", !ctx_r1.type ? ctx_r1.icon : ctx_r1.iconFromType)("ngStyle", !ctx_r1.type && ctx_r1.customTextColor ? i0.ɵɵpureFunction1(2, _c3$
|
|
2583
|
+
i0.ɵɵproperty("p-icon", !ctx_r1.type ? ctx_r1.icon : ctx_r1.iconFromType)("ngStyle", !ctx_r1.type && ctx_r1.customTextColor ? i0.ɵɵpureFunction1(2, _c3$g, ctx_r1.customTextColor) : "");
|
|
2584
2584
|
} }
|
|
2585
2585
|
function PoTagComponent_po_icon_12_Template(rf, ctx) { if (rf & 1) {
|
|
2586
2586
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
@@ -2731,7 +2731,7 @@ class PoTagComponent extends PoTagBaseComponent {
|
|
|
2731
2731
|
i0.ɵɵadvance();
|
|
2732
2732
|
i0.ɵɵproperty("p-tooltip", ctx.getWidthTag() ? ctx.value : "");
|
|
2733
2733
|
i0.ɵɵadvance(2);
|
|
2734
|
-
i0.ɵɵproperty("ngStyle", !ctx.type && ctx.customTextColor && !ctx.removable ? i0.ɵɵpureFunction1(20, _c3$
|
|
2734
|
+
i0.ɵɵproperty("ngStyle", !ctx.type && ctx.customTextColor && !ctx.removable ? i0.ɵɵpureFunction1(20, _c3$g, ctx.customTextColor) : "");
|
|
2735
2735
|
i0.ɵɵadvance();
|
|
2736
2736
|
i0.ɵɵtextInterpolate(ctx.value);
|
|
2737
2737
|
i0.ɵɵadvance();
|
|
@@ -4823,6 +4823,7 @@ class PoListBoxBaseComponent {
|
|
|
4823
4823
|
shouldMarkLetters = true;
|
|
4824
4824
|
compareCache = false;
|
|
4825
4825
|
comboService;
|
|
4826
|
+
containerWidth;
|
|
4826
4827
|
// Evento disparado quando uma tab é ativada
|
|
4827
4828
|
activatedTab = new EventEmitter();
|
|
4828
4829
|
// Evento disparado no click de uma aba do tabs
|
|
@@ -4832,7 +4833,7 @@ class PoListBoxBaseComponent {
|
|
|
4832
4833
|
this.language = languageService.getShortLanguage();
|
|
4833
4834
|
}
|
|
4834
4835
|
static ɵfac = function PoListBoxBaseComponent_Factory(t) { return new (t || PoListBoxBaseComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
4835
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoListBoxBaseComponent, inputs: { visible: [2, "p-visible", "visible", convertToBoolean], type: [0, "p-type", "type"], items: [0, "p-items", "items"], literals: [0, "p-literals", "literals"], isTabs: [2, "p-is-tabs", "isTabs", convertToBoolean], param: [0, "p-param", "param"], checkboxAllValue: [0, "p-checkboxAllValue", "checkboxAllValue"], selectedOptions: [0, "p-selected-options", "selectedOptions"], selectedOption: [0, "p-selected-option", "selectedOption"], fieldValue: [0, "p-field-value", "fieldValue"], fieldLabel: [0, "p-field-label", "fieldLabel"], literalSearch: [0, "p-literal-search", "literalSearch"], fieldValueSearch: [0, "p-field-value-search", "fieldValueSearch"], hideSearch: [0, "p-hide-search", "hideSearch"], hideSelectAll: [0, "p-hide-select-all", "hideSelectAll"], multiselectTemplate: [0, "p-multiselect-template", "multiselectTemplate"], template: [0, "p-template", "template"], placeholderSearch: [0, "p-placeholder-search", "placeholderSearch"], searchValue: [0, "p-search-value", "searchValue"], isServerSearching: [2, "p-is-searching", "isServerSearching", convertToBoolean], infiniteLoading: [2, "p-infinite-loading", "infiniteLoading", convertToBoolean], infiniteScroll: [2, "p-infinite-scroll", "infiniteScroll", convertToBoolean], cache: [2, "p-cache", "cache", convertToBoolean], infiniteScrollDistance: [0, "p-infinite-scroll-distance", "infiniteScrollDistance"], filterMode: [0, "p-filter-mode", "filterMode"], isFiltering: [0, "p-filtering", "isFiltering"], shouldMarkLetters: [0, "p-should-mark-letter", "shouldMarkLetters"], compareCache: [0, "p-compare-cache", "compareCache"], comboService: [0, "p-combo-service", "comboService"] }, outputs: { selectItem: "p-select-item", closeEvent: "p-close", change: "p-change", selectCombo: "p-selectcombo-item", changeAll: "p-change-all", UpdateInfiniteScroll: "p-update-infinite-scroll", changeSearch: "p-change-search", activatedTab: "p-activated-tabs", clickTab: "p-click-tabs", changeStateTabs: "p-change-state-tabs" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
4836
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoListBoxBaseComponent, inputs: { visible: [2, "p-visible", "visible", convertToBoolean], type: [0, "p-type", "type"], items: [0, "p-items", "items"], literals: [0, "p-literals", "literals"], isTabs: [2, "p-is-tabs", "isTabs", convertToBoolean], param: [0, "p-param", "param"], checkboxAllValue: [0, "p-checkboxAllValue", "checkboxAllValue"], selectedOptions: [0, "p-selected-options", "selectedOptions"], selectedOption: [0, "p-selected-option", "selectedOption"], fieldValue: [0, "p-field-value", "fieldValue"], fieldLabel: [0, "p-field-label", "fieldLabel"], literalSearch: [0, "p-literal-search", "literalSearch"], fieldValueSearch: [0, "p-field-value-search", "fieldValueSearch"], hideSearch: [0, "p-hide-search", "hideSearch"], hideSelectAll: [0, "p-hide-select-all", "hideSelectAll"], multiselectTemplate: [0, "p-multiselect-template", "multiselectTemplate"], template: [0, "p-template", "template"], placeholderSearch: [0, "p-placeholder-search", "placeholderSearch"], searchValue: [0, "p-search-value", "searchValue"], isServerSearching: [2, "p-is-searching", "isServerSearching", convertToBoolean], infiniteLoading: [2, "p-infinite-loading", "infiniteLoading", convertToBoolean], infiniteScroll: [2, "p-infinite-scroll", "infiniteScroll", convertToBoolean], cache: [2, "p-cache", "cache", convertToBoolean], infiniteScrollDistance: [0, "p-infinite-scroll-distance", "infiniteScrollDistance"], filterMode: [0, "p-filter-mode", "filterMode"], isFiltering: [0, "p-filtering", "isFiltering"], shouldMarkLetters: [0, "p-should-mark-letter", "shouldMarkLetters"], compareCache: [0, "p-compare-cache", "compareCache"], comboService: [0, "p-combo-service", "comboService"], containerWidth: [0, "p-container-width", "containerWidth"] }, outputs: { selectItem: "p-select-item", closeEvent: "p-close", change: "p-change", selectCombo: "p-selectcombo-item", changeAll: "p-change-all", UpdateInfiniteScroll: "p-update-infinite-scroll", changeSearch: "p-change-search", activatedTab: "p-activated-tabs", clickTab: "p-click-tabs", changeStateTabs: "p-change-state-tabs" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
4836
4837
|
}
|
|
4837
4838
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoListBoxBaseComponent, [{
|
|
4838
4839
|
type: Directive
|
|
@@ -4944,6 +4945,9 @@ class PoListBoxBaseComponent {
|
|
|
4944
4945
|
}], comboService: [{
|
|
4945
4946
|
type: Input,
|
|
4946
4947
|
args: ['p-combo-service']
|
|
4948
|
+
}], containerWidth: [{
|
|
4949
|
+
type: Input,
|
|
4950
|
+
args: ['p-container-width']
|
|
4947
4951
|
}], activatedTab: [{
|
|
4948
4952
|
type: Output,
|
|
4949
4953
|
args: ['p-activated-tabs']
|
|
@@ -5008,7 +5012,7 @@ class PoLoadingOverlayBaseComponent {
|
|
|
5008
5012
|
*
|
|
5009
5013
|
* @description
|
|
5010
5014
|
*
|
|
5011
|
-
* Define se o *overlay* será aplicado a um *container* ou
|
|
5015
|
+
* Define se o *overlay* será aplicado a um *container* ou à página inteira.
|
|
5012
5016
|
*
|
|
5013
5017
|
* Para utilizar o componente como um *container*, o elemento pai deverá receber uma posição relativa, por exemplo:
|
|
5014
5018
|
*
|
|
@@ -5038,7 +5042,7 @@ class PoLoadingOverlayBaseComponent {
|
|
|
5038
5042
|
*
|
|
5039
5043
|
* Texto a ser exibido no componente.
|
|
5040
5044
|
*
|
|
5041
|
-
* > O valor padrão será traduzido acordo com o idioma configurado no [**PoI18n**](/documentation/po-i18n) ou navegador.
|
|
5045
|
+
* > O valor padrão será traduzido de acordo com o idioma configurado no [**PoI18n**](/documentation/po-i18n) ou navegador.
|
|
5042
5046
|
*
|
|
5043
5047
|
* @default `Carregando`
|
|
5044
5048
|
*/
|
|
@@ -5053,7 +5057,13 @@ class PoLoadingOverlayBaseComponent {
|
|
|
5053
5057
|
*
|
|
5054
5058
|
* @description
|
|
5055
5059
|
*
|
|
5056
|
-
* Define o
|
|
5060
|
+
* Define o tamanho do componente com base no tamanho do ícone de *loading*.
|
|
5061
|
+
*
|
|
5062
|
+
* Tamanhos disponíveis para o *loading*:
|
|
5063
|
+
* - `xs`: 16px
|
|
5064
|
+
* - `sm`: 24px
|
|
5065
|
+
* - `md`: 48px
|
|
5066
|
+
* - `lg`: 80px (valor padrão)
|
|
5057
5067
|
*
|
|
5058
5068
|
* @default `lg`
|
|
5059
5069
|
*/
|
|
@@ -6368,7 +6378,7 @@ class PoSearchListComponent {
|
|
|
6368
6378
|
const _c0$1z = ["listbox"];
|
|
6369
6379
|
const _c1$F = ["listboxItemList"];
|
|
6370
6380
|
const _c2$k = ["searchElement"];
|
|
6371
|
-
const _c3$
|
|
6381
|
+
const _c3$f = [[["", "p-popup-header-template", ""]]];
|
|
6372
6382
|
const _c4$5 = ["[p-popup-header-template]"];
|
|
6373
6383
|
function PoListBoxComponent_po_search_list_3_Template(rf, ctx) { if (rf & 1) {
|
|
6374
6384
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -6450,6 +6460,8 @@ function PoListBoxComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
6450
6460
|
} if (rf & 2) {
|
|
6451
6461
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
6452
6462
|
i0.ɵɵclassProp("po-listbox-container-loading-default", !ctx_r1.infiniteLoading);
|
|
6463
|
+
i0.ɵɵadvance();
|
|
6464
|
+
i0.ɵɵproperty("p-size", ctx_r1.getSizeLoading())("p-text", ctx_r1.getTextLoading());
|
|
6453
6465
|
} }
|
|
6454
6466
|
function PoListBoxComponent_ng_template_6_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
6455
6467
|
i0.ɵɵelementStart(0, "div", 21)(1, "span");
|
|
@@ -6597,6 +6609,22 @@ class PoListBoxComponent extends PoListBoxBaseComponent {
|
|
|
6597
6609
|
this.includeInfiniteScroll();
|
|
6598
6610
|
}
|
|
6599
6611
|
}
|
|
6612
|
+
getSizeLoading() {
|
|
6613
|
+
const width = this.listbox.nativeElement.offsetWidth || this.containerWidth;
|
|
6614
|
+
if (width > 180) {
|
|
6615
|
+
return 'md';
|
|
6616
|
+
}
|
|
6617
|
+
else if (width >= 140) {
|
|
6618
|
+
return 'sm';
|
|
6619
|
+
}
|
|
6620
|
+
else {
|
|
6621
|
+
return 'xs';
|
|
6622
|
+
}
|
|
6623
|
+
}
|
|
6624
|
+
getTextLoading() {
|
|
6625
|
+
const width = this.listbox.nativeElement.offsetWidth || this.containerWidth;
|
|
6626
|
+
return width < 140 ? ' ' : '';
|
|
6627
|
+
}
|
|
6600
6628
|
hasInfiniteScroll() {
|
|
6601
6629
|
this.changeDetector.detectChanges();
|
|
6602
6630
|
return this.infiniteScroll && this.listboxItemList?.nativeElement.scrollHeight;
|
|
@@ -6667,11 +6695,11 @@ class PoListBoxComponent extends PoListBoxBaseComponent {
|
|
|
6667
6695
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.listbox = _t.first);
|
|
6668
6696
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.listboxItemList = _t.first);
|
|
6669
6697
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.searchElement = _t.first);
|
|
6670
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c4$5, decls: 8, vars: 8, consts: [["listbox", ""], ["noDataTemplate", ""], ["searchElement", ""], ["listboxItemList", ""], [1, "po-listbox", 3, "hidden"], [3, "p-literals", "p-field-value", "p-placeholder", "p-change", 4, "ngIf"], [4, "ngIf", "ngIfElse"], [3, "po-listbox-container-loading-default", 4, "ngIf"], [3, "p-change", "p-literals", "p-field-value", "p-placeholder"], ["cdkListbox", "", 1, "po-listbox-list", 3, "cdkListboxMultiple"], ["cdkOption", "selectAll", 3, "click", "keydown", 4, "ngIf"], [3, "po-listbox-item", "cdkOption", "cdkOptionDisabled", "click", "keydown", 4, "ngFor", "ngForOf"], ["cdkOption", "selectAll", 3, "click", "keydown"], ["p-type", "check", "p-value", "selectAll", 3, "p-selected", "p-label", "p-checkbox-value"], [3, "click", "keydown", "cdkOption", "cdkOptionDisabled"], ["class", "po-combo-item-title", 4, "ngIf"], [3, "p-disabled", "p-visible", "p-checkbox-value", "p-label", "p-value", "p-selected", "p-active-tabs", "p-separator", "p-danger", "p-icon", "p-type", "p-item", "p-tab-hide", "p-is-tabs", "p-field-value", "p-field-label", "p-template", "p-template-context", "p-search-value", "p-filter-mode", "p-filtering", "p-should-mark-letter", "p-compare-cache", "p-combo-service", "p-selectcheckbox-item", "p-selectcombo-item", "p-emit-item-tabs", "p-activated-tabs", 4, "ngIf"], [1, "po-combo-item-title"], [3, "p-selectcheckbox-item", "p-selectcombo-item", "p-emit-item-tabs", "p-activated-tabs", "p-disabled", "p-visible", "p-checkbox-value", "p-label", "p-value", "p-selected", "p-active-tabs", "p-separator", "p-danger", "p-icon", "p-type", "p-item", "p-tab-hide", "p-is-tabs", "p-field-value", "p-field-label", "p-template", "p-template-context", "p-search-value", "p-filter-mode", "p-filtering", "p-should-mark-letter", "p-compare-cache", "p-combo-service"], ["p-size", "
|
|
6671
|
-
i0.ɵɵprojectionDef(_c3$
|
|
6698
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c4$5, decls: 8, vars: 8, consts: [["listbox", ""], ["noDataTemplate", ""], ["searchElement", ""], ["listboxItemList", ""], [1, "po-listbox", 3, "hidden"], [3, "p-literals", "p-field-value", "p-placeholder", "p-change", 4, "ngIf"], [4, "ngIf", "ngIfElse"], [3, "po-listbox-container-loading-default", 4, "ngIf"], [3, "p-change", "p-literals", "p-field-value", "p-placeholder"], ["cdkListbox", "", 1, "po-listbox-list", 3, "cdkListboxMultiple"], ["cdkOption", "selectAll", 3, "click", "keydown", 4, "ngIf"], [3, "po-listbox-item", "cdkOption", "cdkOptionDisabled", "click", "keydown", 4, "ngFor", "ngForOf"], ["cdkOption", "selectAll", 3, "click", "keydown"], ["p-type", "check", "p-value", "selectAll", 3, "p-selected", "p-label", "p-checkbox-value"], [3, "click", "keydown", "cdkOption", "cdkOptionDisabled"], ["class", "po-combo-item-title", 4, "ngIf"], [3, "p-disabled", "p-visible", "p-checkbox-value", "p-label", "p-value", "p-selected", "p-active-tabs", "p-separator", "p-danger", "p-icon", "p-type", "p-item", "p-tab-hide", "p-is-tabs", "p-field-value", "p-field-label", "p-template", "p-template-context", "p-search-value", "p-filter-mode", "p-filtering", "p-should-mark-letter", "p-compare-cache", "p-combo-service", "p-selectcheckbox-item", "p-selectcombo-item", "p-emit-item-tabs", "p-activated-tabs", 4, "ngIf"], [1, "po-combo-item-title"], [3, "p-selectcheckbox-item", "p-selectcombo-item", "p-emit-item-tabs", "p-activated-tabs", "p-disabled", "p-visible", "p-checkbox-value", "p-label", "p-value", "p-selected", "p-active-tabs", "p-separator", "p-danger", "p-icon", "p-type", "p-item", "p-tab-hide", "p-is-tabs", "p-field-value", "p-field-label", "p-template", "p-template-context", "p-search-value", "p-filter-mode", "p-filtering", "p-should-mark-letter", "p-compare-cache", "p-combo-service"], [3, "p-size", "p-text"], ["class", "po-listbox-container-no-data po-text-center", 4, "ngIf"], [1, "po-listbox-container-no-data", "po-text-center"]], template: function PoListBoxComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6699
|
+
i0.ɵɵprojectionDef(_c3$f);
|
|
6672
6700
|
i0.ɵɵelementStart(0, "div", 4, 0);
|
|
6673
6701
|
i0.ɵɵprojection(2);
|
|
6674
|
-
i0.ɵɵtemplate(3, PoListBoxComponent_po_search_list_3_Template, 2, 3, "po-search-list", 5)(4, PoListBoxComponent_ng_container_4_Template, 5, 3, "ng-container", 6)(5, PoListBoxComponent_div_5_Template, 2,
|
|
6702
|
+
i0.ɵɵtemplate(3, PoListBoxComponent_po_search_list_3_Template, 2, 3, "po-search-list", 5)(4, PoListBoxComponent_ng_container_4_Template, 5, 3, "ng-container", 6)(5, PoListBoxComponent_div_5_Template, 2, 4, "div", 7)(6, PoListBoxComponent_ng_template_6_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
6675
6703
|
i0.ɵɵelementEnd();
|
|
6676
6704
|
} if (rf & 2) {
|
|
6677
6705
|
const noDataTemplate_r7 = i0.ɵɵreference(7);
|
|
@@ -6688,7 +6716,7 @@ class PoListBoxComponent extends PoListBoxBaseComponent {
|
|
|
6688
6716
|
}
|
|
6689
6717
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoListBoxComponent, [{
|
|
6690
6718
|
type: Component,
|
|
6691
|
-
args: [{ selector: 'po-listbox', template: "<div\n #listbox\n class=\"po-listbox\"\n [class.po-listbox-check]=\"type === 'check' || type === 'option'\"\n [attr.data-type]=\"type\"\n [hidden]=\"visible\"\n>\n <ng-content select=\"[p-popup-header-template]\"></ng-content>\n\n <po-search-list\n #searchElement\n *ngIf=\"!hideSearch && type === 'check'\"\n (p-change)=\"callChangeSearch($event)\"\n [p-literals]=\"literalSearch\"\n [p-field-value]=\"fieldValueSearch\"\n [p-placeholder]=\"placeholderSearch\"\n ></po-search-list>\n\n <ng-container *ngIf=\"checkTemplate(); else noDataTemplate\">\n <ul #listboxItemList cdkListbox [cdkListboxMultiple]=\"type === 'check'\" class=\"po-listbox-list\">\n <li\n cdkOption=\"selectAll\"\n *ngIf=\"type === 'check' && items.length && !searchElement?.inputValue && !hideSelectAll\"\n [attr.aria-checked]=\"checkboxAllValue === null ? 'mixed' : checkboxAllValue\"\n (click)=\"changeAll.emit()\"\n (keydown)=\"changeAllEmit($event)\"\n (keydown)=\"onSelectAllCheckboxKeyDown($event)\"\n >\n <po-item-list\n [p-selected]=\"checkboxAllValue\"\n p-type=\"check\"\n [p-label]=\"literals.selectAll\"\n p-value=\"selectAll\"\n [p-checkbox-value]=\"checkboxAllValue\"\n >\n </po-item-list>\n </li>\n <li\n [class.po-listbox-item]=\"visible\"\n *ngFor=\"let item of items\"\n [cdkOption]=\"item[fieldLabel]\"\n [cdkOptionDisabled]=\"\n returnBooleanValue(item, 'disabled') || returnBooleanValue(item, 'visible') === false || item.options\n \"\n [attr.aria-selected]=\"isSelectedItem(item) || item.selected\"\n (click)=\"onSelectItem(item)\"\n (keydown)=\"onKeyDown(item, $event)\"\n >\n <label *ngIf=\"item.options\" class=\"po-combo-item-title\">\n {{ item.label }}\n </label>\n <po-item-list\n *ngIf=\"returnBooleanValue(item, 'visible') !== false && !item.options\"\n [p-disabled]=\"returnBooleanValue(item, 'disabled')\"\n [p-visible]=\"returnBooleanValue(item, 'visible')\"\n [p-checkbox-value]=\"isSelectedItem(item)\"\n [attr.data-item-list]=\"formatItemList(item)\"\n [p-label]=\"item[fieldLabel]\"\n [p-value]=\"item[fieldValue]\"\n [p-selected]=\"isSelectedItem(item) || item.selected\"\n [p-active-tabs]=\"item.active\"\n [p-separator]=\"item.separator\"\n [p-danger]=\"item.danger || item.type === 'danger'\"\n [p-icon]=\"item.icon\"\n [p-type]=\"type\"\n [p-item]=\"item\"\n [p-tab-hide]=\"item.hide\"\n [p-is-tabs]=\"isTabs\"\n [p-field-value]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n [p-template]=\"template\"\n [p-template-context]=\"item\"\n (p-selectcheckbox-item)=\"checkboxClicked($event)\"\n (p-selectcombo-item)=\"optionClicked(item)\"\n (p-emit-item-tabs)=\"onSelectTabs($event)\"\n (p-activated-tabs)=\"onActivatedTabs($event)\"\n [p-search-value]=\"searchValue\"\n [p-filter-mode]=\"filterMode\"\n [p-filtering]=\"isFiltering\"\n [p-should-mark-letter]=\"shouldMarkLetters\"\n [p-compare-cache]=\"compareCache\"\n [p-combo-service]=\"comboService\"\n ></po-item-list>\n </li>\n </ul>\n </ng-container>\n\n <div *ngIf=\"isServerSearching && type !== 'action'\" [class.po-listbox-container-loading-default]=\"!infiniteLoading\">\n <po-loading-overlay p-size=\"
|
|
6719
|
+
args: [{ selector: 'po-listbox', template: "<div\n #listbox\n class=\"po-listbox\"\n [class.po-listbox-check]=\"type === 'check' || type === 'option'\"\n [attr.data-type]=\"type\"\n [hidden]=\"visible\"\n>\n <ng-content select=\"[p-popup-header-template]\"></ng-content>\n\n <po-search-list\n #searchElement\n *ngIf=\"!hideSearch && type === 'check'\"\n (p-change)=\"callChangeSearch($event)\"\n [p-literals]=\"literalSearch\"\n [p-field-value]=\"fieldValueSearch\"\n [p-placeholder]=\"placeholderSearch\"\n ></po-search-list>\n\n <ng-container *ngIf=\"checkTemplate(); else noDataTemplate\">\n <ul #listboxItemList cdkListbox [cdkListboxMultiple]=\"type === 'check'\" class=\"po-listbox-list\">\n <li\n cdkOption=\"selectAll\"\n *ngIf=\"type === 'check' && items.length && !searchElement?.inputValue && !hideSelectAll\"\n [attr.aria-checked]=\"checkboxAllValue === null ? 'mixed' : checkboxAllValue\"\n (click)=\"changeAll.emit()\"\n (keydown)=\"changeAllEmit($event)\"\n (keydown)=\"onSelectAllCheckboxKeyDown($event)\"\n >\n <po-item-list\n [p-selected]=\"checkboxAllValue\"\n p-type=\"check\"\n [p-label]=\"literals.selectAll\"\n p-value=\"selectAll\"\n [p-checkbox-value]=\"checkboxAllValue\"\n >\n </po-item-list>\n </li>\n <li\n [class.po-listbox-item]=\"visible\"\n *ngFor=\"let item of items\"\n [cdkOption]=\"item[fieldLabel]\"\n [cdkOptionDisabled]=\"\n returnBooleanValue(item, 'disabled') || returnBooleanValue(item, 'visible') === false || item.options\n \"\n [attr.aria-selected]=\"isSelectedItem(item) || item.selected\"\n (click)=\"onSelectItem(item)\"\n (keydown)=\"onKeyDown(item, $event)\"\n >\n <label *ngIf=\"item.options\" class=\"po-combo-item-title\">\n {{ item.label }}\n </label>\n <po-item-list\n *ngIf=\"returnBooleanValue(item, 'visible') !== false && !item.options\"\n [p-disabled]=\"returnBooleanValue(item, 'disabled')\"\n [p-visible]=\"returnBooleanValue(item, 'visible')\"\n [p-checkbox-value]=\"isSelectedItem(item)\"\n [attr.data-item-list]=\"formatItemList(item)\"\n [p-label]=\"item[fieldLabel]\"\n [p-value]=\"item[fieldValue]\"\n [p-selected]=\"isSelectedItem(item) || item.selected\"\n [p-active-tabs]=\"item.active\"\n [p-separator]=\"item.separator\"\n [p-danger]=\"item.danger || item.type === 'danger'\"\n [p-icon]=\"item.icon\"\n [p-type]=\"type\"\n [p-item]=\"item\"\n [p-tab-hide]=\"item.hide\"\n [p-is-tabs]=\"isTabs\"\n [p-field-value]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n [p-template]=\"template\"\n [p-template-context]=\"item\"\n (p-selectcheckbox-item)=\"checkboxClicked($event)\"\n (p-selectcombo-item)=\"optionClicked(item)\"\n (p-emit-item-tabs)=\"onSelectTabs($event)\"\n (p-activated-tabs)=\"onActivatedTabs($event)\"\n [p-search-value]=\"searchValue\"\n [p-filter-mode]=\"filterMode\"\n [p-filtering]=\"isFiltering\"\n [p-should-mark-letter]=\"shouldMarkLetters\"\n [p-compare-cache]=\"compareCache\"\n [p-combo-service]=\"comboService\"\n ></po-item-list>\n </li>\n </ul>\n </ng-container>\n\n <div *ngIf=\"isServerSearching && type !== 'action'\" [class.po-listbox-container-loading-default]=\"!infiniteLoading\">\n <po-loading-overlay [p-size]=\"getSizeLoading()\" [p-text]=\"getTextLoading()\"></po-loading-overlay>\n </div>\n\n <ng-template #noDataTemplate>\n <div\n *ngIf=\"!items.length && !isServerSearching && type !== 'action'\"\n class=\"po-listbox-container-no-data po-text-center\"\n >\n <span> {{ literals.noItems }}</span>\n </div>\n </ng-template>\n</div>\n" }]
|
|
6692
6720
|
}], () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: PoLanguageService }, { type: i2.Router }, { type: i0.ChangeDetectorRef }], { listbox: [{
|
|
6693
6721
|
type: ViewChild,
|
|
6694
6722
|
args: ['listbox', { static: true }]
|
|
@@ -6699,12 +6727,12 @@ class PoListBoxComponent extends PoListBoxBaseComponent {
|
|
|
6699
6727
|
type: ViewChild,
|
|
6700
6728
|
args: ['searchElement']
|
|
6701
6729
|
}] }); })();
|
|
6702
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoListBoxComponent, { className: "PoListBoxComponent", filePath: "lib/components/po-listbox/po-listbox.component.ts", lineNumber:
|
|
6730
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoListBoxComponent, { className: "PoListBoxComponent", filePath: "lib/components/po-listbox/po-listbox.component.ts", lineNumber: 27 }); })();
|
|
6703
6731
|
|
|
6704
6732
|
const _c0$1y = ["popupRef"];
|
|
6705
6733
|
const _c1$E = ["listbox"];
|
|
6706
6734
|
const _c2$j = ["poListBoxRef"];
|
|
6707
|
-
const _c3$
|
|
6735
|
+
const _c3$e = [[["", "p-popup-header-template", ""]]];
|
|
6708
6736
|
const _c4$4 = ["[p-popup-header-template]"];
|
|
6709
6737
|
function PoPopupComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
6710
6738
|
i0.ɵɵelement(0, "div");
|
|
@@ -6902,7 +6930,7 @@ class PoPopupComponent extends PoPopupBaseComponent {
|
|
|
6902
6930
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.listbox = _t.first);
|
|
6903
6931
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poListBoxRef = _t.first);
|
|
6904
6932
|
} }, features: [i0.ɵɵProvidersFeature([PoControlPositionService]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c4$4, decls: 1, vars: 1, consts: [["popupRef", ""], ["listbox", "", "poListBoxRef", ""], ["class", "po-popup", 4, "ngIf"], [1, "po-popup"], [3, "class", 4, "ngIf"], [1, "po-popup-container"], ["p-type", "action", 3, "p-close", "p-items", "p-param"], ["p-popup-header-template", ""]], template: function PoPopupComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6905
|
-
i0.ɵɵprojectionDef(_c3$
|
|
6933
|
+
i0.ɵɵprojectionDef(_c3$e);
|
|
6906
6934
|
i0.ɵɵtemplate(0, PoPopupComponent_div_0_Template, 9, 3, "div", 2);
|
|
6907
6935
|
} if (rf & 2) {
|
|
6908
6936
|
i0.ɵɵproperty("ngIf", ctx.showPopup && ctx.actions.length && !ctx.checkAllActionIsInvisible());
|
|
@@ -7098,7 +7126,7 @@ class PoBreadcrumbFavoriteComponent {
|
|
|
7098
7126
|
const _c0$1x = ["breadcrumb"];
|
|
7099
7127
|
const _c1$D = ["dropdownIcon"];
|
|
7100
7128
|
const _c2$i = ["target"];
|
|
7101
|
-
const _c3$
|
|
7129
|
+
const _c3$d = ["popup"];
|
|
7102
7130
|
function PoBreadcrumbComponent_ul_3_Template(rf, ctx) { if (rf & 1) {
|
|
7103
7131
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
7104
7132
|
i0.ɵɵelementStart(0, "ul", 9, 1)(2, "li")(3, "po-link", 10);
|
|
@@ -7366,7 +7394,7 @@ class PoBreadcrumbComponent extends PoBreadcrumbBaseComponent {
|
|
|
7366
7394
|
i0.ɵɵviewQuery(_c0$1x, 7, ElementRef);
|
|
7367
7395
|
i0.ɵɵviewQuery(_c1$D, 5, ElementRef);
|
|
7368
7396
|
i0.ɵɵviewQuery(_c2$i, 5, ElementRef);
|
|
7369
|
-
i0.ɵɵviewQuery(_c3$
|
|
7397
|
+
i0.ɵɵviewQuery(_c3$d, 5);
|
|
7370
7398
|
} if (rf & 2) {
|
|
7371
7399
|
let _t;
|
|
7372
7400
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.breadcrumbElement = _t.first);
|
|
@@ -12471,7 +12499,7 @@ class PoResizeObserverDirective {
|
|
|
12471
12499
|
const _c0$1c = ["chartContainer"];
|
|
12472
12500
|
const _c1$x = ["chartHeader"];
|
|
12473
12501
|
const _c2$h = ["chartLegend"];
|
|
12474
|
-
const _c3$
|
|
12502
|
+
const _c3$c = ["chartWrapper"];
|
|
12475
12503
|
function PoChartComponent_ng_template_7_Template(rf, ctx) { }
|
|
12476
12504
|
function PoChartComponent_div_9_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
12477
12505
|
i0.ɵɵelementContainer(0);
|
|
@@ -12667,7 +12695,7 @@ class PoChartComponent extends PoChartBaseComponent {
|
|
|
12667
12695
|
i0.ɵɵviewQuery(_c0$1c, 7, ViewContainerRef);
|
|
12668
12696
|
i0.ɵɵviewQuery(_c1$x, 7);
|
|
12669
12697
|
i0.ɵɵviewQuery(_c2$h, 5, ElementRef);
|
|
12670
|
-
i0.ɵɵviewQuery(_c3$
|
|
12698
|
+
i0.ɵɵviewQuery(_c3$c, 7);
|
|
12671
12699
|
} if (rf & 2) {
|
|
12672
12700
|
let _t;
|
|
12673
12701
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chartContainer = _t.first);
|
|
@@ -13710,7 +13738,7 @@ class PoDropdownBaseComponent {
|
|
|
13710
13738
|
const _c0$19 = ["dropdownRef"];
|
|
13711
13739
|
const _c1$w = ["popupRef"];
|
|
13712
13740
|
const _c2$g = (a0, a1) => ({ "po-dropdown-button-disabled": a0, "po-dropdown-button-open": a1 });
|
|
13713
|
-
const _c3$
|
|
13741
|
+
const _c3$b = () => ["bottom-left", "top-left"];
|
|
13714
13742
|
/**
|
|
13715
13743
|
* @docsExtends PoDropdownBaseComponent
|
|
13716
13744
|
*
|
|
@@ -13832,7 +13860,7 @@ class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
|
13832
13860
|
i0.ɵɵadvance();
|
|
13833
13861
|
i0.ɵɵproperty("p-icon", ctx.icon);
|
|
13834
13862
|
i0.ɵɵadvance();
|
|
13835
|
-
i0.ɵɵproperty("p-actions", ctx.actions)("p-custom-positions", i0.ɵɵpureFunction0(11, _c3$
|
|
13863
|
+
i0.ɵɵproperty("p-actions", ctx.actions)("p-custom-positions", i0.ɵɵpureFunction0(11, _c3$b))("p-target", dropdownRef_r2);
|
|
13836
13864
|
} }, dependencies: [i1.NgClass, PoPopupComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
13837
13865
|
}
|
|
13838
13866
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDropdownComponent, [{
|
|
@@ -16492,7 +16520,7 @@ const PoDatepickerLiterals = {
|
|
|
16492
16520
|
const _c0$14 = ["calendar"];
|
|
16493
16521
|
const _c1$t = ["dialogPicker"];
|
|
16494
16522
|
const _c2$f = ["iconDatepicker"];
|
|
16495
|
-
const _c3$
|
|
16523
|
+
const _c3$a = ["inp"];
|
|
16496
16524
|
function PoDatepickerComponent_po_clean_6_Template(rf, ctx) { if (rf & 1) {
|
|
16497
16525
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
16498
16526
|
i0.ɵɵelementStart(0, "po-clean", 14);
|
|
@@ -16843,7 +16871,7 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
|
|
|
16843
16871
|
i0.ɵɵviewQuery(_c0$14, 7);
|
|
16844
16872
|
i0.ɵɵviewQuery(_c1$t, 7, ElementRef);
|
|
16845
16873
|
i0.ɵɵviewQuery(_c2$f, 5);
|
|
16846
|
-
i0.ɵɵviewQuery(_c3$
|
|
16874
|
+
i0.ɵɵviewQuery(_c3$a, 7, ElementRef);
|
|
16847
16875
|
} if (rf & 2) {
|
|
16848
16876
|
let _t;
|
|
16849
16877
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.calendar = _t.first);
|
|
@@ -17239,7 +17267,7 @@ class PoActiveOverlayService {
|
|
|
17239
17267
|
const _c0$12 = ["modalContent"];
|
|
17240
17268
|
const _c1$s = ["modalContainer"];
|
|
17241
17269
|
const _c2$e = ["*", [["po-modal-footer"]]];
|
|
17242
|
-
const _c3$
|
|
17270
|
+
const _c3$9 = ["*", "po-modal-footer"];
|
|
17243
17271
|
function PoModalComponent_div_0_po_icon_9_Template(rf, ctx) { if (rf & 1) {
|
|
17244
17272
|
i0.ɵɵelement(0, "po-icon", 16);
|
|
17245
17273
|
} if (rf & 2) {
|
|
@@ -17425,7 +17453,7 @@ class PoModalComponent extends PoModalBaseComponent {
|
|
|
17425
17453
|
let _t;
|
|
17426
17454
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.modalContent = _t.first);
|
|
17427
17455
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.modalContainer = _t.first);
|
|
17428
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c3$
|
|
17456
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c3$9, decls: 1, vars: 1, consts: [["modalContainer", ""], ["modalContent", ""], ["defaultModalFooterTemplate", ""], ["class", "po-modal", "tabindex", "0", 3, "keydown.esc", 4, "ngIf"], ["tabindex", "0", 1, "po-modal", 3, "keydown.esc"], [1, "po-modal-overlay", 3, "mousedown"], [1, "po-modal-container", "po-pb-2", "po-pt-2"], [1, "po-modal-vertical-align"], ["tabindex", "-1"], [1, "po-modal-header"], [1, "po-modal-title", "po-text-ellipsis"], [3, "p-icon", 4, "ngIf"], [1, "po-text-ellipsis"], ["p-icon", "ICON_CLOSE", "p-kind", "tertiary", 3, "p-aria-label", "p-click", 4, "ngIf"], [1, "po-modal-body"], [4, "ngIf", "ngIfElse"], [3, "p-icon"], ["p-icon", "ICON_CLOSE", "p-kind", "tertiary", 3, "p-click", "p-aria-label"], [1, "po-modal-footer-basic"], ["p-kind", "secondary", 3, "p-danger", "p-disabled", "p-label", "p-loading", "p-click", 4, "ngIf"], ["p-kind", "primary", 1, "po-button-modal-first-action", 3, "p-click", "p-danger", "p-disabled", "p-label", "p-loading"], ["p-kind", "secondary", 3, "p-click", "p-danger", "p-disabled", "p-label", "p-loading"]], template: function PoModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17429
17457
|
i0.ɵɵprojectionDef(_c2$e);
|
|
17430
17458
|
i0.ɵɵtemplate(0, PoModalComponent_div_0_Template, 18, 8, "div", 3);
|
|
17431
17459
|
} if (rf & 2) {
|
|
@@ -19094,6 +19122,15 @@ const poThemeDefault = {
|
|
|
19094
19122
|
*
|
|
19095
19123
|
* > Obs.: Não está documentado aqui e não indicamos a customização das cores de 'feedback' por motivos de acessibilidade e usabilidade.
|
|
19096
19124
|
*/
|
|
19125
|
+
/**
|
|
19126
|
+
* @example
|
|
19127
|
+
*
|
|
19128
|
+
* <example name="po-theme-labs" title="PO Theme Labs">
|
|
19129
|
+
* <file name="sample-po-theme-labs/sample-po-theme-labs.component.html"> </file>
|
|
19130
|
+
* <file name="sample-po-theme-labs/sample-po-theme-labs.component.ts"> </file>
|
|
19131
|
+
* </example>
|
|
19132
|
+
*
|
|
19133
|
+
*/
|
|
19097
19134
|
class PoThemeService {
|
|
19098
19135
|
window;
|
|
19099
19136
|
document;
|
|
@@ -23461,9 +23498,9 @@ class PoTableRowTemplateDirective {
|
|
|
23461
23498
|
const _c0$V = ["noColumnsHeader"];
|
|
23462
23499
|
const _c1$o = ["popup"];
|
|
23463
23500
|
const _c2$c = ["tableFooter"];
|
|
23464
|
-
const _c3$
|
|
23501
|
+
const _c3$8 = ["tableWrapper"];
|
|
23465
23502
|
const _c4$3 = ["tableTemplate"];
|
|
23466
|
-
const _c5 = ["tableVirtualScroll"];
|
|
23503
|
+
const _c5$1 = ["tableVirtualScroll"];
|
|
23467
23504
|
const _c6 = ["columnManager"];
|
|
23468
23505
|
const _c7 = ["columnBatchActions"];
|
|
23469
23506
|
const _c8 = ["columnActionLeft"];
|
|
@@ -25644,9 +25681,9 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
25644
25681
|
i0.ɵɵviewQuery(_c1$o, 5);
|
|
25645
25682
|
i0.ɵɵviewQuery(PoModalComponent, 7);
|
|
25646
25683
|
i0.ɵɵviewQuery(_c2$c, 5, ElementRef);
|
|
25647
|
-
i0.ɵɵviewQuery(_c3$
|
|
25684
|
+
i0.ɵɵviewQuery(_c3$8, 5, ElementRef);
|
|
25648
25685
|
i0.ɵɵviewQuery(_c4$3, 5, ElementRef);
|
|
25649
|
-
i0.ɵɵviewQuery(_c5, 5, ElementRef);
|
|
25686
|
+
i0.ɵɵviewQuery(_c5$1, 5, ElementRef);
|
|
25650
25687
|
i0.ɵɵviewQuery(_c6, 5, ElementRef);
|
|
25651
25688
|
i0.ɵɵviewQuery(_c7, 5, ElementRef);
|
|
25652
25689
|
i0.ɵɵviewQuery(_c8, 5, ElementRef);
|
|
@@ -26583,6 +26620,7 @@ const PO_COMBO_FIELD_VALUE_DEFAULT = 'value';
|
|
|
26583
26620
|
* | `--color` | Cor principal do Combo | `var(--color-neutral-dark-70)` |
|
|
26584
26621
|
* | `--background` | Cor de background | `var(--color-neutral-light-05)` |
|
|
26585
26622
|
* | `--border-radius` | Contém o valor do raio dos cantos do elemento | `var(--border-width-lg)` |
|
|
26623
|
+
* | `--min-width` | Largura mínima do combo | `150px`
|
|
26586
26624
|
* | **Hover** | | |
|
|
26587
26625
|
* | `--color-hover` | Cor principal no estado hover | `var(--color-action-hover)` |
|
|
26588
26626
|
* | `--background-hover` | Cor de background no estado hover | `var(--color-brand-01-lightest)` |
|
|
@@ -27678,14 +27716,15 @@ class PoComboFilterService {
|
|
|
27678
27716
|
type: Injectable
|
|
27679
27717
|
}], () => [{ type: i1$2.HttpClient }], null); })();
|
|
27680
27718
|
|
|
27681
|
-
const _c0$U = ["
|
|
27682
|
-
const _c1$n = ["
|
|
27683
|
-
const _c2$b = ["
|
|
27684
|
-
const _c3$
|
|
27685
|
-
const _c4$2 = ["
|
|
27686
|
-
|
|
27687
|
-
|
|
27688
|
-
i0.ɵɵ
|
|
27719
|
+
const _c0$U = ["outerContainer"];
|
|
27720
|
+
const _c1$n = ["containerElement"];
|
|
27721
|
+
const _c2$b = ["contentElement"];
|
|
27722
|
+
const _c3$7 = ["iconArrow"];
|
|
27723
|
+
const _c4$2 = ["inp"];
|
|
27724
|
+
const _c5 = ["poListbox"];
|
|
27725
|
+
function PoComboComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
27726
|
+
i0.ɵɵelementStart(0, "div", 19);
|
|
27727
|
+
i0.ɵɵelement(1, "po-icon", 20);
|
|
27689
27728
|
i0.ɵɵelementEnd();
|
|
27690
27729
|
} if (rf & 2) {
|
|
27691
27730
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -27693,56 +27732,56 @@ function PoComboComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
27693
27732
|
i0.ɵɵclassProp("po-field-icon-disabled", ctx_r1.disabled);
|
|
27694
27733
|
i0.ɵɵproperty("p-icon", ctx_r1.icon);
|
|
27695
27734
|
} }
|
|
27696
|
-
function
|
|
27735
|
+
function PoComboComponent_po_clean_9_Template(rf, ctx) { if (rf & 1) {
|
|
27697
27736
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
27698
|
-
i0.ɵɵelementStart(0, "po-clean",
|
|
27699
|
-
i0.ɵɵlistener("p-change-event", function
|
|
27737
|
+
i0.ɵɵelementStart(0, "po-clean", 21);
|
|
27738
|
+
i0.ɵɵlistener("p-change-event", function PoComboComponent_po_clean_9_Template_po_clean_p_change_event_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.clear($event)); })("click", function PoComboComponent_po_clean_9_Template_po_clean_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); ctx_r1.clear(null); return i0.ɵɵresetView($event.preventDefault()); })("keydown.enter", function PoComboComponent_po_clean_9_Template_po_clean_keydown_enter_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); ctx_r1.clearAndFocus(); return i0.ɵɵresetView($event.preventDefault()); });
|
|
27700
27739
|
i0.ɵɵelementEnd();
|
|
27701
27740
|
} if (rf & 2) {
|
|
27702
27741
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
27703
27742
|
i0.ɵɵproperty("p-element-ref", ctx_r1.inputEl);
|
|
27704
27743
|
i0.ɵɵattribute("aria-label", ctx_r1.literals.clean);
|
|
27705
27744
|
} }
|
|
27706
|
-
function
|
|
27745
|
+
function PoComboComponent_ng_container_13_Template(rf, ctx) { if (rf & 1) {
|
|
27707
27746
|
i0.ɵɵelementContainer(0);
|
|
27708
27747
|
} }
|
|
27709
|
-
function
|
|
27748
|
+
function PoComboComponent_ng_template_14_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
27710
27749
|
i0.ɵɵelementContainer(0);
|
|
27711
27750
|
} }
|
|
27712
|
-
function
|
|
27713
|
-
i0.ɵɵtemplate(0,
|
|
27751
|
+
function PoComboComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
|
|
27752
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_14_ng_container_0_Template, 1, 0, "ng-container", 22);
|
|
27714
27753
|
} if (rf & 2) {
|
|
27715
27754
|
i0.ɵɵnextContext();
|
|
27716
|
-
const dropdownListbox_r4 = i0.ɵɵreference(
|
|
27755
|
+
const dropdownListbox_r4 = i0.ɵɵreference(20);
|
|
27717
27756
|
i0.ɵɵproperty("ngTemplateOutlet", dropdownListbox_r4);
|
|
27718
27757
|
} }
|
|
27719
|
-
function
|
|
27758
|
+
function PoComboComponent_ng_template_16_ng_template_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
27720
27759
|
i0.ɵɵelementContainer(0);
|
|
27721
27760
|
} }
|
|
27722
|
-
function
|
|
27723
|
-
i0.ɵɵtemplate(0,
|
|
27761
|
+
function PoComboComponent_ng_template_16_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
27762
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_16_ng_template_0_ng_container_0_Template, 1, 0, "ng-container", 22);
|
|
27724
27763
|
} if (rf & 2) {
|
|
27725
27764
|
i0.ɵɵnextContext(2);
|
|
27726
|
-
const dropdownListbox_r4 = i0.ɵɵreference(
|
|
27765
|
+
const dropdownListbox_r4 = i0.ɵɵreference(20);
|
|
27727
27766
|
i0.ɵɵproperty("ngTemplateOutlet", dropdownListbox_r4);
|
|
27728
27767
|
} }
|
|
27729
|
-
function
|
|
27730
|
-
i0.ɵɵtemplate(0,
|
|
27768
|
+
function PoComboComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
27769
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_16_ng_template_0_Template, 1, 1, "ng-template", 23);
|
|
27731
27770
|
} if (rf & 2) {
|
|
27732
27771
|
i0.ɵɵnextContext();
|
|
27733
|
-
const trigger_r5 = i0.ɵɵreference(
|
|
27772
|
+
const trigger_r5 = i0.ɵɵreference(4);
|
|
27734
27773
|
i0.ɵɵproperty("cdkConnectedOverlayOrigin", trigger_r5)("cdkConnectedOverlayOpen", true);
|
|
27735
27774
|
} }
|
|
27736
|
-
function
|
|
27775
|
+
function PoComboComponent_ng_template_19_Template(rf, ctx) { if (rf & 1) {
|
|
27737
27776
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
27738
|
-
i0.ɵɵelementStart(0, "div",
|
|
27739
|
-
i0.ɵɵlistener("p-selectcombo-item", function
|
|
27777
|
+
i0.ɵɵelementStart(0, "div", 24, 7)(2, "po-listbox", 25, 8);
|
|
27778
|
+
i0.ɵɵlistener("p-selectcombo-item", function PoComboComponent_ng_template_19_Template_po_listbox_p_selectcombo_item_2_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOptionClick($event, $event.event)); })("p-update-infinite-scroll", function PoComboComponent_ng_template_19_Template_po_listbox_p_update_infinite_scroll_2_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.showMoreInfiniteScroll()); })("p-close", function PoComboComponent_ng_template_19_Template_po_listbox_p_close_2_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onCloseCombo()); });
|
|
27740
27779
|
i0.ɵɵelementEnd()();
|
|
27741
27780
|
} if (rf & 2) {
|
|
27742
27781
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
27743
27782
|
i0.ɵɵproperty("hidden", !ctx_r1.comboOpen && !ctx_r1.isServerSearching);
|
|
27744
27783
|
i0.ɵɵadvance(2);
|
|
27745
|
-
i0.ɵɵproperty("p-items", ctx_r1.visibleOptions)("p-field-value", ctx_r1.dynamicValue)("p-field-label", ctx_r1.dynamicLabel)("p-template", ctx_r1.comboOptionTemplate)("p-search-value", ctx_r1.getInputValue())("p-infinite-loading", ctx_r1.infiniteLoading)("p-infinite-scroll", ctx_r1.infiniteScroll)("p-filtering", ctx_r1.isFiltering)("p-cache", ctx_r1.cache)("p-filter-mode", ctx_r1.filterMode)("p-visible", ctx_r1.comboOpen)("p-is-searching", ctx_r1.isServerSearching)("p-should-mark-letter", ctx_r1.shouldMarkLetters)("p-compare-cache", ctx_r1.compareObjects(ctx_r1.cacheOptions, ctx_r1.visibleOptions))("p-combo-service", ctx_r1.service)("p-infinite-scroll-distance", ctx_r1.infiniteScrollDistance);
|
|
27784
|
+
i0.ɵɵproperty("p-items", ctx_r1.visibleOptions)("p-field-value", ctx_r1.dynamicValue)("p-field-label", ctx_r1.dynamicLabel)("p-template", ctx_r1.comboOptionTemplate)("p-search-value", ctx_r1.getInputValue())("p-infinite-loading", ctx_r1.infiniteLoading)("p-infinite-scroll", ctx_r1.infiniteScroll)("p-filtering", ctx_r1.isFiltering)("p-cache", ctx_r1.cache)("p-filter-mode", ctx_r1.filterMode)("p-visible", ctx_r1.comboOpen)("p-is-searching", ctx_r1.isServerSearching)("p-should-mark-letter", ctx_r1.shouldMarkLetters)("p-compare-cache", ctx_r1.compareObjects(ctx_r1.cacheOptions, ctx_r1.visibleOptions))("p-combo-service", ctx_r1.service)("p-infinite-scroll-distance", ctx_r1.infiniteScrollDistance)("p-container-width", ctx_r1.containerWidth);
|
|
27746
27785
|
} }
|
|
27747
27786
|
const poComboContainerOffset = 8;
|
|
27748
27787
|
const poComboContainerPositionDefault = 'bottom';
|
|
@@ -27801,6 +27840,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
27801
27840
|
changeDetector;
|
|
27802
27841
|
controlPosition;
|
|
27803
27842
|
comboOptionTemplate;
|
|
27843
|
+
outerContainer;
|
|
27804
27844
|
containerElement;
|
|
27805
27845
|
contentElement;
|
|
27806
27846
|
iconElement;
|
|
@@ -27814,6 +27854,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
27814
27854
|
scrollTop = 0;
|
|
27815
27855
|
shouldMarkLetters = true;
|
|
27816
27856
|
infiniteLoading = false;
|
|
27857
|
+
containerWidth;
|
|
27817
27858
|
_isServerSearching = false;
|
|
27818
27859
|
lastKey;
|
|
27819
27860
|
clickoutListener;
|
|
@@ -27849,6 +27890,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
27849
27890
|
if (this.autoFocus) {
|
|
27850
27891
|
this.focus();
|
|
27851
27892
|
}
|
|
27893
|
+
this.setContainerWidth();
|
|
27852
27894
|
}
|
|
27853
27895
|
ngOnChanges(changes) {
|
|
27854
27896
|
if (changes.debounceTime) {
|
|
@@ -28224,6 +28266,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
28224
28266
|
? this.renderer.addClass(this.inputEl.nativeElement, 'po-combo-input-focus')
|
|
28225
28267
|
: this.inputEl.nativeElement.focus();
|
|
28226
28268
|
this.setContainerPosition();
|
|
28269
|
+
if (this.comboOpen) {
|
|
28270
|
+
this.setContainerWidth();
|
|
28271
|
+
}
|
|
28227
28272
|
}
|
|
28228
28273
|
removeListeners() {
|
|
28229
28274
|
if (this.clickoutListener) {
|
|
@@ -28238,6 +28283,11 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
28238
28283
|
this.controlPosition.setElements(this.containerElement.nativeElement, poComboContainerOffset, this.inputEl, ['top', 'bottom'], true);
|
|
28239
28284
|
this.adjustContainerPosition();
|
|
28240
28285
|
}
|
|
28286
|
+
setContainerWidth() {
|
|
28287
|
+
if (this.outerContainer) {
|
|
28288
|
+
this.containerWidth = this.outerContainer.nativeElement.offsetWidth;
|
|
28289
|
+
}
|
|
28290
|
+
}
|
|
28241
28291
|
setOptions() {
|
|
28242
28292
|
return this.getInputValue() ? this.options : [];
|
|
28243
28293
|
}
|
|
@@ -28273,11 +28323,13 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
28273
28323
|
} }, viewQuery: function PoComboComponent_Query(rf, ctx) { if (rf & 1) {
|
|
28274
28324
|
i0.ɵɵviewQuery(_c0$U, 5, ElementRef);
|
|
28275
28325
|
i0.ɵɵviewQuery(_c1$n, 5, ElementRef);
|
|
28276
|
-
i0.ɵɵviewQuery(_c2$b,
|
|
28277
|
-
i0.ɵɵviewQuery(_c3$
|
|
28278
|
-
i0.ɵɵviewQuery(_c4$2,
|
|
28326
|
+
i0.ɵɵviewQuery(_c2$b, 5, ElementRef);
|
|
28327
|
+
i0.ɵɵviewQuery(_c3$7, 7, ElementRef);
|
|
28328
|
+
i0.ɵɵviewQuery(_c4$2, 7, ElementRef);
|
|
28329
|
+
i0.ɵɵviewQuery(_c5, 5);
|
|
28279
28330
|
} if (rf & 2) {
|
|
28280
28331
|
let _t;
|
|
28332
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.outerContainer = _t.first);
|
|
28281
28333
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerElement = _t.first);
|
|
28282
28334
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentElement = _t.first);
|
|
28283
28335
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconElement = _t.first);
|
|
@@ -28296,27 +28348,29 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
28296
28348
|
useExisting: forwardRef(() => PoComboComponent),
|
|
28297
28349
|
multi: true
|
|
28298
28350
|
}
|
|
28299
|
-
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls:
|
|
28351
|
+
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 21, vars: 30, consts: [["outerContainer", ""], ["trigger", "cdkOverlayOrigin"], ["inp", ""], ["iconArrow", ""], ["dropdownDefault", ""], ["dropdownCDK", ""], ["dropdownListbox", ""], ["containerElement", ""], ["poListbox", "", "contentElement", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], ["cdkOverlayOrigin", "", 1, "po-field-container-content", "po-combo-container-content"], ["class", "po-field-icon-container-left", 4, "ngIf"], ["autocomplete", "off", "type", "text", 1, "po-combo-input", 3, "click", "keyup", "blur", "keydown", "ngClass", "disabled", "id", "placeholder", "required"], [1, "po-field-icon-container-right"], ["tabindex", "0", "role", "button", "class", "po-combo-clean po-icon-input", 3, "p-element-ref", "p-change-event", "click", "keydown.enter", 4, "ngIf"], [1, "po-combo-arrow", "po-field-icon", 3, "click"], [3, "p-icon"], [4, "ngIf", "ngIfThen", "ngIfElse"], [3, "p-help", "p-disabled"], [1, "po-field-icon-container-left"], [1, "po-field-icon", "po-icon-input", 3, "p-icon"], ["tabindex", "0", "role", "button", 1, "po-combo-clean", "po-icon-input", 3, "p-change-event", "click", "keydown.enter", "p-element-ref"], [4, "ngTemplateOutlet"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen"], [1, "po-combo-container", 3, "hidden"], ["p-type", "option", 3, "p-selectcombo-item", "p-update-infinite-scroll", "p-close", "p-items", "p-field-value", "p-field-label", "p-template", "p-search-value", "p-infinite-loading", "p-infinite-scroll", "p-filtering", "p-cache", "p-filter-mode", "p-visible", "p-is-searching", "p-should-mark-letter", "p-compare-cache", "p-combo-service", "p-infinite-scroll-distance", "p-container-width"]], template: function PoComboComponent_Template(rf, ctx) { if (rf & 1) {
|
|
28300
28352
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
28301
|
-
i0.ɵɵelementStart(0, "po-field-container",
|
|
28302
|
-
i0.ɵɵtemplate(
|
|
28303
|
-
i0.ɵɵelementStart(
|
|
28304
|
-
i0.ɵɵlistener("click", function
|
|
28353
|
+
i0.ɵɵelementStart(0, "div", null, 0)(2, "po-field-container", 9)(3, "div", 10, 1);
|
|
28354
|
+
i0.ɵɵtemplate(5, PoComboComponent_div_5_Template, 2, 3, "div", 11);
|
|
28355
|
+
i0.ɵɵelementStart(6, "input", 12, 2);
|
|
28356
|
+
i0.ɵɵlistener("click", function PoComboComponent_Template_input_click_6_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.toggleComboVisibility()); })("keyup", function PoComboComponent_Template_input_keyup_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onKeyUp($event)); })("blur", function PoComboComponent_Template_input_blur_6_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBlur()); })("keyup", function PoComboComponent_Template_input_keyup_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.searchOnEnterOrArrow($event, $event.target.value)); })("keydown", function PoComboComponent_Template_input_keydown_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onKeyDown($event)); });
|
|
28305
28357
|
i0.ɵɵelementEnd();
|
|
28306
|
-
i0.ɵɵelementStart(
|
|
28307
|
-
i0.ɵɵtemplate(
|
|
28308
|
-
i0.ɵɵelementStart(
|
|
28309
|
-
i0.ɵɵlistener("click", function
|
|
28310
|
-
i0.ɵɵelement(
|
|
28358
|
+
i0.ɵɵelementStart(8, "div", 13);
|
|
28359
|
+
i0.ɵɵtemplate(9, PoComboComponent_po_clean_9_Template, 1, 2, "po-clean", 14);
|
|
28360
|
+
i0.ɵɵelementStart(10, "div", 15, 3);
|
|
28361
|
+
i0.ɵɵlistener("click", function PoComboComponent_Template_div_click_10_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.toggleComboVisibility(true)); });
|
|
28362
|
+
i0.ɵɵelement(12, "po-icon", 16);
|
|
28311
28363
|
i0.ɵɵelementEnd()()();
|
|
28312
|
-
i0.ɵɵtemplate(
|
|
28313
|
-
i0.ɵɵelement(
|
|
28364
|
+
i0.ɵɵtemplate(13, PoComboComponent_ng_container_13_Template, 1, 0, "ng-container", 17)(14, PoComboComponent_ng_template_14_Template, 1, 1, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor)(16, PoComboComponent_ng_template_16_Template, 1, 2, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
28365
|
+
i0.ɵɵelement(18, "po-field-container-bottom", 18);
|
|
28366
|
+
i0.ɵɵelementEnd();
|
|
28367
|
+
i0.ɵɵtemplate(19, PoComboComponent_ng_template_19_Template, 5, 18, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
|
|
28314
28368
|
i0.ɵɵelementEnd();
|
|
28315
|
-
i0.ɵɵtemplate(17, PoComboComponent_ng_template_17_Template, 5, 17, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
28316
28369
|
} if (rf & 2) {
|
|
28317
|
-
const inp_r7 = i0.ɵɵreference(
|
|
28318
|
-
const dropdownDefault_r8 = i0.ɵɵreference(
|
|
28319
|
-
const dropdownCDK_r9 = i0.ɵɵreference(
|
|
28370
|
+
const inp_r7 = i0.ɵɵreference(7);
|
|
28371
|
+
const dropdownDefault_r8 = i0.ɵɵreference(15);
|
|
28372
|
+
const dropdownCDK_r9 = i0.ɵɵreference(17);
|
|
28373
|
+
i0.ɵɵadvance(2);
|
|
28320
28374
|
i0.ɵɵproperty("p-disabled", ctx.disabled)("p-id", ctx.id)("p-label", ctx.label)("p-optional", ctx.optional)("p-required", ctx.required)("p-show-required", ctx.showRequired);
|
|
28321
28375
|
i0.ɵɵadvance(3);
|
|
28322
28376
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
@@ -28352,10 +28406,13 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
28352
28406
|
useExisting: forwardRef(() => PoComboComponent),
|
|
28353
28407
|
multi: true
|
|
28354
28408
|
}
|
|
28355
|
-
], template: "<po-field-container\n
|
|
28409
|
+
], template: "<div #outerContainer>\n <po-field-container\n [p-disabled]=\"disabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n >\n <div cdkOverlayOrigin #trigger=\"cdkOverlayOrigin\" class=\"po-field-container-content po-combo-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon po-icon-input\"\n [class.po-field-icon-disabled]=\"disabled\"\n [p-icon]=\"icon\"\n ></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-combo-input\"\n [ngClass]=\"clean && inp.value ? 'po-input-double-icon-right' : 'po-input-icon-right'\"\n [class.po-input-icon-left]=\"icon\"\n autocomplete=\"off\"\n type=\"text\"\n [attr.name]=\"name\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [required]=\"required\"\n (click)=\"toggleComboVisibility()\"\n (keyup)=\"onKeyUp($event)\"\n (blur)=\"onBlur()\"\n (keyup)=\"searchOnEnterOrArrow($event, $event.target.value)\"\n (keydown)=\"onKeyDown($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"literals.clean\"\n class=\"po-combo-clean po-icon-input\"\n *ngIf=\"clean && !disabled && inp.value\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n (click)=\"clear(null); $event.preventDefault()\"\n (keydown.enter)=\"clearAndFocus(); $event.preventDefault()\"\n >\n </po-clean>\n\n <div\n #iconArrow\n class=\"po-combo-arrow po-field-icon\"\n [class.po-field-icon-disabled]=\"disabled\"\n (click)=\"toggleComboVisibility(true)\"\n >\n <po-icon\n [p-icon]=\"comboOpen ? 'ICON_ARROW_UP po-icon-input' : 'ICON_ARROW_DOWN po-icon-input'\"\n [class.po-field-icon]=\"!disabled\"\n [class.po-combo-default-border]=\"!disabled && inp.value\"\n [class.po-combo-background-arrow-up]=\"!disabled && comboOpen\"\n ></po-icon>\n </div>\n </div>\n </div>\n\n <ng-container *ngIf=\"appendBox; then dropdownCDK; else dropdownDefault\"> </ng-container>\n\n <ng-template #dropdownDefault>\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"> </ng-container>\n </ng-template>\n\n <ng-template #dropdownCDK>\n <ng-template cdkConnectedOverlay [cdkConnectedOverlayOrigin]=\"trigger\" [cdkConnectedOverlayOpen]=\"true\">\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"></ng-container>\n </ng-template>\n </ng-template>\n\n <po-field-container-bottom [p-help]=\"help\" [p-disabled]=\"disabled\"></po-field-container-bottom>\n </po-field-container>\n\n <ng-template #dropdownListbox>\n <div #containerElement class=\"po-combo-container\" [hidden]=\"!comboOpen && !isServerSearching\">\n <po-listbox\n #poListbox\n #contentElement\n p-type=\"option\"\n [p-items]=\"visibleOptions\"\n [p-field-value]=\"dynamicValue\"\n [p-field-label]=\"dynamicLabel\"\n [p-template]=\"comboOptionTemplate\"\n [p-search-value]=\"getInputValue()\"\n [p-infinite-loading]=\"infiniteLoading\"\n [p-infinite-scroll]=\"infiniteScroll\"\n [p-filtering]=\"isFiltering\"\n [p-cache]=\"cache\"\n (p-selectcombo-item)=\"onOptionClick($event, $event.event)\"\n [p-filter-mode]=\"filterMode\"\n [p-visible]=\"comboOpen\"\n [p-is-searching]=\"isServerSearching\"\n [p-should-mark-letter]=\"shouldMarkLetters\"\n [p-compare-cache]=\"compareObjects(cacheOptions, visibleOptions)\"\n [p-combo-service]=\"service\"\n [p-infinite-scroll-distance]=\"infiniteScrollDistance\"\n (p-update-infinite-scroll)=\"showMoreInfiniteScroll()\"\n (p-close)=\"onCloseCombo()\"\n [p-container-width]=\"containerWidth\"\n ></po-listbox>\n </div>\n </ng-template>\n</div>\n" }]
|
|
28356
28410
|
}], () => [{ type: i0.ElementRef }, { type: i0.IterableDiffers }, { type: PoComboFilterService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: PoControlPositionService }, { type: PoLanguageService }], { comboOptionTemplate: [{
|
|
28357
28411
|
type: ContentChild,
|
|
28358
28412
|
args: [PoComboOptionTemplateDirective, { static: true }]
|
|
28413
|
+
}], outerContainer: [{
|
|
28414
|
+
type: ViewChild,
|
|
28415
|
+
args: ['outerContainer ', { read: ElementRef }]
|
|
28359
28416
|
}], containerElement: [{
|
|
28360
28417
|
type: ViewChild,
|
|
28361
28418
|
args: ['containerElement', { read: ElementRef }]
|
|
@@ -28985,7 +29042,7 @@ class PoDatepickerRangeBaseComponent {
|
|
|
28985
29042
|
const _c0$T = ["dateRangeField"];
|
|
28986
29043
|
const _c1$m = ["endDateInput"];
|
|
28987
29044
|
const _c2$a = ["startDateInput"];
|
|
28988
|
-
const _c3$
|
|
29045
|
+
const _c3$6 = ["iconCalendar"];
|
|
28989
29046
|
const _c4$1 = ["calendarPicker"];
|
|
28990
29047
|
function PoDatepickerRangeComponent_po_clean_12_Template(rf, ctx) { if (rf & 1) {
|
|
28991
29048
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
@@ -29430,7 +29487,7 @@ class PoDatepickerRangeComponent extends PoDatepickerRangeBaseComponent {
|
|
|
29430
29487
|
i0.ɵɵviewQuery(_c0$T, 7, ElementRef);
|
|
29431
29488
|
i0.ɵɵviewQuery(_c1$m, 7, ElementRef);
|
|
29432
29489
|
i0.ɵɵviewQuery(_c2$a, 7, ElementRef);
|
|
29433
|
-
i0.ɵɵviewQuery(_c3$
|
|
29490
|
+
i0.ɵɵviewQuery(_c3$6, 7, ElementRef);
|
|
29434
29491
|
i0.ɵɵviewQuery(_c4$1, 5, ElementRef);
|
|
29435
29492
|
} if (rf & 2) {
|
|
29436
29493
|
let _t;
|
|
@@ -34700,8 +34757,9 @@ class PoMultiselectFilterService {
|
|
|
34700
34757
|
const _c0$M = ["dropdownElement"];
|
|
34701
34758
|
const _c1$j = ["iconElement"];
|
|
34702
34759
|
const _c2$9 = ["inputElement"];
|
|
34703
|
-
|
|
34704
|
-
|
|
34760
|
+
const _c3$5 = ["outerContainer"];
|
|
34761
|
+
function PoMultiselectComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
34762
|
+
i0.ɵɵelementStart(0, "span", 17);
|
|
34705
34763
|
i0.ɵɵtext(1);
|
|
34706
34764
|
i0.ɵɵelementEnd();
|
|
34707
34765
|
} if (rf & 2) {
|
|
@@ -34709,10 +34767,10 @@ function PoMultiselectComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
34709
34767
|
i0.ɵɵadvance();
|
|
34710
34768
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.placeholder ? ctx_r1.placeholder : ctx_r1.literals.selectItem, " ");
|
|
34711
34769
|
} }
|
|
34712
|
-
function
|
|
34770
|
+
function PoMultiselectComponent_po_tag_8_Template(rf, ctx) { if (rf & 1) {
|
|
34713
34771
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
34714
|
-
i0.ɵɵelementStart(0, "po-tag",
|
|
34715
|
-
i0.ɵɵlistener("p-close", function
|
|
34772
|
+
i0.ɵɵelementStart(0, "po-tag", 18);
|
|
34773
|
+
i0.ɵɵlistener("p-close", function PoMultiselectComponent_po_tag_8_Template_po_tag_p_close_0_listener($event) { const tag_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.closeTag(tag_r4[ctx_r1.fieldValue], $event)); });
|
|
34716
34774
|
i0.ɵɵelementEnd();
|
|
34717
34775
|
} if (rf & 2) {
|
|
34718
34776
|
const tag_r4 = ctx.$implicit;
|
|
@@ -34721,44 +34779,44 @@ function PoMultiselectComponent_po_tag_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
34721
34779
|
i0.ɵɵclassProp("po-clickable", tag_r4[ctx_r1.fieldValue] === "" && !ctx_r1.disabled);
|
|
34722
34780
|
i0.ɵɵproperty("p-value", tag_r4[ctx_r1.fieldLabel])("p-literals", i_r5 + 1 === ctx_r1.visibleTags.length && ctx_r1.hasMoreTag ? ctx_r1.literalsTag : undefined)("p-removable", true)("p-disabled", ctx_r1.disabled);
|
|
34723
34781
|
} }
|
|
34724
|
-
function
|
|
34782
|
+
function PoMultiselectComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
34725
34783
|
i0.ɵɵelementContainer(0);
|
|
34726
34784
|
} }
|
|
34727
|
-
function
|
|
34785
|
+
function PoMultiselectComponent_ng_template_13_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
34728
34786
|
i0.ɵɵelementContainer(0);
|
|
34729
34787
|
} }
|
|
34730
|
-
function
|
|
34731
|
-
i0.ɵɵtemplate(0,
|
|
34788
|
+
function PoMultiselectComponent_ng_template_13_Template(rf, ctx) { if (rf & 1) {
|
|
34789
|
+
i0.ɵɵtemplate(0, PoMultiselectComponent_ng_template_13_ng_container_0_Template, 1, 0, "ng-container", 19);
|
|
34732
34790
|
} if (rf & 2) {
|
|
34733
34791
|
i0.ɵɵnextContext();
|
|
34734
|
-
const dropdownListbox_r6 = i0.ɵɵreference(
|
|
34792
|
+
const dropdownListbox_r6 = i0.ɵɵreference(19);
|
|
34735
34793
|
i0.ɵɵproperty("ngTemplateOutlet", dropdownListbox_r6);
|
|
34736
34794
|
} }
|
|
34737
|
-
function
|
|
34795
|
+
function PoMultiselectComponent_ng_template_15_ng_template_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
34738
34796
|
i0.ɵɵelementContainer(0);
|
|
34739
34797
|
} }
|
|
34740
|
-
function
|
|
34741
|
-
i0.ɵɵtemplate(0,
|
|
34798
|
+
function PoMultiselectComponent_ng_template_15_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
34799
|
+
i0.ɵɵtemplate(0, PoMultiselectComponent_ng_template_15_ng_template_0_ng_container_0_Template, 1, 0, "ng-container", 19);
|
|
34742
34800
|
} if (rf & 2) {
|
|
34743
34801
|
i0.ɵɵnextContext(2);
|
|
34744
|
-
const dropdownListbox_r6 = i0.ɵɵreference(
|
|
34802
|
+
const dropdownListbox_r6 = i0.ɵɵreference(19);
|
|
34745
34803
|
i0.ɵɵproperty("ngTemplateOutlet", dropdownListbox_r6);
|
|
34746
34804
|
} }
|
|
34747
|
-
function
|
|
34748
|
-
i0.ɵɵtemplate(0,
|
|
34805
|
+
function PoMultiselectComponent_ng_template_15_Template(rf, ctx) { if (rf & 1) {
|
|
34806
|
+
i0.ɵɵtemplate(0, PoMultiselectComponent_ng_template_15_ng_template_0_Template, 1, 1, "ng-template", 20);
|
|
34749
34807
|
} if (rf & 2) {
|
|
34750
34808
|
i0.ɵɵnextContext();
|
|
34751
|
-
const trigger_r7 = i0.ɵɵreference(
|
|
34809
|
+
const trigger_r7 = i0.ɵɵreference(4);
|
|
34752
34810
|
i0.ɵɵproperty("cdkConnectedOverlayOrigin", trigger_r7)("cdkConnectedOverlayOpen", true);
|
|
34753
34811
|
} }
|
|
34754
|
-
function
|
|
34812
|
+
function PoMultiselectComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
34755
34813
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
34756
|
-
i0.ɵɵelementStart(0, "po-multiselect-dropdown",
|
|
34757
|
-
i0.ɵɵlistener("p-change", function
|
|
34814
|
+
i0.ɵɵelementStart(0, "po-multiselect-dropdown", 21, 7);
|
|
34815
|
+
i0.ɵɵlistener("p-change", function PoMultiselectComponent_ng_template_18_Template_po_multiselect_dropdown_p_change_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.changeItems($event)); })("p-change-search", function PoMultiselectComponent_ng_template_18_Template_po_multiselect_dropdown_p_change_search_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.changeSearch($event)); })("p-close-dropdown", function PoMultiselectComponent_ng_template_18_Template_po_multiselect_dropdown_p_close_dropdown_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.controlDropdownVisibility(false)); })("keydown", function PoMultiselectComponent_ng_template_18_Template_po_multiselect_dropdown_keydown_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onKeyDownDropdown($event, 0)); });
|
|
34758
34816
|
i0.ɵɵelementEnd();
|
|
34759
34817
|
} if (rf & 2) {
|
|
34760
34818
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
34761
|
-
i0.ɵɵproperty("p-searching", ctx_r1.isServerSearching)("p-hide-search", ctx_r1.hideSearch)("p-hide-select-all", ctx_r1.hideSelectAll)("p-literals", ctx_r1.literals)("p-options", ctx_r1.options)("p-visible-options", ctx_r1.visibleOptionsDropdown)("p-selected-options", ctx_r1.selectedOptions)("p-placeholder-search", ctx_r1.placeholderSearch)("p-field-value", ctx_r1.fieldValue)("p-field-label", ctx_r1.fieldLabel)("p-multiselect-template", ctx_r1.multiselectOptionTemplate);
|
|
34819
|
+
i0.ɵɵproperty("p-searching", ctx_r1.isServerSearching)("p-hide-search", ctx_r1.hideSearch)("p-hide-select-all", ctx_r1.hideSelectAll)("p-literals", ctx_r1.literals)("p-options", ctx_r1.options)("p-visible-options", ctx_r1.visibleOptionsDropdown)("p-selected-options", ctx_r1.selectedOptions)("p-placeholder-search", ctx_r1.placeholderSearch)("p-field-value", ctx_r1.fieldValue)("p-field-label", ctx_r1.fieldLabel)("p-multiselect-template", ctx_r1.multiselectOptionTemplate)("p-container-width", ctx_r1.containerWidth);
|
|
34762
34820
|
} }
|
|
34763
34821
|
const poMultiselectContainerOffset = 8;
|
|
34764
34822
|
const poMultiselectContainerPositionDefault = 'bottom';
|
|
@@ -34848,6 +34906,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
34848
34906
|
dropdown;
|
|
34849
34907
|
iconElement;
|
|
34850
34908
|
inputElement;
|
|
34909
|
+
outerContainer;
|
|
34851
34910
|
literalsTag;
|
|
34852
34911
|
dropdownIcon = 'ICON_ARROW_DOWN';
|
|
34853
34912
|
dropdownOpen = false;
|
|
@@ -34855,6 +34914,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
34855
34914
|
hasMoreTag;
|
|
34856
34915
|
timeoutResize;
|
|
34857
34916
|
visibleElement = false;
|
|
34917
|
+
containerWidth;
|
|
34858
34918
|
subscription = new Subscription();
|
|
34859
34919
|
enterCloseTag = false;
|
|
34860
34920
|
initCalculateItems = true;
|
|
@@ -35269,6 +35329,9 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
35269
35329
|
this.scrollToSelectedOptions();
|
|
35270
35330
|
this.changeDetector.detectChanges();
|
|
35271
35331
|
this.setPositionDropdown();
|
|
35332
|
+
if (this.dropdownOpen) {
|
|
35333
|
+
this.setContainerWidth();
|
|
35334
|
+
}
|
|
35272
35335
|
}
|
|
35273
35336
|
removeListeners() {
|
|
35274
35337
|
if (this.clickOutListener) {
|
|
@@ -35280,6 +35343,11 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
35280
35343
|
window.removeEventListener('scroll', this.onScroll, true);
|
|
35281
35344
|
this.changeDetector.markForCheck();
|
|
35282
35345
|
}
|
|
35346
|
+
setContainerWidth() {
|
|
35347
|
+
if (this.outerContainer) {
|
|
35348
|
+
this.containerWidth = this.outerContainer.nativeElement.offsetWidth;
|
|
35349
|
+
}
|
|
35350
|
+
}
|
|
35283
35351
|
setPositionDropdown() {
|
|
35284
35352
|
this.controlPosition.setElements(this.dropdown.container.nativeElement, poMultiselectContainerOffset, this.inputElement, ['top', 'bottom'], true);
|
|
35285
35353
|
this.adjustContainerPosition();
|
|
@@ -35295,27 +35363,31 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
35295
35363
|
i0.ɵɵviewQuery(_c0$M, 5);
|
|
35296
35364
|
i0.ɵɵviewQuery(_c1$j, 7, ElementRef);
|
|
35297
35365
|
i0.ɵɵviewQuery(_c2$9, 7, ElementRef);
|
|
35366
|
+
i0.ɵɵviewQuery(_c3$5, 5, ElementRef);
|
|
35298
35367
|
} if (rf & 2) {
|
|
35299
35368
|
let _t;
|
|
35300
35369
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdownElement = _t.first);
|
|
35301
35370
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdown = _t.first);
|
|
35302
35371
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconElement = _t.first);
|
|
35303
35372
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
35304
|
-
|
|
35373
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.outerContainer = _t.first);
|
|
35374
|
+
} }, features: [i0.ɵɵProvidersFeature(providers$1), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 20, vars: 30, consts: [["outerContainer", ""], ["trigger", "cdkOverlayOrigin"], ["inputElement", ""], ["iconElement", ""], ["dropdownDefault", ""], ["dropdownCDK", ""], ["dropdownListbox", ""], ["dropdownElement", ""], [3, "p-disabled", "p-label", "p-optional", "p-required", "p-show-required"], ["cdkOverlayOrigin", "", 1, "po-field-container-content"], [1, "po-input-icon-right", "po-multiselect-input", 3, "keydown", "click", "blur", "tabindex"], ["class", "po-multiselect-input-placeholder", "aria-hidden", "true", 4, "ngIf"], [3, "p-value", "p-literals", "p-removable", "po-clickable", "p-disabled", "p-close", 4, "ngFor", "ngForOf"], [1, "po-field-icon-container-right"], [3, "p-icon", "ngClass"], [4, "ngIf", "ngIfThen", "ngIfElse"], [3, "p-help", "p-disabled"], ["aria-hidden", "true", 1, "po-multiselect-input-placeholder"], [3, "p-close", "p-value", "p-literals", "p-removable", "p-disabled"], [4, "ngTemplateOutlet"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen"], [3, "p-change", "p-change-search", "p-close-dropdown", "keydown", "p-searching", "p-hide-search", "p-hide-select-all", "p-literals", "p-options", "p-visible-options", "p-selected-options", "p-placeholder-search", "p-field-value", "p-field-label", "p-multiselect-template", "p-container-width"]], template: function PoMultiselectComponent_Template(rf, ctx) { if (rf & 1) {
|
|
35305
35375
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
35306
|
-
i0.ɵɵelementStart(0, "po-field-container",
|
|
35307
|
-
i0.ɵɵlistener("keydown", function
|
|
35308
|
-
i0.ɵɵtemplate(
|
|
35309
|
-
i0.ɵɵelementStart(
|
|
35310
|
-
i0.ɵɵelement(
|
|
35376
|
+
i0.ɵɵelementStart(0, "div", null, 0)(2, "po-field-container", 8)(3, "div", 9, 1)(5, "div", 10, 2);
|
|
35377
|
+
i0.ɵɵlistener("keydown", function PoMultiselectComponent_Template_div_keydown_5_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onKeyDown($event)); })("click", function PoMultiselectComponent_Template_div_click_5_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.toggleDropdownVisibility()); })("blur", function PoMultiselectComponent_Template_div_blur_5_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBlur()); });
|
|
35378
|
+
i0.ɵɵtemplate(7, PoMultiselectComponent_span_7_Template, 2, 1, "span", 11)(8, PoMultiselectComponent_po_tag_8_Template, 1, 6, "po-tag", 12);
|
|
35379
|
+
i0.ɵɵelementStart(9, "div", 13);
|
|
35380
|
+
i0.ɵɵelement(10, "po-icon", 14, 3);
|
|
35311
35381
|
i0.ɵɵelementEnd()()();
|
|
35312
|
-
i0.ɵɵtemplate(
|
|
35313
|
-
i0.ɵɵelement(
|
|
35382
|
+
i0.ɵɵtemplate(12, PoMultiselectComponent_ng_container_12_Template, 1, 0, "ng-container", 15)(13, PoMultiselectComponent_ng_template_13_Template, 1, 1, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor)(15, PoMultiselectComponent_ng_template_15_Template, 1, 2, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
35383
|
+
i0.ɵɵelement(17, "po-field-container-bottom", 16);
|
|
35384
|
+
i0.ɵɵelementEnd();
|
|
35385
|
+
i0.ɵɵtemplate(18, PoMultiselectComponent_ng_template_18_Template, 2, 12, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
|
|
35314
35386
|
i0.ɵɵelementEnd();
|
|
35315
|
-
i0.ɵɵtemplate(16, PoMultiselectComponent_ng_template_16_Template, 2, 11, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
35316
35387
|
} if (rf & 2) {
|
|
35317
|
-
const dropdownDefault_r9 = i0.ɵɵreference(
|
|
35318
|
-
const dropdownCDK_r10 = i0.ɵɵreference(
|
|
35388
|
+
const dropdownDefault_r9 = i0.ɵɵreference(14);
|
|
35389
|
+
const dropdownCDK_r10 = i0.ɵɵreference(16);
|
|
35390
|
+
i0.ɵɵadvance(2);
|
|
35319
35391
|
i0.ɵɵproperty("p-disabled", ctx.disabled)("p-label", ctx.label)("p-optional", ctx.optional)("p-required", ctx.required)("p-show-required", ctx.showRequired);
|
|
35320
35392
|
i0.ɵɵadvance();
|
|
35321
35393
|
i0.ɵɵclassProp("po-multiselect-show", ctx.dropdownOpen);
|
|
@@ -35339,7 +35411,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
35339
35411
|
}
|
|
35340
35412
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoMultiselectComponent, [{
|
|
35341
35413
|
type: Component,
|
|
35342
|
-
args: [{ selector: 'po-multiselect', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$1, template: "<po-field-container\n
|
|
35414
|
+
args: [{ selector: 'po-multiselect', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$1, template: "<div #outerContainer>\n <po-field-container\n [p-disabled]=\"disabled\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n >\n <div\n cdkOverlayOrigin\n #trigger=\"cdkOverlayOrigin\"\n class=\"po-field-container-content\"\n [class.po-multiselect-show]=\"dropdownOpen\"\n >\n <div\n #inputElement\n [tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n class=\"po-input-icon-right po-multiselect-input\"\n [class.po-multiselect-input-auto]=\"autoHeight\"\n [class.po-multiselect-input-static]=\"!autoHeight\"\n [class.po-multiselect-input-disabled]=\"disabled\"\n [class.po-multiselect-input-font]=\"!disabled && !visibleTags?.length\"\n (keydown)=\"onKeyDown($event)\"\n (click)=\"toggleDropdownVisibility()\"\n (blur)=\"onBlur()\"\n >\n <span *ngIf=\"!disabled && !visibleTags?.length\" class=\"po-multiselect-input-placeholder\" aria-hidden=\"true\">\n {{ placeholder ? placeholder : literals.selectItem }}\n </span>\n\n <po-tag\n *ngFor=\"let tag of visibleTags; index as i\"\n [p-value]=\"tag[fieldLabel]\"\n [p-literals]=\"i + 1 === visibleTags.length && hasMoreTag ? literalsTag : undefined\"\n [p-removable]=\"true\"\n [class.po-clickable]=\"tag[fieldValue] === '' && !disabled\"\n [p-disabled]=\"disabled\"\n (p-close)=\"closeTag(tag[fieldValue], $event)\"\n ></po-tag>\n\n <div class=\"po-field-icon-container-right\">\n <po-icon\n p-icon=\"{{ dropdownIcon }}\"\n #iconElement\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [ngClass]=\"disabled ? 'po-field-icon-disabled' : ''\"\n >\n </po-icon>\n </div>\n </div>\n </div>\n\n <ng-container *ngIf=\"appendBox; then dropdownCDK; else dropdownDefault\"> </ng-container>\n\n <ng-template #dropdownDefault>\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"> </ng-container>\n </ng-template>\n\n <ng-template #dropdownCDK>\n <ng-template cdkConnectedOverlay [cdkConnectedOverlayOrigin]=\"trigger\" [cdkConnectedOverlayOpen]=\"true\">\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"></ng-container>\n </ng-template>\n </ng-template>\n\n <po-field-container-bottom [p-help]=\"help\" [p-disabled]=\"disabled\"></po-field-container-bottom>\n </po-field-container>\n\n <ng-template #dropdownListbox>\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-field-value]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n [p-multiselect-template]=\"multiselectOptionTemplate\"\n (p-change)=\"changeItems($event)\"\n (p-change-search)=\"changeSearch($event)\"\n (p-close-dropdown)=\"controlDropdownVisibility(false)\"\n (keydown)=\"onKeyDownDropdown($event, 0)\"\n [p-container-width]=\"containerWidth\"\n >\n </po-multiselect-dropdown>\n </ng-template>\n</div>\n" }]
|
|
35343
35415
|
}], () => [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: PoControlPositionService }, { type: PoMultiselectFilterService }, { type: PoLanguageService }], { multiselectOptionTemplate: [{
|
|
35344
35416
|
type: ContentChild,
|
|
35345
35417
|
args: [PoMultiselectOptionTemplateDirective, { static: true }]
|
|
@@ -35355,6 +35427,9 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
35355
35427
|
}], inputElement: [{
|
|
35356
35428
|
type: ViewChild,
|
|
35357
35429
|
args: ['inputElement', { read: ElementRef, static: true }]
|
|
35430
|
+
}], outerContainer: [{
|
|
35431
|
+
type: ViewChild,
|
|
35432
|
+
args: ['outerContainer ', { read: ElementRef }]
|
|
35358
35433
|
}] }); })();
|
|
35359
35434
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoMultiselectComponent, { className: "PoMultiselectComponent", filePath: "lib/components/po-field/po-multiselect/po-multiselect.component.ts", lineNumber: 118 }); })();
|
|
35360
35435
|
|
|
@@ -41376,6 +41451,7 @@ class PoMultiselectDropdownComponent {
|
|
|
41376
41451
|
fieldValue;
|
|
41377
41452
|
fieldLabel;
|
|
41378
41453
|
multiselectTemplate;
|
|
41454
|
+
containerWidth;
|
|
41379
41455
|
/** Evento disparado a cada tecla digitada na pesquisa. */
|
|
41380
41456
|
changeSearch = new EventEmitter();
|
|
41381
41457
|
/** Evento disparado a cada alteração na lista das opções selecionadas. */
|
|
@@ -41482,7 +41558,7 @@ class PoMultiselectDropdownComponent {
|
|
|
41482
41558
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
41483
41559
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.divElement = _t.first);
|
|
41484
41560
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.listbox = _t.first);
|
|
41485
|
-
} }, inputs: { isServerSearching: [0, "p-searching", "isServerSearching"], hideSearch: [0, "p-hide-search", "hideSearch"], literals: [0, "p-literals", "literals"], placeholderSearch: [0, "p-placeholder-search", "placeholderSearch"], selectedOptions: [0, "p-selected-options", "selectedOptions"], options: [0, "p-options", "options"], visibleOptions: [0, "p-visible-options", "visibleOptions"], hideSelectAll: [0, "p-hide-select-all", "hideSelectAll"], fieldValue: [0, "p-field-value", "fieldValue"], fieldLabel: [0, "p-field-label", "fieldLabel"], multiselectTemplate: [0, "p-multiselect-template", "multiselectTemplate"] }, outputs: { changeSearch: "p-change-search", change: "p-change", closeDropdown: "p-close-dropdown" }, decls: 7, vars:
|
|
41561
|
+
} }, inputs: { isServerSearching: [0, "p-searching", "isServerSearching"], hideSearch: [0, "p-hide-search", "hideSearch"], literals: [0, "p-literals", "literals"], placeholderSearch: [0, "p-placeholder-search", "placeholderSearch"], selectedOptions: [0, "p-selected-options", "selectedOptions"], options: [0, "p-options", "options"], visibleOptions: [0, "p-visible-options", "visibleOptions"], hideSelectAll: [0, "p-hide-select-all", "hideSelectAll"], fieldValue: [0, "p-field-value", "fieldValue"], fieldLabel: [0, "p-field-label", "fieldLabel"], multiselectTemplate: [0, "p-multiselect-template", "multiselectTemplate"], containerWidth: [0, "p-container-width", "containerWidth"] }, outputs: { changeSearch: "p-change-search", change: "p-change", closeDropdown: "p-close-dropdown" }, decls: 7, vars: 16, consts: [["container", ""], ["divElement", ""], ["listbox", ""], [1, "po-multiselect-container", 3, "hidden"], [3, "scrollTop"], ["p-type", "check", 3, "p-change", "p-change-all", "p-change-search", "p-close", "p-items", "p-selected-options", "p-checkboxAllValue", "p-field-value", "p-field-value-search", "p-field-label", "p-literal-search", "p-literals", "p-is-searching", "p-hide-search", "p-hide-select-all", "p-template", "p-placeholder-search", "p-container-width"]], template: function PoMultiselectDropdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
41486
41562
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
41487
41563
|
i0.ɵɵelementStart(0, "div", 3, 0)(2, "div", 4, 1);
|
|
41488
41564
|
i0.ɵɵelementContainerStart(4);
|
|
@@ -41496,12 +41572,12 @@ class PoMultiselectDropdownComponent {
|
|
|
41496
41572
|
i0.ɵɵadvance(2);
|
|
41497
41573
|
i0.ɵɵproperty("scrollTop", ctx.scrollTop);
|
|
41498
41574
|
i0.ɵɵadvance(3);
|
|
41499
|
-
i0.ɵɵproperty("p-items", ctx.visibleOptions)("p-selected-options", ctx.selectedOptions)("p-checkboxAllValue", ctx.getStateSelectAll())("p-field-value", ctx.fieldValue)("p-field-value-search", ctx.fieldValue)("p-field-label", ctx.fieldLabel)("p-literal-search", ctx.literals)("p-literals", ctx.literals)("p-is-searching", ctx.isServerSearching)("p-hide-search", ctx.hideSearch)("p-hide-select-all", ctx.hideSelectAll)("p-template", ctx.multiselectTemplate)("p-placeholder-search", ctx.placeholderSearch);
|
|
41575
|
+
i0.ɵɵproperty("p-items", ctx.visibleOptions)("p-selected-options", ctx.selectedOptions)("p-checkboxAllValue", ctx.getStateSelectAll())("p-field-value", ctx.fieldValue)("p-field-value-search", ctx.fieldValue)("p-field-label", ctx.fieldLabel)("p-literal-search", ctx.literals)("p-literals", ctx.literals)("p-is-searching", ctx.isServerSearching)("p-hide-search", ctx.hideSearch)("p-hide-select-all", ctx.hideSelectAll)("p-template", ctx.multiselectTemplate)("p-placeholder-search", ctx.placeholderSearch)("p-container-width", ctx.containerWidth);
|
|
41500
41576
|
} }, dependencies: [PoListBoxComponent], encapsulation: 2, changeDetection: 0 });
|
|
41501
41577
|
}
|
|
41502
41578
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoMultiselectDropdownComponent, [{
|
|
41503
41579
|
type: Component,
|
|
41504
|
-
args: [{ selector: 'po-multiselect-dropdown', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #container class=\"po-multiselect-container\" [hidden]=\"!show\">\n <div [scrollTop]=\"scrollTop\" #divElement>\n <ng-container>\n <po-listbox\n #listbox\n p-type=\"check\"\n [p-items]=\"visibleOptions\"\n [p-selected-options]=\"selectedOptions\"\n [p-checkboxAllValue]=\"getStateSelectAll()\"\n [p-field-value]=\"fieldValue\"\n [p-field-value-search]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n [p-literal-search]=\"literals\"\n [p-literals]=\"literals\"\n [p-is-searching]=\"isServerSearching\"\n [p-hide-search]=\"hideSearch\"\n [p-hide-select-all]=\"hideSelectAll\"\n [p-template]=\"multiselectTemplate\"\n [p-placeholder-search]=\"placeholderSearch\"\n (p-change)=\"clickItem($event)\"\n (p-change-all)=\"onClickSelectAll()\"\n (p-change-search)=\"callChangeSearch($event)\"\n (p-close)=\"closeDropdown.emit()\"\n >\n </po-listbox>\n </ng-container>\n </div>\n</div>\n" }]
|
|
41580
|
+
args: [{ selector: 'po-multiselect-dropdown', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #container class=\"po-multiselect-container\" [hidden]=\"!show\">\n <div [scrollTop]=\"scrollTop\" #divElement>\n <ng-container>\n <po-listbox\n #listbox\n p-type=\"check\"\n [p-items]=\"visibleOptions\"\n [p-selected-options]=\"selectedOptions\"\n [p-checkboxAllValue]=\"getStateSelectAll()\"\n [p-field-value]=\"fieldValue\"\n [p-field-value-search]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n [p-literal-search]=\"literals\"\n [p-literals]=\"literals\"\n [p-is-searching]=\"isServerSearching\"\n [p-hide-search]=\"hideSearch\"\n [p-hide-select-all]=\"hideSelectAll\"\n [p-template]=\"multiselectTemplate\"\n [p-placeholder-search]=\"placeholderSearch\"\n (p-change)=\"clickItem($event)\"\n (p-change-all)=\"onClickSelectAll()\"\n (p-change-search)=\"callChangeSearch($event)\"\n (p-close)=\"closeDropdown.emit()\"\n [p-container-width]=\"containerWidth\"\n >\n </po-listbox>\n </ng-container>\n </div>\n</div>\n" }]
|
|
41505
41581
|
}], () => [{ type: i0.ChangeDetectorRef }], { isServerSearching: [{
|
|
41506
41582
|
type: Input,
|
|
41507
41583
|
args: ['p-searching']
|
|
@@ -41535,6 +41611,9 @@ class PoMultiselectDropdownComponent {
|
|
|
41535
41611
|
}], multiselectTemplate: [{
|
|
41536
41612
|
type: Input,
|
|
41537
41613
|
args: ['p-multiselect-template']
|
|
41614
|
+
}], containerWidth: [{
|
|
41615
|
+
type: Input,
|
|
41616
|
+
args: ['p-container-width']
|
|
41538
41617
|
}], changeSearch: [{
|
|
41539
41618
|
type: Output,
|
|
41540
41619
|
args: ['p-change-search']
|
|
@@ -53596,10 +53675,9 @@ class PoTabsComponent extends PoTabsBaseComponent {
|
|
|
53596
53675
|
lastTabChildren.widthButton = this.defaultLastTabWidth;
|
|
53597
53676
|
}
|
|
53598
53677
|
if (this.tabsChildren) {
|
|
53599
|
-
const _tabsChildren = this.tabsChildrenArray;
|
|
53678
|
+
const _tabsChildren = [...this.tabsChildrenArray];
|
|
53600
53679
|
if (initialState) {
|
|
53601
53680
|
this.tabsDefault = _tabsChildren;
|
|
53602
|
-
this.tabsDropdown = _tabsChildren;
|
|
53603
53681
|
}
|
|
53604
53682
|
else {
|
|
53605
53683
|
this.tabsDefault = _tabsChildren.slice(0, this.quantityTabsButton);
|