@limetech/limepkg-cpq-order 2.14.1 → 2.14.2-dev.2
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/admin/coc-vat-selector-admin-config/coc-vat-selector-admin-config.d.ts +15 -0
- package/dist/components/dynamic-properties/dynamic-properties.d.ts +13 -3
- package/dist/components/new-order-dialog/new-order-dialog.d.ts +2 -0
- package/dist/components.d.ts +47 -0
- package/package.json +1 -1
package/dist/components/admin/coc-vat-selector-admin-config/coc-vat-selector-admin-config.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LimeWebComponent, LimeWebComponentContext, LimeWebComponentPlatform } from '@limetech/lime-web-components';
|
|
2
|
+
import { FormComponent } from '@limetech/lime-elements';
|
|
3
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
4
|
+
import { JSX } from 'src/interface';
|
|
5
|
+
declare type VatProps = Pick<JSX.CocVatSelector, 'vatBehaviour'>;
|
|
6
|
+
export declare class VatSelector implements LimeWebComponent, FormComponent<VatProps> {
|
|
7
|
+
platform: LimeWebComponentPlatform;
|
|
8
|
+
context: LimeWebComponentContext;
|
|
9
|
+
value: VatProps;
|
|
10
|
+
change: EventEmitter<VatProps>;
|
|
11
|
+
private vatBehaviours;
|
|
12
|
+
render(): any;
|
|
13
|
+
private handleSelectedValueChanged;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ValidationStatus } from '@limetech/lime-elements';
|
|
2
|
+
import { LimeWebComponent, LimeWebComponentContext, LimeWebComponentPlatform, ViewFactoryRegistry, LimeTypeRepository, LimeObjectRepository } from '@limetech/lime-web-components';
|
|
2
3
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
3
4
|
export declare class DynamicProperties implements LimeWebComponent {
|
|
4
5
|
platform: LimeWebComponentPlatform;
|
|
@@ -6,12 +7,16 @@ export declare class DynamicProperties implements LimeWebComponent {
|
|
|
6
7
|
limetype: string;
|
|
7
8
|
properties: Record<string, any>;
|
|
8
9
|
private schema;
|
|
9
|
-
private limeobjectService;
|
|
10
10
|
private formData;
|
|
11
11
|
private formValid;
|
|
12
12
|
private hasFocus;
|
|
13
|
+
get viewFactoryRegistry(): ViewFactoryRegistry;
|
|
14
|
+
get limeTypeService(): LimeTypeRepository;
|
|
15
|
+
get limeObjectService(): LimeObjectRepository;
|
|
13
16
|
propertiesChange: EventEmitter;
|
|
14
|
-
|
|
17
|
+
validate: EventEmitter<ValidationStatus>;
|
|
18
|
+
componentWillLoad(): void;
|
|
19
|
+
private prepareSchema;
|
|
15
20
|
private modifySchema;
|
|
16
21
|
private createProps;
|
|
17
22
|
render(): any;
|
|
@@ -19,4 +24,9 @@ export declare class DynamicProperties implements LimeWebComponent {
|
|
|
19
24
|
private handleFormValidate;
|
|
20
25
|
private handleFocusin;
|
|
21
26
|
private handleFocusout;
|
|
27
|
+
private getLimeTypeCardSchema;
|
|
28
|
+
private getPropertiesFromNestedSchema;
|
|
29
|
+
private buildDefinitionProps;
|
|
30
|
+
private getPropsNotInCardView;
|
|
31
|
+
private createEmptyLimeObject;
|
|
22
32
|
}
|
|
@@ -11,6 +11,7 @@ export declare class NewOrderDialog implements LimeWebComponent {
|
|
|
11
11
|
private order;
|
|
12
12
|
private isSaving;
|
|
13
13
|
private savingFailed;
|
|
14
|
+
private formIsValid;
|
|
14
15
|
destroyDialog: EventEmitter;
|
|
15
16
|
get route(): any;
|
|
16
17
|
get translate(): Translator;
|
|
@@ -23,4 +24,5 @@ export declare class NewOrderDialog implements LimeWebComponent {
|
|
|
23
24
|
private onClose;
|
|
24
25
|
private onSave;
|
|
25
26
|
private routeToObject;
|
|
27
|
+
private handleFormValidate;
|
|
26
28
|
}
|
package/dist/components.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
import { LimeObject, LimeProperty, LimeType, LimeWebComponentContext, LimeWebComponentPlatform } from "@limetech/lime-web-components";
|
|
9
9
|
import { ErpStatus, Iarticle, IarticleGroup, Iconfig, IconfigGeneral, IconfigItemMapping, Iitem } from "./interfaces";
|
|
10
10
|
import { Deal, Item, Order } from "./classes";
|
|
11
|
+
import { ValidationStatus } from "@limetech/lime-elements";
|
|
11
12
|
import { StatusLabelMapping } from "./components/erp-status/flow-items";
|
|
12
13
|
import { IconfigGeneral as IconfigGeneral1, VatBehaviour } from "src/interfaces";
|
|
13
14
|
import { ItemPosition } from "./components/item-table/item-table";
|
|
@@ -298,6 +299,20 @@ export namespace Components {
|
|
|
298
299
|
"value": number;
|
|
299
300
|
"vatBehaviour": VatBehaviour;
|
|
300
301
|
}
|
|
302
|
+
interface CocVatSelectorAdminConfig {
|
|
303
|
+
/**
|
|
304
|
+
* The context this component belongs to
|
|
305
|
+
*/
|
|
306
|
+
"context": LimeWebComponentContext;
|
|
307
|
+
/**
|
|
308
|
+
* Reference to the platform
|
|
309
|
+
*/
|
|
310
|
+
"platform": LimeWebComponentPlatform;
|
|
311
|
+
/**
|
|
312
|
+
* The value of the current property
|
|
313
|
+
*/
|
|
314
|
+
"value": VatProps;
|
|
315
|
+
}
|
|
301
316
|
interface CocVatTableSelector {
|
|
302
317
|
"context": LimeWebComponentContext;
|
|
303
318
|
/**
|
|
@@ -373,6 +388,10 @@ export interface CocVatSelectorCustomEvent<T> extends CustomEvent<T> {
|
|
|
373
388
|
detail: T;
|
|
374
389
|
target: HTMLCocVatSelectorElement;
|
|
375
390
|
}
|
|
391
|
+
export interface CocVatSelectorAdminConfigCustomEvent<T> extends CustomEvent<T> {
|
|
392
|
+
detail: T;
|
|
393
|
+
target: HTMLCocVatSelectorAdminConfigElement;
|
|
394
|
+
}
|
|
376
395
|
declare global {
|
|
377
396
|
interface HTMLCocArticleGroupPickerElement extends Components.CocArticleGroupPicker, HTMLStencilElement {
|
|
378
397
|
}
|
|
@@ -482,6 +501,12 @@ declare global {
|
|
|
482
501
|
prototype: HTMLCocVatSelectorElement;
|
|
483
502
|
new (): HTMLCocVatSelectorElement;
|
|
484
503
|
};
|
|
504
|
+
interface HTMLCocVatSelectorAdminConfigElement extends Components.CocVatSelectorAdminConfig, HTMLStencilElement {
|
|
505
|
+
}
|
|
506
|
+
var HTMLCocVatSelectorAdminConfigElement: {
|
|
507
|
+
prototype: HTMLCocVatSelectorAdminConfigElement;
|
|
508
|
+
new (): HTMLCocVatSelectorAdminConfigElement;
|
|
509
|
+
};
|
|
485
510
|
interface HTMLCocVatTableSelectorElement extends Components.CocVatTableSelector, HTMLStencilElement {
|
|
486
511
|
}
|
|
487
512
|
var HTMLCocVatTableSelectorElement: {
|
|
@@ -513,6 +538,7 @@ declare global {
|
|
|
513
538
|
"coc-position-index": HTMLCocPositionIndexElement;
|
|
514
539
|
"coc-template-selector": HTMLCocTemplateSelectorElement;
|
|
515
540
|
"coc-vat-selector": HTMLCocVatSelectorElement;
|
|
541
|
+
"coc-vat-selector-admin-config": HTMLCocVatSelectorAdminConfigElement;
|
|
516
542
|
"coc-vat-table-selector": HTMLCocVatTableSelectorElement;
|
|
517
543
|
"lwc-limepkg-cpq-order-loader": HTMLLwcLimepkgCpqOrderLoaderElement;
|
|
518
544
|
}
|
|
@@ -613,6 +639,7 @@ declare namespace LocalJSX {
|
|
|
613
639
|
"context"?: LimeWebComponentContext;
|
|
614
640
|
"limetype"?: string;
|
|
615
641
|
"onPropertiesChange"?: (event: CocDynamicPropertiesCustomEvent<any>) => void;
|
|
642
|
+
"onValidate"?: (event: CocDynamicPropertiesCustomEvent<ValidationStatus>) => void;
|
|
616
643
|
/**
|
|
617
644
|
* Reference to the platform
|
|
618
645
|
*/
|
|
@@ -825,6 +852,24 @@ declare namespace LocalJSX {
|
|
|
825
852
|
"value"?: number;
|
|
826
853
|
"vatBehaviour"?: VatBehaviour;
|
|
827
854
|
}
|
|
855
|
+
interface CocVatSelectorAdminConfig {
|
|
856
|
+
/**
|
|
857
|
+
* The context this component belongs to
|
|
858
|
+
*/
|
|
859
|
+
"context"?: LimeWebComponentContext;
|
|
860
|
+
/**
|
|
861
|
+
* The event to emit when the value of the current property has changed
|
|
862
|
+
*/
|
|
863
|
+
"onChange"?: (event: CocVatSelectorAdminConfigCustomEvent<VatProps>) => void;
|
|
864
|
+
/**
|
|
865
|
+
* Reference to the platform
|
|
866
|
+
*/
|
|
867
|
+
"platform"?: LimeWebComponentPlatform;
|
|
868
|
+
/**
|
|
869
|
+
* The value of the current property
|
|
870
|
+
*/
|
|
871
|
+
"value"?: VatProps;
|
|
872
|
+
}
|
|
828
873
|
interface CocVatTableSelector {
|
|
829
874
|
"context"?: LimeWebComponentContext;
|
|
830
875
|
/**
|
|
@@ -866,6 +911,7 @@ declare namespace LocalJSX {
|
|
|
866
911
|
"coc-position-index": CocPositionIndex;
|
|
867
912
|
"coc-template-selector": CocTemplateSelector;
|
|
868
913
|
"coc-vat-selector": CocVatSelector;
|
|
914
|
+
"coc-vat-selector-admin-config": CocVatSelectorAdminConfig;
|
|
869
915
|
"coc-vat-table-selector": CocVatTableSelector;
|
|
870
916
|
"lwc-limepkg-cpq-order-loader": LwcLimepkgCpqOrderLoader;
|
|
871
917
|
}
|
|
@@ -892,6 +938,7 @@ declare module "@stencil/core" {
|
|
|
892
938
|
"coc-position-index": LocalJSX.CocPositionIndex & JSXBase.HTMLAttributes<HTMLCocPositionIndexElement>;
|
|
893
939
|
"coc-template-selector": LocalJSX.CocTemplateSelector & JSXBase.HTMLAttributes<HTMLCocTemplateSelectorElement>;
|
|
894
940
|
"coc-vat-selector": LocalJSX.CocVatSelector & JSXBase.HTMLAttributes<HTMLCocVatSelectorElement>;
|
|
941
|
+
"coc-vat-selector-admin-config": LocalJSX.CocVatSelectorAdminConfig & JSXBase.HTMLAttributes<HTMLCocVatSelectorAdminConfigElement>;
|
|
895
942
|
"coc-vat-table-selector": LocalJSX.CocVatTableSelector & JSXBase.HTMLAttributes<HTMLCocVatTableSelectorElement>;
|
|
896
943
|
"lwc-limepkg-cpq-order-loader": LocalJSX.LwcLimepkgCpqOrderLoader & JSXBase.HTMLAttributes<HTMLLwcLimepkgCpqOrderLoaderElement>;
|
|
897
944
|
}
|