@stemy/ngx-utils 19.9.31 → 19.9.33

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.
@@ -203,6 +203,7 @@ export interface IconMap {
203
203
  }
204
204
  export interface IconProps {
205
205
  name: string;
206
+ [key: string]: any;
206
207
  }
207
208
  export type ButtonType = "primary" | "secondary" | "transparent";
208
209
  export type ButtonSize = "normal" | "small";
@@ -522,15 +523,39 @@ export interface IApiService extends IHttpService {
522
523
  upload(url: string, body: any, listener?: ProgressListener, options?: HttpRequestOptions): Promise<any>;
523
524
  list(url: string, params: HttpRequestQuery, options?: HttpRequestOptions): Promise<IPaginationData>;
524
525
  }
526
+ /**
527
+ * Discriminator defines a function which returns a schema name based on a target object
528
+ */
529
+ export type DiscriminatorFn = (target: Object) => string;
530
+ /**
531
+ * The source options for a discriminator function
532
+ */
533
+ export interface DiscriminatorOptions {
534
+ propertyName: string;
535
+ mapping: Record<string, string>;
536
+ }
537
+ /**
538
+ * A holder that defines the schema discriminator
539
+ */
540
+ export interface Discriminator {
541
+ discriminator: DiscriminatorOptions;
542
+ discriminatorFn?: DiscriminatorFn;
543
+ }
544
+ /**
545
+ * A dynamic OpenApi schema definition (contains options for loading a dynamic schema)
546
+ */
525
547
  export interface DynamicSchemaRef {
526
548
  dynamicSchema?: string;
527
549
  dynamicSchemaUrl?: string;
528
550
  dynamicSchemaName?: string;
529
551
  }
552
+ /**
553
+ * An OpenApi schema reference. Contains the path of a schema
554
+ */
530
555
  export interface OpenApiSchemaRef {
531
556
  $ref?: string;
532
557
  }
