@sme.up/ketchup 6.6.0 → 6.7.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.
Files changed (192) hide show
  1. package/README.md +7 -1
  2. package/dist/cjs/{f-button-a531feb2.js → f-button-bf76ab95.js} +2 -2
  3. package/dist/cjs/{f-cell-75cb7933.js → f-cell-b7a1524a.js} +21 -21
  4. package/dist/cjs/{f-checkbox-cd977193.js → f-checkbox-1097ca5d.js} +1 -1
  5. package/dist/cjs/{f-chip-9508a2e4.js → f-chip-a5e100b1.js} +3 -3
  6. package/dist/cjs/{f-image-c21cc616.js → f-image-d80a2749.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-2b72d7e8.js → f-paginator-utils-c70812fe.js} +3 -3
  8. package/dist/cjs/{f-text-field-a5b2bd0e.js → f-text-field-48b8bb16.js} +2 -2
  9. package/dist/cjs/{index-31125378.js → index-ffdb46f6.js} +423 -252
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  12. package/dist/cjs/kup-autocomplete_25.cjs.entry.js +206 -57
  13. package/dist/cjs/kup-box.cjs.entry.js +11 -10
  14. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  16. package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
  19. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
  22. package/dist/cjs/kup-form.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
  25. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  27. package/dist/cjs/{kup-manager-8e67afec.js → kup-manager-0e38bf48.js} +16 -6
  28. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  34. package/dist/cjs/loader.cjs.js +3 -3
  35. package/dist/collection/assets/box.js +9 -6
  36. package/dist/collection/collection-manifest.json +3 -3
  37. package/dist/collection/components/kup-accordion/kup-accordion.js +239 -234
  38. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +545 -530
  39. package/dist/collection/components/kup-badge/kup-badge.js +176 -170
  40. package/dist/collection/components/kup-box/kup-box.js +889 -907
  41. package/dist/collection/components/kup-button/kup-button.js +379 -370
  42. package/dist/collection/components/kup-button-list/kup-button-list.js +251 -240
  43. package/dist/collection/components/kup-calendar/kup-calendar.js +301 -300
  44. package/dist/collection/components/kup-card/box/kup-card-box.js +7 -24
  45. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +14 -28
  46. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +6 -19
  47. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
  48. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +9 -44
  49. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +2 -21
  50. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +6 -33
  51. package/dist/collection/components/kup-card/kup-card-helper.js +3 -8
  52. package/dist/collection/components/kup-card/kup-card.css +40 -0
  53. package/dist/collection/components/kup-card/kup-card.js +348 -340
  54. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +68 -81
  55. package/dist/collection/components/kup-card/standard/kup-card-standard.js +98 -278
  56. package/dist/collection/components/kup-cell/kup-cell.js +221 -216
  57. package/dist/collection/components/kup-chart/kup-chart.js +547 -537
  58. package/dist/collection/components/kup-checkbox/kup-checkbox.js +275 -266
  59. package/dist/collection/components/kup-chip/kup-chip.js +240 -231
  60. package/dist/collection/components/kup-color-picker/kup-color-picker.js +274 -264
  61. package/dist/collection/components/kup-combobox/kup-combobox.js +457 -440
  62. package/dist/collection/components/kup-dash/kup-dash.js +110 -158
  63. package/dist/collection/components/kup-dash-list/kup-dash-list.js +210 -213
  64. package/dist/collection/components/kup-dashboard/kup-dashboard.js +196 -203
  65. package/dist/collection/components/kup-data-table/kup-data-table.js +1917 -1830
  66. package/dist/collection/components/kup-date-picker/kup-date-picker.js +408 -394
  67. package/dist/collection/components/kup-drawer/kup-drawer.js +244 -236
  68. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +474 -464
  69. package/dist/collection/components/kup-echart/kup-echart.js +436 -423
  70. package/dist/collection/components/kup-family-tree/kup-family-tree.js +408 -421
  71. package/dist/collection/components/kup-form/kup-form.js +223 -225
  72. package/dist/collection/components/kup-gauge/kup-gauge.js +445 -445
  73. package/dist/collection/components/kup-grid/kup-grid.js +156 -153
  74. package/dist/collection/components/kup-iframe/kup-iframe.js +181 -173
  75. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +9 -3
  76. package/dist/collection/components/kup-image/kup-image.js +300 -295
  77. package/dist/collection/components/kup-image-list/kup-image-list.js +292 -285
  78. package/dist/collection/components/kup-lazy/kup-lazy.js +253 -253
  79. package/dist/collection/components/kup-list/kup-list.js +541 -504
  80. package/dist/collection/components/kup-magic-box/kup-magic-box.js +145 -145
  81. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +190 -184
  82. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +490 -478
  83. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +254 -242
  84. package/dist/collection/components/kup-probe/kup-probe.js +87 -83
  85. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +237 -241
  86. package/dist/collection/components/kup-qlik/kup-qlik.js +178 -170
  87. package/dist/collection/components/kup-radio/kup-radio.js +258 -255
  88. package/dist/collection/components/kup-rating/kup-rating.js +208 -197
  89. package/dist/collection/components/kup-snackbar/kup-snackbar.js +249 -246
  90. package/dist/collection/components/kup-spinner/kup-spinner.js +274 -269
  91. package/dist/collection/components/kup-switch/kup-switch.js +255 -246
  92. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +265 -224
  93. package/dist/collection/components/kup-text-field/kup-text-field.js +814 -805
  94. package/dist/collection/components/kup-time-picker/kup-time-picker.js +464 -450
  95. package/dist/collection/components/kup-tree/kup-tree-faker.js +3 -2
  96. package/dist/collection/components/kup-tree/kup-tree.js +1068 -1076
  97. package/dist/collection/f-components/f-button/f-button.js +11 -20
  98. package/dist/collection/f-components/f-cell/f-cell.js +19 -21
  99. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -9
  100. package/dist/collection/f-components/f-chip/f-chip.js +18 -31
  101. package/dist/collection/f-components/f-image/f-image.js +1 -3
  102. package/dist/collection/f-components/f-paginator/f-paginator.js +1 -6
  103. package/dist/collection/f-components/f-switch/f-switch.js +1 -8
  104. package/dist/collection/f-components/f-text-field/f-text-field.js +18 -40
  105. package/dist/collection/managers/kup-debug/kup-debug.js +10 -5
  106. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +25 -10
  107. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +10 -5
  108. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +10 -5
  109. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +0 -21
  110. package/dist/esm/{f-button-15719ec1.js → f-button-e79f7594.js} +2 -2
  111. package/dist/esm/{f-cell-692c37bf.js → f-cell-9400374e.js} +21 -21
  112. package/dist/esm/{f-checkbox-e06cf07b.js → f-checkbox-b721178e.js} +1 -1
  113. package/dist/esm/{f-chip-abab04bf.js → f-chip-bf740287.js} +3 -3
  114. package/dist/esm/{f-image-98783644.js → f-image-ab3dc8cb.js} +2 -2
  115. package/dist/esm/{f-paginator-utils-d12ee737.js → f-paginator-utils-6909e43b.js} +3 -3
  116. package/dist/esm/{f-text-field-282025dd.js → f-text-field-4841dfea.js} +2 -2
  117. package/dist/esm/{index-e41330a5.js → index-a2197376.js} +423 -252
  118. package/dist/esm/ketchup.js +3 -3
  119. package/dist/esm/kup-accordion.entry.js +3 -3
  120. package/dist/esm/kup-autocomplete_25.entry.js +206 -57
  121. package/dist/esm/kup-box.entry.js +11 -10
  122. package/dist/esm/kup-calendar.entry.js +5 -5
  123. package/dist/esm/kup-cell.entry.js +7 -7
  124. package/dist/esm/kup-dash-list.entry.js +2 -2
  125. package/dist/esm/kup-dash_2.entry.js +2 -2
  126. package/dist/esm/kup-dashboard.entry.js +6 -6
  127. package/dist/esm/kup-drawer.entry.js +2 -2
  128. package/dist/esm/kup-echart.entry.js +2 -2
  129. package/dist/esm/kup-family-tree.entry.js +4 -4
  130. package/dist/esm/kup-form.entry.js +8 -8
  131. package/dist/esm/kup-iframe.entry.js +2 -2
  132. package/dist/esm/kup-image-list.entry.js +8 -8
  133. package/dist/esm/kup-lazy.entry.js +2 -2
  134. package/dist/esm/kup-magic-box.entry.js +3 -3
  135. package/dist/esm/{kup-manager-abbae73e.js → kup-manager-c54e6df5.js} +16 -6
  136. package/dist/esm/kup-nav-bar.entry.js +2 -2
  137. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  138. package/dist/esm/kup-photo-frame.entry.js +2 -2
  139. package/dist/esm/kup-probe.entry.js +2 -2
  140. package/dist/esm/kup-qlik.entry.js +2 -2
  141. package/dist/esm/kup-snackbar.entry.js +4 -4
  142. package/dist/esm/loader.js +3 -3
  143. package/dist/esm/polyfills/css-shim.js +1 -1
  144. package/dist/ketchup/ketchup.esm.js +1 -1
  145. package/dist/ketchup/{p-5933aa02.entry.js → p-182b869e.entry.js} +1 -1
  146. package/dist/ketchup/{p-c05f2638.js → p-1dfd2a51.js} +1 -1
  147. package/dist/ketchup/{p-62f3ec78.entry.js → p-1f5c7f21.entry.js} +1 -1
  148. package/dist/ketchup/p-22ec1ba0.entry.js +9 -0
  149. package/dist/ketchup/{p-5552f156.js → p-23cd5a68.js} +1 -1
  150. package/dist/ketchup/{p-62421bcf.js → p-25bf0cb6.js} +1 -1
  151. package/dist/ketchup/{p-6946b614.entry.js → p-260ff835.entry.js} +1 -1
  152. package/dist/ketchup/{p-ccef2553.entry.js → p-2e184b57.entry.js} +1 -1
  153. package/dist/ketchup/{p-eeadd688.entry.js → p-30a63b85.entry.js} +1 -1
  154. package/dist/ketchup/{p-3760a159.entry.js → p-313e376b.entry.js} +1 -1
  155. package/dist/ketchup/{p-7e16265d.entry.js → p-41620707.entry.js} +1 -1
  156. package/dist/ketchup/{p-5ea2a1ff.entry.js → p-4a0ccf18.entry.js} +1 -1
  157. package/dist/ketchup/{p-6f3040fb.js → p-4f0d3062.js} +1 -1
  158. package/dist/ketchup/p-4fdb684f.js +2 -0
  159. package/dist/ketchup/{p-27538d6f.entry.js → p-53d3ae80.entry.js} +1 -1
  160. package/dist/ketchup/{p-20221a50.js → p-5bea2971.js} +1 -1
  161. package/dist/ketchup/{p-1ef5d16d.entry.js → p-60fa0ccf.entry.js} +1 -1
  162. package/dist/ketchup/p-6333388c.js +1 -0
  163. package/dist/ketchup/{p-725c6268.entry.js → p-6bd57787.entry.js} +1 -1
  164. package/dist/ketchup/p-758d03f4.entry.js +1 -0
  165. package/dist/ketchup/{p-9419919c.entry.js → p-7e7b6127.entry.js} +1 -1
  166. package/dist/ketchup/p-8386e3db.entry.js +1 -0
  167. package/dist/ketchup/{p-a4a30e0e.entry.js → p-859163c2.entry.js} +1 -1
  168. package/dist/ketchup/{p-a450d60a.entry.js → p-8e1fa7a8.entry.js} +1 -1
  169. package/dist/ketchup/{p-29d72040.entry.js → p-90860d9e.entry.js} +1 -1
  170. package/dist/ketchup/{p-d8af7ba6.entry.js → p-b7fdc7aa.entry.js} +1 -1
  171. package/dist/ketchup/{p-7d37ea62.entry.js → p-bffaef6e.entry.js} +1 -1
  172. package/dist/ketchup/{p-3e74e1ed.js → p-c35c5e05.js} +1 -1
  173. package/dist/ketchup/{p-e6ebdb80.js → p-e1d0ea71.js} +1 -1
  174. package/dist/ketchup/{p-fd930a34.entry.js → p-f9d5e553.entry.js} +1 -1
  175. package/dist/ketchup/{p-f6409c42.entry.js → p-fb4d772a.entry.js} +1 -1
  176. package/dist/loader/package.json +1 -0
  177. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -0
  178. package/dist/types/components/kup-card/scalable/kup-card-scalable.d.ts +6 -0
  179. package/dist/types/components/kup-data-table/kup-data-table.d.ts +15 -1
  180. package/dist/types/components/kup-list/kup-list.d.ts +5 -0
  181. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +5 -0
  182. package/dist/types/components.d.ts +23 -0
  183. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +1 -0
  184. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +2 -1
  185. package/dist/types/stencil-public-runtime.d.ts +15 -4
  186. package/package.json +1 -1
  187. package/CHANGELOG.md +0 -5
  188. package/dist/ketchup/p-1d2dea0a.entry.js +0 -1
  189. package/dist/ketchup/p-680a8cb4.entry.js +0 -9
  190. package/dist/ketchup/p-b0b3989b.js +0 -2
  191. package/dist/ketchup/p-d7a92197.entry.js +0 -1
  192. package/dist/ketchup/p-e07a10fb.js +0 -1
