@cbm-common/cbm-types 0.0.41 → 0.0.42

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.
@@ -0,0 +1,27 @@
1
+ import { CbmTimelineModel, TStatus } from './types';
2
+ export declare class CbmTimelineComponent {
3
+ data: import("@angular/core").InputSignal<CbmTimelineModel.ITimelineData[]>;
4
+ redirect: import("@angular/core").InputSignal<Map<string, string> | undefined>;
5
+ loading: import("@angular/core").InputSignal<TStatus>;
6
+ focusId: import("@angular/core").InputSignal<string | null>;
7
+ translationOfType: {
8
+ suspend: string;
9
+ credit: string;
10
+ increase: string;
11
+ decrease: string;
12
+ };
13
+ tagsDate: {
14
+ refused: string;
15
+ approved: string;
16
+ pending: string;
17
+ suspend: string;
18
+ };
19
+ tagsUser: {
20
+ refused: string;
21
+ approved: string;
22
+ pending: string;
23
+ suspend: string;
24
+ };
25
+ constructor();
26
+ openUrl(id: string): void;
27
+ }
@@ -0,0 +1,17 @@
1
+ export type TStatus = 'init' | 'loading' | 'success' | 'failed';
2
+ export declare namespace CbmTimelineModel {
3
+ interface ITimelineData {
4
+ _id: string;
5
+ label: string;
6
+ document_number: string;
7
+ type: 'suspend' | 'credit' | 'increase' | 'decrease';
8
+ document_state: 'refused' | 'approved' | 'pending' | 'suspend';
9
+ user_name: string;
10
+ date: number;
11
+ amount_to_date: number;
12
+ requested_amount: number;
13
+ current_deadline: string;
14
+ approved_deadline: string;
15
+ commentary?: string;
16
+ }
17
+ }
@@ -17,3 +17,4 @@ export { StockByWarehouse } from '../components/stock-by-warehouse/stock-by-ware
17
17
  export { CbmAvailabilityBoardComponent } from '../components/availability-board/availability-board';
18
18
  export { CbmRelationshipMapComponent } from '../components/relationship-map/relationship-map';
19
19
  export { CbmAddProviderComponent } from '../components/add-provider/add-provider';
20
+ export { CbmTimelineComponent } from '../components/timeline/timeline';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {
package/public-api.d.ts CHANGED
@@ -326,4 +326,7 @@ export * from './lib/domain/models/service-category.domain.model';
326
326
 
327
327
  // #region service group repository
328
328
  export * from './lib/domain/repositories/service-group.domain.repository';
329
- export * from './lib/domain/models/service-group.domain.model';
329
+ export * from './lib/domain/models/service-group.domain.model';
330
+
331
+ // #region timeline component
332
+ export * from './lib/components/timeline/timeline';