ngx-histaff-alpha 5.9.9 → 6.0.1

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.
Files changed (48) hide show
  1. package/fesm2022/{ngx-histaff-alpha-ai-hint-for-table.component-DJou-dbD.mjs → ngx-histaff-alpha-ai-hint-for-table.component-DCPjto_H.mjs} +4 -4
  2. package/fesm2022/{ngx-histaff-alpha-ai-hint-for-table.component-DJou-dbD.mjs.map → ngx-histaff-alpha-ai-hint-for-table.component-DCPjto_H.mjs.map} +1 -1
  3. package/fesm2022/{ngx-histaff-alpha-core-form-design.component-XvkMxYKX.mjs → ngx-histaff-alpha-core-form-design.component-Dn_tL4gx.mjs} +9 -9
  4. package/fesm2022/{ngx-histaff-alpha-core-form-design.component-XvkMxYKX.mjs.map → ngx-histaff-alpha-core-form-design.component-Dn_tL4gx.mjs.map} +1 -1
  5. package/fesm2022/{ngx-histaff-alpha-core-sticker-collection.component-B8YmSEoB.mjs → ngx-histaff-alpha-core-sticker-collection.component-B557erFX.mjs} +4 -4
  6. package/fesm2022/{ngx-histaff-alpha-core-sticker-collection.component-B8YmSEoB.mjs.map → ngx-histaff-alpha-core-sticker-collection.component-B557erFX.mjs.map} +1 -1
  7. package/fesm2022/{ngx-histaff-alpha-core-template-editor.component-_BGMfd0v.mjs → ngx-histaff-alpha-core-template-editor.component-C6YLFg9S.mjs} +2 -2
  8. package/fesm2022/{ngx-histaff-alpha-core-template-editor.component-_BGMfd0v.mjs.map → ngx-histaff-alpha-core-template-editor.component-C6YLFg9S.mjs.map} +1 -1
  9. package/fesm2022/{ngx-histaff-alpha-core-toast-loading.component-vDd15vTt.mjs → ngx-histaff-alpha-core-toast-loading.component-tdIfgsap.mjs} +2 -2
  10. package/fesm2022/{ngx-histaff-alpha-core-toast-loading.component-vDd15vTt.mjs.map → ngx-histaff-alpha-core-toast-loading.component-tdIfgsap.mjs.map} +1 -1
  11. package/fesm2022/{ngx-histaff-alpha-core-workflow-consume.component-DOC0gxvF.mjs → ngx-histaff-alpha-core-workflow-consume.component-BHPfWQWV.mjs} +3 -3
  12. package/fesm2022/{ngx-histaff-alpha-core-workflow-consume.component-DOC0gxvF.mjs.map → ngx-histaff-alpha-core-workflow-consume.component-BHPfWQWV.mjs.map} +1 -1
  13. package/fesm2022/{ngx-histaff-alpha-db-settings.component-osYYD2VZ.mjs → ngx-histaff-alpha-db-settings.component-BFTA_zTk.mjs} +5 -5
  14. package/fesm2022/{ngx-histaff-alpha-db-settings.component-osYYD2VZ.mjs.map → ngx-histaff-alpha-db-settings.component-BFTA_zTk.mjs.map} +1 -1
  15. package/fesm2022/{ngx-histaff-alpha-design-wrapper.component-Doqa5ktj.mjs → ngx-histaff-alpha-design-wrapper.component-CrUZ27EK.mjs} +11 -11
  16. package/fesm2022/ngx-histaff-alpha-design-wrapper.component-CrUZ27EK.mjs.map +1 -0
  17. package/fesm2022/{ngx-histaff-alpha-design-wrapper.route-FELy6p-G.mjs → ngx-histaff-alpha-design-wrapper.route-o4yVb_cX.mjs} +5 -5
  18. package/fesm2022/{ngx-histaff-alpha-design-wrapper.route-FELy6p-G.mjs.map → ngx-histaff-alpha-design-wrapper.route-o4yVb_cX.mjs.map} +1 -1
  19. package/fesm2022/{ngx-histaff-alpha-form-array-props.component-CfQR3S5b.mjs → ngx-histaff-alpha-form-array-props.component-DLtrm47-.mjs} +3 -3
  20. package/fesm2022/{ngx-histaff-alpha-form-array-props.component-CfQR3S5b.mjs.map → ngx-histaff-alpha-form-array-props.component-DLtrm47-.mjs.map} +1 -1
  21. package/fesm2022/{ngx-histaff-alpha-live-form.component-CxHOd02D.mjs → ngx-histaff-alpha-live-form.component-DwjaqylR.mjs} +3 -3
  22. package/fesm2022/{ngx-histaff-alpha-live-form.component-CxHOd02D.mjs.map → ngx-histaff-alpha-live-form.component-DwjaqylR.mjs.map} +1 -1
  23. package/fesm2022/{ngx-histaff-alpha-ngx-histaff-alpha-CgCAObWj.mjs → ngx-histaff-alpha-ngx-histaff-alpha-35-x2sjB.mjs} +425 -508
  24. package/fesm2022/ngx-histaff-alpha-ngx-histaff-alpha-35-x2sjB.mjs.map +1 -0
  25. package/fesm2022/{ngx-histaff-alpha-simple-chat.component-CDCKBrkZ.mjs → ngx-histaff-alpha-simple-chat.component-AWCZ1DaC.mjs} +2 -2
  26. package/fesm2022/{ngx-histaff-alpha-simple-chat.component-CDCKBrkZ.mjs.map → ngx-histaff-alpha-simple-chat.component-AWCZ1DaC.mjs.map} +1 -1
  27. package/fesm2022/{ngx-histaff-alpha-template-list.component-BFTwxU2H.mjs → ngx-histaff-alpha-template-list.component-Dzv1PYHF.mjs} +2 -2
  28. package/fesm2022/{ngx-histaff-alpha-template-list.component-BFTwxU2H.mjs.map → ngx-histaff-alpha-template-list.component-Dzv1PYHF.mjs.map} +1 -1
  29. package/fesm2022/{ngx-histaff-alpha-tracker-studio.component-DnkbQFFW.mjs → ngx-histaff-alpha-tracker-studio.component-DnaGOglm.mjs} +2 -2
  30. package/fesm2022/{ngx-histaff-alpha-tracker-studio.component-DnkbQFFW.mjs.map → ngx-histaff-alpha-tracker-studio.component-DnaGOglm.mjs.map} +1 -1
  31. package/fesm2022/{ngx-histaff-alpha-wf-form-assign.component-Do8vO6MV.mjs → ngx-histaff-alpha-wf-form-assign.component-DhARzq_7.mjs} +2 -2
  32. package/fesm2022/{ngx-histaff-alpha-wf-form-assign.component-Do8vO6MV.mjs.map → ngx-histaff-alpha-wf-form-assign.component-DhARzq_7.mjs.map} +1 -1
  33. package/fesm2022/{ngx-histaff-alpha-wf-instance-status.component-BqWwA5pQ.mjs → ngx-histaff-alpha-wf-instance-status.component-DVspXFmp.mjs} +2 -2
  34. package/fesm2022/{ngx-histaff-alpha-wf-instance-status.component-BqWwA5pQ.mjs.map → ngx-histaff-alpha-wf-instance-status.component-DVspXFmp.mjs.map} +1 -1
  35. package/fesm2022/{ngx-histaff-alpha-wf-instance-step-react.component-3XR3zc8T.mjs → ngx-histaff-alpha-wf-instance-step-react.component-MTnwAwZ5.mjs} +3 -3
  36. package/fesm2022/{ngx-histaff-alpha-wf-instance-step-react.component-3XR3zc8T.mjs.map → ngx-histaff-alpha-wf-instance-step-react.component-MTnwAwZ5.mjs.map} +1 -1
  37. package/fesm2022/ngx-histaff-alpha.mjs +1 -1
  38. package/lib/app/libraries/core-docgen-toolbar/core-docgen-toolbar.component.d.ts +12 -1
  39. package/lib/app/libraries/core-form/core-form/enum-interfaces.d.ts +4 -4
  40. package/lib/app/libraries/core-liquid-wysiwyg/core-liquid-wysiwyg.component.d.ts +48 -31
  41. package/lib/app/libraries/core-liquid-wysiwyg/core-liquid-wysiwyg.service.d.ts +32 -0
  42. package/lib/app/libraries/core-liquid-wysiwyg/core-wysiwyg-types.d.ts +17 -0
  43. package/lib/app/libraries/tooltip/tooltip.component.d.ts +9 -2
  44. package/lib/app/libraries/tooltip/tooltip.directive.d.ts +17 -18
  45. package/lib/app/services/developer-validation.service.d.ts +6 -3
  46. package/package.json +1 -1
  47. package/fesm2022/ngx-histaff-alpha-design-wrapper.component-Doqa5ktj.mjs.map +0 -1
  48. package/fesm2022/ngx-histaff-alpha-ngx-histaff-alpha-CgCAObWj.mjs.map +0 -1
