@acorex/components 20.3.35 → 20.3.37

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 (37) hide show
  1. package/color-palette/index.d.ts +1 -2
  2. package/dropdown/index.d.ts +2 -1
  3. package/fesm2022/acorex-components-color-palette.mjs +3 -8
  4. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  5. package/fesm2022/acorex-components-conversation.mjs +1 -1
  6. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  7. package/fesm2022/acorex-components-conversation2.mjs +9 -9
  8. package/fesm2022/acorex-components-conversation2.mjs.map +1 -1
  9. package/fesm2022/acorex-components-dropdown.mjs +3 -3
  10. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  11. package/fesm2022/acorex-components-flow-chart.mjs +1 -1
  12. package/fesm2022/acorex-components-flow-chart.mjs.map +1 -1
  13. package/fesm2022/acorex-components-media-viewer.mjs +93 -49
  14. package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
  15. package/fesm2022/acorex-components-number-box.mjs +1 -1
  16. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  17. package/fesm2022/acorex-components-phone-box.mjs +2 -2
  18. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  19. package/fesm2022/acorex-components-popover.mjs +4 -3
  20. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  21. package/fesm2022/acorex-components-query-builder.mjs +1 -1
  22. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  23. package/fesm2022/acorex-components-rest-api-generator.mjs +4 -4
  24. package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
  25. package/fesm2022/acorex-components-scheduler.mjs +6 -6
  26. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  27. package/fesm2022/acorex-components-text-box.mjs +33 -129
  28. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  29. package/fesm2022/acorex-components-time-duration.mjs +8 -8
  30. package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
  31. package/fesm2022/acorex-components-wysiwyg.mjs +1 -1
  32. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  33. package/media-viewer/index.d.ts +13 -4
  34. package/package.json +7 -8
  35. package/popover/index.d.ts +2 -1
  36. package/text-box/index.d.ts +29 -48
  37. package/time-duration/index.d.ts +2 -1
@@ -28,7 +28,10 @@ type AXMediaViewerData = {
28
28
  tooltip?: string;
29
29
  };
30
30
  declare class AXMediaViewerBaseComponent {
31
- message: AXMediaViewerData;
31
+ message: {
32
+ data: AXMediaViewerData;
33
+ index: number;
34
+ };
32
35
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerBaseComponent, never>;
33
36
  static ɵprov: i0.ɵɵInjectableDeclaration<AXMediaViewerBaseComponent>;
34
37
  }
