@luzmo/ngx-analytics-components-kit 1.0.3-beta.12 → 1.0.3-beta.14

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.
Files changed (87) hide show
  1. package/esm/components/data-field-level.d.ts +9 -1
  2. package/esm/components/data-field-level.js +15 -1
  3. package/esm/components/data-field-panel.d.ts +5 -1
  4. package/esm/components/data-field-panel.js +17 -1
  5. package/esm/components/data-field.d.ts +10 -1
  6. package/esm/components/data-field.js +22 -1
  7. package/esm/components/data-fields-select.d.ts +10 -1
  8. package/esm/components/data-fields-select.js +33 -1
  9. package/esm/components/display-settings-binning.d.ts +6 -1
  10. package/esm/components/display-settings-binning.js +18 -1
  11. package/esm/components/display-settings-datetime.d.ts +5 -1
  12. package/esm/components/display-settings-datetime.js +11 -1
  13. package/esm/components/display-settings-grand-totals.d.ts +5 -1
  14. package/esm/components/display-settings-grand-totals.js +17 -1
  15. package/esm/components/display-settings-numeric.d.ts +5 -1
  16. package/esm/components/display-settings-numeric.js +17 -1
  17. package/esm/components/display-settings-period-over-period.d.ts +7 -1
  18. package/esm/components/display-settings-period-over-period.js +19 -1
  19. package/esm/components/display-settings.d.ts +4 -1
  20. package/esm/components/display-settings.js +10 -1
  21. package/esm/components/filter-expression-picker.d.ts +11 -1
  22. package/esm/components/filter-expression-picker.js +34 -1
  23. package/esm/components/filter-item.d.ts +14 -1
  24. package/esm/components/filter-item.js +43 -2
  25. package/esm/components/filter-parameter-picker.d.ts +11 -1
  26. package/esm/components/filter-parameter-picker.js +34 -2
  27. package/esm/components/filter-value-picker-datetime.d.ts +14 -1
  28. package/esm/components/filter-value-picker-datetime.js +43 -2
  29. package/esm/components/filter-value-picker-hierarchy.d.ts +14 -1
  30. package/esm/components/filter-value-picker-hierarchy.js +43 -2
  31. package/esm/components/filter-value-picker-numeric.d.ts +14 -1
  32. package/esm/components/filter-value-picker-numeric.js +43 -2
  33. package/esm/components/filter-value-picker.d.ts +14 -1
  34. package/esm/components/filter-value-picker.js +43 -2
  35. package/esm/components/filters.d.ts +13 -1
  36. package/esm/components/filters.js +42 -2
  37. package/esm/components/formula-editor.d.ts +42 -3
  38. package/esm/components/formula-editor.js +138 -2
  39. package/esm/components/formula-field.d.ts +42 -3
  40. package/esm/components/formula-field.js +145 -5
  41. package/esm/components/formula.d.ts +31 -2
  42. package/esm/components/formula.js +105 -3
  43. package/esm/components/item-grid-item-actions-menu.d.ts +12 -1
  44. package/esm/components/item-grid-item-actions-menu.js +35 -2
  45. package/esm/components/item-option-action-button-group.d.ts +12 -1
  46. package/esm/components/item-option-action-button-group.js +49 -5
  47. package/esm/components/item-option-color-palette-picker.d.ts +19 -1
  48. package/esm/components/item-option-color-palette-picker.js +73 -5
  49. package/esm/components/item-option-color-picker.d.ts +17 -1
  50. package/esm/components/item-option-color-picker.js +40 -3
  51. package/esm/components/item-option-color-range.d.ts +37 -1
  52. package/esm/components/item-option-color-range.js +121 -5
  53. package/esm/components/item-option-multi-language-field.d.ts +20 -1
  54. package/esm/components/item-option-multi-language-field.js +67 -2
  55. package/esm/components/item-option-number-field.d.ts +27 -1
  56. package/esm/components/item-option-number-field.js +92 -2
  57. package/esm/components/item-option-picker.d.ts +17 -1
  58. package/esm/components/item-option-picker.js +66 -6
  59. package/esm/components/item-option-position-picker.d.ts +10 -1
  60. package/esm/components/item-option-position-picker.js +41 -5
  61. package/esm/components/item-option-positions-number-field.d.ts +23 -1
  62. package/esm/components/item-option-positions-number-field.js +68 -2
  63. package/esm/components/item-option-radio-button-group.d.ts +15 -1
  64. package/esm/components/item-option-radio-button-group.js +51 -2
  65. package/esm/components/item-option-slider.d.ts +11 -1
  66. package/esm/components/item-option-slider.js +23 -1
  67. package/esm/components/item-option-switch.d.ts +7 -1
  68. package/esm/components/item-option-switch.js +19 -1
  69. package/esm/components/item-option-text-field.d.ts +14 -1
  70. package/esm/components/item-option-text-field.js +43 -2
  71. package/esm/components/item-option.d.ts +10 -0
  72. package/esm/components/item-option.js +10 -0
  73. package/esm/components/item-slot-drop-panel.d.ts +5 -1
  74. package/esm/components/item-slot-drop-panel.js +17 -1
  75. package/esm/components/item-slot-drop.d.ts +15 -1
  76. package/esm/components/item-slot-drop.js +27 -1
  77. package/esm/components/item-slot-picker-panel.d.ts +5 -1
  78. package/esm/components/item-slot-picker-panel.js +17 -1
  79. package/esm/components/item-slot-picker.d.ts +7 -1
  80. package/esm/components/item-slot-picker.js +25 -1
  81. package/esm/components/slot-menu-list.d.ts +5 -1
  82. package/esm/components/slot-menu-list.js +11 -1
  83. package/esm/components/slot-menu.d.ts +16 -1
  84. package/esm/components/slot-menu.js +22 -1
  85. package/esm/components/viz-item-menu.d.ts +3 -1
  86. package/esm/components/viz-item-menu.js +9 -1
  87. package/package.json +2 -2
