@seniorsistemas/angular-components 17.9.1 → 17.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +60 -27
  2. package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
  4. package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
  5. package/components/kanban/components/kanban-column/kanban-column.component.d.ts +2 -0
  6. package/components/kanban/components/kanban-item/kanban-item.component.d.ts +7 -4
  7. package/components/kanban/kanban.component.d.ts +7 -5
  8. package/components/kanban/models/index.d.ts +1 -1
  9. package/components/kanban/models/kanban-data.d.ts +9 -2
  10. package/components/tooltip/tooltip.directive.d.ts +1 -2
  11. package/esm2015/components/kanban/components/kanban-column/kanban-column.component.js +14 -2
  12. package/esm2015/components/kanban/components/kanban-item/kanban-item.component.js +20 -6
  13. package/esm2015/components/kanban/kanban.component.js +26 -18
  14. package/esm2015/components/kanban/models/index.js +1 -1
  15. package/esm2015/components/kanban/models/kanban-data.js +1 -1
  16. package/esm2015/components/navigation-button/navigation-button.component.js +5 -1
  17. package/esm2015/components/tooltip/tooltip.directive.js +7 -14
  18. package/esm5/components/kanban/components/kanban-column/kanban-column.component.js +16 -3
  19. package/esm5/components/kanban/components/kanban-item/kanban-item.component.js +22 -7
  20. package/esm5/components/kanban/kanban.component.js +26 -18
  21. package/esm5/components/kanban/models/index.js +1 -1
  22. package/esm5/components/kanban/models/kanban-data.js +1 -1
  23. package/esm5/components/navigation-button/navigation-button.component.js +5 -1
  24. package/esm5/components/tooltip/tooltip.directive.js +7 -14
  25. package/fesm2015/seniorsistemas-angular-components.js +58 -27
  26. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  27. package/fesm5/seniorsistemas-angular-components.js +60 -27
  28. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  29. package/package.json +1 -1
  30. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -641,14 +641,13 @@
