@pongrass/utils 1.1.7-v20 → 1.1.9-v20

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.
package/index.d.ts CHANGED
@@ -30,10 +30,17 @@ interface IConfig {
30
30
  defaultLoginRoute?: string;
31
31
  enableMenuFromSecurity?: boolean;
32
32
  userInactivityMinutes?: number;
33
+ formConfig?: {
34
+ formValidations?: IFormValidations$1;
35
+ };
33
36
  }
34
37
  interface ITableGrid {
35
38
  defaultPageSize: number;
36
39
  defaultPageSizeSelector: number[] | boolean;
40
+ defaultMinWidth: number;
41
+ }
42
+ interface IFormValidations$1 {
43
+ defaultDecimalPrecision: number;
37
44
  }
38
45
  interface IReportsConfig {
39
46
  showExport: boolean;
@@ -502,6 +509,12 @@ declare class MultiFormComponent implements OnInit, OnChanges {
502
509
  setDefaultAdvanceDate(currentDate: Date, defaultAdvance: string): any;
503
510
  private advanceDate;
504
511
  private findStopControl;
512
+ /**
513
+ * Set precision for float type
514
+ * @param value
515
+ * @returns
516
+ */
517
+ private updateFloatValue;
505
518
  static ɵfac: i0.ɵɵFactoryDeclaration<MultiFormComponent, never>;
506
519
  static ɵcmp: i0.ɵɵComponentDeclaration<MultiFormComponent, "prg-ws-multi-form", never, { "config": { "alias": "config"; "required": false; }; "showUnsavedFlags": { "alias": "showUnsavedFlags"; "required": false; }; "currentTableGridsSelectedIndex": { "alias": "currentTableGridsSelectedIndex"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; }, { "fieldAction": "fieldAction"; "formSavedUnsavedListen": "formSavedUnsavedListen"; "selectionChangeEvent": "selectionChangeEvent"; }, never, never, false, never>;
507
520
  }
@@ -686,21 +699,19 @@ declare class CircularFocusDirective implements AfterViewInit, OnDestroy {
686
699
  static ɵdir: i0.ɵɵDirectiveDeclaration<CircularFocusDirective, "[wsCircularFocus]", never, { "formId": { "alias": "formId"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, {}, never, never, true, never>;
687
700
  }
688
701
 
689
- declare class DecimalInputDirective implements OnInit, OnDestroy {
702
+ declare class DecimalInputDirective {
690
703
  private el;
691
704
  private control;
692
- private sub;
693
705
  wsDecimalInput: number;
694
- private specialKeys;
695
- ngOnInit(): void;
696
- ngOnDestroy(): void;
697
- onKeyDown(event: KeyboardEvent): void;
706
+ wsAcceptStringInput: boolean;
707
+ private get decimalPlaces();
708
+ onInput(e: InputEvent): void;
709
+ onPaste(e: ClipboardEvent): void;
698
710
  onBlur(): void;
699
- private formatValue;
700
- private isValidInput;
701
- private getNextValue;
711
+ constructor();
712
+ private formatProgrammatic;
702
713
  static ɵfac: i0.ɵɵFactoryDeclaration<DecimalInputDirective, never>;
703
- static ɵdir: i0.ɵɵDirectiveDeclaration<DecimalInputDirective, "[wsDecimalInput]", never, { "wsDecimalInput": { "alias": "wsDecimalInput"; "required": false; }; }, {}, never, never, true, never>;
714
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DecimalInputDirective, "[wsDecimalInput]", never, { "wsDecimalInput": { "alias": "wsDecimalInput"; "required": false; }; "wsAcceptStringInput": { "alias": "wsAcceptStringInput"; "required": false; }; }, {}, never, never, true, never>;
704
715
  }
705
716
 
706
717
  declare class ShowTooltipIfTruncatedDirective {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pongrass/utils",
3
- "version": "1.1.7-v20",
3
+ "version": "1.1.9-v20",
4
4
  "description": "A collection of utility components and services for Angular applications",
5
5
  "keywords": [
6
6
  "angular",