techlify-inventory-common 18.49.0 → 18.50.0
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/esm2022/lib/inventory-common/location/location-form/location-form.component.mjs +3 -3
- package/esm2022/lib/inventory-common/location/location.service.mjs +3 -3
- package/esm2022/lib/inventory-common/location/shelf/shelf-form/shelf-form.component.mjs +3 -3
- package/esm2022/lib/inventory-common/stock-issue/stock-issue-form/stock-issue-form.component.mjs +10 -6
- package/esm2022/lib/inventory-common/stock-issue/stock-issue-product-form/stock-issue-product-form.component.mjs +3 -3
- package/esm2022/lib/inventory-common/stock-issue/stock-issue-single-product-form/stock-issue-single-product-form.component.mjs +4 -4
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.component.mjs +8 -6
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-product-form/stock-receipt-product-form.component.mjs +3 -3
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-single-product-form/stock-receipt-simple-form/stock-receipt-single-product-form.component.mjs +4 -6
- package/esm2022/lib/inventory-common/stock-transfer/stock-transfer-form/stock-transfer-form.component.mjs +3 -3
- package/fesm2022/{techlify-inventory-common-category.module-BBpgG9L3.mjs → techlify-inventory-common-category.module-CGzFP2S_.mjs} +2 -2
- package/fesm2022/{techlify-inventory-common-category.module-BBpgG9L3.mjs.map → techlify-inventory-common-category.module-CGzFP2S_.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-purchase-order-view.component-6qbMJdAs.mjs → techlify-inventory-common-purchase-order-view.component-5mLg0IvH.mjs} +2 -2
- package/fesm2022/{techlify-inventory-common-purchase-order-view.component-6qbMJdAs.mjs.map → techlify-inventory-common-purchase-order-view.component-5mLg0IvH.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-recipient.module-DsYw54Uj.mjs → techlify-inventory-common-recipient.module-DLoP6xI3.mjs} +2 -2
- package/fesm2022/{techlify-inventory-common-recipient.module-DsYw54Uj.mjs.map → techlify-inventory-common-recipient.module-DLoP6xI3.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-stock-issue-form.component-C3RoFfcY.mjs → techlify-inventory-common-stock-issue-form.component-MYEKRteU.mjs} +11 -6
- package/fesm2022/techlify-inventory-common-stock-issue-form.component-MYEKRteU.mjs.map +1 -0
- package/fesm2022/{techlify-inventory-common-stock-issue-product-view.component-b_8gpI7x.mjs → techlify-inventory-common-stock-issue-product-view.component-C-c83FEn.mjs} +2 -2
- package/fesm2022/{techlify-inventory-common-stock-issue-product-view.component-b_8gpI7x.mjs.map → techlify-inventory-common-stock-issue-product-view.component-C-c83FEn.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-stock-issue-view.component-BDOR4X49.mjs → techlify-inventory-common-stock-issue-view.component-Co7hXpDq.mjs} +2 -2
- package/fesm2022/{techlify-inventory-common-stock-issue-view.component-BDOR4X49.mjs.map → techlify-inventory-common-stock-issue-view.component-Co7hXpDq.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-techlify-inventory-common-Bveawfj2.mjs → techlify-inventory-common-techlify-inventory-common-CWxzlvVi.mjs} +78 -224
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-CWxzlvVi.mjs.map +1 -0
- package/fesm2022/techlify-inventory-common.mjs +1 -1
- package/lib/inventory-common/location/location.service.d.ts +1 -1
- package/lib/inventory-common/stock-issue/stock-issue-form/stock-issue-form.component.d.ts +1 -0
- package/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.component.d.ts +1 -0
- package/package.json +1 -1
- package/esm2022/lib/inventory-common/location/location-selector/location-selector.component.mjs +0 -161
- package/fesm2022/techlify-inventory-common-stock-issue-form.component-C3RoFfcY.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-Bveawfj2.mjs.map +0 -1
- package/lib/inventory-common/location/location-selector/location-selector.component.d.ts +0 -46
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
-
import { LocationService } from '../location.service';
|
|
4
|
-
import { TechlifyFeatureService } from 'ngx-techlify-core';
|
|
5
|
-
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
interface HierarchicalLocation {
|
|
8
|
-
id: number;
|
|
9
|
-
title: string;
|
|
10
|
-
parent_id: number | null;
|
|
11
|
-
depth: number;
|
|
12
|
-
}
|
|
13
|
-
export declare class LocationSelectorComponent implements ControlValueAccessor, OnInit {
|
|
14
|
-
private locationService;
|
|
15
|
-
private featureService;
|
|
16
|
-
appearance: import("@angular/core").InputSignal<MatFormFieldAppearance>;
|
|
17
|
-
label: import("@angular/core").InputSignal<string>;
|
|
18
|
-
placeholder: import("@angular/core").InputSignal<string>;
|
|
19
|
-
hint: import("@angular/core").InputSignal<string | undefined>;
|
|
20
|
-
includeNone: import("@angular/core").InputSignal<boolean>;
|
|
21
|
-
isSubLocationEnabled: import("@angular/core").WritableSignal<boolean>;
|
|
22
|
-
locations: HierarchicalLocation[];
|
|
23
|
-
selectedValue: number | null;
|
|
24
|
-
isDisabled: boolean;
|
|
25
|
-
searchControl: FormControl<string | null>;
|
|
26
|
-
private onChange;
|
|
27
|
-
private onTouched;
|
|
28
|
-
constructor(locationService: LocationService, featureService: TechlifyFeatureService);
|
|
29
|
-
ngOnInit(): void;
|
|
30
|
-
setupSearch(): void;
|
|
31
|
-
loadData(search?: string | null): void;
|
|
32
|
-
/**
|
|
33
|
-
* To prevent recursive calls in the api while trying to get
|
|
34
|
-
* parent and children of a location, i've opted to have the ui
|
|
35
|
-
* build the hierarchy of locations
|
|
36
|
-
*/
|
|
37
|
-
private buildHierarchy;
|
|
38
|
-
onSelectionChange(value: number | null): void;
|
|
39
|
-
writeValue(value: number | null): void;
|
|
40
|
-
registerOnChange(fn: (value: number | null) => void): void;
|
|
41
|
-
registerOnTouched(fn: () => void): void;
|
|
42
|
-
setDisabledState(isDisabled: boolean): void;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocationSelectorComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LocationSelectorComponent, "app-location-selector", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "includeNone": { "alias": "includeNone"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
45
|
-
}
|
|
46
|
-
export {};
|