@limetech/limepkg-cpq-order 2.8.0 → 2.9.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.
@@ -68,17 +68,13 @@ export declare class ItemForm implements LimeWebComponent {
68
68
  };
69
69
  };
70
70
  vat: {
71
- type: string;
72
71
  title: string;
72
+ minimum: number;
73
73
  lime: {
74
74
  component: {
75
75
  name: string;
76
76
  props: {
77
- factor: number;
78
- step: number;
79
- valuemin: number;
80
- valuemax: number;
81
- unit: string;
77
+ value: number;
82
78
  };
83
79
  };
84
80
  };
@@ -0,0 +1,21 @@
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
+ export declare class VatSelector implements LimeWebComponent, FormComponent {
5
+ platform: LimeWebComponentPlatform;
6
+ context: LimeWebComponentContext;
7
+ label: string;
8
+ value: number;
9
+ required?: boolean;
10
+ readonly?: boolean;
11
+ disabled?: boolean;
12
+ helperText?: string;
13
+ change: EventEmitter<number>;
14
+ vatValue: string;
15
+ private readonly hundred;
16
+ componentWillLoad(): void;
17
+ componentWillUpdate(): void;
18
+ private roundToOneDecimal;
19
+ render(): any;
20
+ private handleChange;
21
+ }
@@ -245,6 +245,40 @@ export namespace Components {
245
245
  */
246
246
  "platform": LimeWebComponentPlatform;
247
247
  }
248
+ interface CocVatSelector {
249
+ /**
250
+ * The context this component belongs to
251
+ */
252
+ "context": LimeWebComponentContext;
253
+ /**
254
+ * Whether or not the current property is disabled
255
+ */
256
+ "disabled"?: boolean;
257
+ /**
258
+ * The helper text for the current property
259
+ */
260
+ "helperText"?: string;
261
+ /**
262
+ * The label of the current property
263
+ */
264
+ "label": string;
265
+ /**
266
+ * Reference to the platform
267
+ */
268
+ "platform": LimeWebComponentPlatform;
269
+ /**
270
+ * Whether or not the current property is readonly
271
+ */
272
+ "readonly"?: boolean;
273
+ /**
274
+ * Whether or not the current property is required
275
+ */
276
+ "required"?: boolean;
277
+ /**
278
+ * The value of the current property
279
+ */
280
+ "value": number;
281
+ }
248
282
  interface LwcLimepkgCpqOrderLoader {
249
283
  /**
250
284
  * The context this component belongs to
@@ -296,6 +330,10 @@ export interface CocTemplateSelectorCustomEvent<T> extends CustomEvent<T> {
296
330
  detail: T;
297
331
  target: HTMLCocTemplateSelectorElement;
298
332
  }
333
+ export interface CocVatSelectorCustomEvent<T> extends CustomEvent<T> {
334
+ detail: T;
335
+ target: HTMLCocVatSelectorElement;
336
+ }
299
337
  declare global {
300
338
  interface HTMLCocArticleGroupPickerElement extends Components.CocArticleGroupPicker, HTMLStencilElement {
301
339
  }
@@ -393,6 +431,12 @@ declare global {
393
431
  prototype: HTMLCocTemplateSelectorElement;
394
432
  new (): HTMLCocTemplateSelectorElement;
395
433
  };
434
+ interface HTMLCocVatSelectorElement extends Components.CocVatSelector, HTMLStencilElement {
435
+ }
436
+ var HTMLCocVatSelectorElement: {
437
+ prototype: HTMLCocVatSelectorElement;
438
+ new (): HTMLCocVatSelectorElement;
439
+ };
396
440
  interface HTMLLwcLimepkgCpqOrderLoaderElement extends Components.LwcLimepkgCpqOrderLoader, HTMLStencilElement {
397
441
  }
398
442
  var HTMLLwcLimepkgCpqOrderLoaderElement: {
@@ -416,6 +460,7 @@ declare global {
416
460
  "coc-order-card": HTMLCocOrderCardElement;
417
461
  "coc-order-view": HTMLCocOrderViewElement;
418
462
  "coc-template-selector": HTMLCocTemplateSelectorElement;
463
+ "coc-vat-selector": HTMLCocVatSelectorElement;
419
464
  "lwc-limepkg-cpq-order-loader": HTMLLwcLimepkgCpqOrderLoaderElement;
420
465
  }
421
466
  }
@@ -667,6 +712,44 @@ declare namespace LocalJSX {
667
712
  */
668
713
  "platform"?: LimeWebComponentPlatform;
669
714
  }
715
+ interface CocVatSelector {
716
+ /**
717
+ * The context this component belongs to
718
+ */
719
+ "context"?: LimeWebComponentContext;
720
+ /**
721
+ * Whether or not the current property is disabled
722
+ */
723
+ "disabled"?: boolean;
724
+ /**
725
+ * The helper text for the current property
726
+ */
727
+ "helperText"?: string;
728
+ /**
729
+ * The label of the current property
730
+ */
731
+ "label"?: string;
732
+ /**
733
+ * The event to emit when the value of the current property has changed
734
+ */
735
+ "onChange"?: (event: CocVatSelectorCustomEvent<number>) => void;
736
+ /**
737
+ * Reference to the platform
738
+ */
739
+ "platform"?: LimeWebComponentPlatform;
740
+ /**
741
+ * Whether or not the current property is readonly
742
+ */
743
+ "readonly"?: boolean;
744
+ /**
745
+ * Whether or not the current property is required
746
+ */
747
+ "required"?: boolean;
748
+ /**
749
+ * The value of the current property
750
+ */
751
+ "value"?: number;
752
+ }
670
753
  interface LwcLimepkgCpqOrderLoader {
671
754
  /**
672
755
  * The context this component belongs to
@@ -694,6 +777,7 @@ declare namespace LocalJSX {
694
777
  "coc-order-card": CocOrderCard;
695
778
  "coc-order-view": CocOrderView;
696
779
  "coc-template-selector": CocTemplateSelector;
780
+ "coc-vat-selector": CocVatSelector;
697
781
  "lwc-limepkg-cpq-order-loader": LwcLimepkgCpqOrderLoader;
698
782
  }
699
783
  }
@@ -717,6 +801,7 @@ declare module "@stencil/core" {
717
801
  "coc-order-card": LocalJSX.CocOrderCard & JSXBase.HTMLAttributes<HTMLCocOrderCardElement>;
718
802
  "coc-order-view": LocalJSX.CocOrderView & JSXBase.HTMLAttributes<HTMLCocOrderViewElement>;
719
803
  "coc-template-selector": LocalJSX.CocTemplateSelector & JSXBase.HTMLAttributes<HTMLCocTemplateSelectorElement>;
804
+ "coc-vat-selector": LocalJSX.CocVatSelector & JSXBase.HTMLAttributes<HTMLCocVatSelectorElement>;
720
805
  "lwc-limepkg-cpq-order-loader": LocalJSX.LwcLimepkgCpqOrderLoader & JSXBase.HTMLAttributes<HTMLLwcLimepkgCpqOrderLoaderElement>;
721
806
  }
722
807
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/limepkg-cpq-order",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
4
4
  "description": "CPQ Order",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",