@@ -1,4 +1,4 @@
1
- import { Component, Element, forceUpdate, h, Host, Method, Prop, } from '@stencil/core';
1
+ import { forceUpdate, h, Host, } from '@stencil/core';
2
2
  import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
3
3
  import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
4
4
  import { getProps, setProps, unformattedStringToFormattedStringNumber, } from '../../utils/utils';
@@ -363,463 +363,463 @@ export class KupGauge {
363
363
  this.measurementUnit));
364
364
  }
365
365
  const width = { width: this.widthComponent };
366
- return (h(Host, null,
367
- h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
368
- h("div", { id: componentWrapperId, class: "gauge__container" },
369
- h("svg", { class: "gauge", style: width, viewBox: `0 0 ${this.size} ${valueLabelYPosition}` },
370
- h("g", { transform: `rotate(-90) translate(-${halvedSize}, ${halvedSize})` }, arcsElements),
371
- this.needleCircle ? (h("circle", { class: "gauge__needle-base", cx: halvedSize, cy: halvedSize, r: needleCircleRadius })) : null,
372
- h("path", { class: "gauge__needle", d: this.paintNeedle(needleLength, needleCircleRadius, halvedSize, halvedSize, this.calculateValuePercentage(this.value)) }),
373
- textElements,
374
- valueText))));
366
+ return (h(Host, null, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, class: "gauge__container" }, h("svg", { class: "gauge", style: width, viewBox: `0 0 ${this.size} ${valueLabelYPosition}` }, h("g", { transform: `rotate(-90) translate(-${halvedSize}, ${halvedSize})` }, arcsElements), this.needleCircle ? (h("circle", { class: "gauge__needle-base", cx: halvedSize, cy: halvedSize, r: needleCircleRadius })) : null, h("path", { class: "gauge__needle", d: this.paintNeedle(needleLength, needleCircleRadius, halvedSize, halvedSize, this.calculateValuePercentage(this.value)) }), textElements, valueText))));
375
367
  }
