tickera-angular-components 0.0.1-dev.171 → 0.0.1-dev.172
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.
|
@@ -2688,6 +2688,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
2688
2688
|
args: [TICKERA_COMPONENTS_CONFIG]
|
|
2689
2689
|
}] }] });
|
|
2690
2690
|
|
|
2691
|
+
/**
|
|
2692
|
+
* Deshabilita el zoom del NAVEGADOR (no el zoom interno del mapa de
|
|
2693
|
+
* asientos, que sigue funcionando igual). Se instancia una sola vez —
|
|
2694
|
+
* inyectarlo en el componente raíz de la app alcanza, porque es
|
|
2695
|
+
* `providedIn: 'root'` — y cubre las cuatro formas en que un navegador
|
|
2696
|
+
* deja hacer zoom:
|
|
2697
|
+
*
|
|
2698
|
+
* - Ctrl/Cmd + rueda del mouse (desktop, todos los navegadores).
|
|
2699
|
+
* - Ctrl/Cmd + "+"/"-"/"0" por teclado (desktop, todos los navegadores).
|
|
2700
|
+
* - Gesto de pellizco en trackpad en Safari, que no dispara `wheel` sino
|
|
2701
|
+
* sus propios eventos `gesture*` (no estándar, solo Safari/WebKit).
|
|
2702
|
+
* - Pellizco con dos dedos en pantallas táctiles, como respaldo además
|
|
2703
|
+
* del `user-scalable=no` del viewport (que ya lo bloquea en la mayoría
|
|
2704
|
+
* de los navegadores, pero no en todos de forma consistente).
|
|
2705
|
+
*
|
|
2706
|
+
* No toca el zoom interno de `TicketMapZoomService` (ese es zoom propio de
|
|
2707
|
+
* la app sobre el SVG del mapa, con sus propios botones +/-, y debe seguir
|
|
2708
|
+
* funcionando tal cual).
|
|
2709
|
+
*/
|
|
2710
|
+
class BrowserZoomLockService {
|
|
2711
|
+
constructor(platformId) {
|
|
2712
|
+
if (!isPlatformBrowser(platformId))
|
|
2713
|
+
return;
|
|
2714
|
+
window.addEventListener('wheel', this.onWheel, { passive: false });
|
|
2715
|
+
window.addEventListener('keydown', this.onKeydown);
|
|
2716
|
+
window.addEventListener('touchmove', this.onTouchMove, { passive: false });
|
|
2717
|
+
// Eventos no estándar de Safari/WebKit para gestos de pellizco en
|
|
2718
|
+
// trackpad — no existen tipos oficiales en lib.dom.d.ts, de ahí el `any`.
|
|
2719
|
+
const win = window;
|
|
2720
|
+
win.addEventListener('gesturestart', this.onGesture);
|
|
2721
|
+
win.addEventListener('gesturechange', this.onGesture);
|
|
2722
|
+
win.addEventListener('gestureend', this.onGesture);
|
|
2723
|
+
}
|
|
2724
|
+
onWheel = (event) => {
|
|
2725
|
+
if (event.ctrlKey) {
|
|
2726
|
+
event.preventDefault();
|
|
2727
|
+
}
|
|
2728
|
+
};
|
|
2729
|
+
onKeydown = (event) => {
|
|
2730
|
+
const isZoomKey = ['+', '-', '_', '=', '0'].includes(event.key);
|
|
2731
|
+
if ((event.ctrlKey || event.metaKey) && isZoomKey) {
|
|
2732
|
+
event.preventDefault();
|
|
2733
|
+
}
|
|
2734
|
+
};
|
|
2735
|
+
onTouchMove = (event) => {
|
|
2736
|
+
if (event.touches.length > 1) {
|
|
2737
|
+
event.preventDefault();
|
|
2738
|
+
}
|
|
2739
|
+
};
|
|
2740
|
+
onGesture = (event) => {
|
|
2741
|
+
event.preventDefault();
|
|
2742
|
+
};
|
|
2743
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: BrowserZoomLockService, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2744
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: BrowserZoomLockService, providedIn: 'root' });
|
|
2745
|
+
}
|
|
2746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: BrowserZoomLockService, decorators: [{
|
|
2747
|
+
type: Injectable,
|
|
2748
|
+
args: [{ providedIn: 'root' }]
|
|
2749
|
+
}], ctorParameters: () => [{ type: Object, decorators: [{
|
|
2750
|
+
type: Inject,
|
|
2751
|
+
args: [PLATFORM_ID]
|
|
2752
|
+
}] }] });
|
|
2753
|
+
|
|
2691
2754
|
class ToastService {
|
|
2692
2755
|
show(message, type = 'info') {
|
|
2693
2756
|
toast[type](message);
|
|
@@ -10306,6 +10369,10 @@ class VipRechargeModalComponent {
|
|
|
10306
10369
|
order_notice_accepted: [false, [Validators.requiredTrue]],
|
|
10307
10370
|
});
|
|
10308
10371
|
this.paymentMethodOptions = [
|
|
10372
|
+
{
|
|
10373
|
+
label: this.transloco.translate('order.paymentMethods.mercado_pago'),
|
|
10374
|
+
value: PaymentMethod.MERCADO_PAGO,
|
|
10375
|
+
},
|
|
10309
10376
|
{
|
|
10310
10377
|
label: this.transloco.translate('order.paymentMethods.payroll'),
|
|
10311
10378
|
value: PaymentMethod.PAYROLL,
|
|
@@ -10323,7 +10390,6 @@ class VipRechargeModalComponent {
|
|
|
10323
10390
|
label: this.transloco.translate('order.paymentMethods.customer_exchange'),
|
|
10324
10391
|
value: PaymentMethod.CLIENT_EXCHANGE,
|
|
10325
10392
|
},
|
|
10326
|
-
{ label: 'Mercado Pago', value: PaymentMethod.MERCADO_PAGO },
|
|
10327
10393
|
];
|
|
10328
10394
|
this.applyPaymentMethodRestriction();
|
|
10329
10395
|
}
|
|
@@ -10431,5 +10497,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
10431
10497
|
* Generated bundle index. Do not edit.
|
|
10432
10498
|
*/
|
|
10433
10499
|
|
|
10434
|
-
export { ADMIN_API_ROUTES, ADMISSION_API_ROUTES, ALERT_ICONS, AdminSelectComponent, AdminService, AdmissionQueueService, ApiService, AppAlertComponent, AppBadgeComponent, AppBreadcumbComponent, AppButtonComponent, AppLinkButtonComponent, AppModalComponent, AsyncSelectComponent, AuditInformationComponent, BASE_BUTTON_CLASSES, BASE_INPUT_CLASSES, BUTTON_SIZES_CLASSES, BUTTON_VARIANT_CLASSES, BaseModalService, CITY_API_ENDPOINTS, COUNTRY_API_ENDPOINTS, CUSTOMERS_API_ROUTES, ChangePasswordFormComponent, ChangePasswordFormService, CitiesService, CitySelectComponent, ColorPickerComponent, ConfirmationOrderModalComponent, ConfirmationOrderModalService, CorporateBondStatus, CountrySelectComponent, CountryService, CouponApplicability, CouponDiscountType, CouponStatus, CreatorType, CustomerSelectComponent, CustomerService, DEFAULT_STAGE_CONFIG, DOCUMENT_TYPES_OPTIONS, DateInputComponent, DateService, DaySelectorGridComponent, DeleteConfirmationComponent, DeleteConfirmationService, DynamicTableComponent, ERROR_INPUT_CLASSES, EndDateGreaterThanStartValidator, FORM_ERROR_MESSAGES, FeedbackModalComponent, FeedbackModalService, FileType, FileUploadComponent, FileUploadPreviewComponent, FormEditorComponent, FormInputComponent, FormSelectComponent, FormTextareaComponent, GiftBondPurchaseStatus, GiftBondStatus, KONVA_SHAPE_MAPPINGS, LanguageSwitcherComponent, MembershipStatus, MinTodayValidator, MustMatchValidator, NumberInputComponent, ORDER_DISCOUNT_COLORS, ORDER_ITEM_TYPES_COLORS, ORDER_STATUS_COLORS, OrderBillingInfoComponent, OrderDiscountAppliedComponent, OrderInformationComponent, OrderItemType, OrderItemTypeBadgeComponent, OrderItemsComponent, OrderStatus, OrderStatusBadgeComponent, OrderTransactionDetailsModalComponent, OrderTransactionDetailsModalService, OrderTransactionsComponent, PAYMENT_METHODS_OPTIONS, PERFORMANCES_API_ROUTES, PERFORMANCE_STATUS_COLORS, PERFORMANCE_TICKET_STATUS_COLORS, PHONE_COUNTRIES, PRICE_ZONES_API_ROUTES, PRODUCTS_API_ROUTES, PRODUCT_CATEGORIES_API_ROUTES, PRODUCT_TAGS_API_ROUTES, PRODUCT_TYPES_API_ROUTES, PaymentMethod, PerformanceBookingDataService, PerformanceCardComponent, PerformanceCardListComponent, PerformanceMultiSelectComponent, PerformanceSelectComponent, PerformanceService, PerformanceStatus, PerformanceStatusBadgeComponent, PerformanceStepperComponent, PerformanceTicketMapComponent, PerformanceTicketStatus, PerformanceTicketStatusBadgeComponent, PerformancesListEventsService, PhoneInputComponent, PriceZoneEventService, PriceZoneFormModalService, PriceZoneSelectComponent, PriceZoneService, ProductCategoryService, ProductMultiSelectComponent, ProductSelectComponent, ProductService, ProductTagService, ProductTypeService, PurchaseLimitService, RoomMapElementOrientation, RoomMapElementType, SHOWS_API_ROUTES, SHOW_TYPE_COLORS, STATE_API_ENDPOINTS, SeatAvailabilitySseService, SeatSelectionEmptySummaryComponent, SeatSelectionSummaryComponent, SeatSelectionSummaryItemComponent, SelectedDiscountCardType, ShowCardComponent, ShowCardSkeletonComponent, ShowMultiSelectComponent, ShowSelectComponent, ShowService, ShowType, ShowTypeBadgeComponent, ShowsFilterComponent, StateSelectComponent, StatesService, TICKERA_COMPONENTS_CONFIG, TICKET_ELEMENT_TYPES, TICKET_MAP_GRID_SIZE, TICKET_MAP_LAST_TICKETS_LIMIT, TICKET_MAP_TITLE_HEIGHT, TICKET_STATUS_COLORS, TICKET_STATUS_FILLS, TICKET_STATUS_LABELS, TIcketMapProductSelectionComponent, TRANSACTION_STATUS_COLORS, TextExpandableComponent, TickeraTranslocoLoader, TicketMapFloorSelectorComponent, TicketMapPriceZonesComponent, TicketMapProductSelectionItemComponent, TicketMapTotalsComponent, TicketMapWidgetComponent, TicketMapWidgetHeaderComponent, TicketMapWrapperComponent, TicketMapZoomControlsComponent, TicketMapZoomService, TicketQrComponent, TicketQrModalComponent, TicketQrModalService, TicketQrService, TicketSelectionDetailsService, TicketSelectionDiscountService, TicketSelectionService, TicketSelectionTotalsService, ToastService, ToggleSwitchComponent, TransactionStatus, VENUES_API_ROUTES, VIP_CARDS_API_ROUTES, VipBalanceCardComponent, VipCardService, VipCardStatus, VipCardStatusBadgeComponent, VipRechargeModalComponent, VipTransactionType, VipTransactionsTableComponent, ZonePriceItemComponent, ZonePriceListComponent, authInterceptor, drawChairIcon$1 as drawChairIcon, drawHappyFace, drawRoundedRect, drawWheelchairIcon, emailValidator, findElementAtPosition, findTicketAtPosition, formatCitiesResponseToSelect, generateExitScene, generateHallwayScene, generateProductionAreaScene, generateSeatBlockScene, generateSeatBlockTicketScene, generateStageScene, generateStairScene, generateTableScene, generateTableTicketScene, generateUnavailableSpaceScene, generateZoneScene, getBrowserLanguage, getCustomerFullname, getItemTypeIcon, getOrderDiscount, getStoredLanguage, numberToLetter$1 as numberToLetter, parseJsonToFormDataAdvanced, phoneCountryFlag, processElementsToRenderData, provideTickeraComponents, resolveLanguage, setStoredLanguage, ticketCanOpenQr, tintColor, transformImageToFile, transformUrlParams };
|
|
10500
|
+
export { ADMIN_API_ROUTES, ADMISSION_API_ROUTES, ALERT_ICONS, AdminSelectComponent, AdminService, AdmissionQueueService, ApiService, AppAlertComponent, AppBadgeComponent, AppBreadcumbComponent, AppButtonComponent, AppLinkButtonComponent, AppModalComponent, AsyncSelectComponent, AuditInformationComponent, BASE_BUTTON_CLASSES, BASE_INPUT_CLASSES, BUTTON_SIZES_CLASSES, BUTTON_VARIANT_CLASSES, BaseModalService, BrowserZoomLockService, CITY_API_ENDPOINTS, COUNTRY_API_ENDPOINTS, CUSTOMERS_API_ROUTES, ChangePasswordFormComponent, ChangePasswordFormService, CitiesService, CitySelectComponent, ColorPickerComponent, ConfirmationOrderModalComponent, ConfirmationOrderModalService, CorporateBondStatus, CountrySelectComponent, CountryService, CouponApplicability, CouponDiscountType, CouponStatus, CreatorType, CustomerSelectComponent, CustomerService, DEFAULT_STAGE_CONFIG, DOCUMENT_TYPES_OPTIONS, DateInputComponent, DateService, DaySelectorGridComponent, DeleteConfirmationComponent, DeleteConfirmationService, DynamicTableComponent, ERROR_INPUT_CLASSES, EndDateGreaterThanStartValidator, FORM_ERROR_MESSAGES, FeedbackModalComponent, FeedbackModalService, FileType, FileUploadComponent, FileUploadPreviewComponent, FormEditorComponent, FormInputComponent, FormSelectComponent, FormTextareaComponent, GiftBondPurchaseStatus, GiftBondStatus, KONVA_SHAPE_MAPPINGS, LanguageSwitcherComponent, MembershipStatus, MinTodayValidator, MustMatchValidator, NumberInputComponent, ORDER_DISCOUNT_COLORS, ORDER_ITEM_TYPES_COLORS, ORDER_STATUS_COLORS, OrderBillingInfoComponent, OrderDiscountAppliedComponent, OrderInformationComponent, OrderItemType, OrderItemTypeBadgeComponent, OrderItemsComponent, OrderStatus, OrderStatusBadgeComponent, OrderTransactionDetailsModalComponent, OrderTransactionDetailsModalService, OrderTransactionsComponent, PAYMENT_METHODS_OPTIONS, PERFORMANCES_API_ROUTES, PERFORMANCE_STATUS_COLORS, PERFORMANCE_TICKET_STATUS_COLORS, PHONE_COUNTRIES, PRICE_ZONES_API_ROUTES, PRODUCTS_API_ROUTES, PRODUCT_CATEGORIES_API_ROUTES, PRODUCT_TAGS_API_ROUTES, PRODUCT_TYPES_API_ROUTES, PaymentMethod, PerformanceBookingDataService, PerformanceCardComponent, PerformanceCardListComponent, PerformanceMultiSelectComponent, PerformanceSelectComponent, PerformanceService, PerformanceStatus, PerformanceStatusBadgeComponent, PerformanceStepperComponent, PerformanceTicketMapComponent, PerformanceTicketStatus, PerformanceTicketStatusBadgeComponent, PerformancesListEventsService, PhoneInputComponent, PriceZoneEventService, PriceZoneFormModalService, PriceZoneSelectComponent, PriceZoneService, ProductCategoryService, ProductMultiSelectComponent, ProductSelectComponent, ProductService, ProductTagService, ProductTypeService, PurchaseLimitService, RoomMapElementOrientation, RoomMapElementType, SHOWS_API_ROUTES, SHOW_TYPE_COLORS, STATE_API_ENDPOINTS, SeatAvailabilitySseService, SeatSelectionEmptySummaryComponent, SeatSelectionSummaryComponent, SeatSelectionSummaryItemComponent, SelectedDiscountCardType, ShowCardComponent, ShowCardSkeletonComponent, ShowMultiSelectComponent, ShowSelectComponent, ShowService, ShowType, ShowTypeBadgeComponent, ShowsFilterComponent, StateSelectComponent, StatesService, TICKERA_COMPONENTS_CONFIG, TICKET_ELEMENT_TYPES, TICKET_MAP_GRID_SIZE, TICKET_MAP_LAST_TICKETS_LIMIT, TICKET_MAP_TITLE_HEIGHT, TICKET_STATUS_COLORS, TICKET_STATUS_FILLS, TICKET_STATUS_LABELS, TIcketMapProductSelectionComponent, TRANSACTION_STATUS_COLORS, TextExpandableComponent, TickeraTranslocoLoader, TicketMapFloorSelectorComponent, TicketMapPriceZonesComponent, TicketMapProductSelectionItemComponent, TicketMapTotalsComponent, TicketMapWidgetComponent, TicketMapWidgetHeaderComponent, TicketMapWrapperComponent, TicketMapZoomControlsComponent, TicketMapZoomService, TicketQrComponent, TicketQrModalComponent, TicketQrModalService, TicketQrService, TicketSelectionDetailsService, TicketSelectionDiscountService, TicketSelectionService, TicketSelectionTotalsService, ToastService, ToggleSwitchComponent, TransactionStatus, VENUES_API_ROUTES, VIP_CARDS_API_ROUTES, VipBalanceCardComponent, VipCardService, VipCardStatus, VipCardStatusBadgeComponent, VipRechargeModalComponent, VipTransactionType, VipTransactionsTableComponent, ZonePriceItemComponent, ZonePriceListComponent, authInterceptor, drawChairIcon$1 as drawChairIcon, drawHappyFace, drawRoundedRect, drawWheelchairIcon, emailValidator, findElementAtPosition, findTicketAtPosition, formatCitiesResponseToSelect, generateExitScene, generateHallwayScene, generateProductionAreaScene, generateSeatBlockScene, generateSeatBlockTicketScene, generateStageScene, generateStairScene, generateTableScene, generateTableTicketScene, generateUnavailableSpaceScene, generateZoneScene, getBrowserLanguage, getCustomerFullname, getItemTypeIcon, getOrderDiscount, getStoredLanguage, numberToLetter$1 as numberToLetter, parseJsonToFormDataAdvanced, phoneCountryFlag, processElementsToRenderData, provideTickeraComponents, resolveLanguage, setStoredLanguage, ticketCanOpenQr, tintColor, transformImageToFile, transformUrlParams };
|
|
10435
10501
|
//# sourceMappingURL=tickera-angular-components.mjs.map
|