@po-ui/ng-components 18.3.0 → 18.5.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-dynamic/po-dynamic-view/po-dynamic-view-base.component.mjs +27 -2
- package/esm2022/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.mjs +7 -3
- 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/fesm2022/po-ui-ng-components.mjs +217 -119
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +23 -1
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.d.ts +1 -0
- 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/package.json +4 -4
- package/po-ui-ng-components-18.5.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.3.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) {
|
|
@@ -23470,9 +23498,9 @@ class PoTableRowTemplateDirective {
|
|
|
23470
23498
|
const _c0$V = ["noColumnsHeader"];
|
|
23471
23499
|
const _c1$o = ["popup"];
|
|
23472
23500
|
const _c2$c = ["tableFooter"];
|
|
23473
|
-
const _c3$
|
|
23501
|
+
const _c3$8 = ["tableWrapper"];
|
|
23474
23502
|
const _c4$3 = ["tableTemplate"];
|
|
23475
|
-
const _c5 = ["tableVirtualScroll"];
|
|
23503
|
+
const _c5$1 = ["tableVirtualScroll"];
|
|
23476
23504
|
const _c6 = ["columnManager"];
|
|
23477
23505
|
const _c7 = ["columnBatchActions"];
|
|
23478
23506
|
const _c8 = ["columnActionLeft"];
|
|
@@ -25653,9 +25681,9 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
25653
25681
|
i0.ɵɵviewQuery(_c1$o, 5);
|
|
25654
25682
|
i0.ɵɵviewQuery(PoModalComponent, 7);
|
|
25655
25683
|
i0.ɵɵviewQuery(_c2$c, 5, ElementRef);
|
|
25656
|
-
i0.ɵɵviewQuery(_c3$
|
|
25684
|
+
i0.ɵɵviewQuery(_c3$8, 5, ElementRef);
|
|
25657
25685
|
i0.ɵɵviewQuery(_c4$3, 5, ElementRef);
|
|
25658
|
-
i0.ɵɵviewQuery(_c5, 5, ElementRef);
|
|
25686
|
+
i0.ɵɵviewQuery(_c5$1, 5, ElementRef);
|
|
25659
25687
|
i0.ɵɵviewQuery(_c6, 5, ElementRef);
|
|
25660
25688
|
i0.ɵɵviewQuery(_c7, 5, ElementRef);
|
|
25661
25689
|
i0.ɵɵviewQuery(_c8, 5, ElementRef);
|
|
@@ -26592,6 +26620,7 @@ const PO_COMBO_FIELD_VALUE_DEFAULT = 'value';
|
|
|
26592
26620
|
* | `--color` | Cor principal do Combo | `var(--color-neutral-dark-70)` |
|
|
26593
26621
|
* | `--background` | Cor de background | `var(--color-neutral-light-05)` |
|
|
26594
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`
|
|
26595
26624
|
* | **Hover** | | |
|
|
26596
26625
|
* | `--color-hover` | Cor principal no estado hover | `var(--color-action-hover)` |
|
|
26597
26626
|
* | `--background-hover` | Cor de background no estado hover | `var(--color-brand-01-lightest)` |
|
|
@@ -27687,14 +27716,15 @@ class PoComboFilterService {
|
|
|
27687
27716
|
type: Injectable
|
|
27688
27717
|
}], () => [{ type: i1$2.HttpClient }], null); })();
|
|
27689
27718
|
|
|
27690
|
-
const _c0$U = ["
|
|
27691
|
-
const _c1$n = ["
|
|
27692
|
-
const _c2$b = ["
|
|
27693
|
-
const _c3$
|
|
27694
|
-
const _c4$2 = ["
|
|
27695
|
-
|
|
27696
|
-
|
|
27697
|
-
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);
|
|
27698
27728
|
i0.ɵɵelementEnd();
|
|
27699
27729
|
} if (rf & 2) {
|
|
27700
27730
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -27702,56 +27732,56 @@ function PoComboComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
27702
27732
|
i0.ɵɵclassProp("po-field-icon-disabled", ctx_r1.disabled);
|
|
27703
27733
|
i0.ɵɵproperty("p-icon", ctx_r1.icon);
|
|
27704
27734
|
} }
|
|
27705
|
-
function
|
|
27735
|
+
function PoComboComponent_po_clean_9_Template(rf, ctx) { if (rf & 1) {
|
|
27706
27736
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
27707
|
-
i0.ɵɵelementStart(0, "po-clean",
|
|
27708
|
-
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()); });
|
|
27709
27739
|
i0.ɵɵelementEnd();
|
|
27710
27740
|
} if (rf & 2) {
|
|
27711
27741
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
27712
27742
|
i0.ɵɵproperty("p-element-ref", ctx_r1.inputEl);
|
|
27713
27743
|
i0.ɵɵattribute("aria-label", ctx_r1.literals.clean);
|
|
27714
27744
|
} }
|
|
27715
|
-
function
|
|
27745
|
+
function PoComboComponent_ng_container_13_Template(rf, ctx) { if (rf & 1) {
|
|
27716
27746
|
i0.ɵɵelementContainer(0);
|
|
27717
27747
|
} }
|
|
27718
|
-
function
|
|
27748
|
+
function PoComboComponent_ng_template_14_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
27719
27749
|
i0.ɵɵelementContainer(0);
|
|
27720
27750
|
} }
|
|
27721
|
-
function
|
|
27722
|
-
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);
|
|
27723
27753
|
} if (rf & 2) {
|
|
27724
27754
|
i0.ɵɵnextContext();
|
|
27725
|
-
const dropdownListbox_r4 = i0.ɵɵreference(
|
|
27755
|
+
const dropdownListbox_r4 = i0.ɵɵreference(20);
|
|
27726
27756
|
i0.ɵɵproperty("ngTemplateOutlet", dropdownListbox_r4);
|
|
27727
27757
|
} }
|
|
27728
|
-
function
|
|
27758
|
+
function PoComboComponent_ng_template_16_ng_template_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
27729
27759
|
i0.ɵɵelementContainer(0);
|
|
27730
27760
|
} }
|
|
27731
|
-
function
|
|
27732
|
-
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);
|
|
27733
27763
|
} if (rf & 2) {
|
|
27734
27764
|
i0.ɵɵnextContext(2);
|
|
27735
|
-
const dropdownListbox_r4 = i0.ɵɵreference(
|
|
27765
|
+
const dropdownListbox_r4 = i0.ɵɵreference(20);
|
|
27736
27766
|
i0.ɵɵproperty("ngTemplateOutlet", dropdownListbox_r4);
|
|
27737
27767
|
} }
|
|
27738
|
-
function
|
|
27739
|
-
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);
|
|
27740
27770
|
} if (rf & 2) {
|
|
27741
27771
|
i0.ɵɵnextContext();
|
|
27742
|
-
const trigger_r5 = i0.ɵɵreference(
|
|
27772
|
+
const trigger_r5 = i0.ɵɵreference(4);
|
|
27743
27773
|
i0.ɵɵproperty("cdkConnectedOverlayOrigin", trigger_r5)("cdkConnectedOverlayOpen", true);
|
|
27744
27774
|
} }
|
|
27745
|
-
function
|
|
27775
|
+
function PoComboComponent_ng_template_19_Template(rf, ctx) { if (rf & 1) {
|
|
27746
27776
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
27747
|
-
i0.ɵɵelementStart(0, "div",
|
|
27748
|
-
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()); });
|
|
27749
27779
|
i0.ɵɵelementEnd()();
|
|
27750
27780
|
} if (rf & 2) {
|
|
27751
27781
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
27752
27782
|
i0.ɵɵproperty("hidden", !ctx_r1.comboOpen && !ctx_r1.isServerSearching);
|
|
27753
27783
|
i0.ɵɵadvance(2);
|
|
27754
|
-
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);
|
|
27755
27785
|
} }
|
|
27756
27786
|
const poComboContainerOffset = 8;
|
|
27757
27787
|
const poComboContainerPositionDefault = 'bottom';
|
|
@@ -27810,6 +27840,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
27810
27840
|
changeDetector;
|
|
27811
27841
|
controlPosition;
|
|
27812
27842
|
comboOptionTemplate;
|
|
27843
|
+
outerContainer;
|
|
27813
27844
|
containerElement;
|
|
27814
27845
|
contentElement;
|
|
27815
27846
|
iconElement;
|
|
@@ -27823,6 +27854,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
27823
27854
|
scrollTop = 0;
|
|
27824
27855
|
shouldMarkLetters = true;
|
|
27825
27856
|
infiniteLoading = false;
|
|
27857
|
+
containerWidth;
|
|
27826
27858
|
_isServerSearching = false;
|
|
27827
27859
|
lastKey;
|
|
27828
27860
|
clickoutListener;
|
|
@@ -27858,6 +27890,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
27858
27890
|
if (this.autoFocus) {
|
|
27859
27891
|
this.focus();
|
|
27860
27892
|
}
|
|
27893
|
+
this.setContainerWidth();
|
|
27861
27894
|
}
|
|
27862
27895
|
ngOnChanges(changes) {
|
|
27863
27896
|
if (changes.debounceTime) {
|
|
@@ -28233,6 +28266,9 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
28233
28266
|
? this.renderer.addClass(this.inputEl.nativeElement, 'po-combo-input-focus')
|
|
28234
28267
|
: this.inputEl.nativeElement.focus();
|
|
28235
28268
|
this.setContainerPosition();
|
|
28269
|
+
if (this.comboOpen) {
|
|
28270
|
+
this.setContainerWidth();
|
|
28271
|
+
}
|
|
28236
28272
|
}
|
|
28237
28273
|
removeListeners() {
|
|
28238
28274
|
if (this.clickoutListener) {
|
|
@@ -28247,6 +28283,11 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
28247
28283
|
this.controlPosition.setElements(this.containerElement.nativeElement, poComboContainerOffset, this.inputEl, ['top', 'bottom'], true);
|
|
28248
28284
|
this.adjustContainerPosition();
|
|
28249
28285
|
}
|
|
28286
|
+
setContainerWidth() {
|
|
28287
|
+
if (this.outerContainer) {
|
|
28288
|
+
this.containerWidth = this.outerContainer.nativeElement.offsetWidth;
|
|
28289
|
+
}
|
|
28290
|
+
}
|
|
28250
28291
|
setOptions() {
|
|
28251
28292
|
return this.getInputValue() ? this.options : [];
|
|
28252
28293
|
}
|
|
@@ -28282,11 +28323,13 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
28282
28323
|
} }, viewQuery: function PoComboComponent_Query(rf, ctx) { if (rf & 1) {
|
|
28283
28324
|
i0.ɵɵviewQuery(_c0$U, 5, ElementRef);
|
|
28284
28325
|
i0.ɵɵviewQuery(_c1$n, 5, ElementRef);
|
|
28285
|
-
i0.ɵɵviewQuery(_c2$b,
|
|
28286
|
-
i0.ɵɵviewQuery(_c3$
|
|
28287
|
-
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);
|
|
28288
28330
|
} if (rf & 2) {
|
|
28289
28331
|
let _t;
|
|
28332
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.outerContainer = _t.first);
|
|
28290
28333
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerElement = _t.first);
|
|
28291
28334
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentElement = _t.first);
|
|
28292
28335
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconElement = _t.first);
|
|
@@ -28305,27 +28348,29 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
28305
28348
|
useExisting: forwardRef(() => PoComboComponent),
|
|
28306
28349
|
multi: true
|
|
28307
28350
|
}
|
|
28308
|
-
]), 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) {
|
|
28309
28352
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
28310
|
-
i0.ɵɵelementStart(0, "po-field-container",
|
|
28311
|
-
i0.ɵɵtemplate(
|
|
28312
|
-
i0.ɵɵelementStart(
|
|
28313
|
-
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)); });
|
|
28314
28357
|
i0.ɵɵelementEnd();
|
|
28315
|
-
i0.ɵɵelementStart(
|
|
28316
|
-
i0.ɵɵtemplate(
|
|
28317
|
-
i0.ɵɵelementStart(
|
|
28318
|
-
i0.ɵɵlistener("click", function
|
|
28319
|
-
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);
|
|
28320
28363
|
i0.ɵɵelementEnd()()();
|
|
28321
|
-
i0.ɵɵtemplate(
|
|
28322
|
-
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);
|
|
28323
28368
|
i0.ɵɵelementEnd();
|
|
28324
|
-
i0.ɵɵtemplate(17, PoComboComponent_ng_template_17_Template, 5, 17, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
28325
28369
|
} if (rf & 2) {
|
|
28326
|
-
const inp_r7 = i0.ɵɵreference(
|
|
28327
|
-
const dropdownDefault_r8 = i0.ɵɵreference(
|
|
28328
|
-
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);
|
|
28329
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);
|
|
28330
28375
|
i0.ɵɵadvance(3);
|
|
28331
28376
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
@@ -28361,10 +28406,13 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
28361
28406
|
useExisting: forwardRef(() => PoComboComponent),
|
|
28362
28407
|
multi: true
|
|
28363
28408
|
}
|
|
28364
|
-
], 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" }]
|
|
28365
28410
|
}], () => [{ type: i0.ElementRef }, { type: i0.IterableDiffers }, { type: PoComboFilterService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: PoControlPositionService }, { type: PoLanguageService }], { comboOptionTemplate: [{
|
|
28366
28411
|
type: ContentChild,
|
|
28367
28412
|
args: [PoComboOptionTemplateDirective, { static: true }]
|
|
28413
|
+
}], outerContainer: [{
|
|
28414
|
+
type: ViewChild,
|
|
28415
|
+
args: ['outerContainer ', { read: ElementRef }]
|
|
28368
28416
|
}], containerElement: [{
|
|
28369
28417
|
type: ViewChild,
|
|
28370
28418
|
args: ['containerElement', { read: ElementRef }]
|
|
@@ -28994,7 +29042,7 @@ class PoDatepickerRangeBaseComponent {
|
|
|
28994
29042
|
const _c0$T = ["dateRangeField"];
|
|
28995
29043
|
const _c1$m = ["endDateInput"];
|
|
28996
29044
|
const _c2$a = ["startDateInput"];
|
|
28997
|
-
const _c3$
|
|
29045
|
+
const _c3$6 = ["iconCalendar"];
|
|
28998
29046
|
const _c4$1 = ["calendarPicker"];
|
|
28999
29047
|
function PoDatepickerRangeComponent_po_clean_12_Template(rf, ctx) { if (rf & 1) {
|
|
29000
29048
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
@@ -29439,7 +29487,7 @@ class PoDatepickerRangeComponent extends PoDatepickerRangeBaseComponent {
|
|
|
29439
29487
|
i0.ɵɵviewQuery(_c0$T, 7, ElementRef);
|
|
29440
29488
|
i0.ɵɵviewQuery(_c1$m, 7, ElementRef);
|
|
29441
29489
|
i0.ɵɵviewQuery(_c2$a, 7, ElementRef);
|
|
29442
|
-
i0.ɵɵviewQuery(_c3$
|
|
29490
|
+
i0.ɵɵviewQuery(_c3$6, 7, ElementRef);
|
|
29443
29491
|
i0.ɵɵviewQuery(_c4$1, 5, ElementRef);
|
|
29444
29492
|
} if (rf & 2) {
|
|
29445
29493
|
let _t;
|
|
@@ -34709,8 +34757,9 @@ class PoMultiselectFilterService {
|
|
|
34709
34757
|
const _c0$M = ["dropdownElement"];
|
|
34710
34758
|
const _c1$j = ["iconElement"];
|
|
34711
34759
|
const _c2$9 = ["inputElement"];
|
|
34712
|
-
|
|
34713
|
-
|
|
34760
|
+
const _c3$5 = ["outerContainer"];
|
|
34761
|
+
function PoMultiselectComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
34762
|
+
i0.ɵɵelementStart(0, "span", 17);
|
|
34714
34763
|
i0.ɵɵtext(1);
|
|
34715
34764
|
i0.ɵɵelementEnd();
|
|
34716
34765
|
} if (rf & 2) {
|
|
@@ -34718,10 +34767,10 @@ function PoMultiselectComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
34718
34767
|
i0.ɵɵadvance();
|
|
34719
34768
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.placeholder ? ctx_r1.placeholder : ctx_r1.literals.selectItem, " ");
|
|
34720
34769
|
} }
|
|
34721
|
-
function
|
|
34770
|
+
function PoMultiselectComponent_po_tag_8_Template(rf, ctx) { if (rf & 1) {
|
|
34722
34771
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
34723
|
-
i0.ɵɵelementStart(0, "po-tag",
|
|
34724
|
-
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)); });
|
|
34725
34774
|
i0.ɵɵelementEnd();
|
|
34726
34775
|
} if (rf & 2) {
|
|
34727
34776
|
const tag_r4 = ctx.$implicit;
|
|
@@ -34730,44 +34779,44 @@ function PoMultiselectComponent_po_tag_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
34730
34779
|
i0.ɵɵclassProp("po-clickable", tag_r4[ctx_r1.fieldValue] === "" && !ctx_r1.disabled);
|
|
34731
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);
|
|
34732
34781
|
} }
|
|
34733
|
-
function
|
|
34782
|
+
function PoMultiselectComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
34734
34783
|
i0.ɵɵelementContainer(0);
|
|
34735
34784
|
} }
|
|
34736
|
-
function
|
|
34785
|
+
function PoMultiselectComponent_ng_template_13_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
34737
34786
|
i0.ɵɵelementContainer(0);
|
|
34738
34787
|
} }
|
|
34739
|
-
function
|
|
34740
|
-
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);
|
|
34741
34790
|
} if (rf & 2) {
|
|
34742
34791
|
i0.ɵɵnextContext();
|
|
34743
|
-
const dropdownListbox_r6 = i0.ɵɵreference(
|
|
34792
|
+
const dropdownListbox_r6 = i0.ɵɵreference(19);
|
|
34744
34793
|
i0.ɵɵproperty("ngTemplateOutlet", dropdownListbox_r6);
|
|
34745
34794
|
} }
|
|
34746
|
-
function
|
|
34795
|
+
function PoMultiselectComponent_ng_template_15_ng_template_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
34747
34796
|
i0.ɵɵelementContainer(0);
|
|
34748
34797
|
} }
|
|
34749
|
-
function
|
|
34750
|
-
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);
|
|
34751
34800
|
} if (rf & 2) {
|
|
34752
34801
|
i0.ɵɵnextContext(2);
|
|
34753
|
-
const dropdownListbox_r6 = i0.ɵɵreference(
|
|
34802
|
+
const dropdownListbox_r6 = i0.ɵɵreference(19);
|
|
34754
34803
|
i0.ɵɵproperty("ngTemplateOutlet", dropdownListbox_r6);
|
|
34755
34804
|
} }
|
|
34756
|
-
function
|
|
34757
|
-
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);
|
|
34758
34807
|
} if (rf & 2) {
|
|
34759
34808
|
i0.ɵɵnextContext();
|
|
34760
|
-
const trigger_r7 = i0.ɵɵreference(
|
|
34809
|
+
const trigger_r7 = i0.ɵɵreference(4);
|
|
34761
34810
|
i0.ɵɵproperty("cdkConnectedOverlayOrigin", trigger_r7)("cdkConnectedOverlayOpen", true);
|
|
34762
34811
|
} }
|
|
34763
|
-
function
|
|
34812
|
+
function PoMultiselectComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
34764
34813
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
34765
|
-
i0.ɵɵelementStart(0, "po-multiselect-dropdown",
|
|
34766
|
-
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)); });
|
|
34767
34816
|
i0.ɵɵelementEnd();
|
|
34768
34817
|
} if (rf & 2) {
|
|
34769
34818
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
34770
|
-
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);
|
|
34771
34820
|
} }
|
|
34772
34821
|
const poMultiselectContainerOffset = 8;
|
|
34773
34822
|
const poMultiselectContainerPositionDefault = 'bottom';
|
|
@@ -34857,6 +34906,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
34857
34906
|
dropdown;
|
|
34858
34907
|
iconElement;
|
|
34859
34908
|
inputElement;
|
|
34909
|
+
outerContainer;
|
|
34860
34910
|
literalsTag;
|
|
34861
34911
|
dropdownIcon = 'ICON_ARROW_DOWN';
|
|
34862
34912
|
dropdownOpen = false;
|
|
@@ -34864,6 +34914,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
34864
34914
|
hasMoreTag;
|
|
34865
34915
|
timeoutResize;
|
|
34866
34916
|
visibleElement = false;
|
|
34917
|
+
containerWidth;
|
|
34867
34918
|
subscription = new Subscription();
|
|
34868
34919
|
enterCloseTag = false;
|
|
34869
34920
|
initCalculateItems = true;
|
|
@@ -35278,6 +35329,9 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
35278
35329
|
this.scrollToSelectedOptions();
|
|
35279
35330
|
this.changeDetector.detectChanges();
|
|
35280
35331
|
this.setPositionDropdown();
|
|
35332
|
+
if (this.dropdownOpen) {
|
|
35333
|
+
this.setContainerWidth();
|
|
35334
|
+
}
|
|
35281
35335
|
}
|
|
35282
35336
|
removeListeners() {
|
|
35283
35337
|
if (this.clickOutListener) {
|
|
@@ -35289,6 +35343,11 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
35289
35343
|
window.removeEventListener('scroll', this.onScroll, true);
|
|
35290
35344
|
this.changeDetector.markForCheck();
|
|
35291
35345
|
}
|
|
35346
|
+
setContainerWidth() {
|
|
35347
|
+
if (this.outerContainer) {
|
|
35348
|
+
this.containerWidth = this.outerContainer.nativeElement.offsetWidth;
|
|
35349
|
+
}
|
|
35350
|
+
}
|
|
35292
35351
|
setPositionDropdown() {
|
|
35293
35352
|
this.controlPosition.setElements(this.dropdown.container.nativeElement, poMultiselectContainerOffset, this.inputElement, ['top', 'bottom'], true);
|
|
35294
35353
|
this.adjustContainerPosition();
|
|
@@ -35304,27 +35363,31 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
35304
35363
|
i0.ɵɵviewQuery(_c0$M, 5);
|
|
35305
35364
|
i0.ɵɵviewQuery(_c1$j, 7, ElementRef);
|
|
35306
35365
|
i0.ɵɵviewQuery(_c2$9, 7, ElementRef);
|
|
35366
|
+
i0.ɵɵviewQuery(_c3$5, 5, ElementRef);
|
|
35307
35367
|
} if (rf & 2) {
|
|
35308
35368
|
let _t;
|
|
35309
35369
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdownElement = _t.first);
|
|
35310
35370
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdown = _t.first);
|
|
35311
35371
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconElement = _t.first);
|
|
35312
35372
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
35313
|
-
|
|
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) {
|
|
35314
35375
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
35315
|
-
i0.ɵɵelementStart(0, "po-field-container",
|
|
35316
|
-
i0.ɵɵlistener("keydown", function
|
|
35317
|
-
i0.ɵɵtemplate(
|
|
35318
|
-
i0.ɵɵelementStart(
|
|
35319
|
-
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);
|
|
35320
35381
|
i0.ɵɵelementEnd()()();
|
|
35321
|
-
i0.ɵɵtemplate(
|
|
35322
|
-
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);
|
|
35323
35386
|
i0.ɵɵelementEnd();
|
|
35324
|
-
i0.ɵɵtemplate(16, PoMultiselectComponent_ng_template_16_Template, 2, 11, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
35325
35387
|
} if (rf & 2) {
|
|
35326
|
-
const dropdownDefault_r9 = i0.ɵɵreference(
|
|
35327
|
-
const dropdownCDK_r10 = i0.ɵɵreference(
|
|
35388
|
+
const dropdownDefault_r9 = i0.ɵɵreference(14);
|
|
35389
|
+
const dropdownCDK_r10 = i0.ɵɵreference(16);
|
|
35390
|
+
i0.ɵɵadvance(2);
|
|
35328
35391
|
i0.ɵɵproperty("p-disabled", ctx.disabled)("p-label", ctx.label)("p-optional", ctx.optional)("p-required", ctx.required)("p-show-required", ctx.showRequired);
|
|
35329
35392
|
i0.ɵɵadvance();
|
|
35330
35393
|
i0.ɵɵclassProp("po-multiselect-show", ctx.dropdownOpen);
|
|
@@ -35348,7 +35411,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
35348
35411
|
}
|
|
35349
35412
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoMultiselectComponent, [{
|
|
35350
35413
|
type: Component,
|
|
35351
|
-
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" }]
|
|
35352
35415
|
}], () => [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: PoControlPositionService }, { type: PoMultiselectFilterService }, { type: PoLanguageService }], { multiselectOptionTemplate: [{
|
|
35353
35416
|
type: ContentChild,
|
|
35354
35417
|
args: [PoMultiselectOptionTemplateDirective, { static: true }]
|
|
@@ -35364,6 +35427,9 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
35364
35427
|
}], inputElement: [{
|
|
35365
35428
|
type: ViewChild,
|
|
35366
35429
|
args: ['inputElement', { read: ElementRef, static: true }]
|
|
35430
|
+
}], outerContainer: [{
|
|
35431
|
+
type: ViewChild,
|
|
35432
|
+
args: ['outerContainer ', { read: ElementRef }]
|
|
35367
35433
|
}] }); })();
|
|
35368
35434
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoMultiselectComponent, { className: "PoMultiselectComponent", filePath: "lib/components/po-field/po-multiselect/po-multiselect.component.ts", lineNumber: 118 }); })();
|
|
35369
35435
|
|
|
@@ -41385,6 +41451,7 @@ class PoMultiselectDropdownComponent {
|
|
|
41385
41451
|
fieldValue;
|
|
41386
41452
|
fieldLabel;
|
|
41387
41453
|
multiselectTemplate;
|
|
41454
|
+
containerWidth;
|
|
41388
41455
|
/** Evento disparado a cada tecla digitada na pesquisa. */
|
|
41389
41456
|
changeSearch = new EventEmitter();
|
|
41390
41457
|
/** Evento disparado a cada alteração na lista das opções selecionadas. */
|
|
@@ -41491,7 +41558,7 @@ class PoMultiselectDropdownComponent {
|
|
|
41491
41558
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
41492
41559
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.divElement = _t.first);
|
|
41493
41560
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.listbox = _t.first);
|
|
41494
|
-
} }, 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) {
|
|
41495
41562
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
41496
41563
|
i0.ɵɵelementStart(0, "div", 3, 0)(2, "div", 4, 1);
|
|
41497
41564
|
i0.ɵɵelementContainerStart(4);
|
|
@@ -41505,12 +41572,12 @@ class PoMultiselectDropdownComponent {
|
|
|
41505
41572
|
i0.ɵɵadvance(2);
|
|
41506
41573
|
i0.ɵɵproperty("scrollTop", ctx.scrollTop);
|
|
41507
41574
|
i0.ɵɵadvance(3);
|
|
41508
|
-
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);
|
|
41509
41576
|
} }, dependencies: [PoListBoxComponent], encapsulation: 2, changeDetection: 0 });
|
|
41510
41577
|
}
|
|
41511
41578
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoMultiselectDropdownComponent, [{
|
|
41512
41579
|
type: Component,
|
|
41513
|
-
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" }]
|
|
41514
41581
|
}], () => [{ type: i0.ChangeDetectorRef }], { isServerSearching: [{
|
|
41515
41582
|
type: Input,
|
|
41516
41583
|
args: ['p-searching']
|
|
@@ -41544,6 +41611,9 @@ class PoMultiselectDropdownComponent {
|
|
|
41544
41611
|
}], multiselectTemplate: [{
|
|
41545
41612
|
type: Input,
|
|
41546
41613
|
args: ['p-multiselect-template']
|
|
41614
|
+
}], containerWidth: [{
|
|
41615
|
+
type: Input,
|
|
41616
|
+
args: ['p-container-width']
|
|
41547
41617
|
}], changeSearch: [{
|
|
41548
41618
|
type: Output,
|
|
41549
41619
|
args: ['p-change-search']
|
|
@@ -42978,6 +43048,28 @@ class PoDynamicViewBaseComponent extends PoDynamicSharedBase {
|
|
|
42978
43048
|
get showAllValue() {
|
|
42979
43049
|
return this._showAllValue;
|
|
42980
43050
|
}
|
|
43051
|
+
/**
|
|
43052
|
+
* @optional
|
|
43053
|
+
*
|
|
43054
|
+
* @description
|
|
43055
|
+
*
|
|
43056
|
+
* Permite a quebra de linha no texto do `p-value`, aplicando-a onde há `\n`.
|
|
43057
|
+
*
|
|
43058
|
+
* ```
|
|
43059
|
+
* <po-dynamic-view
|
|
43060
|
+
* [p-value]="{ description: 'Primeira linha\nSegunda linha' }"
|
|
43061
|
+
* [p-text-wrap]="true"
|
|
43062
|
+
* ></po-dynamic-view>
|
|
43063
|
+
* ```
|
|
43064
|
+
*
|
|
43065
|
+
* Saída:
|
|
43066
|
+
* ```
|
|
43067
|
+
* Primeira linha
|
|
43068
|
+
* Segunda linha
|
|
43069
|
+
* ```
|
|
43070
|
+
* @default `false`
|
|
43071
|
+
*/
|
|
43072
|
+
textWrap = false;
|
|
42981
43073
|
/**
|
|
42982
43074
|
* @description
|
|
42983
43075
|
*
|
|
@@ -43235,7 +43327,7 @@ class PoDynamicViewBaseComponent extends PoDynamicSharedBase {
|
|
|
43235
43327
|
return formattedField;
|
|
43236
43328
|
}
|
|
43237
43329
|
static ɵfac = function PoDynamicViewBaseComponent_Factory(t) { return new (t || PoDynamicViewBaseComponent)(i0.ɵɵdirectiveInject(i1.CurrencyPipe), i0.ɵɵdirectiveInject(i1.DatePipe), i0.ɵɵdirectiveInject(i1.DecimalPipe), i0.ɵɵdirectiveInject(PoTimePipe), i0.ɵɵdirectiveInject(i1.TitleCasePipe), i0.ɵɵdirectiveInject(PoDynamicViewService), i0.ɵɵdirectiveInject(PoComboFilterService), i0.ɵɵdirectiveInject(PoMultiselectFilterService)); };
|
|
43238
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoDynamicViewBaseComponent, inputs: { load: [0, "p-load", "load"], fields: [0, "p-fields", "fields"], showAllValue: [0, "p-show-all-value", "showAllValue"], value: [0, "p-value", "value"] }, features: [i0.ɵɵInheritDefinitionFeature] });
|
|
43330
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoDynamicViewBaseComponent, inputs: { load: [0, "p-load", "load"], fields: [0, "p-fields", "fields"], showAllValue: [0, "p-show-all-value", "showAllValue"], textWrap: [0, "p-text-wrap", "textWrap"], value: [0, "p-value", "value"] }, features: [i0.ɵɵInheritDefinitionFeature] });
|
|
43239
43331
|
}
|
|
43240
43332
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDynamicViewBaseComponent, [{
|
|
43241
43333
|
type: Directive
|
|
@@ -43248,6 +43340,9 @@ class PoDynamicViewBaseComponent extends PoDynamicSharedBase {
|
|
|
43248
43340
|
}], showAllValue: [{
|
|
43249
43341
|
type: Input,
|
|
43250
43342
|
args: ['p-show-all-value']
|
|
43343
|
+
}], textWrap: [{
|
|
43344
|
+
type: Input,
|
|
43345
|
+
args: ['p-text-wrap']
|
|
43251
43346
|
}], value: [{
|
|
43252
43347
|
type: Input,
|
|
43253
43348
|
args: ['p-value']
|
|
@@ -43485,6 +43580,7 @@ function PoDynamicViewComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
43485
43580
|
} if (rf & 2) {
|
|
43486
43581
|
const field_r10 = ctx.$implicit;
|
|
43487
43582
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
43583
|
+
i0.ɵɵclassProp("po-info-value-pre", ctx_r0.textWrap && ctx_r0.containsLineBreak(ctx_r0.setFieldValue(field_r10)));
|
|
43488
43584
|
i0.ɵɵproperty("ngClass", field_r10.cssClass)("p-label", field_r10.label)("p-value", ctx_r0.setFieldValue(field_r10));
|
|
43489
43585
|
} }
|
|
43490
43586
|
function PoDynamicViewComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -43562,6 +43658,9 @@ class PoDynamicViewComponent extends PoDynamicViewBaseComponent {
|
|
|
43562
43658
|
return field.value;
|
|
43563
43659
|
}
|
|
43564
43660
|
}
|
|
43661
|
+
containsLineBreak(value) {
|
|
43662
|
+
return value && value.includes('\n');
|
|
43663
|
+
}
|
|
43565
43664
|
async getValuesAndFieldsFromLoad() {
|
|
43566
43665
|
let valueAndFieldsFromLoad;
|
|
43567
43666
|
if (typeof this.load === 'string') {
|
|
@@ -43606,14 +43705,14 @@ class PoDynamicViewComponent extends PoDynamicViewBaseComponent {
|
|
|
43606
43705
|
}
|
|
43607
43706
|
static ɵfac = function PoDynamicViewComponent_Factory(t) { return new (t || PoDynamicViewComponent)(i0.ɵɵdirectiveInject(i1.CurrencyPipe), i0.ɵɵdirectiveInject(i1.DatePipe), i0.ɵɵdirectiveInject(i1.DecimalPipe), i0.ɵɵdirectiveInject(PoTimePipe), i0.ɵɵdirectiveInject(i1.TitleCasePipe), i0.ɵɵdirectiveInject(PoDynamicViewService), i0.ɵɵdirectiveInject(PoComboFilterService), i0.ɵɵdirectiveInject(PoMultiselectFilterService)); };
|
|
43608
43707
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDynamicViewComponent, selectors: [["po-dynamic-view"]], features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 11, vars: 1, consts: [["poContent", ""], ["poContentContainer", ""], ["poInfo", ""], ["poTag", ""], ["poImage", ""], ["class", "po-row", 3, "po-dynamic", 4, "ngIf"], [1, "po-row"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["ngFor", "", 3, "ngForOf"], ["class", "po-sm-12", 3, "p-label", 4, "ngIf"], [1, "po-sm-12", 3, "p-label"], [3, "p-fields", "p-content"], [3, "ngClass", "p-label", "p-value"], [3, "ngClass", "p-color", "p-icon", "p-label", "p-text-color", "p-value"], [3, "p-alt", "p-height", "p-src"]], template: function PoDynamicViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
43609
|
-
i0.ɵɵtemplate(0, PoDynamicViewComponent_div_0_Template, 2, 6, "div", 5)(1, PoDynamicViewComponent_ng_template_1_Template, 1, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(3, PoDynamicViewComponent_ng_template_3_Template, 1, 2, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(5, PoDynamicViewComponent_ng_template_5_Template, 1,
|
|
43708
|
+
i0.ɵɵtemplate(0, PoDynamicViewComponent_div_0_Template, 2, 6, "div", 5)(1, PoDynamicViewComponent_ng_template_1_Template, 1, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(3, PoDynamicViewComponent_ng_template_3_Template, 1, 2, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(5, PoDynamicViewComponent_ng_template_5_Template, 1, 5, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(7, PoDynamicViewComponent_ng_template_7_Template, 1, 6, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor)(9, PoDynamicViewComponent_ng_template_9_Template, 1, 3, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
43610
43709
|
} if (rf & 2) {
|
|
43611
43710
|
i0.ɵɵproperty("ngIf", ctx.visibleFields.length);
|
|
43612
43711
|
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, PoDividerComponent, PoInfoComponent, PoTagComponent, PoImageComponent, PoDynamicContainerComponent], encapsulation: 2 });
|
|
43613
43712
|
}
|
|
43614
43713
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDynamicViewComponent, [{
|
|
43615
43714
|
type: Component,
|
|
43616
|
-
args: [{ selector: 'po-dynamic-view', template: "<div class=\"po-row\" [class.po-dynamic]=\"hasContainers\" *ngIf=\"visibleFields.length\">\n <ng-container\n *ngTemplateOutlet=\"\n hasContainers ? poContentContainer : poContent;\n context: { $implicit: hasContainers ? containerFields : visibleFields }\n \"\n ></ng-container>\n</div>\n\n<ng-template #poContent let-fields>\n <ng-template ngFor let-field [ngForOf]=\"fields\">\n <po-divider *ngIf=\"field?.divider?.trim()\" class=\"po-sm-12\" [p-label]=\"field.divider\"> </po-divider>\n <ng-container\n *ngTemplateOutlet=\"\n !field.tag && !field.image ? poInfo : !field.image ? poTag : poImage;\n context: { $implicit: field }\n \"\n >\n </ng-container>\n </ng-template>\n</ng-template>\n\n<ng-template #poContentContainer let-fields>\n <po-dynamic-container [p-fields]=\"fields\" [p-content]=\"poContent\"></po-dynamic-container>\n</ng-template>\n\n<ng-template #poInfo let-field>\n <po-info
|
|
43715
|
+
args: [{ selector: 'po-dynamic-view', template: "<div class=\"po-row\" [class.po-dynamic]=\"hasContainers\" *ngIf=\"visibleFields.length\">\n <ng-container\n *ngTemplateOutlet=\"\n hasContainers ? poContentContainer : poContent;\n context: { $implicit: hasContainers ? containerFields : visibleFields }\n \"\n ></ng-container>\n</div>\n\n<ng-template #poContent let-fields>\n <ng-template ngFor let-field [ngForOf]=\"fields\">\n <po-divider *ngIf=\"field?.divider?.trim()\" class=\"po-sm-12\" [p-label]=\"field.divider\"> </po-divider>\n <ng-container\n *ngTemplateOutlet=\"\n !field.tag && !field.image ? poInfo : !field.image ? poTag : poImage;\n context: { $implicit: field }\n \"\n >\n </ng-container>\n </ng-template>\n</ng-template>\n\n<ng-template #poContentContainer let-fields>\n <po-dynamic-container [p-fields]=\"fields\" [p-content]=\"poContent\"></po-dynamic-container>\n</ng-template>\n\n<ng-template #poInfo let-field>\n <po-info\n [ngClass]=\"field.cssClass\"\n [class.po-info-value-pre]=\"textWrap && containsLineBreak(setFieldValue(field))\"\n [p-label]=\"field.label\"\n [p-value]=\"setFieldValue(field)\"\n >\n </po-info\n></ng-template>\n\n<ng-template #poTag let-field>\n <po-tag\n [ngClass]=\"field.cssClass\"\n [p-color]=\"field.color\"\n [p-icon]=\"field.icon\"\n [p-label]=\"field.label\"\n [p-text-color]=\"field.textColor\"\n [p-value]=\"setFieldValue(field)\"\n >\n </po-tag>\n</ng-template>\n\n<ng-template #poImage let-field>\n <po-image [p-alt]=\"field.alt\" [p-height]=\"field.height\" [p-src]=\"field.value\"> </po-image>\n</ng-template>\n" }]
|
|
43617
43716
|
}], () => [{ type: i1.CurrencyPipe }, { type: i1.DatePipe }, { type: i1.DecimalPipe }, { type: PoTimePipe }, { type: i1.TitleCasePipe }, { type: PoDynamicViewService }, { type: PoComboFilterService }, { type: PoMultiselectFilterService }], null); })();
|
|
43618
43717
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoDynamicViewComponent, { className: "PoDynamicViewComponent", filePath: "lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.ts", lineNumber: 42 }); })();
|
|
43619
43718
|
|
|
@@ -53605,10 +53704,9 @@ class PoTabsComponent extends PoTabsBaseComponent {
|
|
|
53605
53704
|
lastTabChildren.widthButton = this.defaultLastTabWidth;
|
|
53606
53705
|
}
|
|
53607
53706
|
if (this.tabsChildren) {
|
|
53608
|
-
const _tabsChildren = this.tabsChildrenArray;
|
|
53707
|
+
const _tabsChildren = [...this.tabsChildrenArray];
|
|
53609
53708
|
if (initialState) {
|
|
53610
53709
|
this.tabsDefault = _tabsChildren;
|
|
53611
|
-
this.tabsDropdown = _tabsChildren;
|
|
53612
53710
|
}
|
|
53613
53711
|
else {
|
|
53614
53712
|
this.tabsDefault = _tabsChildren.slice(0, this.quantityTabsButton);
|