@simpleangularcontrols/sac-bootstrap3 10.0.0-rc.12 → 10.0.0-rc.13
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 +65 -70
- 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/contextmenu/contextmenu.d.ts +5 -5
- package/controls/contextmenu/contextmenuitembutton.d.ts +3 -3
- 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/esm2015/controls/contextmenu/contextmenu.js +8 -14
- package/esm2015/controls/contextmenu/contextmenu.module.ngfactory.js +1 -1
- package/esm2015/controls/contextmenu/contextmenuitembutton.js +13 -8
- package/esm2015/controls/contextmenu/contextmenuitemsplitter.js +9 -3
- package/esm2015/controls/input/inputsearch.js +1 -1
- 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/public_api.js +1 -4
- package/fesm2015/simpleangularcontrols-sac-bootstrap3.js +61 -54
- package/fesm2015/simpleangularcontrols-sac-bootstrap3.js.map +1 -1
- package/package.json +2 -2
- package/public_api.d.ts +0 -3
- package/simpleangularcontrols-sac-bootstrap3-10.0.0-rc.13.tgz +0 -0
- package/simpleangularcontrols-sac-bootstrap3.metadata.json +1 -1
- package/controls/treeview/ngtreeitemaction.d.ts +0 -5
- package/controls/treeview/ngtreeitemaction.ngfactory.d.ts +0 -1
- package/controls/treeview/treeviewchild.d.ts +0 -3
- package/controls/treeview/treeviewchild.ngfactory.d.ts +0 -1
- package/esm2015/controls/treeview/ngtreeitemaction.js +0 -17
- package/esm2015/controls/treeview/ngtreeitemaction.ngfactory.js +0 -7
- package/esm2015/controls/treeview/treeviewchild.js +0 -11
- package/esm2015/controls/treeview/treeviewchild.ngfactory.js +0 -7
- package/simpleangularcontrols-sac-bootstrap3-10.0.0-rc.12.tgz +0 -0
|
@@ -1097,18 +1097,18 @@
|
|
|
1097
1097
|
];
|
|
1098
1098
|
|
|
1099
1099
|
/**
|
|
1100
|
-
* Component
|
|
1100
|
+
* Component for context menu
|
|
1101
1101
|
*/
|
|
1102
1102
|
var SacContextmenuComponent = /** @class */ (function (_super) {
|
|
1103
1103
|
__extends(SacContextmenuComponent, _super);
|
|
1104
1104
|
// #region Constructors
|
|
1105
1105
|
/**
|
|
1106
1106
|
* Constructor
|
|
1107
|
-
* @param document
|
|
1107
|
+
* @param document Reference to HTML document
|
|
1108
1108
|
* @param ngZone Angular Zone Service
|
|
1109
|
-
* @param elementRef
|
|
1110
|
-
* @param renderer Render Service
|
|
1111
|
-
* @param injector
|
|
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
1112
|
*/
|
|
1113
1113
|
function SacContextmenuComponent(document, ngZone, elementRef, renderer, injector) {
|
|
1114
1114
|
return _super.call(this, document, ngZone, elementRef, renderer, injector) || this;
|
|
@@ -1118,13 +1118,7 @@
|
|
|
1118
1118
|
SacContextmenuComponent.decorators = [
|
|
1119
1119
|
{ type: core.Component, args: [{
|
|
1120
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
|
-
providers: [
|
|
1123
|
-
{
|
|
1124
|
-
provide: sacCommon.SacContextmenuCommon,
|
|
1125
|
-
useExisting: core.forwardRef(function () { return SacContextmenuComponent; }),
|
|
1126
|
-
},
|
|
1127
|
-
]
|
|
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"
|
|
1128
1122
|
},] }
|
|
1129
1123
|
];
|
|
1130
1124
|
SacContextmenuComponent.ctorParameters = function () { return [
|
|
@@ -1196,7 +1190,7 @@
|
|
|
1196
1190
|
]; };
|
|
1197
1191
|
|
|
1198
1192
|
/**
|
|
1199
|
-
* Component
|
|
1193
|
+
* Component for menu entry in context menu
|
|
1200
1194
|
*/
|
|
1201
1195
|
var SacContextmenuItemButtonComponent = /** @class */ (function (_super) {
|
|
1202
1196
|
__extends(SacContextmenuItemButtonComponent, _super);
|
|
@@ -1205,8 +1199,8 @@
|
|
|
1205
1199
|
* Constructor
|
|
1206
1200
|
* @param contextmenu Instance von Context Menü
|
|
1207
1201
|
*/
|
|
1208
|
-
function SacContextmenuItemButtonComponent(
|
|
1209
|
-
var _this = _super.call(this
|
|
1202
|
+
function SacContextmenuItemButtonComponent(el) {
|
|
1203
|
+
var _this = _super.call(this) || this;
|
|
1210
1204
|
_this.el = el;
|
|
1211
1205
|
return _this;
|
|
1212
1206
|
}
|
|
@@ -1225,11 +1219,16 @@
|
|
|
1225
1219
|
SacContextmenuItemButtonComponent.decorators = [
|
|
1226
1220
|
{ type: core.Component, args: [{
|
|
1227
1221
|
selector: 'sac-contextmenubutton',
|
|
1228
|
-
template: "<li\r\n [class.disabled]=\"isdisabled\"\r\n [ngClass]=\"cssclass\">\r\n <a\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"
|
|
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
1229
|
},] }
|
|
1230
1230
|
];
|
|
1231
1231
|
SacContextmenuItemButtonComponent.ctorParameters = function () { return [
|
|
1232
|
-
{ type: sacCommon.SacContextmenuCommon },
|
|
1233
1232
|
{ type: core.ElementRef }
|
|
1234
1233
|
]; };
|
|
1235
1234
|
|
|
@@ -1246,7 +1245,13 @@
|
|
|
1246
1245
|
SacContextmenuItemSplitterComponent.decorators = [
|
|
1247
1246
|
{ type: core.Component, args: [{
|
|
1248
1247
|
selector: 'sac-contextmenusplitter',
|
|
1249
|
-
template: "<li\r\n role=\"separator\"\r\n class=\"divider\"></li>\r\n"
|
|
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
|
+
]
|
|
1250
1255
|
},] }
|
|
1251
1256
|
];
|
|
1252
1257
|
|
|
@@ -1921,7 +1926,7 @@
|
|
|
1921
1926
|
SacInputSearchComponent.decorators = [
|
|
1922
1927
|
{ type: core.Component, args: [{
|
|
1923
1928
|
selector: 'sac-inputsearch',
|
|
1924
|
-
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=\"
|
|
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",
|
|
1925
1930
|
// Value Access Provider registrieren, damit Wert via Model geschrieben und gelesen werden kann
|
|
1926
1931
|
providers: [
|
|
1927
1932
|
{
|
|
@@ -2331,63 +2336,55 @@
|
|
|
2331
2336
|
},] }
|
|
2332
2337
|
];
|
|
2333
2338
|
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
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;
|
|
2338
2352
|
}
|
|
2339
|
-
return
|
|
2340
|
-
}(sacCommon.
|
|
2341
|
-
|
|
2353
|
+
return SacTreeviewComponent;
|
|
2354
|
+
}(sacCommon.SacTreeviewCommon));
|
|
2355
|
+
SacTreeviewComponent.decorators = [
|
|
2342
2356
|
{ type: core.Component, args: [{
|
|
2343
2357
|
selector: 'sac-treeview',
|
|
2344
|
-
template: "<div
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
selector: 'sac-treeviewchild',
|
|
2358
|
-
template: "<ul class=\"jstree-children\" *ngIf=\"nodes && nodes.length\">\r\n <li\r\n *ngFor=\"let node of nodes; let last = last\"\r\n class=\"jstree-node\"\r\n [ngClass]=\"{\r\n 'jstree-open': !node[collapseAttr] && node[childrenAttr] && node[childrenAttr].length,\r\n 'jstree-closed': node[collapseAttr] && node[childrenAttr] && node[childrenAttr].length,\r\n 'jstree-leaf': !node[childrenAttr].length,\r\n 'jstree-last': last\r\n }\"\r\n [id]=\"node[idAttr]\"\r\n >\r\n <div\r\n unselectable=\"on\"\r\n role=\"presentation\"\r\n class=\"jstree-wholerow\"\r\n (mouseover)=\"node.hover=true\"\r\n (mouseout)=\"node.hover=false\"\r\n [ngClass]=\"{'jstree-wholerow-clicked': node === selectedNode, 'jstree-wholerow-hovered': node.hover}\"\r\n >\r\n \r\n </div>\r\n\r\n <i\r\n class=\"jstree-icon jstree-ocl\"\r\n role=\"presentation\"\r\n (click)=\"onCollapseClick(node)\"\r\n (mouseover)=\"node.hover=true\"\r\n (mouseout)=\"node.hover=false\"\r\n ></i>\r\n\r\n <a\r\n class=\"jstree-anchor\"\r\n (click)=\"onClick(node)\"\r\n [ngClass]=\"{'jstree-clicked': node === selectedNode, 'jstreehovered': node.hover}\"\r\n (mouseover)=\"node.hover=true\"\r\n (mouseout)=\"node.hover=false\"\r\n >\r\n <ng-container\r\n *ngTemplateOutlet=\"treefileicon; context { item: node }\"\r\n ;\r\n content\r\n ></ng-container>\r\n\r\n {{node[textAttr]}}\r\n </a>\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"template; context { item: node }\"\r\n ></ng-container>\r\n\r\n <sac-treeviewchild\r\n *ngIf=\"node[childrenAttr] && node[childrenAttr].length\"\r\n [fileicontemplate]=\"fileicontemplate\"\r\n [template]=\"template\"\r\n [collapseall]=\"collapseall\"\r\n [ngClass]=\"(node[collapseAttr]===true)?'collapse':'show'\"\r\n [data]=\"node[childrenAttr]\"\r\n [idAttr]=\"idAttr\"\r\n [parentAttr]=\"parentAttr\"\r\n [textAttr]=\"textAttr\"\r\n [prepareData]=\"false\"\r\n (onselecteditem)=\"sendMsgToParent($event)\"\r\n [(selectedid)]=\"selectedid\"\r\n >\r\n </sac-treeviewchild>\r\n </li>\r\n</ul>\r\n"
|
|
2359
|
-
},] }
|
|
2360
|
-
];
|
|
2361
|
-
|
|
2362
|
-
var SacTreeItemActionComponent = /** @class */ (function (_super) {
|
|
2363
|
-
__extends(SacTreeItemActionComponent, _super);
|
|
2364
|
-
function SacTreeItemActionComponent(el) {
|
|
2365
|
-
return _super.call(this, el) || this;
|
|
2366
|
-
}
|
|
2367
|
-
return SacTreeItemActionComponent;
|
|
2368
|
-
}(sacCommon.SacTreeItemActionCommon));
|
|
2369
|
-
SacTreeItemActionComponent.decorators = [
|
|
2370
|
-
{ type: core.Component, args: [{
|
|
2371
|
-
selector: 'sac-treeitemaction',
|
|
2372
|
-
template: "<i class=\"{{transformClass(iconstyle)}}\" (mouseover)=\"item.hover=true\" (mouseout)=\"item.hover=false\" (click)=\"iconaction()\" ></i>"
|
|
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 }\">\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 <tr [class.active]=\"isSelectedState(node)\">\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 style=\"margin-right: 15px\"\r\n [ngClass]=\"getStringField(node, attricon)\">\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]=\"{ node: child, deep: deep + 1 }\">\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 #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
|
+
]
|
|
2373
2371
|
},] }
|
|
2374
2372
|
];
|
|
2375
|
-
|
|
2376
|
-
{ type: core.
|
|
2373
|
+
SacTreeviewComponent.ctorParameters = function () { return [
|
|
2374
|
+
{ type: SacFormLayoutDirective, decorators: [{ type: core.Host }, { type: core.Optional }] },
|
|
2375
|
+
{ type: core.Injector }
|
|
2377
2376
|
]; };
|
|
2378
2377
|
|
|
2379
|
-
var
|
|
2380
|
-
function
|
|
2378
|
+
var SACBootstrap3TreeviewModule = /** @class */ (function () {
|
|
2379
|
+
function SACBootstrap3TreeviewModule() {
|
|
2381
2380
|
}
|
|
2382
|
-
return
|
|
2381
|
+
return SACBootstrap3TreeviewModule;
|
|
2383
2382
|
}());
|
|
2384
|
-
|
|
2383
|
+
SACBootstrap3TreeviewModule.decorators = [
|
|
2385
2384
|
{ type: core.NgModule, args: [{
|
|
2386
|
-
declarations: [
|
|
2387
|
-
imports: [
|
|
2388
|
-
|
|
2389
|
-
],
|
|
2390
|
-
exports: [SacTreeViewComponent, SacTreeViewChildComponent, SacTreeItemActionComponent]
|
|
2385
|
+
declarations: [SacTreeviewComponent],
|
|
2386
|
+
imports: [common.CommonModule, SACBootstrap3TooltipModule, SACBootstrap3LayoutModule, SACBootstrap3ContextmenuModule],
|
|
2387
|
+
exports: [SacTreeviewComponent],
|
|
2391
2388
|
},] }
|
|
2392
2389
|
];
|
|
2393
2390
|
|
|
@@ -2840,7 +2837,7 @@
|
|
|
2840
2837
|
exports.SACBootstrap3TabsModule = SACBootstrap3TabsModule;
|
|
2841
2838
|
exports.SACBootstrap3TinyMceModule = SACBootstrap3TinyMceModule;
|
|
2842
2839
|
exports.SACBootstrap3TooltipModule = SACBootstrap3TooltipModule;
|
|
2843
|
-
exports.
|
|
2840
|
+
exports.SACBootstrap3TreeviewModule = SACBootstrap3TreeviewModule;
|
|
2844
2841
|
exports.SACBootstrap3UploadModule = SACBootstrap3UploadModule;
|
|
2845
2842
|
exports.SACBootstrap3ValidationSummaryModule = SACBootstrap3ValidationSummaryModule;
|
|
2846
2843
|
exports.SACBootstrap3WizardModule = SACBootstrap3WizardModule;
|
|
@@ -2891,9 +2888,7 @@
|
|
|
2891
2888
|
exports.SacToLabelHeightPipe = SacToLabelHeightPipe;
|
|
2892
2889
|
exports.SacToLabelWidthCssPipe = SacToLabelWidthCssPipe;
|
|
2893
2890
|
exports.SacTooltipComponent = SacTooltipComponent;
|
|
2894
|
-
exports.
|
|
2895
|
-
exports.SacTreeViewChildComponent = SacTreeViewChildComponent;
|
|
2896
|
-
exports.SacTreeViewComponent = SacTreeViewComponent;
|
|
2891
|
+
exports.SacTreeviewComponent = SacTreeviewComponent;
|
|
2897
2892
|
exports.SacUploadComponent = SacUploadComponent;
|
|
2898
2893
|
exports.SacUploadMultipleComponent = SacUploadMultipleComponent;
|
|
2899
2894
|
exports.SacValidationSummaryComponent = SacValidationSummaryComponent;
|