mmhglobal-dynamicform 2.44.0 → 2.44.2

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.
@@ -11,9 +11,17 @@ export declare class ZChipComponent extends InputFieldBase implements ZComponent
11
11
  fontAweSomeService: FontAweSomeService;
12
12
  chipList: ChipListComponent;
13
13
  dataSource: any;
14
+ inputFieldAddOn: {
15
+ top: {};
16
+ left: {};
17
+ right: {};
18
+ bottom: {};
19
+ };
14
20
  constructor(componentService: ZComponentService, fontAweSomeService: FontAweSomeService);
15
21
  ngOnInit(): void;
22
+ private setupAddOnValue;
16
23
  ngAfterViewInit(): void;
24
+ get isReadOnly(): boolean;
17
25
  setupDataSource(): void;
18
26
  private setupDataSourceByzModel;
19
27
  setData(data: any): void;
@@ -1,30 +1,33 @@
1
1
  /********** Angular **********/
2
- import { OnDestroy, OnInit } from '@angular/core';
2
+ import { DoCheck, OnDestroy, OnInit } from '@angular/core';
3
3
  /********** Component & Service **********/
4
4
  import { InputFieldBase } from '../components/inputfieldbase.component';
5
5
  import { ZComponentService } from '../services/zcomponent.service';
6
6
  import { ZComponent, ZField, ZGroup, zSliderProperties } from "mmhglobal-zcore";
7
7
  import { FormGroup } from '@angular/forms';
8
8
  import * as i0 from "@angular/core";
