@limetech/limepkg-cpq-order 2.11.0-dev.20 → 2.11.0-dev.22

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,3 +1,3 @@
1
1
  export declare function formatNumber(value: number): string;
2
2
  export declare function formatNumberNoZeros(value: number): string;
3
- export declare function formatPercentNoZeros(value: number): string;
3
+ export declare function formatVatPercent(value: number): string;
@@ -5,7 +5,6 @@ export declare class DynamicProperties implements LimeWebComponent {
5
5
  context: LimeWebComponentContext;
6
6
  limetype: string;
7
7
  properties: Record<string, any>;
8
- columns?: number;
9
8
  private schema;
10
9
  private limeobjectService;
11
10
  private formData;
@@ -15,6 +15,7 @@ export declare class VatSelector implements LimeWebComponent, FormComponent {
15
15
  change: EventEmitter<number>;
16
16
  vatValue: string;
17
17
  private readonly hundred;
18
+ private readonly two;
18
19
  componentWillLoad(): void;
19
20
  componentWillUpdate(): void;
20
21
  private roundToOneDecimal;
@@ -0,0 +1,13 @@
1
+ import { LimeObject, LimeWebComponentContext, LimeWebComponentPlatform } from '@limetech/lime-web-components';
2
+ import { TableComponent } from '@limetech/lime-elements';
3
+ export declare class VatTableSelector implements TableComponent {
4
+ platform: LimeWebComponentPlatform;
5
+ context: LimeWebComponentContext;
6
+ data: LimeObject;
7
+ field: string;
8
+ vatValue: string;
9
+ private readonly hundred;
10
+ private readonly two;
11
+ componentWillLoad(): void;
12
+ render(): any;
13
+ }
@@ -5,7 +5,7 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
- import { LimeProperty, LimeType, LimeWebComponentContext, LimeWebComponentPlatform } from "@limetech/lime-web-components";
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
11
  import { StatusLabelMapping } from "./components/erp-status/flow-items";
@@ -98,7 +98,6 @@ export namespace Components {
98
98
  "platform": LimeWebComponentPlatform;
99
99
  }
100
100
  interface CocDynamicProperties {
101
- "columns"?: number;
102
101
  /**
103
102
  * The context this component belongs to
104
103
  */
@@ -299,6 +298,18 @@ export namespace Components {
299
298
  "value": number;
300
299
  "vatBehaviour": VatBehaviour;
301
300
  }
301
+ interface CocVatTableSelector {
302
+ "context": LimeWebComponentContext;
303
+ /**
304
+ * Data for the current row of the table
305
+ */
306
+ "data": LimeObject;
307
+ /**
308
+ * Name of the field being rendered
309
+ */
310
+ "field": string;
311
+ "platform": LimeWebComponentPlatform;
312
+ }
302
313
  interface LwcLimepkgCpqOrderLoader {
303
314
  /**
304
315
  * The context this component belongs to
@@ -471,6 +482,12 @@ declare global {
471
482
  prototype: HTMLCocVatSelectorElement;
472
483
  new (): HTMLCocVatSelectorElement;
473
484
  };
485
+ interface HTMLCocVatTableSelectorElement extends Components.CocVatTableSelector, HTMLStencilElement {
486
+ }
487
+ var HTMLCocVatTableSelectorElement: {
488
+ prototype: HTMLCocVatTableSelectorElement;
489
+ new (): HTMLCocVatTableSelectorElement;
490
+ };
474
491
  interface HTMLLwcLimepkgCpqOrderLoaderElement extends Components.LwcLimepkgCpqOrderLoader, HTMLStencilElement {
475
492
  }
476
493
  var HTMLLwcLimepkgCpqOrderLoaderElement: {
@@ -496,6 +513,7 @@ declare global {
496
513
  "coc-position-index": HTMLCocPositionIndexElement;
497
514
  "coc-template-selector": HTMLCocTemplateSelectorElement;
498
515
  "coc-vat-selector": HTMLCocVatSelectorElement;
516
+ "coc-vat-table-selector": HTMLCocVatTableSelectorElement;
499
517
  "lwc-limepkg-cpq-order-loader": HTMLLwcLimepkgCpqOrderLoaderElement;
500
518
  }
501
519
  }
@@ -589,7 +607,6 @@ declare namespace LocalJSX {
589
607
  "platform"?: LimeWebComponentPlatform;
590
608
  }
591
609
  interface CocDynamicProperties {
592
- "columns"?: number;
593
610
  /**
594
611
  * The context this component belongs to
595
612
  */
@@ -808,6 +825,18 @@ declare namespace LocalJSX {
808
825
  "value"?: number;
809
826
  "vatBehaviour"?: VatBehaviour;
810
827
  }
828
+ interface CocVatTableSelector {
829
+ "context"?: LimeWebComponentContext;
830
+ /**
831
+ * Data for the current row of the table
832
+ */
833
+ "data"?: LimeObject;
834
+ /**
835
+ * Name of the field being rendered
836
+ */
837
+ "field"?: string;
838
+ "platform"?: LimeWebComponentPlatform;
839
+ }
811
840
  interface LwcLimepkgCpqOrderLoader {
812
841
  /**
813
842
  * The context this component belongs to
@@ -837,6 +866,7 @@ declare namespace LocalJSX {
837
866
  "coc-position-index": CocPositionIndex;
838
867
  "coc-template-selector": CocTemplateSelector;
839
868
  "coc-vat-selector": CocVatSelector;
869
+ "coc-vat-table-selector": CocVatTableSelector;
840
870
  "lwc-limepkg-cpq-order-loader": LwcLimepkgCpqOrderLoader;
841
871
  }
842
872
  }
@@ -862,6 +892,7 @@ declare module "@stencil/core" {
862
892
  "coc-position-index": LocalJSX.CocPositionIndex & JSXBase.HTMLAttributes<HTMLCocPositionIndexElement>;
863
893
  "coc-template-selector": LocalJSX.CocTemplateSelector & JSXBase.HTMLAttributes<HTMLCocTemplateSelectorElement>;
864
894
  "coc-vat-selector": LocalJSX.CocVatSelector & JSXBase.HTMLAttributes<HTMLCocVatSelectorElement>;
895
+ "coc-vat-table-selector": LocalJSX.CocVatTableSelector & JSXBase.HTMLAttributes<HTMLCocVatTableSelectorElement>;
865
896
  "lwc-limepkg-cpq-order-loader": LocalJSX.LwcLimepkgCpqOrderLoader & JSXBase.HTMLAttributes<HTMLLwcLimepkgCpqOrderLoaderElement>;
866
897
  }
867
898
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/limepkg-cpq-order",
3
- "version": "2.11.0-dev.20",
3
+ "version": "2.11.0-dev.22",
4
4
  "description": "Type definitions for limepkg-cpq-order frontend",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",