@luzmo/ngx-analytics-components-kit 1.0.8-beta.7 → 1.0.9-beta.1

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.
@@ -27,7 +27,7 @@ export declare class LuzmoDataFieldsSelect implements OnChanges {
27
27
  placeholder?: string;
28
28
  /** Whether the picker allows single or multiple selections. */
29
29
  selects?: 'single' | 'multiple';
30
- /** The IDs of the selected data fields. If not provided, the first item will be selected (when allowEmpty is false). */
30
+ /** The IDs of the selected data fields. If not provided, the first item will be selected when `allowEmpty` is false and the picker is not readonly. */
31
31
  value?: string[];
32
32
  /** Whether the picker is in retrieving state (shows loading indicator) */
33
33
  retrieving?: boolean;
@@ -39,6 +39,10 @@ export declare class LuzmoDataFieldsSelect implements OnChanges {
39
39
  pending?: boolean;
40
40
  /** Whether the picker is disabled */
41
41
  disabled?: boolean;
42
+ /** Prevents selection changes while preserving the picker's normal appearance. */
43
+ readonly?: boolean;
44
+ /** Keeps the picker editable while applying the select's reduced-chrome treatment. */
45
+ quiet?: boolean;
42
46
  /** Whether to show a search field in the dropdown */
43
47
  search?: 'on' | 'off' | 'auto';
44
48
  /** The placement of the dropdown menu */
@@ -68,13 +72,15 @@ export declare class LuzmoDataFieldsSelect implements OnChanges {
68
72
  private setHostProperty;
69
73
  private bindEvents;
70
74
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDataFieldsSelect, never>;
71
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDataFieldsSelect, "luzmo-data-fields-select", ["luzmoDataFieldsSelect"], { "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "levels": { "alias": "levels"; "required": false; }; "allowEmpty": { "alias": "allowEmpty"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; "value": { "alias": "value"; "required": false; }; "retrieving": { "alias": "retrieving"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "pending": { "alias": "pending"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "search": { "alias": "search"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoDataFieldsSelected": "luzmoDataFieldsSelected"; }, never, ["*"], true, never>;
75
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDataFieldsSelect, "luzmo-data-fields-select", ["luzmoDataFieldsSelect"], { "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "levels": { "alias": "levels"; "required": false; }; "allowEmpty": { "alias": "allowEmpty"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; "value": { "alias": "value"; "required": false; }; "retrieving": { "alias": "retrieving"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "pending": { "alias": "pending"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "quiet": { "alias": "quiet"; "required": false; }; "search": { "alias": "search"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoDataFieldsSelected": "luzmoDataFieldsSelected"; }, never, ["*"], true, never>;
72
76
  static ngAcceptInputType_allowEmpty: unknown;
73
77
  static ngAcceptInputType_retrieving: unknown;
74
78
  static ngAcceptInputType_invalid: unknown;
75
79
  static ngAcceptInputType_clearable: unknown;
76
80
  static ngAcceptInputType_pending: unknown;
77
81
  static ngAcceptInputType_disabled: unknown;
82
+ static ngAcceptInputType_readonly: unknown;
83
+ static ngAcceptInputType_quiet: unknown;
78
84
  static ngAcceptInputType_autofocus: unknown;
79
85
  }
80
86
  /** The underlying custom element type for LuzmoDataFieldsSelect */
@@ -29,7 +29,7 @@ export class LuzmoDataFieldsSelect {
29
29
  placeholder;
30
30
  /** Whether the picker allows single or multiple selections. */
31
31
  selects;
32
- /** The IDs of the selected data fields. If not provided, the first item will be selected (when allowEmpty is false). */
32
+ /** The IDs of the selected data fields. If not provided, the first item will be selected when `allowEmpty` is false and the picker is not readonly. */
33
33
  value;
34
34
  /** Whether the picker is in retrieving state (shows loading indicator) */
35
35
  retrieving;
@@ -41,6 +41,10 @@ export class LuzmoDataFieldsSelect {
41
41
  pending;
42
42
  /** Whether the picker is disabled */
43
43
  disabled;
44
+ /** Prevents selection changes while preserving the picker's normal appearance. */
45
+ readonly;
46
+ /** Keeps the picker editable while applying the select's reduced-chrome treatment. */
47
+ quiet;
44
48
  /** Whether to show a search field in the dropdown */
45
49
  search;
46
50
  /** The placement of the dropdown menu */
@@ -107,6 +111,12 @@ export class LuzmoDataFieldsSelect {
107
111
  case 'disabled':
108
112
  this.setHostProperty('disabled', changes['disabled'].currentValue);
109
113
  break;
114
+ case 'readonly':
115
+ this.setHostProperty('readonly', changes['readonly'].currentValue);
116
+ break;
117
+ case 'quiet':
118
+ this.setHostProperty('quiet', changes['quiet'].currentValue);
119
+ break;
110
120
  case 'search':
111
121
  this.setHostProperty('search', changes['search'].currentValue);
112
122
  break;
@@ -149,7 +159,7 @@ export class LuzmoDataFieldsSelect {
149
159
  }));
150
160
  }
151
161
  static ɵfac = function LuzmoDataFieldsSelect_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDataFieldsSelect)(); };
