@record-evolution/widget-filter-calendar 1.0.6 → 1.0.8
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.
|
@@ -554,7 +554,7 @@ var Nt = Object.defineProperty, jt = Object.getOwnPropertyDescriptor, $ = (r, t,
|
|
|
554
554
|
};
|
|
555
555
|
let u = class extends w {
|
|
556
556
|
constructor() {
|
|
557
|
-
super(...arguments), this.defaultRange = [], this.version = "1.0.
|
|
557
|
+
super(...arguments), this.defaultRange = [], this.version = "1.0.8";
|
|
558
558
|
}
|
|
559
559
|
update(r) {
|
|
560
560
|
r.has("theme") && this.registerTheme(this.theme), (r.has("route") || r.has("inputData")) && this.updateRangeFromRoute(), super.update(r);
|
|
@@ -730,7 +730,7 @@ $([
|
|
|
730
730
|
Ht("lit-flatpickr")
|
|
731
731
|
], u.prototype, "flatpickr", 2);
|
|
732
732
|
u = $([
|
|
733
|
-
Ot("widget-filter-calendar-1.0.
|
|
733
|
+
Ot("widget-filter-calendar-1.0.8")
|
|
734
734
|
], u);
|
|
735
735
|
export {
|
|
736
736
|
u as WidgetfilterCalendar
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent widget-filter-calendar for IronFlock UI",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "widget-filter-calendar",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.8",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=24.9.0",
|
|
9
9
|
"npm": ">=10.0.2"
|
|
@@ -14,18 +14,19 @@
|
|
|
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
|
"types": "cat src/definition-schema.json | json2ts > src/definition-schema.d.ts",
|
|
25
26
|
"release": "npm run build && npm run types && npm version patch --tag-version-prefix='' && git push && git push --tag && npm run build"
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
|
-
"lit": "^3.3.
|
|
29
|
+
"lit": "^3.3.3"
|
|
29
30
|
},
|
|
30
31
|
"peerDependencies": {
|
|
31
32
|
"@material/web": "^2.4.1",
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export type Label = string;
|
|
12
12
|
/**
|
|
13
|
-
* The URL parameter
|
|
13
|
+
* The NAME of the URL parameter that receives the selected start timestamp (e.g., 'start_time', 'from'). Every widget that should be filtered by this calendar must carry exactly this name as 'timeStartParam' in its data queryParams — together with 'timeEndParam' and a complete sliding time window (windowPeriod, windowLength, nowMinusPeriods), which the selection then overrides. Do NOT reference this parameter in a filterAnd condition on the timestamp column: filterAnd values are plain literals and are never substituted from the URL. Leave empty for single-date mode using only endKey.
|
|
14
14
|
*/
|
|
15
15
|
export type TimeRangeStartKey = string;
|
|
16
16
|
/**
|
|
17
|
-
* The URL parameter
|
|
17
|
+
* The NAME of the URL parameter that receives the selected end timestamp (e.g., 'end_time', 'to'). Every widget that should be filtered by this calendar must carry exactly this name as 'timeEndParam' in its data queryParams — together with 'timeStartParam' and a complete sliding time window (windowPeriod, windowLength, nowMinusPeriods), which the selection then overrides. Do NOT reference this parameter in a filterAnd condition on the timestamp column: filterAnd values are plain literals and are never substituted from the URL. Leave empty for single-date mode using only startKey.
|
|
18
18
|
*/
|
|
19
19
|
export type TimeRangeEndKey = string;
|
|
20
20
|
/**
|
|
@@ -23,7 +23,7 @@ export type TimeRangeEndKey = string;
|
|
|
23
23
|
export type NumberOfMonthsToDisplay = number;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* A date/time range picker filter widget using Flatpickr calendar. Use this widget to allow users to select date ranges for filtering dashboard data. Supports single date selection (configure only startKey or endKey) or date range selection (configure both).
|
|
26
|
+
* A date/time range picker filter widget using Flatpickr calendar. Use this widget to allow users to select date ranges for filtering dashboard data. Supports single date selection (configure only startKey or endKey) or date range selection (configure both). It writes the selected timestamps (epoch milliseconds) into the URL parameters NAMED by its startKey/endKey properties. WIRING (important): every widget that should follow this calendar binds to those names through its own data queryParams — timeStartParam = this widget's startKey, timeEndParam = this widget's endKey — as bare parameter names, never with a $ or {{}} prefix, and NEVER as a filterAnd condition on the timestamp column. Those widgets must additionally have a complete sliding time window set (windowPeriod + windowLength + nowMinusPeriods), otherwise the custom range is discarded and the calendar has no effect. Ideal for time-series dashboards, historical data analysis, and report generation with customizable time windows.
|
|
27
27
|
*/
|
|
28
28
|
export interface InputData {
|
|
29
29
|
label?: Label;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Input Data",
|
|
3
|
-
"description": "A date/time range picker filter widget using Flatpickr calendar. Use this widget to allow users to select date ranges for filtering dashboard data. Supports single date selection (configure only startKey or endKey) or date range selection (configure both).
|
|
3
|
+
"description": "A date/time range picker filter widget using Flatpickr calendar. Use this widget to allow users to select date ranges for filtering dashboard data. Supports single date selection (configure only startKey or endKey) or date range selection (configure both). It writes the selected timestamps (epoch milliseconds) into the URL parameters NAMED by its startKey/endKey properties. WIRING (important): every widget that should follow this calendar binds to those names through its own data queryParams — timeStartParam = this widget's startKey, timeEndParam = this widget's endKey — as bare parameter names, never with a $ or {{}} prefix, and NEVER as a filterAnd condition on the timestamp column. Those widgets must additionally have a complete sliding time window set (windowPeriod + windowLength + nowMinusPeriods), otherwise the custom range is discarded and the calendar has no effect. Ideal for time-series dashboards, historical data analysis, and report generation with customizable time windows.",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
6
|
"label": {
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"title": "Time Range Start Key",
|
|
15
15
|
"order": 2,
|
|
16
16
|
"dataDrivenDisabled": true,
|
|
17
|
-
"description": "The URL parameter
|
|
17
|
+
"description": "The NAME of the URL parameter that receives the selected start timestamp (e.g., 'start_time', 'from'). Every widget that should be filtered by this calendar must carry exactly this name as 'timeStartParam' in its data queryParams — together with 'timeEndParam' and a complete sliding time window (windowPeriod, windowLength, nowMinusPeriods), which the selection then overrides. Do NOT reference this parameter in a filterAnd condition on the timestamp column: filterAnd values are plain literals and are never substituted from the URL. Leave empty for single-date mode using only endKey.",
|
|
18
18
|
"type": "string"
|
|
19
19
|
},
|
|
20
20
|
"endKey": {
|
|
21
21
|
"title": "Time Range End Key",
|
|
22
22
|
"order": 3,
|
|
23
23
|
"dataDrivenDisabled": true,
|
|
24
|
-
"description": "The URL parameter
|
|
24
|
+
"description": "The NAME of the URL parameter that receives the selected end timestamp (e.g., 'end_time', 'to'). Every widget that should be filtered by this calendar must carry exactly this name as 'timeEndParam' in its data queryParams — together with 'timeStartParam' and a complete sliding time window (windowPeriod, windowLength, nowMinusPeriods), which the selection then overrides. Do NOT reference this parameter in a filterAnd condition on the timestamp column: filterAnd values are plain literals and are never substituted from the URL. Leave empty for single-date mode using only startKey.",
|
|
25
25
|
"type": "string"
|
|
26
26
|
},
|
|
27
27
|
"numMonths": {
|
package/thumbnail.webp
ADDED
|
Binary file
|