@limetech/limepkg-cpq-order 2.10.0 → 2.10.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.
@@ -12,7 +12,7 @@ export declare class ItemForm implements LimeWebComponent {
12
12
  */
13
13
  context: LimeWebComponentContext;
14
14
  itemData: Item;
15
- currency: String;
15
+ currency: string;
16
16
  itemMapping: IconfigItemMapping;
17
17
  limetype: LimeType;
18
18
  validate: EventEmitter;
@@ -62,7 +62,7 @@ export declare class ItemForm implements LimeWebComponent {
62
62
  lime: {
63
63
  component: {
64
64
  props: {
65
- suffix: String;
65
+ suffix: string;
66
66
  };
67
67
  };
68
68
  };
@@ -85,7 +85,7 @@ export declare class ItemForm implements LimeWebComponent {
85
85
  oneOf: {
86
86
  type: string;
87
87
  const: string;
88
- title: String;
88
+ title: string;
89
89
  }[];
90
90
  lime: {
91
91
  component: {
@@ -102,7 +102,7 @@ export declare class ItemForm implements LimeWebComponent {
102
102
  lime: {
103
103
  component: {
104
104
  props: {
105
- prefix: String;
105
+ prefix: string;
106
106
  readonly: boolean;
107
107
  };
108
108
  };
@@ -11,7 +11,7 @@ export declare class ItemTable implements LimeWebComponent {
11
11
  */
12
12
  context: LimeWebComponentContext;
13
13
  items: Item[];
14
- discount: Number;
14
+ discount: number;
15
15
  activeRow: Item;
16
16
  tableIsReadonly: boolean;
17
17
  itemMapping: IconfigItemMapping;
@@ -147,7 +147,7 @@ export namespace Components {
147
147
  * @inherit
148
148
  */
149
149
  "context": LimeWebComponentContext;
150
- "currency": String;
150
+ "currency": string;
151
151
  "itemData": Item;
152
152
  "itemMapping": IconfigItemMapping;
153
153
  "limetype": LimeType;
@@ -182,7 +182,7 @@ export namespace Components {
182
182
  * @inherit
183
183
  */
184
184
  "context": LimeWebComponentContext;
185
- "discount": Number;
185
+ "discount": number;
186
186
  "itemMapping": IconfigItemMapping;
187
187
  "items": Item[];
188
188
  /**
@@ -611,7 +611,7 @@ declare namespace LocalJSX {
611
611
  * @inherit
612
612
  */
613
613
  "context"?: LimeWebComponentContext;
614
- "currency"?: String;
614
+ "currency"?: string;
615
615
  "itemData"?: Item;
616
616
  "itemMapping"?: IconfigItemMapping;
617
617
  "limetype"?: LimeType;
@@ -647,7 +647,7 @@ declare namespace LocalJSX {
647
647
  * @inherit
648
648
  */
649
649
  "context"?: LimeWebComponentContext;
650
- "discount"?: Number;
650
+ "discount"?: number;
651
651
  "itemMapping"?: IconfigItemMapping;
652
652
  "items"?: Item[];
653
653
  /**
@@ -221,7 +221,8 @@ export declare type ErrorHandler = (err: any, element?: HTMLElement) => void;
221
221
  */
222
222
  export declare const setMode: (handler: ResolutionHandler) => void;
223
223
  /**
224
- * getMode
224
+ * `getMode()` is used for libraries which provide multiple "modes" for styles.
225
+ * @param ref a reference to the node to get styles for
225
226
  */
226
227
  export declare function getMode<T = string | undefined>(ref: any): T;
227
228
  export declare function setPlatformHelpers(helpers: {
@@ -234,6 +235,8 @@ export declare function setPlatformHelpers(helpers: {
234
235
  /**
235
236
  * Get the base path to where the assets can be found. Use `setAssetPath(path)`
236
237
  * if the path needs to be customized.
238
+ * @param path the path to use in calculating the asset path. this value will be
239
+ * used in conjunction with the base asset path
237
240
  */
238
241
  export declare function getAssetPath(path: string): string;
239
242
  /**
@@ -246,18 +249,22 @@ export declare function getAssetPath(path: string): string;
246
249
  * `setAssetPath(document.currentScript.src)`, or using a bundler's replace plugin to
247
250
  * dynamically set the path at build time, such as `setAssetPath(process.env.ASSET_PATH)`.
248
251
  * But do note that this configuration depends on how your script is bundled, or lack of
249
- * bunding, and where your assets can be loaded from. Additionally custom bundling
252
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
250
253
  * will have to ensure the static assets are copied to its build directory.
254
+ * @param path the asset path to set
251
255
  */
252
256
  export declare function setAssetPath(path: string): string;
253
257
  /**
254
- * getElement
258
+ * Retrieve a Stencil element for a given reference
259
+ * @param ref the ref to get the Stencil element for
255
260
  */
256
261
  export declare function getElement(ref: any): HTMLStencilElement;
257
262
  /**
258
263
  * Schedules a new render of the given instance or element even if no state changed.
259
264
  *
260
- * Notice `forceUpdate()` is not syncronous and might perform the DOM render in the next frame.
265
+ * Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame.
266
+ *
267
+ * @param ref the node/element to force the re-render of
261
268
  */
262
269
  export declare function forceUpdate(ref: any): void;
263
270
  /**
@@ -272,6 +279,8 @@ export interface HTMLStencilElement extends HTMLElement {
272
279
  * in the best moment to perform DOM mutation without causing layout thrashing.
273
280
  *
274
281
  * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
282
+ *
283
+ * @param task the DOM-write to schedule
275
284
  */
276
285
  export declare function writeTask(task: RafCallback): void;
277
286
  /**
@@ -279,6 +288,8 @@ export declare function writeTask(task: RafCallback): void;
279
288
  * in the best moment to perform DOM reads without causing layout thrashing.
280
289
  *
281
290
  * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
291
+ *
292
+ * @param task the DOM-read to schedule
282
293
  */
283
294
  export declare function readTask(task: RafCallback): void;
284
295
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/limepkg-cpq-order",
3
- "version": "2.10.0",
3
+ "version": "2.10.2",
4
4
  "description": "CPQ Order",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -41,18 +41,18 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@limetech/lime-elements": "^36.0.0",
44
- "@limetech/lime-web-components": "^5.0.1",
45
- "@stencil/core": "^2.17.4",
44
+ "@limetech/lime-web-components": "^5.31.0",
45
+ "@stencil/core": "2.18.1",
46
46
  "@stencil/sass": "^1.5.2",
47
47
  "@types/jest": "^27.0.3",
48
- "@typescript-eslint/eslint-plugin": "^5.53.0",
48
+ "@typescript-eslint/eslint-plugin": "^8.8.1",
49
49
  "cross-env": "^7.0.3",
50
- "eslint": "^7.32.0",
51
- "eslint-config-prettier": "^8.5.0",
52
- "eslint-plugin-jsdoc": "^39.3.6",
50
+ "eslint": "^9.12.0",
51
+ "eslint-config-prettier": "^9.1.0",
53
52
  "eslint-plugin-prefer-arrow": "^1.2.3",
54
- "eslint-plugin-prettier": "^4.0.0",
55
- "eslint-plugin-sonarjs": "^0.13.0",
53
+ "eslint-plugin-prettier": "^5.2.1",
54
+ "eslint-plugin-sonarjs": "^2.0.3",
55
+ "eslint-plugin-tsdoc": "^0.3.0",
56
56
  "jest": "^27.0.1",
57
57
  "jest-cli": "^27.5.1",
58
58
  "shx": "^0.3.3",