152
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDataFieldsSelect, selectors: [["luzmo-data-fields-select"]], inputs: { contentLanguage: "contentLanguage", label: "label", icons: "icons", levels: "levels", allowEmpty: [2, "allowEmpty", "allowEmpty", booleanAttribute], placeholder: "placeholder", selects: "selects", value: "value", retrieving: [2, "retrieving", "retrieving", booleanAttribute], invalid: [2, "invalid", "invalid", booleanAttribute], clearable: [2, "clearable", "clearable", booleanAttribute], pending: [2, "pending", "pending", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], search: "search", placement: "placement", datasetsDataFields: "datasetsDataFields", language: "language", size: "size", autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoDataFieldsSelected: "luzmoDataFieldsSelected" }, exportAs: ["luzmoDataFieldsSelect"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDataFieldsSelect_Template(rf, ctx) { if (rf & 1) {
162
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDataFieldsSelect, selectors: [["luzmo-data-fields-select"]], inputs: { contentLanguage: "contentLanguage", label: "label", icons: "icons", levels: "levels", allowEmpty: [2, "allowEmpty", "allowEmpty", booleanAttribute], placeholder: "placeholder", selects: "selects", value: "value", retrieving: [2, "retrieving", "retrieving", booleanAttribute], invalid: [2, "invalid", "invalid", booleanAttribute], clearable: [2, "clearable", "clearable", booleanAttribute], pending: [2, "pending", "pending", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], readonly: [2, "readonly", "readonly", booleanAttribute], quiet: [2, "quiet", "quiet", booleanAttribute], search: "search", placement: "placement", datasetsDataFields: "datasetsDataFields", language: "language", size: "size", autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoDataFieldsSelected: "luzmoDataFieldsSelected" }, exportAs: ["luzmoDataFieldsSelect"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDataFieldsSelect_Template(rf, ctx) { if (rf & 1) {
153
163
  i0.ɵɵprojectionDef();
154
164
  i0.ɵɵprojection(0);
155
165
  } }, encapsulation: 2 });
@@ -202,6 +212,12 @@ export class LuzmoDataFieldsSelect {
202
212
  }], disabled: [{
203
213
  type: Input,
204
214
  args: [{ alias: 'disabled', transform: booleanAttribute }]
215
+ }], readonly: [{
216
+ type: Input,
217
+ args: [{ alias: 'readonly', transform: booleanAttribute }]
218
+ }], quiet: [{
219
+ type: Input,
220
+ args: [{ alias: 'quiet', transform: booleanAttribute }]
205
221
  }], search: [{
206
222
  type: Input,
207
223
  args: [{ alias: 'search' }]
@@ -17,6 +17,10 @@ export declare class LuzmoDisplaySettingsPeriodOverPeriod implements OnChanges {
17
17
  slotContent?: any;
18
18
  /** Which period-over-period UI variant to render, based on available datetime columns and comparison filters. */
19
19
  periodOverPeriodUiType?: PeriodOverPeriodCondition;
20
+ /** Offer the "Periods" offset when there is no datetime category (an offset date column is needed). The item then shifts by the length of the period selected by its date filters. */
21
+ allowPeriodsWithoutDatetimeColumn?: boolean;
22
+ /** Hide the "Past value" comparison type, e.g. for items that only show the change. */
23
+ hidePastValue?: boolean;
20
24
  /** Datetime columns from the linked dataset available as offset/comparison date columns. */
21
25
  linkedDatasetDatetimeColumns?: (Column & {
22
26
  datasetId: string;
@@ -38,7 +42,9 @@ export declare class LuzmoDisplaySettingsPeriodOverPeriod implements OnChanges {
38
42
  private setHostProperty;
39
43
  private bindEvents;
40
44
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDisplaySettingsPeriodOverPeriod, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDisplaySettingsPeriodOverPeriod, "luzmo-display-settings-period-over-period", ["luzmoDisplaySettingsPeriodOverPeriod"], { "slotContent": { "alias": "slotContent"; "required": false; }; "periodOverPeriodUiType": { "alias": "periodOverPeriodType"; "required": false; }; "linkedDatasetDatetimeColumns": { "alias": "linkedDatasetDatetimeColumns"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentChanged": "luzmoSlotContentChanged"; }, never, ["*"], true, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDisplaySettingsPeriodOverPeriod, "luzmo-display-settings-period-over-period", ["luzmoDisplaySettingsPeriodOverPeriod"], { "slotContent": { "alias": "slotContent"; "required": false; }; "periodOverPeriodUiType": { "alias": "periodOverPeriodType"; "required": false; }; "allowPeriodsWithoutDatetimeColumn": { "alias": "allowPeriodsWithoutDatetimeColumn"; "required": false; }; "hidePastValue": { "alias": "hidePastValue"; "required": false; }; "linkedDatasetDatetimeColumns": { "alias": "linkedDatasetDatetimeColumns"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentChanged": "luzmoSlotContentChanged"; }, never, ["*"], true, never>;
46
+ static ngAcceptInputType_allowPeriodsWithoutDatetimeColumn: unknown;
47
+ static ngAcceptInputType_hidePastValue: unknown;
42
48
  }
43
49
  /** The underlying custom element type for LuzmoDisplaySettingsPeriodOverPeriod */
44
50
  export type LuzmoDisplaySettingsPeriodOverPeriodElement = LuzmoDisplaySettingsPeriodOverPeriodHostElement;
@@ -1,4 +1,4 @@
1
- import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
1
+ import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/display-settings-period-over-period';
3
3
  import * as i0 from "@angular/core";
4
4
  const _c0 = ["*"];
@@ -19,6 +19,10 @@ export class LuzmoDisplaySettingsPeriodOverPeriod {
19
19
  slotContent;
20
20
  /** Which period-over-period UI variant to render, based on available datetime columns and comparison filters. */
21
21
  periodOverPeriodUiType;
22
+ /** Offer the "Periods" offset when there is no datetime category (an offset date column is needed). The item then shifts by the length of the period selected by its date filters. */
23
+ allowPeriodsWithoutDatetimeColumn;
24
+ /** Hide the "Past value" comparison type, e.g. for items that only show the change. */
25
+ hidePastValue;
22
26
  /** Datetime columns from the linked dataset available as offset/comparison date columns. */
23
27
  linkedDatasetDatetimeColumns;
24
28
  /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
@@ -44,6 +48,12 @@ export class LuzmoDisplaySettingsPeriodOverPeriod {
44
48
  case 'periodOverPeriodUiType':
45
49
  this.setHostProperty('periodOverPeriodUiType', changes['periodOverPeriodUiType'].currentValue);
46
50
  break;
51
+ case 'allowPeriodsWithoutDatetimeColumn':
52
+ this.setHostProperty('allowPeriodsWithoutDatetimeColumn', changes['allowPeriodsWithoutDatetimeColumn'].currentValue);
53
+ break;
54
+ case 'hidePastValue':
55
+ this.setHostProperty('hidePastValue', changes['hidePastValue'].currentValue);
56
+ break;
47
57
  case 'linkedDatasetDatetimeColumns':
48
58
  this.setHostProperty('linkedDatasetDatetimeColumns', changes['linkedDatasetDatetimeColumns'].currentValue);
49
59
  break;
@@ -74,7 +84,7 @@ export class LuzmoDisplaySettingsPeriodOverPeriod {
74
84
  }));
75
85
  }
76
86
  static ɵfac = function LuzmoDisplaySettingsPeriodOverPeriod_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDisplaySettingsPeriodOverPeriod)(); };
77
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDisplaySettingsPeriodOverPeriod, selectors: [["luzmo-display-settings-period-over-period"]], inputs: { slotContent: "slotContent", periodOverPeriodUiType: [0, "periodOverPeriodType", "periodOverPeriodUiType"], linkedDatasetDatetimeColumns: "linkedDatasetDatetimeColumns", language: "language", size: "size" }, outputs: { luzmoSlotContentChanged: "luzmoSlotContentChanged" }, exportAs: ["luzmoDisplaySettingsPeriodOverPeriod"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDisplaySettingsPeriodOverPeriod_Template(rf, ctx) { if (rf & 1) {
87
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDisplaySettingsPeriodOverPeriod, selectors: [["luzmo-display-settings-period-over-period"]], inputs: { slotContent: "slotContent", periodOverPeriodUiType: [0, "periodOverPeriodType", "periodOverPeriodUiType"], allowPeriodsWithoutDatetimeColumn: [2, "allowPeriodsWithoutDatetimeColumn", "allowPeriodsWithoutDatetimeColumn", booleanAttribute], hidePastValue: [2, "hidePastValue", "hidePastValue", booleanAttribute], linkedDatasetDatetimeColumns: "linkedDatasetDatetimeColumns", language: "language", size: "size" }, outputs: { luzmoSlotContentChanged: "luzmoSlotContentChanged" }, exportAs: ["luzmoDisplaySettingsPeriodOverPeriod"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDisplaySettingsPeriodOverPeriod_Template(rf, ctx) { if (rf & 1) {
78
88
  i0.ɵɵprojectionDef();
79
89
  i0.ɵɵprojection(0);
80
90
  } }, encapsulation: 2 });
@@ -94,6 +104,12 @@ export class LuzmoDisplaySettingsPeriodOverPeriod {
94
104
  }], periodOverPeriodUiType: [{
95
105
  type: Input,
96
106
  args: [{ alias: 'periodOverPeriodType' }]
107
+ }], allowPeriodsWithoutDatetimeColumn: [{
108
+ type: Input,
109
+ args: [{ alias: 'allowPeriodsWithoutDatetimeColumn', transform: booleanAttribute }]
110
+ }], hidePastValue: [{
111
+ type: Input,
112
+ args: [{ alias: 'hidePastValue', transform: booleanAttribute }]
97
113
  }], linkedDatasetDatetimeColumns: [{
98
114
  type: Input,
99
115
  args: [{ alias: 'linkedDatasetDatetimeColumns' }]
@@ -1,8 +1,9 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/filter-item';
3
- import type { LuzmoFilterItem as LuzmoFilterItemHostElement } from '@luzmo/analytics-components-kit/filter-item';
3
+ import type { LuzmoFilterItem as LuzmoFilterItemHostElement, FilterColumnDisplay, FilterItemDisplay } from '@luzmo/analytics-components-kit/filter-item';
4
4
  import type { FilterParameter } from '@luzmo/analytics-components-kit/filters';
5
5
  import * as i0 from "@angular/core";
6
+ export type { FilterColumnDisplay, FilterItemDisplay } from '@luzmo/analytics-components-kit/filter-item';
6
7
  export declare class LuzmoFilterItem implements OnChanges {
7
8
  private readonly elementRef;
8
9
  private readonly renderer;
@@ -27,6 +28,16 @@ export declare class LuzmoFilterItem implements OnChanges {
27
28
  datasetIds?: string[];
28
29
  /** The filter to display */
29
30
  filter?: any;
31
+ /** Presentation of the filter item: editable controls or a read-only sentence. */
32
+ display?: FilterItemDisplay;
33
+ /** Presentation of column and formula references in text display. */
34
+ columnDisplay?: FilterColumnDisplay;
35
+ /** Removes rich-editor control chrome while keeping the controls editable. */
36
+ quiet?: boolean;
37
+ /** Prevents changes while preserving the selected display and visual treatment. */
38
+ readonly?: boolean;
39
+ /** Disables every rich-editor control and applies its disabled treatment. */
40
+ disabled?: boolean;
30
41
  /** Whether parameter-backed filter values can be created and selected. */
31
42
  allowParameters?: boolean;
32
43
  /** Consumer-owned parameter definitions available for selection. */
@@ -35,8 +46,6 @@ export declare class LuzmoFilterItem implements OnChanges {
35
46
  language?: string;
36
47
  /** The size of the element */
37
48
  size?: 's' | 'm' | 'l' | 'xl';
38
- /** Disable this control. It will not receive focus or events */
39
- disabled?: boolean;
40
49
  /** When this control is rendered, focus it automatically */
41
50
  autofocus?: boolean;
42
51
  /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
@@ -54,9 +63,11 @@ export declare class LuzmoFilterItem implements OnChanges {
54
63
  private setHostProperty;
55
64
  private bindEvents;
56
65
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFilterItem, never>;
57
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterItem, "luzmo-filter-item", ["luzmoFilterItem"], { "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "allowParameters": { "alias": "allowParameters"; "required": false; }; "parameters": { "alias": "parameters"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoFilterChanged": "luzmoFilterChanged"; }, never, ["*"], true, never>;
58
- static ngAcceptInputType_allowParameters: unknown;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterItem, "luzmo-filter-item", ["luzmoFilterItem"], { "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "display": { "alias": "display"; "required": false; }; "columnDisplay": { "alias": "columnDisplay"; "required": false; }; "quiet": { "alias": "quiet"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "allowParameters": { "alias": "allowParameters"; "required": false; }; "parameters": { "alias": "parameters"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoFilterChanged": "luzmoFilterChanged"; }, never, ["*"], true, never>;
67
+ static ngAcceptInputType_quiet: unknown;
68
+ static ngAcceptInputType_readonly: unknown;
59
69
  static ngAcceptInputType_disabled: unknown;
70
+ static ngAcceptInputType_allowParameters: unknown;
60
71
  static ngAcceptInputType_autofocus: unknown;
61
72
  }
62
73
  /** The underlying custom element type for LuzmoFilterItem */
@@ -4,6 +4,9 @@ import * as i0 from "@angular/core";
4
4
  const _c0 = ["*"];
5
5
  /**
6
6
  * Angular wrapper component for <luzmo-filter-item>
7
+ *
8
+ * @csspart filter-item-text - The read-only filter sentence rendered by `display="text"`.
9
+ * @csspart filter-item-text-field - A column or formula reference in the read-only sentence.
7
10
  */
8
11
  export class LuzmoFilterItem {
9
12
  elementRef = inject(ElementRef);
@@ -31,6 +34,16 @@ export class LuzmoFilterItem {
31
34
  datasetIds;
32
35
  /** The filter to display */
33
36
  filter;
37
+ /** Presentation of the filter item: editable controls or a read-only sentence. */
38
+ display;
39
+ /** Presentation of column and formula references in text display. */
40
+ columnDisplay;
41
+ /** Removes rich-editor control chrome while keeping the controls editable. */
42
+ quiet;
43
+ /** Prevents changes while preserving the selected display and visual treatment. */
44
+ readonly;
45
+ /** Disables every rich-editor control and applies its disabled treatment. */
46
+ disabled;
34
47
  /** Whether parameter-backed filter values can be created and selected. */
35
48
  allowParameters;
36
49
  /** Consumer-owned parameter definitions available for selection. */
@@ -39,8 +52,6 @@ export class LuzmoFilterItem {
39
52
  language;
40
53
  /** The size of the element */
41
54
  size;
42
- /** Disable this control. It will not receive focus or events */
43
- disabled;
44
55
  /** When this control is rendered, focus it automatically */
45
56
  autofocus;
46
57
  /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
@@ -82,6 +93,21 @@ export class LuzmoFilterItem {
82
93
  case 'filter':
83
94
  this.setHostProperty('filter', changes['filter'].currentValue);
84
95
  break;
96
+ case 'display':
97
+ this.setHostProperty('display', changes['display'].currentValue);
98
+ break;
99
+ case 'columnDisplay':
100
+ this.setHostProperty('columnDisplay', changes['columnDisplay'].currentValue);
101
+ break;
102
+ case 'quiet':
103
+ this.setHostProperty('quiet', changes['quiet'].currentValue);
104
+ break;
105
+ case 'readonly':
106
+ this.setHostProperty('readonly', changes['readonly'].currentValue);
107
+ break;
108
+ case 'disabled':
109
+ this.setHostProperty('disabled', changes['disabled'].currentValue);
110
+ break;
85
111
  case 'allowParameters':
86
112
  this.setHostProperty('allowParameters', changes['allowParameters'].currentValue);
87
113
  break;
@@ -94,9 +120,6 @@ export class LuzmoFilterItem {
94
120
  case 'size':
95
121
  this.setHostProperty('size', changes['size'].currentValue);
96
122
  break;
97
- case 'disabled':
98
- this.setHostProperty('disabled', changes['disabled'].currentValue);
99
- break;
100
123
  case 'autofocus':
101
124
  this.setHostProperty('autofocus', changes['autofocus'].currentValue);
102
125
  break;
@@ -124,7 +147,7 @@ export class LuzmoFilterItem {
124
147
  }));
125
148
  }
126
149
  static ɵfac = function LuzmoFilterItem_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilterItem)(); };
127
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilterItem, selectors: [["luzmo-filter-item"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", contentLanguage: "contentLanguage", timeZone: "timeZone", datasetIds: "datasetIds", filter: "filter", allowParameters: [2, "allowParameters", "allowParameters", booleanAttribute], parameters: "parameters", language: "language", size: "size", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoFilterChanged: "luzmoFilterChanged" }, exportAs: ["luzmoFilterItem"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilterItem_Template(rf, ctx) { if (rf & 1) {
150
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilterItem, selectors: [["luzmo-filter-item"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", contentLanguage: "contentLanguage", timeZone: "timeZone", datasetIds: "datasetIds", filter: "filter", display: "display", columnDisplay: "columnDisplay", quiet: [2, "quiet", "quiet", booleanAttribute], readonly: [2, "readonly", "readonly", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], allowParameters: [2, "allowParameters", "allowParameters", booleanAttribute], parameters: "parameters", language: "language", size: "size", autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoFilterChanged: "luzmoFilterChanged" }, exportAs: ["luzmoFilterItem"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilterItem_Template(rf, ctx) { if (rf & 1) {
128
151
  i0.ɵɵprojectionDef();
129
152
  i0.ɵɵprojection(0);
130
153
  } }, encapsulation: 2 });
@@ -162,6 +185,21 @@ export class LuzmoFilterItem {
162
185
  }], filter: [{
163
186
  type: Input,
164
187
  args: [{ alias: 'filter' }]
188
+ }], display: [{
189
+ type: Input,
190
+ args: [{ alias: 'display' }]
191
+ }], columnDisplay: [{
192
+ type: Input,
193
+ args: [{ alias: 'columnDisplay' }]
194
+ }], quiet: [{
195
+ type: Input,
196
+ args: [{ alias: 'quiet', transform: booleanAttribute }]
197
+ }], readonly: [{
198
+ type: Input,
199
+ args: [{ alias: 'readonly', transform: booleanAttribute }]
200
+ }], disabled: [{
201
+ type: Input,
202
+ args: [{ alias: 'disabled', transform: booleanAttribute }]
165
203
  }], allowParameters: [{
166
204
  type: Input,
167
205
  args: [{ alias: 'allowParameters', transform: booleanAttribute }]
@@ -174,9 +212,6 @@ export class LuzmoFilterItem {
174
212
  }], size: [{
175
213
  type: Input,
176
214
  args: [{ alias: 'size' }]
177
- }], disabled: [{
178
- type: Input,
179
- args: [{ alias: 'disabled', transform: booleanAttribute }]
180
215
  }], autofocus: [{
181
216
  type: Input,
182
217
  args: [{ alias: 'autofocus', transform: booleanAttribute }]
@@ -184,4 +219,4 @@ export class LuzmoFilterItem {
184
219
  type: Input,
185
220
  args: [{ alias: 'tabIndex' }]
186
221
  }], luzmoFilterChanged: [{ type: i0.Output, args: ["luzmoFilterChanged"] }] }); })();
187
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilterItem, { className: "LuzmoFilterItem", filePath: "components/filter-item.ts", lineNumber: 16 }); })();
222
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilterItem, { className: "LuzmoFilterItem", filePath: "components/filter-item.ts", lineNumber: 20 }); })();
@@ -1,8 +1,8 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/filters';
3
- import type { LuzmoFilters as LuzmoFiltersHostElement, FilterParameter, FiltersChangedEventDetail, FiltersFormat, FiltersInput } from '@luzmo/analytics-components-kit/filters';
3
+ import type { LuzmoFilters as LuzmoFiltersHostElement, FilterColumnDisplay, FilterParameter, FiltersChangedEventDetail, FiltersDisplay, FiltersFormat, FiltersInput } from '@luzmo/analytics-components-kit/filters';
4
4
  import * as i0 from "@angular/core";
5
- export type { CleanFilter, CleanFilterClauseGroup, CleanFilterGroup, CleanRetrievedFilterGroup, DashboardFilterOutput, DetectedFiltersFormat, FilterClause, FilterCondition, FilterGroup, FilterParameter, FilterParameterEventDetail, FilterParameterType, FiltersChangedEventDetail, FiltersFormat, FiltersInput, FiltersOutput, ItemFilterOutput, TransformFiltersOptions } from '@luzmo/analytics-components-kit/filters';
5
+ export type { CleanFilter, CleanFilterClauseGroup, CleanFilterGroup, CleanRetrievedFilterGroup, DashboardFilterOutput, DetectedFiltersFormat, FilterClause, FilterColumnDisplay, FilterCondition, FilterGroup, FilterParameter, FilterParameterEventDetail, FilterParameterType, FiltersChangedEventDetail, FiltersDisplay, FiltersFormat, FiltersInput, FiltersOutput, ItemFilterOutput, TransformFiltersOptions } from '@luzmo/analytics-components-kit/filters';
6
6
  export declare class LuzmoFilters implements OnChanges {
7
7
  private readonly elementRef;
8
8
  private readonly renderer;
@@ -29,6 +29,14 @@ export declare class LuzmoFilters implements OnChanges {
29
29
  filters?: FiltersInput;
30
30
  /** Output format for the `luzmo-filters-changed` event. `canonical` emits `ItemFilterGroup[]`; `clean` emits the clean clause groups that aligned hosts consume. A tree that cannot be represented cleanly falls back to canonical output, and the event says which format it carries. */
31
31
  format?: FiltersFormat;
32
+ /** How the filters are presented. `rich` is the editable group editor. `text` is a read-only sentence, with parentheses around nested AND/OR groups. `outline` is one wrapping filter per line inside bracket rails, and can delete a filter unless `readonly` is set. */
33
+ display?: FiltersDisplay;
34
+ /** Presentation of column and formula references in text and outline displays. */
35
+ columnDisplay?: FilterColumnDisplay;
36
+ /** Removes rich-editor control chrome while keeping the filters editable. */
37
+ quiet?: boolean;
38
+ /** Prevents changes while preserving the selected display and visual treatment. In `outline`, this hides the delete buttons. */
39
+ readonly?: boolean;
32
40
  /** Whether parameter-backed filter values can be created and selected. */
33
41
  allowParameters?: boolean;
34
42
  /** Consumer-owned parameter definitions available to filter rows. */
@@ -45,7 +53,7 @@ export declare class LuzmoFilters implements OnChanges {
45
53
  autofocus?: boolean;
46
54
  /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
47
55
  tabIndex?: number;
48
- /** Announces that the filters have changed, carrying the emitted groups and the format they are in */
56
+ /** Announces that the filters have changed, carrying the emitted groups and the format they are in. `display="text"` never fires this. Outline fires it after a filter is deleted. */
49
57
  readonly luzmoFiltersChanged: import("@angular/core").OutputEmitterRef<CustomEvent<FiltersChangedEventDetail>>;
50
58
  /** Announces that a parameter was created and added to `parameters`. */
51
59
  readonly luzmoParameterCreated: import("@angular/core").OutputEmitterRef<CustomEvent<{
@@ -66,7 +74,9 @@ export declare class LuzmoFilters implements OnChanges {
66
74
  private setHostProperty;
67
75
  private bindEvents;
68
76
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFilters, never>;
69
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilters, "luzmo-filters", ["luzmoFilters"], { "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "format": { "alias": "format"; "required": false; }; "allowParameters": { "alias": "allowParameters"; "required": false; }; "parameters": { "alias": "parameters"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoFiltersChanged": "luzmoFiltersChanged"; "luzmoParameterCreated": "luzmoParameterCreated"; "luzmoParameterRemoved": "luzmoParameterRemoved"; }, never, ["*"], true, never>;
77
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilters, "luzmo-filters", ["luzmoFilters"], { "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "format": { "alias": "format"; "required": false; }; "display": { "alias": "display"; "required": false; }; "columnDisplay": { "alias": "columnDisplay"; "required": false; }; "quiet": { "alias": "quiet"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "allowParameters": { "alias": "allowParameters"; "required": false; }; "parameters": { "alias": "parameters"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoFiltersChanged": "luzmoFiltersChanged"; "luzmoParameterCreated": "luzmoParameterCreated"; "luzmoParameterRemoved": "luzmoParameterRemoved"; }, never, ["*"], true, never>;
78
+ static ngAcceptInputType_quiet: unknown;
79
+ static ngAcceptInputType_readonly: unknown;
70
80
  static ngAcceptInputType_allowParameters: unknown;
71
81
  static ngAcceptInputType_disabled: unknown;
72
82
  static ngAcceptInputType_autofocus: unknown;
@@ -4,6 +4,10 @@ import * as i0 from "@angular/core";
4
4
  const _c0 = ["*"];
5
5
  /**
6
6
  * Angular wrapper component for <luzmo-filters>
7
+ *
8
+ * @csspart filters-text - The inline sentence shown when `display` is `text`.
9
+ * @csspart filters-outline - The bracket layout shown when `display` is `outline`.
10
+ * @csspart filters-outline-row - One filter row in the outline, including its delete button when shown.
7
11
  */
8
12
  export class LuzmoFilters {
9
13
  elementRef = inject(ElementRef);
@@ -33,6 +37,14 @@ export class LuzmoFilters {
33
37
  filters;
34
38
  /** Output format for the `luzmo-filters-changed` event. `canonical` emits `ItemFilterGroup[]`; `clean` emits the clean clause groups that aligned hosts consume. A tree that cannot be represented cleanly falls back to canonical output, and the event says which format it carries. */
35
39
  format;
40
+ /** How the filters are presented. `rich` is the editable group editor. `text` is a read-only sentence, with parentheses around nested AND/OR groups. `outline` is one wrapping filter per line inside bracket rails, and can delete a filter unless `readonly` is set. */
41
+ display;
42
+ /** Presentation of column and formula references in text and outline displays. */
43
+ columnDisplay;
44
+ /** Removes rich-editor control chrome while keeping the filters editable. */
45
+ quiet;
46
+ /** Prevents changes while preserving the selected display and visual treatment. In `outline`, this hides the delete buttons. */
47
+ readonly;
36
48
  /** Whether parameter-backed filter values can be created and selected. */
37
49
  allowParameters;
38
50
  /** Consumer-owned parameter definitions available to filter rows. */
@@ -49,7 +61,7 @@ export class LuzmoFilters {
49
61
  autofocus;
50
62
  /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
51
63
  tabIndex;
52
- /** Announces that the filters have changed, carrying the emitted groups and the format they are in */
64
+ /** Announces that the filters have changed, carrying the emitted groups and the format they are in. `display="text"` never fires this. Outline fires it after a filter is deleted. */
53
65
  luzmoFiltersChanged = output({ alias: 'luzmoFiltersChanged' });
54
66
  /** Announces that a parameter was created and added to `parameters`. */
55
67
  luzmoParameterCreated = output({ alias: 'luzmoParameterCreated' });
@@ -93,6 +105,18 @@ export class LuzmoFilters {
93
105
  case 'format':
94
106
  this.setHostProperty('format', changes['format'].currentValue);
95
107
  break;
108
+ case 'display':
109
+ this.setHostProperty('display', changes['display'].currentValue);
110
+ break;
111
+ case 'columnDisplay':
112
+ this.setHostProperty('columnDisplay', changes['columnDisplay'].currentValue);
113
+ break;
114
+ case 'quiet':
115
+ this.setHostProperty('quiet', changes['quiet'].currentValue);
116
+ break;
117
+ case 'readonly':
118
+ this.setHostProperty('readonly', changes['readonly'].currentValue);
119
+ break;
96
120
  case 'allowParameters':
97
121
  this.setHostProperty('allowParameters', changes['allowParameters'].currentValue);
98
122
  break;
@@ -146,7 +170,7 @@ export class LuzmoFilters {
146
170
  }));
147
171
  }
148
172
  static ɵfac = function LuzmoFilters_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilters)(); };
149
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilters, selectors: [["luzmo-filters"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", contentLanguage: "contentLanguage", timeZone: "timeZone", datasetIds: "datasetIds", filters: "filters", format: "format", allowParameters: [2, "allowParameters", "allowParameters", booleanAttribute], parameters: "parameters", debounce: "debounce", language: "language", size: "size", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoFiltersChanged: "luzmoFiltersChanged", luzmoParameterCreated: "luzmoParameterCreated", luzmoParameterRemoved: "luzmoParameterRemoved" }, exportAs: ["luzmoFilters"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilters_Template(rf, ctx) { if (rf & 1) {
173
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilters, selectors: [["luzmo-filters"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", contentLanguage: "contentLanguage", timeZone: "timeZone", datasetIds: "datasetIds", filters: "filters", format: "format", display: "display", columnDisplay: "columnDisplay", quiet: [2, "quiet", "quiet", booleanAttribute], readonly: [2, "readonly", "readonly", booleanAttribute], allowParameters: [2, "allowParameters", "allowParameters", booleanAttribute], parameters: "parameters", debounce: "debounce", language: "language", size: "size", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoFiltersChanged: "luzmoFiltersChanged", luzmoParameterCreated: "luzmoParameterCreated", luzmoParameterRemoved: "luzmoParameterRemoved" }, exportAs: ["luzmoFilters"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilters_Template(rf, ctx) { if (rf & 1) {
150
174
  i0.ɵɵprojectionDef();
151
175
  i0.ɵɵprojection(0);
152
176
  } }, encapsulation: 2 });
@@ -187,6 +211,18 @@ export class LuzmoFilters {
187
211
  }], format: [{
188
212
  type: Input,
189
213
  args: [{ alias: 'format' }]
214
+ }], display: [{
215
+ type: Input,
216
+ args: [{ alias: 'display' }]
217
+ }], columnDisplay: [{
218
+ type: Input,
219
+ args: [{ alias: 'columnDisplay' }]
220
+ }], quiet: [{
221
+ type: Input,
222
+ args: [{ alias: 'quiet', transform: booleanAttribute }]
223
+ }], readonly: [{
224
+ type: Input,
225
+ args: [{ alias: 'readonly', transform: booleanAttribute }]
190
226
  }], allowParameters: [{
191
227
  type: Input,
192
228
  args: [{ alias: 'allowParameters', transform: booleanAttribute }]
@@ -212,4 +248,4 @@ export class LuzmoFilters {
212
248
  type: Input,
213
249
  args: [{ alias: 'tabIndex' }]
214
250
  }], luzmoFiltersChanged: [{ type: i0.Output, args: ["luzmoFiltersChanged"] }], luzmoParameterCreated: [{ type: i0.Output, args: ["luzmoParameterCreated"] }], luzmoParameterRemoved: [{ type: i0.Output, args: ["luzmoParameterRemoved"] }] }); })();
215
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilters, { className: "LuzmoFilters", filePath: "components/filters.ts", lineNumber: 16 }); })();
251
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilters, { className: "LuzmoFilters", filePath: "components/filters.ts", lineNumber: 20 }); })();
package/package.json CHANGED
@@ -29,9 +29,9 @@
29
29
  "peerDependencies": {
30
30
  "@angular/core": "^17.3.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
31
31
  "@angular/forms": "^17.3.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
32
- "@luzmo/analytics-components-kit": "1.0.8-beta.7"
32
+ "@luzmo/analytics-components-kit": "1.0.9-beta.1"
33
33
  },
34
- "version": "1.0.8-beta.7",
34
+ "version": "1.0.9-beta.1",
35
35
  "peerDependenciesMeta": {
36
36
  "@angular/forms": {
37
37
  "optional": true