@@ -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/item-grid';
3
3
  import * as i0 from "@angular/core";
4
4
  const _c0 = ["*"];
@@ -19,6 +19,15 @@ export class LuzmoItemGridItemActionsMenu {
19
19
  placement;
20
20
  /** The Actions to display in the menu */
21
21
  actions;
22
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
23
+ language;
24
+ /** Disable this control. It will not receive focus or events */
25
+ disabled;
26
+ /** When this control is rendered, focus it automatically */
27
+ autofocus;
28
+ /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
29
+ tabIndex;
30
+ /** Fired when the user clicks an action in the menu; `detail` holds the action key, type, and active state. */
22
31
  luzmoItemGridItemAction = output({ alias: 'luzmoItemGridItemAction' });
23
32
  constructor() {
24
33
  this.bindEvents();
@@ -37,6 +46,18 @@ export class LuzmoItemGridItemActionsMenu {
37
46
  case 'actions':
38
47
  this.setHostProperty('actions', changes['actions'].currentValue);
39
48
  break;
49
+ case 'language':
50
+ this.setHostProperty('language', changes['language'].currentValue);
51
+ break;
52
+ case 'disabled':
53
+ this.setHostProperty('disabled', changes['disabled'].currentValue);
54
+ break;
55
+ case 'autofocus':
56
+ this.setHostProperty('autofocus', changes['autofocus'].currentValue);
57
+ break;
58
+ case 'tabIndex':
59
+ this.setHostProperty('tabIndex', changes['tabIndex'].currentValue);
60
+ break;
40
61
  default:
41
62
  break;
42
63
  }
@@ -58,7 +79,7 @@ export class LuzmoItemGridItemActionsMenu {
58
79
  }));
59
80
  }
60
81
  static ɵfac = function LuzmoItemGridItemActionsMenu_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemGridItemActionsMenu)(); };
