barsa-kanban 1.0.455 → 1.0.457
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/fesm2022/barsa-kanban.mjs +504 -0
- package/fesm2022/barsa-kanban.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/Models/drop-info.d.ts +8 -8
- package/lib/Models/kanban-view-setting.interface.d.ts +24 -17
- package/lib/avatar-group/barsa-avatar-group.component.d.ts +28 -28
- package/lib/barsa-kanban.module.d.ts +28 -29
- package/lib/kanban-base/kanban-base.component.d.ts +9 -9
- package/lib/kanban-card/kanban-card.component.d.ts +16 -16
- package/lib/kanban-tags/kanban-tags.component.d.ts +16 -16
- package/lib/kanban-view/kanban-view.component.d.ts +54 -40
- package/package.json +5 -13
- package/public-api.d.ts +6 -6
- package/esm2020/barsa-kanban.mjs +0 -5
- package/esm2020/lib/Models/drop-info.mjs +0 -2
- package/esm2020/lib/Models/kanban-view-setting.interface.mjs +0 -2
- package/esm2020/lib/avatar-group/barsa-avatar-group.component.mjs +0 -84
- package/esm2020/lib/barsa-kanban.module.mjs +0 -82
- package/esm2020/lib/kanban-base/kanban-base.component.mjs +0 -20
- package/esm2020/lib/kanban-card/kanban-card.component.mjs +0 -36
- package/esm2020/lib/kanban-tags/kanban-tags.component.mjs +0 -43
- package/esm2020/lib/kanban-view/kanban-view.component.mjs +0 -244
- package/esm2020/public-api.mjs +0 -7
- package/fesm2015/barsa-kanban.mjs +0 -477
- package/fesm2015/barsa-kanban.mjs.map +0 -1
- package/fesm2020/barsa-kanban.mjs +0 -478
- package/fesm2020/barsa-kanban.mjs.map +0 -1
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, Input, ViewChild, inject, signal, ElementRef, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
3
|
+
import * as i4$1 from 'barsa-novin-ray-core';
|
|
4
|
+
import { BaseComponent, BaseViewItemPropsComponent, FormPanelService, ReportViewBaseComponent, MultipleGroupByPipe, SortDirection, BaseModule, BarsaNovinRayCoreModule } from 'barsa-novin-ray-core';
|
|
5
|
+
import * as i1 from '@angular/common';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import * as i2 from '@fundamental-ngx/core/button';
|
|
8
|
+
import * as i3 from '@fundamental-ngx/core/form';
|
|
9
|
+
import * as i4 from '@fundamental-ngx/core/info-label';
|
|
10
|
+
import * as i5 from '@fundamental-ngx/core/popover';
|
|
11
|
+
import * as i6 from '@angular/forms';
|
|
12
|
+
import { FormsModule } from '@angular/forms';
|
|
13
|
+
import * as i1$1 from '@fundamental-ngx/core/avatar';
|
|
14
|
+
import * as i2$1 from '@fundamental-ngx/core/card';
|
|
15
|
+
import * as i3$1 from 'barsa-sap-ui';
|
|
16
|
+
import { BarsaSapUiModule } from 'barsa-sap-ui';
|
|
17
|
+
import { ESCAPE, TAB, SPACE, ENTER } from '@angular/cdk/keycodes';
|
|
18
|
+
import { KeyUtil } from '@fundamental-ngx/core/utils';
|
|
19
|
+
import { AvatarGroupComponent, FundamentalNgxCoreModule } from '@fundamental-ngx/core';
|
|
20
|
+
import * as i2$2 from '@fundamental-ngx/core/bar';
|
|
21
|
+
import * as i4$2 from '@fundamental-ngx/core/list';
|
|
22
|
+
import * as i10 from '@angular/cdk/drag-drop';
|
|
23
|
+
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
24
|
+
import * as i4$3 from '@fundamental-ngx/core/checkbox';
|
|
25
|
+
import * as i5$1 from '@fundamental-ngx/core/layout-grid';
|
|
26
|
+
import * as i6$1 from '@fundamental-ngx/core/layout-panel';
|
|
27
|
+
import * as i7 from '@fundamental-ngx/core/title';
|
|
28
|
+
import * as i8 from '@fundamental-ngx/core/table';
|
|
29
|
+
import { BarsaEchartsModule } from 'barsa-echarts';
|
|
30
|
+
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
31
|
+
import { PlatformMenuModule } from '@fundamental-ngx/platform';
|
|
32
|
+
|
|
33
|
+
class KanbanBaseComponent extends BaseComponent {
|
|
34
|
+
openPopover(e, popover) {
|
|
35
|
+
e.stopPropagation();
|
|
36
|
+
e.preventDefault();
|
|
37
|
+
popover.toggle();
|
|
38
|
+
}
|
|
39
|
+
closePopover(popover) {
|
|
40
|
+
popover.close();
|
|
41
|
+
}
|
|
42
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: KanbanBaseComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
43
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: KanbanBaseComponent, selector: "bk-kanban-base", usesInheritance: true, ngImport: i0, template: "<p>kanban-base works!</p>\r\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
44
|
+
}
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: KanbanBaseComponent, decorators: [{
|
|
46
|
+
type: Component,
|
|
47
|
+
args: [{ selector: 'bk-kanban-base', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<p>kanban-base works!</p>\r\n" }]
|
|
48
|
+
}] });
|
|
49
|
+
|
|
50
|
+
class KanbanTagsComponent extends KanbanBaseComponent {
|
|
51
|
+
constructor() {
|
|
52
|
+
super(...arguments);
|
|
53
|
+
this.colorList = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'];
|
|
54
|
+
this.currentTagLabel = '';
|
|
55
|
+
this.selectedColor = '';
|
|
56
|
+
}
|
|
57
|
+
colorClick(color) {
|
|
58
|
+
this.selectedColor = color;
|
|
59
|
+
}
|
|
60
|
+
addTag() {
|
|
61
|
+
const newTag = { Id: '', $Caption: '' };
|
|
62
|
+
newTag[this.viewSetting.TagColor] = this.selectedColor;
|
|
63
|
+
newTag[this.viewSetting.TagName] = this.currentTagLabel;
|
|
64
|
+
this.tags.push(newTag);
|
|
65
|
+
this.currentTagLabel = '';
|
|
66
|
+
this.selectedColor = '';
|
|
67
|
+
}
|
|
68
|
+
deleteTag(index) {
|
|
69
|
+
this.tags.splice(index, 1);
|
|
70
|
+
}
|
|
71
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: KanbanTagsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
72
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: KanbanTagsComponent, selector: "bk-kanban-tags", inputs: { tags: "tags", viewSetting: "viewSetting" }, usesInheritance: true, ngImport: i0, template: "<div class=\"row tags-container\">\r\n @for (tag of tags; track tag; let i = $index) {\r\n <fd-popover placement=\"bottom\" [closeOnOutsideClick]=\"true\">\r\n <fd-popover-control>\r\n <div class=\"tag\">\r\n <fd-info-label\r\n [label]=\"tag[viewSetting.TagName]\"\r\n [color]=\"tag[viewSetting.TagColor]\"\r\n [title]=\"tag[viewSetting.TagName]\"\r\n ></fd-info-label>\r\n </div>\r\n </fd-popover-control>\r\n <fd-popover-body>\r\n <div class=\"tag-delete\">\r\n <button fd-button (click)=\"deleteTag(i)\" [label]=\"'Delete' | bbbTranslate\" glyph=\"decline\"></button>\r\n </div>\r\n </fd-popover-body>\r\n </fd-popover>\r\n }\r\n\r\n <fd-popover\r\n #tagPopover\r\n [triggers]=\"[]\"\r\n [focusTrapped]=\"false\"\r\n [closeOnOutsideClick]=\"true\"\r\n [noArrow]=\"false\"\r\n placement=\"bottom\"\r\n [focusAutoCapture]=\"true\"\r\n >\r\n <fd-popover-control>\r\n <div>\r\n <button\r\n fd-button\r\n (click)=\"openPopover($event, tagPopover)\"\r\n fdType=\"transparent\"\r\n glyph=\"sys-add\"\r\n ></button>\r\n </div>\r\n </fd-popover-control>\r\n <fd-popover-body>\r\n <div class=\"new-tag\" (keydown.enter)=\"addTag()\">\r\n <div fd-form-item class=\"row\">\r\n <input fd-form-control type=\"text\" [(ngModel)]=\"currentTagLabel\" id=\"input-1\" placeholder=\" \u0646\u0627\u0645\" />\r\n </div>\r\n <div class=\"colors-colection row\">\r\n @for (color of colorList; track color) {\r\n <div\r\n (click)=\"colorClick(color)\"\r\n [ngClass]=\"'fd-info-label--accent-color-' + color\"\r\n [class.selected-color]=\"selectedColor === color\"\r\n class=\"color\"\r\n ></div>\r\n }\r\n </div>\r\n <div class=\"ok-cancel-btns row\">\r\n <button fd-button [label]=\"'Ok' | bbbTranslate\" [fdType]=\"'emphasized'\" (click)=\"addTag()\"></button>\r\n <button\r\n fd-button\r\n [label]=\"'Cancel' | bbbTranslate\"\r\n [fdType]=\"'transparent'\"\r\n (click)=\"closePopover(tagPopover)\"\r\n ></button>\r\n </div>\r\n </div>\r\n </fd-popover-body>\r\n </fd-popover>\r\n</div>\r\n", styles: [":host ::ng-deep .fd-info-label__text{height:auto!important}.row,.new-tag .colors-colection{display:flex;align-items:center}.tags-container{column-gap:10px;flex-wrap:wrap}.new-tag{padding:15px;max-width:200px;row-gap:15px;display:flex;flex-direction:column;justify-content:center;align-items:center}.new-tag .row,.new-tag .colors-colection{column-gap:15px;width:100%}.new-tag .colors-colection{flex-wrap:wrap;row-gap:10px}.new-tag .colors-colection .color{width:40px;height:24px;border-radius:10px;border:1px solid var(--sapBackgroundColor, #f7f7f7)}.new-tag .colors-colection .selected-color{border-color:var(--sapList_SelectionBorderColor, #0854a0)}.ok-cancel-btns{justify-content:flex-end}.tag-delete{display:flex;align-items:center;justify-content:center;width:100px;height:80px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.ButtonComponent, selector: "button[fd-button], a[fd-button], span[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "component", type: i3.FormControlComponent, selector: "input[fd-form-control], textarea[fd-form-control]", inputs: ["state", "type", "class", "ariaLabel", "ariaLabelledBy"] }, { kind: "component", type: i3.FormItemComponent, selector: "[fd-form-item]", inputs: ["isInline", "horizontal"] }, { kind: "component", type: i4.InfoLabelComponent, selector: "fd-info-label", inputs: ["class", "type", "glyph", "font", "color", "label", "title", "ariaLabel", "ariaLabelledBy"] }, { kind: "component", type: i5.PopoverControlComponent, selector: "fd-popover-control, [fdPopoverControl]" }, { kind: "component", type: i5.PopoverBodyComponent, selector: "fd-popover-body", inputs: ["minWidth", "maxWidth", "minHeight", "maxHeight"] }, { kind: "component", type: i5.PopoverComponent, selector: "fd-popover", inputs: ["title", "trigger", "fixedPosition", "id", "mobile", "mobileConfig", "preventSpaceKeyScroll"] }, { kind: "directive", type: i6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i4$1.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
73
|
+
}
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: KanbanTagsComponent, decorators: [{
|
|
75
|
+
type: Component,
|
|
76
|
+
args: [{ selector: 'bk-kanban-tags', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"row tags-container\">\r\n @for (tag of tags; track tag; let i = $index) {\r\n <fd-popover placement=\"bottom\" [closeOnOutsideClick]=\"true\">\r\n <fd-popover-control>\r\n <div class=\"tag\">\r\n <fd-info-label\r\n [label]=\"tag[viewSetting.TagName]\"\r\n [color]=\"tag[viewSetting.TagColor]\"\r\n [title]=\"tag[viewSetting.TagName]\"\r\n ></fd-info-label>\r\n </div>\r\n </fd-popover-control>\r\n <fd-popover-body>\r\n <div class=\"tag-delete\">\r\n <button fd-button (click)=\"deleteTag(i)\" [label]=\"'Delete' | bbbTranslate\" glyph=\"decline\"></button>\r\n </div>\r\n </fd-popover-body>\r\n </fd-popover>\r\n }\r\n\r\n <fd-popover\r\n #tagPopover\r\n [triggers]=\"[]\"\r\n [focusTrapped]=\"false\"\r\n [closeOnOutsideClick]=\"true\"\r\n [noArrow]=\"false\"\r\n placement=\"bottom\"\r\n [focusAutoCapture]=\"true\"\r\n >\r\n <fd-popover-control>\r\n <div>\r\n <button\r\n fd-button\r\n (click)=\"openPopover($event, tagPopover)\"\r\n fdType=\"transparent\"\r\n glyph=\"sys-add\"\r\n ></button>\r\n </div>\r\n </fd-popover-control>\r\n <fd-popover-body>\r\n <div class=\"new-tag\" (keydown.enter)=\"addTag()\">\r\n <div fd-form-item class=\"row\">\r\n <input fd-form-control type=\"text\" [(ngModel)]=\"currentTagLabel\" id=\"input-1\" placeholder=\" \u0646\u0627\u0645\" />\r\n </div>\r\n <div class=\"colors-colection row\">\r\n @for (color of colorList; track color) {\r\n <div\r\n (click)=\"colorClick(color)\"\r\n [ngClass]=\"'fd-info-label--accent-color-' + color\"\r\n [class.selected-color]=\"selectedColor === color\"\r\n class=\"color\"\r\n ></div>\r\n }\r\n </div>\r\n <div class=\"ok-cancel-btns row\">\r\n <button fd-button [label]=\"'Ok' | bbbTranslate\" [fdType]=\"'emphasized'\" (click)=\"addTag()\"></button>\r\n <button\r\n fd-button\r\n [label]=\"'Cancel' | bbbTranslate\"\r\n [fdType]=\"'transparent'\"\r\n (click)=\"closePopover(tagPopover)\"\r\n ></button>\r\n </div>\r\n </div>\r\n </fd-popover-body>\r\n </fd-popover>\r\n</div>\r\n", styles: [":host ::ng-deep .fd-info-label__text{height:auto!important}.row,.new-tag .colors-colection{display:flex;align-items:center}.tags-container{column-gap:10px;flex-wrap:wrap}.new-tag{padding:15px;max-width:200px;row-gap:15px;display:flex;flex-direction:column;justify-content:center;align-items:center}.new-tag .row,.new-tag .colors-colection{column-gap:15px;width:100%}.new-tag .colors-colection{flex-wrap:wrap;row-gap:10px}.new-tag .colors-colection .color{width:40px;height:24px;border-radius:10px;border:1px solid var(--sapBackgroundColor, #f7f7f7)}.new-tag .colors-colection .selected-color{border-color:var(--sapList_SelectionBorderColor, #0854a0)}.ok-cancel-btns{justify-content:flex-end}.tag-delete{display:flex;align-items:center;justify-content:center;width:100px;height:80px}\n"] }]
|
|
77
|
+
}], propDecorators: { tags: [{
|
|
78
|
+
type: Input
|
|
79
|
+
}], viewSetting: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}] } });
|
|
82
|
+
|
|
83
|
+
class KanbanCardComponent extends BaseViewItemPropsComponent {
|
|
84
|
+
constructor() {
|
|
85
|
+
super(...arguments);
|
|
86
|
+
this.moTasksCount = 4;
|
|
87
|
+
this.moFinishedTasksCount = 2;
|
|
88
|
+
}
|
|
89
|
+
ngOnInit() {
|
|
90
|
+
super.ngOnInit();
|
|
91
|
+
this.moTaskPercentage = Math.floor((this.moFinishedTasksCount / this.moTasksCount) * 100);
|
|
92
|
+
}
|
|
93
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: KanbanCardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
94
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: KanbanCardComponent, selector: "bk-kanban-card", inputs: { index: "index", mo: "mo", viewSetting: "viewSetting", allAvailableAssignees: "allAvailableAssignees" }, providers: [FormPanelService], usesInheritance: true, ngImport: i0, template: "<div #trEl [applyConditionalFormats]=\"conditionalFormats\" [styleIndex]=\"styleIndex\" [hostEl]=\"trEl\">\r\n <fd-card [interactive]=\"true\" role=\"listitem\" (click)=\"onRowCheck()\" [class.selected]=\"isChecked\">\r\n <fd-card-header>\r\n <fd-card-main-header>\r\n @if(viewSetting.PictureField){\r\n <fd-avatar\r\n [glyph]=\"'travel-expense'\"\r\n [image]=\"\"\r\n size=\"s\"\r\n ariaLabel=\"avatar image\"\r\n title=\"avatar image\"\r\n ></fd-avatar>\r\n }\r\n <h2\r\n fd-card-title\r\n #hEl\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n [styleIndex]=\"styleIndex\"\r\n [hostEl]=\"hEl\"\r\n [dbName]=\"(allColumns | findColumnByDbName: viewSetting.TitleField)?.Name\"\r\n [mo]=\"mo\"\r\n >\r\n {{ viewSetting.TitleField | rval: mo:allColumns:true }}\r\n </h2>\r\n @if(viewSetting.SubtitleField){\r\n <h3\r\n fd-card-subtitle\r\n #hElSubtitle\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n [styleIndex]=\"styleIndex\"\r\n [hostEl]=\"hElSubtitle\"\r\n [dbName]=\"(allColumns | findColumnByDbName: viewSetting.SubtitleField)?.Name\"\r\n >\r\n {{ viewSetting.SubtitleField | rval: mo:allColumns:true }}\r\n </h3>\r\n } @if(viewSetting.CounterField){\r\n <span\r\n fd-card-counter\r\n #hElCounter\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n [styleIndex]=\"styleIndex\"\r\n [hostEl]=\"hElCounter\"\r\n [dbName]=\"(allColumns | findColumnByDbName: viewSetting.CounterField)?.Name\"\r\n [mo]=\"mo\"\r\n >{{ viewSetting.CounterField | rval: mo:allColumns:true }}\r\n </span>\r\n }\r\n <!-- <button\r\n fd-button\r\n fd-card-header-action\r\n fdType=\"transparent\"\r\n glyph=\"overflow\"\r\n ariaLabel=\"More\"\r\n title=\"More\"\r\n ></button> -->\r\n </fd-card-main-header>\r\n @if(viewSetting.HeaderRowOneField || viewSetting.HeaderRowTwoField || viewSetting.HeaderRowRightField ){\r\n <fd-card-extended-header [align]=\"'bottom'\">\r\n <div fd-card-header-column>\r\n @if(viewSetting.HeaderRowOneField){\r\n <div fd-card-header-row>\r\n <span\r\n #hElHeaderRowOneField\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n [styleIndex]=\"styleIndex\"\r\n [hostEl]=\"hElHeaderRowOneField\"\r\n [dbName]=\"(allColumns | findColumnByDbName: viewSetting.HeaderRowOneField)?.Name\"\r\n >\r\n {{ viewSetting.HeaderRowOneField | rval: mo:allColumns:true }}\r\n </span>\r\n </div>\r\n } @if(viewSetting.HeaderRowTwoField){\r\n <div fd-card-header-row>\r\n <span\r\n #elHeaderRowTwoField\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n [styleIndex]=\"styleIndex\"\r\n [hostEl]=\"elHeaderRowTwoField\"\r\n [dbName]=\"(allColumns | findColumnByDbName: viewSetting.HeaderRowTwoField)?.Name\"\r\n >\r\n {{ viewSetting.HeaderRowTwoField | rval: mo:allColumns:true }}\r\n </span>\r\n </div>\r\n }\r\n </div>\r\n <div fd-card-header-column [align]=\"'right'\">\r\n @if(viewSetting.HeaderRowRightField){\r\n <div fd-card-header-row>\r\n <span\r\n #elHeaderRowRightField\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n [styleIndex]=\"styleIndex\"\r\n [hostEl]=\"elHeaderRowRightField\"\r\n [dbName]=\"(allColumns | findColumnByDbName: viewSetting.HeaderRowRightField)?.Name\"\r\n >{{ viewSetting.HeaderRowRightField | rval: mo:allColumns:true }}</span\r\n >\r\n </div>\r\n }\r\n </div>\r\n </fd-card-extended-header>\r\n }\r\n </fd-card-header>\r\n <!-- <fd-card-footer>\r\n <button *fdCardFooterActionItem fd-button fdType=\"positive\">Approve</button>\r\n <button *fdCardFooterActionItem fd-button fdType=\"negative\">Reject</button>\r\n </fd-card-footer> -->\r\n </fd-card>\r\n</div>\r\n<ng-template #columnTemplate let-column let-mo=\"mo\" let-index=\"index\" let-layout94=\"layout94\" let-ischecked=\"ischecked\"\r\n >@if (column) {\r\n <div\r\n #divEl\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n [styleIndex]=\"styleIndex\"\r\n [hostEl]=\"divEl\"\r\n [dbName]=\"column.Name\"\r\n >\r\n <bsu-column-renderer\r\n [mo]=\"mo\"\r\n [column]=\"column\"\r\n [value]=\"column | columnValue: mo | bbbTranslate\"\r\n [icon]=\"column | columnIcon: mo\"\r\n [editMode]=\"isChecked && inlineEditMode && allowInlineEdit\"\r\n [rtl]=\"rtl\"\r\n [isChecked]=\"isChecked\"\r\n [deviceName]=\"deviceName\"\r\n [deviceSize]=\"deviceSize\"\r\n [index]=\"index\"\r\n [controlUi]=\"column.Caption | controlUi: layout94:column.Name\"\r\n (keyup.control.enter)=\"onEditFormPanelSave($event)\"\r\n (keyup.esc)=\"onEditFormPanelCancel($event)\"\r\n (keydown.Tab)=\"onTabKeyDown($event, index)\"\r\n [formLayoutShowLabel]=\"true\"\r\n ></bsu-column-renderer>\r\n </div>\r\n }\r\n</ng-template>\r\n", styles: [":host{position:relative}:host.selected{background-color:var(--sapList_SelectionBackgroundColor, #e5f0fa)}:host.selected fd-card{border-color:var(--sapList_SelectionBorderColor, #0854a0)}:host fd-card,:host fd-card-header,:host .fd-bar--footer,:host fd-quick-view-subheader .fd-bar{background-color:inherit!important}:host fd-card ::ng-deep .fd-card__header-main{background-color:transparent}.row{display:flex;align-items:center}.fd-card{box-shadow:0 0 .125rem #22354833,0 .125rem .25rem #22354833}.fd-card:hover .card-menu fdp-button{display:block}.fd-card .card-menu{position:absolute;right:1rem;top:1rem;background-color:#fff}.fd-card .card-menu fdp-button{display:none}.fd-card .card-menu [aria-controls=fdp-menu-basic-menu]{display:block}.fd-card .task-cover{width:100%;height:150px;justify-content:center}.fd-card .task-cover img{object-fit:cover;width:100%;height:100%}.fd-card fd-card-content{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;row-gap:20px;padding:1rem}.fd-card fd-card-content .progress-indicator{flex:1}.fd-card fd-card-content .progress-indicator ::ng-deep .fd-progress-indicator__remaining{display:flex;align-items:center}.fd-card ::ng-deep fd-info-label .fd-info-label__text{display:inline-flex!important}.kanban-footer{padding:1rem;column-gap:10px}.kanban-footer .comment,.kanban-footer .attachment,.kanban-footer .task{column-gap:2px}.kanban-footer .task{margin-right:auto}.kanban-footer .task .circle-icon{width:calc(var(--sapFontSize, .875rem) + 6px);height:calc(var(--sapFontSize, .875rem) + 6px);border-radius:calc(var(--sapFontSize, .875rem) + 6px);border:1px solid var(--sapButton_BorderColor, #0854a0);display:flex;align-items:center;justify-content:center}.column-data.first ::ng-deep div.ellapsis{font-weight:700;font-family:IRANYekanDigits}\n"], dependencies: [{ kind: "component", type: i1$1.AvatarComponent, selector: "fd-avatar", inputs: ["class", "id", "ariaLabel", "ariaLabelledby", "label", "size", "font", "glyph", "zoomGlyph", "circle", "transparent", "contain", "placeholder", "tile", "border", "colorAccent", "colorIndication", "random", "clickable", "valueState", "image", "alterIcon", "backupImage"], outputs: ["avatarClicked", "zoomGlyphClicked"] }, { kind: "component", type: i2$1.CardComponent, selector: "fd-card", inputs: ["badge", "badgeIcon", "badgeColor", "badgeColorSecondary", "badgeStatus", "badgeAriaLabel", "secondBadge", "secondBadgeIcon", "secondBadgeColor", "secondBadgeColorSecondary", "secondBadgeStatus", "secondBadgeAriaLabel", "isLoading", "cardType", "id", "ariaRoledescription", "ariaDescription", "ariaLabel", "role", "interactive", "selected", "ariaPosinset", "ariaSetsize"], outputs: ["ariaPosinsetChange", "ariaSetsizeChange"] }, { kind: "component", type: i2$1.CardHeaderComponent, selector: "fd-card-header", inputs: ["ariaRoleDescription"] }, { kind: "component", type: i2$1.CardMainHeaderComponent, selector: "fd-card-main-header", inputs: ["interactive", "title"] }, { kind: "component", type: i2$1.CardExtendedHeaderComponent, selector: "fd-card-extended-header", inputs: ["ariaRoleDescription", "align"] }, { kind: "directive", type: i2$1.CardHeaderRowDirective, selector: "[fd-card-header-row]" }, { kind: "directive", type: i2$1.CardHeaderColumnDirective, selector: "[fd-card-header-column]", inputs: ["align"] }, { kind: "directive", type: i2$1.CardTitleDirective, selector: "[fd-card-title]", inputs: ["id"] }, { kind: "directive", type: i2$1.CardSubtitleDirective, selector: "[fd-card-subtitle]" }, { kind: "directive", type: i2$1.CardCounterDirective, selector: "[fd-card-counter]", inputs: ["status"] }, { kind: "component", type: i3$1.ColumnRendererComponent, selector: "bsu-column-renderer,[colRenderer]", inputs: ["column", "allColumns", "mo", "index", "editMode", "customRowHeight", "controlUi", "formLayoutShowLabel", "isChecked", "isNewInlineMo", "containerDom", "disableEllapsis", "rtl", "isMobile", "fdTextMode", "deviceName", "deviceSize", "value", "icon"] }, { kind: "directive", type: i3$1.ApplyConditionalFormatsDirective, selector: "[applyConditionalFormats]", inputs: ["applyConditionalFormats", "styleIndex", "hostEl", "dbName"] }, { kind: "pipe", type: i4$1.MoReportValuePipe, name: "rval" }, { kind: "pipe", type: i4$1.BbbTranslatePipe, name: "bbbTranslate" }, { kind: "pipe", type: i4$1.ControlUiPipe, name: "controlUi" }, { kind: "pipe", type: i4$1.FindColumnByDbNamePipe, name: "findColumnByDbName" }, { kind: "pipe", type: i4$1.ColumnIconPipe, name: "columnIcon" }, { kind: "pipe", type: i4$1.ColumnValuePipe, name: "columnValue" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
95
|
+
}
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: KanbanCardComponent, decorators: [{
|
|
97
|
+
type: Component,
|
|
98
|
+
args: [{ selector: 'bk-kanban-card', providers: [FormPanelService], changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div #trEl [applyConditionalFormats]=\"conditionalFormats\" [styleIndex]=\"styleIndex\" [hostEl]=\"trEl\">\r\n <fd-card [interactive]=\"true\" role=\"listitem\" (click)=\"onRowCheck()\" [class.selected]=\"isChecked\">\r\n <fd-card-header>\r\n <fd-card-main-header>\r\n @if(viewSetting.PictureField){\r\n <fd-avatar\r\n [glyph]=\"'travel-expense'\"\r\n [image]=\"\"\r\n size=\"s\"\r\n ariaLabel=\"avatar image\"\r\n title=\"avatar image\"\r\n ></fd-avatar>\r\n }\r\n <h2\r\n fd-card-title\r\n #hEl\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n [styleIndex]=\"styleIndex\"\r\n [hostEl]=\"hEl\"\r\n [dbName]=\"(allColumns | findColumnByDbName: viewSetting.TitleField)?.Name\"\r\n [mo]=\"mo\"\r\n >\r\n {{ viewSetting.TitleField | rval: mo:allColumns:true }}\r\n </h2>\r\n @if(viewSetting.SubtitleField){\r\n <h3\r\n fd-card-subtitle\r\n #hElSubtitle\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n [styleIndex]=\"styleIndex\"\r\n [hostEl]=\"hElSubtitle\"\r\n [dbName]=\"(allColumns | findColumnByDbName: viewSetting.SubtitleField)?.Name\"\r\n >\r\n {{ viewSetting.SubtitleField | rval: mo:allColumns:true }}\r\n </h3>\r\n } @if(viewSetting.CounterField){\r\n <span\r\n fd-card-counter\r\n #hElCounter\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n [styleIndex]=\"styleIndex\"\r\n [hostEl]=\"hElCounter\"\r\n [dbName]=\"(allColumns | findColumnByDbName: viewSetting.CounterField)?.Name\"\r\n [mo]=\"mo\"\r\n >{{ viewSetting.CounterField | rval: mo:allColumns:true }}\r\n </span>\r\n }\r\n <!-- <button\r\n fd-button\r\n fd-card-header-action\r\n fdType=\"transparent\"\r\n glyph=\"overflow\"\r\n ariaLabel=\"More\"\r\n title=\"More\"\r\n ></button> -->\r\n </fd-card-main-header>\r\n @if(viewSetting.HeaderRowOneField || viewSetting.HeaderRowTwoField || viewSetting.HeaderRowRightField ){\r\n <fd-card-extended-header [align]=\"'bottom'\">\r\n <div fd-card-header-column>\r\n @if(viewSetting.HeaderRowOneField){\r\n <div fd-card-header-row>\r\n <span\r\n #hElHeaderRowOneField\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n [styleIndex]=\"styleIndex\"\r\n [hostEl]=\"hElHeaderRowOneField\"\r\n [dbName]=\"(allColumns | findColumnByDbName: viewSetting.HeaderRowOneField)?.Name\"\r\n >\r\n {{ viewSetting.HeaderRowOneField | rval: mo:allColumns:true }}\r\n </span>\r\n </div>\r\n } @if(viewSetting.HeaderRowTwoField){\r\n <div fd-card-header-row>\r\n <span\r\n #elHeaderRowTwoField\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n [styleIndex]=\"styleIndex\"\r\n [hostEl]=\"elHeaderRowTwoField\"\r\n [dbName]=\"(allColumns | findColumnByDbName: viewSetting.HeaderRowTwoField)?.Name\"\r\n >\r\n {{ viewSetting.HeaderRowTwoField | rval: mo:allColumns:true }}\r\n </span>\r\n </div>\r\n }\r\n </div>\r\n <div fd-card-header-column [align]=\"'right'\">\r\n @if(viewSetting.HeaderRowRightField){\r\n <div fd-card-header-row>\r\n <span\r\n #elHeaderRowRightField\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n [styleIndex]=\"styleIndex\"\r\n [hostEl]=\"elHeaderRowRightField\"\r\n [dbName]=\"(allColumns | findColumnByDbName: viewSetting.HeaderRowRightField)?.Name\"\r\n >{{ viewSetting.HeaderRowRightField | rval: mo:allColumns:true }}</span\r\n >\r\n </div>\r\n }\r\n </div>\r\n </fd-card-extended-header>\r\n }\r\n </fd-card-header>\r\n <!-- <fd-card-footer>\r\n <button *fdCardFooterActionItem fd-button fdType=\"positive\">Approve</button>\r\n <button *fdCardFooterActionItem fd-button fdType=\"negative\">Reject</button>\r\n </fd-card-footer> -->\r\n </fd-card>\r\n</div>\r\n<ng-template #columnTemplate let-column let-mo=\"mo\" let-index=\"index\" let-layout94=\"layout94\" let-ischecked=\"ischecked\"\r\n >@if (column) {\r\n <div\r\n #divEl\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n [styleIndex]=\"styleIndex\"\r\n [hostEl]=\"divEl\"\r\n [dbName]=\"column.Name\"\r\n >\r\n <bsu-column-renderer\r\n [mo]=\"mo\"\r\n [column]=\"column\"\r\n [value]=\"column | columnValue: mo | bbbTranslate\"\r\n [icon]=\"column | columnIcon: mo\"\r\n [editMode]=\"isChecked && inlineEditMode && allowInlineEdit\"\r\n [rtl]=\"rtl\"\r\n [isChecked]=\"isChecked\"\r\n [deviceName]=\"deviceName\"\r\n [deviceSize]=\"deviceSize\"\r\n [index]=\"index\"\r\n [controlUi]=\"column.Caption | controlUi: layout94:column.Name\"\r\n (keyup.control.enter)=\"onEditFormPanelSave($event)\"\r\n (keyup.esc)=\"onEditFormPanelCancel($event)\"\r\n (keydown.Tab)=\"onTabKeyDown($event, index)\"\r\n [formLayoutShowLabel]=\"true\"\r\n ></bsu-column-renderer>\r\n </div>\r\n }\r\n</ng-template>\r\n", styles: [":host{position:relative}:host.selected{background-color:var(--sapList_SelectionBackgroundColor, #e5f0fa)}:host.selected fd-card{border-color:var(--sapList_SelectionBorderColor, #0854a0)}:host fd-card,:host fd-card-header,:host .fd-bar--footer,:host fd-quick-view-subheader .fd-bar{background-color:inherit!important}:host fd-card ::ng-deep .fd-card__header-main{background-color:transparent}.row{display:flex;align-items:center}.fd-card{box-shadow:0 0 .125rem #22354833,0 .125rem .25rem #22354833}.fd-card:hover .card-menu fdp-button{display:block}.fd-card .card-menu{position:absolute;right:1rem;top:1rem;background-color:#fff}.fd-card .card-menu fdp-button{display:none}.fd-card .card-menu [aria-controls=fdp-menu-basic-menu]{display:block}.fd-card .task-cover{width:100%;height:150px;justify-content:center}.fd-card .task-cover img{object-fit:cover;width:100%;height:100%}.fd-card fd-card-content{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;row-gap:20px;padding:1rem}.fd-card fd-card-content .progress-indicator{flex:1}.fd-card fd-card-content .progress-indicator ::ng-deep .fd-progress-indicator__remaining{display:flex;align-items:center}.fd-card ::ng-deep fd-info-label .fd-info-label__text{display:inline-flex!important}.kanban-footer{padding:1rem;column-gap:10px}.kanban-footer .comment,.kanban-footer .attachment,.kanban-footer .task{column-gap:2px}.kanban-footer .task{margin-right:auto}.kanban-footer .task .circle-icon{width:calc(var(--sapFontSize, .875rem) + 6px);height:calc(var(--sapFontSize, .875rem) + 6px);border-radius:calc(var(--sapFontSize, .875rem) + 6px);border:1px solid var(--sapButton_BorderColor, #0854a0);display:flex;align-items:center;justify-content:center}.column-data.first ::ng-deep div.ellapsis{font-weight:700;font-family:IRANYekanDigits}\n"] }]
|
|
99
|
+
}], propDecorators: { index: [{
|
|
100
|
+
type: Input
|
|
101
|
+
}], mo: [{
|
|
102
|
+
type: Input
|
|
103
|
+
}], viewSetting: [{
|
|
104
|
+
type: Input
|
|
105
|
+
}], allAvailableAssignees: [{
|
|
106
|
+
type: Input
|
|
107
|
+
}] } });
|
|
108
|
+
|
|
109
|
+
class BarsaAvatarGroupComponent extends KanbanBaseComponent {
|
|
110
|
+
constructor() {
|
|
111
|
+
super(...arguments);
|
|
112
|
+
this.visibleFields = [];
|
|
113
|
+
this.size = 'l';
|
|
114
|
+
this.personDetails = null;
|
|
115
|
+
this.overflowPopoverStage = 'main';
|
|
116
|
+
}
|
|
117
|
+
get isDetailStage() {
|
|
118
|
+
return this.overflowPopoverStage === 'detail';
|
|
119
|
+
}
|
|
120
|
+
isOpenChanged(isOpened) {
|
|
121
|
+
if (isOpened) {
|
|
122
|
+
this.openOverflowMain();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
newItem(newItem) {
|
|
126
|
+
const exist = this.existedItems.find((item) => item.Id === newItem.Id);
|
|
127
|
+
if (!exist) {
|
|
128
|
+
this.existedItems.push(newItem);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
deleteAvatar(idx) {
|
|
132
|
+
this.existedItems.splice(idx, 1);
|
|
133
|
+
}
|
|
134
|
+
openOverflowMain() {
|
|
135
|
+
this.personDetails = null;
|
|
136
|
+
this.overflowPopoverStage = 'main';
|
|
137
|
+
setTimeout(() => this.popoverBodyComponent?._focusFirstTabbableElement(), 0);
|
|
138
|
+
}
|
|
139
|
+
handleControlClick(event, popover) {
|
|
140
|
+
popover.open();
|
|
141
|
+
}
|
|
142
|
+
handleControlKeydown(event, popover) {
|
|
143
|
+
if (!KeyUtil.isKeyCode(event, [ESCAPE, TAB, SPACE, ENTER])) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
if (KeyUtil.isKeyCode(event, [ESCAPE, TAB])) {
|
|
147
|
+
popover.close();
|
|
148
|
+
}
|
|
149
|
+
if (KeyUtil.isKeyCode(event, [SPACE, ENTER])) {
|
|
150
|
+
popover.open();
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BarsaAvatarGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
154
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: BarsaAvatarGroupComponent, selector: "bk-avatar-group", inputs: { existedItems: "existedItems", availableItems: "availableItems", viewSetting: "viewSetting", visibleFields: "visibleFields", addItem: "addItem", size: "size" }, viewQueries: [{ propertyName: "popoverBodyComponent", first: true, predicate: ["overflowPopoverBody"], descendants: true }, { propertyName: "avatarGroupCom", first: true, predicate: AvatarGroupComponent, descendants: true, read: AvatarGroupComponent, static: true }], usesInheritance: true, ngImport: i0, template: "<fd-avatar-group #avatarGroupCom type=\"group\" [size]=\"size\">\r\n <fd-popover\r\n [noArrow]=\"false\"\r\n [focusTrapped]=\"true\"\r\n [focusAutoCapture]=\"true\"\r\n [triggers]=\"[]\"\r\n [closeOnOutsideClick]=\"true\"\r\n [closeOnEscapeKey]=\"true\"\r\n (isOpenChange)=\"isOpenChanged($event)\"\r\n placement=\"bottom\"\r\n [maxWidth]=\"312\"\r\n #overflowPopover\r\n >\r\n <fd-popover-control\r\n fd-avatar-group-popover-control\r\n [attr.aria-label]=\"\r\n 'Has popup type dialog Conjoined avatars, ' +\r\n ' avatars displayed, ' +\r\n 1 +\r\n ' avatars hidden, activate for complete list'\r\n \"\r\n (click)=\"handleControlClick($event, overflowPopover)\"\r\n (keydown)=\"handleControlKeydown($event, overflowPopover)\"\r\n >\r\n @for (person of existedItems; track person) {\r\n <div fd-avatar-group-item>\r\n @if (!person[viewSetting.AssigneeImage]) {\r\n <fd-avatar\r\n [label]=\"person[viewSetting.AssigneeName]\"\r\n [title]=\"person[viewSetting.AssigneeName]\"\r\n [ariaLabel]=\"person[viewSetting.AssigneeName] + ' avatar'\"\r\n role=\"img\"\r\n [circle]=\"true\"\r\n [border]=\"true\"\r\n [size]=\"size\"\r\n ></fd-avatar>\r\n } @if (person[viewSetting.AssigneeImage]; as avatar) {\r\n <fd-avatar\r\n role=\"img\"\r\n [title]=\"person[viewSetting.AssigneeName]\"\r\n [ariaLabel]=\"person[viewSetting.AssigneeName] + ' avatar'\"\r\n [circle]=\"true\"\r\n [border]=\"true\"\r\n [size]=\"size\"\r\n [image]=\"(avatar.FileId | picFieldSrc: 'ID':person.Id) || ''\"\r\n >\r\n </fd-avatar>\r\n }\r\n </div>\r\n }\r\n <button fd-button fd-avatar-group-overflow-button tabindex=\"-1\" [compact]=\"false\" [size]=\"size\">\r\n <bdi fd-avatar-group-overflow-button-text> 1 </bdi>\r\n </button>\r\n </fd-popover-control>\r\n <fd-popover-body #overflowPopoverBody aria-labelledby=\"avatar-group-1-popover-header\" role=\"tooltip\">\r\n <div class=\"fd-popover__wrapper\">\r\n <div fd-popover-body-header>\r\n <div fd-bar barDesign=\"header\">\r\n <div fd-bar-left>\r\n @if (isDetailStage) {\r\n <fd-button-bar\r\n (click)=\"openOverflowMain()\"\r\n glyph=\"navigation-left-arrow\"\r\n fdType=\"transparent\"\r\n aria-label=\"Back\"\r\n title=\"Back\"\r\n ></fd-button-bar>\r\n }\r\n <fd-bar-element id=\"avatar-group-1-popover-header\">\r\n {{ isDetailStage ? 'Business Card' : 'Team Members (' + existedItems?.length + ')' }}\r\n </fd-bar-element>\r\n @if (isDetailStage) {\r\n <fd-bar-element> </fd-bar-element>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n fd-avatar-group-overflow-body\r\n [noPadding]=\"isDetailStage\"\r\n [noHorizontalScroll]=\"isDetailStage\"\r\n [noVerticalScroll]=\"false\"\r\n >\r\n @if (overflowPopoverStage === 'main') { @for (person of existedItems; track person; let idx =\r\n $index) {\r\n <div fd-avatar-group-overflow-item>\r\n <fd-popover [triggers]=\"['click']\">\r\n <fd-popover-control>\r\n @if (!person[viewSetting.AssigneeImage]) {\r\n <fd-avatar\r\n fd-avatar-group-focusable-avatar\r\n [circle]=\"true\"\r\n size=\"s\"\r\n [label]=\"person[viewSetting.AssigneeName]\"\r\n [title]=\"person[viewSetting.AssigneeName]\"\r\n [ariaLabel]=\"person[viewSetting.AssigneeName] + ' avatar'\"\r\n role=\"img\"\r\n ></fd-avatar>\r\n } @if (person[viewSetting.AssigneeImage]; as avatar) {\r\n <fd-avatar\r\n fd-avatar-group-focusable-avatar\r\n role=\"img\"\r\n [title]=\"person[viewSetting.AssigneeName]\"\r\n [ariaLabel]=\"person[viewSetting.AssigneeName] + ' avatar'\"\r\n [circle]=\"true\"\r\n size=\"s\"\r\n [image]=\"(avatar.FileId | picFieldSrc: 'ID':person.Id) || ''\"\r\n ></fd-avatar>\r\n }\r\n </fd-popover-control>\r\n <fd-popover-body>\r\n <div class=\"avatar-actions\">\r\n <button\r\n fd-button\r\n (click)=\"deleteAvatar(idx)\"\r\n [label]=\"'Delete' | bbbTranslate\"\r\n glyph=\"decline\"\r\n ></button>\r\n <button fd-button [label]=\"'Show' | bbbTranslate\" glyph=\"detail-view\"></button>\r\n </div>\r\n </fd-popover-body>\r\n </fd-popover>\r\n </div>\r\n } }\r\n </div>\r\n </div>\r\n </fd-popover-body>\r\n </fd-popover>\r\n</fd-avatar-group>\r\n\r\n@if (addItem) {\r\n<fd-popover\r\n #peoplePopover\r\n [triggers]=\"[]\"\r\n [focusTrapped]=\"false\"\r\n [closeOnOutsideClick]=\"true\"\r\n [noArrow]=\"false\"\r\n placement=\"bottom\"\r\n [focusAutoCapture]=\"true\"\r\n>\r\n <fd-popover-control>\r\n <div>\r\n <button\r\n fd-button\r\n (click)=\"openPopover($event, peoplePopover)\"\r\n fdType=\"transparent\"\r\n glyph=\"sys-add\"\r\n ></button>\r\n </div>\r\n </fd-popover-control>\r\n <fd-popover-body>\r\n <ul fd-list>\r\n @for (item of availableItems; track item) {\r\n <li fd-list-item (click)=\"newItem(item)\">\r\n @if (visibleFields.length > 0) { @for (field of visibleFields; track field) {\r\n {{ item[field] }}\r\n } } @else {\r\n {{ item }}\r\n }\r\n </li>\r\n }\r\n </ul>\r\n </fd-popover-body>\r\n</fd-popover>\r\n}\r\n", styles: [":host{display:flex;align-items:center;column-gap:2px;width:130px}.avatar-actions{display:flex;padding:10px;flex-direction:column;justify-content:center;row-gap:15px;width:100px}\n"], dependencies: [{ kind: "component", type: i1$1.AvatarComponent, selector: "fd-avatar", inputs: ["class", "id", "ariaLabel", "ariaLabelledby", "label", "size", "font", "glyph", "zoomGlyph", "circle", "transparent", "contain", "placeholder", "tile", "border", "colorAccent", "colorIndication", "random", "clickable", "valueState", "image", "alterIcon", "backupImage"], outputs: ["avatarClicked", "zoomGlyphClicked"] }, { kind: "component", type: i2$2.BarComponent, selector: "[fd-bar]", inputs: ["class", "barDesign", "inPage", "inHomePage", "size"] }, { kind: "directive", type: i2$2.BarLeftDirective, selector: "[fd-bar-left]" }, { kind: "directive", type: i2$2.BarElementDirective, selector: "fd-bar-element", inputs: ["fullWidth"] }, { kind: "component", type: i2$2.ButtonBarComponent, selector: "fd-button-bar", inputs: ["fullWidth", "fdType", "title", "ariaLabelledby", "id"] }, { kind: "component", type: i2.ButtonComponent, selector: "button[fd-button], a[fd-button], span[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "component", type: i4$2.ListComponent, selector: "[fd-list], [fdList]", inputs: ["dropdownMode", "multiInputMode", "mobileMode", "hasMessage", "noBorder", "navigationIndicator", "selection", "keyboardSupport", "byline", "unreadIndicator", "role"], outputs: ["focusEscapeList"] }, { kind: "component", type: i4$2.ListItemComponent, selector: "[fdListItem] ,[fd-list-item]", inputs: ["selected", "noData", "action", "interactive", "growing", "counter", "unread", "byline", "ariaRole", "id"], outputs: ["keyDown"] }, { kind: "component", type: i5.PopoverControlComponent, selector: "fd-popover-control, [fdPopoverControl]" }, { kind: "component", type: i5.PopoverBodyComponent, selector: "fd-popover-body", inputs: ["minWidth", "maxWidth", "minHeight", "maxHeight"] }, { kind: "directive", type: i5.PopoverBodyHeaderDirective, selector: "[fdPopoverBodyHeader], [fd-popover-body-header]" }, { kind: "component", type: i5.PopoverComponent, selector: "fd-popover", inputs: ["title", "trigger", "fixedPosition", "id", "mobile", "mobileConfig", "preventSpaceKeyScroll"] }, { kind: "pipe", type: i4$1.PictureFieldSourcePipe, name: "picFieldSrc" }, { kind: "pipe", type: i4$1.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
155
|
+
}
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BarsaAvatarGroupComponent, decorators: [{
|
|
157
|
+
type: Component,
|
|
158
|
+
args: [{ selector: 'bk-avatar-group', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<fd-avatar-group #avatarGroupCom type=\"group\" [size]=\"size\">\r\n <fd-popover\r\n [noArrow]=\"false\"\r\n [focusTrapped]=\"true\"\r\n [focusAutoCapture]=\"true\"\r\n [triggers]=\"[]\"\r\n [closeOnOutsideClick]=\"true\"\r\n [closeOnEscapeKey]=\"true\"\r\n (isOpenChange)=\"isOpenChanged($event)\"\r\n placement=\"bottom\"\r\n [maxWidth]=\"312\"\r\n #overflowPopover\r\n >\r\n <fd-popover-control\r\n fd-avatar-group-popover-control\r\n [attr.aria-label]=\"\r\n 'Has popup type dialog Conjoined avatars, ' +\r\n ' avatars displayed, ' +\r\n 1 +\r\n ' avatars hidden, activate for complete list'\r\n \"\r\n (click)=\"handleControlClick($event, overflowPopover)\"\r\n (keydown)=\"handleControlKeydown($event, overflowPopover)\"\r\n >\r\n @for (person of existedItems; track person) {\r\n <div fd-avatar-group-item>\r\n @if (!person[viewSetting.AssigneeImage]) {\r\n <fd-avatar\r\n [label]=\"person[viewSetting.AssigneeName]\"\r\n [title]=\"person[viewSetting.AssigneeName]\"\r\n [ariaLabel]=\"person[viewSetting.AssigneeName] + ' avatar'\"\r\n role=\"img\"\r\n [circle]=\"true\"\r\n [border]=\"true\"\r\n [size]=\"size\"\r\n ></fd-avatar>\r\n } @if (person[viewSetting.AssigneeImage]; as avatar) {\r\n <fd-avatar\r\n role=\"img\"\r\n [title]=\"person[viewSetting.AssigneeName]\"\r\n [ariaLabel]=\"person[viewSetting.AssigneeName] + ' avatar'\"\r\n [circle]=\"true\"\r\n [border]=\"true\"\r\n [size]=\"size\"\r\n [image]=\"(avatar.FileId | picFieldSrc: 'ID':person.Id) || ''\"\r\n >\r\n </fd-avatar>\r\n }\r\n </div>\r\n }\r\n <button fd-button fd-avatar-group-overflow-button tabindex=\"-1\" [compact]=\"false\" [size]=\"size\">\r\n <bdi fd-avatar-group-overflow-button-text> 1 </bdi>\r\n </button>\r\n </fd-popover-control>\r\n <fd-popover-body #overflowPopoverBody aria-labelledby=\"avatar-group-1-popover-header\" role=\"tooltip\">\r\n <div class=\"fd-popover__wrapper\">\r\n <div fd-popover-body-header>\r\n <div fd-bar barDesign=\"header\">\r\n <div fd-bar-left>\r\n @if (isDetailStage) {\r\n <fd-button-bar\r\n (click)=\"openOverflowMain()\"\r\n glyph=\"navigation-left-arrow\"\r\n fdType=\"transparent\"\r\n aria-label=\"Back\"\r\n title=\"Back\"\r\n ></fd-button-bar>\r\n }\r\n <fd-bar-element id=\"avatar-group-1-popover-header\">\r\n {{ isDetailStage ? 'Business Card' : 'Team Members (' + existedItems?.length + ')' }}\r\n </fd-bar-element>\r\n @if (isDetailStage) {\r\n <fd-bar-element> </fd-bar-element>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n fd-avatar-group-overflow-body\r\n [noPadding]=\"isDetailStage\"\r\n [noHorizontalScroll]=\"isDetailStage\"\r\n [noVerticalScroll]=\"false\"\r\n >\r\n @if (overflowPopoverStage === 'main') { @for (person of existedItems; track person; let idx =\r\n $index) {\r\n <div fd-avatar-group-overflow-item>\r\n <fd-popover [triggers]=\"['click']\">\r\n <fd-popover-control>\r\n @if (!person[viewSetting.AssigneeImage]) {\r\n <fd-avatar\r\n fd-avatar-group-focusable-avatar\r\n [circle]=\"true\"\r\n size=\"s\"\r\n [label]=\"person[viewSetting.AssigneeName]\"\r\n [title]=\"person[viewSetting.AssigneeName]\"\r\n [ariaLabel]=\"person[viewSetting.AssigneeName] + ' avatar'\"\r\n role=\"img\"\r\n ></fd-avatar>\r\n } @if (person[viewSetting.AssigneeImage]; as avatar) {\r\n <fd-avatar\r\n fd-avatar-group-focusable-avatar\r\n role=\"img\"\r\n [title]=\"person[viewSetting.AssigneeName]\"\r\n [ariaLabel]=\"person[viewSetting.AssigneeName] + ' avatar'\"\r\n [circle]=\"true\"\r\n size=\"s\"\r\n [image]=\"(avatar.FileId | picFieldSrc: 'ID':person.Id) || ''\"\r\n ></fd-avatar>\r\n }\r\n </fd-popover-control>\r\n <fd-popover-body>\r\n <div class=\"avatar-actions\">\r\n <button\r\n fd-button\r\n (click)=\"deleteAvatar(idx)\"\r\n [label]=\"'Delete' | bbbTranslate\"\r\n glyph=\"decline\"\r\n ></button>\r\n <button fd-button [label]=\"'Show' | bbbTranslate\" glyph=\"detail-view\"></button>\r\n </div>\r\n </fd-popover-body>\r\n </fd-popover>\r\n </div>\r\n } }\r\n </div>\r\n </div>\r\n </fd-popover-body>\r\n </fd-popover>\r\n</fd-avatar-group>\r\n\r\n@if (addItem) {\r\n<fd-popover\r\n #peoplePopover\r\n [triggers]=\"[]\"\r\n [focusTrapped]=\"false\"\r\n [closeOnOutsideClick]=\"true\"\r\n [noArrow]=\"false\"\r\n placement=\"bottom\"\r\n [focusAutoCapture]=\"true\"\r\n>\r\n <fd-popover-control>\r\n <div>\r\n <button\r\n fd-button\r\n (click)=\"openPopover($event, peoplePopover)\"\r\n fdType=\"transparent\"\r\n glyph=\"sys-add\"\r\n ></button>\r\n </div>\r\n </fd-popover-control>\r\n <fd-popover-body>\r\n <ul fd-list>\r\n @for (item of availableItems; track item) {\r\n <li fd-list-item (click)=\"newItem(item)\">\r\n @if (visibleFields.length > 0) { @for (field of visibleFields; track field) {\r\n {{ item[field] }}\r\n } } @else {\r\n {{ item }}\r\n }\r\n </li>\r\n }\r\n </ul>\r\n </fd-popover-body>\r\n</fd-popover>\r\n}\r\n", styles: [":host{display:flex;align-items:center;column-gap:2px;width:130px}.avatar-actions{display:flex;padding:10px;flex-direction:column;justify-content:center;row-gap:15px;width:100px}\n"] }]
|
|
159
|
+
}], propDecorators: { popoverBodyComponent: [{
|
|
160
|
+
type: ViewChild,
|
|
161
|
+
args: ['overflowPopoverBody']
|
|
162
|
+
}], avatarGroupCom: [{
|
|
163
|
+
type: ViewChild,
|
|
164
|
+
args: [AvatarGroupComponent, { static: true, read: AvatarGroupComponent }]
|
|
165
|
+
}], existedItems: [{
|
|
166
|
+
type: Input
|
|
167
|
+
}], availableItems: [{
|
|
168
|
+
type: Input
|
|
169
|
+
}], viewSetting: [{
|
|
170
|
+
type: Input
|
|
171
|
+
}], visibleFields: [{
|
|
172
|
+
type: Input
|
|
173
|
+
}], addItem: [{
|
|
174
|
+
type: Input
|
|
175
|
+
}], size: [{
|
|
176
|
+
type: Input
|
|
177
|
+
}] } });
|
|
178
|
+
|
|
179
|
+
class KanbanViewComponent extends ReportViewBaseComponent {
|
|
180
|
+
constructor() {
|
|
181
|
+
super(...arguments);
|
|
182
|
+
this.groupbyProperty = 'State';
|
|
183
|
+
this.isNewColumnMode = false;
|
|
184
|
+
this.newCard = { Id: null, $Caption: null };
|
|
185
|
+
this.newColumn = { Id: null, $Caption: null };
|
|
186
|
+
this._multipleGroup = inject(MultipleGroupByPipe);
|
|
187
|
+
this.groupedMoList = signal({});
|
|
188
|
+
this.sceneConfig = {
|
|
189
|
+
scene: { url: 'assets/images/sapIllus-Scene-NoMail.svg', id: 'sapIllus-Scene-NoMail-1' },
|
|
190
|
+
dialog: { url: 'assets/images/sapIllus-Dialog-NoMail.svg', id: 'sapIllus-Dialog-NoMail' }
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
ngOnInit() {
|
|
194
|
+
super.ngOnInit();
|
|
195
|
+
const columnsReport = this.viewSetting.ColumnsReport.$Caption;
|
|
196
|
+
this._portalService.ReportExecute(columnsReport).subscribe((report) => {
|
|
197
|
+
this.kanbanColumns = report.MoDataList;
|
|
198
|
+
this._changeDetect();
|
|
199
|
+
});
|
|
200
|
+
// this.formSetting.View.ControlInfo.forEach((c) => (c.InlineEditMode = true));
|
|
201
|
+
const assigneesReport = this.viewSetting.AssigneesReport?.$Caption;
|
|
202
|
+
if (assigneesReport) {
|
|
203
|
+
this._portalService.ReportExecute(assigneesReport).subscribe((report) => {
|
|
204
|
+
this.allAvailableAssignees = report.MoDataList;
|
|
205
|
+
this._changeDetect();
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
this.viewSetting = {
|
|
209
|
+
...this.viewSetting,
|
|
210
|
+
...this._findColumn(this.allColumns, [
|
|
211
|
+
this.viewSetting.Cover,
|
|
212
|
+
this.viewSetting.State,
|
|
213
|
+
this.viewSetting.Caption
|
|
214
|
+
])
|
|
215
|
+
};
|
|
216
|
+
this._prepareGroupMoList(this.moDataList);
|
|
217
|
+
}
|
|
218
|
+
ngOnChanges(changes) {
|
|
219
|
+
super.ngOnChanges(changes);
|
|
220
|
+
const { moDataList } = changes;
|
|
221
|
+
if (moDataList && !moDataList.firstChange) {
|
|
222
|
+
this._prepareGroupMoList(moDataList.currentValue);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
_prepareGroupMoList(molist) {
|
|
226
|
+
const column = this._findColumnByDbName.transform(this.allColumns, this.viewSetting.State);
|
|
227
|
+
const name = column?.Name || this.viewSetting.State;
|
|
228
|
+
const dict = {};
|
|
229
|
+
const s = this._multipleGroup.transform(molist, [
|
|
230
|
+
{
|
|
231
|
+
IsGrouped: true,
|
|
232
|
+
Name: name,
|
|
233
|
+
SortDirection: SortDirection.ASC
|
|
234
|
+
}
|
|
235
|
+
]);
|
|
236
|
+
s.forEach((c) => {
|
|
237
|
+
if (c.$Group) {
|
|
238
|
+
dict[c.$Group] = c.$Children;
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
this.groupedMoList.set(dict);
|
|
242
|
+
}
|
|
243
|
+
onAddNewColumn() {
|
|
244
|
+
this.kanbanColumns.push(this.newColumn);
|
|
245
|
+
this._cdr.detectChanges();
|
|
246
|
+
this._resetNewColumn();
|
|
247
|
+
this._scrollInputIntoView();
|
|
248
|
+
}
|
|
249
|
+
onActiveNewColumnMode() {
|
|
250
|
+
this._changeNewColumnMode(true);
|
|
251
|
+
}
|
|
252
|
+
onCancelNewColumn() {
|
|
253
|
+
this._changeNewColumnMode(false);
|
|
254
|
+
this._resetNewColumn();
|
|
255
|
+
}
|
|
256
|
+
onInitNewCard(groupby) {
|
|
257
|
+
this._resetNewCard();
|
|
258
|
+
this.newCard[this.groupbyProperty] = groupby;
|
|
259
|
+
}
|
|
260
|
+
onAddNewCard(e) {
|
|
261
|
+
e.stopPropagation();
|
|
262
|
+
e.preventDefault();
|
|
263
|
+
this._addNewCard();
|
|
264
|
+
}
|
|
265
|
+
onNewCardInputFocusout() {
|
|
266
|
+
if (this.newCard.$Caption) {
|
|
267
|
+
this._addNewCard();
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
this._cancelNewCard();
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
onCancelNewCard(e) {
|
|
274
|
+
e.stopPropagation();
|
|
275
|
+
e.preventDefault();
|
|
276
|
+
this._cancelNewCard();
|
|
277
|
+
}
|
|
278
|
+
onDrop(event, isColumn) {
|
|
279
|
+
let previousIndex;
|
|
280
|
+
let currentIndex;
|
|
281
|
+
const array = event.container.data;
|
|
282
|
+
if (isColumn) {
|
|
283
|
+
previousIndex = event.previousIndex;
|
|
284
|
+
currentIndex = event.currentIndex;
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
const draggedItemId = this.dropActionTodo.draggedId;
|
|
288
|
+
if (!draggedItemId) {
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
const draggedItem = this._getMoById(draggedItemId);
|
|
292
|
+
const targetState = this.dropActionTodo.targetState;
|
|
293
|
+
previousIndex = array.indexOf(draggedItem);
|
|
294
|
+
currentIndex = this.dropActionTodo.targetIndex;
|
|
295
|
+
draggedItem.State = targetState;
|
|
296
|
+
this._stopDragging();
|
|
297
|
+
}
|
|
298
|
+
moveItemInArray(array, previousIndex, currentIndex);
|
|
299
|
+
}
|
|
300
|
+
onDragMove(event, draggedMo, draggedIndex, targetState) {
|
|
301
|
+
const elementFromPoint = document.elementFromPoint(event.pointerPosition.x, event.pointerPosition.y);
|
|
302
|
+
if (targetState) {
|
|
303
|
+
}
|
|
304
|
+
if (!elementFromPoint) {
|
|
305
|
+
this._stopDragging();
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
const targetNodeElement = elementFromPoint.closest('[state]');
|
|
309
|
+
if (!targetNodeElement) {
|
|
310
|
+
this._stopDragging();
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
this.dropActionTodo = {
|
|
314
|
+
draggedId: draggedMo.Id,
|
|
315
|
+
targetId: targetNodeElement.getAttribute('id'),
|
|
316
|
+
targetState: null,
|
|
317
|
+
targetIndex: Number(targetNodeElement.getAttribute('index'))
|
|
318
|
+
};
|
|
319
|
+
const targetRect = targetNodeElement.getBoundingClientRect();
|
|
320
|
+
const oneThird = targetRect.height / 3;
|
|
321
|
+
const isCardTarget = !targetNodeElement.classList.contains('column');
|
|
322
|
+
const isBefore = event.pointerPosition.y - targetRect.top < oneThird && isCardTarget;
|
|
323
|
+
const isAfter = event.pointerPosition.y - targetRect.top > 2 * oneThird && isCardTarget;
|
|
324
|
+
const isInside = !isCardTarget;
|
|
325
|
+
const targetIndex = this.dropActionTodo.targetIndex ?? -1;
|
|
326
|
+
const targetMo = this.moDataList[targetIndex];
|
|
327
|
+
if (isCardTarget) {
|
|
328
|
+
this.dropActionTodo.targetState = targetMo[this.viewSetting.State];
|
|
329
|
+
}
|
|
330
|
+
else {
|
|
331
|
+
this.dropActionTodo.targetState = {
|
|
332
|
+
$Caption: targetNodeElement.getAttribute('state'),
|
|
333
|
+
Id: targetNodeElement.getAttribute('id'),
|
|
334
|
+
$TypeDefId: draggedMo[this.viewSetting.State]?.$TypeDefId
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
if (isBefore) {
|
|
338
|
+
this.dropActionTodo.action = 'before';
|
|
339
|
+
this.dropActionTodo.targetIndex = draggedIndex > targetIndex ? targetIndex : targetIndex - 1;
|
|
340
|
+
}
|
|
341
|
+
else if (isAfter) {
|
|
342
|
+
this.dropActionTodo.action = 'after';
|
|
343
|
+
this.dropActionTodo.targetIndex = draggedIndex < targetIndex ? targetIndex : targetIndex + 1;
|
|
344
|
+
}
|
|
345
|
+
else if (isInside) {
|
|
346
|
+
this.dropActionTodo.action = 'inside';
|
|
347
|
+
this.dropActionTodo.targetIndex = 0;
|
|
348
|
+
}
|
|
349
|
+
// console.log(this.dropActionTodo.targetState);
|
|
350
|
+
this._showDragInfo();
|
|
351
|
+
}
|
|
352
|
+
_changeDetect() {
|
|
353
|
+
this._cdr.detectChanges();
|
|
354
|
+
}
|
|
355
|
+
_stopDragging() {
|
|
356
|
+
this._clearDragInfo();
|
|
357
|
+
this._resetDropActionTodo();
|
|
358
|
+
}
|
|
359
|
+
_changeNewColumnMode(mode) {
|
|
360
|
+
this.isNewColumnMode = mode;
|
|
361
|
+
}
|
|
362
|
+
_resetDropActionTodo() {
|
|
363
|
+
this.dropActionTodo = {
|
|
364
|
+
targetId: null,
|
|
365
|
+
draggedId: null,
|
|
366
|
+
targetState: null,
|
|
367
|
+
targetIndex: null,
|
|
368
|
+
action: null
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
_scrollInputIntoView() {
|
|
372
|
+
const inputEl = this.inputEl.nativeElement;
|
|
373
|
+
inputEl.focus();
|
|
374
|
+
inputEl.scrollIntoView({ inline: 'end' });
|
|
375
|
+
}
|
|
376
|
+
_resetNewColumn() {
|
|
377
|
+
this.newColumn = { Id: '', $Caption: '' };
|
|
378
|
+
}
|
|
379
|
+
_clearDragInfo(dropped = false) {
|
|
380
|
+
if (dropped) {
|
|
381
|
+
this._resetDropActionTodo();
|
|
382
|
+
}
|
|
383
|
+
const elDom = this._el.nativeElement;
|
|
384
|
+
elDom
|
|
385
|
+
.querySelectorAll('.drop-before')
|
|
386
|
+
.forEach((element) => this._renderer2.removeClass(element, 'drop-before'));
|
|
387
|
+
elDom.querySelectorAll('.drop-after').forEach((element) => this._renderer2.removeClass(element, 'drop-after'));
|
|
388
|
+
elDom
|
|
389
|
+
.querySelectorAll('.drop-inside')
|
|
390
|
+
.forEach((element) => this._renderer2.removeClass(element, 'drop-inside'));
|
|
391
|
+
}
|
|
392
|
+
_showDragInfo() {
|
|
393
|
+
this._clearDragInfo();
|
|
394
|
+
if (this.dropActionTodo.targetId) {
|
|
395
|
+
const targetNodeElement = this._el.nativeElement.querySelector('#' + this.dropActionTodo.targetId);
|
|
396
|
+
if (!targetNodeElement) {
|
|
397
|
+
this._resetDropActionTodo();
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
400
|
+
this._renderer2.addClass(targetNodeElement, 'drop-' + this.dropActionTodo?.action);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
_addNewCard() {
|
|
404
|
+
this.moDataList.push(this.newCard);
|
|
405
|
+
const currentGroupby = this.newCard[this.groupbyProperty];
|
|
406
|
+
this.onInitNewCard(currentGroupby);
|
|
407
|
+
}
|
|
408
|
+
_resetNewCard() {
|
|
409
|
+
this.newCard = { Id: null, $Caption: null };
|
|
410
|
+
}
|
|
411
|
+
_cancelNewCard() {
|
|
412
|
+
this._resetNewCard();
|
|
413
|
+
}
|
|
414
|
+
_getMoById(id) {
|
|
415
|
+
return this.moDataList.find((c) => c.Id === id);
|
|
416
|
+
}
|
|
417
|
+
_findColumn(allColumns, columnsName) {
|
|
418
|
+
const columns = {};
|
|
419
|
+
columnsName.forEach((name) => {
|
|
420
|
+
columns[name + 'Column'] = this._findColumnByDbName.transform(this.allColumns, name);
|
|
421
|
+
});
|
|
422
|
+
return columns;
|
|
423
|
+
}
|
|
424
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: KanbanViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
425
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: KanbanViewComponent, selector: "bk-kanban-view", inputs: { kanbanColumns: "kanbanColumns", groupbyProperty: "groupbyProperty" }, viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, read: ElementRef }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<fd-layout-panel>\r\n <fd-layout-panel-body [bleed]=\"true\">\r\n @if (isCheckList) {\r\n <table fd-table>\r\n <thead fd-table-header>\r\n <tr fd-table-row>\r\n <th fd-table-cell>\r\n <fd-checkbox\r\n name=\"allCheckbox\"\r\n [ngModel]=\"allChecked\"\r\n (ngModelChange)=\"onAllCheckbox($event)\"\r\n >{{ 'All' | bbbTranslate }}</fd-checkbox\r\n >\r\n </th>\r\n </tr>\r\n </thead>\r\n </table>\r\n }\r\n </fd-layout-panel-body>\r\n</fd-layout-panel>\r\n\r\n<fd-layout-grid\r\n class=\"columns\"\r\n fillEmptySpace\r\n [setMinHeight]=\"true\"\r\n [disable]=\"true\"\r\n cdkDropList\r\n cdkDropListOrientation=\"horizontal\"\r\n [cdkDropListData]=\"kanbanColumns\"\r\n [id]=\"'$Root'\"\r\n (cdkDropListDropped)=\"onDrop($event, true)\"\r\n>\r\n @for (column of kanbanColumns; track column; let columnIndex = $index) {\r\n <div\r\n [fdLayoutGridCol]=\"12\"\r\n [colMd]=\"4\"\r\n [colLg]=\"3\"\r\n [colXl]=\"2\"\r\n class=\"column\"\r\n [id]=\"column.Id\"\r\n [attr.state]=\"column.$Caption\"\r\n cdkDrag\r\n >\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n columnCard;\r\n context: {\r\n column: column,\r\n columnIndex: columnIndex\r\n }\r\n \"\r\n ></ng-container>\r\n </div>\r\n }\r\n</fd-layout-grid>\r\n\r\n<!--noData-->\r\n\r\n<!--column card-->\r\n<ng-template #columnCard let-column=\"column\" let-columnIndex=\"columnIndex\">\r\n <fd-card cardType=\"quickView\" class=\"docs-flex-item-margin\" ellipsify>\r\n <fd-card-header>\r\n <fd-card-main-header [style.background]=\"column.Color\" [class.hasColumnColor]=\"column.Color\">\r\n <h2 fd-card-title>{{ column.$Caption }}</h2>\r\n </fd-card-main-header>\r\n </fd-card-header>\r\n <fd-card-content\r\n cdkDropList\r\n (cdkDropListDropped)=\"onDrop($event)\"\r\n [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListData]=\"moDataList\"\r\n >\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n columnMoList;\r\n context: { $implicit: groupedMoList()[column.$Caption], column: column }\r\n \"\r\n >\r\n </ng-container>\r\n </fd-card-content>\r\n <!-- <fd-card-footer class=\"column-footer\">\r\n @if (newCard[groupbyProperty] === column.$Caption) {\r\n <div class=\"new-card\">\r\n <fd-card>\r\n <div fd-form-item>\r\n <textarea\r\n fd-form-control\r\n [autofocus]=\"true\"\r\n [(ngModel)]=\"newCard.$Caption\"\r\n (keydown.enter)=\"onAddNewCard($event)\"\r\n (focusout)=\"onNewCardInputFocusout()\"\r\n [placeholder]=\"'Title' | bbbTranslate\"\r\n ></textarea>\r\n </div>\r\n </fd-card>\r\n <div class=\"new-card-actions\">\r\n <button\r\n fd-button\r\n (click)=\"onAddNewCard($event)\"\r\n fdType=\"emphasized\"\r\n class=\"add-card-btn\"\r\n [label]=\"'\u0627\u0641\u0632\u0648\u062F\u0646'\"\r\n ></button>\r\n <fd-icon (mousedown)=\"onCancelNewCard($event)\" glyph=\"decline\"></fd-icon>\r\n </div>\r\n </div>\r\n } @else {\r\n <div class=\"add-new-card\" (click)=\"onInitNewCard(column.$Caption)\">\r\n <span>\r\n <fd-icon glyph=\"add\"></fd-icon>\r\n \u06A9\u0627\u0631\u062A \u062C\u062F\u06CC\u062F\r\n </span>\r\n </div>\r\n }\r\n </fd-card-footer> -->\r\n </fd-card>\r\n</ng-template>\r\n\r\n<ng-template #columnMoList let-moList let-column=\"column\">\r\n @if(moList && moList.length>0){ @for (mo of moList; track mo; let index = $index) {\r\n <bk-kanban-card\r\n [mo]=\"mo\"\r\n [allColumns]=\"columns\"\r\n [viewSetting]=\"viewSetting\"\r\n [formSetting]=\"formSetting\"\r\n [styleIndex]=\"mo.$StyleIndex\"\r\n [conditionalFormats]=\"conditionalFormats\"\r\n [allAvailableAssignees]=\"allAvailableAssignees\"\r\n [index]=\"index\"\r\n [attr.id]=\"mo.Id\"\r\n [inlineEditMode]=\"inlineEditMode\"\r\n [isChecked]=\"mo.$IsChecked\"\r\n [attr.state]=\"column.$Caption\"\r\n [attr.index]=\"index\"\r\n [class.selected]=\"mo.$IsChecked\"\r\n (cdkDragMoved)=\"onDragMove($event, mo, index, column)\"\r\n (click)=\"onRowCheck({mo, index})\"\r\n (dblclick)=\"onRowClick({mo, index})\"\r\n cdkDrag\r\n >\r\n </bk-kanban-card>\r\n } }@else{\r\n\r\n <h3 fd-title>{{ 'NoData' | bbbTranslate }}</h3>\r\n }\r\n</ng-template>\r\n", styles: ["fd-card-main-header.hasColumnColor{display:block}fd-card-main-header.hasColumnColor ::ng-deep .fd-card__header-main{background-color:transparent}figure{padding:0!important}figure ::ng-deep svg{margin:0}::-webkit-scrollbar{height:7px;width:7px}::-webkit-scrollbar-track{box-shadow:inset 0 0 2px #d0cece;border-radius:10px}::-webkit-scrollbar-thumb{background:#c8cacb;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#adb0b2}.columns{height:inherit;width:100%;column-gap:15px;flex-wrap:nowrap!important}.column{height:100%}.column.cdk-drag-placeholder{opacity:0}.column>fd-card{overflow-y:hidden;height:100%}.column>fd-card fd-card-content{flex:1;overflow-y:auto;padding:1rem .5rem;margin:0;display:flex;flex-direction:column;row-gap:1rem}.column>fd-card .column-footer{padding:1rem 1rem 1rem 1.5rem;position:sticky}.column>fd-card .column-footer .new-card{display:flex;flex-direction:column;justify-content:center;row-gap:1rem}.column>fd-card .column-footer .new-card fd-card{padding:0 1rem;background:var(--sapBackgroundColor, #f7f7f7)!important}.column>fd-card .column-footer .new-card textarea{background:var(--sapBackgroundColor, #f7f7f7)!important;border:none}.column>fd-card .column-footer .new-card span{height:auto!important}.column>fd-card .column-footer .new-card .new-card-actions{display:flex;align-items:center;column-gap:10px}.column>fd-card .column-footer .new-card .new-card-actions fd-icon{font-size:1rem}.column>fd-card .column-footer .add-new-card{padding:0 1rem}.column>fd-card .column-footer .add-new-card span{display:flex;column-gap:4px}.newColumn{background-color:var(--sapList_Background, #fff)!important;border-radius:var(--sapElement_BorderCornerRadius, .25rem);align-self:flex-start;height:100px;opacity:.5;display:flex;align-items:center;justify-content:center;border:1px dashed;position:relative;cursor:pointer}.newColumn span{position:absolute}.newColumn .new-column-popover{width:100%}.newColumn .new-column-popover fd-popover-control{width:100%;height:1px}.new-column-popover-body input{border:none}.row{display:flex;align-items:center}.drop-inside{border:1px solid #00f}.drop-inside ::ng-deep .fd-list__item{background-color:#dce9f6!important}.drop-before{border-top:2px solid #00f}.drop-before ::ng-deep .fd-list__item{background-color:#dce9f6!important}.drop-after{border-bottom:2px solid #00f}.drop-after ::ng-deep .fd-list__item{background-color:#dce9f6!important}.columns.cdk-drop-list-dragging .column:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4$1.EllipsifyDirective, selector: "[ellipsify]", inputs: ["limitLine"] }, { kind: "directive", type: i4$1.FillEmptySpaceDirective, selector: "[fillEmptySpace]", inputs: ["containerDom", "decrement", "disable", "height", "dontUseTopBound", "setMinHeight"], exportAs: ["fillEmptySpace"] }, { kind: "component", type: i2$1.CardComponent, selector: "fd-card", inputs: ["badge", "badgeIcon", "badgeColor", "badgeColorSecondary", "badgeStatus", "badgeAriaLabel", "secondBadge", "secondBadgeIcon", "secondBadgeColor", "secondBadgeColorSecondary", "secondBadgeStatus", "secondBadgeAriaLabel", "isLoading", "cardType", "id", "ariaRoledescription", "ariaDescription", "ariaLabel", "role", "interactive", "selected", "ariaPosinset", "ariaSetsize"], outputs: ["ariaPosinsetChange", "ariaSetsizeChange"] }, { kind: "component", type: i2$1.CardHeaderComponent, selector: "fd-card-header", inputs: ["ariaRoleDescription"] }, { kind: "component", type: i2$1.CardMainHeaderComponent, selector: "fd-card-main-header", inputs: ["interactive", "title"] }, { kind: "component", type: i2$1.CardContentComponent, selector: "fd-card-content" }, { kind: "directive", type: i2$1.CardTitleDirective, selector: "[fd-card-title]", inputs: ["id"] }, { kind: "component", type: i4$3.CheckboxComponent, selector: "fd-checkbox", inputs: ["wrapLabel", "valignLabel", "ariaLabel", "role", "value", "ariaLabelledBy", "ariaDescribedBy", "title", "inputId", "state", "name", "label", "disabled", "readonly", "tristate", "tristateSelectable", "labelClass", "required", "displayOnly", "values", "standalone"], outputs: ["focusChange"] }, { kind: "component", type: i5$1.LayoutGridComponent, selector: "fd-layout-grid, [fdLayoutGrid]", inputs: ["class", "noGap", "noHorizontalGap", "noVerticalGap"] }, { kind: "directive", type: i5$1.LayoutGridColDirective, selector: "[fd-layout-grid-col], [fdLayoutGridCol]", inputs: ["fdLayoutGridCol", "colGrow", "colMd", "colLg", "colXl", "colOffset", "colOffsetMd", "colOffsetLg", "colOffsetXl", "class"] }, { kind: "component", type: i6$1.LayoutPanelComponent, selector: "fd-layout-panel", inputs: ["backgroundImage", "id", "transparent"] }, { kind: "component", type: i6$1.LayoutPanelBodyComponent, selector: "fd-layout-panel-body", inputs: ["bleed"] }, { kind: "component", type: i7.TitleComponent, selector: "[fd-title], [fdTitle]", inputs: ["headerSize", "wrap"], exportAs: ["fd-title"] }, { kind: "component", type: i8.TableComponent, selector: "table[fd-table]", inputs: ["noBorderX", "noBorderY", "noOuterBorder", "topBorder", "popIn", "responsive", "keys", "allCellsFocusable"], exportAs: ["fd-table"] }, { kind: "directive", type: i8.TableHeaderDirective, selector: "[fdTableHeader], [fd-table-header]", inputs: ["noBorderX", "noBorderY", "nonInteractive"] }, { kind: "directive", type: i8.TableRowDirective, selector: "[fdTableRow], [fd-table-row]", inputs: ["activable", "highlightActive", "hoverable", "focusable", "main", "secondary", "active"] }, { kind: "directive", type: i8.TableCellDirective, selector: "[fdTableCell], [fd-table-cell]", inputs: ["noBorderX", "noBorderY", "activable", "focusable", "hoverable", "fitContent", "noPadding", "noData", "nonInteractive", "key"] }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i10.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i10.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: KanbanCardComponent, selector: "bk-kanban-card", inputs: ["index", "mo", "viewSetting", "allAvailableAssignees"] }, { kind: "pipe", type: i4$1.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
426
|
+
}
|
|
427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: KanbanViewComponent, decorators: [{
|
|
428
|
+
type: Component,
|
|
429
|
+
args: [{ selector: 'bk-kanban-view', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<fd-layout-panel>\r\n <fd-layout-panel-body [bleed]=\"true\">\r\n @if (isCheckList) {\r\n <table fd-table>\r\n <thead fd-table-header>\r\n <tr fd-table-row>\r\n <th fd-table-cell>\r\n <fd-checkbox\r\n name=\"allCheckbox\"\r\n [ngModel]=\"allChecked\"\r\n (ngModelChange)=\"onAllCheckbox($event)\"\r\n >{{ 'All' | bbbTranslate }}</fd-checkbox\r\n >\r\n </th>\r\n </tr>\r\n </thead>\r\n </table>\r\n }\r\n </fd-layout-panel-body>\r\n</fd-layout-panel>\r\n\r\n<fd-layout-grid\r\n class=\"columns\"\r\n fillEmptySpace\r\n [setMinHeight]=\"true\"\r\n [disable]=\"true\"\r\n cdkDropList\r\n cdkDropListOrientation=\"horizontal\"\r\n [cdkDropListData]=\"kanbanColumns\"\r\n [id]=\"'$Root'\"\r\n (cdkDropListDropped)=\"onDrop($event, true)\"\r\n>\r\n @for (column of kanbanColumns; track column; let columnIndex = $index) {\r\n <div\r\n [fdLayoutGridCol]=\"12\"\r\n [colMd]=\"4\"\r\n [colLg]=\"3\"\r\n [colXl]=\"2\"\r\n class=\"column\"\r\n [id]=\"column.Id\"\r\n [attr.state]=\"column.$Caption\"\r\n cdkDrag\r\n >\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n columnCard;\r\n context: {\r\n column: column,\r\n columnIndex: columnIndex\r\n }\r\n \"\r\n ></ng-container>\r\n </div>\r\n }\r\n</fd-layout-grid>\r\n\r\n<!--noData-->\r\n\r\n<!--column card-->\r\n<ng-template #columnCard let-column=\"column\" let-columnIndex=\"columnIndex\">\r\n <fd-card cardType=\"quickView\" class=\"docs-flex-item-margin\" ellipsify>\r\n <fd-card-header>\r\n <fd-card-main-header [style.background]=\"column.Color\" [class.hasColumnColor]=\"column.Color\">\r\n <h2 fd-card-title>{{ column.$Caption }}</h2>\r\n </fd-card-main-header>\r\n </fd-card-header>\r\n <fd-card-content\r\n cdkDropList\r\n (cdkDropListDropped)=\"onDrop($event)\"\r\n [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListData]=\"moDataList\"\r\n >\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n columnMoList;\r\n context: { $implicit: groupedMoList()[column.$Caption], column: column }\r\n \"\r\n >\r\n </ng-container>\r\n </fd-card-content>\r\n <!-- <fd-card-footer class=\"column-footer\">\r\n @if (newCard[groupbyProperty] === column.$Caption) {\r\n <div class=\"new-card\">\r\n <fd-card>\r\n <div fd-form-item>\r\n <textarea\r\n fd-form-control\r\n [autofocus]=\"true\"\r\n [(ngModel)]=\"newCard.$Caption\"\r\n (keydown.enter)=\"onAddNewCard($event)\"\r\n (focusout)=\"onNewCardInputFocusout()\"\r\n [placeholder]=\"'Title' | bbbTranslate\"\r\n ></textarea>\r\n </div>\r\n </fd-card>\r\n <div class=\"new-card-actions\">\r\n <button\r\n fd-button\r\n (click)=\"onAddNewCard($event)\"\r\n fdType=\"emphasized\"\r\n class=\"add-card-btn\"\r\n [label]=\"'\u0627\u0641\u0632\u0648\u062F\u0646'\"\r\n ></button>\r\n <fd-icon (mousedown)=\"onCancelNewCard($event)\" glyph=\"decline\"></fd-icon>\r\n </div>\r\n </div>\r\n } @else {\r\n <div class=\"add-new-card\" (click)=\"onInitNewCard(column.$Caption)\">\r\n <span>\r\n <fd-icon glyph=\"add\"></fd-icon>\r\n \u06A9\u0627\u0631\u062A \u062C\u062F\u06CC\u062F\r\n </span>\r\n </div>\r\n }\r\n </fd-card-footer> -->\r\n </fd-card>\r\n</ng-template>\r\n\r\n<ng-template #columnMoList let-moList let-column=\"column\">\r\n @if(moList && moList.length>0){ @for (mo of moList; track mo; let index = $index) {\r\n <bk-kanban-card\r\n [mo]=\"mo\"\r\n [allColumns]=\"columns\"\r\n [viewSetting]=\"viewSetting\"\r\n [formSetting]=\"formSetting\"\r\n [styleIndex]=\"mo.$StyleIndex\"\r\n [conditionalFormats]=\"conditionalFormats\"\r\n [allAvailableAssignees]=\"allAvailableAssignees\"\r\n [index]=\"index\"\r\n [attr.id]=\"mo.Id\"\r\n [inlineEditMode]=\"inlineEditMode\"\r\n [isChecked]=\"mo.$IsChecked\"\r\n [attr.state]=\"column.$Caption\"\r\n [attr.index]=\"index\"\r\n [class.selected]=\"mo.$IsChecked\"\r\n (cdkDragMoved)=\"onDragMove($event, mo, index, column)\"\r\n (click)=\"onRowCheck({mo, index})\"\r\n (dblclick)=\"onRowClick({mo, index})\"\r\n cdkDrag\r\n >\r\n </bk-kanban-card>\r\n } }@else{\r\n\r\n <h3 fd-title>{{ 'NoData' | bbbTranslate }}</h3>\r\n }\r\n</ng-template>\r\n", styles: ["fd-card-main-header.hasColumnColor{display:block}fd-card-main-header.hasColumnColor ::ng-deep .fd-card__header-main{background-color:transparent}figure{padding:0!important}figure ::ng-deep svg{margin:0}::-webkit-scrollbar{height:7px;width:7px}::-webkit-scrollbar-track{box-shadow:inset 0 0 2px #d0cece;border-radius:10px}::-webkit-scrollbar-thumb{background:#c8cacb;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#adb0b2}.columns{height:inherit;width:100%;column-gap:15px;flex-wrap:nowrap!important}.column{height:100%}.column.cdk-drag-placeholder{opacity:0}.column>fd-card{overflow-y:hidden;height:100%}.column>fd-card fd-card-content{flex:1;overflow-y:auto;padding:1rem .5rem;margin:0;display:flex;flex-direction:column;row-gap:1rem}.column>fd-card .column-footer{padding:1rem 1rem 1rem 1.5rem;position:sticky}.column>fd-card .column-footer .new-card{display:flex;flex-direction:column;justify-content:center;row-gap:1rem}.column>fd-card .column-footer .new-card fd-card{padding:0 1rem;background:var(--sapBackgroundColor, #f7f7f7)!important}.column>fd-card .column-footer .new-card textarea{background:var(--sapBackgroundColor, #f7f7f7)!important;border:none}.column>fd-card .column-footer .new-card span{height:auto!important}.column>fd-card .column-footer .new-card .new-card-actions{display:flex;align-items:center;column-gap:10px}.column>fd-card .column-footer .new-card .new-card-actions fd-icon{font-size:1rem}.column>fd-card .column-footer .add-new-card{padding:0 1rem}.column>fd-card .column-footer .add-new-card span{display:flex;column-gap:4px}.newColumn{background-color:var(--sapList_Background, #fff)!important;border-radius:var(--sapElement_BorderCornerRadius, .25rem);align-self:flex-start;height:100px;opacity:.5;display:flex;align-items:center;justify-content:center;border:1px dashed;position:relative;cursor:pointer}.newColumn span{position:absolute}.newColumn .new-column-popover{width:100%}.newColumn .new-column-popover fd-popover-control{width:100%;height:1px}.new-column-popover-body input{border:none}.row{display:flex;align-items:center}.drop-inside{border:1px solid #00f}.drop-inside ::ng-deep .fd-list__item{background-color:#dce9f6!important}.drop-before{border-top:2px solid #00f}.drop-before ::ng-deep .fd-list__item{background-color:#dce9f6!important}.drop-after{border-bottom:2px solid #00f}.drop-after ::ng-deep .fd-list__item{background-color:#dce9f6!important}.columns.cdk-drop-list-dragging .column:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
|
|
430
|
+
}], propDecorators: { inputEl: [{
|
|
431
|
+
type: ViewChild,
|
|
432
|
+
args: ['inputEl', { read: ElementRef }]
|
|
433
|
+
}], kanbanColumns: [{
|
|
434
|
+
type: Input
|
|
435
|
+
}], groupbyProperty: [{
|
|
436
|
+
type: Input
|
|
437
|
+
}] } });
|
|
438
|
+
|
|
439
|
+
const components = [
|
|
440
|
+
KanbanViewComponent,
|
|
441
|
+
BarsaAvatarGroupComponent,
|
|
442
|
+
KanbanCardComponent,
|
|
443
|
+
KanbanTagsComponent,
|
|
444
|
+
KanbanBaseComponent
|
|
445
|
+
];
|
|
446
|
+
class BarsaKanbanModule extends BaseModule {
|
|
447
|
+
constructor(dcm, componentFactoryResolver) {
|
|
448
|
+
super(dcm, componentFactoryResolver, 'BarsaKanbanModule');
|
|
449
|
+
this.dcm = dcm;
|
|
450
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
451
|
+
this.dynamicComponents = [...components];
|
|
452
|
+
}
|
|
453
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BarsaKanbanModule, deps: [{ token: i4$1.DynamicComponentService }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
454
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: BarsaKanbanModule, declarations: [KanbanViewComponent,
|
|
455
|
+
BarsaAvatarGroupComponent,
|
|
456
|
+
KanbanCardComponent,
|
|
457
|
+
KanbanTagsComponent,
|
|
458
|
+
KanbanBaseComponent], imports: [CommonModule,
|
|
459
|
+
BarsaNovinRayCoreModule,
|
|
460
|
+
FundamentalNgxCoreModule,
|
|
461
|
+
PlatformMenuModule,
|
|
462
|
+
BarsaEchartsModule,
|
|
463
|
+
BarsaSapUiModule,
|
|
464
|
+
FormsModule,
|
|
465
|
+
DragDropModule], exports: [KanbanViewComponent,
|
|
466
|
+
BarsaAvatarGroupComponent,
|
|
467
|
+
KanbanCardComponent,
|
|
468
|
+
KanbanTagsComponent,
|
|
469
|
+
KanbanBaseComponent] }); }
|
|
470
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BarsaKanbanModule, providers: [provideHttpClient(withInterceptorsFromDi())], imports: [CommonModule,
|
|
471
|
+
BarsaNovinRayCoreModule,
|
|
472
|
+
FundamentalNgxCoreModule,
|
|
473
|
+
PlatformMenuModule,
|
|
474
|
+
BarsaEchartsModule,
|
|
475
|
+
BarsaSapUiModule,
|
|
476
|
+
FormsModule,
|
|
477
|
+
DragDropModule] }); }
|
|
478
|
+
}
|
|
479
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BarsaKanbanModule, decorators: [{
|
|
480
|
+
type: NgModule,
|
|
481
|
+
args: [{
|
|
482
|
+
declarations: [...components],
|
|
483
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
484
|
+
exports: [...components],
|
|
485
|
+
imports: [
|
|
486
|
+
CommonModule,
|
|
487
|
+
BarsaNovinRayCoreModule,
|
|
488
|
+
FundamentalNgxCoreModule,
|
|
489
|
+
PlatformMenuModule,
|
|
490
|
+
BarsaEchartsModule,
|
|
491
|
+
BarsaSapUiModule,
|
|
492
|
+
FormsModule,
|
|
493
|
+
DragDropModule
|
|
494
|
+
],
|
|
495
|
+
providers: [provideHttpClient(withInterceptorsFromDi())]
|
|
496
|
+
}]
|
|
497
|
+
}], ctorParameters: () => [{ type: i4$1.DynamicComponentService }, { type: i0.ComponentFactoryResolver }] });
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Generated bundle index. Do not edit.
|
|
501
|
+
*/
|
|
502
|
+
|
|
503
|
+
export { BarsaAvatarGroupComponent, BarsaKanbanModule, KanbanBaseComponent, KanbanCardComponent, KanbanTagsComponent, KanbanViewComponent };
|
|
504
|
+
//# sourceMappingURL=barsa-kanban.mjs.map
|