9
- export declare class ZsliderComponent extends InputFieldBase implements ZComponent, OnInit, OnDestroy {
9
+ export declare class ZsliderComponent extends InputFieldBase implements ZComponent, OnInit, OnDestroy, DoCheck {
10
10
  componentService: ZComponentService;
11
11
  data: ZField;
12
12
  group: ZGroup;
13
13
  form: FormGroup;
14
14
  get sliderData(): zSliderProperties;
15
15
  inputMode: string;
16
- minValue: number;
17
- maxValue: number;
16
+ minValue: number | undefined;
17
+ maxValue: number | undefined;
18
18
  private minValidator;
19
19
  private maxValidator;
20
20
  smallStep: number;
21
21
  largeStep: number;
22
22
  tickPlacement: string;
23
23
  slidervalue: number;
24
+ private _cachedReadOnlyState;
24
25
  constructor(componentService: ZComponentService);
25
26
  ngOnInit(): void;
27
+ ngDoCheck(): void;
26
28
  ngOnDestroy(): void;
27
29
  ngAfterViewInit(): void;
30
+ private getReadOnlyState;
28
31
  setMinValue(newValue: number): void;
29
32
  setMaxValue(newValue: number): void;
30
33
  private setInitPropertyValue;
@@ -2,12 +2,12 @@
2
2
  import { OnInit, AfterViewInit } from '@angular/core';
3
3
  /********** Plugin **********/
4
4
  import { EditorComponent, EditorPasteEvent } from '@progress/kendo-angular-editor';
5
- import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
6
5
  import { DialogRef, DialogService } from '@progress/kendo-angular-dialog';
6
+ import { Plugin } from '@progress/kendo-editor-common';
7
7
  /********** Component & Service **********/
8
8
  import { InputFieldBase } from '../components/inputfieldbase.component';
9
9
  import { ZComponentService } from '../services/zcomponent.service';
10
- import { AlertService, CompressImageService, FontAweSomeService, ToastService, ZComponent } from 'mmhglobal-zcore';
10
+ import { AlertService, CompressImageService, FontAweSomeService, TextEditorSymbolNormalizationConfig, TextEditorSymbolReplacement, ToastService, ZComponent } from 'mmhglobal-zcore';
11
11
  import * as i0 from "@angular/core";
12
12
  export declare class ZtexteditorComponent extends InputFieldBase implements ZComponent, OnInit, AfterViewInit {
13
13
  readonly componentService: ZComponentService;
@@ -17,7 +17,6 @@ export declare class ZtexteditorComponent extends InputFieldBase implements ZCom
17
17
  private readonly compressImage;
18
18
  private readonly toastService;
19
19
  editor: EditorComponent;
20
- compress_btn: ToolBarButtonComponent;
21
20
  pasteCleanupSettings: {
22
21
  removeMsClasses: boolean;
23
22
  removeMsStyles: boolean;
@@ -28,6 +27,10 @@ export declare class ZtexteditorComponent extends InputFieldBase implements ZCom
28
27
  iframe: boolean;
29
28
  [key: string]: any;
30
29
  };
30
+ symbolNormalizationSettings: Required<Omit<TextEditorSymbolNormalizationConfig, 'CustomReplacements'>> & {
31
+ CustomReplacements: TextEditorSymbolReplacement[];
32
+ };
33
+ readonly pluginsCallback: (defaultPlugins: Plugin[]) => Plugin[];
31
34
  isCompressModeOn: boolean;
32
35
  CloseEnlargeBtn: boolean;
33
36
  dialogRef?: DialogRef;
@@ -48,6 +51,17 @@ export declare class ZtexteditorComponent extends InputFieldBase implements ZCom
48
51
  * Returns true when the event is handled and default paste is prevented.
49
52
  */
50
53
  private handleCommonSymbolTags;
54
+ private normalizeLineEndings;
55
+ private insertPlainTextWithEditorLineBreaks;
56
+ private plainTextToEditorHtml;
57
+ private escapeHtml;
58
+ /** Normalize text nodes inside pasted HTML without touching tags, styles, links, or image attributes. */
59
+ private normalizePastedHtml;
60
+ private removeEmptyParagraphs;
61
+ private isEmptyParagraph;
62
+ /** Normalize known paste symbol variants from Office/email content into stable display characters. */
63
+ private normalizePastedText;
64
+ private applyCustomSymbolReplacements;
51
65
  /**
52
66
  * If compression is enabled and compress mode is ON, compress any pasted base64 images (data:image/*).
53
67
  * IMPORTANT: modifies e.cleanedHtml (what gets pasted), not editor.value.
@@ -56,12 +70,18 @@ export declare class ZtexteditorComponent extends InputFieldBase implements ZCom
56
70
  /**
57
71
  * Toggle compress mode via confirmation dialog.
58
72
  */
59
- onOffCompressMode(event: Event): void;
73
+ onOffCompressMode(): void;
74
+ get compressionToolbarIcon(): string;
75
+ get compressionToolbarTitle(): string;
76
+ private enterAsLineBreakPlugin;
60
77
  /** Focus editor if available. Returns true if focus succeeded. */
61
78
  focus(): boolean;
62
79
  getFontAwesome(iconName: string, fontAwesomeService: FontAweSomeService): unknown;
63
- /** Merge paste cleanup options from data.Options (string expression or object) into pasteCleanupSettings. */
80
+ /** Merge Kendo paste cleanup settings from PasteCleanupSettings, with data.Options kept as a legacy fallback. */
64
81
  private setupPasteCleanupSettings;
82
+ /** Resolve optional paste symbol normalization settings from field config. */
83
+ private setupSymbolNormalizationSettings;
84
+ private mergeSymbolNormalizationSettings;
65
85
  /** Trigger hidden file input click for image upload. */
66
86
  openFileExplorer(): void;
67
87
  /** Open an enlarged popup editor. */
@@ -79,7 +99,7 @@ export declare class ZtexteditorComponent extends InputFieldBase implements ZCom
79
99
  private base64ToFile;
80
100
  /**
81
101
  * Compress an image file if it is an image and above min threshold.
82
- * Returns the compressed file, or null if not compressible / compression skipped.
102
+ * Returns the original file when compression is skipped, and null only when compression fails.
83
103
  */
84
104
  private imageCompression;
85
105
  /** Normalize image compression config into byte-based thresholds. */
@@ -91,8 +111,6 @@ export declare class ZtexteditorComponent extends InputFieldBase implements ZCom
91
111
  private convertSizeToByte;
92
112
  /** Read a File as base64 data URL. */
93
113
  private readFileAsDataURL;
94
- /** Extract event target as HTMLElement safely. */
95
- private getEventTargetElement;
96
114
  static ɵfac: i0.ɵɵFactoryDeclaration<ZtexteditorComponent, never>;
97
115
  static ɵcmp: i0.ɵɵComponentDeclaration<ZtexteditorComponent, "app-ztexteditor", never, {}, {}, never, never>;
98
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mmhglobal-dynamicform",
3
- "version": "2.44.0",
3
+ "version": "2.44.2",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.1"