61
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemGridItemActionsMenu, selectors: [["luzmo-item-grid-item-actions-menu"]], inputs: { placement: "placement", actions: "actions" }, outputs: { luzmoItemGridItemAction: "luzmoItemGridItemAction" }, exportAs: ["luzmoItemGridItemActionsMenu"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemGridItemActionsMenu_Template(rf, ctx) { if (rf & 1) {
82
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemGridItemActionsMenu, selectors: [["luzmo-item-grid-item-actions-menu"]], inputs: { placement: "placement", actions: "actions", language: "language", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoItemGridItemAction: "luzmoItemGridItemAction" }, exportAs: ["luzmoItemGridItemActionsMenu"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemGridItemActionsMenu_Template(rf, ctx) { if (rf & 1) {
62
83
  i0.ɵɵprojectionDef();
63
84
  i0.ɵɵprojection(0);
64
85
  } }, encapsulation: 2, changeDetection: 0 });
@@ -78,5 +99,17 @@ export class LuzmoItemGridItemActionsMenu {
78
99
  }], actions: [{
79
100
  type: Input,
80
101
  args: [{ alias: 'actions' }]
102
+ }], language: [{
103
+ type: Input,
104
+ args: [{ alias: 'language' }]
105
+ }], disabled: [{
106
+ type: Input,
107
+ args: [{ alias: 'disabled', transform: booleanAttribute }]
108
+ }], autofocus: [{
109
+ type: Input,
110
+ args: [{ alias: 'autofocus', transform: booleanAttribute }]
111
+ }], tabIndex: [{
112
+ type: Input,
113
+ args: [{ alias: 'tabIndex' }]
81
114
  }], luzmoItemGridItemAction: [{ type: i0.Output, args: ["luzmoItemGridItemAction"] }] }); })();
