@acorex/components 22.4.6 → 22.4.8

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.
@@ -1,9 +1,11 @@
1
1
  import * as polytype from 'polytype';
2
2
  import * as _angular_core from '@angular/core';
3
+ import { InjectionToken } from '@angular/core';
3
4
  import { MXInputBaseValueComponent, MXLookComponent, AXValueChangedEvent, AXFocusEvent } from '@acorex/cdk/common';
4
5
  import { AXInputMaskEvent } from '@acorex/cdk/input-mask';
5
6
 
6
7
  type AXTimeDurationUnit = 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND' | 'MILLISECOND';
8
+ type AXTimeDurationSequence = 'descending' | 'ascending';
7
9
 
8
10
  declare const AXTimeDurationComponent_base: polytype.Polytype.ClusteredConstructor<[{
9
11
  new (): MXInputBaseValueComponent<number>;
@@ -12,9 +14,12 @@ declare const AXTimeDurationComponent_base: polytype.Polytype.ClusteredConstruct
12
14
  }, typeof MXLookComponent]>;
13
15
  declare class AXTimeDurationComponent extends AXTimeDurationComponent_base {
14
16
  #private;
17
+ private readonly defaultConfig;
15
18
  protected inputValue: string;
16
19
  readonly valueStart: _angular_core.InputSignal<AXTimeDurationUnit>;
17
20
  readonly valueEnd: _angular_core.InputSignal<AXTimeDurationUnit>;
21
+ /** Display order of units. Defaults to `AX_TIME_DURATION_CONFIG.sequence`. */
22
+ readonly sequence: _angular_core.InputSignal<AXTimeDurationSequence>;
18
23
  readonly label: _angular_core.InputSignal<boolean>;
19
24
  readonly maskDigits: _angular_core.InputSignal<string>;
20
25
  readonly minValue: _angular_core.InputSignal<number>;
@@ -41,6 +46,7 @@ declare class AXTimeDurationComponent extends AXTimeDurationComponent_base {
41
46
  protected internalValueChanged(value: number): Promise<void>;
42
47
  private replacePersianLabels;
43
48
  private maskToMilliseconds;
49
+ private getOrderedUnits;
44
50
  private updateMask;
45
51
  protected focusHandler(e: AXFocusEvent): void;
46
52
  protected blurHandler(e: AXFocusEvent): void;
@@ -57,14 +63,22 @@ declare class AXTimeDurationComponent extends AXTimeDurationComponent_base {
57
63
  }>;
58
64
  private get __hostName();
59
65
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTimeDurationComponent, never>;
60
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTimeDurationComponent, "ax-time-duration", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "look": { "alias": "look"; "required": false; }; "name": { "alias": "name"; "required": false; }; "valueStart": { "alias": "valueStart"; "required": false; "isSignal": true; }; "valueEnd": { "alias": "valueEnd"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "maskDigits": { "alias": "maskDigits"; "required": false; "isSignal": true; }; "minValue": { "alias": "minValue"; "required": false; "isSignal": true; }; "maxValue": { "alias": "maxValue"; "required": false; "isSignal": true; }; }, { "onValueChanged": "onValueChanged"; }, never, never, true, never>;
66
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTimeDurationComponent, "ax-time-duration", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "look": { "alias": "look"; "required": false; }; "name": { "alias": "name"; "required": false; }; "valueStart": { "alias": "valueStart"; "required": false; "isSignal": true; }; "valueEnd": { "alias": "valueEnd"; "required": false; "isSignal": true; }; "sequence": { "alias": "sequence"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "maskDigits": { "alias": "maskDigits"; "required": false; "isSignal": true; }; "minValue": { "alias": "minValue"; "required": false; "isSignal": true; }; "maxValue": { "alias": "maxValue"; "required": false; "isSignal": true; }; }, { "onValueChanged": "onValueChanged"; }, never, never, true, never>;
61
67
  }
62
68
 
69
+ interface AXTimeDurationConfig {
70
+ sequence: AXTimeDurationSequence;
71
+ }
72
+ declare const AXTimeDurationDefaultConfig: AXTimeDurationConfig;
73
+ declare const AX_TIME_DURATION_CONFIG: InjectionToken<AXTimeDurationConfig>;
74
+ type PartialTimeDurationConfig = Partial<AXTimeDurationConfig>;
75
+ declare function timeDurationConfig(config?: PartialTimeDurationConfig): AXTimeDurationConfig;
76
+
63
77
  declare class AXTimeDurationModule {
64
78
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTimeDurationModule, never>;
65
79
  static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXTimeDurationModule, never, [typeof AXTimeDurationComponent], [typeof AXTimeDurationComponent]>;
66
80
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXTimeDurationModule>;
67
81
  }
68
82
 
69
- export { AXTimeDurationComponent, AXTimeDurationModule };
70
- export type { AXTimeDurationUnit };
83
+ export { AXTimeDurationComponent, AXTimeDurationDefaultConfig, AXTimeDurationModule, AX_TIME_DURATION_CONFIG, timeDurationConfig };
84
+ export type { AXTimeDurationConfig, AXTimeDurationSequence, AXTimeDurationUnit, PartialTimeDurationConfig };
@@ -22,6 +22,8 @@ declare const AXWysiwygContainerComponent_base: polytype.Polytype.ClusteredConst
22
22
  }, typeof MXLookComponent]>;
23
23
  /**
24
24
  * A container component for WYSIWYG (What You See Is What You Get) editor functionality.
25
+ *
26
+ * @deprecated Use `AXTextEditorComponent` from `@acorex/components/text-editor` instead.
25
27
  * @category Components
26
28
  */
27
29
  declare class AXWysiwygContainerComponent extends AXWysiwygContainerComponent_base {
@@ -446,6 +448,9 @@ declare class AXWysiwygViewComponent {
446
448
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXWysiwygViewComponent, "ax-wysiwyg-view", never, {}, {}, never, never, true, never>;
447
449
  }
448
450
 
451
+ /**
452
+ * @deprecated Use `AXTextEditorModule` or standalone `AXTextEditorComponent` from `@acorex/components/text-editor` instead.
453
+ */
449
454
  declare class AXWysiwygModule {
450
455
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXWysiwygModule, never>;
451
456
  static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXWysiwygModule, never, [typeof AXWysiwygContainerComponent, typeof AXWysiwygViewComponent, typeof AXWysiwygAlignmentComponent, typeof AXWysiwygColorsComponent, typeof AXWysiwygFontStyleComponent, typeof AXWysiwygHistoryComponent, typeof AXWysiwygInsertComponent, typeof AXWysiwygListComponent, typeof AXWysiwygToolbarComponent], [typeof AXWysiwygContainerComponent, typeof AXWysiwygViewComponent, typeof AXWysiwygAlignmentComponent, typeof AXWysiwygColorsComponent, typeof AXWysiwygFontStyleComponent, typeof AXWysiwygHistoryComponent, typeof AXWysiwygInsertComponent, typeof AXWysiwygListComponent, typeof AXWysiwygToolbarComponent]>;