@sme.up/ketchup 6.6.0 → 6.8.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.
- package/README.md +7 -1
- package/dist/cjs/{f-button-a531feb2.js → f-button-229c63fd.js} +2 -2
- package/dist/cjs/{f-cell-75cb7933.js → f-cell-dd006395.js} +22 -22
- package/dist/cjs/{f-checkbox-cd977193.js → f-checkbox-1097ca5d.js} +1 -1
- package/dist/cjs/{f-chip-9508a2e4.js → f-chip-f2c369fd.js} +3 -3
- package/dist/cjs/{f-image-c21cc616.js → f-image-847a6ddf.js} +2 -2
- package/dist/cjs/{f-paginator-utils-2b72d7e8.js → f-paginator-utils-cedc4b3e.js} +3 -3
- package/dist/cjs/{f-text-field-a5b2bd0e.js → f-text-field-fe85187d.js} +2 -2
- package/dist/cjs/{index-31125378.js → index-ffdb46f6.js} +423 -252
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +7 -30
- package/dist/cjs/{kup-autocomplete_25.cjs.entry.js → kup-autocomplete_26.cjs.entry.js} +3925 -4288
- package/dist/cjs/kup-box.cjs.entry.js +33 -113
- package/dist/cjs/kup-calendar.cjs.entry.js +10 -34
- package/dist/cjs/kup-cell.cjs.entry.js +10 -29
- package/dist/cjs/kup-dash-list.cjs.entry.js +10 -9
- package/dist/cjs/kup-dash_2.cjs.entry.js +7 -35
- package/dist/cjs/kup-dashboard.cjs.entry.js +10 -32
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -19
- package/dist/cjs/kup-echart.cjs.entry.js +16 -77
- package/dist/cjs/kup-family-tree.cjs.entry.js +12 -48
- package/dist/cjs/kup-iframe.cjs.entry.js +5 -17
- package/dist/cjs/kup-image-list.cjs.entry.js +16 -34
- package/dist/cjs/kup-lazy.cjs.entry.js +10 -37
- package/dist/cjs/kup-magic-box.cjs.entry.js +6 -25
- package/dist/cjs/{kup-manager-8e67afec.js → kup-manager-c53468cd.js} +82 -7
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -16
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +14 -57
- package/dist/cjs/kup-photo-frame.cjs.entry.js +9 -31
- package/dist/cjs/kup-probe.cjs.entry.js +13 -33
- package/dist/cjs/kup-qlik.cjs.entry.js +6 -60
- package/dist/cjs/kup-snackbar.cjs.entry.js +7 -38
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/assets/box.js +9 -6
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/kup-accordion/kup-accordion.js +243 -261
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +560 -594
- package/dist/collection/components/kup-badge/kup-badge.js +179 -189
- package/dist/collection/components/kup-box/kup-box.js +911 -1010
- package/dist/collection/components/kup-button/kup-button.js +382 -428
- package/dist/collection/components/kup-button-list/kup-button-list.js +254 -278
- package/dist/collection/components/kup-calendar/kup-calendar.js +306 -329
- package/dist/collection/components/kup-card/box/kup-card-box.js +10 -24
- package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +10 -2
- package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +14 -28
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +6 -19
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
- package/dist/collection/components/kup-card/built-in/kup-card-form.js +11 -0
- package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +9 -44
- package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +2 -21
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +6 -33
- package/dist/collection/components/kup-card/kup-card-helper.js +3 -8
- package/dist/collection/components/kup-card/kup-card.css +118 -12
- package/dist/collection/components/kup-card/kup-card.js +394 -385
- package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +68 -81
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +98 -278
- package/dist/collection/components/kup-cell/kup-cell.js +224 -238
- package/dist/collection/components/kup-chart/kup-chart.js +562 -586
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +278 -304
- package/dist/collection/components/kup-chip/kup-chip.js +243 -250
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +278 -299
- package/dist/collection/components/kup-combobox/kup-combobox.js +467 -482
- package/dist/collection/components/kup-dash/kup-dash.js +112 -172
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +218 -220
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +200 -229
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +2 -0
- package/dist/collection/components/kup-data-table/kup-data-table.css +9 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +4700 -4452
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +415 -429
- package/dist/collection/components/kup-drawer/kup-drawer.js +246 -253
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +486 -527
- package/dist/collection/components/kup-echart/kup-echart.js +450 -498
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +416 -465
- package/dist/collection/components/kup-form/kup-form.js +226 -248
- package/dist/collection/components/kup-gauge/kup-gauge.js +460 -521
- package/dist/collection/components/kup-grid/kup-grid.js +159 -172
- package/dist/collection/components/kup-iframe/kup-iframe.js +184 -188
- package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +9 -3
- package/dist/collection/components/kup-image/kup-image.js +305 -340
- package/dist/collection/components/kup-image-list/kup-image-list.js +300 -311
- package/dist/collection/components/kup-lazy/kup-lazy.js +261 -288
- package/dist/collection/components/kup-list/kup-list.js +546 -572
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +148 -167
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +192 -198
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +501 -532
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +261 -271
- package/dist/collection/components/kup-probe/kup-probe.js +98 -114
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +240 -276
- package/dist/collection/components/kup-qlik/kup-qlik.js +182 -228
- package/dist/collection/components/kup-radio/kup-radio.js +261 -289
- package/dist/collection/components/kup-rating/kup-rating.js +212 -224
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +252 -280
- package/dist/collection/components/kup-spinner/kup-spinner.js +277 -308
- package/dist/collection/components/kup-switch/kup-switch.js +258 -280
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +268 -247
- package/dist/collection/components/kup-text-field/kup-text-field.js +816 -920
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +472 -493
- package/dist/collection/components/kup-tree/kup-tree-faker.js +3 -2
- package/dist/collection/components/kup-tree/kup-tree.js +1107 -1205
- package/dist/collection/f-components/f-button/f-button.js +11 -20
- package/dist/collection/f-components/f-cell/f-cell.js +20 -22
- package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -9
- package/dist/collection/f-components/f-chip/f-chip.js +18 -31
- package/dist/collection/f-components/f-image/f-image.js +1 -3
- package/dist/collection/f-components/f-paginator/f-paginator.js +1 -6
- package/dist/collection/f-components/f-switch/f-switch.js +1 -8
- package/dist/collection/f-components/f-text-field/f-text-field.js +18 -40
- package/dist/collection/managers/kup-debug/kup-debug.js +10 -5
- package/dist/collection/managers/kup-language/kup-language-declarations.js +6 -0
- package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +25 -10
- package/dist/collection/managers/kup-toolbar/kup-toolbar.js +10 -5
- package/dist/collection/managers/kup-tooltip/kup-tooltip.js +10 -5
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +0 -21
- package/dist/esm/{f-button-15719ec1.js → f-button-d1aba968.js} +2 -2
- package/dist/esm/{f-cell-692c37bf.js → f-cell-646406bb.js} +22 -22
- package/dist/esm/{f-checkbox-e06cf07b.js → f-checkbox-b721178e.js} +1 -1
- package/dist/esm/{f-chip-abab04bf.js → f-chip-d94e9e81.js} +3 -3
- package/dist/esm/{f-image-98783644.js → f-image-57c88302.js} +2 -2
- package/dist/esm/{f-paginator-utils-d12ee737.js → f-paginator-utils-2c865e9a.js} +3 -3
- package/dist/esm/{f-text-field-282025dd.js → f-text-field-b0a1fea6.js} +2 -2
- package/dist/esm/{index-e41330a5.js → index-a2197376.js} +423 -252
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +7 -30
- package/dist/esm/{kup-autocomplete_25.entry.js → kup-autocomplete_26.entry.js} +3925 -4289
- package/dist/esm/kup-box.entry.js +33 -113
- package/dist/esm/kup-calendar.entry.js +10 -34
- package/dist/esm/kup-cell.entry.js +10 -29
- package/dist/esm/kup-dash-list.entry.js +10 -9
- package/dist/esm/kup-dash_2.entry.js +7 -35
- package/dist/esm/kup-dashboard.entry.js +10 -32
- package/dist/esm/kup-drawer.entry.js +4 -19
- package/dist/esm/kup-echart.entry.js +16 -77
- package/dist/esm/kup-family-tree.entry.js +12 -48
- package/dist/esm/kup-iframe.entry.js +5 -17
- package/dist/esm/kup-image-list.entry.js +16 -34
- package/dist/esm/kup-lazy.entry.js +10 -37
- package/dist/esm/kup-magic-box.entry.js +6 -25
- package/dist/esm/{kup-manager-abbae73e.js → kup-manager-c0fbb180.js} +83 -8
- package/dist/esm/kup-nav-bar.entry.js +4 -16
- package/dist/esm/kup-numeric-picker.entry.js +14 -57
- package/dist/esm/kup-photo-frame.entry.js +9 -31
- package/dist/esm/kup-probe.entry.js +13 -33
- package/dist/esm/kup-qlik.entry.js +6 -60
- package/dist/esm/kup-snackbar.entry.js +7 -38
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-eeadd688.entry.js → p-1914969e.entry.js} +1 -1
- package/dist/ketchup/{p-5552f156.js → p-23cd5a68.js} +1 -1
- package/dist/ketchup/{p-a4a30e0e.entry.js → p-250118e3.entry.js} +1 -1
- package/dist/ketchup/{p-ccef2553.entry.js → p-30766296.entry.js} +1 -1
- package/dist/ketchup/{p-5933aa02.entry.js → p-351cecba.entry.js} +1 -1
- package/dist/ketchup/p-35e16ea2.entry.js +1 -0
- package/dist/ketchup/{p-e6ebdb80.js → p-395675b8.js} +1 -1
- package/dist/ketchup/p-3cf97e3a.js +1 -0
- package/dist/ketchup/p-4fdb684f.js +2 -0
- package/dist/ketchup/{p-9419919c.entry.js → p-596bdc10.entry.js} +1 -1
- package/dist/ketchup/{p-6f3040fb.js → p-61ff1761.js} +1 -1
- package/dist/ketchup/p-72d4fa26.entry.js +1 -0
- package/dist/ketchup/{p-fd930a34.entry.js → p-738685f9.entry.js} +1 -1
- package/dist/ketchup/{p-f6409c42.entry.js → p-7c8c5444.entry.js} +1 -1
- package/dist/ketchup/p-86154e2b.js +1 -0
- package/dist/ketchup/{p-7e16265d.entry.js → p-9214ef33.entry.js} +1 -1
- package/dist/ketchup/{p-62f3ec78.entry.js → p-980ed953.entry.js} +1 -1
- package/dist/ketchup/p-991bd70d.entry.js +1 -0
- package/dist/ketchup/{p-7d37ea62.entry.js → p-a1fe329f.entry.js} +1 -1
- package/dist/ketchup/p-a740352c.js +30 -0
- package/dist/ketchup/{p-62421bcf.js → p-a992cf87.js} +1 -1
- package/dist/ketchup/{p-3760a159.entry.js → p-b1da1ba7.entry.js} +2 -2
- package/dist/ketchup/{p-5ea2a1ff.entry.js → p-cee3635a.entry.js} +1 -1
- package/dist/ketchup/p-d05ed931.entry.js +9 -0
- package/dist/ketchup/{p-a450d60a.entry.js → p-d422151a.entry.js} +2 -2
- package/dist/ketchup/p-e6f19333.entry.js +1 -0
- package/dist/ketchup/{p-1ef5d16d.entry.js → p-eb10958a.entry.js} +1 -1
- package/dist/ketchup/{p-20221a50.js → p-ecac6269.js} +1 -1
- package/dist/ketchup/p-f43b445e.entry.js +1 -0
- package/dist/ketchup/{p-725c6268.entry.js → p-fa37e92e.entry.js} +1 -1
- package/dist/loader/package.json +1 -0
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -0
- package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +7 -2
- package/dist/types/components/kup-card/built-in/kup-card-form.d.ts +3 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +11 -1
- package/dist/types/components/kup-card/kup-card.d.ts +5 -0
- package/dist/types/components/kup-card/scalable/kup-card-scalable.d.ts +6 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +9 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +54 -201
- package/dist/types/components/kup-list/kup-list.d.ts +5 -0
- package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +5 -0
- package/dist/types/components/kup-tree/kup-tree.d.ts +0 -1
- package/dist/types/components.d.ts +78 -2
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +7 -1
- package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +1 -0
- package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +2 -1
- package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +20 -4
- package/package.json +2 -2
- package/CHANGELOG.md +0 -5
- package/dist/cjs/kup-form.cjs.entry.js +0 -486
- package/dist/esm/kup-form.entry.js +0 -482
- package/dist/ketchup/p-1d2dea0a.entry.js +0 -1
- package/dist/ketchup/p-27538d6f.entry.js +0 -1
- package/dist/ketchup/p-29d72040.entry.js +0 -1
- package/dist/ketchup/p-3e74e1ed.js +0 -1
- package/dist/ketchup/p-680a8cb4.entry.js +0 -9
- package/dist/ketchup/p-6946b614.entry.js +0 -1
- package/dist/ketchup/p-b0b3989b.js +0 -2
- package/dist/ketchup/p-c05f2638.js +0 -30
- package/dist/ketchup/p-d7a92197.entry.js +0 -1
- package/dist/ketchup/p-d8af7ba6.entry.js +0 -1
- package/dist/ketchup/p-e07a10fb.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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';
|
|
@@ -9,107 +9,46 @@ import { componentWrapperId } from '../../variables/GenericVariables';
|
|
|
9
9
|
export class KupGauge {
|
|
10
10
|
constructor() {
|
|
11
11
|
/*-------------------------------------------------*/
|
|
12
|
-
/*
|
|
12
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
13
13
|
/*-------------------------------------------------*/
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* @namespace kup-gauge.arcThickness
|
|
17
|
-
* @see kup-gauge.size
|
|
15
|
+
* Instance of the KupManager class.
|
|
18
16
|
*/
|
|
19
|
-
this.
|
|
17
|
+
this.kupManager = kupManagerInstance();
|
|
18
|
+
// Arcs generator
|
|
19
|
+
this.arcGenerator = arc();
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Holds the maximum positive interval.
|
|
22
|
+
* Percentages are calculated as it follows:
|
|
23
|
+
* MIN = 0 = the value the prop minValue gets transformed to\
|
|
24
|
+
* MAX = ABSOLUTE(minValue - maxValue) = the maxValuePositive holds this value
|
|
25
|
+
* TVALUE = value - minValue = any value, which needs to be represented on the chart
|
|
26
|
+
* @namespace kup-gauge.maxValuePositive
|
|
22
27
|
*/
|
|
28
|
+
this.maxValuePositive = 0;
|
|
29
|
+
this.arcThickness = 30;
|
|
23
30
|
this.colors = [
|
|
24
31
|
`var(${KupThemeColorValues.SUCCESS})`,
|
|
25
32
|
`var(${KupThemeColorValues.WARNING})`,
|
|
26
33
|
`var(${KupThemeColorValues.DANGER})`,
|
|
27
34
|
];
|
|
28
|
-
/**
|
|
29
|
-
* Custom style of the component.
|
|
30
|
-
* @default ""
|
|
31
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
32
|
-
*/
|
|
33
35
|
this.customStyle = '';
|
|
34
|
-
|
|
35
|
-
* The distance the label and the value has from the gauge graph.
|
|
36
|
-
*/
|
|
36
|
+
this.firstThreshold = undefined;
|
|
37
37
|
this.labelDistance = 20;
|
|
38
|
-
/**
|
|
39
|
-
* The maximum value reachable in the current graph.
|
|
40
|
-
*/
|
|
41
38
|
this.maxValue = 100;
|
|
42
|
-
/**
|
|
43
|
-
* A string which will be appended to the displayed values of the component.
|
|
44
|
-
*/
|
|
45
39
|
this.measurementUnit = '';
|
|
46
|
-
/**
|
|
47
|
-
* The minimum value reachable in the current graph.
|
|
48
|
-
*/
|
|
49
40
|
this.minValue = -100;
|
|
50
|
-
/**
|
|
51
|
-
* When true, shows a rounded needle.
|
|
52
|
-
*/
|
|
53
41
|
this.needleCircle = false;
|
|
54
|
-
/**
|
|
55
|
-
* When true, ignore thresholds in gauge and show colored value's arc.
|
|
56
|
-
*/
|
|
57
42
|
this.onlyValue = false;
|
|
58
|
-
/**
|
|
59
|
-
* When true, the colors inside the colors array are used in the reversed order.
|
|
60
|
-
*/
|
|
61
43
|
this.reverseColors = false;
|
|
62
|
-
|
|
63
|
-
* If set to false, threshold values of the gauge are not displayed.
|
|
64
|
-
*/
|
|
44
|
+
this.secondThreshold = undefined;
|
|
65
45
|
this.showLabels = true;
|
|
66
|
-
/**
|
|
67
|
-
* If set to false, the maximum and minimum values of the gauge are not displayed.
|
|
68
|
-
*/
|
|
69
46
|
this.showMaxmin = true;
|
|
70
|
-
/**
|
|
71
|
-
* If set to false, the current value of the gauge is not displayed.
|
|
72
|
-
*/
|
|
73
47
|
this.showValue = true;
|
|
74
|
-
/**
|
|
75
|
-
* Con be used change the viewbox of the SVG.
|
|
76
|
-
* By manipulating this value, some customizations of the aspect of the gauge is achievable.
|
|
77
|
-
* @namespace kup-gauge.size
|
|
78
|
-
* @see kup-gauge.arcThickness
|
|
79
|
-
*/
|
|
80
48
|
this.size = 300;
|
|
81
|
-
/**
|
|
82
|
-
* The current value of the gauge.
|
|
83
|
-
* The gauge's needle points to the percentage based on this prop.
|
|
84
|
-
*/
|
|
85
49
|
this.value = 0;
|
|
86
|
-
/**
|
|
87
|
-
* The current size of gauge's value.
|
|
88
|
-
* Correct values are: 0,1,2 or 3.
|
|
89
|
-
*/
|
|
90
50
|
this.valueSize = 0;
|
|
91
|
-
/**
|
|
92
|
-
* Set Width gauge.
|
|
93
|
-
*/
|
|
94
51
|
this.widthComponent = '100%';
|
|
95
|
-
/*-------------------------------------------------*/
|
|
96
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
97
|
-
/*-------------------------------------------------*/
|
|
98
|
-
/**
|
|
99
|
-
* Instance of the KupManager class.
|
|
100
|
-
*/
|
|
101
|
-
this.kupManager = kupManagerInstance();
|
|
102
|
-
// Arcs generator
|
|
103
|
-
this.arcGenerator = arc();
|
|
104
|
-
/**
|
|
105
|
-
* Holds the maximum positive interval.
|
|
106
|
-
* Percentages are calculated as it follows:
|
|
107
|
-
* MIN = 0 = the value the prop minValue gets transformed to\
|
|
108
|
-
* MAX = ABSOLUTE(minValue - maxValue) = the maxValuePositive holds this value
|
|
109
|
-
* TVALUE = value - minValue = any value, which needs to be represented on the chart
|
|
110
|
-
* @namespace kup-gauge.maxValuePositive
|
|
111
|
-
*/
|
|
112
|
-
this.maxValuePositive = 0;
|
|
113
52
|
}
|
|
114
53
|
/*-------------------------------------------------*/
|
|
115
54
|
/* P u b l i c M e t h o d s */
|
|
@@ -363,463 +302,463 @@ export class KupGauge {
|
|
|
363
302
|
this.measurementUnit));
|
|
364
303
|
}
|
|
365
304
|
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))));
|
|
305
|
+
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
306
|
}
|
|
376
307
|
disconnectedCallback() {
|
|
377
308
|
this.kupManager.theme.unregister(this);
|
|
378
309
|
}
|
|
379
310
|
static get is() { return "kup-gauge"; }
|
|
380
311
|
static get encapsulation() { return "shadow"; }
|
|
381
|
-
static get originalStyleUrls() {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
"
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
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
|
-
}
|
|
312
|
+
static get originalStyleUrls() {
|
|
313
|
+
return {
|
|
314
|
+
"$": ["kup-gauge.scss"]
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
static get styleUrls() {
|
|
318
|
+
return {
|
|
319
|
+
"$": ["kup-gauge.css"]
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
static get properties() {
|
|
323
|
+
return {
|
|
324
|
+
"arcThickness": {
|
|
325
|
+
"type": "number",
|
|
326
|
+
"mutable": false,
|
|
327
|
+
"complexType": {
|
|
328
|
+
"original": "number",
|
|
329
|
+
"resolved": "number",
|
|
330
|
+
"references": {}
|
|
764
331
|
},
|
|
765
|
-
"
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
332
|
+
"required": false,
|
|
333
|
+
"optional": false,
|
|
334
|
+
"docs": {
|
|
335
|
+
"tags": [{
|
|
336
|
+
"name": "namespace",
|
|
337
|
+
"text": "kup-gauge.arcThickness"
|
|
338
|
+
}, {
|
|
339
|
+
"name": "see",
|
|
340
|
+
"text": "kup-gauge.size"
|
|
341
|
+
}],
|
|
342
|
+
"text": "Sets how much the arc of the gauge should be thick."
|
|
343
|
+
},
|
|
344
|
+
"attribute": "arc-thickness",
|
|
345
|
+
"reflect": false,
|
|
346
|
+
"defaultValue": "30"
|
|
347
|
+
},
|
|
348
|
+
"colors": {
|
|
349
|
+
"type": "unknown",
|
|
350
|
+
"mutable": false,
|
|
351
|
+
"complexType": {
|
|
352
|
+
"original": "string[]",
|
|
353
|
+
"resolved": "string[]",
|
|
354
|
+
"references": {}
|
|
355
|
+
},
|
|
356
|
+
"required": false,
|
|
357
|
+
"optional": false,
|
|
358
|
+
"docs": {
|
|
359
|
+
"tags": [],
|
|
360
|
+
"text": "Array of three elements to specify the color of the arcs."
|
|
361
|
+
},
|
|
362
|
+
"defaultValue": "[\r\n `var(${KupThemeColorValues.SUCCESS})`,\r\n `var(${KupThemeColorValues.WARNING})`,\r\n `var(${KupThemeColorValues.DANGER})`,\r\n ]"
|
|
363
|
+
},
|
|
364
|
+
"customStyle": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"mutable": false,
|
|
367
|
+
"complexType": {
|
|
368
|
+
"original": "string",
|
|
369
|
+
"resolved": "string",
|
|
370
|
+
"references": {}
|
|
371
|
+
},
|
|
372
|
+
"required": false,
|
|
373
|
+
"optional": false,
|
|
374
|
+
"docs": {
|
|
375
|
+
"tags": [{
|
|
376
|
+
"name": "default",
|
|
377
|
+
"text": "\"\""
|
|
378
|
+
}, {
|
|
379
|
+
"name": "see",
|
|
380
|
+
"text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
|
|
381
|
+
}],
|
|
382
|
+
"text": "Custom style of the component."
|
|
383
|
+
},
|
|
384
|
+
"attribute": "custom-style",
|
|
385
|
+
"reflect": false,
|
|
386
|
+
"defaultValue": "''"
|
|
387
|
+
},
|
|
388
|
+
"firstThreshold": {
|
|
389
|
+
"type": "number",
|
|
390
|
+
"mutable": false,
|
|
391
|
+
"complexType": {
|
|
392
|
+
"original": "number",
|
|
393
|
+
"resolved": "number",
|
|
394
|
+
"references": {}
|
|
395
|
+
},
|
|
396
|
+
"required": false,
|
|
397
|
+
"optional": true,
|
|
398
|
+
"docs": {
|
|
399
|
+
"tags": [],
|
|
400
|
+
"text": "The first threshold, establishing the length of the first and second arc."
|
|
401
|
+
},
|
|
402
|
+
"attribute": "first-threshold",
|
|
403
|
+
"reflect": false
|
|
404
|
+
},
|
|
405
|
+
"labelDistance": {
|
|
406
|
+
"type": "number",
|
|
407
|
+
"mutable": true,
|
|
408
|
+
"complexType": {
|
|
409
|
+
"original": "number",
|
|
410
|
+
"resolved": "number",
|
|
411
|
+
"references": {}
|
|
412
|
+
},
|
|
413
|
+
"required": false,
|
|
414
|
+
"optional": false,
|
|
415
|
+
"docs": {
|
|
416
|
+
"tags": [],
|
|
417
|
+
"text": "The distance the label and the value has from the gauge graph."
|
|
418
|
+
},
|
|
419
|
+
"attribute": "label-distance",
|
|
420
|
+
"reflect": false,
|
|
421
|
+
"defaultValue": "20"
|
|
422
|
+
},
|
|
423
|
+
"maxValue": {
|
|
424
|
+
"type": "number",
|
|
425
|
+
"mutable": true,
|
|
426
|
+
"complexType": {
|
|
427
|
+
"original": "number",
|
|
428
|
+
"resolved": "number",
|
|
429
|
+
"references": {}
|
|
430
|
+
},
|
|
431
|
+
"required": false,
|
|
432
|
+
"optional": false,
|
|
433
|
+
"docs": {
|
|
434
|
+
"tags": [],
|
|
435
|
+
"text": "The maximum value reachable in the current graph."
|
|
436
|
+
},
|
|
437
|
+
"attribute": "max-value",
|
|
438
|
+
"reflect": false,
|
|
439
|
+
"defaultValue": "100"
|
|
440
|
+
},
|
|
441
|
+
"measurementUnit": {
|
|
442
|
+
"type": "string",
|
|
443
|
+
"mutable": false,
|
|
444
|
+
"complexType": {
|
|
445
|
+
"original": "string",
|
|
446
|
+
"resolved": "string",
|
|
447
|
+
"references": {}
|
|
448
|
+
},
|
|
449
|
+
"required": false,
|
|
450
|
+
"optional": false,
|
|
451
|
+
"docs": {
|
|
452
|
+
"tags": [],
|
|
453
|
+
"text": "A string which will be appended to the displayed values of the component."
|
|
454
|
+
},
|
|
455
|
+
"attribute": "measurement-unit",
|
|
456
|
+
"reflect": false,
|
|
457
|
+
"defaultValue": "''"
|
|
458
|
+
},
|
|
459
|
+
"minValue": {
|
|
460
|
+
"type": "number",
|
|
461
|
+
"mutable": true,
|
|
462
|
+
"complexType": {
|
|
463
|
+
"original": "number",
|
|
464
|
+
"resolved": "number",
|
|
465
|
+
"references": {}
|
|
466
|
+
},
|
|
467
|
+
"required": false,
|
|
468
|
+
"optional": false,
|
|
469
|
+
"docs": {
|
|
470
|
+
"tags": [],
|
|
471
|
+
"text": "The minimum value reachable in the current graph."
|
|
472
|
+
},
|
|
473
|
+
"attribute": "min-value",
|
|
474
|
+
"reflect": false,
|
|
475
|
+
"defaultValue": "-100"
|
|
476
|
+
},
|
|
477
|
+
"needleCircle": {
|
|
478
|
+
"type": "boolean",
|
|
479
|
+
"mutable": false,
|
|
480
|
+
"complexType": {
|
|
481
|
+
"original": "boolean",
|
|
482
|
+
"resolved": "boolean",
|
|
483
|
+
"references": {}
|
|
484
|
+
},
|
|
485
|
+
"required": false,
|
|
486
|
+
"optional": false,
|
|
487
|
+
"docs": {
|
|
488
|
+
"tags": [],
|
|
489
|
+
"text": "When true, shows a rounded needle."
|
|
490
|
+
},
|
|
491
|
+
"attribute": "needle-circle",
|
|
492
|
+
"reflect": false,
|
|
493
|
+
"defaultValue": "false"
|
|
494
|
+
},
|
|
495
|
+
"onlyValue": {
|
|
496
|
+
"type": "boolean",
|
|
497
|
+
"mutable": false,
|
|
498
|
+
"complexType": {
|
|
499
|
+
"original": "boolean",
|
|
500
|
+
"resolved": "boolean",
|
|
501
|
+
"references": {}
|
|
502
|
+
},
|
|
503
|
+
"required": false,
|
|
504
|
+
"optional": false,
|
|
505
|
+
"docs": {
|
|
506
|
+
"tags": [],
|
|
507
|
+
"text": "When true, ignore thresholds in gauge and show colored value's arc."
|
|
508
|
+
},
|
|
509
|
+
"attribute": "only-value",
|
|
510
|
+
"reflect": false,
|
|
511
|
+
"defaultValue": "false"
|
|
512
|
+
},
|
|
513
|
+
"reverseColors": {
|
|
514
|
+
"type": "boolean",
|
|
515
|
+
"mutable": false,
|
|
516
|
+
"complexType": {
|
|
517
|
+
"original": "boolean",
|
|
518
|
+
"resolved": "boolean",
|
|
519
|
+
"references": {}
|
|
520
|
+
},
|
|
521
|
+
"required": false,
|
|
522
|
+
"optional": false,
|
|
523
|
+
"docs": {
|
|
524
|
+
"tags": [],
|
|
525
|
+
"text": "When true, the colors inside the colors array are used in the reversed order."
|
|
526
|
+
},
|
|
527
|
+
"attribute": "reverse-colors",
|
|
528
|
+
"reflect": false,
|
|
529
|
+
"defaultValue": "false"
|
|
530
|
+
},
|
|
531
|
+
"secondThreshold": {
|
|
532
|
+
"type": "number",
|
|
533
|
+
"mutable": false,
|
|
534
|
+
"complexType": {
|
|
535
|
+
"original": "number",
|
|
536
|
+
"resolved": "number",
|
|
537
|
+
"references": {}
|
|
538
|
+
},
|
|
539
|
+
"required": false,
|
|
540
|
+
"optional": true,
|
|
541
|
+
"docs": {
|
|
542
|
+
"tags": [],
|
|
543
|
+
"text": "The second threshold, establishing the length of the second and third arc."
|
|
544
|
+
},
|
|
545
|
+
"attribute": "second-threshold",
|
|
546
|
+
"reflect": false
|
|
547
|
+
},
|
|
548
|
+
"showLabels": {
|
|
549
|
+
"type": "boolean",
|
|
550
|
+
"mutable": false,
|
|
551
|
+
"complexType": {
|
|
552
|
+
"original": "boolean",
|
|
553
|
+
"resolved": "boolean",
|
|
554
|
+
"references": {}
|
|
555
|
+
},
|
|
556
|
+
"required": false,
|
|
557
|
+
"optional": false,
|
|
558
|
+
"docs": {
|
|
559
|
+
"tags": [],
|
|
560
|
+
"text": "If set to false, threshold values of the gauge are not displayed."
|
|
561
|
+
},
|
|
562
|
+
"attribute": "show-labels",
|
|
563
|
+
"reflect": false,
|
|
564
|
+
"defaultValue": "true"
|
|
565
|
+
},
|
|
566
|
+
"showMaxmin": {
|
|
567
|
+
"type": "boolean",
|
|
568
|
+
"mutable": false,
|
|
569
|
+
"complexType": {
|
|
570
|
+
"original": "boolean",
|
|
571
|
+
"resolved": "boolean",
|
|
572
|
+
"references": {}
|
|
573
|
+
},
|
|
574
|
+
"required": false,
|
|
575
|
+
"optional": false,
|
|
576
|
+
"docs": {
|
|
577
|
+
"tags": [],
|
|
578
|
+
"text": "If set to false, the maximum and minimum values of the gauge are not displayed."
|
|
579
|
+
},
|
|
580
|
+
"attribute": "show-maxmin",
|
|
581
|
+
"reflect": false,
|
|
582
|
+
"defaultValue": "true"
|
|
583
|
+
},
|
|
584
|
+
"showValue": {
|
|
585
|
+
"type": "boolean",
|
|
586
|
+
"mutable": false,
|
|
587
|
+
"complexType": {
|
|
588
|
+
"original": "boolean",
|
|
589
|
+
"resolved": "boolean",
|
|
590
|
+
"references": {}
|
|
591
|
+
},
|
|
592
|
+
"required": false,
|
|
593
|
+
"optional": false,
|
|
594
|
+
"docs": {
|
|
595
|
+
"tags": [],
|
|
596
|
+
"text": "If set to false, the current value of the gauge is not displayed."
|
|
597
|
+
},
|
|
598
|
+
"attribute": "show-value",
|
|
599
|
+
"reflect": false,
|
|
600
|
+
"defaultValue": "true"
|
|
601
|
+
},
|
|
602
|
+
"size": {
|
|
603
|
+
"type": "number",
|
|
604
|
+
"mutable": false,
|
|
605
|
+
"complexType": {
|
|
606
|
+
"original": "number",
|
|
607
|
+
"resolved": "number",
|
|
608
|
+
"references": {}
|
|
609
|
+
},
|
|
610
|
+
"required": false,
|
|
611
|
+
"optional": false,
|
|
612
|
+
"docs": {
|
|
613
|
+
"tags": [{
|
|
614
|
+
"name": "namespace",
|
|
615
|
+
"text": "kup-gauge.size"
|
|
616
|
+
}, {
|
|
617
|
+
"name": "see",
|
|
618
|
+
"text": "kup-gauge.arcThickness"
|
|
619
|
+
}],
|
|
620
|
+
"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."
|
|
621
|
+
},
|
|
622
|
+
"attribute": "size",
|
|
623
|
+
"reflect": false,
|
|
624
|
+
"defaultValue": "300"
|
|
625
|
+
},
|
|
626
|
+
"value": {
|
|
627
|
+
"type": "number",
|
|
628
|
+
"mutable": true,
|
|
629
|
+
"complexType": {
|
|
630
|
+
"original": "number",
|
|
631
|
+
"resolved": "number",
|
|
632
|
+
"references": {}
|
|
633
|
+
},
|
|
634
|
+
"required": false,
|
|
635
|
+
"optional": false,
|
|
636
|
+
"docs": {
|
|
637
|
+
"tags": [],
|
|
638
|
+
"text": "The current value of the gauge.\r\nThe gauge's needle points to the percentage based on this prop."
|
|
639
|
+
},
|
|
640
|
+
"attribute": "value",
|
|
641
|
+
"reflect": false,
|
|
642
|
+
"defaultValue": "0"
|
|
643
|
+
},
|
|
644
|
+
"valueSize": {
|
|
645
|
+
"type": "number",
|
|
646
|
+
"mutable": false,
|
|
647
|
+
"complexType": {
|
|
648
|
+
"original": "number",
|
|
649
|
+
"resolved": "number",
|
|
650
|
+
"references": {}
|
|
651
|
+
},
|
|
652
|
+
"required": false,
|
|
653
|
+
"optional": false,
|
|
654
|
+
"docs": {
|
|
655
|
+
"tags": [],
|
|
656
|
+
"text": "The current size of gauge's value.\r\nCorrect values are: 0,1,2 or 3."
|
|
657
|
+
},
|
|
658
|
+
"attribute": "value-size",
|
|
659
|
+
"reflect": false,
|
|
660
|
+
"defaultValue": "0"
|
|
661
|
+
},
|
|
662
|
+
"widthComponent": {
|
|
663
|
+
"type": "string",
|
|
664
|
+
"mutable": false,
|
|
665
|
+
"complexType": {
|
|
666
|
+
"original": "string",
|
|
667
|
+
"resolved": "string",
|
|
668
|
+
"references": {}
|
|
669
|
+
},
|
|
670
|
+
"required": false,
|
|
671
|
+
"optional": false,
|
|
672
|
+
"docs": {
|
|
673
|
+
"tags": [],
|
|
674
|
+
"text": "Set Width gauge."
|
|
675
|
+
},
|
|
676
|
+
"attribute": "width-component",
|
|
677
|
+
"reflect": false,
|
|
678
|
+
"defaultValue": "'100%'"
|
|
776
679
|
}
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
"
|
|
783
|
-
"
|
|
784
|
-
|
|
785
|
-
|
|
680
|
+
};
|
|
681
|
+
}
|
|
682
|
+
static get methods() {
|
|
683
|
+
return {
|
|
684
|
+
"getProps": {
|
|
685
|
+
"complexType": {
|
|
686
|
+
"signature": "(descriptions?: boolean) => Promise<GenericObject>",
|
|
687
|
+
"parameters": [{
|
|
688
|
+
"tags": [{
|
|
689
|
+
"name": "param",
|
|
690
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
691
|
+
}],
|
|
692
|
+
"text": "- When provided and true, the result will be the list of props with their description."
|
|
693
|
+
}],
|
|
694
|
+
"references": {
|
|
695
|
+
"Promise": {
|
|
696
|
+
"location": "global"
|
|
697
|
+
},
|
|
698
|
+
"GenericObject": {
|
|
699
|
+
"location": "import",
|
|
700
|
+
"path": "../../types/GenericTypes"
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
"return": "Promise<GenericObject>"
|
|
786
704
|
},
|
|
787
|
-
"
|
|
705
|
+
"docs": {
|
|
706
|
+
"text": "Used to retrieve component's props values.",
|
|
707
|
+
"tags": [{
|
|
708
|
+
"name": "param",
|
|
709
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
710
|
+
}, {
|
|
711
|
+
"name": "returns",
|
|
712
|
+
"text": "List of props as object, each key will be a prop."
|
|
713
|
+
}]
|
|
714
|
+
}
|
|
788
715
|
},
|
|
789
|
-
"
|
|
790
|
-
"
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
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"
|
|
716
|
+
"refresh": {
|
|
717
|
+
"complexType": {
|
|
718
|
+
"signature": "() => Promise<void>",
|
|
719
|
+
"parameters": [],
|
|
720
|
+
"references": {
|
|
721
|
+
"Promise": {
|
|
722
|
+
"location": "global"
|
|
723
|
+
}
|
|
807
724
|
},
|
|
808
|
-
"
|
|
809
|
-
"location": "import",
|
|
810
|
-
"path": "../../types/GenericTypes"
|
|
811
|
-
}
|
|
725
|
+
"return": "Promise<void>"
|
|
812
726
|
},
|
|
813
|
-
"
|
|
727
|
+
"docs": {
|
|
728
|
+
"text": "This method is used to trigger a new render of the component.",
|
|
729
|
+
"tags": []
|
|
730
|
+
}
|
|
814
731
|
},
|
|
815
|
-
"
|
|
816
|
-
"
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
732
|
+
"setProps": {
|
|
733
|
+
"complexType": {
|
|
734
|
+
"signature": "(props: GenericObject) => Promise<void>",
|
|
735
|
+
"parameters": [{
|
|
736
|
+
"tags": [{
|
|
737
|
+
"name": "param",
|
|
738
|
+
"text": "props - Object containing props that will be set to the component."
|
|
739
|
+
}],
|
|
740
|
+
"text": "- Object containing props that will be set to the component."
|
|
741
|
+
}],
|
|
742
|
+
"references": {
|
|
743
|
+
"Promise": {
|
|
744
|
+
"location": "global"
|
|
745
|
+
},
|
|
746
|
+
"GenericObject": {
|
|
747
|
+
"location": "import",
|
|
748
|
+
"path": "../../types/GenericTypes"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
"return": "Promise<void>"
|
|
752
|
+
},
|
|
753
|
+
"docs": {
|
|
754
|
+
"text": "Sets the props to the component.",
|
|
755
|
+
"tags": [{
|
|
756
|
+
"name": "param",
|
|
757
|
+
"text": "props - Object containing props that will be set to the component."
|
|
758
|
+
}]
|
|
759
|
+
}
|
|
821
760
|
}
|
|
822
|
-
}
|
|
823
|
-
}
|
|
761
|
+
};
|
|
762
|
+
}
|
|
824
763
|
static get elementRef() { return "rootElement"; }
|
|
825
764
|
}
|