@limetech/limepkg-cpq-order 2.11.0-dev.2 → 2.11.0-dev.3
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/dist/components/item-form/item-form.d.ts +3 -1
- package/dist/components/item-summary/item-summary.d.ts +6 -0
- package/dist/components/vat-selector/vat-selector.d.ts +4 -0
- package/dist/components.d.ts +8 -1
- package/dist/interfaces/config.d.ts +9 -0
- package/dist/testing/setup.d.ts +10 -0
- package/dist/testing/test-platform.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LimeType, LimeWebComponent, LimeWebComponentContext, LimeWebComponentPlatform, Translator } from '@limetech/lime-web-components';
|
|
2
2
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
3
|
-
import { IconfigItemMapping } from '../../interfaces';
|
|
3
|
+
import { IconfigGeneral, IconfigItemMapping, VatBehaviour } from '../../interfaces';
|
|
4
4
|
import { Item } from '../../classes';
|
|
5
5
|
export declare class ItemForm implements LimeWebComponent {
|
|
6
6
|
/**
|
|
@@ -15,6 +15,7 @@ export declare class ItemForm implements LimeWebComponent {
|
|
|
15
15
|
currency: string;
|
|
16
16
|
itemMapping: IconfigItemMapping;
|
|
17
17
|
limetype: LimeType;
|
|
18
|
+
generalConfig: IconfigGeneral;
|
|
18
19
|
validate: EventEmitter;
|
|
19
20
|
get translate(): Translator;
|
|
20
21
|
render(): any[];
|
|
@@ -75,6 +76,7 @@ export declare class ItemForm implements LimeWebComponent {
|
|
|
75
76
|
name: string;
|
|
76
77
|
props: {
|
|
77
78
|
value: number;
|
|
79
|
+
vatBehaviour: VatBehaviour;
|
|
78
80
|
};
|
|
79
81
|
};
|
|
80
82
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LimeWebComponent, LimeWebComponentContext, LimeWebComponentPlatform, Translator } from '@limetech/lime-web-components';
|
|
2
|
+
import { IconfigGeneral } from 'src/interfaces';
|
|
2
3
|
export declare class ItemSummary implements LimeWebComponent {
|
|
3
4
|
/**
|
|
4
5
|
* @inherit
|
|
@@ -14,7 +15,12 @@ export declare class ItemSummary implements LimeWebComponent {
|
|
|
14
15
|
vat: number;
|
|
15
16
|
totalInclVat: number;
|
|
16
17
|
currency: string;
|
|
18
|
+
generalConfig?: IconfigGeneral;
|
|
19
|
+
private vatBehaviour;
|
|
17
20
|
get translate(): Translator;
|
|
21
|
+
componentWillLoad(): void;
|
|
18
22
|
render(): any;
|
|
23
|
+
private renderPriceInfoWithoutTax;
|
|
24
|
+
private renderPriceInfoWithTax;
|
|
19
25
|
private renderSubtotalAndDiscount;
|
|
20
26
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LimeWebComponent, LimeWebComponentContext, LimeWebComponentPlatform } from '@limetech/lime-web-components';
|
|
2
2
|
import { FormComponent } from '@limetech/lime-elements';
|
|
3
3
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
4
|
+
import { VatBehaviour } from 'src/interfaces';
|
|
4
5
|
export declare class VatSelector implements LimeWebComponent, FormComponent {
|
|
5
6
|
platform: LimeWebComponentPlatform;
|
|
6
7
|
context: LimeWebComponentContext;
|
|
@@ -10,6 +11,7 @@ export declare class VatSelector implements LimeWebComponent, FormComponent {
|
|
|
10
11
|
readonly?: boolean;
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
helperText?: string;
|
|
14
|
+
vatBehaviour: VatBehaviour;
|
|
13
15
|
change: EventEmitter<number>;
|
|
14
16
|
vatValue: string;
|
|
15
17
|
private readonly hundred;
|
|
@@ -18,4 +20,6 @@ export declare class VatSelector implements LimeWebComponent, FormComponent {
|
|
|
18
20
|
private roundToOneDecimal;
|
|
19
21
|
render(): any;
|
|
20
22
|
private handleChange;
|
|
23
|
+
private shouldHideVatField;
|
|
24
|
+
private shouldBeReadOnly;
|
|
21
25
|
}
|
package/dist/components.d.ts
CHANGED
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { LimeProperty, LimeType, LimeWebComponentContext, LimeWebComponentPlatform } from "@limetech/lime-web-components";
|
|
9
|
-
import { ErpStatus, Iarticle, IarticleGroup, Iconfig, IconfigItemMapping, Iitem } from "./interfaces";
|
|
9
|
+
import { ErpStatus, Iarticle, IarticleGroup, Iconfig, IconfigGeneral, IconfigItemMapping, Iitem } from "./interfaces";
|
|
10
10
|
import { Deal, Item, Order } from "./classes";
|
|
11
11
|
import { StatusLabelMapping } from "./components/erp-status/flow-items";
|
|
12
|
+
import { IconfigGeneral as IconfigGeneral1, VatBehaviour } from "src/interfaces";
|
|
12
13
|
import { DocumentTemplate } from "@limetech/limepkg-document-templates";
|
|
13
14
|
export namespace Components {
|
|
14
15
|
interface CocArticleGroupPicker {
|
|
@@ -148,6 +149,7 @@ export namespace Components {
|
|
|
148
149
|
*/
|
|
149
150
|
"context": LimeWebComponentContext;
|
|
150
151
|
"currency": string;
|
|
152
|
+
"generalConfig": IconfigGeneral;
|
|
151
153
|
"itemData": Item;
|
|
152
154
|
"itemMapping": IconfigItemMapping;
|
|
153
155
|
"limetype": LimeType;
|
|
@@ -165,6 +167,7 @@ export namespace Components {
|
|
|
165
167
|
"context": LimeWebComponentContext;
|
|
166
168
|
"currency": string;
|
|
167
169
|
"discount": number;
|
|
170
|
+
"generalConfig"?: IconfigGeneral1;
|
|
168
171
|
/**
|
|
169
172
|
* Reference to the platform
|
|
170
173
|
* @inherit
|
|
@@ -279,6 +282,7 @@ export namespace Components {
|
|
|
279
282
|
* The value of the current property
|
|
280
283
|
*/
|
|
281
284
|
"value": number;
|
|
285
|
+
"vatBehaviour": VatBehaviour;
|
|
282
286
|
}
|
|
283
287
|
interface LwcLimepkgCpqOrderLoader {
|
|
284
288
|
/**
|
|
@@ -612,6 +616,7 @@ declare namespace LocalJSX {
|
|
|
612
616
|
*/
|
|
613
617
|
"context"?: LimeWebComponentContext;
|
|
614
618
|
"currency"?: string;
|
|
619
|
+
"generalConfig"?: IconfigGeneral;
|
|
615
620
|
"itemData"?: Item;
|
|
616
621
|
"itemMapping"?: IconfigItemMapping;
|
|
617
622
|
"limetype"?: LimeType;
|
|
@@ -630,6 +635,7 @@ declare namespace LocalJSX {
|
|
|
630
635
|
"context"?: LimeWebComponentContext;
|
|
631
636
|
"currency"?: string;
|
|
632
637
|
"discount"?: number;
|
|
638
|
+
"generalConfig"?: IconfigGeneral1;
|
|
633
639
|
/**
|
|
634
640
|
* Reference to the platform
|
|
635
641
|
* @inherit
|
|
@@ -751,6 +757,7 @@ declare namespace LocalJSX {
|
|
|
751
757
|
* The value of the current property
|
|
752
758
|
*/
|
|
753
759
|
"value"?: number;
|
|
760
|
+
"vatBehaviour"?: VatBehaviour;
|
|
754
761
|
}
|
|
755
762
|
interface LwcLimepkgCpqOrderLoader {
|
|
756
763
|
/**
|
|
@@ -98,9 +98,18 @@ export interface IconfigOrder {
|
|
|
98
98
|
orderrowMapping: IconfigOrderrowMapping;
|
|
99
99
|
orderFromDealMapping: IconfigOrderFromDealMapping[];
|
|
100
100
|
}
|
|
101
|
+
export interface IconfigGeneral {
|
|
102
|
+
vat: IconfigVatBehaviour;
|
|
103
|
+
}
|
|
104
|
+
interface IconfigVatBehaviour {
|
|
105
|
+
vat_behaviour: VatBehaviour;
|
|
106
|
+
}
|
|
107
|
+
export declare type VatBehaviour = 'hide' | 'show' | 'show_and_edit';
|
|
101
108
|
export interface Iconfig {
|
|
102
109
|
article: IconfigArticle;
|
|
103
110
|
customization?: IconfigCustomization;
|
|
104
111
|
cpq?: IconfigCpq;
|
|
105
112
|
order?: IconfigOrder;
|
|
113
|
+
general_config?: IconfigGeneral;
|
|
106
114
|
}
|
|
115
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LimeObject, LimeType, LimeWebComponentPlatform } from '@limetech/lime-web-components';
|
|
2
|
+
export declare const limeTypes: {
|
|
3
|
+
readonly person: LimeType;
|
|
4
|
+
readonly company: LimeType;
|
|
5
|
+
};
|
|
6
|
+
export declare const limeObjects: {
|
|
7
|
+
readonly person1: LimeObject;
|
|
8
|
+
readonly company1: LimeObject;
|
|
9
|
+
};
|
|
10
|
+
export declare function createTestPlatform(): LimeWebComponentPlatform;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LimeWebComponentPlatform } from '@limetech/lime-web-components';
|
|
2
|
+
export declare class TestPlatform implements LimeWebComponentPlatform {
|
|
3
|
+
get type(): LimeWebComponentPlatform['type'];
|
|
4
|
+
private services;
|
|
5
|
+
get(name: string): any;
|
|
6
|
+
has(name: string): boolean;
|
|
7
|
+
register(name: string, service: any): void;
|
|
8
|
+
}
|