tin-spa 2.3.0 → 2.3.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.
@@ -70,6 +70,7 @@ export interface Button {
70
70
  confirm?: Confirm;
71
71
  inDialog?: boolean;
72
72
  detailsConfig?: DetailsDialogConfig;
73
+ setHeroField?: boolean;
73
74
  }
74
75
  export interface Confirm {
75
76
  message: string;
@@ -4,6 +4,7 @@ export declare class Core {
4
4
  static camelToWords(value: string): string;
5
5
  static generateObject(fields: Field[]): {};
6
6
  static resetObject(fields: Field[], data: any): void;
7
+ static testVisible(config: FormConfig, data: any, f: Field): boolean;
7
8
  static validateObject(fields: Field[], data: any): string;
8
9
  private static getInitialValue;
9
10
  static getClone(x: any): any;
@@ -1,24 +1,25 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export declare class DateComponent implements OnInit {
5
- constructor();
6
- ngOnInit(): void;
7
- ngOnChanges(): void;
4
+ export declare class DateComponent implements OnInit, OnChanges {
8
5
  required: boolean;
9
6
  min: string;
10
7
  max: string;
11
- minDate: any;
12
- maxDate: any;
13
8
  readonly: boolean;
14
9
  hint: string;
15
10
  value: string;
16
11
  display: string;
17
12
  placeholder: string;
18
13
  width: string;
19
- valueChange: EventEmitter<any>;
14
+ valueChange: EventEmitter<string>;
15
+ minDate: FormControl;
16
+ maxDate: FormControl;
17
+ control: FormControl;
18
+ ngOnInit(): void;
19
+ ngOnChanges(changes: SimpleChanges): void;
20
+ private initializeDateControls;
21
+ private updateControlState;
20
22
  onChangeEvent(): void;
21
- control: FormControl<Date>;
22
23
  validate(control: FormControl): string;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<DateComponent, never>;
24
25
  static ɵcmp: i0.ɵɵComponentDeclaration<DateComponent, "spa-date", never, { "required": "required"; "min": "min"; "max": "max"; "readonly": "readonly"; "hint": "hint"; "value": "value"; "display": "display"; "placeholder": "placeholder"; "width": "width"; }, { "valueChange": "valueChange"; }, never, never, false>;
@@ -11,7 +11,6 @@ export declare class FormComponent implements OnInit {
11
11
  ngOnChanges(): void;
12
12
  ngAfterViewInit(): void;
13
13
  getVisibleFields(): Field[];
14
- testVisible(f: Field): boolean;
15
14
  testReadOnly(f: Field): boolean;
16
15
  fileNames: any;
17
16
  fileField: Field;
@@ -47,6 +47,7 @@ export declare class DetailsDialog implements OnInit {
47
47
  testVisible(row: any, buttonName: string): boolean;
48
48
  testVisibleTab(tblConfig: TableConfig): boolean;
49
49
  getButtonColor(button: Button, row: any): string;
50
+ getVisibleFields(): Field[];
50
51
  create(): void;
51
52
  edit(): void;
52
53
  delete(): void;
@@ -47,6 +47,7 @@ export declare class DetailsDialogInternal implements OnInit {
47
47
  testVisible(row: any, buttonName: string): boolean;
48
48
  testVisibleTab(tblConfig: TableConfig): boolean;
49
49
  getButtonColor(button: Button, row: any): string;
50
+ getVisibleFields(): Field[];
50
51
  create(): void;
51
52
  edit(): void;
52
53
  delete(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tin-spa",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.0",
6
6
  "@angular/core": "^14.2.0"