ngx-edyta-fe-elements 0.0.2
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 +63 -0
- package/fesm2022/ngx-edyta-fe-elements.mjs +214 -0
- package/fesm2022/ngx-edyta-fe-elements.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/element.module.d.ts +11 -0
- package/lib/simple/boolean-element/boolean-element.component.d.ts +16 -0
- package/lib/simple/common/basic/basic.component.d.ts +26 -0
- package/lib/simple/input-element/input-element.component.d.ts +23 -0
- package/lib/simple/select-element/select-element.component.d.ts +16 -0
- package/package.json +23 -0
- package/public-api.d.ts +4 -0
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# NgxEdytaFeElements
|
|
2
|
+
|
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
ng generate component component-name
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
ng generate --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Building
|
|
20
|
+
|
|
21
|
+
To build the library, run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ng build ngx-edyta-fe-elements
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
+
|
|
29
|
+
### Publishing the Library
|
|
30
|
+
|
|
31
|
+
Once the project is built, you can publish your library by following these steps:
|
|
32
|
+
|
|
33
|
+
1. Navigate to the `dist` directory:
|
|
34
|
+
```bash
|
|
35
|
+
cd dist/ngx-edyta-fe-elements
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
39
|
+
```bash
|
|
40
|
+
npm publish
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Running unit tests
|
|
44
|
+
|
|
45
|
+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
ng test
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Running end-to-end tests
|
|
52
|
+
|
|
53
|
+
For end-to-end (e2e) testing, run:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
ng e2e
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
60
|
+
|
|
61
|
+
## Additional Resources
|
|
62
|
+
|
|
63
|
+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Input, Component, Output, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i2 from '@angular/forms';
|
|
6
|
+
import { FormsModule } from '@angular/forms';
|
|
7
|
+
|
|
8
|
+
class BasicComponent {
|
|
9
|
+
static _dependencies = {
|
|
10
|
+
EventEmitter
|
|
11
|
+
};
|
|
12
|
+
_placeholder = '';
|
|
13
|
+
_label = '';
|
|
14
|
+
_customCssClasses = [];
|
|
15
|
+
_defaultCssClasses = [];
|
|
16
|
+
get placeholder() {
|
|
17
|
+
return this._placeholder;
|
|
18
|
+
}
|
|
19
|
+
set placeholder(value) {
|
|
20
|
+
this._placeholder = value;
|
|
21
|
+
}
|
|
22
|
+
get label() {
|
|
23
|
+
return this._label;
|
|
24
|
+
}
|
|
25
|
+
set label(value) {
|
|
26
|
+
this._label = value;
|
|
27
|
+
}
|
|
28
|
+
get customCssClasses() {
|
|
29
|
+
return this._customCssClasses;
|
|
30
|
+
}
|
|
31
|
+
set customCssClasses(value) {
|
|
32
|
+
this._customCssClasses = value;
|
|
33
|
+
}
|
|
34
|
+
get defaultCssClasses() {
|
|
35
|
+
return this._defaultCssClasses;
|
|
36
|
+
}
|
|
37
|
+
set defaultCssClasses(value) {
|
|
38
|
+
this._defaultCssClasses = value;
|
|
39
|
+
}
|
|
40
|
+
getCssClasses() {
|
|
41
|
+
if (this.customCssClasses.length) {
|
|
42
|
+
return this.customCssClasses;
|
|
43
|
+
}
|
|
44
|
+
return this.defaultCssClasses;
|
|
45
|
+
}
|
|
46
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BasicComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BasicComponent, isStandalone: false, selector: "ng-component", inputs: { placeholder: "placeholder", label: "label", customCssClasses: "customCssClasses" }, ngImport: i0, template: '', isInline: true });
|
|
48
|
+
}
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BasicComponent, decorators: [{
|
|
50
|
+
type: Component,
|
|
51
|
+
args: [{
|
|
52
|
+
template: '',
|
|
53
|
+
standalone: false
|
|
54
|
+
}]
|
|
55
|
+
}], propDecorators: { placeholder: [{
|
|
56
|
+
type: Input
|
|
57
|
+
}], label: [{
|
|
58
|
+
type: Input
|
|
59
|
+
}], customCssClasses: [{
|
|
60
|
+
type: Input
|
|
61
|
+
}] } });
|
|
62
|
+
|
|
63
|
+
class InputElementComponent extends BasicComponent {
|
|
64
|
+
_value;
|
|
65
|
+
_valueChange;
|
|
66
|
+
_required = false;
|
|
67
|
+
_disabled = false;
|
|
68
|
+
constructor() {
|
|
69
|
+
super();
|
|
70
|
+
this._valueChange = new BasicComponent._dependencies.EventEmitter();
|
|
71
|
+
}
|
|
72
|
+
ngOnInit() {
|
|
73
|
+
this.defaultCssClasses = ['uk-width-1-1@s', 'uk-width-1-3@m'];
|
|
74
|
+
}
|
|
75
|
+
get value() {
|
|
76
|
+
return this._value;
|
|
77
|
+
}
|
|
78
|
+
set value(value) {
|
|
79
|
+
this._value = value;
|
|
80
|
+
}
|
|
81
|
+
get valueChange() {
|
|
82
|
+
return this._valueChange;
|
|
83
|
+
}
|
|
84
|
+
set valueChange(value) {
|
|
85
|
+
this._valueChange = value;
|
|
86
|
+
}
|
|
87
|
+
get disabled() {
|
|
88
|
+
return this._disabled;
|
|
89
|
+
}
|
|
90
|
+
set disabled(value) {
|
|
91
|
+
this._disabled = value;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @see {@link https://angular.io/guide/two-way-binding}
|
|
95
|
+
*/
|
|
96
|
+
onChange() {
|
|
97
|
+
this.valueChange.emit(this.value);
|
|
98
|
+
}
|
|
99
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: InputElementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
100
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: InputElementComponent, isStandalone: false, selector: "edyta-input-element", inputs: { value: "value", disabled: "disabled" }, outputs: { valueChange: "valueChange" }, usesInheritance: true, ngImport: i0, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-label\" *ngIf=\"label\">{{ label }}</div>\n <div class=\"uk-form-controls\">\n <input class=\"uk-input\" [ngClass]=\"getCssClasses()\" type=\"text\" [placeholder]=\"placeholder\" [(ngModel)]=\"value\" (input)=\"onChange()\" [disabled]=\"disabled\" />\n <ng-content select=\"[after-control]\"></ng-content>\n </div>\n</div>\n", styles: [".required-indicator{color:red;display:inline-block;margin-left:.5rem}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
101
|
+
}
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: InputElementComponent, decorators: [{
|
|
103
|
+
type: Component,
|
|
104
|
+
args: [{ selector: 'edyta-input-element', standalone: false, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-label\" *ngIf=\"label\">{{ label }}</div>\n <div class=\"uk-form-controls\">\n <input class=\"uk-input\" [ngClass]=\"getCssClasses()\" type=\"text\" [placeholder]=\"placeholder\" [(ngModel)]=\"value\" (input)=\"onChange()\" [disabled]=\"disabled\" />\n <ng-content select=\"[after-control]\"></ng-content>\n </div>\n</div>\n", styles: [".required-indicator{color:red;display:inline-block;margin-left:.5rem}\n"] }]
|
|
105
|
+
}], ctorParameters: () => [], propDecorators: { value: [{
|
|
106
|
+
type: Input
|
|
107
|
+
}], valueChange: [{
|
|
108
|
+
type: Output
|
|
109
|
+
}], disabled: [{
|
|
110
|
+
type: Input
|
|
111
|
+
}] } });
|
|
112
|
+
|
|
113
|
+
class SelectElementComponent extends InputElementComponent {
|
|
114
|
+
_options = [];
|
|
115
|
+
ngOnInit() {
|
|
116
|
+
this.defaultCssClasses = ['uk-width-1-1@s', 'uk-width-1-3@m', 'uk-width-1-4@l'];
|
|
117
|
+
}
|
|
118
|
+
get options() {
|
|
119
|
+
return this._options;
|
|
120
|
+
}
|
|
121
|
+
set options(value) {
|
|
122
|
+
this._options = value;
|
|
123
|
+
}
|
|
124
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SelectElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
125
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: SelectElementComponent, isStandalone: false, selector: "edyta-select-element", inputs: { options: "options" }, usesInheritance: true, ngImport: i0, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-label\" *ngIf=\"label\">{{ label }}</div>\n <div class=\"uk-form-controls\">\n <select class=\"uk-select\" [ngClass]=\"getCssClasses()\" [(ngModel)]=\"value\" (change)=\"onChange()\">\n <option></option>\n <option *ngFor=\"let option of options\" [value]=\"option.id\" [attr.disabled]=\"option.disabled ? 'true': null\">{{ option.text }}</option>\n </select>\n <ng-content select=\"[after-control]\"></ng-content>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
126
|
+
}
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SelectElementComponent, decorators: [{
|
|
128
|
+
type: Component,
|
|
129
|
+
args: [{ selector: 'edyta-select-element', standalone: false, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-label\" *ngIf=\"label\">{{ label }}</div>\n <div class=\"uk-form-controls\">\n <select class=\"uk-select\" [ngClass]=\"getCssClasses()\" [(ngModel)]=\"value\" (change)=\"onChange()\">\n <option></option>\n <option *ngFor=\"let option of options\" [value]=\"option.id\" [attr.disabled]=\"option.disabled ? 'true': null\">{{ option.text }}</option>\n </select>\n <ng-content select=\"[after-control]\"></ng-content>\n </div>\n</div>\n" }]
|
|
130
|
+
}], propDecorators: { options: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}] } });
|
|
133
|
+
|
|
134
|
+
class BooleanElementComponent extends SelectElementComponent {
|
|
135
|
+
_yesButtonText = 'Yes';
|
|
136
|
+
_noButtonText = 'No';
|
|
137
|
+
constructor() {
|
|
138
|
+
super();
|
|
139
|
+
}
|
|
140
|
+
ngOnInit() {
|
|
141
|
+
super.ngOnInit();
|
|
142
|
+
this._loadOptions();
|
|
143
|
+
}
|
|
144
|
+
get yesButtonText() {
|
|
145
|
+
return this._yesButtonText;
|
|
146
|
+
}
|
|
147
|
+
set yesButtonText(value) {
|
|
148
|
+
this._yesButtonText = value;
|
|
149
|
+
}
|
|
150
|
+
get noButtonText() {
|
|
151
|
+
return this._noButtonText;
|
|
152
|
+
}
|
|
153
|
+
set noButtonText(value) {
|
|
154
|
+
this._noButtonText = value;
|
|
155
|
+
}
|
|
156
|
+
_loadOptions() {
|
|
157
|
+
this.options = [
|
|
158
|
+
{ id: 'true', text: this.yesButtonText, disabled: false },
|
|
159
|
+
{ id: 'false', text: this.noButtonText, disabled: false }
|
|
160
|
+
];
|
|
161
|
+
}
|
|
162
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BooleanElementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
163
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BooleanElementComponent, isStandalone: false, selector: "edyta-boolean-element", inputs: { yesButtonText: "yesButtonText", noButtonText: "noButtonText" }, usesInheritance: true, ngImport: i0, template: "<div>\n <div class=\"uk-form-label\" *ngIf=\"label\">{{ label }}</div>\n <div class=\"uk-form-controls\">\n <button type=\"button\" class=\"uk-button button-no\" (click)=\"value = false.toString(); onChange()\" [ngClass]=\"{ 'uk-button-default': value !== false.toString(), 'uk-button-primary': value === false.toString()}\">{{ noButtonText }}</button>\n <button type=\"button\" class=\"uk-button button-yes\" (click)=\"value = true.toString(); onChange()\" [ngClass]=\"{ 'uk-button-default': value !== true.toString(), 'uk-button-primary': value === true.toString()}\">{{ yesButtonText }}</button>\n </div>\n</div>\n", styles: [".button-no{border-top-right-radius:0;border-bottom-right-radius:0}.button-yes{border-top-left-radius:0;border-bottom-left-radius:0}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
164
|
+
}
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BooleanElementComponent, decorators: [{
|
|
166
|
+
type: Component,
|
|
167
|
+
args: [{ selector: 'edyta-boolean-element', standalone: false, template: "<div>\n <div class=\"uk-form-label\" *ngIf=\"label\">{{ label }}</div>\n <div class=\"uk-form-controls\">\n <button type=\"button\" class=\"uk-button button-no\" (click)=\"value = false.toString(); onChange()\" [ngClass]=\"{ 'uk-button-default': value !== false.toString(), 'uk-button-primary': value === false.toString()}\">{{ noButtonText }}</button>\n <button type=\"button\" class=\"uk-button button-yes\" (click)=\"value = true.toString(); onChange()\" [ngClass]=\"{ 'uk-button-default': value !== true.toString(), 'uk-button-primary': value === true.toString()}\">{{ yesButtonText }}</button>\n </div>\n</div>\n", styles: [".button-no{border-top-right-radius:0;border-bottom-right-radius:0}.button-yes{border-top-left-radius:0;border-bottom-left-radius:0}\n"] }]
|
|
168
|
+
}], ctorParameters: () => [], propDecorators: { yesButtonText: [{
|
|
169
|
+
type: Input
|
|
170
|
+
}], noButtonText: [{
|
|
171
|
+
type: Input
|
|
172
|
+
}] } });
|
|
173
|
+
|
|
174
|
+
class ElementModule {
|
|
175
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ElementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
176
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: ElementModule, declarations: [InputElementComponent,
|
|
177
|
+
SelectElementComponent,
|
|
178
|
+
BooleanElementComponent], imports: [CommonModule,
|
|
179
|
+
FormsModule], exports: [InputElementComponent,
|
|
180
|
+
SelectElementComponent,
|
|
181
|
+
BooleanElementComponent] });
|
|
182
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ElementModule, imports: [CommonModule,
|
|
183
|
+
FormsModule] });
|
|
184
|
+
}
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ElementModule, decorators: [{
|
|
186
|
+
type: NgModule,
|
|
187
|
+
args: [{
|
|
188
|
+
declarations: [
|
|
189
|
+
InputElementComponent,
|
|
190
|
+
SelectElementComponent,
|
|
191
|
+
BooleanElementComponent
|
|
192
|
+
],
|
|
193
|
+
imports: [
|
|
194
|
+
CommonModule,
|
|
195
|
+
FormsModule
|
|
196
|
+
],
|
|
197
|
+
exports: [
|
|
198
|
+
InputElementComponent,
|
|
199
|
+
SelectElementComponent,
|
|
200
|
+
BooleanElementComponent
|
|
201
|
+
]
|
|
202
|
+
}]
|
|
203
|
+
}] });
|
|
204
|
+
|
|
205
|
+
/*
|
|
206
|
+
* Public API Surface of ngx-edyta-fe-elements
|
|
207
|
+
*/
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Generated bundle index. Do not edit.
|
|
211
|
+
*/
|
|
212
|
+
|
|
213
|
+
export { BooleanElementComponent, ElementModule, InputElementComponent, SelectElementComponent };
|
|
214
|
+
//# sourceMappingURL=ngx-edyta-fe-elements.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-edyta-fe-elements.mjs","sources":["../../../projects/ngx-edyta-fe-elements/src/lib/simple/common/basic/basic.component.ts","../../../projects/ngx-edyta-fe-elements/src/lib/simple/input-element/input-element.component.ts","../../../projects/ngx-edyta-fe-elements/src/lib/simple/input-element/input-element.component.html","../../../projects/ngx-edyta-fe-elements/src/lib/simple/select-element/select-element.component.ts","../../../projects/ngx-edyta-fe-elements/src/lib/simple/select-element/select-element.component.html","../../../projects/ngx-edyta-fe-elements/src/lib/simple/boolean-element/boolean-element.component.ts","../../../projects/ngx-edyta-fe-elements/src/lib/simple/boolean-element/boolean-element.component.html","../../../projects/ngx-edyta-fe-elements/src/lib/element.module.ts","../../../projects/ngx-edyta-fe-elements/src/public-api.ts","../../../projects/ngx-edyta-fe-elements/src/ngx-edyta-fe-elements.ts"],"sourcesContent":["import { Component, Input, EventEmitter } from '@angular/core';\n\n@Component({\n template: '',\n standalone: false\n})\nexport class BasicComponent {\n static _dependencies = {\n EventEmitter\n }\n\n private _placeholder: string = '';\n private _label: string = '';\n private _customCssClasses: string[] = [];\n private _defaultCssClasses: string[] = [];\n\n get placeholder(): string {\n return this._placeholder;\n }\n\n @Input() set placeholder(value: string) {\n this._placeholder = value;\n }\n\n get label(): string {\n return this._label;\n }\n\n @Input() set label(value: string) {\n this._label = value;\n }\n\n get customCssClasses(): string[] {\n return this._customCssClasses;\n }\n\n @Input() set customCssClasses(value: string[]) {\n this._customCssClasses = value;\n }\n\n get defaultCssClasses(): string[] {\n return this._defaultCssClasses;\n }\n\n protected set defaultCssClasses(value: string[]) {\n this._defaultCssClasses = value;\n }\n\n getCssClasses(): string[] {\n if (this.customCssClasses.length) {\n return this.customCssClasses;\n }\n\n return this.defaultCssClasses;\n }\n\n}\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { BasicComponent } from '../common/basic/basic.component';\n\n@Component({\n selector: 'edyta-input-element',\n templateUrl: './input-element.component.html',\n styleUrls: ['./input-element.component.less'],\n standalone: false\n})\nexport class InputElementComponent extends BasicComponent implements OnInit {\n\n private _value!: string;\n private _valueChange: EventEmitter<string>;\n private _required = false;\n private _disabled = false;\n\n constructor() {\n super();\n\n this._valueChange = new BasicComponent._dependencies.EventEmitter<string>();\n }\n\n ngOnInit(): void {\n this.defaultCssClasses = ['uk-width-1-1@s', 'uk-width-1-3@m'];\n }\n\n get value() {\n return this._value;\n }\n\n @Input() set value(value) {\n this._value = value;\n }\n\n get valueChange() {\n return this._valueChange;\n }\n\n @Output() set valueChange(value) {\n this._valueChange = value;\n }\n\n @Input() get disabled() {\n return this._disabled;\n }\n\n set disabled(value) {\n this._disabled = value;\n }\n\n /**\n * @see {@link https://angular.io/guide/two-way-binding}\n */\n onChange() {\n this.valueChange.emit(this.value);\n }\n\n}\n","<div class=\"uk-margin\">\n <div class=\"uk-form-label\" *ngIf=\"label\">{{ label }}</div>\n <div class=\"uk-form-controls\">\n <input class=\"uk-input\" [ngClass]=\"getCssClasses()\" type=\"text\" [placeholder]=\"placeholder\" [(ngModel)]=\"value\" (input)=\"onChange()\" [disabled]=\"disabled\" />\n <ng-content select=\"[after-control]\"></ng-content>\n </div>\n</div>\n","import { Component, Input, OnInit } from '@angular/core';\nimport { InputElementComponent } from '../input-element/input-element.component';\n\nexport type SelectElementOption = {\n id: string,\n text: string,\n disabled: boolean\n};\n\n@Component({\n selector: 'edyta-select-element',\n templateUrl: './select-element.component.html',\n styleUrls: ['./select-element.component.less'],\n standalone: false\n})\nexport class SelectElementComponent extends InputElementComponent implements OnInit {\n protected _options: SelectElementOption[] = [];\n\n override ngOnInit(): void {\n this.defaultCssClasses = ['uk-width-1-1@s', 'uk-width-1-3@m', 'uk-width-1-4@l'];\n }\n\n get options(): SelectElementOption[] {\n return this._options;\n }\n\n @Input() set options(value: SelectElementOption[]) {\n this._options = value;\n }\n\n}\n","<div class=\"uk-margin\">\n <div class=\"uk-form-label\" *ngIf=\"label\">{{ label }}</div>\n <div class=\"uk-form-controls\">\n <select class=\"uk-select\" [ngClass]=\"getCssClasses()\" [(ngModel)]=\"value\" (change)=\"onChange()\">\n <option></option>\n <option *ngFor=\"let option of options\" [value]=\"option.id\" [attr.disabled]=\"option.disabled ? 'true': null\">{{ option.text }}</option>\n </select>\n <ng-content select=\"[after-control]\"></ng-content>\n </div>\n</div>\n","import { Component, Input, OnInit } from '@angular/core';\nimport { SelectElementComponent } from '../select-element/select-element.component';\n\n@Component({\n selector: 'edyta-boolean-element',\n templateUrl: './boolean-element.component.html',\n styleUrls: ['./boolean-element.component.less'],\n standalone: false\n})\nexport class BooleanElementComponent extends SelectElementComponent implements OnInit {\n\n private _yesButtonText = 'Yes';\n private _noButtonText = 'No';\n\n constructor() {\n super();\n }\n\n override ngOnInit(): void {\n super.ngOnInit();\n\n this._loadOptions();\n }\n\n @Input() get yesButtonText(): string {\n return this._yesButtonText;\n }\n\n set yesButtonText(value: string) {\n this._yesButtonText = value;\n }\n\n @Input() get noButtonText(): string {\n return this._noButtonText;\n }\n\n set noButtonText(value: string) {\n this._noButtonText = value;\n }\n\n private _loadOptions(): void {\n this.options = [\n { id: 'true', text: this.yesButtonText, disabled: false },\n { id: 'false', text: this.noButtonText, disabled: false }\n ]\n }\n\n}\n","<div>\n <div class=\"uk-form-label\" *ngIf=\"label\">{{ label }}</div>\n <div class=\"uk-form-controls\">\n <button type=\"button\" class=\"uk-button button-no\" (click)=\"value = false.toString(); onChange()\" [ngClass]=\"{ 'uk-button-default': value !== false.toString(), 'uk-button-primary': value === false.toString()}\">{{ noButtonText }}</button>\n <button type=\"button\" class=\"uk-button button-yes\" (click)=\"value = true.toString(); onChange()\" [ngClass]=\"{ 'uk-button-default': value !== true.toString(), 'uk-button-primary': value === true.toString()}\">{{ yesButtonText }}</button>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { InputElementComponent } from './simple/input-element/input-element.component';\nimport { SelectElementComponent } from './simple/select-element/select-element.component';\nimport { BooleanElementComponent } from './simple/boolean-element/boolean-element.component';\nimport { FormsModule } from '@angular/forms';\n\n@NgModule({\n declarations: [\n InputElementComponent,\n SelectElementComponent,\n BooleanElementComponent\n ],\n imports: [\n CommonModule,\n FormsModule\n ],\n exports: [\n InputElementComponent,\n SelectElementComponent,\n BooleanElementComponent\n ]\n})\nexport class ElementModule { }\n","/*\n * Public API Surface of ngx-edyta-fe-elements\n */\n\nexport * from './lib/element.module';\nexport * from './lib/simple/boolean-element/boolean-element.component';\nexport * from './lib/simple/input-element/input-element.component';\nexport * from './lib/simple/select-element/select-element.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAMa,cAAc,CAAA;IACzB,OAAO,aAAa,GAAG;QACrB;KACD;IAEO,YAAY,GAAW,EAAE;IACzB,MAAM,GAAW,EAAE;IACnB,iBAAiB,GAAa,EAAE;IAChC,kBAAkB,GAAa,EAAE;AAEzC,IAAA,IAAI,WAAW,GAAA;QACb,OAAO,IAAI,CAAC,YAAY;;IAG1B,IAAa,WAAW,CAAC,KAAa,EAAA;AACpC,QAAA,IAAI,CAAC,YAAY,GAAG,KAAK;;AAG3B,IAAA,IAAI,KAAK,GAAA;QACP,OAAO,IAAI,CAAC,MAAM;;IAGpB,IAAa,KAAK,CAAC,KAAa,EAAA;AAC9B,QAAA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,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YATtB,YAAY;YACZ,WAAW,CAAA,EAAA,CAAA;;2FAQF,aAAa,EAAA,UAAA,EAAA,CAAA;kBAhBzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,qBAAqB;wBACrB,sBAAsB;wBACtB;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;wBACrB,sBAAsB;wBACtB;AACD;AACF,iBAAA;;;ACtBD;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./simple/input-element/input-element.component";
|
|
3
|
+
import * as i2 from "./simple/select-element/select-element.component";
|
|
4
|
+
import * as i3 from "./simple/boolean-element/boolean-element.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
export declare class ElementModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElementModule, [typeof i1.InputElementComponent, typeof i2.SelectElementComponent, typeof i3.BooleanElementComponent], [typeof i4.CommonModule, typeof i5.FormsModule], [typeof i1.InputElementComponent, typeof i2.SelectElementComponent, typeof i3.BooleanElementComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ElementModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { SelectElementComponent } from '../select-element/select-element.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BooleanElementComponent extends SelectElementComponent implements OnInit {
|
|
5
|
+
private _yesButtonText;
|
|
6
|
+
private _noButtonText;
|
|
7
|
+
constructor();
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
get yesButtonText(): string;
|
|
10
|
+
set yesButtonText(value: string);
|
|
11
|
+
get noButtonText(): string;
|
|
12
|
+
set noButtonText(value: string);
|
|
13
|
+
private _loadOptions;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanElementComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanElementComponent, "edyta-boolean-element", never, { "yesButtonText": { "alias": "yesButtonText"; "required": false; }; "noButtonText": { "alias": "noButtonText"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BasicComponent {
|
|
4
|
+
static _dependencies: {
|
|
5
|
+
EventEmitter: {
|
|
6
|
+
new (isAsync?: boolean): EventEmitter<any>;
|
|
7
|
+
new <T>(isAsync?: boolean): EventEmitter<T>;
|
|
8
|
+
readonly prototype: EventEmitter<any>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
private _placeholder;
|
|
12
|
+
private _label;
|
|
13
|
+
private _customCssClasses;
|
|
14
|
+
private _defaultCssClasses;
|
|
15
|
+
get placeholder(): string;
|
|
16
|
+
set placeholder(value: string);
|
|
17
|
+
get label(): string;
|
|
18
|
+
set label(value: string);
|
|
19
|
+
get customCssClasses(): string[];
|
|
20
|
+
set customCssClasses(value: string[]);
|
|
21
|
+
get defaultCssClasses(): string[];
|
|
22
|
+
protected set defaultCssClasses(value: string[]);
|
|
23
|
+
getCssClasses(): string[];
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasicComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BasicComponent, "ng-component", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "customCssClasses": { "alias": "customCssClasses"; "required": false; }; }, {}, never, never, false, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { BasicComponent } from '../common/basic/basic.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class InputElementComponent extends BasicComponent implements OnInit {
|
|
5
|
+
private _value;
|
|
6
|
+
private _valueChange;
|
|
7
|
+
private _required;
|
|
8
|
+
private _disabled;
|
|
9
|
+
constructor();
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
get value(): string;
|
|
12
|
+
set value(value: string);
|
|
13
|
+
get valueChange(): EventEmitter<string>;
|
|
14
|
+
set valueChange(value: EventEmitter<string>);
|
|
15
|
+
get disabled(): boolean;
|
|
16
|
+
set disabled(value: boolean);
|
|
17
|
+
/**
|
|
18
|
+
* @see {@link https://angular.io/guide/two-way-binding}
|
|
19
|
+
*/
|
|
20
|
+
onChange(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputElementComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputElementComponent, "edyta-input-element", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, ["[after-control]"], false, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { InputElementComponent } from '../input-element/input-element.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type SelectElementOption = {
|
|
5
|
+
id: string;
|
|
6
|
+
text: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare class SelectElementComponent extends InputElementComponent implements OnInit {
|
|
10
|
+
protected _options: SelectElementOption[];
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
get options(): SelectElementOption[];
|
|
13
|
+
set options(value: SelectElementOption[]);
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectElementComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectElementComponent, "edyta-select-element", never, { "options": { "alias": "options"; "required": false; }; }, {}, never, ["[after-control]"], false, never>;
|
|
16
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ngx-edyta-fe-elements",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^19.2.0",
|
|
6
|
+
"@angular/core": "^19.2.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"module": "fesm2022/ngx-edyta-fe-elements.mjs",
|
|
13
|
+
"typings": "index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./index.d.ts",
|
|
20
|
+
"default": "./fesm2022/ngx-edyta-fe-elements.mjs"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
package/public-api.d.ts
ADDED