form-dynamic-ajax 8.0.0 → 8.0.1
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.
|
@@ -185,11 +185,11 @@ class FormDynamicAngularComponent {
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: FormDynamicAngularComponent, deps: [{ token: i1.TranslateService }, { token: i2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
188
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.26", type: FormDynamicAngularComponent, isStandalone: false, selector: "form-dynamic-angular", inputs: { title: "title", subTitle: "subTitle", validateForm: "validateForm", form: "form", control: "control", buttonsStandard: "buttonsStandard", buttonsOptional: "buttonsOptional", files: "files" }, ngImport: i0, template: "<div>\n @if (title) {\n <div class=\"div-title\">\n <span translate=\"{{ title }}\"></span>\n @if (subTitle) {\n <div class=\"flex subtitle\">\n <span translate=\"{{ subTitle }}\"></span>\n </div>\n }\n <p-divider></p-divider>\n </div>\n }\n @if (control) {\n <form [formGroup]=\"control\">\n <div class=\"grid\">\n @for (item of form; track item) {\n <div class=\"{{ item.col }} col-12\">\n @if (item.label && !item.hideLabelTop) {\n <label>{{ item.label }}</label>\n }\n @if (item.required && item.label) {\n <label class=\"danger-text ml-2\"\n >*</label\n >\n }\n <div class=\"mt-2\">\n <!-- text -->\n @if (item.type == 'text' || item.type == 'number') {\n <input\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n pInputText\n placeholder=\"{{ item.placeholder }}\"\n type=\"{{ item.type }}\"\n formControlName=\"{{ item.formControl }}\"\n class=\"w-full\"\n />\n }\n @if (item.type == 'editor') {\n <p-editor\n formControlName=\"{{ item.formControl }}\"\n [style]=\"{ height: '320px' }\"\n />\n }\n <!-- select -->\n @if (item.type === 'select') {\n <p-select\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n [filter]=\"item.search\"\n emptyFilterMessage=\"Nenhum dado encontrado\"\n emptyMessage=\"Nenhum dado encontrado\"\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full p-0\"\n (onChange)=\"onChange(item.onChange)\"\n [showClear]=\"true\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n optionLabel=\"description\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-select>\n }\n <!-- currency -->\n @if (item.type === 'currency') {\n <p-inputNumber\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n placeholder=\"{{ item.placeholder }}\"\n inputStyleClass=\"w-full\"\n styleClass=\"w-full\"\n (onKeyDown)=\"onChange(item.onChange)\"\n mode=\"currency\"\n [min]=\"0\"\n currency=\"BRL\"\n >\n </p-inputNumber>\n }\n <!-- mask -->\n @if (item.type === 'mask') {\n <p-inputMask\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full\"\n (onComplete)=\"onChange(item.onChange)\"\n mask=\"{{ item.mask }}\"\n unmask=\"{{ item.unmask }}\"\n (onClear)=\"clickCLear(item.onCLear)\"\n showClear=\"true\"\n ></p-inputMask>\n }\n <!-- treeSelect -->\n @if (item.type === 'tree-select') {\n <p-treeSelect\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n (onNodeSelect)=\"onChange(item.onChange)\"\n containerStyleClass=\"w-full p-0\"\n formControlName=\"{{ item.formControl }}\"\n [options]=\"item.treeSelectOptions\"\n [filter]=\"true\"\n [filterInputAutoFocus]=\"true\"\n emptyMessage=\"Nenhum dado encontrado\"\n [showClear]=\"true\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-treeSelect>\n }\n <!-- autoComplete -->\n @if (item.type === 'autocomplete') {\n <p-autoComplete\n inputId=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full p-0\"\n [inputStyle]=\"{ width: '100%' }\"\n (onSelect)=\"onChange(item.onChange)\"\n formControlName=\"{{ item.formControl }}\"\n [suggestions]=\"filteredAutoComplete\"\n (completeMethod)=\"filterAutoComplete($event, item.options)\"\n [forceSelection]=\"false\"\n [showEmptyMessage]=\"true\"\n emptyMessage=\"Nenhum dado encontrado\"\n dataKey=\"code\"\n optionLabel=\"description\"\n showClear=\"true\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-autoComplete>\n }\n <!-- date -->\n @if (item.type === 'date') {\n <p-datepicker\n id=\"{{ item.id }}\"\n view=\"{{ item.viewDate }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n styleClass=\"w-full\"\n [numberOfMonths]=\"numberOfMonthsDate(item.numberOfMonthsDate)\"\n [selectionMode]=\"selectionMode(item.selectionMode)\"\n (onFocus)=\"onChange(item.onFocusDate)\"\n [maxDate]=\"item.maxDate\"\n [minDate]=\"item.minDate\"\n dateFormat=\"{{ item.dateFormat }}\"\n (onSelect)=\"onChange(item.onChange)\"\n [iconDisplay]=\"'input'\"\n placeholder=\"{{ item.placeholder }}\"\n [showIcon]=\"true\"\n [showTime]=\"item.showTime\"\n [timeOnly]=\"item.timeOnly\"\n ></p-datepicker>\n }\n <!-- textarea -->\n @if (item.type === 'text-area') {\n <div class=\"text-right\">\n <textarea\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n class=\"w-full\"\n maxlength=\"{{ item.maxlength }}\"\n counterTemplate=\"{1} of 50, {0} remaining\"\n counter=\"display\"\n (attr.change)=\"onChange(item.onChange)\"\n pTextarea\n formControlName=\"{{ item.formControl }}\"\n rows=\"{{ item.rowsTextArea }}\"\n ></textarea>\n @if (item.maxlength) {\n <small id=\"username-help\">\n {{ control.controls[item.formControl].value.length }}/{{\n item.maxlength\n }}\n </small>\n }\n </div>\n }\n <!-- checkbox -->\n @if (item.type == 'check-box') {\n <div>\n <p-checkbox\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n (onChange)=\"onChange(item.onChange)\"\n binary=\"true\"\n formControlName=\"{{ item.formControl }}\"\n value=\"{{ item.formControl }}\"\n label=\"{{ item.label }}\"\n ></p-checkbox>\n </div>\n }\n <!-- checkbox multiple -->\n @if (item.type === 'check-box-multi') {\n <div\n id=\"{{ item.id }}\"\n class=\"flex gap-3\"\n >\n @for (list of item.options; track list; let i = $index) {\n <div\n formArrayName=\"{{ item.formControl }}\"\n class=\"flex align-items-center gap-2\"\n >\n <div [formGroupName]=\"i\">\n <p-checkbox\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n (onChange)=\"onChange(item.onChange)\"\n binary=\"true\"\n formControlName=\"{{ list.code }}\"\n label=\"{{ list.description }}\"\n ></p-checkbox>\n </div>\n </div>\n }\n </div>\n }\n <!-- button -->\n @if (item.type == 'button') {\n <p-button\n id=\"{{ item.id }}\"\n styleClass=\"{{ item.buttonClass }} w-full mt-3\"\n (click)=\"item.onCLick()\"\n [disabled]=\"item.disabled\"\n icon=\"{{ item.iconButton }}\"\n label=\"{{ item.label }}\"\n ></p-button>\n }\n <!-- can -->\n @if (item.type == 'can') {\n <div id=\"{{ item.id }}\" class=\"area\">\n <video autoplay=\"true\" id=\"webCamera\"></video>\n <input type=\"text\" id=\"base_img\" name=\"base_img\" />\n <button type=\"button\" onclick=\"takeSnapShot()\">\n Tirar foto e salvar\n </button>\n <img id=\"imagemConvertida\" />\n <p id=\"caminhoImagem\" class=\"caminho-imagem\">\n <a href=\"\" target=\"_blank\" rel=\"noopener\"></a>\n </p>\n <script src=\"script.js\"></script>\n </div>\n }\n <!-- upload files -->\n @if (item.type === 'upload-files' && !item.disabled) {\n <div\n id=\"{{ item.id }}\"\n class=\"drag-image\"\n [style.border]=\"\r\n validateForm && control.controls[item.formControl].errors\r\n ? ' 1px dashed #f18282'\r\n : ' 1px dashed #d1d5db'\r\n \"\r\n >\n @if (filesView.length === 0) {\n <i class=\"pi pi-cloud-upload\"></i>\n }\n @if (filesView.length === 0) {\n <p>\n Clique ou arraste e solte um arquivo para anexar\n </p>\n }\n @if (filesView.length === 0) {\n <span>{{\n item.msgAcceptFiles\n }}</span>\n }\n <input\n id=\"fileInput\"\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n @for (f of filesView; track f) {\n <div>\n @if (f.type && f.type.includes('image')) {\n <div>\n <label class=\"preview-img\">\n @if (!f.content) {\n <img src=\"{{ getUrl(f) }}\" />\n }\n @if (f.content) {\n <img src=\"{{ f.content }}\" />\n }\n @if (item.viewNameFile) {\n <span>{{ f.name }}</span>\n }\n <input\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n <label>\n <i\n class=\"pi pi-times remove-file absolute\"\n (click)=\"onRemove(item.formControl, f)\"\n ></i\n ></label>\n </label>\n </div>\n }\n @if (f.type && !f.type.includes('image')) {\n <div>\n <label class=\"preview-img h-0 max-w-0 mh-75 m-0\">\n <label class=\"mr-3\">{{ f.name }}</label>\n <input\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n <label>\n <i\n class=\"pi pi-times remove-file absolute\"\n (click)=\"onRemove(f)\"\n ></i\n ></label>\n </label>\n </div>\n }\n </div>\n }\n </div>\n }\n <!-- upload files disabled -->\n <!-- <p-fileUpload mode=\"basic\" formControlName=\"{{item.formControl}}\" chooseLabel=\"Choose\"\n chooseIcon=\"pi pi-upload\" accept=\"image/*\" maxFileSize=\"1000000\" /> -->\n @if (item.type === 'upload-files' && item.disabled) {\n <div\n id=\"{{ item.id }}\"\n >\n <p-button\n (click)=\"op.toggle($event)\"\n icon=\"pi pi-paperclip\"\n label=\"Arquivos anexados\"\n ></p-button>\n <p-popover\n #op\n [style]=\"{ width: '450px' }\"\n [showCloseIcon]=\"true\"\n >\n <ng-template pTemplate=\"content\">\n @if (files.length > 0) {\n <p-table\n [value]=\"files\"\n selectionMode=\"single\"\n [(selection)]=\"selectedProduct\"\n (onRowSelect)=\"onRowSelect($event, op)\"\n responsiveLayout=\"scroll\"\n >\n <ng-template pTemplate=\"header\">\n <tr>\n <th pSortableColumn=\"name\">\n Nome<p-sortIcon field=\"name\"></p-sortIcon>\n </th>\n <th></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-file>\n <tr>\n @if (item.viewNameFile) {\n <td>{{ file.name }}</td>\n }\n <td>\n @if (item.onCLick) {\n <p-button\n icon=\"pi pi-download\"\n (click)=\"item.onCLick(file)\"\n ></p-button>\n }\n </td>\n </tr>\n </ng-template>\n </p-table>\n }\n @if (files.length === 0) {\n <div class=\"p-10\">\n <label>Nenhum arquivo anexado</label>\n </div>\n }\n </ng-template>\n </p-popover>\n </div>\n }\n <!-- list -->\n @if (item.type === 'list' && item.options) {\n <ul id=\"{{ item.id }}\">\n @for (list of item.options; track list) {\n <li>{{ list.description }}</li>\n }\n </ul>\n }\n <!-- multi -->\n @if (item.type === 'multi') {\n <p-multiSelect\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n styleClass=\"p-0 w-full\"\n optionLabel=\"description\"\n (onChange)=\"onChange(item.onChange)\"\n maxSelectedLabels=\"100\"\n ></p-multiSelect>\n }\n <!-- radioButton -->\n @if (item.type === 'radio-button') {\n <div\n id=\"{{ item.id }}\"\n class=\"flex gap-3\"\n >\n @for (listRadioButton of item.options; track listRadioButton) {\n <div\n class=\"flex align-items-center gap-2\"\n >\n <p-radioButton\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n [value]=\"listRadioButton.code\"\n formControlName=\"{{ item.formControl }}\"\n (onClick)=\"onChange(item.onChange)\"\n ></p-radioButton>\n <label>{{ listRadioButton.description }}</label>\n </div>\n }\n @if(control.controls[item.formControl].value == 'other'){\n <input\n pInputText\n type=\"text\"\n formControlName=\"{{ item.formControlOther }}\"\n />\n }\n </div>\n }\n <!-- selectButton -->\n @if (item.type === 'select-button') {\n <div class=\"d-flex\">\n <p-selectButton\n id=\"{{ item.id }}\"\n (onChange)=\"onChange(item.onChange)\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n optionValue=\"code\"\n >\n <ng-template let-item>\n <span>{{ item.description }}</span>\n </ng-template>\n </p-selectButton>\n <!-- <input type=\"text\" pInputText [attr.disabled]=\"item.disabled\"\n formControlName={{item.formControlSecondary}}> -->\n </div>\n }\n <!-- table -->\n @if (item.type === 'table') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n @for (col of columns; track col) {\n <th>\n @if (col.filed !== 'action') {\n <span>{{ col.header }}</span>\n }\n @if (col.filed === 'action') {\n <span>A\u00E7\u00E3o</span>\n }\n </th>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr>\n @for (col of columns; track col) {\n <td>\n @if (col.field !== 'button') {\n <div>\n {{ rowData[col.field] }}\n </div>\n }\n @if (col.field === 'action') {\n <div>\n @for (action of item.buttonsTable; track action) {\n <p-button\n styleClass=\"{{ action.styleClass }}\"\n label=\"{{ action.label }}\"\n (click)=\"action.onCLick(rowData)\"\n icon=\"{{ action.icon }}\"\n ></p-button>\n }\n </div>\n }\n </td>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"footer\" let-columns>\n @for (footer of item.rowsFooter; track footer) {\n <tr>\n <td colspan=\"12\">\n <span class=\"font-normal\">{{ footer.text }}:</span>\n {{ footer.value }}\n </td>\n </tr>\n }\n </ng-template>\n </p-table>\n }\n <!-- inputSwitch -->\n @if (item.type === 'switch') {\n <div class=\"d-flex\">\n <p-toggleswitch\n id=\"{{ item.id }}\"\n formControlName=\"{{ item.formControl }}\"\n class=\"mr-10\"\n (onChange)=\"onChange(item.onChange)\"\n ></p-toggleswitch>\n <p translate=\"{{ item.label }}\"></p>\n </div>\n }\n <!-- password -->\n @if (item.type === 'password') {\n <p-password\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n [feedback]=\"false\"\n formControlName=\"{{ item.formControl }}\"\n (onChange)=\"onChange(item.onChange)\"\n styleClass=\"w-full\"\n [toggleMask]=\"true\"\n ></p-password>\n }\n <!-- photo -->\n @if (item.type === 'photo') {\n <div id=\"{{ item.id }}\" class=\"camera\">\n <video id=\"video\" class=\"foto\" autoplay>\n V\u00EDdeo n\u00E3o dispon\u00EDvel.\n </video>\n <canvas id=\"canvas\" class=\"foto\" style=\"display: none\"></canvas>\n <button\n pButton\n icon=\"pi pi-times\"\n class=\"remove-file\"\n id=\"icon-remove\"\n [rounded]=\"true\"\n style=\"visibility: collapse\"\n (click)=\"removePhoto()\"\n ></button>\n <button\n pButton\n icon=\"pi pi-camera\"\n [rounded]=\"true\"\n (click)=\"capturePhoto(item.formControl)\"\n id=\"button\"\n ></button>\n </div>\n }\n <!-- likert -->\n @if (item.type === 'likert') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th style=\"width: 4rem\"></th>\n @for (col of columns; track col) {\n <th>\n <span>{{ col.header }}</span>\n </th>\n }\n </tr>\n </ng-template>\n <ng-template\n pTemplate=\"body\"\n let-row\n let-rowIndex=\"rowIndex\"\n let-columns=\"columns\"\n formArrayName=\"{{ item.formControl }}\"\n >\n <tr>\n <td>\n {{ row }}\n </td>\n @for (control of columns; track item; let index = $index) {\n <td [formGroupName]=\"rowIndex\">\n <p-radioButton\n value=\"{{ columns[index].field }}+{{ row }}\"\n formControlName=\"question{{ rowIndex }}\"\n />\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n }\n <!-- editable table -->\n @if (item.type === 'editable-table') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n editMode=\"cell\"\n >\n <!-- Cabe\u00E7alho da tabela -->\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th style=\"width: 4rem\"></th>\n @for (col of columns; track col) {\n <th>\n <span>{{ col.header }}</span>\n </th>\n }\n </tr>\n </ng-template>\n <!-- Corpo da tabela -->\n <ng-template\n pTemplate=\"body\"\n let-row\n let-rowIndex=\"rowIndex\"\n let-columns=\"columns\"\n formArrayName=\"{{ item.formControl }}\"\n let-editing=\"editing\"\n >\n <tr>\n <td>{{ row }}</td>\n @for (control of columns; track item; let index = $index) {\n <td\n [formGroupName]=\"rowIndex\"\n [pEditableColumn]=\"row\"\n pEditableColumnField=\"row\"\n >\n <p-cellEditor>\n <ng-template pTemplate=\"input\">\n <input\n pInputText\n type=\"text\"\n formControlName=\"_{{ control.field }}question{{\r\n rowIndex\r\n }}\"\r\n />\n </ng-template>\n <ng-template pTemplate=\"output\">\n <input\n pInputText\n type=\"text\"\n formControlName=\"_{{ control.field }}question{{\r\n rowIndex\r\n }}\"\r\n />\n </ng-template>\n </p-cellEditor>\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n }\n <!-- valida\u00E7\u00E3o de item -->\n <div>\n @if (validateForm && control.controls[item.formControl] && control.controls[item.formControl].errors?.['required']) {\n <small\n class=\"danger-text\"\n >\n Campo obrigat\u00F3rio\n </small>\n }\n @if (validateForm && control.controls[item.formControl] && control.controls[item.formControl].errors?.['email']) {\n <small\n class=\"danger-text\"\n >\n Email inv\u00E1lido\n </small>\n }\n </div>\n </div>\n </div>\n }\n @if (\n (buttonsStandard && buttonsStandard.length > 0) ||\n (buttonsOptional && buttonsOptional.length > 0)\n ) {\n <p-divider\n ></p-divider>\n }\n <div class=\"buttons-form\">\n @for (button of buttonsStandard; track button) {\n <div>\n @if (button.type === 'clean') {\n <p-button\n styleClass=\"p-button-warning {{ button.styleClass }}\"\n label=\"Limpar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-times\"\n ></p-button>\n }\n @if (button.type === 'filter') {\n <p-button\n styleClass=\"{{ button.styleClass }}\"\n label=\"Filtrar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-search\"\n ></p-button>\n }\n @if (button.type === 'save') {\n <p-button\n styleClass=\"p-button-success {{ button.styleClass }}\"\n label=\"Salvar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-save\"\n ></p-button>\n }\n @if (button.type === 'cancel') {\n <p-button\n styleClass=\"p-button-danger {{ button.styleClass }}\"\n label=\"Cancelar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-times\"\n ></p-button>\n }\n </div>\n }\n @for (button of buttonsOptional; track button) {\n <div>\n <p-button\n styleClass=\"{{ button.styleClass }}\"\n label=\"{{ button.label }}\"\n (click)=\"button.onCLick()\"\n icon=\"{{ button.icon }}\"\n ></p-button>\n </div>\n }\n </div>\n </div>\n </form>\n }\n </div>\n", styles: [".div-title span{font-size:20px;font-weight:500}.buttons-form{display:flex;gap:10px;justify-content:flex-end}.danger-text{color:#f18282}.drag-image{height:auto;width:100%;border-radius:10px;font-weight:400;display:flex;align-items:center;flex-direction:column;top:20px;max-height:250px;color:#000;padding:20px;text-align:center;overflow:auto}.drag-image h6{font-size:20px}.drag-image .file-name{font-size:14px}.drag-image i{font-size:3rem}.subtitle span{font-size:14px;margin-right:5px}.subtitle{align-items:baseline}.mh-75{min-height:75px!important}input[type=file]{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer}.preview-img{align-items:center;border-radius:5px;display:flex;height:140px;justify-content:center;margin:10px;max-width:180px;min-height:140px;min-width:180px;padding:0 20px;position:relative}.preview-img span{position:absolute;overflow-wrap:break-word}.remove-file{display:flex;justify-content:center;align-items:center;height:22px;width:22px;top:5px;right:5px;border-radius:50%;background:#bbb;color:#333;cursor:pointer;font-size:.8rem!important}.preview-img img{max-width:100%;opacity:.8}.camera{display:flex;flex-direction:column;align-items:center;position:relative}.foto{max-width:186px;min-height:140px;min-width:180px;border:1px dashed #000;border-radius:5px;margin-bottom:1em}.preview-photo{position:relative}.h-0{height:0}\n"], dependencies: [{ kind: "component", type: i3.InputMask, selector: "p-inputmask, p-inputMask, p-input-mask", inputs: ["type", "slotChar", "autoClear", "showClear", "style", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabel", "ariaLabelledBy", "ariaRequired", "readonly", "unmask", "characterPattern", "autofocus", "autocomplete", "keepBuffer", "mask"], outputs: ["onComplete", "onFocus", "onBlur", "onInput", "onKeydown", "onClear"] }, { kind: "directive", type: i4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i5.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "component", type: i6.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "toggleMask", "inputStyleClass", "styleClass", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "tabindex", "appendTo", "motionOptions", "overlayOptions"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "directive", type: i7.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "pButtonPT", "pButtonUnstyled", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "component", type: i7.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i8.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i8.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "directive", type: i8.EditableColumn, selector: "[pEditableColumn]", inputs: ["pEditableColumn", "pEditableColumnField", "pEditableColumnRowIndex", "pEditableColumnDisabled", "pFocusCellSelector"] }, { kind: "component", type: i8.CellEditor, selector: "p-cellEditor" }, { kind: "component", type: i8.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "component", type: i9.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "directive", type: i10.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i11.SelectButton, selector: "p-selectButton, p-selectbutton, p-select-button", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "unselectable", "tabindex", "multiple", "allowEmpty", "styleClass", "ariaLabelledBy", "dataKey", "autofocus", "size", "fluid"], outputs: ["onOptionClick", "onChange"] }, { kind: "component", type: i12.ToggleSwitch, selector: "p-toggleswitch, p-toggleSwitch, p-toggle-switch", inputs: ["styleClass", "tabindex", "inputId", "readonly", "trueValue", "falseValue", "ariaLabel", "size", "ariaLabelledBy", "autofocus"], outputs: ["onChange"] }, { kind: "component", type: i13.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "directive", type: i14.Textarea, selector: "[pTextarea], [pInputTextarea]", inputs: ["pTextareaPT", "pTextareaUnstyled", "autoResize", "pSize", "variant", "fluid", "invalid"], outputs: ["onResize"] }, { kind: "directive", type: i15.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: i16.Divider, selector: "p-divider", inputs: ["styleClass", "layout", "type", "align"] }, { kind: "component", type: i17.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "component", type: i18.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: i19.TreeSelect, selector: "p-treeSelect, p-treeselect, p-tree-select", inputs: ["inputId", "scrollHeight", "metaKeySelection", "display", "selectionMode", "tabindex", "ariaLabel", "ariaLabelledBy", "placeholder", "panelClass", "panelStyle", "panelStyleClass", "containerStyle", "containerStyleClass", "labelStyle", "labelStyleClass", "overlayOptions", "emptyMessage", "filter", "filterBy", "filterMode", "filterPlaceholder", "filterLocale", "filterInputAutoFocus", "propagateSelectionDown", "propagateSelectionUp", "showClear", "resetFilterOnHide", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autofocus", "options", "loading", "loadingMode", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onNodeExpand", "onNodeCollapse", "onShow", "onHide", "onClear", "onFilter", "onFocus", "onBlur", "onNodeUnselect", "onNodeSelect"] }, { kind: "component", type: i20.RadioButton, selector: "p-radioButton, p-radiobutton, p-radio-button", inputs: ["value", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "styleClass", "autofocus", "binary", "variant", "size"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i21.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo", "motionOptions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i2.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "component", type: i22.Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "component", type: i23.Editor, selector: "p-editor", inputs: ["style", "styleClass", "placeholder", "formats", "modules", "bounds", "scrollingContainer", "debug", "readonly"], outputs: ["onInit", "onTextChange", "onSelectionChange", "onEditorChange", "onFocus", "onBlur"] }, { kind: "directive", type: i1.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
188
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.26", type: FormDynamicAngularComponent, isStandalone: false, selector: "form-dynamic-angular", inputs: { title: "title", subTitle: "subTitle", validateForm: "validateForm", form: "form", control: "control", buttonsStandard: "buttonsStandard", buttonsOptional: "buttonsOptional", files: "files" }, ngImport: i0, template: "<div>\n @if (title) {\n <div class=\"div-title\">\n <span translate=\"{{ title }}\"></span>\n @if (subTitle) {\n <div class=\"flex subtitle\">\n <span translate=\"{{ subTitle }}\"></span>\n </div>\n }\n <p-divider></p-divider>\n </div>\n }\n @if (control) {\n <form [formGroup]=\"control\">\n <div class=\"grid\">\n @for (item of form; track item) {\n <div class=\"{{ item.col }} col-12\">\n @if (item.label && !item.hideLabelTop) {\n <label>{{ item.label }}</label>\n }\n @if (item.required && item.label) {\n <label class=\"danger-text ml-2\"\n >*</label\n >\n }\n <div class=\"mt-2\">\n <!-- text -->\n @if (item.type == 'text' || item.type == 'number') {\n <input\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n pInputText\n placeholder=\"{{ item.placeholder }}\"\n type=\"{{ item.type }}\"\n formControlName=\"{{ item.formControl }}\"\n class=\"w-full\"\n />\n }\n @if (item.type == 'editor') {\n <p-editor\n formControlName=\"{{ item.formControl }}\"\n [style]=\"{ height: '320px' }\"\n />\n }\n <!-- select -->\n @if (item.type === 'select') {\n <p-select\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n [filter]=\"item.search\"\n emptyFilterMessage=\"Nenhum dado encontrado\"\n emptyMessage=\"Nenhum dado encontrado\"\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full p-0\"\n (onChange)=\"onChange(item.onChange)\"\n [showClear]=\"true\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n optionLabel=\"description\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-select>\n }\n <!-- currency -->\n @if (item.type === 'currency') {\n <p-inputNumber\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n placeholder=\"{{ item.placeholder }}\"\n inputStyleClass=\"w-full\"\n styleClass=\"w-full\"\n (onKeyDown)=\"onChange(item.onChange)\"\n mode=\"currency\"\n [min]=\"0\"\n currency=\"BRL\"\n >\n </p-inputNumber>\n }\n <!-- mask -->\n @if (item.type === 'mask') {\n <p-inputMask\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full\"\n (onComplete)=\"onChange(item.onChange)\"\n mask=\"{{ item.mask }}\"\n unmask=\"{{ item.unmask }}\"\n (onClear)=\"clickCLear(item.onCLear)\"\n showClear=\"true\"\n ></p-inputMask>\n }\n <!-- treeSelect -->\n @if (item.type === 'tree-select') {\n <p-treeSelect\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n (onNodeSelect)=\"onChange(item.onChange)\"\n containerStyleClass=\"w-full p-0\"\n formControlName=\"{{ item.formControl }}\"\n [options]=\"item.treeSelectOptions\"\n [filter]=\"true\"\n [filterInputAutoFocus]=\"true\"\n emptyMessage=\"Nenhum dado encontrado\"\n [showClear]=\"true\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-treeSelect>\n }\n <!-- autoComplete -->\n @if (item.type === 'autocomplete') {\n <p-autoComplete\n inputId=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full p-0\"\n [inputStyle]=\"{ width: '100%' }\"\n (onSelect)=\"onChange(item.onChange)\"\n formControlName=\"{{ item.formControl }}\"\n [suggestions]=\"filteredAutoComplete\"\n (completeMethod)=\"filterAutoComplete($event, item.options)\"\n [forceSelection]=\"false\"\n [showEmptyMessage]=\"true\"\n emptyMessage=\"Nenhum dado encontrado\"\n dataKey=\"code\"\n optionLabel=\"description\"\n showClear=\"true\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-autoComplete>\n }\n <!-- date -->\n @if (item.type === 'date') {\n <p-datepicker\n id=\"{{ item.id }}\"\n view=\"{{ item.viewDate }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n styleClass=\"w-full\"\n [numberOfMonths]=\"numberOfMonthsDate(item.numberOfMonthsDate)\"\n [selectionMode]=\"selectionMode(item.selectionMode)\"\n (onFocus)=\"onChange(item.onFocusDate)\"\n [maxDate]=\"item.maxDate\"\n [minDate]=\"item.minDate\"\n dateFormat=\"{{ item.dateFormat }}\"\n (onSelect)=\"onChange(item.onChange)\"\n [iconDisplay]=\"'input'\"\n placeholder=\"{{ item.placeholder }}\"\n [showIcon]=\"true\"\n [showTime]=\"item.showTime\"\n [timeOnly]=\"item.timeOnly\"\n ></p-datepicker>\n }\n <!-- textarea -->\n @if (item.type === 'text-area') {\n <div class=\"text-right\">\n <textarea\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n class=\"w-full\"\n maxlength=\"{{ item.maxlength }}\"\n counterTemplate=\"{1} of 50, {0} remaining\"\n counter=\"display\"\n (attr.change)=\"onChange(item.onChange)\"\n pTextarea\n formControlName=\"{{ item.formControl }}\"\n rows=\"{{ item.rowsTextArea }}\"\n ></textarea>\n @if (item.maxlength) {\n <small id=\"username-help\">\n {{ control.controls[item.formControl].value.length }}/{{\n item.maxlength\n }}\n </small>\n }\n </div>\n }\n <!-- checkbox -->\n @if (item.type == 'check-box') {\n <div>\n <p-checkbox\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n (onChange)=\"onChange(item.onChange)\"\n binary=\"true\"\n formControlName=\"{{ item.formControl }}\"\n value=\"{{ item.formControl }}\"\n label=\"{{ item.label }}\"\n ></p-checkbox>\n </div>\n }\n <!-- checkbox multiple -->\n @if (item.type === 'check-box-multi') {\n <div\n id=\"{{ item.id }}\"\n class=\"flex gap-3\"\n >\n @for (list of item.options; track list; let i = $index) {\n <div\n formArrayName=\"{{ item.formControl }}\"\n class=\"flex align-items-center gap-2\"\n >\n <div [formGroupName]=\"i\">\n <p-checkbox\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n (onChange)=\"onChange(item.onChange)\"\n binary=\"true\"\n formControlName=\"{{ list.code }}\"\n label=\"{{ list.description }}\"\n ></p-checkbox>\n </div>\n </div>\n }\n </div>\n }\n <!-- button -->\n @if (item.type == 'button') {\n <p-button\n id=\"{{ item.id }}\"\n styleClass=\"{{ item.buttonClass }} w-full mt-3\"\n (click)=\"item.onCLick()\"\n [disabled]=\"item.disabled\"\n icon=\"{{ item.iconButton }}\"\n label=\"{{ item.label }}\"\n ></p-button>\n }\n <!-- can -->\n @if (item.type == 'can') {\n <div id=\"{{ item.id }}\" class=\"area\">\n <video autoplay=\"true\" id=\"webCamera\"></video>\n <input type=\"text\" id=\"base_img\" name=\"base_img\" />\n <button type=\"button\" onclick=\"takeSnapShot()\">\n Tirar foto e salvar\n </button>\n <img id=\"imagemConvertida\" />\n <p id=\"caminhoImagem\" class=\"caminho-imagem\">\n <a href=\"\" target=\"_blank\" rel=\"noopener\"></a>\n </p>\n <script src=\"script.js\"></script>\n </div>\n }\n <!-- upload files -->\n @if (item.type === 'upload-files' && !item.disabled) {\n <div\n id=\"{{ item.id }}\"\n class=\"drag-image\"\n [style.border]=\"\r\n validateForm && control.controls[item.formControl].errors\r\n ? ' 1px dashed #f18282'\r\n : ' 1px dashed #d1d5db'\r\n \"\r\n >\n @if (filesView.length === 0) {\n <i class=\"pi pi-cloud-upload\"></i>\n }\n @if (filesView.length === 0) {\n <p>\n Clique ou arraste e solte um arquivo para anexar\n </p>\n }\n @if (filesView.length === 0) {\n <span>{{\n item.msgAcceptFiles\n }}</span>\n }\n <input\n id=\"fileInput\"\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n @for (f of filesView; track f) {\n <div>\n @if (f.type && f.type.includes('image')) {\n <div>\n <label class=\"preview-img\">\n @if (!f.content) {\n <img src=\"{{ getUrl(f) }}\" />\n }\n @if (f.content) {\n <img src=\"{{ f.content }}\" />\n }\n @if (item.viewNameFile) {\n <span>{{ f.name }}</span>\n }\n <input\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n <label>\n <i\n class=\"pi pi-times remove-file absolute\"\n (click)=\"onRemove(item.formControl, f)\"\n ></i\n ></label>\n </label>\n </div>\n }\n @if (f.type && !f.type.includes('image')) {\n <div>\n <label class=\"preview-img h-0 max-w-0 mh-75 m-0\">\n <label class=\"mr-3\">{{ f.name }}</label>\n <input\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n <label>\n <i\n class=\"pi pi-times remove-file absolute\"\n (click)=\"onRemove(f)\"\n ></i\n ></label>\n </label>\n </div>\n }\n </div>\n }\n </div>\n }\n <!-- upload files disabled -->\n <!-- <p-fileUpload mode=\"basic\" formControlName=\"{{item.formControl}}\" chooseLabel=\"Choose\"\n chooseIcon=\"pi pi-upload\" accept=\"image/*\" maxFileSize=\"1000000\" /> -->\n @if (item.type === 'upload-files' && item.disabled) {\n <div\n id=\"{{ item.id }}\"\n >\n <p-button\n (click)=\"op.toggle($event)\"\n icon=\"pi pi-paperclip\"\n label=\"Arquivos anexados\"\n ></p-button>\n <p-popover\n #op\n [style]=\"{ width: '450px' }\"\n [showCloseIcon]=\"true\"\n >\n <ng-template pTemplate=\"content\">\n @if (files.length > 0) {\n <p-table\n [value]=\"files\"\n selectionMode=\"single\"\n [(selection)]=\"selectedProduct\"\n (onRowSelect)=\"onRowSelect($event, op)\"\n responsiveLayout=\"scroll\"\n >\n <ng-template pTemplate=\"header\">\n <tr>\n <th pSortableColumn=\"name\">\n Nome<p-sortIcon field=\"name\"></p-sortIcon>\n </th>\n <th></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-file>\n <tr>\n @if (item.viewNameFile) {\n <td>{{ file.name }}</td>\n }\n <td>\n @if (item.onCLick) {\n <p-button\n icon=\"pi pi-download\"\n (click)=\"item.onCLick(file)\"\n ></p-button>\n }\n </td>\n </tr>\n </ng-template>\n </p-table>\n }\n @if (files.length === 0) {\n <div class=\"p-10\">\n <label>Nenhum arquivo anexado</label>\n </div>\n }\n </ng-template>\n </p-popover>\n </div>\n }\n <!-- list -->\n @if (item.type === 'list' && item.options) {\n <ul id=\"{{ item.id }}\">\n @for (list of item.options; track list) {\n <li>{{ list.description }}</li>\n }\n </ul>\n }\n <!-- multi -->\n @if (item.type === 'multi') {\n <p-multiSelect\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n styleClass=\"p-0 w-full\"\n optionLabel=\"description\"\n (onChange)=\"onChange(item.onChange)\"\n maxSelectedLabels=\"100\"\n ></p-multiSelect>\n }\n <!-- radioButton -->\n @if (item.type === 'radio-button') {\n <div\n id=\"{{ item.id }}\"\n class=\"flex gap-3\"\n >\n @for (listRadioButton of item.options; track listRadioButton) {\n <div\n class=\"flex align-items-center gap-2\"\n >\n <p-radioButton\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n [value]=\"listRadioButton.code\"\n formControlName=\"{{ item.formControl }}\"\n (onClick)=\"onChange(item.onChange)\"\n ></p-radioButton>\n <label>{{ listRadioButton.description }}</label>\n </div>\n }\n @if(control.controls[item.formControl].value == 'other'){\n <input\n pInputText\n type=\"text\"\n formControlName=\"{{ item.formControlOther }}\"\n />\n }\n </div>\n }\n <!-- selectButton -->\n @if (item.type === 'select-button') {\n <div class=\"d-flex\">\n <p-selectButton\n id=\"{{ item.id }}\"\n (onChange)=\"onChange(item.onChange)\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n optionValue=\"code\"\n >\n <ng-template let-item>\n <span>{{ item.description }}</span>\n </ng-template>\n </p-selectButton>\n <!-- <input type=\"text\" pInputText [attr.disabled]=\"item.disabled\"\n formControlName={{item.formControlSecondary}}> -->\n </div>\n }\n <!-- table -->\n @if (item.type === 'table') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n @for (col of columns; track col) {\n <th>\n @if (col.filed !== 'action') {\n <span>{{ col.header }}</span>\n }\n @if (col.filed === 'action') {\n <span>A\u00E7\u00E3o</span>\n }\n </th>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr>\n @for (col of columns; track col) {\n <td>\n @if (col.field !== 'button') {\n <div>\n {{ rowData[col.field] }}\n </div>\n }\n @if (col.field === 'action') {\n <div>\n @for (action of item.buttonsTable; track action) {\n <p-button\n styleClass=\"{{ action.styleClass }}\"\n label=\"{{ action.label }}\"\n (click)=\"action.onCLick(rowData)\"\n icon=\"{{ action.icon }}\"\n ></p-button>\n }\n </div>\n }\n </td>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"footer\" let-columns>\n @for (footer of item.rowsFooter; track footer) {\n <tr>\n <td colspan=\"12\">\n <span class=\"font-normal\">{{ footer.text }}:</span>\n {{ footer.value }}\n </td>\n </tr>\n }\n </ng-template>\n </p-table>\n }\n <!-- inputSwitch -->\n @if (item.type === 'switch') {\n <div class=\"d-flex\">\n <p-toggleswitch\n id=\"{{ item.id }}\"\n formControlName=\"{{ item.formControl }}\"\n class=\"mr-10\"\n (onChange)=\"onChange(item.onChange)\"\n ></p-toggleswitch>\n <p translate=\"{{ item.label }}\"></p>\n </div>\n }\n <!-- password -->\n @if (item.type === 'password') {\n <p-password\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n [feedback]=\"false\"\n formControlName=\"{{ item.formControl }}\"\n (onChange)=\"onChange(item.onChange)\"\n styleClass=\"w-full\"\n [toggleMask]=\"true\"\n ></p-password>\n }\n <!-- photo -->\n @if (item.type === 'photo') {\n <div id=\"{{ item.id }}\" class=\"camera\">\n <video id=\"video\" class=\"foto\" autoplay>\n V\u00EDdeo n\u00E3o dispon\u00EDvel.\n </video>\n <canvas id=\"canvas\" class=\"foto\" style=\"display: none\"></canvas>\n <button\n pButton\n icon=\"pi pi-times\"\n class=\"remove-file\"\n id=\"icon-remove\"\n [rounded]=\"true\"\n style=\"visibility: collapse\"\n (click)=\"removePhoto()\"\n ></button>\n <button\n pButton\n icon=\"pi pi-camera\"\n [rounded]=\"true\"\n (click)=\"capturePhoto(item.formControl)\"\n id=\"button\"\n ></button>\n </div>\n }\n <!-- likert -->\n @if (item.type === 'likert') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th class=\"fd-table-label-column\"></th>\n @for (col of columns; track col) {\n <th>\n <span>{{ col.header }}</span>\n </th>\n }\n </tr>\n </ng-template>\n <ng-template\n pTemplate=\"body\"\n let-row\n let-rowIndex=\"rowIndex\"\n let-columns=\"columns\"\n formArrayName=\"{{ item.formControl }}\"\n >\n <tr>\n <td>\n {{ row }}\n </td>\n @for (control of columns; track item; let index = $index) {\n <td [formGroupName]=\"rowIndex\">\n <p-radioButton\n value=\"{{ columns[index].field }}+{{ row }}\"\n formControlName=\"question{{ rowIndex }}\"\n />\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n }\n <!-- editable table -->\n @if (item.type === 'editable-table') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n editMode=\"cell\"\n >\n <!-- Cabe\u00E7alho da tabela -->\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th class=\"fd-table-label-column\"></th>\n @for (col of columns; track col) {\n <th>\n <span>{{ col.header }}</span>\n </th>\n }\n </tr>\n </ng-template>\n <!-- Corpo da tabela -->\n <ng-template\n pTemplate=\"body\"\n let-row\n let-rowIndex=\"rowIndex\"\n let-columns=\"columns\"\n formArrayName=\"{{ item.formControl }}\"\n let-editing=\"editing\"\n >\n <tr>\n <td>{{ row }}</td>\n @for (control of columns; track item; let index = $index) {\n <td\n [formGroupName]=\"rowIndex\"\n [pEditableColumn]=\"row\"\n pEditableColumnField=\"row\"\n >\n <p-cellEditor>\n <ng-template pTemplate=\"input\">\n <input\n pInputText\n type=\"text\"\n formControlName=\"_{{ control.field }}question{{\r\n rowIndex\r\n }}\"\r\n />\n </ng-template>\n <ng-template pTemplate=\"output\">\n <input\n pInputText\n type=\"text\"\n formControlName=\"_{{ control.field }}question{{\r\n rowIndex\r\n }}\"\r\n />\n </ng-template>\n </p-cellEditor>\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n }\n <!-- valida\u00E7\u00E3o de item -->\n <div>\n @if (validateForm && control.controls[item.formControl] && control.controls[item.formControl].errors?.['required']) {\n <small\n class=\"danger-text\"\n >\n Campo obrigat\u00F3rio\n </small>\n }\n @if (validateForm && control.controls[item.formControl] && control.controls[item.formControl].errors?.['email']) {\n <small\n class=\"danger-text\"\n >\n Email inv\u00E1lido\n </small>\n }\n </div>\n </div>\n </div>\n }\n @if (\n (buttonsStandard && buttonsStandard.length > 0) ||\n (buttonsOptional && buttonsOptional.length > 0)\n ) {\n <p-divider\n ></p-divider>\n }\n <div class=\"buttons-form\">\n @for (button of buttonsStandard; track button) {\n <div>\n @if (button.type === 'clean') {\n <p-button\n styleClass=\"p-button-warning {{ button.styleClass }}\"\n label=\"Limpar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-times\"\n ></p-button>\n }\n @if (button.type === 'filter') {\n <p-button\n styleClass=\"{{ button.styleClass }}\"\n label=\"Filtrar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-search\"\n ></p-button>\n }\n @if (button.type === 'save') {\n <p-button\n styleClass=\"p-button-success {{ button.styleClass }}\"\n label=\"Salvar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-save\"\n ></p-button>\n }\n @if (button.type === 'cancel') {\n <p-button\n styleClass=\"p-button-danger {{ button.styleClass }}\"\n label=\"Cancelar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-times\"\n ></p-button>\n }\n </div>\n }\n @for (button of buttonsOptional; track button) {\n <div>\n <p-button\n styleClass=\"{{ button.styleClass }}\"\n label=\"{{ button.label }}\"\n (click)=\"button.onCLick()\"\n icon=\"{{ button.icon }}\"\n ></p-button>\n </div>\n }\n </div>\n </div>\n </form>\n }\n </div>\n", styles: [".div-title span{font-size:20px;font-weight:500}.buttons-form{display:flex;gap:10px;justify-content:flex-end}.danger-text{color:#f18282}.drag-image{height:auto;width:100%;border-radius:10px;font-weight:400;display:flex;align-items:center;flex-direction:column;top:20px;max-height:250px;color:#000;padding:20px;text-align:center;overflow:auto}.drag-image h6{font-size:20px}.drag-image .file-name{font-size:14px}.drag-image i{font-size:3rem}.subtitle span{font-size:14px;margin-right:5px}.subtitle{align-items:baseline}.mh-75{min-height:75px!important}input[type=file]{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer}.preview-img{align-items:center;border-radius:5px;display:flex;height:140px;justify-content:center;margin:10px;max-width:180px;min-height:140px;min-width:180px;padding:0 20px;position:relative}.preview-img span{position:absolute;overflow-wrap:break-word}.remove-file{display:flex;justify-content:center;align-items:center;height:22px;width:22px;top:5px;right:5px;border-radius:50%;background:#bbb;color:#333;cursor:pointer;font-size:.8rem!important}.preview-img img{max-width:100%;opacity:.8}.camera{display:flex;flex-direction:column;align-items:center;position:relative}.foto{max-width:186px;min-height:140px;min-width:180px;border:1px dashed #000;border-radius:5px;margin-bottom:1em}.preview-photo{position:relative}.h-0{height:0}.fd-table-label-column{width:4rem}\n"], dependencies: [{ kind: "component", type: i3.InputMask, selector: "p-inputmask, p-inputMask, p-input-mask", inputs: ["type", "slotChar", "autoClear", "showClear", "style", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabel", "ariaLabelledBy", "ariaRequired", "readonly", "unmask", "characterPattern", "autofocus", "autocomplete", "keepBuffer", "mask"], outputs: ["onComplete", "onFocus", "onBlur", "onInput", "onKeydown", "onClear"] }, { kind: "directive", type: i4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i5.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "component", type: i6.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "toggleMask", "inputStyleClass", "styleClass", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "tabindex", "appendTo", "motionOptions", "overlayOptions"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "directive", type: i7.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "pButtonPT", "pButtonUnstyled", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "component", type: i7.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i8.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i8.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "directive", type: i8.EditableColumn, selector: "[pEditableColumn]", inputs: ["pEditableColumn", "pEditableColumnField", "pEditableColumnRowIndex", "pEditableColumnDisabled", "pFocusCellSelector"] }, { kind: "component", type: i8.CellEditor, selector: "p-cellEditor" }, { kind: "component", type: i8.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "component", type: i9.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "directive", type: i10.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i11.SelectButton, selector: "p-selectButton, p-selectbutton, p-select-button", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "unselectable", "tabindex", "multiple", "allowEmpty", "styleClass", "ariaLabelledBy", "dataKey", "autofocus", "size", "fluid"], outputs: ["onOptionClick", "onChange"] }, { kind: "component", type: i12.ToggleSwitch, selector: "p-toggleswitch, p-toggleSwitch, p-toggle-switch", inputs: ["styleClass", "tabindex", "inputId", "readonly", "trueValue", "falseValue", "ariaLabel", "size", "ariaLabelledBy", "autofocus"], outputs: ["onChange"] }, { kind: "component", type: i13.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "directive", type: i14.Textarea, selector: "[pTextarea], [pInputTextarea]", inputs: ["pTextareaPT", "pTextareaUnstyled", "autoResize", "pSize", "variant", "fluid", "invalid"], outputs: ["onResize"] }, { kind: "directive", type: i15.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: i16.Divider, selector: "p-divider", inputs: ["styleClass", "layout", "type", "align"] }, { kind: "component", type: i17.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "component", type: i18.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: i19.TreeSelect, selector: "p-treeSelect, p-treeselect, p-tree-select", inputs: ["inputId", "scrollHeight", "metaKeySelection", "display", "selectionMode", "tabindex", "ariaLabel", "ariaLabelledBy", "placeholder", "panelClass", "panelStyle", "panelStyleClass", "containerStyle", "containerStyleClass", "labelStyle", "labelStyleClass", "overlayOptions", "emptyMessage", "filter", "filterBy", "filterMode", "filterPlaceholder", "filterLocale", "filterInputAutoFocus", "propagateSelectionDown", "propagateSelectionUp", "showClear", "resetFilterOnHide", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autofocus", "options", "loading", "loadingMode", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onNodeExpand", "onNodeCollapse", "onShow", "onHide", "onClear", "onFilter", "onFocus", "onBlur", "onNodeUnselect", "onNodeSelect"] }, { kind: "component", type: i20.RadioButton, selector: "p-radioButton, p-radiobutton, p-radio-button", inputs: ["value", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "styleClass", "autofocus", "binary", "variant", "size"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i21.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo", "motionOptions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i2.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "component", type: i22.Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "component", type: i23.Editor, selector: "p-editor", inputs: ["style", "styleClass", "placeholder", "formats", "modules", "bounds", "scrollingContainer", "debug", "readonly"], outputs: ["onInit", "onTextChange", "onSelectionChange", "onEditorChange", "onFocus", "onBlur"] }, { kind: "directive", type: i1.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
189
189
|
}
|
|
190
190
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: FormDynamicAngularComponent, decorators: [{
|
|
191
191
|
type: Component,
|
|
192
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'form-dynamic-angular', standalone: false, template: "<div>\n @if (title) {\n <div class=\"div-title\">\n <span translate=\"{{ title }}\"></span>\n @if (subTitle) {\n <div class=\"flex subtitle\">\n <span translate=\"{{ subTitle }}\"></span>\n </div>\n }\n <p-divider></p-divider>\n </div>\n }\n @if (control) {\n <form [formGroup]=\"control\">\n <div class=\"grid\">\n @for (item of form; track item) {\n <div class=\"{{ item.col }} col-12\">\n @if (item.label && !item.hideLabelTop) {\n <label>{{ item.label }}</label>\n }\n @if (item.required && item.label) {\n <label class=\"danger-text ml-2\"\n >*</label\n >\n }\n <div class=\"mt-2\">\n <!-- text -->\n @if (item.type == 'text' || item.type == 'number') {\n <input\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n pInputText\n placeholder=\"{{ item.placeholder }}\"\n type=\"{{ item.type }}\"\n formControlName=\"{{ item.formControl }}\"\n class=\"w-full\"\n />\n }\n @if (item.type == 'editor') {\n <p-editor\n formControlName=\"{{ item.formControl }}\"\n [style]=\"{ height: '320px' }\"\n />\n }\n <!-- select -->\n @if (item.type === 'select') {\n <p-select\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n [filter]=\"item.search\"\n emptyFilterMessage=\"Nenhum dado encontrado\"\n emptyMessage=\"Nenhum dado encontrado\"\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full p-0\"\n (onChange)=\"onChange(item.onChange)\"\n [showClear]=\"true\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n optionLabel=\"description\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-select>\n }\n <!-- currency -->\n @if (item.type === 'currency') {\n <p-inputNumber\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n placeholder=\"{{ item.placeholder }}\"\n inputStyleClass=\"w-full\"\n styleClass=\"w-full\"\n (onKeyDown)=\"onChange(item.onChange)\"\n mode=\"currency\"\n [min]=\"0\"\n currency=\"BRL\"\n >\n </p-inputNumber>\n }\n <!-- mask -->\n @if (item.type === 'mask') {\n <p-inputMask\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full\"\n (onComplete)=\"onChange(item.onChange)\"\n mask=\"{{ item.mask }}\"\n unmask=\"{{ item.unmask }}\"\n (onClear)=\"clickCLear(item.onCLear)\"\n showClear=\"true\"\n ></p-inputMask>\n }\n <!-- treeSelect -->\n @if (item.type === 'tree-select') {\n <p-treeSelect\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n (onNodeSelect)=\"onChange(item.onChange)\"\n containerStyleClass=\"w-full p-0\"\n formControlName=\"{{ item.formControl }}\"\n [options]=\"item.treeSelectOptions\"\n [filter]=\"true\"\n [filterInputAutoFocus]=\"true\"\n emptyMessage=\"Nenhum dado encontrado\"\n [showClear]=\"true\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-treeSelect>\n }\n <!-- autoComplete -->\n @if (item.type === 'autocomplete') {\n <p-autoComplete\n inputId=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full p-0\"\n [inputStyle]=\"{ width: '100%' }\"\n (onSelect)=\"onChange(item.onChange)\"\n formControlName=\"{{ item.formControl }}\"\n [suggestions]=\"filteredAutoComplete\"\n (completeMethod)=\"filterAutoComplete($event, item.options)\"\n [forceSelection]=\"false\"\n [showEmptyMessage]=\"true\"\n emptyMessage=\"Nenhum dado encontrado\"\n dataKey=\"code\"\n optionLabel=\"description\"\n showClear=\"true\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-autoComplete>\n }\n <!-- date -->\n @if (item.type === 'date') {\n <p-datepicker\n id=\"{{ item.id }}\"\n view=\"{{ item.viewDate }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n styleClass=\"w-full\"\n [numberOfMonths]=\"numberOfMonthsDate(item.numberOfMonthsDate)\"\n [selectionMode]=\"selectionMode(item.selectionMode)\"\n (onFocus)=\"onChange(item.onFocusDate)\"\n [maxDate]=\"item.maxDate\"\n [minDate]=\"item.minDate\"\n dateFormat=\"{{ item.dateFormat }}\"\n (onSelect)=\"onChange(item.onChange)\"\n [iconDisplay]=\"'input'\"\n placeholder=\"{{ item.placeholder }}\"\n [showIcon]=\"true\"\n [showTime]=\"item.showTime\"\n [timeOnly]=\"item.timeOnly\"\n ></p-datepicker>\n }\n <!-- textarea -->\n @if (item.type === 'text-area') {\n <div class=\"text-right\">\n <textarea\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n class=\"w-full\"\n maxlength=\"{{ item.maxlength }}\"\n counterTemplate=\"{1} of 50, {0} remaining\"\n counter=\"display\"\n (attr.change)=\"onChange(item.onChange)\"\n pTextarea\n formControlName=\"{{ item.formControl }}\"\n rows=\"{{ item.rowsTextArea }}\"\n ></textarea>\n @if (item.maxlength) {\n <small id=\"username-help\">\n {{ control.controls[item.formControl].value.length }}/{{\n item.maxlength\n }}\n </small>\n }\n </div>\n }\n <!-- checkbox -->\n @if (item.type == 'check-box') {\n <div>\n <p-checkbox\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n (onChange)=\"onChange(item.onChange)\"\n binary=\"true\"\n formControlName=\"{{ item.formControl }}\"\n value=\"{{ item.formControl }}\"\n label=\"{{ item.label }}\"\n ></p-checkbox>\n </div>\n }\n <!-- checkbox multiple -->\n @if (item.type === 'check-box-multi') {\n <div\n id=\"{{ item.id }}\"\n class=\"flex gap-3\"\n >\n @for (list of item.options; track list; let i = $index) {\n <div\n formArrayName=\"{{ item.formControl }}\"\n class=\"flex align-items-center gap-2\"\n >\n <div [formGroupName]=\"i\">\n <p-checkbox\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n (onChange)=\"onChange(item.onChange)\"\n binary=\"true\"\n formControlName=\"{{ list.code }}\"\n label=\"{{ list.description }}\"\n ></p-checkbox>\n </div>\n </div>\n }\n </div>\n }\n <!-- button -->\n @if (item.type == 'button') {\n <p-button\n id=\"{{ item.id }}\"\n styleClass=\"{{ item.buttonClass }} w-full mt-3\"\n (click)=\"item.onCLick()\"\n [disabled]=\"item.disabled\"\n icon=\"{{ item.iconButton }}\"\n label=\"{{ item.label }}\"\n ></p-button>\n }\n <!-- can -->\n @if (item.type == 'can') {\n <div id=\"{{ item.id }}\" class=\"area\">\n <video autoplay=\"true\" id=\"webCamera\"></video>\n <input type=\"text\" id=\"base_img\" name=\"base_img\" />\n <button type=\"button\" onclick=\"takeSnapShot()\">\n Tirar foto e salvar\n </button>\n <img id=\"imagemConvertida\" />\n <p id=\"caminhoImagem\" class=\"caminho-imagem\">\n <a href=\"\" target=\"_blank\" rel=\"noopener\"></a>\n </p>\n <script src=\"script.js\"></script>\n </div>\n }\n <!-- upload files -->\n @if (item.type === 'upload-files' && !item.disabled) {\n <div\n id=\"{{ item.id }}\"\n class=\"drag-image\"\n [style.border]=\"\r\n validateForm && control.controls[item.formControl].errors\r\n ? ' 1px dashed #f18282'\r\n : ' 1px dashed #d1d5db'\r\n \"\r\n >\n @if (filesView.length === 0) {\n <i class=\"pi pi-cloud-upload\"></i>\n }\n @if (filesView.length === 0) {\n <p>\n Clique ou arraste e solte um arquivo para anexar\n </p>\n }\n @if (filesView.length === 0) {\n <span>{{\n item.msgAcceptFiles\n }}</span>\n }\n <input\n id=\"fileInput\"\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n @for (f of filesView; track f) {\n <div>\n @if (f.type && f.type.includes('image')) {\n <div>\n <label class=\"preview-img\">\n @if (!f.content) {\n <img src=\"{{ getUrl(f) }}\" />\n }\n @if (f.content) {\n <img src=\"{{ f.content }}\" />\n }\n @if (item.viewNameFile) {\n <span>{{ f.name }}</span>\n }\n <input\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n <label>\n <i\n class=\"pi pi-times remove-file absolute\"\n (click)=\"onRemove(item.formControl, f)\"\n ></i\n ></label>\n </label>\n </div>\n }\n @if (f.type && !f.type.includes('image')) {\n <div>\n <label class=\"preview-img h-0 max-w-0 mh-75 m-0\">\n <label class=\"mr-3\">{{ f.name }}</label>\n <input\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n <label>\n <i\n class=\"pi pi-times remove-file absolute\"\n (click)=\"onRemove(f)\"\n ></i\n ></label>\n </label>\n </div>\n }\n </div>\n }\n </div>\n }\n <!-- upload files disabled -->\n <!-- <p-fileUpload mode=\"basic\" formControlName=\"{{item.formControl}}\" chooseLabel=\"Choose\"\n chooseIcon=\"pi pi-upload\" accept=\"image/*\" maxFileSize=\"1000000\" /> -->\n @if (item.type === 'upload-files' && item.disabled) {\n <div\n id=\"{{ item.id }}\"\n >\n <p-button\n (click)=\"op.toggle($event)\"\n icon=\"pi pi-paperclip\"\n label=\"Arquivos anexados\"\n ></p-button>\n <p-popover\n #op\n [style]=\"{ width: '450px' }\"\n [showCloseIcon]=\"true\"\n >\n <ng-template pTemplate=\"content\">\n @if (files.length > 0) {\n <p-table\n [value]=\"files\"\n selectionMode=\"single\"\n [(selection)]=\"selectedProduct\"\n (onRowSelect)=\"onRowSelect($event, op)\"\n responsiveLayout=\"scroll\"\n >\n <ng-template pTemplate=\"header\">\n <tr>\n <th pSortableColumn=\"name\">\n Nome<p-sortIcon field=\"name\"></p-sortIcon>\n </th>\n <th></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-file>\n <tr>\n @if (item.viewNameFile) {\n <td>{{ file.name }}</td>\n }\n <td>\n @if (item.onCLick) {\n <p-button\n icon=\"pi pi-download\"\n (click)=\"item.onCLick(file)\"\n ></p-button>\n }\n </td>\n </tr>\n </ng-template>\n </p-table>\n }\n @if (files.length === 0) {\n <div class=\"p-10\">\n <label>Nenhum arquivo anexado</label>\n </div>\n }\n </ng-template>\n </p-popover>\n </div>\n }\n <!-- list -->\n @if (item.type === 'list' && item.options) {\n <ul id=\"{{ item.id }}\">\n @for (list of item.options; track list) {\n <li>{{ list.description }}</li>\n }\n </ul>\n }\n <!-- multi -->\n @if (item.type === 'multi') {\n <p-multiSelect\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n styleClass=\"p-0 w-full\"\n optionLabel=\"description\"\n (onChange)=\"onChange(item.onChange)\"\n maxSelectedLabels=\"100\"\n ></p-multiSelect>\n }\n <!-- radioButton -->\n @if (item.type === 'radio-button') {\n <div\n id=\"{{ item.id }}\"\n class=\"flex gap-3\"\n >\n @for (listRadioButton of item.options; track listRadioButton) {\n <div\n class=\"flex align-items-center gap-2\"\n >\n <p-radioButton\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n [value]=\"listRadioButton.code\"\n formControlName=\"{{ item.formControl }}\"\n (onClick)=\"onChange(item.onChange)\"\n ></p-radioButton>\n <label>{{ listRadioButton.description }}</label>\n </div>\n }\n @if(control.controls[item.formControl].value == 'other'){\n <input\n pInputText\n type=\"text\"\n formControlName=\"{{ item.formControlOther }}\"\n />\n }\n </div>\n }\n <!-- selectButton -->\n @if (item.type === 'select-button') {\n <div class=\"d-flex\">\n <p-selectButton\n id=\"{{ item.id }}\"\n (onChange)=\"onChange(item.onChange)\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n optionValue=\"code\"\n >\n <ng-template let-item>\n <span>{{ item.description }}</span>\n </ng-template>\n </p-selectButton>\n <!-- <input type=\"text\" pInputText [attr.disabled]=\"item.disabled\"\n formControlName={{item.formControlSecondary}}> -->\n </div>\n }\n <!-- table -->\n @if (item.type === 'table') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n @for (col of columns; track col) {\n <th>\n @if (col.filed !== 'action') {\n <span>{{ col.header }}</span>\n }\n @if (col.filed === 'action') {\n <span>A\u00E7\u00E3o</span>\n }\n </th>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr>\n @for (col of columns; track col) {\n <td>\n @if (col.field !== 'button') {\n <div>\n {{ rowData[col.field] }}\n </div>\n }\n @if (col.field === 'action') {\n <div>\n @for (action of item.buttonsTable; track action) {\n <p-button\n styleClass=\"{{ action.styleClass }}\"\n label=\"{{ action.label }}\"\n (click)=\"action.onCLick(rowData)\"\n icon=\"{{ action.icon }}\"\n ></p-button>\n }\n </div>\n }\n </td>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"footer\" let-columns>\n @for (footer of item.rowsFooter; track footer) {\n <tr>\n <td colspan=\"12\">\n <span class=\"font-normal\">{{ footer.text }}:</span>\n {{ footer.value }}\n </td>\n </tr>\n }\n </ng-template>\n </p-table>\n }\n <!-- inputSwitch -->\n @if (item.type === 'switch') {\n <div class=\"d-flex\">\n <p-toggleswitch\n id=\"{{ item.id }}\"\n formControlName=\"{{ item.formControl }}\"\n class=\"mr-10\"\n (onChange)=\"onChange(item.onChange)\"\n ></p-toggleswitch>\n <p translate=\"{{ item.label }}\"></p>\n </div>\n }\n <!-- password -->\n @if (item.type === 'password') {\n <p-password\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n [feedback]=\"false\"\n formControlName=\"{{ item.formControl }}\"\n (onChange)=\"onChange(item.onChange)\"\n styleClass=\"w-full\"\n [toggleMask]=\"true\"\n ></p-password>\n }\n <!-- photo -->\n @if (item.type === 'photo') {\n <div id=\"{{ item.id }}\" class=\"camera\">\n <video id=\"video\" class=\"foto\" autoplay>\n V\u00EDdeo n\u00E3o dispon\u00EDvel.\n </video>\n <canvas id=\"canvas\" class=\"foto\" style=\"display: none\"></canvas>\n <button\n pButton\n icon=\"pi pi-times\"\n class=\"remove-file\"\n id=\"icon-remove\"\n [rounded]=\"true\"\n style=\"visibility: collapse\"\n (click)=\"removePhoto()\"\n ></button>\n <button\n pButton\n icon=\"pi pi-camera\"\n [rounded]=\"true\"\n (click)=\"capturePhoto(item.formControl)\"\n id=\"button\"\n ></button>\n </div>\n }\n <!-- likert -->\n @if (item.type === 'likert') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th style=\"width: 4rem\"></th>\n @for (col of columns; track col) {\n <th>\n <span>{{ col.header }}</span>\n </th>\n }\n </tr>\n </ng-template>\n <ng-template\n pTemplate=\"body\"\n let-row\n let-rowIndex=\"rowIndex\"\n let-columns=\"columns\"\n formArrayName=\"{{ item.formControl }}\"\n >\n <tr>\n <td>\n {{ row }}\n </td>\n @for (control of columns; track item; let index = $index) {\n <td [formGroupName]=\"rowIndex\">\n <p-radioButton\n value=\"{{ columns[index].field }}+{{ row }}\"\n formControlName=\"question{{ rowIndex }}\"\n />\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n }\n <!-- editable table -->\n @if (item.type === 'editable-table') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n editMode=\"cell\"\n >\n <!-- Cabe\u00E7alho da tabela -->\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th style=\"width: 4rem\"></th>\n @for (col of columns; track col) {\n <th>\n <span>{{ col.header }}</span>\n </th>\n }\n </tr>\n </ng-template>\n <!-- Corpo da tabela -->\n <ng-template\n pTemplate=\"body\"\n let-row\n let-rowIndex=\"rowIndex\"\n let-columns=\"columns\"\n formArrayName=\"{{ item.formControl }}\"\n let-editing=\"editing\"\n >\n <tr>\n <td>{{ row }}</td>\n @for (control of columns; track item; let index = $index) {\n <td\n [formGroupName]=\"rowIndex\"\n [pEditableColumn]=\"row\"\n pEditableColumnField=\"row\"\n >\n <p-cellEditor>\n <ng-template pTemplate=\"input\">\n <input\n pInputText\n type=\"text\"\n formControlName=\"_{{ control.field }}question{{\r\n rowIndex\r\n }}\"\r\n />\n </ng-template>\n <ng-template pTemplate=\"output\">\n <input\n pInputText\n type=\"text\"\n formControlName=\"_{{ control.field }}question{{\r\n rowIndex\r\n }}\"\r\n />\n </ng-template>\n </p-cellEditor>\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n }\n <!-- valida\u00E7\u00E3o de item -->\n <div>\n @if (validateForm && control.controls[item.formControl] && control.controls[item.formControl].errors?.['required']) {\n <small\n class=\"danger-text\"\n >\n Campo obrigat\u00F3rio\n </small>\n }\n @if (validateForm && control.controls[item.formControl] && control.controls[item.formControl].errors?.['email']) {\n <small\n class=\"danger-text\"\n >\n Email inv\u00E1lido\n </small>\n }\n </div>\n </div>\n </div>\n }\n @if (\n (buttonsStandard && buttonsStandard.length > 0) ||\n (buttonsOptional && buttonsOptional.length > 0)\n ) {\n <p-divider\n ></p-divider>\n }\n <div class=\"buttons-form\">\n @for (button of buttonsStandard; track button) {\n <div>\n @if (button.type === 'clean') {\n <p-button\n styleClass=\"p-button-warning {{ button.styleClass }}\"\n label=\"Limpar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-times\"\n ></p-button>\n }\n @if (button.type === 'filter') {\n <p-button\n styleClass=\"{{ button.styleClass }}\"\n label=\"Filtrar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-search\"\n ></p-button>\n }\n @if (button.type === 'save') {\n <p-button\n styleClass=\"p-button-success {{ button.styleClass }}\"\n label=\"Salvar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-save\"\n ></p-button>\n }\n @if (button.type === 'cancel') {\n <p-button\n styleClass=\"p-button-danger {{ button.styleClass }}\"\n label=\"Cancelar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-times\"\n ></p-button>\n }\n </div>\n }\n @for (button of buttonsOptional; track button) {\n <div>\n <p-button\n styleClass=\"{{ button.styleClass }}\"\n label=\"{{ button.label }}\"\n (click)=\"button.onCLick()\"\n icon=\"{{ button.icon }}\"\n ></p-button>\n </div>\n }\n </div>\n </div>\n </form>\n }\n </div>\n", styles: [".div-title span{font-size:20px;font-weight:500}.buttons-form{display:flex;gap:10px;justify-content:flex-end}.danger-text{color:#f18282}.drag-image{height:auto;width:100%;border-radius:10px;font-weight:400;display:flex;align-items:center;flex-direction:column;top:20px;max-height:250px;color:#000;padding:20px;text-align:center;overflow:auto}.drag-image h6{font-size:20px}.drag-image .file-name{font-size:14px}.drag-image i{font-size:3rem}.subtitle span{font-size:14px;margin-right:5px}.subtitle{align-items:baseline}.mh-75{min-height:75px!important}input[type=file]{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer}.preview-img{align-items:center;border-radius:5px;display:flex;height:140px;justify-content:center;margin:10px;max-width:180px;min-height:140px;min-width:180px;padding:0 20px;position:relative}.preview-img span{position:absolute;overflow-wrap:break-word}.remove-file{display:flex;justify-content:center;align-items:center;height:22px;width:22px;top:5px;right:5px;border-radius:50%;background:#bbb;color:#333;cursor:pointer;font-size:.8rem!important}.preview-img img{max-width:100%;opacity:.8}.camera{display:flex;flex-direction:column;align-items:center;position:relative}.foto{max-width:186px;min-height:140px;min-width:180px;border:1px dashed #000;border-radius:5px;margin-bottom:1em}.preview-photo{position:relative}.h-0{height:0}\n"] }]
|
|
192
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'form-dynamic-angular', standalone: false, template: "<div>\n @if (title) {\n <div class=\"div-title\">\n <span translate=\"{{ title }}\"></span>\n @if (subTitle) {\n <div class=\"flex subtitle\">\n <span translate=\"{{ subTitle }}\"></span>\n </div>\n }\n <p-divider></p-divider>\n </div>\n }\n @if (control) {\n <form [formGroup]=\"control\">\n <div class=\"grid\">\n @for (item of form; track item) {\n <div class=\"{{ item.col }} col-12\">\n @if (item.label && !item.hideLabelTop) {\n <label>{{ item.label }}</label>\n }\n @if (item.required && item.label) {\n <label class=\"danger-text ml-2\"\n >*</label\n >\n }\n <div class=\"mt-2\">\n <!-- text -->\n @if (item.type == 'text' || item.type == 'number') {\n <input\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n pInputText\n placeholder=\"{{ item.placeholder }}\"\n type=\"{{ item.type }}\"\n formControlName=\"{{ item.formControl }}\"\n class=\"w-full\"\n />\n }\n @if (item.type == 'editor') {\n <p-editor\n formControlName=\"{{ item.formControl }}\"\n [style]=\"{ height: '320px' }\"\n />\n }\n <!-- select -->\n @if (item.type === 'select') {\n <p-select\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n [filter]=\"item.search\"\n emptyFilterMessage=\"Nenhum dado encontrado\"\n emptyMessage=\"Nenhum dado encontrado\"\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full p-0\"\n (onChange)=\"onChange(item.onChange)\"\n [showClear]=\"true\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n optionLabel=\"description\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-select>\n }\n <!-- currency -->\n @if (item.type === 'currency') {\n <p-inputNumber\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n placeholder=\"{{ item.placeholder }}\"\n inputStyleClass=\"w-full\"\n styleClass=\"w-full\"\n (onKeyDown)=\"onChange(item.onChange)\"\n mode=\"currency\"\n [min]=\"0\"\n currency=\"BRL\"\n >\n </p-inputNumber>\n }\n <!-- mask -->\n @if (item.type === 'mask') {\n <p-inputMask\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full\"\n (onComplete)=\"onChange(item.onChange)\"\n mask=\"{{ item.mask }}\"\n unmask=\"{{ item.unmask }}\"\n (onClear)=\"clickCLear(item.onCLear)\"\n showClear=\"true\"\n ></p-inputMask>\n }\n <!-- treeSelect -->\n @if (item.type === 'tree-select') {\n <p-treeSelect\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n (onNodeSelect)=\"onChange(item.onChange)\"\n containerStyleClass=\"w-full p-0\"\n formControlName=\"{{ item.formControl }}\"\n [options]=\"item.treeSelectOptions\"\n [filter]=\"true\"\n [filterInputAutoFocus]=\"true\"\n emptyMessage=\"Nenhum dado encontrado\"\n [showClear]=\"true\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-treeSelect>\n }\n <!-- autoComplete -->\n @if (item.type === 'autocomplete') {\n <p-autoComplete\n inputId=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full p-0\"\n [inputStyle]=\"{ width: '100%' }\"\n (onSelect)=\"onChange(item.onChange)\"\n formControlName=\"{{ item.formControl }}\"\n [suggestions]=\"filteredAutoComplete\"\n (completeMethod)=\"filterAutoComplete($event, item.options)\"\n [forceSelection]=\"false\"\n [showEmptyMessage]=\"true\"\n emptyMessage=\"Nenhum dado encontrado\"\n dataKey=\"code\"\n optionLabel=\"description\"\n showClear=\"true\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-autoComplete>\n }\n <!-- date -->\n @if (item.type === 'date') {\n <p-datepicker\n id=\"{{ item.id }}\"\n view=\"{{ item.viewDate }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n styleClass=\"w-full\"\n [numberOfMonths]=\"numberOfMonthsDate(item.numberOfMonthsDate)\"\n [selectionMode]=\"selectionMode(item.selectionMode)\"\n (onFocus)=\"onChange(item.onFocusDate)\"\n [maxDate]=\"item.maxDate\"\n [minDate]=\"item.minDate\"\n dateFormat=\"{{ item.dateFormat }}\"\n (onSelect)=\"onChange(item.onChange)\"\n [iconDisplay]=\"'input'\"\n placeholder=\"{{ item.placeholder }}\"\n [showIcon]=\"true\"\n [showTime]=\"item.showTime\"\n [timeOnly]=\"item.timeOnly\"\n ></p-datepicker>\n }\n <!-- textarea -->\n @if (item.type === 'text-area') {\n <div class=\"text-right\">\n <textarea\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n class=\"w-full\"\n maxlength=\"{{ item.maxlength }}\"\n counterTemplate=\"{1} of 50, {0} remaining\"\n counter=\"display\"\n (attr.change)=\"onChange(item.onChange)\"\n pTextarea\n formControlName=\"{{ item.formControl }}\"\n rows=\"{{ item.rowsTextArea }}\"\n ></textarea>\n @if (item.maxlength) {\n <small id=\"username-help\">\n {{ control.controls[item.formControl].value.length }}/{{\n item.maxlength\n }}\n </small>\n }\n </div>\n }\n <!-- checkbox -->\n @if (item.type == 'check-box') {\n <div>\n <p-checkbox\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n (onChange)=\"onChange(item.onChange)\"\n binary=\"true\"\n formControlName=\"{{ item.formControl }}\"\n value=\"{{ item.formControl }}\"\n label=\"{{ item.label }}\"\n ></p-checkbox>\n </div>\n }\n <!-- checkbox multiple -->\n @if (item.type === 'check-box-multi') {\n <div\n id=\"{{ item.id }}\"\n class=\"flex gap-3\"\n >\n @for (list of item.options; track list; let i = $index) {\n <div\n formArrayName=\"{{ item.formControl }}\"\n class=\"flex align-items-center gap-2\"\n >\n <div [formGroupName]=\"i\">\n <p-checkbox\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n (onChange)=\"onChange(item.onChange)\"\n binary=\"true\"\n formControlName=\"{{ list.code }}\"\n label=\"{{ list.description }}\"\n ></p-checkbox>\n </div>\n </div>\n }\n </div>\n }\n <!-- button -->\n @if (item.type == 'button') {\n <p-button\n id=\"{{ item.id }}\"\n styleClass=\"{{ item.buttonClass }} w-full mt-3\"\n (click)=\"item.onCLick()\"\n [disabled]=\"item.disabled\"\n icon=\"{{ item.iconButton }}\"\n label=\"{{ item.label }}\"\n ></p-button>\n }\n <!-- can -->\n @if (item.type == 'can') {\n <div id=\"{{ item.id }}\" class=\"area\">\n <video autoplay=\"true\" id=\"webCamera\"></video>\n <input type=\"text\" id=\"base_img\" name=\"base_img\" />\n <button type=\"button\" onclick=\"takeSnapShot()\">\n Tirar foto e salvar\n </button>\n <img id=\"imagemConvertida\" />\n <p id=\"caminhoImagem\" class=\"caminho-imagem\">\n <a href=\"\" target=\"_blank\" rel=\"noopener\"></a>\n </p>\n <script src=\"script.js\"></script>\n </div>\n }\n <!-- upload files -->\n @if (item.type === 'upload-files' && !item.disabled) {\n <div\n id=\"{{ item.id }}\"\n class=\"drag-image\"\n [style.border]=\"\r\n validateForm && control.controls[item.formControl].errors\r\n ? ' 1px dashed #f18282'\r\n : ' 1px dashed #d1d5db'\r\n \"\r\n >\n @if (filesView.length === 0) {\n <i class=\"pi pi-cloud-upload\"></i>\n }\n @if (filesView.length === 0) {\n <p>\n Clique ou arraste e solte um arquivo para anexar\n </p>\n }\n @if (filesView.length === 0) {\n <span>{{\n item.msgAcceptFiles\n }}</span>\n }\n <input\n id=\"fileInput\"\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n @for (f of filesView; track f) {\n <div>\n @if (f.type && f.type.includes('image')) {\n <div>\n <label class=\"preview-img\">\n @if (!f.content) {\n <img src=\"{{ getUrl(f) }}\" />\n }\n @if (f.content) {\n <img src=\"{{ f.content }}\" />\n }\n @if (item.viewNameFile) {\n <span>{{ f.name }}</span>\n }\n <input\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n <label>\n <i\n class=\"pi pi-times remove-file absolute\"\n (click)=\"onRemove(item.formControl, f)\"\n ></i\n ></label>\n </label>\n </div>\n }\n @if (f.type && !f.type.includes('image')) {\n <div>\n <label class=\"preview-img h-0 max-w-0 mh-75 m-0\">\n <label class=\"mr-3\">{{ f.name }}</label>\n <input\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n <label>\n <i\n class=\"pi pi-times remove-file absolute\"\n (click)=\"onRemove(f)\"\n ></i\n ></label>\n </label>\n </div>\n }\n </div>\n }\n </div>\n }\n <!-- upload files disabled -->\n <!-- <p-fileUpload mode=\"basic\" formControlName=\"{{item.formControl}}\" chooseLabel=\"Choose\"\n chooseIcon=\"pi pi-upload\" accept=\"image/*\" maxFileSize=\"1000000\" /> -->\n @if (item.type === 'upload-files' && item.disabled) {\n <div\n id=\"{{ item.id }}\"\n >\n <p-button\n (click)=\"op.toggle($event)\"\n icon=\"pi pi-paperclip\"\n label=\"Arquivos anexados\"\n ></p-button>\n <p-popover\n #op\n [style]=\"{ width: '450px' }\"\n [showCloseIcon]=\"true\"\n >\n <ng-template pTemplate=\"content\">\n @if (files.length > 0) {\n <p-table\n [value]=\"files\"\n selectionMode=\"single\"\n [(selection)]=\"selectedProduct\"\n (onRowSelect)=\"onRowSelect($event, op)\"\n responsiveLayout=\"scroll\"\n >\n <ng-template pTemplate=\"header\">\n <tr>\n <th pSortableColumn=\"name\">\n Nome<p-sortIcon field=\"name\"></p-sortIcon>\n </th>\n <th></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-file>\n <tr>\n @if (item.viewNameFile) {\n <td>{{ file.name }}</td>\n }\n <td>\n @if (item.onCLick) {\n <p-button\n icon=\"pi pi-download\"\n (click)=\"item.onCLick(file)\"\n ></p-button>\n }\n </td>\n </tr>\n </ng-template>\n </p-table>\n }\n @if (files.length === 0) {\n <div class=\"p-10\">\n <label>Nenhum arquivo anexado</label>\n </div>\n }\n </ng-template>\n </p-popover>\n </div>\n }\n <!-- list -->\n @if (item.type === 'list' && item.options) {\n <ul id=\"{{ item.id }}\">\n @for (list of item.options; track list) {\n <li>{{ list.description }}</li>\n }\n </ul>\n }\n <!-- multi -->\n @if (item.type === 'multi') {\n <p-multiSelect\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n styleClass=\"p-0 w-full\"\n optionLabel=\"description\"\n (onChange)=\"onChange(item.onChange)\"\n maxSelectedLabels=\"100\"\n ></p-multiSelect>\n }\n <!-- radioButton -->\n @if (item.type === 'radio-button') {\n <div\n id=\"{{ item.id }}\"\n class=\"flex gap-3\"\n >\n @for (listRadioButton of item.options; track listRadioButton) {\n <div\n class=\"flex align-items-center gap-2\"\n >\n <p-radioButton\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n [value]=\"listRadioButton.code\"\n formControlName=\"{{ item.formControl }}\"\n (onClick)=\"onChange(item.onChange)\"\n ></p-radioButton>\n <label>{{ listRadioButton.description }}</label>\n </div>\n }\n @if(control.controls[item.formControl].value == 'other'){\n <input\n pInputText\n type=\"text\"\n formControlName=\"{{ item.formControlOther }}\"\n />\n }\n </div>\n }\n <!-- selectButton -->\n @if (item.type === 'select-button') {\n <div class=\"d-flex\">\n <p-selectButton\n id=\"{{ item.id }}\"\n (onChange)=\"onChange(item.onChange)\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n optionValue=\"code\"\n >\n <ng-template let-item>\n <span>{{ item.description }}</span>\n </ng-template>\n </p-selectButton>\n <!-- <input type=\"text\" pInputText [attr.disabled]=\"item.disabled\"\n formControlName={{item.formControlSecondary}}> -->\n </div>\n }\n <!-- table -->\n @if (item.type === 'table') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n @for (col of columns; track col) {\n <th>\n @if (col.filed !== 'action') {\n <span>{{ col.header }}</span>\n }\n @if (col.filed === 'action') {\n <span>A\u00E7\u00E3o</span>\n }\n </th>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr>\n @for (col of columns; track col) {\n <td>\n @if (col.field !== 'button') {\n <div>\n {{ rowData[col.field] }}\n </div>\n }\n @if (col.field === 'action') {\n <div>\n @for (action of item.buttonsTable; track action) {\n <p-button\n styleClass=\"{{ action.styleClass }}\"\n label=\"{{ action.label }}\"\n (click)=\"action.onCLick(rowData)\"\n icon=\"{{ action.icon }}\"\n ></p-button>\n }\n </div>\n }\n </td>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"footer\" let-columns>\n @for (footer of item.rowsFooter; track footer) {\n <tr>\n <td colspan=\"12\">\n <span class=\"font-normal\">{{ footer.text }}:</span>\n {{ footer.value }}\n </td>\n </tr>\n }\n </ng-template>\n </p-table>\n }\n <!-- inputSwitch -->\n @if (item.type === 'switch') {\n <div class=\"d-flex\">\n <p-toggleswitch\n id=\"{{ item.id }}\"\n formControlName=\"{{ item.formControl }}\"\n class=\"mr-10\"\n (onChange)=\"onChange(item.onChange)\"\n ></p-toggleswitch>\n <p translate=\"{{ item.label }}\"></p>\n </div>\n }\n <!-- password -->\n @if (item.type === 'password') {\n <p-password\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n [feedback]=\"false\"\n formControlName=\"{{ item.formControl }}\"\n (onChange)=\"onChange(item.onChange)\"\n styleClass=\"w-full\"\n [toggleMask]=\"true\"\n ></p-password>\n }\n <!-- photo -->\n @if (item.type === 'photo') {\n <div id=\"{{ item.id }}\" class=\"camera\">\n <video id=\"video\" class=\"foto\" autoplay>\n V\u00EDdeo n\u00E3o dispon\u00EDvel.\n </video>\n <canvas id=\"canvas\" class=\"foto\" style=\"display: none\"></canvas>\n <button\n pButton\n icon=\"pi pi-times\"\n class=\"remove-file\"\n id=\"icon-remove\"\n [rounded]=\"true\"\n style=\"visibility: collapse\"\n (click)=\"removePhoto()\"\n ></button>\n <button\n pButton\n icon=\"pi pi-camera\"\n [rounded]=\"true\"\n (click)=\"capturePhoto(item.formControl)\"\n id=\"button\"\n ></button>\n </div>\n }\n <!-- likert -->\n @if (item.type === 'likert') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th class=\"fd-table-label-column\"></th>\n @for (col of columns; track col) {\n <th>\n <span>{{ col.header }}</span>\n </th>\n }\n </tr>\n </ng-template>\n <ng-template\n pTemplate=\"body\"\n let-row\n let-rowIndex=\"rowIndex\"\n let-columns=\"columns\"\n formArrayName=\"{{ item.formControl }}\"\n >\n <tr>\n <td>\n {{ row }}\n </td>\n @for (control of columns; track item; let index = $index) {\n <td [formGroupName]=\"rowIndex\">\n <p-radioButton\n value=\"{{ columns[index].field }}+{{ row }}\"\n formControlName=\"question{{ rowIndex }}\"\n />\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n }\n <!-- editable table -->\n @if (item.type === 'editable-table') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n editMode=\"cell\"\n >\n <!-- Cabe\u00E7alho da tabela -->\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th class=\"fd-table-label-column\"></th>\n @for (col of columns; track col) {\n <th>\n <span>{{ col.header }}</span>\n </th>\n }\n </tr>\n </ng-template>\n <!-- Corpo da tabela -->\n <ng-template\n pTemplate=\"body\"\n let-row\n let-rowIndex=\"rowIndex\"\n let-columns=\"columns\"\n formArrayName=\"{{ item.formControl }}\"\n let-editing=\"editing\"\n >\n <tr>\n <td>{{ row }}</td>\n @for (control of columns; track item; let index = $index) {\n <td\n [formGroupName]=\"rowIndex\"\n [pEditableColumn]=\"row\"\n pEditableColumnField=\"row\"\n >\n <p-cellEditor>\n <ng-template pTemplate=\"input\">\n <input\n pInputText\n type=\"text\"\n formControlName=\"_{{ control.field }}question{{\r\n rowIndex\r\n }}\"\r\n />\n </ng-template>\n <ng-template pTemplate=\"output\">\n <input\n pInputText\n type=\"text\"\n formControlName=\"_{{ control.field }}question{{\r\n rowIndex\r\n }}\"\r\n />\n </ng-template>\n </p-cellEditor>\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n }\n <!-- valida\u00E7\u00E3o de item -->\n <div>\n @if (validateForm && control.controls[item.formControl] && control.controls[item.formControl].errors?.['required']) {\n <small\n class=\"danger-text\"\n >\n Campo obrigat\u00F3rio\n </small>\n }\n @if (validateForm && control.controls[item.formControl] && control.controls[item.formControl].errors?.['email']) {\n <small\n class=\"danger-text\"\n >\n Email inv\u00E1lido\n </small>\n }\n </div>\n </div>\n </div>\n }\n @if (\n (buttonsStandard && buttonsStandard.length > 0) ||\n (buttonsOptional && buttonsOptional.length > 0)\n ) {\n <p-divider\n ></p-divider>\n }\n <div class=\"buttons-form\">\n @for (button of buttonsStandard; track button) {\n <div>\n @if (button.type === 'clean') {\n <p-button\n styleClass=\"p-button-warning {{ button.styleClass }}\"\n label=\"Limpar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-times\"\n ></p-button>\n }\n @if (button.type === 'filter') {\n <p-button\n styleClass=\"{{ button.styleClass }}\"\n label=\"Filtrar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-search\"\n ></p-button>\n }\n @if (button.type === 'save') {\n <p-button\n styleClass=\"p-button-success {{ button.styleClass }}\"\n label=\"Salvar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-save\"\n ></p-button>\n }\n @if (button.type === 'cancel') {\n <p-button\n styleClass=\"p-button-danger {{ button.styleClass }}\"\n label=\"Cancelar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-times\"\n ></p-button>\n }\n </div>\n }\n @for (button of buttonsOptional; track button) {\n <div>\n <p-button\n styleClass=\"{{ button.styleClass }}\"\n label=\"{{ button.label }}\"\n (click)=\"button.onCLick()\"\n icon=\"{{ button.icon }}\"\n ></p-button>\n </div>\n }\n </div>\n </div>\n </form>\n }\n </div>\n", styles: [".div-title span{font-size:20px;font-weight:500}.buttons-form{display:flex;gap:10px;justify-content:flex-end}.danger-text{color:#f18282}.drag-image{height:auto;width:100%;border-radius:10px;font-weight:400;display:flex;align-items:center;flex-direction:column;top:20px;max-height:250px;color:#000;padding:20px;text-align:center;overflow:auto}.drag-image h6{font-size:20px}.drag-image .file-name{font-size:14px}.drag-image i{font-size:3rem}.subtitle span{font-size:14px;margin-right:5px}.subtitle{align-items:baseline}.mh-75{min-height:75px!important}input[type=file]{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer}.preview-img{align-items:center;border-radius:5px;display:flex;height:140px;justify-content:center;margin:10px;max-width:180px;min-height:140px;min-width:180px;padding:0 20px;position:relative}.preview-img span{position:absolute;overflow-wrap:break-word}.remove-file{display:flex;justify-content:center;align-items:center;height:22px;width:22px;top:5px;right:5px;border-radius:50%;background:#bbb;color:#333;cursor:pointer;font-size:.8rem!important}.preview-img img{max-width:100%;opacity:.8}.camera{display:flex;flex-direction:column;align-items:center;position:relative}.foto{max-width:186px;min-height:140px;min-width:180px;border:1px dashed #000;border-radius:5px;margin-bottom:1em}.preview-photo{position:relative}.h-0{height:0}.fd-table-label-column{width:4rem}\n"] }]
|
|
193
193
|
}], ctorParameters: () => [{ type: i1.TranslateService }, { type: i2.FormBuilder }], propDecorators: { title: [{
|
|
194
194
|
type: Input
|
|
195
195
|
}], subTitle: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-dynamic-ajax.mjs","sources":["../../../projects/form-dynamic-ajax/src/lib/form-dynamic-angular.component.ts","../../../projects/form-dynamic-ajax/src/lib/form-dynamic-angular.component.html","../../../projects/form-dynamic-ajax/src/lib/form-dynamic-angular.module.ts","../../../projects/form-dynamic-ajax/src/public-api.ts","../../../projects/form-dynamic-ajax/src/form-dynamic-ajax.ts"],"sourcesContent":["import { FormBuilder, FormGroup, UntypedFormGroup } from '@angular/forms';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\r\nexport interface ITreeSelectOptions {\r\n key: string,\r\n label: string,\r\n icon: string,\r\n children?: ITreeSelectOptions[]\r\n}\r\nexport interface IOptions {\r\n description: string,\r\n code: number | string\r\n}\r\nexport interface ICols {\r\n field: string,\r\n header: string\r\n}\r\n\r\nexport type TTypes =\r\n \"autocomplete\" |\r\n \"button\" |\r\n \"check-box\" |\r\n \"currency\" |\r\n \"check-box-multi\" |\r\n \"date\" |\r\n \"switch\" |\r\n \"list\" |\r\n \"likert\" |\r\n \"mask\" |\r\n \"multi\" |\r\n \"number\" |\r\n \"password\" |\r\n \"photo\" |\r\n \"radio-button\" |\r\n \"select\" |\r\n \"select-button\" |\r\n \"table\" |\r\n \"text\" |\r\n \"text-area\" |\r\n \"tree-select\" |\r\n \"upload-files\" |\r\n \"editable-table\" | \r\n \"editor\"\r\nexport interface IForm {\r\n id: number | string,\r\n label?: string,\r\n type: TTypes,\r\n col?: string,\r\n disabled?: boolean | null,\r\n formControl?: string,\r\n required?: boolean,\r\n placeholder?: string,\r\n\r\n numberOfMonthsDate?: number;\r\n selectionMode?: \"multiple\" | \"range\" | \"single\"\r\n minDate?: Date,\r\n maxDate?: Date,\r\n viewDate?: 'month' | 'date',\r\n dateFormat?: string\r\n timeOnly?: boolean\r\n showTime?: boolean,\r\n\r\n maxlength?: number,\r\n rowsTextArea?: number,\r\n\r\n mask?: string,\r\n unmask?: boolean,\r\n\r\n search?: boolean,\r\n options?: IOptions[]\r\n treeSelectOptions?: ITreeSelectOptions[],\r\n\r\n buttonClass?: string,\r\n iconButton?: string,\r\n\r\n formControlOther?: string,\r\n hideLabelTop?: boolean,\r\n\r\n scrollHeight?: string,\r\n colsTable?: ICols[],\r\n rowsTable?: any[],\r\n rowsFooter?: any[],\r\n buttonsTable?: IButtonsTable[],\r\n\r\n acceptFiles?: string,\r\n msgAcceptFiles?: string,\r\n viewNameFile?: boolean,\r\n multileFile?: boolean,\r\n\r\n onChange?: Function,\r\n onCLick?: Function,\r\n onCLear?: Function,\r\n onFocusDate?: Function,\r\n}\r\nexport interface IButtonsStandard {\r\n type: 'clean' | 'filter' | 'save' | 'cancel',\r\n onCLick: Function,\r\n styleClass?: string\r\n}\r\nexport interface IButtonsOptional {\r\n label: string,\r\n onCLick: Function,\r\n icon: string,\r\n styleClass: string,\r\n view?: Function;\r\n}\r\n\r\nexport interface IButtonsTable {\r\n styleClass: string,\r\n label: string,\r\n icon: string,\r\n onCLick: Function\r\n}\r\n@Component({\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n selector: 'form-dynamic-angular',\r\n standalone: false,\r\n templateUrl: 'form-dynamic-angular.component.html',\r\n styleUrls: ['form-dynamic-angular.component.css']\r\n})\r\n\r\nexport class FormDynamicAngularComponent implements OnInit {\r\n @Input() title!: string;\r\n @Input() subTitle!: string;\r\n @Input() validateForm: boolean = false;\r\n\r\n @Input() form: IForm[] = []\r\n @Input() control: FormGroup;\r\n\r\n @Input() buttonsStandard: IButtonsStandard[]\r\n @Input() buttonsOptional: IButtonsOptional[]\r\n\r\n @Input() files: any[] = [];\r\n\r\n filesView: any[] = [];\r\n filteredAutoComplete: any[] = [];\r\n\r\n constructor(\r\n public translate: TranslateService,\r\n private formBuilder: FormBuilder\r\n ) {\r\n this.control = this.formBuilder.group({});\r\n }\r\n\r\n ngOnInit(): void {\r\n this.files.map(f => {\r\n this.filesView.push({ ...f, type: f.contentType })\r\n })\r\n\r\n if (window.location.protocol === \"https\") {\r\n navigator.mediaDevices.getUserMedia({ video: true })\r\n .then(function (mediaStream) {\r\n const video: HTMLVideoElement | null = document.querySelector('#video');\r\n if (video) {\r\n video.srcObject = mediaStream;\r\n video.play();\r\n }\r\n })\r\n .catch(function (err) { })\r\n }\r\n }\r\n\r\n numberOfMonthsDate(numberOfMonthsDate: number) {\r\n return numberOfMonthsDate ?? 1\r\n }\r\n\r\n selectionMode(selectionMode: string) {\r\n return selectionMode ?? \"single\"\r\n }\r\n\r\n async capturePhoto(fileName: string) {\r\n const canvas: HTMLCanvasElement | null = document.querySelector(\"#canvas\");\r\n const icon: HTMLButtonElement | null = document.querySelector(\"#icon-remove\");\r\n const video: HTMLVideoElement | null = document.querySelector('#video');\r\n const button: HTMLButtonElement | null = document.querySelector('#button');\r\n\r\n\r\n if (canvas && video) {\r\n canvas.height = video.videoHeight;\r\n canvas.width = video.videoWidth;\r\n const context = canvas.getContext('2d');\r\n if (context && icon && button) {\r\n context.drawImage(video, 0, 0)\r\n video.style.display = \"none\"\r\n button.disabled = true\r\n canvas.style.display = \"block\"\r\n icon.style.visibility = \"visible\"\r\n\r\n let aux = {\r\n name: \"photo user\",\r\n contentType: \"image/png\",\r\n content: canvas.toDataURL(\"image/png\")\r\n };\r\n\r\n this.control.get(fileName)?.setValue(aux);\r\n }\r\n }\r\n }\r\n\r\n removePhoto() {\r\n const canvas: HTMLCanvasElement | null = document.querySelector(\"#canvas\");\r\n const icon: HTMLButtonElement | null = document.querySelector(\"#icon-remove\");\r\n const video: HTMLVideoElement | null = document.querySelector('#video');\r\n const button: HTMLButtonElement | null = document.querySelector('#button');\r\n\r\n if (canvas && video) {\r\n const context = canvas.getContext('2d');\r\n if (context && icon && button) {\r\n video.style.display = \"block\"\r\n button.disabled = false\r\n canvas.style.display = \"none\"\r\n icon.style.visibility = \"collapse\"\r\n }\r\n }\r\n }\r\n\r\n getUrl(file: File) {\r\n return window.URL.createObjectURL(file)\r\n }\r\n\r\n async onSelectFile(fileName: string, event: any, multiple: boolean) {\r\n const file = event.target.files\r\n // if (!multiple) {\r\n // this.filesView = [];\r\n // }\r\n this.filesView.push(...file);\r\n\r\n const newFIles = file\r\n let arr = [];\r\n for (const item of newFIles) {\r\n let aux = {\r\n name: item.name,\r\n contentType: item?.type,\r\n content: await this.toBase64(item)\r\n };\r\n arr.push(aux);\r\n }\r\n this.control.get(fileName)?.setValue(arr);\r\n }\r\n\r\n onRemove(event: File, fileName: string) {\r\n this.filesView.splice(this.filesView.indexOf(event), 1);\r\n var input = document.getElementById('fileInput') as HTMLInputElement\r\n if (input) {\r\n input.value = ''\r\n }\r\n }\r\n\r\n filterAutoComplete(event: { query: any; }, suggestionsAutoComplete: any) {\r\n let filtered: any[] = [];\r\n let query = event.query;\r\n\r\n if (suggestionsAutoComplete) {\r\n for (let i = 0; i < suggestionsAutoComplete.length; i++) {\r\n let dados = suggestionsAutoComplete[i];\r\n if (dados.description.toLowerCase().normalize('NFD').replace(/\\p{M}/ug, '').indexOf(query.toLowerCase().normalize('NFD').replace(/\\p{M}/ug, '')) != -1) {\r\n filtered.push(dados);\r\n }\r\n }\r\n\r\n this.filteredAutoComplete = filtered;\r\n }\r\n }\r\n\r\n toBase64 = async (file: File) => {\r\n return new Promise((resolve, _) => {\r\n const reader = new FileReader();\r\n reader.onloadend = () => resolve(reader.result);\r\n reader.readAsDataURL(file);\r\n });\r\n }\r\n\r\n onChange(change?: Function) {\r\n if (change) {\r\n change()\r\n }\r\n }\r\n\r\n clickCLear(clear?: Function) {\r\n if (clear) {\r\n clear()\r\n }\r\n }\r\n\r\n onBlur(blur?: Function) {\r\n if (blur) {\r\n blur()\r\n }\r\n }\r\n}\r\n","<div>\n @if (title) {\n <div class=\"div-title\">\n <span translate=\"{{ title }}\"></span>\n @if (subTitle) {\n <div class=\"flex subtitle\">\n <span translate=\"{{ subTitle }}\"></span>\n </div>\n }\n <p-divider></p-divider>\n </div>\n }\n @if (control) {\n <form [formGroup]=\"control\">\n <div class=\"grid\">\n @for (item of form; track item) {\n <div class=\"{{ item.col }} col-12\">\n @if (item.label && !item.hideLabelTop) {\n <label>{{ item.label }}</label>\n }\n @if (item.required && item.label) {\n <label class=\"danger-text ml-2\"\n >*</label\n >\n }\n <div class=\"mt-2\">\n <!-- text -->\n @if (item.type == 'text' || item.type == 'number') {\n <input\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n pInputText\n placeholder=\"{{ item.placeholder }}\"\n type=\"{{ item.type }}\"\n formControlName=\"{{ item.formControl }}\"\n class=\"w-full\"\n />\n }\n @if (item.type == 'editor') {\n <p-editor\n formControlName=\"{{ item.formControl }}\"\n [style]=\"{ height: '320px' }\"\n />\n }\n <!-- select -->\n @if (item.type === 'select') {\n <p-select\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n [filter]=\"item.search\"\n emptyFilterMessage=\"Nenhum dado encontrado\"\n emptyMessage=\"Nenhum dado encontrado\"\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full p-0\"\n (onChange)=\"onChange(item.onChange)\"\n [showClear]=\"true\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n optionLabel=\"description\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-select>\n }\n <!-- currency -->\n @if (item.type === 'currency') {\n <p-inputNumber\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n placeholder=\"{{ item.placeholder }}\"\n inputStyleClass=\"w-full\"\n styleClass=\"w-full\"\n (onKeyDown)=\"onChange(item.onChange)\"\n mode=\"currency\"\n [min]=\"0\"\n currency=\"BRL\"\n >\n </p-inputNumber>\n }\n <!-- mask -->\n @if (item.type === 'mask') {\n <p-inputMask\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full\"\n (onComplete)=\"onChange(item.onChange)\"\n mask=\"{{ item.mask }}\"\n unmask=\"{{ item.unmask }}\"\n (onClear)=\"clickCLear(item.onCLear)\"\n showClear=\"true\"\n ></p-inputMask>\n }\n <!-- treeSelect -->\n @if (item.type === 'tree-select') {\n <p-treeSelect\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n (onNodeSelect)=\"onChange(item.onChange)\"\n containerStyleClass=\"w-full p-0\"\n formControlName=\"{{ item.formControl }}\"\n [options]=\"item.treeSelectOptions\"\n [filter]=\"true\"\n [filterInputAutoFocus]=\"true\"\n emptyMessage=\"Nenhum dado encontrado\"\n [showClear]=\"true\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-treeSelect>\n }\n <!-- autoComplete -->\n @if (item.type === 'autocomplete') {\n <p-autoComplete\n inputId=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full p-0\"\n [inputStyle]=\"{ width: '100%' }\"\n (onSelect)=\"onChange(item.onChange)\"\n formControlName=\"{{ item.formControl }}\"\n [suggestions]=\"filteredAutoComplete\"\n (completeMethod)=\"filterAutoComplete($event, item.options)\"\n [forceSelection]=\"false\"\n [showEmptyMessage]=\"true\"\n emptyMessage=\"Nenhum dado encontrado\"\n dataKey=\"code\"\n optionLabel=\"description\"\n showClear=\"true\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-autoComplete>\n }\n <!-- date -->\n @if (item.type === 'date') {\n <p-datepicker\n id=\"{{ item.id }}\"\n view=\"{{ item.viewDate }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n styleClass=\"w-full\"\n [numberOfMonths]=\"numberOfMonthsDate(item.numberOfMonthsDate)\"\n [selectionMode]=\"selectionMode(item.selectionMode)\"\n (onFocus)=\"onChange(item.onFocusDate)\"\n [maxDate]=\"item.maxDate\"\n [minDate]=\"item.minDate\"\n dateFormat=\"{{ item.dateFormat }}\"\n (onSelect)=\"onChange(item.onChange)\"\n [iconDisplay]=\"'input'\"\n placeholder=\"{{ item.placeholder }}\"\n [showIcon]=\"true\"\n [showTime]=\"item.showTime\"\n [timeOnly]=\"item.timeOnly\"\n ></p-datepicker>\n }\n <!-- textarea -->\n @if (item.type === 'text-area') {\n <div class=\"text-right\">\n <textarea\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n class=\"w-full\"\n maxlength=\"{{ item.maxlength }}\"\n counterTemplate=\"{1} of 50, {0} remaining\"\n counter=\"display\"\n (attr.change)=\"onChange(item.onChange)\"\n pTextarea\n formControlName=\"{{ item.formControl }}\"\n rows=\"{{ item.rowsTextArea }}\"\n ></textarea>\n @if (item.maxlength) {\n <small id=\"username-help\">\n {{ control.controls[item.formControl].value.length }}/{{\n item.maxlength\n }}\n </small>\n }\n </div>\n }\n <!-- checkbox -->\n @if (item.type == 'check-box') {\n <div>\n <p-checkbox\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n (onChange)=\"onChange(item.onChange)\"\n binary=\"true\"\n formControlName=\"{{ item.formControl }}\"\n value=\"{{ item.formControl }}\"\n label=\"{{ item.label }}\"\n ></p-checkbox>\n </div>\n }\n <!-- checkbox multiple -->\n @if (item.type === 'check-box-multi') {\n <div\n id=\"{{ item.id }}\"\n class=\"flex gap-3\"\n >\n @for (list of item.options; track list; let i = $index) {\n <div\n formArrayName=\"{{ item.formControl }}\"\n class=\"flex align-items-center gap-2\"\n >\n <div [formGroupName]=\"i\">\n <p-checkbox\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n (onChange)=\"onChange(item.onChange)\"\n binary=\"true\"\n formControlName=\"{{ list.code }}\"\n label=\"{{ list.description }}\"\n ></p-checkbox>\n </div>\n </div>\n }\n </div>\n }\n <!-- button -->\n @if (item.type == 'button') {\n <p-button\n id=\"{{ item.id }}\"\n styleClass=\"{{ item.buttonClass }} w-full mt-3\"\n (click)=\"item.onCLick()\"\n [disabled]=\"item.disabled\"\n icon=\"{{ item.iconButton }}\"\n label=\"{{ item.label }}\"\n ></p-button>\n }\n <!-- can -->\n @if (item.type == 'can') {\n <div id=\"{{ item.id }}\" class=\"area\">\n <video autoplay=\"true\" id=\"webCamera\"></video>\n <input type=\"text\" id=\"base_img\" name=\"base_img\" />\n <button type=\"button\" onclick=\"takeSnapShot()\">\n Tirar foto e salvar\n </button>\n <img id=\"imagemConvertida\" />\n <p id=\"caminhoImagem\" class=\"caminho-imagem\">\n <a href=\"\" target=\"_blank\" rel=\"noopener\"></a>\n </p>\n <script src=\"script.js\"></script>\n </div>\n }\n <!-- upload files -->\n @if (item.type === 'upload-files' && !item.disabled) {\n <div\n id=\"{{ item.id }}\"\n class=\"drag-image\"\n [style.border]=\"\r\n validateForm && control.controls[item.formControl].errors\r\n ? ' 1px dashed #f18282'\r\n : ' 1px dashed #d1d5db'\r\n \"\r\n >\n @if (filesView.length === 0) {\n <i class=\"pi pi-cloud-upload\"></i>\n }\n @if (filesView.length === 0) {\n <p>\n Clique ou arraste e solte um arquivo para anexar\n </p>\n }\n @if (filesView.length === 0) {\n <span>{{\n item.msgAcceptFiles\n }}</span>\n }\n <input\n id=\"fileInput\"\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n @for (f of filesView; track f) {\n <div>\n @if (f.type && f.type.includes('image')) {\n <div>\n <label class=\"preview-img\">\n @if (!f.content) {\n <img src=\"{{ getUrl(f) }}\" />\n }\n @if (f.content) {\n <img src=\"{{ f.content }}\" />\n }\n @if (item.viewNameFile) {\n <span>{{ f.name }}</span>\n }\n <input\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n <label>\n <i\n class=\"pi pi-times remove-file absolute\"\n (click)=\"onRemove(item.formControl, f)\"\n ></i\n ></label>\n </label>\n </div>\n }\n @if (f.type && !f.type.includes('image')) {\n <div>\n <label class=\"preview-img h-0 max-w-0 mh-75 m-0\">\n <label class=\"mr-3\">{{ f.name }}</label>\n <input\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n <label>\n <i\n class=\"pi pi-times remove-file absolute\"\n (click)=\"onRemove(f)\"\n ></i\n ></label>\n </label>\n </div>\n }\n </div>\n }\n </div>\n }\n <!-- upload files disabled -->\n <!-- <p-fileUpload mode=\"basic\" formControlName=\"{{item.formControl}}\" chooseLabel=\"Choose\"\n chooseIcon=\"pi pi-upload\" accept=\"image/*\" maxFileSize=\"1000000\" /> -->\n @if (item.type === 'upload-files' && item.disabled) {\n <div\n id=\"{{ item.id }}\"\n >\n <p-button\n (click)=\"op.toggle($event)\"\n icon=\"pi pi-paperclip\"\n label=\"Arquivos anexados\"\n ></p-button>\n <p-popover\n #op\n [style]=\"{ width: '450px' }\"\n [showCloseIcon]=\"true\"\n >\n <ng-template pTemplate=\"content\">\n @if (files.length > 0) {\n <p-table\n [value]=\"files\"\n selectionMode=\"single\"\n [(selection)]=\"selectedProduct\"\n (onRowSelect)=\"onRowSelect($event, op)\"\n responsiveLayout=\"scroll\"\n >\n <ng-template pTemplate=\"header\">\n <tr>\n <th pSortableColumn=\"name\">\n Nome<p-sortIcon field=\"name\"></p-sortIcon>\n </th>\n <th></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-file>\n <tr>\n @if (item.viewNameFile) {\n <td>{{ file.name }}</td>\n }\n <td>\n @if (item.onCLick) {\n <p-button\n icon=\"pi pi-download\"\n (click)=\"item.onCLick(file)\"\n ></p-button>\n }\n </td>\n </tr>\n </ng-template>\n </p-table>\n }\n @if (files.length === 0) {\n <div class=\"p-10\">\n <label>Nenhum arquivo anexado</label>\n </div>\n }\n </ng-template>\n </p-popover>\n </div>\n }\n <!-- list -->\n @if (item.type === 'list' && item.options) {\n <ul id=\"{{ item.id }}\">\n @for (list of item.options; track list) {\n <li>{{ list.description }}</li>\n }\n </ul>\n }\n <!-- multi -->\n @if (item.type === 'multi') {\n <p-multiSelect\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n styleClass=\"p-0 w-full\"\n optionLabel=\"description\"\n (onChange)=\"onChange(item.onChange)\"\n maxSelectedLabels=\"100\"\n ></p-multiSelect>\n }\n <!-- radioButton -->\n @if (item.type === 'radio-button') {\n <div\n id=\"{{ item.id }}\"\n class=\"flex gap-3\"\n >\n @for (listRadioButton of item.options; track listRadioButton) {\n <div\n class=\"flex align-items-center gap-2\"\n >\n <p-radioButton\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n [value]=\"listRadioButton.code\"\n formControlName=\"{{ item.formControl }}\"\n (onClick)=\"onChange(item.onChange)\"\n ></p-radioButton>\n <label>{{ listRadioButton.description }}</label>\n </div>\n }\n @if(control.controls[item.formControl].value == 'other'){\n <input\n pInputText\n type=\"text\"\n formControlName=\"{{ item.formControlOther }}\"\n />\n }\n </div>\n }\n <!-- selectButton -->\n @if (item.type === 'select-button') {\n <div class=\"d-flex\">\n <p-selectButton\n id=\"{{ item.id }}\"\n (onChange)=\"onChange(item.onChange)\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n optionValue=\"code\"\n >\n <ng-template let-item>\n <span>{{ item.description }}</span>\n </ng-template>\n </p-selectButton>\n <!-- <input type=\"text\" pInputText [attr.disabled]=\"item.disabled\"\n formControlName={{item.formControlSecondary}}> -->\n </div>\n }\n <!-- table -->\n @if (item.type === 'table') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n @for (col of columns; track col) {\n <th>\n @if (col.filed !== 'action') {\n <span>{{ col.header }}</span>\n }\n @if (col.filed === 'action') {\n <span>Ação</span>\n }\n </th>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr>\n @for (col of columns; track col) {\n <td>\n @if (col.field !== 'button') {\n <div>\n {{ rowData[col.field] }}\n </div>\n }\n @if (col.field === 'action') {\n <div>\n @for (action of item.buttonsTable; track action) {\n <p-button\n styleClass=\"{{ action.styleClass }}\"\n label=\"{{ action.label }}\"\n (click)=\"action.onCLick(rowData)\"\n icon=\"{{ action.icon }}\"\n ></p-button>\n }\n </div>\n }\n </td>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"footer\" let-columns>\n @for (footer of item.rowsFooter; track footer) {\n <tr>\n <td colspan=\"12\">\n <span class=\"font-normal\">{{ footer.text }}:</span>\n {{ footer.value }}\n </td>\n </tr>\n }\n </ng-template>\n </p-table>\n }\n <!-- inputSwitch -->\n @if (item.type === 'switch') {\n <div class=\"d-flex\">\n <p-toggleswitch\n id=\"{{ item.id }}\"\n formControlName=\"{{ item.formControl }}\"\n class=\"mr-10\"\n (onChange)=\"onChange(item.onChange)\"\n ></p-toggleswitch>\n <p translate=\"{{ item.label }}\"></p>\n </div>\n }\n <!-- password -->\n @if (item.type === 'password') {\n <p-password\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n [feedback]=\"false\"\n formControlName=\"{{ item.formControl }}\"\n (onChange)=\"onChange(item.onChange)\"\n styleClass=\"w-full\"\n [toggleMask]=\"true\"\n ></p-password>\n }\n <!-- photo -->\n @if (item.type === 'photo') {\n <div id=\"{{ item.id }}\" class=\"camera\">\n <video id=\"video\" class=\"foto\" autoplay>\n Vídeo não disponível.\n </video>\n <canvas id=\"canvas\" class=\"foto\" style=\"display: none\"></canvas>\n <button\n pButton\n icon=\"pi pi-times\"\n class=\"remove-file\"\n id=\"icon-remove\"\n [rounded]=\"true\"\n style=\"visibility: collapse\"\n (click)=\"removePhoto()\"\n ></button>\n <button\n pButton\n icon=\"pi pi-camera\"\n [rounded]=\"true\"\n (click)=\"capturePhoto(item.formControl)\"\n id=\"button\"\n ></button>\n </div>\n }\n <!-- likert -->\n @if (item.type === 'likert') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th style=\"width: 4rem\"></th>\n @for (col of columns; track col) {\n <th>\n <span>{{ col.header }}</span>\n </th>\n }\n </tr>\n </ng-template>\n <ng-template\n pTemplate=\"body\"\n let-row\n let-rowIndex=\"rowIndex\"\n let-columns=\"columns\"\n formArrayName=\"{{ item.formControl }}\"\n >\n <tr>\n <td>\n {{ row }}\n </td>\n @for (control of columns; track item; let index = $index) {\n <td [formGroupName]=\"rowIndex\">\n <p-radioButton\n value=\"{{ columns[index].field }}+{{ row }}\"\n formControlName=\"question{{ rowIndex }}\"\n />\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n }\n <!-- editable table -->\n @if (item.type === 'editable-table') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n editMode=\"cell\"\n >\n <!-- Cabeçalho da tabela -->\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th style=\"width: 4rem\"></th>\n @for (col of columns; track col) {\n <th>\n <span>{{ col.header }}</span>\n </th>\n }\n </tr>\n </ng-template>\n <!-- Corpo da tabela -->\n <ng-template\n pTemplate=\"body\"\n let-row\n let-rowIndex=\"rowIndex\"\n let-columns=\"columns\"\n formArrayName=\"{{ item.formControl }}\"\n let-editing=\"editing\"\n >\n <tr>\n <td>{{ row }}</td>\n @for (control of columns; track item; let index = $index) {\n <td\n [formGroupName]=\"rowIndex\"\n [pEditableColumn]=\"row\"\n pEditableColumnField=\"row\"\n >\n <p-cellEditor>\n <ng-template pTemplate=\"input\">\n <input\n pInputText\n type=\"text\"\n formControlName=\"_{{ control.field }}question{{\r\n rowIndex\r\n }}\"\r\n />\n </ng-template>\n <ng-template pTemplate=\"output\">\n <input\n pInputText\n type=\"text\"\n formControlName=\"_{{ control.field }}question{{\r\n rowIndex\r\n }}\"\r\n />\n </ng-template>\n </p-cellEditor>\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n }\n <!-- validação de item -->\n <div>\n @if (validateForm && control.controls[item.formControl] && control.controls[item.formControl].errors?.['required']) {\n <small\n class=\"danger-text\"\n >\n Campo obrigatório\n </small>\n }\n @if (validateForm && control.controls[item.formControl] && control.controls[item.formControl].errors?.['email']) {\n <small\n class=\"danger-text\"\n >\n Email inválido\n </small>\n }\n </div>\n </div>\n </div>\n }\n @if (\n (buttonsStandard && buttonsStandard.length > 0) ||\n (buttonsOptional && buttonsOptional.length > 0)\n ) {\n <p-divider\n ></p-divider>\n }\n <div class=\"buttons-form\">\n @for (button of buttonsStandard; track button) {\n <div>\n @if (button.type === 'clean') {\n <p-button\n styleClass=\"p-button-warning {{ button.styleClass }}\"\n label=\"Limpar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-times\"\n ></p-button>\n }\n @if (button.type === 'filter') {\n <p-button\n styleClass=\"{{ button.styleClass }}\"\n label=\"Filtrar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-search\"\n ></p-button>\n }\n @if (button.type === 'save') {\n <p-button\n styleClass=\"p-button-success {{ button.styleClass }}\"\n label=\"Salvar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-save\"\n ></p-button>\n }\n @if (button.type === 'cancel') {\n <p-button\n styleClass=\"p-button-danger {{ button.styleClass }}\"\n label=\"Cancelar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-times\"\n ></p-button>\n }\n </div>\n }\n @for (button of buttonsOptional; track button) {\n <div>\n <p-button\n styleClass=\"{{ button.styleClass }}\"\n label=\"{{ button.label }}\"\n (click)=\"button.onCLick()\"\n icon=\"{{ button.icon }}\"\n ></p-button>\n </div>\n }\n </div>\n </div>\n </form>\n }\n </div>\n","import { NgModule } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { BrowserModule } from '@angular/platform-browser'\r\nimport { TranslateHttpLoader } from '@ngx-translate/http-loader';\r\nimport { HttpClient, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';\r\nimport { TranslateLoader, TranslateModule } from '@ngx-translate/core';\r\nimport { ButtonModule } from 'primeng/button';\r\nimport { DividerModule } from 'primeng/divider';\r\nimport { SelectModule } from 'primeng/select';\r\nimport { DatePickerModule } from 'primeng/datepicker';\r\nimport { TreeSelectModule } from 'primeng/treeselect';\r\nimport { RadioButtonModule } from 'primeng/radiobutton';\r\nimport { AutoCompleteModule } from 'primeng/autocomplete';\r\nimport { InputTextModule } from 'primeng/inputtext';\r\nimport { EditorModule } from 'primeng/editor';\r\nimport { FormDynamicAngularComponent } from './form-dynamic-angular.component';\r\nimport { MessageService } from 'primeng/api';\r\nimport { TextareaModule } from 'primeng/textarea';\r\nimport { CheckboxModule } from 'primeng/checkbox';\r\nimport { ToggleSwitchModule } from 'primeng/toggleswitch';\r\nimport { SelectButtonModule } from 'primeng/selectbutton';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MultiSelectModule } from 'primeng/multiselect';\r\nimport { FileUploadModule } from 'primeng/fileupload';\r\nimport { TableModule } from 'primeng/table';\r\nimport { PasswordModule } from 'primeng/password';\r\nimport { InputNumberModule } from 'primeng/inputnumber';\r\nimport { InputMaskModule } from 'primeng/inputmask';\r\nimport { PopoverModule } from 'primeng/popover';\r\n\r\nexport function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader {\r\n return new TranslateHttpLoader(http);\r\n}\r\n@NgModule({ declarations: [\n FormDynamicAngularComponent\n ],\n exports: [\n FormDynamicAngularComponent\n ], imports: [InputMaskModule,\n InputNumberModule,\n PasswordModule,\n ButtonModule,\n TableModule,\n FileUploadModule,\n MultiSelectModule,\n CommonModule,\n SelectButtonModule,\n ToggleSwitchModule,\r\n CheckboxModule,\n TextareaModule,\r\n InputTextModule,\n DividerModule,\n DatePickerModule,\r\n SelectModule,\r\n TreeSelectModule,\n RadioButtonModule,\n AutoCompleteModule,\n ReactiveFormsModule,\n PopoverModule,\r\n EditorModule,\n TranslateModule.forRoot({\n loader: {\n provide: TranslateLoader,\n useFactory: HttpLoaderFactory,\n deps: [HttpClient]\n },\n })], providers: [provideHttpClient(withInterceptorsFromDi())] })\r\n\r\nexport class FormDynamicAngularModule { }\r\n","/*\r\n * Public API Surface of form-dynamic-ajax\r\n */\r\n\r\nexport * from './lib/form-dynamic-angular.component';\r\nexport * from './lib/form-dynamic-angular.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyHa,2BAA2B,CAAA;IAgBtC,WAAA,CACS,SAA2B,E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,YAAA,IAAA,EAAA,CAAA,EAAE,YAAY,EAAE;wBAClB;AACH,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL;qBACH,EAAE,OAAO,EAAE,CAAC,eAAe;wBACxB,iBAAiB;wBACjB,cAAc;wBACd,YAAY;wBACZ,WAAW;wBACX,gBAAgB;wBAChB,iBAAiB;wBACjB,YAAY;wBACZ,kBAAkB;wBAClB,kBAAkB;wBAClB,cAAc;wBACd,cAAc;wBACd,eAAe;wBACf,aAAa;wBACb,gBAAgB;wBAChB,YAAY;wBACZ,gBAAgB;wBAChB,iBAAiB;wBACjB,kBAAkB;wBAClB,mBAAmB;wBACnB,aAAa;wBACb,YAAY;wBACZ,eAAe,CAAC,OAAO,CAAC;AACpB,4BAAA,MAAM,EAAE;AACJ,gCAAA,OAAO,EAAE,eAAe;AACxB,gCAAA,UAAU,EAAE,iBAAiB;gCAC7B,IAAI,EAAE,CAAC,UAAU;AACpB,6BAAA;yBACJ,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,iBAAiB,CAAC,sBAAsB,EAAE,CAAC,CAAC,EAAE;;;AClEvE;;AAEG;;ACFH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"form-dynamic-ajax.mjs","sources":["../../../projects/form-dynamic-ajax/src/lib/form-dynamic-angular.component.ts","../../../projects/form-dynamic-ajax/src/lib/form-dynamic-angular.component.html","../../../projects/form-dynamic-ajax/src/lib/form-dynamic-angular.module.ts","../../../projects/form-dynamic-ajax/src/public-api.ts","../../../projects/form-dynamic-ajax/src/form-dynamic-ajax.ts"],"sourcesContent":["import { FormBuilder, FormGroup, UntypedFormGroup } from '@angular/forms';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\r\nexport interface ITreeSelectOptions {\r\n key: string,\r\n label: string,\r\n icon: string,\r\n children?: ITreeSelectOptions[]\r\n}\r\nexport interface IOptions {\r\n description: string,\r\n code: number | string\r\n}\r\nexport interface ICols {\r\n field: string,\r\n header: string\r\n}\r\n\r\nexport type TTypes =\r\n \"autocomplete\" |\r\n \"button\" |\r\n \"check-box\" |\r\n \"currency\" |\r\n \"check-box-multi\" |\r\n \"date\" |\r\n \"switch\" |\r\n \"list\" |\r\n \"likert\" |\r\n \"mask\" |\r\n \"multi\" |\r\n \"number\" |\r\n \"password\" |\r\n \"photo\" |\r\n \"radio-button\" |\r\n \"select\" |\r\n \"select-button\" |\r\n \"table\" |\r\n \"text\" |\r\n \"text-area\" |\r\n \"tree-select\" |\r\n \"upload-files\" |\r\n \"editable-table\" | \r\n \"editor\"\r\nexport interface IForm {\r\n id: number | string,\r\n label?: string,\r\n type: TTypes,\r\n col?: string,\r\n disabled?: boolean | null,\r\n formControl?: string,\r\n required?: boolean,\r\n placeholder?: string,\r\n\r\n numberOfMonthsDate?: number;\r\n selectionMode?: \"multiple\" | \"range\" | \"single\"\r\n minDate?: Date,\r\n maxDate?: Date,\r\n viewDate?: 'month' | 'date',\r\n dateFormat?: string\r\n timeOnly?: boolean\r\n showTime?: boolean,\r\n\r\n maxlength?: number,\r\n rowsTextArea?: number,\r\n\r\n mask?: string,\r\n unmask?: boolean,\r\n\r\n search?: boolean,\r\n options?: IOptions[]\r\n treeSelectOptions?: ITreeSelectOptions[],\r\n\r\n buttonClass?: string,\r\n iconButton?: string,\r\n\r\n formControlOther?: string,\r\n hideLabelTop?: boolean,\r\n\r\n scrollHeight?: string,\r\n colsTable?: ICols[],\r\n rowsTable?: any[],\r\n rowsFooter?: any[],\r\n buttonsTable?: IButtonsTable[],\r\n\r\n acceptFiles?: string,\r\n msgAcceptFiles?: string,\r\n viewNameFile?: boolean,\r\n multileFile?: boolean,\r\n\r\n onChange?: Function,\r\n onCLick?: Function,\r\n onCLear?: Function,\r\n onFocusDate?: Function,\r\n}\r\nexport interface IButtonsStandard {\r\n type: 'clean' | 'filter' | 'save' | 'cancel',\r\n onCLick: Function,\r\n styleClass?: string\r\n}\r\nexport interface IButtonsOptional {\r\n label: string,\r\n onCLick: Function,\r\n icon: string,\r\n styleClass: string,\r\n view?: Function;\r\n}\r\n\r\nexport interface IButtonsTable {\r\n styleClass: string,\r\n label: string,\r\n icon: string,\r\n onCLick: Function\r\n}\r\n@Component({\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n selector: 'form-dynamic-angular',\r\n standalone: false,\r\n templateUrl: 'form-dynamic-angular.component.html',\r\n styleUrls: ['form-dynamic-angular.component.css']\r\n})\r\n\r\nexport class FormDynamicAngularComponent implements OnInit {\r\n @Input() title!: string;\r\n @Input() subTitle!: string;\r\n @Input() validateForm: boolean = false;\r\n\r\n @Input() form: IForm[] = []\r\n @Input() control: FormGroup;\r\n\r\n @Input() buttonsStandard: IButtonsStandard[]\r\n @Input() buttonsOptional: IButtonsOptional[]\r\n\r\n @Input() files: any[] = [];\r\n\r\n filesView: any[] = [];\r\n filteredAutoComplete: any[] = [];\r\n\r\n constructor(\r\n public translate: TranslateService,\r\n private formBuilder: FormBuilder\r\n ) {\r\n this.control = this.formBuilder.group({});\r\n }\r\n\r\n ngOnInit(): void {\r\n this.files.map(f => {\r\n this.filesView.push({ ...f, type: f.contentType })\r\n })\r\n\r\n if (window.location.protocol === \"https\") {\r\n navigator.mediaDevices.getUserMedia({ video: true })\r\n .then(function (mediaStream) {\r\n const video: HTMLVideoElement | null = document.querySelector('#video');\r\n if (video) {\r\n video.srcObject = mediaStream;\r\n video.play();\r\n }\r\n })\r\n .catch(function (err) { })\r\n }\r\n }\r\n\r\n numberOfMonthsDate(numberOfMonthsDate: number) {\r\n return numberOfMonthsDate ?? 1\r\n }\r\n\r\n selectionMode(selectionMode: string) {\r\n return selectionMode ?? \"single\"\r\n }\r\n\r\n async capturePhoto(fileName: string) {\r\n const canvas: HTMLCanvasElement | null = document.querySelector(\"#canvas\");\r\n const icon: HTMLButtonElement | null = document.querySelector(\"#icon-remove\");\r\n const video: HTMLVideoElement | null = document.querySelector('#video');\r\n const button: HTMLButtonElement | null = document.querySelector('#button');\r\n\r\n\r\n if (canvas && video) {\r\n canvas.height = video.videoHeight;\r\n canvas.width = video.videoWidth;\r\n const context = canvas.getContext('2d');\r\n if (context && icon && button) {\r\n context.drawImage(video, 0, 0)\r\n video.style.display = \"none\"\r\n button.disabled = true\r\n canvas.style.display = \"block\"\r\n icon.style.visibility = \"visible\"\r\n\r\n let aux = {\r\n name: \"photo user\",\r\n contentType: \"image/png\",\r\n content: canvas.toDataURL(\"image/png\")\r\n };\r\n\r\n this.control.get(fileName)?.setValue(aux);\r\n }\r\n }\r\n }\r\n\r\n removePhoto() {\r\n const canvas: HTMLCanvasElement | null = document.querySelector(\"#canvas\");\r\n const icon: HTMLButtonElement | null = document.querySelector(\"#icon-remove\");\r\n const video: HTMLVideoElement | null = document.querySelector('#video');\r\n const button: HTMLButtonElement | null = document.querySelector('#button');\r\n\r\n if (canvas && video) {\r\n const context = canvas.getContext('2d');\r\n if (context && icon && button) {\r\n video.style.display = \"block\"\r\n button.disabled = false\r\n canvas.style.display = \"none\"\r\n icon.style.visibility = \"collapse\"\r\n }\r\n }\r\n }\r\n\r\n getUrl(file: File) {\r\n return window.URL.createObjectURL(file)\r\n }\r\n\r\n async onSelectFile(fileName: string, event: any, multiple: boolean) {\r\n const file = event.target.files\r\n // if (!multiple) {\r\n // this.filesView = [];\r\n // }\r\n this.filesView.push(...file);\r\n\r\n const newFIles = file\r\n let arr = [];\r\n for (const item of newFIles) {\r\n let aux = {\r\n name: item.name,\r\n contentType: item?.type,\r\n content: await this.toBase64(item)\r\n };\r\n arr.push(aux);\r\n }\r\n this.control.get(fileName)?.setValue(arr);\r\n }\r\n\r\n onRemove(event: File, fileName: string) {\r\n this.filesView.splice(this.filesView.indexOf(event), 1);\r\n var input = document.getElementById('fileInput') as HTMLInputElement\r\n if (input) {\r\n input.value = ''\r\n }\r\n }\r\n\r\n filterAutoComplete(event: { query: any; }, suggestionsAutoComplete: any) {\r\n let filtered: any[] = [];\r\n let query = event.query;\r\n\r\n if (suggestionsAutoComplete) {\r\n for (let i = 0; i < suggestionsAutoComplete.length; i++) {\r\n let dados = suggestionsAutoComplete[i];\r\n if (dados.description.toLowerCase().normalize('NFD').replace(/\\p{M}/ug, '').indexOf(query.toLowerCase().normalize('NFD').replace(/\\p{M}/ug, '')) != -1) {\r\n filtered.push(dados);\r\n }\r\n }\r\n\r\n this.filteredAutoComplete = filtered;\r\n }\r\n }\r\n\r\n toBase64 = async (file: File) => {\r\n return new Promise((resolve, _) => {\r\n const reader = new FileReader();\r\n reader.onloadend = () => resolve(reader.result);\r\n reader.readAsDataURL(file);\r\n });\r\n }\r\n\r\n onChange(change?: Function) {\r\n if (change) {\r\n change()\r\n }\r\n }\r\n\r\n clickCLear(clear?: Function) {\r\n if (clear) {\r\n clear()\r\n }\r\n }\r\n\r\n onBlur(blur?: Function) {\r\n if (blur) {\r\n blur()\r\n }\r\n }\r\n}\r\n","<div>\n @if (title) {\n <div class=\"div-title\">\n <span translate=\"{{ title }}\"></span>\n @if (subTitle) {\n <div class=\"flex subtitle\">\n <span translate=\"{{ subTitle }}\"></span>\n </div>\n }\n <p-divider></p-divider>\n </div>\n }\n @if (control) {\n <form [formGroup]=\"control\">\n <div class=\"grid\">\n @for (item of form; track item) {\n <div class=\"{{ item.col }} col-12\">\n @if (item.label && !item.hideLabelTop) {\n <label>{{ item.label }}</label>\n }\n @if (item.required && item.label) {\n <label class=\"danger-text ml-2\"\n >*</label\n >\n }\n <div class=\"mt-2\">\n <!-- text -->\n @if (item.type == 'text' || item.type == 'number') {\n <input\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n pInputText\n placeholder=\"{{ item.placeholder }}\"\n type=\"{{ item.type }}\"\n formControlName=\"{{ item.formControl }}\"\n class=\"w-full\"\n />\n }\n @if (item.type == 'editor') {\n <p-editor\n formControlName=\"{{ item.formControl }}\"\n [style]=\"{ height: '320px' }\"\n />\n }\n <!-- select -->\n @if (item.type === 'select') {\n <p-select\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n [filter]=\"item.search\"\n emptyFilterMessage=\"Nenhum dado encontrado\"\n emptyMessage=\"Nenhum dado encontrado\"\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full p-0\"\n (onChange)=\"onChange(item.onChange)\"\n [showClear]=\"true\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n optionLabel=\"description\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-select>\n }\n <!-- currency -->\n @if (item.type === 'currency') {\n <p-inputNumber\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n placeholder=\"{{ item.placeholder }}\"\n inputStyleClass=\"w-full\"\n styleClass=\"w-full\"\n (onKeyDown)=\"onChange(item.onChange)\"\n mode=\"currency\"\n [min]=\"0\"\n currency=\"BRL\"\n >\n </p-inputNumber>\n }\n <!-- mask -->\n @if (item.type === 'mask') {\n <p-inputMask\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full\"\n (onComplete)=\"onChange(item.onChange)\"\n mask=\"{{ item.mask }}\"\n unmask=\"{{ item.unmask }}\"\n (onClear)=\"clickCLear(item.onCLear)\"\n showClear=\"true\"\n ></p-inputMask>\n }\n <!-- treeSelect -->\n @if (item.type === 'tree-select') {\n <p-treeSelect\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n (onNodeSelect)=\"onChange(item.onChange)\"\n containerStyleClass=\"w-full p-0\"\n formControlName=\"{{ item.formControl }}\"\n [options]=\"item.treeSelectOptions\"\n [filter]=\"true\"\n [filterInputAutoFocus]=\"true\"\n emptyMessage=\"Nenhum dado encontrado\"\n [showClear]=\"true\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-treeSelect>\n }\n <!-- autoComplete -->\n @if (item.type === 'autocomplete') {\n <p-autoComplete\n inputId=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n styleClass=\"w-full p-0\"\n [inputStyle]=\"{ width: '100%' }\"\n (onSelect)=\"onChange(item.onChange)\"\n formControlName=\"{{ item.formControl }}\"\n [suggestions]=\"filteredAutoComplete\"\n (completeMethod)=\"filterAutoComplete($event, item.options)\"\n [forceSelection]=\"false\"\n [showEmptyMessage]=\"true\"\n emptyMessage=\"Nenhum dado encontrado\"\n dataKey=\"code\"\n optionLabel=\"description\"\n showClear=\"true\"\n (onClear)=\"clickCLear(item.onCLear)\"\n ></p-autoComplete>\n }\n <!-- date -->\n @if (item.type === 'date') {\n <p-datepicker\n id=\"{{ item.id }}\"\n view=\"{{ item.viewDate }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n formControlName=\"{{ item.formControl }}\"\n styleClass=\"w-full\"\n [numberOfMonths]=\"numberOfMonthsDate(item.numberOfMonthsDate)\"\n [selectionMode]=\"selectionMode(item.selectionMode)\"\n (onFocus)=\"onChange(item.onFocusDate)\"\n [maxDate]=\"item.maxDate\"\n [minDate]=\"item.minDate\"\n dateFormat=\"{{ item.dateFormat }}\"\n (onSelect)=\"onChange(item.onChange)\"\n [iconDisplay]=\"'input'\"\n placeholder=\"{{ item.placeholder }}\"\n [showIcon]=\"true\"\n [showTime]=\"item.showTime\"\n [timeOnly]=\"item.timeOnly\"\n ></p-datepicker>\n }\n <!-- textarea -->\n @if (item.type === 'text-area') {\n <div class=\"text-right\">\n <textarea\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n class=\"w-full\"\n maxlength=\"{{ item.maxlength }}\"\n counterTemplate=\"{1} of 50, {0} remaining\"\n counter=\"display\"\n (attr.change)=\"onChange(item.onChange)\"\n pTextarea\n formControlName=\"{{ item.formControl }}\"\n rows=\"{{ item.rowsTextArea }}\"\n ></textarea>\n @if (item.maxlength) {\n <small id=\"username-help\">\n {{ control.controls[item.formControl].value.length }}/{{\n item.maxlength\n }}\n </small>\n }\n </div>\n }\n <!-- checkbox -->\n @if (item.type == 'check-box') {\n <div>\n <p-checkbox\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n (onChange)=\"onChange(item.onChange)\"\n binary=\"true\"\n formControlName=\"{{ item.formControl }}\"\n value=\"{{ item.formControl }}\"\n label=\"{{ item.label }}\"\n ></p-checkbox>\n </div>\n }\n <!-- checkbox multiple -->\n @if (item.type === 'check-box-multi') {\n <div\n id=\"{{ item.id }}\"\n class=\"flex gap-3\"\n >\n @for (list of item.options; track list; let i = $index) {\n <div\n formArrayName=\"{{ item.formControl }}\"\n class=\"flex align-items-center gap-2\"\n >\n <div [formGroupName]=\"i\">\n <p-checkbox\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n (onChange)=\"onChange(item.onChange)\"\n binary=\"true\"\n formControlName=\"{{ list.code }}\"\n label=\"{{ list.description }}\"\n ></p-checkbox>\n </div>\n </div>\n }\n </div>\n }\n <!-- button -->\n @if (item.type == 'button') {\n <p-button\n id=\"{{ item.id }}\"\n styleClass=\"{{ item.buttonClass }} w-full mt-3\"\n (click)=\"item.onCLick()\"\n [disabled]=\"item.disabled\"\n icon=\"{{ item.iconButton }}\"\n label=\"{{ item.label }}\"\n ></p-button>\n }\n <!-- can -->\n @if (item.type == 'can') {\n <div id=\"{{ item.id }}\" class=\"area\">\n <video autoplay=\"true\" id=\"webCamera\"></video>\n <input type=\"text\" id=\"base_img\" name=\"base_img\" />\n <button type=\"button\" onclick=\"takeSnapShot()\">\n Tirar foto e salvar\n </button>\n <img id=\"imagemConvertida\" />\n <p id=\"caminhoImagem\" class=\"caminho-imagem\">\n <a href=\"\" target=\"_blank\" rel=\"noopener\"></a>\n </p>\n <script src=\"script.js\"></script>\n </div>\n }\n <!-- upload files -->\n @if (item.type === 'upload-files' && !item.disabled) {\n <div\n id=\"{{ item.id }}\"\n class=\"drag-image\"\n [style.border]=\"\r\n validateForm && control.controls[item.formControl].errors\r\n ? ' 1px dashed #f18282'\r\n : ' 1px dashed #d1d5db'\r\n \"\r\n >\n @if (filesView.length === 0) {\n <i class=\"pi pi-cloud-upload\"></i>\n }\n @if (filesView.length === 0) {\n <p>\n Clique ou arraste e solte um arquivo para anexar\n </p>\n }\n @if (filesView.length === 0) {\n <span>{{\n item.msgAcceptFiles\n }}</span>\n }\n <input\n id=\"fileInput\"\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n @for (f of filesView; track f) {\n <div>\n @if (f.type && f.type.includes('image')) {\n <div>\n <label class=\"preview-img\">\n @if (!f.content) {\n <img src=\"{{ getUrl(f) }}\" />\n }\n @if (f.content) {\n <img src=\"{{ f.content }}\" />\n }\n @if (item.viewNameFile) {\n <span>{{ f.name }}</span>\n }\n <input\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n <label>\n <i\n class=\"pi pi-times remove-file absolute\"\n (click)=\"onRemove(item.formControl, f)\"\n ></i\n ></label>\n </label>\n </div>\n }\n @if (f.type && !f.type.includes('image')) {\n <div>\n <label class=\"preview-img h-0 max-w-0 mh-75 m-0\">\n <label class=\"mr-3\">{{ f.name }}</label>\n <input\n type=\"file\"\n [multiple]=\"item.multileFile\"\n [accept]=\"item.acceptFiles\"\n (change)=\"\r\n onSelectFile(item.formControl, $event, item.multileFile)\r\n \"\r\n />\n <label>\n <i\n class=\"pi pi-times remove-file absolute\"\n (click)=\"onRemove(f)\"\n ></i\n ></label>\n </label>\n </div>\n }\n </div>\n }\n </div>\n }\n <!-- upload files disabled -->\n <!-- <p-fileUpload mode=\"basic\" formControlName=\"{{item.formControl}}\" chooseLabel=\"Choose\"\n chooseIcon=\"pi pi-upload\" accept=\"image/*\" maxFileSize=\"1000000\" /> -->\n @if (item.type === 'upload-files' && item.disabled) {\n <div\n id=\"{{ item.id }}\"\n >\n <p-button\n (click)=\"op.toggle($event)\"\n icon=\"pi pi-paperclip\"\n label=\"Arquivos anexados\"\n ></p-button>\n <p-popover\n #op\n [style]=\"{ width: '450px' }\"\n [showCloseIcon]=\"true\"\n >\n <ng-template pTemplate=\"content\">\n @if (files.length > 0) {\n <p-table\n [value]=\"files\"\n selectionMode=\"single\"\n [(selection)]=\"selectedProduct\"\n (onRowSelect)=\"onRowSelect($event, op)\"\n responsiveLayout=\"scroll\"\n >\n <ng-template pTemplate=\"header\">\n <tr>\n <th pSortableColumn=\"name\">\n Nome<p-sortIcon field=\"name\"></p-sortIcon>\n </th>\n <th></th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-file>\n <tr>\n @if (item.viewNameFile) {\n <td>{{ file.name }}</td>\n }\n <td>\n @if (item.onCLick) {\n <p-button\n icon=\"pi pi-download\"\n (click)=\"item.onCLick(file)\"\n ></p-button>\n }\n </td>\n </tr>\n </ng-template>\n </p-table>\n }\n @if (files.length === 0) {\n <div class=\"p-10\">\n <label>Nenhum arquivo anexado</label>\n </div>\n }\n </ng-template>\n </p-popover>\n </div>\n }\n <!-- list -->\n @if (item.type === 'list' && item.options) {\n <ul id=\"{{ item.id }}\">\n @for (list of item.options; track list) {\n <li>{{ list.description }}</li>\n }\n </ul>\n }\n <!-- multi -->\n @if (item.type === 'multi') {\n <p-multiSelect\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n styleClass=\"p-0 w-full\"\n optionLabel=\"description\"\n (onChange)=\"onChange(item.onChange)\"\n maxSelectedLabels=\"100\"\n ></p-multiSelect>\n }\n <!-- radioButton -->\n @if (item.type === 'radio-button') {\n <div\n id=\"{{ item.id }}\"\n class=\"flex gap-3\"\n >\n @for (listRadioButton of item.options; track listRadioButton) {\n <div\n class=\"flex align-items-center gap-2\"\n >\n <p-radioButton\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n [value]=\"listRadioButton.code\"\n formControlName=\"{{ item.formControl }}\"\n (onClick)=\"onChange(item.onChange)\"\n ></p-radioButton>\n <label>{{ listRadioButton.description }}</label>\n </div>\n }\n @if(control.controls[item.formControl].value == 'other'){\n <input\n pInputText\n type=\"text\"\n formControlName=\"{{ item.formControlOther }}\"\n />\n }\n </div>\n }\n <!-- selectButton -->\n @if (item.type === 'select-button') {\n <div class=\"d-flex\">\n <p-selectButton\n id=\"{{ item.id }}\"\n (onChange)=\"onChange(item.onChange)\"\n [options]=\"item.options\"\n formControlName=\"{{ item.formControl }}\"\n optionValue=\"code\"\n >\n <ng-template let-item>\n <span>{{ item.description }}</span>\n </ng-template>\n </p-selectButton>\n <!-- <input type=\"text\" pInputText [attr.disabled]=\"item.disabled\"\n formControlName={{item.formControlSecondary}}> -->\n </div>\n }\n <!-- table -->\n @if (item.type === 'table') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n @for (col of columns; track col) {\n <th>\n @if (col.filed !== 'action') {\n <span>{{ col.header }}</span>\n }\n @if (col.filed === 'action') {\n <span>Ação</span>\n }\n </th>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr>\n @for (col of columns; track col) {\n <td>\n @if (col.field !== 'button') {\n <div>\n {{ rowData[col.field] }}\n </div>\n }\n @if (col.field === 'action') {\n <div>\n @for (action of item.buttonsTable; track action) {\n <p-button\n styleClass=\"{{ action.styleClass }}\"\n label=\"{{ action.label }}\"\n (click)=\"action.onCLick(rowData)\"\n icon=\"{{ action.icon }}\"\n ></p-button>\n }\n </div>\n }\n </td>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"footer\" let-columns>\n @for (footer of item.rowsFooter; track footer) {\n <tr>\n <td colspan=\"12\">\n <span class=\"font-normal\">{{ footer.text }}:</span>\n {{ footer.value }}\n </td>\n </tr>\n }\n </ng-template>\n </p-table>\n }\n <!-- inputSwitch -->\n @if (item.type === 'switch') {\n <div class=\"d-flex\">\n <p-toggleswitch\n id=\"{{ item.id }}\"\n formControlName=\"{{ item.formControl }}\"\n class=\"mr-10\"\n (onChange)=\"onChange(item.onChange)\"\n ></p-toggleswitch>\n <p translate=\"{{ item.label }}\"></p>\n </div>\n }\n <!-- password -->\n @if (item.type === 'password') {\n <p-password\n id=\"{{ item.id }}\"\n [ngClass]=\"{\r\n 'ng-invalid ng-dirty':\r\n validateForm && control.controls[item.formControl].errors\r\n }\"\r\n placeholder=\"{{ item.placeholder }}\"\n [feedback]=\"false\"\n formControlName=\"{{ item.formControl }}\"\n (onChange)=\"onChange(item.onChange)\"\n styleClass=\"w-full\"\n [toggleMask]=\"true\"\n ></p-password>\n }\n <!-- photo -->\n @if (item.type === 'photo') {\n <div id=\"{{ item.id }}\" class=\"camera\">\n <video id=\"video\" class=\"foto\" autoplay>\n Vídeo não disponível.\n </video>\n <canvas id=\"canvas\" class=\"foto\" style=\"display: none\"></canvas>\n <button\n pButton\n icon=\"pi pi-times\"\n class=\"remove-file\"\n id=\"icon-remove\"\n [rounded]=\"true\"\n style=\"visibility: collapse\"\n (click)=\"removePhoto()\"\n ></button>\n <button\n pButton\n icon=\"pi pi-camera\"\n [rounded]=\"true\"\n (click)=\"capturePhoto(item.formControl)\"\n id=\"button\"\n ></button>\n </div>\n }\n <!-- likert -->\n @if (item.type === 'likert') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th class=\"fd-table-label-column\"></th>\n @for (col of columns; track col) {\n <th>\n <span>{{ col.header }}</span>\n </th>\n }\n </tr>\n </ng-template>\n <ng-template\n pTemplate=\"body\"\n let-row\n let-rowIndex=\"rowIndex\"\n let-columns=\"columns\"\n formArrayName=\"{{ item.formControl }}\"\n >\n <tr>\n <td>\n {{ row }}\n </td>\n @for (control of columns; track item; let index = $index) {\n <td [formGroupName]=\"rowIndex\">\n <p-radioButton\n value=\"{{ columns[index].field }}+{{ row }}\"\n formControlName=\"question{{ rowIndex }}\"\n />\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n }\n <!-- editable table -->\n @if (item.type === 'editable-table') {\n <p-table\n id=\"{{ item.id }}\"\n [scrollable]=\"true\"\n scrollHeight=\"{{ item.scrollHeight }}\"\n [columns]=\"item.colsTable\"\n styleClass=\"p-datatable-striped p-datatable-sm\"\n [value]=\"item.rowsTable\"\n editMode=\"cell\"\n >\n <!-- Cabeçalho da tabela -->\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th class=\"fd-table-label-column\"></th>\n @for (col of columns; track col) {\n <th>\n <span>{{ col.header }}</span>\n </th>\n }\n </tr>\n </ng-template>\n <!-- Corpo da tabela -->\n <ng-template\n pTemplate=\"body\"\n let-row\n let-rowIndex=\"rowIndex\"\n let-columns=\"columns\"\n formArrayName=\"{{ item.formControl }}\"\n let-editing=\"editing\"\n >\n <tr>\n <td>{{ row }}</td>\n @for (control of columns; track item; let index = $index) {\n <td\n [formGroupName]=\"rowIndex\"\n [pEditableColumn]=\"row\"\n pEditableColumnField=\"row\"\n >\n <p-cellEditor>\n <ng-template pTemplate=\"input\">\n <input\n pInputText\n type=\"text\"\n formControlName=\"_{{ control.field }}question{{\r\n rowIndex\r\n }}\"\r\n />\n </ng-template>\n <ng-template pTemplate=\"output\">\n <input\n pInputText\n type=\"text\"\n formControlName=\"_{{ control.field }}question{{\r\n rowIndex\r\n }}\"\r\n />\n </ng-template>\n </p-cellEditor>\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n }\n <!-- validação de item -->\n <div>\n @if (validateForm && control.controls[item.formControl] && control.controls[item.formControl].errors?.['required']) {\n <small\n class=\"danger-text\"\n >\n Campo obrigatório\n </small>\n }\n @if (validateForm && control.controls[item.formControl] && control.controls[item.formControl].errors?.['email']) {\n <small\n class=\"danger-text\"\n >\n Email inválido\n </small>\n }\n </div>\n </div>\n </div>\n }\n @if (\n (buttonsStandard && buttonsStandard.length > 0) ||\n (buttonsOptional && buttonsOptional.length > 0)\n ) {\n <p-divider\n ></p-divider>\n }\n <div class=\"buttons-form\">\n @for (button of buttonsStandard; track button) {\n <div>\n @if (button.type === 'clean') {\n <p-button\n styleClass=\"p-button-warning {{ button.styleClass }}\"\n label=\"Limpar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-times\"\n ></p-button>\n }\n @if (button.type === 'filter') {\n <p-button\n styleClass=\"{{ button.styleClass }}\"\n label=\"Filtrar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-search\"\n ></p-button>\n }\n @if (button.type === 'save') {\n <p-button\n styleClass=\"p-button-success {{ button.styleClass }}\"\n label=\"Salvar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-save\"\n ></p-button>\n }\n @if (button.type === 'cancel') {\n <p-button\n styleClass=\"p-button-danger {{ button.styleClass }}\"\n label=\"Cancelar\"\n (click)=\"button.onCLick()\"\n icon=\"pi pi-times\"\n ></p-button>\n }\n </div>\n }\n @for (button of buttonsOptional; track button) {\n <div>\n <p-button\n styleClass=\"{{ button.styleClass }}\"\n label=\"{{ button.label }}\"\n (click)=\"button.onCLick()\"\n icon=\"{{ button.icon }}\"\n ></p-button>\n </div>\n }\n </div>\n </div>\n </form>\n }\n </div>\n","import { NgModule } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { BrowserModule } from '@angular/platform-browser'\r\nimport { TranslateHttpLoader } from '@ngx-translate/http-loader';\r\nimport { HttpClient, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';\r\nimport { TranslateLoader, TranslateModule } from '@ngx-translate/core';\r\nimport { ButtonModule } from 'primeng/button';\r\nimport { DividerModule } from 'primeng/divider';\r\nimport { SelectModule } from 'primeng/select';\r\nimport { DatePickerModule } from 'primeng/datepicker';\r\nimport { TreeSelectModule } from 'primeng/treeselect';\r\nimport { RadioButtonModule } from 'primeng/radiobutton';\r\nimport { AutoCompleteModule } from 'primeng/autocomplete';\r\nimport { InputTextModule } from 'primeng/inputtext';\r\nimport { EditorModule } from 'primeng/editor';\r\nimport { FormDynamicAngularComponent } from './form-dynamic-angular.component';\r\nimport { MessageService } from 'primeng/api';\r\nimport { TextareaModule } from 'primeng/textarea';\r\nimport { CheckboxModule } from 'primeng/checkbox';\r\nimport { ToggleSwitchModule } from 'primeng/toggleswitch';\r\nimport { SelectButtonModule } from 'primeng/selectbutton';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MultiSelectModule } from 'primeng/multiselect';\r\nimport { FileUploadModule } from 'primeng/fileupload';\r\nimport { TableModule } from 'primeng/table';\r\nimport { PasswordModule } from 'primeng/password';\r\nimport { InputNumberModule } from 'primeng/inputnumber';\r\nimport { InputMaskModule } from 'primeng/inputmask';\r\nimport { PopoverModule } from 'primeng/popover';\r\n\r\nexport function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader {\r\n return new TranslateHttpLoader(http);\r\n}\r\n@NgModule({ declarations: [\n FormDynamicAngularComponent\n ],\n exports: [\n FormDynamicAngularComponent\n ], imports: [InputMaskModule,\n InputNumberModule,\n PasswordModule,\n ButtonModule,\n TableModule,\n FileUploadModule,\n MultiSelectModule,\n CommonModule,\n SelectButtonModule,\n ToggleSwitchModule,\r\n CheckboxModule,\n TextareaModule,\r\n InputTextModule,\n DividerModule,\n DatePickerModule,\r\n SelectModule,\r\n TreeSelectModule,\n RadioButtonModule,\n AutoCompleteModule,\n ReactiveFormsModule,\n PopoverModule,\r\n EditorModule,\n TranslateModule.forRoot({\n loader: {\n provide: TranslateLoader,\n useFactory: HttpLoaderFactory,\n deps: [HttpClient]\n },\n })], providers: [provideHttpClient(withInterceptorsFromDi())] })\r\n\r\nexport class FormDynamicAngularModule { }\r\n","/*\r\n * Public API Surface of form-dynamic-ajax\r\n */\r\n\r\nexport * from './lib/form-dynamic-angular.component';\r\nexport * from './lib/form-dynamic-angular.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyHa,2BAA2B,CAAA;IAgBtC,WAAA,CACS,SAA2B,EAC1B,WAAwB,EAAA;QADzB,IAAA,CAAA,SAAS,GAAT,SAAS;QACR,IAAA,CAAA,WAAW,GAAX,WAAW;QAfZ,IAAA,CAAA,YAAY,GAAY,KAAK;QAE7B,IAAA,CAAA,IAAI,GAAY,EAAE;QAMlB,IAAA,CAAA,KAAK,GAAU,EAAE;QAE1B,IAAA,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