tickera-angular-components 0.0.1-dev.180 → 0.0.1-dev.183
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/i18n/en.json
CHANGED
|
@@ -58,7 +58,10 @@
|
|
|
58
58
|
"instructions": "Type <strong>delete</strong> to confirm",
|
|
59
59
|
"placeholder": "Type delete",
|
|
60
60
|
"cancel": "Cancel",
|
|
61
|
-
"delete": "Delete"
|
|
61
|
+
"delete": "Delete",
|
|
62
|
+
"finalWarning": "This is your last chance to cancel.",
|
|
63
|
+
"finalMessage": "Are you sure you want to permanently delete {{resource}}? This action cannot be undone.",
|
|
64
|
+
"finalConfirm": "Yes, delete permanently"
|
|
62
65
|
},
|
|
63
66
|
"changePassword": {
|
|
64
67
|
"title": "Change password",
|
package/i18n/es.json
CHANGED
|
@@ -58,7 +58,10 @@
|
|
|
58
58
|
"instructions": "Escriba <strong>eliminar</strong> para confirmar",
|
|
59
59
|
"placeholder": "Escriba eliminar",
|
|
60
60
|
"cancel": "Cancelar",
|
|
61
|
-
"delete": "Eliminar"
|
|
61
|
+
"delete": "Eliminar",
|
|
62
|
+
"finalWarning": "Esta es tu última oportunidad para cancelar.",
|
|
63
|
+
"finalMessage": "¿Confirmas que deseas eliminar {{resource}} de forma permanente? Esta acción no se puede deshacer.",
|
|
64
|
+
"finalConfirm": "Sí, eliminar definitivamente"
|
|
62
65
|
},
|
|
63
66
|
"changePassword": {
|
|
64
67
|
"title": "Cambiar contraseña",
|
package/index.d.ts
CHANGED
|
@@ -2828,19 +2828,40 @@ declare class FeedbackModalComponent implements OnChanges, OnDestroy {
|
|
|
2828
2828
|
static ɵcmp: i0.ɵɵComponentDeclaration<FeedbackModalComponent, "feedback-modal", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "type": { "alias": "type"; "required": false; }; "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "autoCloseDuration": { "alias": "autoCloseDuration"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; }, { "closed": "closed"; }, never, never, true, never>;
|
|
2829
2829
|
}
|
|
2830
2830
|
|
|
2831
|
+
type DeleteConfirmationStep = 'input' | 'final';
|
|
2831
2832
|
declare class DeleteConfirmationComponent {
|
|
2832
2833
|
private fb;
|
|
2833
2834
|
private deleteConfirmationService;
|
|
2834
2835
|
protected transloco: TranslocoService;
|
|
2835
2836
|
deleteConfirmationForm: FormGroup;
|
|
2837
|
+
/**
|
|
2838
|
+
* Two-step flow:
|
|
2839
|
+
* 1. 'input' -> the user must type the resource name to unlock the delete action.
|
|
2840
|
+
* 2. 'final' -> a last feedback/confirmation step is shown before the delete
|
|
2841
|
+
* callback actually runs, so a slip of the mouse on the first
|
|
2842
|
+
* step can never trigger a real deletion by itself.
|
|
2843
|
+
*/
|
|
2844
|
+
step: DeleteConfirmationStep;
|
|
2836
2845
|
constructor(fb: FormBuilder, deleteConfirmationService: DeleteConfirmationService, transloco: TranslocoService);
|
|
2837
2846
|
get title(): string;
|
|
2838
2847
|
get resourceName(): string;
|
|
2839
2848
|
get confirmationText(): string;
|
|
2840
2849
|
get isOpen(): i0.WritableSignal<boolean>;
|
|
2841
2850
|
get isConfirmationValid(): boolean;
|
|
2851
|
+
get isFinalStep(): boolean;
|
|
2852
|
+
/** Cancels the whole flow (from either step) without deleting anything. */
|
|
2842
2853
|
onCloseModal(): void;
|
|
2854
|
+
/** Step 1 submit: only advances to the final confirmation, never deletes. */
|
|
2843
2855
|
onConfirmDelete(): void;
|
|
2856
|
+
/**
|
|
2857
|
+
* Step 2 cancel: goes back to the input step without touching what the
|
|
2858
|
+
* user typed, so they don't have to retype it if they just want to
|
|
2859
|
+
* double-check before deleting.
|
|
2860
|
+
*/
|
|
2861
|
+
onBackToInput(): void;
|
|
2862
|
+
/** Step 2 submit: this is the only place that actually triggers deletion. */
|
|
2863
|
+
onFinalConfirm(): void;
|
|
2864
|
+
private resetState;
|
|
2844
2865
|
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteConfirmationComponent, never>;
|
|
2845
2866
|
static ɵcmp: i0.ɵɵComponentDeclaration<DeleteConfirmationComponent, "delete-confirmation", never, {}, {}, never, never, true, never>;
|
|
2846
2867
|
}
|
|
@@ -4146,6 +4167,18 @@ declare class ConfirmationOrderModalComponent {
|
|
|
4146
4167
|
onConfirm: EventEmitter<any>;
|
|
4147
4168
|
constructor(confirmationOrderModalService: ConfirmationOrderModalService, selectionDiscountService: TicketSelectionDiscountService, selectionTotalsService: TicketSelectionTotalsService, selectionService: TicketSelectionService, bookingDataService: PerformanceBookingDataService);
|
|
4148
4169
|
get isOpen(): i0.WritableSignal<boolean>;
|
|
4170
|
+
get showTitle(): string | null;
|
|
4171
|
+
get performanceStartTime(): Date | string | null;
|
|
4172
|
+
get hallName(): string | null;
|
|
4173
|
+
get venueName(): string | null;
|
|
4174
|
+
get ticketItems(): PerformanceTicket[];
|
|
4175
|
+
get selectedProducts(): {
|
|
4176
|
+
product: Product;
|
|
4177
|
+
quantity: number;
|
|
4178
|
+
}[];
|
|
4179
|
+
ticketItemLabel(ticket: PerformanceTicket): string;
|
|
4180
|
+
ticketItemPrice(ticket: PerformanceTicket): number;
|
|
4181
|
+
private elementTypeLabel;
|
|
4149
4182
|
get selectedCount(): number;
|
|
4150
4183
|
get serviceFee(): number;
|
|
4151
4184
|
get subtotalValue(): number;
|