tickera-angular-components 0.0.1-dev.37 → 0.0.1-dev.39
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/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ShapeConfig, Shape } from 'konva/lib/Shape';
|
|
|
7
7
|
import { Context } from 'konva/lib/Context';
|
|
8
8
|
import { ValidatorFn, FormGroup, FormBuilder, ControlValueAccessor, NgControl, Validator, AbstractControl, FormControl } from '@angular/forms';
|
|
9
9
|
import { HttpClient, HttpInterceptorFn } from '@angular/common/http';
|
|
10
|
+
import { Stage } from 'konva/lib/Stage';
|
|
10
11
|
import { Toolbar, Editor } from 'ngx-editor';
|
|
11
12
|
import { Router } from '@angular/router';
|
|
12
13
|
|
|
@@ -1084,6 +1085,13 @@ interface ReservePerformanceDto {
|
|
|
1084
1085
|
};
|
|
1085
1086
|
}
|
|
1086
1087
|
|
|
1088
|
+
interface TicketMapZoomConfig {
|
|
1089
|
+
minZoom: number;
|
|
1090
|
+
maxZoom: number;
|
|
1091
|
+
zoomStep: number;
|
|
1092
|
+
scaleBy: number;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1087
1095
|
declare enum SelectedDiscountCardType {
|
|
1088
1096
|
COUPON = "COUPON",
|
|
1089
1097
|
CORPORATE_BOND = "CORPORATE_BOND",
|
|
@@ -1896,6 +1904,80 @@ declare class TicketSelectionService {
|
|
|
1896
1904
|
static ɵprov: i0.ɵɵInjectableDeclaration<TicketSelectionService>;
|
|
1897
1905
|
}
|
|
1898
1906
|
|
|
1907
|
+
declare class TicketMapZoomService {
|
|
1908
|
+
readonly currentZoom: i0.WritableSignal<number>;
|
|
1909
|
+
private stage?;
|
|
1910
|
+
private bookingDataService;
|
|
1911
|
+
private readonly defaultConfig;
|
|
1912
|
+
constructor();
|
|
1913
|
+
/**
|
|
1914
|
+
* Set the Konva stage instance
|
|
1915
|
+
*/
|
|
1916
|
+
setStage(stage: Stage): void;
|
|
1917
|
+
/**
|
|
1918
|
+
* Zoom in by one step
|
|
1919
|
+
*/
|
|
1920
|
+
zoomIn(): void;
|
|
1921
|
+
/**
|
|
1922
|
+
* Zoom out by one step
|
|
1923
|
+
*/
|
|
1924
|
+
zoomOut(): void;
|
|
1925
|
+
/**
|
|
1926
|
+
* Reset zoom to 100%
|
|
1927
|
+
*/
|
|
1928
|
+
resetZoom(): void;
|
|
1929
|
+
/**
|
|
1930
|
+
* Get current zoom as percentage string
|
|
1931
|
+
*/
|
|
1932
|
+
getZoomPercentage(): string;
|
|
1933
|
+
/**
|
|
1934
|
+
* Get current zoom value
|
|
1935
|
+
*/
|
|
1936
|
+
getCurrentZoom(): number;
|
|
1937
|
+
/**
|
|
1938
|
+
* Apply zoom with center point
|
|
1939
|
+
*/
|
|
1940
|
+
private applyZoom;
|
|
1941
|
+
/**
|
|
1942
|
+
* Apply zoom scale with specific center point
|
|
1943
|
+
*/
|
|
1944
|
+
private applyZoomScale;
|
|
1945
|
+
/**
|
|
1946
|
+
* Handle mouse wheel zoom toward the cursor position
|
|
1947
|
+
*/
|
|
1948
|
+
handleWheelZoom(deltaY: number): void;
|
|
1949
|
+
/**
|
|
1950
|
+
* Fit the content bounds to fill the stage container
|
|
1951
|
+
*/
|
|
1952
|
+
fitToContainer(padding?: number): void;
|
|
1953
|
+
/**
|
|
1954
|
+
* Get current stage position
|
|
1955
|
+
*/
|
|
1956
|
+
getStagePosition(): {
|
|
1957
|
+
x: number;
|
|
1958
|
+
y: number;
|
|
1959
|
+
};
|
|
1960
|
+
/**
|
|
1961
|
+
* Set stage position (useful for programmatic panning)
|
|
1962
|
+
*/
|
|
1963
|
+
setStagePosition(position: {
|
|
1964
|
+
x: number;
|
|
1965
|
+
y: number;
|
|
1966
|
+
}): void;
|
|
1967
|
+
/**
|
|
1968
|
+
* Fit the stage content bounds to the container, centering and scaling
|
|
1969
|
+
* to show the full content with optional padding.
|
|
1970
|
+
*/
|
|
1971
|
+
fitToBounds(contentBounds: {
|
|
1972
|
+
x: number;
|
|
1973
|
+
y: number;
|
|
1974
|
+
width: number;
|
|
1975
|
+
height: number;
|
|
1976
|
+
}, containerWidth: number, containerHeight: number, padding?: number): void;
|
|
1977
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapZoomService, never>;
|
|
1978
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TicketMapZoomService>;
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1899
1981
|
declare const authInterceptor: HttpInterceptorFn;
|
|
1900
1982
|
|
|
1901
1983
|
declare class AppButtonComponent {
|
|
@@ -2915,5 +2997,19 @@ declare class TicketMapWidgetHeaderComponent {
|
|
|
2915
2997
|
static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapWidgetHeaderComponent, "ticket-map-widget-header", never, { "title": { "alias": "title"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2916
2998
|
}
|
|
2917
2999
|
|
|
2918
|
-
|
|
2919
|
-
|
|
3000
|
+
declare class TicketMapZoomControlsComponent {
|
|
3001
|
+
private zoomService;
|
|
3002
|
+
readonly currentZoom: i0.Signal<number>;
|
|
3003
|
+
readonly zoomPercentage: i0.Signal<string>;
|
|
3004
|
+
constructor(zoomService: TicketMapZoomService);
|
|
3005
|
+
zoomIn(): void;
|
|
3006
|
+
zoomOut(): void;
|
|
3007
|
+
resetZoom(): void;
|
|
3008
|
+
fitToContainer(): void;
|
|
3009
|
+
handleZoomAction(action: string): void;
|
|
3010
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapZoomControlsComponent, never>;
|
|
3011
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapZoomControlsComponent, "ticket-map-zoom-controls", never, {}, {}, never, never, true, never>;
|
|
3012
|
+
}
|
|
3013
|
+
|
|
3014
|
+
export { ADMIN_API_ROUTES, ALERT_ICONS, AdminSelectComponent, AdminService, ApiService, AppAlertComponent, 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, CorporateBondStatus, CountrySelectComponent, CountryService, CouponApplicability, CouponDiscountType, CouponStatus, 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, GiftBondStatus, KONVA_SHAPE_MAPPINGS, LanguageSwitcherComponent, MinTodayValidator, MustMatchValidator, OrderItemType, OrderStatus, PAYMENT_METHODS_OPTIONS, PERFORMANCES_API_ROUTES, PRICE_ZONES_API_ROUTES, PRODUCTS_API_ROUTES, PRODUCT_CATEGORIES_API_ROUTES, PRODUCT_TAGS_API_ROUTES, PRODUCT_TYPES_API_ROUTES, PerformanceBookingDataService, PerformanceCardComponent, PerformanceCardListComponent, PerformanceMultiSelectComponent, PerformanceSelectComponent, PerformanceService, PerformanceStatus, PerformanceStepperComponent, PerformanceTicketStatus, PerformancesListEventsService, PriceZoneEventService, PriceZoneFormModalService, PriceZoneSelectComponent, PriceZoneService, ProductCategoryService, ProductMultiSelectComponent, ProductSelectComponent, ProductService, ProductTagService, ProductTypeService, RoomMapElementOrientation, RoomMapElementType, SHOWS_API_ROUTES, STATE_API_ENDPOINTS, SelectedDiscountCardType, ShowMultiSelectComponent, ShowSelectComponent, ShowService, ShowsFilterComponent, StateSelectComponent, StatesService, TICKERA_COMPONENTS_CONFIG, TICKET_ELEMENT_TYPES, TICKET_MAP_GRID_SIZE, TICKET_MAP_TITLE_HEIGHT, TICKET_STATUS_COLORS, TICKET_STATUS_FILLS, TICKET_STATUS_LABELS, TickeraTranslocoLoader, TicketMapWidgetComponent, TicketMapWidgetHeaderComponent, TicketMapZoomControlsComponent, TicketMapZoomService, TicketSelectionDetailsService, TicketSelectionDiscountService, TicketSelectionService, TicketSelectionTotalsService, ToastService, ToggleSwitchComponent, VENUES_API_ROUTES, ZonePriceItemComponent, ZonePriceListComponent, authInterceptor, drawChairIcon, drawHappyFace, drawRoundedRect, drawWheelchairIcon, findElementAtPosition, findTicketAtPosition, formatCitiesResponseToSelect, generateExitScene, generateHallwayScene, generateProductionAreaScene, generateSeatBlockScene, generateSeatBlockTicketScene, generateStageScene, generateStairScene, generateTableScene, generateTableTicketScene, generateUnavailableSpaceScene, generateZoneScene, getBrowserLanguage, getCustomerFullname, getItemTypeIcon, getStoredLanguage, numberToLetter, parseJsonToFormDataAdvanced, processElementsToRenderData, provideTickeraComponents, resolveLanguage, setStoredLanguage, tintColor, transformImageToFile };
|
|
3015
|
+
export type { Admin, AdminsResponse, AsyncSelectConfig, Auditable, CitiesResponse, City, CityResponse, CorporateBond, CorporateBondCode, CorporateBondResponse, CountriesResponse, Country, CountryResponse, Coupon, CouponResponse, Customer, CustomerResponse, CustomersResponse, DailyPerformanceHall, DailyPerformanceItem, DailyPerformancePriceZone, DailyPerformanceShow, DailyPerformanceVenue, DailyPerformancesResponse, DeleteConfirmationOpen, DragDropEvent, DynamicTableHeader, ElementPropertiesTab, ElementRenderData, FeedbackModalElement, FeedbackModalType, FetchCitiesParams, FetchDailyPerformancesParams, FetchProductCategoriesParams, FetchProductTagsParams, FetchProductTypesParams, FetchShowsParams, FileUploadConfig, FindAllPriceZoneParams, GiftBond, GiftBondResponse, GiftBondsResponse, Hall, HallFloor, KonvaShapeConfig, ModalSize, NumerationConfig, Order, OrderItem, OrderResponse, OrdersResponse, Performance, PerformanceAvailableDay, PerformanceBookingDataResponse, PerformanceResponse, PerformanceTicket, PerformancesAvailableDaysResponse, PerformancesResponseInterface, PriceZone, PriceZoneResponse, PriceZoneUpdateResponse, PriceZonesResponseInterface, Product, ProductCategoriesResponse, ProductCategory, ProductCategoryResponse, ProductImage, ProductResponse, ProductTag, ProductTagResponse, ProductTagsResponse, ProductTaxonomy, ProductType, ProductTypeResponse, ProductTypesResponse, ProductsResponseInterface, ReservePerformanceDto, RoomMap, RoomMapBaseElement, RoomMapCanvasConfiguration, RoomMapCanvasElement, RoomMapChairPosition, RoomMapElementTemplate, RoomMapExitElement, RoomMapGridPosition, RoomMapPosition, RoomMapProductionAreaElement, RoomMapSeatDisplayState, RoomMapSeatElement, RoomMapSeatState, RoomMapSize, RoomMapStageElement, RoomMapTableElement, RoomMapUnavailableElement, RoomMapZoneElement, SelectOption, SelectedDiscountCard, Show, ShowCategoriesResponse, ShowCategory, ShowCategoryResponse, ShowGender, ShowGenderResponse, ShowGendersResponse, ShowImage, ShowResponse, ShowType, ShowsResponseInterface, State, StateResponse, StatesResponse, TickeraComponentsConfig, TicketMapSeatPosition, TicketMapTableChairPosition, TicketMapTooltipData, TicketMapZoneQuantityState, TicketMapZoomConfig, UploadedFile, ValidateCorporateBondResponse, ValidateCouponResponse, ValidateGiftBondResponse, Venue, VenueImage };
|