@cbm-common/cbm-types 0.0.258 → 0.0.260

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,6 +1,12 @@
1
+ import { ElementRef } from '@angular/core';
1
2
  import { FormControl } from '@angular/forms';
2
3
  import { CbmCostCenterModel } from '../../../domain/models/cost-center.domain.model';
3
- import { Subject } from 'rxjs';
4
+ import { Subject, Subscription } from 'rxjs';
5
+ type ObserverStore = {
6
+ resizeObserver?: ResizeObserver;
7
+ mutationObserver?: MutationObserver;
8
+ ngSelectEventSubscriptions?: Subscription[];
9
+ };
4
10
  export declare class AdditionalDataComponent {
5
11
  replaceItemNameControl: import("@angular/core").InputSignal<FormControl<string | null>>;
6
12
  commentaryItemControl: import("@angular/core").InputSignal<FormControl<string | null>>;
@@ -18,9 +24,20 @@ export declare class AdditionalDataComponent {
18
24
  onBlurUnitDiscount: import("@angular/core").OutputEmitterRef<void>;
19
25
  onBlurPriceWithIva: import("@angular/core").OutputEmitterRef<void>;
20
26
  onBlurUnitPriceWithIva: import("@angular/core").OutputEmitterRef<void>;
27
+ /** Referencia al contenedor de la tabla para observación de resize. */
28
+ containerRef: import("@angular/core").Signal<ElementRef<HTMLDivElement> | undefined>;
29
+ /** Referencia a la tabla para observación de mutaciones. */
30
+ formRef: import("@angular/core").Signal<ElementRef<HTMLTableElement> | undefined>;
31
+ /** Observer de resize para la tabla. */
32
+ resizeObserver?: ResizeObserver;
33
+ /** Observer de mutaciones DOM para la tabla. */
34
+ mutationObserver?: MutationObserver;
35
+ private readonly _setupTableEffect;
21
36
  protected compareWithId(a: {
22
37
  _id: string;
23
38
  }, b: {
24
39
  _id: string;
25
40
  }): boolean;
41
+ setupTableResizeAndMutationByElement(containerRef: ElementRef<HTMLElement> | undefined, tableRef: ElementRef<HTMLElement> | undefined, observerStore: ObserverStore): void;
26
42
  }
43
+ export {};
@@ -41,12 +41,16 @@ export declare namespace CbmPrintSettingsModel {
41
41
  code: string;
42
42
  description: string;
43
43
  enabled: boolean;
44
+ beneficiary_type?: string;
45
+ description_dynamic?: string;
44
46
  }
45
47
  interface SignatureRide {
46
48
  _id: string;
47
49
  code: string;
48
50
  description: string;
49
51
  enabled: boolean;
52
+ beneficiary_type?: string;
53
+ description_dynamic?: string;
50
54
  }
51
55
  }
52
56
  interface SaveBody {
@@ -102,11 +106,15 @@ export declare namespace CbmPrintSettingsModel {
102
106
  code: string;
103
107
  description: string;
104
108
  enabled: boolean;
109
+ beneficiary_type?: string;
110
+ description_dynamic?: string;
105
111
  }
106
112
  interface SignatureRide {
107
113
  code: string;
108
114
  description: string;
109
115
  enabled: boolean;
116
+ beneficiary_type?: string;
117
+ description_dynamic?: string;
110
118
  }
111
119
  }
112
120
  interface GetOneResponse {
@@ -133,14 +141,29 @@ export declare namespace CbmPrintSettingsModel {
133
141
  enabled: boolean;
134
142
  order?: number;
135
143
  deleted: boolean;
136
- signature_data: any[];
137
- signature_data_ride: any[];
144
+ signature_data: Signature[];
145
+ signature_data_ride: SignatureDataRide[];
138
146
  created_at: number;
139
147
  created_user?: string;
140
148
  updated_at?: number;
141
149
  updated_user?: string;
142
150
  print_code?: string;
143
151
  }
152
+ interface Signature {
153
+ code: string;
154
+ description: string;
155
+ enabled: boolean;
156
+ beneficiary_type?: string;
157
+ description_dynamic?: string;
158
+ }
159
+ interface SignatureDataRide {
160
+ code: string;
161
+ description: string;
162
+ enabled: boolean;
163
+ _id: string;
164
+ beneficiary_type?: string;
165
+ description_dynamic?: string;
166
+ }
144
167
  }
145
168
  interface ConfirmResponse {
146
169
  success: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.258",
3
+ "version": "0.0.260",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {
@@ -9,4 +9,4 @@
9
9
  "types": "./public-api.d.ts"
10
10
  }
11
11
  }
12
- }
12
+ }