376
368
  disconnectedCallback() {
377
369
  this.kupManager.theme.unregister(this);
378
370
  }
379
371
  static get is() { return "kup-gauge"; }
380
372
  static get encapsulation() { return "shadow"; }
381
- static get originalStyleUrls() { return {
382
- "$": ["kup-gauge.scss"]
383
- }; }
384
- static get styleUrls() { return {
385
- "$": ["kup-gauge.css"]
386
- }; }
387
- static get properties() { return {
388
- "arcThickness": {
389
- "type": "number",
390
- "mutable": false,
391
- "complexType": {
392
- "original": "number",
393
- "resolved": "number",
394
- "references": {}
395
- },
396
- "required": false,
397
- "optional": false,
398
- "docs": {
399
- "tags": [{
400
- "name": "namespace",
401
- "text": "kup-gauge.arcThickness"
402
- }, {
403
- "name": "see",
404
- "text": "kup-gauge.size"
405
- }],
406
- "text": "Sets how much the arc of the gauge should be thick."
407
- },
408
- "attribute": "arc-thickness",
409
- "reflect": false,
410
- "defaultValue": "30"
411
- },
412
- "colors": {
413
- "type": "unknown",
414
- "mutable": false,
415
- "complexType": {
416
- "original": "string[]",
417
- "resolved": "string[]",
418
- "references": {}
419
- },
420
- "required": false,
421
- "optional": false,
422
- "docs": {
423
- "tags": [],
424
- "text": "Array of three elements to specify the color of the arcs."
425
- },
426
- "defaultValue": "[\r\n `var(${KupThemeColorValues.SUCCESS})`,\r\n `var(${KupThemeColorValues.WARNING})`,\r\n `var(${KupThemeColorValues.DANGER})`,\r\n ]"
427
- },
428
- "customStyle": {
429
- "type": "string",
430
- "mutable": false,
431
- "complexType": {
432
- "original": "string",
433
- "resolved": "string",
434
- "references": {}
435
- },
436
- "required": false,
437
- "optional": false,
438
- "docs": {
439
- "tags": [{
440
- "name": "default",
441
- "text": "\"\""
442
- }, {
443
- "name": "see",
444
- "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
445
- }],
446
- "text": "Custom style of the component."
447
- },
448
- "attribute": "custom-style",
449
- "reflect": false,
450
- "defaultValue": "''"
451
- },
452
- "firstThreshold": {
453
- "type": "number",
454
- "mutable": false,
455
- "complexType": {
456
- "original": "number",
457
- "resolved": "number",
458
- "references": {}
459
- },
460
- "required": false,
461
- "optional": true,
462
- "docs": {
463
- "tags": [],
464
- "text": "The first threshold, establishing the length of the first and second arc."
465
- },
466
- "attribute": "first-threshold",
467
- "reflect": false
468
- },
469
- "labelDistance": {
470
- "type": "number",
471
- "mutable": true,
472
- "complexType": {
473
- "original": "number",
474
- "resolved": "number",
475
- "references": {}
476
- },
477
- "required": false,
478
- "optional": false,
479
- "docs": {
480
- "tags": [],
481
- "text": "The distance the label and the value has from the gauge graph."
482
- },
483
- "attribute": "label-distance",
484
- "reflect": false,
485
- "defaultValue": "20"
486
- },
487
- "maxValue": {
488
- "type": "number",
489
- "mutable": true,
490
- "complexType": {
491
- "original": "number",
492
- "resolved": "number",
493
- "references": {}
494
- },
495
- "required": false,
496
- "optional": false,
497
- "docs": {
498
- "tags": [],
499
- "text": "The maximum value reachable in the current graph."
500
- },
501
- "attribute": "max-value",
502
- "reflect": false,
503
- "defaultValue": "100"
504
- },
505
- "measurementUnit": {
506
- "type": "string",
507
- "mutable": false,
508
- "complexType": {
509
- "original": "string",
510
- "resolved": "string",
511
- "references": {}
512
- },
513
- "required": false,
514
- "optional": false,
515
- "docs": {
516
- "tags": [],
517
- "text": "A string which will be appended to the displayed values of the component."
518
- },
519
- "attribute": "measurement-unit",
520
- "reflect": false,
521
- "defaultValue": "''"
522
- },
523
- "minValue": {
524
- "type": "number",
525
- "mutable": true,
526
- "complexType": {
527
- "original": "number",
528
- "resolved": "number",
529
- "references": {}
530
- },
531
- "required": false,
532
- "optional": false,
533
- "docs": {
534
- "tags": [],
535
- "text": "The minimum value reachable in the current graph."
536
- },
537
- "attribute": "min-value",
538
- "reflect": false,
539
- "defaultValue": "-100"
540
- },
541
- "needleCircle": {
542
- "type": "boolean",
543
- "mutable": false,
544
- "complexType": {
545
- "original": "boolean",
546
- "resolved": "boolean",
547
- "references": {}
548
- },
549
- "required": false,
550
- "optional": false,
551
- "docs": {
552
- "tags": [],
553
- "text": "When true, shows a rounded needle."
554
- },
555
- "attribute": "needle-circle",
556
- "reflect": false,
557
- "defaultValue": "false"
558
- },
559
- "onlyValue": {
560
- "type": "boolean",
561
- "mutable": false,
562
- "complexType": {
563
- "original": "boolean",
564
- "resolved": "boolean",
565
- "references": {}
566
- },
567
- "required": false,
568
- "optional": false,
569
- "docs": {
570
- "tags": [],
571
- "text": "When true, ignore thresholds in gauge and show colored value's arc."
572
- },
573
- "attribute": "only-value",
574
- "reflect": false,
575
- "defaultValue": "false"
576
- },
577
- "reverseColors": {
578
- "type": "boolean",
579
- "mutable": false,
580
- "complexType": {
581
- "original": "boolean",
582
- "resolved": "boolean",
583
- "references": {}
584
- },
585
- "required": false,
586
- "optional": false,
587
- "docs": {
588
- "tags": [],
589
- "text": "When true, the colors inside the colors array are used in the reversed order."
590
- },
591
- "attribute": "reverse-colors",
592
- "reflect": false,
593
- "defaultValue": "false"
594
- },
595
- "secondThreshold": {
596
- "type": "number",
597
- "mutable": false,
598
- "complexType": {
599
- "original": "number",
600
- "resolved": "number",
601
- "references": {}
602
- },
603
- "required": false,
604
- "optional": true,
605
- "docs": {
606
- "tags": [],
607
- "text": "The second threshold, establishing the length of the second and third arc."
608
- },
609
- "attribute": "second-threshold",
610
- "reflect": false
611
- },
612
- "showLabels": {
613
- "type": "boolean",
614
- "mutable": false,
615
- "complexType": {
616
- "original": "boolean",
617
- "resolved": "boolean",
618
- "references": {}
619
- },
620
- "required": false,
621
- "optional": false,
622
- "docs": {
623
- "tags": [],
624
- "text": "If set to false, threshold values of the gauge are not displayed."
625
- },
626
- "attribute": "show-labels",
627
- "reflect": false,
628
- "defaultValue": "true"
629
- },
630
- "showMaxmin": {
631
- "type": "boolean",
632
- "mutable": false,
633
- "complexType": {
634
- "original": "boolean",
635
- "resolved": "boolean",
636
- "references": {}
637
- },
638
- "required": false,
639
- "optional": false,
640
- "docs": {
641
- "tags": [],
642
- "text": "If set to false, the maximum and minimum values of the gauge are not displayed."
643
- },
644
- "attribute": "show-maxmin",
645
- "reflect": false,
646
- "defaultValue": "true"
647
- },
648
- "showValue": {
649
- "type": "boolean",
650
- "mutable": false,
651
- "complexType": {
652
- "original": "boolean",
653
- "resolved": "boolean",
654
- "references": {}
655
- },
656
- "required": false,
657
- "optional": false,
658
- "docs": {
659
- "tags": [],
660
- "text": "If set to false, the current value of the gauge is not displayed."
661
- },
662
- "attribute": "show-value",
663
- "reflect": false,
664
- "defaultValue": "true"
665
- },
666
- "size": {
667
- "type": "number",
668
- "mutable": false,
669
- "complexType": {
670
- "original": "number",
671
- "resolved": "number",
672
- "references": {}
673
- },
674
- "required": false,
675
- "optional": false,
676
- "docs": {
677
- "tags": [{
678
- "name": "namespace",
679
- "text": "kup-gauge.size"
680
- }, {
681
- "name": "see",
682
- "text": "kup-gauge.arcThickness"
683
- }],
684
- "text": "Con be used change the viewbox of the SVG.\r\nBy manipulating this value, some customizations of the aspect of the gauge is achievable."
685
- },
686
- "attribute": "size",
687
- "reflect": false,
688
- "defaultValue": "300"
689
- },
690
- "value": {
691
- "type": "number",
692
- "mutable": true,
693
- "complexType": {
694
- "original": "number",
695
- "resolved": "number",
696
- "references": {}
697
- },
698
- "required": false,
699
- "optional": false,
700
- "docs": {
701
- "tags": [],
702
- "text": "The current value of the gauge.\r\nThe gauge's needle points to the percentage based on this prop."
703
- },
704
- "attribute": "value",
705
- "reflect": false,
706
- "defaultValue": "0"
707
- },
708
- "valueSize": {
709
- "type": "number",
710
- "mutable": false,
711
- "complexType": {
712
- "original": "number",
713
- "resolved": "number",
714
- "references": {}
715
- },
716
- "required": false,
717
- "optional": false,
718
- "docs": {
719
- "tags": [],
720
- "text": "The current size of gauge's value.\r\nCorrect values are: 0,1,2 or 3."
721
- },
722
- "attribute": "value-size",
723
- "reflect": false,
724
- "defaultValue": "0"
725
- },
726
- "widthComponent": {
727
- "type": "string",
728
- "mutable": false,
729
- "complexType": {
730
- "original": "string",
731
- "resolved": "string",
732
- "references": {}
733
- },
734
- "required": false,
735
- "optional": false,
736
- "docs": {
737
- "tags": [],
738
- "text": "Set Width gauge."
739
- },
740
- "attribute": "width-component",
741
- "reflect": false,
742
- "defaultValue": "'100%'"
743
- }
744
- }; }
745
- static get methods() { return {
746
- "getProps": {
747
- "complexType": {
748
- "signature": "(descriptions?: boolean) => Promise<GenericObject>",
749
- "parameters": [{
750
- "tags": [{
751
- "name": "param",
752
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
753
- }],
754
- "text": "- When provided and true, the result will be the list of props with their description."
755
- }],
756
- "references": {
757
- "Promise": {
758
- "location": "global"
759
- },
760
- "GenericObject": {
761
- "location": "import",
762
- "path": "../../types/GenericTypes"
763
- }
373
+ static get originalStyleUrls() {
374
+ return {
375
+ "$": ["kup-gauge.scss"]
376
+ };
377
+ }
378
+ static get styleUrls() {
379
+ return {
380
+ "$": ["kup-gauge.css"]
381
+ };
382
+ }
383
+ static get properties() {
384
+ return {
385
+ "arcThickness": {
386
+ "type": "number",
387
+ "mutable": false,
388
+ "complexType": {
389
+ "original": "number",
390
+ "resolved": "number",
391
+ "references": {}
764
392
  },
765
- "return": "Promise<GenericObject>"
766
- },
767
- "docs": {
768
- "text": "Used to retrieve component's props values.",
769
- "tags": [{
770
- "name": "param",
771
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
772
- }, {
773
- "name": "returns",
774
- "text": "List of props as object, each key will be a prop."
775
- }]
393
+ "required": false,
394
+ "optional": false,
395
+ "docs": {
396
+ "tags": [{
397
+ "name": "namespace",
398
+ "text": "kup-gauge.arcThickness"
399
+ }, {
400
+ "name": "see",
401
+ "text": "kup-gauge.size"
402
+ }],
403
+ "text": "Sets how much the arc of the gauge should be thick."
404
+ },
405
+ "attribute": "arc-thickness",
406
+ "reflect": false,
407
+ "defaultValue": "30"
408
+ },
409
+ "colors": {
410
+ "type": "unknown",
411
+ "mutable": false,
412
+ "complexType": {
413
+ "original": "string[]",
414
+ "resolved": "string[]",
415
+ "references": {}
416
+ },
417
+ "required": false,
418
+ "optional": false,
419
+ "docs": {
420
+ "tags": [],
421
+ "text": "Array of three elements to specify the color of the arcs."
422
+ },
423
+ "defaultValue": "[\r\n `var(${KupThemeColorValues.SUCCESS})`,\r\n `var(${KupThemeColorValues.WARNING})`,\r\n `var(${KupThemeColorValues.DANGER})`,\r\n ]"
424
+ },
425
+ "customStyle": {
426
+ "type": "string",
427
+ "mutable": false,
428
+ "complexType": {
429
+ "original": "string",
430
+ "resolved": "string",
431
+ "references": {}
432
+ },
433
+ "required": false,
434
+ "optional": false,
435
+ "docs": {
436
+ "tags": [{
437
+ "name": "default",
438
+ "text": "\"\""
439
+ }, {
440
+ "name": "see",
441
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
442
+ }],
443
+ "text": "Custom style of the component."
444
+ },
445
+ "attribute": "custom-style",
446
+ "reflect": false,
447
+ "defaultValue": "''"
448
+ },
449
+ "firstThreshold": {
450
+ "type": "number",
451
+ "mutable": false,
452
+ "complexType": {
453
+ "original": "number",
454
+ "resolved": "number",
455
+ "references": {}
456
+ },
457
+ "required": false,
458
+ "optional": true,
459
+ "docs": {
460
+ "tags": [],
461
+ "text": "The first threshold, establishing the length of the first and second arc."
462
+ },
463
+ "attribute": "first-threshold",
464
+ "reflect": false
465
+ },
466
+ "labelDistance": {
467
+ "type": "number",
468
+ "mutable": true,
469
+ "complexType": {
470
+ "original": "number",
471
+ "resolved": "number",
472
+ "references": {}
473
+ },
474
+ "required": false,
475
+ "optional": false,
476
+ "docs": {
477
+ "tags": [],
478
+ "text": "The distance the label and the value has from the gauge graph."
479
+ },
480
+ "attribute": "label-distance",
481
+ "reflect": false,
482
+ "defaultValue": "20"
483
+ },
484
+ "maxValue": {
485
+ "type": "number",
486
+ "mutable": true,
487
+ "complexType": {
488
+ "original": "number",
489
+ "resolved": "number",
490
+ "references": {}
491
+ },
492
+ "required": false,
493
+ "optional": false,
494
+ "docs": {
495
+ "tags": [],
496
+ "text": "The maximum value reachable in the current graph."
497
+ },
498
+ "attribute": "max-value",
499
+ "reflect": false,
500
+ "defaultValue": "100"
501
+ },
502
+ "measurementUnit": {
503
+ "type": "string",
504
+ "mutable": false,
505
+ "complexType": {
506
+ "original": "string",
507
+ "resolved": "string",
508
+ "references": {}
509
+ },
510
+ "required": false,
511
+ "optional": false,
512
+ "docs": {
513
+ "tags": [],
514
+ "text": "A string which will be appended to the displayed values of the component."
515
+ },
516
+ "attribute": "measurement-unit",
517
+ "reflect": false,
518
+ "defaultValue": "''"
519
+ },
520
+ "minValue": {
521
+ "type": "number",
522
+ "mutable": true,
523
+ "complexType": {
524
+ "original": "number",
525
+ "resolved": "number",
526
+ "references": {}
527
+ },
528
+ "required": false,
529
+ "optional": false,
530
+ "docs": {
531
+ "tags": [],
532
+ "text": "The minimum value reachable in the current graph."
533
+ },
534
+ "attribute": "min-value",
535
+ "reflect": false,
536
+ "defaultValue": "-100"
537
+ },
538
+ "needleCircle": {
539
+ "type": "boolean",
540
+ "mutable": false,
541
+ "complexType": {
542
+ "original": "boolean",
543
+ "resolved": "boolean",
544
+ "references": {}
545
+ },
546
+ "required": false,
547
+ "optional": false,
548
+ "docs": {
549
+ "tags": [],
550
+ "text": "When true, shows a rounded needle."
551
+ },
552
+ "attribute": "needle-circle",
553
+ "reflect": false,
554
+ "defaultValue": "false"
555
+ },
556
+ "onlyValue": {
557
+ "type": "boolean",
558
+ "mutable": false,
559
+ "complexType": {
560
+ "original": "boolean",
561
+ "resolved": "boolean",
562
+ "references": {}
563
+ },
564
+ "required": false,
565
+ "optional": false,
566
+ "docs": {
567
+ "tags": [],
568
+ "text": "When true, ignore thresholds in gauge and show colored value's arc."
569
+ },
570
+ "attribute": "only-value",
571
+ "reflect": false,
572
+ "defaultValue": "false"
573
+ },
574
+ "reverseColors": {
575
+ "type": "boolean",
576
+ "mutable": false,
577
+ "complexType": {
578
+ "original": "boolean",
579
+ "resolved": "boolean",
580
+ "references": {}
581
+ },
582
+ "required": false,
583
+ "optional": false,
584
+ "docs": {
585
+ "tags": [],
586
+ "text": "When true, the colors inside the colors array are used in the reversed order."
587
+ },
588
+ "attribute": "reverse-colors",
589
+ "reflect": false,
590
+ "defaultValue": "false"
591
+ },
592
+ "secondThreshold": {
593
+ "type": "number",
594
+ "mutable": false,
595
+ "complexType": {
596
+ "original": "number",
597
+ "resolved": "number",
598
+ "references": {}
599
+ },
600
+ "required": false,
601
+ "optional": true,
602
+ "docs": {
603
+ "tags": [],
604
+ "text": "The second threshold, establishing the length of the second and third arc."
605
+ },
606
+ "attribute": "second-threshold",
607
+ "reflect": false
608
+ },
609
+ "showLabels": {
610
+ "type": "boolean",
611
+ "mutable": false,
612
+ "complexType": {
613
+ "original": "boolean",
614
+ "resolved": "boolean",
615
+ "references": {}
616
+ },
617
+ "required": false,
618
+ "optional": false,
619
+ "docs": {
620
+ "tags": [],
621
+ "text": "If set to false, threshold values of the gauge are not displayed."
622
+ },
623
+ "attribute": "show-labels",
624
+ "reflect": false,
625
+ "defaultValue": "true"
626
+ },
627
+ "showMaxmin": {
628
+ "type": "boolean",
629
+ "mutable": false,
630
+ "complexType": {
631
+ "original": "boolean",
632
+ "resolved": "boolean",
633
+ "references": {}
634
+ },
635
+ "required": false,
636
+ "optional": false,
637
+ "docs": {
638
+ "tags": [],
639
+ "text": "If set to false, the maximum and minimum values of the gauge are not displayed."
640
+ },
641
+ "attribute": "show-maxmin",
642
+ "reflect": false,
643
+ "defaultValue": "true"
644
+ },
645
+ "showValue": {
646
+ "type": "boolean",
647
+ "mutable": false,
648
+ "complexType": {
649
+ "original": "boolean",
650
+ "resolved": "boolean",
651
+ "references": {}
652
+ },
653
+ "required": false,
654
+ "optional": false,
655
+ "docs": {
656
+ "tags": [],
657
+ "text": "If set to false, the current value of the gauge is not displayed."
658
+ },
659
+ "attribute": "show-value",
660
+ "reflect": false,
661
+ "defaultValue": "true"
662
+ },
663
+ "size": {
664
+ "type": "number",
665
+ "mutable": false,
666
+ "complexType": {
667
+ "original": "number",
668
+ "resolved": "number",
669
+ "references": {}
670
+ },
671
+ "required": false,
672
+ "optional": false,
673
+ "docs": {
674
+ "tags": [{
675
+ "name": "namespace",
676
+ "text": "kup-gauge.size"
677
+ }, {
678
+ "name": "see",
679
+ "text": "kup-gauge.arcThickness"
680
+ }],
681
+ "text": "Con be used change the viewbox of the SVG.\r\nBy manipulating this value, some customizations of the aspect of the gauge is achievable."
682
+ },
683
+ "attribute": "size",
684
+ "reflect": false,
685
+ "defaultValue": "300"
686
+ },
687
+ "value": {
688
+ "type": "number",
689
+ "mutable": true,
690
+ "complexType": {
691
+ "original": "number",
692
+ "resolved": "number",
693
+ "references": {}
694
+ },
695
+ "required": false,
696
+ "optional": false,
697
+ "docs": {
698
+ "tags": [],
699
+ "text": "The current value of the gauge.\r\nThe gauge's needle points to the percentage based on this prop."
700
+ },
701
+ "attribute": "value",
702
+ "reflect": false,
703
+ "defaultValue": "0"
704
+ },
705
+ "valueSize": {
706
+ "type": "number",
707
+ "mutable": false,
708
+ "complexType": {
709
+ "original": "number",
710
+ "resolved": "number",
711
+ "references": {}
712
+ },
713
+ "required": false,
714
+ "optional": false,
715
+ "docs": {
716
+ "tags": [],
717
+ "text": "The current size of gauge's value.\r\nCorrect values are: 0,1,2 or 3."
718
+ },
719
+ "attribute": "value-size",
720
+ "reflect": false,
721
+ "defaultValue": "0"
722
+ },
723
+ "widthComponent": {
724
+ "type": "string",
725
+ "mutable": false,
726
+ "complexType": {
727
+ "original": "string",
728
+ "resolved": "string",
729
+ "references": {}
730
+ },
731
+ "required": false,
732
+ "optional": false,
733
+ "docs": {
734
+ "tags": [],
735
+ "text": "Set Width gauge."
736
+ },
737
+ "attribute": "width-component",
738
+ "reflect": false,
739
+ "defaultValue": "'100%'"
776
740
  }
777
- },
778
- "refresh": {
779
- "complexType": {
780
- "signature": "() => Promise<void>",
781
- "parameters": [],
782
- "references": {
783
- "Promise": {
784
- "location": "global"
785
- }
741
+ };
742
+ }
743
+ static get methods() {
744
+ return {
745
+ "getProps": {
746
+ "complexType": {
747
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
748
+ "parameters": [{
749
+ "tags": [{
750
+ "name": "param",
751
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
752
+ }],
753
+ "text": "- When provided and true, the result will be the list of props with their description."
754
+ }],
755
+ "references": {
756
+ "Promise": {
757
+ "location": "global"
758
+ },
759
+ "GenericObject": {
760
+ "location": "import",
761
+ "path": "../../types/GenericTypes"
762
+ }
763
+ },
764
+ "return": "Promise<GenericObject>"
786
765
  },
787
- "return": "Promise<void>"
766
+ "docs": {
767
+ "text": "Used to retrieve component's props values.",
768
+ "tags": [{
769
+ "name": "param",
770
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
771
+ }, {
772
+ "name": "returns",
773
+ "text": "List of props as object, each key will be a prop."
774
+ }]
775
+ }
788
776
  },
789
- "docs": {
790
- "text": "This method is used to trigger a new render of the component.",
791
- "tags": []
792
- }
793
- },
794
- "setProps": {
795
- "complexType": {
796
- "signature": "(props: GenericObject) => Promise<void>",
797
- "parameters": [{
798
- "tags": [{
799
- "name": "param",
800
- "text": "props - Object containing props that will be set to the component."
801
- }],
802
- "text": "- Object containing props that will be set to the component."
803
- }],
804
- "references": {
805
- "Promise": {
806
- "location": "global"
777
+ "refresh": {
778
+ "complexType": {
779
+ "signature": "() => Promise<void>",
780
+ "parameters": [],
781
+ "references": {
782
+ "Promise": {
783
+ "location": "global"
784
+ }
807
785
  },
808
- "GenericObject": {
809
- "location": "import",
810
- "path": "../../types/GenericTypes"
811
- }
786
+ "return": "Promise<void>"
812
787
  },
813
- "return": "Promise<void>"
788
+ "docs": {
789
+ "text": "This method is used to trigger a new render of the component.",
790
+ "tags": []
791
+ }
814
792
  },
815
- "docs": {
816
- "text": "Sets the props to the component.",
817
- "tags": [{
818
- "name": "param",
819
- "text": "props - Object containing props that will be set to the component."
820
- }]
793
+ "setProps": {
794
+ "complexType": {
795
+ "signature": "(props: GenericObject) => Promise<void>",
796
+ "parameters": [{
797
+ "tags": [{
798
+ "name": "param",
799
+ "text": "props - Object containing props that will be set to the component."
800
+ }],
801
+ "text": "- Object containing props that will be set to the component."
802
+ }],
803
+ "references": {
804
+ "Promise": {
805
+ "location": "global"
806
+ },
807
+ "GenericObject": {
808
+ "location": "import",
809
+ "path": "../../types/GenericTypes"
810
+ }
811
+ },
812
+ "return": "Promise<void>"
813
+ },
814
+ "docs": {
815
+ "text": "Sets the props to the component.",
816
+ "tags": [{
817
+ "name": "param",
818
+ "text": "props - Object containing props that will be set to the component."
819
+ }]
820
+ }
821
821
  }
822
- }
823
- }; }
822
+ };
823
+ }
824
824
  static get elementRef() { return "rootElement"; }
825
825
  }