tuain-ng-forms-lib 14.3.20 → 14.4.45

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 (43) hide show
  1. package/esm2020/lib/classes/forms/element.mjs +8 -69
  2. package/esm2020/lib/classes/forms/field.mjs +1 -8
  3. package/esm2020/lib/classes/forms/form.mjs +6 -2
  4. package/esm2020/lib/classes/forms/piece.mjs +115 -0
  5. package/esm2020/lib/classes/forms/section.mjs +25 -28
  6. package/esm2020/lib/classes/forms/subsection.mjs +12 -15
  7. package/esm2020/lib/classes/forms/table/action.mjs +5 -18
  8. package/esm2020/lib/classes/forms/table/column.mjs +4 -14
  9. package/esm2020/lib/classes/forms/table/table.mjs +50 -37
  10. package/esm2020/lib/components/elements/action.component.mjs +26 -13
  11. package/esm2020/lib/components/elements/field.component.mjs +18 -20
  12. package/esm2020/lib/components/elements/layout/element.component.mjs +5 -16
  13. package/esm2020/lib/components/elements/layout/form-header.component.mjs +5 -5
  14. package/esm2020/lib/components/elements/layout/piece.component.mjs +22 -0
  15. package/esm2020/lib/components/elements/layout/section.component.mjs +20 -5
  16. package/esm2020/lib/components/elements/layout/sub-section.component.mjs +20 -7
  17. package/esm2020/lib/components/elements/tables/table-record-action.component.mjs +21 -5
  18. package/esm2020/lib/components/elements/tables/table.component.mjs +67 -47
  19. package/esm2020/lib/components/forms/basic-form.mjs +25 -14
  20. package/fesm2015/tuain-ng-forms-lib.mjs +460 -339
  21. package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
  22. package/fesm2020/tuain-ng-forms-lib.mjs +436 -320
  23. package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
  24. package/lib/classes/forms/element.d.ts +3 -29
  25. package/lib/classes/forms/field.d.ts +0 -3
  26. package/lib/classes/forms/form.d.ts +3 -0
  27. package/lib/classes/forms/piece.d.ts +43 -0
  28. package/lib/classes/forms/section.d.ts +8 -18
  29. package/lib/classes/forms/subsection.d.ts +7 -12
  30. package/lib/classes/forms/table/action.d.ts +3 -11
  31. package/lib/classes/forms/table/column.d.ts +2 -7
  32. package/lib/classes/forms/table/table.d.ts +1 -3
  33. package/lib/components/elements/action.component.d.ts +4 -8
  34. package/lib/components/elements/field.component.d.ts +4 -9
  35. package/lib/components/elements/layout/element.component.d.ts +3 -8
  36. package/lib/components/elements/layout/form-header.component.d.ts +3 -3
  37. package/lib/components/elements/layout/piece.component.d.ts +10 -0
  38. package/lib/components/elements/layout/section.component.d.ts +4 -3
  39. package/lib/components/elements/layout/sub-section.component.d.ts +4 -4
  40. package/lib/components/elements/tables/table-record-action.component.d.ts +2 -2
  41. package/lib/components/elements/tables/table.component.d.ts +6 -10
  42. package/lib/components/forms/basic-form.d.ts +2 -0
  43. package/package.json +1 -1
