@record-evolution/widget-filter-calendar 1.0.5 → 1.0.6

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.5";
557
+ super(...arguments), this.defaultRange = [], this.version = "1.0.6";
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.5")
733
+ Ot("widget-filter-calendar-1.0.6")
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.5",
6
+ "version": "1.0.6",
7
7
  "engines": {
8
8
  "node": ">=24.9.0",
9
9
  "npm": ">=10.0.2"
@@ -5,20 +5,26 @@
5
5
  * and run json-schema-to-typescript to regenerate this file.
6
6
  */
7
7
 
8
+ /**
9
+ * The text label displayed on the calendar input field. Use descriptive text like 'Select Date Range' or 'Filter Period' to guide users.
10
+ */
8
11
  export type Label = string;
9
12
  /**
10
- * The key used to identify the time range start when referenced in data filter configurations.
13
+ * The URL parameter key for the start timestamp (e.g., 'startTime', 'from'). Other widgets can reference this parameter in their data filter configurations to filter data from this date. Leave empty for single-date mode using only endKey.
11
14
  */
12
15
  export type TimeRangeStartKey = string;
13
16
  /**
14
- * The key used to identify the time range end when referenced in data filter configurations.
17
+ * The URL parameter key for the end timestamp (e.g., 'endTime', 'to'). Other widgets can reference this parameter in their data filter configurations to filter data until this date. Leave empty for single-date mode using only startKey.
15
18
  */
16
19
  export type TimeRangeEndKey = string;
17
20
  /**
18
- * The number of months to display in the calendar widget.
21
+ * How many calendar months to show simultaneously in the picker (1-3). Use 2 for date range selection to easily see start and end months. Use 1 for compact layouts or single date selection.
19
22
  */
20
23
  export type NumberOfMonthsToDisplay = number;
21
24
 
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). The selected timestamps are stored as URL parameters and can be referenced by other widgets' data queries. Ideal for time-series dashboards, historical data analysis, and report generation with customizable time windows.
27
+ */
22
28
  export interface InputData {
23
29
  label?: Label;
24
30
  startKey?: TimeRangeStartKey;
@@ -1,9 +1,11 @@
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). The selected timestamps are stored as URL parameters and can be referenced by other widgets' data queries. Ideal for time-series dashboards, historical data analysis, and report generation with customizable time windows.",
3
4
  "type": "object",
4
5
  "properties": {
5
6
  "label": {
6
7
  "title": "Label",
8
+ "description": "The text label displayed on the calendar input field. Use descriptive text like 'Select Date Range' or 'Filter Period' to guide users.",
7
9
  "order": 1,
8
10
  "dataDrivenDisabled": true,
9
11
  "type": "string"
@@ -12,21 +14,21 @@
12
14
  "title": "Time Range Start Key",
13
15
  "order": 2,
14
16
  "dataDrivenDisabled": true,
15
- "description": "The key used to identify the time range start when referenced in data filter configurations.",
17
+ "description": "The URL parameter key for the start timestamp (e.g., 'startTime', 'from'). Other widgets can reference this parameter in their data filter configurations to filter data from this date. Leave empty for single-date mode using only endKey.",
16
18
  "type": "string"
17
19
  },
18
20
  "endKey": {
19
21
  "title": "Time Range End Key",
20
22
  "order": 3,
21
23
  "dataDrivenDisabled": true,
22
- "description": "The key used to identify the time range end when referenced in data filter configurations.",
24
+ "description": "The URL parameter key for the end timestamp (e.g., 'endTime', 'to'). Other widgets can reference this parameter in their data filter configurations to filter data until this date. Leave empty for single-date mode using only startKey.",
23
25
  "type": "string"
24
26
  },
25
27
  "numMonths": {
26
28
  "title": "Number of Months to Display",
27
29
  "order": 4,
28
30
  "dataDrivenDisabled": true,
29
- "description": "The number of months to display in the calendar widget.",
31
+ "description": "How many calendar months to show simultaneously in the picker (1-3). Use 2 for date range selection to easily see start and end months. Use 1 for compact layouts or single date selection.",
30
32
  "type": "number"
31
33
  }
32
34
  }