@limetech/limepkg-cpq-order 2.12.4 → 2.13.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.
@@ -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;
@@ -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";
@@ -298,6 +298,18 @@ export namespace Components {
298
298
  "value": number;
299
299
  "vatBehaviour": VatBehaviour;
300
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
+ }
301
313
  interface LwcLimepkgCpqOrderLoader {
302
314
  /**
303
315
  * The context this component belongs to
@@ -470,6 +482,12 @@ declare global {
470
482
  prototype: HTMLCocVatSelectorElement;
471
483
  new (): HTMLCocVatSelectorElement;
472
484
  };
485
+ interface HTMLCocVatTableSelectorElement extends Components.CocVatTableSelector, HTMLStencilElement {
486
+ }
487
+ var HTMLCocVatTableSelectorElement: {
488
+ prototype: HTMLCocVatTableSelectorElement;
489
+ new (): HTMLCocVatTableSelectorElement;
490
+ };
473
491
  interface HTMLLwcLimepkgCpqOrderLoaderElement extends Components.LwcLimepkgCpqOrderLoader, HTMLStencilElement {
474
492
  }
475
493
  var HTMLLwcLimepkgCpqOrderLoaderElement: {
@@ -495,6 +513,7 @@ declare global {
495
513
  "coc-position-index": HTMLCocPositionIndexElement;
496
514
  "coc-template-selector": HTMLCocTemplateSelectorElement;
497
515
  "coc-vat-selector": HTMLCocVatSelectorElement;
516
+ "coc-vat-table-selector": HTMLCocVatTableSelectorElement;
498
517
  "lwc-limepkg-cpq-order-loader": HTMLLwcLimepkgCpqOrderLoaderElement;
499
518
  }
500
519
  }
@@ -806,6 +825,18 @@ declare namespace LocalJSX {
806
825
  "value"?: number;
807
826
  "vatBehaviour"?: VatBehaviour;
808
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
+ }
809
840
  interface LwcLimepkgCpqOrderLoader {
810
841
  /**
811
842
  * The context this component belongs to
@@ -835,6 +866,7 @@ declare namespace LocalJSX {
835
866
  "coc-position-index": CocPositionIndex;
836
867
  "coc-template-selector": CocTemplateSelector;
837
868
  "coc-vat-selector": CocVatSelector;
869
+ "coc-vat-table-selector": CocVatTableSelector;
838
870
  "lwc-limepkg-cpq-order-loader": LwcLimepkgCpqOrderLoader;
839
871
  }
840
872
  }
@@ -860,6 +892,7 @@ declare module "@stencil/core" {
860
892
  "coc-position-index": LocalJSX.CocPositionIndex & JSXBase.HTMLAttributes<HTMLCocPositionIndexElement>;
861
893
  "coc-template-selector": LocalJSX.CocTemplateSelector & JSXBase.HTMLAttributes<HTMLCocTemplateSelectorElement>;
862
894
  "coc-vat-selector": LocalJSX.CocVatSelector & JSXBase.HTMLAttributes<HTMLCocVatSelectorElement>;
895
+ "coc-vat-table-selector": LocalJSX.CocVatTableSelector & JSXBase.HTMLAttributes<HTMLCocVatTableSelectorElement>;
863
896
  "lwc-limepkg-cpq-order-loader": LocalJSX.LwcLimepkgCpqOrderLoader & JSXBase.HTMLAttributes<HTMLLwcLimepkgCpqOrderLoaderElement>;
864
897
  }
865
898
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/limepkg-cpq-order",
3
- "version": "2.12.4",
3
+ "version": "2.13.0",
4
4
  "description": "Type definitions for limepkg-cpq-order frontend",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",