ngx-edyta-fe-elements 0.0.4 → 0.0.6
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/fesm2022/ngx-edyta-fe-elements.mjs +92 -5
- package/fesm2022/ngx-edyta-fe-elements.mjs.map +1 -1
- package/lib/complex/media-element/media-element-base.component.d.ts +7 -0
- package/lib/complex/media-element/media-element.component.d.ts +6 -0
- package/lib/complex/media-element/type/media-audio-element/media-audio-element.component.d.ts +6 -0
- package/lib/complex/media-element/type/media-video-element/media-video-element.component.d.ts +7 -0
- package/lib/complex/media-element/type/media-youtube-element/media-youtube-element.component.d.ts +17 -0
- package/lib/element.module.d.ts +7 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -4,6 +4,7 @@ import * as i1 from '@angular/common';
|
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i2 from '@angular/forms';
|
|
6
6
|
import { FormsModule } from '@angular/forms';
|
|
7
|
+
import * as i1$1 from '@angular/platform-browser';
|
|
7
8
|
|
|
8
9
|
class BasicComponent {
|
|
9
10
|
static _dependencies = {
|
|
@@ -171,14 +172,95 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
171
172
|
type: Input
|
|
172
173
|
}] } });
|
|
173
174
|
|
|
175
|
+
class MediaElementBaseComponent {
|
|
176
|
+
fileContent = '';
|
|
177
|
+
fileMimeType = '';
|
|
178
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: MediaElementBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
179
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: MediaElementBaseComponent, isStandalone: true, selector: "ng-component", inputs: { fileContent: "fileContent", fileMimeType: "fileMimeType" }, ngImport: i0, template: '', isInline: true });
|
|
180
|
+
}
|
|
181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: MediaElementBaseComponent, decorators: [{
|
|
182
|
+
type: Component,
|
|
183
|
+
args: [{
|
|
184
|
+
template: ''
|
|
185
|
+
}]
|
|
186
|
+
}], propDecorators: { fileContent: [{
|
|
187
|
+
type: Input
|
|
188
|
+
}], fileMimeType: [{
|
|
189
|
+
type: Input
|
|
190
|
+
}] } });
|
|
191
|
+
|
|
192
|
+
class MediaVideoElementComponent extends MediaElementBaseComponent {
|
|
193
|
+
autoplay = false;
|
|
194
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: MediaVideoElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
195
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: MediaVideoElementComponent, isStandalone: false, selector: "edyta-media-video-element", inputs: { autoplay: "autoplay" }, usesInheritance: true, ngImport: i0, template: "<div class=\"media-video-wrapper\">\n <video *ngIf=\"fileContent\" class=\"media-video\" controls controlsList=\"nodownload\" playsinline [attr.uk-video]=\"'autoplay: ' + autoplay\">\n <source [src]=\"fileContent\" [type]=\"fileMimeType\">\n Your browser does not support the video.\n </video>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
196
|
+
}
|
|
197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: MediaVideoElementComponent, decorators: [{
|
|
198
|
+
type: Component,
|
|
199
|
+
args: [{ selector: 'edyta-media-video-element', standalone: false, template: "<div class=\"media-video-wrapper\">\n <video *ngIf=\"fileContent\" class=\"media-video\" controls controlsList=\"nodownload\" playsinline [attr.uk-video]=\"'autoplay: ' + autoplay\">\n <source [src]=\"fileContent\" [type]=\"fileMimeType\">\n Your browser does not support the video.\n </video>\n</div>\n" }]
|
|
200
|
+
}], propDecorators: { autoplay: [{
|
|
201
|
+
type: Input
|
|
202
|
+
}] } });
|
|
203
|
+
|
|
204
|
+
class MediaAudioElementComponent extends MediaVideoElementComponent {
|
|
205
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: MediaAudioElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
206
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: MediaAudioElementComponent, isStandalone: false, selector: "edyta-media-audio-element", usesInheritance: true, ngImport: i0, template: "<div class=\"media-audio-wrapper\">\n <audio *ngIf=\"fileContent\" class=\"media-audio\" controls controlsList=\"nodownload\" playsinline [autoplay]=\"autoplay\">\n <source [src]=\"fileContent\" [type]=\"fileMimeType\">\n Your browser does not support the audio.\n </audio>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
207
|
+
}
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: MediaAudioElementComponent, decorators: [{
|
|
209
|
+
type: Component,
|
|
210
|
+
args: [{ selector: 'edyta-media-audio-element', standalone: false, template: "<div class=\"media-audio-wrapper\">\n <audio *ngIf=\"fileContent\" class=\"media-audio\" controls controlsList=\"nodownload\" playsinline [autoplay]=\"autoplay\">\n <source [src]=\"fileContent\" [type]=\"fileMimeType\">\n Your browser does not support the audio.\n </audio>\n</div>\n" }]
|
|
211
|
+
}] });
|
|
212
|
+
|
|
213
|
+
class MediaYoutubeElementComponent extends MediaElementBaseComponent {
|
|
214
|
+
_sanitizer;
|
|
215
|
+
_youtubeUrl = '';
|
|
216
|
+
constructor(_sanitizer) {
|
|
217
|
+
super();
|
|
218
|
+
this._sanitizer = _sanitizer;
|
|
219
|
+
}
|
|
220
|
+
ngOnInit() {
|
|
221
|
+
if (this.fileContent) {
|
|
222
|
+
this._youtubeUrl = this._buildYoutubeUrl(this.fileContent);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
get youtubeUrl() {
|
|
226
|
+
return this._youtubeUrl;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* @see https://fernandosarachaga.com/en/youtube-how-to-configure-iframe-parameters/
|
|
230
|
+
*/
|
|
231
|
+
_buildYoutubeUrl(youtubeKey) {
|
|
232
|
+
return this._sanitizer.bypassSecurityTrustResourceUrl(`https://www.youtube-nocookie.com/embed/${youtubeKey}?autoplay=0&showinfo=0&rel=0&modestbranding=1&playsinline=1&autohide=1`);
|
|
233
|
+
}
|
|
234
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: MediaYoutubeElementComponent, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
235
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: MediaYoutubeElementComponent, isStandalone: false, selector: "edyta-media-youtube-element", usesInheritance: true, ngImport: i0, template: "<div class=\"media-youtube-wrapper\">\n <iframe class=\"media-youtube\" [src]=\"youtubeUrl\" frameborder=\"0\" allow=\"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture;\" allowfullscreen uk-responsive></iframe>\n</div>\n", styles: [".media-youtube-wrapper{max-width:100%;padding-top:56.25%;position:relative;width:100%}.media-youtube-wrapper iframe.media-youtube{position:absolute;top:0;left:0;width:100%;height:100%}\n"] });
|
|
236
|
+
}
|
|
237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: MediaYoutubeElementComponent, decorators: [{
|
|
238
|
+
type: Component,
|
|
239
|
+
args: [{ selector: 'edyta-media-youtube-element', standalone: false, template: "<div class=\"media-youtube-wrapper\">\n <iframe class=\"media-youtube\" [src]=\"youtubeUrl\" frameborder=\"0\" allow=\"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture;\" allowfullscreen uk-responsive></iframe>\n</div>\n", styles: [".media-youtube-wrapper{max-width:100%;padding-top:56.25%;position:relative;width:100%}.media-youtube-wrapper iframe.media-youtube{position:absolute;top:0;left:0;width:100%;height:100%}\n"] }]
|
|
240
|
+
}], ctorParameters: () => [{ type: i1$1.DomSanitizer }] });
|
|
241
|
+
|
|
242
|
+
class MediaElementComponent extends MediaElementBaseComponent {
|
|
243
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: MediaElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
244
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: MediaElementComponent, isStandalone: false, selector: "edyta-media-element", usesInheritance: true, ngImport: i0, template: "<edyta-media-video-element *ngIf=\"fileMimeType.includes('video')\" [fileContent]=\"fileContent\" [fileMimeType]=\"fileMimeType\"></edyta-media-video-element>\n<edyta-media-audio-element *ngIf=\"fileMimeType.includes('audio')\" [fileContent]=\"fileContent\" [fileMimeType]=\"fileMimeType\"></edyta-media-audio-element>\n<edyta-media-youtube-element *ngIf=\"fileMimeType.includes('youtube')\" [fileContent]=\"fileContent\" [fileMimeType]=\"fileMimeType\"></edyta-media-youtube-element>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MediaAudioElementComponent, selector: "edyta-media-audio-element" }, { kind: "component", type: MediaVideoElementComponent, selector: "edyta-media-video-element", inputs: ["autoplay"] }, { kind: "component", type: MediaYoutubeElementComponent, selector: "edyta-media-youtube-element" }] });
|
|
245
|
+
}
|
|
246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: MediaElementComponent, decorators: [{
|
|
247
|
+
type: Component,
|
|
248
|
+
args: [{ selector: 'edyta-media-element', standalone: false, template: "<edyta-media-video-element *ngIf=\"fileMimeType.includes('video')\" [fileContent]=\"fileContent\" [fileMimeType]=\"fileMimeType\"></edyta-media-video-element>\n<edyta-media-audio-element *ngIf=\"fileMimeType.includes('audio')\" [fileContent]=\"fileContent\" [fileMimeType]=\"fileMimeType\"></edyta-media-audio-element>\n<edyta-media-youtube-element *ngIf=\"fileMimeType.includes('youtube')\" [fileContent]=\"fileContent\" [fileMimeType]=\"fileMimeType\"></edyta-media-youtube-element>\n" }]
|
|
249
|
+
}] });
|
|
250
|
+
|
|
174
251
|
class ElementModule {
|
|
175
252
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ElementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
176
253
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: ElementModule, declarations: [InputElementComponent,
|
|
177
254
|
SelectElementComponent,
|
|
178
|
-
BooleanElementComponent
|
|
255
|
+
BooleanElementComponent,
|
|
256
|
+
MediaElementComponent,
|
|
257
|
+
MediaAudioElementComponent,
|
|
258
|
+
MediaVideoElementComponent,
|
|
259
|
+
MediaYoutubeElementComponent], imports: [CommonModule,
|
|
179
260
|
FormsModule], exports: [InputElementComponent,
|
|
180
261
|
SelectElementComponent,
|
|
181
|
-
BooleanElementComponent
|
|
262
|
+
BooleanElementComponent,
|
|
263
|
+
MediaElementComponent] });
|
|
182
264
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ElementModule, imports: [CommonModule,
|
|
183
265
|
FormsModule] });
|
|
184
266
|
}
|
|
@@ -188,7 +270,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
188
270
|
declarations: [
|
|
189
271
|
InputElementComponent,
|
|
190
272
|
SelectElementComponent,
|
|
191
|
-
BooleanElementComponent
|
|
273
|
+
BooleanElementComponent,
|
|
274
|
+
MediaElementComponent,
|
|
275
|
+
MediaAudioElementComponent,
|
|
276
|
+
MediaVideoElementComponent,
|
|
277
|
+
MediaYoutubeElementComponent
|
|
192
278
|
],
|
|
193
279
|
imports: [
|
|
194
280
|
CommonModule,
|
|
@@ -197,7 +283,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
197
283
|
exports: [
|
|
198
284
|
InputElementComponent,
|
|
199
285
|
SelectElementComponent,
|
|
200
|
-
BooleanElementComponent
|
|
286
|
+
BooleanElementComponent,
|
|
287
|
+
MediaElementComponent
|
|
201
288
|
]
|
|
202
289
|
}]
|
|
203
290
|
}] });
|
|
@@ -210,5 +297,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
210
297
|
* Generated bundle index. Do not edit.
|
|
211
298
|
*/
|
|
212
299
|
|
|
213
|
-
export { BooleanElementComponent, ElementModule, InputElementComponent, SelectElementComponent };
|
|
300
|
+
export { BooleanElementComponent, ElementModule, InputElementComponent, MediaElementComponent, SelectElementComponent };
|
|
214
301
|
//# sourceMappingURL=ngx-edyta-fe-elements.mjs.map
|
|
@@ -1 +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 *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AAA;uGAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,iBAdtB,qBAAqB;YACrB,sBAAsB;AACtB,YAAA,uBAAuB,aAGvB,YAAY;AACZ,YAAA,WAAW,aAGX,qBAAqB;YACrB,sBAAsB;YACtB,uBAAuB,CAAA,EAAA,CAAA;AAGd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,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;;;;"}
|
|
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/complex/media-element/media-element-base.component.ts","../../../projects/ngx-edyta-fe-elements/src/lib/complex/media-element/type/media-video-element/media-video-element.component.ts","../../../projects/ngx-edyta-fe-elements/src/lib/complex/media-element/type/media-video-element/media-video-element.component.html","../../../projects/ngx-edyta-fe-elements/src/lib/complex/media-element/type/media-audio-element/media-audio-element.component.ts","../../../projects/ngx-edyta-fe-elements/src/lib/complex/media-element/type/media-audio-element/media-audio-element.component.html","../../../projects/ngx-edyta-fe-elements/src/lib/complex/media-element/type/media-youtube-element/media-youtube-element.component.ts","../../../projects/ngx-edyta-fe-elements/src/lib/complex/media-element/type/media-youtube-element/media-youtube-element.component.html","../../../projects/ngx-edyta-fe-elements/src/lib/complex/media-element/media-element.component.ts","../../../projects/ngx-edyta-fe-elements/src/lib/complex/media-element/media-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 { Component, Input } from '@angular/core';\n\n@Component({\n template: ''\n})\nexport class MediaElementBaseComponent {\n\n @Input() public fileContent: string = '';\n @Input() public fileMimeType: string = '';\n\n}\n","import { Component, Input } from '@angular/core';\nimport { MediaElementBaseComponent } from '../../media-element-base.component';\n\n@Component({\n selector: 'edyta-media-video-element',\n templateUrl: './media-video-element.component.html',\n styleUrls: ['./media-video-element.component.less'],\n standalone: false\n})\nexport class MediaVideoElementComponent extends MediaElementBaseComponent{\n\n @Input() autoplay = false;\n\n}\n","<div class=\"media-video-wrapper\">\n <video *ngIf=\"fileContent\" class=\"media-video\" controls controlsList=\"nodownload\" playsinline [attr.uk-video]=\"'autoplay: ' + autoplay\">\n <source [src]=\"fileContent\" [type]=\"fileMimeType\">\n Your browser does not support the video.\n </video>\n</div>\n","import { Component } from '@angular/core';\nimport { MediaVideoElementComponent } from '../media-video-element/media-video-element.component';\n\n@Component({\n selector: 'edyta-media-audio-element',\n templateUrl: './media-audio-element.component.html',\n styleUrls: ['./media-audio-element.component.less'],\n standalone: false\n})\nexport class MediaAudioElementComponent extends MediaVideoElementComponent { }\n","<div class=\"media-audio-wrapper\">\n <audio *ngIf=\"fileContent\" class=\"media-audio\" controls controlsList=\"nodownload\" playsinline [autoplay]=\"autoplay\">\n <source [src]=\"fileContent\" [type]=\"fileMimeType\">\n Your browser does not support the audio.\n </audio>\n</div>\n","import { Component, OnInit } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\nimport { MediaElementBaseComponent } from '../../media-element-base.component';\n\n@Component({\n selector: 'edyta-media-youtube-element',\n templateUrl: './media-youtube-element.component.html',\n styleUrls: ['./media-youtube-element.component.less'],\n standalone: false\n})\nexport class MediaYoutubeElementComponent extends MediaElementBaseComponent implements OnInit {\n\n private _youtubeUrl: SafeResourceUrl = '';\n\n constructor(private _sanitizer: DomSanitizer) {\n super();\n }\n\n ngOnInit(): void {\n if (this.fileContent) {\n this._youtubeUrl = this._buildYoutubeUrl(this.fileContent)\n }\n }\n\n get youtubeUrl(): SafeResourceUrl {\n return this._youtubeUrl;\n }\n\n /**\n * @see https://fernandosarachaga.com/en/youtube-how-to-configure-iframe-parameters/\n */\n private _buildYoutubeUrl(youtubeKey: string): SafeResourceUrl {\n return this._sanitizer.bypassSecurityTrustResourceUrl(`https://www.youtube-nocookie.com/embed/${ youtubeKey }?autoplay=0&showinfo=0&rel=0&modestbranding=1&playsinline=1&autohide=1`);\n }\n\n}\n","<div class=\"media-youtube-wrapper\">\n <iframe class=\"media-youtube\" [src]=\"youtubeUrl\" frameborder=\"0\" allow=\"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture;\" allowfullscreen uk-responsive></iframe>\n</div>\n","import { Component } from '@angular/core';\nimport { MediaElementBaseComponent } from './media-element-base.component';\n\n@Component({\n selector: 'edyta-media-element',\n templateUrl: './media-element.component.html',\n styleUrls: ['./media-element.component.less'],\n standalone: false\n})\nexport class MediaElementComponent extends MediaElementBaseComponent { }\n","<edyta-media-video-element *ngIf=\"fileMimeType.includes('video')\" [fileContent]=\"fileContent\" [fileMimeType]=\"fileMimeType\"></edyta-media-video-element>\n<edyta-media-audio-element *ngIf=\"fileMimeType.includes('audio')\" [fileContent]=\"fileContent\" [fileMimeType]=\"fileMimeType\"></edyta-media-audio-element>\n<edyta-media-youtube-element *ngIf=\"fileMimeType.includes('youtube')\" [fileContent]=\"fileContent\" [fileMimeType]=\"fileMimeType\"></edyta-media-youtube-element>\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';\nimport { MediaElementComponent } from './complex/media-element/media-element.component';\nimport { MediaAudioElementComponent } from './complex/media-element/type/media-audio-element/media-audio-element.component';\nimport { MediaVideoElementComponent } from './complex/media-element/type/media-video-element/media-video-element.component';\nimport { MediaYoutubeElementComponent } from './complex/media-element/type/media-youtube-element/media-youtube-element.component';\n\n@NgModule({\n declarations: [\n InputElementComponent,\n SelectElementComponent,\n BooleanElementComponent,\n MediaElementComponent,\n MediaAudioElementComponent,\n MediaVideoElementComponent,\n MediaYoutubeElementComponent\n ],\n imports: [\n CommonModule,\n FormsModule\n ],\n exports: [\n InputElementComponent,\n SelectElementComponent,\n BooleanElementComponent,\n MediaElementComponent\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';\nexport * from './lib/complex/media-element/media-element.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2.MediaAudioElementComponent","i3.MediaVideoElementComponent","i4.MediaYoutubeElementComponent"],"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,IAAI,CAAC,MAAM,GAAG,KAAK;;AAGrB,IAAA,IAAI,gBAAgB,GAAA;QAClB,OAAO,IAAI,CAAC,iBAAiB;;IAG/B,IAAa,gBAAgB,CAAC,KAAe,EAAA;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Aa,iBAnBtB,qBAAqB;YACrB,sBAAsB;YACtB,uBAAuB;YACvB,qBAAqB;YACrB,0BAA0B;YAC1B,0BAA0B;AAC1B,YAAA,4BAA4B,aAG5B,YAAY;AACZ,YAAA,WAAW,aAGX,qBAAqB;YACrB,sBAAsB;YACtB,uBAAuB;YACvB,qBAAqB,CAAA,EAAA,CAAA;AAGZ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YAVtB,YAAY;YACZ,WAAW,CAAA,EAAA,CAAA;;2FASF,aAAa,EAAA,UAAA,EAAA,CAAA;kBArBzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,qBAAqB;wBACrB,sBAAsB;wBACtB,uBAAuB;wBACvB,qBAAqB;wBACrB,0BAA0B;wBAC1B,0BAA0B;wBAC1B;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;wBACrB,sBAAsB;wBACtB,uBAAuB;wBACvB;AACD;AACF,iBAAA;;;AC/BD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class MediaElementBaseComponent {
|
|
3
|
+
fileContent: string;
|
|
4
|
+
fileMimeType: string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaElementBaseComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MediaElementBaseComponent, "ng-component", never, { "fileContent": { "alias": "fileContent"; "required": false; }; "fileMimeType": { "alias": "fileMimeType"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MediaElementBaseComponent } from './media-element-base.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MediaElementComponent extends MediaElementBaseComponent {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaElementComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MediaElementComponent, "edyta-media-element", never, {}, {}, never, never, false, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MediaVideoElementComponent } from '../media-video-element/media-video-element.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MediaAudioElementComponent extends MediaVideoElementComponent {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaAudioElementComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MediaAudioElementComponent, "edyta-media-audio-element", never, {}, {}, never, never, false, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MediaElementBaseComponent } from '../../media-element-base.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MediaVideoElementComponent extends MediaElementBaseComponent {
|
|
4
|
+
autoplay: boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaVideoElementComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MediaVideoElementComponent, "edyta-media-video-element", never, { "autoplay": { "alias": "autoplay"; "required": false; }; }, {}, never, never, false, never>;
|
|
7
|
+
}
|
package/lib/complex/media-element/type/media-youtube-element/media-youtube-element.component.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
3
|
+
import { MediaElementBaseComponent } from '../../media-element-base.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MediaYoutubeElementComponent extends MediaElementBaseComponent implements OnInit {
|
|
6
|
+
private _sanitizer;
|
|
7
|
+
private _youtubeUrl;
|
|
8
|
+
constructor(_sanitizer: DomSanitizer);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
get youtubeUrl(): SafeResourceUrl;
|
|
11
|
+
/**
|
|
12
|
+
* @see https://fernandosarachaga.com/en/youtube-how-to-configure-iframe-parameters/
|
|
13
|
+
*/
|
|
14
|
+
private _buildYoutubeUrl;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaYoutubeElementComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MediaYoutubeElementComponent, "edyta-media-youtube-element", never, {}, {}, never, never, false, never>;
|
|
17
|
+
}
|
package/lib/element.module.d.ts
CHANGED
|
@@ -2,10 +2,14 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./simple/input-element/input-element.component";
|
|
3
3
|
import * as i2 from "./simple/select-element/select-element.component";
|
|
4
4
|
import * as i3 from "./simple/boolean-element/boolean-element.component";
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
5
|
+
import * as i4 from "./complex/media-element/media-element.component";
|
|
6
|
+
import * as i5 from "./complex/media-element/type/media-audio-element/media-audio-element.component";
|
|
7
|
+
import * as i6 from "./complex/media-element/type/media-video-element/media-video-element.component";
|
|
8
|
+
import * as i7 from "./complex/media-element/type/media-youtube-element/media-youtube-element.component";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
10
|
+
import * as i9 from "@angular/forms";
|
|
7
11
|
export declare class ElementModule {
|
|
8
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElementModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ElementModule, [typeof i1.InputElementComponent, typeof i2.SelectElementComponent, typeof i3.BooleanElementComponent], [typeof
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElementModule, [typeof i1.InputElementComponent, typeof i2.SelectElementComponent, typeof i3.BooleanElementComponent, typeof i4.MediaElementComponent, typeof i5.MediaAudioElementComponent, typeof i6.MediaVideoElementComponent, typeof i7.MediaYoutubeElementComponent], [typeof i8.CommonModule, typeof i9.FormsModule], [typeof i1.InputElementComponent, typeof i2.SelectElementComponent, typeof i3.BooleanElementComponent, typeof i4.MediaElementComponent]>;
|
|
10
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<ElementModule>;
|
|
11
15
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export * from './lib/element.module';
|
|
|
2
2
|
export * from './lib/simple/boolean-element/boolean-element.component';
|
|
3
3
|
export * from './lib/simple/input-element/input-element.component';
|
|
4
4
|
export * from './lib/simple/select-element/select-element.component';
|
|
5
|
+
export * from './lib/complex/media-element/media-element.component';
|