@@ -1,57 +1,74 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef } from '@angular/core';
2
2
  import { CoreFormControlBaseComponent } from '../core-form-control-base/core-form-control-base.component';
3
3
  import { BehaviorSubject } from 'rxjs';
4
- import { Align, BlockTag } from '../core-docgen-toolbar/core-docgen-toolbar.component';
4
+ import { CoreLiquidWysiwygService } from './core-liquid-wysiwyg.service';
5
+ import { ICoreWysiwygEditor, ICoreWysiwygNormalizer, ICoreWysiwygOptions } from './core-wysiwyg-types';
5
6
  import * as i0 from "@angular/core";
6
- export interface ILiquidOptions {
7
- fields?: string[];
8
- }
9
- export declare class CoreLiquidWysiwygComponent extends CoreFormControlBaseComponent implements AfterViewInit {
7
+ export declare class CoreLiquidWysiwygComponent extends CoreFormControlBaseComponent implements ICoreWysiwygEditor {
10
8
  #private;
11
- $liquidOptions: import("@angular/core").InputSignal<ILiquidOptions>;
9
+ $liquidOptions: import("@angular/core").InputSignal<ICoreWysiwygOptions>;
12
10
  $height: import("@angular/core").InputSignal<number | undefined>;
13
11
  $readonly: import("@angular/core").InputSignal<boolean>;
14
12
  getByIdObject$: BehaviorSubject<any>;
15
13
  placeholder: string;
14
+ normalizers: ICoreWysiwygNormalizer[];
15
+ getHtml(): string;
16
+ setHtml(html: string): void;
17
+ focus(): void;
18
+ getHost(): HTMLElement | null;
19
+ $editorHost: import("@angular/core").Signal<ElementRef<HTMLTextAreaElement> | undefined>;
16
20
  $designRef: import("@angular/core").Signal<ElementRef<HTMLDivElement>>;
17
21
  $sourceRef: import("@angular/core").Signal<ElementRef<HTMLTextAreaElement> | undefined>;
18
22
  $showSource: import("@angular/core").WritableSignal<boolean>;
19
23
  $heightPx: import("@angular/core").Signal<string>;
20
24
  cdr: ChangeDetectorRef;
21
- $canUndo: import("@angular/core").WritableSignal<boolean>;
22
- $canRedo: import("@angular/core").WritableSignal<boolean>;
23
- onUndo(): void;
24
- onRedo(): void;
25
- applyBlock(tag: BlockTag): void;
26
- wrapInline(tag: 'strong' | 'em' | 'code'): void;
27
- clearFormatting(): void;
28
- openLinkDialog(): void;
29
- triggerImageUpload(): void;
30
- openImageUrlDialog(): void;
31
- insertTable(ev: {
25
+ service: CoreLiquidWysiwygService;
26
+ $canUndo: import("@angular/core").Signal<boolean>;
27
+ $canRedo: import("@angular/core").Signal<boolean>;
28
+ onSourceInput(event: Event): void;
29
+ onToggleMode(): void;
30
+ onUndo: () => void;
31
+ onRedo: () => void;
32
+ onFormatBlock: (tag: string) => void;
33
+ onBold: () => void;
34
+ onItalic: () => void;
35
+ onCode: () => void;
36
+ onClear: () => void;
37
+ onLink: () => void;
38
+ onImageUpload: () => void;
39
+ onInsertTable: (ev: {
32
40
  rows: number;
33
41
  cols: number;
34
- }): void;
35
- toggleList(kind: 'ul' | 'ol'): void;
36
- setAlign(a: Align): void;
37
- insertQuote(): void;
38
- insertHr(): void;
42
+ }) => void;
43
+ onListToggle: (kind: "ul" | "ol") => void;
44
+ onAlign: (a: string) => void;
45
+ onInsertQuote: () => void;
46
+ onInsertHr: () => void;
47
+ onInsertField: (token: string) => void;
48
+ onInsertLoop: () => void;
49
+ onInsertIf: () => void;
50
+ onInsertCondition: () => void;
51
+ onPageBreak: () => void;
52
+ onPreview: () => void;
53
+ pendingInline: Set<"code" | "em" | "strong">;
54
+ togglePendingTypingStyle(tag: 'strong' | 'em' | 'code'): void;
55
+ openImageUrlDialog(): void;
39
56
  constructor();
40
- ngAfterViewInit(): void;
41
- insertChip(token: string): void;
42
57
  markUnknownChips(allowed: string[]): void;
43
- onInsertLoop(): void;
44
- onInsertIf(): void;
45
- onInsertPageBreak(): void;
46
- previewNow(): void;
47
58
  onToggleSource(): void;
48
- onDesignInput(): void;
49
- onSourceInput(e: Event): void;
59
+ onDesignInput(e: any): void;
50
60
  onDesignKeydown(e: KeyboardEvent): void;
61
+ onDesignBeforeInput(e: InputEvent): void;
51
62
  onDesignBlur(): void;
52
63
  onDesignPaste(e: ClipboardEvent): void;
53
64
  writeValue(v: any): void;
54
65
  setDisabledState(disabled: boolean): void;
66
+ saveCaretOffset(root: HTMLElement): number;
67
+ restoreCaret(root: HTMLElement, offset: number): void;
68
+ pushHistorySoon(): void;
69
+ syncValueFromDom(): void;
70
+ previewNow(): void;
71
+ onInsertPageBreak(): void;
55
72
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreLiquidWysiwygComponent, never>;
56
73
  static ɵcmp: i0.ɵɵComponentDeclaration<CoreLiquidWysiwygComponent, "core-liquid-wysiwyg", never, { "$liquidOptions": { "alias": "$liquidOptions"; "required": false; "isSignal": true; }; "$height": { "alias": "$height"; "required": false; "isSignal": true; }; "$readonly": { "alias": "$readonly"; "required": false; "isSignal": true; }; "getByIdObject$": { "alias": "getByIdObject$"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
57
74
  }
@@ -0,0 +1,32 @@
1
+ import { ICoreWysiwygEditor } from './core-wysiwyg-types';
2
+ import * as i0 from "@angular/core";
3
+ export declare function runNormalizers(editor: ICoreWysiwygEditor, e: InputEvent): void;
4
+ export declare class CoreLiquidWysiwygService {
5
+ private options;
6
+ undo(): void;
7
+ redo(): void;
8
+ applyBlock(tag: string): void;
9
+ wrapInline(tagName: keyof HTMLElementTagNameMap): void;
10
+ clearFormatting(): void;
11
+ openLinkDialog(): void;
12
+ triggerImageUpload(): void;
13
+ insertTable(ev: {
14
+ rows: number;
15
+ cols: number;
16
+ }): void;
17
+ toggleList(kind: 'ul' | 'ol'): void;
18
+ setAlign(a: string): void;
19
+ insertQuote(): void;
20
+ insertHr(): void;
21
+ insertChip(token: string): void;
22
+ insertLoop(src: string, v: string): void;
23
+ insertIf(expr: string): void;
24
+ insertPageBreak(): void;
25
+ previewNow(): void;
26
+ getValue(): string;
27
+ setValue(liquid: string): void;
28
+ setDisabled(disabled: boolean): void;
29
+ onSourceInput(e: Event): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<CoreLiquidWysiwygService, never>;
31
+ static ɵprov: i0.ɵɵInjectableDeclaration<CoreLiquidWysiwygService>;
32
+ }
@@ -0,0 +1,17 @@
1
+ export interface ICoreWysiwygOptions {
2
+ placeholder?: string;
3
+ onChange?: (val: string) => void;
4
+ fields?: string[];
5
+ }
6
+ export interface ICoreWysiwygEditor {
7
+ getHost(): HTMLElement | null;
8
+ normalizers: ICoreWysiwygNormalizer[];
9
+ getHtml(): string;
10
+ setHtml(html: string): void;
11
+ focus(): void;
12
+ }
13
+ export interface ICoreWysiwygNormalizer {
14
+ name: string;
15
+ run: (editor: ICoreWysiwygEditor) => void;
16
+ shouldRun?: (editor: ICoreWysiwygEditor, e: InputEvent) => boolean;
17
+ }
@@ -1,8 +1,15 @@
1
- import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { DomService } from '../services/dom.service';
3
3
  import * as i0 from "@angular/core";
4
+ export interface ITooltipDimensions {
5
+ width: number;
6
+ height: number;
7
+ top: number;
8
+ left: number;
9
+ }
4
10
  export declare class TooltipComponent implements OnInit, AfterViewInit {
5
11
  private domService;
12
+ viewReady: EventEmitter<ITooltipDimensions>;
6
13
  tooltip: string;
7
14
  left: number;
8
15
  top: number;
@@ -13,5 +20,5 @@ export declare class TooltipComponent implements OnInit, AfterViewInit {
13
20
  ngOnInit(): void;
14
21
  ngAfterViewInit(): void;
15
22
  static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "app-tooltip", never, {}, {}, never, never, true, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "app-tooltip", never, {}, { "viewReady": "viewReady"; }, never, never, true, never>;
17
24
  }
@@ -1,26 +1,25 @@
1
- import { ElementRef, ApplicationRef, ComponentFactoryResolver, Injector, ChangeDetectorRef } from '@angular/core';
2
- import { Router } from '@angular/router';
1
+ import { ApplicationRef, ElementRef, EnvironmentInjector, Injector, NgZone } from '@angular/core';
2
+ import { AlertService } from '../alert/alert.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class TooltipDirective {
5
- private elementRef;
5
+ private elRef;
6
6
  private appRef;
7
- private componentFactoryResolver;
8
7
  private injector;
9
- private router;
10
- private cdr;
11
- private componentRef;
12
- constructor(elementRef: ElementRef, appRef: ApplicationRef, componentFactoryResolver: ComponentFactoryResolver, injector: Injector, router: Router, cdr: ChangeDetectorRef);
13
- color: string | undefined;
14
- backgroundColor: string | undefined;
15
- appTooltip: string | undefined;
8
+ private envInjector;
9
+ private zone;
10
+ private componentRef?;
11
+ appTooltip?: string;
16
12
  showAnyway: boolean;
13
+ color: string;
14
+ backgroundColor: string;
17
15
  position: string;
18
- onMouseEnter(e: any): void;
19
- onMouseLeave(): void;
20
- onClick(): void;
21
- ngOnDestroy(): void;
22
- destroy(): void;
23
- private setTooltipComponentProperties;
16
+ alertService: AlertService;
17
+ private vcRef;
18
+ constructor(elRef: ElementRef, appRef: ApplicationRef, injector: Injector, envInjector: EnvironmentInjector, zone: NgZone);
19
+ private shouldShow;
20
+ onMouseEnter(e: MouseEvent): void;
21
+ onMouseLeave(e: MouseEvent): void;
22
+ private adjustForOverflow;
24
23
  static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
25
- static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[appTooltip]", never, { "color": { "alias": "color"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "appTooltip": { "alias": "appTooltip"; "required": false; }; "showAnyway": { "alias": "showAnyway"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, {}, never, never, true, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[appTooltip]", never, { "appTooltip": { "alias": "appTooltip"; "required": false; }; "showAnyway": { "alias": "showAnyway"; "required": false; }; "color": { "alias": "color"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, {}, never, never, true, never>;
26
25
  }
@@ -1,9 +1,10 @@
1
- import { BehaviorSubject, Observable } from 'rxjs';
1
+ import { OnDestroy } from '@angular/core';
2
+ import { BehaviorSubject, Observable, Subscription } from 'rxjs';
2
3
  import { PkceService } from './pkce.service';
3
4
  import { ActivatedRoute } from '@angular/router';
4
5
  import { AppService } from '../services/app.service';
5
6
  import * as i0 from "@angular/core";
6
- export declare class DeveloperValidationService {
7
+ export declare class DeveloperValidationService implements OnDestroy {
7
8
  private pkceService;
8
9
  private route;
9
10
  private appService;
@@ -17,8 +18,10 @@ export declare class DeveloperValidationService {
17
18
  constructor(pkceService: PkceService, route: ActivatedRoute, appService: AppService);
18
19
  saveValidation(status: boolean): void;
19
20
  validateFromCookie(): Observable<any>;
20
- monitorValidationStatus(): void;
21
+ overlaySub: Subscription;
22
+ private monitorValidationStatus;
21
23
  validateDeveloperViaPopup(): void;
24
+ ngOnDestroy(): void;
22
25
  static ɵfac: i0.ɵɵFactoryDeclaration<DeveloperValidationService, never>;
23
26
  static ɵprov: i0.ɵɵInjectableDeclaration<DeveloperValidationService>;
24
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-histaff-alpha",
3
- "version": "5.9.9",
3
+ "version": "6.0.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.1",
6
6
  "@angular/core": "^19.0.1"