@simpleangularcontrols/sac-bootstrap3 10.0.0-rc.2 → 10.0.0-rc.20
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/bundles/simpleangularcontrols-sac-bootstrap3.umd.js +571 -255
- package/bundles/simpleangularcontrols-sac-bootstrap3.umd.js.map +1 -1
- package/bundles/simpleangularcontrols-sac-bootstrap3.umd.min.js +1 -1
- package/bundles/simpleangularcontrols-sac-bootstrap3.umd.min.js.map +1 -1
- package/controls/checkbox/radiobutton.d.ts +4 -2
- package/controls/contextmenu/contextmenu.d.ts +16 -0
- package/controls/contextmenu/contextmenu.module.d.ts +2 -0
- package/controls/contextmenu/contextmenu.module.ngfactory.d.ts +3 -0
- package/controls/contextmenu/contextmenuanchor.d.ts +12 -0
- package/controls/contextmenu/contextmenucontainer.d.ts +12 -0
- package/controls/contextmenu/contextmenucontainer.ngfactory.d.ts +1 -0
- package/controls/contextmenu/contextmenuitembutton.d.ts +14 -0
- package/controls/contextmenu/contextmenuitembutton.ngfactory.d.ts +1 -0
- package/controls/contextmenu/contextmenuitemsplitter.d.ts +6 -0
- package/controls/contextmenu/contextmenuitemsplitter.ngfactory.d.ts +1 -0
- package/controls/datetime/date.d.ts +4 -3
- package/controls/datetime/datetime.d.ts +4 -3
- package/controls/datetime/time.d.ts +4 -3
- package/controls/form/inheritform.directive.d.ts +14 -37
- package/controls/grid/gridbutton.d.ts +1 -10
- package/controls/static/formcontainer.d.ts +1 -1
- package/controls/tooltip/tooltip.d.ts +6 -1
- package/controls/treeview/treeview.d.ts +13 -2
- package/controls/treeview/treeview.module.d.ts +1 -1
- package/controls/treeview/treeview.module.ngfactory.d.ts +1 -1
- package/controls/upload/dropzonemultiple.d.ts +21 -0
- package/controls/upload/dropzonemultiple.ngfactory.d.ts +1 -0
- package/controls/upload/dropzonesingle.d.ts +21 -0
- package/controls/upload/dropzonesingle.ngfactory.d.ts +1 -0
- package/esm2015/controls/buttons/button.js +5 -3
- package/esm2015/controls/buttons/button.module.ngfactory.js +1 -1
- package/esm2015/controls/checkbox/checkbox.js +2 -2
- package/esm2015/controls/checkbox/checkbox.module.js +7 -2
- package/esm2015/controls/checkbox/checkbox.module.ngfactory.js +1 -1
- package/esm2015/controls/checkbox/radiobutton.js +11 -7
- package/esm2015/controls/checkbox/radiobuttons.js +2 -2
- package/esm2015/controls/confirm/confirm.js +2 -2
- package/esm2015/controls/confirm/confirm.module.ngfactory.js +1 -1
- package/esm2015/controls/contextmenu/contextmenu.js +34 -0
- package/esm2015/controls/contextmenu/contextmenu.module.js +28 -0
- package/esm2015/controls/contextmenu/contextmenu.module.ngfactory.js +7 -0
- package/esm2015/controls/contextmenu/contextmenu.ngfactory.js +7 -0
- package/esm2015/controls/contextmenu/contextmenuanchor.js +30 -0
- package/esm2015/controls/contextmenu/contextmenuanchor.ngfactory.js +7 -0
- package/esm2015/controls/contextmenu/contextmenucontainer.js +30 -0
- package/esm2015/controls/contextmenu/contextmenucontainer.ngfactory.js +7 -0
- package/esm2015/controls/contextmenu/contextmenuitembutton.js +42 -0
- package/esm2015/controls/contextmenu/contextmenuitembutton.ngfactory.js +7 -0
- package/esm2015/controls/contextmenu/contextmenuitemsplitter.js +20 -0
- package/esm2015/controls/contextmenu/contextmenuitemsplitter.ngfactory.js +7 -0
- package/esm2015/controls/datetime/date.js +14 -9
- package/esm2015/controls/datetime/datetime.js +9 -7
- package/esm2015/controls/datetime/datetime.module.js +8 -2
- package/esm2015/controls/datetime/datetime.module.ngfactory.js +1 -1
- package/esm2015/controls/datetime/time.js +9 -7
- package/esm2015/controls/dialog/dialog.js +2 -2
- package/esm2015/controls/dialog/dialog.module.ngfactory.js +1 -1
- package/esm2015/controls/form/inheritform.directive.js +42 -56
- package/esm2015/controls/grid/grid.js +2 -2
- package/esm2015/controls/grid/grid.module.js +21 -8
- package/esm2015/controls/grid/grid.module.ngfactory.js +1 -1
- package/esm2015/controls/grid/gridbutton.js +3 -11
- package/esm2015/controls/grid/gridcolumn.js +2 -2
- package/esm2015/controls/grid/paging.js +2 -2
- package/esm2015/controls/input/input.js +2 -2
- package/esm2015/controls/input/input.module.ngfactory.js +1 -1
- package/esm2015/controls/input/inputarea.js +2 -2
- package/esm2015/controls/input/inputcurrency.js +2 -2
- package/esm2015/controls/input/inputdecimal.js +2 -2
- package/esm2015/controls/input/inputemail.js +2 -2
- package/esm2015/controls/input/inputinteger.js +2 -2
- package/esm2015/controls/input/inputpassword.js +2 -2
- package/esm2015/controls/input/inputsearch.js +2 -2
- package/esm2015/controls/list/dropdown.js +2 -2
- package/esm2015/controls/list/list.module.js +3 -1
- package/esm2015/controls/list/list.module.ngfactory.js +1 -1
- package/esm2015/controls/list/listbox.js +2 -2
- package/esm2015/controls/static/formcontainer.js +3 -3
- package/esm2015/controls/static/staticlabel.js +2 -2
- package/esm2015/controls/static/staticlabel.module.ngfactory.js +1 -1
- package/esm2015/controls/tabs/tab.js +2 -2
- package/esm2015/controls/tabs/tabs.module.ngfactory.js +1 -1
- package/esm2015/controls/tinymce/tinymce.js +2 -2
- package/esm2015/controls/tinymce/tinymce.module.js +3 -1
- package/esm2015/controls/tinymce/tinymce.module.ngfactory.js +1 -1
- package/esm2015/controls/tooltip/tooltip.js +13 -3
- package/esm2015/controls/tooltip/tooltip.module.js +3 -5
- package/esm2015/controls/treeview/treeview.js +36 -6
- package/esm2015/controls/treeview/treeview.module.js +11 -12
- package/esm2015/controls/treeview/treeview.module.ngfactory.js +1 -1
- package/esm2015/controls/upload/dropzonemultiple.js +55 -0
- package/esm2015/controls/{treeview/ngtreeitemaction.ngfactory.js → upload/dropzonemultiple.ngfactory.js} +1 -1
- package/esm2015/controls/upload/dropzonesingle.js +55 -0
- package/esm2015/controls/{treeview/treeviewchild.ngfactory.js → upload/dropzonesingle.ngfactory.js} +1 -1
- package/esm2015/controls/upload/upload.js +3 -3
- package/esm2015/controls/upload/upload.module.js +15 -7
- package/esm2015/controls/upload/upload.module.ngfactory.js +1 -1
- package/esm2015/controls/upload/uploadmultiple.js +3 -3
- package/esm2015/public_api.js +9 -5
- package/esm2015/simpleangularcontrols-sac-bootstrap3.js +2 -1
- package/fesm2015/simpleangularcontrols-sac-bootstrap3.js +522 -222
- package/fesm2015/simpleangularcontrols-sac-bootstrap3.js.map +1 -1
- package/package.json +3 -3
- package/public_api.d.ts +8 -4
- package/simpleangularcontrols-sac-bootstrap3-10.0.0-rc.20.tgz +0 -0
- package/simpleangularcontrols-sac-bootstrap3.d.ts +1 -0
- package/simpleangularcontrols-sac-bootstrap3.metadata.json +1 -1
- package/controls/treeview/ngtreeitemaction.d.ts +0 -5
- package/controls/treeview/treeviewchild.d.ts +0 -3
- package/esm2015/controls/treeview/ngtreeitemaction.js +0 -17
- package/esm2015/controls/treeview/treeviewchild.js +0 -11
- package/simpleangularcontrols-sac-bootstrap3-10.0.0-rc.2.tgz +0 -0
- /package/controls/{treeview/ngtreeitemaction.ngfactory.d.ts → contextmenu/contextmenu.ngfactory.d.ts} +0 -0
- /package/controls/{treeview/treeviewchild.ngfactory.d.ts → contextmenu/contextmenuanchor.ngfactory.d.ts} +0 -0
|
@@ -495,7 +495,9 @@
|
|
|
495
495
|
SacButtonComponent.decorators = [
|
|
496
496
|
{ type: core.Component, args: [{
|
|
497
497
|
selector: 'sac-button',
|
|
498
|
-
template: "<a\r\n [id]=\"name\"\r\n class=\"btn\"\r\n [class.btn-primary]=\"role === 'primary'\"\r\n [class.btn-secondary]=\"role === 'secondary'\"\r\n [class.btn-success]=\"role === 'success'\"\r\n [class.btn-danger]=\"role === 'danger'\"\r\n [class.btn-warning]=\"role === 'warning'\"\r\n [class.btn-info]=\"role === 'info'\"\r\n [class.btn-default]=\"role === 'default'\"\r\n [class.btn-link]=\"role === 'link'\"\r\n [attr.disabled]=\"_isdisabled ? 'disabled' : null\"\r\n (click)=\"buttonClick()\"\r\n>\r\n <i\r\n *ngIf=\"icon !== ''\"\r\n [ngClass]=\"icon\"\r\n [ngStyle]=\"{ 'margin-right': text ? '0.5rem': null}\"\r\n ></i>\r\n {{text}}\r\n</a>\r\n"
|
|
498
|
+
template: "<a\r\n [id]=\"name\"\r\n class=\"btn\"\r\n [class.btn-primary]=\"role === 'primary'\"\r\n [class.btn-secondary]=\"role === 'secondary'\"\r\n [class.btn-success]=\"role === 'success'\"\r\n [class.btn-danger]=\"role === 'danger'\"\r\n [class.btn-warning]=\"role === 'warning'\"\r\n [class.btn-info]=\"role === 'info'\"\r\n [class.btn-default]=\"role === 'default'\"\r\n [class.btn-link]=\"role === 'link'\"\r\n [attr.disabled]=\"_isdisabled ? 'disabled' : null\"\r\n (click)=\"buttonClick()\"\r\n>\r\n <i\r\n *ngIf=\"isloading\"\r\n class=\"\"\r\n role=\"status\"\r\n aria-hidden=\"true\"\r\n class=\"glyphicon glyphicon-repeat spin\"\r\n [ngStyle]=\"{ 'margin-right': text ? '0.5rem': null}\"\r\n ></i>\r\n <i\r\n *ngIf=\"!isloading && icon !== ''\"\r\n [ngClass]=\"icon\"\r\n [ngStyle]=\"{ 'margin-right': text ? '0.5rem': null}\"\r\n ></i>\r\n {{text}}\r\n</a>\r\n",
|
|
499
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
500
|
+
styles: ['sac-button+sac-button {margin-left: 5px}', '.spin { animation: spin 1.5s infinite; } @keyframes spin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }']
|
|
499
501
|
},] }
|
|
500
502
|
];
|
|
501
503
|
|
|
@@ -694,6 +696,71 @@
|
|
|
694
696
|
},] }
|
|
695
697
|
];
|
|
696
698
|
|
|
699
|
+
/**
|
|
700
|
+
* Tooltip Komponente
|
|
701
|
+
*
|
|
702
|
+
* @example ToolTip Control
|
|
703
|
+
*
|
|
704
|
+
* <ngTooltip tooltiptext="Mein Tooltip" [inlinemode]="true">
|
|
705
|
+
* <i class="tooltip"></i>
|
|
706
|
+
* </ngTooltip>
|
|
707
|
+
*
|
|
708
|
+
* @example ToolTip Control im Inline Mode. Style auf Icon kann auch in Klasse ausgelagert werden.
|
|
709
|
+
*
|
|
710
|
+
* <div class="form-inline">
|
|
711
|
+
* <ngInputSearch iconname="Suchen"></ngInputSearch>
|
|
712
|
+
* <ngTooltip tooltiptext="Mein Tooltip" [inlinemode]="true">
|
|
713
|
+
* <i class="tooltip" style="position: relative; left: 0; top: 3px; display: inline-block; margin-right: 10px;"></i>
|
|
714
|
+
* </ngTooltip>
|
|
715
|
+
* </div>
|
|
716
|
+
*
|
|
717
|
+
*/
|
|
718
|
+
var SacTooltipComponent = /** @class */ (function (_super) {
|
|
719
|
+
__extends(SacTooltipComponent, _super);
|
|
720
|
+
// #region Constructors
|
|
721
|
+
/**
|
|
722
|
+
* Konstrukor
|
|
723
|
+
* @param parent SacFormular Instanz
|
|
724
|
+
* @param injector Component Injector
|
|
725
|
+
*/
|
|
726
|
+
function SacTooltipComponent(cdRef, ref) {
|
|
727
|
+
return _super.call(this, cdRef, ref) || this;
|
|
728
|
+
}
|
|
729
|
+
// #endregion Constructors
|
|
730
|
+
// #region Protected Methods
|
|
731
|
+
/**
|
|
732
|
+
* Padding for Tooltip
|
|
733
|
+
* @returns Always 0. BS3 not require Padding
|
|
734
|
+
*/
|
|
735
|
+
SacTooltipComponent.prototype.getTooltipOffset = function () {
|
|
736
|
+
return 0;
|
|
737
|
+
};
|
|
738
|
+
return SacTooltipComponent;
|
|
739
|
+
}(sacCommon.SacTooltipCommon));
|
|
740
|
+
SacTooltipComponent.decorators = [
|
|
741
|
+
{ type: core.Component, args: [{
|
|
742
|
+
selector: 'sac-tooltip',
|
|
743
|
+
template: "<div [style.display]=\"inlinemode ? 'inline' : null\">\r\n <div\r\n #container\r\n (mouseenter)=\"ShowTooltip()\"\r\n (mouseleave)=\"HideTooltip()\"\r\n [style.display]=\"inlinemode ? 'inline' : null\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div\r\n *ngIf=\"IsTooltipVisible()\"\r\n #tooltip>\r\n <div\r\n [style.visibility]=\"IsTooltipContentVisible ? 'visible' : 'hidden'\"\r\n class=\"tooltip in\"\r\n style=\"display: block\"\r\n [style.left.px]=\"LeftPos\"\r\n [style.top.px]=\"TopPos\"\r\n [class.top]=\"GetTooltipPosition() === TooltipPosition.top\"\r\n [class.left]=\"GetTooltipPosition() === TooltipPosition.left\"\r\n [class.right]=\"GetTooltipPosition() === TooltipPosition.right\"\r\n [class.bottom]=\"GetTooltipPosition() === TooltipPosition.bottom\">\r\n <div class=\"tooltip-arrow\"></div>\r\n <div class=\"tooltip-inner\">{{ tooltiptext }}</div>\r\n </div>\r\n </div>\r\n</div>\r\n"
|
|
744
|
+
},] }
|
|
745
|
+
];
|
|
746
|
+
SacTooltipComponent.ctorParameters = function () { return [
|
|
747
|
+
{ type: core.ChangeDetectorRef },
|
|
748
|
+
{ type: core.ElementRef }
|
|
749
|
+
]; };
|
|
750
|
+
|
|
751
|
+
var SACBootstrap3TooltipModule = /** @class */ (function () {
|
|
752
|
+
function SACBootstrap3TooltipModule() {
|
|
753
|
+
}
|
|
754
|
+
return SACBootstrap3TooltipModule;
|
|
755
|
+
}());
|
|
756
|
+
SACBootstrap3TooltipModule.decorators = [
|
|
757
|
+
{ type: core.NgModule, args: [{
|
|
758
|
+
declarations: [SacTooltipComponent],
|
|
759
|
+
imports: [common.CommonModule],
|
|
760
|
+
exports: [SacTooltipComponent],
|
|
761
|
+
},] }
|
|
762
|
+
];
|
|
763
|
+
|
|
697
764
|
var SacCheckboxComponent = /** @class */ (function (_super) {
|
|
698
765
|
__extends(SacCheckboxComponent, _super);
|
|
699
766
|
// #region Constructors
|
|
@@ -710,7 +777,7 @@
|
|
|
710
777
|
SacCheckboxComponent.decorators = [
|
|
711
778
|
{ type: core.Component, args: [{
|
|
712
779
|
selector: 'sac-checkbox',
|
|
713
|
-
template: "<div\r\n
|
|
780
|
+
template: "<div\r\n class=\"row\"\r\n [class.form-group]=\"!stacked\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"!disablelabel && !stacked\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[!disablelabel && !stacked ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[!disablelabel && !stacked ? (this.labelSizes | toControlWidthCss) : '']\">\r\n <div\r\n class=\"checkbox\"\r\n [class.checkbox-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.checkbox-lg]=\"componentHeight === ControlHeight.Large\">\r\n <label for=\"{{ name }}\">\r\n <input\r\n id=\"{{ name }}\"\r\n name=\"{{ name }}\"\r\n type=\"checkbox\"\r\n class=\"visible-checkbox\"\r\n [checked]=\"value\"\r\n [disabled]=\"isdisabled\"\r\n (blur)=\"onTouch()\"\r\n (change)=\"setValue($event.target.checked)\" />\r\n <ng-container *ngIf=\"checkboxtext\">\r\n <span>{{ checkboxtext }}</span>\r\n </ng-container>\r\n </label>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && (disablelabel || stacked)\"\r\n class=\"form-control-static\"\r\n style=\"display: inline\">\r\n <sac-tooltip\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n </div>\r\n</div>\r\n",
|
|
714
781
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
715
782
|
providers: [
|
|
716
783
|
{
|
|
@@ -748,7 +815,7 @@
|
|
|
748
815
|
SacRadiobuttonsComponent.decorators = [
|
|
749
816
|
{ type: core.Component, args: [{
|
|
750
817
|
selector: 'sac-radiobuttons',
|
|
751
|
-
template: "<div\r\n
|
|
818
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\">\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n </div>\r\n</div>\r\n",
|
|
752
819
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
753
820
|
providers: [
|
|
754
821
|
{
|
|
@@ -771,20 +838,23 @@
|
|
|
771
838
|
|
|
772
839
|
var SacRadiobuttonComponent = /** @class */ (function (_super) {
|
|
773
840
|
__extends(SacRadiobuttonComponent, _super);
|
|
774
|
-
|
|
775
|
-
|
|
841
|
+
// #region Constructors
|
|
842
|
+
function SacRadiobuttonComponent(sacRadioButtons, formLayout, injector) {
|
|
843
|
+
return _super.call(this, sacRadioButtons, formLayout, injector) || this;
|
|
776
844
|
}
|
|
777
845
|
return SacRadiobuttonComponent;
|
|
778
846
|
}(sacCommon.SacRadiobuttonCommon));
|
|
779
847
|
SacRadiobuttonComponent.decorators = [
|
|
780
848
|
{ type: core.Component, args: [{
|
|
781
849
|
selector: 'sac-radiobutton',
|
|
782
|
-
template: "<div\r\n
|
|
850
|
+
template: "<div\r\n class=\"radio\"\r\n *ngIf=\"hidden === false\"\r\n [class.radio-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.radio-lg]=\"componentHeight === ControlHeight.Large\">\r\n <label for=\"{{ getName }}_{{ getIndex }}\">\r\n <input\r\n id=\"{{ getName }}_{{ getIndex }}\"\r\n name=\"{{ getName }}\"\r\n type=\"radio\"\r\n [value]=\"value\"\r\n [checked]=\"checked\"\r\n (change)=\"ChangeEvent()\"\r\n [disabled]=\"isDisabled\" />\r\n <ng-template *ngTemplateOutlet=\"labeltemplate || defaultItemLabelTemplate; context: { label: label }\"></ng-template>\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n </label>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n class=\"form-control-static\"\r\n style=\"display: inline\">\r\n <sac-tooltip\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n</div>\r\n\r\n<ng-template\r\n #defaultItemLabelTemplate\r\n let-label=\"label\">\r\n <span>{{ label }}</span>\r\n</ng-template>\r\n",
|
|
783
851
|
styles: [".radio-lg label{font-size:18px;padding-top:2px}.radio-lg label input{height:20px;margin-top:2px;width:20px}.radio-sm{padding-top:2px}.radio-sm label{font-size:12px;min-height:14px;padding-top:2px}.radio-sm label input{height:12px;margin-top:2px;width:12px}"]
|
|
784
852
|
},] }
|
|
785
853
|
];
|
|
786
854
|
SacRadiobuttonComponent.ctorParameters = function () { return [
|
|
787
|
-
{ type: SacRadiobuttonsComponent, decorators: [{ type: core.Host }] }
|
|
855
|
+
{ type: SacRadiobuttonsComponent, decorators: [{ type: core.Host }] },
|
|
856
|
+
{ type: SacFormLayoutDirective, decorators: [{ type: core.Host }, { type: core.Optional }] },
|
|
857
|
+
{ type: core.Injector }
|
|
788
858
|
]; };
|
|
789
859
|
|
|
790
860
|
var SACBootstrap3CheckboxModule = /** @class */ (function () {
|
|
@@ -799,7 +869,11 @@
|
|
|
799
869
|
SacRadiobuttonComponent,
|
|
800
870
|
SacRadiobuttonsComponent,
|
|
801
871
|
],
|
|
802
|
-
imports: [
|
|
872
|
+
imports: [
|
|
873
|
+
common.CommonModule,
|
|
874
|
+
SACBootstrap3LayoutModule,
|
|
875
|
+
SACBootstrap3TooltipModule,
|
|
876
|
+
],
|
|
803
877
|
exports: [
|
|
804
878
|
SacCheckboxComponent,
|
|
805
879
|
SacRadiobuttonComponent,
|
|
@@ -853,7 +927,7 @@
|
|
|
853
927
|
SacDialogComponent.decorators = [
|
|
854
928
|
{ type: core.Component, args: [{
|
|
855
929
|
selector: 'sac-dialog',
|
|
856
|
-
template: "<div [id]=\"name\" *ngIf=\"_show\" [ngStyle]=\"{'z-index': zindex}\">\r\n <div
|
|
930
|
+
template: "<div [id]=\"name\" *ngIf=\"_show\" [ngStyle]=\"{'z-index': zindex}\">\r\n <div\r\n class=\"modal in\"\r\n style=\"display: block\"\r\n tabindex=\"-1\"\r\n role=\"dialog\"\r\n #dialog\r\n >\r\n <div\r\n class=\"modal-dialog\"\r\n [class.modal-sm]=\"_size==='small'\"\r\n [class.modal-lg]=\"_size === 'large' || _size === 'extralarge'\"\r\n role=\"document\"\r\n >\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <button\r\n type=\"button\"\r\n class=\"close\"\r\n data-dismiss=\"modal\"\r\n aria-label=\"Close\"\r\n (click)=\"hide()\"\r\n *ngIf=\"closebutton\"\r\n >\r\n <span aria-hidden=\"true\">×</span>\r\n </button>\r\n <span class=\"modal-title\">{{title}}</span>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content select=\"[dialogbody]\"></ng-content>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <ng-content select=\"[dialogfooter]\"></ng-content>\r\n </div>\r\n </div>\r\n <!-- /.modal-content -->\r\n </div>\r\n <!-- /.modal-dialog -->\r\n </div>\r\n <!-- /.modal -->\r\n</div>\r\n<div class=\"modal-backdrop in\" *ngIf=\"_show && backdrop\" #backdrop></div>\r\n"
|
|
857
931
|
},] }
|
|
858
932
|
];
|
|
859
933
|
SacDialogComponent.ctorParameters = function () { return [
|
|
@@ -889,7 +963,7 @@
|
|
|
889
963
|
SacConfirmComponent.decorators = [
|
|
890
964
|
{ type: core.Component, args: [{
|
|
891
965
|
selector: 'sac-confirm',
|
|
892
|
-
template: "<sac-dialog\r\n [(isvisible)]=\"isvisible\"\r\n [title]=\"title\"\r\n [allowesc]=\"false\"\r\n [closebutton]=\"false\"\r\n>\r\n <div dialogbody>\r\n <div class=\"media\">\r\n <div class=\"media-left media-middle\" *ngIf=\"hasImage()\">\r\n <img [attr.src]=\"image\" />\r\n </div>\r\n <div class=\"media-body\">{{message}}</div>\r\n </div>\r\n </div>\r\n <div dialogfooter>\r\n <ng-container *ngFor=\"let button of buttons\">\r\n <sac-button\r\n [name]=\"button.key\"\r\n [text]=\"button.text\"\r\n [role]=\"button.role || 'default'\"\r\n (clicked)=\"confirm(button.key)\"\r\n
|
|
966
|
+
template: "<sac-dialog\r\n name=\"confirmDialog\"\r\n [(isvisible)]=\"isvisible\"\r\n [title]=\"title\"\r\n [allowesc]=\"false\"\r\n [closebutton]=\"false\"\r\n>\r\n <div dialogbody>\r\n <div class=\"media\">\r\n <div class=\"media-left media-middle\" *ngIf=\"hasImage()\">\r\n <img [attr.src]=\"image\" />\r\n </div>\r\n <div class=\"media-body\">{{message}}</div>\r\n </div>\r\n </div>\r\n <div dialogfooter>\r\n <ng-container *ngFor=\"let button of buttons\">\r\n <sac-button\r\n [name]=\"button.key\"\r\n [text]=\"button.text\"\r\n [role]=\"button.role || 'default'\"\r\n (clicked)=\"confirm(button.key)\"\r\n ></sac-button>\r\n </ng-container>\r\n </div>\r\n</sac-dialog>\r\n"
|
|
893
967
|
},] }
|
|
894
968
|
];
|
|
895
969
|
|
|
@@ -1022,7 +1096,190 @@
|
|
|
1022
1096
|
},] }
|
|
1023
1097
|
];
|
|
1024
1098
|
|
|
1025
|
-
|
|
1099
|
+
/**
|
|
1100
|
+
* Component for context menu
|
|
1101
|
+
*/
|
|
1102
|
+
var SacContextmenuComponent = /** @class */ (function (_super) {
|
|
1103
|
+
__extends(SacContextmenuComponent, _super);
|
|
1104
|
+
// #region Constructors
|
|
1105
|
+
/**
|
|
1106
|
+
* Constructor
|
|
1107
|
+
* @param document Reference to HTML document
|
|
1108
|
+
* @param ngZone Angular Zone Service
|
|
1109
|
+
* @param elementRef Reference to HTML element of the current component
|
|
1110
|
+
* @param renderer Render Service from Angular
|
|
1111
|
+
* @param injector injector to resolve services
|
|
1112
|
+
*/
|
|
1113
|
+
function SacContextmenuComponent(document, ngZone, elementRef, renderer, injector) {
|
|
1114
|
+
return _super.call(this, document, ngZone, elementRef, renderer, injector) || this;
|
|
1115
|
+
}
|
|
1116
|
+
return SacContextmenuComponent;
|
|
1117
|
+
}(sacCommon.SacContextmenuCommon));
|
|
1118
|
+
SacContextmenuComponent.decorators = [
|
|
1119
|
+
{ type: core.Component, args: [{
|
|
1120
|
+
selector: 'sac-contextmenu',
|
|
1121
|
+
template: "<div\r\n class=\"dropdown\"\r\n [ngClass]=\"cssclass\">\r\n <ng-container [ngTemplateOutlet]=\"buttontemplate || defaultButtonTemplate\"></ng-container>\r\n\r\n <ul\r\n class=\"dropdown-menu dropdown-menu-right\"\r\n sacContextMenuContainer\r\n [class.show]=\"isopen\">\r\n <ng-content></ng-content>\r\n </ul>\r\n</div>\r\n\r\n<ng-template #defaultButtonTemplate>\r\n <button\r\n sacContextMenuAnchor\r\n class=\"btn btn-link\"\r\n type=\"button\"\r\n (click)=\"toggle()\">\r\n <i [class]=\"IconContextMenu\"></i>\r\n </button>\r\n</ng-template>\r\n"
|
|
1122
|
+
},] }
|
|
1123
|
+
];
|
|
1124
|
+
SacContextmenuComponent.ctorParameters = function () { return [
|
|
1125
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] },
|
|
1126
|
+
{ type: core.NgZone },
|
|
1127
|
+
{ type: core.ElementRef },
|
|
1128
|
+
{ type: core.Renderer2 },
|
|
1129
|
+
{ type: core.Injector }
|
|
1130
|
+
]; };
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* Anker Komponente für Context Menü. Wird zum positionieren des Context Menü in der Page benötigt.
|
|
1134
|
+
*/
|
|
1135
|
+
var SacContextmenuAnchorDirective = /** @class */ (function (_super) {
|
|
1136
|
+
__extends(SacContextmenuAnchorDirective, _super);
|
|
1137
|
+
// #region Constructors
|
|
1138
|
+
/**
|
|
1139
|
+
* Konstruktor
|
|
1140
|
+
* @param elementRef HTML DOM Referenz
|
|
1141
|
+
*/
|
|
1142
|
+
function SacContextmenuAnchorDirective(elementRef) {
|
|
1143
|
+
return _super.call(this, elementRef) || this;
|
|
1144
|
+
}
|
|
1145
|
+
return SacContextmenuAnchorDirective;
|
|
1146
|
+
}(sacCommon.SacContextmenuAnchorCommon));
|
|
1147
|
+
SacContextmenuAnchorDirective.decorators = [
|
|
1148
|
+
{ type: core.Directive, args: [{
|
|
1149
|
+
selector: '[sacContextMenuAnchor]',
|
|
1150
|
+
providers: [
|
|
1151
|
+
{
|
|
1152
|
+
provide: sacCommon.SacContextmenuAnchorCommon,
|
|
1153
|
+
useExisting: core.forwardRef(function () { return SacContextmenuAnchorDirective; }),
|
|
1154
|
+
},
|
|
1155
|
+
],
|
|
1156
|
+
},] }
|
|
1157
|
+
];
|
|
1158
|
+
SacContextmenuAnchorDirective.ctorParameters = function () { return [
|
|
1159
|
+
{ type: core.ElementRef }
|
|
1160
|
+
]; };
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Marker Komponente für Context Menü
|
|
1164
|
+
*/
|
|
1165
|
+
var SacContextmenuContainerDirective = /** @class */ (function (_super) {
|
|
1166
|
+
__extends(SacContextmenuContainerDirective, _super);
|
|
1167
|
+
// #region Constructors
|
|
1168
|
+
/**
|
|
1169
|
+
* Konstruktor
|
|
1170
|
+
* @param elementRef Referenz auf DOM Element
|
|
1171
|
+
*/
|
|
1172
|
+
function SacContextmenuContainerDirective(elementRef) {
|
|
1173
|
+
return _super.call(this, elementRef) || this;
|
|
1174
|
+
}
|
|
1175
|
+
return SacContextmenuContainerDirective;
|
|
1176
|
+
}(sacCommon.SacContextMenuContrainerCommon));
|
|
1177
|
+
SacContextmenuContainerDirective.decorators = [
|
|
1178
|
+
{ type: core.Directive, args: [{
|
|
1179
|
+
selector: '[sacContextMenuContainer]',
|
|
1180
|
+
providers: [
|
|
1181
|
+
{
|
|
1182
|
+
provide: sacCommon.SacContextMenuContrainerCommon,
|
|
1183
|
+
useExisting: core.forwardRef(function () { return SacContextmenuContainerDirective; }),
|
|
1184
|
+
},
|
|
1185
|
+
],
|
|
1186
|
+
},] }
|
|
1187
|
+
];
|
|
1188
|
+
SacContextmenuContainerDirective.ctorParameters = function () { return [
|
|
1189
|
+
{ type: core.ElementRef }
|
|
1190
|
+
]; };
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* Component for menu entry in context menu
|
|
1194
|
+
*/
|
|
1195
|
+
var SacContextmenuItemButtonComponent = /** @class */ (function (_super) {
|
|
1196
|
+
__extends(SacContextmenuItemButtonComponent, _super);
|
|
1197
|
+
// #region Constructors
|
|
1198
|
+
/**
|
|
1199
|
+
* Constructor
|
|
1200
|
+
* @param contextmenu Instance von Context Menü
|
|
1201
|
+
*/
|
|
1202
|
+
function SacContextmenuItemButtonComponent(el) {
|
|
1203
|
+
var _this = _super.call(this) || this;
|
|
1204
|
+
_this.el = el;
|
|
1205
|
+
return _this;
|
|
1206
|
+
}
|
|
1207
|
+
// #endregion Constructors
|
|
1208
|
+
// #region Public Methods
|
|
1209
|
+
SacContextmenuItemButtonComponent.prototype.ngOnInit = function () {
|
|
1210
|
+
var rootElement = this.el.nativeElement;
|
|
1211
|
+
var parentElement = rootElement.parentElement;
|
|
1212
|
+
while (rootElement.firstChild) {
|
|
1213
|
+
parentElement.insertBefore(rootElement.firstChild, rootElement);
|
|
1214
|
+
}
|
|
1215
|
+
parentElement.removeChild(rootElement);
|
|
1216
|
+
};
|
|
1217
|
+
return SacContextmenuItemButtonComponent;
|
|
1218
|
+
}(sacCommon.SacContextmenuItemButtonCommon));
|
|
1219
|
+
SacContextmenuItemButtonComponent.decorators = [
|
|
1220
|
+
{ type: core.Component, args: [{
|
|
1221
|
+
selector: 'sac-contextmenubutton',
|
|
1222
|
+
template: "<li\r\n [class.disabled]=\"isdisabled\"\r\n [ngClass]=\"cssclass\">\r\n <a\r\n [id]=\"name\"\r\n (click)=\"callaction($event)\"\r\n [attr.disabled]=\"isdisabled ? 'disabled' : null\"\r\n [ngStyle]=\"{ cursor: !isdisabled ? 'pointer' : null }\"\r\n style=\"display: flex\">\r\n <div\r\n style=\"min-width: 25px\"\r\n *ngIf=\"!isicondisabled\">\r\n <img\r\n *ngIf=\"image\"\r\n [src]=\"image\"\r\n style=\"vertical-align: baseline\"\r\n [ngStyle]=\"{ 'margin-right': text ? '5px' : null }\" />\r\n <i\r\n *ngIf=\"icon\"\r\n [class]=\"iconstyle + ' ' + icon\"\r\n [ngStyle]=\"{ 'margin-right': text ? '5px' : null }\">\r\n </i>\r\n </div>\r\n <div>{{ text }}</div>\r\n </a>\r\n</li>\r\n",
|
|
1223
|
+
providers: [
|
|
1224
|
+
{
|
|
1225
|
+
provide: sacCommon.SacContextmenuItemCommon,
|
|
1226
|
+
useExisting: core.forwardRef(function () { return SacContextmenuItemButtonComponent; }),
|
|
1227
|
+
},
|
|
1228
|
+
]
|
|
1229
|
+
},] }
|
|
1230
|
+
];
|
|
1231
|
+
SacContextmenuItemButtonComponent.ctorParameters = function () { return [
|
|
1232
|
+
{ type: core.ElementRef }
|
|
1233
|
+
]; };
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* Splitter Komponente in Context Menü
|
|
1237
|
+
*/
|
|
1238
|
+
var SacContextmenuItemSplitterComponent = /** @class */ (function (_super) {
|
|
1239
|
+
__extends(SacContextmenuItemSplitterComponent, _super);
|
|
1240
|
+
function SacContextmenuItemSplitterComponent() {
|
|
1241
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1242
|
+
}
|
|
1243
|
+
return SacContextmenuItemSplitterComponent;
|
|
1244
|
+
}(sacCommon.SacContextmenuItemCommon));
|
|
1245
|
+
SacContextmenuItemSplitterComponent.decorators = [
|
|
1246
|
+
{ type: core.Component, args: [{
|
|
1247
|
+
selector: 'sac-contextmenusplitter',
|
|
1248
|
+
template: "<li\r\n role=\"separator\"\r\n class=\"divider\"></li>\r\n",
|
|
1249
|
+
providers: [
|
|
1250
|
+
{
|
|
1251
|
+
provide: sacCommon.SacContextmenuItemCommon,
|
|
1252
|
+
useExisting: core.forwardRef(function () { return SacContextmenuItemSplitterComponent; }),
|
|
1253
|
+
},
|
|
1254
|
+
]
|
|
1255
|
+
},] }
|
|
1256
|
+
];
|
|
1257
|
+
|
|
1258
|
+
var SACBootstrap3ContextmenuModule = /** @class */ (function () {
|
|
1259
|
+
function SACBootstrap3ContextmenuModule() {
|
|
1260
|
+
}
|
|
1261
|
+
return SACBootstrap3ContextmenuModule;
|
|
1262
|
+
}());
|
|
1263
|
+
SACBootstrap3ContextmenuModule.decorators = [
|
|
1264
|
+
{ type: core.NgModule, args: [{
|
|
1265
|
+
declarations: [
|
|
1266
|
+
SacContextmenuComponent,
|
|
1267
|
+
SacContextmenuItemButtonComponent,
|
|
1268
|
+
SacContextmenuItemSplitterComponent,
|
|
1269
|
+
SacContextmenuAnchorDirective,
|
|
1270
|
+
SacContextmenuContainerDirective,
|
|
1271
|
+
],
|
|
1272
|
+
imports: [common.CommonModule],
|
|
1273
|
+
exports: [
|
|
1274
|
+
SacContextmenuComponent,
|
|
1275
|
+
SacContextmenuItemButtonComponent,
|
|
1276
|
+
SacContextmenuItemSplitterComponent,
|
|
1277
|
+
SacContextmenuAnchorDirective,
|
|
1278
|
+
],
|
|
1279
|
+
},] }
|
|
1280
|
+
];
|
|
1281
|
+
|
|
1282
|
+
// #region Classes
|
|
1026
1283
|
var SacDateComponent = /** @class */ (function (_super) {
|
|
1027
1284
|
__extends(SacDateComponent, _super);
|
|
1028
1285
|
// #region Constructors
|
|
@@ -1031,16 +1288,17 @@
|
|
|
1031
1288
|
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1032
1289
|
* @param injector Injector for injecting services
|
|
1033
1290
|
* @param elementRef Reference to html dom element
|
|
1291
|
+
* @param cdRef Change Dectection Servie
|
|
1034
1292
|
*/
|
|
1035
|
-
function SacDateComponent(formLayout, injector, elementRef) {
|
|
1036
|
-
return _super.call(this, formLayout, injector, elementRef) || this;
|
|
1293
|
+
function SacDateComponent(formLayout, injector, elementRef, cdRef) {
|
|
1294
|
+
return _super.call(this, formLayout, injector, elementRef, cdRef) || this;
|
|
1037
1295
|
}
|
|
1038
1296
|
return SacDateComponent;
|
|
1039
1297
|
}(sacCommon.SacDateCommon));
|
|
1040
1298
|
SacDateComponent.decorators = [
|
|
1041
1299
|
{ type: core.Component, args: [{
|
|
1042
1300
|
selector: 'sac-date',
|
|
1043
|
-
template: "<div\r\n
|
|
1301
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <div\r\n style=\"position: relative\"\r\n [style.width.px]=\"componentHeight === ControlHeight.Small ? 120 : componentHeight === ControlHeight.Large ? 180 : 140\">\r\n <div\r\n class=\"datetime-textbox input-group\"\r\n [class.input-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.input-group-lg]=\"componentHeight === ControlHeight.Large\">\r\n <!-- this class comes in the div above when disabled [ngClass]=\"[disablelabel === false ? 'col-md-' + _inputsize : 'col-md-12']\" -->\r\n <input\r\n id=\"{{ name }}\"\r\n name=\"{{ name }}\"\r\n type=\"text\"\r\n class=\"form-control date-control\"\r\n [class.is-invalid]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"[componentHeight | toControlHeight]\"\r\n [imask]=\"imaskDate\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"valuestring\"\r\n (blur)=\"onTouch()\"\r\n (accept)=\"setValueString($event)\"\r\n [disabled]=\"isdisabled\"\r\n (click)=\"showDateSelector()\" />\r\n <span class=\"input-group-btn\">\r\n <button\r\n #pickerbutton\r\n class=\"btn btn-default\"\r\n type=\"button\"\r\n (click)=\"showDateSelector()\"\r\n [disabled]=\"isdisabled\">\r\n <i [class]=\"IconSelector\"></i>\r\n </button>\r\n </span>\r\n </div>\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n\r\n <div\r\n #picker\r\n *ngIf=\"_showselector\">\r\n <div\r\n class=\"popover in\"\r\n role=\"tooltip\"\r\n style=\"display: block; max-width: unset; margin: 0\"\r\n [class.bottom]=\"GetPickerPosition() == TooltipPosition.bottom || GetPickerPosition() == TooltipPosition.bottomend\"\r\n [class.top]=\"GetPickerPosition() == TooltipPosition.top || GetPickerPosition() == TooltipPosition.topend\"\r\n [style.left.px]=\"posPopupLeft\"\r\n [style.top.px]=\"posPopupTop\">\r\n <div\r\n #pickerarrow\r\n style=\"margin: 0\"\r\n class=\"arrow\"\r\n [style.top.px]=\"posArrowTop\"\r\n [style.left.px]=\"posArrowLeft\">\r\n </div>\r\n\r\n <div class=\"popover-content\">\r\n <sac-dateselector\r\n *ngIf=\"_showselector\"\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\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1044
1302
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1045
1303
|
providers: [
|
|
1046
1304
|
{
|
|
@@ -1059,8 +1317,13 @@
|
|
|
1059
1317
|
SacDateComponent.ctorParameters = function () { return [
|
|
1060
1318
|
{ type: SacFormLayoutDirective, decorators: [{ type: core.Host }, { type: core.Optional }] },
|
|
1061
1319
|
{ type: core.Injector },
|
|
1062
|
-
{ type: core.ElementRef }
|
|
1063
|
-
|
|
1320
|
+
{ type: core.ElementRef },
|
|
1321
|
+
{ type: core.ChangeDetectorRef }
|
|
1322
|
+
]; };
|
|
1323
|
+
// #endregion Classes
|
|
1324
|
+
// #region Variables
|
|
1325
|
+
var moment = moment___default['default'];
|
|
1326
|
+
// #endregion Variables
|
|
1064
1327
|
|
|
1065
1328
|
var SacDateSelectorComponent = /** @class */ (function (_super) {
|
|
1066
1329
|
__extends(SacDateSelectorComponent, _super);
|
|
@@ -1084,16 +1347,17 @@
|
|
|
1084
1347
|
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1085
1348
|
* @param injector Injector for injecting services
|
|
1086
1349
|
* @param elementRef Reference to html dom element
|
|
1350
|
+
* @param cdRef Change Dectection Servie
|
|
1087
1351
|
*/
|
|
1088
|
-
function SacDateTimeComponent(formLayout, injector, elementRef) {
|
|
1089
|
-
return _super.call(this, formLayout, injector, elementRef) || this;
|
|
1352
|
+
function SacDateTimeComponent(formLayout, injector, elementRef, cdRef) {
|
|
1353
|
+
return _super.call(this, formLayout, injector, elementRef, cdRef) || this;
|
|
1090
1354
|
}
|
|
1091
1355
|
return SacDateTimeComponent;
|
|
1092
1356
|
}(sacCommon.SacDateTimeCommon));
|
|
1093
1357
|
SacDateTimeComponent.decorators = [
|
|
1094
1358
|
{ type: core.Component, args: [{
|
|
1095
1359
|
selector: 'sac-datetime',
|
|
1096
|
-
template: "<div\r\n
|
|
1360
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <div\r\n style=\"position: relative\"\r\n [style.width.px]=\"componentHeight === ControlHeight.Small ? 160 : componentHeight === ControlHeight.Large ? 230 : 180\">\r\n <div\r\n class=\"datetime-textbox input-group\"\r\n [class.input-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.input-group-lg]=\"componentHeight === ControlHeight.Large\">\r\n <input\r\n id=\"{{ name }}\"\r\n name=\"{{ name }}\"\r\n type=\"text\"\r\n class=\"form-control date-control\"\r\n [class.is-invalid]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"[componentHeight | toControlHeight]\"\r\n [imask]=\"imaskDate\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"valuestring\"\r\n (blur)=\"onTouch()\"\r\n (accept)=\"setValueString($event)\"\r\n [disabled]=\"isdisabled\"\r\n (click)=\"showDateSelector()\" />\r\n <span class=\"input-group-btn\">\r\n <button\r\n #pickerbutton\r\n class=\"btn btn-default\"\r\n type=\"button\"\r\n (click)=\"showDateSelector()\"\r\n [disabled]=\"isdisabled\">\r\n <i [class]=\"IconSelector\"></i>\r\n </button>\r\n </span>\r\n </div>\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n\r\n <div\r\n #picker\r\n *ngIf=\"_showselector\">\r\n <div\r\n class=\"popover in\"\r\n role=\"tooltip\"\r\n style=\"display: block; max-width: unset; margin: 0\"\r\n [class.bottom]=\"GetPickerPosition() == TooltipPosition.bottom || GetPickerPosition() == TooltipPosition.bottomend\"\r\n [class.top]=\"GetPickerPosition() == TooltipPosition.top || GetPickerPosition() == TooltipPosition.topend\"\r\n [style.left.px]=\"posPopupLeft\"\r\n [style.top.px]=\"posPopupTop\">\r\n <div\r\n #pickerarrow\r\n style=\"margin: 0\"\r\n class=\"arrow\"\r\n [style.top.px]=\"posArrowTop\"\r\n [style.left.px]=\"posArrowLeft\">\r\n </div>\r\n\r\n <div class=\"popover-content\">\r\n <sac-dateselector\r\n *ngIf=\"_showselector\"\r\n [initialvalue]=\"value\"\r\n (selectdate)=\"dateselect($event)\"\r\n dateselection=\"true\"\r\n timeselection=\"true\"></sac-dateselector>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1097
1361
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1098
1362
|
providers: [
|
|
1099
1363
|
{
|
|
@@ -1112,7 +1376,8 @@
|
|
|
1112
1376
|
SacDateTimeComponent.ctorParameters = function () { return [
|
|
1113
1377
|
{ type: SacFormLayoutDirective, decorators: [{ type: core.Host }, { type: core.Optional }] },
|
|
1114
1378
|
{ type: core.Injector },
|
|
1115
|
-
{ type: core.ElementRef }
|
|
1379
|
+
{ type: core.ElementRef },
|
|
1380
|
+
{ type: core.ChangeDetectorRef }
|
|
1116
1381
|
]; };
|
|
1117
1382
|
|
|
1118
1383
|
var SacTimeComponent = /** @class */ (function (_super) {
|
|
@@ -1123,16 +1388,17 @@
|
|
|
1123
1388
|
* @param formLayout SacFormLayout to define scoped layout settings
|
|
1124
1389
|
* @param injector Injector for injecting services
|
|
1125
1390
|
* @param elementRef Reference to html dom element
|
|
1391
|
+
* @param cdRef Change Dectection Servie
|
|
1126
1392
|
*/
|
|
1127
|
-
function SacTimeComponent(formLayout, injector, elementRef) {
|
|
1128
|
-
return _super.call(this, formLayout, injector, elementRef) || this;
|
|
1393
|
+
function SacTimeComponent(formLayout, injector, elementRef, cdRef) {
|
|
1394
|
+
return _super.call(this, formLayout, injector, elementRef, cdRef) || this;
|
|
1129
1395
|
}
|
|
1130
1396
|
return SacTimeComponent;
|
|
1131
1397
|
}(sacCommon.SacTimeCommon));
|
|
1132
1398
|
SacTimeComponent.decorators = [
|
|
1133
1399
|
{ type: core.Component, args: [{
|
|
1134
1400
|
selector: 'sac-time',
|
|
1135
|
-
template: "<div\r\n
|
|
1401
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <div\r\n style=\"position: relative\"\r\n [style.width.px]=\"componentHeight === ControlHeight.Small ? 120 : componentHeight === ControlHeight.Large ? 160 : 140\">\r\n <div\r\n class=\"datetime-textbox input-group\"\r\n [class.input-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.input-group-lg]=\"componentHeight === ControlHeight.Large\">\r\n <input\r\n id=\"{{ name }}\"\r\n name=\"{{ name }}\"\r\n type=\"text\"\r\n class=\"form-control time-control\"\r\n [class.is-invalid]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"[componentHeight | toControlHeight]\"\r\n [imask]=\"imaskDate\"\r\n [attr.placeholder]=\"placeholder\"\r\n [value]=\"valuestring\"\r\n (blur)=\"onTouch()\"\r\n (accept)=\"setValueString($event)\"\r\n [disabled]=\"isdisabled\"\r\n (click)=\"showTimeSelector()\"\r\n maxlength=\"6\"\r\n size=\"6\" />\r\n <span class=\"input-group-btn\">\r\n <button\r\n #pickerbutton\r\n class=\"btn btn-default\"\r\n type=\"button\"\r\n (click)=\"showTimeSelector()\"\r\n [disabled]=\"isdisabled\">\r\n <i [class]=\"IconSelector\"></i>\r\n </button>\r\n </span>\r\n </div>\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n\r\n <div\r\n #picker\r\n *ngIf=\"_showselector\">\r\n <div\r\n class=\"popover in\"\r\n role=\"tooltip\"\r\n style=\"display: block; max-width: unset; margin: 0\"\r\n [class.bottom]=\"GetPickerPosition() == TooltipPosition.bottom || GetPickerPosition() == TooltipPosition.bottomend\"\r\n [class.top]=\"GetPickerPosition() == TooltipPosition.top || GetPickerPosition() == TooltipPosition.topend\"\r\n [style.left.px]=\"posPopupLeft\"\r\n [style.top.px]=\"posPopupTop\">\r\n <div\r\n #pickerarrow\r\n style=\"margin: 0\"\r\n class=\"arrow\"\r\n [style.top.px]=\"posArrowTop\"\r\n [style.left.px]=\"posArrowLeft\">\r\n </div>\r\n\r\n <div class=\"popover-content\">\r\n <sac-dateselector\r\n *ngIf=\"_showselector\"\r\n [initialvalue]=\"value\"\r\n (selectdate)=\"timeselect($event)\"\r\n timeselection=\"true\"></sac-dateselector>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1136
1402
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1137
1403
|
providers: [
|
|
1138
1404
|
{
|
|
@@ -1151,7 +1417,8 @@
|
|
|
1151
1417
|
SacTimeComponent.ctorParameters = function () { return [
|
|
1152
1418
|
{ type: SacFormLayoutDirective, decorators: [{ type: core.Host }, { type: core.Optional }] },
|
|
1153
1419
|
{ type: core.Injector },
|
|
1154
|
-
{ type: core.ElementRef }
|
|
1420
|
+
{ type: core.ElementRef },
|
|
1421
|
+
{ type: core.ChangeDetectorRef }
|
|
1155
1422
|
]; };
|
|
1156
1423
|
|
|
1157
1424
|
var SACBootstrap3DateTimeModule = /** @class */ (function () {
|
|
@@ -1167,7 +1434,12 @@
|
|
|
1167
1434
|
SacTimeComponent,
|
|
1168
1435
|
SacDateSelectorComponent,
|
|
1169
1436
|
],
|
|
1170
|
-
imports: [
|
|
1437
|
+
imports: [
|
|
1438
|
+
common.CommonModule,
|
|
1439
|
+
angularImask.IMaskModule,
|
|
1440
|
+
SACBootstrap3LayoutModule,
|
|
1441
|
+
SACBootstrap3TooltipModule,
|
|
1442
|
+
],
|
|
1171
1443
|
exports: [
|
|
1172
1444
|
SacDateComponent,
|
|
1173
1445
|
SacDateTimeComponent,
|
|
@@ -1189,7 +1461,7 @@
|
|
|
1189
1461
|
SacGridComponent.decorators = [
|
|
1190
1462
|
{ type: core.Component, args: [{
|
|
1191
1463
|
selector: 'sac-grid',
|
|
1192
|
-
template: "<table class=\"table table-striped table-condensed table-hover\" id
|
|
1464
|
+
template: "<table class=\"table table-striped table-condensed table-hover\" id=\"{{name}}\">\r\n <thead>\r\n <tr>\r\n <ng-container\r\n *ngTemplateOutlet=\"template; context { row: {}, type: 'header'}\"\r\n >\r\n </ng-container>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <ng-container *ngFor=\"let item of value; let i=index\">\r\n <tr>\r\n <ng-container\r\n *ngTemplateOutlet=\"template; context { row: item, type: 'body'}\"\r\n >\r\n </ng-container>\r\n </tr>\r\n </ng-container>\r\n <tr\r\n *ngIf=\"value === undefined || value === null || value.length === 0\"\r\n data-e2e=\"emptyrow\"\r\n >\r\n <td [attr.colspan]=\"ColumnCount\">{{emptytext}}</td>\r\n </tr>\r\n </tbody>\r\n <tfoot *ngIf=\"pagerdata\">\r\n <tr>\r\n <td [attr.colspan]=\"ColumnCount\">\r\n <div class=\"container-fluid\">\r\n <sac-paging\r\n name=\"{{name}}Paging\"\r\n (paging)=\"pageChange($event)\"\r\n [pagerdata]=\"pagerdata\"\r\n [pagingtext]=\"pagingtext\"\r\n [pagesizetext]=\"pagesizetext\"\r\n ></sac-paging>\r\n </div>\r\n </td>\r\n </tr>\r\n </tfoot>\r\n</table>\r\n",
|
|
1193
1465
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1194
1466
|
providers: [
|
|
1195
1467
|
{ provide: forms.NG_VALUE_ACCESSOR, multi: true, useExisting: SacGridComponent },
|
|
@@ -1201,50 +1473,17 @@
|
|
|
1201
1473
|
template: [{ type: core.ContentChild, args: [core.TemplateRef, { static: true },] }]
|
|
1202
1474
|
};
|
|
1203
1475
|
|
|
1204
|
-
var SacGridColumnComponent = /** @class */ (function (_super) {
|
|
1205
|
-
__extends(SacGridColumnComponent, _super);
|
|
1206
|
-
function SacGridColumnComponent(grid, injector, el) {
|
|
1207
|
-
return _super.call(this, grid, injector, el) || this;
|
|
1208
|
-
}
|
|
1209
|
-
return SacGridColumnComponent;
|
|
1210
|
-
}(sacCommon.SacGridColumnCommon));
|
|
1211
|
-
SacGridColumnComponent.decorators = [
|
|
1212
|
-
{ type: core.Component, args: [{
|
|
1213
|
-
selector: 'sac-gridcolumn',
|
|
1214
|
-
template: "<th\r\n scope=\"col\"\r\n *ngIf=\"IsHeader()\"\r\n [style.width]=\"width\"\r\n (click)=\"SortByColumn()\"\r\n>\r\n <span>{{header}}</span>\r\n <span\r\n [class]=\"IconSortUp\"\r\n style=\"padding-left: 0.5rem\"\r\n *ngIf=\"IsSortedColumn() && GetSortDirection() ==='asc'\"\r\n ></span>\r\n <span\r\n [class]=\"IconSortDown\"\r\n style=\"padding-left: 0.5rem\"\r\n *ngIf=\"IsSortedColumn() && GetSortDirection() ==='desc'\"\r\n ></span>\r\n</th>\r\n<td\r\n scope=\"col\"\r\n *ngIf=\"IsBody()\"\r\n [style.width]=\"width\"\r\n [class.ellipsis]=\"IsEllipsis()\"\r\n>\r\n <span [attr.title]=\"IsEllipsis() ? value : null\"> {{value}} </span>\r\n</td>\r\n",
|
|
1215
|
-
providers: [
|
|
1216
|
-
{
|
|
1217
|
-
provide: sacCommon.SacGridColumnBaseCommon,
|
|
1218
|
-
useExisting: core.forwardRef(function () { return SacGridColumnComponent; }),
|
|
1219
|
-
},
|
|
1220
|
-
]
|
|
1221
|
-
},] }
|
|
1222
|
-
];
|
|
1223
|
-
SacGridColumnComponent.ctorParameters = function () { return [
|
|
1224
|
-
{ type: SacGridComponent },
|
|
1225
|
-
{ type: core.Injector },
|
|
1226
|
-
{ type: core.ElementRef }
|
|
1227
|
-
]; };
|
|
1228
|
-
|
|
1229
1476
|
/**
|
|
1230
1477
|
* Grid Action Button
|
|
1231
|
-
*
|
|
1232
|
-
* @example Standard Action
|
|
1233
|
-
*
|
|
1234
|
-
* <ngGridButton icon="edit" (clicked)="action('edit')" [isdisabled]="true"></ngGridButton>
|
|
1235
|
-
*
|
|
1236
|
-
* @example Custom Action
|
|
1237
|
-
*
|
|
1238
|
-
* <ngGridButton iconstyle="sprite" icon="icon-sprite-base-main_info" (clicked)="action('info')"></ngGridButton>
|
|
1239
|
-
*
|
|
1240
1478
|
*/
|
|
1241
1479
|
var SacGridButtonComponent = /** @class */ (function (_super) {
|
|
1242
1480
|
__extends(SacGridButtonComponent, _super);
|
|
1243
1481
|
function SacGridButtonComponent() {
|
|
1244
1482
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1245
1483
|
}
|
|
1484
|
+
// #region Public Methods
|
|
1246
1485
|
/**
|
|
1247
|
-
*
|
|
1486
|
+
* Returns the icon for the button
|
|
1248
1487
|
*/
|
|
1249
1488
|
SacGridButtonComponent.prototype.getIconClass = function () {
|
|
1250
1489
|
var iconset = this.iconstyle;
|
|
@@ -1276,29 +1515,29 @@
|
|
|
1276
1515
|
},] }
|
|
1277
1516
|
];
|
|
1278
1517
|
|
|
1279
|
-
var
|
|
1280
|
-
__extends(
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
*/
|
|
1284
|
-
function SacPagingComponent(injector) {
|
|
1285
|
-
return _super.call(this, injector) || this;
|
|
1518
|
+
var SacGridColumnComponent = /** @class */ (function (_super) {
|
|
1519
|
+
__extends(SacGridColumnComponent, _super);
|
|
1520
|
+
function SacGridColumnComponent(grid, injector, el) {
|
|
1521
|
+
return _super.call(this, grid, injector, el) || this;
|
|
1286
1522
|
}
|
|
1287
|
-
return
|
|
1288
|
-
}(sacCommon.
|
|
1289
|
-
|
|
1523
|
+
return SacGridColumnComponent;
|
|
1524
|
+
}(sacCommon.SacGridColumnCommon));
|
|
1525
|
+
SacGridColumnComponent.decorators = [
|
|
1290
1526
|
{ type: core.Component, args: [{
|
|
1291
|
-
selector: 'sac-
|
|
1292
|
-
template: "<
|
|
1293
|
-
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1527
|
+
selector: 'sac-gridcolumn',
|
|
1528
|
+
template: "<th\r\n scope=\"col\"\r\n *ngIf=\"IsHeader()\"\r\n [style.width]=\"width\"\r\n (click)=\"SortByColumn()\">\r\n <span>{{ header }}</span>\r\n <span\r\n [class]=\"IconSortUp\"\r\n style=\"padding-left: 0.5rem\"\r\n *ngIf=\"IsSortedColumn() && GetSortDirection() === 'asc'\"></span>\r\n <span\r\n [class]=\"IconSortDown\"\r\n style=\"padding-left: 0.5rem\"\r\n *ngIf=\"IsSortedColumn() && GetSortDirection() === 'desc'\"></span>\r\n</th>\r\n<td\r\n scope=\"col\"\r\n *ngIf=\"IsBody()\"\r\n [style.width]=\"width\"\r\n [class.ellipsis]=\"IsEllipsis()\"\r\n (click)=\"ColumnClick()\"\r\n [style.max-width]=\"IsEllipsis() ? width : null\"\r\n [style.overflow]=\"IsEllipsis() ? 'hidden' : null\"\r\n [style.text-overflow]=\"IsEllipsis() ? 'ellipsis' : null\"\r\n [style.white-space]=\"IsEllipsis() ? 'nowrap' : null\">\r\n <span\r\n [attr.title]=\"IsEllipsis() ? value : null\"\r\n [innerHtml]=\"value\"></span>\r\n</td>\r\n",
|
|
1294
1529
|
providers: [
|
|
1295
|
-
{
|
|
1296
|
-
|
|
1530
|
+
{
|
|
1531
|
+
provide: sacCommon.SacGridColumnBaseCommon,
|
|
1532
|
+
useExisting: core.forwardRef(function () { return SacGridColumnComponent; }),
|
|
1533
|
+
},
|
|
1297
1534
|
]
|
|
1298
1535
|
},] }
|
|
1299
1536
|
];
|
|
1300
|
-
|
|
1301
|
-
{ type:
|
|
1537
|
+
SacGridColumnComponent.ctorParameters = function () { return [
|
|
1538
|
+
{ type: SacGridComponent },
|
|
1539
|
+
{ type: core.Injector },
|
|
1540
|
+
{ type: core.ElementRef }
|
|
1302
1541
|
]; };
|
|
1303
1542
|
|
|
1304
1543
|
var SacGridColumnActionComponent = /** @class */ (function (_super) {
|
|
@@ -1352,75 +1591,55 @@
|
|
|
1352
1591
|
},] }
|
|
1353
1592
|
];
|
|
1354
1593
|
|
|
1355
|
-
var
|
|
1356
|
-
|
|
1357
|
-
}
|
|
1358
|
-
return SACBootstrap3GridModule;
|
|
1359
|
-
}());
|
|
1360
|
-
SACBootstrap3GridModule.decorators = [
|
|
1361
|
-
{ type: core.NgModule, args: [{
|
|
1362
|
-
declarations: [SacGridComponent, SacGridColumnComponent, SacGridColumnActionComponent, SacPagingComponent, SacGridButtonComponent, SacGridImageComponent],
|
|
1363
|
-
imports: [
|
|
1364
|
-
common.CommonModule
|
|
1365
|
-
],
|
|
1366
|
-
exports: [SacGridComponent, SacGridColumnComponent, SacGridColumnActionComponent, SacPagingComponent, SacGridButtonComponent, SacGridImageComponent]
|
|
1367
|
-
},] }
|
|
1368
|
-
];
|
|
1369
|
-
|
|
1370
|
-
/**
|
|
1371
|
-
* Tooltip Komponente
|
|
1372
|
-
*
|
|
1373
|
-
* @example ToolTip Control
|
|
1374
|
-
*
|
|
1375
|
-
* <ngTooltip tooltiptext="Mein Tooltip" [inlinemode]="true">
|
|
1376
|
-
* <i class="tooltip"></i>
|
|
1377
|
-
* </ngTooltip>
|
|
1378
|
-
*
|
|
1379
|
-
* @example ToolTip Control im Inline Mode. Style auf Icon kann auch in Klasse ausgelagert werden.
|
|
1380
|
-
*
|
|
1381
|
-
* <div class="form-inline">
|
|
1382
|
-
* <ngInputSearch iconname="Suchen"></ngInputSearch>
|
|
1383
|
-
* <ngTooltip tooltiptext="Mein Tooltip" [inlinemode]="true">
|
|
1384
|
-
* <i class="tooltip" style="position: relative; left: 0; top: 3px; display: inline-block; margin-right: 10px;"></i>
|
|
1385
|
-
* </ngTooltip>
|
|
1386
|
-
* </div>
|
|
1387
|
-
*
|
|
1388
|
-
*/
|
|
1389
|
-
var SacTooltipComponent = /** @class */ (function (_super) {
|
|
1390
|
-
__extends(SacTooltipComponent, _super);
|
|
1594
|
+
var SacPagingComponent = /** @class */ (function (_super) {
|
|
1595
|
+
__extends(SacPagingComponent, _super);
|
|
1391
1596
|
/**
|
|
1392
|
-
*
|
|
1393
|
-
* @param parent SacFormular Instanz
|
|
1394
|
-
* @param injector Component Injector
|
|
1597
|
+
* Konstruktor
|
|
1395
1598
|
*/
|
|
1396
|
-
function
|
|
1397
|
-
return _super.call(this,
|
|
1599
|
+
function SacPagingComponent(injector) {
|
|
1600
|
+
return _super.call(this, injector) || this;
|
|
1398
1601
|
}
|
|
1399
|
-
return
|
|
1400
|
-
}(sacCommon.
|
|
1401
|
-
|
|
1602
|
+
return SacPagingComponent;
|
|
1603
|
+
}(sacCommon.SacPagingCommon));
|
|
1604
|
+
SacPagingComponent.decorators = [
|
|
1402
1605
|
{ type: core.Component, args: [{
|
|
1403
|
-
selector: 'sac-
|
|
1404
|
-
template: "<div
|
|
1606
|
+
selector: 'sac-paging',
|
|
1607
|
+
template: "<div class=\"row\">\r\n <div class=\"pager-nav col-sm-4\" id=\"{{name}}\">\r\n <ul class=\"pagination\" style=\"margin: 10px 0\">\r\n <li\r\n [ngClass]=\"{'aspNetDisabled disabled': activePageIndex === firstPageIndex}\"\r\n >\r\n <a (click)=\"firstPage()\">\u00AB</a>\r\n </li>\r\n <li\r\n *ngFor=\"let page of paginators; let i = index\"\r\n [ngClass]=\"{'active': page === activePageIndex}\"\r\n >\r\n <a (click)=\"changePage(page)\">{{page + 1 }}</a>\r\n </li>\r\n <li\r\n [ngClass]=\"{'aspNetDisabled disabled': activePageIndex === lastPageIndex}\"\r\n >\r\n <a (click)=\"lastPage()\">\u00BB</a>\r\n </li>\r\n </ul>\r\n </div>\r\n <div class=\"col-sm-4 text-center\" style=\"margin: 20px 0\">\r\n Seite {{getCurrentPageNumber()}} von {{getTotalPageNumber()}}\r\n </div>\r\n <div\r\n class=\"col-sm-4 text-right\"\r\n *ngIf=\"!pagesizedisabled\"\r\n style=\"margin: 12px 0\"\r\n >\r\n <div class=\"form-inline\">\r\n <div class=\"form-group\" id=\"{{name}}_size\">\r\n <select\r\n class=\"form-control form-control-sm\"\r\n style=\"width: 85px\"\r\n [ngModel]=\"pageSize\"\r\n (ngModelChange)=\"changePageSize($event)\"\r\n >\r\n <option [ngValue]=\"size\" *ngFor=\"let size of getPageSizes\">\r\n {{size}}\r\n </option>\r\n </select>\r\n <span style=\"margin-left: 5px\">{{ PageSizeText | async }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1608
|
+
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1609
|
+
providers: [
|
|
1610
|
+
{ provide: forms.NG_VALUE_ACCESSOR, multi: true, useExisting: SacPagingComponent },
|
|
1611
|
+
{ provide: forms.NG_VALIDATORS, multi: true, useExisting: core.forwardRef(function () { return SacPagingComponent; }) }
|
|
1612
|
+
]
|
|
1405
1613
|
},] }
|
|
1406
1614
|
];
|
|
1407
|
-
|
|
1408
|
-
{ type: core.
|
|
1409
|
-
{ type: core.ElementRef }
|
|
1615
|
+
SacPagingComponent.ctorParameters = function () { return [
|
|
1616
|
+
{ type: core.Injector }
|
|
1410
1617
|
]; };
|
|
1411
1618
|
|
|
1412
|
-
var
|
|
1413
|
-
function
|
|
1619
|
+
var SACBootstrap3GridModule = /** @class */ (function () {
|
|
1620
|
+
function SACBootstrap3GridModule() {
|
|
1414
1621
|
}
|
|
1415
|
-
return
|
|
1622
|
+
return SACBootstrap3GridModule;
|
|
1416
1623
|
}());
|
|
1417
|
-
|
|
1624
|
+
SACBootstrap3GridModule.decorators = [
|
|
1418
1625
|
{ type: core.NgModule, args: [{
|
|
1419
|
-
declarations: [
|
|
1420
|
-
|
|
1421
|
-
|
|
1626
|
+
declarations: [
|
|
1627
|
+
SacGridComponent,
|
|
1628
|
+
SacGridColumnComponent,
|
|
1629
|
+
SacGridColumnActionComponent,
|
|
1630
|
+
SacPagingComponent,
|
|
1631
|
+
SacGridButtonComponent,
|
|
1632
|
+
SacGridImageComponent,
|
|
1633
|
+
],
|
|
1634
|
+
imports: [common.CommonModule, forms.FormsModule],
|
|
1635
|
+
exports: [
|
|
1636
|
+
SacGridComponent,
|
|
1637
|
+
SacGridColumnComponent,
|
|
1638
|
+
SacGridColumnActionComponent,
|
|
1639
|
+
SacPagingComponent,
|
|
1640
|
+
SacGridButtonComponent,
|
|
1641
|
+
SacGridImageComponent,
|
|
1422
1642
|
],
|
|
1423
|
-
exports: [SacTooltipComponent]
|
|
1424
1643
|
},] }
|
|
1425
1644
|
];
|
|
1426
1645
|
|
|
@@ -1440,7 +1659,7 @@
|
|
|
1440
1659
|
SacInputComponent.decorators = [
|
|
1441
1660
|
{ type: core.Component, args: [{
|
|
1442
1661
|
selector: 'sac-input',
|
|
1443
|
-
template: "<div\r\n
|
|
1662
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\">\r\n <div [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <input\r\n id=\"{{ name }}\"\r\n name=\"{{ name }}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [ngClass]=\"[componentHeight | toControlHeight]\"\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 [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\" />\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1444
1663
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1445
1664
|
providers: [
|
|
1446
1665
|
{ provide: forms.NG_VALUE_ACCESSOR, multi: true, useExisting: SacInputComponent },
|
|
@@ -1485,7 +1704,7 @@
|
|
|
1485
1704
|
SacInputAreaComponent.decorators = [
|
|
1486
1705
|
{ type: core.Component, args: [{
|
|
1487
1706
|
selector: 'sac-inputarea',
|
|
1488
|
-
template: "<div\r\n
|
|
1707
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\">\r\n <div [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <textarea\r\n id=\"{{ name }}\"\r\n name=\"{{ name }}\"\r\n type=\"\"\r\n class=\"form-control\"\r\n [class.is-invalid]=\"invalid && (dirty || touched)\"\r\n [class.validation-error]=\"invalid && (dirty || touched)\"\r\n [class.required]=\"isrequired\"\r\n [ngClass]=\"[componentHeight | toControlHeight]\"\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 [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\">\r\n </textarea>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1489
1708
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1490
1709
|
providers: [
|
|
1491
1710
|
{
|
|
@@ -1522,7 +1741,7 @@
|
|
|
1522
1741
|
SacInputCurrencyComponent.decorators = [
|
|
1523
1742
|
{ type: core.Component, args: [{
|
|
1524
1743
|
selector: 'sac-inputcurrency',
|
|
1525
|
-
template: "<div\r\n
|
|
1744
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n [class.clearfix]=\"helptextmode === 'tooltip' && helptext && disablelabel\">\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static pull-right\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n\r\n <div\r\n class=\"input-group\"\r\n [class.input-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.input-group-lg]=\"componentHeight === ControlHeight.Large\">\r\n <input\r\n id=\"{{ name }}\"\r\n name=\"{{ name }}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [ngClass]=\"[componentHeight | toControlHeight]\"\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 [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\" />\r\n <div class=\"input-group-addon\">{{ currency }}</div>\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1526
1745
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1527
1746
|
providers: [
|
|
1528
1747
|
{
|
|
@@ -1559,7 +1778,7 @@
|
|
|
1559
1778
|
SacInputDecimalComponent.decorators = [
|
|
1560
1779
|
{ type: core.Component, args: [{
|
|
1561
1780
|
selector: 'sac-inputdecimal',
|
|
1562
|
-
template: "<div\r\n
|
|
1781
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\">\r\n <div [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <input\r\n id=\"{{ name }}\"\r\n name=\"{{ name }}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [ngClass]=\"[componentHeight | toControlHeight]\"\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 [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\" />\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1563
1782
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1564
1783
|
providers: [
|
|
1565
1784
|
{
|
|
@@ -1596,7 +1815,7 @@
|
|
|
1596
1815
|
SacInputEmailComponent.decorators = [
|
|
1597
1816
|
{ type: core.Component, args: [{
|
|
1598
1817
|
selector: 'sac-inputemail',
|
|
1599
|
-
template: "<div\r\n
|
|
1818
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n [class.clearfix]=\"helptextmode === 'tooltip' && helptext && disablelabel\">\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static pull-right\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n\r\n <div\r\n class=\"input-group\"\r\n [class.input-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.input-group-lg]=\"componentHeight === ControlHeight.Large\">\r\n <div class=\"input-group-addon\">@</div>\r\n <input\r\n id=\"{{ name }}\"\r\n name=\"{{ name }}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [ngClass]=\"[componentHeight | toControlHeight]\"\r\n [value]=\"value\"\r\n [attr.placeholder]=\"placeholder\"\r\n (blur)=\"onTouch()\"\r\n (input)=\"setValue($event.target.value)\"\r\n autocomplete=\"email\"\r\n [attr.maxlength]=\"maxlength\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\" />\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1600
1819
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1601
1820
|
providers: [
|
|
1602
1821
|
{
|
|
@@ -1633,7 +1852,7 @@
|
|
|
1633
1852
|
SacInputIntegerComponent.decorators = [
|
|
1634
1853
|
{ type: core.Component, args: [{
|
|
1635
1854
|
selector: 'sac-inputinteger',
|
|
1636
|
-
template: "<div\r\n
|
|
1855
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\">\r\n <div [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <input\r\n id=\"{{ name }}\"\r\n name=\"{{ name }}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [ngClass]=\"[componentHeight | toControlHeight]\"\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 [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\" />\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1637
1856
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1638
1857
|
providers: [
|
|
1639
1858
|
{
|
|
@@ -1670,7 +1889,7 @@
|
|
|
1670
1889
|
SacInputPasswordComponent.decorators = [
|
|
1671
1890
|
{ type: core.Component, args: [{
|
|
1672
1891
|
selector: 'sac-inputpassword',
|
|
1673
|
-
template: "<div\r\n
|
|
1892
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\">\r\n <div [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <input\r\n id=\"{{ name }}\"\r\n name=\"{{ name }}\"\r\n class=\"form-control\"\r\n [ngClass]=\"[componentHeight | toControlHeight]\"\r\n type=\"password\"\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 autocomplete=\"new-password\"\r\n [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\" />\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1674
1893
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1675
1894
|
providers: [
|
|
1676
1895
|
{
|
|
@@ -1707,7 +1926,7 @@
|
|
|
1707
1926
|
SacInputSearchComponent.decorators = [
|
|
1708
1927
|
{ type: core.Component, args: [{
|
|
1709
1928
|
selector: 'sac-inputsearch',
|
|
1710
|
-
template: "<div\r\n
|
|
1929
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n [class.clearfix]=\"helptextmode === 'tooltip' && helptext && disablelabel\">\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static pull-right\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n\r\n <div\r\n class=\"input-group\"\r\n [class.input-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.input-group-lg]=\"componentHeight === ControlHeight.Large\">\r\n <input\r\n id=\"{{ name }}\"\r\n name=\"{{ name }}\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [ngClass]=\"[componentHeight | toControlHeight]\"\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 [disabled]=\"isdisabled\"\r\n [readonly]=\"readonly\" />\r\n <span class=\"input-group-btn\">\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-default\"\r\n id=\"{{ name }}_search\"\r\n (click)=\"searchClick()\">\r\n <i\r\n *ngIf=\"buttonmode === 'icon' || buttonmode === 'mixed'\"\r\n [class]=\"iconname\"\r\n [style.margin-right.px]=\"buttonmode === 'mixed' ? 7 : null\">\r\n </i>\r\n <ng-container *ngIf=\"buttonmode === 'text' || buttonmode === 'mixed'\">{{ buttontext }}</ng-container>\r\n </button>\r\n </span>\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n </div>\r\n</div>\r\n",
|
|
1711
1930
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1712
1931
|
providers: [
|
|
1713
1932
|
{
|
|
@@ -1784,7 +2003,7 @@
|
|
|
1784
2003
|
SacDropdownComponent.decorators = [
|
|
1785
2004
|
{ type: core.Component, args: [{
|
|
1786
2005
|
selector: 'sac-dropdown',
|
|
1787
|
-
template: "<div\r\n
|
|
2006
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\">\r\n <div [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <select\r\n #dropdownitem\r\n id=\"{{ name }}\"\r\n name=\"{{ name }}\"\r\n class=\"form-control\"\r\n [ngClass]=\"[componentHeight | toControlHeight]\"\r\n (blur)=\"onTouch()\"\r\n (change)=\"setValue(dropdownitem.value)\"\r\n [disabled]=\"isdisabled\">\r\n <option\r\n *ngIf=\"emptylabel !== ''\"\r\n [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 <ng-template *ngTemplateOutlet=\"optionlabeltemplate || defaultItemLabelTemplate; context: { label: item[optionlabel], item: item }\"> </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 <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 <ng-template *ngTemplateOutlet=\"optionlabeltemplate || defaultItemLabelTemplate; context: { label: item[optionlabel], item: item }\"> </ng-template>\r\n </option>\r\n </optgroup>\r\n </ng-container>\r\n </select>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template\r\n #defaultItemLabelTemplate\r\n let-label=\"label\">\r\n {{ label }}\r\n</ng-template>\r\n",
|
|
1788
2007
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1789
2008
|
providers: [
|
|
1790
2009
|
{
|
|
@@ -1846,7 +2065,7 @@
|
|
|
1846
2065
|
SacListboxComponent.decorators = [
|
|
1847
2066
|
{ type: core.Component, args: [{
|
|
1848
2067
|
selector: 'sac-listbox',
|
|
1849
|
-
template: "<div\r\n
|
|
2068
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\">\r\n <div [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <select\r\n multiple\r\n id=\"{{ name }}\"\r\n name=\"{{ name }}\"\r\n class=\"form-control\"\r\n [ngClass]=\"[componentHeight | toControlHeight]\"\r\n [size]=\"rowsize\"\r\n (blur)=\"onTouch()\"\r\n (change)=\"getSelectedItems($event.target)\"\r\n [disabled]=\"isdisabled\">\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 <ng-template *ngTemplateOutlet=\"optionlabeltemplate || defaultItemLabelTemplate; context: { label: option[optionlabel] }\"> </ng-template>\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 <option\r\n *ngFor=\"let item of option[groupitems]\"\r\n [value]=\"item[optionvalue]\"\r\n [disabled]=\"optionenabled !== '' && item[optionenabled] === false\">\r\n <ng-template *ngTemplateOutlet=\"optionlabeltemplate || defaultItemLabelTemplate; context: { label: item[optionlabel] }\"> </ng-template>\r\n </option>\r\n </optgroup>\r\n </ng-container>\r\n </select>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template\r\n #defaultItemLabelTemplate\r\n let-label=\"label\">\r\n {{ label }}\r\n</ng-template>\r\n",
|
|
1850
2069
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1851
2070
|
providers: [
|
|
1852
2071
|
{
|
|
@@ -1882,6 +2101,7 @@
|
|
|
1882
2101
|
imports: [
|
|
1883
2102
|
common.CommonModule,
|
|
1884
2103
|
sacCommon.SACCommonListboxOptionModule,
|
|
2104
|
+
SACBootstrap3TooltipModule,
|
|
1885
2105
|
forms.FormsModule,
|
|
1886
2106
|
SACBootstrap3LayoutModule,
|
|
1887
2107
|
],
|
|
@@ -1923,7 +2143,7 @@
|
|
|
1923
2143
|
SacStaticFormContainerComponent.decorators = [
|
|
1924
2144
|
{ type: core.Component, args: [{
|
|
1925
2145
|
selector: 'sac-staticformcontainer',
|
|
1926
|
-
template: "<div\r\n
|
|
2146
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"isinvalid && errormessage\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\">\r\n <div [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <ng-content></ng-content>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && isinvalid && errormessage\">\r\n {{ errormessage }}\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1927
2147
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1928
2148
|
providers: [
|
|
1929
2149
|
{
|
|
@@ -1960,7 +2180,7 @@
|
|
|
1960
2180
|
SacStaticLabelComponent.decorators = [
|
|
1961
2181
|
{ type: core.Component, args: [{
|
|
1962
2182
|
selector: 'sac-staticlabel',
|
|
1963
|
-
template: "<div
|
|
2183
|
+
template: "<div\r\n class=\"row form-group\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <div\r\n [id]=\"name\"\r\n class=\"form-control-static\"\r\n [style.padding-left.px]=\"0\"\r\n [innerHTML]=\"value\">\r\n </div>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n </div>\r\n</div>\r\n",
|
|
1964
2184
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1965
2185
|
providers: [
|
|
1966
2186
|
{
|
|
@@ -2025,7 +2245,7 @@
|
|
|
2025
2245
|
SacTabComponent.decorators = [
|
|
2026
2246
|
{ type: core.Component, args: [{
|
|
2027
2247
|
selector: 'sac-tab',
|
|
2028
|
-
template: "<!-- Nav tabs -->\r\n<div [id]=\"name\" class=\"content-nav-tabs\">\r\n <ul class=\"nav nav-tabs\" role=\"tablist\">\r\n <li\r\n *ngFor=\"let item of _tabItems\"\r\n [ngClass]=\"{ 'active show': item.active, 'disabled': item.disabled }\"\r\n (click)=\"selectTab(item)\"\r\n [ngStyle]=\"{'cursor': item._disabled ? 'not-allowed' : 'pointer'}\"\r\n >\r\n <a [id]=\"GetTabItemButtonId(item.
|
|
2248
|
+
template: "<!-- Nav tabs -->\r\n<div [id]=\"name\" class=\"content-nav-tabs\">\r\n <ul class=\"nav nav-tabs\" role=\"tablist\">\r\n <li\r\n *ngFor=\"let item of _tabItems\"\r\n [ngClass]=\"{ 'active show': item.active, 'disabled': item.disabled }\"\r\n (click)=\"selectTab(item)\"\r\n [ngStyle]=\"{'cursor': item._disabled ? 'not-allowed' : 'pointer'}\"\r\n >\r\n <a [id]=\"GetTabItemButtonId(item.id)\" role=\"tab\">\r\n <ng-template\r\n *ngTemplateOutlet=\"tablabeltemplate || defaultTabLabelTemplate;context:{ label: item.label }\"\r\n >\r\n </ng-template>\r\n </a>\r\n </li>\r\n </ul>\r\n</div>\r\n\r\n<!-- Tab panes -->\r\n<div class=\"tab-content\" style=\"margin-top: 15px\">\r\n <ng-content></ng-content>\r\n</div>\r\n\r\n<ng-template #defaultTabLabelTemplate let-label=\"label\">\r\n {{label}}\r\n</ng-template>\r\n"
|
|
2029
2249
|
},] }
|
|
2030
2250
|
];
|
|
2031
2251
|
SacTabComponent.propDecorators = {
|
|
@@ -2073,7 +2293,7 @@
|
|
|
2073
2293
|
SacTinyMceComponent.decorators = [
|
|
2074
2294
|
{ type: core.Component, args: [{
|
|
2075
2295
|
selector: 'sac-tinymce',
|
|
2076
|
-
template: "<div\r\n
|
|
2296
|
+
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n [class.has-error]=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <div [style.flex-grow]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 1 : null\">\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)\"></editor>\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"help-block\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\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(validationKeyService.TinyMceFileselectDialogtitle) | async }}\"\r\n size=\"large\"\r\n height=\"500px\">\r\n <ng-container dialogbody> </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(validationKeyService.TinyMceFileselectOk) | async }}\"\r\n (clicked)=\"setSelectDialogResult()\"></sac-button>\r\n <sac-button\r\n [name]=\"name + '_modalClose'\"\r\n text=\"{{ lngResourceService.GetString(validationKeyService.TinyMceFileselectCancel) | async }}\"\r\n (clicked)=\"closeSelectDialog()\"></sac-button>\r\n </ng-container>\r\n</sac-dialog>\r\n",
|
|
2077
2297
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
2078
2298
|
providers: [
|
|
2079
2299
|
{
|
|
@@ -2110,70 +2330,169 @@
|
|
|
2110
2330
|
SACBootstrap3ButtonModule,
|
|
2111
2331
|
SACBootstrap3DialogModule,
|
|
2112
2332
|
SACBootstrap3LayoutModule,
|
|
2333
|
+
SACBootstrap3TooltipModule,
|
|
2113
2334
|
],
|
|
2114
2335
|
exports: [SacTinyMceComponent],
|
|
2115
2336
|
},] }
|
|
2116
2337
|
];
|
|
2117
2338
|
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2339
|
+
/**
|
|
2340
|
+
* Treeview Compomnent
|
|
2341
|
+
*/
|
|
2342
|
+
var SacTreeviewComponent = /** @class */ (function (_super) {
|
|
2343
|
+
__extends(SacTreeviewComponent, _super);
|
|
2344
|
+
// #region Constructors
|
|
2345
|
+
/**
|
|
2346
|
+
* Constructor
|
|
2347
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
2348
|
+
* @param injector Component Injector
|
|
2349
|
+
*/
|
|
2350
|
+
function SacTreeviewComponent(formLayout, injector) {
|
|
2351
|
+
return _super.call(this, formLayout, injector) || this;
|
|
2122
2352
|
}
|
|
2123
|
-
return
|
|
2124
|
-
}(sacCommon.
|
|
2125
|
-
|
|
2353
|
+
return SacTreeviewComponent;
|
|
2354
|
+
}(sacCommon.SacTreeviewCommon));
|
|
2355
|
+
SacTreeviewComponent.decorators = [
|
|
2126
2356
|
{ type: core.Component, args: [{
|
|
2127
2357
|
selector: 'sac-treeview',
|
|
2128
|
-
template: "<div
|
|
2358
|
+
template: "<div\r\n class=\"row mb-3\"\r\n [class.g-0]=\"disablelabel\"\r\n [class.has-error]=\"invalid && (dirty || touched)\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n [class.has-error]=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n <div [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <div [style.width.%]=\"helptextmode === 'tooltip' && helptext && disablelabel ? '100' : null\">\r\n <table\r\n class=\"table table-hover table-condensed\"\r\n id=\"{{ name }}\"\r\n style=\"table-layout: fixed\"\r\n [class.is-invalid]=\"invalid && (dirty || touched)\"\r\n [class.border]=\"invalid && (dirty || touched)\"\r\n [class.border-danger]=\"invalid && (dirty || touched)\">\r\n <tbody>\r\n <ng-container *ngFor=\"let node of data\">\r\n <ng-template\r\n [ngTemplateOutlet]=\"treeItem\"\r\n [ngTemplateOutletContext]=\"{ node: node, deep: 0, path: '', textpath: '' }\">\r\n </ng-template>\r\n </ng-container>\r\n </tbody>\r\n </table>\r\n\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"help-block\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<ng-template\r\n #treeItem\r\n let-node=\"node\"\r\n let-deep=\"deep\"\r\n let-path=\"path\"\r\n let-textpath=\"textpath\">\r\n <tr\r\n [class.active]=\"isSelectedState(node)\"\r\n attr.data-path=\"{{ path }}/{{ getStringField(node, attrid) }}\"\r\n attr.data-textpath=\"{{ textpath }}/{{ getStringField(node, attrlabel) }}\">\r\n <td>\r\n <div\r\n class=\"py-1 px-2 d-flex align-items-center\"\r\n style=\"display: flex; flex-direction: row; cursor: pointer; align-items: center\"\r\n (mouseenter)=\"setHoverState(node, true)\"\r\n (mouseleave)=\"setHoverState(node, false)\">\r\n <div\r\n style=\"margin-right: 15px\"\r\n *ngFor=\"let i of count(deep)\">\r\n </div>\r\n\r\n <div\r\n (click)=\"onNodeClicked(node)\"\r\n *ngIf=\"expandedstate === 'true' || expandedstate === true\"\r\n style=\"margin-right: 15px\"\r\n [ngClass]=\"!hasChildren(node) ? iconFolderEmpty : !isExpandedState(node) ? iconFolderCollabsed : isExpandedState(node) ? iconFolderOpen : ''\">\r\n </div>\r\n\r\n <div\r\n (click)=\"onNodeClicked(node)\"\r\n *ngIf=\"attricon && getStringField(node, attricon)\">\r\n <ng-template\r\n [ngTemplateOutlet]=\"templateicon || defaultTemplateIcon\"\r\n [ngTemplateOutletContext]=\"{ node: node }\">\r\n </ng-template>\r\n </div>\r\n\r\n <div\r\n (click)=\"onNodeClicked(node)\"\r\n style=\"padding-top: 7px; padding-bottom: 7px; flex-grow: 1\"\r\n [style.max-width.%]=\"enableellipsis ? '100' : null\"\r\n [style.overflow]=\"enableellipsis ? 'hidden' : null\"\r\n [style.text-overflow]=\"enableellipsis ? 'ellipsis' : null\"\r\n [style.white-space]=\"enableellipsis ? 'nowrap' : null\">\r\n <ng-template\r\n [ngTemplateOutlet]=\"templatelabel || defaultTemplateLabel\"\r\n [ngTemplateOutletContext]=\"{ node: node, label: getStringField(node, attrlabel) }\">\r\n </ng-template>\r\n </div>\r\n\r\n <div\r\n (click)=\"setSelectedState(node)\"\r\n style=\"flex-shrink: 0\"\r\n *ngIf=\"!isDisabledState(node) && (showactionalways || isSelectedState(node) || isHoverState(node))\">\r\n <ng-template\r\n [ngTemplateOutlet]=\"templateaction || defaultTemplateAction\"\r\n [ngTemplateOutletContext]=\"{ node: node, actionhandler: onActionClicked.bind(this) }\">\r\n </ng-template>\r\n </div>\r\n </div>\r\n </td>\r\n </tr>\r\n <ng-container *ngIf=\"isExpandedState(node)\">\r\n <ng-template\r\n *ngFor=\"let child of getChildren(node)\"\r\n [ngTemplateOutlet]=\"treeItem\"\r\n [ngTemplateOutletContext]=\"{\r\n node: child,\r\n deep: deep + 1,\r\n path: path + '/' + getStringField(node, attrid),\r\n textpath: textpath + '/' + getStringField(node, attrlabel)\r\n }\">\r\n </ng-template>\r\n </ng-container>\r\n</ng-template>\r\n\r\n<ng-template\r\n #defaultTemplateLabel\r\n let-label=\"label\"\r\n let-node=\"node\">\r\n <span [title]=\"label\">\r\n {{ label }}\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template\r\n #defaultTemplateIcon\r\n let-node=\"node\">\r\n <div\r\n style=\"margin-right: 15px\"\r\n [ngClass]=\"getStringField(node, attricon)\">\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template\r\n #defaultTemplateAction\r\n let-node=\"node\"\r\n let-actionhandler=\"actionhandler\">\r\n <a\r\n class=\"btn btn-link text-secondary\"\r\n (click)=\"actionhandler({ action: 'default', node: node })\">\r\n <i [class]=\"iconAction\"></i>\r\n </a>\r\n</ng-template>\r\n",
|
|
2359
|
+
providers: [
|
|
2360
|
+
{
|
|
2361
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
2362
|
+
multi: true,
|
|
2363
|
+
useExisting: SacTreeviewComponent,
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
provide: forms.NG_VALIDATORS,
|
|
2367
|
+
useExisting: core.forwardRef(function () { return SacTreeviewComponent; }),
|
|
2368
|
+
multi: true,
|
|
2369
|
+
},
|
|
2370
|
+
]
|
|
2129
2371
|
},] }
|
|
2130
|
-
];
|
|
2372
|
+
];
|
|
2373
|
+
SacTreeviewComponent.ctorParameters = function () { return [
|
|
2374
|
+
{ type: SacFormLayoutDirective, decorators: [{ type: core.Host }, { type: core.Optional }] },
|
|
2375
|
+
{ type: core.Injector }
|
|
2376
|
+
]; };
|
|
2131
2377
|
|
|
2132
|
-
var
|
|
2133
|
-
|
|
2134
|
-
function SacTreeViewChildComponent() {
|
|
2135
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2378
|
+
var SACBootstrap3TreeviewModule = /** @class */ (function () {
|
|
2379
|
+
function SACBootstrap3TreeviewModule() {
|
|
2136
2380
|
}
|
|
2137
|
-
return
|
|
2138
|
-
}(
|
|
2139
|
-
|
|
2140
|
-
{ type: core.
|
|
2141
|
-
|
|
2142
|
-
|
|
2381
|
+
return SACBootstrap3TreeviewModule;
|
|
2382
|
+
}());
|
|
2383
|
+
SACBootstrap3TreeviewModule.decorators = [
|
|
2384
|
+
{ type: core.NgModule, args: [{
|
|
2385
|
+
declarations: [SacTreeviewComponent],
|
|
2386
|
+
imports: [common.CommonModule, SACBootstrap3TooltipModule, SACBootstrap3LayoutModule, SACBootstrap3ContextmenuModule],
|
|
2387
|
+
exports: [SacTreeviewComponent],
|
|
2143
2388
|
},] }
|
|
2144
2389
|
];
|
|
2145
2390
|
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2391
|
+
/**
|
|
2392
|
+
* Dropzone Komponente für mehrere Uploads
|
|
2393
|
+
* @see https://github.com/kukhariev/ngx-uploadx/
|
|
2394
|
+
*/
|
|
2395
|
+
var SacDropzoneMultipleComponent = /** @class */ (function (_super) {
|
|
2396
|
+
__extends(SacDropzoneMultipleComponent, _super);
|
|
2397
|
+
// #region Constructors
|
|
2398
|
+
/**
|
|
2399
|
+
* Constructor
|
|
2400
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
2401
|
+
* @param injector Injector for injecting services
|
|
2402
|
+
* @param renderer Angular rendering engine
|
|
2403
|
+
* @param ngZone ngZone to manage external javascripts
|
|
2404
|
+
*/
|
|
2405
|
+
function SacDropzoneMultipleComponent(formLayout, injector, renderer, ngZone) {
|
|
2406
|
+
return _super.call(this, formLayout, injector, renderer, ngZone) || this;
|
|
2150
2407
|
}
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2408
|
+
// #endregion Constructors
|
|
2409
|
+
// #region Public Methods
|
|
2410
|
+
/**
|
|
2411
|
+
* Initialisiert das Control
|
|
2412
|
+
*/
|
|
2413
|
+
SacDropzoneMultipleComponent.prototype.ngOnInit = function () {
|
|
2414
|
+
_super.prototype.ngOnInit.call(this);
|
|
2415
|
+
};
|
|
2416
|
+
return SacDropzoneMultipleComponent;
|
|
2417
|
+
}(sacCommon.SacDropzoneMultipleCommon));
|
|
2418
|
+
SacDropzoneMultipleComponent.decorators = [
|
|
2154
2419
|
{ type: core.Component, args: [{
|
|
2155
|
-
selector: 'sac-
|
|
2156
|
-
template: "<
|
|
2420
|
+
selector: 'sac-dropzonemultiple',
|
|
2421
|
+
template: "<div\r\n id=\"{{ name }}\"\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}_uploadinput\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <div [style.flex-grow]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 1 : null\">\r\n <div\r\n class=\"img-rounded dropzone control-label\"\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 <div\r\n class=\"content\"\r\n *ngIf=\"uploads.length === 0\">\r\n <div>\r\n <div [class.is-invalid]=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"uploads.length > 0\">\r\n <div>\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 <div\r\n class=\"input-group upload-component upload-component-multiple\"\r\n [class.input-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.input-group-lg]=\"componentHeight === ControlHeight.Large\">\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 <span class=\"progress-text\">{{ file.name }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"input-group-btn\">\r\n <!-- image-preview-clear button -->\r\n <a\r\n class=\"btn\"\r\n (click)=\"cancel(file.uploadId)\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\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 </div>\r\n <small\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </small>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"help-block help-block-error\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
2422
|
+
providers: [
|
|
2423
|
+
{
|
|
2424
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
2425
|
+
multi: true,
|
|
2426
|
+
useExisting: SacDropzoneMultipleComponent,
|
|
2427
|
+
},
|
|
2428
|
+
{
|
|
2429
|
+
provide: forms.NG_VALIDATORS,
|
|
2430
|
+
multi: true,
|
|
2431
|
+
useExisting: core.forwardRef(function () { return SacDropzoneMultipleComponent; }),
|
|
2432
|
+
},
|
|
2433
|
+
],
|
|
2434
|
+
styles: [".upload-component .upload-input{position:relative}.upload-component .custom-file>i{margin-right:15px}.upload-component .custom-file .custom-file-input{bottom:0;display:inline-block;left:0;margin:0;opacity:0;overflow:hidden;position:absolute;right:0;top:0;width:100%;z-index:2}.upload-component.upload-multiple .upload-progress .progress{border-bottom-right-radius:0;border-top-right-radius:0}.upload-component.upload-single .upload-progress .progress{border-radius:0}.upload-component .upload-progress{padding:0}.upload-component .upload-progress .progress{height:100%}.upload-component .upload-progress .progress .progress-text{color:#000;display:table-cell;height:34px;left:0;line-height:34px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.dropzone{border-style:dashed;border-width:2px;min-height:120px;padding-bottom:50px;padding-top:50px;position:relative;text-align:center;width:100%}.dropzone.active{background-color:#add8e6}.dropzone .progress{border-radius:0}.dropzone .progress .progress-bar{border-bottom-right-radius:0;border-top-right-radius:0;display:flex;flex-direction:column;justify-content:center;text-align:center}.dropzone .progress .progress-bar .progress-text{color:#000;display:table-cell;height:34px;left:0;line-height:34px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.dropzone input[type=file]{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;width:100%}.dropzone .dropzone-uploadstates{margin-left:auto;margin-right:auto;margin-top:6px;max-width:450px;width:80%}"]
|
|
2157
2435
|
},] }
|
|
2158
2436
|
];
|
|
2159
|
-
|
|
2160
|
-
{ type: core.
|
|
2437
|
+
SacDropzoneMultipleComponent.ctorParameters = function () { return [
|
|
2438
|
+
{ type: SacFormLayoutDirective, decorators: [{ type: core.Host }, { type: core.Optional }] },
|
|
2439
|
+
{ type: core.Injector },
|
|
2440
|
+
{ type: core.Renderer2 },
|
|
2441
|
+
{ type: core.NgZone }
|
|
2161
2442
|
]; };
|
|
2162
2443
|
|
|
2163
|
-
|
|
2164
|
-
|
|
2444
|
+
/**
|
|
2445
|
+
* Dropzone Komponente für den Upload eines Files
|
|
2446
|
+
* @see https://github.com/kukhariev/ngx-uploadx/
|
|
2447
|
+
*/
|
|
2448
|
+
var SacDropzoneSingleComponent = /** @class */ (function (_super) {
|
|
2449
|
+
__extends(SacDropzoneSingleComponent, _super);
|
|
2450
|
+
// #region Constructors
|
|
2451
|
+
/**
|
|
2452
|
+
* Constructor
|
|
2453
|
+
* @param formLayout SacFormLayout to define scoped layout settings
|
|
2454
|
+
* @param injector Injector for injecting services
|
|
2455
|
+
* @param renderer Angular rendering engine
|
|
2456
|
+
* @param ngZone ngZone to manage external javascripts
|
|
2457
|
+
*/
|
|
2458
|
+
function SacDropzoneSingleComponent(formLayout, injector, renderer, ngZone) {
|
|
2459
|
+
return _super.call(this, formLayout, injector, renderer, ngZone) || this;
|
|
2165
2460
|
}
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2461
|
+
// #endregion Constructors
|
|
2462
|
+
// #region Public Methods
|
|
2463
|
+
/**
|
|
2464
|
+
* Initialisiert das Control
|
|
2465
|
+
*/
|
|
2466
|
+
SacDropzoneSingleComponent.prototype.ngOnInit = function () {
|
|
2467
|
+
_super.prototype.ngOnInit.call(this);
|
|
2468
|
+
};
|
|
2469
|
+
return SacDropzoneSingleComponent;
|
|
2470
|
+
}(sacCommon.SacDropzoneSingleCommon));
|
|
2471
|
+
SacDropzoneSingleComponent.decorators = [
|
|
2472
|
+
{ type: core.Component, args: [{
|
|
2473
|
+
selector: 'sac-dropzonesingle',
|
|
2474
|
+
template: "<div\r\n id=\"{{ name }}\"\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}_uploadinput\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <div [style.flex-grow]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 1 : null\">\r\n <div\r\n class=\"img-rounded dropzone control-label\"\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 <div\r\n class=\"content\"\r\n *ngIf=\"uploads.length === 0\">\r\n <div>\r\n <div [class.is-invalid]=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"uploads.length > 0\">\r\n <div>\r\n <div\r\n class=\"dropzone-uploadstates\"\r\n *ngFor=\"let file of uploads\">\r\n <div\r\n class=\"input-group upload-component upload-component-multiple\"\r\n [class.input-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.input-group-lg]=\"componentHeight === ControlHeight.Large\">\r\n <div class=\"form-control upload-progress\">\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 <span class=\"progress-text\">{{ file.name }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"input-group-btn\">\r\n <!-- image-preview-clear button -->\r\n <a\r\n class=\"btn\"\r\n (click)=\"cancel(file.uploadId)\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\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 </div>\r\n <small\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </small>\r\n <div\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n class=\"help-block help-block-error\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
2475
|
+
providers: [
|
|
2476
|
+
{
|
|
2477
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
2478
|
+
multi: true,
|
|
2479
|
+
useExisting: SacDropzoneSingleComponent,
|
|
2480
|
+
},
|
|
2481
|
+
{
|
|
2482
|
+
provide: forms.NG_VALIDATORS,
|
|
2483
|
+
multi: true,
|
|
2484
|
+
useExisting: core.forwardRef(function () { return SacDropzoneSingleComponent; }),
|
|
2485
|
+
},
|
|
2173
2486
|
],
|
|
2174
|
-
|
|
2487
|
+
styles: [".upload-component .upload-input{position:relative}.upload-component .custom-file>i{margin-right:15px}.upload-component .custom-file .custom-file-input{bottom:0;display:inline-block;left:0;margin:0;opacity:0;overflow:hidden;position:absolute;right:0;top:0;width:100%;z-index:2}.upload-component.upload-multiple .upload-progress .progress{border-bottom-right-radius:0;border-top-right-radius:0}.upload-component.upload-single .upload-progress .progress{border-radius:0}.upload-component .upload-progress{padding:0}.upload-component .upload-progress .progress{height:100%}.upload-component .upload-progress .progress .progress-text{color:#000;display:table-cell;height:34px;left:0;line-height:34px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.dropzone{border-style:dashed;border-width:2px;min-height:120px;padding-bottom:50px;padding-top:50px;position:relative;text-align:center;width:100%}.dropzone.active{background-color:#add8e6}.dropzone .progress{border-radius:0}.dropzone .progress .progress-bar{border-bottom-right-radius:0;border-top-right-radius:0;display:flex;flex-direction:column;justify-content:center;text-align:center}.dropzone .progress .progress-bar .progress-text{color:#000;display:table-cell;height:34px;left:0;line-height:34px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.dropzone input[type=file]{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;width:100%}.dropzone .dropzone-uploadstates{margin-left:auto;margin-right:auto;margin-top:6px;max-width:450px;width:80%}"]
|
|
2175
2488
|
},] }
|
|
2176
|
-
];
|
|
2489
|
+
];
|
|
2490
|
+
SacDropzoneSingleComponent.ctorParameters = function () { return [
|
|
2491
|
+
{ type: SacFormLayoutDirective, decorators: [{ type: core.Host }, { type: core.Optional }] },
|
|
2492
|
+
{ type: core.Injector },
|
|
2493
|
+
{ type: core.Renderer2 },
|
|
2494
|
+
{ type: core.NgZone }
|
|
2495
|
+
]; };
|
|
2177
2496
|
|
|
2178
2497
|
// https://github.com/kukhariev/ngx-uploadx/
|
|
2179
2498
|
var SacUploadComponent = /** @class */ (function (_super) {
|
|
@@ -2194,7 +2513,7 @@
|
|
|
2194
2513
|
SacUploadComponent.decorators = [
|
|
2195
2514
|
{ type: core.Component, args: [{
|
|
2196
2515
|
selector: 'sac-upload',
|
|
2197
|
-
template: "<div\r\n
|
|
2516
|
+
template: "<div\r\n id=\"{{ name }}\"\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}_uploadinput\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\"\r\n [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <div [style.flex-grow]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 1 : null\">\r\n <div\r\n class=\"input-group upload-component upload-single\"\r\n [class.input-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.input-group-lg]=\"componentHeight === ControlHeight.Large\">\r\n <div class=\"input-group-btn\">\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-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\r\n <i [class]=\"IconBrowse\"></i>\r\n <span class=\"upload-browse\">{{ lngResourceService.GetString(validationKeyService.UploadButtonBrowse) | async }}</span>\r\n <input\r\n id=\"{{ name }}_uploadinput\"\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 </div>\r\n </div>\r\n <div class=\"form-control upload-progress\">\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 <span class=\"progress-text text-dark\">{{ Filename() | async }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"input-group-btn\">\r\n <!-- image-preview-clear button -->\r\n <a\r\n class=\"btn\"\r\n (click)=\"cancelAll()\"\r\n [attr.disabled]=\"HasQueueItem() === false ? 'disabled' : null\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\r\n <span [class]=\"IconDelete\"></span>\r\n </a>\r\n <a\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-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\r\n <span [class]=\"IconPause\"></span>\r\n </a>\r\n <a\r\n *ngIf=\"autoupload && enablepause && IsPaused()\"\r\n class=\"btn\"\r\n (click)=\"uploadAll()\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\r\n <span [class]=\"IconContinue\"></span>\r\n </a>\r\n <a\r\n *ngIf=\"autoupload === false\"\r\n class=\"btn\"\r\n (click)=\"uploadAll()\"\r\n [attr.disabled]=\"IsStateToUpload() === false ? 'disabled' : null\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\r\n <span [class]=\"IconUpload\"></span> {{ lngResourceService.GetString(validationKeyService.UploadButtonUpload) | async }}\r\n </a>\r\n </div>\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
2198
2517
|
providers: [
|
|
2199
2518
|
{
|
|
2200
2519
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
@@ -2207,7 +2526,7 @@
|
|
|
2207
2526
|
useExisting: core.forwardRef(function () { return SacUploadComponent; }),
|
|
2208
2527
|
},
|
|
2209
2528
|
],
|
|
2210
|
-
styles: [".upload-component .upload-input{position:relative}.upload-component .custom-file>i{margin-right:15px}.upload-component .custom-file .custom-file-input{bottom:0;display:inline-block;left:0;margin:0;opacity:0;overflow:hidden;position:absolute;right:0;top:0;width:100%;z-index:2}.upload-component.upload-multiple .upload-progress .progress{border-bottom-right-radius:0;border-top-right-radius:0}.upload-component.upload-single .upload-progress .progress{border-radius:0}.upload-component .upload-progress{padding:0}.upload-component .upload-progress .progress{height:100%}.upload-component .upload-progress .progress .progress-text{color:#000;display:table-cell;height:34px;left:0;line-height:34px;position:absolute;right:0;top:50%;transform:translateY(-50%)}"]
|
|
2529
|
+
styles: [".upload-component .upload-input{position:relative}.upload-component .custom-file>i{margin-right:15px}.upload-component .custom-file .custom-file-input{bottom:0;display:inline-block;left:0;margin:0;opacity:0;overflow:hidden;position:absolute;right:0;top:0;width:100%;z-index:2}.upload-component.upload-multiple .upload-progress .progress{border-bottom-right-radius:0;border-top-right-radius:0}.upload-component.upload-single .upload-progress .progress{border-radius:0}.upload-component .upload-progress{padding:0}.upload-component .upload-progress .progress{height:100%}.upload-component .upload-progress .progress .progress-text{color:#000;display:table-cell;height:34px;left:0;line-height:34px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.dropzone{border-style:dashed;border-width:2px;min-height:120px;padding-bottom:50px;padding-top:50px;position:relative;text-align:center;width:100%}.dropzone.active{background-color:#add8e6}.dropzone .progress{border-radius:0}.dropzone .progress .progress-bar{border-bottom-right-radius:0;border-top-right-radius:0;display:flex;flex-direction:column;justify-content:center;text-align:center}.dropzone .progress .progress-bar .progress-text{color:#000;display:table-cell;height:34px;left:0;line-height:34px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.dropzone input[type=file]{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;width:100%}.dropzone .dropzone-uploadstates{margin-left:auto;margin-right:auto;margin-top:6px;max-width:450px;width:80%}"]
|
|
2211
2530
|
},] }
|
|
2212
2531
|
];
|
|
2213
2532
|
SacUploadComponent.ctorParameters = function () { return [
|
|
@@ -2236,7 +2555,7 @@
|
|
|
2236
2555
|
SacUploadMultipleComponent.decorators = [
|
|
2237
2556
|
{ type: core.Component, args: [{
|
|
2238
2557
|
selector: 'sac-uploadmultiple',
|
|
2239
|
-
template: "<div\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\"\r\n>\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{name}}label\"\r\n for=\"{{name}}\"\r\n class=\"col-xs-12 control-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-xs-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-xs-12\">\r\n <div\r\n class=\"btn-group\"\r\n [class.btn-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.btn-group-lg]=\"componentHeight === ControlHeight.Large\"\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-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <i [class]=\"IconBrowse\"></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\r\n class=\"btn-group\"\r\n [class.btn-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.btn-group-lg]=\"componentHeight === ControlHeight.Large\"\r\n >\r\n <!-- image-preview-clear button -->\r\n <a\r\n class=\"btn\"\r\n (click)=\"cancelAll()\"\r\n [attr.disabled]=\"HasQueueItem() === false ? 'disabled' : null\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconDelete\"></span>\r\n </a>\r\n <a\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-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconPause\"></span>\r\n </a>\r\n <a\r\n *ngIf=\"autoupload && enablepause && IsPaused() === true\"\r\n class=\"btn\"\r\n (click)=\"uploadAll()\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconContinue\"></span>\r\n </a>\r\n <a\r\n *ngIf=\"autoupload === false\"\r\n class=\"btn\"\r\n (click)=\"uploadAll()\"\r\n [attr.disabled]=\"IsStateToUpload() === false ? 'disabled' : null\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconUpload\"></span> {{\r\n lngResourceService.GetString(validationKeyService.UploadButtonUpload)\r\n | async }}\r\n </a>\r\n </div>\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\r\n class=\"input-group upload-component upload-multiple\"\r\n [class.input-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.input-group-lg]=\"componentHeight === ControlHeight.Large\"\r\n >\r\n <div class=\"form-control upload-progress\">\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\r\n class=\"input-group-btn\"\r\n [class.input-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.input-group-lg]=\"componentHeight === ControlHeight.Large\"\r\n >\r\n <!-- image-preview-clear button -->\r\n <a\r\n class=\"btn\"\r\n (click)=\"cancel(file.uploadId)\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconDelete\"></span>\r\n </a>\r\n <a\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-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconPause\"></span>\r\n </a>\r\n <a\r\n *ngIf=\"autoupload && enablepause && file.status === 'paused'\"\r\n class=\"btn\"\r\n (click)=\"upload(file.uploadId)\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconContinue\"></span>\r\n </a>\r\n <a\r\n *ngIf=\"autoupload === false\"\r\n class=\"btn\"\r\n (click)=\"upload(file.uploadId)\"\r\n [attr.disabled]=\"file.status !== 'added' && file.status !== 'paused' ? 'disabled' : null\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\"\r\n >\r\n <span [class]=\"IconUpload\"></span> {{\r\n lngResourceService.GetString(validationKeyService.UploadButtonUpload)\r\n | async }}\r\n </a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\"\r\n >\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
2558
|
+
template: "<div\r\n id=\"{{ name }}\"\r\n class=\"row form-group\"\r\n [class.has-error]=\"invalid && (dirty || touched)\"\r\n [ngClass]=\"componentHeight | toLabelHeight\">\r\n <label\r\n *ngIf=\"disablelabel === false && !isAdaptiveLabel\"\r\n id=\"{{ name }}label\"\r\n for=\"{{ name }}_uploadinput\"\r\n class=\"col-xs-12 control-label\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toLabelWidthCss) : 'sr-only']\"\r\n [class.required]=\"isrequired\">\r\n <span class=\"text\">{{ label }}</span>\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </label>\r\n <div\r\n class=\"col-xs-12\"\r\n [ngClass]=\"[disablelabel === false ? (this.labelSizes | toControlWidthCss) : '']\">\r\n <div class=\"upload-component\">\r\n <div class=\"row\">\r\n <div\r\n class=\"col-xs-12\"\r\n [style.display]=\"helptextmode === 'tooltip' && helptext && disablelabel ? 'flex' : null\">\r\n <div\r\n class=\"btn-group\"\r\n [class.btn-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.btn-group-lg]=\"componentHeight === ControlHeight.Large\">\r\n <div\r\n class=\"btn upload-input custom-file\"\r\n [class.disabled]=\"maxfiles > 0 && uploads.length >= maxfiles\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\r\n <i [class]=\"IconBrowse\"></i>\r\n <span class=\"upload-browse\">Browse</span>\r\n <input\r\n id=\"{{ name }}_uploadinput\"\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 </div>\r\n\r\n <div\r\n class=\"btn-group\"\r\n [class.btn-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.btn-group-lg]=\"componentHeight === ControlHeight.Large\">\r\n <!-- image-preview-clear button -->\r\n <a\r\n class=\"btn\"\r\n (click)=\"cancelAll()\"\r\n [attr.disabled]=\"HasQueueItem() === false ? 'disabled' : null\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\r\n <span [class]=\"IconDelete\"></span>\r\n </a>\r\n <a\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-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\r\n <span [class]=\"IconPause\"></span>\r\n </a>\r\n <a\r\n *ngIf=\"autoupload && enablepause && IsPaused() === true\"\r\n class=\"btn\"\r\n (click)=\"uploadAll()\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\r\n <span [class]=\"IconContinue\"></span>\r\n </a>\r\n <a\r\n *ngIf=\"autoupload === false\"\r\n class=\"btn\"\r\n (click)=\"uploadAll()\"\r\n [attr.disabled]=\"IsStateToUpload() === false ? 'disabled' : null\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\r\n <span [class]=\"IconUpload\"></span> {{ lngResourceService.GetString(validationKeyService.UploadButtonUpload) | async }}\r\n </a>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"helptextmode === 'tooltip' && helptext && disablelabel\"\r\n class=\"form-control-static\"\r\n style=\"margin-left: 5px\">\r\n <sac-tooltip\r\n *ngIf=\"helptextmode === 'tooltip' && helptext\"\r\n [tooltiptext]=\"helptext\"\r\n [inlinemode]=\"true\">\r\n <span\r\n [class]=\"HelptextTooltipIcon\"\r\n style=\"margin-left: 5px; margin-right: 5px\">\r\n </span>\r\n </sac-tooltip>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *ngFor=\"let file of uploads\"\r\n style=\"margin-top: 5px\">\r\n <div\r\n class=\"input-group upload-component upload-multiple\"\r\n [class.input-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.input-group-lg]=\"componentHeight === ControlHeight.Large\">\r\n <div class=\"form-control upload-progress\">\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 <span class=\"progress-text text-dark\">{{ file.name }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"input-group-btn\"\r\n [class.input-group-sm]=\"componentHeight === ControlHeight.Small\"\r\n [class.input-group-lg]=\"componentHeight === ControlHeight.Large\">\r\n <!-- image-preview-clear button -->\r\n <a\r\n class=\"btn\"\r\n (click)=\"cancel(file.uploadId)\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\r\n <span [class]=\"IconDelete\"></span>\r\n </a>\r\n <a\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-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\r\n <span [class]=\"IconPause\"></span>\r\n </a>\r\n <a\r\n *ngIf=\"autoupload && enablepause && file.status === 'paused'\"\r\n class=\"btn\"\r\n (click)=\"upload(file.uploadId)\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\r\n <span [class]=\"IconContinue\"></span>\r\n </a>\r\n <a\r\n *ngIf=\"autoupload === false\"\r\n class=\"btn\"\r\n (click)=\"upload(file.uploadId)\"\r\n [attr.disabled]=\"file.status !== 'added' && file.status !== 'paused' ? 'disabled' : null\"\r\n [class.btn-default]=\"!(invalid && (dirty || touched))\"\r\n [class.btn-danger]=\"invalid && (dirty || touched)\">\r\n <span [class]=\"IconUpload\"></span> {{ lngResourceService.GetString(validationKeyService.UploadButtonUpload) | async }}\r\n </a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <p\r\n *ngIf=\"helptextmode === 'text' && helptext\"\r\n class=\"help-block\">\r\n {{ helptext }}\r\n </p>\r\n <div\r\n class=\"help-block help-block-error\"\r\n *ngIf=\"isinlineerrorenabled && invalid && (dirty || touched)\">\r\n {{ GetErrorMessage() | async }}\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
2240
2559
|
providers: [
|
|
2241
2560
|
{
|
|
2242
2561
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
@@ -2249,7 +2568,7 @@
|
|
|
2249
2568
|
useExisting: core.forwardRef(function () { return SacUploadMultipleComponent; }),
|
|
2250
2569
|
},
|
|
2251
2570
|
],
|
|
2252
|
-
styles: [".upload-component .upload-input{position:relative}.upload-component .custom-file>i{margin-right:15px}.upload-component .custom-file .custom-file-input{bottom:0;display:inline-block;left:0;margin:0;opacity:0;overflow:hidden;position:absolute;right:0;top:0;width:100%;z-index:2}.upload-component.upload-multiple .upload-progress .progress{border-bottom-right-radius:0;border-top-right-radius:0}.upload-component.upload-single .upload-progress .progress{border-radius:0}.upload-component .upload-progress{padding:0}.upload-component .upload-progress .progress{height:100%}.upload-component .upload-progress .progress .progress-text{color:#000;display:table-cell;height:34px;left:0;line-height:34px;position:absolute;right:0;top:50%;transform:translateY(-50%)}"]
|
|
2571
|
+
styles: [".upload-component .upload-input{position:relative}.upload-component .custom-file>i{margin-right:15px}.upload-component .custom-file .custom-file-input{bottom:0;display:inline-block;left:0;margin:0;opacity:0;overflow:hidden;position:absolute;right:0;top:0;width:100%;z-index:2}.upload-component.upload-multiple .upload-progress .progress{border-bottom-right-radius:0;border-top-right-radius:0}.upload-component.upload-single .upload-progress .progress{border-radius:0}.upload-component .upload-progress{padding:0}.upload-component .upload-progress .progress{height:100%}.upload-component .upload-progress .progress .progress-text{color:#000;display:table-cell;height:34px;left:0;line-height:34px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.dropzone{border-style:dashed;border-width:2px;min-height:120px;padding-bottom:50px;padding-top:50px;position:relative;text-align:center;width:100%}.dropzone.active{background-color:#add8e6}.dropzone .progress{border-radius:0}.dropzone .progress .progress-bar{border-bottom-right-radius:0;border-top-right-radius:0;display:flex;flex-direction:column;justify-content:center;text-align:center}.dropzone .progress .progress-bar .progress-text{color:#000;display:table-cell;height:34px;left:0;line-height:34px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.dropzone input[type=file]{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;width:100%}.dropzone .dropzone-uploadstates{margin-left:auto;margin-right:auto;margin-top:6px;max-width:450px;width:80%}"]
|
|
2253
2572
|
},] }
|
|
2254
2573
|
];
|
|
2255
2574
|
SacUploadMultipleComponent.ctorParameters = function () { return [
|
|
@@ -2266,9 +2585,14 @@
|
|
|
2266
2585
|
}());
|
|
2267
2586
|
SACBootstrap3UploadModule.decorators = [
|
|
2268
2587
|
{ type: core.NgModule, args: [{
|
|
2269
|
-
declarations: [
|
|
2270
|
-
|
|
2271
|
-
|
|
2588
|
+
declarations: [
|
|
2589
|
+
SacUploadComponent,
|
|
2590
|
+
SacUploadMultipleComponent,
|
|
2591
|
+
SacDropzoneSingleComponent,
|
|
2592
|
+
SacDropzoneMultipleComponent,
|
|
2593
|
+
],
|
|
2594
|
+
imports: [common.CommonModule, forms.FormsModule, SACBootstrap3LayoutModule, SACBootstrap3TooltipModule],
|
|
2595
|
+
exports: [SacUploadComponent, SacUploadMultipleComponent, SacDropzoneSingleComponent, SacDropzoneMultipleComponent],
|
|
2272
2596
|
},] }
|
|
2273
2597
|
];
|
|
2274
2598
|
|
|
@@ -2421,74 +2745,60 @@
|
|
|
2421
2745
|
},] }
|
|
2422
2746
|
];
|
|
2423
2747
|
|
|
2748
|
+
// #region Classes
|
|
2424
2749
|
/**
|
|
2425
|
-
*
|
|
2426
|
-
* @param form NgFormular
|
|
2427
|
-
*/
|
|
2428
|
-
function SACFORM_FACTORY(form) {
|
|
2429
|
-
return form;
|
|
2430
|
-
}
|
|
2431
|
-
/**
|
|
2432
|
-
* Factory Methode für NgForm
|
|
2433
|
-
* @param form NgForm
|
|
2434
|
-
*/
|
|
2435
|
-
function NGFORM_FACTORY(form) {
|
|
2436
|
-
return form;
|
|
2437
|
-
}
|
|
2438
|
-
/**
|
|
2439
|
-
* Directive zum erben eines NgForm/NgFormular einer übergeordneten Komponente
|
|
2440
|
-
*
|
|
2441
|
-
* @example Implementation in Markup
|
|
2442
|
-
*
|
|
2443
|
-
* <div sacInheritForm>
|
|
2444
|
-
* </div>
|
|
2445
|
-
*
|
|
2446
|
-
* @example Model an Sub-Komponente übergeben
|
|
2447
|
-
*
|
|
2448
|
-
* <div sacInheritForm>
|
|
2449
|
-
* <div>SubForm</div>
|
|
2450
|
-
* <div>
|
|
2451
|
-
* <ngInput [(ngModel)]="mymodel.fieldarea2" name="subformField3" label="field 3" [isrequired]="true"></ngInput>
|
|
2452
|
-
* </div>
|
|
2453
|
-
* </div>
|
|
2454
|
-
*
|
|
2455
|
-
*
|
|
2456
|
-
* (at)Component({
|
|
2457
|
-
* selector: 'sacInheritForm',
|
|
2458
|
-
* templateUrl: './subform.component.html'
|
|
2459
|
-
* })
|
|
2460
|
-
* export class SubFormComponent implements DoCheck {
|
|
2461
|
-
*
|
|
2462
|
-
* (at)Input() mymodel;
|
|
2463
|
-
* (at)Output() mymodelChange = new EventEmitter();
|
|
2464
|
-
*
|
|
2465
|
-
* ngDoCheck() {
|
|
2466
|
-
* this.mymodelChange.next(this.mymodel);
|
|
2467
|
-
* }
|
|
2468
|
-
*}
|
|
2469
|
-
*
|
|
2750
|
+
* Directive to inherit an NgForm/NgForm from a parent component
|
|
2470
2751
|
*/
|
|
2471
|
-
var SacInheritFormDirective = /** @class */ (function () {
|
|
2472
|
-
|
|
2752
|
+
var SacInheritFormDirective = /** @class */ (function (_super) {
|
|
2753
|
+
__extends(SacInheritFormDirective, _super);
|
|
2754
|
+
// #region Constructors
|
|
2755
|
+
/**
|
|
2756
|
+
* Construtor
|
|
2757
|
+
* @param injector: injector to receive the NgForm instance
|
|
2758
|
+
*/
|
|
2759
|
+
function SacInheritFormDirective(injector) {
|
|
2760
|
+
return _super.call(this, injector.get(forms.NgForm)) || this;
|
|
2473
2761
|
}
|
|
2474
2762
|
return SacInheritFormDirective;
|
|
2475
|
-
}());
|
|
2763
|
+
}(sacCommon.SacFormCommon));
|
|
2476
2764
|
SacInheritFormDirective.decorators = [
|
|
2477
2765
|
{ type: core.Directive, args: [{
|
|
2478
2766
|
selector: '[sacInheritForm]',
|
|
2767
|
+
exportAs: 'sacinheritform',
|
|
2479
2768
|
providers: [
|
|
2480
2769
|
{
|
|
2481
2770
|
provide: SacFormDirective,
|
|
2482
2771
|
useFactory: SACFORM_FACTORY,
|
|
2483
|
-
deps: [[new core.SkipSelf(), SacFormDirective]]
|
|
2484
|
-
},
|
|
2772
|
+
deps: [[new core.SkipSelf(), SacFormDirective]],
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2485
2775
|
provide: forms.ControlContainer,
|
|
2486
2776
|
useFactory: NGFORM_FACTORY,
|
|
2487
|
-
deps: [forms.NgForm]
|
|
2488
|
-
}
|
|
2489
|
-
]
|
|
2777
|
+
deps: [forms.NgForm],
|
|
2778
|
+
},
|
|
2779
|
+
],
|
|
2490
2780
|
},] }
|
|
2491
|
-
];
|
|
2781
|
+
];
|
|
2782
|
+
SacInheritFormDirective.ctorParameters = function () { return [
|
|
2783
|
+
{ type: core.Injector }
|
|
2784
|
+
]; };
|
|
2785
|
+
// #endregion Classes
|
|
2786
|
+
// #region Functions
|
|
2787
|
+
/**
|
|
2788
|
+
* Factory Methode für NgForm
|
|
2789
|
+
* @param form NgForm
|
|
2790
|
+
*/
|
|
2791
|
+
function NGFORM_FACTORY(form) {
|
|
2792
|
+
return form;
|
|
2793
|
+
}
|
|
2794
|
+
/**
|
|
2795
|
+
* Factory Methode für SacForm
|
|
2796
|
+
* @param form NgFormular
|
|
2797
|
+
*/
|
|
2798
|
+
function SACFORM_FACTORY(form) {
|
|
2799
|
+
return form;
|
|
2800
|
+
}
|
|
2801
|
+
// #endregion Functions
|
|
2492
2802
|
|
|
2493
2803
|
var SACBootstrap3FormModule = /** @class */ (function () {
|
|
2494
2804
|
function SACBootstrap3FormModule() {
|
|
@@ -2515,6 +2825,7 @@
|
|
|
2515
2825
|
exports.SACBootstrap3ButtonModule = SACBootstrap3ButtonModule;
|
|
2516
2826
|
exports.SACBootstrap3CheckboxModule = SACBootstrap3CheckboxModule;
|
|
2517
2827
|
exports.SACBootstrap3ConfirmModule = SACBootstrap3ConfirmModule;
|
|
2828
|
+
exports.SACBootstrap3ContextmenuModule = SACBootstrap3ContextmenuModule;
|
|
2518
2829
|
exports.SACBootstrap3DateTimeModule = SACBootstrap3DateTimeModule;
|
|
2519
2830
|
exports.SACBootstrap3DialogModule = SACBootstrap3DialogModule;
|
|
2520
2831
|
exports.SACBootstrap3FormModule = SACBootstrap3FormModule;
|
|
@@ -2526,7 +2837,7 @@
|
|
|
2526
2837
|
exports.SACBootstrap3TabsModule = SACBootstrap3TabsModule;
|
|
2527
2838
|
exports.SACBootstrap3TinyMceModule = SACBootstrap3TinyMceModule;
|
|
2528
2839
|
exports.SACBootstrap3TooltipModule = SACBootstrap3TooltipModule;
|
|
2529
|
-
exports.
|
|
2840
|
+
exports.SACBootstrap3TreeviewModule = SACBootstrap3TreeviewModule;
|
|
2530
2841
|
exports.SACBootstrap3UploadModule = SACBootstrap3UploadModule;
|
|
2531
2842
|
exports.SACBootstrap3ValidationSummaryModule = SACBootstrap3ValidationSummaryModule;
|
|
2532
2843
|
exports.SACBootstrap3WizardModule = SACBootstrap3WizardModule;
|
|
@@ -2534,12 +2845,18 @@
|
|
|
2534
2845
|
exports.SacButtonComponent = SacButtonComponent;
|
|
2535
2846
|
exports.SacCheckboxComponent = SacCheckboxComponent;
|
|
2536
2847
|
exports.SacConfirmComponent = SacConfirmComponent;
|
|
2848
|
+
exports.SacContextmenuAnchorDirective = SacContextmenuAnchorDirective;
|
|
2849
|
+
exports.SacContextmenuComponent = SacContextmenuComponent;
|
|
2850
|
+
exports.SacContextmenuItemButtonComponent = SacContextmenuItemButtonComponent;
|
|
2851
|
+
exports.SacContextmenuItemSplitterComponent = SacContextmenuItemSplitterComponent;
|
|
2537
2852
|
exports.SacDateComponent = SacDateComponent;
|
|
2538
2853
|
exports.SacDateSelectorComponent = SacDateSelectorComponent;
|
|
2539
2854
|
exports.SacDateTimeComponent = SacDateTimeComponent;
|
|
2540
2855
|
exports.SacDialogComponent = SacDialogComponent;
|
|
2541
2856
|
exports.SacDropdownComponent = SacDropdownComponent;
|
|
2542
2857
|
exports.SacDropdownOptionDirective = SacDropdownOptionDirective;
|
|
2858
|
+
exports.SacDropzoneMultipleComponent = SacDropzoneMultipleComponent;
|
|
2859
|
+
exports.SacDropzoneSingleComponent = SacDropzoneSingleComponent;
|
|
2543
2860
|
exports.SacFormDirective = SacFormDirective;
|
|
2544
2861
|
exports.SacFormLayoutDirective = SacFormLayoutDirective;
|
|
2545
2862
|
exports.SacGridButtonComponent = SacGridButtonComponent;
|
|
@@ -2571,15 +2888,14 @@
|
|
|
2571
2888
|
exports.SacToLabelHeightPipe = SacToLabelHeightPipe;
|
|
2572
2889
|
exports.SacToLabelWidthCssPipe = SacToLabelWidthCssPipe;
|
|
2573
2890
|
exports.SacTooltipComponent = SacTooltipComponent;
|
|
2574
|
-
exports.
|
|
2575
|
-
exports.SacTreeViewChildComponent = SacTreeViewChildComponent;
|
|
2576
|
-
exports.SacTreeViewComponent = SacTreeViewComponent;
|
|
2891
|
+
exports.SacTreeviewComponent = SacTreeviewComponent;
|
|
2577
2892
|
exports.SacUploadComponent = SacUploadComponent;
|
|
2578
2893
|
exports.SacUploadMultipleComponent = SacUploadMultipleComponent;
|
|
2579
2894
|
exports.SacValidationSummaryComponent = SacValidationSummaryComponent;
|
|
2580
2895
|
exports.SacWizardComponent = SacWizardComponent;
|
|
2581
2896
|
exports.SacWizardItemComponent = SacWizardItemComponent;
|
|
2582
2897
|
exports.ServiceConfirm = ServiceConfirm;
|
|
2898
|
+
exports.ɵa = SacContextmenuContainerDirective;
|
|
2583
2899
|
|
|
2584
2900
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2585
2901
|
|