@@ -36,6 +39,7 @@ declare class AXMediaViewerBaseComponent {
36
39
  declare class AXMediaViewerService {
37
40
  dataArray: i0.WritableSignal<AXMediaViewerData[]>;
38
41
  selectedIndex: i0.WritableSignal<number>;
42
+ dirtyItems: Map<any, any>;
39
43
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerService, never>;
40
44
  static ɵprov: i0.ɵɵInjectableDeclaration<AXMediaViewerService>;
41
45
  }
@@ -88,6 +92,7 @@ declare class AXMediaViewerSliderComponent {
88
92
  #private;
89
93
  protected service: AXMediaViewerService;
90
94
  dataObject: i0.InputSignal<AXMediaViewerData>;
95
+ index: i0.InputSignal<unknown>;
91
96
  /** @ignore */
92
97
  protected portal: i0.WritableSignal<ComponentPortal<any>>;
93
98
  /** @ignore */
@@ -95,12 +100,13 @@ declare class AXMediaViewerSliderComponent {
95
100
  /** @ignore */
96
101
  protected _handleAttached(ref: CdkPortalOutletAttachedRef): void;
97
102
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerSliderComponent, never>;
98
- static ɵcmp: i0.ɵɵComponentDeclaration<AXMediaViewerSliderComponent, "ax-media-viewer-slider", never, { "dataObject": { "alias": "dataObject"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
103
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXMediaViewerSliderComponent, "ax-media-viewer-slider", never, { "dataObject": { "alias": "dataObject"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
99
104
  }
100
105
 
101
106
  declare class AXAudioPlayerComponent extends AXMediaViewerBaseComponent {
102
- dataObject: i0.WritableSignal<AXMediaViewerData>;
103
- constructor();
107
+ #private;
108
+ protected src: i0.WritableSignal<any>;
109
+ protected service: AXMediaViewerService;
104
110
  static ɵfac: i0.ɵɵFactoryDeclaration<AXAudioPlayerComponent, never>;
105
111
  static ɵcmp: i0.ɵɵComponentDeclaration<AXAudioPlayerComponent, "ax-audio-player", never, {}, {}, never, never, true, never>;
106
112
  }
@@ -116,6 +122,7 @@ declare class AXImageViewerComponent extends AXMediaViewerBaseComponent {
116
122
  #private;
117
123
  protected hasError: i0.WritableSignal<boolean>;
118
124
  protected src: i0.WritableSignal<any>;
125
+ protected service: AXMediaViewerService;
119
126
  protected handleImageError(): void;
120
127
  static ɵfac: i0.ɵɵFactoryDeclaration<AXImageViewerComponent, never>;
121
128
  static ɵcmp: i0.ɵɵComponentDeclaration<AXImageViewerComponent, "ax-image-viewer", never, {}, {}, never, never, true, never>;
@@ -125,6 +132,7 @@ declare class PdfComponent extends AXMediaViewerBaseComponent {
125
132
  #private;
126
133
  sanitizer: DomSanitizer;
127
134
  protected src: i0.WritableSignal<any>;
135
+ protected service: AXMediaViewerService;
128
136
  static ɵfac: i0.ɵɵFactoryDeclaration<PdfComponent, never>;
129
137
  static ɵcmp: i0.ɵɵComponentDeclaration<PdfComponent, "ax-pdf", never, {}, {}, never, never, true, never>;
130
138
  }
@@ -142,6 +150,7 @@ declare class AXThumbnailViewerComponent extends AXMediaViewerBaseComponent {
142
150
  declare class VideoPlayerComponent extends AXMediaViewerBaseComponent {
143
151
  #private;
144
152
  protected src: i0.WritableSignal<any>;
153
+ protected service: AXMediaViewerService;
145
154
  static ɵfac: i0.ɵɵFactoryDeclaration<VideoPlayerComponent, never>;
146
155
  static ɵcmp: i0.ɵɵComponentDeclaration<VideoPlayerComponent, "ax-video", never, {}, {}, never, never, true, never>;
147
156
  }
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "20.3.35",
3
+ "version": "20.3.37",
4
4
  "peerDependencies": {
5
- "@acorex/core": "20.3.35",
6
- "@acorex/cdk": "20.3.35",
5
+ "@acorex/core": "20.3.37",
6
+ "@acorex/cdk": "20.3.37",
7
7
  "@angular/common": "^20.0.0",
8
8
  "@angular/core": "^20.0.0",
9
9
  "@angular/cdk": "^20.0.0",
10
10
  "polytype": ">=0.17.0",
11
- "imask": ">=7.6.1",
12
11
  "angular-imask": ">=7.6.1",
13
12
  "gridstack": "^11.1.2",
14
13
  "rrule": "^2.8.1",
@@ -109,14 +108,14 @@
109
108
  "types": "./button/index.d.ts",
110
109
  "default": "./fesm2022/acorex-components-button.mjs"
111
110
  },
112
- "./calendar": {
113
- "types": "./calendar/index.d.ts",
114
- "default": "./fesm2022/acorex-components-calendar.mjs"
115
- },
116
111
  "./button-group": {
117
112
  "types": "./button-group/index.d.ts",
118
113
  "default": "./fesm2022/acorex-components-button-group.mjs"
119
114
  },
115
+ "./calendar": {
116
+ "types": "./calendar/index.d.ts",
117
+ "default": "./fesm2022/acorex-components-calendar.mjs"
118
+ },
120
119
  "./check-box": {
121
120
  "types": "./check-box/index.d.ts",
122
121
  "default": "./fesm2022/acorex-components-check-box.mjs"
@@ -36,6 +36,7 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
36
36
  /** @ignore */
37
37
  private _disabled;
38
38
  readonly width: i0.InputSignal<string>;
39
+ readonly forceDisableActionSheetStyle: i0.InputSignal<boolean>;
39
40
  private translateService;
40
41
  /**
41
42
  * Gets or sets whether the popover is disabled.
@@ -240,7 +241,7 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
240
241
  /** @ignore */
241
242
  ngOnDestroy(): void;
242
243
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPopoverComponent, never>;
243
- static ɵcmp: i0.ɵɵComponentDeclaration<AXPopoverComponent, "ax-popover", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; "offsetX": { "alias": "offsetX"; "required": false; }; "offsetY": { "alias": "offsetY"; "required": false; }; "target": { "alias": "target"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "content": { "alias": "content"; "required": false; }; "openOn": { "alias": "openOn"; "required": false; }; "closeOn": { "alias": "closeOn"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "openAfter": { "alias": "openAfter"; "required": false; }; "closeAfter": { "alias": "closeAfter"; "required": false; }; "repositionOnScroll": { "alias": "repositionOnScroll"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "adaptivityEnabled": { "alias": "adaptivityEnabled"; "required": false; }; }, { "onOpened": "onOpened"; "onClosed": "onClosed"; }, never, ["*"], true, never>;
244
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPopoverComponent, "ax-popover", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "forceDisableActionSheetStyle": { "alias": "forceDisableActionSheetStyle"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; "offsetX": { "alias": "offsetX"; "required": false; }; "offsetY": { "alias": "offsetY"; "required": false; }; "target": { "alias": "target"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "content": { "alias": "content"; "required": false; }; "openOn": { "alias": "openOn"; "required": false; }; "closeOn": { "alias": "closeOn"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "openAfter": { "alias": "openAfter"; "required": false; }; "closeAfter": { "alias": "closeAfter"; "required": false; }; "repositionOnScroll": { "alias": "repositionOnScroll"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "adaptivityEnabled": { "alias": "adaptivityEnabled"; "required": false; }; }, { "onOpened": "onOpened"; "onClosed": "onClosed"; }, never, ["*"], true, never>;
244
245
  }
245
246
 
246
247
  declare class AXPopoverModule {
@@ -1,57 +1,49 @@
1
- import * as imask from 'imask';
2
- import { MaskedOptions } from 'imask';
3
- import * as i0 from '@angular/core';
4
- import { EventEmitter, AfterContentInit, ElementRef } from '@angular/core';
5
1
  import * as polytype from 'polytype';
2
+ import * as _angular_core from '@angular/core';
3
+ import { ElementRef } from '@angular/core';
6
4
  import * as i2 from '@acorex/cdk/common';
7
5
  import { MXInputBaseValueComponent, MXLookComponent } from '@acorex/cdk/common';
6
+ import { AXMaskTokens } from '@acorex/cdk/input-mask';
8
7
  import * as i1 from '@angular/common';
9
8
  import * as i3 from '@angular/forms';
10
9
  import * as i4 from '@acorex/components/button';
11
10
  import * as i5 from '@acorex/components/decorators';
12
11
 
13
- type AXMaskOptions = MaskedOptions | any;
14
- interface AXMaskOptionsInterface {
15
- mask: MaskedOptions | string | RegExp;
16
- updateValue?: (masked: string, unmasked: string) => void;
17
- }
18
- declare class AXMaskOptionsDirective implements AXMaskOptionsInterface {
19
- private _mask;
20
- onMaskChange: EventEmitter<string | RegExp | Partial<Pick<imask.Masked<any>, "mask" | "parent" | "prepare" | "prepareChar" | "validate" | "commit" | "format" | "parse" | "overwrite" | "eager" | "skipInvalid" | "autofix">>>;
21
- get mask(): MaskedOptions | string | RegExp;
22
- set mask(v: MaskedOptions | string | RegExp);
23
- updateValue?: (masked: string, unmasked: string) => void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMaskOptionsDirective, never>;
25
- static ɵdir: i0.ɵɵDirectiveDeclaration<AXMaskOptionsDirective, "ax-mask-options", never, { "mask": { "alias": "mask"; "required": false; }; "updateValue": { "alias": "updateValue"; "required": false; }; }, { "onMaskChange": "onMaskChange"; }, never, never, true, never>;
26
- }
27
-
28
12
  declare const AXTextBoxComponent_base: polytype.Polytype.ClusteredConstructor<[{
29
13
  new (): MXInputBaseValueComponent<string>;
30
- ɵfac: i0.ɵɵFactoryDeclaration<MXInputBaseValueComponent<any>, never>;
31
- ɵprov: i0.ɵɵInjectableDeclaration<MXInputBaseValueComponent<any>>;
14
+ ɵfac: _angular_core.ɵɵFactoryDeclaration<MXInputBaseValueComponent<any>, never>;
15
+ ɵprov: _angular_core.ɵɵInjectableDeclaration<MXInputBaseValueComponent<any>>;
32
16
  }, typeof MXLookComponent]>;
33
17
  /**
34
18
  * The Textbox is a component which detects user interaction and triggers a corresponding event
35
19
  *
36
20
  * @category Components
37
21
  */
38
- declare class AXTextBoxComponent extends AXTextBoxComponent_base implements AfterContentInit {
22
+ declare class AXTextBoxComponent extends AXTextBoxComponent_base {
39
23
  /** @ignore */
40
24
  protected _updateOn: 'change' | 'blur' | 'submit';
41
25
  /** @ignore */
42
26
  protected input: ElementRef<HTMLInputElement>;
43
- /** @ignore */
44
- private _maskObj;
45
- /** @ignore */
46
- private _maskOptions;
47
27
  /**
48
- * This public getter provides access to the `_maskOptions` property, which holds the configuration options for the mask feature.
28
+ * Custom mask pattern for 'mask' mode.
29
+ * Use the following tokens:
30
+ * - `#`: Required digit (0-9)
31
+ * - `^`: Required letter (a-z, A-Z)
32
+ * - `@`: Required alphanumeric (0-9, a-z, A-Z)
33
+ *
34
+ * Use ! before token to escape symbol. For example !# will render # instead of a digit.
35
+ * Any other character is treated as a literal separator.
36
+ * @example '(###) ###-####' for phone numbers
37
+ * @example 'AA-####' for license plates
38
+ * @example '##/##/####' for dates
49
39
  */
50
- get maskOptions(): AXMaskOptions;
40
+ maskPattern: _angular_core.InputSignal<string>;
51
41
  /**
52
- * @param value {AXMaskOptions} - The new mask configuration options to be set.
42
+ * Custom token definitions to extend or override default mask tokens.
43
+ * Each token maps to a pattern regex and optional transformation.
44
+ * @example { 'P': { pattern: /[1-9]/, transform: (c) => c.toUpperCase() } }
53
45
  */
54
- set maskOptions(value: AXMaskOptions);
46
+ customTokens: _angular_core.InputSignal<AXMaskTokens>;
55
47
  /**
56
48
  * This property defines the maximum number of characters that the input field can accept. It can be dynamically bound from a parent component template to enforce input length constraints.
57
49
  */
@@ -67,29 +59,18 @@ declare class AXTextBoxComponent extends AXTextBoxComponent_base implements Afte
67
59
  /**
68
60
  * This will apply 'my-custom-class' and 'another-class' to the component's root element.
69
61
  */
70
- classNames: i0.InputSignal<string>;
71
- /** @ignore */
72
- protected _maskOptionsContent: AXMaskOptionsDirective;
73
- /** @ignore */
74
- ngAfterContentInit(): void;
75
- private initMask;
76
- /** @ignore */
77
- private setMask;
78
- internalValueChanged(value: any): void;
79
- /** @ignore */
80
- private _onComplete;
62
+ classNames: _angular_core.InputSignal<string>;
81
63
  /** @ignore */
82
64
  protected _handleModelChange(value: string | null): void;
83
65
  private get __hostName();
84
- static ɵfac: i0.ɵɵFactoryDeclaration<AXTextBoxComponent, never>;
85
- static ɵcmp: i0.ɵɵComponentDeclaration<AXTextBoxComponent, "ax-text-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "type": { "alias": "type"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "required": false; }; "look": { "alias": "look"; "required": false; }; "maskOptions": { "alias": "mask-options"; "required": false; }; "classNames": { "alias": "class"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "onKeyDown": "onKeyDown"; "onKeyUp": "onKeyUp"; "onKeyPress": "onKeyPress"; }, ["_maskOptionsContent"], ["ax-prefix", "ax-clear-button", "ax-suffix", "ax-validation-rule"], true, never>;
66
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextBoxComponent, never>;
67
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTextBoxComponent, "ax-text-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "type": { "alias": "type"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "required": false; }; "look": { "alias": "look"; "required": false; }; "maskPattern": { "alias": "maskPattern"; "required": false; "isSignal": true; }; "customTokens": { "alias": "customTokens"; "required": false; "isSignal": true; }; "classNames": { "alias": "class"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "onKeyDown": "onKeyDown"; "onKeyUp": "onKeyUp"; "onKeyPress": "onKeyPress"; }, never, ["ax-prefix", "ax-clear-button", "ax-suffix", "ax-validation-rule"], true, never>;
86
68
  }
87
69
 
88
70
  declare class AXTextBoxModule {
89
- static ɵfac: i0.ɵɵFactoryDeclaration<AXTextBoxModule, never>;
90
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXTextBoxModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.FormsModule, typeof i4.AXButtonModule, typeof i5.AXDecoratorModule, typeof AXTextBoxComponent, typeof AXMaskOptionsDirective], [typeof AXTextBoxComponent, typeof AXMaskOptionsDirective]>;
91
- static ɵinj: i0.ɵɵInjectorDeclaration<AXTextBoxModule>;
71
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTextBoxModule, never>;
72
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXTextBoxModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.FormsModule, typeof i4.AXButtonModule, typeof i5.AXDecoratorModule, typeof AXTextBoxComponent], [typeof AXTextBoxComponent]>;
73
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXTextBoxModule>;
92
74
  }
93
75
 
94
- export { AXMaskOptionsDirective, AXTextBoxComponent, AXTextBoxModule };
95
- export type { AXMaskOptions, AXMaskOptionsInterface };
76
+ export { AXTextBoxComponent, AXTextBoxModule };
@@ -18,7 +18,8 @@ declare class AXTimeDurationComponent extends AXTimeDurationComponent_base {
18
18
  readonly maskDigits: _angular_core.InputSignal<string>;
19
19
  readonly minValue: _angular_core.InputSignal<number>;
20
20
  readonly maxValue: _angular_core.InputSignal<number>;
21
- protected maskOptions: _angular_core.WritableSignal<any>;
21
+ protected mask: _angular_core.WritableSignal<any>;
22
+ protected maskPlaceHolder: _angular_core.WritableSignal<any>;
22
23
  private translationService;
23
24
  private timeDurationFormatter;
24
25
  private onInputFire;