@seniorsistemas/angular-components 17.7.2 → 17.7.4
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/seniorsistemas-angular-components.umd.js +350 -235
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/tiered-menu/components/tiered-menu/tiered-menu.component.d.ts +8 -4
- package/components/tiered-menu/components/tiered-menu-item/tiered-menu-item.component.d.ts +2 -1
- package/components/tiered-menu/components/tiered-menu-nested/tiered-menu-nested.component.d.ts +7 -4
- package/components/tiered-menu/models/tiered-menu-item-data.d.ts +2 -0
- package/components/tiered-menu/models/tiered-menu-item-internal-data.d.ts +2 -6
- package/components/tiered-menu/{tiered-menu.event.service.d.ts → services/tiered-menu.event.service.d.ts} +1 -8
- package/components/tiered-menu/services/tiered-menu.global.service.d.ts +4 -0
- package/components/tiered-menu/{tiered-menu.service.d.ts → services/tiered-menu.service.d.ts} +5 -3
- package/components/tiered-menu/tiered-menu.directive.d.ts +16 -14
- package/components/timeline/components/horizontal-timeline/horizontal-timeline.component.d.ts +1 -0
- package/components/timeline/components/timeline-icon-item/timeline-icon-item.component.d.ts +1 -0
- package/components/timeline/components/vertical-timeline/components/vertical-items/vertical-items.component.d.ts +1 -0
- package/components/timeline/components/vertical-timeline/vertical-timeline.component.d.ts +1 -0
- package/components/timeline/timeline.component.d.ts +1 -0
- package/esm2015/components/tiered-menu/components/tiered-menu/tiered-menu.component.js +110 -51
- package/esm2015/components/tiered-menu/components/tiered-menu-item/tiered-menu-item.component.js +16 -8
- package/esm2015/components/tiered-menu/components/tiered-menu-nested/tiered-menu-nested.component.js +53 -9
- package/esm2015/components/tiered-menu/models/tiered-menu-item-data.js +1 -1
- package/esm2015/components/tiered-menu/models/tiered-menu-item-internal-data.js +1 -1
- package/esm2015/components/tiered-menu/services/tiered-menu.event.service.js +18 -0
- package/esm2015/components/tiered-menu/services/tiered-menu.global.service.js +9 -0
- package/esm2015/components/tiered-menu/services/tiered-menu.service.js +51 -0
- package/esm2015/components/tiered-menu/tiered-menu.directive.js +103 -109
- package/esm2015/components/tiered-menu/tiered-menu.module.js +8 -12
- package/esm2015/components/timeline/components/horizontal-timeline/horizontal-timeline.component.js +6 -3
- package/esm2015/components/timeline/components/timeline-icon-item/timeline-icon-item.component.js +6 -3
- package/esm2015/components/timeline/components/vertical-timeline/components/vertical-items/vertical-items.component.js +5 -2
- package/esm2015/components/timeline/components/vertical-timeline/vertical-timeline.component.js +5 -2
- package/esm2015/components/timeline/timeline.component.js +6 -2
- package/esm2015/seniorsistemas-angular-components.js +18 -17
- package/esm5/components/tiered-menu/components/tiered-menu/tiered-menu.component.js +110 -51
- package/esm5/components/tiered-menu/components/tiered-menu-item/tiered-menu-item.component.js +16 -8
- package/esm5/components/tiered-menu/components/tiered-menu-nested/tiered-menu-nested.component.js +53 -9
- package/esm5/components/tiered-menu/models/tiered-menu-item-data.js +1 -1
- package/esm5/components/tiered-menu/models/tiered-menu-item-internal-data.js +1 -1
- package/esm5/components/tiered-menu/services/tiered-menu.event.service.js +19 -0
- package/esm5/components/tiered-menu/services/tiered-menu.global.service.js +12 -0
- package/esm5/components/tiered-menu/services/tiered-menu.service.js +54 -0
- package/esm5/components/tiered-menu/tiered-menu.directive.js +103 -110
- package/esm5/components/tiered-menu/tiered-menu.module.js +8 -12
- package/esm5/components/timeline/components/horizontal-timeline/horizontal-timeline.component.js +6 -3
- package/esm5/components/timeline/components/timeline-icon-item/timeline-icon-item.component.js +6 -3
- package/esm5/components/timeline/components/vertical-timeline/components/vertical-items/vertical-items.component.js +5 -2
- package/esm5/components/timeline/components/vertical-timeline/vertical-timeline.component.js +5 -2
- package/esm5/components/timeline/timeline.component.js +6 -2
- package/esm5/seniorsistemas-angular-components.js +18 -17
- package/fesm2015/seniorsistemas-angular-components.js +332 -218
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +336 -222
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +17 -16
- package/seniorsistemas-angular-components.metadata.json +1 -1
- package/esm2015/components/tiered-menu/tiered-menu.event.service.js +0 -39
- package/esm2015/components/tiered-menu/tiered-menu.service.js +0 -39
- package/esm5/components/tiered-menu/tiered-menu.event.service.js +0 -40
- package/esm5/components/tiered-menu/tiered-menu.service.js +0 -44
|
@@ -15973,27 +15973,6 @@ var TieredMenuEventService = /** @class */ (function () {
|
|
|
15973
15973
|
this.closeItemMenuEvent = new EventEmitter();
|
|
15974
15974
|
this.createMenuEvent = new EventEmitter();
|
|
15975
15975
|
}
|
|
15976
|
-
TieredMenuEventService.prototype.emitIncrementCurrentItemEvent = function () {
|
|
15977
|
-
this.incrementCurrentItemEvent.emit();
|
|
15978
|
-
};
|
|
15979
|
-
TieredMenuEventService.prototype.emitDecrementCurrentItemEvent = function () {
|
|
15980
|
-
this.decrementCurrentItemEvent.emit();
|
|
15981
|
-
};
|
|
15982
|
-
TieredMenuEventService.prototype.emitCloseAllMenusEvent = function () {
|
|
15983
|
-
this.closeAllMenusEvent.emit();
|
|
15984
|
-
};
|
|
15985
|
-
TieredMenuEventService.prototype.emitSelectItemEvent = function (item) {
|
|
15986
|
-
this.selectItemEvent.emit(item);
|
|
15987
|
-
};
|
|
15988
|
-
TieredMenuEventService.prototype.emitOpenItemMenuEvent = function (item) {
|
|
15989
|
-
this.openItemMenuEvent.emit(item);
|
|
15990
|
-
};
|
|
15991
|
-
TieredMenuEventService.prototype.emitCloseItemMenuEvent = function (item) {
|
|
15992
|
-
this.closeItemMenuEvent.emit(item);
|
|
15993
|
-
};
|
|
15994
|
-
TieredMenuEventService.prototype.emitCreateMenuEvent = function (item) {
|
|
15995
|
-
this.createMenuEvent.emit(item);
|
|
15996
|
-
};
|
|
15997
15976
|
TieredMenuEventService = __decorate([
|
|
15998
15977
|
Injectable()
|
|
15999
15978
|
], TieredMenuEventService);
|
|
@@ -16002,22 +15981,26 @@ var TieredMenuEventService = /** @class */ (function () {
|
|
|
16002
15981
|
|
|
16003
15982
|
var TieredMenuService = /** @class */ (function () {
|
|
16004
15983
|
function TieredMenuService() {
|
|
15984
|
+
this.currentItems = [];
|
|
15985
|
+
this.items = [];
|
|
16005
15986
|
}
|
|
16006
15987
|
TieredMenuService.prototype.normalizeData = function (items, parent) {
|
|
16007
15988
|
var _this = this;
|
|
16008
15989
|
return items.map(function (i) {
|
|
16009
|
-
|
|
16010
|
-
|
|
15990
|
+
var item = __assign({}, i);
|
|
15991
|
+
if (item.submenu) {
|
|
15992
|
+
item.submenu = _this.normalizeData(item.submenu, item);
|
|
16011
15993
|
}
|
|
16012
|
-
|
|
16013
|
-
|
|
16014
|
-
|
|
16015
|
-
return
|
|
15994
|
+
item.id = _this._generateId();
|
|
15995
|
+
item.parent = parent;
|
|
15996
|
+
item.isOpen = false;
|
|
15997
|
+
return item;
|
|
16016
15998
|
});
|
|
16017
15999
|
};
|
|
16018
16000
|
TieredMenuService.prototype.markAllItemsAsClosed = function (items) {
|
|
16019
16001
|
var _this = this;
|
|
16020
|
-
return items.map(function (
|
|
16002
|
+
return items.map(function (i) {
|
|
16003
|
+
var item = __assign({}, i);
|
|
16021
16004
|
if (item.submenu) {
|
|
16022
16005
|
item.submenu = _this.markAllItemsAsClosed(item.submenu);
|
|
16023
16006
|
}
|
|
@@ -16025,16 +16008,22 @@ var TieredMenuService = /** @class */ (function () {
|
|
|
16025
16008
|
return item;
|
|
16026
16009
|
});
|
|
16027
16010
|
};
|
|
16028
|
-
TieredMenuService.prototype.searchTheHierarchy = function (
|
|
16029
|
-
var
|
|
16030
|
-
while (
|
|
16031
|
-
if (
|
|
16011
|
+
TieredMenuService.prototype.searchTheHierarchy = function (itemA, itemB) {
|
|
16012
|
+
var item = itemB;
|
|
16013
|
+
while (item) {
|
|
16014
|
+
if (item === itemA) {
|
|
16032
16015
|
return true;
|
|
16033
16016
|
}
|
|
16034
|
-
|
|
16017
|
+
item = item.parent;
|
|
16035
16018
|
}
|
|
16036
16019
|
return false;
|
|
16037
16020
|
};
|
|
16021
|
+
TieredMenuService.prototype.cloneItems = function (items) {
|
|
16022
|
+
return JSON.parse(JSON.stringify(items));
|
|
16023
|
+
};
|
|
16024
|
+
TieredMenuService.prototype._generateId = function () {
|
|
16025
|
+
return "id-" + Math.random().toString(36).substring(2, 9) + "-" + Math.random().toString(36).substring(2, 9) + "-" + Math.random().toString(36).substring(2, 9);
|
|
16026
|
+
};
|
|
16038
16027
|
TieredMenuService = __decorate([
|
|
16039
16028
|
Injectable()
|
|
16040
16029
|
], TieredMenuService);
|
|
@@ -16046,9 +16035,44 @@ var TieredMenuNestedComponent = /** @class */ (function () {
|
|
|
16046
16035
|
this.tieredMenuService = tieredMenuService;
|
|
16047
16036
|
this._tieredMenuEventService = _tieredMenuEventService;
|
|
16048
16037
|
this.top = 0;
|
|
16049
|
-
this.
|
|
16038
|
+
this.left = 0;
|
|
16050
16039
|
this._unsubscribe$ = new Subject();
|
|
16051
16040
|
}
|
|
16041
|
+
TieredMenuNestedComponent.prototype.onResize = function () {
|
|
16042
|
+
this._tieredMenuEventService.closeAllMenusEvent.emit();
|
|
16043
|
+
};
|
|
16044
|
+
TieredMenuNestedComponent.prototype.onDocumentClick = function (event) {
|
|
16045
|
+
// Closing menu when clicked outside.
|
|
16046
|
+
var target = event.target;
|
|
16047
|
+
var clickedInside = target.closest("s-tiered-menu-item") || target.closest("s-tiered-menu-divider");
|
|
16048
|
+
if (!clickedInside) {
|
|
16049
|
+
this._tieredMenuEventService.closeAllMenusEvent.emit();
|
|
16050
|
+
}
|
|
16051
|
+
};
|
|
16052
|
+
TieredMenuNestedComponent.prototype.onKeydownHandler = function (event) {
|
|
16053
|
+
switch (event.key) {
|
|
16054
|
+
case "Escape":
|
|
16055
|
+
this._tieredMenuEventService.closeAllMenusEvent.emit();
|
|
16056
|
+
break;
|
|
16057
|
+
case " ":
|
|
16058
|
+
case "Enter":
|
|
16059
|
+
this._tieredMenuEventService.selectItemEvent.emit(this.tieredMenuService.currentItem);
|
|
16060
|
+
break;
|
|
16061
|
+
case "ArrowLeft":
|
|
16062
|
+
// When nested I need a reference to the current item's parent item, otherwise just the current item.
|
|
16063
|
+
this._tieredMenuEventService.closeItemMenuEvent.emit(this.tieredMenuService.currentItem.parent);
|
|
16064
|
+
break;
|
|
16065
|
+
case "ArrowRight":
|
|
16066
|
+
this._tieredMenuEventService.openItemMenuEvent.emit(this.tieredMenuService.currentItem);
|
|
16067
|
+
break;
|
|
16068
|
+
case "ArrowUp":
|
|
16069
|
+
this._tieredMenuEventService.decrementCurrentItemEvent.emit();
|
|
16070
|
+
break;
|
|
16071
|
+
case "ArrowDown":
|
|
16072
|
+
this._tieredMenuEventService.incrementCurrentItemEvent.emit();
|
|
16073
|
+
break;
|
|
16074
|
+
}
|
|
16075
|
+
};
|
|
16052
16076
|
TieredMenuNestedComponent.prototype.ngOnInit = function () {
|
|
16053
16077
|
this.tieredMenuService.currentItems = this.items;
|
|
16054
16078
|
this._subscribeEvents();
|
|
@@ -16129,7 +16153,7 @@ var TieredMenuNestedComponent = /** @class */ (function () {
|
|
|
16129
16153
|
if (item.command) {
|
|
16130
16154
|
item.command();
|
|
16131
16155
|
// Close all menus after the item was selected.
|
|
16132
|
-
_this._tieredMenuEventService.
|
|
16156
|
+
_this._tieredMenuEventService.closeAllMenusEvent.emit();
|
|
16133
16157
|
}
|
|
16134
16158
|
});
|
|
16135
16159
|
this._tieredMenuEventService.openItemMenuEvent
|
|
@@ -16141,7 +16165,7 @@ var TieredMenuNestedComponent = /** @class */ (function () {
|
|
|
16141
16165
|
while ((_a = itemAux === null || itemAux === void 0 ? void 0 : itemAux.parent) === null || _a === void 0 ? void 0 : _a.parent) {
|
|
16142
16166
|
itemAux = itemAux.parent;
|
|
16143
16167
|
}
|
|
16144
|
-
_this._tieredMenuEventService.
|
|
16168
|
+
_this._tieredMenuEventService.closeItemMenuEvent.emit((_b = itemAux.parent) !== null && _b !== void 0 ? _b : itemAux);
|
|
16145
16169
|
}
|
|
16146
16170
|
_this._lastOpenItem = item;
|
|
16147
16171
|
_this._openItem(item);
|
|
@@ -16158,20 +16182,30 @@ var TieredMenuNestedComponent = /** @class */ (function () {
|
|
|
16158
16182
|
{ type: TieredMenuService },
|
|
16159
16183
|
{ type: TieredMenuEventService }
|
|
16160
16184
|
]; };
|
|
16185
|
+
__decorate([
|
|
16186
|
+
HostListener("window:resize")
|
|
16187
|
+
], TieredMenuNestedComponent.prototype, "onResize", null);
|
|
16188
|
+
__decorate([
|
|
16189
|
+
HostListener("document:click", ["$event"])
|
|
16190
|
+
], TieredMenuNestedComponent.prototype, "onDocumentClick", null);
|
|
16191
|
+
__decorate([
|
|
16192
|
+
HostListener("document:keydown", ["$event"])
|
|
16193
|
+
], TieredMenuNestedComponent.prototype, "onKeydownHandler", null);
|
|
16161
16194
|
TieredMenuNestedComponent = __decorate([
|
|
16162
16195
|
Component({
|
|
16163
|
-
template: "<div\n class=\"menu menu--nested\"\n [ngStyle]=\"{\n 'top': top + 'px',\n '
|
|
16164
|
-
styles: [".menu{background-color:#fff;border:1px solid #ccc;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;min-width:176px;padding:4px 0;position:
|
|
16196
|
+
template: "<div\n class=\"menu menu--nested\"\n [ngStyle]=\"{\n 'top': top + 'px',\n 'left': left + 'px'\n }\">\n <ng-container *ngTemplateOutlet=\"itemsTemplate; context: { $implicit: items }\"></ng-container>\n</div>\n\n<ng-template #itemsTemplate let-items>\n <div *ngFor=\"let item of items\">\n <s-tiered-menu-item\n *ngIf=\"!item.divider\"\n [item]=\"item\"\n [focused]=\"item === tieredMenuService.currentItem\"\n [closeOnClick]=\"true\">\n </s-tiered-menu-item>\n\n <s-tiered-menu-divider *ngIf=\"item.divider\"></s-tiered-menu-divider>\n\n <div *ngIf=\"item.submenu && item.isOpen\">\n <div class=\"submenu\">\n <ng-container *ngTemplateOutlet=\"itemsTemplate; context: { $implicit: item.submenu }\"></ng-container>\n </div>\n </div>\n </div>\n</ng-template>\n",
|
|
16197
|
+
styles: [".menu{background-color:#fff;border:1px solid #ccc;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;min-width:176px;padding:4px 0;position:absolute;z-index:9999;overflow:auto;width:calc(100vw - 8px)}.menu .submenu{margin-left:24px}"]
|
|
16165
16198
|
})
|
|
16166
16199
|
], TieredMenuNestedComponent);
|
|
16167
16200
|
return TieredMenuNestedComponent;
|
|
16168
16201
|
}());
|
|
16169
16202
|
|
|
16170
16203
|
var TieredMenuComponent = /** @class */ (function () {
|
|
16171
|
-
function TieredMenuComponent(_appRef, _componentFactoryResolver, _injector, tieredMenuService, _tieredMenuEventService) {
|
|
16204
|
+
function TieredMenuComponent(_appRef, _componentFactoryResolver, _injector, _changeDetectorRef, tieredMenuService, _tieredMenuEventService) {
|
|
16172
16205
|
this._appRef = _appRef;
|
|
16173
16206
|
this._componentFactoryResolver = _componentFactoryResolver;
|
|
16174
16207
|
this._injector = _injector;
|
|
16208
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
16175
16209
|
this.tieredMenuService = tieredMenuService;
|
|
16176
16210
|
this._tieredMenuEventService = _tieredMenuEventService;
|
|
16177
16211
|
this.top = 0;
|
|
@@ -16182,6 +16216,54 @@ var TieredMenuComponent = /** @class */ (function () {
|
|
|
16182
16216
|
this.destroyRequest = new EventEmitter();
|
|
16183
16217
|
}
|
|
16184
16218
|
TieredMenuComponent_1 = TieredMenuComponent;
|
|
16219
|
+
TieredMenuComponent.prototype.onResize = function () {
|
|
16220
|
+
this._tieredMenuEventService.closeAllMenusEvent.emit();
|
|
16221
|
+
};
|
|
16222
|
+
TieredMenuComponent.prototype.onDocumentClick = function (event) {
|
|
16223
|
+
// Closing menu when clicked outside.
|
|
16224
|
+
var target = event.target;
|
|
16225
|
+
var clickedInside = target.closest("s-tiered-menu-item") || target.closest("s-tiered-menu-divider");
|
|
16226
|
+
if (!clickedInside) {
|
|
16227
|
+
this._tieredMenuEventService.closeAllMenusEvent.emit();
|
|
16228
|
+
}
|
|
16229
|
+
};
|
|
16230
|
+
TieredMenuComponent.prototype.onKeydownHandler = function (event) {
|
|
16231
|
+
switch (event.key) {
|
|
16232
|
+
case "Escape":
|
|
16233
|
+
this._tieredMenuEventService.closeAllMenusEvent.emit();
|
|
16234
|
+
break;
|
|
16235
|
+
case " ":
|
|
16236
|
+
case "Enter":
|
|
16237
|
+
if (!this.tieredMenuService.currentItem.disabled) {
|
|
16238
|
+
this._tieredMenuEventService.selectItemEvent.emit(this.tieredMenuService.currentItem);
|
|
16239
|
+
}
|
|
16240
|
+
break;
|
|
16241
|
+
case "ArrowLeft":
|
|
16242
|
+
if (this.items.includes(this.tieredMenuService.currentItem)) {
|
|
16243
|
+
this._tieredMenuEventService.closeItemMenuEvent.emit(this.tieredMenuService.currentItem);
|
|
16244
|
+
this._changeDetectorRef.detectChanges();
|
|
16245
|
+
}
|
|
16246
|
+
break;
|
|
16247
|
+
case "ArrowRight":
|
|
16248
|
+
if (!this.tieredMenuService.currentItem.disabled && this.items.includes(this.tieredMenuService.currentItem)) {
|
|
16249
|
+
this._tieredMenuEventService.openItemMenuEvent.emit(this.tieredMenuService.currentItem);
|
|
16250
|
+
event.stopImmediatePropagation();
|
|
16251
|
+
}
|
|
16252
|
+
break;
|
|
16253
|
+
case "ArrowUp":
|
|
16254
|
+
if (!this.tieredMenuService.currentItem || this.items.includes(this.tieredMenuService.currentItem)) {
|
|
16255
|
+
this._tieredMenuEventService.decrementCurrentItemEvent.emit();
|
|
16256
|
+
event.stopImmediatePropagation();
|
|
16257
|
+
}
|
|
16258
|
+
break;
|
|
16259
|
+
case "ArrowDown":
|
|
16260
|
+
if (!this.tieredMenuService.currentItem || this.items.includes(this.tieredMenuService.currentItem)) {
|
|
16261
|
+
this._tieredMenuEventService.incrementCurrentItemEvent.emit();
|
|
16262
|
+
event.stopImmediatePropagation();
|
|
16263
|
+
}
|
|
16264
|
+
break;
|
|
16265
|
+
}
|
|
16266
|
+
};
|
|
16185
16267
|
TieredMenuComponent.prototype.ngOnInit = function () {
|
|
16186
16268
|
this.tieredMenuService.currentItems = this.items;
|
|
16187
16269
|
this._subscribeEvents();
|
|
@@ -16241,8 +16323,7 @@ var TieredMenuComponent = /** @class */ (function () {
|
|
|
16241
16323
|
// Setting the menu items.
|
|
16242
16324
|
this._componentRef.instance.items = items;
|
|
16243
16325
|
// Subscribe menu events.
|
|
16244
|
-
this._componentRef.instance.destroyRequest
|
|
16245
|
-
.subscribe(function (propagate) {
|
|
16326
|
+
this._componentRef.instance.destroyRequest.subscribe(function (propagate) {
|
|
16246
16327
|
_this._destroy(propagate);
|
|
16247
16328
|
});
|
|
16248
16329
|
this._menuDivElement = domElem.querySelector(".menu");
|
|
@@ -16262,14 +16343,23 @@ var TieredMenuComponent = /** @class */ (function () {
|
|
|
16262
16343
|
}
|
|
16263
16344
|
};
|
|
16264
16345
|
TieredMenuComponent.prototype._setMenuPosition = function (position) {
|
|
16265
|
-
var _a;
|
|
16346
|
+
var _a, _b;
|
|
16347
|
+
var ITEM_HEIGHT = 37;
|
|
16348
|
+
var DIVIDER_HEIGHT = 5;
|
|
16349
|
+
var PADDING = 8;
|
|
16266
16350
|
if (this._componentRef !== null) {
|
|
16267
16351
|
var top_1 = position.top, right = position.right, bottom = position.bottom, left = position.left;
|
|
16352
|
+
var itemsCount = (_a = this._componentRef.instance.items) === null || _a === void 0 ? void 0 : _a.reduce(function (count, item) {
|
|
16353
|
+
return !item.divider ? count + 1 : count;
|
|
16354
|
+
}, 0);
|
|
16355
|
+
var dividersCount = (_b = this._componentRef.instance.items) === null || _b === void 0 ? void 0 : _b.reduce(function (count, item) {
|
|
16356
|
+
return item.divider ? count + 1 : count;
|
|
16357
|
+
}, 0);
|
|
16268
16358
|
// I need to calculate the height of the component because the internal elements have not been created yet.
|
|
16269
|
-
var menuHeight =
|
|
16359
|
+
var menuHeight = itemsCount * ITEM_HEIGHT + dividersCount * DIVIDER_HEIGHT + PADDING + 8;
|
|
16270
16360
|
var menuWidth = this._menuDivElement.getBoundingClientRect().width;
|
|
16271
|
-
var rightFreeSpace =
|
|
16272
|
-
var bottomFreeSpace =
|
|
16361
|
+
var rightFreeSpace = window.innerWidth - right;
|
|
16362
|
+
var bottomFreeSpace = window.innerHeight - bottom;
|
|
16273
16363
|
if (rightFreeSpace > menuWidth) {
|
|
16274
16364
|
this._componentRef.instance.left = right;
|
|
16275
16365
|
}
|
|
@@ -16277,85 +16367,77 @@ var TieredMenuComponent = /** @class */ (function () {
|
|
|
16277
16367
|
this._componentRef.instance.left = left - menuWidth;
|
|
16278
16368
|
}
|
|
16279
16369
|
if (bottomFreeSpace <= menuHeight) {
|
|
16280
|
-
this._componentRef.instance.top =
|
|
16370
|
+
this._componentRef.instance.top = Math.max(window.innerHeight - menuHeight, window.scrollY);
|
|
16281
16371
|
}
|
|
16282
16372
|
else {
|
|
16283
|
-
this._componentRef.instance.top = top_1;
|
|
16373
|
+
this._componentRef.instance.top = window.scrollY + top_1;
|
|
16284
16374
|
}
|
|
16285
16375
|
}
|
|
16286
16376
|
};
|
|
16287
16377
|
TieredMenuComponent.prototype._subscribeEvents = function () {
|
|
16288
16378
|
var _this = this;
|
|
16289
16379
|
// Increment current item event.
|
|
16290
|
-
this._tieredMenuEventService.incrementCurrentItemEvent
|
|
16291
|
-
.pipe(takeUntil(this._unsubscribe$))
|
|
16292
|
-
.subscribe(function () {
|
|
16380
|
+
this._tieredMenuEventService.incrementCurrentItemEvent.pipe(takeUntil(this._unsubscribe$)).subscribe(function () {
|
|
16293
16381
|
_this._incrementCurItem();
|
|
16294
16382
|
});
|
|
16295
16383
|
// Decrement current item event.
|
|
16296
|
-
this._tieredMenuEventService.decrementCurrentItemEvent
|
|
16297
|
-
.pipe(takeUntil(this._unsubscribe$))
|
|
16298
|
-
.subscribe(function () {
|
|
16384
|
+
this._tieredMenuEventService.decrementCurrentItemEvent.pipe(takeUntil(this._unsubscribe$)).subscribe(function () {
|
|
16299
16385
|
_this._decrementCurItem();
|
|
16300
16386
|
});
|
|
16301
16387
|
// Select item event.
|
|
16302
|
-
this._tieredMenuEventService.selectItemEvent
|
|
16303
|
-
.pipe(takeUntil(this._unsubscribe$))
|
|
16304
|
-
.subscribe(function (item) {
|
|
16388
|
+
this._tieredMenuEventService.selectItemEvent.pipe(takeUntil(this._unsubscribe$)).subscribe(function (item) {
|
|
16305
16389
|
if (item.submenu) {
|
|
16306
|
-
_this._tieredMenuEventService.
|
|
16390
|
+
_this._tieredMenuEventService.openItemMenuEvent.emit(item);
|
|
16307
16391
|
}
|
|
16308
16392
|
else if (item.command) {
|
|
16309
|
-
_this._tieredMenuEventService.
|
|
16393
|
+
_this._tieredMenuEventService.closeAllMenusEvent.emit();
|
|
16310
16394
|
item.command();
|
|
16311
16395
|
}
|
|
16312
16396
|
});
|
|
16313
16397
|
// Close all menus event.
|
|
16314
|
-
this._tieredMenuEventService.closeAllMenusEvent
|
|
16315
|
-
.pipe(takeUntil(this._unsubscribe$))
|
|
16316
|
-
.subscribe(function () {
|
|
16398
|
+
this._tieredMenuEventService.closeAllMenusEvent.pipe(takeUntil(this._unsubscribe$)).subscribe(function () {
|
|
16317
16399
|
_this._destroy();
|
|
16318
16400
|
_this.tieredMenuService.currentItem = null;
|
|
16319
16401
|
_this.tieredMenuService.currentItems = _this.tieredMenuService.items;
|
|
16402
|
+
_this.tieredMenuService.markAllItemsAsClosed(_this.tieredMenuService.items);
|
|
16320
16403
|
});
|
|
16321
16404
|
// Open item menu event.
|
|
16322
|
-
this._tieredMenuEventService.openItemMenuEvent
|
|
16323
|
-
.pipe(takeUntil(this._unsubscribe$))
|
|
16324
|
-
.subscribe(function (item) {
|
|
16325
|
-
item.isOpen = false;
|
|
16405
|
+
this._tieredMenuEventService.openItemMenuEvent.pipe(takeUntil(this._unsubscribe$)).subscribe(function (item) {
|
|
16326
16406
|
if (_this.tieredMenuService.currentItem) {
|
|
16327
16407
|
if (_this.tieredMenuService.currentItem.parent === item) {
|
|
16328
16408
|
return;
|
|
16329
16409
|
}
|
|
16330
16410
|
if (!_this.tieredMenuService.searchTheHierarchy(_this.tieredMenuService.currentItem.parent, item)) {
|
|
16331
|
-
var
|
|
16332
|
-
|
|
16333
|
-
|
|
16334
|
-
|
|
16411
|
+
var current = _this.tieredMenuService.currentItem;
|
|
16412
|
+
current.isOpen = false;
|
|
16413
|
+
while ((current === null || current === void 0 ? void 0 : current.parent) !== item.parent) {
|
|
16414
|
+
_this._tieredMenuEventService.closeItemMenuEvent.emit(current);
|
|
16415
|
+
_this._changeDetectorRef.detectChanges();
|
|
16416
|
+
current = current.parent;
|
|
16335
16417
|
}
|
|
16336
|
-
|
|
16337
|
-
|
|
16338
|
-
if (item.submenu) {
|
|
16339
|
-
if (!item.isOpen) {
|
|
16340
|
-
var _a = document
|
|
16341
|
-
.querySelector("#" + item.id)
|
|
16342
|
-
.getBoundingClientRect(), top_2 = _a.top, right = _a.right, left = _a.left, bottom = _a.bottom;
|
|
16343
|
-
var position = { top: top_2, right: right, left: left, bottom: bottom };
|
|
16344
|
-
if (_this.items.includes(item)) {
|
|
16345
|
-
_this._createMenu(item.submenu, position);
|
|
16346
|
-
_this.tieredMenuService.currentItems = item.submenu;
|
|
16347
|
-
_this.tieredMenuService.currentItem = item.submenu[0];
|
|
16418
|
+
if (current) {
|
|
16419
|
+
current.isOpen = false;
|
|
16348
16420
|
}
|
|
16349
16421
|
}
|
|
16350
16422
|
}
|
|
16423
|
+
if (item.submenu && !item.isOpen && _this.items.includes(item)) {
|
|
16424
|
+
var _a = document.querySelector("#" + item.id).getBoundingClientRect(), top_2 = _a.top, right = _a.right, left = _a.left, bottom = _a.bottom;
|
|
16425
|
+
var position = { top: top_2, right: right, left: left, bottom: bottom };
|
|
16426
|
+
_this._createMenu(item.submenu, position);
|
|
16427
|
+
_this.tieredMenuService.currentItems = item.submenu;
|
|
16428
|
+
_this.tieredMenuService.currentItem = item.submenu[0];
|
|
16429
|
+
item.isOpen = true;
|
|
16430
|
+
}
|
|
16351
16431
|
});
|
|
16352
16432
|
// Close item menu event.
|
|
16353
16433
|
this._tieredMenuEventService.closeItemMenuEvent
|
|
16354
16434
|
.pipe(takeUntil(this._unsubscribe$))
|
|
16355
16435
|
.subscribe(function (item) {
|
|
16356
16436
|
var _a, _b;
|
|
16357
|
-
if (_this.items.
|
|
16358
|
-
item.
|
|
16437
|
+
if (_this.items.some(function (i) { return i.id === item.id; })) {
|
|
16438
|
+
if (item.parent) {
|
|
16439
|
+
item.parent.isOpen = false;
|
|
16440
|
+
}
|
|
16359
16441
|
_this.tieredMenuService.currentItems = ((_b = (_a = item === null || item === void 0 ? void 0 : item.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.submenu) || _this.tieredMenuService.items;
|
|
16360
16442
|
_this.tieredMenuService.currentItem = item.parent;
|
|
16361
16443
|
_this.destroyRequest.emit(false);
|
|
@@ -16367,108 +16449,106 @@ var TieredMenuComponent = /** @class */ (function () {
|
|
|
16367
16449
|
{ type: ApplicationRef },
|
|
16368
16450
|
{ type: ComponentFactoryResolver },
|
|
16369
16451
|
{ type: Injector },
|
|
16452
|
+
{ type: ChangeDetectorRef },
|
|
16370
16453
|
{ type: TieredMenuService },
|
|
16371
16454
|
{ type: TieredMenuEventService }
|
|
16372
16455
|
]; };
|
|
16373
16456
|
__decorate([
|
|
16374
16457
|
Output()
|
|
16375
16458
|
], TieredMenuComponent.prototype, "destroyRequest", void 0);
|
|
16459
|
+
__decorate([
|
|
16460
|
+
HostListener("window:resize")
|
|
16461
|
+
], TieredMenuComponent.prototype, "onResize", null);
|
|
16462
|
+
__decorate([
|
|
16463
|
+
HostListener("document:click", ["$event"])
|
|
16464
|
+
], TieredMenuComponent.prototype, "onDocumentClick", null);
|
|
16465
|
+
__decorate([
|
|
16466
|
+
HostListener("document:keydown", ["$event"])
|
|
16467
|
+
], TieredMenuComponent.prototype, "onKeydownHandler", null);
|
|
16376
16468
|
TieredMenuComponent = TieredMenuComponent_1 = __decorate([
|
|
16377
16469
|
Component({
|
|
16378
16470
|
selector: "s-tiered-menu",
|
|
16379
|
-
template: "<div
|
|
16380
|
-
styles: [".menu{background-color:#fff;border:1px solid #ccc;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;min-width:176px;padding:4px 0;position:
|
|
16471
|
+
template: "<div\n class=\"menu\"\n [ngStyle]=\"{\n 'left': left + 'px',\n 'top': top + 'px'\n }\">\n\n <div *ngFor=\"let item of items\">\n <s-tiered-menu-item\n *ngIf=\"!item.divider\"\n [item]=\"item\"\n [focused]=\"item === tieredMenuService.currentItem\"\n [highlight]=\"item.isOpen\"\n triggerEvent=\"hover\"\n [closeOnClick]=\"false\">\n </s-tiered-menu-item>\n <s-tiered-menu-divider *ngIf=\"item.divider\"></s-tiered-menu-divider>\n </div>\n</div>",
|
|
16472
|
+
styles: [".menu{background-color:#fff;border:1px solid #ccc;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;max-height:100vh;min-width:176px;padding:4px 0;overflow-y:auto;position:absolute;z-index:9999}"]
|
|
16381
16473
|
})
|
|
16382
16474
|
], TieredMenuComponent);
|
|
16383
16475
|
return TieredMenuComponent;
|
|
16384
16476
|
}());
|
|
16385
16477
|
|
|
16478
|
+
var TieredMenuGlobalService = /** @class */ (function () {
|
|
16479
|
+
function TieredMenuGlobalService() {
|
|
16480
|
+
}
|
|
16481
|
+
TieredMenuGlobalService = __decorate([
|
|
16482
|
+
Injectable()
|
|
16483
|
+
], TieredMenuGlobalService);
|
|
16484
|
+
return TieredMenuGlobalService;
|
|
16485
|
+
}());
|
|
16486
|
+
|
|
16386
16487
|
var TieredMenuDirective = /** @class */ (function () {
|
|
16387
|
-
function TieredMenuDirective(_elementRef, _appRef, _componentFactoryResolver, _injector, _tieredMenuEventService, _tieredMenuService) {
|
|
16488
|
+
function TieredMenuDirective(_elementRef, _appRef, _componentFactoryResolver, _injector, _tieredMenuEventService, _tieredMenuService, _tieredMenuGlobalService, _changeDetectorRef) {
|
|
16388
16489
|
this._elementRef = _elementRef;
|
|
16389
16490
|
this._appRef = _appRef;
|
|
16390
16491
|
this._componentFactoryResolver = _componentFactoryResolver;
|
|
16391
16492
|
this._injector = _injector;
|
|
16392
16493
|
this._tieredMenuEventService = _tieredMenuEventService;
|
|
16393
16494
|
this._tieredMenuService = _tieredMenuService;
|
|
16495
|
+
this._tieredMenuGlobalService = _tieredMenuGlobalService;
|
|
16496
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
16497
|
+
this.items = [];
|
|
16498
|
+
this.triggerEvent = "click";
|
|
16394
16499
|
this._componentRef = null;
|
|
16395
16500
|
this._isNested = false;
|
|
16396
16501
|
this._isOpen = false;
|
|
16397
16502
|
this._unsubscribe$ = new Subject();
|
|
16398
|
-
this.alwaysOpen = false;
|
|
16399
|
-
this.triggerEvent = "click";
|
|
16400
16503
|
}
|
|
16504
|
+
TieredMenuDirective.prototype.onClick = function (event) {
|
|
16505
|
+
var _a;
|
|
16506
|
+
if (this.triggerEvent === "click" && ((_a = this._tieredMenuService.items) === null || _a === void 0 ? void 0 : _a.length) > 0 && !this._isOpen) {
|
|
16507
|
+
this._lastActiveElement = document.activeElement;
|
|
16508
|
+
this._createMenu();
|
|
16509
|
+
event.preventDefault();
|
|
16510
|
+
event.stopPropagation();
|
|
16511
|
+
}
|
|
16512
|
+
};
|
|
16401
16513
|
TieredMenuDirective.prototype.ngOnInit = function () {
|
|
16402
|
-
this.
|
|
16403
|
-
this._tieredMenuService.currentItems = this._tieredMenuService.items;
|
|
16404
|
-
this._tieredMenuService.currentItem = this._tieredMenuService.items[0];
|
|
16514
|
+
this._updateServiceItems();
|
|
16405
16515
|
this._subscribeEvents();
|
|
16406
16516
|
};
|
|
16407
|
-
TieredMenuDirective.prototype.
|
|
16408
|
-
|
|
16409
|
-
|
|
16410
|
-
|
|
16411
|
-
|
|
16412
|
-
|
|
16413
|
-
|
|
16517
|
+
TieredMenuDirective.prototype.ngDoCheck = function () {
|
|
16518
|
+
if (!this.previousItems) {
|
|
16519
|
+
this.previousItems = this._tieredMenuService.cloneItems(this.items);
|
|
16520
|
+
}
|
|
16521
|
+
;
|
|
16522
|
+
var hasChanges = false;
|
|
16523
|
+
if (this.items.length !== this.previousItems.length) {
|
|
16524
|
+
hasChanges = true;
|
|
16525
|
+
}
|
|
16526
|
+
else {
|
|
16527
|
+
for (var i = 0; i < this.items.length; i++) {
|
|
16528
|
+
if (!this._compareItems(this.items[i], this.previousItems[i])) {
|
|
16529
|
+
hasChanges = true;
|
|
16530
|
+
break;
|
|
16531
|
+
}
|
|
16532
|
+
}
|
|
16414
16533
|
}
|
|
16534
|
+
if (hasChanges) {
|
|
16535
|
+
this._updateServiceItems();
|
|
16536
|
+
this._changeDetectorRef.detectChanges();
|
|
16537
|
+
this._rebuildMenu();
|
|
16538
|
+
}
|
|
16539
|
+
this.previousItems = this._tieredMenuService.cloneItems(this.items);
|
|
16415
16540
|
};
|
|
16416
16541
|
TieredMenuDirective.prototype.ngOnDestroy = function () {
|
|
16417
16542
|
this._unsubscribe$.next();
|
|
16418
16543
|
this._unsubscribe$.complete();
|
|
16419
16544
|
this._destroy();
|
|
16420
16545
|
};
|
|
16421
|
-
TieredMenuDirective.prototype.onResize = function () {
|
|
16422
|
-
if (!this.alwaysOpen) {
|
|
16423
|
-
this._tieredMenuEventService.emitCloseAllMenusEvent();
|
|
16424
|
-
}
|
|
16425
|
-
};
|
|
16426
|
-
TieredMenuDirective.prototype.onKeydownHandler = function (event) {
|
|
16427
|
-
if (!this._isOpen)
|
|
16428
|
-
return;
|
|
16429
|
-
switch (event.key) {
|
|
16430
|
-
case "Escape":
|
|
16431
|
-
this._tieredMenuEventService.emitCloseAllMenusEvent();
|
|
16432
|
-
break;
|
|
16433
|
-
case " ":
|
|
16434
|
-
case "Enter":
|
|
16435
|
-
this._tieredMenuEventService.emitSelectItemEvent(this._tieredMenuService.currentItem);
|
|
16436
|
-
break;
|
|
16437
|
-
case "ArrowLeft":
|
|
16438
|
-
// When nested I need a reference to the current item's parent item, otherwise just the current item.
|
|
16439
|
-
this._tieredMenuEventService.emitCloseItemMenuEvent(this._isNested ? this._tieredMenuService.currentItem.parent : this._tieredMenuService.currentItem);
|
|
16440
|
-
break;
|
|
16441
|
-
case "ArrowRight":
|
|
16442
|
-
this._tieredMenuEventService.emitOpenItemMenuEvent(this._tieredMenuService.currentItem);
|
|
16443
|
-
break;
|
|
16444
|
-
case "ArrowUp":
|
|
16445
|
-
this._tieredMenuEventService.emitDecrementCurrentItemEvent();
|
|
16446
|
-
break;
|
|
16447
|
-
case "ArrowDown":
|
|
16448
|
-
this._tieredMenuEventService.emitIncrementCurrentItemEvent();
|
|
16449
|
-
break;
|
|
16450
|
-
}
|
|
16451
|
-
};
|
|
16452
|
-
TieredMenuDirective.prototype.onClick = function (event) {
|
|
16453
|
-
if (this.triggerEvent === "click" && this.items && this.items && !this._isOpen) {
|
|
16454
|
-
this._lastActiveElement = document.activeElement;
|
|
16455
|
-
this._createMenu();
|
|
16456
|
-
event.preventDefault();
|
|
16457
|
-
event.stopPropagation();
|
|
16458
|
-
}
|
|
16459
|
-
};
|
|
16460
|
-
TieredMenuDirective.prototype.onDocumentClick = function (event) {
|
|
16461
|
-
// Closing menu when clicked outside.
|
|
16462
|
-
var target = event.target;
|
|
16463
|
-
var clickedInside = target.closest("s-tiered-menu-item") || target.closest("s-tiered-menu-divider");
|
|
16464
|
-
if (!clickedInside) {
|
|
16465
|
-
this._tieredMenuEventService.emitCloseAllMenusEvent();
|
|
16466
|
-
}
|
|
16467
|
-
};
|
|
16468
16546
|
TieredMenuDirective.prototype._createMenu = function () {
|
|
16469
|
-
var _a;
|
|
16470
|
-
if (!this._componentRef && this.items) {
|
|
16471
|
-
(
|
|
16547
|
+
var _a, _b, _c;
|
|
16548
|
+
if (!this._componentRef && ((_a = this._tieredMenuService.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
16549
|
+
(_b = this._tieredMenuGlobalService.lastInstance) === null || _b === void 0 ? void 0 : _b._destroy();
|
|
16550
|
+
this._tieredMenuGlobalService.lastInstance = this;
|
|
16551
|
+
(_c = this._lastActiveElement) === null || _c === void 0 ? void 0 : _c.blur();
|
|
16472
16552
|
this._isOpen = true;
|
|
16473
16553
|
this._isNested = document.body.clientWidth < 600;
|
|
16474
16554
|
this._isNested ? this._createNestedMenu() : this._createTieredMenu();
|
|
@@ -16476,145 +16556,176 @@ var TieredMenuDirective = /** @class */ (function () {
|
|
|
16476
16556
|
};
|
|
16477
16557
|
TieredMenuDirective.prototype._createTieredMenu = function () {
|
|
16478
16558
|
var _this = this;
|
|
16479
|
-
|
|
16559
|
+
var _a;
|
|
16560
|
+
if (!this._componentRef && ((_a = this._tieredMenuService.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
16480
16561
|
var componentFactory = this._componentFactoryResolver.resolveComponentFactory(TieredMenuComponent);
|
|
16481
16562
|
this._componentRef = componentFactory.create(this._injector);
|
|
16482
16563
|
this._appRef.attachView(this._componentRef.hostView);
|
|
16483
16564
|
var domElem = this._componentRef.hostView.rootNodes[0];
|
|
16484
16565
|
document.body.appendChild(domElem);
|
|
16485
16566
|
this._setMenuComponentProperties();
|
|
16486
|
-
this._componentRef.instance.destroyRequest
|
|
16487
|
-
.pipe(takeUntil(this._unsubscribe$))
|
|
16488
|
-
.subscribe(function () {
|
|
16567
|
+
this._componentRef.instance.destroyRequest.pipe(takeUntil(this._unsubscribe$)).subscribe(function () {
|
|
16489
16568
|
_this._destroy();
|
|
16490
16569
|
});
|
|
16491
|
-
this._menuDivElement = domElem.querySelector(".menu");
|
|
16492
16570
|
this._setMenuPosition();
|
|
16493
16571
|
}
|
|
16494
16572
|
};
|
|
16495
16573
|
TieredMenuDirective.prototype._createNestedMenu = function () {
|
|
16496
|
-
|
|
16574
|
+
var _a;
|
|
16575
|
+
if (!this._componentRef && ((_a = this._tieredMenuService.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
16497
16576
|
var componentFactory = this._componentFactoryResolver.resolveComponentFactory(TieredMenuNestedComponent);
|
|
16498
16577
|
this._componentRef = componentFactory.create(this._injector);
|
|
16499
16578
|
this._appRef.attachView(this._componentRef.hostView);
|
|
16500
16579
|
var domElem = this._componentRef.hostView.rootNodes[0];
|
|
16501
16580
|
document.body.appendChild(domElem);
|
|
16502
16581
|
this._setMenuComponentProperties();
|
|
16503
|
-
this._menuDivElement = domElem.querySelector(".menu");
|
|
16504
16582
|
this._setMenuPosition();
|
|
16505
16583
|
}
|
|
16506
16584
|
};
|
|
16507
16585
|
TieredMenuDirective.prototype._destroy = function () {
|
|
16508
|
-
|
|
16509
|
-
if (this._componentRef !== null && !this.alwaysOpen) {
|
|
16586
|
+
if (this._componentRef) {
|
|
16510
16587
|
this._isOpen = false;
|
|
16511
16588
|
window.clearTimeout(this._showTimeout);
|
|
16512
16589
|
this._appRef.detachView(this._componentRef.hostView);
|
|
16513
16590
|
this._componentRef.destroy();
|
|
16514
16591
|
this._componentRef = null;
|
|
16515
|
-
this._menuDivElement = null;
|
|
16516
|
-
(_a = this._lastActiveElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
16517
16592
|
this._tieredMenuService.currentItems = this._tieredMenuService.items;
|
|
16518
16593
|
this._tieredMenuService.currentItem = this._tieredMenuService.items[0];
|
|
16594
|
+
this._tieredMenuEventService.closeAllMenusEvent.emit();
|
|
16519
16595
|
}
|
|
16520
16596
|
};
|
|
16521
16597
|
TieredMenuDirective.prototype._setMenuPosition = function () {
|
|
16598
|
+
var _a, _b;
|
|
16599
|
+
var ITEM_HEIGHT = 37;
|
|
16600
|
+
var ITEM_WIDTH = 176;
|
|
16601
|
+
var DIVIDER_HEIGHT = 5;
|
|
16602
|
+
var PADDING = 8;
|
|
16603
|
+
var MARGIN = 4;
|
|
16522
16604
|
if (this._componentRef !== null) {
|
|
16523
|
-
|
|
16524
|
-
var
|
|
16525
|
-
var
|
|
16526
|
-
|
|
16527
|
-
|
|
16528
|
-
|
|
16529
|
-
|
|
16530
|
-
|
|
16531
|
-
|
|
16532
|
-
|
|
16533
|
-
|
|
16534
|
-
|
|
16605
|
+
this._componentRef.instance.top = 8;
|
|
16606
|
+
var _c = this._elementRef.nativeElement.getBoundingClientRect(), bottom = _c.bottom, left = _c.left, right = _c.right;
|
|
16607
|
+
var itemsCount = (_a = this._componentRef.instance.items) === null || _a === void 0 ? void 0 : _a.reduce(function (count, item) {
|
|
16608
|
+
return !item.divider ? count + 1 : count;
|
|
16609
|
+
}, 0);
|
|
16610
|
+
var dividersCount = (_b = this._componentRef.instance.items) === null || _b === void 0 ? void 0 : _b.reduce(function (count, item) {
|
|
16611
|
+
return item.divider ? count + 1 : count;
|
|
16612
|
+
}, 0);
|
|
16613
|
+
var menuHeight = itemsCount * ITEM_HEIGHT + dividersCount * DIVIDER_HEIGHT + PADDING + MARGIN;
|
|
16614
|
+
var rightFreeSpace = window.innerWidth - right;
|
|
16615
|
+
var bottomFreeSpace = window.innerHeight - bottom;
|
|
16616
|
+
this._componentRef.instance.top = bottom;
|
|
16617
|
+
this._componentRef.instance.left = left;
|
|
16618
|
+
if (bottomFreeSpace <= menuHeight) {
|
|
16619
|
+
this._componentRef.instance.top = Math.max(bottom - menuHeight, 0);
|
|
16620
|
+
}
|
|
16621
|
+
else {
|
|
16622
|
+
this._componentRef.instance.top = bottom + MARGIN;
|
|
16623
|
+
}
|
|
16624
|
+
if (rightFreeSpace > 176) {
|
|
16625
|
+
this._componentRef.instance.left = left;
|
|
16535
16626
|
}
|
|
16536
16627
|
else {
|
|
16537
|
-
|
|
16538
|
-
|
|
16628
|
+
this._componentRef.instance.left = right - ITEM_WIDTH;
|
|
16629
|
+
}
|
|
16630
|
+
if (this._isNested) {
|
|
16631
|
+
this._componentRef.instance.left = MARGIN;
|
|
16539
16632
|
}
|
|
16540
16633
|
}
|
|
16541
16634
|
};
|
|
16542
16635
|
TieredMenuDirective.prototype._setMenuComponentProperties = function () {
|
|
16543
16636
|
if (this._componentRef != null) {
|
|
16544
|
-
this._componentRef.instance.items = this.items;
|
|
16637
|
+
this._componentRef.instance.items = this._tieredMenuService.items;
|
|
16545
16638
|
}
|
|
16546
16639
|
};
|
|
16547
16640
|
TieredMenuDirective.prototype._subscribeEvents = function () {
|
|
16548
16641
|
var _this = this;
|
|
16549
|
-
this._tieredMenuEventService.closeAllMenusEvent
|
|
16550
|
-
.
|
|
16551
|
-
.subscribe(function () {
|
|
16552
|
-
_this.items = _this._tieredMenuService.markAllItemsAsClosed(_this.items);
|
|
16642
|
+
this._tieredMenuEventService.closeAllMenusEvent.pipe(takeUntil(this._unsubscribe$)).subscribe(function () {
|
|
16643
|
+
_this._tieredMenuService.items = _this._tieredMenuService.markAllItemsAsClosed(_this._tieredMenuService.items);
|
|
16553
16644
|
_this._destroy();
|
|
16554
16645
|
});
|
|
16555
16646
|
};
|
|
16647
|
+
TieredMenuDirective.prototype._compareItems = function (item1, item2) {
|
|
16648
|
+
return JSON.stringify(item1) === JSON.stringify(item2);
|
|
16649
|
+
};
|
|
16650
|
+
TieredMenuDirective.prototype._rebuildMenu = function () {
|
|
16651
|
+
this._destroy();
|
|
16652
|
+
};
|
|
16653
|
+
TieredMenuDirective.prototype._updateServiceItems = function () {
|
|
16654
|
+
this._tieredMenuService.items = this._tieredMenuService.normalizeData(this.items);
|
|
16655
|
+
this._tieredMenuService.currentItems = this._tieredMenuService.items;
|
|
16656
|
+
this._tieredMenuService.currentItem = this._tieredMenuService.items[0];
|
|
16657
|
+
};
|
|
16556
16658
|
TieredMenuDirective.ctorParameters = function () { return [
|
|
16557
16659
|
{ type: ElementRef },
|
|
16558
16660
|
{ type: ApplicationRef },
|
|
16559
16661
|
{ type: ComponentFactoryResolver },
|
|
16560
16662
|
{ type: Injector },
|
|
16561
16663
|
{ type: TieredMenuEventService },
|
|
16562
|
-
{ type: TieredMenuService }
|
|
16664
|
+
{ type: TieredMenuService },
|
|
16665
|
+
{ type: TieredMenuGlobalService },
|
|
16666
|
+
{ type: ChangeDetectorRef }
|
|
16563
16667
|
]; };
|
|
16564
16668
|
__decorate([
|
|
16565
16669
|
Input()
|
|
16566
16670
|
], TieredMenuDirective.prototype, "items", void 0);
|
|
16567
|
-
__decorate([
|
|
16568
|
-
Input()
|
|
16569
|
-
], TieredMenuDirective.prototype, "alwaysOpen", void 0);
|
|
16570
16671
|
__decorate([
|
|
16571
16672
|
Input()
|
|
16572
16673
|
], TieredMenuDirective.prototype, "triggerEvent", void 0);
|
|
16573
|
-
__decorate([
|
|
16574
|
-
HostListener("window:resize")
|
|
16575
|
-
], TieredMenuDirective.prototype, "onResize", null);
|
|
16576
|
-
__decorate([
|
|
16577
|
-
HostListener("document:keydown", ["$event"])
|
|
16578
|
-
], TieredMenuDirective.prototype, "onKeydownHandler", null);
|
|
16579
16674
|
__decorate([
|
|
16580
16675
|
HostListener("click", ["$event"])
|
|
16581
16676
|
], TieredMenuDirective.prototype, "onClick", null);
|
|
16582
|
-
__decorate([
|
|
16583
|
-
HostListener("document:click", ["$event"])
|
|
16584
|
-
], TieredMenuDirective.prototype, "onDocumentClick", null);
|
|
16585
16677
|
TieredMenuDirective = __decorate([
|
|
16586
16678
|
Directive({
|
|
16587
16679
|
selector: "[sTieredMenu]",
|
|
16680
|
+
providers: [TieredMenuEventService, TieredMenuService],
|
|
16588
16681
|
})
|
|
16589
16682
|
], TieredMenuDirective);
|
|
16590
16683
|
return TieredMenuDirective;
|
|
16591
16684
|
}());
|
|
16592
16685
|
|
|
16686
|
+
var TieredMenuDividerComponent = /** @class */ (function () {
|
|
16687
|
+
function TieredMenuDividerComponent() {
|
|
16688
|
+
}
|
|
16689
|
+
TieredMenuDividerComponent = __decorate([
|
|
16690
|
+
Component({
|
|
16691
|
+
selector: "s-tiered-menu-divider",
|
|
16692
|
+
template: "<div class=\"divider\"></div>",
|
|
16693
|
+
styles: [".divider{margin:2px 0;height:1px;background-color:#ccc}"]
|
|
16694
|
+
})
|
|
16695
|
+
], TieredMenuDividerComponent);
|
|
16696
|
+
return TieredMenuDividerComponent;
|
|
16697
|
+
}());
|
|
16698
|
+
|
|
16593
16699
|
var TieredMenuItemComponent = /** @class */ (function () {
|
|
16594
16700
|
function TieredMenuItemComponent(_tieredMenuEventService) {
|
|
16595
16701
|
this._tieredMenuEventService = _tieredMenuEventService;
|
|
16596
16702
|
this.focused = false;
|
|
16703
|
+
this.highlight = false;
|
|
16597
16704
|
this.triggerEvent = "click";
|
|
16598
16705
|
this.closeOnClick = false;
|
|
16599
16706
|
}
|
|
16600
16707
|
TieredMenuItemComponent.prototype.onClick = function () {
|
|
16708
|
+
if (this.item.disabled)
|
|
16709
|
+
return;
|
|
16601
16710
|
if (this.item.submenu) {
|
|
16602
16711
|
if (!this.item.isOpen) {
|
|
16603
|
-
this._tieredMenuEventService.
|
|
16712
|
+
this._tieredMenuEventService.openItemMenuEvent.emit(this.item);
|
|
16604
16713
|
}
|
|
16605
16714
|
else if (this.closeOnClick) {
|
|
16606
|
-
this._tieredMenuEventService.
|
|
16715
|
+
this._tieredMenuEventService.closeItemMenuEvent.emit(this.item);
|
|
16607
16716
|
}
|
|
16608
16717
|
}
|
|
16609
16718
|
else {
|
|
16610
|
-
this._tieredMenuEventService.
|
|
16719
|
+
this._tieredMenuEventService.selectItemEvent.emit(this.item);
|
|
16611
16720
|
}
|
|
16612
16721
|
};
|
|
16613
16722
|
TieredMenuItemComponent.prototype.onMouseEnter = function () {
|
|
16614
16723
|
var _this = this;
|
|
16724
|
+
if (this.item.disabled)
|
|
16725
|
+
return;
|
|
16615
16726
|
if (this.triggerEvent === "hover" && !this.item.isOpen) {
|
|
16616
16727
|
this._showTimeout = window.setTimeout(function () {
|
|
16617
|
-
_this._tieredMenuEventService.
|
|
16728
|
+
_this._tieredMenuEventService.openItemMenuEvent.emit(_this.item);
|
|
16618
16729
|
}, 300);
|
|
16619
16730
|
}
|
|
16620
16731
|
};
|
|
@@ -16630,6 +16741,9 @@ var TieredMenuItemComponent = /** @class */ (function () {
|
|
|
16630
16741
|
__decorate([
|
|
16631
16742
|
Input()
|
|
16632
16743
|
], TieredMenuItemComponent.prototype, "focused", void 0);
|
|
16744
|
+
__decorate([
|
|
16745
|
+
Input()
|
|
16746
|
+
], TieredMenuItemComponent.prototype, "highlight", void 0);
|
|
16633
16747
|
__decorate([
|
|
16634
16748
|
Input()
|
|
16635
16749
|
], TieredMenuItemComponent.prototype, "triggerEvent", void 0);
|
|
@@ -16649,26 +16763,13 @@ var TieredMenuItemComponent = /** @class */ (function () {
|
|
|
16649
16763
|
TieredMenuItemComponent = __decorate([
|
|
16650
16764
|
Component({
|
|
16651
16765
|
selector: "s-tiered-menu-item",
|
|
16652
|
-
template: "<div\n [id]=\"item.id\"\n class=\"tiered-menu-item\"\n [ngClass]=\"{\n 'tiered-menu-item--open': item.isOpen,\n 'tiered-menu-item--focused': focused\n }\">\n <div class=\"tiered-menu-item-content\">\n <span class=\"icon\" [ngClass]=\"item.iconClass\"></span>\n <span class=\"label\">{{ item.label }}</span>\n </div>\n <span\n *ngIf=\"item.submenu\"\n class=\"submenu-icon\"\n [ngClass]=\"{\n 'fas': true,\n 'fa-chevron-left': item.isOpen,\n 'fa-chevron-right': !item.isOpen\n }\">\n </span>\n</div>",
|
|
16653
|
-
styles: [".tiered-menu-item{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:8px 16px;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.tiered-menu-item .tiered-menu-item-content .label{margin:0 12px}.tiered-menu-item:hover{background-color:#e9e6e6}.tiered-menu-item--focused{background-color:#ccc!important}.tiered-menu-item--open{background-color:#e4e2e2}"]
|
|
16766
|
+
template: "<div\n [id]=\"item.id\"\n class=\"tiered-menu-item\"\n [ngClass]=\"{\n 'tiered-menu-item--open': item.isOpen,\n 'tiered-menu-item--focused': focused,\n 'tiered-menu-item--disabled': item.disabled\n }\">\n <div class=\"tiered-menu-item-content\">\n <span class=\"icon\" [ngClass]=\"item.iconClass\"></span>\n <span class=\"label\">{{ item.label }}</span>\n </div>\n <span\n *ngIf=\"item.submenu\"\n class=\"submenu-icon\"\n [ngClass]=\"{\n 'fas': true,\n 'fa-chevron-left': item.isOpen,\n 'fa-chevron-right': !item.isOpen\n }\">\n </span>\n</div>",
|
|
16767
|
+
styles: [".tiered-menu-item{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:8px 16px;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.tiered-menu-item .tiered-menu-item-content .label{margin:0 12px}.tiered-menu-item:hover{background-color:#e9e6e6}.tiered-menu-item--focused{background-color:#ccc!important}.tiered-menu-item--open{background-color:#e4e2e2}.tiered-menu-item--disabled{opacity:50%;cursor:default}"]
|
|
16654
16768
|
})
|
|
16655
16769
|
], TieredMenuItemComponent);
|
|
16656
16770
|
return TieredMenuItemComponent;
|
|
16657
16771
|
}());
|
|
16658
16772
|
|
|
16659
|
-
var TieredMenuDividerComponent = /** @class */ (function () {
|
|
16660
|
-
function TieredMenuDividerComponent() {
|
|
16661
|
-
}
|
|
16662
|
-
TieredMenuDividerComponent = __decorate([
|
|
16663
|
-
Component({
|
|
16664
|
-
selector: "s-tiered-menu-divider",
|
|
16665
|
-
template: "<div class=\"divider\"></div>",
|
|
16666
|
-
styles: [".divider{margin:2px 0;height:1px;background-color:#ccc}"]
|
|
16667
|
-
})
|
|
16668
|
-
], TieredMenuDividerComponent);
|
|
16669
|
-
return TieredMenuDividerComponent;
|
|
16670
|
-
}());
|
|
16671
|
-
|
|
16672
16773
|
var TieredMenuModule = /** @class */ (function () {
|
|
16673
16774
|
function TieredMenuModule() {
|
|
16674
16775
|
}
|
|
@@ -16685,10 +16786,7 @@ var TieredMenuModule = /** @class */ (function () {
|
|
|
16685
16786
|
TieredMenuDividerComponent,
|
|
16686
16787
|
],
|
|
16687
16788
|
exports: [TieredMenuDirective],
|
|
16688
|
-
providers: [
|
|
16689
|
-
TieredMenuEventService,
|
|
16690
|
-
TieredMenuService,
|
|
16691
|
-
],
|
|
16789
|
+
providers: [TieredMenuGlobalService],
|
|
16692
16790
|
})
|
|
16693
16791
|
], TieredMenuModule);
|
|
16694
16792
|
return TieredMenuModule;
|
|
@@ -16789,6 +16887,7 @@ var VERTICAL = "vertical";
|
|
|
16789
16887
|
var MIN_ITEM_SIZE = 200;
|
|
16790
16888
|
var TimelineComponent = /** @class */ (function () {
|
|
16791
16889
|
function TimelineComponent() {
|
|
16890
|
+
this.highlightActiveItem = true;
|
|
16792
16891
|
this.direction = HORIZONTAL;
|
|
16793
16892
|
this.collapsable = true;
|
|
16794
16893
|
this.counterLabel = "items";
|
|
@@ -16827,6 +16926,9 @@ var TimelineComponent = /** @class */ (function () {
|
|
|
16827
16926
|
__decorate([
|
|
16828
16927
|
Input()
|
|
16829
16928
|
], TimelineComponent.prototype, "activeIndex", void 0);
|
|
16929
|
+
__decorate([
|
|
16930
|
+
Input()
|
|
16931
|
+
], TimelineComponent.prototype, "highlightActiveItem", void 0);
|
|
16830
16932
|
__decorate([
|
|
16831
16933
|
Input()
|
|
16832
16934
|
], TimelineComponent.prototype, "direction", void 0);
|
|
@@ -16842,7 +16944,7 @@ var TimelineComponent = /** @class */ (function () {
|
|
|
16842
16944
|
TimelineComponent = __decorate([
|
|
16843
16945
|
Component({
|
|
16844
16946
|
selector: "s-timeline",
|
|
16845
|
-
template: "<div *ngIf=\"changeToVertical(); then vertical else horizontal\"></div>\n\n<ng-template #horizontal>\n <s-horizontal-timeline *ngIf=\"items?.length\"\n [items]=\"items\"\n [activeIndex]=\"activeIndex\">\n </s-horizontal-timeline>\n</ng-template>\n\n<ng-template #vertical>\n <s-vertical-timeline *ngIf=\"items?.length\"\n [items]=\"items\"\n [activeIndex]=\"activeIndex\"\n [counterLabel]=\"counterLabel\"\n [collapsable]=\"collapsable\">\n </s-vertical-timeline>\n</ng-template>"
|
|
16947
|
+
template: "<div *ngIf=\"changeToVertical(); then vertical else horizontal\"></div>\n\n<ng-template #horizontal>\n <s-horizontal-timeline *ngIf=\"items?.length\"\n [items]=\"items\"\n [activeIndex]=\"activeIndex\"\n [highlightActiveItem]=\"highlightActiveItem\">\n </s-horizontal-timeline>\n</ng-template>\n\n<ng-template #vertical>\n <s-vertical-timeline *ngIf=\"items?.length\"\n [items]=\"items\"\n [activeIndex]=\"activeIndex\"\n highlightActiveItem=\"hi\"\n [counterLabel]=\"counterLabel\"\n [collapsable]=\"collapsable\"\n [highlightActiveItem]=\"highlightActiveItem\">\n </s-vertical-timeline>\n</ng-template>"
|
|
16846
16948
|
})
|
|
16847
16949
|
], TimelineComponent);
|
|
16848
16950
|
return TimelineComponent;
|
|
@@ -16857,14 +16959,17 @@ var TimelineIconItemComponent = /** @class */ (function () {
|
|
|
16857
16959
|
__decorate([
|
|
16858
16960
|
Input()
|
|
16859
16961
|
], TimelineIconItemComponent.prototype, "isActive", void 0);
|
|
16962
|
+
__decorate([
|
|
16963
|
+
Input()
|
|
16964
|
+
], TimelineIconItemComponent.prototype, "highlightActive", void 0);
|
|
16860
16965
|
__decorate([
|
|
16861
16966
|
Input()
|
|
16862
16967
|
], TimelineIconItemComponent.prototype, "isComplete", void 0);
|
|
16863
16968
|
TimelineIconItemComponent = __decorate([
|
|
16864
16969
|
Component({
|
|
16865
16970
|
selector: "s-timeline-icon-item",
|
|
16866
|
-
template: "<ng-container *ngIf=\"item\">\n <div\n class=\"timeline__icon-item\"\n [ngClass]=\"{\n 'timeline__icon-item--small': item.testSize('small'),\n 'timeline__icon-item--normal': item.testSize('normal'),\n 'timeline__icon-item--warning': item.testSeverity('warning'),\n 'timeline__icon-item--error': item.testSeverity('error'),\n 'timeline__icon-item--completed': isComplete,\n 'timeline__icon-item--active': isActive\n }\">\n <div\n class=\"timeline__icon-item__icon\"\n [pTooltip]=\"item.tooltip\"\n tooltipPosition=\"top\"\n [ngStyle]=\"{ backgroundColor: item.color }\">\n <ng-content *ngIf=\"item.icon; then icon_content; else label_text_content\"></ng-content>\n <ng-template #icon_content>\n <span [ngClass]=\"item.icon\"></span>\n </ng-template>\n <ng-template #label_text_content>\n <span class=\"timeline__icon-item__icon__label\">\n {{ item.label }}\n </span>\n </ng-template>\n </div>\n </div>\n</ng-container>\n",
|
|
16867
|
-
styles: [".timeline__icon-item .timeline__icon-item__icon{-ms-flex-align:center;align-items:center;background-color:#697882;border-radius:50%;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:4px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.timeline__icon-item .timeline__icon-item__icon .timeline__icon-item__icon__label{font-family:\"Open Sans\",sans-serif}.timeline__icon-item.timeline__icon-item--small .timeline__icon-item__icon{font-size:0;height:16px;width:16px}.timeline__icon-item.timeline__icon-item--normal .timeline__icon-item__icon{font-size:10px;height:24px;padding:8px;width:24px}.timeline__icon-item.timeline__icon-item--normal .timeline__icon-item__icon .timeline__icon-item__icon__label{font-size:14px}.timeline__icon-item.timeline__icon-item--active .timeline__icon-item__icon{font-size:20px;height:40px;padding:10px;width:40px}.timeline__icon-item.timeline__icon-item--active .timeline__icon-item__icon .timeline__icon-item__icon__label{font-size:22px}.timeline__icon-item.timeline__icon-item--active .timeline__icon-item__icon,.timeline__icon-item.timeline__icon-item--completed .timeline__icon-item__icon{background-color:#0c9348}.timeline__icon-item.timeline__icon-item--warning.timeline__icon-item--active .timeline__icon-item__icon{background-color:#fcbf10;color:#333}.timeline__icon-item.timeline__icon-item--danger.timeline__icon-item--active .timeline__icon-item__icon{background-color:#f8931f;color:#333}.timeline__icon-item.timeline__icon-item--error.timeline__icon-item--active .timeline__icon-item__icon{background-color:#c13018}"]
|
|
16971
|
+
template: "<ng-container *ngIf=\"item\">\n <div\n class=\"timeline__icon-item\"\n [ngClass]=\"{\n 'timeline__icon-item--small': item.testSize('small'),\n 'timeline__icon-item--normal': item.testSize('normal'),\n 'timeline__icon-item--warning': item.testSeverity('warning'),\n 'timeline__icon-item--error': item.testSeverity('error'),\n 'timeline__icon-item--completed': isComplete,\n 'timeline__icon-item--active': isActive,\n 'timeline__icon-item--active--highlight': isActive && highlightActive\n }\">\n <div\n class=\"timeline__icon-item__icon\"\n [pTooltip]=\"item.tooltip\"\n tooltipPosition=\"top\"\n [ngStyle]=\"{ backgroundColor: item.color }\">\n <ng-content *ngIf=\"item.icon; then icon_content; else label_text_content\"></ng-content>\n <ng-template #icon_content>\n <span [ngClass]=\"item.icon\"></span>\n </ng-template>\n <ng-template #label_text_content>\n <span class=\"timeline__icon-item__icon__label\">\n {{ item.label }}\n </span>\n </ng-template>\n </div>\n </div>\n</ng-container>\n",
|
|
16972
|
+
styles: [".timeline__icon-item .timeline__icon-item__icon{-ms-flex-align:center;align-items:center;background-color:#697882;border-radius:50%;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:4px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.timeline__icon-item .timeline__icon-item__icon .timeline__icon-item__icon__label{font-family:\"Open Sans\",sans-serif}.timeline__icon-item.timeline__icon-item--small .timeline__icon-item__icon{font-size:0;height:16px;width:16px}.timeline__icon-item.timeline__icon-item--normal .timeline__icon-item__icon{font-size:10px;height:24px;padding:8px;width:24px}.timeline__icon-item.timeline__icon-item--normal .timeline__icon-item__icon .timeline__icon-item__icon__label{font-size:14px}.timeline__icon-item.timeline__icon-item--active--highlight .timeline__icon-item__icon{font-size:20px;height:40px;padding:10px;width:40px}.timeline__icon-item.timeline__icon-item--active--highlight .timeline__icon-item__icon .timeline__icon-item__icon__label{font-size:22px}.timeline__icon-item.timeline__icon-item--active .timeline__icon-item__icon,.timeline__icon-item.timeline__icon-item--completed .timeline__icon-item__icon{background-color:#0c9348}.timeline__icon-item.timeline__icon-item--warning.timeline__icon-item--active .timeline__icon-item__icon{background-color:#fcbf10;color:#333}.timeline__icon-item.timeline__icon-item--danger.timeline__icon-item--active .timeline__icon-item__icon{background-color:#f8931f;color:#333}.timeline__icon-item.timeline__icon-item--error.timeline__icon-item--active .timeline__icon-item__icon{background-color:#c13018}"]
|
|
16868
16973
|
})
|
|
16869
16974
|
], TimelineIconItemComponent);
|
|
16870
16975
|
return TimelineIconItemComponent;
|
|
@@ -16896,11 +17001,14 @@ var HorizontalTimelineComponent = /** @class */ (function () {
|
|
|
16896
17001
|
__decorate([
|
|
16897
17002
|
Input()
|
|
16898
17003
|
], HorizontalTimelineComponent.prototype, "activeIndex", void 0);
|
|
17004
|
+
__decorate([
|
|
17005
|
+
Input()
|
|
17006
|
+
], HorizontalTimelineComponent.prototype, "highlightActiveItem", void 0);
|
|
16899
17007
|
HorizontalTimelineComponent = __decorate([
|
|
16900
17008
|
Component({
|
|
16901
17009
|
selector: "s-horizontal-timeline",
|
|
16902
|
-
template: "<div class=\"horizontal-timeline\">\n <ng-container\n *ngFor=\"let item of items;\n let i = index;\n let isFirst = first;\n let isLast = last\">\n <div\n class=\"horizontal-timeline__item\"\n [ngClass]=\"{\n 'horizontal-timeline__item--small': item.testSize('small'),\n 'horizontal-timeline__item--normal': item.testSize('normal'),\n 'horizontal-timeline__item--warning': item.testSeverity('warning'),\n 'horizontal-timeline__item--error': item.testSeverity('error'),\n 'horizontal-timeline__item--completed': i < activeIndex,\n 'horizontal-timeline__item--active': i === activeIndex\n }\">\n <div class=\"horizontal-timeline__item__icon-wrapper\">\n <div\n class=\"horizontal-timeline__item__icon-wrapper__line horizontal-timeline__item__icon-wrapper__line--before\"\n [ngStyle]=\"{ 'visibility': isFirst ? 'hidden' : 'visible' }\">\n </div>\n <s-timeline-icon-item\n [item]=\"item\"\n [isActive]=\"i === activeIndex\"\n [isComplete]=\"i < activeIndex\">\n </s-timeline-icon-item>\n <div\n class=\"horizontal-timeline__item__icon-wrapper__line horizontal-timeline__item__icon-wrapper__line--after\"\n [ngStyle]=\"{ 'visibility': isLast ? 'hidden' : 'visible' }\">\n </div>\n </div>\n <div class=\"horizontal-timeline__item__info\">\n <div\n class=\"horizontal-timeline__item__info__title\"\n [pTooltip]=\"item.title\"\n tooltipPosition=\"top\"\n [showDelay]=\"1000\">\n {{ item.title }}\n </div>\n <div\n class=\"horizontal-timeline__item__info__description\"\n [pTooltip]=\"item.description\"\n tooltipPosition=\"top\"\n [showDelay]=\"1000\">\n {{ item.description }}\n </div>\n </div>\n </div>\n </ng-container>\n</div>",
|
|
16903
|
-
styles: ["@keyframes scale-up-center{0%{transform:scale(.5)}100%{transform:scale(1)}}.horizontal-timeline{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.horizontal-timeline .horizontal-timeline__item{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:56px;-ms-flex-pack:start;justify-content:flex-start;width:100%}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{background-color:#697882;height:3px}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before{border-radius:0 2px 2px 0}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--after{border-radius:2px 0 0 2px}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info{width:20ch}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info .horizontal-timeline__item__info__title{color:#333;font-family:\"Open Sans\",sans-serif;font-size:14px;font-weight:700;line-height:150%;max-width:100%;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info .horizontal-timeline__item__info__description{color:#999;display:-webkit-box;font-family:\"Open Sans\",sans-serif;font-size:12px;font-weight:400;line-height:150%;max-height:calc(12px * 1.5 * 4);overflow:hidden;text-align:center;text-overflow:ellipsis;-webkit-line-clamp:4;-webkit-box-orient:vertical}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--small .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 8px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--normal .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 12px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--active .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 20px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--active .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before,.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--completed .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--after,.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--completed .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before{background-color:#0c9348}"]
|
|
17010
|
+
template: "<div class=\"horizontal-timeline\">\n <ng-container\n *ngFor=\"let item of items;\n let i = index;\n let isFirst = first;\n let isLast = last\">\n <div\n class=\"horizontal-timeline__item\"\n [ngClass]=\"{\n 'horizontal-timeline__item--small': item.testSize('small'),\n 'horizontal-timeline__item--normal': item.testSize('normal'),\n 'horizontal-timeline__item--warning': item.testSeverity('warning'),\n 'horizontal-timeline__item--error': item.testSeverity('error'),\n 'horizontal-timeline__item--completed': i < activeIndex,\n 'horizontal-timeline__item--active': i === activeIndex\n }\">\n <div class=\"horizontal-timeline__item__icon-wrapper\">\n <div\n class=\"horizontal-timeline__item__icon-wrapper__line horizontal-timeline__item__icon-wrapper__line--before\"\n [ngStyle]=\"{ 'visibility': isFirst ? 'hidden' : 'visible' }\">\n </div>\n <s-timeline-icon-item\n [item]=\"item\"\n [isActive]=\"i === activeIndex\"\n [isComplete]=\"i < activeIndex\"\n [highlightActive]=\"highlightActiveItem\">\n </s-timeline-icon-item>\n <div\n class=\"horizontal-timeline__item__icon-wrapper__line horizontal-timeline__item__icon-wrapper__line--after\"\n [ngStyle]=\"{ 'visibility': isLast ? 'hidden' : 'visible' }\">\n </div>\n </div>\n <div class=\"horizontal-timeline__item__info\">\n <div\n class=\"horizontal-timeline__item__info__title\"\n [pTooltip]=\"item.title\"\n tooltipPosition=\"top\"\n [showDelay]=\"1000\">\n {{ item.title }}\n </div>\n <div\n class=\"horizontal-timeline__item__info__description\"\n [pTooltip]=\"item.description\"\n tooltipPosition=\"top\"\n [showDelay]=\"1000\">\n {{ item.description }}\n </div>\n </div>\n </div>\n </ng-container>\n</div>",
|
|
17011
|
+
styles: ["@keyframes scale-up-center{0%{transform:scale(.5)}100%{transform:scale(1)}}.horizontal-timeline{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.horizontal-timeline .horizontal-timeline__item{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:56px;-ms-flex-pack:start;justify-content:flex-start;width:100%}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{background-color:#697882;height:3px}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before{border-radius:0 2px 2px 0}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--after{border-radius:2px 0 0 2px}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info{width:20ch}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info .horizontal-timeline__item__info__title{color:#333;font-family:\"Open Sans\",sans-serif;font-size:14px;font-weight:700;line-height:150%;max-width:100%;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info .horizontal-timeline__item__info__description{color:#999;display:-webkit-box;font-family:\"Open Sans\",sans-serif;font-size:12px;font-weight:400;line-height:150%;max-height:calc(12px * 1.5 * 4);overflow:hidden;text-align:center;text-overflow:ellipsis;line-clamp:4;-webkit-line-clamp:4;-webkit-box-orient:vertical}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--small .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 8px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--normal .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 12px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--active--highlight .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 20px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--active .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before,.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--completed .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--after,.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--completed .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before{background-color:#0c9348}"]
|
|
16904
17012
|
})
|
|
16905
17013
|
], HorizontalTimelineComponent);
|
|
16906
17014
|
return HorizontalTimelineComponent;
|
|
@@ -16956,6 +17064,9 @@ var VerticalTimelineComponent = /** @class */ (function () {
|
|
|
16956
17064
|
__decorate([
|
|
16957
17065
|
Input()
|
|
16958
17066
|
], VerticalTimelineComponent.prototype, "activeIndex", null);
|
|
17067
|
+
__decorate([
|
|
17068
|
+
Input()
|
|
17069
|
+
], VerticalTimelineComponent.prototype, "highlightActiveItem", void 0);
|
|
16959
17070
|
__decorate([
|
|
16960
17071
|
Input()
|
|
16961
17072
|
], VerticalTimelineComponent.prototype, "items", void 0);
|
|
@@ -16968,7 +17079,7 @@ var VerticalTimelineComponent = /** @class */ (function () {
|
|
|
16968
17079
|
VerticalTimelineComponent = __decorate([
|
|
16969
17080
|
Component({
|
|
16970
17081
|
selector: "s-vertical-timeline",
|
|
16971
|
-
template: "<div class=\"vertical-timeline\">\n <div\n *ngIf=\"firstItem.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\"></div>\n <s-vertical-items\n [items]=\"firstItem\"\n [isLast]=\"false\"\n [isActive]=\"false\"\n [isCompleted]=\"true\">\n </s-vertical-items>\n </div>\n\n <div\n *ngIf=\"g1Items.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\">\n <ng-container *ngIf=\"g1Items.length > 1 && !isG1Collapsed\">\n <s-collapse-option\n *ngIf=\"collapsable\"\n [isCollapsed]=\"isG1Collapsed\"\n (change)=\"onChangeG1($event)\">\n </s-collapse-option>\n <s-range-line class=\"vertical-timeline__block__prefix__line\"></s-range-line>\n </ng-container>\n </div>\n\n <div *ngIf=\"isG1Collapsed && g1Items.length > 1 && collapsable; then g1_collapsed; else g1_items\"></div>\n\n <ng-template #g1_collapsed>\n <s-collapsed-items\n [items]=\"g1Items\"\n [(isCollapsed)]=\"isG1Collapsed\"\n [isCompleted]=\"true\"\n [counterLabel]=\"counterLabel\">\n </s-collapsed-items>\n </ng-template>\n\n <ng-template #g1_items>\n <s-vertical-items\n [items]=\"g1Items\"\n [isLast]=\"false\"\n [isActive]=\"false\"\n [isCompleted]=\"true\">\n </s-vertical-items>\n </ng-template>\n </div>\n\n <div\n *ngIf=\"activeItem.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\"></div>\n <s-vertical-items\n [items]=\"activeItem\"\n [isLast]=\"!lastItem.length\"\n [isActive]=\"true\"\n [isCompleted]=\"false\">\n </s-vertical-items>\n </div>\n\n <div\n *ngIf=\"g2Items.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\">\n <ng-container *ngIf=\"g2Items.length > 1 && !isG2Collapsed\">\n <s-collapse-option\n *ngIf=\"collapsable\"\n [isCollapsed]=\"isG2Collapsed\"\n (change)=\"onChangeG2($event)\">\n </s-collapse-option>\n <s-range-line class=\"vertical-timeline__block__prefix__line\"></s-range-line>\n </ng-container>\n </div>\n\n <div *ngIf=\"isG2Collapsed && g2Items.length > 1 && collapsable; then g2_collapsed; else g2_items\"></div>\n\n <ng-template #g2_collapsed>\n <s-collapsed-items\n [items]=\"g2Items\"\n [(isCollapsed)]=\"isG2Collapsed\"\n [isCompleted]=\"false\"\n [counterLabel]=\"counterLabel\">\n </s-collapsed-items>\n </ng-template>\n\n <ng-template #g2_items>\n <s-vertical-items\n [items]=\"g2Items\"\n [isLast]=\"false\"\n [isActive]=\"false\"\n [isCompleted]=\"false\">\n </s-vertical-items>\n </ng-template>\n </div>\n\n <div\n *ngIf=\"lastItem.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\"></div>\n <s-vertical-items\n [items]=\"lastItem\"\n [isLast]=\"true\"\n [isActive]=\"false\"\n [isCompleted]=\"false\">\n </s-vertical-items>\n </div>\n</div>",
|
|
17082
|
+
template: "<div class=\"vertical-timeline\">\n <div\n *ngIf=\"firstItem.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\"></div>\n <s-vertical-items\n [items]=\"firstItem\"\n [isLast]=\"false\"\n [isActive]=\"false\"\n [isCompleted]=\"true\">\n </s-vertical-items>\n </div>\n\n <div\n *ngIf=\"g1Items.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\">\n <ng-container *ngIf=\"g1Items.length > 1 && !isG1Collapsed\">\n <s-collapse-option\n *ngIf=\"collapsable\"\n [isCollapsed]=\"isG1Collapsed\"\n (change)=\"onChangeG1($event)\">\n </s-collapse-option>\n <s-range-line class=\"vertical-timeline__block__prefix__line\"></s-range-line>\n </ng-container>\n </div>\n\n <div *ngIf=\"isG1Collapsed && g1Items.length > 1 && collapsable; then g1_collapsed; else g1_items\"></div>\n\n <ng-template #g1_collapsed>\n <s-collapsed-items\n [items]=\"g1Items\"\n [(isCollapsed)]=\"isG1Collapsed\"\n [isCompleted]=\"true\"\n [counterLabel]=\"counterLabel\">\n </s-collapsed-items>\n </ng-template>\n\n <ng-template #g1_items>\n <s-vertical-items\n [items]=\"g1Items\"\n [isLast]=\"false\"\n [isActive]=\"false\"\n [isCompleted]=\"true\">\n </s-vertical-items>\n </ng-template>\n </div>\n\n <div\n *ngIf=\"activeItem.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\"></div>\n <s-vertical-items\n [items]=\"activeItem\"\n [isLast]=\"!lastItem.length\"\n [isActive]=\"true\"\n [highlightActive]=\"highlightActiveItem\"\n [isCompleted]=\"false\">\n </s-vertical-items>\n </div>\n\n <div\n *ngIf=\"g2Items.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\">\n <ng-container *ngIf=\"g2Items.length > 1 && !isG2Collapsed\">\n <s-collapse-option\n *ngIf=\"collapsable\"\n [isCollapsed]=\"isG2Collapsed\"\n (change)=\"onChangeG2($event)\">\n </s-collapse-option>\n <s-range-line class=\"vertical-timeline__block__prefix__line\"></s-range-line>\n </ng-container>\n </div>\n\n <div *ngIf=\"isG2Collapsed && g2Items.length > 1 && collapsable; then g2_collapsed; else g2_items\"></div>\n\n <ng-template #g2_collapsed>\n <s-collapsed-items\n [items]=\"g2Items\"\n [(isCollapsed)]=\"isG2Collapsed\"\n [isCompleted]=\"false\"\n [counterLabel]=\"counterLabel\">\n </s-collapsed-items>\n </ng-template>\n\n <ng-template #g2_items>\n <s-vertical-items\n [items]=\"g2Items\"\n [isLast]=\"false\"\n [isActive]=\"false\"\n [isCompleted]=\"false\">\n </s-vertical-items>\n </ng-template>\n </div>\n\n <div\n *ngIf=\"lastItem.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\"></div>\n <s-vertical-items\n [items]=\"lastItem\"\n [isLast]=\"true\"\n [isActive]=\"false\"\n [isCompleted]=\"false\">\n </s-vertical-items>\n </div>\n</div>",
|
|
16972
17083
|
styles: [".vertical-timeline{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.vertical-timeline .vertical-timeline__block{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch}.vertical-timeline .vertical-timeline__block .vertical-timeline__block__prefix{width:60px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0}.vertical-timeline .vertical-timeline__block .vertical-timeline__block__prefix .vertical-timeline__block__prefix__line{height:100%}"]
|
|
16973
17084
|
})
|
|
16974
17085
|
], VerticalTimelineComponent);
|
|
@@ -17057,13 +17168,16 @@ var VerticalItemsComponent = /** @class */ (function () {
|
|
|
17057
17168
|
__decorate([
|
|
17058
17169
|
Input()
|
|
17059
17170
|
], VerticalItemsComponent.prototype, "isActive", void 0);
|
|
17171
|
+
__decorate([
|
|
17172
|
+
Input()
|
|
17173
|
+
], VerticalItemsComponent.prototype, "highlightActive", void 0);
|
|
17060
17174
|
__decorate([
|
|
17061
17175
|
Input()
|
|
17062
17176
|
], VerticalItemsComponent.prototype, "isCompleted", void 0);
|
|
17063
17177
|
VerticalItemsComponent = __decorate([
|
|
17064
17178
|
Component({
|
|
17065
17179
|
selector: "s-vertical-items",
|
|
17066
|
-
template: "<div class=\"vertical-items\">\n <ng-container *ngFor=\"let item of items; let index = index;\">\n <div\n class=\"vertical-items__item\"\n [ngClass]=\"{\n 'vertical-items__item--small': item.testSize('small'),\n 'vertical-items__item--normal': item.testSize('normal'),\n 'vertical-items__item--completed': isCompleted,\n 'vertical-items__item--active': isActive\n }\">\n <div class=\"vertical-items__item__icon-wrapper\">\n <s-timeline-icon-item\n [item]=\"item\"\n [isComplete]=\"isCompleted\"\n [isActive]=\"isActive\">\n </s-timeline-icon-item>\n <div\n class=\"vertical-items__item__icon-wrapper__line\"\n [ngStyle]=\"{ 'visibility': isLast ? 'hidden' : 'visible' }\">\n </div>\n </div>\n <div class=\"vertical-items__item__info\">\n <div class=\"vertical-timeline__item__info__title\">\n {{ item.title }}\n </div>\n <div class=\"vertical-items__item__info__description\">\n {{ item.description }}\n </div>\n </div>\n </div>\n </ng-container>\n</div>",
|
|
17180
|
+
template: "<div class=\"vertical-items\">\n <ng-container *ngFor=\"let item of items; let index = index;\">\n <div\n class=\"vertical-items__item\"\n [ngClass]=\"{\n 'vertical-items__item--small': item.testSize('small'),\n 'vertical-items__item--normal': item.testSize('normal'),\n 'vertical-items__item--completed': isCompleted,\n 'vertical-items__item--active': isActive\n }\">\n <div class=\"vertical-items__item__icon-wrapper\">\n <s-timeline-icon-item\n [item]=\"item\"\n [isComplete]=\"isCompleted\"\n [isActive]=\"isActive\"\n [highlightActive]=\"highlightActive\">\n </s-timeline-icon-item>\n <div\n class=\"vertical-items__item__icon-wrapper__line\"\n [ngStyle]=\"{ 'visibility': isLast ? 'hidden' : 'visible' }\">\n </div>\n </div>\n <div class=\"vertical-items__item__info\">\n <div class=\"vertical-timeline__item__info__title\">\n {{ item.title }}\n </div>\n <div class=\"vertical-items__item__info__description\">\n {{ item.description }}\n </div>\n </div>\n </div>\n </ng-container>\n</div>",
|
|
17067
17181
|
styles: [".vertical-items .vertical-items__item{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;margin-right:50px}.vertical-items .vertical-items__item .vertical-items__item__collapsed-option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.vertical-items .vertical-items__item .vertical-items__item__collapsed-option .vertical-items__item__collapsed-option__line{width:3px;height:50px;background-color:#ccc}.vertical-items .vertical-items__item .vertical-items__item__icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;flex-shrink:0;-ms-flex-pack:center;justify-content:center;width:56px}.vertical-items .vertical-items__item .vertical-items__item__icon-wrapper .vertical-items__item__icon-wrapper__line{background-color:#697882;border-radius:2px;-ms-flex-positive:1;flex-grow:1;min-height:20px;width:3px}.vertical-items .vertical-items__item .vertical-items__item__info{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;margin-bottom:12px}.vertical-items .vertical-items__item .vertical-items__item__info .vertical-items__item__info__title{color:#333;font-family:\"Open Sans\",sans-serif;font-size:14px;font-weight:700;line-height:150%}.vertical-items .vertical-items__item .vertical-items__item__info .vertical-items__item__info__description{color:#999;font-family:\"Open Sans\",sans-serif;font-size:12px;font-weight:400;line-height:150%}.vertical-items .vertical-items__item .vertical-items__item__info .vertical-items__item__info__description.vertical-items__item__info__description--link{color:#428bca}.vertical-items .vertical-items__item.vertical-items__item--small .vertical-items__item__icon-wrapper__line{height:calc(100% - 4px - 8px)}.vertical-items .vertical-items__item.vertical-items__item--medium .vertical-items__item__icon-wrapper__line{height:calc(100% - 4px - 12px)}.vertical-items .vertical-items__item.vertical-items__item--big .vertical-items__item__icon-wrapper__line{height:calc(50% - 4px - 20px)}.vertical-items .vertical-items__item.vertical-items__item--completed .vertical-items__item__icon-wrapper .vertical-items__item__icon-wrapper__line{background-color:#0c9348}"]
|
|
17068
17182
|
})
|
|
17069
17183
|
], VerticalItemsComponent);
|
|
@@ -17632,5 +17746,5 @@ var fallback = {
|
|
|
17632
17746
|
* Generated bundle index. Do not edit.
|
|
17633
17747
|
*/
|
|
17634
17748
|
|
|
17635
|
-
export { AccordionComponent, AccordionModule, AccordionPanelComponent, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, KanbanComponent, KanbanModule, KanbanTemplateTypes, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, LocalizedNumberInputModule as ɵba, NumberInputModule as ɵbb, NumberFieldComponent as ɵbc, CurrencyFieldModule as ɵbd, CurrencyFieldComponent as ɵbe, NumberFieldModule$1 as ɵbf, BignumberInputModule as ɵbg, BignumberFieldComponent as ɵbh, AutocompleteFieldComponent as ɵbi, BooleanFieldComponent as ɵbj, BooleanSwitchFieldComponent as ɵbk, CalendarFieldComponent as ɵbl, ChipsFieldComponent as ɵbm, CountryPhonePickerFieldComponent as ɵbn, DynamicFieldComponent as ɵbo, DynamicFormDirective as ɵbp, FieldsetComponent as ɵbq, FileUploadComponent$1 as ɵbr, LookupFieldComponent as ɵbs, PasswordFieldComponent as ɵbt, RadioButtonComponent as ɵbu, RowComponent as ɵbv, SectionComponent as ɵbw, SelectFieldComponent as ɵbx, SliderFieldComponent as ɵby, TextAreaFieldComponent as ɵbz, TemplateDirective as ɵc, TextAreaIAFieldComponent as ɵca, IAssistService as ɵcb, DecimalField as ɵcd, SideTableComponent as ɵce, ThumbnailService as ɵcf, InfiniteScrollModule as ɵcg, InfiniteScrollDirective as ɵch, IAInsightSidebarComponent as ɵci, IAInsightCardComponent as ɵcj, IAInsightCardLoaderComponent as ɵck, StructureModule as ɵcl, HeaderComponent as ɵcm, FooterComponent as ɵcn, KanbanEventService as ɵco, KanbanItemComponent as ɵcp, KanbanColumnComponent as ɵcq, KanbanItemDraggingComponent as ɵcr, NumberLocaleOptions as ɵcs, BorderButtonModule as ɵct, BorderButtonComponent as ɵcu, ProgressBarDeterminateComponent as ɵcv, ProgressBarIndeterminateComponent as ɵcw, SelectButtonItemComponent as ɵcx, SlidePanelService as ɵcy, TieredMenuEventService as ɵcz, TemplateModule as ɵd, TieredMenuService as ɵda,
|
|
17749
|
+
export { AccordionComponent, AccordionModule, AccordionPanelComponent, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, KanbanComponent, KanbanModule, KanbanTemplateTypes, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, LocalizedNumberInputModule as ɵba, NumberInputModule as ɵbb, NumberFieldComponent as ɵbc, CurrencyFieldModule as ɵbd, CurrencyFieldComponent as ɵbe, NumberFieldModule$1 as ɵbf, BignumberInputModule as ɵbg, BignumberFieldComponent as ɵbh, AutocompleteFieldComponent as ɵbi, BooleanFieldComponent as ɵbj, BooleanSwitchFieldComponent as ɵbk, CalendarFieldComponent as ɵbl, ChipsFieldComponent as ɵbm, CountryPhonePickerFieldComponent as ɵbn, DynamicFieldComponent as ɵbo, DynamicFormDirective as ɵbp, FieldsetComponent as ɵbq, FileUploadComponent$1 as ɵbr, LookupFieldComponent as ɵbs, PasswordFieldComponent as ɵbt, RadioButtonComponent as ɵbu, RowComponent as ɵbv, SectionComponent as ɵbw, SelectFieldComponent as ɵbx, SliderFieldComponent as ɵby, TextAreaFieldComponent as ɵbz, TemplateDirective as ɵc, TextAreaIAFieldComponent as ɵca, IAssistService as ɵcb, DecimalField as ɵcd, SideTableComponent as ɵce, ThumbnailService as ɵcf, InfiniteScrollModule as ɵcg, InfiniteScrollDirective as ɵch, IAInsightSidebarComponent as ɵci, IAInsightCardComponent as ɵcj, IAInsightCardLoaderComponent as ɵck, StructureModule as ɵcl, HeaderComponent as ɵcm, FooterComponent as ɵcn, KanbanEventService as ɵco, KanbanItemComponent as ɵcp, KanbanColumnComponent as ɵcq, KanbanItemDraggingComponent as ɵcr, NumberLocaleOptions as ɵcs, BorderButtonModule as ɵct, BorderButtonComponent as ɵcu, ProgressBarDeterminateComponent as ɵcv, ProgressBarIndeterminateComponent as ɵcw, SelectButtonItemComponent as ɵcx, SlidePanelService as ɵcy, TieredMenuEventService as ɵcz, TemplateModule as ɵd, TieredMenuService as ɵda, TieredMenuGlobalService as ɵdb, TieredMenuComponent as ɵdc, TieredMenuNestedComponent as ɵdd, TieredMenuItemComponent as ɵde, TieredMenuDividerComponent as ɵdf, TimelineItemModule as ɵdg, TimelineIconItemComponent as ɵdh, HorizontalTimelineModule as ɵdi, HorizontalTimelineComponent as ɵdj, VerticalTimelineModule as ɵdk, VerticalTimelineComponent as ɵdl, RangeLineComponent as ɵdm, CollapseOptionComponent as ɵdn, CollapsedItemsComponent as ɵdo, VerticalItemsComponent as ɵdp, CustomTranslationsModule as ɵe, CodeEditorComponent as ɵf, CoreFacade as ɵg, CodeMirror6Core as ɵh, CountryPhonePickerService as ɵi, LocalizedCurrencyImpurePipe as ɵj, LocalizedBignumberPipe as ɵk, LocalizedBignumberImpurePipe as ɵl, NumericPipe as ɵm, NumericService as ɵn, EmptyStateGoBackComponent as ɵo, IAssistIconComponent as ɵp, SeniorIconComponent as ɵq, DotsIndicatorComponent as ɵr, LoadingIndicatorComponent as ɵs, FileUploadService as ɵt, InfoSignComponent as ɵu, TableColumnsComponent as ɵv, TablePagingComponent as ɵw, TextFieldModule as ɵx, TextFieldComponent as ɵy, NumberFieldModule as ɵz };
|
|
17636
17750
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|