@luzmo/ngx-lucero 1.0.1-alpha.78
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/README.md +41 -0
- package/esm/components/accordion-item.d.ts +32 -0
- package/esm/components/accordion-item.js +89 -0
- package/esm/components/accordion.d.ts +38 -0
- package/esm/components/accordion.js +107 -0
- package/esm/components/action-bar.d.ts +32 -0
- package/esm/components/action-bar.js +83 -0
- package/esm/components/action-button.d.ts +59 -0
- package/esm/components/action-button.js +205 -0
- package/esm/components/action-group.d.ts +42 -0
- package/esm/components/action-group.js +155 -0
- package/esm/components/action-menu.d.ts +75 -0
- package/esm/components/action-menu.js +337 -0
- package/esm/components/avatar.d.ts +35 -0
- package/esm/components/avatar.js +94 -0
- package/esm/components/badge.d.ts +31 -0
- package/esm/components/badge.js +86 -0
- package/esm/components/button-group.d.ts +28 -0
- package/esm/components/button-group.js +71 -0
- package/esm/components/button.d.ts +40 -0
- package/esm/components/button.js +140 -0
- package/esm/components/calendar.d.ts +64 -0
- package/esm/components/calendar.js +218 -0
- package/esm/components/chat-message-group.d.ts +29 -0
- package/esm/components/chat-message-group.js +76 -0
- package/esm/components/chat-message.d.ts +50 -0
- package/esm/components/chat-message.js +156 -0
- package/esm/components/checkbox.d.ts +55 -0
- package/esm/components/checkbox.js +196 -0
- package/esm/components/clear-button.d.ts +32 -0
- package/esm/components/clear-button.js +88 -0
- package/esm/components/close-button.d.ts +33 -0
- package/esm/components/close-button.js +95 -0
- package/esm/components/color-area.d.ts +45 -0
- package/esm/components/color-area.js +167 -0
- package/esm/components/color-field.d.ts +91 -0
- package/esm/components/color-field.js +321 -0
- package/esm/components/color-handle.d.ts +31 -0
- package/esm/components/color-handle.js +90 -0
- package/esm/components/color-loupe.d.ts +29 -0
- package/esm/components/color-loupe.js +76 -0
- package/esm/components/color-menu.d.ts +36 -0
- package/esm/components/color-menu.js +97 -0
- package/esm/components/color-palette-group.d.ts +40 -0
- package/esm/components/color-palette-group.js +117 -0
- package/esm/components/color-palette.d.ts +43 -0
- package/esm/components/color-palette.js +126 -0
- package/esm/components/color-picker.d.ts +49 -0
- package/esm/components/color-picker.js +143 -0
- package/esm/components/color-slider.d.ts +53 -0
- package/esm/components/color-slider.js +215 -0
- package/esm/components/date-range-picker.d.ts +69 -0
- package/esm/components/date-range-picker.js +228 -0
- package/esm/components/date-time-picker.d.ts +71 -0
- package/esm/components/date-time-picker.js +249 -0
- package/esm/components/divider.d.ts +31 -0
- package/esm/components/divider.js +78 -0
- package/esm/components/field-group.d.ts +32 -0
- package/esm/components/field-group.js +101 -0
- package/esm/components/field-label.d.ts +37 -0
- package/esm/components/field-label.js +104 -0
- package/esm/components/help-text.d.ts +30 -0
- package/esm/components/help-text.js +77 -0
- package/esm/components/icon.d.ts +33 -0
- package/esm/components/icon.js +104 -0
- package/esm/components/infield-button.d.ts +35 -0
- package/esm/components/infield-button.js +103 -0
- package/esm/components/label.d.ts +29 -0
- package/esm/components/label.js +76 -0
- package/esm/components/menu.d.ts +53 -0
- package/esm/components/menu.js +218 -0
- package/esm/components/multi-language-field.d.ts +58 -0
- package/esm/components/multi-language-field.js +263 -0
- package/esm/components/number-field.d.ts +103 -0
- package/esm/components/number-field.js +372 -0
- package/esm/components/options.d.ts +58 -0
- package/esm/components/options.js +207 -0
- package/esm/components/overlay.d.ts +67 -0
- package/esm/components/overlay.js +212 -0
- package/esm/components/picker-button.d.ts +32 -0
- package/esm/components/picker-button.js +94 -0
- package/esm/components/picker.d.ts +79 -0
- package/esm/components/picker.js +340 -0
- package/esm/components/popover.d.ts +33 -0
- package/esm/components/popover.js +93 -0
- package/esm/components/progress-bar.d.ts +35 -0
- package/esm/components/progress-bar.js +121 -0
- package/esm/components/progress-circle.d.ts +35 -0
- package/esm/components/progress-circle.js +94 -0
- package/esm/components/progress-steps.d.ts +46 -0
- package/esm/components/progress-steps.js +127 -0
- package/esm/components/prompt-box.d.ts +88 -0
- package/esm/components/prompt-box.js +280 -0
- package/esm/components/radio-group.d.ts +39 -0
- package/esm/components/radio-group.js +136 -0
- package/esm/components/radio.d.ts +46 -0
- package/esm/components/radio.js +172 -0
- package/esm/components/search.d.ts +95 -0
- package/esm/components/search.js +351 -0
- package/esm/components/select.d.ts +82 -0
- package/esm/components/select.js +351 -0
- package/esm/components/slider.d.ts +47 -0
- package/esm/components/slider.js +185 -0
- package/esm/components/status-light.d.ts +30 -0
- package/esm/components/status-light.js +78 -0
- package/esm/components/swatch-group.d.ts +37 -0
- package/esm/components/swatch-group.js +126 -0
- package/esm/components/swatch.d.ts +49 -0
- package/esm/components/swatch.js +197 -0
- package/esm/components/switch.d.ts +48 -0
- package/esm/components/switch.js +160 -0
- package/esm/components/tab-panel.d.ts +29 -0
- package/esm/components/tab-panel.js +78 -0
- package/esm/components/tab.d.ts +32 -0
- package/esm/components/tab.js +100 -0
- package/esm/components/tabs-overflow.d.ts +33 -0
- package/esm/components/tabs-overflow.js +97 -0
- package/esm/components/tabs.d.ts +43 -0
- package/esm/components/tabs.js +150 -0
- package/esm/components/tag.d.ts +31 -0
- package/esm/components/tag.js +90 -0
- package/esm/components/tags.d.ts +30 -0
- package/esm/components/tags.js +81 -0
- package/esm/components/text-field.d.ts +87 -0
- package/esm/components/text-field.js +308 -0
- package/esm/components/toast.d.ts +30 -0
- package/esm/components/toast.js +68 -0
- package/esm/components/tooltip.d.ts +44 -0
- package/esm/components/tooltip.js +154 -0
- package/esm/components/top-nav-item.d.ts +35 -0
- package/esm/components/top-nav-item.js +120 -0
- package/esm/components/top-nav.d.ts +35 -0
- package/esm/components/top-nav.js +110 -0
- package/esm/index.d.ts +135 -0
- package/esm/index.js +269 -0
- package/package.json +40 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, Renderer2 } from '@angular/core';
|
|
2
|
+
import '@luzmo/lucero/button';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-close-button>
|
|
7
|
+
*
|
|
8
|
+
* @slot (default) - text label of the Close Button
|
|
9
|
+
* @slot icon - The icon to use for Close Button
|
|
10
|
+
*/
|
|
11
|
+
export class LuzmoCloseButton {
|
|
12
|
+
elementRef = inject(ElementRef);
|
|
13
|
+
renderer = inject(Renderer2);
|
|
14
|
+
destroyRef = inject(DestroyRef);
|
|
15
|
+
host = this.elementRef.nativeElement;
|
|
16
|
+
listenerCleanup = [];
|
|
17
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
18
|
+
get nativeElement() {
|
|
19
|
+
return this.host;
|
|
20
|
+
}
|
|
21
|
+
/** The visual variant to apply to this button. */
|
|
22
|
+
variant;
|
|
23
|
+
staticColor;
|
|
24
|
+
active;
|
|
25
|
+
/** The default behavior of the button. Possible values are: `button` (default), `submit`, and `reset`. */
|
|
26
|
+
type;
|
|
27
|
+
constructor() {
|
|
28
|
+
this.bindEvents();
|
|
29
|
+
this.destroyRef.onDestroy(() => {
|
|
30
|
+
for (const cleanup of this.listenerCleanup) {
|
|
31
|
+
cleanup();
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
ngOnChanges(changes) {
|
|
36
|
+
for (const key of Object.keys(changes)) {
|
|
37
|
+
switch (key) {
|
|
38
|
+
case 'variant':
|
|
39
|
+
this.setHostProperty('variant', changes['variant'].currentValue);
|
|
40
|
+
break;
|
|
41
|
+
case 'staticColor':
|
|
42
|
+
this.setHostProperty('staticColor', changes['staticColor'].currentValue);
|
|
43
|
+
break;
|
|
44
|
+
case 'active':
|
|
45
|
+
this.setHostProperty('active', changes['active'].currentValue);
|
|
46
|
+
break;
|
|
47
|
+
case 'type':
|
|
48
|
+
this.setHostProperty('type', changes['type'].currentValue);
|
|
49
|
+
break;
|
|
50
|
+
default:
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
57
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
58
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
59
|
+
* undefined / null by clearing their bindings.
|
|
60
|
+
*/
|
|
61
|
+
setHostProperty(key, value) {
|
|
62
|
+
this.renderer.setProperty(this.host, key, value);
|
|
63
|
+
}
|
|
64
|
+
bindEvents() {
|
|
65
|
+
// No custom events for this wrapper.
|
|
66
|
+
}
|
|
67
|
+
static ɵfac = function LuzmoCloseButton_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoCloseButton)(); };
|
|
68
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoCloseButton, selectors: [["luzmo-close-button"]], inputs: { variant: "variant", staticColor: [0, "static-color", "staticColor"], active: "active", type: "type" }, exportAs: ["luzmoCloseButton"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoCloseButton_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
+
i0.ɵɵprojectionDef();
|
|
70
|
+
i0.ɵɵprojection(0);
|
|
71
|
+
} }, encapsulation: 2, changeDetection: 0 });
|
|
72
|
+
}
|
|
73
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoCloseButton, [{
|
|
74
|
+
type: Component,
|
|
75
|
+
args: [{
|
|
76
|
+
selector: 'luzmo-close-button',
|
|
77
|
+
exportAs: 'luzmoCloseButton',
|
|
78
|
+
standalone: true,
|
|
79
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
80
|
+
template: '<ng-content />'
|
|
81
|
+
}]
|
|
82
|
+
}], () => [], { variant: [{
|
|
83
|
+
type: Input,
|
|
84
|
+
args: [{ alias: 'variant' }]
|
|
85
|
+
}], staticColor: [{
|
|
86
|
+
type: Input,
|
|
87
|
+
args: [{ alias: 'static-color' }]
|
|
88
|
+
}], active: [{
|
|
89
|
+
type: Input,
|
|
90
|
+
args: [{ alias: 'active' }]
|
|
91
|
+
}], type: [{
|
|
92
|
+
type: Input,
|
|
93
|
+
args: [{ alias: 'type' }]
|
|
94
|
+
}] }); })();
|
|
95
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoCloseButton, { className: "LuzmoCloseButton", filePath: "components/close-button.ts", lineNumber: 18 }); })();
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/lucero/color-area';
|
|
3
|
+
import type { LuzmoColorArea as LuzmoColorAreaHostElement } from '@luzmo/lucero/color-area';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LuzmoColorArea implements OnChanges {
|
|
6
|
+
private readonly elementRef;
|
|
7
|
+
private readonly renderer;
|
|
8
|
+
private readonly destroyRef;
|
|
9
|
+
private readonly host;
|
|
10
|
+
private readonly listenerCleanup;
|
|
11
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
12
|
+
get nativeElement(): LuzmoColorAreaHostElement;
|
|
13
|
+
dir?: 'ltr' | 'rtl';
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
focused?: boolean;
|
|
16
|
+
labelX?: string;
|
|
17
|
+
labelY?: string;
|
|
18
|
+
isLTR?: boolean;
|
|
19
|
+
hue?: number;
|
|
20
|
+
color?: unknown;
|
|
21
|
+
x?: number;
|
|
22
|
+
y?: number;
|
|
23
|
+
step?: number;
|
|
24
|
+
inputX?: unknown;
|
|
25
|
+
inputY?: unknown;
|
|
26
|
+
/** The value of the Color Area has changed. */
|
|
27
|
+
readonly inputEvent: import("@angular/core").OutputEmitterRef<Event>;
|
|
28
|
+
/** An alteration to the value of the Color Area has been committed by the user. */
|
|
29
|
+
readonly changeEvent: import("@angular/core").OutputEmitterRef<Event>;
|
|
30
|
+
constructor();
|
|
31
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
32
|
+
/**
|
|
33
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
34
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
35
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
36
|
+
* undefined / null by clearing their bindings.
|
|
37
|
+
*/
|
|
38
|
+
private setHostProperty;
|
|
39
|
+
private bindEvents;
|
|
40
|
+
focus(focusOptions: FocusOptions): void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoColorArea, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoColorArea, "luzmo-color-area", ["luzmoColorArea"], { "dir": { "alias": "dir"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "focused": { "alias": "focused"; "required": false; }; "labelX": { "alias": "label-x"; "required": false; }; "labelY": { "alias": "label-y"; "required": false; }; "isLTR": { "alias": "is-ltr"; "required": false; }; "hue": { "alias": "hue"; "required": false; }; "color": { "alias": "color"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "step": { "alias": "step"; "required": false; }; "inputX": { "alias": "input-x"; "required": false; }; "inputY": { "alias": "input-y"; "required": false; }; }, { "inputEvent": "input"; "changeEvent": "change"; }, never, ["*"], true, never>;
|
|
43
|
+
}
|
|
44
|
+
/** The underlying custom element type for LuzmoColorArea */
|
|
45
|
+
export type LuzmoColorAreaElement = LuzmoColorAreaHostElement;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
+
import '@luzmo/lucero/color-area';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-color-area>
|
|
7
|
+
*
|
|
8
|
+
* @slot gradient - a custom gradient visually outlining the available color values
|
|
9
|
+
*/
|
|
10
|
+
export class LuzmoColorArea {
|
|
11
|
+
elementRef = inject(ElementRef);
|
|
12
|
+
renderer = inject(Renderer2);
|
|
13
|
+
destroyRef = inject(DestroyRef);
|
|
14
|
+
host = this.elementRef.nativeElement;
|
|
15
|
+
listenerCleanup = [];
|
|
16
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
17
|
+
get nativeElement() {
|
|
18
|
+
return this.host;
|
|
19
|
+
}
|
|
20
|
+
dir;
|
|
21
|
+
disabled;
|
|
22
|
+
focused;
|
|
23
|
+
labelX;
|
|
24
|
+
labelY;
|
|
25
|
+
isLTR;
|
|
26
|
+
hue;
|
|
27
|
+
color;
|
|
28
|
+
x;
|
|
29
|
+
y;
|
|
30
|
+
step;
|
|
31
|
+
inputX;
|
|
32
|
+
inputY;
|
|
33
|
+
/** The value of the Color Area has changed. */
|
|
34
|
+
inputEvent = output({ alias: 'input' });
|
|
35
|
+
/** An alteration to the value of the Color Area has been committed by the user. */
|
|
36
|
+
changeEvent = output({ alias: 'change' });
|
|
37
|
+
constructor() {
|
|
38
|
+
this.bindEvents();
|
|
39
|
+
this.destroyRef.onDestroy(() => {
|
|
40
|
+
for (const cleanup of this.listenerCleanup) {
|
|
41
|
+
cleanup();
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
ngOnChanges(changes) {
|
|
46
|
+
for (const key of Object.keys(changes)) {
|
|
47
|
+
switch (key) {
|
|
48
|
+
case 'dir':
|
|
49
|
+
this.setHostProperty('dir', changes['dir'].currentValue);
|
|
50
|
+
break;
|
|
51
|
+
case 'disabled':
|
|
52
|
+
this.setHostProperty('disabled', changes['disabled'].currentValue);
|
|
53
|
+
break;
|
|
54
|
+
case 'focused':
|
|
55
|
+
this.setHostProperty('focused', changes['focused'].currentValue);
|
|
56
|
+
break;
|
|
57
|
+
case 'labelX':
|
|
58
|
+
this.setHostProperty('labelX', changes['labelX'].currentValue);
|
|
59
|
+
break;
|
|
60
|
+
case 'labelY':
|
|
61
|
+
this.setHostProperty('labelY', changes['labelY'].currentValue);
|
|
62
|
+
break;
|
|
63
|
+
case 'isLTR':
|
|
64
|
+
this.setHostProperty('isLTR', changes['isLTR'].currentValue);
|
|
65
|
+
break;
|
|
66
|
+
case 'hue':
|
|
67
|
+
this.setHostProperty('hue', changes['hue'].currentValue);
|
|
68
|
+
break;
|
|
69
|
+
case 'color':
|
|
70
|
+
this.setHostProperty('color', changes['color'].currentValue);
|
|
71
|
+
break;
|
|
72
|
+
case 'x':
|
|
73
|
+
this.setHostProperty('x', changes['x'].currentValue);
|
|
74
|
+
break;
|
|
75
|
+
case 'y':
|
|
76
|
+
this.setHostProperty('y', changes['y'].currentValue);
|
|
77
|
+
break;
|
|
78
|
+
case 'step':
|
|
79
|
+
this.setHostProperty('step', changes['step'].currentValue);
|
|
80
|
+
break;
|
|
81
|
+
case 'inputX':
|
|
82
|
+
this.setHostProperty('inputX', changes['inputX'].currentValue);
|
|
83
|
+
break;
|
|
84
|
+
case 'inputY':
|
|
85
|
+
this.setHostProperty('inputY', changes['inputY'].currentValue);
|
|
86
|
+
break;
|
|
87
|
+
default:
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
94
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
95
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
96
|
+
* undefined / null by clearing their bindings.
|
|
97
|
+
*/
|
|
98
|
+
setHostProperty(key, value) {
|
|
99
|
+
this.renderer.setProperty(this.host, key, value);
|
|
100
|
+
}
|
|
101
|
+
bindEvents() {
|
|
102
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'input', (event) => {
|
|
103
|
+
this.inputEvent.emit(event);
|
|
104
|
+
}));
|
|
105
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'change', (event) => {
|
|
106
|
+
this.changeEvent.emit(event);
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
focus(focusOptions) {
|
|
110
|
+
return this.host.focus(focusOptions);
|
|
111
|
+
}
|
|
112
|
+
static ɵfac = function LuzmoColorArea_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoColorArea)(); };
|
|
113
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoColorArea, selectors: [["luzmo-color-area"]], inputs: { dir: "dir", disabled: "disabled", focused: "focused", labelX: [0, "label-x", "labelX"], labelY: [0, "label-y", "labelY"], isLTR: [0, "is-ltr", "isLTR"], hue: "hue", color: "color", x: "x", y: "y", step: "step", inputX: [0, "input-x", "inputX"], inputY: [0, "input-y", "inputY"] }, outputs: { inputEvent: "input", changeEvent: "change" }, exportAs: ["luzmoColorArea"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoColorArea_Template(rf, ctx) { if (rf & 1) {
|
|
114
|
+
i0.ɵɵprojectionDef();
|
|
115
|
+
i0.ɵɵprojection(0);
|
|
116
|
+
} }, encapsulation: 2, changeDetection: 0 });
|
|
117
|
+
}
|
|
118
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoColorArea, [{
|
|
119
|
+
type: Component,
|
|
120
|
+
args: [{
|
|
121
|
+
selector: 'luzmo-color-area',
|
|
122
|
+
exportAs: 'luzmoColorArea',
|
|
123
|
+
standalone: true,
|
|
124
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
125
|
+
template: '<ng-content />'
|
|
126
|
+
}]
|
|
127
|
+
}], () => [], { dir: [{
|
|
128
|
+
type: Input,
|
|
129
|
+
args: [{ alias: 'dir' }]
|
|
130
|
+
}], disabled: [{
|
|
131
|
+
type: Input,
|
|
132
|
+
args: [{ alias: 'disabled' }]
|
|
133
|
+
}], focused: [{
|
|
134
|
+
type: Input,
|
|
135
|
+
args: [{ alias: 'focused' }]
|
|
136
|
+
}], labelX: [{
|
|
137
|
+
type: Input,
|
|
138
|
+
args: [{ alias: 'label-x' }]
|
|
139
|
+
}], labelY: [{
|
|
140
|
+
type: Input,
|
|
141
|
+
args: [{ alias: 'label-y' }]
|
|
142
|
+
}], isLTR: [{
|
|
143
|
+
type: Input,
|
|
144
|
+
args: [{ alias: 'is-ltr' }]
|
|
145
|
+
}], hue: [{
|
|
146
|
+
type: Input,
|
|
147
|
+
args: [{ alias: 'hue' }]
|
|
148
|
+
}], color: [{
|
|
149
|
+
type: Input,
|
|
150
|
+
args: [{ alias: 'color' }]
|
|
151
|
+
}], x: [{
|
|
152
|
+
type: Input,
|
|
153
|
+
args: [{ alias: 'x' }]
|
|
154
|
+
}], y: [{
|
|
155
|
+
type: Input,
|
|
156
|
+
args: [{ alias: 'y' }]
|
|
157
|
+
}], step: [{
|
|
158
|
+
type: Input,
|
|
159
|
+
args: [{ alias: 'step' }]
|
|
160
|
+
}], inputX: [{
|
|
161
|
+
type: Input,
|
|
162
|
+
args: [{ alias: 'input-x' }]
|
|
163
|
+
}], inputY: [{
|
|
164
|
+
type: Input,
|
|
165
|
+
args: [{ alias: 'input-y' }]
|
|
166
|
+
}], inputEvent: [{ type: i0.Output, args: ["input"] }], changeEvent: [{ type: i0.Output, args: ["change"] }] }); })();
|
|
167
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoColorArea, { className: "LuzmoColorArea", filePath: "components/color-area.ts", lineNumber: 17 }); })();
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import '@luzmo/lucero/color-field';
|
|
4
|
+
import type { LuzmoColorField as LuzmoColorFieldHostElement } from '@luzmo/lucero/color-field';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class LuzmoColorField implements OnChanges, ControlValueAccessor {
|
|
7
|
+
private readonly elementRef;
|
|
8
|
+
private readonly renderer;
|
|
9
|
+
private readonly destroyRef;
|
|
10
|
+
private readonly host;
|
|
11
|
+
private readonly listenerCleanup;
|
|
12
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
13
|
+
get nativeElement(): LuzmoColorFieldHostElement;
|
|
14
|
+
/** Whether the color handle with the preview color is shown */
|
|
15
|
+
viewColor?: boolean;
|
|
16
|
+
/** Whether the alpha channel is not allowed */
|
|
17
|
+
noAlphaChannel?: boolean;
|
|
18
|
+
/** The value held by the form control */
|
|
19
|
+
value?: string;
|
|
20
|
+
helpTextManager?: unknown;
|
|
21
|
+
/** A regular expression outlining the keys that will be allowed to update the value of the form control. */
|
|
22
|
+
allowedKeys?: string;
|
|
23
|
+
/** Whether the `value` held by the form control is invalid. */
|
|
24
|
+
invalid?: boolean;
|
|
25
|
+
/** A string applied via `aria-label` to the form control when a user visible label is not provided. */
|
|
26
|
+
label?: string;
|
|
27
|
+
/** Name of the form control. */
|
|
28
|
+
name?: string;
|
|
29
|
+
/** Text that appears in the form control when it has no value set */
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
type?: unknown;
|
|
32
|
+
/** Pattern the `value` must match to be valid */
|
|
33
|
+
pattern?: string;
|
|
34
|
+
/** Whether a form control delivered with the `multiline` attribute will change size vertically to accomodate longer input */
|
|
35
|
+
grows?: boolean;
|
|
36
|
+
/** Defines the maximum string length that the user can enter */
|
|
37
|
+
maxlength?: number;
|
|
38
|
+
/** Defines the minimum string length that the user can enter */
|
|
39
|
+
minlength?: number;
|
|
40
|
+
/** Whether the form control should accept a value longer than one line */
|
|
41
|
+
multiline?: boolean;
|
|
42
|
+
/** Whether a user can interact with the value of the form control */
|
|
43
|
+
readonly?: boolean;
|
|
44
|
+
/** The specific number of rows the form control should provide in the user interface */
|
|
45
|
+
rows?: number;
|
|
46
|
+
/** The maximum number of rows the form control should grow to when `grows` is enabled. When content exceeds this limit, the textarea will show a scrollbar. A value of -1 means no maximum (unlimited growth). When set, the value must be >= 1; values < 1 will be disregarded. */
|
|
47
|
+
maxRows?: number;
|
|
48
|
+
/** Whether the `value` held by the form control is valid. */
|
|
49
|
+
valid?: boolean;
|
|
50
|
+
/** Whether to hide the validation state icons (valid/invalid icons). */
|
|
51
|
+
hideValidationIcons?: boolean;
|
|
52
|
+
/** Whether to display the form control with no visible background */
|
|
53
|
+
quiet?: boolean;
|
|
54
|
+
/** Whether the form control will be found to be invalid when it holds no `value` */
|
|
55
|
+
required?: boolean;
|
|
56
|
+
/** What form of assistance should be provided when attempting to supply a value to the form control */
|
|
57
|
+
autocomplete?: unknown;
|
|
58
|
+
/** The value of the color-field has changed. */
|
|
59
|
+
readonly inputEvent: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
|
|
60
|
+
/** An alteration to the value of the color-field has been committed by the user. */
|
|
61
|
+
readonly changeEvent: import("@angular/core").OutputEmitterRef<Event>;
|
|
62
|
+
/** A key has been pressed. */
|
|
63
|
+
readonly keypressEvent: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
|
|
64
|
+
constructor();
|
|
65
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
66
|
+
/**
|
|
67
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
68
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
69
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
70
|
+
* undefined / null by clearing their bindings.
|
|
71
|
+
*/
|
|
72
|
+
private setHostProperty;
|
|
73
|
+
private bindEvents;
|
|
74
|
+
private onChange;
|
|
75
|
+
private onTouched;
|
|
76
|
+
private isWritingValue;
|
|
77
|
+
private lastCvaValue;
|
|
78
|
+
writeValue(value: string): void;
|
|
79
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
80
|
+
registerOnTouched(fn: () => void): void;
|
|
81
|
+
setDisabledState(isDisabled: boolean): void;
|
|
82
|
+
checkValidity(): boolean;
|
|
83
|
+
/** Sets the start and end positions of the current selection. */
|
|
84
|
+
setSelectionRange(selectionStart: number, selectionEnd: number, selectionDirection?: 'forward' | 'backward' | 'none'): void;
|
|
85
|
+
/** Selects all the text. */
|
|
86
|
+
select(): void;
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoColorField, never>;
|
|
88
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoColorField, "luzmo-color-field", ["luzmoColorField"], { "viewColor": { "alias": "view-color"; "required": false; }; "noAlphaChannel": { "alias": "no-alpha-channel"; "required": false; }; "value": { "alias": "value"; "required": false; }; "helpTextManager": { "alias": "help-text-manager"; "required": false; }; "allowedKeys": { "alias": "allowed-keys"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "multiline": { "alias": "multiline"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "maxRows": { "alias": "max-rows"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "hideValidationIcons": { "alias": "hide-validation-icons"; "required": false; }; "quiet": { "alias": "quiet"; "required": false; }; "required": { "alias": "required"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; }, { "inputEvent": "input"; "changeEvent": "change"; "keypressEvent": "keypress"; }, never, ["*"], true, never>;
|
|
89
|
+
}
|
|
90
|
+
/** The underlying custom element type for LuzmoColorField */
|
|
91
|
+
export type LuzmoColorFieldElement = LuzmoColorFieldHostElement;
|