641
641
  TooltipDirective.prototype.updateTooltipVisibilityWhenFocusOnInput = function () {
642
642
  var _this = this;
643
643
  if (this.focusedInputRef) {
644
- var inputFocus = this.focusedInputRef;
645
- var icon_1 = this.getIconFromFocusedInput(inputFocus);
646
- this.renderer.listen(inputFocus, 'focus', function () {
644
+ var icon_1 = this.getIconFromFocusedInput();
645
+ this.renderer.listen(this.focusedInputRef, 'focus', function () {
647
646
  if (icon_1 && _this.isMatchingTooltip(icon_1)) {
648
647
  _this.createTootipByFocus(icon_1);
649
648
  }
650
649
  });
651
- this.renderer.listen(inputFocus, 'blur', function () {
650
+ this.renderer.listen(this.focusedInputRef, 'blur', function () {
652
651
  if (icon_1 && _this.isMatchingTooltip(icon_1)) {
653
652
  _this.removeTooltip(icon_1);
654
653
  _this.destroy();
@@ -658,16 +657,10 @@
658
657
  };
659
658
  /**
660
659
  * Obtém o elemento do ícone associado ao label do input em focus.
661
- * @param focusedInput O input em focus.
662
- * @returns O ícone do input em focus ou null.
660
+ * @returns O ícone do input em focus.
663
661
  */
664
- TooltipDirective.prototype.getIconFromFocusedInput = function (focusedInput) {
665
- var label = document.querySelector("label[for='" + focusedInput.id + "']");
666
- if (label) {
667
- var icon = label.nextElementSibling;
668
- return (icon === null || icon === void 0 ? void 0 : icon.classList.contains('info-sign__icon')) ? icon : null;
669
- }
670
- return null;
662
+ TooltipDirective.prototype.getIconFromFocusedInput = function () {
663
+ return this.elementRef.nativeElement;
671
664
  };
672
665
  /**
673
666
  * Verifica se o ícone tem o tooltip correspondente ao atual.
@@ -14618,6 +14611,8 @@
14618
14611
  var KanbanComponent = /** @class */ (function () {
14619
14612
  function KanbanComponent(kanbanEventService) {
14620
14613
  this.kanbanEventService = kanbanEventService;
14614
+ this.showItemCheckboxes = true;
14615
+ this.showColumnCheckboxes = true;
14621
14616
  this.itemsMoved = new core.EventEmitter();
14622
14617
  this.dataUpdated = new core.EventEmitter();
14623
14618
  this.itemsSelected = new core.EventEmitter();
@@ -14677,6 +14672,8 @@
14677
14672
  this.selectedItems.clear();
14678
14673
  };
14679
14674
  KanbanComponent.prototype.selectItem = function (event, item, column) {
14675
+ if (item.disabled || item.frozen)
14676
+ return;
14680
14677
  if (event.ctrlKey) {
14681
14678
  if (this.selectedItems.delete(item)) {
14682
14679
  this.kanbanEventService.emitUnselectItemEvent(item);
@@ -14691,6 +14688,8 @@
14691
14688
  }
14692
14689
  }
14693
14690
  else {
14691
+ if (this.selectedItems.delete(item))
14692
+ return;
14694
14693
  this.selectedItems.clear();
14695
14694
  this.selectedItems.add(item);
14696
14695
  this.selectedColumn = column;
@@ -14707,9 +14706,7 @@
14707
14706
  this.draggingItems.clear();
14708
14707
  };
14709
14708
  KanbanComponent.prototype.getLinkedColumns = function (currentColumn) {
14710
- return this.data.columns
14711
- .filter(function (column) { return column != currentColumn; })
14712
- .map(function (column) { return column.id; });
14709
+ return this.data.columns.filter(function (column) { return column != currentColumn; }).map(function (column) { return column.id; });
14713
14710
  };
14714
14711
  KanbanComponent.prototype.getColumnHeaderTemplate = function () {
14715
14712
  return this._getCustomTemplate(exports.KanbanTemplateTypes.ColumnHeader);
@@ -14736,7 +14733,7 @@
14736
14733
  .pipe(operators.takeUntil(this._unsubscribe$))
14737
14734
  .subscribe(function (column) {
14738
14735
  column.items
14739
- .filter(function (item) { return !item.disabled; })
14736
+ .filter(function (item) { return !item.disabled && !item.frozen; })
14740
14737
  .forEach(function (item) {
14741
14738
  _this.selectedItems.add(item);
14742
14739
  });
@@ -14766,9 +14763,7 @@
14766
14763
  });
14767
14764
  });
14768
14765
  });
14769
- this.kanbanEventService.unselectItemEvent
14770
- .pipe(operators.takeUntil(this._unsubscribe$))
14771
- .subscribe(function (item) {
14766
+ this.kanbanEventService.unselectItemEvent.pipe(operators.takeUntil(this._unsubscribe$)).subscribe(function (item) {
14772
14767
  _this.selectedItems.delete(item);
14773
14768
  });
14774
14769
  };
@@ -14797,6 +14792,12 @@
14797
14792
  __decorate([
14798
14793
  core.Input()
14799
14794
  ], KanbanComponent.prototype, "data", void 0);
14795
+ __decorate([
14796
+ core.Input()
14797
+ ], KanbanComponent.prototype, "showItemCheckboxes", void 0);
14798
+ __decorate([
14799
+ core.Input()
14800
+ ], KanbanComponent.prototype, "showColumnCheckboxes", void 0);
14800
14801
  __decorate([
14801
14802
  core.Output()
14802
14803
  ], KanbanComponent.prototype, "itemsMoved", void 0);
@@ -14811,9 +14812,9 @@
14811
14812
  ], KanbanComponent.prototype, "templates", void 0);
14812
14813
  KanbanComponent = __decorate([
14813
14814
  core.Component({
14814
- selector: 's-kanban',
14815
- template: "<div class=\"kanban\">\n <s-kanban-column\n *ngFor=\"let column of data.columns\"\n [data]=\"column\"\n [headerTemplate]=\"columnHeaderTemplate\">\n <div\n [id]=\"column.id\"\n style=\"height: 100%; width: 100%;\"\n cdkDropList\n #dynamicList=\"cdkDropList\"\n [cdkDropListData]=\"column.items\"\n [cdkDropListConnectedTo]=\"getLinkedColumns(column)\"\n (cdkDropListDropped)=\"drop($event)\">\n\n <ng-container *ngIf=\"!columnEmptyMessageTemplate; then defaultEmptyMessageTemplate else customEmptyMessageTemplate\"></ng-container>\n\n <ng-template #defaultEmptyMessageTemplate>\n <div *ngIf=\"!column.items.length\" class=\"empty-message\">\n <p class=\"text\">\n <span class=\"fas fa-clock\"></span>&nbsp;\n <span>{{ \"platform.angular_components.count_items_in_target\" | translate:{ count: column.items.length, target: column.title } }}</span>\n </p>\n </div>\n </ng-template>\n\n <ng-template #customEmptyMessageTemplate>\n <ng-container *ngTemplateOutlet=\"columnEmptyMessageTemplate; context: { $implicit: column }\"></ng-container>\n </ng-template>\n\n <div\n *ngFor=\"let item of column.items\"\n cdkDrag\n [cdkDragData]=\"item\"\n [cdkDragDisabled]=\"item.disabled\"\n (cdkDragStarted)=\"dragStarted()\"\n (cdkDragReleased)=\"dragReleased()\"\n (click)=\"selectItem($event, item, column)\">\n \n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n\n <ng-container *cdkDragPreview>\n <ng-container *ngIf=\"selectedItems.size > 1; then itemDraggingTemplate else itemTemplate\"></ng-container>\n </ng-container>\n\n <ng-template #itemTemplate>\n <s-kanban-item\n [item]=\"item\"\n [selected]=\"selectedItems.has(item)\"\n [headerTemplate]=\"itemHeaderTemplate\"\n [bodyTemplate]=\"itemBodyTemplate\"\n [footerTemplate]=\"itemFooterTemplate\">\n </s-kanban-item>\n </ng-template>\n\n <ng-template #itemDraggingTemplate>\n <s-kanban-item-dragging [quantityItems]=\"selectedItems.size\"></s-kanban-item-dragging>\n </ng-template>\n\n <div *cdkDragPlaceholder>\n <div class=\"placeholder\">\n <div class=\"placeholder-line\"></div>\n </div>\n </div>\n </div>\n </div>\n </s-kanban-column>\n</div>\n\n",
14816
- styles: [".kanban{display:-ms-flexbox;display:flex;gap:16px;width:100%}.kanban .empty-message{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:16px}.kanban .empty-message .text{overflow:hidden;text-align:center;text-overflow:ellipsis;width:100%;white-space:nowrap}@media screen and (max-width:600px){.kanban{-ms-flex-direction:column;flex-direction:column}}s-kanban-column{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;min-width:292px}.placeholder{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.placeholder .placeholder-line{background-color:#a5a5b2;height:1px;margin:6px 0;width:50%}"]
14815
+ selector: "s-kanban",
14816
+ template: "<div class=\"kanban\">\n <s-kanban-column\n *ngFor=\"let column of data.columns\"\n [data]=\"column\"\n [showCheckbox]=\"showColumnCheckboxes\"\n [headerTemplate]=\"columnHeaderTemplate\">\n <div\n [id]=\"column.id\"\n style=\"height: 100%; width: 100%;\"\n cdkDropList\n #dynamicList=\"cdkDropList\"\n [cdkDropListData]=\"column.items\"\n [cdkDropListConnectedTo]=\"getLinkedColumns(column)\"\n (cdkDropListDropped)=\"drop($event)\">\n\n <ng-container *ngIf=\"!columnEmptyMessageTemplate; then defaultEmptyMessageTemplate else customEmptyMessageTemplate\"></ng-container>\n\n <ng-template #defaultEmptyMessageTemplate>\n <div *ngIf=\"!column.items.length\" class=\"empty-message\">\n <p class=\"text\">\n <span class=\"fas fa-clock\"></span>&nbsp;\n <span>{{ \"platform.angular_components.count_items_in_target\" | translate:{ count: column.items.length, target: column.title } }}</span>\n </p>\n </div>\n </ng-template>\n\n <ng-template #customEmptyMessageTemplate>\n <ng-container *ngTemplateOutlet=\"columnEmptyMessageTemplate; context: { $implicit: column }\"></ng-container>\n </ng-template>\n\n <div\n *ngFor=\"let item of column.items\"\n cdkDrag\n [cdkDragData]=\"item\"\n [cdkDragDisabled]=\"item.disabled || item.frozen\"\n (cdkDragStarted)=\"dragStarted()\"\n (cdkDragReleased)=\"dragReleased()\"\n (click)=\"selectItem($event, item, column)\">\n \n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n\n <ng-container *cdkDragPreview>\n <ng-container *ngIf=\"selectedItems.size > 1; then itemDraggingTemplate else itemTemplate\"></ng-container>\n </ng-container>\n\n <ng-template #itemTemplate>\n <s-kanban-item\n [item]=\"item\"\n [selected]=\"selectedItems.has(item)\"\n [showCheckbox]=\"showItemCheckboxes\"\n [headerTemplate]=\"itemHeaderTemplate\"\n [bodyTemplate]=\"itemBodyTemplate\"\n [footerTemplate]=\"itemFooterTemplate\">\n </s-kanban-item>\n </ng-template>\n\n <ng-template #itemDraggingTemplate>\n <s-kanban-item-dragging [quantityItems]=\"selectedItems.size\"></s-kanban-item-dragging>\n </ng-template>\n\n <div *cdkDragPlaceholder>\n <div class=\"placeholder\">\n <div class=\"placeholder-line\"></div>\n </div>\n </div>\n </div>\n </div>\n </s-kanban-column>\n</div>\n\n",
14817
+ styles: [".kanban{display:-ms-flexbox;display:flex;gap:16px;overflow:auto;width:100%}.kanban .empty-message{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:16px}.kanban .empty-message .text{overflow:hidden;text-align:center;text-overflow:ellipsis;width:100%;white-space:nowrap}@media screen and (max-width:600px){.kanban{-ms-flex-direction:column;flex-direction:column}}s-kanban-column{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;min-width:292px}.placeholder{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.placeholder .placeholder-line{background-color:#a5a5b2;height:1px;margin:6px 0;width:50%}"]
14817
14818
  })
14818
14819
  ], KanbanComponent);
14819
14820
  return KanbanComponent;
@@ -14822,17 +14823,27 @@
14822
14823
  var KanbanColumnComponent = /** @class */ (function () {
14823
14824
  function KanbanColumnComponent(kanbanEventService) {
14824
14825
  this.kanbanEventService = kanbanEventService;
14826
+ this.showCheckbox = true;
14825
14827
  this.selectionControl = new forms.FormControl(false);
14826
14828
  this._unsubscribe$ = new rxjs.Subject();
14827
14829
  }
14828
14830
  KanbanColumnComponent.prototype.ngOnInit = function () {
14829
14831
  this._validateInputs();
14830
14832
  this._subscriveEvents();
14833
+ this._createTieredOptions();
14831
14834
  };
14832
14835
  KanbanColumnComponent.prototype.ngOnDestroy = function () {
14833
14836
  this._unsubscribe$.next();
14834
14837
  this._unsubscribe$.complete();
14835
14838
  };
14839
+ KanbanColumnComponent.prototype._createTieredOptions = function () {
14840
+ var _this = this;
14841
+ var options = [];
14842
+ this.data.options.forEach(function (option) {
14843
+ options.push(__assign(__assign({}, option), { command: function () { option.command(_this.data); } }));
14844
+ });
14845
+ this.data.options = options;
14846
+ };
14836
14847
  KanbanColumnComponent.prototype._subscriveEvents = function () {
14837
14848
  var _this = this;
14838
14849
  this.selectionControl.valueChanges
@@ -14883,13 +14894,16 @@
14883
14894
  __decorate([
14884
14895
  core.Input()
14885
14896
  ], KanbanColumnComponent.prototype, "data", void 0);
14897
+ __decorate([
14898
+ core.Input()
14899
+ ], KanbanColumnComponent.prototype, "showCheckbox", void 0);
14886
14900
  __decorate([
14887
14901
  core.Input()
14888
14902
  ], KanbanColumnComponent.prototype, "headerTemplate", void 0);
14889
14903
  KanbanColumnComponent = __decorate([
14890
14904
  core.Component({
14891
14905
  selector: "s-kanban-column",
14892
- template: "<div class=\"kanban-column\">\n <div class=\"kanban-column__header\">\n <div class=\"content\">\n <form>\n <input\n type=\"checkbox\"\n name=\"checkbox\"\n [formControl]=\"selectionControl\">\n </form>\n\n <ng-container *ngIf=\"!headerTemplate; then defaultHeaderTemplate else customHeaderTemplate\"></ng-container>\n \n <ng-template #defaultHeaderTemplate>\n <div class=\"header\">\n <span class=\"title\">{{ data.title }} ({{ data.items.length }})</span>\n </div>\n </ng-template>\n \n <ng-template #customHeaderTemplate>\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: data }\"></ng-container>\n </ng-template>\n </div>\n <s-button\n *ngIf=\"data.options\"\n priority=\"default\"\n [disabled]=\"false\"\n [auxiliary]=\"true\"\n size=\"small\"\n [model]=\"data.options\">\n </s-button>\n </div>\n <div class=\"kanban-column__body\">\n <ng-content></ng-content>\n </div>\n</div>",
14906
+ template: "<div class=\"kanban-column\">\n <div class=\"kanban-column__header\">\n <div class=\"content\">\n <form>\n <input\n *ngIf=\"showCheckbox\"\n type=\"checkbox\"\n name=\"checkbox\"\n [formControl]=\"selectionControl\">\n </form>\n\n <ng-container *ngIf=\"!headerTemplate; then defaultHeaderTemplate else customHeaderTemplate\"></ng-container>\n \n <ng-template #defaultHeaderTemplate>\n <div class=\"header\">\n <span class=\"title\">{{ data.title }} ({{ data.items.length }})</span>\n </div>\n </ng-template>\n \n <ng-template #customHeaderTemplate>\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: data }\"></ng-container>\n </ng-template>\n </div>\n <s-button\n *ngIf=\"data.options\"\n priority=\"default\"\n [disabled]=\"false\"\n [auxiliary]=\"true\"\n size=\"small\"\n [model]=\"data.options\">\n </s-button>\n </div>\n <div class=\"kanban-column__body\">\n <ng-content></ng-content>\n </div>\n</div>",
14893
14907
  styles: [".kanban-column{-ms-flex-align:center;align-items:center;background-color:#fbfafc;border:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;min-height:120px;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}.kanban-column .kanban-column__header{-ms-flex-align:center;align-items:center;border-bottom:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:16px 16px 8px;width:100%}.kanban-column .kanban-column__header .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-column .kanban-column__header .content .teste{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-family:\"Open Sans\" sans-serif}.kanban-column .kanban-column__header .content .teste .title{font-size:14px;font-weight:800}.kanban-column .kanban-column__header .content .teste .description{font-size:12px}.kanban-column .kanban-column__body{display:-ms-flexbox;display:flex;height:100%;-ms-flex-pack:center;justify-content:center;width:100%}"]
14894
14908
  })
14895
14909
  ], KanbanColumnComponent);
@@ -14917,7 +14931,11 @@
14917
14931
  function KanbanItemComponent(_kanbanEventService) {
14918
14932
  this._kanbanEventService = _kanbanEventService;
14919
14933
  this.selected = false;
14934
+ this.showCheckbox = true;
14920
14935
  }
14936
+ KanbanItemComponent.prototype.ngOnInit = function () {
14937
+ this._createTieredOptions();
14938
+ };
14921
14939
  KanbanItemComponent.prototype.onSelectedChange = function (value) {
14922
14940
  if (value) {
14923
14941
  this._kanbanEventService.emitSelectItemEvent(this.item);
@@ -14926,6 +14944,14 @@
14926
14944
  this._kanbanEventService.emitUnselectItemEvent(this.item);
14927
14945
  }
14928
14946
  };
14947
+ KanbanItemComponent.prototype._createTieredOptions = function () {
14948
+ var _this = this;
14949
+ var options = [];
14950
+ this.item.options.forEach(function (option) {
14951
+ options.push(__assign(__assign({}, option), { command: function () { option.command(_this.item); } }));
14952
+ });
14953
+ this.item.options = options;
14954
+ };
14929
14955
  KanbanItemComponent.ctorParameters = function () { return [
14930
14956
  { type: KanbanEventService }
14931
14957
  ]; };
@@ -14935,6 +14961,9 @@
14935
14961
  __decorate([
14936
14962
  core.Input()
14937
14963
  ], KanbanItemComponent.prototype, "selected", void 0);
14964
+ __decorate([
14965
+ core.Input()
14966
+ ], KanbanItemComponent.prototype, "showCheckbox", void 0);
14938
14967
  __decorate([
14939
14968
  core.Input()
14940
14969
  ], KanbanItemComponent.prototype, "headerTemplate", void 0);
@@ -14946,9 +14975,9 @@
14946
14975
  ], KanbanItemComponent.prototype, "footerTemplate", void 0);
14947
14976
  KanbanItemComponent = __decorate([
14948
14977
  core.Component({
14949
- selector: 's-kanban-item',
14950
- template: "<p-tieredMenu\n #optionsMenu\n [popup]=\"true\"\n appendTo=\"body\"\n [baseZIndex]=\"9999\"\n [model]=\"item.options\">\n</p-tieredMenu>\n\n<div\n class=\"kanban-item\"\n [ngClass]=\"{\n 'kanban-item--selected': selected && !item.disabled,\n 'kanban-item--disabled': item.disabled\n }\">\n <div class=\"kanban-item__header\">\n <div class=\"content\">\n <form>\n <input\n *ngIf=\"!item.disabled\"\n type=\"checkbox\"\n name=\"checkbox\"\n [(ngModel)]=\"selected\"\n (ngModelChange)=\"onSelectedChange($event)\"\n (click)=\"$event.stopPropagation()\">\n </form>\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: item }\"></ng-container>\n </div>\n <button\n *ngIf=\"item.options && !item.disabled\"\n class=\"options-button\"\n (click)=\"optionsMenu.toggle($event); $event.stopPropagation();\">\n <i class=\"fas fa-ellipsis-v\"></i>\n </button>\n </div>\n <div class=\"kanban-item__body\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: { $implicit: item }\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"kanban-item__footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate; context: { $implicit: item }\"></ng-container> \n </div>\n</div>",
14951
- styles: [".kanban-item{background-color:#fff;border-radius:4px;box-shadow:0 1px 5px 0 rgba(0,0,0,.25);cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:16px;min-width:260px;padding:16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.kanban-item .kanban-item__header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__header .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-item .kanban-item__header .options-button{background-color:transparent;border:none;cursor:pointer;margin-right:-8px;padding:0 8px}.kanban-item .kanban-item__body{margin:16px 0}.kanban-item .kanban-item__footer{border-top:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__footer .date-info{-ms-flex-align:center;align-items:center;color:#6e7280;display:-ms-flexbox;display:flex;font-family:\"Open Sans\" sans-serif;font-size:12px;gap:4px;line-height:150%}.kanban-item--selected{border:1px solid #428bca}.kanban-item--disabled{opacity:50%}"]
14978
+ selector: "s-kanban-item",
14979
+ template: "<p-tieredMenu\n #optionsMenu\n [popup]=\"true\"\n appendTo=\"body\"\n [baseZIndex]=\"9999\"\n [model]=\"item.options\">\n</p-tieredMenu>\n\n<div\n class=\"kanban-item\"\n [ngClass]=\"{\n 'kanban-item--selected': selected && !item.disabled,\n 'kanban-item--disabled': item.disabled,\n 'kanban-item--frozen': !item.disabled && item.frozen\n }\">\n <div class=\"kanban-item__header\">\n <div class=\"content\">\n <form>\n <input\n *ngIf=\"showCheckbox && !item.disabled && !item.frozen\"\n type=\"checkbox\"\n name=\"checkbox\"\n [(ngModel)]=\"selected\"\n (ngModelChange)=\"onSelectedChange($event)\"\n (click)=\"$event.stopPropagation()\">\n </form>\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: item }\"></ng-container>\n </div>\n <button\n *ngIf=\"item.options && !item.disabled\"\n class=\"options-button\"\n (click)=\"optionsMenu.toggle($event); $event.stopPropagation();\">\n <i class=\"fas fa-ellipsis-v\"></i>\n </button>\n </div>\n <div class=\"kanban-item__body\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: { $implicit: item }\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"kanban-item__footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate; context: { $implicit: item }\"></ng-container> \n </div>\n</div>",
14980
+ styles: [".kanban-item{background-color:#fff;border-radius:4px;box-shadow:0 1px 5px 0 rgba(0,0,0,.25);cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:16px;min-width:260px;padding:16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.kanban-item .kanban-item__header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__header .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-item .kanban-item__header .options-button{background-color:transparent;border:none;cursor:pointer;margin-right:-8px;padding:0 8px}.kanban-item .kanban-item__body{margin:16px 0}.kanban-item .kanban-item__footer{border-top:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__footer .date-info{-ms-flex-align:center;align-items:center;color:#6e7280;display:-ms-flexbox;display:flex;font-family:\"Open Sans\" sans-serif;font-size:12px;gap:4px;line-height:150%}.kanban-item--selected{border:1px solid #428bca}.kanban-item--disabled{opacity:50%}.kanban-item--frozen{box-shadow:none}"]
14952
14981
  })
14953
14982
  ], KanbanItemComponent);
14954
14983
  return KanbanItemComponent;
@@ -15014,6 +15043,10 @@
15014
15043
  this._value = this.defaultValue;
15015
15044
  var index = this.steps.findIndex(function (step) { return step.value === _this._value; });
15016
15045
  this.currentIndex = index !== -1 ? index : 0;
15046
+ this.stepChanged.emit({
15047
+ previous: undefined,
15048
+ current: this.steps[this.currentIndex],
15049
+ });
15017
15050
  this.changeDetectorRef.detectChanges();
15018
15051
  }
15019
15052
  };