@seniorsistemas/angular-components 17.27.1-fix-interactive-content-46e38731 → 17.27.1-fix-interactive-content-22e06381
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/button/lib/button/button.component.d.ts +3 -3
- package/button/lib/button/button.module.d.ts +1 -6
- package/confirm-dialog/README.md +226 -0
- package/confirm-dialog/index.d.ts +5 -0
- package/confirm-dialog/lib/confirm-dialog.model.d.ts +8 -0
- package/confirm-dialog/lib/confirm-dialog.service.d.ts +8 -0
- package/confirm-dialog/lib/popup-confirm-dialog/popup-confirm-dialog.component.d.ts +7 -0
- package/confirm-dialog/package.json +3 -0
- package/confirm-dialog/public-api.d.ts +2 -0
- package/dialog/index.d.ts +5 -0
- package/dialog/lib/src/dialog/dialog.component.d.ts +29 -0
- package/dialog/lib/src/dialog/models/active-dialog.d.ts +11 -0
- package/dialog/lib/src/dialog/models/dialog-models.d.ts +18 -0
- package/dialog/lib/src/dialog/services/dialog.service.d.ts +24 -0
- package/dialog/lib/src/dialog/services/internal-dialog.service.d.ts +10 -0
- package/dialog/package.json +3 -0
- package/dialog/public-api.d.ts +4 -0
- package/dynamic-form/lib/dynamic-form/components/lookup/lookup.component.d.ts +2 -2
- package/dynamic-form/lib/dynamic-form/dynamic-form.module.d.ts +2 -2
- package/fesm2022/seniorsistemas-angular-components-button.mjs +16 -25
- package/fesm2022/seniorsistemas-angular-components-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-confirm-dialog.mjs +54 -0
- package/fesm2022/seniorsistemas-angular-components-confirm-dialog.mjs.map +1 -0
- package/fesm2022/seniorsistemas-angular-components-dialog.mjs +221 -0
- package/fesm2022/seniorsistemas-angular-components-dialog.mjs.map +1 -0
- package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs +72 -67
- package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-fieldset.mjs +11 -7
- package/fesm2022/seniorsistemas-angular-components-fieldset.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-image-cropper.mjs +15 -10
- package/fesm2022/seniorsistemas-angular-components-image-cropper.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-interactive-content.mjs +1 -0
- package/fesm2022/seniorsistemas-angular-components-interactive-content.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-select.mjs +2 -2
- package/fesm2022/seniorsistemas-angular-components-select.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-structure.mjs +4 -14
- package/fesm2022/seniorsistemas-angular-components-structure.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-text-area-ia.mjs +22 -15
- package/fesm2022/seniorsistemas-angular-components-text-area-ia.mjs.map +1 -1
- package/fieldset/lib/fieldset/fieldset.component.d.ts +7 -5
- package/image-cropper/lib/image-cropper/image-cropper.component.d.ts +2 -0
- package/image-cropper/lib/image-cropper/image-cropper.module.d.ts +6 -5
- package/package.json +16 -2
- package/structure/lib/structure/header.component.d.ts +0 -2
- package/tailwind.css +65 -2
- package/text-area-ia/lib/text-area-ia/text-area-ia.module.d.ts +7 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seniorsistemas-angular-components-text-area-ia.mjs","sources":["../../projects/angular-components/text-area-ia/src/lib/services/IAssist/iassist.service.ts","../../projects/angular-components/text-area-ia/src/lib/text-area-ia/text-area-ia.component.ts","../../projects/angular-components/text-area-ia/src/lib/text-area-ia/text-area-ia.component.html","../../projects/angular-components/text-area-ia/src/lib/text-area-ia/text-area-ia.module.ts","../../projects/angular-components/text-area-ia/src/seniorsistemas-angular-components-text-area-ia.ts"],"sourcesContent":["/* eslint-disable max-len */\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\n\nimport { Observable, throwError } from 'rxjs';\nimport { catchError } from 'rxjs/operators';\n\nimport { IAssistInputData } from './models/iassist-input-data';\nimport { IAssistResponse } from './models/iassist-response';\nimport { ToastService } from \"@seniorsistemas/angular-components/toast\";\n\n@Injectable({ providedIn: 'root' })\nexport class IAssistService {\n\tconstructor(\n\t\tprivate readonly http: HttpClient,\n\t\tprivate readonly toastService: ToastService,\n\t) { }\n\n\tpublic askIA(context: string, data: IAssistInputData): Observable<IAssistResponse> {\n\t\tconst prompt: string = data.prompt\n\t\t\t? this._replacePlaceholder(context, data)\n\t\t\t: this._createPrompt(context, data);\n\n\t\treturn this.http\n\t\t\t.post<IAssistResponse>('platform/iassist/api/latest/completions', {\n\t\t\t\tprompt,\n\t\t\t\tprovider: 'OPEN_AI',\n\t\t\t\tparameters: {\n\t\t\t\t\tmodel: 'gpt-3.5-turbo',\n\t\t\t\t\tmax_tokens: 700,\n\t\t\t\t\ttemperature: 1,\n\t\t\t\t},\n\t\t\t})\n\t\t\t.pipe(\n\t\t\t\tcatchError((err: HttpErrorResponse) => {\n\t\t\t\t\tthis.toastService.show({\n\t\t\t\t\t\tseverity: 'error',\n\t\t\t\t\t\ttitle: err.status ? String(err.status) : 'Error',\n\t\t\t\t\t\ttext: (err.error && err.error.message) || err.statusText || err.message || 'Error',\n\t\t\t\t\t});\n\t\t\t\t\treturn throwError(() => new Error(err.message));\n\t\t\t\t}),\n\t\t\t);\n\t}\n\n\tprivate _replacePlaceholder(context: string, data: IAssistInputData): string {\n\t\tconst values = { ...data, context };\n\t\tdelete (values as Partial<IAssistInputData>).prompt;\n\n\t\tlet result = data.prompt;\n\t\tfor (const key in { ...values, context: context }) {\n\t\t\tconst placeholder = new RegExp(`{{\\\\s*${key}\\\\s*}}`, 'g');\n\t\t\tresult = result.replace(placeholder, values[key as keyof typeof values]);\n\t\t}\n\n\t\tconsole.log('prompt', result);\n\t\treturn result;\n\t}\n\n\tprivate _createPrompt(context: string, data: IAssistInputData): string {\n\t\treturn `Crie um texto genérico para preencher o campo de textarea.\n ${data.label ? `O campo tem o label ${data.label}.` : ''}\n ${data.id ? `O campo tem o id ${data.id}.` : ''}\n ${data.placeholder ? `Considere as instruções/sugestões do placeholder: ${data.placeholder}.` : ''}\n Baseie-se no contexto informado pelo usuário: '${context}'.\n O texto deve ser formal e conter informações pertinentes a um campo como este, como se um usuário real tivesse preenchido com as informações necessárias.\n O texto deve ser neutro com relação a generos, raças, religiões, etc.\n O texto deve ser impessoal e não deve conter informações pessoais do usuário.\n Não direcione o texto a ninguém, não use expressões como: caro, atenciosamente. gostaria, agradeço. O texto deve ser genérico.\n\n Exemplos de texto:\n Um campo de descrição de usuário: \"Usuário com 20 anos, estudante de engenharia, gosta de jogar futebol e assistir filmes.\"\n Outro exemplo de descrição de usuário: \"Usuário administrador, com acesso total ao sistema, responsável por gerenciar os usuários e os produtos.\"\n Um campo de descrição de um produto: \"O produto é um celular, com tela de 6 polegadas, 128GB de armazenamento, 4GB de memória RAM, câmera de 12MP e bateria de 4000mAh.\"\n Outro exemplo de descrição de produto: \"O produto é uma geladeira, com capacidade de 500 litros, 2 portas, cor branca, com freezer e gaveta de legumes.\"\n Outro exemplo de descrição de produto: \"O produto é uma camiseta, tamanho M, cor azul, 100% algodão, com estampa de um gato.\"\n\n Em caso de contexto incompleto crie um texto genérico, como se fosse um exemplo de preenchimento do campo.\n O texto é para um campo de textarea, então escreva um texto sucinto.\n Exiba apenas o texto do output`;\n\t}\n}\n","import { HttpErrorResponse } from '@angular/common/http';\nimport { Component, computed, ElementRef, forwardRef, Input, OnInit, viewChild } from '@angular/core';\nimport { ControlValueAccessor, FormBuilder, FormGroup, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nimport { TranslateService } from '@ngx-translate/core';\n\nimport { throwError } from 'rxjs';\nimport { catchError } from 'rxjs/operators';\n\nimport { IAssistService } from '../services/IAssist/iassist.service';\nimport { IAssistResponse } from '../services/IAssist/models/iassist-response';\nimport { SpeechRecognitionService } from '@seniorsistemas/angular-components/speech-recognition';\nimport { TextAreaComponent } from '@seniorsistemas/angular-components/text-area';\n\n@Component({\n selector: 's-text-area-ia',\n templateUrl: './text-area-ia.component.html',\n styleUrls: ['./text-area-ia.component.scss'],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TextAreaIAComponent),\n multi: true,\n },\n ],\n})\nexport class TextAreaIAComponent implements OnInit, ControlValueAccessor {\n textArea = viewChild<TextAreaComponent>('textAreaElement');\n private static id = 0;\n @Input()\n public id = `TextAreaIA_${TextAreaIAComponent.id--}`;\n\n @Input()\n public label!: string;\n\n @Input()\n public placeholder: string = '';\n\n @Input()\n public prompt!: string;\n\n @Input()\n public readonly: boolean = false;\n\n @Input()\n public rows: number = 10;\n\n @Input()\n public cols: number = 10;\n\n @Input()\n public speechRecognition = false;\n\n @Input()\n public keepContext = false;\n\n @Input()\n speechRecognitionPlaceholder = '';\n\n @Input()\n maxLength: number | null = null;\n\n // public fields: FormField[] = [];\n public formGroup: FormGroup = new FormGroup({});\n public contextForm: FormGroup = new FormGroup({});\n public isVisible = false;\n public isLoading = false;\n public value = '';\n\n private _onChange?: (value: string) => void;\n private _onTouched?: () => void;\n\n constructor(\n private readonly _iassistService: IAssistService, // TODO: Mover pra uma pasta global\n private readonly _formBuilder: FormBuilder,\n private readonly _translateService: TranslateService,\n public speechRecognitionService: SpeechRecognitionService\n ) { }\n\n public ngOnInit(): void {\n // this._createDialogFields();\n this._createDialogFormGroup();\n }\n\n public writeValue(value: string): void {\n this.value = value;\n }\n\n public registerOnChange(onChange: (value: string) => void): void {\n this._onChange = onChange;\n }\n\n public registerOnTouched(onTouched: () => void): void {\n this._onTouched = onTouched;\n }\n\n public onValueChange(value: string): void {\n this.value = value;\n this._onChange?.(value);\n }\n\n public showDialog(): void {\n this.isVisible = true;\n if (this._onTouched) {\n this._onTouched();\n }\n }\n\n public hideDialog(): void {\n this.isVisible = false;\n }\n\n public onHideDialog(): void {\n this.formGroup.get('context')?.setValue('');\n }\n\n public submitContext(): void {\n const context = this.formGroup.get('context');\n if (!context) {\n return;\n }\n this.isLoading = true;\n\n this._iassistService\n .askIA(context.value, {\n id: this.id,\n label: this.label,\n placeholder: this.placeholder,\n prompt: this.prompt,\n })\n .pipe(\n catchError((err: HttpErrorResponse) => {\n this.isLoading = false;\n return throwError(() => new Error(err.message));\n }),\n )\n .subscribe((res: IAssistResponse) => {\n this.value = res.text;\n this._onChange?.(this.value);\n this.isLoading = false;\n });\n\n this.hideDialog();\n }\n\n private _createDialogFormGroup(): void {\n this.formGroup = this._formBuilder.group({\n context: [''],\n });\n }\n}\n\n","<s-loading-state\n [loading]=\"isLoading\"\n [blockWindow]=\"true\"\n>\n</s-loading-state>\n\n<p-dialog\n [(visible)]=\"isVisible\"\n [modal]=\"true\"\n [style]=\"{ width: '50vw' }\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n (onHide)=\"onHideDialog()\"\n>\n <ng-template #header>\n <div class=\"dialog-header\">\n <span class=\"iassist-icon\">\n <ng-container [ngTemplateOutlet]=\"iassistIcon\"></ng-container>\n </span>\n IAssist - Content Generator\n </div>\n </ng-template>\n\n <form [formGroup]=\"formGroup\">\n <label for=\"context\">{{ 'platform.angular_components.context' | translate }}</label>\n <s-textarea inputId=\"context\" formControlName=\"context\" [speechRecognition]=\"speechRecognition\" [keepContext]=\"keepContext\" />\n </form>\n\n <ng-template #footer>\n <div class=\"footer-content\">\n <s-button\n id=\"-submit-button\"\n type=\"button\"\n [label]=\"'platform.angular_components.generate_text' | translate\"\n (clicked)=\"submitContext()\"\n sTooltip=\"(ALT + SHIFT + S)\"\n showDelay=\"500\"\n >\n </s-button>\n <s-button\n id=\"-cancel-button\"\n type=\"button\"\n priority=\"link\"\n [label]=\"'platform.angular_components.cancel' | translate\"\n (clicked)=\"hideDialog()\"\n sTooltip=\"(ALT + SHIFT + C)\"\n showDelay=\"500\"\n >\n </s-button>\n </div>\n </ng-template>\n</p-dialog>\n\n<div class=\"textarea-ia\">\n <s-textarea\n #textAreaElement\n [inputId]=\"id\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onValueChange($event)\"\n [rows]=\"rows\"\n [readOnly]=\"readonly\"\n [placeholder]=\"placeholder\"\n [keepContext]=\"keepContext\"\n [speechRecognitionPlaceholder]=\"speechRecognitionPlaceholder\"\n [maxLength]=\"maxLength\"\n [speechRecognition]=\"speechRecognition\">\n </s-textarea>\n <!--TODO: Tooltip em propriedade-->\n <button\n class=\"iassist-button\"\n [class.speech-recognition]=\"speechRecognition && speechRecognitionService.hasSupportSpeechRecognition\"\n (click)=\"showDialog()\"\n sTooltip=\"IAssist - Content Generator\"\n >\n <ng-container [ngTemplateOutlet]=\"iassistIcon\"></ng-container>\n </button>\n</div>\n\n<ng-template #iassistIcon>\n <svg\n style=\"width: 100%; height: 100%\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5.81451 18.1054L5.99593 17.6059L7.52166 13.4099L7.60877 13.1726L7.61277 13.1614L7.94285 12.2543L8.01159 12.0648L8.05394 11.949L5.2998 8.52426L5.02726 8.18379C5.00569 8.15821 4.9881 8.13104 4.97292 8.10226C4.90099 7.9632 4.85063 7.81294 4.82186 7.6531C4.73075 7.1344 4.90418 6.60771 5.28382 6.24326C5.29421 6.23447 5.3038 6.22567 5.31419 6.21688L5.47164 6.0914L9.3439 3.00238L9.5469 2.84094L9.57088 2.82096L10.4101 2.15041L11.8007 1.04188C11.2181 0.925188 10.6163 0.863647 10.0001 0.863647C4.95374 0.863647 0.863281 4.9541 0.863281 9.99963C0.863281 13.5346 2.87254 16.5989 5.80971 18.1182\"\n fill=\"#0FA389\"\n />\n <path\n d=\"M14.099 1.83472L13.9495 2.24632L11.997 7.61074L11.9427 7.7594L11.9003 7.87369L14.7448 11.4103C14.7463 11.4127 14.7479 11.4143 14.7495 11.4167L14.9414 11.654C14.9541 11.67 14.9661 11.6868 14.9765 11.7044C15.0764 11.8698 15.1444 12.0505 15.1779 12.2431C15.273 12.7826 15.0812 13.3284 14.676 13.6897C14.656 13.7129 14.6345 13.7344 14.6105 13.7536L11.8563 15.9507L11.6789 16.0922L11.6022 16.1537L10.7406 16.8402V16.841L10.3937 17.1176L9.85747 17.5452L9.39951 17.9112L8.11035 18.9398C8.72016 19.0677 9.35155 19.1364 9.99973 19.1364C15.0461 19.1364 19.1365 15.046 19.1365 9.99964C19.1365 6.42789 17.0857 3.33727 14.099 1.83472Z\"\n fill=\"#0FA389\"\n />\n <path\n d=\"M14.7287 12.3222C14.7047 12.1832 14.6551 12.0545 14.5864 11.941L14.3954 11.7036C14.3954 11.7036 14.3946 11.7028 14.3938 11.7028L11.3839 7.96005L10.5031 6.86511L10.4256 6.7676L9.03255 5.03487L8.83674 4.79191C8.79278 4.71678 8.75681 4.63446 8.73204 4.54814C8.72085 4.51058 8.71286 4.47222 8.70566 4.43465C8.68568 4.32196 8.68408 4.21007 8.69847 4.10217L8.62334 4.16291L8.44511 4.30438L5.75731 6.44871L5.60066 6.57339C5.34011 6.82275 5.20584 7.19279 5.27218 7.57482C5.29296 7.68751 5.32892 7.79541 5.37927 7.89292C5.37927 7.89292 5.37927 7.89292 5.38007 7.89371L5.6566 8.23818L8.57139 11.8627L8.63293 11.9394L9.53047 13.0559L9.59041 13.1303L9.98363 13.6186L11.0178 14.9046C11.0186 14.9054 11.0194 14.9069 11.0202 14.9077L11.1361 15.0516V15.0524C11.2184 15.1755 11.2768 15.317 11.3048 15.4728C11.3239 15.5807 11.3263 15.6878 11.3143 15.7925L11.3175 15.7965L11.3943 15.735L11.5717 15.5935L14.3266 13.3964L14.3218 13.3908C14.6335 13.1438 14.8022 12.7394 14.7287 12.3222Z\"\n fill=\"#F3F3F5\"\n />\n <path\n d=\"M10.6822 15.0082C10.6814 15.0074 10.6806 15.0058 10.6806 15.005L10.5672 14.8643L10.3809 14.6325L10.3282 14.567L10.2211 14.4335L9.40028 13.4129L9.32835 13.3242L8.77289 12.6345L8.68098 12.5194L8.44121 12.2205L8.37168 12.4099L8.04159 13.317L8.0376 13.329L7.95128 13.5664L6.42475 17.7623L6.24333 18.2618L5.90605 19.1881L5.73262 19.6645C5.73182 19.6661 5.73102 19.6677 5.73102 19.6685C5.72863 19.6749 5.72703 19.6821 5.72543 19.6885C5.71584 19.7228 5.71424 19.758 5.72063 19.7948C5.74461 19.929 5.87329 20.0193 6.00836 19.9962C6.04112 19.9898 6.07229 19.9778 6.09867 19.9602C6.09867 19.9602 6.09947 19.9602 6.10027 19.9594L6.14103 19.9266L7.39422 18.9268L9.11496 17.5537L9.57292 17.1877L10.1092 16.7601L10.4561 16.4827L10.4537 16.4811C10.7582 16.2382 10.9236 15.8402 10.8509 15.4294C10.8237 15.2735 10.7654 15.1313 10.6822 15.0082Z\"\n fill=\"#0C847B\"\n />\n <path\n d=\"M9.17644 4.56325C9.2124 4.68713 9.26915 4.80062 9.34268 4.90053C9.34348 4.90053 9.34428 4.90213 9.34428 4.90213L9.40342 4.97645C9.40502 4.97805 9.40582 4.97885 9.40662 4.98045L9.56806 5.17946L9.64878 5.28096L9.67915 5.31932L9.8414 5.51993L10.5559 6.40947L10.7054 6.59569L11.2169 7.23188L11.5142 7.60192L11.5693 7.45247L13.5202 2.08964L14.1596 0.332135C14.1596 0.330536 14.1604 0.328139 14.1612 0.32654C14.174 0.288177 14.1772 0.246617 14.17 0.205058C14.1468 0.0699879 14.0182 -0.0195258 13.8823 0.00365186C13.8407 0.0116442 13.8024 0.028428 13.7712 0.0540033L12.578 1.00589L12.498 1.06982L10.6958 2.50844L9.85658 3.17819L9.8326 3.19737L9.6296 3.35961L9.45297 3.50028C9.2116 3.73925 9.08692 4.08931 9.15006 4.44976C9.15726 4.48813 9.16525 4.52649 9.17644 4.56325Z\"\n fill=\"#0C847B\"\n />\n </svg>\n</ng-template>\n","import { NgModule } from \"@angular/core\";\nimport { FormsModule, ReactiveFormsModule } from \"@angular/forms\";\n\nimport { TranslateModule } from \"@ngx-translate/core\";\nimport { DialogModule } from \"primeng/dialog\";\n\nimport { TextAreaIAComponent } from \"./text-area-ia.component\";\nimport { NgTemplateOutlet } from \"@angular/common\";\nimport { ButtonModule } from \"@seniorsistemas/angular-components/button\";\nimport { LoadingStateModule } from \"@seniorsistemas/angular-components/loading-state\";\nimport { TextAreaModule } from \"@seniorsistemas/angular-components/text-area\";\n\n@NgModule({\n imports: [\n FormsModule,\n ReactiveFormsModule,\n TranslateModule,\n DialogModule,\n ButtonModule,\n LoadingStateModule,\n NgTemplateOutlet,\n TextAreaModule\n ],\n declarations: [TextAreaIAComponent],\n exports: [TextAreaIAComponent],\n})\nexport class TextAreaIAModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.IAssistService","i2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;MAYa,cAAc,CAAA;AAER,IAAA,IAAA,CAAA;AACA,IAAA,YAAA,CAAA;IAFlB,WACkB,CAAA,IAAgB,EAChB,YAA0B,EAAA;QAD1B,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;QAChB,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAc;KACvC;IAEE,KAAK,CAAC,OAAe,EAAE,IAAsB,EAAA;AACnD,QAAA,MAAM,MAAM,GAAW,IAAI,CAAC,MAAM;cAC/B,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC;cACvC,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAErC,OAAO,IAAI,CAAC,IAAI;aACd,IAAI,CAAkB,yCAAyC,EAAE;YACjE,MAAM;AACN,YAAA,QAAQ,EAAE,SAAS;AACnB,YAAA,UAAU,EAAE;AACX,gBAAA,KAAK,EAAE,eAAe;AACtB,gBAAA,UAAU,EAAE,GAAG;AACf,gBAAA,WAAW,EAAE,CAAC;AACd,aAAA;SACD,CAAC;AACD,aAAA,IAAI,CACJ,UAAU,CAAC,CAAC,GAAsB,KAAI;AACrC,YAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;AACtB,gBAAA,QAAQ,EAAE,OAAO;AACjB,gBAAA,KAAK,EAAE,GAAG,CA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A,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;yGAAhB,gBAAgB,EAAA,YAAA,EAAA,CAHV,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAT9B,WAAW;YACX,mBAAmB;YACnB,eAAe;YACf,YAAY;YACZ,YAAY;YACZ,kBAAkB;YAClB,gBAAgB;AAChB,YAAA,cAAc,aAGR,mBAAmB,CAAA,EAAA,CAAA,CAAA;AAEpB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAZrB,WAAW;YACX,mBAAmB;YACnB,eAAe;YACf,YAAY;YACZ,YAAY;YACZ,kBAAkB;YAElB,cAAc,CAAA,EAAA,CAAA,CAAA;;4FAKT,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAd5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,WAAW;wBACX,mBAAmB;wBACnB,eAAe;wBACf,YAAY;wBACZ,YAAY;wBACZ,kBAAkB;wBAClB,gBAAgB;wBAChB,cAAc;AACjB,qBAAA;oBACD,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;AACjC,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"seniorsistemas-angular-components-text-area-ia.mjs","sources":["../../projects/angular-components/text-area-ia/src/lib/services/IAssist/iassist.service.ts","../../projects/angular-components/text-area-ia/src/lib/text-area-ia/text-area-ia.component.ts","../../projects/angular-components/text-area-ia/src/lib/text-area-ia/text-area-ia.component.html","../../projects/angular-components/text-area-ia/src/lib/text-area-ia/text-area-ia.module.ts","../../projects/angular-components/text-area-ia/src/seniorsistemas-angular-components-text-area-ia.ts"],"sourcesContent":["/* eslint-disable max-len */\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\n\nimport { Observable, throwError } from 'rxjs';\nimport { catchError } from 'rxjs/operators';\n\nimport { IAssistInputData } from './models/iassist-input-data';\nimport { IAssistResponse } from './models/iassist-response';\nimport { ToastService } from \"@seniorsistemas/angular-components/toast\";\n\n@Injectable({ providedIn: 'root' })\nexport class IAssistService {\n\tconstructor(\n\t\tprivate readonly http: HttpClient,\n\t\tprivate readonly toastService: ToastService,\n\t) { }\n\n\tpublic askIA(context: string, data: IAssistInputData): Observable<IAssistResponse> {\n\t\tconst prompt: string = data.prompt\n\t\t\t? this._replacePlaceholder(context, data)\n\t\t\t: this._createPrompt(context, data);\n\n\t\treturn this.http\n\t\t\t.post<IAssistResponse>('platform/iassist/api/latest/completions', {\n\t\t\t\tprompt,\n\t\t\t\tprovider: 'OPEN_AI',\n\t\t\t\tparameters: {\n\t\t\t\t\tmodel: 'gpt-3.5-turbo',\n\t\t\t\t\tmax_tokens: 700,\n\t\t\t\t\ttemperature: 1,\n\t\t\t\t},\n\t\t\t})\n\t\t\t.pipe(\n\t\t\t\tcatchError((err: HttpErrorResponse) => {\n\t\t\t\t\tthis.toastService.show({\n\t\t\t\t\t\tseverity: 'error',\n\t\t\t\t\t\ttitle: err.status ? String(err.status) : 'Error',\n\t\t\t\t\t\ttext: (err.error && err.error.message) || err.statusText || err.message || 'Error',\n\t\t\t\t\t});\n\t\t\t\t\treturn throwError(() => new Error(err.message));\n\t\t\t\t}),\n\t\t\t);\n\t}\n\n\tprivate _replacePlaceholder(context: string, data: IAssistInputData): string {\n\t\tconst values = { ...data, context };\n\t\tdelete (values as Partial<IAssistInputData>).prompt;\n\n\t\tlet result = data.prompt;\n\t\tfor (const key in { ...values, context: context }) {\n\t\t\tconst placeholder = new RegExp(`{{\\\\s*${key}\\\\s*}}`, 'g');\n\t\t\tresult = result.replace(placeholder, values[key as keyof typeof values]);\n\t\t}\n\n\t\tconsole.log('prompt', result);\n\t\treturn result;\n\t}\n\n\tprivate _createPrompt(context: string, data: IAssistInputData): string {\n\t\treturn `Crie um texto genérico para preencher o campo de textarea.\n ${data.label ? `O campo tem o label ${data.label}.` : ''}\n ${data.id ? `O campo tem o id ${data.id}.` : ''}\n ${data.placeholder ? `Considere as instruções/sugestões do placeholder: ${data.placeholder}.` : ''}\n Baseie-se no contexto informado pelo usuário: '${context}'.\n O texto deve ser formal e conter informações pertinentes a um campo como este, como se um usuário real tivesse preenchido com as informações necessárias.\n O texto deve ser neutro com relação a generos, raças, religiões, etc.\n O texto deve ser impessoal e não deve conter informações pessoais do usuário.\n Não direcione o texto a ninguém, não use expressões como: caro, atenciosamente. gostaria, agradeço. O texto deve ser genérico.\n\n Exemplos de texto:\n Um campo de descrição de usuário: \"Usuário com 20 anos, estudante de engenharia, gosta de jogar futebol e assistir filmes.\"\n Outro exemplo de descrição de usuário: \"Usuário administrador, com acesso total ao sistema, responsável por gerenciar os usuários e os produtos.\"\n Um campo de descrição de um produto: \"O produto é um celular, com tela de 6 polegadas, 128GB de armazenamento, 4GB de memória RAM, câmera de 12MP e bateria de 4000mAh.\"\n Outro exemplo de descrição de produto: \"O produto é uma geladeira, com capacidade de 500 litros, 2 portas, cor branca, com freezer e gaveta de legumes.\"\n Outro exemplo de descrição de produto: \"O produto é uma camiseta, tamanho M, cor azul, 100% algodão, com estampa de um gato.\"\n\n Em caso de contexto incompleto crie um texto genérico, como se fosse um exemplo de preenchimento do campo.\n O texto é para um campo de textarea, então escreva um texto sucinto.\n Exiba apenas o texto do output`;\n\t}\n}\n","import { HttpErrorResponse } from '@angular/common/http';\nimport { Component, computed, ElementRef, forwardRef, Input, OnInit, viewChild } from '@angular/core';\nimport { ControlValueAccessor, FormBuilder, FormGroup, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nimport { TranslateService } from '@ngx-translate/core';\n\nimport { throwError } from 'rxjs';\nimport { catchError } from 'rxjs/operators';\n\nimport { IAssistService } from '../services/IAssist/iassist.service';\nimport { IAssistResponse } from '../services/IAssist/models/iassist-response';\nimport { SpeechRecognitionService } from '@seniorsistemas/angular-components/speech-recognition';\nimport { TextAreaComponent } from '@seniorsistemas/angular-components/text-area';\n\n@Component({\n selector: 's-text-area-ia',\n templateUrl: './text-area-ia.component.html',\n styleUrls: ['./text-area-ia.component.scss'],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TextAreaIAComponent),\n multi: true,\n },\n ],\n})\nexport class TextAreaIAComponent implements OnInit, ControlValueAccessor {\n textArea = viewChild<TextAreaComponent>('textAreaElement');\n private static id = 0;\n @Input()\n public id = `TextAreaIA_${TextAreaIAComponent.id--}`;\n\n @Input()\n public label!: string;\n\n @Input()\n public placeholder: string = '';\n\n @Input()\n public prompt!: string;\n\n @Input()\n public readonly: boolean = false;\n\n @Input()\n public rows: number = 10;\n\n @Input()\n public cols: number = 10;\n\n @Input()\n public speechRecognition = false;\n\n @Input()\n public keepContext = false;\n\n @Input()\n speechRecognitionPlaceholder = '';\n\n @Input()\n maxLength: number | null = null;\n\n // public fields: FormField[] = [];\n public formGroup: FormGroup = new FormGroup({});\n public contextForm: FormGroup = new FormGroup({});\n public isVisible = false;\n public isLoading = false;\n public value = '';\n\n private _onChange?: (value: string) => void;\n private _onTouched?: () => void;\n\n constructor(\n private readonly _iassistService: IAssistService, // TODO: Mover pra uma pasta global\n private readonly _formBuilder: FormBuilder,\n private readonly _translateService: TranslateService,\n public speechRecognitionService: SpeechRecognitionService\n ) { }\n\n public ngOnInit(): void {\n // this._createDialogFields();\n this._createDialogFormGroup();\n }\n\n public writeValue(value: string): void {\n this.value = value;\n }\n\n public registerOnChange(onChange: (value: string) => void): void {\n this._onChange = onChange;\n }\n\n public registerOnTouched(onTouched: () => void): void {\n this._onTouched = onTouched;\n }\n\n public onValueChange(value: string): void {\n this.value = value;\n this._onChange?.(value);\n }\n\n public showDialog(): void {\n this.isVisible = true;\n if (this._onTouched) {\n this._onTouched();\n }\n }\n\n public hideDialog(): void {\n this.isVisible = false;\n }\n\n public onHideDialog(): void {\n if (this.isVisible === false) {\n this.formGroup.get('context')?.setValue('');\n }\n }\n\n public submitContext(): void {\n const context = this.formGroup.get('context');\n if (!context) {\n return;\n }\n this.isLoading = true;\n\n this._iassistService\n .askIA(context.value, {\n id: this.id,\n label: this.label,\n placeholder: this.placeholder,\n prompt: this.prompt,\n })\n .pipe(\n catchError((err: HttpErrorResponse) => {\n this.isLoading = false;\n return throwError(() => new Error(err.message));\n }),\n )\n .subscribe((res: IAssistResponse) => {\n this.value = res.text;\n this._onChange?.(this.value);\n this.isLoading = false;\n });\n\n this.hideDialog();\n }\n\n private _createDialogFormGroup(): void {\n this.formGroup = this._formBuilder.group({\n context: [''],\n });\n }\n}\n\n","<s-loading-state\n [loading]=\"isLoading\"\n [blockWindow]=\"true\"\n>\n</s-loading-state>\n\n<s-dialog\n [(visible)]=\"isVisible\"\n [escapeOnEsc]=\"false\"\n [destroyClickOutside]=\"false\"\n size=\"lg\"\n (visibleChange)=\"onHideDialog()\"\n>\n <ng-template sTemplate=\"header\">\n <div class=\"dialog-header\">\n <span class=\"iassist-icon\">\n <ng-container [ngTemplateOutlet]=\"iassistIcon\"></ng-container>\n </span>\n IAssist - Content Generator\n </div>\n </ng-template>\n\n <form [formGroup]=\"formGroup\">\n <label for=\"context\">{{ 'platform.angular_components.context' | translate }}</label>\n <s-textarea\n inputId=\"context\"\n formControlName=\"context\"\n [speechRecognition]=\"speechRecognition\"\n [keepContext]=\"keepContext\"\n />\n </form>\n\n <ng-template sTemplate=\"footer\">\n <div class=\"footer-content\">\n <s-button\n id=\"-submit-button\"\n type=\"button\"\n [label]=\"'platform.angular_components.generate_text' | translate\"\n (clicked)=\"submitContext()\"\n sTooltip=\"(ALT + SHIFT + S)\"\n showDelay=\"500\"\n >\n </s-button>\n <s-button\n id=\"-cancel-button\"\n type=\"button\"\n priority=\"link\"\n [label]=\"'platform.angular_components.cancel' | translate\"\n (clicked)=\"hideDialog()\"\n sTooltip=\"(ALT + SHIFT + C)\"\n showDelay=\"500\"\n >\n </s-button>\n </div>\n </ng-template>\n</s-dialog>\n\n<div class=\"textarea-ia\">\n <s-textarea\n #textAreaElement\n [inputId]=\"id\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onValueChange($event)\"\n [rows]=\"rows\"\n [readOnly]=\"readonly\"\n [placeholder]=\"placeholder\"\n [keepContext]=\"keepContext\"\n [speechRecognitionPlaceholder]=\"speechRecognitionPlaceholder\"\n [maxLength]=\"maxLength\"\n [speechRecognition]=\"speechRecognition\"\n >\n </s-textarea>\n <!--TODO: Tooltip em propriedade-->\n <button\n class=\"iassist-button\"\n [class.speech-recognition]=\"speechRecognition && speechRecognitionService.hasSupportSpeechRecognition\"\n (click)=\"showDialog()\"\n sTooltip=\"IAssist - Content Generator\"\n >\n <ng-container [ngTemplateOutlet]=\"iassistIcon\"></ng-container>\n </button>\n</div>\n\n<ng-template #iassistIcon>\n <svg\n style=\"width: 100%; height: 100%\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5.81451 18.1054L5.99593 17.6059L7.52166 13.4099L7.60877 13.1726L7.61277 13.1614L7.94285 12.2543L8.01159 12.0648L8.05394 11.949L5.2998 8.52426L5.02726 8.18379C5.00569 8.15821 4.9881 8.13104 4.97292 8.10226C4.90099 7.9632 4.85063 7.81294 4.82186 7.6531C4.73075 7.1344 4.90418 6.60771 5.28382 6.24326C5.29421 6.23447 5.3038 6.22567 5.31419 6.21688L5.47164 6.0914L9.3439 3.00238L9.5469 2.84094L9.57088 2.82096L10.4101 2.15041L11.8007 1.04188C11.2181 0.925188 10.6163 0.863647 10.0001 0.863647C4.95374 0.863647 0.863281 4.9541 0.863281 9.99963C0.863281 13.5346 2.87254 16.5989 5.80971 18.1182\"\n fill=\"#0FA389\"\n />\n <path\n d=\"M14.099 1.83472L13.9495 2.24632L11.997 7.61074L11.9427 7.7594L11.9003 7.87369L14.7448 11.4103C14.7463 11.4127 14.7479 11.4143 14.7495 11.4167L14.9414 11.654C14.9541 11.67 14.9661 11.6868 14.9765 11.7044C15.0764 11.8698 15.1444 12.0505 15.1779 12.2431C15.273 12.7826 15.0812 13.3284 14.676 13.6897C14.656 13.7129 14.6345 13.7344 14.6105 13.7536L11.8563 15.9507L11.6789 16.0922L11.6022 16.1537L10.7406 16.8402V16.841L10.3937 17.1176L9.85747 17.5452L9.39951 17.9112L8.11035 18.9398C8.72016 19.0677 9.35155 19.1364 9.99973 19.1364C15.0461 19.1364 19.1365 15.046 19.1365 9.99964C19.1365 6.42789 17.0857 3.33727 14.099 1.83472Z\"\n fill=\"#0FA389\"\n />\n <path\n d=\"M14.7287 12.3222C14.7047 12.1832 14.6551 12.0545 14.5864 11.941L14.3954 11.7036C14.3954 11.7036 14.3946 11.7028 14.3938 11.7028L11.3839 7.96005L10.5031 6.86511L10.4256 6.7676L9.03255 5.03487L8.83674 4.79191C8.79278 4.71678 8.75681 4.63446 8.73204 4.54814C8.72085 4.51058 8.71286 4.47222 8.70566 4.43465C8.68568 4.32196 8.68408 4.21007 8.69847 4.10217L8.62334 4.16291L8.44511 4.30438L5.75731 6.44871L5.60066 6.57339C5.34011 6.82275 5.20584 7.19279 5.27218 7.57482C5.29296 7.68751 5.32892 7.79541 5.37927 7.89292C5.37927 7.89292 5.37927 7.89292 5.38007 7.89371L5.6566 8.23818L8.57139 11.8627L8.63293 11.9394L9.53047 13.0559L9.59041 13.1303L9.98363 13.6186L11.0178 14.9046C11.0186 14.9054 11.0194 14.9069 11.0202 14.9077L11.1361 15.0516V15.0524C11.2184 15.1755 11.2768 15.317 11.3048 15.4728C11.3239 15.5807 11.3263 15.6878 11.3143 15.7925L11.3175 15.7965L11.3943 15.735L11.5717 15.5935L14.3266 13.3964L14.3218 13.3908C14.6335 13.1438 14.8022 12.7394 14.7287 12.3222Z\"\n fill=\"#F3F3F5\"\n />\n <path\n d=\"M10.6822 15.0082C10.6814 15.0074 10.6806 15.0058 10.6806 15.005L10.5672 14.8643L10.3809 14.6325L10.3282 14.567L10.2211 14.4335L9.40028 13.4129L9.32835 13.3242L8.77289 12.6345L8.68098 12.5194L8.44121 12.2205L8.37168 12.4099L8.04159 13.317L8.0376 13.329L7.95128 13.5664L6.42475 17.7623L6.24333 18.2618L5.90605 19.1881L5.73262 19.6645C5.73182 19.6661 5.73102 19.6677 5.73102 19.6685C5.72863 19.6749 5.72703 19.6821 5.72543 19.6885C5.71584 19.7228 5.71424 19.758 5.72063 19.7948C5.74461 19.929 5.87329 20.0193 6.00836 19.9962C6.04112 19.9898 6.07229 19.9778 6.09867 19.9602C6.09867 19.9602 6.09947 19.9602 6.10027 19.9594L6.14103 19.9266L7.39422 18.9268L9.11496 17.5537L9.57292 17.1877L10.1092 16.7601L10.4561 16.4827L10.4537 16.4811C10.7582 16.2382 10.9236 15.8402 10.8509 15.4294C10.8237 15.2735 10.7654 15.1313 10.6822 15.0082Z\"\n fill=\"#0C847B\"\n />\n <path\n d=\"M9.17644 4.56325C9.2124 4.68713 9.26915 4.80062 9.34268 4.90053C9.34348 4.90053 9.34428 4.90213 9.34428 4.90213L9.40342 4.97645C9.40502 4.97805 9.40582 4.97885 9.40662 4.98045L9.56806 5.17946L9.64878 5.28096L9.67915 5.31932L9.8414 5.51993L10.5559 6.40947L10.7054 6.59569L11.2169 7.23188L11.5142 7.60192L11.5693 7.45247L13.5202 2.08964L14.1596 0.332135C14.1596 0.330536 14.1604 0.328139 14.1612 0.32654C14.174 0.288177 14.1772 0.246617 14.17 0.205058C14.1468 0.0699879 14.0182 -0.0195258 13.8823 0.00365186C13.8407 0.0116442 13.8024 0.028428 13.7712 0.0540033L12.578 1.00589L12.498 1.06982L10.6958 2.50844L9.85658 3.17819L9.8326 3.19737L9.6296 3.35961L9.45297 3.50028C9.2116 3.73925 9.08692 4.08931 9.15006 4.44976C9.15726 4.48813 9.16525 4.52649 9.17644 4.56325Z\"\n fill=\"#0C847B\"\n />\n </svg>\n</ng-template>\n","import { NgModule } from \"@angular/core\";\nimport { FormsModule, ReactiveFormsModule } from \"@angular/forms\";\n\nimport { TranslateModule } from \"@ngx-translate/core\";\n\nimport { TextAreaIAComponent } from \"./text-area-ia.component\";\nimport { NgTemplateOutlet } from \"@angular/common\";\nimport { ButtonModule } from \"@seniorsistemas/angular-components/button\";\nimport { LoadingStateModule } from \"@seniorsistemas/angular-components/loading-state\";\nimport { TextAreaModule } from \"@seniorsistemas/angular-components/text-area\";\nimport { DialogComponent } from \"@seniorsistemas/angular-components/dialog\";\nimport { TemplateModule } from \"@seniorsistemas/angular-components/template\";\n\n@NgModule({\n imports: [\n FormsModule,\n ReactiveFormsModule,\n TranslateModule,\n ButtonModule,\n LoadingStateModule,\n NgTemplateOutlet,\n TextAreaModule,\n DialogComponent,\n TemplateModule\n ],\n declarations: [TextAreaIAComponent],\n exports: [TextAreaIAComponent],\n})\nexport class TextAreaIAModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.IAssistService","i2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;MAYa,cAAc,CAAA;AAER,IAAA,IAAA,CAAA;AACA,IAAA,YAAA,CAAA;IAFlB,WACkB,CAAA,IAAgB,EAChB,YAA0B,EAAA;QAD1B,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;QAChB,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAc;KACvC;IAEE,KAAK,CAAC,OAAe,EAAE,IAAsB,EAAA;AACnD,QAAA,MAAM,MAAM,GAAW,IAAI,CAAC,MAAM;cAC/B,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC;cACvC,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAErC,OAAO,IAAI,CAAC,IAAI;aACd,IAAI,CAAkB,yCAAyC,EAAE;YACjE,MAAM;AACN,YAAA,QAAQ,EAAE,SAAS;AACnB,YAAA,UAAU,EAAE;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B,CAAA,EAAA,OAAA,EAAA,CAV9B,WAAW;YACX,mBAAmB;YACnB,eAAe;YACf,YAAY;YACZ,kBAAkB;YAClB,gBAAgB;YAChB,cAAc;YACd,eAAe;AACf,YAAA,cAAc,aAGR,mBAAmB,CAAA,EAAA,CAAA,CAAA;AAEpB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAbrB,WAAW;YACX,mBAAmB;YACnB,eAAe;YACf,YAAY;YACZ,kBAAkB;YAElB,cAAc;YACd,eAAe;YACf,cAAc,CAAA,EAAA,CAAA,CAAA;;4FAKT,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAf5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,WAAW;wBACX,mBAAmB;wBACnB,eAAe;wBACf,YAAY;wBACZ,kBAAkB;wBAClB,gBAAgB;wBAChB,cAAc;wBACd,eAAe;wBACf,cAAc;AACjB,qBAAA;oBACD,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;AACjC,iBAAA,CAAA;;;AC3BD;;AAEG;;;;"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
2
|
-
import {
|
|
1
|
+
import { AfterViewInit, EventEmitter, QueryList, TemplateRef } from "@angular/core";
|
|
2
|
+
import { TemplateDirective } from "dist/template";
|
|
3
3
|
import { FieldSetToggle } from "./fieldset.models";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FieldsetComponent {
|
|
5
|
+
export declare class FieldsetComponent implements AfterViewInit {
|
|
6
6
|
legend: string;
|
|
7
7
|
toggleable: boolean;
|
|
8
8
|
icon: string;
|
|
9
9
|
destroyOnHide: boolean;
|
|
10
|
-
readonly
|
|
10
|
+
readonly templateDirectives: QueryList<TemplateDirective> | undefined;
|
|
11
|
+
headerTemplate: TemplateRef<any> | undefined;
|
|
11
12
|
beforeToggle: EventEmitter<FieldSetToggle>;
|
|
12
13
|
afterToggle: EventEmitter<FieldSetToggle>;
|
|
13
14
|
active: boolean;
|
|
15
|
+
ngAfterViewInit(): void;
|
|
14
16
|
toggleActive(originalEvent: PointerEvent | KeyboardEvent): void;
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldsetComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldsetComponent, "s-fieldset", never, { "legend": { "alias": "legend"; "required": false; }; "toggleable": { "alias": "toggleable"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "destroyOnHide": { "alias": "destroyOnHide"; "required": false; }; }, { "beforeToggle": "beforeToggle"; "afterToggle": "afterToggle"; }, ["
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldsetComponent, "s-fieldset", never, { "legend": { "alias": "legend"; "required": false; }; "toggleable": { "alias": "toggleable"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "destroyOnHide": { "alias": "destroyOnHide"; "required": false; }; }, { "beforeToggle": "beforeToggle"; "afterToggle": "afterToggle"; }, ["templateDirectives"], ["*"], false, never>;
|
|
17
19
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import Cropper from 'cropperjs';
|
|
3
3
|
import { FooterComponent, HeaderComponent } from '@seniorsistemas/angular-components/structure';
|
|
4
|
+
import { ActiveDialog } from '@seniorsistemas/angular-components/dialog';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ImageCropperComponent implements OnInit, OnChanges {
|
|
7
|
+
activeDialog: ActiveDialog | null;
|
|
6
8
|
static nextId: number;
|
|
7
9
|
id: string;
|
|
8
10
|
visible: boolean;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./image-cropper.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "@seniorsistemas/angular-components/
|
|
6
|
-
import * as i5 from "@seniorsistemas/angular-components/
|
|
7
|
-
import * as i6 from "@seniorsistemas/angular-components/
|
|
4
|
+
import * as i3 from "@seniorsistemas/angular-components/button";
|
|
5
|
+
import * as i4 from "@seniorsistemas/angular-components/empty-state";
|
|
6
|
+
import * as i5 from "@seniorsistemas/angular-components/structure";
|
|
7
|
+
import * as i6 from "@seniorsistemas/angular-components/dialog";
|
|
8
|
+
import * as i7 from "@seniorsistemas/angular-components/template";
|
|
8
9
|
export declare class ImageCropperModule {
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageCropperModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageCropperModule, [typeof i1.ImageCropperComponent], [typeof i2.CommonModule, typeof i3.
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageCropperModule, [typeof i1.ImageCropperComponent], [typeof i2.CommonModule, typeof i3.ButtonModule, typeof i4.EmptyStateModule, typeof i5.StructureModule, typeof i6.DialogComponent, typeof i7.TemplateModule], [typeof i1.ImageCropperComponent, typeof i5.StructureModule]>;
|
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageCropperModule>;
|
|
12
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seniorsistemas/angular-components",
|
|
3
|
-
"version": "17.27.1-fix-interactive-content-
|
|
3
|
+
"version": "17.27.1-fix-interactive-content-22e06381",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "^18.2.14",
|
|
6
6
|
"@angular/common": "^18.2.0",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"common/",
|
|
26
26
|
"alert/",
|
|
27
27
|
"card/",
|
|
28
|
+
"confirm-dialog/",
|
|
28
29
|
"grid-menu/",
|
|
29
30
|
"help-popover/",
|
|
30
31
|
"template/",
|
|
@@ -105,7 +106,8 @@
|
|
|
105
106
|
"interactive-content/",
|
|
106
107
|
"fieldset/",
|
|
107
108
|
"star-rating/",
|
|
108
|
-
"paginator/"
|
|
109
|
+
"paginator/",
|
|
110
|
+
"dialog/"
|
|
109
111
|
],
|
|
110
112
|
"sideEffects": false,
|
|
111
113
|
"module": "fesm2022/seniorsistemas-angular-components.mjs",
|
|
@@ -210,6 +212,12 @@
|
|
|
210
212
|
"esm": "./esm2022/common/seniorsistemas-angular-components-common.mjs",
|
|
211
213
|
"default": "./fesm2022/seniorsistemas-angular-components-common.mjs"
|
|
212
214
|
},
|
|
215
|
+
"./confirm-dialog": {
|
|
216
|
+
"types": "./confirm-dialog/index.d.ts",
|
|
217
|
+
"esm2022": "./esm2022/confirm-dialog/seniorsistemas-angular-components-confirm-dialog.mjs",
|
|
218
|
+
"esm": "./esm2022/confirm-dialog/seniorsistemas-angular-components-confirm-dialog.mjs",
|
|
219
|
+
"default": "./fesm2022/seniorsistemas-angular-components-confirm-dialog.mjs"
|
|
220
|
+
},
|
|
213
221
|
"./control-errors": {
|
|
214
222
|
"types": "./control-errors/index.d.ts",
|
|
215
223
|
"esm2022": "./esm2022/control-errors/seniorsistemas-angular-components-control-errors.mjs",
|
|
@@ -234,6 +242,12 @@
|
|
|
234
242
|
"esm": "./esm2022/custom-fields/seniorsistemas-angular-components-custom-fields.mjs",
|
|
235
243
|
"default": "./fesm2022/seniorsistemas-angular-components-custom-fields.mjs"
|
|
236
244
|
},
|
|
245
|
+
"./dialog": {
|
|
246
|
+
"types": "./dialog/index.d.ts",
|
|
247
|
+
"esm2022": "./esm2022/dialog/seniorsistemas-angular-components-dialog.mjs",
|
|
248
|
+
"esm": "./esm2022/dialog/seniorsistemas-angular-components-dialog.mjs",
|
|
249
|
+
"default": "./fesm2022/seniorsistemas-angular-components-dialog.mjs"
|
|
250
|
+
},
|
|
237
251
|
"./dynamic-form": {
|
|
238
252
|
"types": "./dynamic-form/index.d.ts",
|
|
239
253
|
"esm2022": "./esm2022/dynamic-form/seniorsistemas-angular-components-dynamic-form.mjs",
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { TemplateRef } from "@angular/core";
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class HeaderComponent {
|
|
4
|
-
readonly template: TemplateRef<any> | undefined;
|
|
5
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
6
4
|
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "s-header", never, {}, {}, never, ["*"], false, never>;
|
|
7
5
|
}
|
package/tailwind.css
CHANGED
|
@@ -594,8 +594,11 @@ video {
|
|
|
594
594
|
.top-2\.5 {
|
|
595
595
|
top: 0.625rem;
|
|
596
596
|
}
|
|
597
|
-
.z-\[
|
|
598
|
-
z-index:
|
|
597
|
+
.z-\[1000\] {
|
|
598
|
+
z-index: 1000;
|
|
599
|
+
}
|
|
600
|
+
.col-span-12 {
|
|
601
|
+
grid-column: span 12 / span 12;
|
|
599
602
|
}
|
|
600
603
|
.m-3 {
|
|
601
604
|
margin: 0.75rem;
|
|
@@ -640,15 +643,28 @@ video {
|
|
|
640
643
|
.h-8 {
|
|
641
644
|
height: 2rem;
|
|
642
645
|
}
|
|
646
|
+
.h-\[1px\] {
|
|
647
|
+
height: 1px;
|
|
648
|
+
}
|
|
643
649
|
.h-\[35px\] {
|
|
644
650
|
height: 35px;
|
|
645
651
|
}
|
|
646
652
|
.h-full {
|
|
647
653
|
height: 100%;
|
|
648
654
|
}
|
|
655
|
+
.h-min {
|
|
656
|
+
height: -moz-min-content;
|
|
657
|
+
height: min-content;
|
|
658
|
+
}
|
|
659
|
+
.h-screen {
|
|
660
|
+
height: 100vh;
|
|
661
|
+
}
|
|
649
662
|
.max-h-52 {
|
|
650
663
|
max-height: 13rem;
|
|
651
664
|
}
|
|
665
|
+
.max-h-screen {
|
|
666
|
+
max-height: 100vh;
|
|
667
|
+
}
|
|
652
668
|
.w-3 {
|
|
653
669
|
width: 0.75rem;
|
|
654
670
|
}
|
|
@@ -661,9 +677,27 @@ video {
|
|
|
661
677
|
.w-full {
|
|
662
678
|
width: 100%;
|
|
663
679
|
}
|
|
680
|
+
.w-screen {
|
|
681
|
+
width: 100vw;
|
|
682
|
+
}
|
|
664
683
|
.min-w-10 {
|
|
665
684
|
min-width: 2.5rem;
|
|
666
685
|
}
|
|
686
|
+
.max-w-\[1140px\] {
|
|
687
|
+
max-width: 1140px;
|
|
688
|
+
}
|
|
689
|
+
.max-w-\[300px\] {
|
|
690
|
+
max-width: 300px;
|
|
691
|
+
}
|
|
692
|
+
.max-w-\[500px\] {
|
|
693
|
+
max-width: 500px;
|
|
694
|
+
}
|
|
695
|
+
.max-w-\[800px\] {
|
|
696
|
+
max-width: 800px;
|
|
697
|
+
}
|
|
698
|
+
.flex-1 {
|
|
699
|
+
flex: 1 1 0%;
|
|
700
|
+
}
|
|
667
701
|
.flex-shrink {
|
|
668
702
|
flex-shrink: 1;
|
|
669
703
|
}
|
|
@@ -690,6 +724,9 @@ video {
|
|
|
690
724
|
.resize {
|
|
691
725
|
resize: both;
|
|
692
726
|
}
|
|
727
|
+
.grid-cols-12 {
|
|
728
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
729
|
+
}
|
|
693
730
|
.flex-col {
|
|
694
731
|
flex-direction: column;
|
|
695
732
|
}
|
|
@@ -699,6 +736,9 @@ video {
|
|
|
699
736
|
.items-center {
|
|
700
737
|
align-items: center;
|
|
701
738
|
}
|
|
739
|
+
.justify-end {
|
|
740
|
+
justify-content: flex-end;
|
|
741
|
+
}
|
|
702
742
|
.justify-center {
|
|
703
743
|
justify-content: center;
|
|
704
744
|
}
|
|
@@ -787,6 +827,10 @@ video {
|
|
|
787
827
|
--tw-bg-opacity: 1;
|
|
788
828
|
background-color: rgb(238 235 242 / var(--tw-bg-opacity, 1));
|
|
789
829
|
}
|
|
830
|
+
.bg-grayscale-20 {
|
|
831
|
+
--tw-bg-opacity: 1;
|
|
832
|
+
background-color: rgb(222 220 229 / var(--tw-bg-opacity, 1));
|
|
833
|
+
}
|
|
790
834
|
.bg-grayscale-5 {
|
|
791
835
|
--tw-bg-opacity: 1;
|
|
792
836
|
background-color: rgb(251 250 252 / var(--tw-bg-opacity, 1));
|
|
@@ -802,6 +846,9 @@ video {
|
|
|
802
846
|
.p-2 {
|
|
803
847
|
padding: 0.5rem;
|
|
804
848
|
}
|
|
849
|
+
.p-4 {
|
|
850
|
+
padding: 1rem;
|
|
851
|
+
}
|
|
805
852
|
.px-3 {
|
|
806
853
|
padding-left: 0.75rem;
|
|
807
854
|
padding-right: 0.75rem;
|
|
@@ -826,6 +873,9 @@ video {
|
|
|
826
873
|
padding-top: 7px;
|
|
827
874
|
padding-bottom: 7px;
|
|
828
875
|
}
|
|
876
|
+
.pb-0 {
|
|
877
|
+
padding-bottom: 0px;
|
|
878
|
+
}
|
|
829
879
|
.pl-2\.5 {
|
|
830
880
|
padding-left: 0.625rem;
|
|
831
881
|
}
|
|
@@ -835,6 +885,9 @@ video {
|
|
|
835
885
|
.pr-7 {
|
|
836
886
|
padding-right: 1.75rem;
|
|
837
887
|
}
|
|
888
|
+
.pt-0 {
|
|
889
|
+
padding-top: 0px;
|
|
890
|
+
}
|
|
838
891
|
.text-\[14px\] {
|
|
839
892
|
font-size: 14px;
|
|
840
893
|
}
|
|
@@ -982,3 +1035,13 @@ video {
|
|
|
982
1035
|
.group:disabled .group-disabled\:opacity-50 {
|
|
983
1036
|
opacity: 0.5;
|
|
984
1037
|
}
|
|
1038
|
+
@media not all and (min-width: 640px) {
|
|
1039
|
+
|
|
1040
|
+
.max-sm\:h-screen {
|
|
1041
|
+
height: 100vh;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
.max-sm\:w-screen {
|
|
1045
|
+
width: 100vw;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
@@ -2,13 +2,14 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./text-area-ia.component";
|
|
3
3
|
import * as i2 from "@angular/forms";
|
|
4
4
|
import * as i3 from "@ngx-translate/core";
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "@seniorsistemas/angular-components/
|
|
7
|
-
import * as i6 from "@
|
|
8
|
-
import * as i7 from "@angular/
|
|
9
|
-
import * as i8 from "@seniorsistemas/angular-components/
|
|
5
|
+
import * as i4 from "@seniorsistemas/angular-components/button";
|
|
6
|
+
import * as i5 from "@seniorsistemas/angular-components/loading-state";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
import * as i7 from "@seniorsistemas/angular-components/text-area";
|
|
9
|
+
import * as i8 from "@seniorsistemas/angular-components/dialog";
|
|
10
|
+
import * as i9 from "@seniorsistemas/angular-components/template";
|
|
10
11
|
export declare class TextAreaIAModule {
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaIAModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TextAreaIAModule, [typeof i1.TextAreaIAComponent], [typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.TranslateModule, typeof i4.
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TextAreaIAModule, [typeof i1.TextAreaIAComponent], [typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.TranslateModule, typeof i4.ButtonModule, typeof i5.LoadingStateModule, typeof i6.NgTemplateOutlet, typeof i7.TextAreaModule, typeof i8.DialogComponent, typeof i9.TemplateModule], [typeof i1.TextAreaIAComponent]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<TextAreaIAModule>;
|
|
14
15
|
}
|