@po-ui/ng-components 18.21.0 → 18.23.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-form/po-dynamic-form-field.interface.mjs +1 -1
- package/esm2022/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.mjs +19 -19
- package/esm2022/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.mjs +18 -2
- package/esm2022/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-combo/po-combo-base.component.mjs +22 -2
- package/esm2022/lib/components/po-field/po-combo/po-combo.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-datepicker/po-datepicker-base.component.mjs +22 -2
- package/esm2022/lib/components/po-field/po-datepicker/po-datepicker.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.mjs +18 -2
- package/esm2022/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-decimal/po-decimal.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-email/po-email.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.mjs +27 -10
- package/esm2022/lib/components/po-field/po-field-container/po-field-container.module.mjs +5 -4
- package/esm2022/lib/components/po-field/po-field-validate.model.mjs +22 -2
- package/esm2022/lib/components/po-field/po-input/po-input-base.component.mjs +22 -2
- package/esm2022/lib/components/po-field/po-input/po-input.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-login/po-login.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-lookup/po-lookup-base.component.mjs +22 -2
- package/esm2022/lib/components/po-field/po-lookup/po-lookup.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-multiselect/po-multiselect-base.component.mjs +22 -2
- package/esm2022/lib/components/po-field/po-multiselect/po-multiselect.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-number/po-number.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-password/po-password.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-radio-group/po-radio-group-base.component.mjs +18 -2
- package/esm2022/lib/components/po-field/po-radio-group/po-radio-group.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-rich-text/po-rich-text-base.component.mjs +18 -2
- package/esm2022/lib/components/po-field/po-rich-text/po-rich-text.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-select/po-select.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-textarea/po-textarea-base.component.mjs +18 -2
- package/esm2022/lib/components/po-field/po-textarea/po-textarea.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-upload/po-upload-base.component.mjs +86 -2
- package/esm2022/lib/components/po-field/po-upload/po-upload.component.mjs +17 -7
- package/esm2022/lib/components/po-field/po-url/po-url.component.mjs +4 -4
- package/esm2022/lib/components/po-progress/index.mjs +2 -1
- package/esm2022/lib/components/po-progress/interfaces/index.mjs +2 -0
- package/esm2022/lib/components/po-progress/interfaces/po-progress-actions.interface.mjs +2 -0
- package/esm2022/lib/components/po-progress/po-progress-base.component.mjs +87 -2
- package/esm2022/lib/components/po-progress/po-progress.component.mjs +44 -15
- package/fesm2022/po-ui-ng-components.mjs +553 -132
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-field.interface.d.ts +57 -1
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +14 -1
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +16 -1
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +16 -1
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +14 -1
- package/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.d.ts +7 -1
- package/lib/components/po-field/po-field-container/po-field-container.module.d.ts +2 -1
- package/lib/components/po-field/po-field-validate.model.d.ts +16 -1
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +16 -1
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +16 -1
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +16 -1
- package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +14 -1
- package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +14 -1
- package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +14 -1
- package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +80 -1
- package/lib/components/po-field/po-upload/po-upload.component.d.ts +6 -0
- package/lib/components/po-progress/index.d.ts +1 -0
- package/lib/components/po-progress/interfaces/index.d.ts +1 -0
- package/lib/components/po-progress/interfaces/po-progress-actions.interface.d.ts +83 -0
- package/lib/components/po-progress/po-progress-base.component.d.ts +81 -1
- package/lib/components/po-progress/po-progress.component.d.ts +4 -0
- package/package.json +4 -4
- package/po-ui-ng-components-18.23.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.21.0.tgz +0 -0
|
@@ -6,7 +6,7 @@ import * as i2$3 from '@angular/animations';
|
|
|
6
6
|
import { trigger, transition, style, animate, group, query, animateChild, state, keyframes } from '@angular/animations';
|
|
7
7
|
import { Subject, filter, fromEvent, debounceTime, from, timer, of, Subscription, switchMap as switchMap$1, isObservable, ReplaySubject, throwError, map as map$1, catchError as catchError$1, Observable } from 'rxjs';
|
|
8
8
|
import * as i2 from '@angular/router';
|
|
9
|
-
import { RouterModule, NavigationEnd, NavigationCancel } from '@angular/router';
|
|
9
|
+
import { RouterModule, Router, NavigationEnd, NavigationCancel } from '@angular/router';
|
|
10
10
|
import * as i5 from '@angular/cdk/listbox';
|
|
11
11
|
import { CdkListboxModule } from '@angular/cdk/listbox';
|
|
12
12
|
import * as i1$1 from '@angular/platform-browser';
|
|
@@ -14200,16 +14200,19 @@ class PoDropdownModule {
|
|
|
14200
14200
|
function PoFieldContainerBottomComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
14201
14201
|
i0.ɵɵelementStart(0, "div", 3);
|
|
14202
14202
|
i0.ɵɵelement(1, "po-icon", 4);
|
|
14203
|
-
i0.ɵɵelementStart(2, "span");
|
|
14203
|
+
i0.ɵɵelementStart(2, "span", 5);
|
|
14204
14204
|
i0.ɵɵtext(3);
|
|
14205
14205
|
i0.ɵɵelementEnd()();
|
|
14206
14206
|
} if (rf & 2) {
|
|
14207
14207
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
14208
|
-
i0.ɵɵadvance(
|
|
14209
|
-
i0.ɵɵ
|
|
14208
|
+
i0.ɵɵadvance(2);
|
|
14209
|
+
i0.ɵɵclassProp("po-field-error-limit", ctx_r0.errorLimit);
|
|
14210
|
+
i0.ɵɵproperty("p-tooltip", ctx_r0.errorLimit ? ctx_r0.errorPattern : null)("p-append-in-body", ctx_r0.appendBox);
|
|
14211
|
+
i0.ɵɵadvance();
|
|
14212
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.errorPattern, " ");
|
|
14210
14213
|
} }
|
|
14211
14214
|
function PoFieldContainerBottomComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
14212
|
-
i0.ɵɵelementStart(0, "span",
|
|
14215
|
+
i0.ɵɵelementStart(0, "span", 6);
|
|
14213
14216
|
i0.ɵɵtext(1);
|
|
14214
14217
|
i0.ɵɵelementEnd();
|
|
14215
14218
|
} if (rf & 2) {
|
|
@@ -14231,35 +14234,47 @@ class PoFieldContainerBottomComponent {
|
|
|
14231
14234
|
* Obs: Esta mensagem não é apresentada quando o campo estiver vazio, mesmo que ele seja requerido.
|
|
14232
14235
|
*/
|
|
14233
14236
|
errorPattern = '';
|
|
14237
|
+
/**
|
|
14238
|
+
* Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
|
|
14239
|
+
*/
|
|
14240
|
+
errorLimit = false;
|
|
14234
14241
|
disabled = false;
|
|
14235
14242
|
help;
|
|
14243
|
+
appendBox = false;
|
|
14236
14244
|
static ɵfac = function PoFieldContainerBottomComponent_Factory(t) { return new (t || PoFieldContainerBottomComponent)(); };
|
|
14237
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoFieldContainerBottomComponent, selectors: [["po-field-container-bottom"]], inputs: { errorPattern: [0, "p-error-pattern", "errorPattern"], disabled: [0, "p-disabled", "disabled"], help: [0, "p-help", "help"] }, decls: 3, vars:
|
|
14245
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoFieldContainerBottomComponent, selectors: [["po-field-container-bottom"]], inputs: { errorPattern: [0, "p-error-pattern", "errorPattern"], errorLimit: [0, "p-error-limit", "errorLimit"], disabled: [0, "p-disabled", "disabled"], help: [0, "p-help", "help"], appendBox: [2, "p-append-in-body", "appendBox", convertToBoolean] }, features: [i0.ɵɵInputTransformsFeature], decls: 3, vars: 5, consts: [["role", "alert", "aria-live", "assertive", "tabindex", "-1", 1, "po-field-container-bottom"], ["class", "po-field-container-bottom-text-error", 4, "ngIf"], ["class", "po-field-container-bottom-help-text", 4, "ngIf"], [1, "po-field-container-bottom-text-error"], ["p-icon", "ph ph-warning-circle"], ["p-tooltip-position", "top", 1, "po-field-error-message", 3, "p-tooltip", "p-append-in-body"], [1, "po-field-container-bottom-help-text"]], template: function PoFieldContainerBottomComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14238
14246
|
i0.ɵɵelementStart(0, "div", 0);
|
|
14239
|
-
i0.ɵɵtemplate(1, PoFieldContainerBottomComponent_div_1_Template, 4,
|
|
14247
|
+
i0.ɵɵtemplate(1, PoFieldContainerBottomComponent_div_1_Template, 4, 5, "div", 1)(2, PoFieldContainerBottomComponent_span_2_Template, 2, 1, "span", 2);
|
|
14240
14248
|
i0.ɵɵelementEnd();
|
|
14241
14249
|
} if (rf & 2) {
|
|
14242
14250
|
i0.ɵɵclassProp("po-field-container-bottom-disabled", ctx.disabled);
|
|
14251
|
+
i0.ɵɵattribute("aria-label", ctx.errorPattern && ctx.errorLimit ? ctx.errorPattern : null);
|
|
14243
14252
|
i0.ɵɵadvance();
|
|
14244
14253
|
i0.ɵɵproperty("ngIf", ctx.errorPattern);
|
|
14245
14254
|
i0.ɵɵadvance();
|
|
14246
14255
|
i0.ɵɵproperty("ngIf", ctx.help && !ctx.errorPattern);
|
|
14247
|
-
} }, dependencies: [i1.NgIf, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
14256
|
+
} }, dependencies: [i1.NgIf, PoIconComponent, PoTooltipDirective], encapsulation: 2, changeDetection: 0 });
|
|
14248
14257
|
}
|
|
14249
14258
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoFieldContainerBottomComponent, [{
|
|
14250
14259
|
type: Component,
|
|
14251
|
-
args: [{ selector: 'po-field-container-bottom', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div
|
|
14260
|
+
args: [{ selector: 'po-field-container-bottom', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"po-field-container-bottom\"\n [class.po-field-container-bottom-disabled]=\"disabled\"\n [attr.aria-label]=\"errorPattern && errorLimit ? errorPattern : null\"\n role=\"alert\"\n aria-live=\"assertive\"\n tabindex=\"-1\"\n>\n <div *ngIf=\"errorPattern\" class=\"po-field-container-bottom-text-error\">\n <po-icon p-icon=\"ph ph-warning-circle\"></po-icon>\n <span\n class=\"po-field-error-message\"\n [class.po-field-error-limit]=\"errorLimit\"\n [p-tooltip]=\"errorLimit ? errorPattern : null\"\n p-tooltip-position=\"top\"\n [p-append-in-body]=\"appendBox\"\n >\n {{ errorPattern }}\n </span>\n </div>\n\n <span *ngIf=\"help && !errorPattern\" class=\"po-field-container-bottom-help-text\">\n {{ help }}\n </span>\n</div>\n" }]
|
|
14252
14261
|
}], null, { errorPattern: [{
|
|
14253
14262
|
type: Input,
|
|
14254
14263
|
args: ['p-error-pattern']
|
|
14264
|
+
}], errorLimit: [{
|
|
14265
|
+
type: Input,
|
|
14266
|
+
args: ['p-error-limit']
|
|
14255
14267
|
}], disabled: [{
|
|
14256
14268
|
type: Input,
|
|
14257
14269
|
args: ['p-disabled']
|
|
14258
14270
|
}], help: [{
|
|
14259
14271
|
type: Input,
|
|
14260
14272
|
args: ['p-help']
|
|
14273
|
+
}], appendBox: [{
|
|
14274
|
+
type: Input,
|
|
14275
|
+
args: [{ alias: 'p-append-in-body', transform: convertToBoolean }]
|
|
14261
14276
|
}] }); })();
|
|
14262
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoFieldContainerBottomComponent, { className: "PoFieldContainerBottomComponent", filePath: "lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.ts", lineNumber:
|
|
14277
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoFieldContainerBottomComponent, { className: "PoFieldContainerBottomComponent", filePath: "lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.ts", lineNumber: 17 }); })();
|
|
14263
14278
|
|
|
14264
14279
|
const poFieldContainerLiterals = {
|
|
14265
14280
|
en: {
|
|
@@ -14408,17 +14423,17 @@ class PoFieldContainerComponent {
|
|
|
14408
14423
|
class PoFieldContainerModule {
|
|
14409
14424
|
static ɵfac = function PoFieldContainerModule_Factory(t) { return new (t || PoFieldContainerModule)(); };
|
|
14410
14425
|
static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PoFieldContainerModule });
|
|
14411
|
-
static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, PoLabelModule, PoIconModule] });
|
|
14426
|
+
static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, PoLabelModule, PoIconModule, PoTooltipModule] });
|
|
14412
14427
|
}
|
|
14413
14428
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoFieldContainerModule, [{
|
|
14414
14429
|
type: NgModule,
|
|
14415
14430
|
args: [{
|
|
14416
|
-
imports: [CommonModule, PoLabelModule, PoIconModule],
|
|
14431
|
+
imports: [CommonModule, PoLabelModule, PoIconModule, PoTooltipModule],
|
|
14417
14432
|
exports: [PoFieldContainerBottomComponent, PoFieldContainerComponent],
|
|
14418
14433
|
declarations: [PoFieldContainerBottomComponent, PoFieldContainerComponent]
|
|
14419
14434
|
}]
|
|
14420
14435
|
}], null, null); })();
|
|
14421
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoFieldContainerModule, { declarations: [PoFieldContainerBottomComponent, PoFieldContainerComponent], imports: [CommonModule, PoLabelModule, PoIconModule], exports: [PoFieldContainerBottomComponent, PoFieldContainerComponent] }); })();
|
|
14436
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoFieldContainerModule, { declarations: [PoFieldContainerBottomComponent, PoFieldContainerComponent], imports: [CommonModule, PoLabelModule, PoIconModule, PoTooltipModule], exports: [PoFieldContainerBottomComponent, PoFieldContainerComponent] }); })();
|
|
14422
14437
|
|
|
14423
14438
|
function requiredFailed(required, disabled, value) {
|
|
14424
14439
|
const valid = (typeof value === 'string' && value) ||
|
|
@@ -14549,6 +14564,19 @@ class PoCheckboxGroupBaseComponent {
|
|
|
14549
14564
|
*
|
|
14550
14565
|
*/
|
|
14551
14566
|
fieldErrorMessage;
|
|
14567
|
+
/**
|
|
14568
|
+
* @optional
|
|
14569
|
+
*
|
|
14570
|
+
* @description
|
|
14571
|
+
*
|
|
14572
|
+
* Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
|
|
14573
|
+
*
|
|
14574
|
+
* > Caso essa propriedade seja definida como `true`, a mensagem de erro será limitada a duas linhas
|
|
14575
|
+
* e um tooltip será exibido ao passar o mouse sobre a mensagem para mostrar o conteúdo completo.
|
|
14576
|
+
*
|
|
14577
|
+
* @default `false`
|
|
14578
|
+
*/
|
|
14579
|
+
errorLimit = false;
|
|
14552
14580
|
/**
|
|
14553
14581
|
* @optional
|
|
14554
14582
|
*
|
|
@@ -14785,7 +14813,7 @@ class PoCheckboxGroupBaseComponent {
|
|
|
14785
14813
|
this.checkboxGroupOptionsView = optionsList.map(option => ({ ...option, id: uuid() }));
|
|
14786
14814
|
}
|
|
14787
14815
|
static ɵfac = function PoCheckboxGroupBaseComponent_Factory(t) { return new (t || PoCheckboxGroupBaseComponent)(); };
|
|
14788
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoCheckboxGroupBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], name: "name", help: [0, "p-help", "help"], label: [0, "p-label", "label"], optional: [0, "p-optional", "optional"], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], columns: [0, "p-columns", "columns"], disabled: [0, "p-disabled", "disabled"], indeterminate: [0, "p-indeterminate", "indeterminate"], options: [0, "p-options", "options"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"] }, outputs: { ngModelChange: "ngModelChange", change: "p-change" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
14816
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoCheckboxGroupBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], name: "name", help: [0, "p-help", "help"], label: [0, "p-label", "label"], optional: [0, "p-optional", "optional"], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], errorLimit: [0, "p-error-limit", "errorLimit"], columns: [0, "p-columns", "columns"], disabled: [0, "p-disabled", "disabled"], indeterminate: [0, "p-indeterminate", "indeterminate"], options: [0, "p-options", "options"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"] }, outputs: { ngModelChange: "ngModelChange", change: "p-change" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
14789
14817
|
}
|
|
14790
14818
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxGroupBaseComponent, [{
|
|
14791
14819
|
type: Directive
|
|
@@ -14807,6 +14835,9 @@ class PoCheckboxGroupBaseComponent {
|
|
|
14807
14835
|
}], fieldErrorMessage: [{
|
|
14808
14836
|
type: Input,
|
|
14809
14837
|
args: ['p-field-error-message']
|
|
14838
|
+
}], errorLimit: [{
|
|
14839
|
+
type: Input,
|
|
14840
|
+
args: ['p-error-limit']
|
|
14810
14841
|
}], ngModelChange: [{
|
|
14811
14842
|
type: Output,
|
|
14812
14843
|
args: ['ngModelChange']
|
|
@@ -14941,7 +14972,7 @@ class PoCheckboxGroupComponent extends PoCheckboxGroupBaseComponent {
|
|
|
14941
14972
|
useExisting: forwardRef(() => PoCheckboxGroupComponent),
|
|
14942
14973
|
multi: true
|
|
14943
14974
|
}
|
|
14944
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars:
|
|
14975
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 11, consts: [["checkboxLabel", ""], [3, "p-disabled", "p-help", "p-label", "p-optional", "p-required", "p-show-required"], ["role", "group", 1, "po-field-container-content", "po-checkbox-group-content"], [1, "po-row", "po-pt-2", "po-pb-1"], [3, "class", "po-checkbox-group-item-disabled", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "p-error-pattern", "p-error-limit"], [3, "click", "keydown", "p-label", "p-disabled", "p-checkboxValue", "p-required"]], template: function PoCheckboxGroupComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14945
14976
|
i0.ɵɵelementStart(0, "po-field-container", 1)(1, "div", 2)(2, "ul", 3);
|
|
14946
14977
|
i0.ɵɵtemplate(3, PoCheckboxGroupComponent_li_3_Template, 3, 10, "li", 4);
|
|
14947
14978
|
i0.ɵɵelementEnd()();
|
|
@@ -14954,7 +14985,7 @@ class PoCheckboxGroupComponent extends PoCheckboxGroupBaseComponent {
|
|
|
14954
14985
|
i0.ɵɵadvance(2);
|
|
14955
14986
|
i0.ɵɵproperty("ngForOf", ctx.checkboxGroupOptionsView)("ngForTrackBy", ctx.trackByFn);
|
|
14956
14987
|
i0.ɵɵadvance();
|
|
14957
|
-
i0.ɵɵproperty("p-error-pattern", ctx.getErrorPattern());
|
|
14988
|
+
i0.ɵɵproperty("p-error-pattern", ctx.getErrorPattern())("p-error-limit", ctx.errorLimit);
|
|
14958
14989
|
} }, dependencies: [i1.NgForOf, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoCheckboxComponent], encapsulation: 2, changeDetection: 0 });
|
|
14959
14990
|
}
|
|
14960
14991
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxGroupComponent, [{
|
|
@@ -14970,7 +15001,7 @@ class PoCheckboxGroupComponent extends PoCheckboxGroupBaseComponent {
|
|
|
14970
15001
|
useExisting: forwardRef(() => PoCheckboxGroupComponent),
|
|
14971
15002
|
multi: true
|
|
14972
15003
|
}
|
|
14973
|
-
], template: "<po-field-container\n [p-disabled]=\"disabled\"\n [p-help]=\"help\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div role=\"group\" [attr.aria-label]=\"label\" class=\"po-field-container-content po-checkbox-group-content\">\n <ul class=\"po-row po-pt-2 po-pb-1\">\n <li\n *ngFor=\"let option of checkboxGroupOptionsView; trackBy: trackByFn\"\n class=\"po-checkbox-group-item po-md-{{ mdColumns }} po-lg-{{ columns }}\"\n [class.po-checkbox-group-item-disabled]=\"option.disabled || disabled\"\n >\n <po-checkbox\n #checkboxLabel\n [p-label]=\"option.label\"\n [p-disabled]=\"option.disabled || disabled\"\n (click)=\"checkOption(option)\"\n (keydown)=\"onKeyDown($event, option)\"\n [p-checkboxValue]=\"checkedOptions[option.value] === null ? 'mixed' : checkedOptions[option.value]\"\n [p-required]=\"required\"\n >\n </po-checkbox>\n </li>\n </ul>\n </div>\n\n <po-field-container-bottom
|
|
15004
|
+
], template: "<po-field-container\n [p-disabled]=\"disabled\"\n [p-help]=\"help\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div role=\"group\" [attr.aria-label]=\"label\" class=\"po-field-container-content po-checkbox-group-content\">\n <ul class=\"po-row po-pt-2 po-pb-1\">\n <li\n *ngFor=\"let option of checkboxGroupOptionsView; trackBy: trackByFn\"\n class=\"po-checkbox-group-item po-md-{{ mdColumns }} po-lg-{{ columns }}\"\n [class.po-checkbox-group-item-disabled]=\"option.disabled || disabled\"\n >\n <po-checkbox\n #checkboxLabel\n [p-label]=\"option.label\"\n [p-disabled]=\"option.disabled || disabled\"\n (click)=\"checkOption(option)\"\n (keydown)=\"onKeyDown($event, option)\"\n [p-checkboxValue]=\"checkedOptions[option.value] === null ? 'mixed' : checkedOptions[option.value]\"\n [p-required]=\"required\"\n >\n </po-checkbox>\n </li>\n </ul>\n </div>\n\n <po-field-container-bottom\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
14974
15005
|
}], () => [{ type: i0.ChangeDetectorRef }], { checkboxLabels: [{
|
|
14975
15006
|
type: ViewChildren,
|
|
14976
15007
|
args: ['checkboxLabel']
|
|
@@ -15087,6 +15118,19 @@ class PoRadioGroupBaseComponent {
|
|
|
15087
15118
|
*
|
|
15088
15119
|
*/
|
|
15089
15120
|
fieldErrorMessage;
|
|
15121
|
+
/**
|
|
15122
|
+
* @optional
|
|
15123
|
+
*
|
|
15124
|
+
* @description
|
|
15125
|
+
*
|
|
15126
|
+
* Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
|
|
15127
|
+
*
|
|
15128
|
+
* > Caso essa propriedade seja definida como `true`, a mensagem de erro será limitada a duas linhas
|
|
15129
|
+
* e um tooltip será exibido ao passar o mouse sobre a mensagem para mostrar o conteúdo completo.
|
|
15130
|
+
*
|
|
15131
|
+
* @default `false`
|
|
15132
|
+
*/
|
|
15133
|
+
errorLimit = false;
|
|
15090
15134
|
/**
|
|
15091
15135
|
* @optional
|
|
15092
15136
|
*
|
|
@@ -15242,7 +15286,7 @@ class PoRadioGroupBaseComponent {
|
|
|
15242
15286
|
}
|
|
15243
15287
|
}
|
|
15244
15288
|
static ɵfac = function PoRadioGroupBaseComponent_Factory(t) { return new (t || PoRadioGroupBaseComponent)(); };
|
|
15245
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoRadioGroupBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], name: "name", optional: [0, "p-optional", "optional"], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], columns: [0, "p-columns", "columns"], disabled: [0, "p-disabled", "disabled"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"], options: [0, "p-options", "options"], size: [0, "p-size", "size"] }, outputs: { change: "p-change" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
15289
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoRadioGroupBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], name: "name", optional: [0, "p-optional", "optional"], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], errorLimit: [0, "p-error-limit", "errorLimit"], columns: [0, "p-columns", "columns"], disabled: [0, "p-disabled", "disabled"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"], options: [0, "p-options", "options"], size: [0, "p-size", "size"] }, outputs: { change: "p-change" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
15246
15290
|
}
|
|
15247
15291
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoRadioGroupBaseComponent, [{
|
|
15248
15292
|
type: Directive
|
|
@@ -15258,6 +15302,9 @@ class PoRadioGroupBaseComponent {
|
|
|
15258
15302
|
}], fieldErrorMessage: [{
|
|
15259
15303
|
type: Input,
|
|
15260
15304
|
args: ['p-field-error-message']
|
|
15305
|
+
}], errorLimit: [{
|
|
15306
|
+
type: Input,
|
|
15307
|
+
args: ['p-error-limit']
|
|
15261
15308
|
}], change: [{
|
|
15262
15309
|
type: Output,
|
|
15263
15310
|
args: ['p-change']
|
|
@@ -15683,7 +15730,7 @@ class PoRadioGroupComponent extends PoRadioGroupBaseComponent {
|
|
|
15683
15730
|
useExisting: forwardRef(() => PoRadioGroupComponent),
|
|
15684
15731
|
multi: true
|
|
15685
15732
|
}
|
|
15686
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 6, vars:
|
|
15733
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 12, consts: [["inp", ""], ["inputRadio", ""], [3, "p-disabled", "p-help", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], ["role", "radiogroup", 1, "po-radio-group"], [3, "class", 4, "ngFor", "ngForOf"], [3, "p-error-pattern", "p-error-limit"], [3, "keyup", "click", "name", "p-checked", "p-disabled", "p-label", "p-required", "p-size", "p-value"]], template: function PoRadioGroupComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15687
15734
|
i0.ɵɵelementStart(0, "po-field-container", 2)(1, "div", 3)(2, "div", 4, 0);
|
|
15688
15735
|
i0.ɵɵtemplate(4, PoRadioGroupComponent_div_4_Template, 3, 11, "div", 5);
|
|
15689
15736
|
i0.ɵɵelementEnd()();
|
|
@@ -15698,7 +15745,7 @@ class PoRadioGroupComponent extends PoRadioGroupBaseComponent {
|
|
|
15698
15745
|
i0.ɵɵadvance(2);
|
|
15699
15746
|
i0.ɵɵproperty("ngForOf", ctx.options);
|
|
15700
15747
|
i0.ɵɵadvance();
|
|
15701
|
-
i0.ɵɵproperty("p-error-pattern", ctx.getErrorPattern());
|
|
15748
|
+
i0.ɵɵproperty("p-error-pattern", ctx.getErrorPattern())("p-error-limit", ctx.errorLimit);
|
|
15702
15749
|
} }, dependencies: [i1.NgForOf, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoRadioComponent], encapsulation: 2, changeDetection: 0 });
|
|
15703
15750
|
}
|
|
15704
15751
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoRadioGroupComponent, [{
|
|
@@ -15714,7 +15761,7 @@ class PoRadioGroupComponent extends PoRadioGroupBaseComponent {
|
|
|
15714
15761
|
useExisting: forwardRef(() => PoRadioGroupComponent),
|
|
15715
15762
|
multi: true
|
|
15716
15763
|
}
|
|
15717
|
-
], template: "<po-field-container\n [p-disabled]=\"disabled\"\n [p-help]=\"help\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div class=\"po-field-container-content\" [attr.name]=\"name\">\n <div #inp class=\"po-radio-group\" role=\"radiogroup\" [attr.aria-label]=\"label\" [attr.data-options]=\"options.length\">\n <div *ngFor=\"let option of options\" class=\"po-radio-group-item po-md-{{ mdColumns }} po-lg-{{ columns }}\">\n <po-radio\n #inputRadio\n [name]=\"name\"\n [p-checked]=\"value === option.value\"\n [p-disabled]=\"option.disabled === true || disabled\"\n [p-label]=\"option.label\"\n [p-required]=\"required\"\n [p-size]=\"size\"\n [p-value]=\"option.value\"\n (keyup)=\"onKeyUp($event, option.value)\"\n (click)=\"eventClick(option.value, option.disabled === true || disabled)\"\n >\n </po-radio>\n </div>\n </div>\n </div>\n <po-field-container-bottom
|
|
15764
|
+
], template: "<po-field-container\n [p-disabled]=\"disabled\"\n [p-help]=\"help\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div class=\"po-field-container-content\" [attr.name]=\"name\">\n <div #inp class=\"po-radio-group\" role=\"radiogroup\" [attr.aria-label]=\"label\" [attr.data-options]=\"options.length\">\n <div *ngFor=\"let option of options\" class=\"po-radio-group-item po-md-{{ mdColumns }} po-lg-{{ columns }}\">\n <po-radio\n #inputRadio\n [name]=\"name\"\n [p-checked]=\"value === option.value\"\n [p-disabled]=\"option.disabled === true || disabled\"\n [p-label]=\"option.label\"\n [p-required]=\"required\"\n [p-size]=\"size\"\n [p-value]=\"option.value\"\n (keyup)=\"onKeyUp($event, option.value)\"\n (click)=\"eventClick(option.value, option.disabled === true || disabled)\"\n >\n </po-radio>\n </div>\n </div>\n </div>\n <po-field-container-bottom\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
15718
15765
|
}], () => [{ type: i0.IterableDiffers }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], { label: [{
|
|
15719
15766
|
type: Input,
|
|
15720
15767
|
args: ['p-label']
|
|
@@ -16477,6 +16524,20 @@ class PoDatepickerBaseComponent {
|
|
|
16477
16524
|
* Para exibir a mensagem com o campo vazio, utilize a propriedade `p-required-field-error-message` em conjunto.
|
|
16478
16525
|
*/
|
|
16479
16526
|
errorPattern = '';
|
|
16527
|
+
/**
|
|
16528
|
+
* @optional
|
|
16529
|
+
*
|
|
16530
|
+
* @description
|
|
16531
|
+
*
|
|
16532
|
+
* Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
|
|
16533
|
+
*
|
|
16534
|
+
* > Caso essa propriedade seja definida como `true`, a mensagem de erro será limitada a duas linhas
|
|
16535
|
+
* e um tooltip será exibido ao passar o mouse sobre a mensagem para mostrar o conteúdo completo.
|
|
16536
|
+
*
|
|
16537
|
+
* @default `false`
|
|
16538
|
+
*/
|
|
16539
|
+
errorLimit = false;
|
|
16540
|
+
errorAppendBox = false;
|
|
16480
16541
|
/**
|
|
16481
16542
|
* @optional
|
|
16482
16543
|
*
|
|
@@ -16867,7 +16928,7 @@ class PoDatepickerBaseComponent {
|
|
|
16867
16928
|
this.hour = 'T00:00:00' + timezone;
|
|
16868
16929
|
}
|
|
16869
16930
|
static ɵfac = function PoDatepickerBaseComponent_Factory(t) { return new (t || PoDatepickerBaseComponent)(i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
16870
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoDatepickerBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], errorAsync: [0, "p-error-async", "errorAsync"], name: "name", optional: [0, "p-optional", "optional"], errorPattern: [0, "p-error-pattern", "errorPattern"], showErrorMessageRequired: [0, "p-required-field-error-message", "showErrorMessageRequired"], noAutocomplete: [0, "p-no-autocomplete", "noAutocomplete"], placeholder: [0, "p-placeholder", "placeholder"], setDisabled: [0, "p-disabled", "setDisabled"], setReadonly: [0, "p-readonly", "setReadonly"], setRequired: [0, "p-required", "setRequired"], showRequired: [0, "p-show-required", "showRequired"], setClean: [0, "p-clean", "setClean"], minDate: [0, "p-min-date", "minDate"], maxDate: [0, "p-max-date", "maxDate"], format: [0, "p-format", "format"], isoFormat: [0, "p-iso-format", "isoFormat"], locale: [0, "p-locale", "locale"], appendBox: [2, "p-append-in-body", "appendBox", convertToBoolean] }, outputs: { onblur: "p-blur", onchange: "p-change" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
16931
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoDatepickerBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], errorAsync: [0, "p-error-async", "errorAsync"], name: "name", optional: [0, "p-optional", "optional"], errorPattern: [0, "p-error-pattern", "errorPattern"], errorLimit: [0, "p-error-limit", "errorLimit"], errorAppendBox: [2, "p-error-append-in-body", "errorAppendBox", convertToBoolean], showErrorMessageRequired: [0, "p-required-field-error-message", "showErrorMessageRequired"], noAutocomplete: [0, "p-no-autocomplete", "noAutocomplete"], placeholder: [0, "p-placeholder", "placeholder"], setDisabled: [0, "p-disabled", "setDisabled"], setReadonly: [0, "p-readonly", "setReadonly"], setRequired: [0, "p-required", "setRequired"], showRequired: [0, "p-show-required", "showRequired"], setClean: [0, "p-clean", "setClean"], minDate: [0, "p-min-date", "minDate"], maxDate: [0, "p-max-date", "maxDate"], format: [0, "p-format", "format"], isoFormat: [0, "p-iso-format", "isoFormat"], locale: [0, "p-locale", "locale"], appendBox: [2, "p-append-in-body", "appendBox", convertToBoolean] }, outputs: { onblur: "p-blur", onchange: "p-change" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
16871
16932
|
}
|
|
16872
16933
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDatepickerBaseComponent, [{
|
|
16873
16934
|
type: Directive
|
|
@@ -16886,6 +16947,12 @@ class PoDatepickerBaseComponent {
|
|
|
16886
16947
|
}], errorPattern: [{
|
|
16887
16948
|
type: Input,
|
|
16888
16949
|
args: ['p-error-pattern']
|
|
16950
|
+
}], errorLimit: [{
|
|
16951
|
+
type: Input,
|
|
16952
|
+
args: ['p-error-limit']
|
|
16953
|
+
}], errorAppendBox: [{
|
|
16954
|
+
type: Input,
|
|
16955
|
+
args: [{ alias: 'p-error-append-in-body', transform: convertToBoolean }]
|
|
16889
16956
|
}], showErrorMessageRequired: [{
|
|
16890
16957
|
type: Input,
|
|
16891
16958
|
args: ['p-required-field-error-message']
|
|
@@ -17411,7 +17478,7 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
|
|
|
17411
17478
|
multi: true
|
|
17412
17479
|
},
|
|
17413
17480
|
PoControlPositionService
|
|
17414
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 20, vars:
|
|
17481
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 20, vars: 25, consts: [["outerContainer", ""], ["trigger", "cdkOverlayOrigin"], ["inp", ""], ["iconDatepicker", ""], ["sharedCalendarContent", ""], ["dropdownDefault", ""], ["dropdownCDK", ""], ["dialogPicker", ""], ["calendar", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], ["cdkOverlayOrigin", "", 1, "po-field-container-content", "po-field-container-content-datepicker"], [1, "po-field-container-input"], ["type", "text", 1, "po-input", "po-datepicker", 3, "blur", "click", "autocomplete", "disabled", "id", "placeholder", "readonly", "required"], [1, "po-field-icon-container-right"], ["class", "po-icon-input", 3, "p-element-ref", "p-change-event", 4, "ngIf"], ["p-icon", "ICON_CALENDAR", "p-kind", "tertiary", 1, "po-datepicker-button", 3, "keydown", "p-click", "p-disabled"], [4, "ngIf", "ngIfThen", "ngIfElse"], [3, "p-help", "p-disabled", "p-error-pattern", "p-error-limit", "p-append-in-body"], [1, "po-icon-input", 3, "p-change-event", "p-element-ref"], ["class", "po-datepicker-calendar-overlay", 4, "ngIf"], [3, "ngModelChange", "p-change", "ngModel", "p-max-date", "p-min-date", "p-locale"], [1, "po-datepicker-calendar-overlay"], [4, "ngTemplateOutlet"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen"]], template: function PoDatepickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17415
17482
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
17416
17483
|
i0.ɵɵelementStart(0, "po-field-container", 9)(1, "div", null, 0)(3, "div", 10, 1)(5, "div", 11)(6, "input", 12, 2);
|
|
17417
17484
|
i0.ɵɵlistener("blur", function PoDatepickerComponent_Template_input_blur_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.eventOnBlur($event)); })("click", function PoDatepickerComponent_Template_input_click_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.eventOnClick($event)); });
|
|
@@ -17442,7 +17509,7 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
|
|
|
17442
17509
|
i0.ɵɵadvance(2);
|
|
17443
17510
|
i0.ɵɵproperty("ngIf", ctx.appendBox)("ngIfThen", dropdownCDK_r9)("ngIfElse", dropdownDefault_r8);
|
|
17444
17511
|
i0.ɵɵadvance(7);
|
|
17445
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern());
|
|
17512
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern())("p-error-limit", ctx.errorLimit)("p-append-in-body", ctx.errorAppendBox);
|
|
17446
17513
|
} }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2$1.NgControlStatus, i2$1.NgModel, PoFieldContainerBottomComponent, PoFieldContainerComponent, i7.CdkConnectedOverlay, i7.CdkOverlayOrigin, PoCleanComponent, PoCalendarComponent, PoButtonComponent], encapsulation: 2, changeDetection: 0 });
|
|
17447
17514
|
}
|
|
17448
17515
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDatepickerComponent, [{
|
|
@@ -17459,7 +17526,7 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
|
|
|
17459
17526
|
multi: true
|
|
17460
17527
|
},
|
|
17461
17528
|
PoControlPositionService
|
|
17462
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<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 #outerContainer>\n <div\n cdkOverlayOrigin\n #trigger=\"cdkOverlayOrigin\"\n class=\"po-field-container-content po-field-container-content-datepicker\"\n >\n <div class=\"po-field-container-input\">\n <input\n #inp\n class=\"po-input po-datepicker\"\n [class.po-input-icon-right]=\"clean && inp.value\"\n type=\"text\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n />\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear()\"\n >\n </po-clean>\n </div>\n </div>\n <po-button\n #iconDatepicker\n class=\"po-datepicker-button\"\n p-icon=\"ICON_CALENDAR\"\n p-kind=\"tertiary\"\n [p-disabled]=\"disabled || readonly\"\n (keydown)=\"onKeyPress($event)\"\n (p-click)=\"togglePicker()\"\n >\n </po-button>\n </div>\n\n <ng-container *ngIf=\"appendBox; then dropdownCDK; else dropdownDefault\"> </ng-container>\n\n <ng-template #sharedCalendarContent>\n <div #dialogPicker [class.po-datepicker-popup-calendar]=\"!verifyMobile()\">\n <div *ngIf=\"verifyMobile()\" class=\"po-datepicker-calendar-overlay\"></div>\n <po-calendar\n [class.po-datepicker-calendar-mobile]=\"verifyMobile()\"\n #calendar\n [(ngModel)]=\"date\"\n [p-max-date]=\"maxDate\"\n [p-min-date]=\"minDate\"\n [p-locale]=\"locale\"\n (p-change)=\"dateSelected()\"\n ></po-calendar>\n </div>\n </ng-template>\n\n <ng-template #dropdownDefault>\n <ng-container *ngTemplateOutlet=\"sharedCalendarContent\"></ng-container>\n </ng-template>\n\n <ng-template #dropdownCDK>\n <ng-template cdkConnectedOverlay [cdkConnectedOverlayOrigin]=\"trigger\" [cdkConnectedOverlayOpen]=\"true\">\n <ng-container *ngTemplateOutlet=\"sharedCalendarContent\"></ng-container>\n </ng-template>\n </ng-template>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
17529
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<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 #outerContainer>\n <div\n cdkOverlayOrigin\n #trigger=\"cdkOverlayOrigin\"\n class=\"po-field-container-content po-field-container-content-datepicker\"\n >\n <div class=\"po-field-container-input\">\n <input\n #inp\n class=\"po-input po-datepicker\"\n [class.po-input-icon-right]=\"clean && inp.value\"\n type=\"text\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n />\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear()\"\n >\n </po-clean>\n </div>\n </div>\n <po-button\n #iconDatepicker\n class=\"po-datepicker-button\"\n p-icon=\"ICON_CALENDAR\"\n p-kind=\"tertiary\"\n [p-disabled]=\"disabled || readonly\"\n (keydown)=\"onKeyPress($event)\"\n (p-click)=\"togglePicker()\"\n >\n </po-button>\n </div>\n\n <ng-container *ngIf=\"appendBox; then dropdownCDK; else dropdownDefault\"> </ng-container>\n\n <ng-template #sharedCalendarContent>\n <div #dialogPicker [class.po-datepicker-popup-calendar]=\"!verifyMobile()\">\n <div *ngIf=\"verifyMobile()\" class=\"po-datepicker-calendar-overlay\"></div>\n <po-calendar\n [class.po-datepicker-calendar-mobile]=\"verifyMobile()\"\n #calendar\n [(ngModel)]=\"date\"\n [p-max-date]=\"maxDate\"\n [p-min-date]=\"minDate\"\n [p-locale]=\"locale\"\n (p-change)=\"dateSelected()\"\n ></po-calendar>\n </div>\n </ng-template>\n\n <ng-template #dropdownDefault>\n <ng-container *ngTemplateOutlet=\"sharedCalendarContent\"></ng-container>\n </ng-template>\n\n <ng-template #dropdownCDK>\n <ng-template cdkConnectedOverlay [cdkConnectedOverlayOrigin]=\"trigger\" [cdkConnectedOverlayOpen]=\"true\">\n <ng-container *ngTemplateOutlet=\"sharedCalendarContent\"></ng-container>\n </ng-template>\n </ng-template>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-append-in-body]=\"errorAppendBox\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
17463
17530
|
}], () => [{ type: PoLanguageService }, { type: i0.ChangeDetectorRef }, { type: PoControlPositionService }, { type: i0.Renderer2 }, { type: i0.ElementRef }], { calendar: [{
|
|
17464
17531
|
type: ViewChild,
|
|
17465
17532
|
args: ['calendar', { static: true }]
|
|
@@ -18086,6 +18153,25 @@ var PoProgressStatus;
|
|
|
18086
18153
|
PoProgressStatus["Success"] = "success";
|
|
18087
18154
|
})(PoProgressStatus || (PoProgressStatus = {}));
|
|
18088
18155
|
|
|
18156
|
+
const poProgressLiterals = {
|
|
18157
|
+
en: {
|
|
18158
|
+
cancel: 'Cancel',
|
|
18159
|
+
retry: 'Retry'
|
|
18160
|
+
},
|
|
18161
|
+
es: {
|
|
18162
|
+
cancel: 'Cancelar',
|
|
18163
|
+
retry: 'Procesar de nuevo'
|
|
18164
|
+
},
|
|
18165
|
+
pt: {
|
|
18166
|
+
cancel: 'Cancelar',
|
|
18167
|
+
retry: 'Tentar Novamente'
|
|
18168
|
+
},
|
|
18169
|
+
ru: {
|
|
18170
|
+
cancel: 'Отмена',
|
|
18171
|
+
retry: 'Повторить попытку'
|
|
18172
|
+
}
|
|
18173
|
+
};
|
|
18174
|
+
|
|
18089
18175
|
/**
|
|
18090
18176
|
* @usedBy PoProgressComponent
|
|
18091
18177
|
*
|
|
@@ -18178,6 +18264,85 @@ class PoProgressBaseComponent {
|
|
|
18178
18264
|
* Texto principal que aparecerá abaixo da barra de progresso no lado esquerdo.
|
|
18179
18265
|
*/
|
|
18180
18266
|
text;
|
|
18267
|
+
/**
|
|
18268
|
+
* @optional
|
|
18269
|
+
*
|
|
18270
|
+
* @description
|
|
18271
|
+
*
|
|
18272
|
+
* Permite definir uma ação personalizada no componente `po-progress`, exibindo um botão no canto inferior direito
|
|
18273
|
+
* da barra de progresso. A ação deve implementar a interface **PoProgressAction**, possibilitando configurar:
|
|
18274
|
+
*
|
|
18275
|
+
* - **`label`**: Texto exibido no botão (opcional).
|
|
18276
|
+
* - **`icon`**: Ícone exibido no botão (opcional).
|
|
18277
|
+
* - **`type`**: Tipo do botão (`default` ou `danger`) para indicar a intenção da ação (opcional).
|
|
18278
|
+
* - **`disabled`**: Indica se o botão deve estar desabilitado (opcional).
|
|
18279
|
+
* - **`visible`**: Determina se o botão será exibido. Pode ser um valor booleano ou uma função que retorna um booleano (opcional).
|
|
18280
|
+
*
|
|
18281
|
+
* @example
|
|
18282
|
+
* **Exemplo de uso:**
|
|
18283
|
+
* ```html
|
|
18284
|
+
* <po-progress
|
|
18285
|
+
* [p-value]="50"
|
|
18286
|
+
* [p-custom-action]="customAction"
|
|
18287
|
+
* (p-custom-action-click)="onCustomActionClick()"
|
|
18288
|
+
* ></po-progress>
|
|
18289
|
+
* ```
|
|
18290
|
+
*
|
|
18291
|
+
* ```typescript
|
|
18292
|
+
* customAction: PoProgressAction = {
|
|
18293
|
+
* label: 'Baixar',
|
|
18294
|
+
* icon: 'ph ph-download',
|
|
18295
|
+
* type: 'default',
|
|
18296
|
+
* visible: () => true
|
|
18297
|
+
* };
|
|
18298
|
+
*
|
|
18299
|
+
* onCustomActionClick() {
|
|
18300
|
+
* console.log('Custom action triggered!');
|
|
18301
|
+
* }
|
|
18302
|
+
* ```
|
|
18303
|
+
*
|
|
18304
|
+
* **Cenários comuns:**
|
|
18305
|
+
* 1. **Download de Arquivos**: Exibir um botão para realizar o download de um arquivo associado à barra de progresso.
|
|
18306
|
+
* 2. **Cancelamento Personalizado**: Adicionar uma ação para interromper ou reverter uma operação em andamento.
|
|
18307
|
+
*/
|
|
18308
|
+
customAction;
|
|
18309
|
+
/**
|
|
18310
|
+
* @optional
|
|
18311
|
+
*
|
|
18312
|
+
* @description
|
|
18313
|
+
*
|
|
18314
|
+
* Evento emitido quando o botão definido em `p-custom-action` é clicado. Este evento retorna informações
|
|
18315
|
+
* relacionadas à barra de progresso ou ao arquivo/processo associado, permitindo executar ações específicas.
|
|
18316
|
+
*
|
|
18317
|
+
* @example
|
|
18318
|
+
* **Exemplo de uso:**
|
|
18319
|
+
*
|
|
18320
|
+
* ```html
|
|
18321
|
+
* <po-progress
|
|
18322
|
+
* [p-value]="50"
|
|
18323
|
+
* [p-custom-action]="customAction"
|
|
18324
|
+
* (p-custom-action-click)="onCustomActionClick()"
|
|
18325
|
+
* ></po-progress>
|
|
18326
|
+
* ```
|
|
18327
|
+
*
|
|
18328
|
+
* ```typescript
|
|
18329
|
+
* customAction: PoProgressAction = {
|
|
18330
|
+
* label: 'Cancelar',
|
|
18331
|
+
* icon: 'ph ph-x',
|
|
18332
|
+
* type: 'danger',
|
|
18333
|
+
* visible: true
|
|
18334
|
+
* };
|
|
18335
|
+
*
|
|
18336
|
+
* onCustomActionClick() {
|
|
18337
|
+
* console.log('Custom action triggered!');
|
|
18338
|
+
* }
|
|
18339
|
+
* ```
|
|
18340
|
+
*
|
|
18341
|
+
* **Cenários comuns:**
|
|
18342
|
+
* 1. **Botão de Download**: Disparar o download do arquivo associado à barra de progresso.
|
|
18343
|
+
* 2. **Ação Condicional**: Realizar uma validação ou chamada de API antes de prosseguir com a ação.
|
|
18344
|
+
*/
|
|
18345
|
+
customActionClick = new EventEmitter();
|
|
18181
18346
|
/**
|
|
18182
18347
|
* @optional
|
|
18183
18348
|
*
|
|
@@ -18276,7 +18441,7 @@ class PoProgressBaseComponent {
|
|
|
18276
18441
|
return value >= poProgressMinValue && value <= poProgressMaxValue;
|
|
18277
18442
|
}
|
|
18278
18443
|
static ɵfac = function PoProgressBaseComponent_Factory(t) { return new (t || PoProgressBaseComponent)(); };
|
|
18279
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoProgressBaseComponent, inputs: { disabledCancel: [2, "p-disabled-cancel", "disabledCancel", convertToBoolean], info: [0, "p-info", "info"], infoIcon: [0, "p-info-icon", "infoIcon"], status: [0, "p-status", "status"], text: [0, "p-text", "text"], indeterminate: [0, "p-indeterminate", "indeterminate"], value: [0, "p-value", "value"], size: [0, "p-size", "size"], showPercentage: [2, "p-show-percentage", "showPercentage", convertToBoolean] }, outputs: { cancel: "p-cancel", retry: "p-retry" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
18444
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoProgressBaseComponent, inputs: { disabledCancel: [2, "p-disabled-cancel", "disabledCancel", convertToBoolean], info: [0, "p-info", "info"], infoIcon: [0, "p-info-icon", "infoIcon"], status: [0, "p-status", "status"], text: [0, "p-text", "text"], customAction: [0, "p-custom-action", "customAction"], indeterminate: [0, "p-indeterminate", "indeterminate"], value: [0, "p-value", "value"], size: [0, "p-size", "size"], showPercentage: [2, "p-show-percentage", "showPercentage", convertToBoolean] }, outputs: { customActionClick: "p-custom-action-click", cancel: "p-cancel", retry: "p-retry" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
18280
18445
|
}
|
|
18281
18446
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoProgressBaseComponent, [{
|
|
18282
18447
|
type: Directive
|
|
@@ -18295,6 +18460,12 @@ class PoProgressBaseComponent {
|
|
|
18295
18460
|
}], text: [{
|
|
18296
18461
|
type: Input,
|
|
18297
18462
|
args: ['p-text']
|
|
18463
|
+
}], customAction: [{
|
|
18464
|
+
type: Input,
|
|
18465
|
+
args: ['p-custom-action']
|
|
18466
|
+
}], customActionClick: [{
|
|
18467
|
+
type: Output,
|
|
18468
|
+
args: ['p-custom-action-click']
|
|
18298
18469
|
}], cancel: [{
|
|
18299
18470
|
type: Output,
|
|
18300
18471
|
args: ['p-cancel']
|
|
@@ -18315,28 +18486,9 @@ class PoProgressBaseComponent {
|
|
|
18315
18486
|
args: [{ alias: 'p-show-percentage', transform: convertToBoolean }]
|
|
18316
18487
|
}] }); })();
|
|
18317
18488
|
|
|
18318
|
-
const poProgressLiterals = {
|
|
18319
|
-
en: {
|
|
18320
|
-
cancel: 'Cancel',
|
|
18321
|
-
retry: 'Retry'
|
|
18322
|
-
},
|
|
18323
|
-
es: {
|
|
18324
|
-
cancel: 'Cancelar',
|
|
18325
|
-
retry: 'Procesar de nuevo'
|
|
18326
|
-
},
|
|
18327
|
-
pt: {
|
|
18328
|
-
cancel: 'Cancelar',
|
|
18329
|
-
retry: 'Tentar Novamente'
|
|
18330
|
-
},
|
|
18331
|
-
ru: {
|
|
18332
|
-
cancel: 'Отмена',
|
|
18333
|
-
retry: 'Повторить попытку'
|
|
18334
|
-
}
|
|
18335
|
-
};
|
|
18336
|
-
|
|
18337
18489
|
function PoProgressComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
18338
|
-
i0.ɵɵelementStart(0, "div",
|
|
18339
|
-
i0.ɵɵelement(1, "po-label",
|
|
18490
|
+
i0.ɵɵelementStart(0, "div", 13);
|
|
18491
|
+
i0.ɵɵelement(1, "po-label", 14);
|
|
18340
18492
|
i0.ɵɵelementEnd();
|
|
18341
18493
|
} if (rf & 2) {
|
|
18342
18494
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -18344,17 +18496,17 @@ function PoProgressComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
18344
18496
|
i0.ɵɵproperty("p-label", ctx_r0.text);
|
|
18345
18497
|
} }
|
|
18346
18498
|
function PoProgressComponent_po_icon_5_Template(rf, ctx) { if (rf & 1) {
|
|
18347
|
-
i0.ɵɵelement(0, "po-icon",
|
|
18499
|
+
i0.ɵɵelement(0, "po-icon", 15);
|
|
18348
18500
|
} if (rf & 2) {
|
|
18349
18501
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
18350
18502
|
i0.ɵɵclassProp("po-progress-info-icon-error", ctx_r0.status === "error");
|
|
18351
18503
|
i0.ɵɵproperty("p-icon", ctx_r0.infoIcon);
|
|
18352
18504
|
} }
|
|
18353
18505
|
function PoProgressComponent_po_icon_6_Template(rf, ctx) { if (rf & 1) {
|
|
18354
|
-
i0.ɵɵelement(0, "po-icon",
|
|
18506
|
+
i0.ɵɵelement(0, "po-icon", 16);
|
|
18355
18507
|
} }
|
|
18356
18508
|
function PoProgressComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
18357
|
-
i0.ɵɵelementStart(0, "span",
|
|
18509
|
+
i0.ɵɵelementStart(0, "span", 17);
|
|
18358
18510
|
i0.ɵɵtext(1);
|
|
18359
18511
|
i0.ɵɵelementEnd();
|
|
18360
18512
|
} if (rf & 2) {
|
|
@@ -18374,7 +18526,7 @@ function PoProgressComponent_span_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
18374
18526
|
} }
|
|
18375
18527
|
function PoProgressComponent_po_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
18376
18528
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
18377
|
-
i0.ɵɵelementStart(0, "po-button",
|
|
18529
|
+
i0.ɵɵelementStart(0, "po-button", 18);
|
|
18378
18530
|
i0.ɵɵlistener("p-click", function PoProgressComponent_po_button_10_Template_po_button_p_click_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.emitRetry()); });
|
|
18379
18531
|
i0.ɵɵelementEnd();
|
|
18380
18532
|
} if (rf & 2) {
|
|
@@ -18383,8 +18535,17 @@ function PoProgressComponent_po_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
18383
18535
|
} }
|
|
18384
18536
|
function PoProgressComponent_po_button_11_Template(rf, ctx) { if (rf & 1) {
|
|
18385
18537
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
18386
|
-
i0.ɵɵelementStart(0, "po-button",
|
|
18387
|
-
i0.ɵɵlistener("p-click", function PoProgressComponent_po_button_11_Template_po_button_p_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.
|
|
18538
|
+
i0.ɵɵelementStart(0, "po-button", 19);
|
|
18539
|
+
i0.ɵɵlistener("p-click", function PoProgressComponent_po_button_11_Template_po_button_p_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.callAction()); });
|
|
18540
|
+
i0.ɵɵelementEnd();
|
|
18541
|
+
} if (rf & 2) {
|
|
18542
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
18543
|
+
i0.ɵɵproperty("p-danger", ctx_r0.customAction.type === "danger")("p-disabled", ctx_r0.actionIsDisabled(ctx_r0.customAction))("p-label", ctx_r0.customAction.label || "")("p-icon", ctx_r0.customAction.icon);
|
|
18544
|
+
} }
|
|
18545
|
+
function PoProgressComponent_po_button_12_Template(rf, ctx) { if (rf & 1) {
|
|
18546
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
18547
|
+
i0.ɵɵelementStart(0, "po-button", 20);
|
|
18548
|
+
i0.ɵɵlistener("p-click", function PoProgressComponent_po_button_12_Template_po_button_p_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.emitCancellation()); });
|
|
18388
18549
|
i0.ɵɵelementEnd();
|
|
18389
18550
|
} if (rf & 2) {
|
|
18390
18551
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -18431,6 +18592,7 @@ class PoProgressComponent extends PoProgressBaseComponent {
|
|
|
18431
18592
|
return 'po-progress-default';
|
|
18432
18593
|
}
|
|
18433
18594
|
poLanguageService = inject(PoLanguageService);
|
|
18595
|
+
router = inject(Router);
|
|
18434
18596
|
ngOnInit() {
|
|
18435
18597
|
this.language = this.poLanguageService.getShortLanguage();
|
|
18436
18598
|
this.literals = {
|
|
@@ -18443,8 +18605,23 @@ class PoProgressComponent extends PoProgressBaseComponent {
|
|
|
18443
18605
|
emitRetry() {
|
|
18444
18606
|
this.retry.emit();
|
|
18445
18607
|
}
|
|
18608
|
+
actionIsDisabled(action) {
|
|
18609
|
+
return isTypeof(action.disabled, 'function') ? action.disabled(action) : action.disabled;
|
|
18610
|
+
}
|
|
18611
|
+
callAction() {
|
|
18612
|
+
this.customActionClick.emit();
|
|
18613
|
+
}
|
|
18614
|
+
isActionVisible(action) {
|
|
18615
|
+
if (action && (action.label || action.icon)) {
|
|
18616
|
+
return action.visible !== undefined
|
|
18617
|
+
? isTypeof(action.visible, 'function')
|
|
18618
|
+
? action.visible()
|
|
18619
|
+
: !!action.visible
|
|
18620
|
+
: true;
|
|
18621
|
+
}
|
|
18622
|
+
}
|
|
18446
18623
|
static ɵfac = /*@__PURE__*/ (() => { let ɵPoProgressComponent_BaseFactory; return function PoProgressComponent_Factory(t) { return (ɵPoProgressComponent_BaseFactory || (ɵPoProgressComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PoProgressComponent)))(t || PoProgressComponent); }; })();
|
|
18447
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoProgressComponent, selectors: [["po-progress"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
18624
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoProgressComponent, selectors: [["po-progress"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 13, vars: 14, consts: [[1, "po-progress", 3, "ngClass"], ["class", "po-progress-description", 4, "ngIf"], [3, "p-indeterminate", "p-value"], [1, "po-progress-info"], [1, "po-progress-info-left"], [3, "p-icon", "po-progress-info-icon-error", 4, "ngIf"], ["p-icon", "ICON_EXCLAMATION", "class", "po-progress-info-icon-error", 4, "ngIf"], ["class", "po-progress-info-text", 3, "po-progress-info-text-error", 4, "ngIf"], [1, "po-progress-info-right"], [4, "ngIf"], ["p-icon", "ICON_REFRESH", "p-kind", "tertiary", 3, "p-aria-label", "p-click", 4, "ngIf"], ["class", "po-progress-custom-button", 3, "p-danger", "p-disabled", "p-label", "p-icon", "p-click", 4, "ngIf"], ["p-icon", "ICON_CLOSE", "p-kind", "secondary", 3, "p-disabled", "p-aria-label", "p-danger", "p-click", 4, "ngIf"], [1, "po-progress-description"], [3, "p-label"], [3, "p-icon"], ["p-icon", "ICON_EXCLAMATION", 1, "po-progress-info-icon-error"], [1, "po-progress-info-text"], ["p-icon", "ICON_REFRESH", "p-kind", "tertiary", 3, "p-click", "p-aria-label"], [1, "po-progress-custom-button", 3, "p-click", "p-danger", "p-disabled", "p-label", "p-icon"], ["p-icon", "ICON_CLOSE", "p-kind", "secondary", 3, "p-click", "p-disabled", "p-aria-label", "p-danger"]], template: function PoProgressComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18448
18625
|
i0.ɵɵelementStart(0, "div", 0);
|
|
18449
18626
|
i0.ɵɵtemplate(1, PoProgressComponent_div_1_Template, 2, 1, "div", 1);
|
|
18450
18627
|
i0.ɵɵelement(2, "po-progress-bar", 2);
|
|
@@ -18452,7 +18629,7 @@ class PoProgressComponent extends PoProgressBaseComponent {
|
|
|
18452
18629
|
i0.ɵɵtemplate(5, PoProgressComponent_po_icon_5_Template, 1, 3, "po-icon", 5)(6, PoProgressComponent_po_icon_6_Template, 1, 0, "po-icon", 6)(7, PoProgressComponent_span_7_Template, 2, 3, "span", 7);
|
|
18453
18630
|
i0.ɵɵelementEnd();
|
|
18454
18631
|
i0.ɵɵelementStart(8, "div", 8);
|
|
18455
|
-
i0.ɵɵtemplate(9, PoProgressComponent_span_9_Template, 2, 1, "span", 9)(10, PoProgressComponent_po_button_10_Template, 1, 1, "po-button", 10)(11, PoProgressComponent_po_button_11_Template, 1,
|
|
18632
|
+
i0.ɵɵtemplate(9, PoProgressComponent_span_9_Template, 2, 1, "span", 9)(10, PoProgressComponent_po_button_10_Template, 1, 1, "po-button", 10)(11, PoProgressComponent_po_button_11_Template, 1, 4, "po-button", 11)(12, PoProgressComponent_po_button_12_Template, 1, 3, "po-button", 12);
|
|
18456
18633
|
i0.ɵɵelementEnd()()();
|
|
18457
18634
|
} if (rf & 2) {
|
|
18458
18635
|
i0.ɵɵproperty("ngClass", ctx.statusClass);
|
|
@@ -18472,14 +18649,16 @@ class PoProgressComponent extends PoProgressBaseComponent {
|
|
|
18472
18649
|
i0.ɵɵadvance();
|
|
18473
18650
|
i0.ɵɵproperty("ngIf", ctx.isAllowRetry);
|
|
18474
18651
|
i0.ɵɵadvance();
|
|
18652
|
+
i0.ɵɵproperty("ngIf", ctx.isActionVisible(ctx.customAction));
|
|
18653
|
+
i0.ɵɵadvance();
|
|
18475
18654
|
i0.ɵɵproperty("ngIf", ctx.isAllowCancel);
|
|
18476
18655
|
} }, dependencies: [i1.NgClass, i1.NgIf, PoButtonComponent, PoIconComponent, PoLabelComponent, PoProgressBarComponent], encapsulation: 2, changeDetection: 0 });
|
|
18477
18656
|
}
|
|
18478
18657
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoProgressComponent, [{
|
|
18479
18658
|
type: Component,
|
|
18480
|
-
args: [{ selector: 'po-progress', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"po-progress\" [ngClass]=\"statusClass\">\n <div *ngIf=\"text\" class=\"po-progress-description\">\n <po-label [p-label]=\"text\"></po-label>\n </div>\n\n <po-progress-bar\n class=\"po-progress-bar po-progress-bar-{{ size }}\"\n [p-indeterminate]=\"indeterminate\"\n [p-value]=\"value\"\n >\n </po-progress-bar>\n\n <div class=\"po-progress-info\">\n <div class=\"po-progress-info-left\">\n <po-icon *ngIf=\"infoIcon\" [p-icon]=\"infoIcon\" [class.po-progress-info-icon-error]=\"status === 'error'\"></po-icon>\n <po-icon *ngIf=\"isAllowInfoError\" p-icon=\"ICON_EXCLAMATION\" class=\"po-progress-info-icon-error\"></po-icon>\n <span *ngIf=\"info\" class=\"po-progress-info-text\" [class.po-progress-info-text-error]=\"status === 'error'\">{{\n info\n }}</span>\n </div>\n <div class=\"po-progress-info-right\">\n <span *ngIf=\"showPercentage && !indeterminate\">{{ value }}%</span>\n <po-button\n *ngIf=\"isAllowRetry\"\n p-icon=\"ICON_REFRESH\"\n (p-click)=\"emitRetry()\"\n [p-aria-label]=\"literals.retry\"\n p-kind=\"tertiary\"\n ></po-button>\n\n <po-button\n *ngIf=\"isAllowCancel\"\n p-icon=\"ICON_CLOSE\"\n (p-click)=\"emitCancellation()\"\n p-kind=\"secondary\"\n [p-disabled]=\"disabledCancel\"\n [p-aria-label]=\"literals.cancel\"\n [p-danger]=\"true\"\n ></po-button>\n </div>\n </div>\n</div>\n" }]
|
|
18659
|
+
args: [{ selector: 'po-progress', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"po-progress\" [ngClass]=\"statusClass\">\n <div *ngIf=\"text\" class=\"po-progress-description\">\n <po-label [p-label]=\"text\"></po-label>\n </div>\n\n <po-progress-bar\n class=\"po-progress-bar po-progress-bar-{{ size }}\"\n [p-indeterminate]=\"indeterminate\"\n [p-value]=\"value\"\n >\n </po-progress-bar>\n\n <div class=\"po-progress-info\">\n <div class=\"po-progress-info-left\">\n <po-icon *ngIf=\"infoIcon\" [p-icon]=\"infoIcon\" [class.po-progress-info-icon-error]=\"status === 'error'\"></po-icon>\n <po-icon *ngIf=\"isAllowInfoError\" p-icon=\"ICON_EXCLAMATION\" class=\"po-progress-info-icon-error\"></po-icon>\n <span *ngIf=\"info\" class=\"po-progress-info-text\" [class.po-progress-info-text-error]=\"status === 'error'\">{{\n info\n }}</span>\n </div>\n <div class=\"po-progress-info-right\">\n <span *ngIf=\"showPercentage && !indeterminate\">{{ value }}%</span>\n\n <po-button\n *ngIf=\"isAllowRetry\"\n p-icon=\"ICON_REFRESH\"\n (p-click)=\"emitRetry()\"\n [p-aria-label]=\"literals.retry\"\n p-kind=\"tertiary\"\n ></po-button>\n\n <po-button\n *ngIf=\"isActionVisible(customAction)\"\n class=\"po-progress-custom-button\"\n [p-danger]=\"customAction.type === 'danger'\"\n [p-disabled]=\"actionIsDisabled(customAction)\"\n [p-label]=\"customAction.label || ''\"\n [p-icon]=\"customAction.icon\"\n (p-click)=\"callAction()\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"isAllowCancel\"\n p-icon=\"ICON_CLOSE\"\n (p-click)=\"emitCancellation()\"\n p-kind=\"secondary\"\n [p-disabled]=\"disabledCancel\"\n [p-aria-label]=\"literals.cancel\"\n [p-danger]=\"true\"\n ></po-button>\n </div>\n </div>\n</div>\n" }]
|
|
18481
18660
|
}], null, null); })();
|
|
18482
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoProgressComponent, { className: "PoProgressComponent", filePath: "lib/components/po-progress/po-progress.component.ts", lineNumber:
|
|
18661
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoProgressComponent, { className: "PoProgressComponent", filePath: "lib/components/po-progress/po-progress.component.ts", lineNumber: 34 }); })();
|
|
18483
18662
|
|
|
18484
18663
|
/**
|
|
18485
18664
|
* @description
|
|
@@ -28274,6 +28453,20 @@ class PoComboBaseComponent {
|
|
|
28274
28453
|
*
|
|
28275
28454
|
*/
|
|
28276
28455
|
fieldErrorMessage;
|
|
28456
|
+
/**
|
|
28457
|
+
* @optional
|
|
28458
|
+
*
|
|
28459
|
+
* @description
|
|
28460
|
+
*
|
|
28461
|
+
* Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
|
|
28462
|
+
*
|
|
28463
|
+
* > Caso essa propriedade seja definida como `true`, a mensagem de erro será limitada a duas linhas
|
|
28464
|
+
* e um tooltip será exibido ao passar o mouse sobre a mensagem para mostrar o conteúdo completo.
|
|
28465
|
+
*
|
|
28466
|
+
* @default `false`
|
|
28467
|
+
*/
|
|
28468
|
+
errorLimit = false;
|
|
28469
|
+
errorAppendBox = false;
|
|
28277
28470
|
/**
|
|
28278
28471
|
* @optional
|
|
28279
28472
|
*
|
|
@@ -29023,7 +29216,7 @@ class PoComboBaseComponent {
|
|
|
29023
29216
|
}
|
|
29024
29217
|
}
|
|
29025
29218
|
static ɵfac = function PoComboBaseComponent_Factory(t) { return new (t || PoComboBaseComponent)(i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
29026
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoComboBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], label: [0, "p-label", "label"], help: [0, "p-help", "help"], name: "name", filterService: [0, "p-filter-service", "filterService"], infiniteScroll: [0, "p-infinite-scroll", "infiniteScroll"], infiniteScrollDistance: [0, "p-infinite-scroll-distance", "infiniteScrollDistance"], icon: [0, "p-icon", "icon"], optional: [0, "p-optional", "optional"], clean: [2, "p-clean", "clean", convertToBoolean], emitObjectValue: [2, "p-emit-object-value", "emitObjectValue", convertToBoolean], disabledTabFilter: [2, "p-disabled-tab-filter", "disabledTabFilter", convertToBoolean], removeInitialFilter: [0, "p-remove-initial-filter", "removeInitialFilter"], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], placeholder: [0, "p-placeholder", "placeholder"], debounceTime: [0, "p-debounce-time", "debounceTime"], disabledInitFilter: [0, "p-disabled-init-filter", "disabledInitFilter"], fieldValue: [0, "p-field-value", "fieldValue"], fieldLabel: [0, "p-field-label", "fieldLabel"], filterMinlength: [0, "p-filter-minlength", "filterMinlength"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"], changeOnEnter: [0, "p-change-on-enter", "changeOnEnter"], disabled: [0, "p-disabled", "disabled"], sort: [0, "p-sort", "sort"], options: [0, "p-options", "options"], filterMode: [0, "p-filter-mode", "filterMode"], filterParams: [0, "p-filter-params", "filterParams"], literals: [0, "p-literals", "literals"], cache: [2, "p-cache", "cache", convertToBoolean], appendBox: [2, "p-append-in-body", "appendBox", convertToBoolean] }, outputs: { change: "p-change", ngModelChange: "ngModelChange", inputChange: "p-input-change" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
29219
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoComboBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], label: [0, "p-label", "label"], help: [0, "p-help", "help"], name: "name", filterService: [0, "p-filter-service", "filterService"], infiniteScroll: [0, "p-infinite-scroll", "infiniteScroll"], infiniteScrollDistance: [0, "p-infinite-scroll-distance", "infiniteScrollDistance"], icon: [0, "p-icon", "icon"], optional: [0, "p-optional", "optional"], clean: [2, "p-clean", "clean", convertToBoolean], emitObjectValue: [2, "p-emit-object-value", "emitObjectValue", convertToBoolean], disabledTabFilter: [2, "p-disabled-tab-filter", "disabledTabFilter", convertToBoolean], removeInitialFilter: [0, "p-remove-initial-filter", "removeInitialFilter"], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], errorLimit: [0, "p-error-limit", "errorLimit"], errorAppendBox: [2, "p-error-append-in-body", "errorAppendBox", convertToBoolean], placeholder: [0, "p-placeholder", "placeholder"], debounceTime: [0, "p-debounce-time", "debounceTime"], disabledInitFilter: [0, "p-disabled-init-filter", "disabledInitFilter"], fieldValue: [0, "p-field-value", "fieldValue"], fieldLabel: [0, "p-field-label", "fieldLabel"], filterMinlength: [0, "p-filter-minlength", "filterMinlength"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"], changeOnEnter: [0, "p-change-on-enter", "changeOnEnter"], disabled: [0, "p-disabled", "disabled"], sort: [0, "p-sort", "sort"], options: [0, "p-options", "options"], filterMode: [0, "p-filter-mode", "filterMode"], filterParams: [0, "p-filter-params", "filterParams"], literals: [0, "p-literals", "literals"], cache: [2, "p-cache", "cache", convertToBoolean], appendBox: [2, "p-append-in-body", "appendBox", convertToBoolean] }, outputs: { change: "p-change", ngModelChange: "ngModelChange", inputChange: "p-input-change" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
29027
29220
|
}
|
|
29028
29221
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoComboBaseComponent, [{
|
|
29029
29222
|
type: Directive
|
|
@@ -29069,6 +29262,12 @@ class PoComboBaseComponent {
|
|
|
29069
29262
|
}], fieldErrorMessage: [{
|
|
29070
29263
|
type: Input,
|
|
29071
29264
|
args: ['p-field-error-message']
|
|
29265
|
+
}], errorLimit: [{
|
|
29266
|
+
type: Input,
|
|
29267
|
+
args: ['p-error-limit']
|
|
29268
|
+
}], errorAppendBox: [{
|
|
29269
|
+
type: Input,
|
|
29270
|
+
args: [{ alias: 'p-error-append-in-body', transform: convertToBoolean }]
|
|
29072
29271
|
}], change: [{
|
|
29073
29272
|
type: Output,
|
|
29074
29273
|
args: ['p-change']
|
|
@@ -29852,7 +30051,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
29852
30051
|
useExisting: forwardRef(() => PoComboComponent),
|
|
29853
30052
|
multi: true
|
|
29854
30053
|
}
|
|
29855
|
-
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 23, vars:
|
|
30054
|
+
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 23, vars: 33, consts: [["outerContainer", ""], ["searchContainer", "", "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"], [1, "po-combo-container-wrapper"], ["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", "p-error-pattern", "p-error-limit", "p-append-in-body"], [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) {
|
|
29856
30055
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
29857
30056
|
i0.ɵɵelementStart(0, "div", null, 0)(2, "po-field-container", 9)(3, "div", 10, 1)(6, "div", 11);
|
|
29858
30057
|
i0.ɵɵtemplate(7, PoComboComponent_div_7_Template, 2, 3, "div", 12);
|
|
@@ -29892,7 +30091,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
29892
30091
|
i0.ɵɵadvance();
|
|
29893
30092
|
i0.ɵɵproperty("ngIf", ctx.appendBox)("ngIfThen", dropdownCDK_r9)("ngIfElse", dropdownDefault_r8);
|
|
29894
30093
|
i0.ɵɵadvance(5);
|
|
29895
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern());
|
|
30094
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern())("p-error-limit", ctx.errorLimit)("p-append-in-body", ctx.errorAppendBox);
|
|
29896
30095
|
} }, dependencies: [i1.NgClass, i1.NgIf, i1.NgTemplateOutlet, i7.CdkConnectedOverlay, i7.CdkOverlayOrigin, PoCleanComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent, PoListBoxComponent], encapsulation: 2, changeDetection: 0 });
|
|
29897
30096
|
}
|
|
29898
30097
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoComboComponent, [{
|
|
@@ -29910,7 +30109,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
29910
30109
|
useExisting: forwardRef(() => PoComboComponent),
|
|
29911
30110
|
multi: true
|
|
29912
30111
|
}
|
|
29913
|
-
], 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\n #searchContainer\n cdkOverlayOrigin\n #trigger=\"cdkOverlayOrigin\"\n class=\"po-field-container-content po-combo-container-content\"\n >\n <div class=\"po-combo-container-wrapper\">\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 </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\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></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" }]
|
|
30112
|
+
], 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\n #searchContainer\n cdkOverlayOrigin\n #trigger=\"cdkOverlayOrigin\"\n class=\"po-field-container-content po-combo-container-content\"\n >\n <div class=\"po-combo-container-wrapper\">\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 </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\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-append-in-body]=\"errorAppendBox\"\n ></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" }]
|
|
29914
30113
|
}], () => [{ type: i0.ElementRef }, { type: i0.IterableDiffers }, { type: PoComboFilterService }, { type: i0.Renderer2 }, { type: PoControlPositionService }, { type: i0.ChangeDetectorRef }, { type: PoLanguageService }], { comboOptionTemplate: [{
|
|
29915
30114
|
type: ContentChild,
|
|
29916
30115
|
args: [PoComboOptionTemplateDirective, { static: true }]
|
|
@@ -30060,6 +30259,19 @@ class PoDatepickerRangeBaseComponent {
|
|
|
30060
30259
|
*
|
|
30061
30260
|
*/
|
|
30062
30261
|
fieldErrorMessage;
|
|
30262
|
+
/**
|
|
30263
|
+
* @optional
|
|
30264
|
+
*
|
|
30265
|
+
* @description
|
|
30266
|
+
*
|
|
30267
|
+
* Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
|
|
30268
|
+
*
|
|
30269
|
+
* > Caso essa propriedade seja definida como `true`, a mensagem de erro será limitada a duas linhas
|
|
30270
|
+
* e um tooltip será exibido ao passar o mouse sobre a mensagem para mostrar o conteúdo completo.
|
|
30271
|
+
*
|
|
30272
|
+
* @default `false`
|
|
30273
|
+
*/
|
|
30274
|
+
errorLimit = false;
|
|
30063
30275
|
/**
|
|
30064
30276
|
* @optional
|
|
30065
30277
|
*
|
|
@@ -30518,7 +30730,7 @@ class PoDatepickerRangeBaseComponent {
|
|
|
30518
30730
|
}
|
|
30519
30731
|
}
|
|
30520
30732
|
static ɵfac = function PoDatepickerRangeBaseComponent_Factory(t) { return new (t || PoDatepickerRangeBaseComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PoDateService), i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
30521
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoDatepickerRangeBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], help: [0, "p-help", "help"], label: [0, "p-label", "label"], optional: [0, "p-optional", "optional"], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], clean: [0, "p-clean", "clean"], disabled: [0, "p-disabled", "disabled"], endDate: [0, "p-end-date", "endDate"], literals: [0, "p-literals", "literals"], minDate: [0, "p-min-date", "minDate"], maxDate: [0, "p-max-date", "maxDate"], noAutocomplete: [0, "p-no-autocomplete", "noAutocomplete"], readonly: [0, "p-readonly", "readonly"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"], startDate: [0, "p-start-date", "startDate"], locale: [0, "p-locale", "locale"] }, outputs: { onChange: "p-change" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
30733
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoDatepickerRangeBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], help: [0, "p-help", "help"], label: [0, "p-label", "label"], optional: [0, "p-optional", "optional"], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], errorLimit: [0, "p-error-limit", "errorLimit"], clean: [0, "p-clean", "clean"], disabled: [0, "p-disabled", "disabled"], endDate: [0, "p-end-date", "endDate"], literals: [0, "p-literals", "literals"], minDate: [0, "p-min-date", "minDate"], maxDate: [0, "p-max-date", "maxDate"], noAutocomplete: [0, "p-no-autocomplete", "noAutocomplete"], readonly: [0, "p-readonly", "readonly"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"], startDate: [0, "p-start-date", "startDate"], locale: [0, "p-locale", "locale"] }, outputs: { onChange: "p-change" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
30522
30734
|
}
|
|
30523
30735
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDatepickerRangeBaseComponent, [{
|
|
30524
30736
|
type: Directive
|
|
@@ -30537,6 +30749,9 @@ class PoDatepickerRangeBaseComponent {
|
|
|
30537
30749
|
}], fieldErrorMessage: [{
|
|
30538
30750
|
type: Input,
|
|
30539
30751
|
args: ['p-field-error-message']
|
|
30752
|
+
}], errorLimit: [{
|
|
30753
|
+
type: Input,
|
|
30754
|
+
args: ['p-error-limit']
|
|
30540
30755
|
}], onChange: [{
|
|
30541
30756
|
type: Output,
|
|
30542
30757
|
args: ['p-change']
|
|
@@ -31038,7 +31253,7 @@ class PoDatepickerRangeComponent extends PoDatepickerRangeBaseComponent {
|
|
|
31038
31253
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.startDateInput = _t.first);
|
|
31039
31254
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconCalendar = _t.first);
|
|
31040
31255
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.calendarPicker = _t.first);
|
|
31041
|
-
} }, features: [i0.ɵɵProvidersFeature(providers$5), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 20, vars:
|
|
31256
|
+
} }, features: [i0.ɵɵProvidersFeature(providers$5), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 20, vars: 31, consts: [["dateRangeField", ""], ["startDateInput", ""], ["endDateInput", ""], ["iconCalendar", ""], ["calendarPicker", ""], [3, "p-disabled", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], [1, "po-field-container-input"], [1, "po-datepicker-range-field", "po-input"], [1, "po-datepicker-range-start-date"], ["maxlength", "10", "type", "text", 1, "po-datepicker-range-input", 3, "blur", "focus", "keydown", "keyup", "click", "autocomplete", "disabled", "name", "readonly"], [1, "po-datepicker-range-separator"], [1, "po-datepicker-range-end-date"], [1, "po-datepicker-range-icon"], ["class", "po-icon-input", 3, "p-change-event", 4, "ngIf"], [3, "click", "p-icon"], [3, "p-help", "p-disabled", "p-error-pattern", "p-error-limit"], [4, "ngIf"], [1, "po-icon-input", 3, "p-change-event"], [1, "po-calendar-range-picker"], ["p-mode", "range", 3, "ngModelChange", "ngModel", "p-max-date", "p-min-date", "p-locale"]], template: function PoDatepickerRangeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
31042
31257
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
31043
31258
|
i0.ɵɵelementStart(0, "po-field-container", 5)(1, "div", 6)(2, "div", 7)(3, "div", 8, 0)(5, "div", 9)(6, "input", 10, 1);
|
|
31044
31259
|
i0.ɵɵlistener("blur", function PoDatepickerRangeComponent_Template_input_blur_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBlur($event)); })("focus", function PoDatepickerRangeComponent_Template_input_focus_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onFocus($event)); })("keydown", function PoDatepickerRangeComponent_Template_input_keydown_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onKeydown($event)); })("keyup", function PoDatepickerRangeComponent_Template_input_keyup_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onKeyup($event)); })("click", function PoDatepickerRangeComponent_Template_input_click_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.eventOnClick($event)); });
|
|
@@ -31076,14 +31291,14 @@ class PoDatepickerRangeComponent extends PoDatepickerRangeBaseComponent {
|
|
|
31076
31291
|
i0.ɵɵclassProp("po-field-icon-disabled", ctx.disabled || ctx.readonly);
|
|
31077
31292
|
i0.ɵɵproperty("p-icon", !ctx.disabled || !ctx.readonly ? "ICON_CALENDAR po-clickable" : "ICON_CALENDAR");
|
|
31078
31293
|
i0.ɵɵadvance(2);
|
|
31079
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorMessage);
|
|
31294
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorMessage)("p-error-limit", ctx.errorLimit);
|
|
31080
31295
|
i0.ɵɵadvance();
|
|
31081
31296
|
i0.ɵɵproperty("ngIf", ctx.isCalendarVisible);
|
|
31082
31297
|
} }, dependencies: [i1.NgIf, i2$1.NgControlStatus, i2$1.NgModel, PoCleanComponent, PoCalendarComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
31083
31298
|
}
|
|
31084
31299
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDatepickerRangeComponent, [{
|
|
31085
31300
|
type: Component,
|
|
31086
|
-
args: [{ selector: 'po-datepicker-range', providers: providers$5, changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container\n [class.po-date-picker-container-disabled]=\"disabled\"\n [p-disabled]=\"disabled\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div class=\"po-field-container-content\">\n <div class=\"po-field-container-input\">\n <div\n #dateRangeField\n class=\"po-datepicker-range-field po-input\"\n [class.po-datepicker-range-field-disabled]=\"disabled\"\n [attr.disabled]=\"disabled\"\n >\n <div class=\"po-datepicker-range-start-date\">\n <input\n #startDateInput\n class=\"po-datepicker-range-input\"\n maxlength=\"10\"\n type=\"text\"\n [attr.aria-label]=\"label\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [name]=\"startDateInputName\"\n [readonly]=\"readonly\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n (keydown)=\"onKeydown($event)\"\n (keyup)=\"onKeyup($event)\"\n (click)=\"eventOnClick($event)\"\n />\n </div>\n\n <div class=\"po-datepicker-range-separator\">-</div>\n\n <div class=\"po-datepicker-range-end-date\">\n <input\n #endDateInput\n class=\"po-datepicker-range-input\"\n maxlength=\"10\"\n type=\"text\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [name]=\"endDateInputName\"\n [readonly]=\"readonly\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n (keydown)=\"onKeydown($event)\"\n (keyup)=\"onKeyup($event)\"\n (click)=\"eventOnClick($event)\"\n />\n </div>\n\n <div class=\"po-datepicker-range-icon\">\n <po-clean class=\"po-icon-input\" *ngIf=\"enableCleaner\" (p-change-event)=\"clear()\"></po-clean>\n </div>\n\n <div class=\"po-datepicker-range-icon\">\n <po-icon\n #iconCalendar\n [p-icon]=\"!disabled || !readonly ? 'ICON_CALENDAR po-clickable' : 'ICON_CALENDAR'\"\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-disabled]=\"disabled || readonly\"\n (click)=\"toggleCalendar()\"\n >\n </po-icon>\n </div>\n </div>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorMessage\"\n ></po-field-container-bottom>\n</po-field-container>\n\n<ng-container *ngIf=\"isCalendarVisible\">\n <div #calendarPicker class=\"po-calendar-range-picker\">\n <po-calendar\n p-mode=\"range\"\n [ngModel]=\"dateRange\"\n [p-max-date]=\"maxDate\"\n [p-min-date]=\"minDate\"\n [p-locale]=\"locale\"\n (ngModelChange)=\"onCalendarChange($event)\"\n ></po-calendar>\n </div>\n</ng-container>\n" }]
|
|
31301
|
+
args: [{ selector: 'po-datepicker-range', providers: providers$5, changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container\n [class.po-date-picker-container-disabled]=\"disabled\"\n [p-disabled]=\"disabled\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div class=\"po-field-container-content\">\n <div class=\"po-field-container-input\">\n <div\n #dateRangeField\n class=\"po-datepicker-range-field po-input\"\n [class.po-datepicker-range-field-disabled]=\"disabled\"\n [attr.disabled]=\"disabled\"\n >\n <div class=\"po-datepicker-range-start-date\">\n <input\n #startDateInput\n class=\"po-datepicker-range-input\"\n maxlength=\"10\"\n type=\"text\"\n [attr.aria-label]=\"label\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [name]=\"startDateInputName\"\n [readonly]=\"readonly\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n (keydown)=\"onKeydown($event)\"\n (keyup)=\"onKeyup($event)\"\n (click)=\"eventOnClick($event)\"\n />\n </div>\n\n <div class=\"po-datepicker-range-separator\">-</div>\n\n <div class=\"po-datepicker-range-end-date\">\n <input\n #endDateInput\n class=\"po-datepicker-range-input\"\n maxlength=\"10\"\n type=\"text\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [name]=\"endDateInputName\"\n [readonly]=\"readonly\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n (keydown)=\"onKeydown($event)\"\n (keyup)=\"onKeyup($event)\"\n (click)=\"eventOnClick($event)\"\n />\n </div>\n\n <div class=\"po-datepicker-range-icon\">\n <po-clean class=\"po-icon-input\" *ngIf=\"enableCleaner\" (p-change-event)=\"clear()\"></po-clean>\n </div>\n\n <div class=\"po-datepicker-range-icon\">\n <po-icon\n #iconCalendar\n [p-icon]=\"!disabled || !readonly ? 'ICON_CALENDAR po-clickable' : 'ICON_CALENDAR'\"\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-disabled]=\"disabled || readonly\"\n (click)=\"toggleCalendar()\"\n >\n </po-icon>\n </div>\n </div>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorMessage\"\n [p-error-limit]=\"errorLimit\"\n ></po-field-container-bottom>\n</po-field-container>\n\n<ng-container *ngIf=\"isCalendarVisible\">\n <div #calendarPicker class=\"po-calendar-range-picker\">\n <po-calendar\n p-mode=\"range\"\n [ngModel]=\"dateRange\"\n [p-max-date]=\"maxDate\"\n [p-min-date]=\"minDate\"\n [p-locale]=\"locale\"\n (ngModelChange)=\"onCalendarChange($event)\"\n ></po-calendar>\n </div>\n</ng-container>\n" }]
|
|
31087
31302
|
}], () => [{ type: i0.ChangeDetectorRef }, { type: PoControlPositionService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: PoLanguageService }, { type: PoDateService }, { type: i0.ElementRef }], { dateRangeField: [{
|
|
31088
31303
|
type: ViewChild,
|
|
31089
31304
|
args: ['dateRangeField', { read: ElementRef, static: true }]
|
|
@@ -31224,6 +31439,20 @@ class PoInputBaseComponent {
|
|
|
31224
31439
|
* Para exibir a mensagem com o campo vazio, utilize a propriedade `p-required-field-error-message` em conjunto.
|
|
31225
31440
|
*/
|
|
31226
31441
|
errorPattern = '';
|
|
31442
|
+
/**
|
|
31443
|
+
* @optional
|
|
31444
|
+
*
|
|
31445
|
+
* @description
|
|
31446
|
+
*
|
|
31447
|
+
* Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
|
|
31448
|
+
*
|
|
31449
|
+
* > Caso essa propriedade seja definida como `true`, a mensagem de erro será limitada a duas linhas
|
|
31450
|
+
* e um tooltip será exibido ao passar o mouse sobre a mensagem para mostrar o conteúdo completo.
|
|
31451
|
+
*
|
|
31452
|
+
* @default `false`
|
|
31453
|
+
*/
|
|
31454
|
+
errorLimit = false;
|
|
31455
|
+
errorAppendBox = false;
|
|
31227
31456
|
/**
|
|
31228
31457
|
* @optional
|
|
31229
31458
|
*
|
|
@@ -31618,7 +31847,7 @@ class PoInputBaseComponent {
|
|
|
31618
31847
|
}
|
|
31619
31848
|
}
|
|
31620
31849
|
static ɵfac = function PoInputBaseComponent_Factory(t) { return new (t || PoInputBaseComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
31621
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoInputBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], icon: [0, "p-icon", "icon"], emitAllChanges: [2, "p-emit-all-changes", "emitAllChanges", convertToBoolean], label: [0, "p-label", "label"], help: [0, "p-help", "help"], name: "name", errorAsyncProperties: [0, "p-error-async-properties", "errorAsyncProperties"], errorPattern: [0, "p-error-pattern", "errorPattern"], optional: [0, "p-optional", "optional"], showErrorMessageRequired: [0, "p-required-field-error-message", "showErrorMessageRequired"], upperCase: [2, "p-upper-case", "upperCase", convertToBoolean], maskNoLengthValidation: [0, "p-mask-no-length-validation", "maskNoLengthValidation"], noAutocomplete: [0, "p-no-autocomplete", "noAutocomplete"], placeholder: [0, "p-placeholder", "placeholder"], setDisabled: [0, "p-disabled", "setDisabled"], setReadonly: [0, "p-readonly", "setReadonly"], setRequired: [0, "p-required", "setRequired"], showRequired: [0, "p-show-required", "showRequired"], setClean: [0, "p-clean", "setClean"], setPattern: [0, "p-pattern", "setPattern"], maxlength: [0, "p-maxlength", "maxlength"], minlength: [0, "p-minlength", "minlength"], setMask: [0, "p-mask", "setMask"], setMaskFormatModel: [0, "p-mask-format-model", "setMaskFormatModel"] }, outputs: { blur: "p-blur", enter: "p-enter", change: "p-change", changeModel: "p-change-model" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
31850
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoInputBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], icon: [0, "p-icon", "icon"], emitAllChanges: [2, "p-emit-all-changes", "emitAllChanges", convertToBoolean], label: [0, "p-label", "label"], help: [0, "p-help", "help"], name: "name", errorAsyncProperties: [0, "p-error-async-properties", "errorAsyncProperties"], errorPattern: [0, "p-error-pattern", "errorPattern"], errorLimit: [0, "p-error-limit", "errorLimit"], errorAppendBox: [2, "p-error-append-in-body", "errorAppendBox", convertToBoolean], optional: [0, "p-optional", "optional"], showErrorMessageRequired: [0, "p-required-field-error-message", "showErrorMessageRequired"], upperCase: [2, "p-upper-case", "upperCase", convertToBoolean], maskNoLengthValidation: [0, "p-mask-no-length-validation", "maskNoLengthValidation"], noAutocomplete: [0, "p-no-autocomplete", "noAutocomplete"], placeholder: [0, "p-placeholder", "placeholder"], setDisabled: [0, "p-disabled", "setDisabled"], setReadonly: [0, "p-readonly", "setReadonly"], setRequired: [0, "p-required", "setRequired"], showRequired: [0, "p-show-required", "showRequired"], setClean: [0, "p-clean", "setClean"], setPattern: [0, "p-pattern", "setPattern"], maxlength: [0, "p-maxlength", "maxlength"], minlength: [0, "p-minlength", "minlength"], setMask: [0, "p-mask", "setMask"], setMaskFormatModel: [0, "p-mask-format-model", "setMaskFormatModel"] }, outputs: { blur: "p-blur", enter: "p-enter", change: "p-change", changeModel: "p-change-model" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
31622
31851
|
}
|
|
31623
31852
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoInputBaseComponent, [{
|
|
31624
31853
|
type: Directive
|
|
@@ -31646,6 +31875,12 @@ class PoInputBaseComponent {
|
|
|
31646
31875
|
}], errorPattern: [{
|
|
31647
31876
|
type: Input,
|
|
31648
31877
|
args: ['p-error-pattern']
|
|
31878
|
+
}], errorLimit: [{
|
|
31879
|
+
type: Input,
|
|
31880
|
+
args: ['p-error-limit']
|
|
31881
|
+
}], errorAppendBox: [{
|
|
31882
|
+
type: Input,
|
|
31883
|
+
args: [{ alias: 'p-error-append-in-body', transform: convertToBoolean }]
|
|
31649
31884
|
}], optional: [{
|
|
31650
31885
|
type: Input,
|
|
31651
31886
|
args: ['p-optional']
|
|
@@ -32374,7 +32609,7 @@ class PoDecimalComponent extends PoInputBaseComponent {
|
|
|
32374
32609
|
useExisting: forwardRef(() => PoDecimalComponent),
|
|
32375
32610
|
multi: true
|
|
32376
32611
|
}
|
|
32377
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars:
|
|
32612
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 26, consts: [["inp", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], ["class", "po-field-icon-container-left", 4, "ngIf"], ["inputmode", "decimal", "type", "text", 1, "po-input", 3, "blur", "focus", "input", "keypress", "autocomplete", "disabled", "id", "placeholder", "readonly", "required"], [1, "po-field-icon-container-right"], ["class", "po-icon-input", 3, "p-element-ref", "p-change-event", 4, "ngIf"], [3, "p-help", "p-disabled", "p-error-limit", "p-error-pattern", "p-append-in-body"], [1, "po-field-icon-container-left"], [1, "po-field-icon", "po-icon-input", 3, "p-icon"], [1, "po-icon-input", 3, "p-change-event", "p-element-ref"]], template: function PoDecimalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
32378
32613
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
32379
32614
|
i0.ɵɵelementStart(0, "po-field-container", 1)(1, "div", 2);
|
|
32380
32615
|
i0.ɵɵtemplate(2, PoDecimalComponent_div_2_Template, 2, 3, "div", 3);
|
|
@@ -32397,7 +32632,7 @@ class PoDecimalComponent extends PoInputBaseComponent {
|
|
|
32397
32632
|
i0.ɵɵadvance(3);
|
|
32398
32633
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled && !ctx.readonly);
|
|
32399
32634
|
i0.ɵɵadvance();
|
|
32400
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPatternMessage());
|
|
32635
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-limit", ctx.errorLimit)("p-error-pattern", ctx.getErrorPatternMessage())("p-append-in-body", ctx.errorAppendBox);
|
|
32401
32636
|
} }, dependencies: [i1.NgIf, PoCleanComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
32402
32637
|
}
|
|
32403
32638
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDecimalComponent, [{
|
|
@@ -32413,7 +32648,7 @@ class PoDecimalComponent extends PoInputBaseComponent {
|
|
|
32413
32648
|
useExisting: forwardRef(() => PoDecimalComponent),
|
|
32414
32649
|
multi: true
|
|
32415
32650
|
}
|
|
32416
|
-
], template: "<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 class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon class=\"po-field-icon po-icon-input\" [class.po-field-icon-disabled]=\"disabled\" [p-icon]=\"icon\"></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input\"\n [attr.max]=\"max\"\n [attr.min]=\"min\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n inputmode=\"decimal\"\n type=\"text\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n (input)=\"onInput($event)\"\n (keypress)=\"onKeyPress($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom
|
|
32651
|
+
], template: "<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 class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon class=\"po-field-icon po-icon-input\" [class.po-field-icon-disabled]=\"disabled\" [p-icon]=\"icon\"></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input\"\n [attr.max]=\"max\"\n [attr.min]=\"min\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n inputmode=\"decimal\"\n type=\"text\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n (input)=\"onInput($event)\"\n (keypress)=\"onKeyPress($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-limit]=\"errorLimit\"\n [p-error-pattern]=\"getErrorPatternMessage()\"\n [p-append-in-body]=\"errorAppendBox\"\n >\n </po-field-container-bottom>\n</po-field-container>\n" }]
|
|
32417
32652
|
}], () => [{ type: i0.ElementRef }, { type: PoLanguageService }, { type: i0.ChangeDetectorRef }], { inputEl: [{
|
|
32418
32653
|
type: ViewChild,
|
|
32419
32654
|
args: ['inp', { read: ElementRef, static: true }]
|
|
@@ -32812,7 +33047,7 @@ class PoEmailComponent extends PoInputGeneric {
|
|
|
32812
33047
|
return null;
|
|
32813
33048
|
}
|
|
32814
33049
|
static ɵfac = function PoEmailComponent_Factory(t) { return new (t || PoEmailComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
32815
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoEmailComponent, selectors: [["po-email"]], features: [i0.ɵɵProvidersFeature(providers$4), i0.ɵɵInheritDefinitionFeature], decls: 8, vars:
|
|
33050
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoEmailComponent, selectors: [["po-email"]], features: [i0.ɵɵProvidersFeature(providers$4), i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 25, consts: [["inp", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], ["class", "po-field-icon-container-left", 4, "ngIf"], [1, "po-input", 3, "blur", "click", "focus", "input", "autocomplete", "disabled", "id", "placeholder", "readonly", "required", "type"], [1, "po-field-icon-container-right"], [3, "class", "p-element-ref", "p-change-event", 4, "ngIf"], [3, "p-help", "p-disabled", "p-error-pattern", "p-error-limit", "p-append-in-body"], [1, "po-field-icon-container-left"], [3, "p-icon"], [3, "p-change-event", "p-element-ref"]], template: function PoEmailComponent_Template(rf, ctx) { if (rf & 1) {
|
|
32816
33051
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
32817
33052
|
i0.ɵɵelementStart(0, "po-field-container", 1)(1, "div", 2);
|
|
32818
33053
|
i0.ɵɵtemplate(2, PoEmailComponent_div_2_Template, 2, 6, "div", 3);
|
|
@@ -32835,12 +33070,12 @@ class PoEmailComponent extends PoInputGeneric {
|
|
|
32835
33070
|
i0.ɵɵadvance(3);
|
|
32836
33071
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled && !ctx.readonly);
|
|
32837
33072
|
i0.ɵɵadvance();
|
|
32838
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern());
|
|
33073
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern())("p-error-limit", ctx.errorLimit)("p-append-in-body", ctx.errorAppendBox);
|
|
32839
33074
|
} }, dependencies: [i1.NgIf, PoCleanComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
32840
33075
|
}
|
|
32841
33076
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoEmailComponent, [{
|
|
32842
33077
|
type: Component,
|
|
32843
|
-
args: [{ selector: 'po-email', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$4, template: "<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 class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : '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-input\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"{{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
33078
|
+
args: [{ selector: 'po-email', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$4, template: "<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 class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : '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-input\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"{{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-append-in-body]=\"errorAppendBox\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
32844
33079
|
}], () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], null); })();
|
|
32845
33080
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoEmailComponent, { className: "PoEmailComponent", filePath: "lib/components/po-field/po-email/po-email.component.ts", lineNumber: 63 }); })();
|
|
32846
33081
|
|
|
@@ -32913,7 +33148,7 @@ class PoInputComponent extends PoInputGeneric {
|
|
|
32913
33148
|
useExisting: forwardRef(() => PoInputComponent),
|
|
32914
33149
|
multi: true
|
|
32915
33150
|
}
|
|
32916
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars:
|
|
33151
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 25, consts: [["inp", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], ["class", "po-field-icon-container-left", 4, "ngIf"], [1, "po-input", 3, "blur", "click", "focus", "input", "autocomplete", "disabled", "id", "placeholder", "readonly", "required", "type"], [1, "po-field-icon-container-right"], [3, "class", "p-element-ref", "p-change-event", 4, "ngIf"], [3, "p-help", "p-disabled", "p-error-pattern", "p-error-limit", "p-append-in-body"], [1, "po-field-icon-container-left"], [3, "p-icon"], [3, "p-change-event", "p-element-ref"]], template: function PoInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
32917
33152
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
32918
33153
|
i0.ɵɵelementStart(0, "po-field-container", 1)(1, "div", 2);
|
|
32919
33154
|
i0.ɵɵtemplate(2, PoInputComponent_div_2_Template, 2, 6, "div", 3);
|
|
@@ -32936,7 +33171,7 @@ class PoInputComponent extends PoInputGeneric {
|
|
|
32936
33171
|
i0.ɵɵadvance(3);
|
|
32937
33172
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled && !ctx.readonly);
|
|
32938
33173
|
i0.ɵɵadvance();
|
|
32939
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern());
|
|
33174
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern())("p-error-limit", ctx.errorLimit)("p-append-in-body", ctx.errorAppendBox);
|
|
32940
33175
|
} }, dependencies: [i1.NgIf, PoCleanComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
32941
33176
|
}
|
|
32942
33177
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoInputComponent, [{
|
|
@@ -32952,7 +33187,7 @@ class PoInputComponent extends PoInputGeneric {
|
|
|
32952
33187
|
useExisting: forwardRef(() => PoInputComponent),
|
|
32953
33188
|
multi: true
|
|
32954
33189
|
}
|
|
32955
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<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 class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : '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-input\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"{{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
33190
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<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 class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : '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-input\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"{{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-append-in-body]=\"errorAppendBox\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
32956
33191
|
}], () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], { inp: [{
|
|
32957
33192
|
type: ViewChild,
|
|
32958
33193
|
args: ['inp', { static: true }]
|
|
@@ -33028,7 +33263,7 @@ class PoLoginComponent extends PoInputGeneric {
|
|
|
33028
33263
|
return null;
|
|
33029
33264
|
}
|
|
33030
33265
|
static ɵfac = function PoLoginComponent_Factory(t) { return new (t || PoLoginComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
33031
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoLoginComponent, selectors: [["po-login"]], inputs: { noAutocomplete: [0, "p-no-autocomplete", "noAutocomplete"] }, features: [i0.ɵɵProvidersFeature(providers$3), i0.ɵɵInheritDefinitionFeature], decls: 9, vars:
|
|
33266
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoLoginComponent, selectors: [["po-login"]], inputs: { noAutocomplete: [0, "p-no-autocomplete", "noAutocomplete"] }, features: [i0.ɵɵProvidersFeature(providers$3), i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 26, consts: [["inp", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], [1, "po-field-icon-container-left"], ["p-icon", "ICON_USER"], [1, "po-input", "po-input-icon-left", 3, "blur", "click", "focus", "input", "autocomplete", "disabled", "id", "placeholder", "readonly", "required", "type"], [1, "po-field-icon-container-right"], ["class", "po-icon-input", 3, "p-element-ref", "p-change-event", 4, "ngIf"], [3, "p-help", "p-disabled", "p-error-pattern", "p-error-limit"], [1, "po-icon-input", 3, "p-change-event", "p-element-ref"]], template: function PoLoginComponent_Template(rf, ctx) { if (rf & 1) {
|
|
33032
33267
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
33033
33268
|
i0.ɵɵelementStart(0, "po-field-container", 1)(1, "div", 2)(2, "div", 3);
|
|
33034
33269
|
i0.ɵɵelement(3, "po-icon", 4);
|
|
@@ -33053,12 +33288,12 @@ class PoLoginComponent extends PoInputGeneric {
|
|
|
33053
33288
|
i0.ɵɵadvance(3);
|
|
33054
33289
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled && !ctx.readonly);
|
|
33055
33290
|
i0.ɵɵadvance();
|
|
33056
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern());
|
|
33291
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern())("p-error-limit", ctx.errorLimit);
|
|
33057
33292
|
} }, dependencies: [i1.NgIf, PoCleanComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
33058
33293
|
}
|
|
33059
33294
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoLoginComponent, [{
|
|
33060
33295
|
type: Component,
|
|
33061
|
-
args: [{ selector: 'po-login', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$3, template: "<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 class=\"po-field-container-content\">\n <div class=\"po-field-icon-container-left\">\n <po-icon\n p-icon=\"ICON_USER\"\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-disabled]=\"disabled\"\n ></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input po-input-icon-left\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom
|
|
33296
|
+
args: [{ selector: 'po-login', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$3, template: "<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 class=\"po-field-container-content\">\n <div class=\"po-field-icon-container-left\">\n <po-icon\n p-icon=\"ICON_USER\"\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-disabled]=\"disabled\"\n ></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input po-input-icon-left\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n >\n </po-field-container-bottom>\n</po-field-container>\n" }]
|
|
33062
33297
|
}], () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], { noAutocomplete: [{
|
|
33063
33298
|
type: Input,
|
|
33064
33299
|
args: ['p-no-autocomplete']
|
|
@@ -34758,6 +34993,20 @@ class PoLookupBaseComponent {
|
|
|
34758
34993
|
*
|
|
34759
34994
|
*/
|
|
34760
34995
|
fieldErrorMessage;
|
|
34996
|
+
/**
|
|
34997
|
+
* @optional
|
|
34998
|
+
*
|
|
34999
|
+
* @description
|
|
35000
|
+
*
|
|
35001
|
+
* Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
|
|
35002
|
+
*
|
|
35003
|
+
* > Caso essa propriedade seja definida como `true`, a mensagem de erro será limitada a duas linhas
|
|
35004
|
+
* e um tooltip será exibido ao passar o mouse sobre a mensagem para mostrar o conteúdo completo.
|
|
35005
|
+
*
|
|
35006
|
+
* @default `false`
|
|
35007
|
+
*/
|
|
35008
|
+
errorLimit = false;
|
|
35009
|
+
errorAppendBox = false;
|
|
34761
35010
|
/**
|
|
34762
35011
|
* @optional
|
|
34763
35012
|
*
|
|
@@ -35172,7 +35421,7 @@ class PoLookupBaseComponent {
|
|
|
35172
35421
|
}
|
|
35173
35422
|
}
|
|
35174
35423
|
static ɵfac = function PoLookupBaseComponent_Factory(t) { return new (t || PoLookupBaseComponent)(i0.ɵɵdirectiveInject(PoLookupFilterService), i0.ɵɵdirectiveInject(Injector), i0.ɵɵdirectiveInject(PoLookupModalService), i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
35175
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoLookupBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], label: [0, "p-label", "label"], literals: [0, "p-literals", "literals"], help: [0, "p-help", "help"], placeholder: [0, "p-placeholder", "placeholder"], name: "name", fieldValue: [0, "p-field-value", "fieldValue"], fieldLabel: [0, "p-field-label", "fieldLabel"], filterParams: [0, "p-filter-params", "filterParams"], fieldFormat: [0, "p-field-format", "fieldFormat"], columns: [0, "p-columns", "columns"], optional: [0, "p-optional", "optional"], advancedFilters: [0, "p-advanced-filters", "advancedFilters"], hideColumnsManager: [2, "p-hide-columns-manager", "hideColumnsManager", convertToBoolean], infiniteScroll: [2, "p-infinite-scroll", "infiniteScroll", convertToBoolean], clean: [2, "p-clean", "clean", convertToBoolean], multiple: [2, "p-multiple", "multiple", convertToBoolean], autoHeight: [2, "p-auto-height", "autoHeight", convertToBoolean], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], spacing: [0, "p-spacing", "spacing"], textWrap: [2, "p-text-wrap", "textWrap", convertToBoolean], virtualScroll: [2, "p-virtual-scroll", "virtualScroll", convertToBoolean], filterService: [0, "p-filter-service", "filterService"], noAutocomplete: [0, "p-no-autocomplete", "noAutocomplete"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"], disabled: [0, "p-disabled", "disabled"] }, outputs: { onError: "p-error", selected: "p-selected", change: "p-change", changeVisibleColumns: "p-change-visible-columns", columnRestoreManager: "p-restore-column-manager" }, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵNgOnChangesFeature] });
|
|
35424
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoLookupBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], label: [0, "p-label", "label"], literals: [0, "p-literals", "literals"], help: [0, "p-help", "help"], placeholder: [0, "p-placeholder", "placeholder"], name: "name", fieldValue: [0, "p-field-value", "fieldValue"], fieldLabel: [0, "p-field-label", "fieldLabel"], filterParams: [0, "p-filter-params", "filterParams"], fieldFormat: [0, "p-field-format", "fieldFormat"], columns: [0, "p-columns", "columns"], optional: [0, "p-optional", "optional"], advancedFilters: [0, "p-advanced-filters", "advancedFilters"], hideColumnsManager: [2, "p-hide-columns-manager", "hideColumnsManager", convertToBoolean], infiniteScroll: [2, "p-infinite-scroll", "infiniteScroll", convertToBoolean], clean: [2, "p-clean", "clean", convertToBoolean], multiple: [2, "p-multiple", "multiple", convertToBoolean], autoHeight: [2, "p-auto-height", "autoHeight", convertToBoolean], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], errorLimit: [0, "p-error-limit", "errorLimit"], errorAppendBox: [2, "p-error-append-in-body", "errorAppendBox", convertToBoolean], spacing: [0, "p-spacing", "spacing"], textWrap: [2, "p-text-wrap", "textWrap", convertToBoolean], virtualScroll: [2, "p-virtual-scroll", "virtualScroll", convertToBoolean], filterService: [0, "p-filter-service", "filterService"], noAutocomplete: [0, "p-no-autocomplete", "noAutocomplete"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"], disabled: [0, "p-disabled", "disabled"] }, outputs: { onError: "p-error", selected: "p-selected", change: "p-change", changeVisibleColumns: "p-change-visible-columns", columnRestoreManager: "p-restore-column-manager" }, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵNgOnChangesFeature] });
|
|
35176
35425
|
}
|
|
35177
35426
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoLookupBaseComponent, [{
|
|
35178
35427
|
type: Directive
|
|
@@ -35236,6 +35485,12 @@ class PoLookupBaseComponent {
|
|
|
35236
35485
|
}], fieldErrorMessage: [{
|
|
35237
35486
|
type: Input,
|
|
35238
35487
|
args: ['p-field-error-message']
|
|
35488
|
+
}], errorLimit: [{
|
|
35489
|
+
type: Input,
|
|
35490
|
+
args: ['p-error-limit']
|
|
35491
|
+
}], errorAppendBox: [{
|
|
35492
|
+
type: Input,
|
|
35493
|
+
args: [{ alias: 'p-error-append-in-body', transform: convertToBoolean }]
|
|
35239
35494
|
}], spacing: [{
|
|
35240
35495
|
type: Input,
|
|
35241
35496
|
args: ['p-spacing']
|
|
@@ -35755,7 +36010,7 @@ class PoLookupComponent extends PoLookupBaseComponent {
|
|
|
35755
36010
|
} if (rf & 2) {
|
|
35756
36011
|
let _t;
|
|
35757
36012
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputEl = _t.first);
|
|
35758
|
-
} }, features: [i0.ɵɵProvidersFeature(providers$2), i0.ɵɵInheritDefinitionFeature], decls: 5, vars:
|
|
36013
|
+
} }, features: [i0.ɵɵProvidersFeature(providers$2), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 13, consts: [["disclaimersTemplate", ""], ["inp", ""], ["iconLookup", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], ["class", "po-field-container-content po-lookup", 3, "po-lookup-disabled", 4, "ngIf", "ngIfElse"], [3, "p-help", "p-disabled", "p-error-pattern", "p-error-limit", "p-append-in-body"], [1, "po-field-container-content", "po-lookup"], [1, "po-search-container-wrapper"], ["type", "text", 1, "po-lookup-input", "po-lookup-input-trigger", 3, "blur", "ngClass", "id", "autocomplete", "disabled", "placeholder", "required"], [1, "po-field-icon-container-right", "po-lookup-buttons"], ["tabindex", "0", "role", "button", "class", "po-lookup-button po-lookup-button-clean", 3, "p-element-ref", "p-change-event", "click", "keydown.enter", 4, "ngIf"], ["tabindex", "0", "role", "button", 1, "po-lookup-button", "po-lookup-button-trigger", "po-field-icon", 3, "p-change-event", "click", "keydown.enter", "ariaLabel"], ["p-icon", "ICON_SEARCH"], ["tabindex", "0", "role", "button", 1, "po-lookup-button", "po-lookup-button-clean", 3, "p-change-event", "click", "keydown.enter", "p-element-ref"], [1, "po-lookup"], [1, "po-lookup-input", "po-input-icon-right", "po-lookup-input", "po-icon-input", 3, "tabindex", "ngClass"], ["class", "po-lookup-input-placeholder", 4, "ngIf"], ["class", "po-lookup-input-disclaimer", 3, "p-label", "p-value", "p-hide-close", "po-clickable", "p-close-action", 4, "ngFor", "ngForOf"], [1, "po-lookup-input-placeholder"], [1, "po-lookup-input-disclaimer", 3, "p-close-action", "p-label", "p-value", "p-hide-close"]], template: function PoLookupComponent_Template(rf, ctx) { if (rf & 1) {
|
|
35759
36014
|
i0.ɵɵelementStart(0, "po-field-container", 3);
|
|
35760
36015
|
i0.ɵɵtemplate(1, PoLookupComponent_div_1_Template, 9, 14, "div", 4);
|
|
35761
36016
|
i0.ɵɵelement(2, "po-field-container-bottom", 5);
|
|
@@ -35767,12 +36022,12 @@ class PoLookupComponent extends PoLookupBaseComponent {
|
|
|
35767
36022
|
i0.ɵɵadvance();
|
|
35768
36023
|
i0.ɵɵproperty("ngIf", !ctx.disclaimers.length)("ngIfElse", disclaimersTemplate_r10);
|
|
35769
36024
|
i0.ɵɵadvance();
|
|
35770
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern());
|
|
36025
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern())("p-error-limit", ctx.errorLimit)("p-append-in-body", ctx.errorAppendBox);
|
|
35771
36026
|
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, PoCleanComponent, PoDisclaimerComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
35772
36027
|
}
|
|
35773
36028
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoLookupComponent, [{
|
|
35774
36029
|
type: Component,
|
|
35775
|
-
args: [{ selector: 'po-lookup', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$2, template: "<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\n class=\"po-field-container-content po-lookup\"\n [class.po-lookup-disabled]=\"disabled\"\n *ngIf=\"!disclaimers.length; else disclaimersTemplate\"\n >\n <div class=\"po-search-container-wrapper\">\n <input\n #inp\n class=\"po-lookup-input po-lookup-input-trigger\"\n [ngClass]=\"clean && inp.value ? 'po-input-double-icon-right' : 'po-input-icon-right'\"\n [id]=\"id\"\n type=\"text\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n (blur)=\"searchEvent()\"\n />\n\n <div class=\"po-field-icon-container-right po-lookup-buttons\">\n <po-clean\n *ngIf=\"clean && !disabled && !!inp.value\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"literals.clean\"\n class=\"po-icon-input po-lookup-button po-lookup-button-clean\"\n class=\"po-lookup-button po-lookup-button-clean\"\n [p-element-ref]=\"inp\"\n (p-change-event)=\"cleanModel()\"\n (click)=\"cleanModel(); $event.preventDefault()\"\n (keydown.enter)=\"cleanModel(); $event.preventDefault()\"\n >\n </po-clean>\n <div\n #iconLookup\n tabindex=\"0\"\n role=\"button\"\n class=\"po-lookup-button po-lookup-button-trigger po-field-icon\"\n [class.po-field-icon-disabled]=\"disabled\"\n [ariaLabel]=\"literals.search\"\n (p-change-event)=\"openLookup()\"\n (click)=\"openLookup(); $event.preventDefault()\"\n (keydown.enter)=\"openLookup(); $event.preventDefault()\"\n >\n <po-icon p-icon=\"ICON_SEARCH\" [class.po-field-icon]=\"!disabled\"></po-icon>\n </div>\n </div>\n </div>\n </div>\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></po-field-container-bottom>\n</po-field-container>\n\n<ng-template #disclaimersTemplate>\n <div class=\"po-lookup\" [class.po-lookup-disabled]=\"disabled\">\n <div\n #inp\n [tabindex]=\"disabled ? -1 : 0\"\n class=\"po-lookup-input po-input-icon-right po-lookup-input po-icon-input\"\n [ngClass]=\"clean && inp.value ? 'po-input-double-icon-right' : 'po-input-icon-right'\"\n [class.po-lookup-input-auto]=\"autoHeight\"\n [class.po-lookup-input-static]=\"!autoHeight\"\n [class.po-lookup-input-padding-button-clean]=\"clean\"\n [class.po-lookup-input-disabled]=\"disabled\"\n >\n <span *ngIf=\"placeholder && !disclaimers?.length\" class=\"po-lookup-input-placeholder\">\n {{ placeholder }}\n </span>\n\n <po-disclaimer\n *ngFor=\"let disclaimer of visibleDisclaimers\"\n class=\"po-lookup-input-disclaimer\"\n [p-label]=\"disclaimer.label\"\n [p-value]=\"disclaimer.value\"\n [p-hide-close]=\"disclaimer.value === '' || disabled\"\n [class.po-clickable]=\"disclaimer.value === '' && !disabled\"\n (p-close-action)=\"closeDisclaimer(disclaimer.value)\"\n >\n </po-disclaimer>\n </div>\n <div class=\"po-field-icon-container-right po-lookup-buttons\">\n <po-clean\n *ngIf=\"clean && !disabled && !!inp.value\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"literals.clean\"\n class=\"po-lookup-button po-lookup-button-clean\"\n [p-element-ref]=\"inp\"\n (p-change-event)=\"cleanModel()\"\n (click)=\"cleanModel(); $event.preventDefault()\"\n (keydown.enter)=\"cleanModel(); $event.preventDefault()\"\n >\n </po-clean>\n <div\n #iconLookup\n tabindex=\"0\"\n role=\"button\"\n class=\"po-lookup-button po-lookup-button-trigger po-field-icon\"\n [class.po-field-icon-disabled]=\"disabled\"\n [ariaLabel]=\"literals.search\"\n (p-change-event)=\"openLookup()\"\n (click)=\"openLookup(); $event.preventDefault()\"\n (keydown.enter)=\"openLookup(); $event.preventDefault()\"\n >\n <po-icon p-icon=\"ICON_SEARCH\" [class.po-field-icon]=\"!disabled\"></po-icon>\n </div>\n </div>\n </div>\n</ng-template>\n" }]
|
|
36030
|
+
args: [{ selector: 'po-lookup', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$2, template: "<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\n class=\"po-field-container-content po-lookup\"\n [class.po-lookup-disabled]=\"disabled\"\n *ngIf=\"!disclaimers.length; else disclaimersTemplate\"\n >\n <div class=\"po-search-container-wrapper\">\n <input\n #inp\n class=\"po-lookup-input po-lookup-input-trigger\"\n [ngClass]=\"clean && inp.value ? 'po-input-double-icon-right' : 'po-input-icon-right'\"\n [id]=\"id\"\n type=\"text\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n (blur)=\"searchEvent()\"\n />\n\n <div class=\"po-field-icon-container-right po-lookup-buttons\">\n <po-clean\n *ngIf=\"clean && !disabled && !!inp.value\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"literals.clean\"\n class=\"po-icon-input po-lookup-button po-lookup-button-clean\"\n class=\"po-lookup-button po-lookup-button-clean\"\n [p-element-ref]=\"inp\"\n (p-change-event)=\"cleanModel()\"\n (click)=\"cleanModel(); $event.preventDefault()\"\n (keydown.enter)=\"cleanModel(); $event.preventDefault()\"\n >\n </po-clean>\n <div\n #iconLookup\n tabindex=\"0\"\n role=\"button\"\n class=\"po-lookup-button po-lookup-button-trigger po-field-icon\"\n [class.po-field-icon-disabled]=\"disabled\"\n [ariaLabel]=\"literals.search\"\n (p-change-event)=\"openLookup()\"\n (click)=\"openLookup(); $event.preventDefault()\"\n (keydown.enter)=\"openLookup(); $event.preventDefault()\"\n >\n <po-icon p-icon=\"ICON_SEARCH\" [class.po-field-icon]=\"!disabled\"></po-icon>\n </div>\n </div>\n </div>\n </div>\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-append-in-body]=\"errorAppendBox\"\n ></po-field-container-bottom>\n</po-field-container>\n\n<ng-template #disclaimersTemplate>\n <div class=\"po-lookup\" [class.po-lookup-disabled]=\"disabled\">\n <div\n #inp\n [tabindex]=\"disabled ? -1 : 0\"\n class=\"po-lookup-input po-input-icon-right po-lookup-input po-icon-input\"\n [ngClass]=\"clean && inp.value ? 'po-input-double-icon-right' : 'po-input-icon-right'\"\n [class.po-lookup-input-auto]=\"autoHeight\"\n [class.po-lookup-input-static]=\"!autoHeight\"\n [class.po-lookup-input-padding-button-clean]=\"clean\"\n [class.po-lookup-input-disabled]=\"disabled\"\n >\n <span *ngIf=\"placeholder && !disclaimers?.length\" class=\"po-lookup-input-placeholder\">\n {{ placeholder }}\n </span>\n\n <po-disclaimer\n *ngFor=\"let disclaimer of visibleDisclaimers\"\n class=\"po-lookup-input-disclaimer\"\n [p-label]=\"disclaimer.label\"\n [p-value]=\"disclaimer.value\"\n [p-hide-close]=\"disclaimer.value === '' || disabled\"\n [class.po-clickable]=\"disclaimer.value === '' && !disabled\"\n (p-close-action)=\"closeDisclaimer(disclaimer.value)\"\n >\n </po-disclaimer>\n </div>\n <div class=\"po-field-icon-container-right po-lookup-buttons\">\n <po-clean\n *ngIf=\"clean && !disabled && !!inp.value\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"literals.clean\"\n class=\"po-lookup-button po-lookup-button-clean\"\n [p-element-ref]=\"inp\"\n (p-change-event)=\"cleanModel()\"\n (click)=\"cleanModel(); $event.preventDefault()\"\n (keydown.enter)=\"cleanModel(); $event.preventDefault()\"\n >\n </po-clean>\n <div\n #iconLookup\n tabindex=\"0\"\n role=\"button\"\n class=\"po-lookup-button po-lookup-button-trigger po-field-icon\"\n [class.po-field-icon-disabled]=\"disabled\"\n [ariaLabel]=\"literals.search\"\n (p-change-event)=\"openLookup()\"\n (click)=\"openLookup(); $event.preventDefault()\"\n (keydown.enter)=\"openLookup(); $event.preventDefault()\"\n >\n <po-icon p-icon=\"ICON_SEARCH\" [class.po-field-icon]=\"!disabled\"></po-icon>\n </div>\n </div>\n </div>\n</ng-template>\n" }]
|
|
35776
36031
|
}], () => [{ type: PoLanguageService }, { type: i0.Renderer2 }, { type: PoLookupFilterService }, { type: PoLookupModalService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Injector }], { inputEl: [{
|
|
35777
36032
|
type: ViewChild,
|
|
35778
36033
|
args: ['inp', { read: ElementRef, static: false }]
|
|
@@ -35996,6 +36251,19 @@ class PoMultiselectBaseComponent {
|
|
|
35996
36251
|
*
|
|
35997
36252
|
*/
|
|
35998
36253
|
fieldErrorMessage;
|
|
36254
|
+
/**
|
|
36255
|
+
* @optional
|
|
36256
|
+
*
|
|
36257
|
+
* @description
|
|
36258
|
+
*
|
|
36259
|
+
* Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
|
|
36260
|
+
*
|
|
36261
|
+
* > Caso essa propriedade seja definida como `true`, a mensagem de erro será limitada a duas linhas
|
|
36262
|
+
* e um tooltip será exibido ao passar o mouse sobre a mensagem para mostrar o conteúdo completo.
|
|
36263
|
+
*
|
|
36264
|
+
* @default `false`
|
|
36265
|
+
*/
|
|
36266
|
+
errorLimit = false;
|
|
35999
36267
|
/**
|
|
36000
36268
|
* @optional
|
|
36001
36269
|
*
|
|
@@ -36017,6 +36285,7 @@ class PoMultiselectBaseComponent {
|
|
|
36017
36285
|
* @default `false`
|
|
36018
36286
|
*/
|
|
36019
36287
|
appendBox = false;
|
|
36288
|
+
errorAppendBox = false;
|
|
36020
36289
|
selectedOptions = [];
|
|
36021
36290
|
visibleOptionsDropdown = [];
|
|
36022
36291
|
visibleTags = [];
|
|
@@ -36520,7 +36789,7 @@ class PoMultiselectBaseComponent {
|
|
|
36520
36789
|
}
|
|
36521
36790
|
}
|
|
36522
36791
|
static ɵfac = function PoMultiselectBaseComponent_Factory(t) { return new (t || PoMultiselectBaseComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
36523
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoMultiselectBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], label: [0, "p-label", "label"], help: [0, "p-help", "help"], optional: [0, "p-optional", "optional"], placeholder: [0, "p-placeholder", "placeholder"], placeholderSearch: [0, "p-placeholder-search", "placeholderSearch"], name: "name", hideSelectAll: [2, "p-hide-select-all", "hideSelectAll", convertToBoolean], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], appendBox: [2, "p-append-in-body", "appendBox", convertToBoolean], filterService: [0, "p-filter-service", "filterService"], autoHeight: [2, "p-auto-height", "autoHeight", convertToBoolean], debounceTime: [0, "p-debounce-time", "debounceTime"], literals: [0, "p-literals", "literals"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"], disabled: [0, "p-disabled", "disabled"], hideSearch: [0, "p-hide-search", "hideSearch"], options: [0, "p-options", "options"], sort: [0, "p-sort", "sort"], filterMode: [0, "p-filter-mode", "filterMode"], fieldLabel: [0, "p-field-label", "fieldLabel"], fieldValue: [0, "p-field-value", "fieldValue"] }, outputs: { change: "p-change" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
36792
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoMultiselectBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], label: [0, "p-label", "label"], help: [0, "p-help", "help"], optional: [0, "p-optional", "optional"], placeholder: [0, "p-placeholder", "placeholder"], placeholderSearch: [0, "p-placeholder-search", "placeholderSearch"], name: "name", hideSelectAll: [2, "p-hide-select-all", "hideSelectAll", convertToBoolean], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], errorLimit: [0, "p-error-limit", "errorLimit"], appendBox: [2, "p-append-in-body", "appendBox", convertToBoolean], errorAppendBox: [2, "p-error-append-in-body", "errorAppendBox", convertToBoolean], filterService: [0, "p-filter-service", "filterService"], autoHeight: [2, "p-auto-height", "autoHeight", convertToBoolean], debounceTime: [0, "p-debounce-time", "debounceTime"], literals: [0, "p-literals", "literals"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"], disabled: [0, "p-disabled", "disabled"], hideSearch: [0, "p-hide-search", "hideSearch"], options: [0, "p-options", "options"], sort: [0, "p-sort", "sort"], filterMode: [0, "p-filter-mode", "filterMode"], fieldLabel: [0, "p-field-label", "fieldLabel"], fieldValue: [0, "p-field-value", "fieldValue"] }, outputs: { change: "p-change" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
36524
36793
|
}
|
|
36525
36794
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoMultiselectBaseComponent, [{
|
|
36526
36795
|
type: Directive
|
|
@@ -36551,12 +36820,18 @@ class PoMultiselectBaseComponent {
|
|
|
36551
36820
|
}], fieldErrorMessage: [{
|
|
36552
36821
|
type: Input,
|
|
36553
36822
|
args: ['p-field-error-message']
|
|
36823
|
+
}], errorLimit: [{
|
|
36824
|
+
type: Input,
|
|
36825
|
+
args: ['p-error-limit']
|
|
36554
36826
|
}], change: [{
|
|
36555
36827
|
type: Output,
|
|
36556
36828
|
args: ['p-change']
|
|
36557
36829
|
}], appendBox: [{
|
|
36558
36830
|
type: Input,
|
|
36559
36831
|
args: [{ alias: 'p-append-in-body', transform: convertToBoolean }]
|
|
36832
|
+
}], errorAppendBox: [{
|
|
36833
|
+
type: Input,
|
|
36834
|
+
args: [{ alias: 'p-error-append-in-body', transform: convertToBoolean }]
|
|
36560
36835
|
}], filterService: [{
|
|
36561
36836
|
type: Input,
|
|
36562
36837
|
args: ['p-filter-service']
|
|
@@ -37269,7 +37544,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
37269
37544
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconElement = _t.first);
|
|
37270
37545
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
37271
37546
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.outerContainer = _t.first);
|
|
37272
|
-
} }, features: [i0.ɵɵProvidersFeature(providers$1), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 20, vars:
|
|
37547
|
+
} }, features: [i0.ɵɵProvidersFeature(providers$1), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 20, vars: 33, 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", "p-error-pattern", "p-error-limit", "p-append-in-body"], ["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) {
|
|
37273
37548
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
37274
37549
|
i0.ɵɵelementStart(0, "div", null, 0)(2, "po-field-container", 8)(3, "div", 9, 1)(5, "div", 10, 2);
|
|
37275
37550
|
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()); });
|
|
@@ -37304,12 +37579,12 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
37304
37579
|
i0.ɵɵadvance(2);
|
|
37305
37580
|
i0.ɵɵproperty("ngIf", ctx.appendBox)("ngIfThen", dropdownCDK_r10)("ngIfElse", dropdownDefault_r9);
|
|
37306
37581
|
i0.ɵɵadvance(5);
|
|
37307
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern());
|
|
37582
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern())("p-error-limit", ctx.errorLimit)("p-append-in-body", ctx.errorAppendBox);
|
|
37308
37583
|
} }, encapsulation: 2, changeDetection: 0 });
|
|
37309
37584
|
}
|
|
37310
37585
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoMultiselectComponent, [{
|
|
37311
37586
|
type: Component,
|
|
37312
|
-
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\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></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" }]
|
|
37587
|
+
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\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-append-in-body]=\"errorAppendBox\"\n ></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" }]
|
|
37313
37588
|
}], () => [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: PoControlPositionService }, { type: PoMultiselectFilterService }, { type: PoLanguageService }], { multiselectOptionTemplate: [{
|
|
37314
37589
|
type: ContentChild,
|
|
37315
37590
|
args: [PoMultiselectOptionTemplateDirective, { static: true }]
|
|
@@ -37581,7 +37856,7 @@ class PoNumberComponent extends PoNumberBaseComponent {
|
|
|
37581
37856
|
useExisting: forwardRef(() => PoNumberComponent),
|
|
37582
37857
|
multi: true
|
|
37583
37858
|
}
|
|
37584
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars:
|
|
37859
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 28, consts: [["inp", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], ["class", "po-field-icon-container-left", 4, "ngIf"], ["type", "number", 1, "po-input", 3, "blur", "focus", "input", "keydown", "autocomplete", "disabled", "id", "placeholder", "readonly", "required", "tabindex"], [1, "po-field-icon-container-right"], ["class", "po-icon-input", 3, "p-default-value", "p-element-ref", "p-change-event", 4, "ngIf"], [3, "p-help", "p-disabled", "p-error-limit", "p-error-pattern", "p-append-in-body"], [1, "po-field-icon-container-left"], [1, "po-field-icon", "po-icon-input", 3, "p-icon"], [1, "po-icon-input", 3, "p-change-event", "p-default-value", "p-element-ref"]], template: function PoNumberComponent_Template(rf, ctx) { if (rf & 1) {
|
|
37585
37860
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
37586
37861
|
i0.ɵɵelementStart(0, "po-field-container", 1)(1, "div", 2);
|
|
37587
37862
|
i0.ɵɵtemplate(2, PoNumberComponent_div_2_Template, 2, 3, "div", 3);
|
|
@@ -37604,7 +37879,7 @@ class PoNumberComponent extends PoNumberBaseComponent {
|
|
|
37604
37879
|
i0.ɵɵadvance(3);
|
|
37605
37880
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled && !ctx.readonly);
|
|
37606
37881
|
i0.ɵɵadvance();
|
|
37607
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPatternMessage());
|
|
37882
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-limit", ctx.errorLimit)("p-error-pattern", ctx.getErrorPatternMessage())("p-append-in-body", ctx.errorAppendBox);
|
|
37608
37883
|
} }, dependencies: [i1.NgIf, PoCleanComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
37609
37884
|
}
|
|
37610
37885
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoNumberComponent, [{
|
|
@@ -37620,7 +37895,7 @@ class PoNumberComponent extends PoNumberBaseComponent {
|
|
|
37620
37895
|
useExisting: forwardRef(() => PoNumberComponent),
|
|
37621
37896
|
multi: true
|
|
37622
37897
|
}
|
|
37623
|
-
], template: "<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 class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon class=\"po-field-icon po-icon-input\" [class.po-field-icon-disabled]=\"disabled\" [p-icon]=\"icon\"></po-icon>\n </div>\n <input\n #inp\n class=\"po-input\"\n type=\"number\"\n [attr.max]=\"max\"\n [attr.min]=\"min\"\n [attr.name]=\"name\"\n [attr.step]=\"step\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [tabindex]=\"disabled ? -1 : 0\"\n (blur)=\"onBlur($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n (keydown)=\"onKeyDown($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-default-value]=\"null\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom
|
|
37898
|
+
], template: "<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 class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon class=\"po-field-icon po-icon-input\" [class.po-field-icon-disabled]=\"disabled\" [p-icon]=\"icon\"></po-icon>\n </div>\n <input\n #inp\n class=\"po-input\"\n type=\"number\"\n [attr.max]=\"max\"\n [attr.min]=\"min\"\n [attr.name]=\"name\"\n [attr.step]=\"step\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [tabindex]=\"disabled ? -1 : 0\"\n (blur)=\"onBlur($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n (keydown)=\"onKeyDown($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-default-value]=\"null\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-limit]=\"errorLimit\"\n [p-error-pattern]=\"getErrorPatternMessage()\"\n [p-append-in-body]=\"errorAppendBox\"\n >\n </po-field-container-bottom>\n</po-field-container>\n" }]
|
|
37624
37899
|
}], () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], { step: [{
|
|
37625
37900
|
type: Input,
|
|
37626
37901
|
args: ['p-step']
|
|
@@ -37734,7 +38009,7 @@ class PoPasswordComponent extends PoInputGeneric {
|
|
|
37734
38009
|
useExisting: forwardRef(() => PoPasswordComponent),
|
|
37735
38010
|
multi: true
|
|
37736
38011
|
}
|
|
37737
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 10, vars:
|
|
38012
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 29, consts: [["inp", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], [1, "po-field-icon-container-left"], ["p-icon", "ICON_LOCK"], [1, "po-input", "po-input-icon-left", 3, "blur", "click", "focus", "input", "autocomplete", "disabled", "id", "placeholder", "readonly", "required", "type"], [1, "po-field-icon-container-right"], ["class", "po-icon-input", 3, "p-element-ref", "p-change-event", 4, "ngIf"], ["class", "po-field-icon po-icon-input", 3, "p-icon", "ngClass", "click", 4, "ngIf"], [3, "p-help", "p-disabled", "p-error-pattern", "p-error-limit"], [1, "po-icon-input", 3, "p-change-event", "p-element-ref"], [1, "po-field-icon", "po-icon-input", 3, "click", "p-icon", "ngClass"]], template: function PoPasswordComponent_Template(rf, ctx) { if (rf & 1) {
|
|
37738
38013
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
37739
38014
|
i0.ɵɵelementStart(0, "po-field-container", 1)(1, "div", 2)(2, "div", 3);
|
|
37740
38015
|
i0.ɵɵelement(3, "po-icon", 4);
|
|
@@ -37762,7 +38037,7 @@ class PoPasswordComponent extends PoInputGeneric {
|
|
|
37762
38037
|
i0.ɵɵadvance();
|
|
37763
38038
|
i0.ɵɵproperty("ngIf", !ctx.hidePasswordPeek && !ctx.disabled);
|
|
37764
38039
|
i0.ɵɵadvance();
|
|
37765
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern());
|
|
38040
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern())("p-error-limit", ctx.errorLimit);
|
|
37766
38041
|
} }, dependencies: [i1.NgClass, i1.NgIf, PoCleanComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
37767
38042
|
}
|
|
37768
38043
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPasswordComponent, [{
|
|
@@ -37778,7 +38053,7 @@ class PoPasswordComponent extends PoInputGeneric {
|
|
|
37778
38053
|
useExisting: forwardRef(() => PoPasswordComponent),
|
|
37779
38054
|
multi: true
|
|
37780
38055
|
}
|
|
37781
|
-
], template: "<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 class=\"po-field-container-content\">\n <div class=\"po-field-icon-container-left\">\n <po-icon\n p-icon=\"ICON_LOCK\"\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-disabled]=\"disabled\"\n >\n </po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input po-input-icon-left\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-double-icon-right]=\"clean && inp.value && !hidePasswordPeek\"\n [class.po-input-icon-right]=\"clean || !hidePasswordPeek\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"disabled ? 'password' : type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n\n <po-icon\n *ngIf=\"!hidePasswordPeek && !disabled\"\n [p-icon]=\"visiblePassword ? 'ICON_EYE' : 'ICON_EYE_OFF po-field-icon-disabled'\"\n class=\"po-field-icon po-icon-input\"\n [ngClass]=\"!visiblePassword ? 'po-field-icon-disabled' : ''\"\n (click)=\"showPassword()\"\n >\n </po-icon>\n </div>\n </div>\n\n <po-field-container-bottom
|
|
38056
|
+
], template: "<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 class=\"po-field-container-content\">\n <div class=\"po-field-icon-container-left\">\n <po-icon\n p-icon=\"ICON_LOCK\"\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-disabled]=\"disabled\"\n >\n </po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input po-input-icon-left\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-double-icon-right]=\"clean && inp.value && !hidePasswordPeek\"\n [class.po-input-icon-right]=\"clean || !hidePasswordPeek\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"disabled ? 'password' : type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"po-icon-input\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n\n <po-icon\n *ngIf=\"!hidePasswordPeek && !disabled\"\n [p-icon]=\"visiblePassword ? 'ICON_EYE' : 'ICON_EYE_OFF po-field-icon-disabled'\"\n class=\"po-field-icon po-icon-input\"\n [ngClass]=\"!visiblePassword ? 'po-field-icon-disabled' : ''\"\n (click)=\"showPassword()\"\n >\n </po-icon>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n >\n </po-field-container-bottom>\n</po-field-container>\n" }]
|
|
37782
38057
|
}], () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], { hidePasswordPeek: [{
|
|
37783
38058
|
type: Input,
|
|
37784
38059
|
args: ['p-hide-password-peek']
|
|
@@ -37878,6 +38153,19 @@ class PoRichTextBaseComponent {
|
|
|
37878
38153
|
* Mensagem que será apresentada quando a propriedade required estiver habilitada e o campo for limpo após algo ser digitado.
|
|
37879
38154
|
*/
|
|
37880
38155
|
errorMessage = '';
|
|
38156
|
+
/**
|
|
38157
|
+
* @optional
|
|
38158
|
+
*
|
|
38159
|
+
* @description
|
|
38160
|
+
*
|
|
38161
|
+
* Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
|
|
38162
|
+
*
|
|
38163
|
+
* > Caso essa propriedade seja definida como `true`, a mensagem de erro será limitada a duas linhas
|
|
38164
|
+
* e um tooltip será exibido ao passar o mouse sobre a mensagem para mostrar o conteúdo completo.
|
|
38165
|
+
*
|
|
38166
|
+
* @default `false`
|
|
38167
|
+
*/
|
|
38168
|
+
errorLimit = false;
|
|
37881
38169
|
/**
|
|
37882
38170
|
* @optional
|
|
37883
38171
|
*
|
|
@@ -38074,7 +38362,7 @@ class PoRichTextBaseComponent {
|
|
|
38074
38362
|
}
|
|
38075
38363
|
}
|
|
38076
38364
|
static ɵfac = function PoRichTextBaseComponent_Factory(t) { return new (t || PoRichTextBaseComponent)(i0.ɵɵdirectiveInject(PoRichTextService)); };
|
|
38077
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoRichTextBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], disabledTextAlign: [2, "p-disabled-text-align", "disabledTextAlign", convertToBoolean], errorMessage: [0, "p-error-message", "errorMessage"], help: [0, "p-help", "help"], label: [0, "p-label", "label"], name: "name", optional: [0, "p-optional", "optional"], hideToolbarActions: [0, "p-hide-toolbar-actions", "hideToolbarActions"], height: [0, "p-height", "height"], placeholder: [0, "p-placeholder", "placeholder"], readonly: [0, "p-readonly", "readonly"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"] }, outputs: { change: "p-change", changeModel: "p-change-model" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
38365
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoRichTextBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], disabledTextAlign: [2, "p-disabled-text-align", "disabledTextAlign", convertToBoolean], errorMessage: [0, "p-error-message", "errorMessage"], errorLimit: [0, "p-error-limit", "errorLimit"], help: [0, "p-help", "help"], label: [0, "p-label", "label"], name: "name", optional: [0, "p-optional", "optional"], hideToolbarActions: [0, "p-hide-toolbar-actions", "hideToolbarActions"], height: [0, "p-height", "height"], placeholder: [0, "p-placeholder", "placeholder"], readonly: [0, "p-readonly", "readonly"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"] }, outputs: { change: "p-change", changeModel: "p-change-model" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
38078
38366
|
}
|
|
38079
38367
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoRichTextBaseComponent, [{
|
|
38080
38368
|
type: Directive
|
|
@@ -38087,6 +38375,9 @@ class PoRichTextBaseComponent {
|
|
|
38087
38375
|
}], errorMessage: [{
|
|
38088
38376
|
type: Input,
|
|
38089
38377
|
args: ['p-error-message']
|
|
38378
|
+
}], errorLimit: [{
|
|
38379
|
+
type: Input,
|
|
38380
|
+
args: ['p-error-limit']
|
|
38090
38381
|
}], help: [{
|
|
38091
38382
|
type: Input,
|
|
38092
38383
|
args: ['p-help']
|
|
@@ -38943,6 +39234,84 @@ class PoUploadBaseComponent {
|
|
|
38943
39234
|
* @default `true`
|
|
38944
39235
|
*/
|
|
38945
39236
|
requiredUrl = true;
|
|
39237
|
+
/**
|
|
39238
|
+
* @optional
|
|
39239
|
+
*
|
|
39240
|
+
* @description
|
|
39241
|
+
*
|
|
39242
|
+
* Define uma ação personalizada no componente `po-upload`, adicionando um botão no canto inferior direito
|
|
39243
|
+
* de cada barra de progresso associada aos arquivos enviados ou em envio.
|
|
39244
|
+
*
|
|
39245
|
+
* A ação deve implementar a interface **PoProgressAction**, permitindo configurar propriedades como:
|
|
39246
|
+
* - `label`: Texto do botão.
|
|
39247
|
+
* - `icon`: Ícone a ser exibido no botão.
|
|
39248
|
+
* - `type`: Tipo de botão (ex.: `danger` ou `default`).
|
|
39249
|
+
* - `disabled`: Indica se o botão deve estar desabilitado.
|
|
39250
|
+
* - `visible`: Indica se o botão deve estar visível.
|
|
39251
|
+
*
|
|
39252
|
+
* **Exemplo de uso:**
|
|
39253
|
+
*
|
|
39254
|
+
* ```html
|
|
39255
|
+
* <po-upload
|
|
39256
|
+
* [p-custom-action]="customAction"
|
|
39257
|
+
* (p-custom-action-click)="onCustomActionClick($event)">
|
|
39258
|
+
* </po-upload>
|
|
39259
|
+
* ```
|
|
39260
|
+
*
|
|
39261
|
+
* ```typescript
|
|
39262
|
+
* customAction: PoProgressAction = {
|
|
39263
|
+
* label: 'Baixar',
|
|
39264
|
+
* icon: 'ph ph-download',
|
|
39265
|
+
* type: 'default',
|
|
39266
|
+
* visible: true
|
|
39267
|
+
* };
|
|
39268
|
+
*
|
|
39269
|
+
* onCustomActionClick(file: PoUploadFile) {
|
|
39270
|
+
* console.log(`Ação personalizada clicada para o arquivo: ${file.name}`);
|
|
39271
|
+
* }
|
|
39272
|
+
* ```
|
|
39273
|
+
*/
|
|
39274
|
+
customAction;
|
|
39275
|
+
/**
|
|
39276
|
+
* @optional
|
|
39277
|
+
*
|
|
39278
|
+
* @description
|
|
39279
|
+
*
|
|
39280
|
+
* Evento emitido ao clicar na ação personalizada configurada no `p-custom-action`.
|
|
39281
|
+
*
|
|
39282
|
+
* O evento retorna o arquivo associado à barra de progresso onde a ação foi clicada,
|
|
39283
|
+
* permitindo executar operações específicas para aquele arquivo.
|
|
39284
|
+
*
|
|
39285
|
+
* **Exemplo de uso:**
|
|
39286
|
+
*
|
|
39287
|
+
* ```html
|
|
39288
|
+
* <po-upload
|
|
39289
|
+
* [p-custom-action]="customAction"
|
|
39290
|
+
* (p-custom-action-click)="onCustomActionClick($event)">
|
|
39291
|
+
* </po-upload>
|
|
39292
|
+
* ```
|
|
39293
|
+
*
|
|
39294
|
+
* ```typescript
|
|
39295
|
+
* customAction: PoProgressAction = {
|
|
39296
|
+
* label: 'Baixar',
|
|
39297
|
+
* icon: 'ph ph-download',
|
|
39298
|
+
* type: 'default',
|
|
39299
|
+
* visible: true
|
|
39300
|
+
* };
|
|
39301
|
+
*
|
|
39302
|
+
* onCustomActionClick(file: PoUploadFile) {
|
|
39303
|
+
* console.log(`Ação personalizada clicada para o arquivo: ${file.name}`);
|
|
39304
|
+
* // Lógica para download do arquivo
|
|
39305
|
+
* this.downloadFile(file);
|
|
39306
|
+
* }
|
|
39307
|
+
*
|
|
39308
|
+
* downloadFile(file: PoUploadFile) {
|
|
39309
|
+
* // Exemplo de download
|
|
39310
|
+
* console.log(`Iniciando o download do arquivo: ${file.name}`);
|
|
39311
|
+
* }
|
|
39312
|
+
* ```
|
|
39313
|
+
*/
|
|
39314
|
+
customActionClick = new EventEmitter();
|
|
38946
39315
|
/**
|
|
38947
39316
|
* @optional
|
|
38948
39317
|
*
|
|
@@ -39369,7 +39738,7 @@ class PoUploadBaseComponent {
|
|
|
39369
39738
|
static ɵfac = function PoUploadBaseComponent_Factory(t) { return new (t || PoUploadBaseComponent)(i0.ɵɵdirectiveInject(PoUploadService), i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
39370
39739
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoUploadBaseComponent, hostVars: 1, hostBindings: function PoUploadBaseComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
39371
39740
|
i0.ɵɵattribute("p-required-url", ctx.requiredUrl);
|
|
39372
|
-
} }, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], dragDropHeight: [0, "p-drag-drop-height", "dragDropHeight"], label: [0, "p-label", "label"], help: [0, "p-help", "help"], url: [0, "p-url", "url"], name: "name", autoUpload: [0, "p-auto-upload", "autoUpload"], disabledRemoveFile: [2, "p-disabled-remove-file", "disabledRemoveFile", convertToBoolean], optional: [0, "p-optional", "optional"], headers: [0, "p-headers", "headers"], requiredUrl: [2, "p-required-url", "requiredUrl", convertToBoolean], directory: [0, "p-directory", "directory"], dragDrop: [0, "p-drag-drop", "dragDrop"], hideRestrictionsInfo: [0, "p-hide-restrictions-info", "hideRestrictionsInfo"], hideSelectButton: [0, "p-hide-select-button", "hideSelectButton"], hideSendButton: [0, "p-hide-send-button", "hideSendButton"], literals: [0, "p-literals", "literals"], fileRestrictions: [0, "p-restrictions", "fileRestrictions"], formField: [0, "p-form-field", "formField"], disabled: [0, "p-disabled", "disabled"], isMultiple: [0, "p-multiple", "isMultiple"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"] }, outputs: { onUpload: "p-upload", onError: "p-error", onSuccess: "p-success", ngModelChange: "ngModelChange" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
39741
|
+
} }, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], dragDropHeight: [0, "p-drag-drop-height", "dragDropHeight"], label: [0, "p-label", "label"], help: [0, "p-help", "help"], url: [0, "p-url", "url"], name: "name", autoUpload: [0, "p-auto-upload", "autoUpload"], disabledRemoveFile: [2, "p-disabled-remove-file", "disabledRemoveFile", convertToBoolean], optional: [0, "p-optional", "optional"], headers: [0, "p-headers", "headers"], requiredUrl: [2, "p-required-url", "requiredUrl", convertToBoolean], customAction: [0, "p-custom-action", "customAction"], directory: [0, "p-directory", "directory"], dragDrop: [0, "p-drag-drop", "dragDrop"], hideRestrictionsInfo: [0, "p-hide-restrictions-info", "hideRestrictionsInfo"], hideSelectButton: [0, "p-hide-select-button", "hideSelectButton"], hideSendButton: [0, "p-hide-send-button", "hideSendButton"], literals: [0, "p-literals", "literals"], fileRestrictions: [0, "p-restrictions", "fileRestrictions"], formField: [0, "p-form-field", "formField"], disabled: [0, "p-disabled", "disabled"], isMultiple: [0, "p-multiple", "isMultiple"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"] }, outputs: { customActionClick: "p-custom-action-click", onUpload: "p-upload", onError: "p-error", onSuccess: "p-success", ngModelChange: "ngModelChange" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
39373
39742
|
}
|
|
39374
39743
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoUploadBaseComponent, [{
|
|
39375
39744
|
type: Directive
|
|
@@ -39409,6 +39778,12 @@ class PoUploadBaseComponent {
|
|
|
39409
39778
|
}, {
|
|
39410
39779
|
type: Input,
|
|
39411
39780
|
args: [{ alias: 'p-required-url', transform: convertToBoolean }]
|
|
39781
|
+
}], customAction: [{
|
|
39782
|
+
type: Input,
|
|
39783
|
+
args: ['p-custom-action']
|
|
39784
|
+
}], customActionClick: [{
|
|
39785
|
+
type: Output,
|
|
39786
|
+
args: ['p-custom-action-click']
|
|
39412
39787
|
}], onUpload: [{
|
|
39413
39788
|
type: Output,
|
|
39414
39789
|
args: ['p-upload']
|
|
@@ -40082,16 +40457,16 @@ function PoUploadComponent_po_upload_file_restrictions_7_Template(rf, ctx) { if
|
|
|
40082
40457
|
function PoUploadComponent_div_8_po_progress_3_Template(rf, ctx) { if (rf & 1) {
|
|
40083
40458
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
40084
40459
|
i0.ɵɵelementStart(0, "po-progress", 19);
|
|
40085
|
-
i0.ɵɵlistener("p-cancel", function PoUploadComponent_div_8_po_progress_3_Template_po_progress_p_cancel_0_listener() { const file_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.cancel(file_r6)); })("p-retry", function PoUploadComponent_div_8_po_progress_3_Template_po_progress_p_retry_0_listener() { const file_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.uploadFiles([file_r6])); });
|
|
40460
|
+
i0.ɵɵlistener("p-custom-action-click", function PoUploadComponent_div_8_po_progress_3_Template_po_progress_p_custom_action_click_0_listener() { const file_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.customClick(file_r6)); })("p-cancel", function PoUploadComponent_div_8_po_progress_3_Template_po_progress_p_cancel_0_listener() { const file_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.cancel(file_r6)); })("p-retry", function PoUploadComponent_div_8_po_progress_3_Template_po_progress_p_retry_0_listener() { const file_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.uploadFiles([file_r6])); });
|
|
40086
40461
|
i0.ɵɵelementEnd();
|
|
40087
40462
|
} if (rf & 2) {
|
|
40088
40463
|
const file_r6 = ctx.$implicit;
|
|
40089
40464
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
40090
|
-
i0.ɵɵproperty("p-disabled-cancel", ctx_r2.disabledRemoveFile)("p-info", ctx_r2.infoByUploadStatus[file_r6.status] == null ? null : ctx_r2.infoByUploadStatus[file_r6.status].text(file_r6.percent))("p-info-icon", ctx_r2.infoByUploadStatus[file_r6.status] == null ? null : ctx_r2.infoByUploadStatus[file_r6.status].icon)("p-status", ctx_r2.progressStatusByFileStatus[file_r6.status])("p-text", file_r6.displayName)("p-value", file_r6.percent);
|
|
40465
|
+
i0.ɵɵproperty("p-disabled-cancel", ctx_r2.disabledRemoveFile)("p-info", ctx_r2.infoByUploadStatus[file_r6.status] == null ? null : ctx_r2.infoByUploadStatus[file_r6.status].text(file_r6.percent))("p-info-icon", ctx_r2.infoByUploadStatus[file_r6.status] == null ? null : ctx_r2.infoByUploadStatus[file_r6.status].icon)("p-status", ctx_r2.progressStatusByFileStatus[file_r6.status])("p-text", file_r6.displayName)("p-value", file_r6.percent)("p-custom-action", ctx_r2.customAction);
|
|
40091
40466
|
} }
|
|
40092
40467
|
function PoUploadComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
40093
40468
|
i0.ɵɵelementStart(0, "div", 15)(1, "po-container", 16)(2, "div", 17);
|
|
40094
|
-
i0.ɵɵtemplate(3, PoUploadComponent_div_8_po_progress_3_Template, 1,
|
|
40469
|
+
i0.ɵɵtemplate(3, PoUploadComponent_div_8_po_progress_3_Template, 1, 7, "po-progress", 18);
|
|
40095
40470
|
i0.ɵɵelementEnd()()();
|
|
40096
40471
|
} if (rf & 2) {
|
|
40097
40472
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -40136,6 +40511,11 @@ function PoUploadComponent_po_button_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
40136
40511
|
* <file name="sample-po-upload-rs/sample-po-upload-rs.component.html"> </file>
|
|
40137
40512
|
* <file name="sample-po-upload-rs/sample-po-upload-rs.component.ts"> </file>
|
|
40138
40513
|
* </example>
|
|
40514
|
+
*
|
|
40515
|
+
* <example name="po-upload-download" title="PO Upload - with Download Button">
|
|
40516
|
+
* <file name="sample-po-upload-download/sample-po-upload-download.component.html"> </file>
|
|
40517
|
+
* <file name="sample-po-upload-download/sample-po-upload-download.component.ts"> </file>
|
|
40518
|
+
* </example>
|
|
40139
40519
|
*/
|
|
40140
40520
|
class PoUploadComponent extends PoUploadBaseComponent {
|
|
40141
40521
|
renderer;
|
|
@@ -40362,6 +40742,11 @@ class PoUploadComponent extends PoUploadBaseComponent {
|
|
|
40362
40742
|
this.onError.emit(eventError);
|
|
40363
40743
|
});
|
|
40364
40744
|
}
|
|
40745
|
+
customClick(file) {
|
|
40746
|
+
if (this.customAction) {
|
|
40747
|
+
this.customActionClick.emit(file);
|
|
40748
|
+
}
|
|
40749
|
+
}
|
|
40365
40750
|
cleanInputValue() {
|
|
40366
40751
|
this.calledByCleanInputValue = true;
|
|
40367
40752
|
this.inputFile.nativeElement.value = '';
|
|
@@ -40433,7 +40818,7 @@ class PoUploadComponent extends PoUploadBaseComponent {
|
|
|
40433
40818
|
useExisting: forwardRef(() => PoUploadComponent),
|
|
40434
40819
|
multi: true
|
|
40435
40820
|
}
|
|
40436
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 19, consts: [["inputFile", ""], ["uploadButton", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], [1, "po-upload"], ["type", "file", 1, "po-upload-input", 3, "change", "accept", "id", "disabled", "multiple", "required"], [3, "p-directory-compatible", "p-disabled", "p-drag-drop-height", "p-literals", "p-file-change", "p-select-files", 4, "ngIf"], ["class", "po-upload-button", "for", "file", 3, "p-disabled", "p-label", "p-click", 4, "ngIf"], ["class", "po-upload-file-restrictions", 3, "ngClass", "p-allowed-extensions", "p-max-files", "p-max-file-size", "p-min-file-size", 4, "ngIf"], ["class", "po-upload-progress-container", 4, "ngIf"], ["class", "po-upload-send-button", "p-kind", "primary", 3, "po-mt-3", "p-disabled", "p-label", "p-click", 4, "ngIf"], [3, "p-help", "p-disabled"], [3, "p-file-change", "p-select-files", "p-directory-compatible", "p-disabled", "p-drag-drop-height", "p-literals"], ["for", "file", 1, "po-upload-button", 3, "p-click", "p-disabled", "p-label"], [1, "po-upload-file-restrictions", 3, "ngClass", "p-allowed-extensions", "p-max-files", "p-max-file-size", "p-min-file-size"], [1, "po-upload-progress-container"], [3, "p-height", "p-no-border", "p-no-padding"], [3, "ngClass"], [3, "p-disabled-cancel", "p-info", "p-info-icon", "p-status", "p-text", "p-value", "p-cancel", "p-retry", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "p-cancel", "p-retry", "p-disabled-cancel", "p-info", "p-info-icon", "p-status", "p-text", "p-value"], ["p-kind", "primary", 1, "po-upload-send-button", 3, "p-click", "p-disabled", "p-label"]], template: function PoUploadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
40821
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 19, consts: [["inputFile", ""], ["uploadButton", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], [1, "po-upload"], ["type", "file", 1, "po-upload-input", 3, "change", "accept", "id", "disabled", "multiple", "required"], [3, "p-directory-compatible", "p-disabled", "p-drag-drop-height", "p-literals", "p-file-change", "p-select-files", 4, "ngIf"], ["class", "po-upload-button", "for", "file", 3, "p-disabled", "p-label", "p-click", 4, "ngIf"], ["class", "po-upload-file-restrictions", 3, "ngClass", "p-allowed-extensions", "p-max-files", "p-max-file-size", "p-min-file-size", 4, "ngIf"], ["class", "po-upload-progress-container", 4, "ngIf"], ["class", "po-upload-send-button", "p-kind", "primary", 3, "po-mt-3", "p-disabled", "p-label", "p-click", 4, "ngIf"], [3, "p-help", "p-disabled"], [3, "p-file-change", "p-select-files", "p-directory-compatible", "p-disabled", "p-drag-drop-height", "p-literals"], ["for", "file", 1, "po-upload-button", 3, "p-click", "p-disabled", "p-label"], [1, "po-upload-file-restrictions", 3, "ngClass", "p-allowed-extensions", "p-max-files", "p-max-file-size", "p-min-file-size"], [1, "po-upload-progress-container"], [3, "p-height", "p-no-border", "p-no-padding"], [3, "ngClass"], [3, "p-disabled-cancel", "p-info", "p-info-icon", "p-status", "p-text", "p-value", "p-custom-action", "p-custom-action-click", "p-cancel", "p-retry", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "p-custom-action-click", "p-cancel", "p-retry", "p-disabled-cancel", "p-info", "p-info-icon", "p-status", "p-text", "p-value", "p-custom-action"], ["p-kind", "primary", 1, "po-upload-send-button", 3, "p-click", "p-disabled", "p-label"]], template: function PoUploadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
40437
40822
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
40438
40823
|
i0.ɵɵelementStart(0, "po-field-container", 2)(1, "div", 3)(2, "div", 4)(3, "input", 5, 0);
|
|
40439
40824
|
i0.ɵɵlistener("change", function PoUploadComponent_Template_input_change_3_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onFileChange($event)); });
|
|
@@ -40476,7 +40861,7 @@ class PoUploadComponent extends PoUploadBaseComponent {
|
|
|
40476
40861
|
useExisting: forwardRef(() => PoUploadComponent),
|
|
40477
40862
|
multi: true
|
|
40478
40863
|
}
|
|
40479
|
-
], template: "<po-field-container\n [p-disabled]=\"isDisabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div class=\"po-field-container-content\">\n <div class=\"po-upload\">\n <input\n #inputFile\n class=\"po-upload-input\"\n type=\"file\"\n [accept]=\"allowedExtensions\"\n [attr.name]=\"name\"\n [id]=\"id\"\n [disabled]=\"isDisabled\"\n [multiple]=\"isMultiple\"\n [required]=\"required\"\n (change)=\"onFileChange($event)\"\n />\n\n <po-upload-drag-drop\n *ngIf=\"displayDragDrop\"\n [p-directory-compatible]=\"canHandleDirectory\"\n [p-disabled]=\"isDisabled\"\n [p-drag-drop-height]=\"dragDropHeight\"\n [p-literals]=\"literals\"\n (p-file-change)=\"onFileChangeDragDrop($event)\"\n (p-select-files)=\"selectFiles()\"\n >\n </po-upload-drag-drop>\n\n <po-button\n *ngIf=\"!hideSelectButton && !displayDragDrop\"\n #uploadButton\n class=\"po-upload-button\"\n for=\"file\"\n [p-disabled]=\"isDisabled\"\n [p-label]=\"selectFileButtonLabel\"\n (p-click)=\"selectFiles()\"\n >\n </po-button>\n\n <po-upload-file-restrictions\n *ngIf=\"fileRestrictions && !hideRestrictionsInfo\"\n class=\"po-upload-file-restrictions\"\n [ngClass]=\"{ 'po-upload-file-restrictions-drag-drop': displayDragDrop }\"\n [p-allowed-extensions]=\"fileRestrictions?.allowedExtensions\"\n [p-max-files]=\"maxFiles\"\n [p-max-file-size]=\"fileRestrictions?.maxFileSize\"\n [p-min-file-size]=\"fileRestrictions?.minFileSize\"\n >\n </po-upload-file-restrictions>\n\n <div *ngIf=\"currentFiles && currentFiles.length\" class=\"po-upload-progress-container\">\n <po-container\n [p-height]=\"hasMoreThanFourItems ? 280 : 'auto'\"\n [p-no-border]=\"!hasMoreThanFourItems\"\n [p-no-padding]=\"!hasMoreThanFourItems\"\n >\n <div [ngClass]=\"{ 'po-upload-progress-container-area po-pt-2 po-pl-1': hasMoreThanFourItems }\">\n <po-progress\n *ngFor=\"let file of currentFiles; trackBy: trackByFn\"\n [p-disabled-cancel]=\"disabledRemoveFile\"\n [p-info]=\"infoByUploadStatus[file.status]?.text(file.percent)\"\n [p-info-icon]=\"infoByUploadStatus[file.status]?.icon\"\n [p-status]=\"progressStatusByFileStatus[file.status]\"\n [p-text]=\"file.displayName\"\n [p-value]=\"file.percent\"\n (p-cancel)=\"cancel(file)\"\n (p-retry)=\"uploadFiles([file])\"\n >\n </po-progress>\n </div>\n </po-container>\n </div>\n\n <po-button\n *ngIf=\"displaySendButton\"\n class=\"po-upload-send-button\"\n [class.po-mt-3]=\"hasMoreThanFourItems\"\n p-kind=\"primary\"\n [p-disabled]=\"hasAnyFileUploading(currentFiles)\"\n [p-label]=\"literals.startSending\"\n (p-click)=\"uploadFiles(currentFiles)\"\n ></po-button>\n </div>\n </div>\n <po-field-container-bottom [p-help]=\"help\" [p-disabled]=\"disabled\"></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
40864
|
+
], template: "<po-field-container\n [p-disabled]=\"isDisabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div class=\"po-field-container-content\">\n <div class=\"po-upload\">\n <input\n #inputFile\n class=\"po-upload-input\"\n type=\"file\"\n [accept]=\"allowedExtensions\"\n [attr.name]=\"name\"\n [id]=\"id\"\n [disabled]=\"isDisabled\"\n [multiple]=\"isMultiple\"\n [required]=\"required\"\n (change)=\"onFileChange($event)\"\n />\n\n <po-upload-drag-drop\n *ngIf=\"displayDragDrop\"\n [p-directory-compatible]=\"canHandleDirectory\"\n [p-disabled]=\"isDisabled\"\n [p-drag-drop-height]=\"dragDropHeight\"\n [p-literals]=\"literals\"\n (p-file-change)=\"onFileChangeDragDrop($event)\"\n (p-select-files)=\"selectFiles()\"\n >\n </po-upload-drag-drop>\n\n <po-button\n *ngIf=\"!hideSelectButton && !displayDragDrop\"\n #uploadButton\n class=\"po-upload-button\"\n for=\"file\"\n [p-disabled]=\"isDisabled\"\n [p-label]=\"selectFileButtonLabel\"\n (p-click)=\"selectFiles()\"\n >\n </po-button>\n\n <po-upload-file-restrictions\n *ngIf=\"fileRestrictions && !hideRestrictionsInfo\"\n class=\"po-upload-file-restrictions\"\n [ngClass]=\"{ 'po-upload-file-restrictions-drag-drop': displayDragDrop }\"\n [p-allowed-extensions]=\"fileRestrictions?.allowedExtensions\"\n [p-max-files]=\"maxFiles\"\n [p-max-file-size]=\"fileRestrictions?.maxFileSize\"\n [p-min-file-size]=\"fileRestrictions?.minFileSize\"\n >\n </po-upload-file-restrictions>\n\n <div *ngIf=\"currentFiles && currentFiles.length\" class=\"po-upload-progress-container\">\n <po-container\n [p-height]=\"hasMoreThanFourItems ? 280 : 'auto'\"\n [p-no-border]=\"!hasMoreThanFourItems\"\n [p-no-padding]=\"!hasMoreThanFourItems\"\n >\n <div [ngClass]=\"{ 'po-upload-progress-container-area po-pt-2 po-pl-1': hasMoreThanFourItems }\">\n <po-progress\n *ngFor=\"let file of currentFiles; trackBy: trackByFn\"\n [p-disabled-cancel]=\"disabledRemoveFile\"\n [p-info]=\"infoByUploadStatus[file.status]?.text(file.percent)\"\n [p-info-icon]=\"infoByUploadStatus[file.status]?.icon\"\n [p-status]=\"progressStatusByFileStatus[file.status]\"\n [p-text]=\"file.displayName\"\n [p-value]=\"file.percent\"\n [p-custom-action]=\"customAction\"\n (p-custom-action-click)=\"customClick(file)\"\n (p-cancel)=\"cancel(file)\"\n (p-retry)=\"uploadFiles([file])\"\n >\n </po-progress>\n </div>\n </po-container>\n </div>\n\n <po-button\n *ngIf=\"displaySendButton\"\n class=\"po-upload-send-button\"\n [class.po-mt-3]=\"hasMoreThanFourItems\"\n p-kind=\"primary\"\n [p-disabled]=\"hasAnyFileUploading(currentFiles)\"\n [p-label]=\"literals.startSending\"\n (p-click)=\"uploadFiles(currentFiles)\"\n ></po-button>\n </div>\n </div>\n <po-field-container-bottom [p-help]=\"help\" [p-disabled]=\"disabled\"></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
40480
40865
|
}], () => [{ type: PoUploadService }, { type: i0.Renderer2 }, { type: PoI18nPipe }, { type: PoNotificationService }, { type: i0.ChangeDetectorRef }, { type: PoLanguageService }], { inputFile: [{
|
|
40481
40866
|
type: ViewChild,
|
|
40482
40867
|
args: ['inputFile', { read: ElementRef, static: true }]
|
|
@@ -40487,7 +40872,7 @@ class PoUploadComponent extends PoUploadBaseComponent {
|
|
|
40487
40872
|
type: ViewChild,
|
|
40488
40873
|
args: ['uploadButton']
|
|
40489
40874
|
}] }); })();
|
|
40490
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoUploadComponent, { className: "PoUploadComponent", filePath: "lib/components/po-field/po-upload/po-upload.component.ts", lineNumber:
|
|
40875
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoUploadComponent, { className: "PoUploadComponent", filePath: "lib/components/po-field/po-upload/po-upload.component.ts", lineNumber: 75 }); })();
|
|
40491
40876
|
|
|
40492
40877
|
function PoUrlComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
40493
40878
|
i0.ɵɵelementStart(0, "div", 8);
|
|
@@ -40581,7 +40966,7 @@ class PoUrlComponent extends PoInputGeneric {
|
|
|
40581
40966
|
useExisting: forwardRef(() => PoUrlComponent),
|
|
40582
40967
|
multi: true
|
|
40583
40968
|
}
|
|
40584
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars:
|
|
40969
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 25, consts: [["inp", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], ["class", "po-field-icon-container-left", 4, "ngIf"], [1, "po-input", 3, "blur", "click", "focus", "input", "autocomplete", "disabled", "id", "placeholder", "readonly", "required", "type"], [1, "po-field-icon-container-right"], [3, "class", "p-element-ref", "p-change-event", 4, "ngIf"], [3, "p-help", "p-disabled", "p-error-pattern", "p-error-limit", "p-append-in-body"], [1, "po-field-icon-container-left"], [3, "p-icon"], [3, "p-change-event", "p-element-ref"]], template: function PoUrlComponent_Template(rf, ctx) { if (rf & 1) {
|
|
40585
40970
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
40586
40971
|
i0.ɵɵelementStart(0, "po-field-container", 1)(1, "div", 2);
|
|
40587
40972
|
i0.ɵɵtemplate(2, PoUrlComponent_div_2_Template, 2, 6, "div", 3);
|
|
@@ -40604,7 +40989,7 @@ class PoUrlComponent extends PoInputGeneric {
|
|
|
40604
40989
|
i0.ɵɵadvance(3);
|
|
40605
40990
|
i0.ɵɵproperty("ngIf", ctx.clean && !ctx.disabled && !ctx.readonly);
|
|
40606
40991
|
i0.ɵɵadvance();
|
|
40607
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern());
|
|
40992
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern())("p-error-limit", ctx.errorLimit)("p-append-in-body", ctx.errorAppendBox);
|
|
40608
40993
|
} }, dependencies: [i1.NgIf, PoCleanComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
40609
40994
|
}
|
|
40610
40995
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoUrlComponent, [{
|
|
@@ -40620,7 +41005,7 @@ class PoUrlComponent extends PoInputGeneric {
|
|
|
40620
41005
|
useExisting: forwardRef(() => PoUrlComponent),
|
|
40621
41006
|
multi: true
|
|
40622
41007
|
}
|
|
40623
|
-
], template: "<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 class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : '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-input\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"{{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
41008
|
+
], template: "<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 class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : '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-input\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"{{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-append-in-body]=\"errorAppendBox\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
40624
41009
|
}], () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], null); })();
|
|
40625
41010
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoUrlComponent, { className: "PoUrlComponent", filePath: "lib/components/po-field/po-url/po-url.component.ts", lineNumber: 57 }); })();
|
|
40626
41011
|
|
|
@@ -41438,7 +41823,7 @@ class PoRichTextComponent extends PoRichTextBaseComponent {
|
|
|
41438
41823
|
let _t;
|
|
41439
41824
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.bodyElement = _t.first);
|
|
41440
41825
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.richTextToolbar = _t.first);
|
|
41441
|
-
} }, features: [i0.ɵɵProvidersFeature(providers), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 6, vars:
|
|
41826
|
+
} }, features: [i0.ɵɵProvidersFeature(providers), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 6, vars: 13, consts: [["richTextBody", ""], ["richTextToolbar", ""], [3, "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], [3, "p-change", "p-commands", "p-selected-link", "p-shortcut-command", "p-value", "p-blur", "p-height", "p-label", "p-model-value", "p-placeholder", "p-readonly"], [3, "p-readonly", "p-hide-toolbar-actions", "p-link-editing", "p-command", 4, "ngIf"], [3, "p-help", "p-error-pattern", "p-error-limit"], [3, "p-link-editing", "p-command", "p-readonly", "p-hide-toolbar-actions"]], template: function PoRichTextComponent_Template(rf, ctx) { if (rf & 1) {
|
|
41442
41827
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
41443
41828
|
i0.ɵɵelementStart(0, "po-field-container", 2)(1, "div", 3)(2, "po-rich-text-body", 4, 0);
|
|
41444
41829
|
i0.ɵɵlistener("p-change", function PoRichTextComponent_Template_po_rich_text_body_p_change_2_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onChangeValue($event)); })("p-commands", function PoRichTextComponent_Template_po_rich_text_body_p_commands_2_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.richTextToolbar == null ? null : ctx.richTextToolbar.setButtonsStates($event)); })("p-selected-link", function PoRichTextComponent_Template_po_rich_text_body_p_selected_link_2_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.richTextToolbar == null ? null : ctx.richTextToolbar.selectedLink($event)); })("p-shortcut-command", function PoRichTextComponent_Template_po_rich_text_body_p_shortcut_command_2_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.richTextToolbar == null ? null : ctx.richTextToolbar.shortcutTrigger()); })("p-value", function PoRichTextComponent_Template_po_rich_text_body_p_value_2_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.updateValue($event)); })("p-blur", function PoRichTextComponent_Template_po_rich_text_body_p_blur_2_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBlur()); });
|
|
@@ -41454,12 +41839,12 @@ class PoRichTextComponent extends PoRichTextBaseComponent {
|
|
|
41454
41839
|
i0.ɵɵadvance(2);
|
|
41455
41840
|
i0.ɵɵproperty("ngIf", !ctx.isAllActionsHidden());
|
|
41456
41841
|
i0.ɵɵadvance();
|
|
41457
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-error-pattern", ctx.errorMsg);
|
|
41842
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-error-pattern", ctx.errorMsg)("p-error-limit", ctx.errorLimit);
|
|
41458
41843
|
} }, dependencies: [i1.NgIf, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoRichTextBodyComponent, PoRichTextToolbarComponent], encapsulation: 2, changeDetection: 0 });
|
|
41459
41844
|
}
|
|
41460
41845
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoRichTextComponent, [{
|
|
41461
41846
|
type: Component,
|
|
41462
|
-
args: [{ selector: 'po-rich-text', providers: providers, changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container [p-label]=\"label\" [p-optional]=\"optional\" [p-required]=\"required\" [p-show-required]=\"showRequired\">\n <div class=\"po-field-container-content\">\n <po-rich-text-body\n #richTextBody\n [p-height]=\"height\"\n [p-label]=\"label\"\n [p-model-value]=\"value\"\n [p-placeholder]=\"placeholder\"\n [p-readonly]=\"readonly\"\n (p-change)=\"onChangeValue($event)\"\n (p-commands)=\"richTextToolbar?.setButtonsStates($event)\"\n (p-selected-link)=\"richTextToolbar?.selectedLink($event)\"\n (p-shortcut-command)=\"richTextToolbar?.shortcutTrigger()\"\n (p-value)=\"updateValue($event)\"\n (p-blur)=\"onBlur()\"\n >\n </po-rich-text-body>\n\n <po-rich-text-toolbar\n #richTextToolbar\n *ngIf=\"!isAllActionsHidden()\"\n [p-readonly]=\"readonly\"\n [p-hide-toolbar-actions]=\"toolbarActions\"\n (p-link-editing)=\"richTextBody.linkEditing($event)\"\n (p-command)=\"richTextBody.executeCommand($event)\"\n >\n </po-rich-text-toolbar>\n </div>\n\n <po-field-container-bottom
|
|
41847
|
+
args: [{ selector: 'po-rich-text', providers: providers, changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container [p-label]=\"label\" [p-optional]=\"optional\" [p-required]=\"required\" [p-show-required]=\"showRequired\">\n <div class=\"po-field-container-content\">\n <po-rich-text-body\n #richTextBody\n [p-height]=\"height\"\n [p-label]=\"label\"\n [p-model-value]=\"value\"\n [p-placeholder]=\"placeholder\"\n [p-readonly]=\"readonly\"\n (p-change)=\"onChangeValue($event)\"\n (p-commands)=\"richTextToolbar?.setButtonsStates($event)\"\n (p-selected-link)=\"richTextToolbar?.selectedLink($event)\"\n (p-shortcut-command)=\"richTextToolbar?.shortcutTrigger()\"\n (p-value)=\"updateValue($event)\"\n (p-blur)=\"onBlur()\"\n >\n </po-rich-text-body>\n\n <po-rich-text-toolbar\n #richTextToolbar\n *ngIf=\"!isAllActionsHidden()\"\n [p-readonly]=\"readonly\"\n [p-hide-toolbar-actions]=\"toolbarActions\"\n (p-link-editing)=\"richTextBody.linkEditing($event)\"\n (p-command)=\"richTextBody.executeCommand($event)\"\n >\n </po-rich-text-toolbar>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-error-pattern]=\"errorMsg\"\n [p-error-limit]=\"errorLimit\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
41463
41848
|
}], () => [{ type: i0.ElementRef }, { type: PoRichTextService }], { bodyElement: [{
|
|
41464
41849
|
type: ViewChild,
|
|
41465
41850
|
args: [PoRichTextBodyComponent, { static: true }]
|
|
@@ -41509,6 +41894,20 @@ class PoFieldValidateModel extends PoFieldModel {
|
|
|
41509
41894
|
*
|
|
41510
41895
|
*/
|
|
41511
41896
|
fieldErrorMessage;
|
|
41897
|
+
errorAppendBox = false;
|
|
41898
|
+
/**
|
|
41899
|
+
* @optional
|
|
41900
|
+
*
|
|
41901
|
+
* @description
|
|
41902
|
+
*
|
|
41903
|
+
* Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
|
|
41904
|
+
*
|
|
41905
|
+
* > Caso essa propriedade seja definida como `true`, a mensagem de erro será limitada a duas linhas
|
|
41906
|
+
* e um tooltip será exibido ao passar o mouse sobre a mensagem para mostrar o conteúdo completo.
|
|
41907
|
+
*
|
|
41908
|
+
* @default `false`
|
|
41909
|
+
*/
|
|
41910
|
+
errorLimit = false;
|
|
41512
41911
|
/**
|
|
41513
41912
|
* Define se a indicação de campo obrigatório será exibida.
|
|
41514
41913
|
*
|
|
@@ -41545,7 +41944,7 @@ class PoFieldValidateModel extends PoFieldModel {
|
|
|
41545
41944
|
}
|
|
41546
41945
|
}
|
|
41547
41946
|
static ɵfac = function PoFieldValidateModel_Factory(t) { return new (t || PoFieldValidateModel)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
41548
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoFieldValidateModel, inputs: { optional: [2, "p-optional", "optional", convertToBoolean], required: [2, "p-required", "required", convertToBoolean], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], showRequired: [0, "p-show-required", "showRequired"] }, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature] });
|
|
41947
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoFieldValidateModel, inputs: { optional: [2, "p-optional", "optional", convertToBoolean], required: [2, "p-required", "required", convertToBoolean], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], errorAppendBox: [2, "p-error-append-in-body", "errorAppendBox", convertToBoolean], errorLimit: [0, "p-error-limit", "errorLimit"], showRequired: [0, "p-show-required", "showRequired"] }, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature] });
|
|
41549
41948
|
}
|
|
41550
41949
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoFieldValidateModel, [{
|
|
41551
41950
|
type: Directive
|
|
@@ -41558,6 +41957,12 @@ class PoFieldValidateModel extends PoFieldModel {
|
|
|
41558
41957
|
}], fieldErrorMessage: [{
|
|
41559
41958
|
type: Input,
|
|
41560
41959
|
args: ['p-field-error-message']
|
|
41960
|
+
}], errorAppendBox: [{
|
|
41961
|
+
type: Input,
|
|
41962
|
+
args: [{ alias: 'p-error-append-in-body', transform: convertToBoolean }]
|
|
41963
|
+
}], errorLimit: [{
|
|
41964
|
+
type: Input,
|
|
41965
|
+
args: ['p-error-limit']
|
|
41561
41966
|
}], showRequired: [{
|
|
41562
41967
|
type: Input,
|
|
41563
41968
|
args: ['p-show-required']
|
|
@@ -42035,7 +42440,7 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
42035
42440
|
useExisting: forwardRef(() => PoSelectComponent),
|
|
42036
42441
|
multi: true
|
|
42037
42442
|
}
|
|
42038
|
-
]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 9, vars:
|
|
42443
|
+
]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 9, vars: 22, consts: [["select", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], [1, "po-select", 3, "change", "ngClass", "disabled", "id", "required"], [4, "ngIf"], [3, "p-help", "p-disabled", "p-error-pattern", "p-error-limit", "p-append-in-body"], [3, "disabled", "hidden", "selected", "value", 4, "ngIf"], [3, "hidden"], [3, "disabled", "hidden", "selected", "value"], [3, "disabled", "value", 4, "ngFor", "ngForOf"], [3, "disabled", "value"], [4, "ngFor", "ngForOf"], [3, "label", "disabled", 4, "ngIf"], [3, "label", "disabled"], [3, "value", "disabled", 4, "ngFor", "ngForOf"], [3, "value", "disabled"]], template: function PoSelectComponent_Template(rf, ctx) { if (rf & 1) {
|
|
42039
42444
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
42040
42445
|
i0.ɵɵelementStart(0, "po-field-container", 1)(1, "div", 2)(2, "select", 3, 0);
|
|
42041
42446
|
i0.ɵɵlistener("change", function PoSelectComponent_Template_select_change_2_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onSelectChange($event.target.value)); });
|
|
@@ -42058,7 +42463,7 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
42058
42463
|
i0.ɵɵadvance();
|
|
42059
42464
|
i0.ɵɵproperty("ngIf", ctx.listGroupOptions.length > 0);
|
|
42060
42465
|
i0.ɵɵadvance();
|
|
42061
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern());
|
|
42466
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern())("p-error-limit", ctx.errorLimit)("p-append-in-body", ctx.errorAppendBox);
|
|
42062
42467
|
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i2$1.NgSelectOption, i2$1.ɵNgSelectMultipleOption, PoFieldContainerBottomComponent, PoFieldContainerComponent], encapsulation: 2, changeDetection: 0 });
|
|
42063
42468
|
}
|
|
42064
42469
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoSelectComponent, [{
|
|
@@ -42074,7 +42479,7 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
42074
42479
|
useExisting: forwardRef(() => PoSelectComponent),
|
|
42075
42480
|
multi: true
|
|
42076
42481
|
}
|
|
42077
|
-
], template: "<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 class=\"po-field-container-content\">\n <select\n #select\n class=\"po-select\"\n [ngClass]=\"iconNameLib === 'PhosphorIcon' ? 'po-select-phosphor' : 'po-select-poicon'\"\n [attr.name]=\"name\"\n [class.po-select-placeholder]=\"!selectedValue?.toString() && !!placeholder\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [required]=\"required\"\n (change)=\"onSelectChange($event.target.value)\"\n >\n <ng-container *ngIf=\"!isSafari\">\n <option\n *ngIf=\"!selectedValue?.toString() || !!placeholder\"\n [disabled]=\"!!placeholder\"\n [hidden]=\"!selectedValue?.toString() && !placeholder\"\n [selected]=\"!selectedValue?.toString()\"\n [value]=\"placeholder ?? ''\"\n >\n {{ placeholder }}\n </option>\n <option [hidden]=\"true\">{{ displayValue }}</option>\n </ng-container>\n\n <ng-container *ngIf=\"isSafari\">\n <option>{{ displayValue || placeholder }}</option>\n </ng-container>\n\n <ng-container *ngIf=\"optionWithoutGroup.length > 0\">\n <option *ngFor=\"let item of optionWithoutGroup\" [disabled]=\"readonly\" [value]=\"item?.[this.fieldValue]\">\n {{ item?.[this.fieldLabel] }}\n </option>\n </ng-container>\n <ng-container *ngIf=\"listGroupOptions.length > 0\">\n <ng-container *ngFor=\"let item of listGroupOptions\">\n <optgroup *ngIf=\"item?.options.length > 0\" label=\"{{ item?.label }}\" [disabled]=\"readonly\">\n <option *ngFor=\"let subItem of item.options\" [value]=\"subItem?.[this.fieldValue]\" [disabled]=\"readonly\">\n {{ subItem?.[this.fieldLabel] }}\n </option>\n </optgroup>\n </ng-container>\n </ng-container>\n </select>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
42482
|
+
], template: "<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 class=\"po-field-container-content\">\n <select\n #select\n class=\"po-select\"\n [ngClass]=\"iconNameLib === 'PhosphorIcon' ? 'po-select-phosphor' : 'po-select-poicon'\"\n [attr.name]=\"name\"\n [class.po-select-placeholder]=\"!selectedValue?.toString() && !!placeholder\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [required]=\"required\"\n (change)=\"onSelectChange($event.target.value)\"\n >\n <ng-container *ngIf=\"!isSafari\">\n <option\n *ngIf=\"!selectedValue?.toString() || !!placeholder\"\n [disabled]=\"!!placeholder\"\n [hidden]=\"!selectedValue?.toString() && !placeholder\"\n [selected]=\"!selectedValue?.toString()\"\n [value]=\"placeholder ?? ''\"\n >\n {{ placeholder }}\n </option>\n <option [hidden]=\"true\">{{ displayValue }}</option>\n </ng-container>\n\n <ng-container *ngIf=\"isSafari\">\n <option>{{ displayValue || placeholder }}</option>\n </ng-container>\n\n <ng-container *ngIf=\"optionWithoutGroup.length > 0\">\n <option *ngFor=\"let item of optionWithoutGroup\" [disabled]=\"readonly\" [value]=\"item?.[this.fieldValue]\">\n {{ item?.[this.fieldLabel] }}\n </option>\n </ng-container>\n <ng-container *ngIf=\"listGroupOptions.length > 0\">\n <ng-container *ngFor=\"let item of listGroupOptions\">\n <optgroup *ngIf=\"item?.options.length > 0\" label=\"{{ item?.label }}\" [disabled]=\"readonly\">\n <option *ngFor=\"let subItem of item.options\" [value]=\"subItem?.[this.fieldValue]\" [disabled]=\"readonly\">\n {{ subItem?.[this.fieldLabel] }}\n </option>\n </optgroup>\n </ng-container>\n </ng-container>\n </select>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n [p-append-in-body]=\"errorAppendBox\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
42078
42483
|
}], () => [{ type: undefined, decorators: [{
|
|
42079
42484
|
type: Optional
|
|
42080
42485
|
}, {
|
|
@@ -42177,6 +42582,19 @@ class PoTextareaBaseComponent {
|
|
|
42177
42582
|
*
|
|
42178
42583
|
*/
|
|
42179
42584
|
fieldErrorMessage;
|
|
42585
|
+
/**
|
|
42586
|
+
* @optional
|
|
42587
|
+
*
|
|
42588
|
+
* @description
|
|
42589
|
+
*
|
|
42590
|
+
* Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
|
|
42591
|
+
*
|
|
42592
|
+
* > Caso essa propriedade seja definida como `true`, a mensagem de erro será limitada a duas linhas
|
|
42593
|
+
* e um tooltip será exibido ao passar o mouse sobre a mensagem para mostrar o conteúdo completo.
|
|
42594
|
+
*
|
|
42595
|
+
* @default `false`
|
|
42596
|
+
*/
|
|
42597
|
+
errorLimit = false;
|
|
42180
42598
|
/**
|
|
42181
42599
|
* @optional
|
|
42182
42600
|
*
|
|
@@ -42396,7 +42814,7 @@ class PoTextareaBaseComponent {
|
|
|
42396
42814
|
}
|
|
42397
42815
|
}
|
|
42398
42816
|
static ɵfac = function PoTextareaBaseComponent_Factory(t) { return new (t || PoTextareaBaseComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
42399
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoTextareaBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], label: [0, "p-label", "label"], help: [0, "p-help", "help"], name: "name", optional: [0, "p-optional", "optional"], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], placeholder: [0, "p-placeholder", "placeholder"], disabled: [0, "p-disabled", "disabled"], readonly: [0, "p-readonly", "readonly"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"], minlength: [0, "p-minlength", "minlength"], maxlength: [0, "p-maxlength", "maxlength"], rows: [0, "p-rows", "rows"] }, outputs: { blur: "p-blur", enter: "p-enter", change: "p-change", changeModel: "p-change-model" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
42817
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoTextareaBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], label: [0, "p-label", "label"], help: [0, "p-help", "help"], name: "name", optional: [0, "p-optional", "optional"], fieldErrorMessage: [0, "p-field-error-message", "fieldErrorMessage"], errorLimit: [0, "p-error-limit", "errorLimit"], placeholder: [0, "p-placeholder", "placeholder"], disabled: [0, "p-disabled", "disabled"], readonly: [0, "p-readonly", "readonly"], required: [0, "p-required", "required"], showRequired: [0, "p-show-required", "showRequired"], minlength: [0, "p-minlength", "minlength"], maxlength: [0, "p-maxlength", "maxlength"], rows: [0, "p-rows", "rows"] }, outputs: { blur: "p-blur", enter: "p-enter", change: "p-change", changeModel: "p-change-model" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
42400
42818
|
}
|
|
42401
42819
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTextareaBaseComponent, [{
|
|
42402
42820
|
type: Directive
|
|
@@ -42418,6 +42836,9 @@ class PoTextareaBaseComponent {
|
|
|
42418
42836
|
}], fieldErrorMessage: [{
|
|
42419
42837
|
type: Input,
|
|
42420
42838
|
args: ['p-field-error-message']
|
|
42839
|
+
}], errorLimit: [{
|
|
42840
|
+
type: Input,
|
|
42841
|
+
args: ['p-error-limit']
|
|
42421
42842
|
}], blur: [{
|
|
42422
42843
|
type: Output,
|
|
42423
42844
|
args: ['p-blur']
|
|
@@ -42587,7 +43008,7 @@ class PoTextareaComponent extends PoTextareaBaseComponent {
|
|
|
42587
43008
|
useExisting: forwardRef(() => PoTextareaComponent),
|
|
42588
43009
|
multi: true
|
|
42589
43010
|
}
|
|
42590
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars:
|
|
43011
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 17, consts: [["inp", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], [1, "po-textarea", 3, "blur", "focus", "input", "disabled", "id", "placeholder", "readonly", "required", "rows"], [3, "p-help", "p-disabled", "p-error-pattern", "p-error-limit"]], template: function PoTextareaComponent_Template(rf, ctx) { if (rf & 1) {
|
|
42591
43012
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
42592
43013
|
i0.ɵɵelementStart(0, "po-field-container", 1)(1, "div", 2)(2, "textarea", 3, 0);
|
|
42593
43014
|
i0.ɵɵlistener("blur", function PoTextareaComponent_Template_textarea_blur_2_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.eventOnBlur()); })("focus", function PoTextareaComponent_Template_textarea_focus_2_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.eventOnFocus()); })("input", function PoTextareaComponent_Template_textarea_input_2_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.eventOnInput($event)); });
|
|
@@ -42600,7 +43021,7 @@ class PoTextareaComponent extends PoTextareaBaseComponent {
|
|
|
42600
43021
|
i0.ɵɵproperty("disabled", ctx.disabled)("id", ctx.id)("placeholder", ctx.disabled ? "" : ctx.placeholder)("readonly", ctx.readonly)("required", ctx.required)("rows", ctx.rows);
|
|
42601
43022
|
i0.ɵɵattribute("name", ctx.name);
|
|
42602
43023
|
i0.ɵɵadvance(2);
|
|
42603
|
-
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern());
|
|
43024
|
+
i0.ɵɵproperty("p-help", ctx.help)("p-disabled", ctx.disabled)("p-error-pattern", ctx.getErrorPattern())("p-error-limit", ctx.errorLimit);
|
|
42604
43025
|
} }, dependencies: [PoFieldContainerBottomComponent, PoFieldContainerComponent], encapsulation: 2, changeDetection: 0 });
|
|
42605
43026
|
}
|
|
42606
43027
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTextareaComponent, [{
|
|
@@ -42616,7 +43037,7 @@ class PoTextareaComponent extends PoTextareaBaseComponent {
|
|
|
42616
43037
|
useExisting: forwardRef(() => PoTextareaComponent),
|
|
42617
43038
|
multi: true
|
|
42618
43039
|
}
|
|
42619
|
-
], template: "<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 class=\"po-field-container-content\">\n <textarea\n #inp\n class=\"po-textarea\"\n (blur)=\"eventOnBlur()\"\n (focus)=\"eventOnFocus()\"\n (input)=\"eventOnInput($event)\"\n [attr.name]=\"name\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [rows]=\"rows\"\n ></textarea>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
43040
|
+
], template: "<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 class=\"po-field-container-content\">\n <textarea\n #inp\n class=\"po-textarea\"\n (blur)=\"eventOnBlur()\"\n (focus)=\"eventOnFocus()\"\n (input)=\"eventOnInput($event)\"\n [attr.name]=\"name\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [rows]=\"rows\"\n ></textarea>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n [p-error-limit]=\"errorLimit\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
42620
43041
|
}], () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }], { inputEl: [{
|
|
42621
43042
|
type: ViewChild,
|
|
42622
43043
|
args: ['inp', { read: ElementRef, static: true }]
|
|
@@ -44659,7 +45080,7 @@ function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_datepicker
|
|
|
44659
45080
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
44660
45081
|
i0.ɵɵproperty("name", field_r4.property);
|
|
44661
45082
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.value[field_r4.property]);
|
|
44662
|
-
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-clean", field_r4.clean)("p-disabled", ctx_r0.isDisabled(field_r4))("p-error-pattern", field_r4.errorMessage)("p-error-async", field_r4.errorAsyncFunction)("p-auto-focus", field_r4.focus)("p-format", field_r4.format)("p-help", field_r4.help)("p-iso-format", field_r4.isoFormat)("p-label", field_r4.label)("p-locale", field_r4.locale)("p-max-date", field_r4.maxValue)("p-min-date", field_r4.minValue)("p-no-autocomplete", field_r4.noAutocomplete)("p-optional", field_r4.optional)("p-readonly", field_r4.readonly)("p-required", field_r4.required)("p-required-field-error-message", field_r4.requiredFieldErrorMessage)("p-show-required", field_r4.showRequired)("p-placeholder", field_r4.placeholder);
|
|
45083
|
+
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-clean", field_r4.clean)("p-disabled", ctx_r0.isDisabled(field_r4))("p-error-pattern", field_r4.errorMessage)("p-error-limit", field_r4.errorLimit)("p-error-async", field_r4.errorAsyncFunction)("p-auto-focus", field_r4.focus)("p-format", field_r4.format)("p-help", field_r4.help)("p-iso-format", field_r4.isoFormat)("p-label", field_r4.label)("p-locale", field_r4.locale)("p-max-date", field_r4.maxValue)("p-min-date", field_r4.minValue)("p-no-autocomplete", field_r4.noAutocomplete)("p-optional", field_r4.optional)("p-readonly", field_r4.readonly)("p-required", field_r4.required)("p-required-field-error-message", field_r4.requiredFieldErrorMessage)("p-show-required", field_r4.showRequired)("p-placeholder", field_r4.placeholder);
|
|
44663
45084
|
} }
|
|
44664
45085
|
function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_datepicker_range_3_Template(rf, ctx) { if (rf & 1) {
|
|
44665
45086
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
@@ -44672,7 +45093,7 @@ function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_datepicker
|
|
|
44672
45093
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
44673
45094
|
i0.ɵɵproperty("name", field_r4.property);
|
|
44674
45095
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.value[field_r4.property]);
|
|
44675
|
-
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-clean", field_r4.clean)("p-disabled", ctx_r0.isDisabled(field_r4))("p-auto-focus", field_r4.focus)("p-help", field_r4.help)("p-label", field_r4.label)("p-literals", field_r4.literals)("p-max-date", field_r4.maxValue)("p-min-date", field_r4.minValue)("p-no-autocomplete", field_r4.noAutocomplete)("p-optional", field_r4.optional)("p-readonly", field_r4.readonly)("p-required", field_r4.required)("p-field-error-message", field_r4.errorMessage)("p-show-required", field_r4.showRequired);
|
|
45096
|
+
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-clean", field_r4.clean)("p-disabled", ctx_r0.isDisabled(field_r4))("p-auto-focus", field_r4.focus)("p-help", field_r4.help)("p-label", field_r4.label)("p-literals", field_r4.literals)("p-max-date", field_r4.maxValue)("p-min-date", field_r4.minValue)("p-no-autocomplete", field_r4.noAutocomplete)("p-optional", field_r4.optional)("p-readonly", field_r4.readonly)("p-required", field_r4.required)("p-field-error-message", field_r4.errorMessage)("p-error-limit", field_r4.errorLimit)("p-show-required", field_r4.showRequired);
|
|
44676
45097
|
} }
|
|
44677
45098
|
function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_input_4_Template(rf, ctx) { if (rf & 1) {
|
|
44678
45099
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -44685,7 +45106,7 @@ function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_input_4_Te
|
|
|
44685
45106
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
44686
45107
|
i0.ɵɵproperty("name", field_r4.property);
|
|
44687
45108
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.value[field_r4.property]);
|
|
44688
|
-
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-clean", field_r4.clean)("p-disabled", ctx_r0.isDisabled(field_r4))("p-error-pattern", field_r4.errorMessage)("p-error-async-properties", field_r4.errorAsyncProperties)("p-auto-focus", field_r4.focus)("p-help", field_r4.help)("p-label", field_r4.label)("p-mask-format-model", field_r4.maskFormatModel)("p-mask", field_r4.mask)("p-maxlength", field_r4.maxLength)("p-minlength", field_r4.minLength)("p-no-autocomplete", field_r4.noAutocomplete)("p-optional", field_r4.optional)("p-pattern", field_r4.pattern)("p-required", field_r4.required)("p-required-field-error-message", field_r4.requiredFieldErrorMessage)("p-show-required", field_r4.showRequired)("p-icon", field_r4.icon)("p-placeholder", field_r4.placeholder)("p-readonly", field_r4.readonly);
|
|
45109
|
+
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-clean", field_r4.clean)("p-disabled", ctx_r0.isDisabled(field_r4))("p-error-pattern", field_r4.errorMessage)("p-error-limit", field_r4.errorLimit)("p-error-async-properties", field_r4.errorAsyncProperties)("p-auto-focus", field_r4.focus)("p-help", field_r4.help)("p-label", field_r4.label)("p-mask-format-model", field_r4.maskFormatModel)("p-mask", field_r4.mask)("p-maxlength", field_r4.maxLength)("p-minlength", field_r4.minLength)("p-no-autocomplete", field_r4.noAutocomplete)("p-optional", field_r4.optional)("p-pattern", field_r4.pattern)("p-required", field_r4.required)("p-required-field-error-message", field_r4.requiredFieldErrorMessage)("p-show-required", field_r4.showRequired)("p-icon", field_r4.icon)("p-placeholder", field_r4.placeholder)("p-readonly", field_r4.readonly);
|
|
44689
45110
|
} }
|
|
44690
45111
|
function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_number_5_Template(rf, ctx) { if (rf & 1) {
|
|
44691
45112
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
@@ -44698,7 +45119,7 @@ function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_number_5_T
|
|
|
44698
45119
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
44699
45120
|
i0.ɵɵproperty("name", field_r4.property);
|
|
44700
45121
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.value[field_r4.property]);
|
|
44701
|
-
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-clean", field_r4.clean)("p-disabled", ctx_r0.isDisabled(field_r4))("p-error-pattern", field_r4.errorMessage)("p-error-async-properties", field_r4.errorAsyncProperties)("p-auto-focus", field_r4.focus)("p-help", field_r4.help)("p-label", field_r4.label)("p-min", field_r4.minValue)("p-max", field_r4.maxValue)("p-maxlength", field_r4.maxLength)("p-minlength", field_r4.minLength)("p-no-autocomplete", field_r4.noAutocomplete)("p-optional", field_r4.optional)("p-step", field_r4.step)("p-readonly", field_r4.readonly)("p-required", field_r4.required)("p-required-field-error-message", field_r4.requiredFieldErrorMessage)("p-show-required", field_r4.showRequired)("p-icon", field_r4.icon)("p-placeholder", field_r4.placeholder);
|
|
45122
|
+
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-clean", field_r4.clean)("p-disabled", ctx_r0.isDisabled(field_r4))("p-error-pattern", field_r4.errorMessage)("p-error-limit", field_r4.errorLimit)("p-error-async-properties", field_r4.errorAsyncProperties)("p-auto-focus", field_r4.focus)("p-help", field_r4.help)("p-label", field_r4.label)("p-min", field_r4.minValue)("p-max", field_r4.maxValue)("p-maxlength", field_r4.maxLength)("p-minlength", field_r4.minLength)("p-no-autocomplete", field_r4.noAutocomplete)("p-optional", field_r4.optional)("p-step", field_r4.step)("p-readonly", field_r4.readonly)("p-required", field_r4.required)("p-required-field-error-message", field_r4.requiredFieldErrorMessage)("p-show-required", field_r4.showRequired)("p-icon", field_r4.icon)("p-placeholder", field_r4.placeholder);
|
|
44702
45123
|
} }
|
|
44703
45124
|
function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_decimal_6_Template(rf, ctx) { if (rf & 1) {
|
|
44704
45125
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
@@ -44711,7 +45132,7 @@ function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_decimal_6_
|
|
|
44711
45132
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
44712
45133
|
i0.ɵɵproperty("name", field_r4.property);
|
|
44713
45134
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.value[field_r4.property]);
|
|
44714
|
-
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-clean", field_r4.clean)("p-error-pattern", field_r4.errorMessage)("p-error-async-properties", field_r4.errorAsyncProperties)("p-disabled", ctx_r0.isDisabled(field_r4))("p-decimals-length", field_r4.decimalsLength)("p-thousand-maxlength", field_r4.thousandMaxlength)("p-icon", field_r4.icon)("p-auto-focus", field_r4.focus)("p-help", field_r4.help)("p-label", field_r4.label)("p-locale", field_r4.locale)("p-min", field_r4.minValue)("p-max", field_r4.maxValue)("p-maxlength", field_r4.maxLength)("p-minlength", field_r4.minLength)("p-no-autocomplete", field_r4.noAutocomplete)("p-optional", field_r4.optional)("p-readonly", field_r4.readonly)("p-required", field_r4.required)("p-required-field-error-message", field_r4.requiredFieldErrorMessage)("p-show-required", field_r4.showRequired)("p-placeholder", field_r4.placeholder);
|
|
45135
|
+
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-clean", field_r4.clean)("p-error-pattern", field_r4.errorMessage)("p-error-limit", field_r4.errorLimit)("p-error-async-properties", field_r4.errorAsyncProperties)("p-disabled", ctx_r0.isDisabled(field_r4))("p-decimals-length", field_r4.decimalsLength)("p-thousand-maxlength", field_r4.thousandMaxlength)("p-icon", field_r4.icon)("p-auto-focus", field_r4.focus)("p-help", field_r4.help)("p-label", field_r4.label)("p-locale", field_r4.locale)("p-min", field_r4.minValue)("p-max", field_r4.maxValue)("p-maxlength", field_r4.maxLength)("p-minlength", field_r4.minLength)("p-no-autocomplete", field_r4.noAutocomplete)("p-optional", field_r4.optional)("p-readonly", field_r4.readonly)("p-required", field_r4.required)("p-required-field-error-message", field_r4.requiredFieldErrorMessage)("p-show-required", field_r4.showRequired)("p-placeholder", field_r4.placeholder);
|
|
44715
45136
|
} }
|
|
44716
45137
|
function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_select_7_Template(rf, ctx) { if (rf & 1) {
|
|
44717
45138
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
@@ -44724,7 +45145,7 @@ function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_select_7_T
|
|
|
44724
45145
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
44725
45146
|
i0.ɵɵproperty("name", field_r4.property);
|
|
44726
45147
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.value[field_r4.property]);
|
|
44727
|
-
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-field-label", field_r4.fieldLabel)("p-field-value", field_r4.fieldValue)("p-disabled", ctx_r0.isDisabled(field_r4))("p-help", field_r4.help)("p-label", field_r4.label)("p-optional", field_r4.optional)("p-options", field_r4.options)("p-required", field_r4.required)("p-field-error-message", field_r4.errorMessage)("p-show-required", field_r4.showRequired)("p-placeholder", field_r4.placeholder)("p-readonly", field_r4.readonly);
|
|
45148
|
+
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-field-label", field_r4.fieldLabel)("p-field-value", field_r4.fieldValue)("p-disabled", ctx_r0.isDisabled(field_r4))("p-help", field_r4.help)("p-label", field_r4.label)("p-optional", field_r4.optional)("p-options", field_r4.options)("p-required", field_r4.required)("p-field-error-message", field_r4.errorMessage)("p-error-limit", field_r4.errorLimit)("p-show-required", field_r4.showRequired)("p-placeholder", field_r4.placeholder)("p-readonly", field_r4.readonly);
|
|
44728
45149
|
} }
|
|
44729
45150
|
function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_radio_group_8_Template(rf, ctx) { if (rf & 1) {
|
|
44730
45151
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
@@ -44737,7 +45158,7 @@ function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_radio_grou
|
|
|
44737
45158
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
44738
45159
|
i0.ɵɵproperty("name", field_r4.property);
|
|
44739
45160
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.value[field_r4.property]);
|
|
44740
|
-
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-columns", field_r4.columns || 3)("p-auto-focus", field_r4.focus)("p-disabled", ctx_r0.isDisabled(field_r4))("p-help", field_r4.help)("p-label", field_r4.label)("p-optional", field_r4.optional)("p-options", field_r4.options)("p-required", field_r4.required)("p-field-error-message", field_r4.errorMessage)("p-show-required", field_r4.showRequired);
|
|
45161
|
+
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-columns", field_r4.columns || 3)("p-auto-focus", field_r4.focus)("p-disabled", ctx_r0.isDisabled(field_r4))("p-help", field_r4.help)("p-label", field_r4.label)("p-optional", field_r4.optional)("p-options", field_r4.options)("p-required", field_r4.required)("p-field-error-message", field_r4.errorMessage)("p-error-limit", field_r4.errorLimit)("p-show-required", field_r4.showRequired);
|
|
44741
45162
|
} }
|
|
44742
45163
|
function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_switch_9_Template(rf, ctx) { if (rf & 1) {
|
|
44743
45164
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
@@ -44776,7 +45197,7 @@ function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_combo_11_T
|
|
|
44776
45197
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
44777
45198
|
i0.ɵɵproperty("name", field_r4.property);
|
|
44778
45199
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.value[field_r4.property]);
|
|
44779
|
-
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-auto-focus", field_r4.focus)("p-clean", field_r4.clean)("p-disabled", ctx_r0.isDisabled(field_r4))("p-field-label", field_r4.fieldLabel)("p-field-value", field_r4.fieldValue)("p-filter-params", field_r4.params)("p-filter-service", field_r4.optionsService)("p-help", field_r4.help)("p-infinite-scroll", field_r4.infiniteScroll)("p-infinite-scroll-distance", field_r4.infiniteScrollDistance || 100)("p-label", field_r4.label)("p-literals", field_r4.literals)("p-options", field_r4.options)("p-optional", field_r4.optional)("p-sort", field_r4.sort)("p-required", field_r4.required)("p-field-error-message", field_r4.errorMessage)("p-show-required", field_r4.showRequired)("p-icon", field_r4.icon)("p-placeholder", field_r4.placeholder)("p-filter-minlength", field_r4.filterMinlength)("p-filter-mode", field_r4.filterMode)("p-disabled-init-filter", field_r4.disabledInitFilter)("p-disabled-tab-filter", field_r4.disabledTabFilter)("p-debounce-time", field_r4.debounceTime)("p-change-on-enter", field_r4.changeOnEnter);
|
|
45200
|
+
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-auto-focus", field_r4.focus)("p-clean", field_r4.clean)("p-disabled", ctx_r0.isDisabled(field_r4))("p-field-label", field_r4.fieldLabel)("p-field-value", field_r4.fieldValue)("p-filter-params", field_r4.params)("p-filter-service", field_r4.optionsService)("p-help", field_r4.help)("p-infinite-scroll", field_r4.infiniteScroll)("p-infinite-scroll-distance", field_r4.infiniteScrollDistance || 100)("p-label", field_r4.label)("p-literals", field_r4.literals)("p-options", field_r4.options)("p-optional", field_r4.optional)("p-sort", field_r4.sort)("p-required", field_r4.required)("p-field-error-message", field_r4.errorMessage)("p-error-limit", field_r4.errorLimit)("p-show-required", field_r4.showRequired)("p-icon", field_r4.icon)("p-placeholder", field_r4.placeholder)("p-filter-minlength", field_r4.filterMinlength)("p-filter-mode", field_r4.filterMode)("p-disabled-init-filter", field_r4.disabledInitFilter)("p-disabled-tab-filter", field_r4.disabledTabFilter)("p-debounce-time", field_r4.debounceTime)("p-change-on-enter", field_r4.changeOnEnter);
|
|
44780
45201
|
} }
|
|
44781
45202
|
function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_lookup_12_Template(rf, ctx) { if (rf & 1) {
|
|
44782
45203
|
const _r15 = i0.ɵɵgetCurrentView();
|
|
@@ -44789,7 +45210,7 @@ function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_lookup_12_
|
|
|
44789
45210
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
44790
45211
|
i0.ɵɵproperty("name", field_r4.property);
|
|
44791
45212
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.value[field_r4.property]);
|
|
44792
|
-
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-clean", field_r4.clean)("p-columns", field_r4.columns)("p-disabled", ctx_r0.isDisabled(field_r4))("p-field-label", field_r4.fieldLabel || "label")("p-field-value", field_r4.fieldValue || "value")("p-filter-params", field_r4.params)("p-filter-service", field_r4.searchService)("p-auto-focus", field_r4.focus)("p-auto-height", field_r4.autoHeight)("p-help", field_r4.help)("p-field-format", field_r4.format)("p-infinite-scroll", field_r4.infiniteScroll)("p-label", field_r4.label)("p-literals", field_r4.literals)("p-multiple", field_r4.multiple)("p-no-autocomplete", field_r4.noAutocomplete)("p-optional", field_r4.optional)("p-required", field_r4.required)("p-field-error-message", field_r4.errorMessage)("p-show-required", field_r4.showRequired)("p-placeholder", field_r4.placeholder)("p-advanced-filters", field_r4.advancedFilters);
|
|
45213
|
+
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-clean", field_r4.clean)("p-columns", field_r4.columns)("p-disabled", ctx_r0.isDisabled(field_r4))("p-field-label", field_r4.fieldLabel || "label")("p-field-value", field_r4.fieldValue || "value")("p-filter-params", field_r4.params)("p-filter-service", field_r4.searchService)("p-auto-focus", field_r4.focus)("p-auto-height", field_r4.autoHeight)("p-help", field_r4.help)("p-field-format", field_r4.format)("p-infinite-scroll", field_r4.infiniteScroll)("p-label", field_r4.label)("p-literals", field_r4.literals)("p-multiple", field_r4.multiple)("p-no-autocomplete", field_r4.noAutocomplete)("p-optional", field_r4.optional)("p-required", field_r4.required)("p-field-error-message", field_r4.errorMessage)("p-error-limit", field_r4.errorLimit)("p-show-required", field_r4.showRequired)("p-placeholder", field_r4.placeholder)("p-advanced-filters", field_r4.advancedFilters);
|
|
44793
45214
|
} }
|
|
44794
45215
|
function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_checkbox_group_13_Template(rf, ctx) { if (rf & 1) {
|
|
44795
45216
|
const _r16 = i0.ɵɵgetCurrentView();
|
|
@@ -44802,7 +45223,7 @@ function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_checkbox_g
|
|
|
44802
45223
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
44803
45224
|
i0.ɵɵproperty("name", field_r4.property);
|
|
44804
45225
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.value[field_r4.property]);
|
|
44805
|
-
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-columns", field_r4.columns || 3)("p-auto-focus", field_r4.focus)("p-disabled", ctx_r0.isDisabled(field_r4))("p-help", field_r4.help)("p-label", field_r4.label)("p-optional", field_r4.optional)("p-options", field_r4.options)("p-required", field_r4.required)("p-show-required", field_r4.showRequired)("p-field-error-message", field_r4.errorMessage);
|
|
45226
|
+
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-columns", field_r4.columns || 3)("p-auto-focus", field_r4.focus)("p-disabled", ctx_r0.isDisabled(field_r4))("p-help", field_r4.help)("p-label", field_r4.label)("p-optional", field_r4.optional)("p-options", field_r4.options)("p-required", field_r4.required)("p-show-required", field_r4.showRequired)("p-field-error-message", field_r4.errorMessage)("p-error-limit", field_r4.errorLimit);
|
|
44806
45227
|
} }
|
|
44807
45228
|
function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_multiselect_14_Template(rf, ctx) { if (rf & 1) {
|
|
44808
45229
|
const _r17 = i0.ɵɵgetCurrentView();
|
|
@@ -44815,7 +45236,7 @@ function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_multiselec
|
|
|
44815
45236
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
44816
45237
|
i0.ɵɵproperty("name", field_r4.property);
|
|
44817
45238
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.value[field_r4.property]);
|
|
44818
|
-
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-disabled", ctx_r0.isDisabled(field_r4))("p-auto-focus", field_r4.focus)("p-auto-height", field_r4.autoHeight)("p-help", field_r4.help)("p-label", field_r4.label)("p-literals", field_r4.literals)("p-optional", field_r4.optional)("p-options", field_r4.options)("p-required", field_r4.required)("p-field-error-message", field_r4.errorMessage)("p-show-required", field_r4.showRequired)("p-placeholder", field_r4.placeholder)("p-field-label", field_r4.fieldLabel)("p-field-value", field_r4.fieldValue)("p-filter-service", field_r4.optionsService)("p-filter-mode", field_r4.filterMode)("p-debounce-time", field_r4.debounceTime)("p-sort", field_r4.sort)("p-placeholder-search", field_r4.placeholderSearch)("p-hide-search", field_r4.hideSearch)("p-hide-select-all", field_r4.hideSelectAll);
|
|
45239
|
+
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-disabled", ctx_r0.isDisabled(field_r4))("p-auto-focus", field_r4.focus)("p-auto-height", field_r4.autoHeight)("p-help", field_r4.help)("p-label", field_r4.label)("p-literals", field_r4.literals)("p-optional", field_r4.optional)("p-options", field_r4.options)("p-required", field_r4.required)("p-field-error-message", field_r4.errorMessage)("p-error-limit", field_r4.errorLimit)("p-show-required", field_r4.showRequired)("p-placeholder", field_r4.placeholder)("p-field-label", field_r4.fieldLabel)("p-field-value", field_r4.fieldValue)("p-filter-service", field_r4.optionsService)("p-filter-mode", field_r4.filterMode)("p-debounce-time", field_r4.debounceTime)("p-sort", field_r4.sort)("p-placeholder-search", field_r4.placeholderSearch)("p-hide-search", field_r4.hideSearch)("p-hide-select-all", field_r4.hideSelectAll);
|
|
44819
45240
|
} }
|
|
44820
45241
|
function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_textarea_15_Template(rf, ctx) { if (rf & 1) {
|
|
44821
45242
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
@@ -44828,7 +45249,7 @@ function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_textarea_1
|
|
|
44828
45249
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
44829
45250
|
i0.ɵɵproperty("name", field_r4.property);
|
|
44830
45251
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.value[field_r4.property]);
|
|
44831
|
-
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-disabled", ctx_r0.isDisabled(field_r4))("p-auto-focus", field_r4.focus)("p-help", field_r4.help)("p-label", field_r4.label)("p-maxlength", field_r4.maxLength)("p-minlength", field_r4.minLength)("p-optional", field_r4.optional)("p-readonly", field_r4.readonly)("p-required", field_r4.required)("p-field-error-message", field_r4.errorMessage)("p-show-required", field_r4.showRequired)("p-rows", field_r4.rows)("p-placeholder", field_r4.placeholder);
|
|
45252
|
+
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-disabled", ctx_r0.isDisabled(field_r4))("p-auto-focus", field_r4.focus)("p-help", field_r4.help)("p-label", field_r4.label)("p-maxlength", field_r4.maxLength)("p-minlength", field_r4.minLength)("p-optional", field_r4.optional)("p-readonly", field_r4.readonly)("p-required", field_r4.required)("p-field-error-message", field_r4.errorMessage)("p-error-limit", field_r4.errorLimit)("p-show-required", field_r4.showRequired)("p-rows", field_r4.rows)("p-placeholder", field_r4.placeholder);
|
|
44832
45253
|
} }
|
|
44833
45254
|
function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_password_16_Template(rf, ctx) { if (rf & 1) {
|
|
44834
45255
|
const _r19 = i0.ɵɵgetCurrentView();
|
|
@@ -44841,23 +45262,23 @@ function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_password_1
|
|
|
44841
45262
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
44842
45263
|
i0.ɵɵproperty("name", field_r4.property);
|
|
44843
45264
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.value[field_r4.property]);
|
|
44844
|
-
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-clean", field_r4.clean)("p-disabled", ctx_r0.isDisabled(field_r4))("p-error-pattern", field_r4.errorMessage)("p-error-async-properties", field_r4.errorAsyncProperties)("p-auto-focus", field_r4.focus)("p-help", field_r4.help)("p-hide-password-peek", field_r4.hidePasswordPeek)("p-icon", field_r4.icon)("p-label", field_r4.label)("p-maxlength", field_r4.maxLength)("p-minlength", field_r4.minLength)("p-no-autocomplete", field_r4.noAutocomplete)("p-optional", field_r4.optional)("p-pattern", field_r4.pattern)("p-readonly", field_r4.readonly)("p-required", field_r4.required)("p-required-field-error-message", field_r4.requiredFieldErrorMessage)("p-show-required", field_r4.showRequired)("p-placeholder", field_r4.placeholder);
|
|
45265
|
+
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-clean", field_r4.clean)("p-disabled", ctx_r0.isDisabled(field_r4))("p-error-pattern", field_r4.errorMessage)("p-error-limit", field_r4.errorLimit)("p-error-async-properties", field_r4.errorAsyncProperties)("p-auto-focus", field_r4.focus)("p-help", field_r4.help)("p-hide-password-peek", field_r4.hidePasswordPeek)("p-icon", field_r4.icon)("p-label", field_r4.label)("p-maxlength", field_r4.maxLength)("p-minlength", field_r4.minLength)("p-no-autocomplete", field_r4.noAutocomplete)("p-optional", field_r4.optional)("p-pattern", field_r4.pattern)("p-readonly", field_r4.readonly)("p-required", field_r4.required)("p-required-field-error-message", field_r4.requiredFieldErrorMessage)("p-show-required", field_r4.showRequired)("p-placeholder", field_r4.placeholder);
|
|
44845
45266
|
} }
|
|
44846
45267
|
function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_upload_17_Template(rf, ctx) { if (rf & 1) {
|
|
44847
45268
|
const _r20 = i0.ɵɵgetCurrentView();
|
|
44848
45269
|
i0.ɵɵelementStart(0, "po-upload", 40, 2);
|
|
44849
45270
|
i0.ɵɵtwoWayListener("ngModelChange", function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_upload_17_Template_po_upload_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r20); const field_r4 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r0.value[field_r4.property], $event) || (ctx_r0.value[field_r4.property] = $event); return i0.ɵɵresetView($event); });
|
|
44850
|
-
i0.ɵɵlistener("p-error", function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_upload_17_Template_po_upload_p_error_0_listener($event) { i0.ɵɵrestoreView(_r20); const field_r4 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(field_r4.onError($event)); })("p-success", function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_upload_17_Template_po_upload_p_success_0_listener($event) { i0.ɵɵrestoreView(_r20); const field_r4 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(field_r4.onSuccess($event)); })("p-upload", function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_upload_17_Template_po_upload_p_upload_0_listener($event) { i0.ɵɵrestoreView(_r20); const field_r4 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(field_r4.onUpload($event)); })("p-change", function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_upload_17_Template_po_upload_p_change_0_listener() { i0.ɵɵrestoreView(_r20); const field_r4 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onChangeField(field_r4)); })("p-change-model", function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_upload_17_Template_po_upload_p_change_model_0_listener() { i0.ɵɵrestoreView(_r20); const field_r4 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onChangeFieldModel(field_r4)); });
|
|
45271
|
+
i0.ɵɵlistener("p-custom-action-click", function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_upload_17_Template_po_upload_p_custom_action_click_0_listener($event) { i0.ɵɵrestoreView(_r20); const field_r4 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(field_r4.customActionClick($event)); })("p-error", function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_upload_17_Template_po_upload_p_error_0_listener($event) { i0.ɵɵrestoreView(_r20); const field_r4 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(field_r4.onError($event)); })("p-success", function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_upload_17_Template_po_upload_p_success_0_listener($event) { i0.ɵɵrestoreView(_r20); const field_r4 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(field_r4.onSuccess($event)); })("p-upload", function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_upload_17_Template_po_upload_p_upload_0_listener($event) { i0.ɵɵrestoreView(_r20); const field_r4 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(field_r4.onUpload($event)); })("p-change", function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_upload_17_Template_po_upload_p_change_0_listener() { i0.ɵɵrestoreView(_r20); const field_r4 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onChangeField(field_r4)); })("p-change-model", function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_upload_17_Template_po_upload_p_change_model_0_listener() { i0.ɵɵrestoreView(_r20); const field_r4 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onChangeFieldModel(field_r4)); });
|
|
44851
45272
|
i0.ɵɵelementEnd();
|
|
44852
45273
|
} if (rf & 2) {
|
|
44853
45274
|
const field_r4 = i0.ɵɵnextContext().$implicit;
|
|
44854
45275
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
44855
45276
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.value[field_r4.property]);
|
|
44856
|
-
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-auto-upload", field_r4.autoUpload)("p-directory", field_r4.directory)("p-disabled", ctx_r0.isDisabled(field_r4))("p-drag-drop", field_r4.dragDrop)("p-drag-drop-height", field_r4.dragDropHeight)("p-restrictions", field_r4.restrictions)("p-form-field", field_r4.formField)("p-headers", field_r4.headers)("p-help", field_r4.help)("p-hide-restrictions-info", field_r4.hideRestrictionsInfo)("p-hide-select-button", field_r4.hideSelectButton)("p-hide-send-button", field_r4.hideSendButton)("p-multiple", field_r4.multiple)("p-label", field_r4.label)("p-literals", field_r4.literals)("name", field_r4.property)("p-optional", field_r4.optional)("p-required", field_r4.required)("p-show-required", field_r4.showRequired)("p-url", field_r4.url);
|
|
45277
|
+
i0.ɵɵproperty("ngClass", field_r4.componentClass)("p-auto-upload", field_r4.autoUpload)("p-directory", field_r4.directory)("p-disabled", ctx_r0.isDisabled(field_r4))("p-drag-drop", field_r4.dragDrop)("p-drag-drop-height", field_r4.dragDropHeight)("p-restrictions", field_r4.restrictions)("p-form-field", field_r4.formField)("p-headers", field_r4.headers)("p-help", field_r4.help)("p-hide-restrictions-info", field_r4.hideRestrictionsInfo)("p-hide-select-button", field_r4.hideSelectButton)("p-hide-send-button", field_r4.hideSendButton)("p-multiple", field_r4.multiple)("p-label", field_r4.label)("p-literals", field_r4.literals)("name", field_r4.property)("p-custom-action", field_r4.customAction)("p-optional", field_r4.optional)("p-required", field_r4.required)("p-show-required", field_r4.showRequired)("p-url", field_r4.url);
|
|
44857
45278
|
} }
|
|
44858
45279
|
function PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
44859
45280
|
i0.ɵɵelementContainerStart(0);
|
|
44860
|
-
i0.ɵɵtemplate(1, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_divider_1_Template, 1, 1, "po-divider", 7)(2, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_datepicker_2_Template, 2,
|
|
45281
|
+
i0.ɵɵtemplate(1, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_divider_1_Template, 1, 1, "po-divider", 7)(2, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_datepicker_2_Template, 2, 23, "po-datepicker", 8)(3, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_datepicker_range_3_Template, 2, 18, "po-datepicker-range", 9)(4, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_input_4_Template, 2, 24, "po-input", 10)(5, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_number_5_Template, 2, 24, "po-number", 11)(6, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_decimal_6_Template, 2, 26, "po-decimal", 12)(7, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_select_7_Template, 2, 16, "po-select", 13)(8, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_radio_group_8_Template, 2, 14, "po-radio-group", 14)(9, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_switch_9_Template, 2, 11, "po-switch", 15)(10, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_checkbox_10_Template, 2, 7, "po-checkbox", 16)(11, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_combo_11_Template, 2, 30, "po-combo", 17)(12, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_lookup_12_Template, 2, 26, "po-lookup", 18)(13, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_checkbox_group_13_Template, 2, 14, "po-checkbox-group", 19)(14, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_multiselect_14_Template, 2, 25, "po-multiselect", 20)(15, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_textarea_15_Template, 2, 17, "po-textarea", 21)(16, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_password_16_Template, 2, 23, "po-password", 22)(17, PoDynamicFormFieldsComponent_ng_template_1_ng_container_0_po_upload_17_Template, 2, 23, "po-upload", 23);
|
|
44861
45282
|
i0.ɵɵelementContainerEnd();
|
|
44862
45283
|
} if (rf & 2) {
|
|
44863
45284
|
const field_r4 = ctx.$implicit;
|
|
@@ -45164,7 +45585,7 @@ class PoDynamicFormFieldsComponent extends PoDynamicFormFieldsBaseComponent {
|
|
|
45164
45585
|
} if (rf & 2) {
|
|
45165
45586
|
let _t;
|
|
45166
45587
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.components = _t);
|
|
45167
|
-
} }, features: [i0.ɵɵProvidersFeature([PoDynamicFormValidationService], [{ provide: ControlContainer, useExisting: NgForm }]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 5, vars: 1, consts: [["poContent", ""], ["poContentContainer", ""], ["component", ""], ["class", "po-row", 3, "po-dynamic", 4, "ngIf"], [1, "po-row"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "po-sm-12", 3, "p-label", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-async", "p-auto-focus", "p-format", "p-help", "p-iso-format", "p-label", "p-locale", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-placeholder", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-literals", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-field-error-message", "p-show-required", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-async-properties", "p-auto-focus", "p-help", "p-label", "p-mask-format-model", "p-mask", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-required", "p-required-field-error-message", "p-show-required", "p-icon", "p-placeholder", "p-readonly", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-async-properties", "p-auto-focus", "p-help", "p-label", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-step", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-icon", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-error-pattern", "p-error-async-properties", "p-disabled", "p-decimals-length", "p-thousand-maxlength", "p-icon", "p-auto-focus", "p-help", "p-label", "p-locale", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-field-label", "p-field-value", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-field-error-message", "p-show-required", "p-placeholder", "p-readonly", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-columns", "p-auto-focus", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-field-error-message", "p-show-required", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-format-model", "p-help", "p-label", "p-label-off", "p-label-on", "p-label-position", "p-hide-label-status", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-auto-focus", "p-disabled", "p-label", "p-size", "ngModelChange", "p-change", 4, "ngIf"], ["p-emit-object-value", "", 3, "name", "ngModel", "ngClass", "p-auto-focus", "p-clean", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-help", "p-infinite-scroll", "p-infinite-scroll-distance", "p-label", "p-literals", "p-options", "p-optional", "p-sort", "p-required", "p-field-error-message", "p-show-required", "p-icon", "p-placeholder", "p-filter-minlength", "p-filter-mode", "p-disabled-init-filter", "p-disabled-tab-filter", "p-debounce-time", "p-change-on-enter", "ngModelChange", "p-change", 4, "ngIf"], ["p-field-label", "label", "p-field-value", "value", 3, "name", "ngModel", "ngClass", "p-clean", "p-columns", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-auto-focus", "p-auto-height", "p-help", "p-field-format", "p-infinite-scroll", "p-label", "p-literals", "p-multiple", "p-no-autocomplete", "p-optional", "p-required", "p-field-error-message", "p-show-required", "p-placeholder", "p-advanced-filters", "ngModelChange", "p-change", "p-change-visible-columns", "p-restore-column-manager", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-columns", "p-auto-focus", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-show-required", "p-field-error-message", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-auto-height", "p-help", "p-label", "p-literals", "p-optional", "p-options", "p-required", "p-field-error-message", "p-show-required", "p-placeholder", "p-field-label", "p-field-value", "p-filter-service", "p-filter-mode", "p-debounce-time", "p-sort", "p-placeholder-search", "p-hide-search", "p-hide-select-all", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-maxlength", "p-minlength", "p-optional", "p-readonly", "p-required", "p-field-error-message", "p-show-required", "p-rows", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-async-properties", "p-auto-focus", "p-help", "p-hide-password-peek", "p-icon", "p-label", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "ngModel", "ngClass", "p-auto-upload", "p-directory", "p-disabled", "p-drag-drop", "p-drag-drop-height", "p-restrictions", "p-form-field", "p-headers", "p-help", "p-hide-restrictions-info", "p-hide-select-button", "p-hide-send-button", "p-multiple", "p-label", "p-literals", "name", "p-optional", "p-required", "p-show-required", "p-url", "ngModelChange", "p-error", "p-success", "p-upload", "p-change", "p-change-model", 4, "ngIf"], [1, "po-sm-12", 3, "p-label"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-async", "p-auto-focus", "p-format", "p-help", "p-iso-format", "p-label", "p-locale", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-placeholder"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-literals", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-field-error-message", "p-show-required"], [3, "ngModelChange", "p-change", "p-change-model", "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-async-properties", "p-auto-focus", "p-help", "p-label", "p-mask-format-model", "p-mask", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-required", "p-required-field-error-message", "p-show-required", "p-icon", "p-placeholder", "p-readonly"], [3, "ngModelChange", "p-change", "p-change-model", "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-async-properties", "p-auto-focus", "p-help", "p-label", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-step", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-icon", "p-placeholder"], [3, "ngModelChange", "p-change", "p-change-model", "name", "ngModel", "ngClass", "p-clean", "p-error-pattern", "p-error-async-properties", "p-disabled", "p-decimals-length", "p-thousand-maxlength", "p-icon", "p-auto-focus", "p-help", "p-label", "p-locale", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-placeholder"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-field-label", "p-field-value", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-field-error-message", "p-show-required", "p-placeholder", "p-readonly"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-columns", "p-auto-focus", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-field-error-message", "p-show-required"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-disabled", "p-format-model", "p-help", "p-label", "p-label-off", "p-label-on", "p-label-position", "p-hide-label-status"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-auto-focus", "p-disabled", "p-label", "p-size"], ["p-emit-object-value", "", 3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-auto-focus", "p-clean", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-help", "p-infinite-scroll", "p-infinite-scroll-distance", "p-label", "p-literals", "p-options", "p-optional", "p-sort", "p-required", "p-field-error-message", "p-show-required", "p-icon", "p-placeholder", "p-filter-minlength", "p-filter-mode", "p-disabled-init-filter", "p-disabled-tab-filter", "p-debounce-time", "p-change-on-enter"], ["p-field-label", "label", "p-field-value", "value", 3, "ngModelChange", "p-change", "p-change-visible-columns", "p-restore-column-manager", "name", "ngModel", "ngClass", "p-clean", "p-columns", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-auto-focus", "p-auto-height", "p-help", "p-field-format", "p-infinite-scroll", "p-label", "p-literals", "p-multiple", "p-no-autocomplete", "p-optional", "p-required", "p-field-error-message", "p-show-required", "p-placeholder", "p-advanced-filters"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-columns", "p-auto-focus", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-show-required", "p-field-error-message"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-auto-height", "p-help", "p-label", "p-literals", "p-optional", "p-options", "p-required", "p-field-error-message", "p-show-required", "p-placeholder", "p-field-label", "p-field-value", "p-filter-service", "p-filter-mode", "p-debounce-time", "p-sort", "p-placeholder-search", "p-hide-search", "p-hide-select-all"], [3, "ngModelChange", "p-change", "p-change-model", "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-maxlength", "p-minlength", "p-optional", "p-readonly", "p-required", "p-field-error-message", "p-show-required", "p-rows", "p-placeholder"], [3, "ngModelChange", "p-change", "p-change-model", "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-async-properties", "p-auto-focus", "p-help", "p-hide-password-peek", "p-icon", "p-label", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-placeholder"], [3, "ngModelChange", "p-error", "p-success", "p-upload", "p-change", "p-change-model", "ngModel", "ngClass", "p-auto-upload", "p-directory", "p-disabled", "p-drag-drop", "p-drag-drop-height", "p-restrictions", "p-form-field", "p-headers", "p-help", "p-hide-restrictions-info", "p-hide-select-button", "p-hide-send-button", "p-multiple", "p-label", "p-literals", "name", "p-optional", "p-required", "p-show-required", "p-url"], [3, "p-fields", "p-content"]], template: function PoDynamicFormFieldsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
45588
|
+
} }, features: [i0.ɵɵProvidersFeature([PoDynamicFormValidationService], [{ provide: ControlContainer, useExisting: NgForm }]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 5, vars: 1, consts: [["poContent", ""], ["poContentContainer", ""], ["component", ""], ["class", "po-row", 3, "po-dynamic", 4, "ngIf"], [1, "po-row"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "po-sm-12", 3, "p-label", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-limit", "p-error-async", "p-auto-focus", "p-format", "p-help", "p-iso-format", "p-label", "p-locale", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-placeholder", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-literals", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-field-error-message", "p-error-limit", "p-show-required", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-limit", "p-error-async-properties", "p-auto-focus", "p-help", "p-label", "p-mask-format-model", "p-mask", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-required", "p-required-field-error-message", "p-show-required", "p-icon", "p-placeholder", "p-readonly", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-limit", "p-error-async-properties", "p-auto-focus", "p-help", "p-label", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-step", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-icon", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-error-pattern", "p-error-limit", "p-error-async-properties", "p-disabled", "p-decimals-length", "p-thousand-maxlength", "p-icon", "p-auto-focus", "p-help", "p-label", "p-locale", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-field-label", "p-field-value", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-field-error-message", "p-error-limit", "p-show-required", "p-placeholder", "p-readonly", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-columns", "p-auto-focus", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-field-error-message", "p-error-limit", "p-show-required", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-format-model", "p-help", "p-label", "p-label-off", "p-label-on", "p-label-position", "p-hide-label-status", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-auto-focus", "p-disabled", "p-label", "p-size", "ngModelChange", "p-change", 4, "ngIf"], ["p-emit-object-value", "", 3, "name", "ngModel", "ngClass", "p-auto-focus", "p-clean", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-help", "p-infinite-scroll", "p-infinite-scroll-distance", "p-label", "p-literals", "p-options", "p-optional", "p-sort", "p-required", "p-field-error-message", "p-error-limit", "p-show-required", "p-icon", "p-placeholder", "p-filter-minlength", "p-filter-mode", "p-disabled-init-filter", "p-disabled-tab-filter", "p-debounce-time", "p-change-on-enter", "ngModelChange", "p-change", 4, "ngIf"], ["p-field-label", "label", "p-field-value", "value", 3, "name", "ngModel", "ngClass", "p-clean", "p-columns", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-auto-focus", "p-auto-height", "p-help", "p-field-format", "p-infinite-scroll", "p-label", "p-literals", "p-multiple", "p-no-autocomplete", "p-optional", "p-required", "p-field-error-message", "p-error-limit", "p-show-required", "p-placeholder", "p-advanced-filters", "ngModelChange", "p-change", "p-change-visible-columns", "p-restore-column-manager", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-columns", "p-auto-focus", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-show-required", "p-field-error-message", "p-error-limit", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-auto-height", "p-help", "p-label", "p-literals", "p-optional", "p-options", "p-required", "p-field-error-message", "p-error-limit", "p-show-required", "p-placeholder", "p-field-label", "p-field-value", "p-filter-service", "p-filter-mode", "p-debounce-time", "p-sort", "p-placeholder-search", "p-hide-search", "p-hide-select-all", "ngModelChange", "p-change", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-maxlength", "p-minlength", "p-optional", "p-readonly", "p-required", "p-field-error-message", "p-error-limit", "p-show-required", "p-rows", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-limit", "p-error-async-properties", "p-auto-focus", "p-help", "p-hide-password-peek", "p-icon", "p-label", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-placeholder", "ngModelChange", "p-change", "p-change-model", 4, "ngIf"], [3, "ngModel", "ngClass", "p-auto-upload", "p-directory", "p-disabled", "p-drag-drop", "p-drag-drop-height", "p-restrictions", "p-form-field", "p-headers", "p-help", "p-hide-restrictions-info", "p-hide-select-button", "p-hide-send-button", "p-multiple", "p-label", "p-literals", "name", "p-custom-action", "p-optional", "p-required", "p-show-required", "p-url", "ngModelChange", "p-custom-action-click", "p-error", "p-success", "p-upload", "p-change", "p-change-model", 4, "ngIf"], [1, "po-sm-12", 3, "p-label"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-limit", "p-error-async", "p-auto-focus", "p-format", "p-help", "p-iso-format", "p-label", "p-locale", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-placeholder"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-literals", "p-max-date", "p-min-date", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-field-error-message", "p-error-limit", "p-show-required"], [3, "ngModelChange", "p-change", "p-change-model", "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-limit", "p-error-async-properties", "p-auto-focus", "p-help", "p-label", "p-mask-format-model", "p-mask", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-required", "p-required-field-error-message", "p-show-required", "p-icon", "p-placeholder", "p-readonly"], [3, "ngModelChange", "p-change", "p-change-model", "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-limit", "p-error-async-properties", "p-auto-focus", "p-help", "p-label", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-step", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-icon", "p-placeholder"], [3, "ngModelChange", "p-change", "p-change-model", "name", "ngModel", "ngClass", "p-clean", "p-error-pattern", "p-error-limit", "p-error-async-properties", "p-disabled", "p-decimals-length", "p-thousand-maxlength", "p-icon", "p-auto-focus", "p-help", "p-label", "p-locale", "p-min", "p-max", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-placeholder"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-field-label", "p-field-value", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-field-error-message", "p-error-limit", "p-show-required", "p-placeholder", "p-readonly"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-columns", "p-auto-focus", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-field-error-message", "p-error-limit", "p-show-required"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-disabled", "p-format-model", "p-help", "p-label", "p-label-off", "p-label-on", "p-label-position", "p-hide-label-status"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-auto-focus", "p-disabled", "p-label", "p-size"], ["p-emit-object-value", "", 3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-auto-focus", "p-clean", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-help", "p-infinite-scroll", "p-infinite-scroll-distance", "p-label", "p-literals", "p-options", "p-optional", "p-sort", "p-required", "p-field-error-message", "p-error-limit", "p-show-required", "p-icon", "p-placeholder", "p-filter-minlength", "p-filter-mode", "p-disabled-init-filter", "p-disabled-tab-filter", "p-debounce-time", "p-change-on-enter"], ["p-field-label", "label", "p-field-value", "value", 3, "ngModelChange", "p-change", "p-change-visible-columns", "p-restore-column-manager", "name", "ngModel", "ngClass", "p-clean", "p-columns", "p-disabled", "p-field-label", "p-field-value", "p-filter-params", "p-filter-service", "p-auto-focus", "p-auto-height", "p-help", "p-field-format", "p-infinite-scroll", "p-label", "p-literals", "p-multiple", "p-no-autocomplete", "p-optional", "p-required", "p-field-error-message", "p-error-limit", "p-show-required", "p-placeholder", "p-advanced-filters"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-columns", "p-auto-focus", "p-disabled", "p-help", "p-label", "p-optional", "p-options", "p-required", "p-show-required", "p-field-error-message", "p-error-limit"], [3, "ngModelChange", "p-change", "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-auto-height", "p-help", "p-label", "p-literals", "p-optional", "p-options", "p-required", "p-field-error-message", "p-error-limit", "p-show-required", "p-placeholder", "p-field-label", "p-field-value", "p-filter-service", "p-filter-mode", "p-debounce-time", "p-sort", "p-placeholder-search", "p-hide-search", "p-hide-select-all"], [3, "ngModelChange", "p-change", "p-change-model", "name", "ngModel", "ngClass", "p-disabled", "p-auto-focus", "p-help", "p-label", "p-maxlength", "p-minlength", "p-optional", "p-readonly", "p-required", "p-field-error-message", "p-error-limit", "p-show-required", "p-rows", "p-placeholder"], [3, "ngModelChange", "p-change", "p-change-model", "name", "ngModel", "ngClass", "p-clean", "p-disabled", "p-error-pattern", "p-error-limit", "p-error-async-properties", "p-auto-focus", "p-help", "p-hide-password-peek", "p-icon", "p-label", "p-maxlength", "p-minlength", "p-no-autocomplete", "p-optional", "p-pattern", "p-readonly", "p-required", "p-required-field-error-message", "p-show-required", "p-placeholder"], [3, "ngModelChange", "p-custom-action-click", "p-error", "p-success", "p-upload", "p-change", "p-change-model", "ngModel", "ngClass", "p-auto-upload", "p-directory", "p-disabled", "p-drag-drop", "p-drag-drop-height", "p-restrictions", "p-form-field", "p-headers", "p-help", "p-hide-restrictions-info", "p-hide-select-button", "p-hide-send-button", "p-multiple", "p-label", "p-literals", "name", "p-custom-action", "p-optional", "p-required", "p-show-required", "p-url"], [3, "p-fields", "p-content"]], template: function PoDynamicFormFieldsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
45168
45589
|
i0.ɵɵtemplate(0, PoDynamicFormFieldsComponent_div_0_Template, 2, 6, "div", 3)(1, PoDynamicFormFieldsComponent_ng_template_1_Template, 1, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(3, PoDynamicFormFieldsComponent_ng_template_3_Template, 1, 2, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
45169
45590
|
} if (rf & 2) {
|
|
45170
45591
|
i0.ɵɵproperty("ngIf", ctx.visibleFields && ctx.visibleFields.length > 0);
|
|
@@ -45172,7 +45593,7 @@ class PoDynamicFormFieldsComponent extends PoDynamicFormFieldsBaseComponent {
|
|
|
45172
45593
|
}
|
|
45173
45594
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDynamicFormFieldsComponent, [{
|
|
45174
45595
|
type: Component,
|
|
45175
|
-
args: [{ selector: 'po-dynamic-form-fields', viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], providers: [PoDynamicFormValidationService], template: "<div class=\"po-row\" [class.po-dynamic]=\"hasContainers\" *ngIf=\"visibleFields && visibleFields.length > 0\">\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-container *ngFor=\"let field of fields; trackBy: trackBy\">\n <po-divider *ngIf=\"field?.divider?.trim()\" class=\"po-sm-12\" [p-label]=\"field.divider\"> </po-divider>\n\n <po-datepicker\n #component\n *ngIf=\"compareTo(field.control, 'datepicker')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-error-async]=\"field.errorAsyncFunction\"\n [p-auto-focus]=\"field.focus\"\n [p-format]=\"field.format\"\n [p-help]=\"field.help\"\n [p-iso-format]=\"field.isoFormat\"\n [p-label]=\"field.label\"\n [p-locale]=\"field.locale\"\n [p-max-date]=\"field.maxValue\"\n [p-min-date]=\"field.minValue\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n [p-required-field-error-message]=\"field.requiredFieldErrorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-datepicker>\n\n <po-datepicker-range\n #component\n *ngIf=\"compareTo(field.control, 'datepickerrange')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-max-date]=\"field.maxValue\"\n [p-min-date]=\"field.minValue\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-datepicker-range>\n\n <po-input\n #component\n *ngIf=\"compareTo(field.control, 'input')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-error-async-properties]=\"field.errorAsyncProperties\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-mask-format-model]=\"field.maskFormatModel\"\n [p-mask]=\"field.mask\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-pattern]=\"field.pattern\"\n [p-required]=\"field.required\"\n [p-required-field-error-message]=\"field.requiredFieldErrorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-icon]=\"field.icon\"\n [p-placeholder]=\"field.placeholder\"\n [p-readonly]=\"field.readonly\"\n >\n </po-input>\n\n <po-number\n #component\n *ngIf=\"compareTo(field.control, 'number')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-error-async-properties]=\"field.errorAsyncProperties\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-min]=\"field.minValue\"\n [p-max]=\"field.maxValue\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-step]=\"field.step\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n [p-required-field-error-message]=\"field.requiredFieldErrorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-icon]=\"field.icon\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-number>\n\n <po-decimal\n #component\n *ngIf=\"compareTo(field.control, 'decimal')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-error-async-properties]=\"field.errorAsyncProperties\"\n [p-disabled]=\"isDisabled(field)\"\n [p-decimals-length]=\"field.decimalsLength\"\n [p-thousand-maxlength]=\"field.thousandMaxlength\"\n [p-icon]=\"field.icon\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-locale]=\"field.locale\"\n [p-min]=\"field.minValue\"\n [p-max]=\"field.maxValue\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n [p-required-field-error-message]=\"field.requiredFieldErrorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-decimal>\n\n <po-select\n #component\n *ngIf=\"compareTo(field.control, 'select')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-field-label]=\"field.fieldLabel\"\n [p-field-value]=\"field.fieldValue\"\n [p-disabled]=\"isDisabled(field)\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n [p-readonly]=\"field.readonly\"\n >\n </po-select>\n\n <po-radio-group\n #component\n *ngIf=\"compareTo(field.control, 'radioGroup')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-columns]=\"field.columns || 3\"\n [p-auto-focus]=\"field.focus\"\n [p-disabled]=\"isDisabled(field)\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-radio-group>\n\n <po-switch\n #component\n *ngIf=\"compareTo(field.control, 'switch')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-disabled]=\"isDisabled(field)\"\n [p-format-model]=\"field.formatModel\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-label-off]=\"field.booleanFalse\"\n [p-label-on]=\"field.booleanTrue\"\n [p-label-position]=\"field.labelPosition\"\n [p-hide-label-status]=\"field.hideLabelStatus\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-switch>\n\n <po-checkbox\n #component\n *ngIf=\"compareTo(field.control, 'checkbox')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-auto-focus]=\"field.focus\"\n [p-disabled]=\"isDisabled(field)\"\n [p-label]=\"field.label\"\n [p-size]=\"field.size\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-checkbox>\n\n <po-combo\n #component\n *ngIf=\"compareTo(field.control, 'combo')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n p-emit-object-value\n [p-auto-focus]=\"field.focus\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-field-label]=\"field.fieldLabel\"\n [p-field-value]=\"field.fieldValue\"\n [p-filter-params]=\"field.params\"\n [p-filter-service]=\"field.optionsService\"\n [p-help]=\"field.help\"\n [p-infinite-scroll]=\"field.infiniteScroll\"\n [p-infinite-scroll-distance]=\"field.infiniteScrollDistance || 100\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-options]=\"field.options\"\n [p-optional]=\"field.optional\"\n [p-sort]=\"field.sort\"\n [p-required]=\"field.required\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field, $event)\"\n [p-icon]=\"field.icon\"\n [p-placeholder]=\"field.placeholder\"\n [p-filter-minlength]=\"field.filterMinlength\"\n [p-filter-mode]=\"field.filterMode\"\n [p-disabled-init-filter]=\"field.disabledInitFilter\"\n [p-disabled-tab-filter]=\"field.disabledTabFilter\"\n [p-debounce-time]=\"field.debounceTime\"\n [p-change-on-enter]=\"field.changeOnEnter\"\n >\n </po-combo>\n\n <po-lookup\n #component\n *ngIf=\"compareTo(field.control, 'lookup')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n p-field-label=\"label\"\n p-field-value=\"value\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-columns]=\"field.columns\"\n [p-disabled]=\"isDisabled(field)\"\n [p-field-label]=\"field.fieldLabel || 'label'\"\n [p-field-value]=\"field.fieldValue || 'value'\"\n [p-filter-params]=\"field.params\"\n [p-filter-service]=\"field.searchService\"\n [p-auto-focus]=\"field.focus\"\n [p-auto-height]=\"field.autoHeight\"\n [p-help]=\"field.help\"\n [p-field-format]=\"field.format\"\n [p-infinite-scroll]=\"field.infiniteScroll\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-multiple]=\"field.multiple\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-required]=\"field.required\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n [p-advanced-filters]=\"field.advancedFilters\"\n (p-change-visible-columns)=\"field.changeVisibleColumns?.($event)\"\n (p-restore-column-manager)=\"field.columnRestoreManager?.($event)\"\n >\n </po-lookup>\n\n <po-checkbox-group\n #component\n *ngIf=\"compareTo(field.control, 'checkboxGroup')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-columns]=\"field.columns || 3\"\n [p-auto-focus]=\"field.focus\"\n [p-disabled]=\"isDisabled(field)\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n [p-show-required]=\"field.showRequired\"\n [p-field-error-message]=\"field.errorMessage\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-checkbox-group>\n\n <po-multiselect\n #component\n *ngIf=\"compareTo(field.control, 'multiselect')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-disabled]=\"isDisabled(field)\"\n [p-auto-focus]=\"field.focus\"\n [p-auto-height]=\"field.autoHeight\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n [p-field-label]=\"field.fieldLabel\"\n [p-field-value]=\"field.fieldValue\"\n [p-filter-service]=\"field.optionsService\"\n [p-filter-mode]=\"field.filterMode\"\n [p-debounce-time]=\"field.debounceTime\"\n [p-sort]=\"field.sort\"\n [p-placeholder-search]=\"field.placeholderSearch\"\n [p-hide-search]=\"field.hideSearch\"\n [p-hide-select-all]=\"field.hideSelectAll\"\n >\n </po-multiselect>\n\n <po-textarea\n #component\n *ngIf=\"compareTo(field.control, 'textarea')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-disabled]=\"isDisabled(field)\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-show-required]=\"field.showRequired\"\n [p-rows]=\"field.rows\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-textarea>\n\n <po-password\n #component\n *ngIf=\"compareTo(field.control, 'password')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-error-async-properties]=\"field.errorAsyncProperties\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-hide-password-peek]=\"field.hidePasswordPeek\"\n [p-icon]=\"field.icon\"\n [p-label]=\"field.label\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-pattern]=\"field.pattern\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n [p-required-field-error-message]=\"field.requiredFieldErrorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-password>\n\n <po-upload\n #component\n *ngIf=\"compareTo(field.control, 'upload')\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-auto-upload]=\"field.autoUpload\"\n [p-directory]=\"field.directory\"\n [p-disabled]=\"isDisabled(field)\"\n [p-drag-drop]=\"field.dragDrop\"\n [p-drag-drop-height]=\"field.dragDropHeight\"\n [p-restrictions]=\"field.restrictions\"\n [p-form-field]=\"field.formField\"\n [p-headers]=\"field.headers\"\n [p-help]=\"field.help\"\n [p-hide-restrictions-info]=\"field.hideRestrictionsInfo\"\n [p-hide-select-button]=\"field.hideSelectButton\"\n [p-hide-send-button]=\"field.hideSendButton\"\n [p-multiple]=\"field.multiple\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [name]=\"field.property\"\n (p-error)=\"field.onError($event)\"\n (p-success)=\"field.onSuccess($event)\"\n (p-upload)=\"field.onUpload($event)\"\n [p-optional]=\"field.optional\"\n [p-required]=\"field.required\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-url]=\"field.url\"\n >\n </po-upload>\n </ng-container>\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" }]
|
|
45596
|
+
args: [{ selector: 'po-dynamic-form-fields', viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], providers: [PoDynamicFormValidationService], template: "<div class=\"po-row\" [class.po-dynamic]=\"hasContainers\" *ngIf=\"visibleFields && visibleFields.length > 0\">\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-container *ngFor=\"let field of fields; trackBy: trackBy\">\n <po-divider *ngIf=\"field?.divider?.trim()\" class=\"po-sm-12\" [p-label]=\"field.divider\"> </po-divider>\n\n <po-datepicker\n #component\n *ngIf=\"compareTo(field.control, 'datepicker')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-error-limit]=\"field.errorLimit\"\n [p-error-async]=\"field.errorAsyncFunction\"\n [p-auto-focus]=\"field.focus\"\n [p-format]=\"field.format\"\n [p-help]=\"field.help\"\n [p-iso-format]=\"field.isoFormat\"\n [p-label]=\"field.label\"\n [p-locale]=\"field.locale\"\n [p-max-date]=\"field.maxValue\"\n [p-min-date]=\"field.minValue\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n [p-required-field-error-message]=\"field.requiredFieldErrorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-datepicker>\n\n <po-datepicker-range\n #component\n *ngIf=\"compareTo(field.control, 'datepickerrange')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-max-date]=\"field.maxValue\"\n [p-min-date]=\"field.minValue\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-error-limit]=\"field.errorLimit\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-datepicker-range>\n\n <po-input\n #component\n *ngIf=\"compareTo(field.control, 'input')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-error-limit]=\"field.errorLimit\"\n [p-error-async-properties]=\"field.errorAsyncProperties\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-mask-format-model]=\"field.maskFormatModel\"\n [p-mask]=\"field.mask\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-pattern]=\"field.pattern\"\n [p-required]=\"field.required\"\n [p-required-field-error-message]=\"field.requiredFieldErrorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-icon]=\"field.icon\"\n [p-placeholder]=\"field.placeholder\"\n [p-readonly]=\"field.readonly\"\n >\n </po-input>\n\n <po-number\n #component\n *ngIf=\"compareTo(field.control, 'number')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-error-limit]=\"field.errorLimit\"\n [p-error-async-properties]=\"field.errorAsyncProperties\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-min]=\"field.minValue\"\n [p-max]=\"field.maxValue\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-step]=\"field.step\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n [p-required-field-error-message]=\"field.requiredFieldErrorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-icon]=\"field.icon\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-number>\n\n <po-decimal\n #component\n *ngIf=\"compareTo(field.control, 'decimal')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-error-limit]=\"field.errorLimit\"\n [p-error-async-properties]=\"field.errorAsyncProperties\"\n [p-disabled]=\"isDisabled(field)\"\n [p-decimals-length]=\"field.decimalsLength\"\n [p-thousand-maxlength]=\"field.thousandMaxlength\"\n [p-icon]=\"field.icon\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-locale]=\"field.locale\"\n [p-min]=\"field.minValue\"\n [p-max]=\"field.maxValue\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n [p-required-field-error-message]=\"field.requiredFieldErrorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-decimal>\n\n <po-select\n #component\n *ngIf=\"compareTo(field.control, 'select')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-field-label]=\"field.fieldLabel\"\n [p-field-value]=\"field.fieldValue\"\n [p-disabled]=\"isDisabled(field)\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-error-limit]=\"field.errorLimit\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n [p-readonly]=\"field.readonly\"\n >\n </po-select>\n\n <po-radio-group\n #component\n *ngIf=\"compareTo(field.control, 'radioGroup')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-columns]=\"field.columns || 3\"\n [p-auto-focus]=\"field.focus\"\n [p-disabled]=\"isDisabled(field)\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-error-limit]=\"field.errorLimit\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-radio-group>\n\n <po-switch\n #component\n *ngIf=\"compareTo(field.control, 'switch')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-disabled]=\"isDisabled(field)\"\n [p-format-model]=\"field.formatModel\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-label-off]=\"field.booleanFalse\"\n [p-label-on]=\"field.booleanTrue\"\n [p-label-position]=\"field.labelPosition\"\n [p-hide-label-status]=\"field.hideLabelStatus\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-switch>\n\n <po-checkbox\n #component\n *ngIf=\"compareTo(field.control, 'checkbox')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-auto-focus]=\"field.focus\"\n [p-disabled]=\"isDisabled(field)\"\n [p-label]=\"field.label\"\n [p-size]=\"field.size\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-checkbox>\n\n <po-combo\n #component\n *ngIf=\"compareTo(field.control, 'combo')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n p-emit-object-value\n [p-auto-focus]=\"field.focus\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-field-label]=\"field.fieldLabel\"\n [p-field-value]=\"field.fieldValue\"\n [p-filter-params]=\"field.params\"\n [p-filter-service]=\"field.optionsService\"\n [p-help]=\"field.help\"\n [p-infinite-scroll]=\"field.infiniteScroll\"\n [p-infinite-scroll-distance]=\"field.infiniteScrollDistance || 100\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-options]=\"field.options\"\n [p-optional]=\"field.optional\"\n [p-sort]=\"field.sort\"\n [p-required]=\"field.required\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-error-limit]=\"field.errorLimit\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field, $event)\"\n [p-icon]=\"field.icon\"\n [p-placeholder]=\"field.placeholder\"\n [p-filter-minlength]=\"field.filterMinlength\"\n [p-filter-mode]=\"field.filterMode\"\n [p-disabled-init-filter]=\"field.disabledInitFilter\"\n [p-disabled-tab-filter]=\"field.disabledTabFilter\"\n [p-debounce-time]=\"field.debounceTime\"\n [p-change-on-enter]=\"field.changeOnEnter\"\n >\n </po-combo>\n\n <po-lookup\n #component\n *ngIf=\"compareTo(field.control, 'lookup')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n p-field-label=\"label\"\n p-field-value=\"value\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-columns]=\"field.columns\"\n [p-disabled]=\"isDisabled(field)\"\n [p-field-label]=\"field.fieldLabel || 'label'\"\n [p-field-value]=\"field.fieldValue || 'value'\"\n [p-filter-params]=\"field.params\"\n [p-filter-service]=\"field.searchService\"\n [p-auto-focus]=\"field.focus\"\n [p-auto-height]=\"field.autoHeight\"\n [p-help]=\"field.help\"\n [p-field-format]=\"field.format\"\n [p-infinite-scroll]=\"field.infiniteScroll\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-multiple]=\"field.multiple\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-required]=\"field.required\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-error-limit]=\"field.errorLimit\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n [p-advanced-filters]=\"field.advancedFilters\"\n (p-change-visible-columns)=\"field.changeVisibleColumns?.($event)\"\n (p-restore-column-manager)=\"field.columnRestoreManager?.($event)\"\n >\n </po-lookup>\n\n <po-checkbox-group\n #component\n *ngIf=\"compareTo(field.control, 'checkboxGroup')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-columns]=\"field.columns || 3\"\n [p-auto-focus]=\"field.focus\"\n [p-disabled]=\"isDisabled(field)\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n [p-show-required]=\"field.showRequired\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-error-limit]=\"field.errorLimit\"\n (p-change)=\"onChangeField(field)\"\n >\n </po-checkbox-group>\n\n <po-multiselect\n #component\n *ngIf=\"compareTo(field.control, 'multiselect')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-disabled]=\"isDisabled(field)\"\n [p-auto-focus]=\"field.focus\"\n [p-auto-height]=\"field.autoHeight\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [p-optional]=\"field.optional\"\n [p-options]=\"field.options\"\n [p-required]=\"field.required\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-error-limit]=\"field.errorLimit\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n [p-placeholder]=\"field.placeholder\"\n [p-field-label]=\"field.fieldLabel\"\n [p-field-value]=\"field.fieldValue\"\n [p-filter-service]=\"field.optionsService\"\n [p-filter-mode]=\"field.filterMode\"\n [p-debounce-time]=\"field.debounceTime\"\n [p-sort]=\"field.sort\"\n [p-placeholder-search]=\"field.placeholderSearch\"\n [p-hide-search]=\"field.hideSearch\"\n [p-hide-select-all]=\"field.hideSelectAll\"\n >\n </po-multiselect>\n\n <po-textarea\n #component\n *ngIf=\"compareTo(field.control, 'textarea')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-disabled]=\"isDisabled(field)\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-label]=\"field.label\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-optional]=\"field.optional\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n [p-field-error-message]=\"field.errorMessage\"\n [p-error-limit]=\"field.errorLimit\"\n [p-show-required]=\"field.showRequired\"\n [p-rows]=\"field.rows\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-textarea>\n\n <po-password\n #component\n *ngIf=\"compareTo(field.control, 'password')\"\n [name]=\"field.property\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-clean]=\"field.clean\"\n [p-disabled]=\"isDisabled(field)\"\n [p-error-pattern]=\"field.errorMessage\"\n [p-error-limit]=\"field.errorLimit\"\n [p-error-async-properties]=\"field.errorAsyncProperties\"\n [p-auto-focus]=\"field.focus\"\n [p-help]=\"field.help\"\n [p-hide-password-peek]=\"field.hidePasswordPeek\"\n [p-icon]=\"field.icon\"\n [p-label]=\"field.label\"\n [p-maxlength]=\"field.maxLength\"\n [p-minlength]=\"field.minLength\"\n [p-no-autocomplete]=\"field.noAutocomplete\"\n [p-optional]=\"field.optional\"\n [p-pattern]=\"field.pattern\"\n [p-readonly]=\"field.readonly\"\n [p-required]=\"field.required\"\n [p-required-field-error-message]=\"field.requiredFieldErrorMessage\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-placeholder]=\"field.placeholder\"\n >\n </po-password>\n\n <po-upload\n #component\n *ngIf=\"compareTo(field.control, 'upload')\"\n [(ngModel)]=\"value[field.property]\"\n [ngClass]=\"field.componentClass\"\n [p-auto-upload]=\"field.autoUpload\"\n [p-directory]=\"field.directory\"\n [p-disabled]=\"isDisabled(field)\"\n [p-drag-drop]=\"field.dragDrop\"\n [p-drag-drop-height]=\"field.dragDropHeight\"\n [p-restrictions]=\"field.restrictions\"\n [p-form-field]=\"field.formField\"\n [p-headers]=\"field.headers\"\n [p-help]=\"field.help\"\n [p-hide-restrictions-info]=\"field.hideRestrictionsInfo\"\n [p-hide-select-button]=\"field.hideSelectButton\"\n [p-hide-send-button]=\"field.hideSendButton\"\n [p-multiple]=\"field.multiple\"\n [p-label]=\"field.label\"\n [p-literals]=\"field.literals\"\n [name]=\"field.property\"\n [p-custom-action]=\"field.customAction\"\n (p-custom-action-click)=\"field.customActionClick($event)\"\n (p-error)=\"field.onError($event)\"\n (p-success)=\"field.onSuccess($event)\"\n (p-upload)=\"field.onUpload($event)\"\n [p-optional]=\"field.optional\"\n [p-required]=\"field.required\"\n [p-show-required]=\"field.showRequired\"\n (p-change)=\"onChangeField(field)\"\n (p-change-model)=\"onChangeFieldModel(field)\"\n [p-url]=\"field.url\"\n >\n </po-upload>\n </ng-container>\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" }]
|
|
45176
45597
|
}], () => [{ type: i1.TitleCasePipe }, { type: PoDynamicFormValidationService }, { type: i0.ChangeDetectorRef }, { type: i2$1.NgForm }], { components: [{
|
|
45177
45598
|
type: ViewChildren,
|
|
45178
45599
|
args: ['component']
|