@joralvmel/cosmos-angular 0.3.0 → 0.4.0
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 +7 -4
- package/dist/components/badge.component.d.ts +20 -0
- package/dist/components/badge.component.js +46 -0
- package/dist/components/badge.component.js.map +1 -0
- package/dist/components/button.component.js +3 -3
- package/dist/components/calendar.component.d.ts +28 -0
- package/dist/components/calendar.component.js +65 -0
- package/dist/components/calendar.component.js.map +1 -0
- package/dist/components/checkbox.component.d.ts +52 -0
- package/dist/components/checkbox.component.js +152 -0
- package/dist/components/checkbox.component.js.map +1 -0
- package/dist/components/dialog.component.d.ts +44 -0
- package/dist/components/dialog.component.js +106 -0
- package/dist/components/dialog.component.js.map +1 -0
- package/dist/components/icon-button.component.js +3 -3
- package/dist/components/icon.component.d.ts +6 -8
- package/dist/components/icon.component.js +12 -22
- package/dist/components/icon.component.js.map +1 -1
- package/dist/components/listbox.component.js +3 -3
- package/dist/components/pagination.component.d.ts +36 -0
- package/dist/components/pagination.component.js +129 -0
- package/dist/components/pagination.component.js.map +1 -0
- package/dist/components/popover.component.d.ts +1 -10
- package/dist/components/popover.component.js +3 -32
- package/dist/components/popover.component.js.map +1 -1
- package/dist/components/radio-group.component.d.ts +49 -0
- package/dist/components/radio-group.component.js +146 -0
- package/dist/components/radio-group.component.js.map +1 -0
- package/dist/components/select.component.d.ts +49 -0
- package/dist/components/select.component.js +147 -0
- package/dist/components/select.component.js.map +1 -0
- package/dist/components/switch.component.d.ts +47 -0
- package/dist/components/switch.component.js +135 -0
- package/dist/components/switch.component.js.map +1 -0
- package/dist/components/text-field.component.d.ts +3 -4
- package/dist/components/text-field.component.js +9 -14
- package/dist/components/text-field.component.js.map +1 -1
- package/dist/components/textarea.component.d.ts +54 -0
- package/dist/components/textarea.component.js +168 -0
- package/dist/components/textarea.component.js.map +1 -0
- package/dist/index.d.ts +20 -2
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -1
- package/llms.md +350 -20
- package/package.json +10 -10
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { booleanAttribute, ChangeDetectionStrategy, Component, ElementRef, EventEmitter, forwardRef, Input, inject, Output, } from '@angular/core';
|
|
2
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
+
import '@joralvmel/cosmos-elements/textarea';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Angular proxy of `<cosm-textarea>`. DOM outputs re-emit the original `CustomEvent`; Forms
|
|
7
|
+
* integration follows `ControlValueAccessor` (including blur-based update strategies).
|
|
8
|
+
*
|
|
9
|
+
* ```html
|
|
10
|
+
* <cosm-textarea label="Message" formControlName="message" />
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export class CosmTextareaComponent {
|
|
14
|
+
constructor() {
|
|
15
|
+
/** The underlying custom element. */
|
|
16
|
+
this.element = inject(ElementRef).nativeElement;
|
|
17
|
+
this.#onChange = () => { };
|
|
18
|
+
this.#onTouched = () => { };
|
|
19
|
+
this.valueChange = new EventEmitter();
|
|
20
|
+
}
|
|
21
|
+
#onChange;
|
|
22
|
+
#onTouched;
|
|
23
|
+
set label(value) {
|
|
24
|
+
this.element.label = value;
|
|
25
|
+
}
|
|
26
|
+
set labelHidden(value) {
|
|
27
|
+
this.element.labelHidden = value;
|
|
28
|
+
}
|
|
29
|
+
/** A direct value input is controlled; Angular Forms writes use `writeValue` instead. */
|
|
30
|
+
set value(value) {
|
|
31
|
+
this.element.valueControlled = value !== undefined;
|
|
32
|
+
if (value !== undefined)
|
|
33
|
+
this.element.value = value;
|
|
34
|
+
}
|
|
35
|
+
set defaultValue(value) {
|
|
36
|
+
this.element.defaultValue = value ?? '';
|
|
37
|
+
}
|
|
38
|
+
set rows(value) {
|
|
39
|
+
if (value !== undefined)
|
|
40
|
+
this.element.rows = value;
|
|
41
|
+
}
|
|
42
|
+
set variant(value) {
|
|
43
|
+
if (value !== undefined)
|
|
44
|
+
this.element.variant = value;
|
|
45
|
+
}
|
|
46
|
+
set size(value) {
|
|
47
|
+
if (value !== undefined)
|
|
48
|
+
this.element.size = value;
|
|
49
|
+
}
|
|
50
|
+
set placeholder(value) {
|
|
51
|
+
this.element.placeholder = value ?? '';
|
|
52
|
+
}
|
|
53
|
+
set helperText(value) {
|
|
54
|
+
this.element.helperText = value ?? '';
|
|
55
|
+
}
|
|
56
|
+
set errorText(value) {
|
|
57
|
+
this.element.errorText = value ?? '';
|
|
58
|
+
}
|
|
59
|
+
set invalid(value) {
|
|
60
|
+
this.element.invalid = value;
|
|
61
|
+
}
|
|
62
|
+
set required(value) {
|
|
63
|
+
this.element.required = value;
|
|
64
|
+
}
|
|
65
|
+
set disabled(value) {
|
|
66
|
+
this.element.disabled = value;
|
|
67
|
+
}
|
|
68
|
+
set readOnly(value) {
|
|
69
|
+
this.element.readOnly = value;
|
|
70
|
+
}
|
|
71
|
+
set maxLength(value) {
|
|
72
|
+
this.element.maxLength = value;
|
|
73
|
+
}
|
|
74
|
+
set name(value) {
|
|
75
|
+
this.element.name = value;
|
|
76
|
+
}
|
|
77
|
+
/** Re-emits the original event and feeds its proposal into Angular Forms. */
|
|
78
|
+
handleChange(event) {
|
|
79
|
+
this.valueChange.emit(event);
|
|
80
|
+
this.#onChange(event.detail.value);
|
|
81
|
+
}
|
|
82
|
+
/** Marks the control touched when the editable control loses focus. */
|
|
83
|
+
markTouched() {
|
|
84
|
+
this.#onTouched();
|
|
85
|
+
}
|
|
86
|
+
writeValue(value) {
|
|
87
|
+
// CVA owns the view draft until Angular commits it (notably for updateOn: 'blur').
|
|
88
|
+
this.element.valueControlled = false;
|
|
89
|
+
this.element.value = value ?? '';
|
|
90
|
+
}
|
|
91
|
+
registerOnChange(fn) {
|
|
92
|
+
this.#onChange = fn;
|
|
93
|
+
}
|
|
94
|
+
registerOnTouched(fn) {
|
|
95
|
+
this.#onTouched = fn;
|
|
96
|
+
}
|
|
97
|
+
setDisabledState(isDisabled) {
|
|
98
|
+
this.element.disabled = isDisabled;
|
|
99
|
+
}
|
|
100
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: CosmTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
101
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "22.3.0", type: CosmTextareaComponent, isStandalone: true, selector: "cosm-textarea", inputs: { label: "label", labelHidden: ["labelHidden", "labelHidden", booleanAttribute], value: "value", defaultValue: "defaultValue", rows: "rows", variant: "variant", size: "size", placeholder: "placeholder", helperText: "helperText", errorText: "errorText", invalid: ["invalid", "invalid", booleanAttribute], required: ["required", "required", booleanAttribute], disabled: ["disabled", "disabled", booleanAttribute], readOnly: ["readOnly", "readOnly", booleanAttribute], maxLength: "maxLength", name: "name" }, outputs: { valueChange: "valueChange" }, host: { listeners: { "cosm-change": "handleChange($event)", "focusout": "markTouched()" } }, providers: [
|
|
102
|
+
{
|
|
103
|
+
provide: NG_VALUE_ACCESSOR,
|
|
104
|
+
useExisting: forwardRef(() => CosmTextareaComponent),
|
|
105
|
+
multi: true,
|
|
106
|
+
},
|
|
107
|
+
], ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
108
|
+
}
|
|
109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: CosmTextareaComponent, decorators: [{
|
|
110
|
+
type: Component,
|
|
111
|
+
args: [{
|
|
112
|
+
selector: 'cosm-textarea',
|
|
113
|
+
template: '<ng-content />',
|
|
114
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
115
|
+
providers: [
|
|
116
|
+
{
|
|
117
|
+
provide: NG_VALUE_ACCESSOR,
|
|
118
|
+
useExisting: forwardRef(() => CosmTextareaComponent),
|
|
119
|
+
multi: true,
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
host: {
|
|
123
|
+
'(cosm-change)': 'handleChange($event)',
|
|
124
|
+
'(focusout)': 'markTouched()',
|
|
125
|
+
},
|
|
126
|
+
}]
|
|
127
|
+
}], propDecorators: { label: [{
|
|
128
|
+
type: Input,
|
|
129
|
+
args: [{ required: true }]
|
|
130
|
+
}], labelHidden: [{
|
|
131
|
+
type: Input,
|
|
132
|
+
args: [{ transform: booleanAttribute }]
|
|
133
|
+
}], value: [{
|
|
134
|
+
type: Input
|
|
135
|
+
}], defaultValue: [{
|
|
136
|
+
type: Input
|
|
137
|
+
}], rows: [{
|
|
138
|
+
type: Input
|
|
139
|
+
}], variant: [{
|
|
140
|
+
type: Input
|
|
141
|
+
}], size: [{
|
|
142
|
+
type: Input
|
|
143
|
+
}], placeholder: [{
|
|
144
|
+
type: Input
|
|
145
|
+
}], helperText: [{
|
|
146
|
+
type: Input
|
|
147
|
+
}], errorText: [{
|
|
148
|
+
type: Input
|
|
149
|
+
}], invalid: [{
|
|
150
|
+
type: Input,
|
|
151
|
+
args: [{ transform: booleanAttribute }]
|
|
152
|
+
}], required: [{
|
|
153
|
+
type: Input,
|
|
154
|
+
args: [{ transform: booleanAttribute }]
|
|
155
|
+
}], disabled: [{
|
|
156
|
+
type: Input,
|
|
157
|
+
args: [{ transform: booleanAttribute }]
|
|
158
|
+
}], readOnly: [{
|
|
159
|
+
type: Input,
|
|
160
|
+
args: [{ transform: booleanAttribute }]
|
|
161
|
+
}], maxLength: [{
|
|
162
|
+
type: Input
|
|
163
|
+
}], name: [{
|
|
164
|
+
type: Input
|
|
165
|
+
}], valueChange: [{
|
|
166
|
+
type: Output
|
|
167
|
+
}] } });
|
|
168
|
+
//# sourceMappingURL=textarea.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.component.js","sourceRoot":"","sources":["../../src/components/textarea.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,SAAS,E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xB,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;;sBAIrC,KAAK;;sBAIL,KAAK;;sBAGL,KAAK;;sBAGL,KAAK;;sBAGL,KAAK;;sBAGL,KAAK;;sBAGL,KAAK;;sBAGL,KAAK;;sBAGL,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;;sBAGrC,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;;sBAGrC,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;;sBAGrC,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;;sBAGrC,KAAK;;sBAGL,KAAK;;sBAIL,MAAM"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,33 @@
|
|
|
1
|
+
import { CosmBadgeComponent } from './components/badge.component.js';
|
|
2
|
+
import { CosmCalendarComponent } from './components/calendar.component.js';
|
|
3
|
+
import { CosmCheckboxComponent } from './components/checkbox.component.js';
|
|
4
|
+
import { CosmDialogComponent } from './components/dialog.component.js';
|
|
1
5
|
import { CosmIconButtonComponent } from './components/icon-button.component.js';
|
|
2
6
|
import { CosmListboxComponent } from './components/listbox.component.js';
|
|
7
|
+
import { CosmPaginationComponent } from './components/pagination.component.js';
|
|
3
8
|
import { CosmPopoverComponent } from './components/popover.component.js';
|
|
9
|
+
import { CosmRadioGroupComponent } from './components/radio-group.component.js';
|
|
10
|
+
import { CosmSelectComponent } from './components/select.component.js';
|
|
11
|
+
import { CosmSwitchComponent } from './components/switch.component.js';
|
|
4
12
|
import { CosmTextFieldComponent } from './components/text-field.component.js';
|
|
5
|
-
|
|
13
|
+
import { CosmTextareaComponent } from './components/textarea.component.js';
|
|
14
|
+
export type { ButtonPressDetail, CheckboxCheckedChangeDetail, ListboxSelectionChangeDetail, PressSource, SwitchCheckedChangeDetail, TextareaChangeDetail, TextFieldChangeDetail, TextFieldSubmitDetail, } from '@joralvmel/cosmos-core';
|
|
6
15
|
export { CosmButtonComponent } from './components/button.component.js';
|
|
7
16
|
export { CosmIconComponent } from './components/icon.component.js';
|
|
8
17
|
import { CosmButtonComponent } from './components/button.component.js';
|
|
9
18
|
import { CosmIconComponent } from './components/icon.component.js';
|
|
10
19
|
/** Every Cosmos Angular component, for `imports: [...COSMOS_COMPONENTS]`. */
|
|
11
|
-
export declare const COSMOS_COMPONENTS: readonly [typeof CosmButtonComponent, typeof CosmIconComponent, typeof CosmTextFieldComponent, typeof CosmIconButtonComponent, typeof CosmPopoverComponent, typeof CosmListboxComponent];
|
|
20
|
+
export declare const COSMOS_COMPONENTS: readonly [typeof CosmButtonComponent, typeof CosmIconComponent, typeof CosmTextFieldComponent, typeof CosmIconButtonComponent, typeof CosmPopoverComponent, typeof CosmListboxComponent, typeof CosmCheckboxComponent, typeof CosmSwitchComponent, typeof CosmBadgeComponent, typeof CosmCalendarComponent, typeof CosmTextareaComponent, typeof CosmRadioGroupComponent, typeof CosmSelectComponent, typeof CosmPaginationComponent, typeof CosmDialogComponent];
|
|
21
|
+
export { CosmBadgeComponent } from './components/badge.component.js';
|
|
22
|
+
export { CosmCalendarComponent } from './components/calendar.component.js';
|
|
23
|
+
export { CosmCheckboxComponent } from './components/checkbox.component.js';
|
|
24
|
+
export { CosmDialogComponent } from './components/dialog.component.js';
|
|
12
25
|
export { CosmIconButtonComponent } from './components/icon-button.component.js';
|
|
13
26
|
export { CosmListboxComponent } from './components/listbox.component.js';
|
|
27
|
+
export { CosmPaginationComponent } from './components/pagination.component.js';
|
|
14
28
|
export { CosmPopoverComponent } from './components/popover.component.js';
|
|
29
|
+
export { CosmRadioGroupComponent } from './components/radio-group.component.js';
|
|
30
|
+
export { CosmSelectComponent } from './components/select.component.js';
|
|
31
|
+
export { CosmSwitchComponent } from './components/switch.component.js';
|
|
15
32
|
export { CosmTextFieldComponent } from './components/text-field.component.js';
|
|
33
|
+
export { CosmTextareaComponent } from './components/textarea.component.js';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
import { CosmBadgeComponent } from './components/badge.component.js';
|
|
2
|
+
import { CosmCalendarComponent } from './components/calendar.component.js';
|
|
3
|
+
import { CosmCheckboxComponent } from './components/checkbox.component.js';
|
|
4
|
+
import { CosmDialogComponent } from './components/dialog.component.js';
|
|
1
5
|
import { CosmIconButtonComponent } from './components/icon-button.component.js';
|
|
2
6
|
import { CosmListboxComponent } from './components/listbox.component.js';
|
|
7
|
+
import { CosmPaginationComponent } from './components/pagination.component.js';
|
|
3
8
|
import { CosmPopoverComponent } from './components/popover.component.js';
|
|
9
|
+
import { CosmRadioGroupComponent } from './components/radio-group.component.js';
|
|
10
|
+
import { CosmSelectComponent } from './components/select.component.js';
|
|
11
|
+
import { CosmSwitchComponent } from './components/switch.component.js';
|
|
4
12
|
import { CosmTextFieldComponent } from './components/text-field.component.js';
|
|
13
|
+
import { CosmTextareaComponent } from './components/textarea.component.js';
|
|
5
14
|
export { CosmButtonComponent } from './components/button.component.js';
|
|
6
15
|
export { CosmIconComponent } from './components/icon.component.js';
|
|
7
16
|
import { CosmButtonComponent } from './components/button.component.js';
|
|
@@ -14,9 +23,27 @@ export const COSMOS_COMPONENTS = [
|
|
|
14
23
|
CosmIconButtonComponent,
|
|
15
24
|
CosmPopoverComponent,
|
|
16
25
|
CosmListboxComponent,
|
|
26
|
+
CosmCheckboxComponent,
|
|
27
|
+
CosmSwitchComponent,
|
|
28
|
+
CosmBadgeComponent,
|
|
29
|
+
CosmCalendarComponent,
|
|
30
|
+
CosmTextareaComponent,
|
|
31
|
+
CosmRadioGroupComponent,
|
|
32
|
+
CosmSelectComponent,
|
|
33
|
+
CosmPaginationComponent,
|
|
34
|
+
CosmDialogComponent,
|
|
17
35
|
];
|
|
36
|
+
export { CosmBadgeComponent } from './components/badge.component.js';
|
|
37
|
+
export { CosmCalendarComponent } from './components/calendar.component.js';
|
|
38
|
+
export { CosmCheckboxComponent } from './components/checkbox.component.js';
|
|
39
|
+
export { CosmDialogComponent } from './components/dialog.component.js';
|
|
18
40
|
export { CosmIconButtonComponent } from './components/icon-button.component.js';
|
|
19
41
|
export { CosmListboxComponent } from './components/listbox.component.js';
|
|
42
|
+
export { CosmPaginationComponent } from './components/pagination.component.js';
|
|
20
43
|
export { CosmPopoverComponent } from './components/popover.component.js';
|
|
44
|
+
export { CosmRadioGroupComponent } from './components/radio-group.component.js';
|
|
45
|
+
export { CosmSelectComponent } from './components/select.component.js';
|
|
46
|
+
export { CosmSwitchComponent } from './components/switch.component.js';
|
|
21
47
|
export { CosmTextFieldComponent } from './components/text-field.component.js';
|
|
48
|
+
export { CosmTextareaComponent } from './components/textarea.component.js';
|
|
22
49
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM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