@limetech/limepkg-cpq-order 2.14.1 → 2.14.2-dev.1

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.
@@ -1,4 +1,5 @@
1
- import { LimeWebComponent, LimeWebComponentContext, LimeWebComponentPlatform } from '@limetech/lime-web-components';
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
- componentWillLoad(): Promise<void>;
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
  }
@@ -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";
@@ -613,6 +614,7 @@ declare namespace LocalJSX {
613
614
  "context"?: LimeWebComponentContext;
614
615
  "limetype"?: string;
615
616
  "onPropertiesChange"?: (event: CocDynamicPropertiesCustomEvent<any>) => void;
617
+ "onValidate"?: (event: CocDynamicPropertiesCustomEvent<ValidationStatus>) => void;
616
618
  /**
617
619
  * Reference to the platform
618
620
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/limepkg-cpq-order",
3
- "version": "2.14.1",
3
+ "version": "2.14.2-dev.1",
4
4
  "description": "Type definitions for limepkg-cpq-order frontend",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",