@simpleangularcontrols/sac-bootstrap4 13.0.0-rc.2 → 13.0.0-rc.3
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/controls/checkbox/checkbox.d.ts +5 -5
- package/controls/checkbox/checkbox.d.ts.map +1 -1
- package/controls/checkbox/checkbox.module.d.ts +2 -1
- package/controls/checkbox/checkbox.module.d.ts.map +1 -1
- package/controls/checkbox/radiobuttons.d.ts +5 -5
- package/controls/checkbox/radiobuttons.d.ts.map +1 -1
- package/controls/contextmenu/contextmenu.d.ts +6 -6
- package/controls/contextmenu/contextmenu.d.ts.map +1 -1
- package/controls/contextmenu/contextmenuanchor.d.ts +2 -2
- package/controls/contextmenu/contextmenuanchor.d.ts.map +1 -1
- package/controls/contextmenu/contextmenucontainer.d.ts +2 -2
- package/controls/contextmenu/contextmenucontainer.d.ts.map +1 -1
- package/controls/datetime/date.d.ts +6 -6
- package/controls/datetime/date.d.ts.map +1 -1
- package/controls/datetime/datetime.d.ts +6 -6
- package/controls/datetime/datetime.d.ts.map +1 -1
- package/controls/datetime/datetime.module.d.ts +2 -1
- package/controls/datetime/datetime.module.d.ts.map +1 -1
- package/controls/datetime/time.d.ts +6 -6
- package/controls/datetime/time.d.ts.map +1 -1
- package/controls/form/form.d.ts +0 -8
- package/controls/form/form.d.ts.map +1 -1
- package/controls/form/form.module.d.ts.map +1 -1
- package/controls/input/input.d.ts +5 -5
- package/controls/input/input.d.ts.map +1 -1
- package/controls/input/input.module.d.ts +2 -1
- package/controls/input/input.module.d.ts.map +1 -1
- package/controls/input/inputarea.d.ts +5 -5
- package/controls/input/inputarea.d.ts.map +1 -1
- package/controls/input/inputcurrency.d.ts +5 -5
- package/controls/input/inputcurrency.d.ts.map +1 -1
- package/controls/input/inputdecimal.d.ts +5 -5
- package/controls/input/inputdecimal.d.ts.map +1 -1
- package/controls/input/inputemail.d.ts +5 -5
- package/controls/input/inputemail.d.ts.map +1 -1
- package/controls/input/inputinteger.d.ts +5 -5
- package/controls/input/inputinteger.d.ts.map +1 -1
- package/controls/input/inputpassword.d.ts +5 -5
- package/controls/input/inputpassword.d.ts.map +1 -1
- package/controls/input/inputsearch.d.ts +5 -5
- package/controls/input/inputsearch.d.ts.map +1 -1
- package/controls/layout/formlayout.directive.d.ts +7 -0
- package/controls/layout/formlayout.directive.d.ts.map +1 -0
- package/controls/layout/formlayout.directive.ngfactory.d.ts +4 -0
- package/controls/layout/formlayout.directive.ngfactory.d.ts.map +1 -0
- package/controls/layout/formlayout.directive.ngsummary.d.ts +2 -0
- package/controls/layout/formlayout.directive.ngsummary.d.ts.map +1 -0
- package/controls/layout/layout.module.d.ts +11 -0
- package/controls/layout/layout.module.d.ts.map +1 -0
- package/controls/layout/layout.module.ngfactory.d.ts +4 -0
- package/controls/layout/layout.module.ngfactory.d.ts.map +1 -0
- package/controls/layout/layout.module.ngsummary.d.ts +2 -0
- package/controls/layout/layout.module.ngsummary.d.ts.map +1 -0
- package/controls/layout/tocontrolwidthcss.pipe.d.ts +20 -0
- package/controls/layout/tocontrolwidthcss.pipe.d.ts.map +1 -0
- package/controls/layout/tocontrolwidthcss.pipe.ngfactory.d.ts +4 -0
- package/controls/layout/tocontrolwidthcss.pipe.ngfactory.d.ts.map +1 -0
- package/controls/layout/tocontrolwidthcss.pipe.ngsummary.d.ts +2 -0
- package/controls/layout/tocontrolwidthcss.pipe.ngsummary.d.ts.map +1 -0
- package/controls/layout/tolabelwidthcss.pipe.d.ts +14 -0
- package/controls/layout/tolabelwidthcss.pipe.d.ts.map +1 -0
- package/controls/layout/tolabelwidthcss.pipe.ngfactory.d.ts +4 -0
- package/controls/layout/tolabelwidthcss.pipe.ngfactory.d.ts.map +1 -0
- package/controls/layout/tolabelwidthcss.pipe.ngsummary.d.ts +2 -0
- package/controls/layout/tolabelwidthcss.pipe.ngsummary.d.ts.map +1 -0
- package/controls/list/dropdown.d.ts +10 -10
- package/controls/list/dropdown.d.ts.map +1 -1
- package/controls/list/dropdown.module.d.ts +2 -1
- package/controls/list/dropdown.module.d.ts.map +1 -1
- package/controls/list/list.module.d.ts +2 -1
- package/controls/list/list.module.d.ts.map +1 -1
- package/controls/list/listbox.d.ts +9 -9
- package/controls/list/listbox.d.ts.map +1 -1
- package/controls/multilanguage/multilanguage.module.d.ts +2 -1
- package/controls/multilanguage/multilanguage.module.d.ts.map +1 -1
- package/controls/multilanguage/multilanguageinput.d.ts +5 -5
- package/controls/multilanguage/multilanguageinput.d.ts.map +1 -1
- package/controls/multilanguage/multilanguageinputarea.d.ts +5 -5
- package/controls/multilanguage/multilanguageinputarea.d.ts.map +1 -1
- package/controls/multilanguage/multilanguagemenu.d.ts +6 -6
- package/controls/multilanguage/multilanguagemenu.d.ts.map +1 -1
- package/controls/multilanguage/multilanguagemenuanchor.d.ts +2 -2
- package/controls/multilanguage/multilanguagemenuanchor.d.ts.map +1 -1
- package/controls/multilanguage/multilanguagemenucontainer.d.ts +2 -2
- package/controls/multilanguage/multilanguagemenucontainer.d.ts.map +1 -1
- package/controls/static/formcontainer.d.ts +5 -5
- package/controls/static/formcontainer.d.ts.map +1 -1
- package/controls/static/staticlabel.d.ts +5 -5
- package/controls/static/staticlabel.d.ts.map +1 -1
- package/controls/static/staticlabel.module.d.ts +2 -1
- package/controls/static/staticlabel.module.d.ts.map +1 -1
- package/controls/tinymce/tinymce.d.ts +6 -6
- package/controls/tinymce/tinymce.d.ts.map +1 -1
- package/controls/tinymce/tinymce.module.d.ts +5 -4
- package/controls/tinymce/tinymce.module.d.ts.map +1 -1
- package/controls/upload/dropzonemultiple.d.ts +7 -7
- package/controls/upload/dropzonemultiple.d.ts.map +1 -1
- package/controls/upload/dropzonesingle.d.ts +7 -7
- package/controls/upload/dropzonesingle.d.ts.map +1 -1
- package/controls/upload/upload.d.ts +7 -7
- package/controls/upload/upload.d.ts.map +1 -1
- package/controls/upload/upload.module.d.ts +2 -1
- package/controls/upload/upload.module.d.ts.map +1 -1
- package/controls/upload/uploadmultiple.d.ts +7 -7
- package/controls/upload/uploadmultiple.d.ts.map +1 -1
- package/controls/validation/validationsummary.d.ts +4 -4
- package/controls/validation/validationsummary.d.ts.map +1 -1
- package/esm2020/controls/checkbox/checkbox.mjs +15 -17
- package/esm2020/controls/checkbox/checkbox.module.mjs +19 -10
- package/esm2020/controls/checkbox/radiobuttons.mjs +15 -17
- package/esm2020/controls/contextmenu/contextmenu.mjs +9 -8
- package/esm2020/controls/contextmenu/contextmenuanchor.mjs +5 -4
- package/esm2020/controls/contextmenu/contextmenucontainer.mjs +5 -4
- package/esm2020/controls/datetime/date.mjs +17 -19
- package/esm2020/controls/datetime/datetime.mjs +16 -18
- package/esm2020/controls/datetime/datetime.module.mjs +25 -12
- package/esm2020/controls/datetime/time.mjs +17 -19
- package/esm2020/controls/form/form.mjs +3 -17
- package/esm2020/controls/form/form.module.mjs +5 -14
- package/esm2020/controls/input/input.mjs +15 -13
- package/esm2020/controls/input/input.module.mjs +40 -11
- package/esm2020/controls/input/inputarea.mjs +15 -17
- package/esm2020/controls/input/inputcurrency.mjs +15 -17
- package/esm2020/controls/input/inputdecimal.mjs +15 -17
- package/esm2020/controls/input/inputemail.mjs +15 -17
- package/esm2020/controls/input/inputinteger.mjs +15 -17
- package/esm2020/controls/input/inputpassword.mjs +15 -17
- package/esm2020/controls/input/inputsearch.mjs +14 -11
- package/esm2020/controls/layout/formlayout.directive.mjs +14 -0
- package/esm2020/controls/layout/formlayout.directive.ngfactory.mjs +4 -0
- package/esm2020/controls/layout/formlayout.directive.ngsummary.mjs +2 -0
- package/esm2020/controls/layout/layout.module.mjs +32 -0
- package/esm2020/controls/layout/layout.module.ngfactory.mjs +4 -0
- package/esm2020/controls/layout/layout.module.ngsummary.mjs +2 -0
- package/esm2020/controls/layout/tocontrolwidthcss.pipe.mjs +54 -0
- package/esm2020/controls/layout/tocontrolwidthcss.pipe.ngfactory.mjs +4 -0
- package/esm2020/controls/layout/tocontrolwidthcss.pipe.ngsummary.mjs +2 -0
- package/esm2020/controls/layout/tolabelwidthcss.pipe.mjs +38 -0
- package/esm2020/controls/layout/tolabelwidthcss.pipe.ngfactory.mjs +4 -0
- package/esm2020/controls/layout/tolabelwidthcss.pipe.ngsummary.mjs +2 -0
- package/esm2020/controls/list/dropdown.mjs +22 -17
- package/esm2020/controls/list/dropdown.module.mjs +8 -15
- package/esm2020/controls/list/list.module.mjs +6 -5
- package/esm2020/controls/list/listbox.mjs +22 -22
- package/esm2020/controls/multilanguage/multilanguage.module.mjs +5 -4
- package/esm2020/controls/multilanguage/multilanguageinput.mjs +17 -17
- package/esm2020/controls/multilanguage/multilanguageinputarea.mjs +17 -17
- package/esm2020/controls/multilanguage/multilanguagemenu.mjs +9 -8
- package/esm2020/controls/multilanguage/multilanguagemenuanchor.mjs +5 -4
- package/esm2020/controls/multilanguage/multilanguagemenucontainer.mjs +5 -4
- package/esm2020/controls/static/formcontainer.mjs +16 -13
- package/esm2020/controls/static/staticlabel.mjs +14 -11
- package/esm2020/controls/static/staticlabel.module.mjs +8 -11
- package/esm2020/controls/tinymce/tinymce.mjs +18 -14
- package/esm2020/controls/tinymce/tinymce.module.mjs +9 -5
- package/esm2020/controls/upload/dropzonemultiple.mjs +18 -13
- package/esm2020/controls/upload/dropzonesingle.mjs +18 -13
- package/esm2020/controls/upload/upload.mjs +26 -15
- package/esm2020/controls/upload/upload.module.mjs +5 -4
- package/esm2020/controls/upload/uploadmultiple.mjs +16 -13
- package/esm2020/controls/validation/validationsummary.mjs +9 -13
- package/esm2020/public_api.mjs +30 -26
- package/fesm2015/simpleangularcontrols-sac-bootstrap4.mjs +661 -527
- package/fesm2015/simpleangularcontrols-sac-bootstrap4.mjs.map +1 -1
- package/fesm2020/simpleangularcontrols-sac-bootstrap4.mjs +661 -527
- package/fesm2020/simpleangularcontrols-sac-bootstrap4.mjs.map +1 -1
- package/package.json +2 -2
- package/public_api.d.ts +29 -25
- package/public_api.d.ts.map +1 -1
- package/simpleangularcontrols-sac-bootstrap4-13.0.0-rc.3.tgz +0 -0
- package/simpleangularcontrols-sac-bootstrap4-13.0.0-rc.2.tgz +0 -0
|
@@ -3,15 +3,15 @@ import { CommonModule, DOCUMENT } from '@angular/common';
|
|
|
3
3
|
import * as i1$1 from '@angular/common/http';
|
|
4
4
|
import { HttpClientModule } from '@angular/common/http';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { Component, ComponentFactoryResolver, Injectable, Inject, NgModule, forwardRef, Directive, HostBinding, SkipSelf, Host, Optional, ViewChild, TemplateRef, ContentChild, ContentChildren } from '@angular/core';
|
|
6
|
+
import { Component, ComponentFactoryResolver, Injectable, Inject, NgModule, forwardRef, Directive, HostBinding, SkipSelf, Pipe, Host, Optional, ViewChild, TemplateRef, ContentChild, ContentChildren } from '@angular/core';
|
|
7
7
|
import * as i9 from '@angular/forms';
|
|
8
8
|
import { ControlContainer, NgForm, FormsModule, NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
|
9
9
|
import * as i1 from '@simpleangularcontrols/sac-common';
|
|
10
|
-
import { SacDialogCommon, SacButtonCommon, SacConfirmCommon, ServiceConfirmCommon, isDefined, SacConfirmButton, SacContextMenuContrainerCommon, SacContextmenuAnchorCommon, SacContextmenuCommon, SacContextmenuItemButtonCommon, SacContextmenuItemCommon, SacFormCommon, SacDropzoneMultipleCommon, SacDropzoneSingleCommon, SacUploadSingleCommon, SacUploadMultipleCommon, SacFileBrowserCommon, SacCheckboxCommon, SacRadiobuttonsCommon, SacRadiobuttonCommon, SacDateSelectorCommon, SacDateCommon, SacDateTimeCommon, SacTimeCommon, SacPagingCommon, SacGridCommon, SacGridButtonCommon, SacGridColumnCommon, SacGridColumnBaseCommon, SacGridColumnActionCommon, SacGridImageCommon, SacInputCommon,
|
|
10
|
+
import { SacDialogCommon, SacButtonCommon, SacConfirmCommon, ServiceConfirmCommon, isDefined, SacConfirmButton, SacContextMenuContrainerCommon, SacContextmenuAnchorCommon, SacContextmenuCommon, SacContextmenuItemButtonCommon, SacContextmenuItemCommon, SacFormCommon, SacFormLayoutCommon, SacDropzoneMultipleCommon, SacDropzoneSingleCommon, SacUploadSingleCommon, SacUploadMultipleCommon, SacFileBrowserCommon, SacCheckboxCommon, SacRadiobuttonsCommon, SacRadiobuttonCommon, SacDateSelectorCommon, SacDateCommon, SacDateTimeCommon, SacTimeCommon, SacPagingCommon, SacGridCommon, SacGridButtonCommon, SacGridColumnCommon, SacGridColumnBaseCommon, SacGridColumnActionCommon, SacGridImageCommon, SacInputCommon, SacInputAreaCommon, SacInputCurrencyCommon, SacInputDecimalCommon, SacInputEmailCommon, SacInputIntegerCommon, SacInputPasswordCommon, SacInputSearchCommon, SacDropdownCommon, SacDropdownOptionCommon, SacListboxCommon, SacListboxOptionCommon, SacMultilanguageInputCommon, IconType, SacMultilanguageInputAreaCommon, SacStaticFormContainerCommon, SacStaticLabelCommon, SacTabItemCommon, SacTabCommon, SacTinyMceCommon, SacValidationSummaryCommon, SacWizardItemCommon, SacWizardCommon } from '@simpleangularcontrols/sac-common';
|
|
11
11
|
import { Observable, forkJoin } from 'rxjs';
|
|
12
|
-
import * as moment_ from 'moment';
|
|
13
12
|
import * as i4 from 'angular-imask';
|
|
14
13
|
import { IMaskModule } from 'angular-imask';
|
|
14
|
+
import * as moment_ from 'moment';
|
|
15
15
|
import * as i2$1 from '@tinymce/tinymce-angular';
|
|
16
16
|
import { EditorModule } from '@tinymce/tinymce-angular';
|
|
17
17
|
|
|
@@ -229,12 +229,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
229
229
|
* Marker Komponente für Context Menü
|
|
230
230
|
*/
|
|
231
231
|
class SacContextmenuContainerDirective extends SacContextMenuContrainerCommon {
|
|
232
|
+
// #region Constructors
|
|
232
233
|
/**
|
|
233
234
|
* Konstruktor
|
|
234
|
-
* @param
|
|
235
|
+
* @param elementRef Referenz auf DOM Element
|
|
235
236
|
*/
|
|
236
|
-
constructor(
|
|
237
|
-
super(
|
|
237
|
+
constructor(elementRef) {
|
|
238
|
+
super(elementRef);
|
|
238
239
|
}
|
|
239
240
|
}
|
|
240
241
|
SacContextmenuContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacContextmenuContainerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -261,12 +262,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
261
262
|
* Anker Komponente für Context Menü. Wird zum positionieren des Context Menü in der Page benötigt.
|
|
262
263
|
*/
|
|
263
264
|
class SacContextmenuAnchorDirective extends SacContextmenuAnchorCommon {
|
|
265
|
+
// #region Constructors
|
|
264
266
|
/**
|
|
265
267
|
* Konstruktor
|
|
266
|
-
* @param
|
|
268
|
+
* @param elementRef HTML DOM Referenz
|
|
267
269
|
*/
|
|
268
|
-
constructor(
|
|
269
|
-
super(
|
|
270
|
+
constructor(elementRef) {
|
|
271
|
+
super(elementRef);
|
|
270
272
|
}
|
|
271
273
|
}
|
|
272
274
|
SacContextmenuAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacContextmenuAnchorDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -293,16 +295,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
293
295
|
* Component für Contextmenü
|
|
294
296
|
*/
|
|
295
297
|
class SacContextmenuComponent extends SacContextmenuCommon {
|
|
298
|
+
// #region Constructors
|
|
296
299
|
/**
|
|
297
300
|
* Constructor
|
|
298
|
-
* @param
|
|
299
|
-
* @param
|
|
300
|
-
* @param
|
|
301
|
-
* @param
|
|
302
|
-
* @param
|
|
301
|
+
* @param document Referenz auf HTML Document
|
|
302
|
+
* @param ngZone Angular Zone Service
|
|
303
|
+
* @param elementRef Referenz auf HTML Element der aktuellen Komponente
|
|
304
|
+
* @param renderer Render Service von Angular
|
|
305
|
+
* @param injector injector to resolve services
|
|
303
306
|
*/
|
|
304
|
-
constructor(
|
|
305
|
-
super(
|
|
307
|
+
constructor(document, ngZone, elementRef, renderer, injector) {
|
|
308
|
+
super(document, ngZone, elementRef, renderer, injector);
|
|
306
309
|
}
|
|
307
310
|
}
|
|
308
311
|
SacContextmenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacContextmenuComponent, deps: [{ token: DOCUMENT }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -412,32 +415,18 @@ class SacFormDirective extends SacFormCommon {
|
|
|
412
415
|
*/
|
|
413
416
|
this.cssClassForm = true;
|
|
414
417
|
}
|
|
415
|
-
/**
|
|
416
|
-
* Setzt die CSS Klasse 'form-horizontal' wenn die Orientation auf Horizontal eingestellt ist
|
|
417
|
-
*/
|
|
418
|
-
get orientientationHorizontal() { return this.getOrientation() === 'horizontal'; }
|
|
419
|
-
/**
|
|
420
|
-
* Setzt die CSS Klasse 'form-vertical' wenn die Orientation auf Vertical eingestellt ist
|
|
421
|
-
*/
|
|
422
|
-
get orientientationVertical() { return this.getOrientation() === 'vertical'; }
|
|
423
418
|
}
|
|
424
419
|
SacFormDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacFormDirective, deps: [{ token: i9.NgForm }], target: i0.ɵɵFactoryTarget.Directive });
|
|
425
|
-
SacFormDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: SacFormDirective, selector: "form:not([ngNoForm]):not([formGroup]),[ngForm]", host: { properties: { "class.form": "this.cssClassForm"
|
|
420
|
+
SacFormDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: SacFormDirective, selector: "form:not([ngNoForm]):not([formGroup]),[ngForm]", host: { properties: { "class.form": "this.cssClassForm" } }, exportAs: ["sacform"], usesInheritance: true, ngImport: i0 });
|
|
426
421
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacFormDirective, decorators: [{
|
|
427
422
|
type: Directive,
|
|
428
423
|
args: [{
|
|
429
424
|
selector: 'form:not([ngNoForm]):not([formGroup]),[ngForm]',
|
|
430
|
-
exportAs: 'sacform'
|
|
425
|
+
exportAs: 'sacform',
|
|
431
426
|
}]
|
|
432
427
|
}], ctorParameters: function () { return [{ type: i9.NgForm }]; }, propDecorators: { cssClassForm: [{
|
|
433
428
|
type: HostBinding,
|
|
434
429
|
args: ['class.form']
|
|
435
|
-
}], orientientationHorizontal: [{
|
|
436
|
-
type: HostBinding,
|
|
437
|
-
args: ['class.form-horizontal']
|
|
438
|
-
}], orientientationVertical: [{
|
|
439
|
-
type: HostBinding,
|
|
440
|
-
args: ['class.form-vertical']
|
|
441
430
|
}] } });
|
|
442
431
|
|
|
443
432
|
/**
|
|
@@ -522,23 +511,139 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
522
511
|
class SACBootstrap4FormModule {
|
|
523
512
|
}
|
|
524
513
|
SACBootstrap4FormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
525
|
-
SACBootstrap4FormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4FormModule, declarations: [SacFormDirective, SacInheritFormDirective], imports: [CommonModule,
|
|
526
|
-
|
|
527
|
-
SACBootstrap4FormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4FormModule, imports: [[
|
|
528
|
-
CommonModule,
|
|
529
|
-
FormsModule
|
|
530
|
-
]] });
|
|
514
|
+
SACBootstrap4FormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4FormModule, declarations: [SacFormDirective, SacInheritFormDirective], imports: [CommonModule, FormsModule], exports: [SacFormDirective, SacInheritFormDirective] });
|
|
515
|
+
SACBootstrap4FormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4FormModule, imports: [[CommonModule, FormsModule]] });
|
|
531
516
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4FormModule, decorators: [{
|
|
532
517
|
type: NgModule,
|
|
533
518
|
args: [{
|
|
534
519
|
declarations: [SacFormDirective, SacInheritFormDirective],
|
|
535
|
-
imports: [
|
|
536
|
-
|
|
537
|
-
|
|
520
|
+
imports: [CommonModule, FormsModule],
|
|
521
|
+
exports: [SacFormDirective, SacInheritFormDirective],
|
|
522
|
+
}]
|
|
523
|
+
}] });
|
|
524
|
+
|
|
525
|
+
class SacFormLayoutDirective extends SacFormLayoutCommon {
|
|
526
|
+
}
|
|
527
|
+
SacFormLayoutDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacFormLayoutDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
528
|
+
SacFormLayoutDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: SacFormLayoutDirective, selector: "[sacFormLayout]", usesInheritance: true, ngImport: i0 });
|
|
529
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacFormLayoutDirective, decorators: [{
|
|
530
|
+
type: Directive,
|
|
531
|
+
args: [{
|
|
532
|
+
selector: '[sacFormLayout]',
|
|
533
|
+
}]
|
|
534
|
+
}] });
|
|
535
|
+
|
|
536
|
+
class SacToControlWidthCssPipe {
|
|
537
|
+
// #region Public Methods
|
|
538
|
+
/**
|
|
539
|
+
* Get CSS classes from label width configuration to set control size
|
|
540
|
+
* @param value Configuration with grid columns for different viewports
|
|
541
|
+
* @returns string with css classe for bootstrap3
|
|
542
|
+
*/
|
|
543
|
+
transform(value) {
|
|
544
|
+
const classes = [];
|
|
545
|
+
if (value.labelSizeXs) {
|
|
546
|
+
classes.push('col-' + this.calcControlSize(value.labelSizeXs));
|
|
547
|
+
}
|
|
548
|
+
if (value.labelSizeSm) {
|
|
549
|
+
classes.push('col-sm-' + this.calcControlSize(value.labelSizeSm));
|
|
550
|
+
}
|
|
551
|
+
if (value.labelSizeMd) {
|
|
552
|
+
classes.push('col-md-' + this.calcControlSize(value.labelSizeMd));
|
|
553
|
+
}
|
|
554
|
+
if (value.labelSizeLg) {
|
|
555
|
+
classes.push('col-lg-' + this.calcControlSize(value.labelSizeLg));
|
|
556
|
+
}
|
|
557
|
+
if (value.labelSizeXl) {
|
|
558
|
+
classes.push('col-xl-' + this.calcControlSize(value.labelSizeXl));
|
|
559
|
+
}
|
|
560
|
+
return classes.join(' ');
|
|
561
|
+
}
|
|
562
|
+
// #endregion Public Methods
|
|
563
|
+
// #region Private Methods
|
|
564
|
+
/**
|
|
565
|
+
* calculate the control size
|
|
566
|
+
* @param labelsize grid size of label
|
|
567
|
+
* @returns grid size for control. should be between 1 and 12
|
|
568
|
+
*/
|
|
569
|
+
calcControlSize(labelsize) {
|
|
570
|
+
if (labelsize === 12) {
|
|
571
|
+
return 12;
|
|
572
|
+
}
|
|
573
|
+
if (!labelsize) {
|
|
574
|
+
return 12;
|
|
575
|
+
}
|
|
576
|
+
return 12 - labelsize;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
SacToControlWidthCssPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacToControlWidthCssPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
580
|
+
SacToControlWidthCssPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacToControlWidthCssPipe, name: "toControlWidthCss" });
|
|
581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacToControlWidthCssPipe, decorators: [{
|
|
582
|
+
type: Pipe,
|
|
583
|
+
args: [{
|
|
584
|
+
name: 'toControlWidthCss',
|
|
585
|
+
}]
|
|
586
|
+
}] });
|
|
587
|
+
|
|
588
|
+
class SacToLabelWidthCssPipe {
|
|
589
|
+
// #region Public Methods
|
|
590
|
+
/**
|
|
591
|
+
* Get CSS classes from label width configuration to set label size
|
|
592
|
+
* @param value Configuration with grid columns for different viewports
|
|
593
|
+
* @returns string with css classe for bootstrap3
|
|
594
|
+
*/
|
|
595
|
+
transform(value) {
|
|
596
|
+
const classes = [];
|
|
597
|
+
if (value.labelSizeXs) {
|
|
598
|
+
classes.push('col-' + value.labelSizeXs);
|
|
599
|
+
}
|
|
600
|
+
if (value.labelSizeSm) {
|
|
601
|
+
classes.push('col-sm-' + value.labelSizeSm);
|
|
602
|
+
}
|
|
603
|
+
if (value.labelSizeMd) {
|
|
604
|
+
classes.push('col-md-' + value.labelSizeMd);
|
|
605
|
+
}
|
|
606
|
+
if (value.labelSizeLg) {
|
|
607
|
+
classes.push('col-lg-' + value.labelSizeLg);
|
|
608
|
+
}
|
|
609
|
+
if (value.labelSizeXl) {
|
|
610
|
+
classes.push('col-xl-' + value.labelSizeXl);
|
|
611
|
+
}
|
|
612
|
+
return classes.join(' ');
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
SacToLabelWidthCssPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacToLabelWidthCssPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
616
|
+
SacToLabelWidthCssPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacToLabelWidthCssPipe, name: "toLabelWidthCss" });
|
|
617
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacToLabelWidthCssPipe, decorators: [{
|
|
618
|
+
type: Pipe,
|
|
619
|
+
args: [{
|
|
620
|
+
name: 'toLabelWidthCss',
|
|
621
|
+
}]
|
|
622
|
+
}] });
|
|
623
|
+
|
|
624
|
+
class SACBootstrap4LayoutModule {
|
|
625
|
+
}
|
|
626
|
+
SACBootstrap4LayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4LayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
627
|
+
SACBootstrap4LayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4LayoutModule, declarations: [SacFormLayoutDirective,
|
|
628
|
+
SacToControlWidthCssPipe,
|
|
629
|
+
SacToLabelWidthCssPipe], imports: [CommonModule], exports: [SacFormLayoutDirective,
|
|
630
|
+
SacToControlWidthCssPipe,
|
|
631
|
+
SacToLabelWidthCssPipe] });
|
|
632
|
+
SACBootstrap4LayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4LayoutModule, imports: [[CommonModule]] });
|
|
633
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4LayoutModule, decorators: [{
|
|
634
|
+
type: NgModule,
|
|
635
|
+
args: [{
|
|
636
|
+
declarations: [
|
|
637
|
+
SacFormLayoutDirective,
|
|
638
|
+
SacToControlWidthCssPipe,
|
|
639
|
+
SacToLabelWidthCssPipe,
|
|
538
640
|
],
|
|
641
|
+
imports: [CommonModule],
|
|
539
642
|
exports: [
|
|
540
|
-
|
|
541
|
-
|
|
643
|
+
SacFormLayoutDirective,
|
|
644
|
+
SacToControlWidthCssPipe,
|
|
645
|
+
SacToLabelWidthCssPipe,
|
|
646
|
+
],
|
|
542
647
|
}]
|
|
543
648
|
}] });
|
|
544
649
|
|
|
@@ -547,16 +652,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
547
652
|
* @see https://github.com/kukhariev/ngx-uploadx/
|
|
548
653
|
*/
|
|
549
654
|
class SacDropzoneMultipleComponent extends SacDropzoneMultipleCommon {
|
|
655
|
+
// #region Constructors
|
|
550
656
|
/**
|
|
551
|
-
*
|
|
552
|
-
* @param
|
|
553
|
-
* @param injector
|
|
554
|
-
* @param renderer Angular
|
|
555
|
-
* @param ngZone ngZone
|
|
657
|
+
* Constructor
|
|
658
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
659
|
+
* @param injector Injector for injecting services
|
|
660
|
+
* @param renderer Angular rendering engine
|
|
661
|
+
* @param ngZone ngZone to manage external javascripts
|
|
556
662
|
*/
|
|
557
|
-
constructor(
|
|
558
|
-
super(
|
|
663
|
+
constructor(formLayout, injector, renderer, ngZone) {
|
|
664
|
+
super(formLayout, injector, renderer, ngZone);
|
|
559
665
|
}
|
|
666
|
+
// #endregion Constructors
|
|
667
|
+
// #region Public Methods
|
|
560
668
|
/**
|
|
561
669
|
* Initialisiert das Control
|
|
562
670
|
*/
|
|
@@ -564,7 +672,7 @@ class SacDropzoneMultipleComponent extends SacDropzoneMultipleCommon {
|
|
|
564
672
|
super.ngOnInit();
|
|
565
673
|
}
|
|
566
674
|
}
|
|
567
|
-
SacDropzoneMultipleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDropzoneMultipleComponent, deps: [{ token:
|
|
675
|
+
SacDropzoneMultipleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDropzoneMultipleComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
568
676
|
SacDropzoneMultipleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacDropzoneMultipleComponent, selector: "sac-dropzonemultiple", providers: [
|
|
569
677
|
{
|
|
570
678
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -576,7 +684,7 @@ SacDropzoneMultipleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
|
576
684
|
multi: true,
|
|
577
685
|
useExisting: forwardRef(() => SacDropzoneMultipleComponent),
|
|
578
686
|
},
|
|
579
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !
|
|
687
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}_label\"\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"dropzone d-flex justify-content-center position-relative\"\r\n (drop)=\"dropHandler($event)\"\r\n (dragover)=\"onDragOver($event)\"\r\n (dragleave)=\"onDragLeave($event)\"\r\n [class.active]=\"active\"\r\n [style.min-height]=\"uploadheight\"\r\n [class.is-invalid]=\"invalid && (dirty || touched)\"\r\n >\r\n <div\r\n class=\"content d-flex justify-content-center\"\r\n *ngIf=\"uploads.length === 0\"\r\n >\r\n <div class=\"align-self-center text-center\">\r\n <div\r\n [class.is-invalid]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"content d-flex justify-content-center\"\r\n *ngIf=\"uploads.length > 0\"\r\n >\r\n <div class=\"align-self-center progress-container\">\r\n <div\r\n class=\"dropzone-uploadstates\"\r\n [class.mt-1]=\"i > 0\"\r\n *ngFor=\"let file of uploads; let i = index\"\r\n >\r\n <div class=\"input-group upload-component upload-component-multiple\">\r\n <div class=\"form-control upload-progress border-secondary\">\r\n <div class=\"progress\">\r\n <div\r\n class=\"progress-bar\"\r\n [class.progress-bar-success]=\"file.progress===100\"\r\n role=\"progressbar\"\r\n [attr.aria-valuenow]=\"file.progress\"\r\n aria-valuemin=\"0\"\r\n aria-valuemax=\"100\"\r\n [style.width.%]=\"file.progress\"\r\n >\r\n <span class=\"progress-text text-dark\">{{ file.name }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"input-group-append\">\r\n <!-- image-preview-clear button -->\r\n <a\r\n class=\"btn\"\r\n (click)=\"cancel(file.uploadId)\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconDelete\"></span>\r\n </a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <input\r\n #files\r\n multiple\r\n id=\"{{ name }}_uploadinput\"\r\n type=\"file\"\r\n class=\"custom-file-input\"\r\n (click)=\"files.value = ''\"\r\n (uploadxState)=\"onUpload($event)\"\r\n [disabled]=\"HasQueueItem()\"\r\n />\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".dropzone{min-height:9.75rem;border:.125rem dashed lightgray;border-radius:.5rem;background:transparent}.dropzone.is-invalid{border-color:var(--red)}.dropzone .content{position:absolute;inset:0}.dropzone .content .is-invalid{color:var(--red)}.dropzone .content .progress-container{min-width:50%;z-index:100}.dropzone .content .dropzone-uploadstates .upload-progress{padding:0}.dropzone .content .dropzone-uploadstates .upload-progress .progress{height:100%;border-top-right-radius:0;border-bottom-right-radius:0}.dropzone .content .dropzone-uploadstates .upload-progress .progress .progress-text{left:0;right:0;position:absolute}.dropzone .custom-file-input{min-height:100%;height:unset}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
580
688
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDropzoneMultipleComponent, decorators: [{
|
|
581
689
|
type: Component,
|
|
582
690
|
args: [{ selector: 'sac-dropzonemultiple', providers: [
|
|
@@ -590,8 +698,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
590
698
|
multi: true,
|
|
591
699
|
useExisting: forwardRef(() => SacDropzoneMultipleComponent),
|
|
592
700
|
},
|
|
593
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !
|
|
594
|
-
}], ctorParameters: function () { return [{ type:
|
|
701
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}_label\"\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"dropzone d-flex justify-content-center position-relative\"\r\n (drop)=\"dropHandler($event)\"\r\n (dragover)=\"onDragOver($event)\"\r\n (dragleave)=\"onDragLeave($event)\"\r\n [class.active]=\"active\"\r\n [style.min-height]=\"uploadheight\"\r\n [class.is-invalid]=\"invalid && (dirty || touched)\"\r\n >\r\n <div\r\n class=\"content d-flex justify-content-center\"\r\n *ngIf=\"uploads.length === 0\"\r\n >\r\n <div class=\"align-self-center text-center\">\r\n <div\r\n [class.is-invalid]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"content d-flex justify-content-center\"\r\n *ngIf=\"uploads.length > 0\"\r\n >\r\n <div class=\"align-self-center progress-container\">\r\n <div\r\n class=\"dropzone-uploadstates\"\r\n [class.mt-1]=\"i > 0\"\r\n *ngFor=\"let file of uploads; let i = index\"\r\n >\r\n <div class=\"input-group upload-component upload-component-multiple\">\r\n <div class=\"form-control upload-progress border-secondary\">\r\n <div class=\"progress\">\r\n <div\r\n class=\"progress-bar\"\r\n [class.progress-bar-success]=\"file.progress===100\"\r\n role=\"progressbar\"\r\n [attr.aria-valuenow]=\"file.progress\"\r\n aria-valuemin=\"0\"\r\n aria-valuemax=\"100\"\r\n [style.width.%]=\"file.progress\"\r\n >\r\n <span class=\"progress-text text-dark\">{{ file.name }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"input-group-append\">\r\n <!-- image-preview-clear button -->\r\n <a\r\n class=\"btn\"\r\n (click)=\"cancel(file.uploadId)\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconDelete\"></span>\r\n </a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <input\r\n #files\r\n multiple\r\n id=\"{{ name }}_uploadinput\"\r\n type=\"file\"\r\n class=\"custom-file-input\"\r\n (click)=\"files.value = ''\"\r\n (uploadxState)=\"onUpload($event)\"\r\n [disabled]=\"HasQueueItem()\"\r\n />\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".dropzone{min-height:9.75rem;border:.125rem dashed lightgray;border-radius:.5rem;background:transparent}.dropzone.is-invalid{border-color:var(--red)}.dropzone .content{position:absolute;inset:0}.dropzone .content .is-invalid{color:var(--red)}.dropzone .content .progress-container{min-width:50%;z-index:100}.dropzone .content .dropzone-uploadstates .upload-progress{padding:0}.dropzone .content .dropzone-uploadstates .upload-progress .progress{height:100%;border-top-right-radius:0;border-bottom-right-radius:0}.dropzone .content .dropzone-uploadstates .upload-progress .progress .progress-text{left:0;right:0;position:absolute}.dropzone .custom-file-input{min-height:100%;height:unset}\n"] }]
|
|
702
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
595
703
|
type: Host
|
|
596
704
|
}, {
|
|
597
705
|
type: Optional
|
|
@@ -602,16 +710,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
602
710
|
* @see https://github.com/kukhariev/ngx-uploadx/
|
|
603
711
|
*/
|
|
604
712
|
class SacDropzoneSingleComponent extends SacDropzoneSingleCommon {
|
|
713
|
+
// #region Constructors
|
|
605
714
|
/**
|
|
606
|
-
*
|
|
607
|
-
* @param
|
|
608
|
-
* @param injector
|
|
609
|
-
* @param renderer Angular
|
|
610
|
-
* @param ngZone ngZone
|
|
715
|
+
* Constructor
|
|
716
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
717
|
+
* @param injector Injector for injecting services
|
|
718
|
+
* @param renderer Angular rendering engine
|
|
719
|
+
* @param ngZone ngZone to manage external javascripts
|
|
611
720
|
*/
|
|
612
|
-
constructor(
|
|
613
|
-
super(
|
|
721
|
+
constructor(formLayout, injector, renderer, ngZone) {
|
|
722
|
+
super(formLayout, injector, renderer, ngZone);
|
|
614
723
|
}
|
|
724
|
+
// #endregion Constructors
|
|
725
|
+
// #region Public Methods
|
|
615
726
|
/**
|
|
616
727
|
* Initialisiert das Control
|
|
617
728
|
*/
|
|
@@ -619,7 +730,7 @@ class SacDropzoneSingleComponent extends SacDropzoneSingleCommon {
|
|
|
619
730
|
super.ngOnInit();
|
|
620
731
|
}
|
|
621
732
|
}
|
|
622
|
-
SacDropzoneSingleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDropzoneSingleComponent, deps: [{ token:
|
|
733
|
+
SacDropzoneSingleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDropzoneSingleComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
623
734
|
SacDropzoneSingleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacDropzoneSingleComponent, selector: "sac-dropzonesingle", providers: [
|
|
624
735
|
{
|
|
625
736
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -631,7 +742,7 @@ SacDropzoneSingleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
631
742
|
multi: true,
|
|
632
743
|
useExisting: forwardRef(() => SacDropzoneSingleComponent),
|
|
633
744
|
},
|
|
634
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !
|
|
745
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}_label\"\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"dropzone d-flex justify-content-center position-relative\"\r\n (drop)=\"dropHandler($event)\"\r\n (dragover)=\"onDragOver($event)\"\r\n (dragleave)=\"onDragLeave($event)\"\r\n [style.min-height]=\"uploadheight\"\r\n [class.active]=\"active\"\r\n [class.is-invalid]=\"invalid && (dirty || touched)\"\r\n >\r\n <div\r\n class=\"content d-flex justify-content-center\"\r\n *ngIf=\"uploads.length === 0\"\r\n >\r\n <div class=\"align-self-center text-center\">\r\n <div\r\n [class.is-invalid]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"content d-flex justify-content-center\"\r\n *ngIf=\"uploads.length > 0\"\r\n >\r\n <div class=\"align-self-center progress-container\">\r\n <div class=\"dropzone-uploadstates\" *ngFor=\"let file of uploads\">\r\n <div class=\"input-group upload-component upload-component-multiple\">\r\n <div class=\"form-control upload-progress border-secondary\">\r\n <div class=\"progress\">\r\n <div\r\n class=\"progress-bar\"\r\n [class.progress-bar-success]=\"file.progress===100\"\r\n role=\"progressbar\"\r\n [attr.aria-valuenow]=\"file.progress\"\r\n aria-valuemin=\"0\"\r\n aria-valuemax=\"100\"\r\n [style.width.%]=\"file.progress\"\r\n >\r\n <span class=\"progress-text text-dark\">{{ file.name }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"input-group-append\">\r\n <!-- image-preview-clear button -->\r\n <a\r\n class=\"btn\"\r\n (click)=\"cancel(file.uploadId)\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconDelete\"></span>\r\n </a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <input\r\n #files\r\n id=\"{{ name }}_uploadinput\"\r\n type=\"file\"\r\n class=\"custom-file-input\"\r\n (click)=\"files.value = ''\"\r\n (uploadxState)=\"onUpload($event)\"\r\n [disabled]=\"HasQueueItem()\"\r\n />\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".dropzone{min-height:9.75rem;border:.125rem dashed lightgray;border-radius:.5rem;background:transparent}.dropzone.is-invalid{border-color:var(--red)}.dropzone .content{position:absolute;inset:0}.dropzone .content .is-invalid{color:var(--red)}.dropzone .content .progress-container{min-width:50%;z-index:100}.dropzone .content .dropzone-uploadstates .upload-progress{padding:0}.dropzone .content .dropzone-uploadstates .upload-progress .progress{height:100%;border-top-right-radius:0;border-bottom-right-radius:0}.dropzone .content .dropzone-uploadstates .upload-progress .progress .progress-text{left:0;right:0;position:absolute}.dropzone .custom-file-input{min-height:100%;height:unset}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
635
746
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDropzoneSingleComponent, decorators: [{
|
|
636
747
|
type: Component,
|
|
637
748
|
args: [{ selector: 'sac-dropzonesingle', providers: [
|
|
@@ -645,8 +756,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
645
756
|
multi: true,
|
|
646
757
|
useExisting: forwardRef(() => SacDropzoneSingleComponent),
|
|
647
758
|
},
|
|
648
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !
|
|
649
|
-
}], ctorParameters: function () { return [{ type:
|
|
759
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}_label\"\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"dropzone d-flex justify-content-center position-relative\"\r\n (drop)=\"dropHandler($event)\"\r\n (dragover)=\"onDragOver($event)\"\r\n (dragleave)=\"onDragLeave($event)\"\r\n [style.min-height]=\"uploadheight\"\r\n [class.active]=\"active\"\r\n [class.is-invalid]=\"invalid && (dirty || touched)\"\r\n >\r\n <div\r\n class=\"content d-flex justify-content-center\"\r\n *ngIf=\"uploads.length === 0\"\r\n >\r\n <div class=\"align-self-center text-center\">\r\n <div\r\n [class.is-invalid]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"content d-flex justify-content-center\"\r\n *ngIf=\"uploads.length > 0\"\r\n >\r\n <div class=\"align-self-center progress-container\">\r\n <div class=\"dropzone-uploadstates\" *ngFor=\"let file of uploads\">\r\n <div class=\"input-group upload-component upload-component-multiple\">\r\n <div class=\"form-control upload-progress border-secondary\">\r\n <div class=\"progress\">\r\n <div\r\n class=\"progress-bar\"\r\n [class.progress-bar-success]=\"file.progress===100\"\r\n role=\"progressbar\"\r\n [attr.aria-valuenow]=\"file.progress\"\r\n aria-valuemin=\"0\"\r\n aria-valuemax=\"100\"\r\n [style.width.%]=\"file.progress\"\r\n >\r\n <span class=\"progress-text text-dark\">{{ file.name }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"input-group-append\">\r\n <!-- image-preview-clear button -->\r\n <a\r\n class=\"btn\"\r\n (click)=\"cancel(file.uploadId)\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconDelete\"></span>\r\n </a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <input\r\n #files\r\n id=\"{{ name }}_uploadinput\"\r\n type=\"file\"\r\n class=\"custom-file-input\"\r\n (click)=\"files.value = ''\"\r\n (uploadxState)=\"onUpload($event)\"\r\n [disabled]=\"HasQueueItem()\"\r\n />\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".dropzone{min-height:9.75rem;border:.125rem dashed lightgray;border-radius:.5rem;background:transparent}.dropzone.is-invalid{border-color:var(--red)}.dropzone .content{position:absolute;inset:0}.dropzone .content .is-invalid{color:var(--red)}.dropzone .content .progress-container{min-width:50%;z-index:100}.dropzone .content .dropzone-uploadstates .upload-progress{padding:0}.dropzone .content .dropzone-uploadstates .upload-progress .progress{height:100%;border-top-right-radius:0;border-bottom-right-radius:0}.dropzone .content .dropzone-uploadstates .upload-progress .progress .progress-text{left:0;right:0;position:absolute}.dropzone .custom-file-input{min-height:100%;height:unset}\n"] }]
|
|
760
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
650
761
|
type: Host
|
|
651
762
|
}, {
|
|
652
763
|
type: Optional
|
|
@@ -657,37 +768,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
657
768
|
* @see https://github.com/kukhariev/ngx-uploadx/
|
|
658
769
|
*/
|
|
659
770
|
class SacUploadComponent extends SacUploadSingleCommon {
|
|
771
|
+
// #region Constructors
|
|
660
772
|
/**
|
|
661
|
-
*
|
|
662
|
-
* @param
|
|
663
|
-
* @param injector
|
|
664
|
-
* @param renderer Angular
|
|
665
|
-
* @param ngZone ngZone
|
|
773
|
+
* Constructor
|
|
774
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
775
|
+
* @param injector Injector for injecting services
|
|
776
|
+
* @param renderer Angular rendering engine
|
|
777
|
+
* @param ngZone ngZone to manage external javascripts
|
|
666
778
|
*/
|
|
667
|
-
constructor(
|
|
668
|
-
super(
|
|
779
|
+
constructor(formLayout, injector, renderer, ngZone) {
|
|
780
|
+
super(formLayout, injector, renderer, ngZone);
|
|
669
781
|
}
|
|
670
782
|
}
|
|
671
|
-
SacUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacUploadComponent, deps: [{ token:
|
|
783
|
+
SacUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacUploadComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
672
784
|
SacUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacUploadComponent, selector: "sac-upload", providers: [
|
|
673
|
-
{
|
|
785
|
+
{
|
|
786
|
+
provide: NG_VALUE_ACCESSOR,
|
|
787
|
+
multi: true,
|
|
788
|
+
useExisting: SacUploadComponent,
|
|
789
|
+
},
|
|
674
790
|
{
|
|
675
791
|
provide: NG_VALIDATORS,
|
|
676
792
|
multi: true,
|
|
677
793
|
useExisting: forwardRef(() => SacUploadComponent),
|
|
678
794
|
},
|
|
679
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !
|
|
795
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}_label\"\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group upload-component upload-single\"\r\n [class.is-invalid]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <div class=\"input-group-prepend\">\r\n <!-- image-preview-input -->\r\n <div\r\n class=\"btn upload-input custom-file\"\r\n [class.disabled]=\"HasQueueItem()\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <i class=\"pr-2\" [class]=\"IconBrowse\"></i>\r\n <span class=\"upload-browse\"\r\n >{{ lngResourceService.GetString('UPLOAD_BUTTON_BROWSE') | async\r\n }}</span\r\n >\r\n <input\r\n type=\"file\"\r\n class=\"custom-file-input\"\r\n #files\r\n (click)=\"files.value = ''\"\r\n (uploadxState)=\"onUpload($event)\"\r\n multiple\r\n [disabled]=\"HasQueueItem()\"\r\n />\r\n </div>\r\n </div>\r\n <div\r\n class=\"form-control upload-progress\"\r\n [class.is-invalid]=\"invalid && (dirty || touched)\"\r\n >\r\n <div class=\"progress\">\r\n <div\r\n class=\"progress-bar\"\r\n [class.progress-bar-success]=\"Progress()===100\"\r\n role=\"progressbar\"\r\n [attr.aria-valuenow]=\"Progress()\"\r\n aria-valuemin=\"0\"\r\n aria-valuemax=\"100\"\r\n [style.width.%]=\"Progress()\"\r\n >\r\n <span class=\"progress-text text-dark\"\r\n >{{ Filename() | async }}</span\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n <!-- <input type=\"textimage-preview-filename\" class=\"form-control image-preview-filename\" disabled=\"disabled\"> --><!-- don't give a name === doesn't send on POST/GET -->\r\n <div class=\"input-group-append\">\r\n <!-- image-preview-clear button -->\r\n <button\r\n class=\"btn\"\r\n (click)=\"cancelAll()\"\r\n [attr.disabled]=\"HasQueueItem() === false ? 'disabled' : null\"\r\n [class.disabled]=\"HasQueueItem() === false ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconDelete\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"(autoupload === false && enablepause) || (autoupload && enablepause && IsPaused() === false)\"\r\n class=\"btn\"\r\n (click)=\"pauseAll()\"\r\n [attr.disabled]=\"IsUploading() === false ? 'disabled' : null\"\r\n [class.disabled]=\"IsUploading() === false ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconPause\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"autoupload && enablepause && IsPaused()\"\r\n class=\"btn\"\r\n (click)=\"uploadAll()\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconContinue\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"autoupload === false\"\r\n class=\"btn text-nowrap\"\r\n (click)=\"uploadAll()\"\r\n [attr.disabled]=\"IsStateToUpload() === false ? 'disabled' : null\"\r\n [class.disabled]=\"IsStateToUpload() === false ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconUpload\" class=\"pr-2\"></span>{{\r\n lngResourceService.GetString('UPLOAD_BUTTON_UPLOAD') | async }}\r\n </button>\r\n </div>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".upload-component .custom-file .custom-file-input{inset:0;position:absolute}.upload-component.upload-multiple .upload-progress .progress{border-top-right-radius:0;border-bottom-right-radius:0}.upload-component.upload-single .upload-progress .progress{border-radius:0}.upload-component .upload-progress{padding:0;border:0}.upload-component .upload-progress .progress{height:calc(2.25rem + 2px)}.upload-component .upload-progress .progress .progress-text{position:absolute;left:0;right:0}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
680
796
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacUploadComponent, decorators: [{
|
|
681
797
|
type: Component,
|
|
682
798
|
args: [{ selector: 'sac-upload', providers: [
|
|
683
|
-
{
|
|
799
|
+
{
|
|
800
|
+
provide: NG_VALUE_ACCESSOR,
|
|
801
|
+
multi: true,
|
|
802
|
+
useExisting: SacUploadComponent,
|
|
803
|
+
},
|
|
684
804
|
{
|
|
685
805
|
provide: NG_VALIDATORS,
|
|
686
806
|
multi: true,
|
|
687
807
|
useExisting: forwardRef(() => SacUploadComponent),
|
|
688
808
|
},
|
|
689
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !
|
|
690
|
-
}], ctorParameters: function () { return [{ type:
|
|
809
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}_label\"\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group upload-component upload-single\"\r\n [class.is-invalid]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <div class=\"input-group-prepend\">\r\n <!-- image-preview-input -->\r\n <div\r\n class=\"btn upload-input custom-file\"\r\n [class.disabled]=\"HasQueueItem()\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <i class=\"pr-2\" [class]=\"IconBrowse\"></i>\r\n <span class=\"upload-browse\"\r\n >{{ lngResourceService.GetString('UPLOAD_BUTTON_BROWSE') | async\r\n }}</span\r\n >\r\n <input\r\n type=\"file\"\r\n class=\"custom-file-input\"\r\n #files\r\n (click)=\"files.value = ''\"\r\n (uploadxState)=\"onUpload($event)\"\r\n multiple\r\n [disabled]=\"HasQueueItem()\"\r\n />\r\n </div>\r\n </div>\r\n <div\r\n class=\"form-control upload-progress\"\r\n [class.is-invalid]=\"invalid && (dirty || touched)\"\r\n >\r\n <div class=\"progress\">\r\n <div\r\n class=\"progress-bar\"\r\n [class.progress-bar-success]=\"Progress()===100\"\r\n role=\"progressbar\"\r\n [attr.aria-valuenow]=\"Progress()\"\r\n aria-valuemin=\"0\"\r\n aria-valuemax=\"100\"\r\n [style.width.%]=\"Progress()\"\r\n >\r\n <span class=\"progress-text text-dark\"\r\n >{{ Filename() | async }}</span\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n <!-- <input type=\"textimage-preview-filename\" class=\"form-control image-preview-filename\" disabled=\"disabled\"> --><!-- don't give a name === doesn't send on POST/GET -->\r\n <div class=\"input-group-append\">\r\n <!-- image-preview-clear button -->\r\n <button\r\n class=\"btn\"\r\n (click)=\"cancelAll()\"\r\n [attr.disabled]=\"HasQueueItem() === false ? 'disabled' : null\"\r\n [class.disabled]=\"HasQueueItem() === false ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconDelete\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"(autoupload === false && enablepause) || (autoupload && enablepause && IsPaused() === false)\"\r\n class=\"btn\"\r\n (click)=\"pauseAll()\"\r\n [attr.disabled]=\"IsUploading() === false ? 'disabled' : null\"\r\n [class.disabled]=\"IsUploading() === false ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconPause\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"autoupload && enablepause && IsPaused()\"\r\n class=\"btn\"\r\n (click)=\"uploadAll()\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconContinue\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"autoupload === false\"\r\n class=\"btn text-nowrap\"\r\n (click)=\"uploadAll()\"\r\n [attr.disabled]=\"IsStateToUpload() === false ? 'disabled' : null\"\r\n [class.disabled]=\"IsStateToUpload() === false ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconUpload\" class=\"pr-2\"></span>{{\r\n lngResourceService.GetString('UPLOAD_BUTTON_UPLOAD') | async }}\r\n </button>\r\n </div>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".upload-component .custom-file .custom-file-input{inset:0;position:absolute}.upload-component.upload-multiple .upload-progress .progress{border-top-right-radius:0;border-bottom-right-radius:0}.upload-component.upload-single .upload-progress .progress{border-radius:0}.upload-component .upload-progress{padding:0;border:0}.upload-component .upload-progress .progress{height:calc(2.25rem + 2px)}.upload-component .upload-progress .progress .progress-text{position:absolute;left:0;right:0}\n"] }]
|
|
810
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
691
811
|
type: Host
|
|
692
812
|
}, {
|
|
693
813
|
type: Optional
|
|
@@ -698,18 +818,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
698
818
|
* @see https://github.com/kukhariev/ngx-uploadx/
|
|
699
819
|
*/
|
|
700
820
|
class SacUploadMultipleComponent extends SacUploadMultipleCommon {
|
|
821
|
+
// #region Constructors
|
|
701
822
|
/**
|
|
702
|
-
*
|
|
703
|
-
* @param
|
|
704
|
-
* @param injector
|
|
705
|
-
* @param renderer Angular
|
|
706
|
-
* @param ngZone ngZone
|
|
823
|
+
* Constructor
|
|
824
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
825
|
+
* @param injector Injector for injecting services
|
|
826
|
+
* @param renderer Angular rendering engine
|
|
827
|
+
* @param ngZone ngZone to manage external javascripts
|
|
707
828
|
*/
|
|
708
|
-
constructor(
|
|
709
|
-
super(
|
|
829
|
+
constructor(formLayout, injector, renderer, ngZone) {
|
|
830
|
+
super(formLayout, injector, renderer, ngZone);
|
|
710
831
|
}
|
|
711
832
|
}
|
|
712
|
-
SacUploadMultipleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacUploadMultipleComponent, deps: [{ token:
|
|
833
|
+
SacUploadMultipleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacUploadMultipleComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
713
834
|
SacUploadMultipleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacUploadMultipleComponent, selector: "sac-uploadmultiple", providers: [
|
|
714
835
|
{
|
|
715
836
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -721,7 +842,7 @@ SacUploadMultipleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
721
842
|
multi: true,
|
|
722
843
|
useExisting: forwardRef(() => SacUploadMultipleComponent),
|
|
723
844
|
},
|
|
724
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !
|
|
845
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}_label\"\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div class=\"upload-component\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <div\r\n class=\"btn-group\"\r\n [class.is-invalid]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <div\r\n class=\"btn upload-input custom-file\"\r\n [class.disabled]=\"maxfiles > 0 && uploads.length >= maxfiles\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <i [class]=\"IconBrowse\" class=\"pr-2\"></i>\r\n <span class=\"upload-browse\">Browse</span>\r\n <input\r\n type=\"file\"\r\n class=\"custom-file-input\"\r\n #files\r\n (click)=\"files.value = ''\"\r\n (uploadxState)=\"onUpload($event)\"\r\n multiple\r\n [disabled]=\"maxfiles > 0 && uploads.length >= maxfiles\"\r\n />\r\n </div>\r\n\r\n <div class=\"btn-group\">\r\n <!-- image-preview-clear button -->\r\n <button\r\n class=\"btn\"\r\n (click)=\"cancelAll()\"\r\n [attr.disabled]=\"HasQueueItem() === false ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconDelete\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"(autoupload === false && enablepause) || (autoupload && enablepause && IsPaused() === false)\"\r\n class=\"btn\"\r\n (click)=\"pauseAll()\"\r\n [attr.disabled]=\"IsUploading() === false ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconPause\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"autoupload && enablepause && IsPaused() === true\"\r\n class=\"btn\"\r\n (click)=\"uploadAll()\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconContinue\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"autoupload === false\"\r\n class=\"btn text-nowrap\"\r\n (click)=\"uploadAll()\"\r\n [attr.disabled]=\"IsStateToUpload() === false ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconUpload\" class=\"pr-2\"></span> {{\r\n lngResourceService.GetString('UPLOAD_BUTTON_UPLOAD') | async }}\r\n </button>\r\n </div>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngFor=\"let file of uploads\" style=\"margin-top: 5px\">\r\n <div class=\"input-group upload-component upload-multiple\">\r\n <div\r\n class=\"form-control upload-progress\"\r\n [class.is-invalid]=\"invalid && (dirty || touched)\"\r\n >\r\n <div class=\"progress\">\r\n <div\r\n class=\"progress-bar\"\r\n [class.progress-bar-success]=\"file.progress===100\"\r\n role=\"progressbar\"\r\n [attr.aria-valuenow]=\"file.progress\"\r\n aria-valuemin=\"0\"\r\n aria-valuemax=\"100\"\r\n [style.width.%]=\"file.progress\"\r\n >\r\n <span class=\"progress-text text-dark\">{{ file.name }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"input-group-append\">\r\n <!-- image-preview-clear button -->\r\n <button\r\n class=\"btn\"\r\n (click)=\"cancel(file.uploadId)\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconDelete\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"(autoupload === false && enablepause) || (autoupload && enablepause && file.status !== 'paused')\"\r\n class=\"btn\"\r\n (click)=\"pause(file.uploadId)\"\r\n [attr.disabled]=\"file.status !== 'uploading' ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconPause\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"autoupload && enablepause && file.status === 'paused'\"\r\n class=\"btn\"\r\n (click)=\"upload(file.uploadId)\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconContinue\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"autoupload === false\"\r\n class=\"btn text-nowrap\"\r\n (click)=\"upload(file.uploadId)\"\r\n [attr.disabled]=\"file.status !== 'added' && file.status !== 'paused' ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconUpload\" class=\"pr-2\"></span>{{\r\n lngResourceService.GetString('UPLOAD_BUTTON_UPLOAD') | async }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".upload-component .custom-file .custom-file-input{inset:0;position:absolute}.upload-component.upload-multiple .upload-progress .progress{border-top-right-radius:0;border-bottom-right-radius:0}.upload-component.upload-single .upload-progress .progress{border-radius:0}.upload-component .upload-progress{padding:0;border:0}.upload-component .upload-progress .progress{height:calc(2.25rem + 2px)}.upload-component .upload-progress .progress .progress-text{position:absolute;left:0;right:0}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
725
846
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacUploadMultipleComponent, decorators: [{
|
|
726
847
|
type: Component,
|
|
727
848
|
args: [{ selector: 'sac-uploadmultiple', providers: [
|
|
@@ -735,8 +856,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
735
856
|
multi: true,
|
|
736
857
|
useExisting: forwardRef(() => SacUploadMultipleComponent),
|
|
737
858
|
},
|
|
738
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !
|
|
739
|
-
}], ctorParameters: function () { return [{ type:
|
|
859
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}_label\"\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div class=\"upload-component\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <div\r\n class=\"btn-group\"\r\n [class.is-invalid]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <div\r\n class=\"btn upload-input custom-file\"\r\n [class.disabled]=\"maxfiles > 0 && uploads.length >= maxfiles\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <i [class]=\"IconBrowse\" class=\"pr-2\"></i>\r\n <span class=\"upload-browse\">Browse</span>\r\n <input\r\n type=\"file\"\r\n class=\"custom-file-input\"\r\n #files\r\n (click)=\"files.value = ''\"\r\n (uploadxState)=\"onUpload($event)\"\r\n multiple\r\n [disabled]=\"maxfiles > 0 && uploads.length >= maxfiles\"\r\n />\r\n </div>\r\n\r\n <div class=\"btn-group\">\r\n <!-- image-preview-clear button -->\r\n <button\r\n class=\"btn\"\r\n (click)=\"cancelAll()\"\r\n [attr.disabled]=\"HasQueueItem() === false ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconDelete\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"(autoupload === false && enablepause) || (autoupload && enablepause && IsPaused() === false)\"\r\n class=\"btn\"\r\n (click)=\"pauseAll()\"\r\n [attr.disabled]=\"IsUploading() === false ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconPause\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"autoupload && enablepause && IsPaused() === true\"\r\n class=\"btn\"\r\n (click)=\"uploadAll()\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconContinue\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"autoupload === false\"\r\n class=\"btn text-nowrap\"\r\n (click)=\"uploadAll()\"\r\n [attr.disabled]=\"IsStateToUpload() === false ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconUpload\" class=\"pr-2\"></span> {{\r\n lngResourceService.GetString('UPLOAD_BUTTON_UPLOAD') | async }}\r\n </button>\r\n </div>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngFor=\"let file of uploads\" style=\"margin-top: 5px\">\r\n <div class=\"input-group upload-component upload-multiple\">\r\n <div\r\n class=\"form-control upload-progress\"\r\n [class.is-invalid]=\"invalid && (dirty || touched)\"\r\n >\r\n <div class=\"progress\">\r\n <div\r\n class=\"progress-bar\"\r\n [class.progress-bar-success]=\"file.progress===100\"\r\n role=\"progressbar\"\r\n [attr.aria-valuenow]=\"file.progress\"\r\n aria-valuemin=\"0\"\r\n aria-valuemax=\"100\"\r\n [style.width.%]=\"file.progress\"\r\n >\r\n <span class=\"progress-text text-dark\">{{ file.name }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"input-group-append\">\r\n <!-- image-preview-clear button -->\r\n <button\r\n class=\"btn\"\r\n (click)=\"cancel(file.uploadId)\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconDelete\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"(autoupload === false && enablepause) || (autoupload && enablepause && file.status !== 'paused')\"\r\n class=\"btn\"\r\n (click)=\"pause(file.uploadId)\"\r\n [attr.disabled]=\"file.status !== 'uploading' ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconPause\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"autoupload && enablepause && file.status === 'paused'\"\r\n class=\"btn\"\r\n (click)=\"upload(file.uploadId)\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconContinue\"></span>\r\n </button>\r\n <button\r\n *ngIf=\"autoupload === false\"\r\n class=\"btn text-nowrap\"\r\n (click)=\"upload(file.uploadId)\"\r\n [attr.disabled]=\"file.status !== 'added' && file.status !== 'paused' ? 'disabled' : null\"\r\n [class.btn-secondary]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconUpload\" class=\"pr-2\"></span>{{\r\n lngResourceService.GetString('UPLOAD_BUTTON_UPLOAD') | async }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".upload-component .custom-file .custom-file-input{inset:0;position:absolute}.upload-component.upload-multiple .upload-progress .progress{border-top-right-radius:0;border-bottom-right-radius:0}.upload-component.upload-single .upload-progress .progress{border-radius:0}.upload-component .upload-progress{padding:0;border:0}.upload-component .upload-progress .progress{height:calc(2.25rem + 2px)}.upload-component .upload-progress .progress .progress-text{position:absolute;left:0;right:0}\n"] }]
|
|
860
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
740
861
|
type: Host
|
|
741
862
|
}, {
|
|
742
863
|
type: Optional
|
|
@@ -748,11 +869,11 @@ SACBootstrap4UploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0"
|
|
|
748
869
|
SACBootstrap4UploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4UploadModule, declarations: [SacUploadComponent,
|
|
749
870
|
SacUploadMultipleComponent,
|
|
750
871
|
SacDropzoneSingleComponent,
|
|
751
|
-
SacDropzoneMultipleComponent], imports: [CommonModule, FormsModule], exports: [SacUploadComponent,
|
|
872
|
+
SacDropzoneMultipleComponent], imports: [CommonModule, FormsModule, SACBootstrap4LayoutModule], exports: [SacUploadComponent,
|
|
752
873
|
SacUploadMultipleComponent,
|
|
753
874
|
SacDropzoneSingleComponent,
|
|
754
875
|
SacDropzoneMultipleComponent] });
|
|
755
|
-
SACBootstrap4UploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4UploadModule, imports: [[CommonModule, FormsModule]] });
|
|
876
|
+
SACBootstrap4UploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4UploadModule, imports: [[CommonModule, FormsModule, SACBootstrap4LayoutModule]] });
|
|
756
877
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4UploadModule, decorators: [{
|
|
757
878
|
type: NgModule,
|
|
758
879
|
args: [{
|
|
@@ -762,7 +883,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
762
883
|
SacDropzoneSingleComponent,
|
|
763
884
|
SacDropzoneMultipleComponent,
|
|
764
885
|
],
|
|
765
|
-
imports: [CommonModule, FormsModule],
|
|
886
|
+
imports: [CommonModule, FormsModule, SACBootstrap4LayoutModule],
|
|
766
887
|
exports: [
|
|
767
888
|
SacUploadComponent,
|
|
768
889
|
SacUploadMultipleComponent,
|
|
@@ -906,16 +1027,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
906
1027
|
* Checkbox Kompontente
|
|
907
1028
|
*/
|
|
908
1029
|
class SacCheckboxComponent extends SacCheckboxCommon {
|
|
1030
|
+
// #region Constructors
|
|
909
1031
|
/**
|
|
910
|
-
*
|
|
911
|
-
* @param
|
|
912
|
-
* @param injector
|
|
1032
|
+
*
|
|
1033
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1034
|
+
* @param injector Injector for injecting services
|
|
913
1035
|
*/
|
|
914
|
-
constructor(
|
|
915
|
-
super(
|
|
1036
|
+
constructor(formLayout, injector) {
|
|
1037
|
+
super(formLayout, injector);
|
|
916
1038
|
}
|
|
917
1039
|
}
|
|
918
|
-
SacCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacCheckboxComponent, deps: [{ token:
|
|
1040
|
+
SacCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacCheckboxComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
919
1041
|
SacCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacCheckboxComponent, selector: "sac-checkbox", providers: [
|
|
920
1042
|
{
|
|
921
1043
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -927,9 +1049,7 @@ SacCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
927
1049
|
useExisting: forwardRef(() => SacCheckboxComponent),
|
|
928
1050
|
multi: true,
|
|
929
1051
|
},
|
|
930
|
-
], usesInheritance: true, ngImport: i0, template: "<div
|
|
931
|
-
{ provide: ControlContainer, useExisting: SacFormDirective },
|
|
932
|
-
] });
|
|
1052
|
+
], usesInheritance: true, ngImport: i0, template: "<div\r\n class=\"row\"\r\n [class.no-gutters]=\"disablelabel\"\r\n [class.form-group]=\"!stacked\"\r\n>\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[!disablelabel && !stacked ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >\r\n <label *ngIf=\"!disablelabel && !stacked\" for=\"{{name}}\">{{label}}</label>\r\n </div>\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[!disablelabel && !stacked ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div class=\"form-check\">\r\n <input\r\n class=\"form-check-input\"\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"checkbox\"\r\n [checked]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (change)=\"setValue($event.target.checked)\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <label for=\"{{name}}\" class=\"form-check-label\">\r\n <ng-container *ngIf=\"checkboxtext\">{{checkboxtext}}</ng-container>\r\n </label>\r\n </div>\r\n </div>\r\n</div>\r\n", directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe } });
|
|
933
1053
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacCheckboxComponent, decorators: [{
|
|
934
1054
|
type: Component,
|
|
935
1055
|
args: [{ selector: 'sac-checkbox', providers: [
|
|
@@ -943,10 +1063,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
943
1063
|
useExisting: forwardRef(() => SacCheckboxComponent),
|
|
944
1064
|
multi: true,
|
|
945
1065
|
},
|
|
946
|
-
],
|
|
947
|
-
|
|
948
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <div class=\"col-12\" [ngClass]=\"[disablelabel === false ? 'col-sm-' + labelsize : 'sr-only' ]\">\r\n <ng-container *ngIf=\"!disablelabel\">{{label}}</ng-container>\r\n </div>\r\n <div class=\"col-12\" [ngClass]=\"[disablelabel === false ? 'col-sm-' + _inputsize : 'col-sm-12']\">\r\n <div class=\"form-check\">\r\n <input class=\"form-check-input\" id=\"{{name}}\" name=\"{{name}}\" type=\"checkbox\" [checked]=\"value\"\r\n (blur)=\"onTouch()\" (change)=\"setValue($event.target.checked)\" [disabled]=\"isdisabled\" />\r\n <label for=\"{{name}}\" class=\"form-check-label\">\r\n <ng-container *ngIf=\"checkboxtext\">{{checkboxtext}}</ng-container>\r\n </label>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
949
|
-
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
1066
|
+
], template: "<div\r\n class=\"row\"\r\n [class.no-gutters]=\"disablelabel\"\r\n [class.form-group]=\"!stacked\"\r\n>\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[!disablelabel && !stacked ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >\r\n <label *ngIf=\"!disablelabel && !stacked\" for=\"{{name}}\">{{label}}</label>\r\n </div>\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[!disablelabel && !stacked ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div class=\"form-check\">\r\n <input\r\n class=\"form-check-input\"\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"checkbox\"\r\n [checked]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (change)=\"setValue($event.target.checked)\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <label for=\"{{name}}\" class=\"form-check-label\">\r\n <ng-container *ngIf=\"checkboxtext\">{{checkboxtext}}</ng-container>\r\n </label>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1067
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
950
1068
|
type: Host
|
|
951
1069
|
}, {
|
|
952
1070
|
type: Optional
|
|
@@ -956,16 +1074,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
956
1074
|
* Radiobuttons Group Komponente
|
|
957
1075
|
*/
|
|
958
1076
|
class SacRadiobuttonsComponent extends SacRadiobuttonsCommon {
|
|
1077
|
+
// #region Constructors
|
|
959
1078
|
/**
|
|
960
|
-
*
|
|
961
|
-
* @param
|
|
962
|
-
* @param injector
|
|
1079
|
+
*
|
|
1080
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1081
|
+
* @param injector Injector for injecting services
|
|
963
1082
|
*/
|
|
964
|
-
constructor(
|
|
965
|
-
super(
|
|
1083
|
+
constructor(formLayout, injector) {
|
|
1084
|
+
super(formLayout, injector);
|
|
966
1085
|
}
|
|
967
1086
|
}
|
|
968
|
-
SacRadiobuttonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacRadiobuttonsComponent, deps: [{ token:
|
|
1087
|
+
SacRadiobuttonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacRadiobuttonsComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
969
1088
|
SacRadiobuttonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacRadiobuttonsComponent, selector: "sac-radiobuttons", providers: [
|
|
970
1089
|
{
|
|
971
1090
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -977,9 +1096,7 @@ SacRadiobuttonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
977
1096
|
useExisting: forwardRef(() => SacRadiobuttonsComponent),
|
|
978
1097
|
multi: true,
|
|
979
1098
|
},
|
|
980
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\">\r\n <div
|
|
981
|
-
{ provide: ControlContainer, useExisting: SacFormDirective },
|
|
982
|
-
] });
|
|
1099
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\">\r\n <div\r\n *ngIf=\"disablelabel === false\"\r\n class=\"col-12 col-form-label pt-0\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >\r\n <ng-container *ngIf=\"!disablelabel\">{{label}}</ng-container>\r\n </div>\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe } });
|
|
983
1100
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacRadiobuttonsComponent, decorators: [{
|
|
984
1101
|
type: Component,
|
|
985
1102
|
args: [{ selector: 'sac-radiobuttons', providers: [
|
|
@@ -993,10 +1110,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
993
1110
|
useExisting: forwardRef(() => SacRadiobuttonsComponent),
|
|
994
1111
|
multi: true,
|
|
995
1112
|
},
|
|
996
|
-
],
|
|
997
|
-
|
|
998
|
-
], template: "<div class=\"row form-group\">\r\n <div *ngIf=\"disablelabel === false\" class=\"col-form-label col-12 pt-0\"\r\n [ngClass]=\"[labelsize !== 12 ? 'col-sm-' + labelsize : 'sr-only']\">\r\n <ng-container *ngIf=\"!disablelabel\">{{label}}</ng-container>\r\n </div>\r\n <div [ngClass]=\"[disablelabel === false ? 'col-sm-' + _inputsize : 'col-sm-12']\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" }]
|
|
999
|
-
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
1113
|
+
], template: "<div class=\"row form-group\">\r\n <div\r\n *ngIf=\"disablelabel === false\"\r\n class=\"col-12 col-form-label pt-0\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >\r\n <ng-container *ngIf=\"!disablelabel\">{{label}}</ng-container>\r\n </div>\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n" }]
|
|
1114
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
1000
1115
|
type: Host
|
|
1001
1116
|
}, {
|
|
1002
1117
|
type: Optional
|
|
@@ -1026,18 +1141,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1026
1141
|
class SACBootstrap4CheckboxModule {
|
|
1027
1142
|
}
|
|
1028
1143
|
SACBootstrap4CheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4CheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1029
|
-
SACBootstrap4CheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4CheckboxModule, declarations: [SacCheckboxComponent,
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1144
|
+
SACBootstrap4CheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4CheckboxModule, declarations: [SacCheckboxComponent,
|
|
1145
|
+
SacRadiobuttonComponent,
|
|
1146
|
+
SacRadiobuttonsComponent], imports: [CommonModule, SACBootstrap4LayoutModule], exports: [SacCheckboxComponent,
|
|
1147
|
+
SacRadiobuttonComponent,
|
|
1148
|
+
SacRadiobuttonsComponent] });
|
|
1149
|
+
SACBootstrap4CheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4CheckboxModule, imports: [[CommonModule, SACBootstrap4LayoutModule]] });
|
|
1033
1150
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4CheckboxModule, decorators: [{
|
|
1034
1151
|
type: NgModule,
|
|
1035
1152
|
args: [{
|
|
1036
|
-
declarations: [
|
|
1037
|
-
|
|
1038
|
-
|
|
1153
|
+
declarations: [
|
|
1154
|
+
SacCheckboxComponent,
|
|
1155
|
+
SacRadiobuttonComponent,
|
|
1156
|
+
SacRadiobuttonsComponent,
|
|
1157
|
+
],
|
|
1158
|
+
imports: [CommonModule, SACBootstrap4LayoutModule],
|
|
1159
|
+
exports: [
|
|
1160
|
+
SacCheckboxComponent,
|
|
1161
|
+
SacRadiobuttonComponent,
|
|
1162
|
+
SacRadiobuttonsComponent,
|
|
1039
1163
|
],
|
|
1040
|
-
exports: [SacCheckboxComponent, SacRadiobuttonComponent, SacRadiobuttonsComponent]
|
|
1041
1164
|
}]
|
|
1042
1165
|
}] });
|
|
1043
1166
|
|
|
@@ -1056,22 +1179,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1056
1179
|
/**
|
|
1057
1180
|
* Referenz auf Moment.JS
|
|
1058
1181
|
*/
|
|
1059
|
-
const moment = moment_[
|
|
1182
|
+
const moment = moment_['default'];
|
|
1060
1183
|
/**
|
|
1061
1184
|
* Komponente für Datumauswahl
|
|
1062
1185
|
*/
|
|
1063
1186
|
class SacDateComponent extends SacDateCommon {
|
|
1187
|
+
// #region Constructors
|
|
1064
1188
|
/**
|
|
1065
|
-
*
|
|
1066
|
-
* @param
|
|
1067
|
-
* @param injector
|
|
1068
|
-
* @param
|
|
1189
|
+
* Constructor
|
|
1190
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1191
|
+
* @param injector Injector for injecting services
|
|
1192
|
+
* @param elementRef Reference to html dom element
|
|
1069
1193
|
*/
|
|
1070
|
-
constructor(
|
|
1071
|
-
super(
|
|
1194
|
+
constructor(formLayout, injector, elementRef) {
|
|
1195
|
+
super(formLayout, injector, elementRef);
|
|
1072
1196
|
}
|
|
1073
1197
|
}
|
|
1074
|
-
SacDateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDateComponent, deps: [{ token:
|
|
1198
|
+
SacDateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDateComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1075
1199
|
SacDateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacDateComponent, selector: "sac-date", providers: [
|
|
1076
1200
|
{
|
|
1077
1201
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -1083,9 +1207,7 @@ SacDateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
1083
1207
|
multi: true,
|
|
1084
1208
|
useExisting: forwardRef(() => SacDateComponent),
|
|
1085
1209
|
},
|
|
1086
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ?
|
|
1087
|
-
{ provide: ControlContainer, useExisting: SacFormDirective },
|
|
1088
|
-
] });
|
|
1210
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [imask]=\"imaskDate\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"valuestring\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n (blur)=\"onTouch()\"\r\n (accept)=\"setValueString($event)\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <div class=\"input-group-append\">\r\n <button\r\n class=\"btn btn-sm btn-secondary\"\r\n type=\"button\"\r\n (click)=\"showDateSelector()\"\r\n [disabled]=\"isdisabled\"\r\n >\r\n <i [class]=\"IconSelector\"></i>\r\n </button>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n <div\r\n class=\"popover fade bs-popover-bottom show\"\r\n role=\"tooltip\"\r\n *ngIf=\"_showselector\"\r\n style=\"\r\n display: block;\r\n left: unset;\r\n right: 0px;\r\n top: 34px;\r\n max-width: 325px;\r\n \"\r\n >\r\n <div class=\"arrow\" style=\"left: unset; right: 12px\"></div>\r\n <h3 class=\"popover-header\" style=\"display: none\"></h3>\r\n <div class=\"popover-body\">\r\n <sac-dateselector\r\n [initialvalue]=\"value\"\r\n (selectdate)=\"dateselect($event)\"\r\n dateselection=\"true\"\r\n ></sac-dateselector>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", components: [{ type: SacDateSelectorComponent, selector: "sac-dateselector" }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.IMaskDirective, selector: "[imask]", inputs: ["imaskElement", "imask", "unmask"], outputs: ["accept", "complete"], exportAs: ["imask"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
1089
1211
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDateComponent, decorators: [{
|
|
1090
1212
|
type: Component,
|
|
1091
1213
|
args: [{ selector: 'sac-date', providers: [
|
|
@@ -1099,10 +1221,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1099
1221
|
multi: true,
|
|
1100
1222
|
useExisting: forwardRef(() => SacDateComponent),
|
|
1101
1223
|
},
|
|
1102
|
-
],
|
|
1103
|
-
|
|
1104
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + labelsize : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + _inputsize : 'col-sm-12']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [imask]=\"imaskDate\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"valuestring\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n (blur)=\"onTouch()\"\r\n (accept)=\"setValueString($event)\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <div class=\"input-group-append\">\r\n <button\r\n class=\"btn btn-sm btn-secondary\"\r\n type=\"button\"\r\n (click)=\"showDateSelector()\"\r\n [disabled]=\"isdisabled\"\r\n >\r\n <i [class]=\"IconSelector\"></i>\r\n </button>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n <div\r\n class=\"popover fade bs-popover-bottom show\"\r\n role=\"tooltip\"\r\n *ngIf=\"_showselector\"\r\n style=\"\r\n display: block;\r\n left: unset;\r\n right: 0px;\r\n top: 34px;\r\n max-width: 325px;\r\n \"\r\n >\r\n <div class=\"arrow\" style=\"left: unset; right: 12px\"></div>\r\n <h3 class=\"popover-header\" style=\"display: none\"></h3>\r\n <div class=\"popover-body\">\r\n <sac-dateselector\r\n [initialvalue]=\"value\"\r\n (selectdate)=\"dateselect($event)\"\r\n dateselection=\"true\"\r\n ></sac-dateselector>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1105
|
-
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
1224
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [imask]=\"imaskDate\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"valuestring\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n (blur)=\"onTouch()\"\r\n (accept)=\"setValueString($event)\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <div class=\"input-group-append\">\r\n <button\r\n class=\"btn btn-sm btn-secondary\"\r\n type=\"button\"\r\n (click)=\"showDateSelector()\"\r\n [disabled]=\"isdisabled\"\r\n >\r\n <i [class]=\"IconSelector\"></i>\r\n </button>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n <div\r\n class=\"popover fade bs-popover-bottom show\"\r\n role=\"tooltip\"\r\n *ngIf=\"_showselector\"\r\n style=\"\r\n display: block;\r\n left: unset;\r\n right: 0px;\r\n top: 34px;\r\n max-width: 325px;\r\n \"\r\n >\r\n <div class=\"arrow\" style=\"left: unset; right: 12px\"></div>\r\n <h3 class=\"popover-header\" style=\"display: none\"></h3>\r\n <div class=\"popover-body\">\r\n <sac-dateselector\r\n [initialvalue]=\"value\"\r\n (selectdate)=\"dateselect($event)\"\r\n dateselection=\"true\"\r\n ></sac-dateselector>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1225
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
1106
1226
|
type: Host
|
|
1107
1227
|
}, {
|
|
1108
1228
|
type: Optional
|
|
@@ -1112,17 +1232,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1112
1232
|
* Date und Time Komponente
|
|
1113
1233
|
*/
|
|
1114
1234
|
class SacDateTimeComponent extends SacDateTimeCommon {
|
|
1235
|
+
// #region Constructors
|
|
1115
1236
|
/**
|
|
1116
|
-
*
|
|
1117
|
-
* @param
|
|
1118
|
-
* @param injector
|
|
1119
|
-
* @param
|
|
1237
|
+
* Constructor
|
|
1238
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1239
|
+
* @param injector Injector for injecting services
|
|
1240
|
+
* @param elementRef Reference to html dom element
|
|
1120
1241
|
*/
|
|
1121
|
-
constructor(
|
|
1122
|
-
super(
|
|
1242
|
+
constructor(formLayout, injector, elementRef) {
|
|
1243
|
+
super(formLayout, injector, elementRef);
|
|
1123
1244
|
}
|
|
1124
1245
|
}
|
|
1125
|
-
SacDateTimeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDateTimeComponent, deps: [{ token:
|
|
1246
|
+
SacDateTimeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDateTimeComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1126
1247
|
SacDateTimeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacDateTimeComponent, selector: "sac-datetime", providers: [
|
|
1127
1248
|
{
|
|
1128
1249
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -1134,9 +1255,7 @@ SacDateTimeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
1134
1255
|
multi: true,
|
|
1135
1256
|
useExisting: forwardRef(() => SacDateTimeComponent),
|
|
1136
1257
|
},
|
|
1137
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ?
|
|
1138
|
-
{ provide: ControlContainer, useExisting: SacFormDirective },
|
|
1139
|
-
] });
|
|
1258
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [imask]=\"imaskDate\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"valuestring\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n (blur)=\"onTouch()\"\r\n (accept)=\"setValueString($event)\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <div class=\"input-group-append\">\r\n <button\r\n class=\"btn btn-secondary\"\r\n type=\"button\"\r\n (click)=\"showDateSelector()\"\r\n [disabled]=\"isdisabled\"\r\n >\r\n <i [class]=\"IconSelector\"></i>\r\n </button>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n <div\r\n class=\"popover fade bs-popover-bottom show\"\r\n role=\"tooltip\"\r\n *ngIf=\"_showselector\"\r\n style=\"\r\n display: block;\r\n left: unset;\r\n right: 0px;\r\n top: 34px;\r\n max-width: 325px;\r\n \"\r\n >\r\n <div class=\"arrow\" style=\"left: unset; right: 12px\"></div>\r\n <h3 class=\"popover-header\" style=\"display: none\"></h3>\r\n <div class=\"popover-body\">\r\n <sac-dateselector\r\n [initialvalue]=\"value\"\r\n (selectdate)=\"dateselect($event)\"\r\n dateselection=\"true\"\r\n timeselection=\"true\"\r\n ></sac-dateselector>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", components: [{ type: SacDateSelectorComponent, selector: "sac-dateselector" }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.IMaskDirective, selector: "[imask]", inputs: ["imaskElement", "imask", "unmask"], outputs: ["accept", "complete"], exportAs: ["imask"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
1140
1259
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDateTimeComponent, decorators: [{
|
|
1141
1260
|
type: Component,
|
|
1142
1261
|
args: [{ selector: 'sac-datetime', providers: [
|
|
@@ -1150,10 +1269,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1150
1269
|
multi: true,
|
|
1151
1270
|
useExisting: forwardRef(() => SacDateTimeComponent),
|
|
1152
1271
|
},
|
|
1153
|
-
],
|
|
1154
|
-
|
|
1155
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + labelsize : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + _inputsize : 'col-sm-12']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [imask]=\"imaskDate\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"valuestring\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n (blur)=\"onTouch()\"\r\n (accept)=\"setValueString($event)\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <div class=\"input-group-append\">\r\n <button\r\n class=\"btn btn-secondary\"\r\n type=\"button\"\r\n (click)=\"showDateSelector()\"\r\n [disabled]=\"isdisabled\"\r\n >\r\n <i [class]=\"IconSelector\"></i>\r\n </button>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n <div\r\n class=\"popover fade bs-popover-bottom show\"\r\n role=\"tooltip\"\r\n *ngIf=\"_showselector\"\r\n style=\"\r\n display: block;\r\n left: unset;\r\n right: 0px;\r\n top: 34px;\r\n max-width: 325px;\r\n \"\r\n >\r\n <div class=\"arrow\" style=\"left: unset; right: 12px\"></div>\r\n <h3 class=\"popover-header\" style=\"display: none\"></h3>\r\n <div class=\"popover-body\">\r\n <sac-dateselector\r\n [initialvalue]=\"value\"\r\n (selectdate)=\"dateselect($event)\"\r\n dateselection=\"true\"\r\n timeselection=\"true\"\r\n ></sac-dateselector>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1156
|
-
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
1272
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [imask]=\"imaskDate\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"valuestring\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n (blur)=\"onTouch()\"\r\n (accept)=\"setValueString($event)\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <div class=\"input-group-append\">\r\n <button\r\n class=\"btn btn-secondary\"\r\n type=\"button\"\r\n (click)=\"showDateSelector()\"\r\n [disabled]=\"isdisabled\"\r\n >\r\n <i [class]=\"IconSelector\"></i>\r\n </button>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n <div\r\n class=\"popover fade bs-popover-bottom show\"\r\n role=\"tooltip\"\r\n *ngIf=\"_showselector\"\r\n style=\"\r\n display: block;\r\n left: unset;\r\n right: 0px;\r\n top: 34px;\r\n max-width: 325px;\r\n \"\r\n >\r\n <div class=\"arrow\" style=\"left: unset; right: 12px\"></div>\r\n <h3 class=\"popover-header\" style=\"display: none\"></h3>\r\n <div class=\"popover-body\">\r\n <sac-dateselector\r\n [initialvalue]=\"value\"\r\n (selectdate)=\"dateselect($event)\"\r\n dateselection=\"true\"\r\n timeselection=\"true\"\r\n ></sac-dateselector>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1273
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
1157
1274
|
type: Host
|
|
1158
1275
|
}, {
|
|
1159
1276
|
type: Optional
|
|
@@ -1163,17 +1280,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1163
1280
|
* Time Auswahl Komponente
|
|
1164
1281
|
*/
|
|
1165
1282
|
class SacTimeComponent extends SacTimeCommon {
|
|
1283
|
+
// #region Constructors
|
|
1166
1284
|
/**
|
|
1167
|
-
*
|
|
1168
|
-
* @param
|
|
1169
|
-
* @param injector
|
|
1170
|
-
* @param
|
|
1285
|
+
* Constructor
|
|
1286
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1287
|
+
* @param injector Injector for injecting services
|
|
1288
|
+
* @param elementRef Reference to html dom element
|
|
1171
1289
|
*/
|
|
1172
|
-
constructor(
|
|
1173
|
-
super(
|
|
1290
|
+
constructor(formLayout, injector, elementRef) {
|
|
1291
|
+
super(formLayout, injector, elementRef);
|
|
1174
1292
|
}
|
|
1175
1293
|
}
|
|
1176
|
-
SacTimeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacTimeComponent, deps: [{ token:
|
|
1294
|
+
SacTimeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacTimeComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1177
1295
|
SacTimeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacTimeComponent, selector: "sac-time", providers: [
|
|
1178
1296
|
{
|
|
1179
1297
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -1185,9 +1303,7 @@ SacTimeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
1185
1303
|
multi: true,
|
|
1186
1304
|
useExisting: forwardRef(() => SacTimeComponent),
|
|
1187
1305
|
},
|
|
1188
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ?
|
|
1189
|
-
{ provide: ControlContainer, useExisting: SacFormDirective },
|
|
1190
|
-
] });
|
|
1306
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [imask]=\"imaskDate\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"valuestring\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n (blur)=\"onTouch()\"\r\n (accept)=\"setValueString($event)\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <div class=\"input-group-append\">\r\n <button\r\n class=\"btn btn-secondary\"\r\n type=\"button\"\r\n (click)=\"showTimeSelector()\"\r\n [disabled]=\"isdisabled\"\r\n >\r\n <i [class]=\"IconSelector\"></i>\r\n </button>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n <div\r\n class=\"popover fade bs-popover-bottom show\"\r\n role=\"tooltip\"\r\n *ngIf=\"_showselector\"\r\n style=\"\r\n display: block;\r\n left: unset;\r\n right: 0px;\r\n top: 34px;\r\n max-width: 325px;\r\n \"\r\n >\r\n <div class=\"arrow\" style=\"left: unset; right: 12px\"></div>\r\n <h3 class=\"popover-header\" style=\"display: none\"></h3>\r\n <div class=\"popover-body\">\r\n <sac-dateselector\r\n [initialvalue]=\"value\"\r\n (selectdate)=\"timeselect($event)\"\r\n timeselection=\"true\"\r\n ></sac-dateselector>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", components: [{ type: SacDateSelectorComponent, selector: "sac-dateselector" }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.IMaskDirective, selector: "[imask]", inputs: ["imaskElement", "imask", "unmask"], outputs: ["accept", "complete"], exportAs: ["imask"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
1191
1307
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacTimeComponent, decorators: [{
|
|
1192
1308
|
type: Component,
|
|
1193
1309
|
args: [{ selector: 'sac-time', providers: [
|
|
@@ -1201,10 +1317,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1201
1317
|
multi: true,
|
|
1202
1318
|
useExisting: forwardRef(() => SacTimeComponent),
|
|
1203
1319
|
},
|
|
1204
|
-
],
|
|
1205
|
-
|
|
1206
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + labelsize : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + _inputsize : 'col-sm-12']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [imask]=\"imaskDate\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"valuestring\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n (blur)=\"onTouch()\"\r\n (accept)=\"setValueString($event)\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <div class=\"input-group-append\">\r\n <button\r\n class=\"btn btn-secondary\"\r\n type=\"button\"\r\n (click)=\"showTimeSelector()\"\r\n [disabled]=\"isdisabled\"\r\n >\r\n <i [class]=\"IconSelector\"></i>\r\n </button>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n <div\r\n class=\"popover fade bs-popover-bottom show\"\r\n role=\"tooltip\"\r\n *ngIf=\"_showselector\"\r\n style=\"\r\n display: block;\r\n left: unset;\r\n right: 0px;\r\n top: 34px;\r\n max-width: 325px;\r\n \"\r\n >\r\n <div class=\"arrow\" style=\"left: unset; right: 12px\"></div>\r\n <h3 class=\"popover-header\" style=\"display: none\"></h3>\r\n <div class=\"popover-body\">\r\n <sac-dateselector\r\n [initialvalue]=\"value\"\r\n (selectdate)=\"timeselect($event)\"\r\n timeselection=\"true\"\r\n ></sac-dateselector>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1207
|
-
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
1320
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [imask]=\"imaskDate\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"valuestring\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n (blur)=\"onTouch()\"\r\n (accept)=\"setValueString($event)\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <div class=\"input-group-append\">\r\n <button\r\n class=\"btn btn-secondary\"\r\n type=\"button\"\r\n (click)=\"showTimeSelector()\"\r\n [disabled]=\"isdisabled\"\r\n >\r\n <i [class]=\"IconSelector\"></i>\r\n </button>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n <div\r\n class=\"popover fade bs-popover-bottom show\"\r\n role=\"tooltip\"\r\n *ngIf=\"_showselector\"\r\n style=\"\r\n display: block;\r\n left: unset;\r\n right: 0px;\r\n top: 34px;\r\n max-width: 325px;\r\n \"\r\n >\r\n <div class=\"arrow\" style=\"left: unset; right: 12px\"></div>\r\n <h3 class=\"popover-header\" style=\"display: none\"></h3>\r\n <div class=\"popover-body\">\r\n <sac-dateselector\r\n [initialvalue]=\"value\"\r\n (selectdate)=\"timeselect($event)\"\r\n timeselection=\"true\"\r\n ></sac-dateselector>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1321
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
1208
1322
|
type: Host
|
|
1209
1323
|
}, {
|
|
1210
1324
|
type: Optional
|
|
@@ -1213,18 +1327,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1213
1327
|
class SACBootstrap4DateTimeModule {
|
|
1214
1328
|
}
|
|
1215
1329
|
SACBootstrap4DateTimeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4DateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1216
|
-
SACBootstrap4DateTimeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4DateTimeModule, declarations: [SacDateComponent,
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
]]
|
|
1330
|
+
SACBootstrap4DateTimeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4DateTimeModule, declarations: [SacDateComponent,
|
|
1331
|
+
SacDateTimeComponent,
|
|
1332
|
+
SacTimeComponent,
|
|
1333
|
+
SacDateSelectorComponent], imports: [CommonModule, IMaskModule, SACBootstrap4LayoutModule], exports: [SacDateComponent,
|
|
1334
|
+
SacDateTimeComponent,
|
|
1335
|
+
SacTimeComponent,
|
|
1336
|
+
SacDateSelectorComponent] });
|
|
1337
|
+
SACBootstrap4DateTimeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4DateTimeModule, imports: [[CommonModule, IMaskModule, SACBootstrap4LayoutModule]] });
|
|
1220
1338
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4DateTimeModule, decorators: [{
|
|
1221
1339
|
type: NgModule,
|
|
1222
1340
|
args: [{
|
|
1223
|
-
declarations: [
|
|
1224
|
-
|
|
1225
|
-
|
|
1341
|
+
declarations: [
|
|
1342
|
+
SacDateComponent,
|
|
1343
|
+
SacDateTimeComponent,
|
|
1344
|
+
SacTimeComponent,
|
|
1345
|
+
SacDateSelectorComponent,
|
|
1346
|
+
],
|
|
1347
|
+
imports: [CommonModule, IMaskModule, SACBootstrap4LayoutModule],
|
|
1348
|
+
exports: [
|
|
1349
|
+
SacDateComponent,
|
|
1350
|
+
SacDateTimeComponent,
|
|
1351
|
+
SacTimeComponent,
|
|
1352
|
+
SacDateSelectorComponent,
|
|
1226
1353
|
],
|
|
1227
|
-
exports: [SacDateComponent, SacDateTimeComponent, SacTimeComponent, SacDateSelectorComponent]
|
|
1228
1354
|
}]
|
|
1229
1355
|
}] });
|
|
1230
1356
|
|
|
@@ -1455,16 +1581,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1455
1581
|
* Input Komponente
|
|
1456
1582
|
*/
|
|
1457
1583
|
class SacInputComponent extends SacInputCommon {
|
|
1584
|
+
// #region Constructors
|
|
1458
1585
|
/**
|
|
1459
|
-
*
|
|
1460
|
-
* @param
|
|
1461
|
-
* @param injector
|
|
1586
|
+
* Constructor
|
|
1587
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1588
|
+
* @param injector Injector for injecting services
|
|
1462
1589
|
*/
|
|
1463
|
-
constructor(
|
|
1464
|
-
super(
|
|
1590
|
+
constructor(formLayout, injector) {
|
|
1591
|
+
super(formLayout, injector);
|
|
1465
1592
|
}
|
|
1466
1593
|
}
|
|
1467
|
-
SacInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputComponent, deps: [{ token:
|
|
1594
|
+
SacInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1468
1595
|
SacInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacInputComponent, selector: "sac-input", providers: [
|
|
1469
1596
|
{ provide: NG_VALUE_ACCESSOR, multi: true, useExisting: SacInputComponent },
|
|
1470
1597
|
{
|
|
@@ -1472,7 +1599,7 @@ SacInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
1472
1599
|
multi: true,
|
|
1473
1600
|
useExisting: forwardRef(() => SacInputComponent),
|
|
1474
1601
|
},
|
|
1475
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ?
|
|
1602
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"value\"\r\n [attr.placeholder]=\"placeholder\"\r\n [readonly]=\"readonly\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n (keypress)=\"onKeyPress($event)\"\r\n [attr.maxlength]=\"maxlength\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n", directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
1476
1603
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputComponent, decorators: [{
|
|
1477
1604
|
type: Component,
|
|
1478
1605
|
args: [{ selector: 'sac-input', providers: [
|
|
@@ -1482,208 +1609,196 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1482
1609
|
multi: true,
|
|
1483
1610
|
useExisting: forwardRef(() => SacInputComponent),
|
|
1484
1611
|
},
|
|
1485
|
-
],
|
|
1486
|
-
}], ctorParameters: function () { return [{ type:
|
|
1612
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"value\"\r\n [attr.placeholder]=\"placeholder\"\r\n [readonly]=\"readonly\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n (keypress)=\"onKeyPress($event)\"\r\n [attr.maxlength]=\"maxlength\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1613
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
1487
1614
|
type: Host
|
|
1488
1615
|
}, {
|
|
1489
1616
|
type: Optional
|
|
1490
1617
|
}] }, { type: i0.Injector }]; } });
|
|
1491
1618
|
|
|
1492
1619
|
/**
|
|
1493
|
-
* Input Box für
|
|
1620
|
+
* Input Box für lange Texte
|
|
1494
1621
|
*/
|
|
1495
|
-
class
|
|
1622
|
+
class SacInputAreaComponent extends SacInputAreaCommon {
|
|
1623
|
+
// #region Constructors
|
|
1496
1624
|
/**
|
|
1497
|
-
*
|
|
1498
|
-
* @param
|
|
1499
|
-
* @param injector
|
|
1625
|
+
* Constructor
|
|
1626
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1627
|
+
* @param injector Injector for injecting services
|
|
1500
1628
|
*/
|
|
1501
|
-
constructor(
|
|
1502
|
-
super(
|
|
1629
|
+
constructor(formLayout, injector) {
|
|
1630
|
+
super(formLayout, injector);
|
|
1503
1631
|
}
|
|
1504
1632
|
}
|
|
1505
|
-
|
|
1506
|
-
|
|
1633
|
+
SacInputAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputAreaComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1634
|
+
SacInputAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacInputAreaComponent, selector: "sac-inputarea", providers: [
|
|
1507
1635
|
{
|
|
1508
1636
|
provide: NG_VALUE_ACCESSOR,
|
|
1509
1637
|
multi: true,
|
|
1510
|
-
useExisting: forwardRef(() =>
|
|
1638
|
+
useExisting: forwardRef(() => SacInputAreaComponent),
|
|
1511
1639
|
},
|
|
1512
1640
|
{
|
|
1513
1641
|
provide: NG_VALIDATORS,
|
|
1514
1642
|
multi: true,
|
|
1515
|
-
useExisting: forwardRef(() =>
|
|
1643
|
+
useExisting: forwardRef(() => SacInputAreaComponent),
|
|
1516
1644
|
},
|
|
1517
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ?
|
|
1518
|
-
|
|
1519
|
-
] });
|
|
1520
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputEmailComponent, decorators: [{
|
|
1645
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <textarea\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"value\"\r\n [attr.placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n (keypress)=\"onKeyPress($event)\"\r\n [attr.rows]=\"rows\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n [attr.maxlength]=\"maxlength\"\r\n [readonly]=\"readonly\"\r\n ></textarea>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n", directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
1646
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputAreaComponent, decorators: [{
|
|
1521
1647
|
type: Component,
|
|
1522
|
-
args: [{ selector: 'sac-
|
|
1648
|
+
args: [{ selector: 'sac-inputarea', providers: [
|
|
1523
1649
|
{
|
|
1524
1650
|
provide: NG_VALUE_ACCESSOR,
|
|
1525
1651
|
multi: true,
|
|
1526
|
-
useExisting: forwardRef(() =>
|
|
1652
|
+
useExisting: forwardRef(() => SacInputAreaComponent),
|
|
1527
1653
|
},
|
|
1528
1654
|
{
|
|
1529
1655
|
provide: NG_VALIDATORS,
|
|
1530
1656
|
multi: true,
|
|
1531
|
-
useExisting: forwardRef(() =>
|
|
1657
|
+
useExisting: forwardRef(() => SacInputAreaComponent),
|
|
1532
1658
|
},
|
|
1533
|
-
],
|
|
1534
|
-
|
|
1535
|
-
], template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + labelsize : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + _inputsize : 'col-sm-12']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <div class=\"input-group-prepend\">\r\n <span class=\"input-group-text\">@</span>\r\n </div>\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.placeholder]=\"placeholder\"\r\n [attr.maxlength]=\"maxlength\"\r\n autocomplete=\"email\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\"\r\n />\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1536
|
-
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
1659
|
+
], template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <textarea\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"value\"\r\n [attr.placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n (keypress)=\"onKeyPress($event)\"\r\n [attr.rows]=\"rows\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n [attr.maxlength]=\"maxlength\"\r\n [readonly]=\"readonly\"\r\n ></textarea>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1660
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
1537
1661
|
type: Host
|
|
1538
1662
|
}, {
|
|
1539
1663
|
type: Optional
|
|
1540
1664
|
}] }, { type: i0.Injector }]; } });
|
|
1541
1665
|
|
|
1542
1666
|
/**
|
|
1543
|
-
* Input
|
|
1667
|
+
* Input Control für Währungen
|
|
1544
1668
|
*/
|
|
1545
|
-
class
|
|
1669
|
+
class SacInputCurrencyComponent extends SacInputCurrencyCommon {
|
|
1670
|
+
// #region Constructors
|
|
1546
1671
|
/**
|
|
1547
|
-
*
|
|
1548
|
-
* @param
|
|
1549
|
-
* @param injector
|
|
1672
|
+
* Constructor
|
|
1673
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1674
|
+
* @param injector Injector for injecting services
|
|
1550
1675
|
*/
|
|
1551
|
-
constructor(
|
|
1552
|
-
super(
|
|
1676
|
+
constructor(formLayout, injector) {
|
|
1677
|
+
super(formLayout, injector);
|
|
1553
1678
|
}
|
|
1554
1679
|
}
|
|
1555
|
-
|
|
1556
|
-
|
|
1680
|
+
SacInputCurrencyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputCurrencyComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1681
|
+
SacInputCurrencyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacInputCurrencyComponent, selector: "sac-inputcurrency", providers: [
|
|
1557
1682
|
{
|
|
1558
1683
|
provide: NG_VALUE_ACCESSOR,
|
|
1559
1684
|
multi: true,
|
|
1560
|
-
useExisting: forwardRef(() =>
|
|
1685
|
+
useExisting: forwardRef(() => SacInputCurrencyComponent),
|
|
1561
1686
|
},
|
|
1562
1687
|
{
|
|
1563
1688
|
provide: NG_VALIDATORS,
|
|
1564
1689
|
multi: true,
|
|
1565
|
-
useExisting: forwardRef(() =>
|
|
1690
|
+
useExisting: forwardRef(() => SacInputCurrencyComponent),
|
|
1566
1691
|
},
|
|
1567
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"form-group
|
|
1568
|
-
|
|
1569
|
-
] });
|
|
1570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputAreaComponent, decorators: [{
|
|
1692
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.placeholder]=\"placeholder\"\r\n (keypress)=\"onKeyPress($event)\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n />\r\n <div class=\"input-group-append\">\r\n <span class=\"input-group-text\">CHF</span>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
1693
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputCurrencyComponent, decorators: [{
|
|
1571
1694
|
type: Component,
|
|
1572
|
-
args: [{ selector: 'sac-
|
|
1695
|
+
args: [{ selector: 'sac-inputcurrency', providers: [
|
|
1573
1696
|
{
|
|
1574
1697
|
provide: NG_VALUE_ACCESSOR,
|
|
1575
1698
|
multi: true,
|
|
1576
|
-
useExisting: forwardRef(() =>
|
|
1699
|
+
useExisting: forwardRef(() => SacInputCurrencyComponent),
|
|
1577
1700
|
},
|
|
1578
1701
|
{
|
|
1579
1702
|
provide: NG_VALIDATORS,
|
|
1580
1703
|
multi: true,
|
|
1581
|
-
useExisting: forwardRef(() =>
|
|
1704
|
+
useExisting: forwardRef(() => SacInputCurrencyComponent),
|
|
1582
1705
|
},
|
|
1583
|
-
],
|
|
1584
|
-
|
|
1585
|
-
], template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + labelsize : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + _inputsize : 'col-sm-12']\"\r\n >\r\n <textarea\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"value\"\r\n [attr.placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n (keypress)=\"onKeyPress($event)\"\r\n [attr.rows]=\"rows\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n [attr.maxlength]=\"maxlength\"\r\n [readonly]=\"readonly\"\r\n ></textarea>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1586
|
-
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
1706
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.placeholder]=\"placeholder\"\r\n (keypress)=\"onKeyPress($event)\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n />\r\n <div class=\"input-group-append\">\r\n <span class=\"input-group-text\">CHF</span>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1707
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
1587
1708
|
type: Host
|
|
1588
1709
|
}, {
|
|
1589
1710
|
type: Optional
|
|
1590
1711
|
}] }, { type: i0.Injector }]; } });
|
|
1591
1712
|
|
|
1592
1713
|
/**
|
|
1593
|
-
* Input
|
|
1714
|
+
* Input Komponente für Zahlen
|
|
1594
1715
|
*/
|
|
1595
|
-
class
|
|
1716
|
+
class SacInputDecimalComponent extends SacInputDecimalCommon {
|
|
1717
|
+
// #region Constructors
|
|
1596
1718
|
/**
|
|
1597
|
-
*
|
|
1598
|
-
* @param
|
|
1599
|
-
* @param injector
|
|
1719
|
+
* Constructor
|
|
1720
|
+
* @param formlayout SacFormLayoutCommon to define scoped layout settings
|
|
1721
|
+
* @param injector Injector for injecting services
|
|
1600
1722
|
*/
|
|
1601
|
-
constructor(
|
|
1602
|
-
super(
|
|
1723
|
+
constructor(formlayout, injector) {
|
|
1724
|
+
super(formlayout, injector);
|
|
1603
1725
|
}
|
|
1604
1726
|
}
|
|
1605
|
-
|
|
1606
|
-
|
|
1727
|
+
SacInputDecimalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputDecimalComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1728
|
+
SacInputDecimalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacInputDecimalComponent, selector: "sac-inputdecimal", providers: [
|
|
1607
1729
|
{
|
|
1608
1730
|
provide: NG_VALUE_ACCESSOR,
|
|
1609
1731
|
multi: true,
|
|
1610
|
-
useExisting: forwardRef(() =>
|
|
1732
|
+
useExisting: forwardRef(() => SacInputDecimalComponent),
|
|
1611
1733
|
},
|
|
1612
1734
|
{
|
|
1613
1735
|
provide: NG_VALIDATORS,
|
|
1614
1736
|
multi: true,
|
|
1615
|
-
useExisting: forwardRef(() =>
|
|
1737
|
+
useExisting: forwardRef(() => SacInputDecimalComponent),
|
|
1616
1738
|
},
|
|
1617
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ?
|
|
1618
|
-
|
|
1619
|
-
] });
|
|
1620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputCurrencyComponent, decorators: [{
|
|
1739
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.placeholder]=\"placeholder\"\r\n [readonly]=\"readonly\"\r\n (keypress)=\"onKeyPress($event)\"\r\n [disabled]=\"isdisabled\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n />\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n", directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
1740
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputDecimalComponent, decorators: [{
|
|
1621
1741
|
type: Component,
|
|
1622
|
-
args: [{ selector: 'sac-
|
|
1742
|
+
args: [{ selector: 'sac-inputdecimal', providers: [
|
|
1623
1743
|
{
|
|
1624
1744
|
provide: NG_VALUE_ACCESSOR,
|
|
1625
1745
|
multi: true,
|
|
1626
|
-
useExisting: forwardRef(() =>
|
|
1746
|
+
useExisting: forwardRef(() => SacInputDecimalComponent),
|
|
1627
1747
|
},
|
|
1628
1748
|
{
|
|
1629
1749
|
provide: NG_VALIDATORS,
|
|
1630
1750
|
multi: true,
|
|
1631
|
-
useExisting: forwardRef(() =>
|
|
1751
|
+
useExisting: forwardRef(() => SacInputDecimalComponent),
|
|
1632
1752
|
},
|
|
1633
|
-
],
|
|
1634
|
-
|
|
1635
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + labelsize : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + _inputsize : 'col-sm-12']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.placeholder]=\"placeholder\"\r\n (keypress)=\"onKeyPress($event)\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n />\r\n <div class=\"input-group-append\">\r\n <span class=\"input-group-text\">CHF</span>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1636
|
-
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
1753
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.placeholder]=\"placeholder\"\r\n [readonly]=\"readonly\"\r\n (keypress)=\"onKeyPress($event)\"\r\n [disabled]=\"isdisabled\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n />\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1754
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
1637
1755
|
type: Host
|
|
1638
1756
|
}, {
|
|
1639
1757
|
type: Optional
|
|
1640
1758
|
}] }, { type: i0.Injector }]; } });
|
|
1641
1759
|
|
|
1642
1760
|
/**
|
|
1643
|
-
* Input
|
|
1761
|
+
* Input Box für E-Mail Adressen
|
|
1644
1762
|
*/
|
|
1645
|
-
class
|
|
1763
|
+
class SacInputEmailComponent extends SacInputEmailCommon {
|
|
1764
|
+
// #region Constructors
|
|
1646
1765
|
/**
|
|
1647
|
-
*
|
|
1648
|
-
* @param
|
|
1649
|
-
* @param injector
|
|
1766
|
+
* Constructor
|
|
1767
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1768
|
+
* @param injector Injector for injecting services
|
|
1650
1769
|
*/
|
|
1651
|
-
constructor(
|
|
1652
|
-
super(
|
|
1770
|
+
constructor(formLayout, injector) {
|
|
1771
|
+
super(formLayout, injector);
|
|
1653
1772
|
}
|
|
1654
1773
|
}
|
|
1655
|
-
|
|
1656
|
-
|
|
1774
|
+
SacInputEmailComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputEmailComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1775
|
+
SacInputEmailComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacInputEmailComponent, selector: "sac-inputemail", providers: [
|
|
1657
1776
|
{
|
|
1658
1777
|
provide: NG_VALUE_ACCESSOR,
|
|
1659
1778
|
multi: true,
|
|
1660
|
-
useExisting: forwardRef(() =>
|
|
1779
|
+
useExisting: forwardRef(() => SacInputEmailComponent),
|
|
1661
1780
|
},
|
|
1662
1781
|
{
|
|
1663
1782
|
provide: NG_VALIDATORS,
|
|
1664
1783
|
multi: true,
|
|
1665
|
-
useExisting: forwardRef(() =>
|
|
1784
|
+
useExisting: forwardRef(() => SacInputEmailComponent),
|
|
1666
1785
|
},
|
|
1667
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"
|
|
1668
|
-
|
|
1669
|
-
] });
|
|
1670
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputDecimalComponent, decorators: [{
|
|
1786
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <div class=\"input-group-prepend\">\r\n <span class=\"input-group-text\">@</span>\r\n </div>\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.placeholder]=\"placeholder\"\r\n [attr.maxlength]=\"maxlength\"\r\n autocomplete=\"email\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\"\r\n />\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
1787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputEmailComponent, decorators: [{
|
|
1671
1788
|
type: Component,
|
|
1672
|
-
args: [{ selector: 'sac-
|
|
1789
|
+
args: [{ selector: 'sac-inputemail', providers: [
|
|
1673
1790
|
{
|
|
1674
1791
|
provide: NG_VALUE_ACCESSOR,
|
|
1675
1792
|
multi: true,
|
|
1676
|
-
useExisting: forwardRef(() =>
|
|
1793
|
+
useExisting: forwardRef(() => SacInputEmailComponent),
|
|
1677
1794
|
},
|
|
1678
1795
|
{
|
|
1679
1796
|
provide: NG_VALIDATORS,
|
|
1680
1797
|
multi: true,
|
|
1681
|
-
useExisting: forwardRef(() =>
|
|
1798
|
+
useExisting: forwardRef(() => SacInputEmailComponent),
|
|
1682
1799
|
},
|
|
1683
|
-
],
|
|
1684
|
-
|
|
1685
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + labelsize : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + _inputsize : 'col-sm-12']\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.placeholder]=\"placeholder\"\r\n [readonly]=\"readonly\"\r\n (keypress)=\"onKeyPress($event)\"\r\n [disabled]=\"isdisabled\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n />\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n\r\n </div>\r\n</div>\r\n" }]
|
|
1686
|
-
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
1800
|
+
], template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <div class=\"input-group-prepend\">\r\n <span class=\"input-group-text\">@</span>\r\n </div>\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.placeholder]=\"placeholder\"\r\n [attr.maxlength]=\"maxlength\"\r\n autocomplete=\"email\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\"\r\n />\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1801
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
1687
1802
|
type: Host
|
|
1688
1803
|
}, {
|
|
1689
1804
|
type: Optional
|
|
@@ -1693,16 +1808,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1693
1808
|
* Input Komponten für Ganzzahlen
|
|
1694
1809
|
*/
|
|
1695
1810
|
class SacInputIntegerComponent extends SacInputIntegerCommon {
|
|
1811
|
+
// #region Constructors
|
|
1696
1812
|
/**
|
|
1697
|
-
*
|
|
1698
|
-
* @param
|
|
1699
|
-
* @param injector
|
|
1813
|
+
* Constructor
|
|
1814
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1815
|
+
* @param injector Injector for injecting services
|
|
1700
1816
|
*/
|
|
1701
|
-
constructor(
|
|
1702
|
-
super(
|
|
1817
|
+
constructor(formLayout, injector) {
|
|
1818
|
+
super(formLayout, injector);
|
|
1703
1819
|
}
|
|
1704
1820
|
}
|
|
1705
|
-
SacInputIntegerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputIntegerComponent, deps: [{ token:
|
|
1821
|
+
SacInputIntegerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputIntegerComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1706
1822
|
SacInputIntegerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacInputIntegerComponent, selector: "sac-inputinteger", providers: [
|
|
1707
1823
|
{
|
|
1708
1824
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -1714,9 +1830,7 @@ SacInputIntegerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
1714
1830
|
multi: true,
|
|
1715
1831
|
useExisting: forwardRef(() => SacInputIntegerComponent),
|
|
1716
1832
|
},
|
|
1717
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ?
|
|
1718
|
-
{ provide: ControlContainer, useExisting: SacFormDirective },
|
|
1719
|
-
] });
|
|
1833
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.placeholder]=\"placeholder\"\r\n (keypress)=\"onKeyPress($event)\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n />\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n", directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
1720
1834
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputIntegerComponent, decorators: [{
|
|
1721
1835
|
type: Component,
|
|
1722
1836
|
args: [{ selector: 'sac-inputinteger', providers: [
|
|
@@ -1730,10 +1844,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1730
1844
|
multi: true,
|
|
1731
1845
|
useExisting: forwardRef(() => SacInputIntegerComponent),
|
|
1732
1846
|
},
|
|
1733
|
-
],
|
|
1734
|
-
|
|
1735
|
-
], template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + labelsize : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + _inputsize : 'col-sm-12']\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.placeholder]=\"placeholder\"\r\n (keypress)=\"onKeyPress($event)\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n />\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1736
|
-
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
1847
|
+
], template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.placeholder]=\"placeholder\"\r\n (keypress)=\"onKeyPress($event)\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n />\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1848
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
1737
1849
|
type: Host
|
|
1738
1850
|
}, {
|
|
1739
1851
|
type: Optional
|
|
@@ -1743,16 +1855,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1743
1855
|
* Input Box für Passwörter
|
|
1744
1856
|
*/
|
|
1745
1857
|
class SacInputPasswordComponent extends SacInputPasswordCommon {
|
|
1858
|
+
// #region Constructors
|
|
1746
1859
|
/**
|
|
1747
|
-
*
|
|
1748
|
-
* @param
|
|
1749
|
-
* @param injector
|
|
1860
|
+
* Constructor
|
|
1861
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1862
|
+
* @param injector Injector for injecting services
|
|
1750
1863
|
*/
|
|
1751
|
-
constructor(
|
|
1752
|
-
super(
|
|
1864
|
+
constructor(formLayout, injector) {
|
|
1865
|
+
super(formLayout, injector);
|
|
1753
1866
|
}
|
|
1754
1867
|
}
|
|
1755
|
-
SacInputPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputPasswordComponent, deps: [{ token:
|
|
1868
|
+
SacInputPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputPasswordComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1756
1869
|
SacInputPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacInputPasswordComponent, selector: "sac-inputpassword", providers: [
|
|
1757
1870
|
{
|
|
1758
1871
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -1764,9 +1877,7 @@ SacInputPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
1764
1877
|
multi: true,
|
|
1765
1878
|
useExisting: forwardRef(() => SacInputPasswordComponent),
|
|
1766
1879
|
},
|
|
1767
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ?
|
|
1768
|
-
{ provide: ControlContainer, useExisting: SacFormDirective },
|
|
1769
|
-
] });
|
|
1880
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"password\"\r\n class=\"form-control form-control-sm\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.maxlength]=\"maxlength\"\r\n autocomplete=\"new-password\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\"\r\n />\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n", directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
1770
1881
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputPasswordComponent, decorators: [{
|
|
1771
1882
|
type: Component,
|
|
1772
1883
|
args: [{ selector: 'sac-inputpassword', providers: [
|
|
@@ -1780,10 +1891,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1780
1891
|
multi: true,
|
|
1781
1892
|
useExisting: forwardRef(() => SacInputPasswordComponent),
|
|
1782
1893
|
},
|
|
1783
|
-
],
|
|
1784
|
-
|
|
1785
|
-
], template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + labelsize : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + _inputsize : 'col-sm-12']\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"password\"\r\n class=\"form-control form-control-sm\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.maxlength]=\"maxlength\"\r\n autocomplete=\"new-password\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\"\r\n />\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1786
|
-
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
1894
|
+
], template: "<div class=\"form-group row\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"password\"\r\n class=\"form-control form-control-sm\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"value\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.maxlength]=\"maxlength\"\r\n autocomplete=\"new-password\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\"\r\n />\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1895
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
1787
1896
|
type: Host
|
|
1788
1897
|
}, {
|
|
1789
1898
|
type: Optional
|
|
@@ -1793,16 +1902,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1793
1902
|
* Input Box für Suche
|
|
1794
1903
|
*/
|
|
1795
1904
|
class SacInputSearchComponent extends SacInputSearchCommon {
|
|
1905
|
+
// #region Constructors
|
|
1796
1906
|
/**
|
|
1797
|
-
*
|
|
1798
|
-
* @param
|
|
1799
|
-
* @param injector
|
|
1907
|
+
* Constructor
|
|
1908
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1909
|
+
* @param injector Injector for injecting services
|
|
1800
1910
|
*/
|
|
1801
|
-
constructor(
|
|
1802
|
-
super(
|
|
1911
|
+
constructor(formLayout, injector) {
|
|
1912
|
+
super(formLayout, injector);
|
|
1803
1913
|
}
|
|
1804
1914
|
}
|
|
1805
|
-
SacInputSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputSearchComponent, deps: [{ token:
|
|
1915
|
+
SacInputSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputSearchComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1806
1916
|
SacInputSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacInputSearchComponent, selector: "sac-inputsearch", providers: [
|
|
1807
1917
|
{
|
|
1808
1918
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -1814,7 +1924,7 @@ SacInputSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
1814
1924
|
multi: true,
|
|
1815
1925
|
useExisting: forwardRef(() => SacInputSearchComponent),
|
|
1816
1926
|
},
|
|
1817
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !
|
|
1927
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}_label\"\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n [class.required]=\"isrequired\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div class=\"input-group input-group-sm\">\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [value]=\"value\"\r\n [attr.placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.maxlength]=\"maxlength\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\"\r\n />\r\n <div class=\"input-group-append\">\r\n <input\r\n type=\"submit\"\r\n class=\"btn btn-secondary\"\r\n id=\"{{name}}_search\"\r\n (click)=\"searchClick()\"\r\n [value]=\"buttontext\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe } });
|
|
1818
1928
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacInputSearchComponent, decorators: [{
|
|
1819
1929
|
type: Component,
|
|
1820
1930
|
args: [{ selector: 'sac-inputsearch', providers: [
|
|
@@ -1828,8 +1938,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1828
1938
|
multi: true,
|
|
1829
1939
|
useExisting: forwardRef(() => SacInputSearchComponent),
|
|
1830
1940
|
},
|
|
1831
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !
|
|
1832
|
-
}], ctorParameters: function () { return [{ type:
|
|
1941
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}_label\"\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n [class.required]=\"isrequired\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div class=\"input-group input-group-sm\">\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [value]=\"value\"\r\n [attr.placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n [attr.maxlength]=\"maxlength\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\"\r\n />\r\n <div class=\"input-group-append\">\r\n <input\r\n type=\"submit\"\r\n class=\"btn btn-secondary\"\r\n id=\"{{name}}_search\"\r\n (click)=\"searchClick()\"\r\n [value]=\"buttontext\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1942
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
1833
1943
|
type: Host
|
|
1834
1944
|
}, {
|
|
1835
1945
|
type: Optional
|
|
@@ -1838,200 +1948,222 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1838
1948
|
class SACBootstrap4InputModule {
|
|
1839
1949
|
}
|
|
1840
1950
|
SACBootstrap4InputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4InputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1841
|
-
SACBootstrap4InputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4InputModule, declarations: [SacInputComponent,
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1951
|
+
SACBootstrap4InputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4InputModule, declarations: [SacInputComponent,
|
|
1952
|
+
SacInputAreaComponent,
|
|
1953
|
+
SacInputCurrencyComponent,
|
|
1954
|
+
SacInputDecimalComponent,
|
|
1955
|
+
SacInputEmailComponent,
|
|
1956
|
+
SacInputIntegerComponent,
|
|
1957
|
+
SacInputPasswordComponent,
|
|
1958
|
+
SacInputSearchComponent], imports: [CommonModule, SACBootstrap4LayoutModule], exports: [SacInputComponent,
|
|
1959
|
+
SacInputAreaComponent,
|
|
1960
|
+
SacInputCurrencyComponent,
|
|
1961
|
+
SacInputDecimalComponent,
|
|
1962
|
+
SacInputEmailComponent,
|
|
1963
|
+
SacInputIntegerComponent,
|
|
1964
|
+
SacInputPasswordComponent,
|
|
1965
|
+
SacInputSearchComponent] });
|
|
1966
|
+
SACBootstrap4InputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4InputModule, imports: [[CommonModule, SACBootstrap4LayoutModule]] });
|
|
1845
1967
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4InputModule, decorators: [{
|
|
1846
1968
|
type: NgModule,
|
|
1847
1969
|
args: [{
|
|
1848
|
-
declarations: [
|
|
1849
|
-
|
|
1850
|
-
|
|
1970
|
+
declarations: [
|
|
1971
|
+
SacInputComponent,
|
|
1972
|
+
SacInputAreaComponent,
|
|
1973
|
+
SacInputCurrencyComponent,
|
|
1974
|
+
SacInputDecimalComponent,
|
|
1975
|
+
SacInputEmailComponent,
|
|
1976
|
+
SacInputIntegerComponent,
|
|
1977
|
+
SacInputPasswordComponent,
|
|
1978
|
+
SacInputSearchComponent,
|
|
1979
|
+
],
|
|
1980
|
+
imports: [CommonModule, SACBootstrap4LayoutModule],
|
|
1981
|
+
exports: [
|
|
1982
|
+
SacInputComponent,
|
|
1983
|
+
SacInputAreaComponent,
|
|
1984
|
+
SacInputCurrencyComponent,
|
|
1985
|
+
SacInputDecimalComponent,
|
|
1986
|
+
SacInputEmailComponent,
|
|
1987
|
+
SacInputIntegerComponent,
|
|
1988
|
+
SacInputPasswordComponent,
|
|
1989
|
+
SacInputSearchComponent,
|
|
1851
1990
|
],
|
|
1852
|
-
exports: [SacInputComponent, SacInputAreaComponent, SacInputCurrencyComponent, SacInputDecimalComponent, SacInputEmailComponent, SacInputIntegerComponent, SacInputPasswordComponent, SacInputSearchComponent]
|
|
1853
1991
|
}]
|
|
1854
1992
|
}] });
|
|
1855
1993
|
|
|
1994
|
+
// #region Classes
|
|
1856
1995
|
/**
|
|
1857
|
-
*
|
|
1996
|
+
* Dropdown Komponente
|
|
1858
1997
|
*/
|
|
1859
|
-
class
|
|
1998
|
+
class SacDropdownComponent extends SacDropdownCommon {
|
|
1999
|
+
// #region Constructors
|
|
1860
2000
|
/**
|
|
1861
|
-
*
|
|
1862
|
-
* @param
|
|
1863
|
-
* @param injector
|
|
2001
|
+
* Constructor
|
|
2002
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
2003
|
+
* @param injector Injector for injecting services
|
|
2004
|
+
* @param renderer Angular rendering engine
|
|
2005
|
+
* @param elementRef Reference to html dom element
|
|
1864
2006
|
*/
|
|
1865
|
-
constructor(
|
|
1866
|
-
super(
|
|
2007
|
+
constructor(formLayout, injector, renderer, elementRef) {
|
|
2008
|
+
super(formLayout, injector, renderer, elementRef);
|
|
1867
2009
|
}
|
|
1868
2010
|
}
|
|
1869
|
-
|
|
1870
|
-
|
|
2011
|
+
SacDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDropdownComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2012
|
+
SacDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacDropdownComponent, selector: "sac-dropdown", providers: [
|
|
1871
2013
|
{
|
|
1872
2014
|
provide: NG_VALUE_ACCESSOR,
|
|
1873
2015
|
multi: true,
|
|
1874
|
-
useExisting:
|
|
2016
|
+
useExisting: SacDropdownComponent,
|
|
1875
2017
|
},
|
|
1876
2018
|
{
|
|
1877
2019
|
provide: NG_VALIDATORS,
|
|
1878
2020
|
multi: true,
|
|
1879
|
-
useExisting: forwardRef(() =>
|
|
2021
|
+
useExisting: forwardRef(() => SacDropdownComponent),
|
|
1880
2022
|
},
|
|
1881
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ?
|
|
1882
|
-
|
|
1883
|
-
] });
|
|
1884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacListboxComponent, decorators: [{
|
|
2023
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <select\r\n #dropdownitem\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n class=\"form-control form-control-sm\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n (blur)=\"onTouch()\"\r\n (change)=\"setValue(dropdownitem.value)\"\r\n [disabled]=\"isdisabled\"\r\n >\r\n <option *ngIf=\"emptylabel !== ''\" [ngValue]=\"emptyvalue\">\r\n {{emptylabel}}\r\n </option>\r\n\r\n <ng-content></ng-content>\r\n\r\n <ng-container *ngIf=\"groupitems === ''\">\r\n <option\r\n *ngFor=\"let item of options\"\r\n [ngValue]=\"optionvalue ? item[optionvalue] : item\"\r\n [disabled]=\"optionenabled !== '' && item[optionenabled] === false\"\r\n >\r\n <ng-template\r\n *ngTemplateOutlet=\"optionlabeltemplate || defaultItemLabelTemplate;context:{ label: item[optionlabel], item: item }\"\r\n >\r\n </ng-template>\r\n </option>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"groupitems !== ''\">\r\n <optgroup\r\n *ngFor=\"let group of options\"\r\n [attr.label]=\"group[grouplabel]\"\r\n >\r\n <option\r\n *ngFor=\"let item of group[groupitems]\"\r\n [ngValue]=\"optionvalue ? item[optionvalue] : item\"\r\n [disabled]=\"optionenabled !== '' && item[optionenabled] === false\"\r\n >\r\n <ng-template\r\n *ngTemplateOutlet=\"optionlabeltemplate || defaultItemLabelTemplate;context:{ label: item[optionlabel], item: item }\"\r\n >\r\n </ng-template>\r\n </option>\r\n </optgroup>\r\n </ng-container>\r\n </select>\r\n <div\r\n class=\"invalid-feedback\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #defaultItemLabelTemplate let-label=\"label\">\r\n {{label}}\r\n</ng-template>\r\n", directives: [{ type: i0.forwardRef(function () { return i2.NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i0.forwardRef(function () { return i2.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i0.forwardRef(function () { return SacDropdownOptionDirective; }), selector: "[sacOption],option" }, { type: i0.forwardRef(function () { return i2.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i0.forwardRef(function () { return i2.NgTemplateOutlet; }), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "toLabelWidthCss": i0.forwardRef(function () { return SacToLabelWidthCssPipe; }), "toControlWidthCss": i0.forwardRef(function () { return SacToControlWidthCssPipe; }), "async": i0.forwardRef(function () { return i2.AsyncPipe; }) } });
|
|
2024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDropdownComponent, decorators: [{
|
|
1885
2025
|
type: Component,
|
|
1886
|
-
args: [{ selector: 'sac-
|
|
2026
|
+
args: [{ selector: 'sac-dropdown', providers: [
|
|
1887
2027
|
{
|
|
1888
2028
|
provide: NG_VALUE_ACCESSOR,
|
|
1889
2029
|
multi: true,
|
|
1890
|
-
useExisting:
|
|
2030
|
+
useExisting: SacDropdownComponent,
|
|
1891
2031
|
},
|
|
1892
2032
|
{
|
|
1893
2033
|
provide: NG_VALIDATORS,
|
|
1894
2034
|
multi: true,
|
|
1895
|
-
useExisting: forwardRef(() =>
|
|
2035
|
+
useExisting: forwardRef(() => SacDropdownComponent),
|
|
1896
2036
|
},
|
|
1897
|
-
],
|
|
1898
|
-
|
|
1899
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + labelsize : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + _inputsize : 'col-sm-12']\"\r\n >\r\n <select\r\n multiple\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n class=\"form-control form-control-sm\"\r\n [size]=\"rowsize\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n (blur)=\"onTouch()\"\r\n (change)=\"getSelectedItems($event.target)\"\r\n [disabled]=\"isdisabled\"\r\n >\r\n <ng-content></ng-content>\r\n <ng-container *ngIf=\"groupitems === ''\">\r\n <option\r\n *ngFor=\"let option of options\"\r\n [value]=\"option[optionvalue]\"\r\n [disabled]=\"optionenabled !== '' && option[optionenabled] === false\"\r\n >\r\n {{option[optionlabel]}}\r\n </option>\r\n </ng-container>\r\n <ng-container *ngIf=\"groupitems !== ''\">\r\n <optgroup\r\n *ngFor=\"let option of options\"\r\n [attr.label]=\"option[grouplabel]\"\r\n >\r\n <option\r\n *ngFor=\"let item of option[groupitems]\"\r\n [value]=\"item[optionvalue]\"\r\n [disabled]=\"optionenabled !== '' && item[optionenabled] === false\"\r\n >\r\n {{item[optionlabel]}}\r\n </option>\r\n </optgroup>\r\n </ng-container>\r\n </select>\r\n <div\r\n class=\"invalid-feedback\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1900
|
-
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
2037
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <select\r\n #dropdownitem\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n class=\"form-control form-control-sm\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n (blur)=\"onTouch()\"\r\n (change)=\"setValue(dropdownitem.value)\"\r\n [disabled]=\"isdisabled\"\r\n >\r\n <option *ngIf=\"emptylabel !== ''\" [ngValue]=\"emptyvalue\">\r\n {{emptylabel}}\r\n </option>\r\n\r\n <ng-content></ng-content>\r\n\r\n <ng-container *ngIf=\"groupitems === ''\">\r\n <option\r\n *ngFor=\"let item of options\"\r\n [ngValue]=\"optionvalue ? item[optionvalue] : item\"\r\n [disabled]=\"optionenabled !== '' && item[optionenabled] === false\"\r\n >\r\n <ng-template\r\n *ngTemplateOutlet=\"optionlabeltemplate || defaultItemLabelTemplate;context:{ label: item[optionlabel], item: item }\"\r\n >\r\n </ng-template>\r\n </option>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"groupitems !== ''\">\r\n <optgroup\r\n *ngFor=\"let group of options\"\r\n [attr.label]=\"group[grouplabel]\"\r\n >\r\n <option\r\n *ngFor=\"let item of group[groupitems]\"\r\n [ngValue]=\"optionvalue ? item[optionvalue] : item\"\r\n [disabled]=\"optionenabled !== '' && item[optionenabled] === false\"\r\n >\r\n <ng-template\r\n *ngTemplateOutlet=\"optionlabeltemplate || defaultItemLabelTemplate;context:{ label: item[optionlabel], item: item }\"\r\n >\r\n </ng-template>\r\n </option>\r\n </optgroup>\r\n </ng-container>\r\n </select>\r\n <div\r\n class=\"invalid-feedback\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #defaultItemLabelTemplate let-label=\"label\">\r\n {{label}}\r\n</ng-template>\r\n" }]
|
|
2038
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
1901
2039
|
type: Host
|
|
1902
2040
|
}, {
|
|
1903
2041
|
type: Optional
|
|
1904
|
-
}] }, { type: i0.Injector }]; } });
|
|
2042
|
+
}] }, { type: i0.Injector }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; } });
|
|
1905
2043
|
/**
|
|
1906
|
-
*
|
|
2044
|
+
* Direktive für Dropdown Option List
|
|
1907
2045
|
*/
|
|
1908
|
-
class
|
|
2046
|
+
class SacDropdownOptionDirective extends SacDropdownOptionCommon {
|
|
2047
|
+
// #region Constructors
|
|
1909
2048
|
/**
|
|
1910
2049
|
* Konstruktor
|
|
1911
|
-
* @param
|
|
1912
|
-
* @param
|
|
1913
|
-
* @param
|
|
2050
|
+
* @param elementRef Referenz auf HTML DOM Element
|
|
2051
|
+
* @param renderer Angular Rendering Engine
|
|
2052
|
+
* @param dropdownList Referenz auf DropDown Komponente
|
|
1914
2053
|
*/
|
|
1915
|
-
constructor(
|
|
1916
|
-
super(
|
|
2054
|
+
constructor(elementRef, renderer, dropdownList) {
|
|
2055
|
+
super(elementRef, renderer, dropdownList);
|
|
1917
2056
|
}
|
|
1918
2057
|
}
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type:
|
|
2058
|
+
SacDropdownOptionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDropdownOptionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SacDropdownComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2059
|
+
SacDropdownOptionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: SacDropdownOptionDirective, selector: "[sacOption],option", usesInheritance: true, ngImport: i0 });
|
|
2060
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacDropdownOptionDirective, decorators: [{
|
|
1922
2061
|
type: Directive,
|
|
1923
2062
|
args: [{ selector: '[sacOption],option' }]
|
|
1924
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type:
|
|
2063
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SacDropdownComponent, decorators: [{
|
|
1925
2064
|
type: Optional
|
|
1926
2065
|
}, {
|
|
1927
2066
|
type: Host
|
|
1928
2067
|
}] }]; } });
|
|
1929
2068
|
|
|
1930
|
-
class
|
|
2069
|
+
class SACBootstrap4DropdownModule {
|
|
1931
2070
|
}
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type:
|
|
2071
|
+
SACBootstrap4DropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4DropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2072
|
+
SACBootstrap4DropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4DropdownModule, declarations: [SacDropdownComponent, SacDropdownOptionDirective], imports: [CommonModule, SACBootstrap4LayoutModule], exports: [SacDropdownComponent, SacDropdownOptionDirective] });
|
|
2073
|
+
SACBootstrap4DropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4DropdownModule, imports: [[CommonModule, SACBootstrap4LayoutModule]] });
|
|
2074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4DropdownModule, decorators: [{
|
|
1936
2075
|
type: NgModule,
|
|
1937
2076
|
args: [{
|
|
1938
|
-
declarations: [
|
|
1939
|
-
imports: [CommonModule],
|
|
1940
|
-
exports: [
|
|
2077
|
+
declarations: [SacDropdownComponent, SacDropdownOptionDirective],
|
|
2078
|
+
imports: [CommonModule, SACBootstrap4LayoutModule],
|
|
2079
|
+
exports: [SacDropdownComponent, SacDropdownOptionDirective],
|
|
1941
2080
|
}]
|
|
1942
2081
|
}] });
|
|
1943
2082
|
|
|
2083
|
+
// #region Classes
|
|
1944
2084
|
/**
|
|
1945
|
-
*
|
|
2085
|
+
* Listbox Komponente
|
|
1946
2086
|
*/
|
|
1947
|
-
class
|
|
2087
|
+
class SacListboxComponent extends SacListboxCommon {
|
|
2088
|
+
// #region Constructors
|
|
1948
2089
|
/**
|
|
1949
|
-
*
|
|
1950
|
-
* @param
|
|
1951
|
-
* @param injector
|
|
1952
|
-
* @param _renderer Angular Rendering Engine
|
|
1953
|
-
* @param _elementRef Referenz auf HTML DOM Element
|
|
2090
|
+
* Constructor
|
|
2091
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
2092
|
+
* @param injector Injector for injecting services
|
|
1954
2093
|
*/
|
|
1955
|
-
constructor(
|
|
1956
|
-
super(
|
|
2094
|
+
constructor(formLayout, injector) {
|
|
2095
|
+
super(formLayout, injector);
|
|
1957
2096
|
}
|
|
1958
2097
|
}
|
|
1959
|
-
|
|
1960
|
-
|
|
2098
|
+
SacListboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacListboxComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
2099
|
+
SacListboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacListboxComponent, selector: "sac-listbox", providers: [
|
|
1961
2100
|
{
|
|
1962
2101
|
provide: NG_VALUE_ACCESSOR,
|
|
1963
2102
|
multi: true,
|
|
1964
|
-
useExisting:
|
|
2103
|
+
useExisting: SacListboxComponent,
|
|
1965
2104
|
},
|
|
1966
2105
|
{
|
|
1967
2106
|
provide: NG_VALIDATORS,
|
|
1968
2107
|
multi: true,
|
|
1969
|
-
useExisting: forwardRef(() =>
|
|
2108
|
+
useExisting: forwardRef(() => SacListboxComponent),
|
|
1970
2109
|
},
|
|
1971
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ?
|
|
1972
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type:
|
|
2110
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <select\r\n multiple\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n class=\"form-control form-control-sm\"\r\n [size]=\"rowsize\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n (blur)=\"onTouch()\"\r\n (change)=\"getSelectedItems($event.target)\"\r\n [disabled]=\"isdisabled\"\r\n >\r\n <ng-content></ng-content>\r\n <ng-container *ngIf=\"groupitems === ''\">\r\n <option\r\n *ngFor=\"let option of options\"\r\n [value]=\"option[optionvalue]\"\r\n [disabled]=\"optionenabled !== '' && option[optionenabled] === false\"\r\n >\r\n {{option[optionlabel]}}\r\n </option>\r\n </ng-container>\r\n <ng-container *ngIf=\"groupitems !== ''\">\r\n <optgroup\r\n *ngFor=\"let option of options\"\r\n [attr.label]=\"option[grouplabel]\"\r\n >\r\n <option\r\n *ngFor=\"let item of option[groupitems]\"\r\n [value]=\"item[optionvalue]\"\r\n [disabled]=\"optionenabled !== '' && item[optionenabled] === false\"\r\n >\r\n {{item[optionlabel]}}\r\n </option>\r\n </optgroup>\r\n </ng-container>\r\n </select>\r\n <div\r\n class=\"invalid-feedback\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n", directives: [{ type: i0.forwardRef(function () { return i2.NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i0.forwardRef(function () { return i2.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i0.forwardRef(function () { return i2.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i0.forwardRef(function () { return SacListboxOptionDirective; }), selector: "[sacOption],option" }], pipes: { "toLabelWidthCss": i0.forwardRef(function () { return SacToLabelWidthCssPipe; }), "toControlWidthCss": i0.forwardRef(function () { return SacToControlWidthCssPipe; }), "async": i0.forwardRef(function () { return i2.AsyncPipe; }) } });
|
|
2111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacListboxComponent, decorators: [{
|
|
1973
2112
|
type: Component,
|
|
1974
|
-
args: [{ selector: 'sac-
|
|
2113
|
+
args: [{ selector: 'sac-listbox', providers: [
|
|
1975
2114
|
{
|
|
1976
2115
|
provide: NG_VALUE_ACCESSOR,
|
|
1977
2116
|
multi: true,
|
|
1978
|
-
useExisting:
|
|
2117
|
+
useExisting: SacListboxComponent,
|
|
1979
2118
|
},
|
|
1980
2119
|
{
|
|
1981
2120
|
provide: NG_VALIDATORS,
|
|
1982
2121
|
multi: true,
|
|
1983
|
-
useExisting: forwardRef(() =>
|
|
2122
|
+
useExisting: forwardRef(() => SacListboxComponent),
|
|
1984
2123
|
},
|
|
1985
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ?
|
|
1986
|
-
}], ctorParameters: function () { return [{ type:
|
|
2124
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <select\r\n multiple\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n class=\"form-control form-control-sm\"\r\n [size]=\"rowsize\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n (blur)=\"onTouch()\"\r\n (change)=\"getSelectedItems($event.target)\"\r\n [disabled]=\"isdisabled\"\r\n >\r\n <ng-content></ng-content>\r\n <ng-container *ngIf=\"groupitems === ''\">\r\n <option\r\n *ngFor=\"let option of options\"\r\n [value]=\"option[optionvalue]\"\r\n [disabled]=\"optionenabled !== '' && option[optionenabled] === false\"\r\n >\r\n {{option[optionlabel]}}\r\n </option>\r\n </ng-container>\r\n <ng-container *ngIf=\"groupitems !== ''\">\r\n <optgroup\r\n *ngFor=\"let option of options\"\r\n [attr.label]=\"option[grouplabel]\"\r\n >\r\n <option\r\n *ngFor=\"let item of option[groupitems]\"\r\n [value]=\"item[optionvalue]\"\r\n [disabled]=\"optionenabled !== '' && item[optionenabled] === false\"\r\n >\r\n {{item[optionlabel]}}\r\n </option>\r\n </optgroup>\r\n </ng-container>\r\n </select>\r\n <div\r\n class=\"invalid-feedback\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
2125
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
1987
2126
|
type: Host
|
|
1988
2127
|
}, {
|
|
1989
2128
|
type: Optional
|
|
1990
|
-
}] }, { type: i0.Injector }
|
|
2129
|
+
}] }, { type: i0.Injector }]; } });
|
|
1991
2130
|
/**
|
|
1992
|
-
*
|
|
2131
|
+
* Option Item in Listbox
|
|
1993
2132
|
*/
|
|
1994
|
-
class
|
|
2133
|
+
class SacListboxOptionDirective extends SacListboxOptionCommon {
|
|
2134
|
+
// #region Constructors
|
|
1995
2135
|
/**
|
|
1996
2136
|
* Konstruktor
|
|
1997
|
-
* @param
|
|
1998
|
-
* @param
|
|
1999
|
-
* @param
|
|
2137
|
+
* @param elementRef Referenz auf DOM Element
|
|
2138
|
+
* @param renderer Angular Rendering Engine
|
|
2139
|
+
* @param listbox Referenz auf Listbox Komponente
|
|
2000
2140
|
*/
|
|
2001
|
-
constructor(
|
|
2002
|
-
super(
|
|
2141
|
+
constructor(elementRef, renderer, listbox) {
|
|
2142
|
+
super(elementRef, renderer, listbox);
|
|
2003
2143
|
}
|
|
2004
2144
|
}
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type:
|
|
2145
|
+
SacListboxOptionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacListboxOptionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SacListboxComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2146
|
+
SacListboxOptionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: SacListboxOptionDirective, selector: "[sacOption],option", usesInheritance: true, ngImport: i0 });
|
|
2147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacListboxOptionDirective, decorators: [{
|
|
2008
2148
|
type: Directive,
|
|
2009
2149
|
args: [{ selector: '[sacOption],option' }]
|
|
2010
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type:
|
|
2150
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SacListboxComponent, decorators: [{
|
|
2011
2151
|
type: Optional
|
|
2012
2152
|
}, {
|
|
2013
2153
|
type: Host
|
|
2014
2154
|
}] }]; } });
|
|
2015
2155
|
|
|
2016
|
-
class
|
|
2156
|
+
class SACBootstrap4ListModule {
|
|
2017
2157
|
}
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
SACBootstrap4DropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4DropdownModule, imports: [[CommonModule]] });
|
|
2023
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4DropdownModule, decorators: [{
|
|
2158
|
+
SACBootstrap4ListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4ListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2159
|
+
SACBootstrap4ListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4ListModule, declarations: [SacListboxComponent, SacListboxOptionDirective], imports: [CommonModule, SACBootstrap4LayoutModule], exports: [SacListboxComponent, SacListboxOptionDirective] });
|
|
2160
|
+
SACBootstrap4ListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4ListModule, imports: [[CommonModule, SACBootstrap4LayoutModule]] });
|
|
2161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4ListModule, decorators: [{
|
|
2024
2162
|
type: NgModule,
|
|
2025
2163
|
args: [{
|
|
2026
|
-
declarations: [
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
],
|
|
2030
|
-
imports: [CommonModule],
|
|
2031
|
-
exports: [
|
|
2032
|
-
SacDropdownComponent,
|
|
2033
|
-
SacDropdownOptionDirective,
|
|
2034
|
-
],
|
|
2164
|
+
declarations: [SacListboxComponent, SacListboxOptionDirective],
|
|
2165
|
+
imports: [CommonModule, SACBootstrap4LayoutModule],
|
|
2166
|
+
exports: [SacListboxComponent, SacListboxOptionDirective],
|
|
2035
2167
|
}]
|
|
2036
2168
|
}] });
|
|
2037
2169
|
|
|
@@ -2039,12 +2171,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2039
2171
|
* Marker Komponente für Context Menü
|
|
2040
2172
|
*/
|
|
2041
2173
|
class SacMultilanguagemenuContainerDirective extends SacContextMenuContrainerCommon {
|
|
2174
|
+
// #region Constructors
|
|
2042
2175
|
/**
|
|
2043
2176
|
* Konstruktor
|
|
2044
|
-
* @param
|
|
2177
|
+
* @param elementRef Referenz auf DOM Element
|
|
2045
2178
|
*/
|
|
2046
|
-
constructor(
|
|
2047
|
-
super(
|
|
2179
|
+
constructor(elementRef) {
|
|
2180
|
+
super(elementRef);
|
|
2048
2181
|
}
|
|
2049
2182
|
}
|
|
2050
2183
|
SacMultilanguagemenuContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacMultilanguagemenuContainerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -2071,12 +2204,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2071
2204
|
* Anker Komponente für Context Menü. Wird zum positionieren des Context Menü in der Page benötigt.
|
|
2072
2205
|
*/
|
|
2073
2206
|
class SacMultilanguagemenuAnchorDirective extends SacContextmenuAnchorCommon {
|
|
2207
|
+
// #region Constructors
|
|
2074
2208
|
/**
|
|
2075
2209
|
* Konstruktor
|
|
2076
|
-
* @param
|
|
2210
|
+
* @param elementRef HTML DOM Referenz
|
|
2077
2211
|
*/
|
|
2078
|
-
constructor(
|
|
2079
|
-
super(
|
|
2212
|
+
constructor(elementRef) {
|
|
2213
|
+
super(elementRef);
|
|
2080
2214
|
}
|
|
2081
2215
|
}
|
|
2082
2216
|
SacMultilanguagemenuAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacMultilanguagemenuAnchorDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -2103,16 +2237,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2103
2237
|
* Component für Contextmenü
|
|
2104
2238
|
*/
|
|
2105
2239
|
class SacMultilanguagemenuComponent extends SacContextmenuCommon {
|
|
2240
|
+
// #region Constructors
|
|
2106
2241
|
/**
|
|
2107
2242
|
* Constructor
|
|
2108
|
-
* @param
|
|
2109
|
-
* @param
|
|
2110
|
-
* @param
|
|
2111
|
-
* @param
|
|
2112
|
-
* @param
|
|
2243
|
+
* @param document Referenz auf HTML Document
|
|
2244
|
+
* @param ngZone Angular Zone Service
|
|
2245
|
+
* @param elementRef Referenz auf HTML Element der aktuellen Komponente
|
|
2246
|
+
* @param renderer Render Service von Angular
|
|
2247
|
+
* @param injector injector to resolve services in base component
|
|
2113
2248
|
*/
|
|
2114
|
-
constructor(
|
|
2115
|
-
super(
|
|
2249
|
+
constructor(document, ngZone, elementRef, renderer, injector) {
|
|
2250
|
+
super(document, ngZone, elementRef, renderer, injector);
|
|
2116
2251
|
}
|
|
2117
2252
|
}
|
|
2118
2253
|
SacMultilanguagemenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacMultilanguagemenuComponent, deps: [{ token: DOCUMENT }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -2158,20 +2293,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2158
2293
|
* Componente für Mehrsprache Texte
|
|
2159
2294
|
*/
|
|
2160
2295
|
class SacMultilanguageInputComponent extends SacMultilanguageInputCommon {
|
|
2296
|
+
// #endregion Properties
|
|
2297
|
+
// #region Constructors
|
|
2161
2298
|
/**
|
|
2162
|
-
*
|
|
2163
|
-
* @param
|
|
2164
|
-
* @param injector
|
|
2299
|
+
* Constructor
|
|
2300
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
2301
|
+
* @param injector Injector for injecting services
|
|
2165
2302
|
*/
|
|
2166
|
-
constructor(
|
|
2167
|
-
super(
|
|
2303
|
+
constructor(formLayout, injector) {
|
|
2304
|
+
super(formLayout, injector);
|
|
2305
|
+
// #region Properties
|
|
2168
2306
|
/**
|
|
2169
2307
|
* Enum für IconType in HTML Template
|
|
2170
2308
|
*/
|
|
2171
2309
|
this.IconType = IconType;
|
|
2172
2310
|
}
|
|
2173
2311
|
}
|
|
2174
|
-
SacMultilanguageInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacMultilanguageInputComponent, deps: [{ token:
|
|
2312
|
+
SacMultilanguageInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacMultilanguageInputComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
2175
2313
|
SacMultilanguageInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacMultilanguageInputComponent, selector: "sac-multilanguageinput", providers: [
|
|
2176
2314
|
{
|
|
2177
2315
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -2183,9 +2321,7 @@ SacMultilanguageInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
2183
2321
|
multi: true,
|
|
2184
2322
|
useExisting: forwardRef(() => SacMultilanguageInputComponent),
|
|
2185
2323
|
},
|
|
2186
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ?
|
|
2187
|
-
{ provide: ControlContainer, useExisting: SacFormDirective },
|
|
2188
|
-
] });
|
|
2324
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"LanguageValue\"\r\n [attr.placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"SetLanguageValue($event.target.value)\"\r\n [attr.maxlength]=\"maxlength\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <div\r\n placement=\"bottom-right\"\r\n class=\"input-group-append\"\r\n sac-multilanguagemenu\r\n [buttontemplate]=\"menuButton\"\r\n #contextmenu\r\n >\r\n <ng-template #menuButton>\r\n <button\r\n sacMultilanguageMenuAnchor\r\n [id]=\"name + '_dropdownitem'\"\r\n type=\"button\"\r\n class=\"btn dropdown-toggle\"\r\n (click)=\"contextmenu.toggle()\"\r\n [ngClass]=\"[IsAnyEmpty() ? 'btn-warning' : 'btn-secondary']\"\r\n >\r\n <img\r\n src=\"{{SelectedIcon}}\"\r\n class=\"align-baseline mr-1 ml-1\"\r\n *ngIf=\"SelectedIconType === IconType.Image\"\r\n />\r\n <span\r\n [ngClass]=\"SelectedIcon\"\r\n class=\"align-baseline mr-1 ml-1\"\r\n *ngIf=\"SelectedIconType === IconType.CssSprite\"\r\n ></span>\r\n </button>\r\n </ng-template>\r\n <ng-container *ngFor=\"let sprache of Languages\">\r\n <sac-multilanguagemenubutton\r\n *ngIf=\"sprache.IconType === IconType.Image\"\r\n text=\"{{sprache.Text}}\"\r\n image=\"{{sprache.Icon}}\"\r\n [cssclass]=\"IsEmpty(sprache) ? 'text-danger border-left border-danger': ''\"\r\n (clicked)=\"SelectLanguage(sprache)\"\r\n ></sac-multilanguagemenubutton>\r\n <sac-multilanguagemenubutton\r\n *ngIf=\"sprache.IconType === IconType.CssSprite\"\r\n text=\"{{sprache.Text}}\"\r\n icon=\"{{sprache.Icon}}\"\r\n [cssclass]=\"IsEmpty(sprache) ? 'text-danger border-left border-danger': ''\"\r\n (clicked)=\"SelectLanguage(sprache)\"\r\n ></sac-multilanguagemenubutton>\r\n </ng-container>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"row\">\r\n <div class=\"col text-right\"></div>\r\n</div>\r\n", components: [{ type: SacMultilanguagemenuComponent, selector: "[sac-multilanguagemenu]" }, { type: SacMultilanguagemenuItemButtonComponent, selector: "sac-multilanguagemenubutton" }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: SacMultilanguagemenuAnchorDirective, selector: "[sacMultilanguageMenuAnchor]" }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
2189
2325
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacMultilanguageInputComponent, decorators: [{
|
|
2190
2326
|
type: Component,
|
|
2191
2327
|
args: [{ selector: 'sac-multilanguageinput', providers: [
|
|
@@ -2199,10 +2335,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2199
2335
|
multi: true,
|
|
2200
2336
|
useExisting: forwardRef(() => SacMultilanguageInputComponent),
|
|
2201
2337
|
},
|
|
2202
|
-
],
|
|
2203
|
-
|
|
2204
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + labelsize : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + _inputsize : 'col-sm-12']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"LanguageValue\"\r\n [attr.placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"SetLanguageValue($event.target.value)\"\r\n [attr.maxlength]=\"maxlength\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <div\r\n placement=\"bottom-right\"\r\n class=\"input-group-append\"\r\n sac-multilanguagemenu\r\n [buttontemplate]=\"menuButton\"\r\n #contextmenu\r\n >\r\n <ng-template #menuButton>\r\n <button\r\n sacMultilanguageMenuAnchor\r\n [id]=\"name + '_dropdownitem'\"\r\n type=\"button\"\r\n class=\"btn dropdown-toggle\"\r\n (click)=\"contextmenu.toggle()\"\r\n [ngClass]=\"[IsAnyEmpty() ? 'btn-warning' : 'btn-secondary']\"\r\n >\r\n <img\r\n src=\"{{SelectedIcon}}\"\r\n class=\"align-baseline mr-1 ml-1\"\r\n *ngIf=\"SelectedIconType === IconType.Image\"\r\n />\r\n <span\r\n [ngClass]=\"SelectedIcon\"\r\n class=\"align-baseline mr-1 ml-1\"\r\n *ngIf=\"SelectedIconType === IconType.CssSprite\"\r\n ></span>\r\n </button>\r\n </ng-template>\r\n <ng-container *ngFor=\"let sprache of Languages\">\r\n <sac-multilanguagemenubutton\r\n *ngIf=\"sprache.IconType === IconType.Image\"\r\n text=\"{{sprache.Text}}\"\r\n image=\"{{sprache.Icon}}\"\r\n [cssclass]=\"IsEmpty(sprache) ? 'text-danger border-left border-danger': ''\"\r\n (clicked)=\"SelectLanguage(sprache)\"\r\n ></sac-multilanguagemenubutton>\r\n <sac-multilanguagemenubutton\r\n *ngIf=\"sprache.IconType === IconType.CssSprite\"\r\n text=\"{{sprache.Text}}\"\r\n icon=\"{{sprache.Icon}}\"\r\n [cssclass]=\"IsEmpty(sprache) ? 'text-danger border-left border-danger': ''\"\r\n (clicked)=\"SelectLanguage(sprache)\"\r\n ></sac-multilanguagemenubutton>\r\n </ng-container>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"row\">\r\n <div class=\"col text-right\"></div>\r\n</div>\r\n" }]
|
|
2205
|
-
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
2338
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <input\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"LanguageValue\"\r\n [attr.placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"SetLanguageValue($event.target.value)\"\r\n [attr.maxlength]=\"maxlength\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n />\r\n <div\r\n placement=\"bottom-right\"\r\n class=\"input-group-append\"\r\n sac-multilanguagemenu\r\n [buttontemplate]=\"menuButton\"\r\n #contextmenu\r\n >\r\n <ng-template #menuButton>\r\n <button\r\n sacMultilanguageMenuAnchor\r\n [id]=\"name + '_dropdownitem'\"\r\n type=\"button\"\r\n class=\"btn dropdown-toggle\"\r\n (click)=\"contextmenu.toggle()\"\r\n [ngClass]=\"[IsAnyEmpty() ? 'btn-warning' : 'btn-secondary']\"\r\n >\r\n <img\r\n src=\"{{SelectedIcon}}\"\r\n class=\"align-baseline mr-1 ml-1\"\r\n *ngIf=\"SelectedIconType === IconType.Image\"\r\n />\r\n <span\r\n [ngClass]=\"SelectedIcon\"\r\n class=\"align-baseline mr-1 ml-1\"\r\n *ngIf=\"SelectedIconType === IconType.CssSprite\"\r\n ></span>\r\n </button>\r\n </ng-template>\r\n <ng-container *ngFor=\"let sprache of Languages\">\r\n <sac-multilanguagemenubutton\r\n *ngIf=\"sprache.IconType === IconType.Image\"\r\n text=\"{{sprache.Text}}\"\r\n image=\"{{sprache.Icon}}\"\r\n [cssclass]=\"IsEmpty(sprache) ? 'text-danger border-left border-danger': ''\"\r\n (clicked)=\"SelectLanguage(sprache)\"\r\n ></sac-multilanguagemenubutton>\r\n <sac-multilanguagemenubutton\r\n *ngIf=\"sprache.IconType === IconType.CssSprite\"\r\n text=\"{{sprache.Text}}\"\r\n icon=\"{{sprache.Icon}}\"\r\n [cssclass]=\"IsEmpty(sprache) ? 'text-danger border-left border-danger': ''\"\r\n (clicked)=\"SelectLanguage(sprache)\"\r\n ></sac-multilanguagemenubutton>\r\n </ng-container>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"row\">\r\n <div class=\"col text-right\"></div>\r\n</div>\r\n" }]
|
|
2339
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
2206
2340
|
type: Host
|
|
2207
2341
|
}, {
|
|
2208
2342
|
type: Optional
|
|
@@ -2212,20 +2346,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2212
2346
|
* Componente für Mehrsprache Texte als mehrzeiliger Text
|
|
2213
2347
|
*/
|
|
2214
2348
|
class SacMultilanguageInputAreaComponent extends SacMultilanguageInputAreaCommon {
|
|
2349
|
+
// #endregion Properties
|
|
2350
|
+
// #region Constructors
|
|
2215
2351
|
/**
|
|
2216
|
-
*
|
|
2217
|
-
* @param
|
|
2218
|
-
* @param injector
|
|
2352
|
+
* Constructor
|
|
2353
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
2354
|
+
* @param injector Injector for injecting services
|
|
2219
2355
|
*/
|
|
2220
|
-
constructor(
|
|
2221
|
-
super(
|
|
2356
|
+
constructor(formLayout, injector) {
|
|
2357
|
+
super(formLayout, injector);
|
|
2358
|
+
// #region Properties
|
|
2222
2359
|
/**
|
|
2223
2360
|
* Enum für IconType in HTML Template
|
|
2224
2361
|
*/
|
|
2225
2362
|
this.IconType = IconType;
|
|
2226
2363
|
}
|
|
2227
2364
|
}
|
|
2228
|
-
SacMultilanguageInputAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacMultilanguageInputAreaComponent, deps: [{ token:
|
|
2365
|
+
SacMultilanguageInputAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacMultilanguageInputAreaComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
2229
2366
|
SacMultilanguageInputAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacMultilanguageInputAreaComponent, selector: "sac-multilanguageinputarea", providers: [
|
|
2230
2367
|
{
|
|
2231
2368
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -2237,9 +2374,7 @@ SacMultilanguageInputAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersio
|
|
|
2237
2374
|
multi: true,
|
|
2238
2375
|
useExisting: forwardRef(() => SacMultilanguageInputAreaComponent),
|
|
2239
2376
|
},
|
|
2240
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ?
|
|
2241
|
-
{ provide: ControlContainer, useExisting: SacFormDirective },
|
|
2242
|
-
] });
|
|
2377
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <textarea\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"LanguageValue\"\r\n [attr.placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n style=\"height: auto\"\r\n (input)=\"SetLanguageValue($event.target.value)\"\r\n [attr.rows]=\"rows\"\r\n [attr.maxlength]=\"maxlength\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n ></textarea>\r\n\r\n <div\r\n placement=\"bottom-right\"\r\n class=\"input-group-append\"\r\n sac-multilanguagemenu\r\n [buttontemplate]=\"menuButton\"\r\n #contextmenu\r\n >\r\n <ng-template #menuButton>\r\n <button\r\n sacMultilanguageMenuAnchor\r\n [id]=\"name + '_dropdownitem'\"\r\n type=\"button\"\r\n class=\"btn dropdown-toggle\"\r\n (click)=\"contextmenu.toggle()\"\r\n [ngClass]=\"[IsAnyEmpty() ? 'btn-warning' : 'btn-secondary']\"\r\n >\r\n <img\r\n src=\"{{SelectedIcon}}\"\r\n class=\"align-baseline mr-1 ml-1\"\r\n *ngIf=\"SelectedIconType === IconType.Image\"\r\n />\r\n <i\r\n [ngClass]=\"SelectedIcon\"\r\n class=\"align-baseline mr-1 ml-1\"\r\n *ngIf=\"SelectedIconType === IconType.CssSprite\"\r\n ></i>\r\n </button>\r\n </ng-template>\r\n <ng-container *ngFor=\"let sprache of Languages\">\r\n <sac-multilanguagemenubutton\r\n *ngIf=\"sprache.IconType === IconType.Image\"\r\n text=\"{{sprache.Text}}\"\r\n image=\"{{sprache.Icon}}\"\r\n [cssclass]=\"IsEmpty(sprache) ? 'text-danger border-left border-danger': ''\"\r\n (clicked)=\"SelectLanguage(sprache)\"\r\n ></sac-multilanguagemenubutton>\r\n <sac-multilanguagemenubutton\r\n *ngIf=\"sprache.IconType === IconType.CssSprite\"\r\n text=\"{{sprache.Text}}\"\r\n icon=\"{{sprache.Icon}}\"\r\n [cssclass]=\"IsEmpty(sprache) ? 'text-danger border-left border-danger': ''\"\r\n (clicked)=\"SelectLanguage(sprache)\"\r\n ></sac-multilanguagemenubutton>\r\n </ng-container>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"row\">\r\n <div class=\"col text-right\"></div>\r\n</div>\r\n", components: [{ type: SacMultilanguagemenuComponent, selector: "[sac-multilanguagemenu]" }, { type: SacMultilanguagemenuItemButtonComponent, selector: "sac-multilanguagemenubutton" }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: SacMultilanguagemenuAnchorDirective, selector: "[sacMultilanguageMenuAnchor]" }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
2243
2378
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacMultilanguageInputAreaComponent, decorators: [{
|
|
2244
2379
|
type: Component,
|
|
2245
2380
|
args: [{ selector: 'sac-multilanguageinputarea', providers: [
|
|
@@ -2253,10 +2388,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2253
2388
|
multi: true,
|
|
2254
2389
|
useExisting: forwardRef(() => SacMultilanguageInputAreaComponent),
|
|
2255
2390
|
},
|
|
2256
|
-
],
|
|
2257
|
-
|
|
2258
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + labelsize : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? 'col-sm-' + _inputsize : 'col-sm-12']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <textarea\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"LanguageValue\"\r\n [attr.placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n style=\"height: auto\"\r\n (input)=\"SetLanguageValue($event.target.value)\"\r\n [attr.rows]=\"rows\"\r\n [attr.maxlength]=\"maxlength\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n ></textarea>\r\n\r\n <div\r\n placement=\"bottom-right\"\r\n class=\"input-group-append\"\r\n sac-multilanguagemenu\r\n [buttontemplate]=\"menuButton\"\r\n #contextmenu\r\n >\r\n <ng-template #menuButton>\r\n <button\r\n sacMultilanguageMenuAnchor\r\n [id]=\"name + '_dropdownitem'\"\r\n type=\"button\"\r\n class=\"btn dropdown-toggle\"\r\n (click)=\"contextmenu.toggle()\"\r\n [ngClass]=\"[IsAnyEmpty() ? 'btn-warning' : 'btn-secondary']\"\r\n >\r\n <img\r\n src=\"{{SelectedIcon}}\"\r\n class=\"align-baseline mr-1 ml-1\"\r\n *ngIf=\"SelectedIconType === IconType.Image\"\r\n />\r\n <i\r\n [ngClass]=\"SelectedIcon\"\r\n class=\"align-baseline mr-1 ml-1\"\r\n *ngIf=\"SelectedIconType === IconType.CssSprite\"\r\n ></i>\r\n </button>\r\n </ng-template>\r\n <ng-container *ngFor=\"let sprache of Languages\">\r\n <sac-multilanguagemenubutton\r\n *ngIf=\"sprache.IconType === IconType.Image\"\r\n text=\"{{sprache.Text}}\"\r\n image=\"{{sprache.Icon}}\"\r\n [cssclass]=\"IsEmpty(sprache) ? 'text-danger border-left border-danger': ''\"\r\n (clicked)=\"SelectLanguage(sprache)\"\r\n ></sac-multilanguagemenubutton>\r\n <sac-multilanguagemenubutton\r\n *ngIf=\"sprache.IconType === IconType.CssSprite\"\r\n text=\"{{sprache.Text}}\"\r\n icon=\"{{sprache.Icon}}\"\r\n [cssclass]=\"IsEmpty(sprache) ? 'text-danger border-left border-danger': ''\"\r\n (clicked)=\"SelectLanguage(sprache)\"\r\n ></sac-multilanguagemenubutton>\r\n </ng-container>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"row\">\r\n <div class=\"col text-right\"></div>\r\n</div>\r\n" }]
|
|
2259
|
-
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
2391
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div\r\n class=\"input-group input-group-sm\"\r\n [class.has-validation]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n <textarea\r\n id=\"{{name}}\"\r\n name=\"{{name}}\"\r\n type=\"text\"\r\n class=\"form-control form-control-sm\"\r\n [value]=\"LanguageValue\"\r\n [attr.placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n style=\"height: auto\"\r\n (input)=\"SetLanguageValue($event.target.value)\"\r\n [attr.rows]=\"rows\"\r\n [attr.maxlength]=\"maxlength\"\r\n [ngClass]=\"{'is-invalid': invalid && (dirty || touched) }\"\r\n [disabled]=\"isdisabled\"\r\n ></textarea>\r\n\r\n <div\r\n placement=\"bottom-right\"\r\n class=\"input-group-append\"\r\n sac-multilanguagemenu\r\n [buttontemplate]=\"menuButton\"\r\n #contextmenu\r\n >\r\n <ng-template #menuButton>\r\n <button\r\n sacMultilanguageMenuAnchor\r\n [id]=\"name + '_dropdownitem'\"\r\n type=\"button\"\r\n class=\"btn dropdown-toggle\"\r\n (click)=\"contextmenu.toggle()\"\r\n [ngClass]=\"[IsAnyEmpty() ? 'btn-warning' : 'btn-secondary']\"\r\n >\r\n <img\r\n src=\"{{SelectedIcon}}\"\r\n class=\"align-baseline mr-1 ml-1\"\r\n *ngIf=\"SelectedIconType === IconType.Image\"\r\n />\r\n <i\r\n [ngClass]=\"SelectedIcon\"\r\n class=\"align-baseline mr-1 ml-1\"\r\n *ngIf=\"SelectedIconType === IconType.CssSprite\"\r\n ></i>\r\n </button>\r\n </ng-template>\r\n <ng-container *ngFor=\"let sprache of Languages\">\r\n <sac-multilanguagemenubutton\r\n *ngIf=\"sprache.IconType === IconType.Image\"\r\n text=\"{{sprache.Text}}\"\r\n image=\"{{sprache.Icon}}\"\r\n [cssclass]=\"IsEmpty(sprache) ? 'text-danger border-left border-danger': ''\"\r\n (clicked)=\"SelectLanguage(sprache)\"\r\n ></sac-multilanguagemenubutton>\r\n <sac-multilanguagemenubutton\r\n *ngIf=\"sprache.IconType === IconType.CssSprite\"\r\n text=\"{{sprache.Text}}\"\r\n icon=\"{{sprache.Icon}}\"\r\n [cssclass]=\"IsEmpty(sprache) ? 'text-danger border-left border-danger': ''\"\r\n (clicked)=\"SelectLanguage(sprache)\"\r\n ></sac-multilanguagemenubutton>\r\n </ng-container>\r\n </div>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"row\">\r\n <div class=\"col text-right\"></div>\r\n</div>\r\n" }]
|
|
2392
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
2260
2393
|
type: Host
|
|
2261
2394
|
}, {
|
|
2262
2395
|
type: Optional
|
|
@@ -2270,8 +2403,8 @@ SACBootstrap4MultilanguageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion:
|
|
|
2270
2403
|
SacMultilanguagemenuComponent,
|
|
2271
2404
|
SacMultilanguagemenuAnchorDirective,
|
|
2272
2405
|
SacMultilanguagemenuContainerDirective,
|
|
2273
|
-
SacMultilanguagemenuItemButtonComponent], imports: [CommonModule], exports: [SacMultilanguageInputComponent, SacMultilanguageInputAreaComponent] });
|
|
2274
|
-
SACBootstrap4MultilanguageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4MultilanguageModule, imports: [[CommonModule]] });
|
|
2406
|
+
SacMultilanguagemenuItemButtonComponent], imports: [CommonModule, SACBootstrap4LayoutModule], exports: [SacMultilanguageInputComponent, SacMultilanguageInputAreaComponent] });
|
|
2407
|
+
SACBootstrap4MultilanguageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4MultilanguageModule, imports: [[CommonModule, SACBootstrap4LayoutModule]] });
|
|
2275
2408
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4MultilanguageModule, decorators: [{
|
|
2276
2409
|
type: NgModule,
|
|
2277
2410
|
args: [{
|
|
@@ -2283,109 +2416,111 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2283
2416
|
SacMultilanguagemenuContainerDirective,
|
|
2284
2417
|
SacMultilanguagemenuItemButtonComponent,
|
|
2285
2418
|
],
|
|
2286
|
-
imports: [CommonModule],
|
|
2419
|
+
imports: [CommonModule, SACBootstrap4LayoutModule],
|
|
2287
2420
|
exports: [SacMultilanguageInputComponent, SacMultilanguageInputAreaComponent],
|
|
2288
2421
|
}]
|
|
2289
2422
|
}] });
|
|
2290
2423
|
|
|
2291
2424
|
/**
|
|
2292
|
-
*
|
|
2293
|
-
|
|
2294
|
-
|
|
2425
|
+
* Component für einbindung eines beliebigen Controls in die Form Struktur
|
|
2426
|
+
*
|
|
2427
|
+
* @example
|
|
2428
|
+
* <ngStaticFormContainer name='myformcontainer' label="My Custom Form Control" [isrequired]='false'>
|
|
2429
|
+
* <input type="range" class="form-control form-control-sm" />
|
|
2430
|
+
* </ngStaticFormContainer>
|
|
2431
|
+
*
|
|
2432
|
+
* @example
|
|
2433
|
+
* <ngStaticFormContainer name='myformcintainer' label="My Custom Form Control" [isrequired]='false' tooltiptext="Dies ist ein Tooltip Text">
|
|
2434
|
+
* <input type="range" class="form-control form-control-sm" />
|
|
2435
|
+
* </ngStaticFormContainer>
|
|
2436
|
+
*
|
|
2437
|
+
**/
|
|
2438
|
+
class SacStaticFormContainerComponent extends SacStaticFormContainerCommon {
|
|
2439
|
+
// #region Constructors
|
|
2295
2440
|
/**
|
|
2296
|
-
*
|
|
2297
|
-
* @param
|
|
2298
|
-
* @param injector
|
|
2441
|
+
*
|
|
2442
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
2443
|
+
* @param injector Injector for injecting services
|
|
2299
2444
|
*/
|
|
2300
|
-
constructor(
|
|
2301
|
-
super(
|
|
2445
|
+
constructor(formLayout, injector) {
|
|
2446
|
+
super(formLayout, injector);
|
|
2302
2447
|
}
|
|
2303
2448
|
}
|
|
2304
|
-
|
|
2305
|
-
|
|
2449
|
+
SacStaticFormContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacStaticFormContainerComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
2450
|
+
SacStaticFormContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacStaticFormContainerComponent, selector: "sac-staticformcontainer", providers: [
|
|
2306
2451
|
{
|
|
2307
2452
|
provide: NG_VALUE_ACCESSOR,
|
|
2308
2453
|
multi: true,
|
|
2309
|
-
useExisting:
|
|
2454
|
+
useExisting: SacStaticFormContainerComponent,
|
|
2310
2455
|
},
|
|
2311
2456
|
{
|
|
2312
2457
|
provide: NG_VALIDATORS,
|
|
2313
2458
|
multi: true,
|
|
2314
|
-
useExisting: forwardRef(() =>
|
|
2459
|
+
useExisting: forwardRef(() => SacStaticFormContainerComponent),
|
|
2315
2460
|
},
|
|
2316
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label
|
|
2317
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type:
|
|
2461
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}_label\"\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n [class.required]=\"isrequired\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <ng-content></ng-content>\r\n <label\r\n for=\"{{name}}\"\r\n class=\"form-label-adaptive form-label-fixed\"\r\n [ngClass]=\"{ 'required': isrequired }\"\r\n *ngIf=\"isAdaptiveLabel && !disablelabel\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"invalid-feedback\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n", directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
2462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacStaticFormContainerComponent, decorators: [{
|
|
2318
2463
|
type: Component,
|
|
2319
|
-
args: [{ selector: 'sac-
|
|
2464
|
+
args: [{ selector: 'sac-staticformcontainer', providers: [
|
|
2320
2465
|
{
|
|
2321
2466
|
provide: NG_VALUE_ACCESSOR,
|
|
2322
2467
|
multi: true,
|
|
2323
|
-
useExisting:
|
|
2468
|
+
useExisting: SacStaticFormContainerComponent,
|
|
2324
2469
|
},
|
|
2325
2470
|
{
|
|
2326
2471
|
provide: NG_VALIDATORS,
|
|
2327
2472
|
multi: true,
|
|
2328
|
-
useExisting: forwardRef(() =>
|
|
2473
|
+
useExisting: forwardRef(() => SacStaticFormContainerComponent),
|
|
2329
2474
|
},
|
|
2330
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label
|
|
2331
|
-
}], ctorParameters: function () { return [{ type:
|
|
2475
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}_label\"\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n [class.required]=\"isrequired\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <ng-content></ng-content>\r\n <label\r\n for=\"{{name}}\"\r\n class=\"form-label-adaptive form-label-fixed\"\r\n [ngClass]=\"{ 'required': isrequired }\"\r\n *ngIf=\"isAdaptiveLabel && !disablelabel\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"invalid-feedback\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
2476
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
2332
2477
|
type: Host
|
|
2333
2478
|
}, {
|
|
2334
2479
|
type: Optional
|
|
2335
2480
|
}] }, { type: i0.Injector }]; } });
|
|
2336
2481
|
|
|
2337
2482
|
/**
|
|
2338
|
-
*
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
* <input type="range" class="form-control form-control-sm" />
|
|
2343
|
-
* </ngStaticFormContainer>
|
|
2344
|
-
*
|
|
2345
|
-
* @example
|
|
2346
|
-
* <ngStaticFormContainer name='myformcintainer' label="My Custom Form Control" [isrequired]='false' tooltiptext="Dies ist ein Tooltip Text">
|
|
2347
|
-
* <input type="range" class="form-control form-control-sm" />
|
|
2348
|
-
* </ngStaticFormContainer>
|
|
2349
|
-
*
|
|
2350
|
-
**/
|
|
2351
|
-
class SacStaticFormContainerComponent extends SacStaticFormContainerCommon {
|
|
2483
|
+
* Komponente für statischen Text in einem Formular
|
|
2484
|
+
*/
|
|
2485
|
+
class SacStaticLabelComponent extends SacStaticLabelCommon {
|
|
2486
|
+
// #region Constructors
|
|
2352
2487
|
/**
|
|
2353
|
-
*
|
|
2354
|
-
* @param
|
|
2355
|
-
* @param injector Injector
|
|
2488
|
+
*
|
|
2489
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
2490
|
+
* @param injector Injector for injecting services
|
|
2356
2491
|
*/
|
|
2357
|
-
constructor(
|
|
2358
|
-
super(
|
|
2492
|
+
constructor(formLayout, injector) {
|
|
2493
|
+
super(formLayout, injector);
|
|
2359
2494
|
}
|
|
2360
2495
|
}
|
|
2361
|
-
|
|
2362
|
-
|
|
2496
|
+
SacStaticLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacStaticLabelComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
2497
|
+
SacStaticLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacStaticLabelComponent, selector: "sac-staticlabel", providers: [
|
|
2363
2498
|
{
|
|
2364
2499
|
provide: NG_VALUE_ACCESSOR,
|
|
2365
2500
|
multi: true,
|
|
2366
|
-
useExisting:
|
|
2501
|
+
useExisting: SacStaticLabelComponent,
|
|
2367
2502
|
},
|
|
2368
2503
|
{
|
|
2369
2504
|
provide: NG_VALIDATORS,
|
|
2370
2505
|
multi: true,
|
|
2371
|
-
useExisting: forwardRef(() =>
|
|
2506
|
+
useExisting: forwardRef(() => SacStaticLabelComponent),
|
|
2372
2507
|
},
|
|
2373
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label
|
|
2374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type:
|
|
2508
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}_label\"\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div class=\"form-control-plaintext\" [innerHTML]=\"value\"></div>\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-left control-label\"\r\n *ngIf=\"isAdaptiveLabel && !disablelabel\"\r\n >{{label}}</label\r\n >\r\n </div>\r\n</div>\r\n", directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe } });
|
|
2509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacStaticLabelComponent, decorators: [{
|
|
2375
2510
|
type: Component,
|
|
2376
|
-
args: [{ selector: 'sac-
|
|
2511
|
+
args: [{ selector: 'sac-staticlabel', providers: [
|
|
2377
2512
|
{
|
|
2378
2513
|
provide: NG_VALUE_ACCESSOR,
|
|
2379
2514
|
multi: true,
|
|
2380
|
-
useExisting:
|
|
2515
|
+
useExisting: SacStaticLabelComponent,
|
|
2381
2516
|
},
|
|
2382
2517
|
{
|
|
2383
2518
|
provide: NG_VALIDATORS,
|
|
2384
2519
|
multi: true,
|
|
2385
|
-
useExisting: forwardRef(() =>
|
|
2520
|
+
useExisting: forwardRef(() => SacStaticLabelComponent),
|
|
2386
2521
|
},
|
|
2387
|
-
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label
|
|
2388
|
-
}], ctorParameters: function () { return [{ type:
|
|
2522
|
+
], template: "<div class=\"row form-group\" [class.no-gutters]=\"disablelabel\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}_label\"\r\n for=\"{{name}}\"\r\n class=\"col-12 col-form-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >{{label}}</label\r\n >\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <div class=\"form-control-plaintext\" [innerHTML]=\"value\"></div>\r\n <label\r\n for=\"{{name}}\"\r\n class=\"col-left control-label\"\r\n *ngIf=\"isAdaptiveLabel && !disablelabel\"\r\n >{{label}}</label\r\n >\r\n </div>\r\n</div>\r\n" }]
|
|
2523
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
2389
2524
|
type: Host
|
|
2390
2525
|
}, {
|
|
2391
2526
|
type: Optional
|
|
@@ -2394,18 +2529,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2394
2529
|
class SACBootstrap4StaticLabelModule {
|
|
2395
2530
|
}
|
|
2396
2531
|
SACBootstrap4StaticLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4StaticLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2397
|
-
SACBootstrap4StaticLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4StaticLabelModule, declarations: [SacStaticLabelComponent, SacStaticFormContainerComponent], imports: [CommonModule], exports: [SacStaticLabelComponent, SacStaticFormContainerComponent] });
|
|
2398
|
-
SACBootstrap4StaticLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4StaticLabelModule, imports: [[
|
|
2399
|
-
CommonModule
|
|
2400
|
-
]] });
|
|
2532
|
+
SACBootstrap4StaticLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4StaticLabelModule, declarations: [SacStaticLabelComponent, SacStaticFormContainerComponent], imports: [CommonModule, SACBootstrap4LayoutModule], exports: [SacStaticLabelComponent, SacStaticFormContainerComponent] });
|
|
2533
|
+
SACBootstrap4StaticLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4StaticLabelModule, imports: [[CommonModule, SACBootstrap4LayoutModule]] });
|
|
2401
2534
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4StaticLabelModule, decorators: [{
|
|
2402
2535
|
type: NgModule,
|
|
2403
2536
|
args: [{
|
|
2404
2537
|
declarations: [SacStaticLabelComponent, SacStaticFormContainerComponent],
|
|
2405
|
-
imports: [
|
|
2406
|
-
|
|
2407
|
-
],
|
|
2408
|
-
exports: [SacStaticLabelComponent, SacStaticFormContainerComponent]
|
|
2538
|
+
imports: [CommonModule, SACBootstrap4LayoutModule],
|
|
2539
|
+
exports: [SacStaticLabelComponent, SacStaticFormContainerComponent],
|
|
2409
2540
|
}]
|
|
2410
2541
|
}] });
|
|
2411
2542
|
|
|
@@ -2465,15 +2596,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2465
2596
|
* TinyMCE Komponente
|
|
2466
2597
|
*/
|
|
2467
2598
|
class SacTinyMceComponent extends SacTinyMceCommon {
|
|
2599
|
+
// #region Constructors
|
|
2468
2600
|
/**
|
|
2469
|
-
*
|
|
2470
|
-
* @param
|
|
2471
|
-
* @param injector
|
|
2472
|
-
* @param ngZone ngZone
|
|
2601
|
+
* Constructor
|
|
2602
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
2603
|
+
* @param injector Injector for injecting services
|
|
2604
|
+
* @param ngZone ngZone to manage external javascripts
|
|
2473
2605
|
*/
|
|
2474
|
-
constructor(
|
|
2475
|
-
super(
|
|
2606
|
+
constructor(formLayout, injector, ngZone) {
|
|
2607
|
+
super(formLayout, injector, ngZone);
|
|
2476
2608
|
}
|
|
2609
|
+
// #endregion Constructors
|
|
2610
|
+
// #region Public Methods
|
|
2477
2611
|
/**
|
|
2478
2612
|
* overwrite tinymce defaults
|
|
2479
2613
|
* @returns boostrap4 has no overwrites
|
|
@@ -2482,7 +2616,7 @@ class SacTinyMceComponent extends SacTinyMceCommon {
|
|
|
2482
2616
|
return {};
|
|
2483
2617
|
}
|
|
2484
2618
|
}
|
|
2485
|
-
SacTinyMceComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacTinyMceComponent, deps: [{ token:
|
|
2619
|
+
SacTinyMceComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacTinyMceComponent, deps: [{ token: SacFormLayoutDirective, host: true, optional: true }, { token: i0.Injector }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2486
2620
|
SacTinyMceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SacTinyMceComponent, selector: "sac-tinymce", providers: [
|
|
2487
2621
|
{
|
|
2488
2622
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -2494,7 +2628,7 @@ SacTinyMceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
2494
2628
|
useExisting: forwardRef(() => SacTinyMceComponent),
|
|
2495
2629
|
multi: true,
|
|
2496
2630
|
},
|
|
2497
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"form-row form-group\">\r\n <div\r\n class=\"col\"\r\n [ngClass]=\"[disablelabel === false ?
|
|
2631
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"form-row form-group\">\r\n <div\r\n class=\"col\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >\r\n <label for=\"{{name}}\" class=\"form-control-label\">{{label}}</label>\r\n </div>\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <editor\r\n [id]=\"name + '_tinymce'\"\r\n [init]=\"_config\"\r\n [initialValue]=\"value\"\r\n ngModel\r\n [ngModelOptions]=\"{standalone: true}\"\r\n (ngModelChange)=\"setValue($event)\"\r\n (onSaveContent)=\"save($event.event.content)\"\r\n [disabled]=\"disabled\"\r\n [class.is-invalid]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n ></editor>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<sac-dialog\r\n *ngIf=\"selectdialogvisible\"\r\n [allowesc]=\"false\"\r\n [backdrop]=\"true\"\r\n [(isvisible)]=\"selectdialogvisible\"\r\n title=\"{{ lngResourceService.GetString('TINYMCE_FILESELECT_DIALOGTITLE') | async }}\"\r\n size=\"large\"\r\n height=\"500px\"\r\n>\r\n <ng-container dialogbody>\r\n <sac-filebrowser\r\n [apiurl]=\"filebrowserapiurl\"\r\n (file)=\"selectDialogSettings.value = $event\"\r\n [allowfoldercreate]=\"allowfoldercreate\"\r\n [allowfolderrename]=\"allowfolderrename\"\r\n [allowfolderdelete]=\"allowfolderdelete\"\r\n [allowfileupload]=\"allowfileupload\"\r\n [allowfilerename]=\"allowfilerename\"\r\n [allowfiledelete]=\"allowfiledelete\"\r\n [selectedfile]=\"selectDialogSettings.value\"\r\n [allowedtypes]=\"selectDialogSettings.allowedtypes\"\r\n ></sac-filebrowser>\r\n </ng-container>\r\n <ng-container dialogfooter>\r\n <sac-button\r\n role=\"primary\"\r\n [name]=\"name + '_modalOk'\"\r\n text=\"{{ lngResourceService.GetString('TINYMCE_FILESELECT_OK') | async }}\"\r\n (clicked)=\"setSelectDialogResult()\"\r\n ></sac-button>\r\n <sac-button\r\n [name]=\"name + '_modalClose'\"\r\n text=\"{{ lngResourceService.GetString('TINYMCE_FILESELECT_CANCEL') | async }}\"\r\n (clicked)=\"closeSelectDialog()\"\r\n ></sac-button>\r\n </ng-container>\r\n</sac-dialog>\r\n", styles: [".is-invalid{border:1px solid var(--red)}\n"], components: [{ type: i2$1.EditorComponent, selector: "editor", inputs: ["cloudChannel", "apiKey", "init", "id", "initialValue", "outputFormat", "inline", "tagName", "plugins", "toolbar", "modelEvents", "allowedEvents", "ignoreEvents", "disabled"] }, { type: SacDialogComponent, selector: "sac-dialog" }, { type: SacBrowserComponent, selector: "sac-filebrowser" }, { type: SacButtonComponent, selector: "sac-button" }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i9.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i9.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "toLabelWidthCss": SacToLabelWidthCssPipe, "toControlWidthCss": SacToControlWidthCssPipe, "async": i2.AsyncPipe } });
|
|
2498
2632
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacTinyMceComponent, decorators: [{
|
|
2499
2633
|
type: Component,
|
|
2500
2634
|
args: [{ selector: 'sac-tinymce', providers: [
|
|
@@ -2508,8 +2642,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2508
2642
|
useExisting: forwardRef(() => SacTinyMceComponent),
|
|
2509
2643
|
multi: true,
|
|
2510
2644
|
},
|
|
2511
|
-
],
|
|
2512
|
-
}], ctorParameters: function () { return [{ type:
|
|
2645
|
+
], template: "<div class=\"form-row form-group\">\r\n <div\r\n class=\"col\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only' ]\"\r\n >\r\n <label for=\"{{name}}\" class=\"form-control-label\">{{label}}</label>\r\n </div>\r\n <div\r\n class=\"col-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n >\r\n <editor\r\n [id]=\"name + '_tinymce'\"\r\n [init]=\"_config\"\r\n [initialValue]=\"value\"\r\n ngModel\r\n [ngModelOptions]=\"{standalone: true}\"\r\n (ngModelChange)=\"setValue($event)\"\r\n (onSaveContent)=\"save($event.event.content)\"\r\n [disabled]=\"disabled\"\r\n [class.is-invalid]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n ></editor>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"invalid-feedback\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<sac-dialog\r\n *ngIf=\"selectdialogvisible\"\r\n [allowesc]=\"false\"\r\n [backdrop]=\"true\"\r\n [(isvisible)]=\"selectdialogvisible\"\r\n title=\"{{ lngResourceService.GetString('TINYMCE_FILESELECT_DIALOGTITLE') | async }}\"\r\n size=\"large\"\r\n height=\"500px\"\r\n>\r\n <ng-container dialogbody>\r\n <sac-filebrowser\r\n [apiurl]=\"filebrowserapiurl\"\r\n (file)=\"selectDialogSettings.value = $event\"\r\n [allowfoldercreate]=\"allowfoldercreate\"\r\n [allowfolderrename]=\"allowfolderrename\"\r\n [allowfolderdelete]=\"allowfolderdelete\"\r\n [allowfileupload]=\"allowfileupload\"\r\n [allowfilerename]=\"allowfilerename\"\r\n [allowfiledelete]=\"allowfiledelete\"\r\n [selectedfile]=\"selectDialogSettings.value\"\r\n [allowedtypes]=\"selectDialogSettings.allowedtypes\"\r\n ></sac-filebrowser>\r\n </ng-container>\r\n <ng-container dialogfooter>\r\n <sac-button\r\n role=\"primary\"\r\n [name]=\"name + '_modalOk'\"\r\n text=\"{{ lngResourceService.GetString('TINYMCE_FILESELECT_OK') | async }}\"\r\n (clicked)=\"setSelectDialogResult()\"\r\n ></sac-button>\r\n <sac-button\r\n [name]=\"name + '_modalClose'\"\r\n text=\"{{ lngResourceService.GetString('TINYMCE_FILESELECT_CANCEL') | async }}\"\r\n (clicked)=\"closeSelectDialog()\"\r\n ></sac-button>\r\n </ng-container>\r\n</sac-dialog>\r\n", styles: [".is-invalid{border:1px solid var(--red)}\n"] }]
|
|
2646
|
+
}], ctorParameters: function () { return [{ type: SacFormLayoutDirective, decorators: [{
|
|
2513
2647
|
type: Host
|
|
2514
2648
|
}, {
|
|
2515
2649
|
type: Optional
|
|
@@ -2521,6 +2655,7 @@ SACBootstrap4TinyMceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0
|
|
|
2521
2655
|
SACBootstrap4TinyMceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SACBootstrap4TinyMceModule, declarations: [SacTinyMceComponent], imports: [CommonModule,
|
|
2522
2656
|
FormsModule,
|
|
2523
2657
|
EditorModule,
|
|
2658
|
+
SACBootstrap4LayoutModule,
|
|
2524
2659
|
SACBootstrap4ButtonModule,
|
|
2525
2660
|
SACBootstrap4DialogModule,
|
|
2526
2661
|
SACBootstrap4BrowserModule], exports: [SacTinyMceComponent] });
|
|
@@ -2528,6 +2663,7 @@ SACBootstrap4TinyMceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.
|
|
|
2528
2663
|
CommonModule,
|
|
2529
2664
|
FormsModule,
|
|
2530
2665
|
EditorModule,
|
|
2666
|
+
SACBootstrap4LayoutModule,
|
|
2531
2667
|
SACBootstrap4ButtonModule,
|
|
2532
2668
|
SACBootstrap4DialogModule,
|
|
2533
2669
|
SACBootstrap4BrowserModule,
|
|
@@ -2540,6 +2676,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2540
2676
|
CommonModule,
|
|
2541
2677
|
FormsModule,
|
|
2542
2678
|
EditorModule,
|
|
2679
|
+
SACBootstrap4LayoutModule,
|
|
2543
2680
|
SACBootstrap4ButtonModule,
|
|
2544
2681
|
SACBootstrap4DialogModule,
|
|
2545
2682
|
SACBootstrap4BrowserModule,
|
|
@@ -2552,13 +2689,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2552
2689
|
* Validation Summary Kompontente
|
|
2553
2690
|
*/
|
|
2554
2691
|
class SacValidationSummaryComponent extends SacValidationSummaryCommon {
|
|
2692
|
+
// #region Constructors
|
|
2555
2693
|
/**
|
|
2556
|
-
*
|
|
2557
|
-
* @param
|
|
2558
|
-
* @param injector
|
|
2694
|
+
* Constructor
|
|
2695
|
+
* @param formControl Instance of Form Component to receive invalid form controls
|
|
2696
|
+
* @param injector Injector for injecting services
|
|
2559
2697
|
*/
|
|
2560
|
-
constructor(
|
|
2561
|
-
super(
|
|
2698
|
+
constructor(parentForm, injector) {
|
|
2699
|
+
super(parentForm, injector);
|
|
2562
2700
|
}
|
|
2563
2701
|
}
|
|
2564
2702
|
SacValidationSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacValidationSummaryComponent, deps: [{ token: SacFormDirective, host: true, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -2568,9 +2706,7 @@ SacValidationSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "1
|
|
|
2568
2706
|
multi: true,
|
|
2569
2707
|
useExisting: SacValidationSummaryComponent,
|
|
2570
2708
|
},
|
|
2571
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"alert alert-danger\" role=\"alert\" *ngIf=\"hasErrors\">\r\n <ul class=\"mb-0\">\r\n <li *ngFor=\"let error of formErrors\">{{error | async}}</li>\r\n </ul>\r\n</div>\r\n", directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i2.AsyncPipe }
|
|
2572
|
-
{ provide: ControlContainer, useExisting: SacFormDirective },
|
|
2573
|
-
] });
|
|
2709
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"alert alert-danger\" role=\"alert\" *ngIf=\"hasErrors\">\r\n <ul class=\"mb-0\">\r\n <li *ngFor=\"let error of formErrors\">{{error | async}}</li>\r\n </ul>\r\n</div>\r\n", directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i2.AsyncPipe } });
|
|
2574
2710
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SacValidationSummaryComponent, decorators: [{
|
|
2575
2711
|
type: Component,
|
|
2576
2712
|
args: [{ selector: 'sac-validationsummary', providers: [
|
|
@@ -2579,8 +2715,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2579
2715
|
multi: true,
|
|
2580
2716
|
useExisting: SacValidationSummaryComponent,
|
|
2581
2717
|
},
|
|
2582
|
-
], viewProviders: [
|
|
2583
|
-
{ provide: ControlContainer, useExisting: SacFormDirective },
|
|
2584
2718
|
], template: "<div class=\"alert alert-danger\" role=\"alert\" *ngIf=\"hasErrors\">\r\n <ul class=\"mb-0\">\r\n <li *ngFor=\"let error of formErrors\">{{error | async}}</li>\r\n </ul>\r\n</div>\r\n" }]
|
|
2585
2719
|
}], ctorParameters: function () { return [{ type: SacFormDirective, decorators: [{
|
|
2586
2720
|
type: Host
|
|
@@ -2670,5 +2804,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2670
2804
|
* Generated bundle index. Do not edit.
|
|
2671
2805
|
*/
|
|
2672
2806
|
|
|
2673
|
-
export { NGFORM_FACTORY, SACBootstrap4BrowserModule, SACBootstrap4ButtonModule, SACBootstrap4CheckboxModule, SACBootstrap4ConfirmModule, SACBootstrap4ContextmenuModule, SACBootstrap4DateTimeModule, SACBootstrap4DialogModule, SACBootstrap4DropdownModule, SACBootstrap4FormModule, SACBootstrap4GridModule, SACBootstrap4InputModule, SACBootstrap4ListModule, SACBootstrap4MultilanguageModule, SACBootstrap4StaticLabelModule, SACBootstrap4TabsModule, SACBootstrap4TinyMceModule, SACBootstrap4UploadModule, SACBootstrap4ValidationSummaryModule, SACBootstrap4WizardModule, SACFORM_FACTORY, SacBrowserComponent, SacButtonComponent, SacCheckboxComponent, SacConfirmComponent, SacContextmenuAnchorDirective, SacContextmenuComponent, SacContextmenuItemButtonComponent, SacContextmenuItemSplitterComponent, SacDateComponent, SacDateSelectorComponent, SacDateTimeComponent, SacDialogComponent, SacDropdownComponent, SacDropdownOptionDirective, SacDropzoneMultipleComponent, SacDropzoneSingleComponent, SacFormDirective, SacGridButtonComponent, SacGridColumnActionComponent, SacGridColumnComponent, SacGridComponent, SacGridImageComponent, SacInheritFormDirective, SacInputAreaComponent, SacInputComponent, SacInputCurrencyComponent, SacInputDecimalComponent, SacInputEmailComponent, SacInputIntegerComponent, SacInputPasswordComponent, SacInputSearchComponent, SacListboxComponent, SacListboxOptionDirective, SacMultilanguageInputAreaComponent, SacMultilanguageInputComponent, SacPagingComponent, SacRadiobuttonComponent, SacRadiobuttonsComponent, SacStaticFormContainerComponent, SacStaticLabelComponent, SacTabComponent, SacTabItemComponent, SacTimeComponent, SacTinyMceComponent, SacUploadComponent, SacUploadMultipleComponent, SacValidationSummaryComponent, SacWizardComponent, SacWizardItemComponent, ServiceConfirm };
|
|
2807
|
+
export { NGFORM_FACTORY, SACBootstrap4BrowserModule, SACBootstrap4ButtonModule, SACBootstrap4CheckboxModule, SACBootstrap4ConfirmModule, SACBootstrap4ContextmenuModule, SACBootstrap4DateTimeModule, SACBootstrap4DialogModule, SACBootstrap4DropdownModule, SACBootstrap4FormModule, SACBootstrap4GridModule, SACBootstrap4InputModule, SACBootstrap4LayoutModule, SACBootstrap4ListModule, SACBootstrap4MultilanguageModule, SACBootstrap4StaticLabelModule, SACBootstrap4TabsModule, SACBootstrap4TinyMceModule, SACBootstrap4UploadModule, SACBootstrap4ValidationSummaryModule, SACBootstrap4WizardModule, SACFORM_FACTORY, SacBrowserComponent, SacButtonComponent, SacCheckboxComponent, SacConfirmComponent, SacContextmenuAnchorDirective, SacContextmenuComponent, SacContextmenuItemButtonComponent, SacContextmenuItemSplitterComponent, SacDateComponent, SacDateSelectorComponent, SacDateTimeComponent, SacDialogComponent, SacDropdownComponent, SacDropdownOptionDirective, SacDropzoneMultipleComponent, SacDropzoneSingleComponent, SacFormDirective, SacFormLayoutDirective, SacGridButtonComponent, SacGridColumnActionComponent, SacGridColumnComponent, SacGridComponent, SacGridImageComponent, SacInheritFormDirective, SacInputAreaComponent, SacInputComponent, SacInputCurrencyComponent, SacInputDecimalComponent, SacInputEmailComponent, SacInputIntegerComponent, SacInputPasswordComponent, SacInputSearchComponent, SacListboxComponent, SacListboxOptionDirective, SacMultilanguageInputAreaComponent, SacMultilanguageInputComponent, SacPagingComponent, SacRadiobuttonComponent, SacRadiobuttonsComponent, SacStaticFormContainerComponent, SacStaticLabelComponent, SacTabComponent, SacTabItemComponent, SacTimeComponent, SacTinyMceComponent, SacToControlWidthCssPipe, SacToLabelWidthCssPipe, SacUploadComponent, SacUploadMultipleComponent, SacValidationSummaryComponent, SacWizardComponent, SacWizardItemComponent, ServiceConfirm };
|
|
2674
2808
|
//# sourceMappingURL=simpleangularcontrols-sac-bootstrap4.mjs.map
|