@cbm-common/cbm-types 0.0.154 → 0.0.156
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/lib/components/accounting-seat/directives/drop-down-menu.directive.d.ts +13 -0
- package/lib/components/accounting-seat/directives/drop-down.directive.d.ts +10 -0
- package/lib/components/dropzone/dropzone.d.ts +2 -0
- package/lib/components/forbidden/forbidden.d.ts +4 -1
- package/lib/components/record-detail-metadata/components/options/options.d.ts +13 -0
- package/lib/components/record-detail-metadata/directives/drop-down-menu.directive.d.ts +13 -0
- package/lib/components/record-detail-metadata/directives/drop-down.directive.d.ts +9 -0
- package/lib/domain/models/{sales-pending-document.domain.model.d.ts → pending-document.domain.model.d.ts} +1 -1
- package/lib/domain/repositories/pending-document.domain.repository.d.ts +8 -0
- package/lib/domain/services/item/find-item-code.domain.service.d.ts +15 -0
- package/lib/domain/services/item/find-price-type.domain.service.d.ts +12 -0
- package/lib/infrastructure/repositories/blanket-agreement-category-service..infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/repositories/pending-document.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/services/pending-document.infrastructure.service.d.ts +9 -0
- package/lib/infrastructure/services/subscription.infrastructure.service.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -4
- package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +0 -8
- package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +0 -5
- package/lib/infrastructure/services/sales-pending-document.infrastructure.service.d.ts +0 -9
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
+
export declare class DropdownMenuDirective implements OnChanges, AfterViewInit {
|
|
3
|
+
private element;
|
|
4
|
+
private renderer2;
|
|
5
|
+
hiddenMenu: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
hiddenMenuOp: import("@angular/core").WritableSignal<boolean>;
|
|
7
|
+
constructor(element: ElementRef, renderer2: Renderer2);
|
|
8
|
+
ngAfterViewInit(): void;
|
|
9
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
10
|
+
toggle(event: Event): void;
|
|
11
|
+
private toggleMenu;
|
|
12
|
+
initStyle(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
export declare class DropdownDirective implements AfterViewInit {
|
|
3
|
+
private elementRef;
|
|
4
|
+
private renderer;
|
|
5
|
+
private isOpen;
|
|
6
|
+
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
7
|
+
ngAfterViewInit(): void;
|
|
8
|
+
toggleDropdown(event: MouseEvent): void;
|
|
9
|
+
closeDropdown(event: MouseEvent): void;
|
|
10
|
+
}
|
|
@@ -4,6 +4,8 @@ export declare class CbmDropzoneComponent {
|
|
|
4
4
|
files: import("@angular/core").InputSignal<File[]>;
|
|
5
5
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
6
6
|
darkMode: import("@angular/core").InputSignal<boolean>;
|
|
7
|
+
'loading-state': import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
loadingState: import("@angular/core").Signal<boolean>;
|
|
7
9
|
uplaodFile: import("@angular/core").OutputEmitterRef<FileList>;
|
|
8
10
|
dragover: import("@angular/core").WritableSignal<boolean>;
|
|
9
11
|
counter: import("@angular/core").WritableSignal<number>;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { Title } from '@angular/platform-browser';
|
|
1
2
|
import { Router } from '@angular/router';
|
|
2
3
|
import { CanFormDirty, CanLeaveRoute } from '@cbm-common/guards-repository';
|
|
3
4
|
import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
|
|
4
5
|
export declare class CbmForbidden implements CanFormDirty, CanLeaveRoute {
|
|
5
6
|
private readonly router;
|
|
6
|
-
|
|
7
|
+
private readonly title;
|
|
8
|
+
constructor(router: Router, title: Title);
|
|
7
9
|
disableGuard: boolean;
|
|
8
10
|
formDirty: () => boolean;
|
|
9
11
|
modalConfirm: import("@angular/core").Signal<CbmModalConfirmComponent>;
|
|
10
12
|
onLeavingRoute(): void;
|
|
13
|
+
ruteTag: import("@angular/core").WritableSignal<string>;
|
|
11
14
|
protected goBack(): void;
|
|
12
15
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WritableSignal } from '@angular/core';
|
|
2
|
+
import { Router, ActivatedRoute, Params } from '@angular/router';
|
|
3
|
+
import { CbmRecordDetailMetadataModel } from "../../types";
|
|
4
|
+
export declare class OptionsComponent {
|
|
5
|
+
private router;
|
|
6
|
+
private route;
|
|
7
|
+
constructor(router: Router, route: ActivatedRoute);
|
|
8
|
+
metadata: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.metadata | null>;
|
|
9
|
+
options: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.options[] | undefined>;
|
|
10
|
+
optionInSignals: WritableSignal<WritableSignal<CbmRecordDetailMetadataModel.options>[]>;
|
|
11
|
+
executeFunction(option: WritableSignal<CbmRecordDetailMetadataModel.options>): void;
|
|
12
|
+
navigate(routerLink?: string, queryParams?: Params): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
+
export declare class DropdownMenuDirective implements OnChanges, AfterViewInit {
|
|
3
|
+
private element;
|
|
4
|
+
private renderer2;
|
|
5
|
+
hiddenMenu: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
hiddenMenuOp: import("@angular/core").WritableSignal<boolean>;
|
|
7
|
+
constructor(element: ElementRef, renderer2: Renderer2);
|
|
8
|
+
ngAfterViewInit(): void;
|
|
9
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
10
|
+
toggle(event: Event): void;
|
|
11
|
+
private toggleMenu;
|
|
12
|
+
initStyle(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
export declare class DropdownDirective {
|
|
3
|
+
private elementRef;
|
|
4
|
+
private renderer;
|
|
5
|
+
private isOpen;
|
|
6
|
+
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
7
|
+
toggleDropdown(event: MouseEvent): void;
|
|
8
|
+
closeDropdown(event: MouseEvent): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmPendingDocumentModel } from '../models/pending-document.domain.model';
|
|
3
|
+
import { ICbmPendingDocumentRepository } from '../../infrastructure/repositories/pending-document.infrastructure.repository';
|
|
4
|
+
export declare class CbmPendingDocumentRepository implements ICbmPendingDocumentRepository {
|
|
5
|
+
private service;
|
|
6
|
+
constructor(service: ICbmPendingDocumentRepository);
|
|
7
|
+
list(params: CbmPendingDocumentModel.ListParams): Observable<CbmPendingDocumentModel.ListResponse>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DestroyRef } from "@angular/core";
|
|
2
|
+
import { FormControl } from "@angular/forms";
|
|
3
|
+
import { CbmItemModel } from "@cbm-common/cbm-types";
|
|
4
|
+
import { CbmItemDomainRepository } from "../../repositories/item.domain.repository";
|
|
5
|
+
import { CbmNotificationService } from "../notification/notification.service";
|
|
6
|
+
export declare class FindItemCodeService {
|
|
7
|
+
private readonly destroyRef;
|
|
8
|
+
private readonly itemRepository;
|
|
9
|
+
private readonly notificationService;
|
|
10
|
+
private readonly codeControl;
|
|
11
|
+
private readonly itemControl;
|
|
12
|
+
constructor(destroyRef: DestroyRef, itemRepository: CbmItemDomainRepository, notificationService: CbmNotificationService, codeControl: FormControl<string>, itemControl: FormControl<Partial<CbmItemModel.ListResponse.Item> | null>);
|
|
13
|
+
loading: import("@angular/core").WritableSignal<boolean>;
|
|
14
|
+
findCode(code?: string): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DestroyRef } from "@angular/core";
|
|
2
|
+
import { FormControl } from "@angular/forms";
|
|
3
|
+
import { IGetPriceTypeParams, IPriceTypeExec } from "../../../types/price-type.fn";
|
|
4
|
+
import { CbmSalePriceModel } from "../../models/sale-price.domain.model";
|
|
5
|
+
export declare class FindPriceTypeService {
|
|
6
|
+
private readonly destroyRef;
|
|
7
|
+
private readonly controlPriceType;
|
|
8
|
+
private readonly controls;
|
|
9
|
+
private readonly params;
|
|
10
|
+
constructor(destroyRef: DestroyRef, controlPriceType: FormControl<Partial<CbmSalePriceModel.GetResponse.Data> | null>, controls: Omit<IPriceTypeExec, 'controlPriceType'>, params: IGetPriceTypeParams);
|
|
11
|
+
subObserver(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmBlanketAgreementCategoryServiceModel } from "../../domain/models/blanket-agreement-category-service.domain.model";
|
|
3
|
+
export interface ICbmBlanketAgreementCategoryServiceRepository {
|
|
4
|
+
list(params: CbmBlanketAgreementCategoryServiceModel.ListParams): Observable<CbmBlanketAgreementCategoryServiceModel.ListResponse>;
|
|
5
|
+
save(data: CbmBlanketAgreementCategoryServiceModel.SaveBody): Observable<CbmBlanketAgreementCategoryServiceModel.ConfirmResponse>;
|
|
6
|
+
delete(id: string): Observable<CbmBlanketAgreementCategoryServiceModel.ConfirmResponse>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmPendingDocumentModel } from '../../domain/models/pending-document.domain.model';
|
|
3
|
+
export interface ICbmPendingDocumentRepository {
|
|
4
|
+
list(params: CbmPendingDocumentModel.ListParams): Observable<CbmPendingDocumentModel.ListResponse>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmPendingDocumentModel } from '../../domain/models/pending-document.domain.model';
|
|
4
|
+
export declare class CbmPendingDocumentService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
private readonly url;
|
|
8
|
+
list(params: CbmPendingDocumentModel.ListParams): Observable<CbmPendingDocumentModel.ListResponse>;
|
|
9
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import { CbmSubscriptionModel } from "../../domain/models/subscription.domain.model";
|
|
3
3
|
import { HttpClient } from "@angular/common/http";
|
|
4
|
-
|
|
4
|
+
import { ICbmSubscriptionRepository } from "../repositories/subscription.infrastructure.repository";
|
|
5
|
+
export declare class CbmSubscriptionService implements ICbmSubscriptionRepository {
|
|
5
6
|
private http;
|
|
6
7
|
constructor(http: HttpClient);
|
|
7
8
|
private readonly url;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -378,9 +378,9 @@ export * from './lib/domain/models/reverse-movements.domain.model';
|
|
|
378
378
|
export * from './lib/domain/repositories/retention-sales.domain.repository';
|
|
379
379
|
export * from './lib/domain/models/retention-sales.domain.model';
|
|
380
380
|
|
|
381
|
-
//#region
|
|
382
|
-
export * from './lib/domain/repositories/
|
|
383
|
-
export * from './lib/domain/models/
|
|
381
|
+
//#region pending document repository
|
|
382
|
+
export * from './lib/domain/repositories/pending-document.domain.repository';
|
|
383
|
+
export * from './lib/domain/models/pending-document.domain.model';
|
|
384
384
|
|
|
385
385
|
//#region transactions purchase repository
|
|
386
386
|
export * from './lib/domain/repositories/transactions-purchase.domain.repository';
|
|
@@ -487,7 +487,7 @@ export * from './lib/components/forbidden/forbidden';
|
|
|
487
487
|
//#region not-found
|
|
488
488
|
export * from './lib/components/not-found/not-found';
|
|
489
489
|
|
|
490
|
-
//#region items detail
|
|
490
|
+
//#region items detail
|
|
491
491
|
export * from './lib/components/item-details/item-details';
|
|
492
492
|
|
|
493
493
|
//#region service detail
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { CbmSalesPendingDocumentModel } from '../models/sales-pending-document.domain.model';
|
|
3
|
-
import { ICbmSalesPendingDocumentRepository } from '../../infrastructure/repositories/sales-pending-document.infrastructure.repository';
|
|
4
|
-
export declare class CbmSalesPendingDocumentRepository implements ICbmSalesPendingDocumentRepository {
|
|
5
|
-
private service;
|
|
6
|
-
constructor(service: ICbmSalesPendingDocumentRepository);
|
|
7
|
-
list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
|
|
8
|
-
}
|
package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { CbmSalesPendingDocumentModel } from '../../domain/models/sales-pending-document.domain.model';
|
|
3
|
-
export interface ICbmSalesPendingDocumentRepository {
|
|
4
|
-
list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
|
|
5
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { CbmSalesPendingDocumentModel } from '../../domain/models/sales-pending-document.domain.model';
|
|
4
|
-
export declare class CbmSalesPendingDocumentService {
|
|
5
|
-
private http;
|
|
6
|
-
constructor(http: HttpClient);
|
|
7
|
-
private readonly url;
|
|
8
|
-
list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
|
|
9
|
-
}
|