@litigiovirtual/ius-design-components 1.0.226 → 1.0.228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/create-ticket/create-ticket.component.mjs +99 -0
- package/esm2022/lib/create-ticket/index.mjs +2 -0
- package/esm2022/lib/empty-list/empty-list.component.mjs +22 -0
- package/esm2022/lib/empty-list/index.mjs +2 -0
- package/esm2022/lib/support-panel/support-panel.component.mjs +3 -3
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/litigiovirtual-ius-design-components.mjs +111 -3
- package/fesm2022/litigiovirtual-ius-design-components.mjs.map +1 -1
- package/lib/create-ticket/create-ticket.component.d.ts +57 -0
- package/lib/create-ticket/index.d.ts +1 -0
- package/lib/empty-list/empty-list.component.d.ts +8 -0
- package/lib/empty-list/index.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ButtonResult } from '../button-dynamic/button-dynamic.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface TipoTicket {
|
|
5
|
+
id?: number;
|
|
6
|
+
tipo?: string;
|
|
7
|
+
cntTipoTicket?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface RazonTicket {
|
|
10
|
+
id?: number;
|
|
11
|
+
razon?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface CreateTicketSubmitPayload {
|
|
14
|
+
titulo: string;
|
|
15
|
+
descripcion: string;
|
|
16
|
+
tipoTicketID?: number;
|
|
17
|
+
razonTicketID?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Dumb component. Solo UI del drawer "Crear Ticket".
|
|
21
|
+
*
|
|
22
|
+
* App padre provee tipos/razones (que vienen de su API), recibe el evento
|
|
23
|
+
* submitTicket con el payload, y maneja el loading + resultado.
|
|
24
|
+
*
|
|
25
|
+
* Uso:
|
|
26
|
+
* <ius-create-ticket
|
|
27
|
+
* [tipos]="ticketTypes"
|
|
28
|
+
* [razones]="ticketReasons"
|
|
29
|
+
* [loading]="creatingTicket"
|
|
30
|
+
* [lastResult]="ticketResult"
|
|
31
|
+
* (submitTicket)="handleCreateTicket($event)"
|
|
32
|
+
* (closeForm)="addTicket = false">
|
|
33
|
+
* </ius-create-ticket>
|
|
34
|
+
*/
|
|
35
|
+
export declare class CreateTicketComponent {
|
|
36
|
+
tipos: TipoTicket[];
|
|
37
|
+
razones: RazonTicket[];
|
|
38
|
+
loading: boolean;
|
|
39
|
+
lastResult: ButtonResult;
|
|
40
|
+
submitTicket: EventEmitter<CreateTicketSubmitPayload>;
|
|
41
|
+
closeForm: EventEmitter<void>;
|
|
42
|
+
tituloTicket: string;
|
|
43
|
+
descripcionTicket: string;
|
|
44
|
+
typeSelected?: TipoTicket;
|
|
45
|
+
reasonSelected?: RazonTicket;
|
|
46
|
+
percentProgressBar: number;
|
|
47
|
+
isExpandGeneralInformation: boolean;
|
|
48
|
+
onClose(): void;
|
|
49
|
+
onExpandGeneralInformation(): void;
|
|
50
|
+
onSetValueType(event: TipoTicket): void;
|
|
51
|
+
onSetValueReason(event: RazonTicket): void;
|
|
52
|
+
onSetValueTituloTicket(event: any): void;
|
|
53
|
+
onSetValueDescripcionTicket(event: any): void;
|
|
54
|
+
createTicket(): void;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CreateTicketComponent, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CreateTicketComponent, "ius-create-ticket", never, { "tipos": { "alias": "tipos"; "required": false; }; "razones": { "alias": "razones"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "lastResult": { "alias": "lastResult"; "required": false; }; }, { "submitTicket": "submitTicket"; "closeForm": "closeForm"; }, never, never, true, never>;
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-ticket.component';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class EmptyListComponent {
|
|
3
|
+
src: string;
|
|
4
|
+
header: string;
|
|
5
|
+
info: string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyListComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmptyListComponent, "ius-empty-list", never, { "src": { "alias": "src"; "required": false; }; "header": { "alias": "header"; "required": false; }; "info": { "alias": "info"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './empty-list.component';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -94,5 +94,7 @@ export * from './lib/notifications';
|
|
|
94
94
|
export * from './lib/support-panel';
|
|
95
95
|
export * from './lib/loading-component-dynamic';
|
|
96
96
|
export * from './lib/page-not-found';
|
|
97
|
+
export * from './lib/empty-list';
|
|
98
|
+
export * from './lib/create-ticket';
|
|
97
99
|
export * from './lib/directives/popover.directive';
|
|
98
100
|
export * from './lib/directives/infinite-scroll.directive';
|