@record-evolution/widget-filter-dropdown 1.0.7 → 1.0.9
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.
|
@@ -543,7 +543,7 @@ var Rt = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, A = (r, t,
|
|
|
543
543
|
};
|
|
544
544
|
let $ = class extends C {
|
|
545
545
|
constructor() {
|
|
546
|
-
super(...arguments), this.version = "1.0.
|
|
546
|
+
super(...arguments), this.version = "1.0.9";
|
|
547
547
|
}
|
|
548
548
|
update(r) {
|
|
549
549
|
r.has("theme") && this.registerTheme(this.theme), super.update(r), r.has("route") && this.updateValueFromRoute();
|
|
@@ -654,7 +654,7 @@ A([
|
|
|
654
654
|
W()
|
|
655
655
|
], $.prototype, "selectedValue", 2);
|
|
656
656
|
$ = A([
|
|
657
|
-
Tt("widget-filter-dropdown-1.0.
|
|
657
|
+
Tt("widget-filter-dropdown-1.0.9")
|
|
658
658
|
], $);
|
|
659
659
|
export {
|
|
660
660
|
$ as WidgetfilterDropdown
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent widget-filter-dropdown following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "widget-filter-dropdown",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.9",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=24.9.0",
|
|
9
9
|
"npm": ">=10.0.2"
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"dist",
|
|
16
16
|
"src",
|
|
17
|
-
"thumbnail.png"
|
|
17
|
+
"thumbnail.png",
|
|
18
|
+
"thumbnail.webp"
|
|
18
19
|
],
|
|
19
20
|
"scripts": {
|
|
20
21
|
"analyze": "cem analyze --litelement",
|
|
21
|
-
"start": "vite",
|
|
22
|
+
"start": "vite build --watch & vite",
|
|
22
23
|
"build": "vite build",
|
|
23
24
|
"watch": "vite build --watch",
|
|
24
25
|
"link": "npm run build && npm link && cd ../RESWARM/frontend && npm link @record-evolution/widget-filter-dropdown",
|
|
@@ -5,19 +5,34 @@
|
|
|
5
5
|
* and run json-schema-to-typescript to regenerate this file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* The text label displayed above or alongside the dropdown. Use descriptive text like 'Select Device', 'Choose Location', or 'Filter by Status' to guide users.
|
|
10
|
+
*/
|
|
8
11
|
export type Label = string;
|
|
9
12
|
/**
|
|
10
|
-
* The
|
|
13
|
+
* The URL parameter key where the selected value will be stored (e.g., 'deviceId', 'location'). Other widgets can reference this parameter in their data filter configurations to filter their data based on the selection.
|
|
11
14
|
*/
|
|
12
15
|
export type ParameterKey = string;
|
|
16
|
+
/**
|
|
17
|
+
* The human-readable text displayed in the dropdown for this option. Should be clear and descriptive for users.
|
|
18
|
+
*/
|
|
13
19
|
export type Label1 = string;
|
|
20
|
+
/**
|
|
21
|
+
* The actual value stored in the URL parameter when this option is selected. This value is used in data filter queries and may differ from the display label (e.g., label: 'New York', value: 'NYC').
|
|
22
|
+
*/
|
|
14
23
|
export type Value = string;
|
|
24
|
+
/**
|
|
25
|
+
* Array of options available in the dropdown. Each option has a display label (shown to users) and a value (used in data filtering). Can be populated statically or bound to a data source for dynamic options.
|
|
26
|
+
*/
|
|
15
27
|
export type DropdownListItems = {
|
|
16
28
|
label?: Label1;
|
|
17
29
|
value?: Value;
|
|
18
30
|
[k: string]: unknown;
|
|
19
31
|
}[];
|
|
20
32
|
|
|
33
|
+
/**
|
|
34
|
+
* A dropdown filter widget for selecting values from a predefined list. Use this widget to allow users to filter dashboard data by categorical values such as device names, locations, status types, or any enumerable options. The selected value is stored as a URL parameter that other widgets can reference in their data queries. Ideal for dashboards with multiple filterable dimensions where users need to switch between different data subsets.
|
|
35
|
+
*/
|
|
21
36
|
export interface InputData {
|
|
22
37
|
label?: Label;
|
|
23
38
|
parameterKey?: ParameterKey;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Input Data",
|
|
3
|
+
"description": "A dropdown filter widget for selecting values from a predefined list. Use this widget to allow users to filter dashboard data by categorical values such as device names, locations, status types, or any enumerable options. The selected value is stored as a URL parameter that other widgets can reference in their data queries. Ideal for dashboards with multiple filterable dimensions where users need to switch between different data subsets.",
|
|
3
4
|
"type": "object",
|
|
4
5
|
"properties": {
|
|
5
6
|
"label": {
|
|
6
7
|
"title": "Label",
|
|
8
|
+
"description": "The text label displayed above or alongside the dropdown. Use descriptive text like 'Select Device', 'Choose Location', or 'Filter by Status' to guide users.",
|
|
7
9
|
"order": 1,
|
|
8
10
|
"dataDrivenDisabled": true,
|
|
9
11
|
"type": "string"
|
|
@@ -12,11 +14,12 @@
|
|
|
12
14
|
"title": "Parameter Key",
|
|
13
15
|
"order": 2,
|
|
14
16
|
"dataDrivenDisabled": true,
|
|
15
|
-
"description": "The
|
|
17
|
+
"description": "The URL parameter key where the selected value will be stored (e.g., 'deviceId', 'location'). Other widgets can reference this parameter in their data filter configurations to filter their data based on the selection.",
|
|
16
18
|
"type": "string"
|
|
17
19
|
},
|
|
18
20
|
"data": {
|
|
19
21
|
"title": "Dropdown List Items",
|
|
22
|
+
"description": "Array of options available in the dropdown. Each option has a display label (shown to users) and a value (used in data filtering). Can be populated statically or bound to a data source for dynamic options.",
|
|
20
23
|
"order": 3,
|
|
21
24
|
"type": "array",
|
|
22
25
|
"items": {
|
|
@@ -24,11 +27,13 @@
|
|
|
24
27
|
"properties": {
|
|
25
28
|
"label": {
|
|
26
29
|
"title": "Label",
|
|
30
|
+
"description": "The human-readable text displayed in the dropdown for this option. Should be clear and descriptive for users.",
|
|
27
31
|
"order": 1,
|
|
28
32
|
"type": "string"
|
|
29
33
|
},
|
|
30
34
|
"value": {
|
|
31
35
|
"title": "Value",
|
|
36
|
+
"description": "The actual value stored in the URL parameter when this option is selected. This value is used in data filter queries and may differ from the display label (e.g., label: 'New York', value: 'NYC').",
|
|
32
37
|
"order": 2,
|
|
33
38
|
"type": "string"
|
|
34
39
|
}
|
package/thumbnail.webp
ADDED
|
Binary file
|