533
- export interface OpenApiSchemaProperty extends DynamicSchemaRef, OpenApiSchemaRef {
558
+ export interface OpenApiSchemaProperty extends DynamicSchemaRef, OpenApiSchemaRef, Discriminator {
534
559
  id: string;
535
560
  type?: string;
536
561
  format?: string;
@@ -554,6 +579,7 @@ export interface OpenApiSchemas {
554
579
  [name: string]: OpenApiSchema;
555
580
  }
556
581
  export type OpenApiSchemaSelector = (name: string, schemas: OpenApiSchemas, injector: Injector) => OpenApiSchema;
582
+ export declare const EDITOR_TYPES: ReadonlyArray<string>;
557
583
  export type TableFilterType = "text" | "enum" | "checkbox";
558
584
  export interface ITableOrders {
559
585
  [column: string]: string;
@@ -0,0 +1,39 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges } from "@angular/core";
2
+ import { ControlValueAccessor } from "@angular/forms";
3
+ import * as i0 from "@angular/core";
4
+ interface CodeEditorView {
5
+ readonly value: string;
6
+ readonly state: Record<string, any>;
7
+ dispatch(changes: Record<string, any>): void;
8
+ }
9
+ interface CodeEditorCompartment {
10
+ of(ext: Object): Object;
11
+ reconfigure(ext: Object): Object[];
12
+ }
13
+ export declare class CodeEditorComponent implements ControlValueAccessor, OnChanges, AfterViewInit {
14
+ readonly cdr: ChangeDetectorRef;
15
+ readonly element: ElementRef<HTMLElement>;
16
+ value: string | Object;
17
+ lang: string;
18
+ disabled: boolean;
19
+ valueChange: EventEmitter<string>;
20
+ onChange: Function;
21
+ onTouched: Function;
22
+ protected langCompartment: CodeEditorCompartment;
23
+ protected extensions: Record<string, Object>;
24
+ protected rootElem: DocumentOrShadowRoot;
25
+ protected editor: CodeEditorView;
26
+ protected editorElem: ElementRef<HTMLDivElement>;
27
+ get root(): DocumentOrShadowRoot;
28
+ get rootNode(): Node;
29
+ constructor(cdr: ChangeDetectorRef, element: ElementRef<HTMLElement>);
30
+ getLangExtension(): Object;
31
+ ngAfterViewInit(): void;
32
+ ngOnChanges(): void;
33
+ registerOnChange(fn: any): void;
34
+ registerOnTouched(fn: any): void;
35
+ writeValue(value: string): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<CodeEditorComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<CodeEditorComponent, "code-editor", never, { "value": { "alias": "value"; "required": false; }; "lang": { "alias": "lang"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
38
+ }
39
+ export {};
@@ -59,6 +59,7 @@ import { SyncAsyncPipe } from "./pipes/sync-async.pipe";
59
59
  import { TranslatePipe } from "./pipes/translate.pipe";
60
60
  import { ChipsComponent } from "./components/chips/chips.component";
61
61
  import { CloseBtnComponent } from "./components/close-btn/close-btn.component";
62
+ import { CodeEditorComponent } from "./components/code-editor/code-editor.component";
62
63
  import { DropListComponent } from "./components/drop-list/drop-list.component";
63
64
  import { DynamicTableComponent } from "./components/dynamic-table/dynamic-table.component";
64
65
  import { PaginationMenuComponent } from "./components/pagination-menu/pagination-menu.component";
@@ -67,7 +68,7 @@ import { UploadComponent } from "./components/upload/upload.component";
67
68
  import { WysiwygComponent } from "./components/wysiwyg/wysiwyg.component";
68
69
  export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof SyncAsyncPipe | typeof TranslatePipe)[];
69
70
  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)[];
70
- export declare const components: (typeof ChipsComponent | typeof CloseBtnComponent | typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent | typeof WysiwygComponent)[];
71
+ export declare const components: (typeof ChipsComponent | typeof CloseBtnComponent | typeof CodeEditorComponent | typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent | typeof WysiwygComponent)[];
71
72
  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 HrefSerializer | 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 | {
72
73
  provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
73
74
  useClass: typeof DragDropEventPlugin;
@@ -56,24 +56,25 @@ import * as i52 from "./components/btn/btn.component";
56
56
  import * as i53 from "./components/btn-default/btn-default.component";
57
57
  import * as i54 from "./components/chips/chips.component";
58
58
  import * as i55 from "./components/close-btn/close-btn.component";
59
- import * as i56 from "./components/drop-list/drop-list.component";
60
- import * as i57 from "./components/dropdown-box/dropdown-box.component";
61
- import * as i58 from "./components/dynamic-table/dynamic-table.component";
62
- import * as i59 from "./components/dynamic-table-cell/dynamic-table-cell.component";
63
- import * as i60 from "./components/fake-module/fake-module.component";
64
- import * as i61 from "./components/pagination-menu/pagination-menu.component";
65
- import * as i62 from "./components/icon/icon.component";
66
- import * as i63 from "./components/icon-default/icon-default.component";
67
- import * as i64 from "./components/interactive-canvas/interactive-canvas.component";
68
- import * as i65 from "./components/interactive-canvas/interactive-item.component";
69
- import * as i66 from "./components/interactive-canvas/interactive-circle.component";
70
- import * as i67 from "./components/interactive-canvas/interactive-rect.component";
71
- import * as i68 from "./components/tabs/tabs.component";
72
- import * as i69 from "./components/unordered-list/unordered-list.component";
73
- import * as i70 from "./components/upload/upload.component";
74
- import * as i71 from "./components/wysiwyg/wysiwyg.component";
75
- import * as i72 from "@angular/common";
76
- import * as i73 from "@angular/forms";
59
+ import * as i56 from "./components/code-editor/code-editor.component";
60
+ import * as i57 from "./components/drop-list/drop-list.component";
61
+ import * as i58 from "./components/dropdown-box/dropdown-box.component";
62
+ import * as i59 from "./components/dynamic-table/dynamic-table.component";
63
+ import * as i60 from "./components/dynamic-table-cell/dynamic-table-cell.component";
64
+ import * as i61 from "./components/fake-module/fake-module.component";
65
+ import * as i62 from "./components/pagination-menu/pagination-menu.component";
66
+ import * as i63 from "./components/icon/icon.component";
67
+ import * as i64 from "./components/icon-default/icon-default.component";
68
+ import * as i65 from "./components/interactive-canvas/interactive-canvas.component";
69
+ import * as i66 from "./components/interactive-canvas/interactive-item.component";
70
+ import * as i67 from "./components/interactive-canvas/interactive-circle.component";
71
+ import * as i68 from "./components/interactive-canvas/interactive-rect.component";
72
+ import * as i69 from "./components/tabs/tabs.component";
73
+ import * as i70 from "./components/unordered-list/unordered-list.component";
74
+ import * as i71 from "./components/upload/upload.component";
75
+ import * as i72 from "./components/wysiwyg/wysiwyg.component";
76
+ import * as i73 from "@angular/common";
77
+ import * as i74 from "@angular/forms";
77
78
  export declare function loadBaseUrl(): string;
78
79
  export declare function loadBaseHref(baseUrl: string): string;
79
80
  export declare function getRootElement(): HTMLElement;
@@ -83,6 +84,6 @@ export declare class NgxUtilsModule {
83
84
  static provideUtils(config?: IModuleConfig): EnvironmentProviders;
84
85
  static useDynamic(moduleInfo: DynamicModuleInfo): ModuleWithProviders<NgxUtilsModule>;
85
86
  static ɵfac: i0.ɵɵFactoryDeclaration<NgxUtilsModule, never>;
86
- static ɵmod: i0.ɵɵNgModuleDeclaration<NgxUtilsModule, [typeof i1.ChunkPipe, typeof i2.EntriesPipe, typeof i3.ExtraItemPropertiesPipe, typeof i4.FilterPipe, typeof i5.FindPipe, typeof i6.FormatNumberPipe, typeof i7.GetOffsetPipe, typeof i8.GetTypePipe, typeof i9.GetValuePipe, typeof i10.GlobalTemplatePipe, typeof i11.GroupByPipe, typeof i12.IncludesPipe, typeof i13.IsTypePipe, typeof i14.JoinPipe, typeof i15.KeysPipe, typeof i16.MapPipe, typeof i17.MaxPipe, typeof i18.MinPipe, typeof i19.PopPipe, typeof i20.ReducePipe, typeof i21.RemapPipe, typeof i22.ReplacePipe, typeof i23.ReversePipe, typeof i24.RoundPipe, typeof i25.SafeHtmlPipe, typeof i26.ShiftPipe, typeof i27.SplitPipe, typeof i28.SyncAsyncPipe, typeof i29.TranslatePipe, typeof i30.ValuesPipe, typeof i31.AsyncMethodBase, typeof i32.AsyncMethodDirective, typeof i33.AsyncMethodTargetDirective, typeof i34.BackgroundDirective, typeof i35.ComponentLoaderDirective, typeof i36.DynamicTableTemplateDirective, typeof i37.GlobalTemplateDirective, typeof i38.IconDirective, typeof i39.NgxTemplateOutletDirective, typeof i40.PaginationDirective, typeof i41.PaginationItemDirective, typeof i42.ResourceIfDirective, typeof i43.StickyDirective, typeof i44.StickyClassDirective, typeof i45.DropdownDirective, typeof i46.DropdownContentDirective, typeof i47.DropdownToggleDirective, typeof i48.TabsItemDirective, typeof i49.TabsTemplateDirective, typeof i50.UnorderedListItemDirective, typeof i51.UnorderedListTemplateDirective, typeof i52.BtnComponent, typeof i53.BtnDefaultComponent, typeof i54.ChipsComponent, typeof i55.CloseBtnComponent, typeof i56.DropListComponent, typeof i57.DropdownBoxComponent, typeof i58.DynamicTableComponent, typeof i59.DynamicTableCellComponent, typeof i60.FakeModuleComponent, typeof i61.PaginationMenuComponent, typeof i62.IconComponent, typeof i63.IconDefaultComponent, typeof i64.InteractiveCanvasComponent, typeof i65.InteractiveItemComponent, typeof i66.InteractiveCircleComponent, typeof i67.InteractiveRectComponent, typeof i68.TabsComponent, typeof i69.UnorderedListComponent, typeof i70.UploadComponent, typeof i71.WysiwygComponent], [typeof i72.CommonModule, typeof i73.FormsModule], [typeof i1.ChunkPipe, typeof i2.EntriesPipe, typeof i3.ExtraItemPropertiesPipe, typeof i4.FilterPipe, typeof i5.FindPipe, typeof i6.FormatNumberPipe, typeof i7.GetOffsetPipe, typeof i8.GetTypePipe, typeof i9.GetValuePipe, typeof i10.GlobalTemplatePipe, typeof i11.GroupByPipe, typeof i12.IncludesPipe, typeof i13.IsTypePipe, typeof i14.JoinPipe, typeof i15.KeysPipe, typeof i16.MapPipe, typeof i17.MaxPipe, typeof i18.MinPipe, typeof i19.PopPipe, typeof i20.ReducePipe, typeof i21.RemapPipe, typeof i22.ReplacePipe, typeof i23.ReversePipe, typeof i24.RoundPipe, typeof i25.SafeHtmlPipe, typeof i26.ShiftPipe, typeof i27.SplitPipe, typeof i28.SyncAsyncPipe, typeof i29.TranslatePipe, typeof i30.ValuesPipe, typeof i31.AsyncMethodBase, typeof i32.AsyncMethodDirective, typeof i33.AsyncMethodTargetDirective, typeof i34.BackgroundDirective, typeof i35.ComponentLoaderDirective, typeof i36.DynamicTableTemplateDirective, typeof i37.GlobalTemplateDirective, typeof i38.IconDirective, typeof i39.NgxTemplateOutletDirective, typeof i40.PaginationDirective, typeof i41.PaginationItemDirective, typeof i42.ResourceIfDirective, typeof i43.StickyDirective, typeof i44.StickyClassDirective, typeof i45.DropdownDirective, typeof i46.DropdownContentDirective, typeof i47.DropdownToggleDirective, typeof i48.TabsItemDirective, typeof i49.TabsTemplateDirective, typeof i50.UnorderedListItemDirective, typeof i51.UnorderedListTemplateDirective, typeof i52.BtnComponent, typeof i53.BtnDefaultComponent, typeof i54.ChipsComponent, typeof i55.CloseBtnComponent, typeof i56.DropListComponent, typeof i57.DropdownBoxComponent, typeof i58.DynamicTableComponent, typeof i59.DynamicTableCellComponent, typeof i60.FakeModuleComponent, typeof i61.PaginationMenuComponent, typeof i62.IconComponent, typeof i63.IconDefaultComponent, typeof i64.InteractiveCanvasComponent, typeof i65.InteractiveItemComponent, typeof i66.InteractiveCircleComponent, typeof i67.InteractiveRectComponent, typeof i68.TabsComponent, typeof i69.UnorderedListComponent, typeof i70.UploadComponent, typeof i71.WysiwygComponent, typeof i73.FormsModule]>;
87
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgxUtilsModule, [typeof i1.ChunkPipe, typeof i2.EntriesPipe, typeof i3.ExtraItemPropertiesPipe, typeof i4.FilterPipe, typeof i5.FindPipe, typeof i6.FormatNumberPipe, typeof i7.GetOffsetPipe, typeof i8.GetTypePipe, typeof i9.GetValuePipe, typeof i10.GlobalTemplatePipe, typeof i11.GroupByPipe, typeof i12.IncludesPipe, typeof i13.IsTypePipe, typeof i14.JoinPipe, typeof i15.KeysPipe, typeof i16.MapPipe, typeof i17.MaxPipe, typeof i18.MinPipe, typeof i19.PopPipe, typeof i20.ReducePipe, typeof i21.RemapPipe, typeof i22.ReplacePipe, typeof i23.ReversePipe, typeof i24.RoundPipe, typeof i25.SafeHtmlPipe, typeof i26.ShiftPipe, typeof i27.SplitPipe, typeof i28.SyncAsyncPipe, typeof i29.TranslatePipe, typeof i30.ValuesPipe, typeof i31.AsyncMethodBase, typeof i32.AsyncMethodDirective, typeof i33.AsyncMethodTargetDirective, typeof i34.BackgroundDirective, typeof i35.ComponentLoaderDirective, typeof i36.DynamicTableTemplateDirective, typeof i37.GlobalTemplateDirective, typeof i38.IconDirective, typeof i39.NgxTemplateOutletDirective, typeof i40.PaginationDirective, typeof i41.PaginationItemDirective, typeof i42.ResourceIfDirective, typeof i43.StickyDirective, typeof i44.StickyClassDirective, typeof i45.DropdownDirective, typeof i46.DropdownContentDirective, typeof i47.DropdownToggleDirective, typeof i48.TabsItemDirective, typeof i49.TabsTemplateDirective, typeof i50.UnorderedListItemDirective, typeof i51.UnorderedListTemplateDirective, typeof i52.BtnComponent, typeof i53.BtnDefaultComponent, typeof i54.ChipsComponent, typeof i55.CloseBtnComponent, typeof i56.CodeEditorComponent, typeof i57.DropListComponent, typeof i58.DropdownBoxComponent, typeof i59.DynamicTableComponent, typeof i60.DynamicTableCellComponent, typeof i61.FakeModuleComponent, typeof i62.PaginationMenuComponent, typeof i63.IconComponent, typeof i64.IconDefaultComponent, typeof i65.InteractiveCanvasComponent, typeof i66.InteractiveItemComponent, typeof i67.InteractiveCircleComponent, typeof i68.InteractiveRectComponent, typeof i69.TabsComponent, typeof i70.UnorderedListComponent, typeof i71.UploadComponent, typeof i72.WysiwygComponent], [typeof i73.CommonModule, typeof i74.FormsModule], [typeof i1.ChunkPipe, typeof i2.EntriesPipe, typeof i3.ExtraItemPropertiesPipe, typeof i4.FilterPipe, typeof i5.FindPipe, typeof i6.FormatNumberPipe, typeof i7.GetOffsetPipe, typeof i8.GetTypePipe, typeof i9.GetValuePipe, typeof i10.GlobalTemplatePipe, typeof i11.GroupByPipe, typeof i12.IncludesPipe, typeof i13.IsTypePipe, typeof i14.JoinPipe, typeof i15.KeysPipe, typeof i16.MapPipe, typeof i17.MaxPipe, typeof i18.MinPipe, typeof i19.PopPipe, typeof i20.ReducePipe, typeof i21.RemapPipe, typeof i22.ReplacePipe, typeof i23.ReversePipe, typeof i24.RoundPipe, typeof i25.SafeHtmlPipe, typeof i26.ShiftPipe, typeof i27.SplitPipe, typeof i28.SyncAsyncPipe, typeof i29.TranslatePipe, typeof i30.ValuesPipe, typeof i31.AsyncMethodBase, typeof i32.AsyncMethodDirective, typeof i33.AsyncMethodTargetDirective, typeof i34.BackgroundDirective, typeof i35.ComponentLoaderDirective, typeof i36.DynamicTableTemplateDirective, typeof i37.GlobalTemplateDirective, typeof i38.IconDirective, typeof i39.NgxTemplateOutletDirective, typeof i40.PaginationDirective, typeof i41.PaginationItemDirective, typeof i42.ResourceIfDirective, typeof i43.StickyDirective, typeof i44.StickyClassDirective, typeof i45.DropdownDirective, typeof i46.DropdownContentDirective, typeof i47.DropdownToggleDirective, typeof i48.TabsItemDirective, typeof i49.TabsTemplateDirective, typeof i50.UnorderedListItemDirective, typeof i51.UnorderedListTemplateDirective, typeof i52.BtnComponent, typeof i53.BtnDefaultComponent, typeof i54.ChipsComponent, typeof i55.CloseBtnComponent, typeof i56.CodeEditorComponent, typeof i57.DropListComponent, typeof i58.DropdownBoxComponent, typeof i59.DynamicTableComponent, typeof i60.DynamicTableCellComponent, typeof i61.FakeModuleComponent, typeof i62.PaginationMenuComponent, typeof i63.IconComponent, typeof i64.IconDefaultComponent, typeof i65.InteractiveCanvasComponent, typeof i66.InteractiveItemComponent, typeof i67.InteractiveCircleComponent, typeof i68.InteractiveRectComponent, typeof i69.TabsComponent, typeof i70.UnorderedListComponent, typeof i71.UploadComponent, typeof i72.WysiwygComponent, typeof i74.FormsModule]>;
87
88
  static ɵinj: i0.ɵɵInjectorDeclaration<NgxUtilsModule>;
88
89
  }
@@ -1,5 +1,5 @@
1
1
  import { Injector } from "@angular/core";
2
- import { DynamicSchemaRef, IApiService, OpenApiSchema, OpenApiSchemaProperty, OpenApiSchemas, OpenApiSchemaSelector } from "../common-types";
2
+ import { Discriminator, DiscriminatorFn, DynamicSchemaRef, IApiService, OpenApiSchema, OpenApiSchemaProperty, OpenApiSchemas, OpenApiSchemaSelector } from "../common-types";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class OpenApiService {
5
5
  readonly api: IApiService;
@@ -16,6 +16,7 @@ export declare class OpenApiService {
16
16
  getSchema(name: string): Promise<OpenApiSchema>;
17
17
  protected getDynamicSchema(definition: DynamicSchemaRef): Promise<OpenApiSchema>;
18
18
  protected extractSchemas(res: any): OpenApiSchemas;
19
+ protected getDiscriminatorFn(discriminator: Discriminator): DiscriminatorFn;
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<OpenApiService, never>;
20
21
  static ɵprov: i0.ɵɵInjectableDeclaration<OpenApiService>;
21
22
  }
@@ -4,6 +4,12 @@ export type IterateCallback = (value: any, key: any) => void;
4
4
  export type IterateRecursiveCallback = (value: any, key: any, path: string, obj: any) => void;
5
5
  export declare function defaultPredicate(value: any, key?: any, target?: any, source?: any): boolean;
6
6
  export declare function shouldCopyDefault(key: any, value: any): boolean;
7
+ export declare function getType(obj: any): string;
8
+ export declare function isObject(value: any): boolean;
9
+ export declare function isString(value: any): value is string;
10
+ export declare function isStringWithValue(value: any): value is string;
11
+ export declare function isFunction(value: any): value is Function;
12
+ export declare function toStringArray(value: string | string[]): string[];
7
13
  export declare class ObjectUtils {
8
14
  static compare(a: any, b: any): number;
9
15
  static getProperties(obj: any): string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "19.9.31",
3
+ "version": "19.9.33",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",
@@ -16,6 +16,9 @@
16
16
  "@angular/platform-browser-dynamic": "^19.2.22",
17
17
  "@angular/platform-server": "^19.2.22",
18
18
  "element-resize-detector": "^1.2.4",
19
+ "hammerjs": "^2.0.8",
20
+ "core-js": "^3.49.0",
21
+ "socket.io-client": "^4.8.3",
19
22
  "rxjs": "^7.8.2",
20
23
  "luxon": "^3.7.2",
21
24
  "invokable": "^1.0.3",
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, LoadableElement, LoaderPromises, 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";
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, LoadableElement, LoaderPromises, 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, DiscriminatorFn, DiscriminatorOptions, Discriminator, DynamicSchemaRef, OpenApiSchemaProperty, OpenApiSchema, OpenApiSchemas, OpenApiSchemaSelector, EDITOR_TYPES, 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";
@@ -23,7 +23,7 @@ export { ReflectUtils } from "./ngx-utils/utils/reflect.utils";
23
23
  export { LoaderUtils } from "./ngx-utils/utils/loader.utils";
24
24
  export { EPSILON, normalizeRange, clamp, overflow, isEqual, isZero, MathUtils } from "./ngx-utils/utils/math.utils";
25
25
  export { isBrowser, getRoot, switchClass, getCssVariables, checkTransitions, getComponentDef, parseSelector, selectorMatchesList, provideEntryComponents, provideOptions, provideWithOptions, injectOptions, DiffEntityResult, diffEntities } from "./ngx-utils/utils/misc";
26
- export { ObjectUtils } from "./ngx-utils/utils/object.utils";
26
+ export { getType, isObject, isString, isStringWithValue, isFunction, toStringArray, ObjectUtils } from "./ngx-utils/utils/object.utils";
27
27
  export { ObservableUtils, ISubscriberInfo } from "./ngx-utils/utils/observable.utils";
28
28
  export { CancelablePromise, cancelablePromise, impatientPromise, promiseTimeout } from "./ngx-utils/utils/promise.utils";
29
29
  export { svgToDataUri, StringUtils } from "./ngx-utils/utils/string.utils";
@@ -119,6 +119,7 @@ export { BtnComponent } from "./ngx-utils/components/btn/btn.component";
119
119
  export { BtnDefaultComponent } from "./ngx-utils/components/btn-default/btn-default.component";
120
120
  export { ChipsComponent } from "./ngx-utils/components/chips/chips.component";
121
121
  export { CloseBtnComponent } from "./ngx-utils/components/close-btn/close-btn.component";
122
+ export { CodeEditorComponent } from "./ngx-utils/components/code-editor/code-editor.component";
122
123
  export { DropListComponent } from "./ngx-utils/components/drop-list/drop-list.component";
123
124
  export { DropdownBoxComponent } from "./ngx-utils/components/dropdown-box/dropdown-box.component";
124
125
  export { DynamicTableComponent } from "./ngx-utils/components/dynamic-table/dynamic-table.component";
package/ng.mjs DELETED
@@ -1,5 +0,0 @@
1
- import { register } from "node:module";
2
- import { pathToFileURL } from "node:url";
3
-
4
- register("ts-node/esm", pathToFileURL("./"));
5
- import "@angular/cli/bin/ng.js";