82
115
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemGridItemActionsMenu, { className: "LuzmoItemGridItemActionsMenu", filePath: "components/item-grid-item-actions-menu.ts", lineNumber: 17 }); })();
@@ -11,6 +11,16 @@ export declare class LuzmoItemOptionActionButtonGroup implements OnChanges {
11
11
  private readonly listenerCleanup;
12
12
  /** The underlying custom element instance. Use to call imperative methods. */
13
13
  get nativeElement(): LuzmoItemOptionActionButtonGroupHostElement;
14
+ /** The available buttons to choose from (key → button content). */
15
+ values?: unknown;
16
+ /** Whether the control is disabled (non-interactive). */
17
+ disabled?: boolean;
18
+ /** Selection mode: `single` or `multiple`. */
19
+ selects?: 'single' | 'multiple';
20
+ /** The currently selected button key(s). */
21
+ value?: [string];
22
+ /** The default selection used when no value is set. */
23
+ default?: [string];
14
24
  /** Emitted when the option value changes. */
15
25
  readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
16
26
  constructor();
@@ -24,7 +34,8 @@ export declare class LuzmoItemOptionActionButtonGroup implements OnChanges {
24
34
  private setHostProperty;
25
35
  private bindEvents;
26
36
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionActionButtonGroup, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionActionButtonGroup, "luzmo-item-option-action-button-group", ["luzmoItemOptionActionButtonGroup"], {}, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionActionButtonGroup, "luzmo-item-option-action-button-group", ["luzmoItemOptionActionButtonGroup"], { "values": { "alias": "values"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; "value": { "alias": "value"; "required": false; }; "default": { "alias": "default"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
38
+ static ngAcceptInputType_disabled: unknown;
28
39
  }
29
40
  /** The underlying custom element type for LuzmoItemOptionActionButtonGroup */
30
41
  export type LuzmoItemOptionActionButtonGroupElement = LuzmoItemOptionActionButtonGroupHostElement;
@@ -1,4 +1,4 @@
1
- import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, 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/item-option-action-button-group';
3
3
  import * as i0 from "@angular/core";
4
4
  const _c0 = ["*"];
@@ -15,6 +15,16 @@ export class LuzmoItemOptionActionButtonGroup {
15
15
  get nativeElement() {
16
16
  return this.host;
17
17
  }
18
+ /** The available buttons to choose from (key → button content). */
19
+ values;
20
+ /** Whether the control is disabled (non-interactive). */
21
+ disabled;
22
+ /** Selection mode: `single` or `multiple`. */
23
+ selects;
24
+ /** The currently selected button key(s). */
25
+ value;
26
+ /** The default selection used when no value is set. */
27
+ default;
18
28
  /** Emitted when the option value changes. */
19
29
  luzmoOptionChanged = output({ alias: 'luzmoOptionChanged' });
20
30
  constructor() {
@@ -26,8 +36,27 @@ export class LuzmoItemOptionActionButtonGroup {
26
36
  });
27
37
  }
28
38
  ngOnChanges(changes) {
29
- // No mapped inputs for this wrapper.
30
- void changes;
39
+ for (const key of Object.keys(changes)) {
40
+ switch (key) {
41
+ case 'values':
42
+ this.setHostProperty('values', changes['values'].currentValue);
43
+ break;
44
+ case 'disabled':
45
+ this.setHostProperty('disabled', changes['disabled'].currentValue);
46
+ break;
47
+ case 'selects':
48
+ this.setHostProperty('selects', changes['selects'].currentValue);
49
+ break;
50
+ case 'value':
51
+ this.setHostProperty('value', changes['value'].currentValue);
52
+ break;
53
+ case 'default':
54
+ this.setHostProperty('default', changes['default'].currentValue);
55
+ break;
56
+ default:
57
+ break;
58
+ }
59
+ }
31
60
  }
32
61
  /**
33
62
  * Forward a wrapper @Input to the underlying host element via Renderer2 so
@@ -45,7 +74,7 @@ export class LuzmoItemOptionActionButtonGroup {
45
74
  }));
46
75
  }
47
76
  static ɵfac = function LuzmoItemOptionActionButtonGroup_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionActionButtonGroup)(); };
48
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionActionButtonGroup, selectors: [["luzmo-item-option-action-button-group"]], outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionActionButtonGroup"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionActionButtonGroup_Template(rf, ctx) { if (rf & 1) {
77
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionActionButtonGroup, selectors: [["luzmo-item-option-action-button-group"]], inputs: { values: "values", disabled: [2, "disabled", "disabled", booleanAttribute], selects: "selects", value: "value", default: "default" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionActionButtonGroup"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionActionButtonGroup_Template(rf, ctx) { if (rf & 1) {
49
78
  i0.ɵɵprojectionDef();
50
79
  i0.ɵɵprojection(0);
51
80
  } }, encapsulation: 2, changeDetection: 0 });
@@ -59,5 +88,20 @@ export class LuzmoItemOptionActionButtonGroup {
59
88
  changeDetection: ChangeDetectionStrategy.OnPush,
60
89
  template: '<ng-content />'
61
90
  }]
62
- }], () => [], { luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
91
+ }], () => [], { values: [{
92
+ type: Input,
93
+ args: [{ alias: 'values' }]
94
+ }], disabled: [{
95
+ type: Input,
96
+ args: [{ alias: 'disabled', transform: booleanAttribute }]
97
+ }], selects: [{
98
+ type: Input,
99
+ args: [{ alias: 'selects' }]
100
+ }], value: [{
101
+ type: Input,
102
+ args: [{ alias: 'value' }]
103
+ }], default: [{
104
+ type: Input,
105
+ args: [{ alias: 'default' }]
106
+ }], luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
63
107
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionActionButtonGroup, { className: "LuzmoItemOptionActionButtonGroup", filePath: "components/item-option-action-button-group.ts", lineNumber: 16 }); })();
@@ -11,6 +11,22 @@ export declare class LuzmoItemOptionColorPalettePicker implements OnChanges {
11
11
  private readonly listenerCleanup;
12
12
  /** The underlying custom element instance. Use to call imperative methods. */
13
13
  get nativeElement(): LuzmoItemOptionColorPalettePickerHostElement;
14
+ /** The selected color palette key of the picker */
15
+ value?: string;
16
+ /** The default color palette key of the picker */
17
+ default?: string;
18
+ /** The color palette keys of the picker */
19
+ values?: string[];
20
+ /** Whether the picker is disabled */
21
+ disabled?: boolean;
22
+ /** Whether the picker is horizontal */
23
+ horizontal?: boolean;
24
+ /** The function to parse the value */
25
+ parseValue?: unknown;
26
+ /** The function to convert the value to a string */
27
+ toValue?: unknown;
28
+ /** The number of colors to display */
29
+ numberOfColors?: number;
14
30
  /** Emitted when the option value changes. */
15
31
  readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
16
32
  constructor();
@@ -24,7 +40,9 @@ export declare class LuzmoItemOptionColorPalettePicker implements OnChanges {
24
40
  private setHostProperty;
25
41
  private bindEvents;
26
42
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionColorPalettePicker, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionColorPalettePicker, "luzmo-item-option-color-palette-picker", ["luzmoItemOptionColorPalettePicker"], {}, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionColorPalettePicker, "luzmo-item-option-color-palette-picker", ["luzmoItemOptionColorPalettePicker"], { "value": { "alias": "value"; "required": false; }; "default": { "alias": "default"; "required": false; }; "values": { "alias": "values"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "horizontal": { "alias": "horizontal"; "required": false; }; "parseValue": { "alias": "parseValue"; "required": false; }; "toValue": { "alias": "toValue"; "required": false; }; "numberOfColors": { "alias": "numberOfColors"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
44
+ static ngAcceptInputType_disabled: unknown;
45
+ static ngAcceptInputType_horizontal: unknown;
28
46
  }
29
47
  /** The underlying custom element type for LuzmoItemOptionColorPalettePicker */
30
48
  export type LuzmoItemOptionColorPalettePickerElement = LuzmoItemOptionColorPalettePickerHostElement;
@@ -1,4 +1,4 @@
1
- import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, 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/item-option-color-palette-picker';
3
3
  import * as i0 from "@angular/core";
4
4
  const _c0 = ["*"];
@@ -15,6 +15,22 @@ export class LuzmoItemOptionColorPalettePicker {
15
15
  get nativeElement() {
16
16
  return this.host;
17
17
  }
18
+ /** The selected color palette key of the picker */
19
+ value;
20
+ /** The default color palette key of the picker */
21
+ default;
22
+ /** The color palette keys of the picker */
23
+ values;
24
+ /** Whether the picker is disabled */
25
+ disabled;
26
+ /** Whether the picker is horizontal */
27
+ horizontal;
28
+ /** The function to parse the value */
29
+ parseValue;
30
+ /** The function to convert the value to a string */
31
+ toValue;
32
+ /** The number of colors to display */
33
+ numberOfColors;
18
34
  /** Emitted when the option value changes. */
19
35
  luzmoOptionChanged = output({ alias: 'luzmoOptionChanged' });
20
36
  constructor() {
@@ -26,8 +42,36 @@ export class LuzmoItemOptionColorPalettePicker {
26
42
  });
27
43
  }
28
44
  ngOnChanges(changes) {
29
- // No mapped inputs for this wrapper.
30
- void changes;
45
+ for (const key of Object.keys(changes)) {
46
+ switch (key) {
47
+ case 'value':
48
+ this.setHostProperty('value', changes['value'].currentValue);
49
+ break;
50
+ case 'default':
51
+ this.setHostProperty('default', changes['default'].currentValue);
52
+ break;
53
+ case 'values':
54
+ this.setHostProperty('values', changes['values'].currentValue);
55
+ break;
56
+ case 'disabled':
57
+ this.setHostProperty('disabled', changes['disabled'].currentValue);
58
+ break;
59
+ case 'horizontal':
60
+ this.setHostProperty('horizontal', changes['horizontal'].currentValue);
61
+ break;
62
+ case 'parseValue':
63
+ this.setHostProperty('parseValue', changes['parseValue'].currentValue);
64
+ break;
65
+ case 'toValue':
66
+ this.setHostProperty('toValue', changes['toValue'].currentValue);
67
+ break;
68
+ case 'numberOfColors':
69
+ this.setHostProperty('numberOfColors', changes['numberOfColors'].currentValue);
70
+ break;
71
+ default:
72
+ break;
73
+ }
74
+ }
31
75
  }
32
76
  /**
33
77
  * Forward a wrapper @Input to the underlying host element via Renderer2 so
@@ -45,7 +89,7 @@ export class LuzmoItemOptionColorPalettePicker {
45
89
  }));
46
90
  }
47
91
  static ɵfac = function LuzmoItemOptionColorPalettePicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionColorPalettePicker)(); };
48
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionColorPalettePicker, selectors: [["luzmo-item-option-color-palette-picker"]], outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionColorPalettePicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionColorPalettePicker_Template(rf, ctx) { if (rf & 1) {
92
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionColorPalettePicker, selectors: [["luzmo-item-option-color-palette-picker"]], inputs: { value: "value", default: "default", values: "values", disabled: [2, "disabled", "disabled", booleanAttribute], horizontal: [2, "horizontal", "horizontal", booleanAttribute], parseValue: "parseValue", toValue: "toValue", numberOfColors: "numberOfColors" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionColorPalettePicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionColorPalettePicker_Template(rf, ctx) { if (rf & 1) {
49
93
  i0.ɵɵprojectionDef();
50
94
  i0.ɵɵprojection(0);
51
95
  } }, encapsulation: 2, changeDetection: 0 });
@@ -59,5 +103,29 @@ export class LuzmoItemOptionColorPalettePicker {
59
103
  changeDetection: ChangeDetectionStrategy.OnPush,
60
104
  template: '<ng-content />'
61
105
  }]
62
- }], () => [], { luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
106
+ }], () => [], { value: [{
107
+ type: Input,
108
+ args: [{ alias: 'value' }]
109
+ }], default: [{
110
+ type: Input,
111
+ args: [{ alias: 'default' }]
112
+ }], values: [{
113
+ type: Input,
114
+ args: [{ alias: 'values' }]
115
+ }], disabled: [{
116
+ type: Input,
117
+ args: [{ alias: 'disabled', transform: booleanAttribute }]
118
+ }], horizontal: [{
119
+ type: Input,
120
+ args: [{ alias: 'horizontal', transform: booleanAttribute }]
121
+ }], parseValue: [{
122
+ type: Input,
123
+ args: [{ alias: 'parseValue' }]
124
+ }], toValue: [{
125
+ type: Input,
126
+ args: [{ alias: 'toValue' }]
127
+ }], numberOfColors: [{
128
+ type: Input,
129
+ args: [{ alias: 'numberOfColors' }]
130
+ }], luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
63
131
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionColorPalettePicker, { className: "LuzmoItemOptionColorPalettePicker", filePath: "components/item-option-color-palette-picker.ts", lineNumber: 16 }); })();
@@ -1,6 +1,7 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/item-option-color-picker';
3
3
  import type { LuzmoItemOptionColorPicker as LuzmoItemOptionColorPickerHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-color-picker';
4
+ import type { Placement } from '@luzmo/lucero';
4
5
  import * as i0 from "@angular/core";
5
6
  export type { ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-color-picker';
6
7
  export declare class LuzmoItemOptionColorPicker implements OnChanges {
@@ -11,11 +12,24 @@ export declare class LuzmoItemOptionColorPicker implements OnChanges {
11
12
  private readonly listenerCleanup;
12
13
  /** The underlying custom element instance. Use to call imperative methods. */
13
14
  get nativeElement(): LuzmoItemOptionColorPickerHostElement;
15
+ /** Preset colors offered as quick-pick swatches. */
14
16
  swatches?: string[];
17
+ /** Corner rounding of the color swatch: `full`, `light`, or `none`. */
15
18
  rounding?: 'full' | 'light' | 'none';
19
+ /** Shape of the color swatch: `circle` or `rectangle`. */
16
20
  shape?: 'circle' | 'rectangle';
21
+ /** Delay in milliseconds before the change event is emitted after the user stops interacting. */
17
22
  debounce?: number;
23
+ /** Internal timer handle used to debounce change events. */
18
24
  debounceTimeout?: any;
25
+ /** The current color value. */
26
+ value?: string;
27
+ /** Whether the control is disabled (non-interactive). */
28
+ disabled?: boolean;
29
+ /** Disables the alpha (opacity) channel in the color picker. */
30
+ noAlphaChannel?: boolean;
31
+ /** Placement of the color picker dropdown relative to its trigger. */
32
+ placement?: Placement;
19
33
  /** Emitted when the option value changes. */
20
34
  readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
21
35
  constructor();
@@ -29,7 +43,9 @@ export declare class LuzmoItemOptionColorPicker implements OnChanges {
29
43
  private setHostProperty;
30
44
  private bindEvents;
31
45
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionColorPicker, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionColorPicker, "luzmo-item-option-color-picker", ["luzmoItemOptionColorPicker"], { "swatches": { "alias": "swatches"; "required": false; }; "rounding": { "alias": "rounding"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "debounceTimeout": { "alias": "debounceTimeout"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionColorPicker, "luzmo-item-option-color-picker", ["luzmoItemOptionColorPicker"], { "swatches": { "alias": "swatches"; "required": false; }; "rounding": { "alias": "rounding"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "debounceTimeout": { "alias": "debounceTimeout"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "noAlphaChannel": { "alias": "noAlphaChannel"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
47
+ static ngAcceptInputType_disabled: unknown;
48
+ static ngAcceptInputType_noAlphaChannel: unknown;
33
49
  }
34
50
  /** The underlying custom element type for LuzmoItemOptionColorPicker */
35
51
  export type LuzmoItemOptionColorPickerElement = LuzmoItemOptionColorPickerHostElement;
@@ -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/item-option-color-picker';
3
3
  import * as i0 from "@angular/core";
4
4
  const _c0 = ["*"];
@@ -15,11 +15,24 @@ export class LuzmoItemOptionColorPicker {
15
15
  get nativeElement() {
16
16
  return this.host;
17
17
  }
18
+ /** Preset colors offered as quick-pick swatches. */
18
19
  swatches;
20
+ /** Corner rounding of the color swatch: `full`, `light`, or `none`. */
19
21
  rounding;
22
+ /** Shape of the color swatch: `circle` or `rectangle`. */
20
23
  shape;
24
+ /** Delay in milliseconds before the change event is emitted after the user stops interacting. */
21
25
  debounce;
26
+ /** Internal timer handle used to debounce change events. */
22
27
  debounceTimeout;
28
+ /** The current color value. */
29
+ value;
30
+ /** Whether the control is disabled (non-interactive). */
31
+ disabled;
32
+ /** Disables the alpha (opacity) channel in the color picker. */
33
+ noAlphaChannel;
34
+ /** Placement of the color picker dropdown relative to its trigger. */
35
+ placement;
23
36
  /** Emitted when the option value changes. */
24
37
  luzmoOptionChanged = output({ alias: 'luzmoOptionChanged' });
25
38
  constructor() {
@@ -48,6 +61,18 @@ export class LuzmoItemOptionColorPicker {
48
61
  case 'debounceTimeout':
49
62
  this.setHostProperty('debounceTimeout', changes['debounceTimeout'].currentValue);
50
63
  break;
64
+ case 'value':
65
+ this.setHostProperty('value', changes['value'].currentValue);
66
+ break;
67
+ case 'disabled':
68
+ this.setHostProperty('disabled', changes['disabled'].currentValue);
69
+ break;
70
+ case 'noAlphaChannel':
71
+ this.setHostProperty('noAlphaChannel', changes['noAlphaChannel'].currentValue);
72
+ break;
73
+ case 'placement':
74
+ this.setHostProperty('placement', changes['placement'].currentValue);
75
+ break;
51
76
  default:
52
77
  break;
53
78
  }
@@ -69,7 +94,7 @@ export class LuzmoItemOptionColorPicker {
69
94
  }));
70
95
  }
71
96
  static ɵfac = function LuzmoItemOptionColorPicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionColorPicker)(); };
72
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionColorPicker, selectors: [["luzmo-item-option-color-picker"]], inputs: { swatches: "swatches", rounding: "rounding", shape: "shape", debounce: "debounce", debounceTimeout: "debounceTimeout" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionColorPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionColorPicker_Template(rf, ctx) { if (rf & 1) {
97
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionColorPicker, selectors: [["luzmo-item-option-color-picker"]], inputs: { swatches: "swatches", rounding: "rounding", shape: "shape", debounce: "debounce", debounceTimeout: "debounceTimeout", value: "value", disabled: [2, "disabled", "disabled", booleanAttribute], noAlphaChannel: [2, "noAlphaChannel", "noAlphaChannel", booleanAttribute], placement: "placement" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionColorPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionColorPicker_Template(rf, ctx) { if (rf & 1) {
73
98
  i0.ɵɵprojectionDef();
74
99
  i0.ɵɵprojection(0);
75
100
  } }, encapsulation: 2, changeDetection: 0 });
@@ -98,5 +123,17 @@ export class LuzmoItemOptionColorPicker {
98
123
  }], debounceTimeout: [{
99
124
  type: Input,
100
125
  args: [{ alias: 'debounceTimeout' }]
126
+ }], value: [{
127
+ type: Input,
128
+ args: [{ alias: 'value' }]
129
+ }], disabled: [{
130
+ type: Input,
131
+ args: [{ alias: 'disabled', transform: booleanAttribute }]
132
+ }], noAlphaChannel: [{
133
+ type: Input,
134
+ args: [{ alias: 'noAlphaChannel', transform: booleanAttribute }]
135
+ }], placement: [{
136
+ type: Input,
137
+ args: [{ alias: 'placement' }]
101
138
  }], luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
102
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionColorPicker, { className: "LuzmoItemOptionColorPicker", filePath: "components/item-option-color-picker.ts", lineNumber: 16 }); })();
139
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionColorPicker, { className: "LuzmoItemOptionColorPicker", filePath: "components/item-option-color-picker.ts", lineNumber: 17 }); })();
@@ -11,6 +11,34 @@ export declare class LuzmoItemOptionColorRange implements OnChanges {
11
11
  private readonly listenerCleanup;
12
12
  /** The underlying custom element instance. Use to call imperative methods. */
13
13
  get nativeElement(): LuzmoItemOptionColorRangeHostElement;
14
+ /** The color range */
15
+ value?: unknown;
16
+ /** The default color range */
17
+ default?: unknown;
18
+ /** Whether the color-range is disabled */
19
+ disabled?: boolean;
20
+ /** Range with percentage values */
21
+ percentage?: boolean;
22
+ /** Range colors can have alpha values */
23
+ noAlphaChannel?: boolean;
24
+ /** The number of values in the range can be changed */
25
+ editRangeSize?: boolean;
26
+ /** The values in the range can be changed by the user in the input field */
27
+ noValues?: boolean;
28
+ /** The minimum range size */
29
+ minimumRangeSize?: number;
30
+ /** Whether there is a first range value that sets color from negative infinity to the next range value. That first range value has a color, but the value is disregarded */
31
+ negativeInfinityValue?: boolean;
32
+ /** The color pickers can be read-only */
33
+ readOnlyColorPicker?: boolean;
34
+ /** Whether the colors are reversed */
35
+ reverse?: boolean;
36
+ /** The debounce time in milliseconds */
37
+ debounce?: number;
38
+ /** The function to parse the value */
39
+ parseValue?: unknown;
40
+ /** The function to convert the value */
41
+ toValue?: unknown;
14
42
  /** Emitted when the option value changes. */
15
43
  readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
16
44
  constructor();
@@ -24,7 +52,15 @@ export declare class LuzmoItemOptionColorRange implements OnChanges {
24
52
  private setHostProperty;
25
53
  private bindEvents;
26
54
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionColorRange, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionColorRange, "luzmo-item-option-color-range", ["luzmoItemOptionColorRange"], {}, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionColorRange, "luzmo-item-option-color-range", ["luzmoItemOptionColorRange"], { "value": { "alias": "value"; "required": false; }; "default": { "alias": "default"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "percentage": { "alias": "percentage"; "required": false; }; "noAlphaChannel": { "alias": "noAlphaChannel"; "required": false; }; "editRangeSize": { "alias": "editRangeSize"; "required": false; }; "noValues": { "alias": "noValues"; "required": false; }; "minimumRangeSize": { "alias": "minimumRangeSize"; "required": false; }; "negativeInfinityValue": { "alias": "negativeInfinityValue"; "required": false; }; "readOnlyColorPicker": { "alias": "readOnlyColorPicker"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "parseValue": { "alias": "parseValue"; "required": false; }; "toValue": { "alias": "toValue"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
56
+ static ngAcceptInputType_disabled: unknown;
57
+ static ngAcceptInputType_percentage: unknown;
58
+ static ngAcceptInputType_noAlphaChannel: unknown;
59
+ static ngAcceptInputType_editRangeSize: unknown;
60
+ static ngAcceptInputType_noValues: unknown;
61
+ static ngAcceptInputType_negativeInfinityValue: unknown;
62
+ static ngAcceptInputType_readOnlyColorPicker: unknown;
63
+ static ngAcceptInputType_reverse: unknown;
28
64
  }
29
65
  /** The underlying custom element type for LuzmoItemOptionColorRange */
30
66
  export type LuzmoItemOptionColorRangeElement = LuzmoItemOptionColorRangeHostElement;