@@ -1,25 +1,11 @@
1
- export declare class FormElement {
2
- protected _visible: boolean;
3
- protected _visibleForced: boolean;
4
- protected _isForced: boolean;
5
- _formConfig: any;
6
- disabled: boolean;
7
- visibleStates: string[] | null;
8
- enabledStates: string[] | null;
1
+ import { FormPiece } from './piece';
2
+ export declare class FormElement extends FormPiece {
9
3
  elementType: string | null;
10
- customAttributes: any;
11
4
  constructor(elementDefinition: any, formConfig: any);
12
- getCustomAttribute(name: string): any;
13
- setCustomAttribute(name: string, value: any): void;
14
- setCustomAttributes(attributes: any): void;
15
- matchAttribute(name: string, value: string): boolean;
5
+ setAttr(attr: any, value: any): void;
16
6
  isField(): boolean;
17
7
  isAction(): boolean;
18
8
  isTable(): boolean;
19
- setVisibleStates(newStates: any): void;
20
- setEnabledStates(newStates: any): void;
21
- viewOnState(state: string): boolean;
22
- enabledOnState(state: string): boolean;
23
9
  /**
24
10
  * @deprecated Utilizar viewOnState
25
11
  */
@@ -28,16 +14,4 @@ export declare class FormElement {
28
14
  * @deprecated Utilizar viewOnState
29
15
  */
30
16
  supportMode(state: string): boolean;
31
- get visible(): boolean;
32
- set visible(visible: boolean);
33
- visibleOn(state: string): boolean;
34
- enabledOn(state: string): boolean;
35
- setVisibility(visible: boolean, forced?: boolean | null): void;
36
- show(forced?: boolean | null): void;
37
- hide(forced?: boolean | null): void;
38
- enable(): void;
39
- disable(): void;
40
- get enabled(): boolean;
41
- get editable(): boolean;
42
- set editable(editable: boolean);
43
17
  }
@@ -12,7 +12,6 @@ export declare class FieldDescriptor extends FormElement {
12
12
  private readonly _editionFinish;
13
13
  private readonly _editionPartial;
14
14
  private readonly _detailRequest;
15
- private readonly _attributeChange;
16
15
  private _errorType;
17
16
  private _errorCode;
18
17
  private _errorMessage;
@@ -44,7 +43,6 @@ export declare class FieldDescriptor extends FormElement {
44
43
  constructor(inputFieldReceived: any, formConfig: any);
45
44
  get alignment(): string;
46
45
  set alignment(alignment: string);
47
- get attributeChange(): Subject<any>;
48
46
  get backend(): boolean;
49
47
  get captureType(): string;
50
48
  set captureType(captureType: string);
@@ -201,7 +199,6 @@ export declare class FieldDescriptor extends FormElement {
201
199
  notifyEditionPartial(): void;
202
200
  notifyEditionFinish(): void;
203
201
  notifyEditionDetailRequest(detail: any): void;
204
- setAttr(attr: any, value: any): void;
205
202
  setError(code: any, message: any, type?: string): void;
206
203
  updateFromServer(fld: any): void;
207
204
  private _setValue;
@@ -1,3 +1,4 @@
1
+ import { Subject } from 'rxjs';
1
2
  import { FormAction } from './action';
2
3
  import { FieldDescriptor, FieldOption } from './field';
3
4
  import { RecordTable } from './table/table';
@@ -23,6 +24,7 @@ export interface TablePayload {
23
24
  sortingDirection: string;
24
25
  }
25
26
  export declare class FormStructureAndData {
27
+ private readonly _stateChange;
26
28
  state: string;
27
29
  _name: string;
28
30
  _formConfig: any;
@@ -50,6 +52,7 @@ export declare class FormStructureAndData {
50
52
  get states(): any[];
51
53
  getCurrentState(): string;
52
54
  changeState(newState: string): boolean;
55
+ get stateChange(): Subject<any>;
53
56
  setStateFlow(states?: any, transitions?: any, defaultState?: string): void;
54
57
  getImmutableElement(name: string): any;
55
58
  set immutableData(immutableData: any);
@@ -0,0 +1,43 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ export declare class FormPiece {
3
+ protected readonly _attributeChange: BehaviorSubject<any>;
4
+ protected _formState: string;
5
+ protected _visibleForced: boolean;
6
+ protected _isForced: boolean;
7
+ protected _visible: boolean;
8
+ protected _disabled: boolean;
9
+ protected visibleStates: string[] | null;
10
+ protected enabledStates: string[] | null;
11
+ _formConfig: any;
12
+ visibleOnState: boolean;
13
+ disabledOnState: boolean;
14
+ customAttributes: any;
15
+ constructor(pieceDefinition: any, formConfig: any);
16
+ getCustomAttribute(name: string): any;
17
+ setCustomAttribute(name: string, value: any): void;
18
+ setCustomAttributes(attributes: any): void;
19
+ matchAttribute(name: string, value: string): boolean;
20
+ get attributeChange(): BehaviorSubject<any>;
21
+ propagateAttribute(name: any, value: any): void;
22
+ setVisibleStates(newStates: any): void;
23
+ setEnabledStates(newStates: any): void;
24
+ viewOnState(state: string): boolean;
25
+ enabledOnState(state: string): boolean;
26
+ get visible(): boolean;
27
+ set visible(visible: boolean);
28
+ visibleOn(state: string): boolean;
29
+ enabledOn(state: string): boolean;
30
+ setVisibility(visible: boolean, forced?: boolean | null): void;
31
+ show(forced?: boolean | null): void;
32
+ hide(forced?: boolean | null): void;
33
+ get disabled(): boolean;
34
+ get enabled(): boolean;
35
+ get editable(): boolean;
36
+ set enabled(enabled: boolean);
37
+ enable(): void;
38
+ disable(): void;
39
+ subscribeFormStateChange(formChangeSubject: any): void;
40
+ formStateChangeCustom(formChangeSubject: any): void;
41
+ propagateVisible(): void;
42
+ propagateDisabled(): void;
43
+ }
@@ -1,30 +1,22 @@
1
1
  import { Subject } from 'rxjs';
2
+ import { FormPiece } from './piece';
2
3
  import { FormAction } from './action';
3
4
  import { RecordFormSubSection } from './subsection';
4
- export declare class RecordFormSection {
5
+ export declare class RecordFormSection extends FormPiece {
5
6
  private readonly _activation;
6
7
  private readonly _inactivation;
7
- visible: boolean;
8
- visibleStates: string[];
9
8
  active: boolean;
10
- sectionId: string;
11
- sectionCode: string;
12
- sectionTitle: string;
13
- customAttributes: any;
9
+ sectionId: string | null;
10
+ sectionCode: string | null;
11
+ sectionTitle: string | null;
14
12
  subSections: RecordFormSubSection[];
15
13
  subSectionsObj: any;
16
- constructor(sectionReceived: any, formObject: any);
17
- getCustomAttribute(name: any): any;
18
- setCustomAttribute(name: any, value: any): any;
19
- setCustomAttributes(attributes: any): void;
20
- matchAttribute(name: any, value: any): boolean;
14
+ constructor(sectionReceived: any, formObject: any, formConfig: any);
21
15
  get code(): string;
22
16
  get activation(): Subject<string>;
23
17
  get inactivation(): Subject<string>;
24
18
  activate(): void;
25
19
  inactivate(): void;
26
- show(): void;
27
- hide(): void;
28
20
  get title(): string;
29
21
  set title(title: string);
30
22
  getVisibleSubsections(state: any): RecordFormSubSection[];
@@ -32,9 +24,7 @@ export declare class RecordFormSection {
32
24
  getFields(): any[];
33
25
  getActions(): FormAction[];
34
26
  getActionNames(): string[];
35
- getFieldNames(): any[];
27
+ getFieldNames(): string[];
36
28
  getField(name: any): any;
37
- supportState(state: any): boolean;
38
- viewOnState(state: any): boolean;
39
- supportMode(state: any): boolean;
29
+ formStateChangeCustom(formChangeSubject: any): void;
40
30
  }
@@ -1,19 +1,16 @@
1
+ import { FormPiece } from './piece';
1
2
  import { FormAction } from './action';
2
- export declare class RecordFormSubSection {
3
- visible: boolean;
4
- _customRender: string;
5
- subsectionId: string;
6
- subsectionCode: string;
7
- subsectionTitle: string;
8
- visibleStates: string[];
3
+ export declare class RecordFormSubSection extends FormPiece {
4
+ _customRender: string | null;
5
+ subsectionId: string | null;
6
+ subsectionCode: string | null;
7
+ subsectionTitle: string | null;
9
8
  subSectionElements: any[];
10
9
  subSectionFields: any[];
11
10
  subSectionTables: any[];
12
11
  subSectionActions: any[];
13
12
  elementsArray: any;
14
- constructor(subsectionReceived: any, formObject: any);
15
- show(): void;
16
- hide(): void;
13
+ constructor(subsectionReceived: any, formObject: any, formConfig: any);
17
14
  get customRender(): string;
18
15
  set customRender(customRenderName: string);
19
16
  getField(name: any): any;
@@ -21,6 +18,4 @@ export declare class RecordFormSubSection {
21
18
  getFieldNames(): any[];
22
19
  getActions(): FormAction[];
23
20
  getActionNames(): string[];
24
- viewOnState(state: any): boolean;
25
- supportMode(state: any): boolean;
26
21
  }
@@ -1,6 +1,5 @@
1
- export declare class TableAction {
2
- visibleStates: string[];
3
- enabledStates: string[];
1
+ import { FormPiece } from '../piece';
2
+ export declare class TableAction extends FormPiece {
4
3
  newState: string;
5
4
  actionCode: string;
6
5
  actionTitle: string;
@@ -12,12 +11,5 @@ export declare class TableAction {
12
11
  restrictedOnField: string;
13
12
  restrictedOnValue: string;
14
13
  restrictedOnOperator: string;
15
- customAttributes: any;
16
- constructor(actionDefinition: any);
17
- getCustomAttribute(name: string): any;
18
- setCustomAttribute(name: string, value: any): void;
19
- setCustomAttributes(attributes: any): void;
20
- supportMode(state: any): boolean;
21
- viewOnState(state: any): boolean;
22
- enabledOnState(state: any): boolean;
14
+ constructor(actionDefinition: any, formConfig: any);
23
15
  }
@@ -1,3 +1,4 @@
1
+ import { FormPiece } from '../piece';
1
2
  export interface FilterDef {
2
3
  operators: string[];
3
4
  options: any[];
@@ -7,24 +8,18 @@ export interface FilterSetup {
7
8
  operator: string;
8
9
  values: any[];
9
10
  }
10
- export declare class RecordTableColumn {
11
- _formConfig: any;
11
+ export declare class RecordTableColumn extends FormPiece {
12
12
  fieldCode: string;
13
13
  fieldTitle: string;
14
14
  fieldType: string;
15
15
  fieldAlignment: string;
16
16
  fieldFormat: string;
17
- visible: boolean;
18
17
  sortable: boolean;
19
18
  sortDirections: string[];
20
- customAttributes: any;
21
19
  filterVisible: boolean;
22
20
  filterDef: FilterDef | null;
23
21
  filterSetup: FilterSetup | null;
24
22
  constructor(recTableColReceived: any, formConfig: any);
25
- getCustomAttribute(name: string): any;
26
- setCustomAttribute(name: string, value: any): void;
27
- setCustomAttributes(attributes: any): void;
28
23
  hideFilter(): void;
29
24
  addFilterDefinition(filterDefinition: any): void;
30
25
  get filterDefinition(): FilterDef;
@@ -19,7 +19,6 @@ export declare class RecordTable extends FormElement {
19
19
  private readonly _recordSelectionTrigger;
20
20
  private readonly _selectionActionTrigger;
21
21
  private readonly _getDataTrigger;
22
- private readonly _attributeChange;
23
22
  private _tableColumnObj;
24
23
  private _appendPages;
25
24
  private _actions;
@@ -56,7 +55,6 @@ export declare class RecordTable extends FormElement {
56
55
  get selectionActionTrigger(): Subject<TableEvent>;
57
56
  get recordSelectionTrigger(): Subject<TableEvent>;
58
57
  get getDataTrigger(): Subject<TableEvent>;
59
- get attributeChange(): Subject<any>;
60
58
  getLayout(): string;
61
59
  setLayout(layout: any): void;
62
60
  hasActions(): boolean;
@@ -66,7 +64,6 @@ export declare class RecordTable extends FormElement {
66
64
  columnDefinition(fieldCode: any): RecordTableColumn;
67
65
  putOnWait(): void;
68
66
  freeWaiting(): void;
69
- setAttr(name: string, value: any): void;
70
67
  notifyGlobalAction(actionCode: any): void;
71
68
  notifyInlineAction(tableActionEvent: TableActionEvent): void;
72
69
  notifyRecordSelection(recordId: any): void;
@@ -98,4 +95,5 @@ export declare class RecordTable extends FormElement {
98
95
  setRequiredOrder(columnField: any, direction?: any): void;
99
96
  localSortData(): void;
100
97
  recordCompare(recordA: TableRecordData, recordB: TableRecordData, columnCompare: any, direction: any): number;
98
+ formStateChangeCustom(formChangeSubject: any): void;
101
99
  }
@@ -1,21 +1,17 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { FormAction } from '../../classes/forms/action';
3
+ import { ElementComponent } from './layout/element.component';
3
4
  import * as i0 from "@angular/core";
4
- export declare class ActionComponent implements OnInit {
5
- formConfig: any;
5
+ export declare class ActionComponent extends ElementComponent implements OnInit {
6
6
  inProgress: boolean;
7
- action: FormAction;
7
+ action: FormAction | null;
8
8
  busy: any;
9
9
  relatedField: any;
10
- state: any;
11
10
  style: string;
12
11
  showLabel: boolean;
13
12
  ngOnInit(): void;
14
- start(): void;
15
13
  activate(): void;
16
14
  visibleOnRestriction(): boolean;
17
- get visible(): boolean;
18
- get disabled(): boolean;
19
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<ActionComponent, "lib-action", never, { "action": "action"; "busy": "busy"; "relatedField": "relatedField"; "state": "state"; "style": "style"; "showLabel": "showLabel"; }, {}, never, ["*"], false>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionComponent, "lib-action", never, { "action": "action"; "busy": "busy"; "relatedField": "relatedField"; "style": "style"; "showLabel": "showLabel"; }, {}, never, ["*"], false>;
21
17
  }
@@ -1,8 +1,8 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { FieldDescriptor } from '../../classes/forms/field';
3
+ import { ElementComponent } from './layout/element.component';
3
4
  import * as i0 from "@angular/core";
4
- export declare class FieldComponent implements OnInit {
5
- formConfig: any;
5
+ export declare class FieldComponent extends ElementComponent implements OnInit {
6
6
  code: string;
7
7
  value: any;
8
8
  info: string;
@@ -22,22 +22,17 @@ export declare class FieldComponent implements OnInit {
22
22
  errorCode: any;
23
23
  errorMessage: any;
24
24
  field: FieldDescriptor | null;
25
- state: any;
26
25
  ngOnInit(): void;
27
- dafaultProcessFieldChange(attribute: string, value?: any): void;
28
- get visible(): boolean;
29
- get disabled(): boolean;
26
+ defaultProcessAttributeChange(attribute: string, value?: any): void;
30
27
  updateValue(): void;
31
28
  onInputChange(): void;
32
29
  onChangeContent(): void;
33
30
  onShowInfo(detail?: any): void;
34
- processFieldChange(attribute: string, value?: any): void;
35
- start(): void;
36
31
  focus(): void;
37
32
  updateObject(): void;
38
33
  inputChanged(): void;
39
34
  inputTyped(): void;
40
35
  numberInputValidation(event: any): boolean;
41
36
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "lib-field", never, { "field": "field"; "state": "state"; }, {}, never, ["*"], false>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "lib-field", never, { "field": "field"; }, {}, never, ["*"], false>;
43
38
  }
@@ -1,14 +1,9 @@
1
- import { OnInit } from '@angular/core';
1
+ import { PieceComponent } from './piece.component';
2
2
  import * as i0 from "@angular/core";
3
- export declare class ElementComponent implements OnInit {
4
- formConfig: any;
3
+ export declare class ElementComponent extends PieceComponent {
5
4
  element: any;
6
5
  form: any;
7
- state: any;
8
- ngOnInit(): void;
9
6
  start(): void;
10
- get visible(): any;
11
- get disabled(): boolean;
12
7
  static ɵfac: i0.ɵɵFactoryDeclaration<ElementComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "lib-element", never, { "element": "element"; "form": "form"; "state": "state"; }, {}, never, ["*"], false>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "lib-element", never, { "element": "element"; "form": "form"; }, {}, never, ["*"], false>;
14
9
  }
@@ -1,12 +1,12 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class FormHeaderComponent {
4
- formManager: any;
5
- goBackAction: boolean;
4
+ form: any;
5
+ canGoBack: boolean;
6
6
  showTitle: any;
7
7
  headerActions: any;
8
8
  goBackEvent: EventEmitter<void>;
9
9
  goBackForm(): void;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<FormHeaderComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<FormHeaderComponent, "lib-form-header", never, { "formManager": "formManager"; "goBackAction": "goBackAction"; "showTitle": "showTitle"; "headerActions": "headerActions"; }, { "goBackEvent": "goBackEvent"; }, never, ["*"], false>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormHeaderComponent, "lib-form-header", never, { "form": "form"; "canGoBack": "canGoBack"; "showTitle": "showTitle"; "headerActions": "headerActions"; }, { "goBackEvent": "goBackEvent"; }, never, ["*"], false>;
12
12
  }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class PieceComponent {
3
+ formConfig: any;
4
+ visible: boolean;
5
+ disabled: boolean;
6
+ defaultProcessAttributeChange(attribute: string, value?: any): void;
7
+ customProcessAttributeChange(attribute: string, value?: any): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<PieceComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<PieceComponent, "lib-piece", never, {}, {}, never, ["*"], false>;
10
+ }
@@ -1,10 +1,11 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { PieceComponent } from './piece.component';
2
3
  import * as i0 from "@angular/core";
3
- export declare class SectionComponent implements OnInit {
4
+ export declare class SectionComponent extends PieceComponent implements OnInit {
4
5
  section: any;
5
- formManager: any;
6
+ form: any;
6
7
  ngOnInit(): void;
7
8
  start(): void;
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<SectionComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "lib-section", never, { "section": "section"; "formManager": "formManager"; }, {}, never, ["*"], false>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "lib-section", never, { "section": "section"; "form": "form"; }, {}, never, ["*"], false>;
10
11
  }
@@ -1,11 +1,11 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { PieceComponent } from './piece.component';
2
3
  import * as i0 from "@angular/core";
3
- export declare class SubSectionComponent implements OnInit {
4
+ export declare class SubSectionComponent extends PieceComponent implements OnInit {
4
5
  subSection: any;
5
- showHeader: any;
6
- formManager: any;
6
+ form: any;
7
7
  ngOnInit(): void;
8
8
  start(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<SubSectionComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<SubSectionComponent, "lib-subsection", never, { "subSection": "subSection"; "showHeader": "showHeader"; "formManager": "formManager"; }, {}, never, ["*"], false>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubSectionComponent, "lib-subsection", never, { "subSection": "subSection"; "form": "form"; }, {}, never, ["*"], false>;
11
11
  }
@@ -1,12 +1,12 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
+ import { PieceComponent } from '../layout/piece.component';
2
3
  import { TableActionEvent } from '../../../classes/forms/table/table';
3
4
  import * as i0 from "@angular/core";
4
- export declare class LibTableRecordActionComponent implements OnInit {
5
+ export declare class LibTableRecordActionComponent extends PieceComponent implements OnInit {
5
6
  recordId: any;
6
7
  recordData: any;
7
8
  action: any;
8
9
  actionSelected: EventEmitter<TableActionEvent>;
9
- constructor();
10
10
  ngOnInit(): void;
11
11
  start(): void;
12
12
  onActivate(): void;
@@ -2,15 +2,14 @@ import { OnInit } from '@angular/core';
2
2
  import { TableRecordData } from '../../../classes/forms/table/row-data';
3
3
  import { TableActionEvent } from '../../../classes/forms/table/table';
4
4
  import { RecordTable } from '../../../classes/forms/table/table';
5
+ import { ElementComponent } from '../layout/element.component';
5
6
  import * as i0 from "@angular/core";
6
- export declare class LibTableComponent implements OnInit {
7
- formConfig: any;
7
+ export declare class LibTableComponent extends ElementComponent implements OnInit {
8
8
  code: any;
9
9
  columns: any;
10
10
  currentPage: number;
11
11
  globalSearch: boolean;
12
12
  globalFilterString: string;
13
- visibleRecords: any[];
14
13
  selectedRecords: any[];
15
14
  recordsPerPage: any;
16
15
  totalRecordsNumber: number;
@@ -23,13 +22,10 @@ export declare class LibTableComponent implements OnInit {
23
22
  inlineActions: any;
24
23
  globalActions: any;
25
24
  selectionActions: any;
26
- table: RecordTable;
27
- tableRecords: TableRecordData[];
28
- disabled: boolean;
29
- state: string;
25
+ table: RecordTable | null;
26
+ visibleRecords: TableRecordData[];
30
27
  waiting: boolean;
31
28
  ngOnInit(): void;
32
- start(): void;
33
29
  updateTableData(): void;
34
30
  tableGlobalAction(actionCode: string): void;
35
31
  tableSelectionAction(actionCode: string): void;
@@ -40,8 +36,8 @@ export declare class LibTableComponent implements OnInit {
40
36
  changePage(requestedPage: number): void;
41
37
  tableColumnSort(columnName: string, direction?: any): void;
42
38
  globalFilterChanged(): void;
43
- syncAttribute(name: string, value: any): boolean;
39
+ defaultProcessAttributeChange(attribute: string, value?: any): boolean;
44
40
  filterHasChanged(column: any, values: any): void;
45
41
  static ɵfac: i0.ɵɵFactoryDeclaration<LibTableComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<LibTableComponent, "lib-table", never, { "table": "table"; "tableRecords": "tableRecords"; "disabled": "disabled"; "state": "state"; "waiting": "waiting"; }, {}, never, ["*"], false>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibTableComponent, "lib-table", never, { "table": "table"; "visibleRecords": "visibleRecords"; "waiting": "waiting"; }, {}, never, ["*"], false>;
47
43
  }
@@ -52,6 +52,8 @@ export declare class BasicFormComponent {
52
52
  actions: any;
53
53
  sections: any;
54
54
  busy: boolean;
55
+ get title(): string;
56
+ set title(title: string);
55
57
  getTitle(): string;
56
58
  setTitle(title: string): void;
57
59
  cleanData(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuain-ng-forms-lib",
3
- "version": "14.3.20",
3
+ "version": "14.4.45",
4
4
  "description": "Componentes y Clases Angular para la gestión de formularios TUAIN",
5
5
  "author": "Mauricio Méndez, Imix Consulting",
6
6
  "license": "MIT",