@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.
- package/esm/components/data-field-level.d.ts +9 -1
- package/esm/components/data-field-level.js +15 -1
- package/esm/components/data-field-panel.d.ts +5 -1
- package/esm/components/data-field-panel.js +17 -1
- package/esm/components/data-field.d.ts +10 -1
- package/esm/components/data-field.js +22 -1
- package/esm/components/data-fields-select.d.ts +10 -1
- package/esm/components/data-fields-select.js +33 -1
- package/esm/components/display-settings-binning.d.ts +6 -1
- package/esm/components/display-settings-binning.js +18 -1
- package/esm/components/display-settings-datetime.d.ts +5 -1
- package/esm/components/display-settings-datetime.js +11 -1
- package/esm/components/display-settings-grand-totals.d.ts +5 -1
- package/esm/components/display-settings-grand-totals.js +17 -1
- package/esm/components/display-settings-numeric.d.ts +5 -1
- package/esm/components/display-settings-numeric.js +17 -1
- package/esm/components/display-settings-period-over-period.d.ts +7 -1
- package/esm/components/display-settings-period-over-period.js +19 -1
- package/esm/components/display-settings.d.ts +4 -1
- package/esm/components/display-settings.js +10 -1
- package/esm/components/filter-expression-picker.d.ts +11 -1
- package/esm/components/filter-expression-picker.js +34 -1
- package/esm/components/filter-item.d.ts +14 -1
- package/esm/components/filter-item.js +43 -2
- package/esm/components/filter-parameter-picker.d.ts +11 -1
- package/esm/components/filter-parameter-picker.js +34 -2
- package/esm/components/filter-value-picker-datetime.d.ts +14 -1
- package/esm/components/filter-value-picker-datetime.js +43 -2
- package/esm/components/filter-value-picker-hierarchy.d.ts +14 -1
- package/esm/components/filter-value-picker-hierarchy.js +43 -2
- package/esm/components/filter-value-picker-numeric.d.ts +14 -1
- package/esm/components/filter-value-picker-numeric.js +43 -2
- package/esm/components/filter-value-picker.d.ts +14 -1
- package/esm/components/filter-value-picker.js +43 -2
- package/esm/components/filters.d.ts +13 -1
- package/esm/components/filters.js +42 -2
- package/esm/components/formula-editor.d.ts +42 -3
- package/esm/components/formula-editor.js +138 -2
- package/esm/components/formula-field.d.ts +42 -3
- package/esm/components/formula-field.js +145 -5
- package/esm/components/formula.d.ts +31 -2
- package/esm/components/formula.js +105 -3
- package/esm/components/item-grid-item-actions-menu.d.ts +12 -1
- package/esm/components/item-grid-item-actions-menu.js +35 -2
- package/esm/components/item-option-action-button-group.d.ts +12 -1
- package/esm/components/item-option-action-button-group.js +49 -5
- package/esm/components/item-option-color-palette-picker.d.ts +19 -1
- package/esm/components/item-option-color-palette-picker.js +73 -5
- package/esm/components/item-option-color-picker.d.ts +17 -1
- package/esm/components/item-option-color-picker.js +40 -3
- package/esm/components/item-option-color-range.d.ts +37 -1
- package/esm/components/item-option-color-range.js +121 -5
- package/esm/components/item-option-multi-language-field.d.ts +20 -1
- package/esm/components/item-option-multi-language-field.js +67 -2
- package/esm/components/item-option-number-field.d.ts +27 -1
- package/esm/components/item-option-number-field.js +92 -2
- package/esm/components/item-option-picker.d.ts +17 -1
- package/esm/components/item-option-picker.js +66 -6
- package/esm/components/item-option-position-picker.d.ts +10 -1
- package/esm/components/item-option-position-picker.js +41 -5
- package/esm/components/item-option-positions-number-field.d.ts +23 -1
- package/esm/components/item-option-positions-number-field.js +68 -2
- package/esm/components/item-option-radio-button-group.d.ts +15 -1
- package/esm/components/item-option-radio-button-group.js +51 -2
- package/esm/components/item-option-slider.d.ts +11 -1
- package/esm/components/item-option-slider.js +23 -1
- package/esm/components/item-option-switch.d.ts +7 -1
- package/esm/components/item-option-switch.js +19 -1
- package/esm/components/item-option-text-field.d.ts +14 -1
- package/esm/components/item-option-text-field.js +43 -2
- package/esm/components/item-option.d.ts +10 -0
- package/esm/components/item-option.js +10 -0
- package/esm/components/item-slot-drop-panel.d.ts +5 -1
- package/esm/components/item-slot-drop-panel.js +17 -1
- package/esm/components/item-slot-drop.d.ts +15 -1
- package/esm/components/item-slot-drop.js +27 -1
- package/esm/components/item-slot-picker-panel.d.ts +5 -1
- package/esm/components/item-slot-picker-panel.js +17 -1
- package/esm/components/item-slot-picker.d.ts +7 -1
- package/esm/components/item-slot-picker.js +25 -1
- package/esm/components/slot-menu-list.d.ts +5 -1
- package/esm/components/slot-menu-list.js +11 -1
- package/esm/components/slot-menu.d.ts +16 -1
- package/esm/components/slot-menu.js +22 -1
- package/esm/components/viz-item-menu.d.ts +3 -1
- package/esm/components/viz-item-menu.js +9 -1
- package/package.json +2 -2
|
@@ -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-range';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
const _c0 = ["*"];
|
|
@@ -15,6 +15,34 @@ export class LuzmoItemOptionColorRange {
|
|
|
15
15
|
get nativeElement() {
|
|
16
16
|
return this.host;
|
|
17
17
|
}
|
|
18
|
+
/** The color range */
|
|
19
|
+
value;
|
|
20
|
+
/** The default color range */
|
|
21
|
+
default;
|
|
22
|
+
/** Whether the color-range is disabled */
|
|
23
|
+
disabled;
|
|
24
|
+
/** Range with percentage values */
|
|
25
|
+
percentage;
|
|
26
|
+
/** Range colors can have alpha values */
|
|
27
|
+
noAlphaChannel;
|
|
28
|
+
/** The number of values in the range can be changed */
|
|
29
|
+
editRangeSize;
|
|
30
|
+
/** The values in the range can be changed by the user in the input field */
|
|
31
|
+
noValues;
|
|
32
|
+
/** The minimum range size */
|
|
33
|
+
minimumRangeSize;
|
|
34
|
+
/** 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 */
|
|
35
|
+
negativeInfinityValue;
|
|
36
|
+
/** The color pickers can be read-only */
|
|
37
|
+
readOnlyColorPicker;
|
|
38
|
+
/** Whether the colors are reversed */
|
|
39
|
+
reverse;
|
|
40
|
+
/** The debounce time in milliseconds */
|
|
41
|
+
debounce;
|
|
42
|
+
/** The function to parse the value */
|
|
43
|
+
parseValue;
|
|
44
|
+
/** The function to convert the value */
|
|
45
|
+
toValue;
|
|
18
46
|
/** Emitted when the option value changes. */
|
|
19
47
|
luzmoOptionChanged = output({ alias: 'luzmoOptionChanged' });
|
|
20
48
|
constructor() {
|
|
@@ -26,8 +54,54 @@ export class LuzmoItemOptionColorRange {
|
|
|
26
54
|
});
|
|
27
55
|
}
|
|
28
56
|
ngOnChanges(changes) {
|
|
29
|
-
|
|
30
|
-
|
|
57
|
+
for (const key of Object.keys(changes)) {
|
|
58
|
+
switch (key) {
|
|
59
|
+
case 'value':
|
|
60
|
+
this.setHostProperty('value', changes['value'].currentValue);
|
|
61
|
+
break;
|
|
62
|
+
case 'default':
|
|
63
|
+
this.setHostProperty('default', changes['default'].currentValue);
|
|
64
|
+
break;
|
|
65
|
+
case 'disabled':
|
|
66
|
+
this.setHostProperty('disabled', changes['disabled'].currentValue);
|
|
67
|
+
break;
|
|
68
|
+
case 'percentage':
|
|
69
|
+
this.setHostProperty('percentage', changes['percentage'].currentValue);
|
|
70
|
+
break;
|
|
71
|
+
case 'noAlphaChannel':
|
|
72
|
+
this.setHostProperty('noAlphaChannel', changes['noAlphaChannel'].currentValue);
|
|
73
|
+
break;
|
|
74
|
+
case 'editRangeSize':
|
|
75
|
+
this.setHostProperty('editRangeSize', changes['editRangeSize'].currentValue);
|
|
76
|
+
break;
|
|
77
|
+
case 'noValues':
|
|
78
|
+
this.setHostProperty('noValues', changes['noValues'].currentValue);
|
|
79
|
+
break;
|
|
80
|
+
case 'minimumRangeSize':
|
|
81
|
+
this.setHostProperty('minimumRangeSize', changes['minimumRangeSize'].currentValue);
|
|
82
|
+
break;
|
|
83
|
+
case 'negativeInfinityValue':
|
|
84
|
+
this.setHostProperty('negativeInfinityValue', changes['negativeInfinityValue'].currentValue);
|
|
85
|
+
break;
|
|
86
|
+
case 'readOnlyColorPicker':
|
|
87
|
+
this.setHostProperty('readOnlyColorPicker', changes['readOnlyColorPicker'].currentValue);
|
|
88
|
+
break;
|
|
89
|
+
case 'reverse':
|
|
90
|
+
this.setHostProperty('reverse', changes['reverse'].currentValue);
|
|
91
|
+
break;
|
|
92
|
+
case 'debounce':
|
|
93
|
+
this.setHostProperty('debounce', changes['debounce'].currentValue);
|
|
94
|
+
break;
|
|
95
|
+
case 'parseValue':
|
|
96
|
+
this.setHostProperty('parseValue', changes['parseValue'].currentValue);
|
|
97
|
+
break;
|
|
98
|
+
case 'toValue':
|
|
99
|
+
this.setHostProperty('toValue', changes['toValue'].currentValue);
|
|
100
|
+
break;
|
|
101
|
+
default:
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
31
105
|
}
|
|
32
106
|
/**
|
|
33
107
|
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
@@ -45,7 +119,7 @@ export class LuzmoItemOptionColorRange {
|
|
|
45
119
|
}));
|
|
46
120
|
}
|
|
47
121
|
static ɵfac = function LuzmoItemOptionColorRange_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionColorRange)(); };
|
|
48
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionColorRange, selectors: [["luzmo-item-option-color-range"]], outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionColorRange"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionColorRange_Template(rf, ctx) { if (rf & 1) {
|
|
122
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionColorRange, selectors: [["luzmo-item-option-color-range"]], inputs: { value: "value", default: "default", disabled: [2, "disabled", "disabled", booleanAttribute], percentage: [2, "percentage", "percentage", booleanAttribute], noAlphaChannel: [2, "noAlphaChannel", "noAlphaChannel", booleanAttribute], editRangeSize: [2, "editRangeSize", "editRangeSize", booleanAttribute], noValues: [2, "noValues", "noValues", booleanAttribute], minimumRangeSize: "minimumRangeSize", negativeInfinityValue: [2, "negativeInfinityValue", "negativeInfinityValue", booleanAttribute], readOnlyColorPicker: [2, "readOnlyColorPicker", "readOnlyColorPicker", booleanAttribute], reverse: [2, "reverse", "reverse", booleanAttribute], debounce: "debounce", parseValue: "parseValue", toValue: "toValue" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionColorRange"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionColorRange_Template(rf, ctx) { if (rf & 1) {
|
|
49
123
|
i0.ɵɵprojectionDef();
|
|
50
124
|
i0.ɵɵprojection(0);
|
|
51
125
|
} }, encapsulation: 2, changeDetection: 0 });
|
|
@@ -59,5 +133,47 @@ export class LuzmoItemOptionColorRange {
|
|
|
59
133
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
60
134
|
template: '<ng-content />'
|
|
61
135
|
}]
|
|
62
|
-
}], () => [], {
|
|
136
|
+
}], () => [], { value: [{
|
|
137
|
+
type: Input,
|
|
138
|
+
args: [{ alias: 'value' }]
|
|
139
|
+
}], default: [{
|
|
140
|
+
type: Input,
|
|
141
|
+
args: [{ alias: 'default' }]
|
|
142
|
+
}], disabled: [{
|
|
143
|
+
type: Input,
|
|
144
|
+
args: [{ alias: 'disabled', transform: booleanAttribute }]
|
|
145
|
+
}], percentage: [{
|
|
146
|
+
type: Input,
|
|
147
|
+
args: [{ alias: 'percentage', transform: booleanAttribute }]
|
|
148
|
+
}], noAlphaChannel: [{
|
|
149
|
+
type: Input,
|
|
150
|
+
args: [{ alias: 'noAlphaChannel', transform: booleanAttribute }]
|
|
151
|
+
}], editRangeSize: [{
|
|
152
|
+
type: Input,
|
|
153
|
+
args: [{ alias: 'editRangeSize', transform: booleanAttribute }]
|
|
154
|
+
}], noValues: [{
|
|
155
|
+
type: Input,
|
|
156
|
+
args: [{ alias: 'noValues', transform: booleanAttribute }]
|
|
157
|
+
}], minimumRangeSize: [{
|
|
158
|
+
type: Input,
|
|
159
|
+
args: [{ alias: 'minimumRangeSize' }]
|
|
160
|
+
}], negativeInfinityValue: [{
|
|
161
|
+
type: Input,
|
|
162
|
+
args: [{ alias: 'negativeInfinityValue', transform: booleanAttribute }]
|
|
163
|
+
}], readOnlyColorPicker: [{
|
|
164
|
+
type: Input,
|
|
165
|
+
args: [{ alias: 'readOnlyColorPicker', transform: booleanAttribute }]
|
|
166
|
+
}], reverse: [{
|
|
167
|
+
type: Input,
|
|
168
|
+
args: [{ alias: 'reverse', transform: booleanAttribute }]
|
|
169
|
+
}], debounce: [{
|
|
170
|
+
type: Input,
|
|
171
|
+
args: [{ alias: 'debounce' }]
|
|
172
|
+
}], parseValue: [{
|
|
173
|
+
type: Input,
|
|
174
|
+
args: [{ alias: 'parseValue' }]
|
|
175
|
+
}], toValue: [{
|
|
176
|
+
type: Input,
|
|
177
|
+
args: [{ alias: 'toValue' }]
|
|
178
|
+
}], luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
|
|
63
179
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionColorRange, { className: "LuzmoItemOptionColorRange", filePath: "components/item-option-color-range.ts", lineNumber: 16 }); })();
|
|
@@ -11,7 +11,24 @@ export declare class LuzmoItemOptionMultiLanguageField implements OnChanges {
|
|
|
11
11
|
private readonly listenerCleanup;
|
|
12
12
|
/** The underlying custom element instance. Use to call imperative methods. */
|
|
13
13
|
get nativeElement(): LuzmoItemOptionMultiLangFieldHostElement;
|
|
14
|
+
/** Internal timer handle used to debounce change events. */
|
|
14
15
|
debounceTimeout?: any;
|
|
16
|
+
/** The current value per language (language code → text). */
|
|
17
|
+
value?: Record<string, string>;
|
|
18
|
+
/** Whether the control is shown in an invalid state. */
|
|
19
|
+
invalid?: boolean;
|
|
20
|
+
/** Whether the control is read-only. */
|
|
21
|
+
readonly?: boolean;
|
|
22
|
+
/** The active language whose value is currently edited. */
|
|
23
|
+
language?: string;
|
|
24
|
+
/** Placeholder text per language (language code → text) shown when empty. */
|
|
25
|
+
placeholder?: Record<string, string>;
|
|
26
|
+
/** Optional transform applied to the stored value before it is displayed in the control. */
|
|
27
|
+
parseValue?: unknown;
|
|
28
|
+
/** Optional transform applied to the control's value before it is emitted in the change event. */
|
|
29
|
+
toValue?: unknown;
|
|
30
|
+
/** Delay in milliseconds before the change event is emitted after the user stops interacting. */
|
|
31
|
+
debounce?: number;
|
|
15
32
|
/** Emitted when the option value changes. */
|
|
16
33
|
readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
|
|
17
34
|
constructor();
|
|
@@ -25,7 +42,9 @@ export declare class LuzmoItemOptionMultiLanguageField implements OnChanges {
|
|
|
25
42
|
private setHostProperty;
|
|
26
43
|
private bindEvents;
|
|
27
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionMultiLanguageField, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionMultiLanguageField, "luzmo-item-option-multi-language-field", ["luzmoItemOptionMultiLanguageField"], { "debounceTimeout": { "alias": "debounceTimeout"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionMultiLanguageField, "luzmo-item-option-multi-language-field", ["luzmoItemOptionMultiLanguageField"], { "debounceTimeout": { "alias": "debounceTimeout"; "required": false; }; "value": { "alias": "value"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "language": { "alias": "language"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "parseValue": { "alias": "parseValue"; "required": false; }; "toValue": { "alias": "toValue"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
|
|
46
|
+
static ngAcceptInputType_invalid: unknown;
|
|
47
|
+
static ngAcceptInputType_readonly: unknown;
|
|
29
48
|
}
|
|
30
49
|
/** The underlying custom element type for LuzmoItemOptionMultiLanguageField */
|
|
31
50
|
export type LuzmoItemOptionMultiLanguageFieldElement = LuzmoItemOptionMultiLangFieldHostElement;
|
|
@@ -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-multi-language-field';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
const _c0 = ["*"];
|
|
@@ -15,7 +15,24 @@ export class LuzmoItemOptionMultiLanguageField {
|
|
|
15
15
|
get nativeElement() {
|
|
16
16
|
return this.host;
|
|
17
17
|
}
|
|
18
|
+
/** Internal timer handle used to debounce change events. */
|
|
18
19
|
debounceTimeout;
|
|
20
|
+
/** The current value per language (language code → text). */
|
|
21
|
+
value;
|
|
22
|
+
/** Whether the control is shown in an invalid state. */
|
|
23
|
+
invalid;
|
|
24
|
+
/** Whether the control is read-only. */
|
|
25
|
+
readonly;
|
|
26
|
+
/** The active language whose value is currently edited. */
|
|
27
|
+
language;
|
|
28
|
+
/** Placeholder text per language (language code → text) shown when empty. */
|
|
29
|
+
placeholder;
|
|
30
|
+
/** Optional transform applied to the stored value before it is displayed in the control. */
|
|
31
|
+
parseValue;
|
|
32
|
+
/** Optional transform applied to the control's value before it is emitted in the change event. */
|
|
33
|
+
toValue;
|
|
34
|
+
/** Delay in milliseconds before the change event is emitted after the user stops interacting. */
|
|
35
|
+
debounce;
|
|
19
36
|
/** Emitted when the option value changes. */
|
|
20
37
|
luzmoOptionChanged = output({ alias: 'luzmoOptionChanged' });
|
|
21
38
|
constructor() {
|
|
@@ -32,6 +49,30 @@ export class LuzmoItemOptionMultiLanguageField {
|
|
|
32
49
|
case 'debounceTimeout':
|
|
33
50
|
this.setHostProperty('debounceTimeout', changes['debounceTimeout'].currentValue);
|
|
34
51
|
break;
|
|
52
|
+
case 'value':
|
|
53
|
+
this.setHostProperty('value', changes['value'].currentValue);
|
|
54
|
+
break;
|
|
55
|
+
case 'invalid':
|
|
56
|
+
this.setHostProperty('invalid', changes['invalid'].currentValue);
|
|
57
|
+
break;
|
|
58
|
+
case 'readonly':
|
|
59
|
+
this.setHostProperty('readonly', changes['readonly'].currentValue);
|
|
60
|
+
break;
|
|
61
|
+
case 'language':
|
|
62
|
+
this.setHostProperty('language', changes['language'].currentValue);
|
|
63
|
+
break;
|
|
64
|
+
case 'placeholder':
|
|
65
|
+
this.setHostProperty('placeholder', changes['placeholder'].currentValue);
|
|
66
|
+
break;
|
|
67
|
+
case 'parseValue':
|
|
68
|
+
this.setHostProperty('parseValue', changes['parseValue'].currentValue);
|
|
69
|
+
break;
|
|
70
|
+
case 'toValue':
|
|
71
|
+
this.setHostProperty('toValue', changes['toValue'].currentValue);
|
|
72
|
+
break;
|
|
73
|
+
case 'debounce':
|
|
74
|
+
this.setHostProperty('debounce', changes['debounce'].currentValue);
|
|
75
|
+
break;
|
|
35
76
|
default:
|
|
36
77
|
break;
|
|
37
78
|
}
|
|
@@ -53,7 +94,7 @@ export class LuzmoItemOptionMultiLanguageField {
|
|
|
53
94
|
}));
|
|
54
95
|
}
|
|
55
96
|
static ɵfac = function LuzmoItemOptionMultiLanguageField_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionMultiLanguageField)(); };
|
|
56
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionMultiLanguageField, selectors: [["luzmo-item-option-multi-language-field"]], inputs: { debounceTimeout: "debounceTimeout" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionMultiLanguageField"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionMultiLanguageField_Template(rf, ctx) { if (rf & 1) {
|
|
97
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionMultiLanguageField, selectors: [["luzmo-item-option-multi-language-field"]], inputs: { debounceTimeout: "debounceTimeout", value: "value", invalid: [2, "invalid", "invalid", booleanAttribute], readonly: [2, "readonly", "readonly", booleanAttribute], language: "language", placeholder: "placeholder", parseValue: "parseValue", toValue: "toValue", debounce: "debounce" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionMultiLanguageField"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionMultiLanguageField_Template(rf, ctx) { if (rf & 1) {
|
|
57
98
|
i0.ɵɵprojectionDef();
|
|
58
99
|
i0.ɵɵprojection(0);
|
|
59
100
|
} }, encapsulation: 2, changeDetection: 0 });
|
|
@@ -70,5 +111,29 @@ export class LuzmoItemOptionMultiLanguageField {
|
|
|
70
111
|
}], () => [], { debounceTimeout: [{
|
|
71
112
|
type: Input,
|
|
72
113
|
args: [{ alias: 'debounceTimeout' }]
|
|
114
|
+
}], value: [{
|
|
115
|
+
type: Input,
|
|
116
|
+
args: [{ alias: 'value' }]
|
|
117
|
+
}], invalid: [{
|
|
118
|
+
type: Input,
|
|
119
|
+
args: [{ alias: 'invalid', transform: booleanAttribute }]
|
|
120
|
+
}], readonly: [{
|
|
121
|
+
type: Input,
|
|
122
|
+
args: [{ alias: 'readonly', transform: booleanAttribute }]
|
|
123
|
+
}], language: [{
|
|
124
|
+
type: Input,
|
|
125
|
+
args: [{ alias: 'language' }]
|
|
126
|
+
}], placeholder: [{
|
|
127
|
+
type: Input,
|
|
128
|
+
args: [{ alias: 'placeholder' }]
|
|
129
|
+
}], parseValue: [{
|
|
130
|
+
type: Input,
|
|
131
|
+
args: [{ alias: 'parseValue' }]
|
|
132
|
+
}], toValue: [{
|
|
133
|
+
type: Input,
|
|
134
|
+
args: [{ alias: 'toValue' }]
|
|
135
|
+
}], debounce: [{
|
|
136
|
+
type: Input,
|
|
137
|
+
args: [{ alias: 'debounce' }]
|
|
73
138
|
}], luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
|
|
74
139
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionMultiLanguageField, { className: "LuzmoItemOptionMultiLanguageField", filePath: "components/item-option-multi-language-field.ts", lineNumber: 16 }); })();
|
|
@@ -11,8 +11,32 @@ export declare class LuzmoItemOptionNumberField implements OnChanges {
|
|
|
11
11
|
private readonly listenerCleanup;
|
|
12
12
|
/** The underlying custom element instance. Use to call imperative methods. */
|
|
13
13
|
get nativeElement(): LuzmoItemOptionNumberFieldHostElement;
|
|
14
|
+
/** Delay in milliseconds before the change event is emitted after the user stops interacting. */
|
|
14
15
|
debounce?: number;
|
|
16
|
+
/** Internal timer handle used to debounce change events. */
|
|
15
17
|
debounceTimeout?: any;
|
|
18
|
+
/** Whether the control is disabled (non-interactive). */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** The minimum allowed value. */
|
|
21
|
+
min?: number;
|
|
22
|
+
/** The maximum allowed value. */
|
|
23
|
+
max?: number;
|
|
24
|
+
/** The default value used when no value is set. */
|
|
25
|
+
default?: number;
|
|
26
|
+
/** The current numeric value. */
|
|
27
|
+
value?: number;
|
|
28
|
+
/** Placeholder text shown when the field is empty. */
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
/** Minimum width of the input field (CSS length). */
|
|
31
|
+
minWidthInputField?: string;
|
|
32
|
+
/** The increment between values. */
|
|
33
|
+
step?: number;
|
|
34
|
+
/** Unit suffix shown after the value. */
|
|
35
|
+
unit?: boolean;
|
|
36
|
+
/** Optional transform applied to the stored value before it is displayed in the control. */
|
|
37
|
+
parseValue?: unknown;
|
|
38
|
+
/** Optional transform applied to the control's value before it is emitted in the change event. */
|
|
39
|
+
toValue?: unknown;
|
|
16
40
|
/** Emitted when the option value changes. */
|
|
17
41
|
readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
|
|
18
42
|
constructor();
|
|
@@ -26,7 +50,9 @@ export declare class LuzmoItemOptionNumberField implements OnChanges {
|
|
|
26
50
|
private setHostProperty;
|
|
27
51
|
private bindEvents;
|
|
28
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionNumberField, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionNumberField, "luzmo-item-option-number-field", ["luzmoItemOptionNumberField"], { "debounce": { "alias": "debounce"; "required": false; }; "debounceTimeout": { "alias": "debounceTimeout"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionNumberField, "luzmo-item-option-number-field", ["luzmoItemOptionNumberField"], { "debounce": { "alias": "debounce"; "required": false; }; "debounceTimeout": { "alias": "debounceTimeout"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "default": { "alias": "default"; "required": false; }; "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "minWidthInputField": { "alias": "minWidthInputField"; "required": false; }; "step": { "alias": "step"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; "parseValue": { "alias": "parseValue"; "required": false; }; "toValue": { "alias": "toValue"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
|
|
54
|
+
static ngAcceptInputType_disabled: unknown;
|
|
55
|
+
static ngAcceptInputType_unit: unknown;
|
|
30
56
|
}
|
|
31
57
|
/** The underlying custom element type for LuzmoItemOptionNumberField */
|
|
32
58
|
export type LuzmoItemOptionNumberFieldElement = LuzmoItemOptionNumberFieldHostElement;
|
|
@@ -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-number-field';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
const _c0 = ["*"];
|
|
@@ -15,8 +15,32 @@ export class LuzmoItemOptionNumberField {
|
|
|
15
15
|
get nativeElement() {
|
|
16
16
|
return this.host;
|
|
17
17
|
}
|
|
18
|
+
/** Delay in milliseconds before the change event is emitted after the user stops interacting. */
|
|
18
19
|
debounce;
|
|
20
|
+
/** Internal timer handle used to debounce change events. */
|
|
19
21
|
debounceTimeout;
|
|
22
|
+
/** Whether the control is disabled (non-interactive). */
|
|
23
|
+
disabled;
|
|
24
|
+
/** The minimum allowed value. */
|
|
25
|
+
min;
|
|
26
|
+
/** The maximum allowed value. */
|
|
27
|
+
max;
|
|
28
|
+
/** The default value used when no value is set. */
|
|
29
|
+
default;
|
|
30
|
+
/** The current numeric value. */
|
|
31
|
+
value;
|
|
32
|
+
/** Placeholder text shown when the field is empty. */
|
|
33
|
+
placeholder;
|
|
34
|
+
/** Minimum width of the input field (CSS length). */
|
|
35
|
+
minWidthInputField;
|
|
36
|
+
/** The increment between values. */
|
|
37
|
+
step;
|
|
38
|
+
/** Unit suffix shown after the value. */
|
|
39
|
+
unit;
|
|
40
|
+
/** Optional transform applied to the stored value before it is displayed in the control. */
|
|
41
|
+
parseValue;
|
|
42
|
+
/** Optional transform applied to the control's value before it is emitted in the change event. */
|
|
43
|
+
toValue;
|
|
20
44
|
/** Emitted when the option value changes. */
|
|
21
45
|
luzmoOptionChanged = output({ alias: 'luzmoOptionChanged' });
|
|
22
46
|
constructor() {
|
|
@@ -36,6 +60,39 @@ export class LuzmoItemOptionNumberField {
|
|
|
36
60
|
case 'debounceTimeout':
|
|
37
61
|
this.setHostProperty('debounceTimeout', changes['debounceTimeout'].currentValue);
|
|
38
62
|
break;
|
|
63
|
+
case 'disabled':
|
|
64
|
+
this.setHostProperty('disabled', changes['disabled'].currentValue);
|
|
65
|
+
break;
|
|
66
|
+
case 'min':
|
|
67
|
+
this.setHostProperty('min', changes['min'].currentValue);
|
|
68
|
+
break;
|
|
69
|
+
case 'max':
|
|
70
|
+
this.setHostProperty('max', changes['max'].currentValue);
|
|
71
|
+
break;
|
|
72
|
+
case 'default':
|
|
73
|
+
this.setHostProperty('default', changes['default'].currentValue);
|
|
74
|
+
break;
|
|
75
|
+
case 'value':
|
|
76
|
+
this.setHostProperty('value', changes['value'].currentValue);
|
|
77
|
+
break;
|
|
78
|
+
case 'placeholder':
|
|
79
|
+
this.setHostProperty('placeholder', changes['placeholder'].currentValue);
|
|
80
|
+
break;
|
|
81
|
+
case 'minWidthInputField':
|
|
82
|
+
this.setHostProperty('minWidthInputField', changes['minWidthInputField'].currentValue);
|
|
83
|
+
break;
|
|
84
|
+
case 'step':
|
|
85
|
+
this.setHostProperty('step', changes['step'].currentValue);
|
|
86
|
+
break;
|
|
87
|
+
case 'unit':
|
|
88
|
+
this.setHostProperty('unit', changes['unit'].currentValue);
|
|
89
|
+
break;
|
|
90
|
+
case 'parseValue':
|
|
91
|
+
this.setHostProperty('parseValue', changes['parseValue'].currentValue);
|
|
92
|
+
break;
|
|
93
|
+
case 'toValue':
|
|
94
|
+
this.setHostProperty('toValue', changes['toValue'].currentValue);
|
|
95
|
+
break;
|
|
39
96
|
default:
|
|
40
97
|
break;
|
|
41
98
|
}
|
|
@@ -57,7 +114,7 @@ export class LuzmoItemOptionNumberField {
|
|
|
57
114
|
}));
|
|
58
115
|
}
|
|
59
116
|
static ɵfac = function LuzmoItemOptionNumberField_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionNumberField)(); };
|
|
60
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionNumberField, selectors: [["luzmo-item-option-number-field"]], inputs: { debounce: "debounce", debounceTimeout: "debounceTimeout" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionNumberField"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionNumberField_Template(rf, ctx) { if (rf & 1) {
|
|
117
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionNumberField, selectors: [["luzmo-item-option-number-field"]], inputs: { debounce: "debounce", debounceTimeout: "debounceTimeout", disabled: [2, "disabled", "disabled", booleanAttribute], min: "min", max: "max", default: "default", value: "value", placeholder: "placeholder", minWidthInputField: "minWidthInputField", step: "step", unit: [2, "unit", "unit", booleanAttribute], parseValue: "parseValue", toValue: "toValue" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionNumberField"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionNumberField_Template(rf, ctx) { if (rf & 1) {
|
|
61
118
|
i0.ɵɵprojectionDef();
|
|
62
119
|
i0.ɵɵprojection(0);
|
|
63
120
|
} }, encapsulation: 2, changeDetection: 0 });
|
|
@@ -77,5 +134,38 @@ export class LuzmoItemOptionNumberField {
|
|
|
77
134
|
}], debounceTimeout: [{
|
|
78
135
|
type: Input,
|
|
79
136
|
args: [{ alias: 'debounceTimeout' }]
|
|
137
|
+
}], disabled: [{
|
|
138
|
+
type: Input,
|
|
139
|
+
args: [{ alias: 'disabled', transform: booleanAttribute }]
|
|
140
|
+
}], min: [{
|
|
141
|
+
type: Input,
|
|
142
|
+
args: [{ alias: 'min' }]
|
|
143
|
+
}], max: [{
|
|
144
|
+
type: Input,
|
|
145
|
+
args: [{ alias: 'max' }]
|
|
146
|
+
}], default: [{
|
|
147
|
+
type: Input,
|
|
148
|
+
args: [{ alias: 'default' }]
|
|
149
|
+
}], value: [{
|
|
150
|
+
type: Input,
|
|
151
|
+
args: [{ alias: 'value' }]
|
|
152
|
+
}], placeholder: [{
|
|
153
|
+
type: Input,
|
|
154
|
+
args: [{ alias: 'placeholder' }]
|
|
155
|
+
}], minWidthInputField: [{
|
|
156
|
+
type: Input,
|
|
157
|
+
args: [{ alias: 'minWidthInputField' }]
|
|
158
|
+
}], step: [{
|
|
159
|
+
type: Input,
|
|
160
|
+
args: [{ alias: 'step' }]
|
|
161
|
+
}], unit: [{
|
|
162
|
+
type: Input,
|
|
163
|
+
args: [{ alias: 'unit', transform: booleanAttribute }]
|
|
164
|
+
}], parseValue: [{
|
|
165
|
+
type: Input,
|
|
166
|
+
args: [{ alias: 'parseValue' }]
|
|
167
|
+
}], toValue: [{
|
|
168
|
+
type: Input,
|
|
169
|
+
args: [{ alias: 'toValue' }]
|
|
80
170
|
}], luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
|
|
81
171
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionNumberField, { className: "LuzmoItemOptionNumberField", filePath: "components/item-option-number-field.ts", lineNumber: 16 }); })();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import '@luzmo/analytics-components-kit/item-option-picker';
|
|
3
3
|
import type { LuzmoItemOptionPicker as LuzmoItemOptionPickerHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-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-picker';
|
|
6
7
|
export declare class LuzmoItemOptionPicker implements OnChanges {
|
|
@@ -11,6 +12,20 @@ export declare class LuzmoItemOptionPicker implements OnChanges {
|
|
|
11
12
|
private readonly listenerCleanup;
|
|
12
13
|
/** The underlying custom element instance. Use to call imperative methods. */
|
|
13
14
|
get nativeElement(): LuzmoItemOptionPickerHostElement;
|
|
15
|
+
/** The available options to choose from (key → label). */
|
|
16
|
+
values?: Record<string, string>;
|
|
17
|
+
/** Whether the control is disabled (non-interactive). */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Placement of the picker dropdown relative to its trigger. */
|
|
20
|
+
placement?: Placement;
|
|
21
|
+
/** The currently selected option key. */
|
|
22
|
+
value?: string;
|
|
23
|
+
/** Optional transform applied to the stored value before it is displayed in the control. */
|
|
24
|
+
parseValue?: unknown;
|
|
25
|
+
/** Optional transform applied to the control's value before it is emitted in the change event. */
|
|
26
|
+
toValue?: unknown;
|
|
27
|
+
/** The default option key used when no value is set. */
|
|
28
|
+
default?: string;
|
|
14
29
|
/** Emitted when the option value changes. */
|
|
15
30
|
readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
|
|
16
31
|
constructor();
|
|
@@ -24,7 +39,8 @@ export declare class LuzmoItemOptionPicker implements OnChanges {
|
|
|
24
39
|
private setHostProperty;
|
|
25
40
|
private bindEvents;
|
|
26
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionPicker, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionPicker, "luzmo-item-option-picker", ["luzmoItemOptionPicker"], {}, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionPicker, "luzmo-item-option-picker", ["luzmoItemOptionPicker"], { "values": { "alias": "values"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "value": { "alias": "value"; "required": false; }; "parseValue": { "alias": "parseValue"; "required": false; }; "toValue": { "alias": "toValue"; "required": false; }; "default": { "alias": "default"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
|
|
43
|
+
static ngAcceptInputType_disabled: unknown;
|
|
28
44
|
}
|
|
29
45
|
/** The underlying custom element type for LuzmoItemOptionPicker */
|
|
30
46
|
export type LuzmoItemOptionPickerElement = LuzmoItemOptionPickerHostElement;
|
|
@@ -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-picker';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
const _c0 = ["*"];
|
|
@@ -15,6 +15,20 @@ export class LuzmoItemOptionPicker {
|
|
|
15
15
|
get nativeElement() {
|
|
16
16
|
return this.host;
|
|
17
17
|
}
|
|
18
|
+
/** The available options to choose from (key → label). */
|
|
19
|
+
values;
|
|
20
|
+
/** Whether the control is disabled (non-interactive). */
|
|
21
|
+
disabled;
|
|
22
|
+
/** Placement of the picker dropdown relative to its trigger. */
|
|
23
|
+
placement;
|
|
24
|
+
/** The currently selected option key. */
|
|
25
|
+
value;
|
|
26
|
+
/** Optional transform applied to the stored value before it is displayed in the control. */
|
|
27
|
+
parseValue;
|
|
28
|
+
/** Optional transform applied to the control's value before it is emitted in the change event. */
|
|
29
|
+
toValue;
|
|
30
|
+
/** The default option key used when no value is set. */
|
|
31
|
+
default;
|
|
18
32
|
/** Emitted when the option value changes. */
|
|
19
33
|
luzmoOptionChanged = output({ alias: 'luzmoOptionChanged' });
|
|
20
34
|
constructor() {
|
|
@@ -26,8 +40,33 @@ export class LuzmoItemOptionPicker {
|
|
|
26
40
|
});
|
|
27
41
|
}
|
|
28
42
|
ngOnChanges(changes) {
|
|
29
|
-
|
|
30
|
-
|
|
43
|
+
for (const key of Object.keys(changes)) {
|
|
44
|
+
switch (key) {
|
|
45
|
+
case 'values':
|
|
46
|
+
this.setHostProperty('values', changes['values'].currentValue);
|
|
47
|
+
break;
|
|
48
|
+
case 'disabled':
|
|
49
|
+
this.setHostProperty('disabled', changes['disabled'].currentValue);
|
|
50
|
+
break;
|
|
51
|
+
case 'placement':
|
|
52
|
+
this.setHostProperty('placement', changes['placement'].currentValue);
|
|
53
|
+
break;
|
|
54
|
+
case 'value':
|
|
55
|
+
this.setHostProperty('value', changes['value'].currentValue);
|
|
56
|
+
break;
|
|
57
|
+
case 'parseValue':
|
|
58
|
+
this.setHostProperty('parseValue', changes['parseValue'].currentValue);
|
|
59
|
+
break;
|
|
60
|
+
case 'toValue':
|
|
61
|
+
this.setHostProperty('toValue', changes['toValue'].currentValue);
|
|
62
|
+
break;
|
|
63
|
+
case 'default':
|
|
64
|
+
this.setHostProperty('default', changes['default'].currentValue);
|
|
65
|
+
break;
|
|
66
|
+
default:
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
31
70
|
}
|
|
32
71
|
/**
|
|
33
72
|
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
@@ -45,7 +84,7 @@ export class LuzmoItemOptionPicker {
|
|
|
45
84
|
}));
|
|
46
85
|
}
|
|
47
86
|
static ɵfac = function LuzmoItemOptionPicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionPicker)(); };
|
|
48
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionPicker, selectors: [["luzmo-item-option-picker"]], outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionPicker_Template(rf, ctx) { if (rf & 1) {
|
|
87
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionPicker, selectors: [["luzmo-item-option-picker"]], inputs: { values: "values", disabled: [2, "disabled", "disabled", booleanAttribute], placement: "placement", value: "value", parseValue: "parseValue", toValue: "toValue", default: "default" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionPicker_Template(rf, ctx) { if (rf & 1) {
|
|
49
88
|
i0.ɵɵprojectionDef();
|
|
50
89
|
i0.ɵɵprojection(0);
|
|
51
90
|
} }, encapsulation: 2, changeDetection: 0 });
|
|
@@ -59,5 +98,26 @@ export class LuzmoItemOptionPicker {
|
|
|
59
98
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
60
99
|
template: '<ng-content />'
|
|
61
100
|
}]
|
|
62
|
-
}], () => [], {
|
|
63
|
-
|
|
101
|
+
}], () => [], { values: [{
|
|
102
|
+
type: Input,
|
|
103
|
+
args: [{ alias: 'values' }]
|
|
104
|
+
}], disabled: [{
|
|
105
|
+
type: Input,
|
|
106
|
+
args: [{ alias: 'disabled', transform: booleanAttribute }]
|
|
107
|
+
}], placement: [{
|
|
108
|
+
type: Input,
|
|
109
|
+
args: [{ alias: 'placement' }]
|
|
110
|
+
}], value: [{
|
|
111
|
+
type: Input,
|
|
112
|
+
args: [{ alias: 'value' }]
|
|
113
|
+
}], parseValue: [{
|
|
114
|
+
type: Input,
|
|
115
|
+
args: [{ alias: 'parseValue' }]
|
|
116
|
+
}], toValue: [{
|
|
117
|
+
type: Input,
|
|
118
|
+
args: [{ alias: 'toValue' }]
|
|
119
|
+
}], default: [{
|
|
120
|
+
type: Input,
|
|
121
|
+
args: [{ alias: 'default' }]
|
|
122
|
+
}], luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
|
|
123
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionPicker, { className: "LuzmoItemOptionPicker", filePath: "components/item-option-picker.ts", lineNumber: 17 }); })();
|
|
@@ -11,6 +11,14 @@ export declare class LuzmoItemOptionPositionPicker implements OnChanges {
|
|
|
11
11
|
private readonly listenerCleanup;
|
|
12
12
|
/** The underlying custom element instance. Use to call imperative methods. */
|
|
13
13
|
get nativeElement(): LuzmoItemOptionPositionPickerHostElement;
|
|
14
|
+
/** The currently selected position. */
|
|
15
|
+
value?: string;
|
|
16
|
+
/** The default position used when no value is set (e.g. `topRight`). */
|
|
17
|
+
default?: string;
|
|
18
|
+
/** The set of positions offered for selection. */
|
|
19
|
+
positions?: string[];
|
|
20
|
+
/** Whether the control is read-only. */
|
|
21
|
+
readonly?: boolean;
|
|
14
22
|
/** Emitted when the option value changes. */
|
|
15
23
|
readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
|
|
16
24
|
constructor();
|
|
@@ -24,7 +32,8 @@ export declare class LuzmoItemOptionPositionPicker implements OnChanges {
|
|
|
24
32
|
private setHostProperty;
|
|
25
33
|
private bindEvents;
|
|
26
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionPositionPicker, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionPositionPicker, "luzmo-item-option-position-picker", ["luzmoItemOptionPositionPicker"], {}, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionPositionPicker, "luzmo-item-option-position-picker", ["luzmoItemOptionPositionPicker"], { "value": { "alias": "value"; "required": false; }; "default": { "alias": "defaultPosition"; "required": false; }; "positions": { "alias": "positions"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
|
|
36
|
+
static ngAcceptInputType_readonly: unknown;
|
|
28
37
|
}
|
|
29
38
|
/** The underlying custom element type for LuzmoItemOptionPositionPicker */
|
|
30
39
|
export type LuzmoItemOptionPositionPickerElement = LuzmoItemOptionPositionPickerHostElement;
|