@stemy/ngx-utils 19.9.11 → 19.9.13
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/fesm2022/stemy-ngx-utils.mjs +25 -31
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +3 -10
- package/ngx-utils/components/interactive-canvas/interactive-canvas.component.d.ts +1 -2
- package/ngx-utils/components/interactive-canvas/interactive-item.component.d.ts +3 -2
- package/ngx-utils/ngx-utils.imports.d.ts +2 -2
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
|
@@ -347,14 +347,6 @@ export interface RectCoords {
|
|
|
347
347
|
height: number;
|
|
348
348
|
id?: string;
|
|
349
349
|
}
|
|
350
|
-
/**
|
|
351
|
-
* Rectangle frame interface
|
|
352
|
-
*/
|
|
353
|
-
export interface Frame extends IShape {
|
|
354
|
-
width: number;
|
|
355
|
-
height: number;
|
|
356
|
-
rotation: number;
|
|
357
|
-
}
|
|
358
350
|
/**
|
|
359
351
|
* Interface for an interactive canvas params
|
|
360
352
|
*/
|
|
@@ -377,12 +369,13 @@ export interface InteractiveCanvasArea {
|
|
|
377
369
|
export interface InteractiveCanvasItem extends InteractiveCanvasArea {
|
|
378
370
|
readonly position: IPoint;
|
|
379
371
|
readonly rotation: number;
|
|
380
|
-
readonly frame: Frame;
|
|
381
372
|
readonly isValid: boolean;
|
|
382
373
|
readonly validPosition: IPoint;
|
|
383
374
|
readonly validRotation: number;
|
|
384
375
|
readonly hovered: boolean;
|
|
385
376
|
readonly selected: boolean;
|
|
377
|
+
readonly cursor: string;
|
|
378
|
+
readonly direction: CanvasItemDirection;
|
|
386
379
|
readonly active: boolean;
|
|
387
380
|
readonly canvas: InteractiveCanvas;
|
|
388
381
|
readonly index: number;
|
|
@@ -420,7 +413,7 @@ export interface InteractiveCanvas {
|
|
|
420
413
|
rendered?: boolean;
|
|
421
414
|
tempPaint(cb: CanvasPaintFunc): Promise<void>;
|
|
422
415
|
}
|
|
423
|
-
export type InteractiveCanvasRenderer = (renderCanvas: InteractiveCanvas, renderCtx: Record<string, any
|
|
416
|
+
export type InteractiveCanvasRenderer = (renderCanvas: InteractiveCanvas, renderCtx: Record<string, any>, params?: InteractiveCanvasParams) => MaybePromise<void>;
|
|
424
417
|
export interface InteractivePanEvent {
|
|
425
418
|
canvas: InteractiveCanvas;
|
|
426
419
|
item: InteractiveCanvasItem;
|
|
@@ -33,7 +33,7 @@ export declare class InteractiveCanvasComponent implements InteractiveCanvas, On
|
|
|
33
33
|
/**
|
|
34
34
|
* Canvas params
|
|
35
35
|
*/
|
|
36
|
-
readonly params: import("@angular/core").
|
|
36
|
+
readonly params: import("@angular/core").InputSignal<InteractiveCanvasParams>;
|
|
37
37
|
/**
|
|
38
38
|
* Model signal for selected index
|
|
39
39
|
*/
|
|
@@ -103,7 +103,6 @@ export declare class InteractiveCanvasComponent implements InteractiveCanvas, On
|
|
|
103
103
|
protected toCanvasPoint(pointer: InteractiveCanvasPointer): Point;
|
|
104
104
|
protected getIndexUnderPointer(pointer: InteractiveCanvasPointer): number;
|
|
105
105
|
protected updateCursor(): void;
|
|
106
|
-
protected getCursor(): string;
|
|
107
106
|
protected redraw(): void;
|
|
108
107
|
protected drawItems(): Promise<void>;
|
|
109
108
|
protected drawItem(ctx: CanvasRenderingContext2D, item: InteractiveCanvasItem): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnChanges } from "@angular/core";
|
|
2
|
-
import { CanvasItemDirection,
|
|
2
|
+
import { CanvasItemDirection, InteractiveCanvas, InteractiveCanvasArea, InteractiveCanvasItem, InteractiveCanvasParams, IPoint, IShape } from "../../common-types";
|
|
3
3
|
import { MaybePromise } from "../../helper-types";
|
|
4
4
|
import { Point, Rect } from "../../utils/geometry";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -9,7 +9,6 @@ export declare class InteractiveItemComponent implements OnChanges, InteractiveC
|
|
|
9
9
|
protected mFrame: Rect;
|
|
10
10
|
protected mShapes: IShape[];
|
|
11
11
|
get id(): string;
|
|
12
|
-
get frame(): Frame;
|
|
13
12
|
get shapes(): ReadonlyArray<IShape>;
|
|
14
13
|
get x(): number;
|
|
15
14
|
set x(value: number);
|
|
@@ -28,12 +27,14 @@ export declare class InteractiveItemComponent implements OnChanges, InteractiveC
|
|
|
28
27
|
set hovered(value: boolean);
|
|
29
28
|
get selected(): boolean;
|
|
30
29
|
set selected(value: boolean);
|
|
30
|
+
get cursor(): string;
|
|
31
31
|
direction: CanvasItemDirection;
|
|
32
32
|
disabled: boolean;
|
|
33
33
|
active: boolean;
|
|
34
34
|
canvas: InteractiveCanvas;
|
|
35
35
|
index: number;
|
|
36
36
|
canvasParams: InteractiveCanvasParams;
|
|
37
|
+
otherItems: ReadonlyArray<IShape>;
|
|
37
38
|
hitShapes: ReadonlyArray<IShape>;
|
|
38
39
|
protected validPos: Point;
|
|
39
40
|
protected validRot: number;
|
|
@@ -65,9 +65,9 @@ import { UnorderedListComponent } from "./components/unordered-list/unordered-li
|
|
|
65
65
|
import { UploadComponent } from "./components/upload/upload.component";
|
|
66
66
|
import { WysiwygComponent } from "./components/wysiwyg/wysiwyg.component";
|
|
67
67
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof SyncAsyncPipe | typeof TranslatePipe)[];
|
|
68
|
-
export declare const directives: (typeof
|
|
68
|
+
export declare const directives: (typeof AsyncMethodBase | typeof AsyncMethodDirective | typeof AsyncMethodTargetDirective | typeof BackgroundDirective | typeof ComponentLoaderDirective | typeof DynamicTableTemplateDirective | typeof GlobalTemplateDirective | typeof IconDirective | typeof NgxTemplateOutletDirective | typeof PaginationDirective | typeof PaginationItemDirective | typeof ResourceIfDirective | typeof StickyDirective | typeof StickyClassDirective | typeof DropdownDirective | typeof DropdownContentDirective | typeof DropdownToggleDirective | typeof TabsItemDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
|
|
69
69
|
export declare const components: (typeof ChipsComponent | typeof CloseBtnComponent | typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent | typeof WysiwygComponent)[];
|
|
70
|
-
export declare const providers: (typeof UniversalService | typeof
|
|
70
|
+
export declare const providers: (typeof UniversalService | typeof StateService | typeof AuthGuard | typeof EventsService | typeof AclService | typeof BaseHttpClient | typeof StorageService | typeof CacheService | typeof BaseHttpService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof BaseToasterService | typeof ComponentLoaderService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof SocketService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof SyncAsyncPipe | typeof TranslatePipe | typeof DeviceDetectorService | {
|
|
71
71
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
72
72
|
useClass: typeof DragDropEventPlugin;
|
|
73
73
|
multi: boolean;
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "zone.js";
|
|
2
2
|
export { MaybePromise, MaybeArray, KeysOfType, ObjOfType, StringKeys, CapitalizeFirst, CamelJoin, PrefixedPick, RequireAtLeastOne } from "./ngx-utils/helper-types";
|
|
3
|
-
export { DurationUnit, TypedFactoryProvider, TypedValueProvider, TypedExistingProvider, TypedClassProvider, TypedTokenProvider, TypedProvider, CachedFactory, ResolveFactory, IResolveFactory, CanvasColor, IIconService, ITranslation, ITranslations, GlobalTranslations, ILanguageSetting, ILanguageSettings, ILanguageService, IUserData, IAuthService, RouteValidator, IRouteData, IRoute, IDialogButtonConfig, IDialogConfig, IConfirmMessageConfig, IConfirmDialogConfig, IDialogService, IPromiseService, IRouteStateInfo, MenuItem, IAclComponent, IAclService, NavigationUrlParam, StorageMode, ToastType, IToasterService, IAsyncMessage, AsyncMethod, IconMap, IconProps, ButtonType, ButtonSize, ButtonProps, TabValue, TabOption, ChipValue, ChipStatus, ChipOption, DropdownAttachTo, UnorderedListTemplate, UnorderedListTemplates, UnorderedListStyle, UploadType, IFileUploadResult, IFileUploadProcess, IAjaxRequestDetails, AjaxRequestCallback, ScriptType, ILoadableElement, ILoaderPromises, ISearchObservable, FactoryDependencies, ObjectType, ITimer, IExtraProperties, IGroupMap, TranslationQuery, IPageInfo, IPaginationData, PaginationDataLoader, PaginationItemContext, IPoint, ShapeIntersection, IShape, CanvasResizeMode, CanvasItemDirection, CanvasPaintFunc, RangeCoords, RectCoords,
|
|
3
|
+
export { DurationUnit, TypedFactoryProvider, TypedValueProvider, TypedExistingProvider, TypedClassProvider, TypedTokenProvider, TypedProvider, CachedFactory, ResolveFactory, IResolveFactory, CanvasColor, IIconService, ITranslation, ITranslations, GlobalTranslations, ILanguageSetting, ILanguageSettings, ILanguageService, IUserData, IAuthService, RouteValidator, IRouteData, IRoute, IDialogButtonConfig, IDialogConfig, IConfirmMessageConfig, IConfirmDialogConfig, IDialogService, IPromiseService, IRouteStateInfo, MenuItem, IAclComponent, IAclService, NavigationUrlParam, StorageMode, ToastType, IToasterService, IAsyncMessage, AsyncMethod, IconMap, IconProps, ButtonType, ButtonSize, ButtonProps, TabValue, TabOption, ChipValue, ChipStatus, ChipOption, DropdownAttachTo, UnorderedListTemplate, UnorderedListTemplates, UnorderedListStyle, UploadType, IFileUploadResult, IFileUploadProcess, IAjaxRequestDetails, AjaxRequestCallback, ScriptType, ILoadableElement, ILoaderPromises, ISearchObservable, FactoryDependencies, ObjectType, ITimer, IExtraProperties, IGroupMap, TranslationQuery, IPageInfo, IPaginationData, PaginationDataLoader, PaginationItemContext, IPoint, ShapeIntersection, IShape, CanvasResizeMode, CanvasItemDirection, CanvasPaintFunc, RangeCoords, RectCoords, InteractiveCanvasParams, InteractiveCanvasArea, InteractiveCanvasItem, InteractiveCanvasItems, InteractiveCanvas, InteractiveCanvasRenderer, InteractivePanEvent, InteractiveCanvasPointer, HttpRequestHeaders, HttpRequestQuery, HttpClientRequestOptions, HttpRequestOptions, UploadData, IIssueContext, IProgress, ProgressListener, CacheExpireMode, IHttpService, SvgSourceModifier, IBaseHttpClient, IApiService, DynamicSchemaRef, OpenApiSchemaProperty, OpenApiSchema, OpenApiSchemas, OpenApiSchemaSelector, TableFilterType, ITableOrders, ITableColumn, ITableColumns, TableColumns, ITableTemplate, ITableTemplates, ITableDataQuery, TableDataItems, TableDataLoader, DragDropEvent, DragEventHandler, ITableDragEvent, DynamicTableDragHandler, ResourceIfContext, CssSelector, CssSelectorList, DynamicComponentLocation, DynamicModuleInfo, DynamicEntryComponents, IConfiguration, IConfigService, ResizeEventStrategy, ErrorHandlerCallback, GlobalComponentModifier, AppInitializerFunc, IModuleConfig, ValuedPromise } from "./ngx-utils/common-types";
|
|
4
4
|
export { ICON_TYPE, ICON_MAP, BUTTON_TYPE, ERROR_HANDLER, STATIC_SCHEMAS, SCHEMA_SELECTOR, RESIZE_STRATEGY, RESIZE_DELAY, ROOT_ELEMENT, SCRIPT_PARAMS, BASE_CONFIG, CONFIG_SERVICE, APP_BASE_URL, API_SERVICE, EXPRESS_REQUEST, PROMISE_SERVICE, DIALOG_SERVICE, TOASTER_SERVICE, AUTH_SERVICE, LANGUAGE_SERVICE, ICON_SERVICE, OPTIONS_TOKEN } from "./ngx-utils/tokens";
|
|
5
5
|
export { AjaxRequestHandler } from "./ngx-utils/utils/ajax-request-handler";
|
|
6
6
|
export { ArrayUtils } from "./ngx-utils/utils/array.utils";
|