@tectra-ng/blocks 0.0.0-stage → 0.1.6
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/README.md +16 -2
- package/action-tile/README.md +33 -0
- package/actions-menu/README.md +42 -0
- package/app-footer/README.md +30 -0
- package/app-layout/README.md +51 -0
- package/command-palette/README.md +63 -0
- package/console-layout/README.md +70 -0
- package/cookie-notice/README.md +45 -0
- package/empty-state/README.md +35 -0
- package/fesm2022/tectra-ng-blocks-action-tile.mjs +294 -0
- package/fesm2022/tectra-ng-blocks-action-tile.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-actions-menu.mjs +380 -0
- package/fesm2022/tectra-ng-blocks-actions-menu.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-app-footer.mjs +276 -0
- package/fesm2022/tectra-ng-blocks-app-footer.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-app-layout.mjs +544 -0
- package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-command-palette.mjs +663 -0
- package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-console-layout.mjs +1060 -0
- package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +416 -0
- package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-empty-state.mjs +278 -0
- package/fesm2022/tectra-ng-blocks-empty-state.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs +959 -0
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-kanban.mjs +864 -0
- package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-network-status.mjs +303 -0
- package/fesm2022/tectra-ng-blocks-network-status.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-page-header.mjs +195 -0
- package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs +692 -0
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-public-header.mjs +372 -0
- package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-qr-code.mjs +487 -0
- package/fesm2022/tectra-ng-blocks-qr-code.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-switch-language.mjs +316 -0
- package/fesm2022/tectra-ng-blocks-switch-language.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-switch-theme.mjs +416 -0
- package/fesm2022/tectra-ng-blocks-switch-theme.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs +260 -0
- package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-wizard.mjs +1284 -0
- package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks.mjs +4 -0
- package/fesm2022/tectra-ng-blocks.mjs.map +1 -0
- package/filters-panel/README.md +68 -0
- package/kanban/README.md +55 -0
- package/network-status/README.md +33 -0
- package/package.json +137 -3
- package/page-header/README.md +32 -0
- package/pinned-tabs/README.md +42 -0
- package/public-header/README.md +44 -0
- package/qr-code/README.md +52 -0
- package/switch-language/README.md +33 -0
- package/switch-theme/README.md +32 -0
- package/topbar-preferences/README.md +35 -0
- package/types/tectra-ng-blocks-action-tile.d.ts +114 -0
- package/types/tectra-ng-blocks-action-tile.d.ts.map +1 -0
- package/types/tectra-ng-blocks-actions-menu.d.ts +112 -0
- package/types/tectra-ng-blocks-actions-menu.d.ts.map +1 -0
- package/types/tectra-ng-blocks-app-footer.d.ts +111 -0
- package/types/tectra-ng-blocks-app-footer.d.ts.map +1 -0
- package/types/tectra-ng-blocks-app-layout.d.ts +212 -0
- package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -0
- package/types/tectra-ng-blocks-command-palette.d.ts +291 -0
- package/types/tectra-ng-blocks-command-palette.d.ts.map +1 -0
- package/types/tectra-ng-blocks-console-layout.d.ts +454 -0
- package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -0
- package/types/tectra-ng-blocks-cookie-notice.d.ts +168 -0
- package/types/tectra-ng-blocks-cookie-notice.d.ts.map +1 -0
- package/types/tectra-ng-blocks-empty-state.d.ts +138 -0
- package/types/tectra-ng-blocks-empty-state.d.ts.map +1 -0
- package/types/tectra-ng-blocks-filters-panel.d.ts +314 -0
- package/types/tectra-ng-blocks-filters-panel.d.ts.map +1 -0
- package/types/tectra-ng-blocks-kanban.d.ts +260 -0
- package/types/tectra-ng-blocks-kanban.d.ts.map +1 -0
- package/types/tectra-ng-blocks-network-status.d.ts +108 -0
- package/types/tectra-ng-blocks-network-status.d.ts.map +1 -0
- package/types/tectra-ng-blocks-page-header.d.ts +86 -0
- package/types/tectra-ng-blocks-page-header.d.ts.map +1 -0
- package/types/tectra-ng-blocks-pinned-tabs.d.ts +159 -0
- package/types/tectra-ng-blocks-pinned-tabs.d.ts.map +1 -0
- package/types/tectra-ng-blocks-public-header.d.ts +142 -0
- package/types/tectra-ng-blocks-public-header.d.ts.map +1 -0
- package/types/tectra-ng-blocks-qr-code.d.ts +160 -0
- package/types/tectra-ng-blocks-qr-code.d.ts.map +1 -0
- package/types/tectra-ng-blocks-switch-language.d.ts +106 -0
- package/types/tectra-ng-blocks-switch-language.d.ts.map +1 -0
- package/types/tectra-ng-blocks-switch-theme.d.ts +108 -0
- package/types/tectra-ng-blocks-switch-theme.d.ts.map +1 -0
- package/types/tectra-ng-blocks-topbar-preferences.d.ts +103 -0
- package/types/tectra-ng-blocks-topbar-preferences.d.ts.map +1 -0
- package/types/tectra-ng-blocks-wizard.d.ts +682 -0
- package/types/tectra-ng-blocks-wizard.d.ts.map +1 -0
- package/types/tectra-ng-blocks.d.ts +2 -0
- package/types/tectra-ng-blocks.d.ts.map +1 -0
- package/wizard/README.md +77 -0
|
@@ -0,0 +1,864 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DOCUMENT, Directive, ElementRef, Injector, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, inject, input, numberAttribute, output, signal } from "@angular/core";
|
|
3
|
+
import { CdkDrag, CdkDragHandle, CdkDragPlaceholder, CdkDropList } from "@angular/cdk/drag-drop";
|
|
4
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
5
|
+
import { TxAnnouncer, uniqueId } from "@tectra-ng/core/a11y";
|
|
6
|
+
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
7
|
+
import { TxLocaleService, injectTranslations } from "@tectra-ng/core/i18n";
|
|
8
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
9
|
+
import { TxIcon } from "@tectra-ng/icons";
|
|
10
|
+
import { toStyleObject } from "@tectra-ng/themes";
|
|
11
|
+
import { TxButton } from "@tectra-ng/ui/button";
|
|
12
|
+
import { TxPill } from "@tectra-ng/ui/pill";
|
|
13
|
+
var TxKanbanCard = class TxKanbanCard {
|
|
14
|
+
template = inject(TemplateRef);
|
|
15
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
16
|
+
return !!context;
|
|
17
|
+
}
|
|
18
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
19
|
+
minVersion: "12.0.0",
|
|
20
|
+
version: "22.2.3",
|
|
21
|
+
ngImport: i0,
|
|
22
|
+
type: TxKanbanCard,
|
|
23
|
+
deps: [],
|
|
24
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
25
|
+
});
|
|
26
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
27
|
+
minVersion: "14.0.0",
|
|
28
|
+
version: "22.2.3",
|
|
29
|
+
type: TxKanbanCard,
|
|
30
|
+
isStandalone: true,
|
|
31
|
+
selector: "ng-template[txKanbanCard]",
|
|
32
|
+
ngImport: i0
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
36
|
+
minVersion: "12.0.0",
|
|
37
|
+
version: "22.2.3",
|
|
38
|
+
ngImport: i0,
|
|
39
|
+
type: TxKanbanCard,
|
|
40
|
+
decorators: [{
|
|
41
|
+
type: Directive,
|
|
42
|
+
args: [{ selector: "ng-template[txKanbanCard]" }]
|
|
43
|
+
}]
|
|
44
|
+
});
|
|
45
|
+
var TxKanbanColumnHeader = class TxKanbanColumnHeader {
|
|
46
|
+
template = inject(TemplateRef);
|
|
47
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
48
|
+
return !!context;
|
|
49
|
+
}
|
|
50
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
51
|
+
minVersion: "12.0.0",
|
|
52
|
+
version: "22.2.3",
|
|
53
|
+
ngImport: i0,
|
|
54
|
+
type: TxKanbanColumnHeader,
|
|
55
|
+
deps: [],
|
|
56
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
57
|
+
});
|
|
58
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
59
|
+
minVersion: "14.0.0",
|
|
60
|
+
version: "22.2.3",
|
|
61
|
+
type: TxKanbanColumnHeader,
|
|
62
|
+
isStandalone: true,
|
|
63
|
+
selector: "ng-template[txKanbanColumnHeader]",
|
|
64
|
+
ngImport: i0
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
68
|
+
minVersion: "12.0.0",
|
|
69
|
+
version: "22.2.3",
|
|
70
|
+
ngImport: i0,
|
|
71
|
+
type: TxKanbanColumnHeader,
|
|
72
|
+
decorators: [{
|
|
73
|
+
type: Directive,
|
|
74
|
+
args: [{ selector: "ng-template[txKanbanColumnHeader]" }]
|
|
75
|
+
}]
|
|
76
|
+
});
|
|
77
|
+
var TxKanbanColumnTop = class TxKanbanColumnTop {
|
|
78
|
+
template = inject(TemplateRef);
|
|
79
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
80
|
+
return !!context;
|
|
81
|
+
}
|
|
82
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
83
|
+
minVersion: "12.0.0",
|
|
84
|
+
version: "22.2.3",
|
|
85
|
+
ngImport: i0,
|
|
86
|
+
type: TxKanbanColumnTop,
|
|
87
|
+
deps: [],
|
|
88
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
89
|
+
});
|
|
90
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
91
|
+
minVersion: "14.0.0",
|
|
92
|
+
version: "22.2.3",
|
|
93
|
+
type: TxKanbanColumnTop,
|
|
94
|
+
isStandalone: true,
|
|
95
|
+
selector: "ng-template[txKanbanColumnTop]",
|
|
96
|
+
ngImport: i0
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
100
|
+
minVersion: "12.0.0",
|
|
101
|
+
version: "22.2.3",
|
|
102
|
+
ngImport: i0,
|
|
103
|
+
type: TxKanbanColumnTop,
|
|
104
|
+
decorators: [{
|
|
105
|
+
type: Directive,
|
|
106
|
+
args: [{ selector: "ng-template[txKanbanColumnTop]" }]
|
|
107
|
+
}]
|
|
108
|
+
});
|
|
109
|
+
var TxKanbanColumnFooter = class TxKanbanColumnFooter {
|
|
110
|
+
template = inject(TemplateRef);
|
|
111
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
112
|
+
return !!context;
|
|
113
|
+
}
|
|
114
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
115
|
+
minVersion: "12.0.0",
|
|
116
|
+
version: "22.2.3",
|
|
117
|
+
ngImport: i0,
|
|
118
|
+
type: TxKanbanColumnFooter,
|
|
119
|
+
deps: [],
|
|
120
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
121
|
+
});
|
|
122
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
123
|
+
minVersion: "14.0.0",
|
|
124
|
+
version: "22.2.3",
|
|
125
|
+
type: TxKanbanColumnFooter,
|
|
126
|
+
isStandalone: true,
|
|
127
|
+
selector: "ng-template[txKanbanColumnFooter]",
|
|
128
|
+
ngImport: i0
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
132
|
+
minVersion: "12.0.0",
|
|
133
|
+
version: "22.2.3",
|
|
134
|
+
ngImport: i0,
|
|
135
|
+
type: TxKanbanColumnFooter,
|
|
136
|
+
decorators: [{
|
|
137
|
+
type: Directive,
|
|
138
|
+
args: [{ selector: "ng-template[txKanbanColumnFooter]" }]
|
|
139
|
+
}]
|
|
140
|
+
});
|
|
141
|
+
var TxKanbanEmpty = class TxKanbanEmpty {
|
|
142
|
+
template = inject(TemplateRef);
|
|
143
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
144
|
+
return !!context;
|
|
145
|
+
}
|
|
146
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
147
|
+
minVersion: "12.0.0",
|
|
148
|
+
version: "22.2.3",
|
|
149
|
+
ngImport: i0,
|
|
150
|
+
type: TxKanbanEmpty,
|
|
151
|
+
deps: [],
|
|
152
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
153
|
+
});
|
|
154
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
155
|
+
minVersion: "14.0.0",
|
|
156
|
+
version: "22.2.3",
|
|
157
|
+
type: TxKanbanEmpty,
|
|
158
|
+
isStandalone: true,
|
|
159
|
+
selector: "ng-template[txKanbanEmpty]",
|
|
160
|
+
ngImport: i0
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
164
|
+
minVersion: "12.0.0",
|
|
165
|
+
version: "22.2.3",
|
|
166
|
+
ngImport: i0,
|
|
167
|
+
type: TxKanbanEmpty,
|
|
168
|
+
decorators: [{
|
|
169
|
+
type: Directive,
|
|
170
|
+
args: [{ selector: "ng-template[txKanbanEmpty]" }]
|
|
171
|
+
}]
|
|
172
|
+
});
|
|
173
|
+
const DRAG_SCROLL_IGNORE = "[data-drag-ignore], button, a, input, textarea, select, [contenteditable=\"true\"]";
|
|
174
|
+
var TxKanban = class TxKanban {
|
|
175
|
+
document = inject(DOCUMENT);
|
|
176
|
+
injector = inject(Injector);
|
|
177
|
+
host = inject(ElementRef);
|
|
178
|
+
announcer = inject(TxAnnouncer);
|
|
179
|
+
locale = inject(TxLocaleService);
|
|
180
|
+
columns = input.required(...ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []);
|
|
181
|
+
itemId = input.required(...ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []);
|
|
182
|
+
itemsDraggable = input(false, {
|
|
183
|
+
...ngDevMode ? { debugName: "itemsDraggable" } : /* istanbul ignore next */ {},
|
|
184
|
+
transform: booleanAttribute
|
|
185
|
+
});
|
|
186
|
+
columnsDraggable = input(false, {
|
|
187
|
+
...ngDevMode ? { debugName: "columnsDraggable" } : /* istanbul ignore next */ {},
|
|
188
|
+
transform: booleanAttribute
|
|
189
|
+
});
|
|
190
|
+
focusableCards = input(true, {
|
|
191
|
+
...ngDevMode ? { debugName: "focusableCards" } : /* istanbul ignore next */ {},
|
|
192
|
+
transform: booleanAttribute
|
|
193
|
+
});
|
|
194
|
+
columnWidth = input(void 0, ...ngDevMode ? [{ debugName: "columnWidth" }] : /* istanbul ignore next */ []);
|
|
195
|
+
label = input(void 0, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
196
|
+
emptyText = input(void 0, ...ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []);
|
|
197
|
+
columnDragLabel = input(void 0, ...ngDevMode ? [{ debugName: "columnDragLabel" }] : /* istanbul ignore next */ []);
|
|
198
|
+
pageSize = input(30, {
|
|
199
|
+
...ngDevMode ? { debugName: "pageSize" } : /* istanbul ignore next */ {},
|
|
200
|
+
transform: numberAttribute
|
|
201
|
+
});
|
|
202
|
+
height = input(void 0, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
203
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
204
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
205
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
206
|
+
unstyled = input(void 0, {
|
|
207
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
208
|
+
transform: optionalBoolean
|
|
209
|
+
});
|
|
210
|
+
itemDropped = output();
|
|
211
|
+
columnDropped = output();
|
|
212
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
213
|
+
passThrough = injectPassThrough("kanban", this, this.pt, this.ptOptions);
|
|
214
|
+
translations = injectTranslations();
|
|
215
|
+
id = uniqueId("tx-kanban");
|
|
216
|
+
hostStyle = computed(() => ({
|
|
217
|
+
...toStyleObject(this.dt(), "--tx-kanban"),
|
|
218
|
+
...this.passThrough().root?.style
|
|
219
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
220
|
+
cardTemplate = contentChild.required(TxKanbanCard, ...ngDevMode ? [{ debugName: "cardTemplate" }] : /* istanbul ignore next */ []);
|
|
221
|
+
headerTemplate = contentChild(TxKanbanColumnHeader, ...ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []);
|
|
222
|
+
topTemplate = contentChild(TxKanbanColumnTop, ...ngDevMode ? [{ debugName: "topTemplate" }] : /* istanbul ignore next */ []);
|
|
223
|
+
footerTemplate = contentChild(TxKanbanColumnFooter, ...ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []);
|
|
224
|
+
emptyTemplate = contentChild(TxKanbanEmpty, ...ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []);
|
|
225
|
+
shown = signal({}, ...ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []);
|
|
226
|
+
views = computed(() => {
|
|
227
|
+
const pageSize = this.pageSize();
|
|
228
|
+
const shown = this.shown();
|
|
229
|
+
return this.columns().map((column) => {
|
|
230
|
+
const limit = pageSize ? shown[column.id] ?? pageSize : column.items.length;
|
|
231
|
+
return {
|
|
232
|
+
column,
|
|
233
|
+
items: column.items.slice(0, limit),
|
|
234
|
+
hidden: Math.max(0, column.items.length - limit)
|
|
235
|
+
};
|
|
236
|
+
});
|
|
237
|
+
}, ...ngDevMode ? [{ debugName: "views" }] : /* istanbul ignore next */ []);
|
|
238
|
+
listIds = computed(() => this.columns().map((column) => `${this.id}-${column.id}`), ...ngDevMode ? [{ debugName: "listIds" }] : /* istanbul ignore next */ []);
|
|
239
|
+
boardName = computed(() => this.label() ?? this.translations().board, ...ngDevMode ? [{ debugName: "boardName" }] : /* istanbul ignore next */ []);
|
|
240
|
+
handleName = computed(() => this.columnDragLabel() ?? this.translations().moveColumn, ...ngDevMode ? [{ debugName: "handleName" }] : /* istanbul ignore next */ []);
|
|
241
|
+
dragScroll = null;
|
|
242
|
+
showMore(columnId) {
|
|
243
|
+
const pageSize = this.pageSize();
|
|
244
|
+
const index = this.columns().findIndex((column) => column.id === columnId);
|
|
245
|
+
const before = this.views()[index]?.items.length ?? 0;
|
|
246
|
+
this.shown.update((shown) => ({
|
|
247
|
+
...shown,
|
|
248
|
+
[columnId]: (shown[columnId] ?? pageSize) + pageSize
|
|
249
|
+
}));
|
|
250
|
+
afterNextRender(() => this.revealCard(this.listIds()[index], before), { injector: this.injector });
|
|
251
|
+
}
|
|
252
|
+
showMoreLabel(count) {
|
|
253
|
+
return this.locale.translate("showMore", { count });
|
|
254
|
+
}
|
|
255
|
+
dropItem(event) {
|
|
256
|
+
if (event.previousContainer === event.container && event.previousIndex === event.currentIndex) return;
|
|
257
|
+
const idOf = this.itemId();
|
|
258
|
+
const itemId = idOf(event.item.data);
|
|
259
|
+
const rest = event.container.data.items.filter((item) => idOf(item) !== itemId);
|
|
260
|
+
this.itemDropped.emit(this.itemDrop(itemId, event.previousContainer.data.column.id, event.container.data.column.id, rest, event.currentIndex));
|
|
261
|
+
}
|
|
262
|
+
dropColumn(event) {
|
|
263
|
+
if (event.previousIndex === event.currentIndex) return;
|
|
264
|
+
const moved = event.item.data;
|
|
265
|
+
this.columnDropped.emit(this.columnDrop(moved.id, event.currentIndex));
|
|
266
|
+
}
|
|
267
|
+
onCardKeydown(event, columnIndex, itemIndex) {
|
|
268
|
+
const origin = event.target;
|
|
269
|
+
if (!this.itemsDraggable() || !event.altKey || !event.key.startsWith("Arrow") || origin?.closest("input, textarea, select, [contenteditable=\"true\"]")) return;
|
|
270
|
+
const views = this.views();
|
|
271
|
+
const from = views[columnIndex];
|
|
272
|
+
const idOf = this.itemId();
|
|
273
|
+
const itemId = idOf(from.items[itemIndex]);
|
|
274
|
+
let targetColumn = columnIndex;
|
|
275
|
+
let targetIndex = itemIndex;
|
|
276
|
+
if (event.key === "ArrowUp") targetIndex = itemIndex - 1;
|
|
277
|
+
else if (event.key === "ArrowDown") targetIndex = itemIndex + 1;
|
|
278
|
+
else targetColumn = columnIndex + (event.key === "ArrowLeft" ? -1 : 1);
|
|
279
|
+
const target = views[targetColumn];
|
|
280
|
+
if (!target) return;
|
|
281
|
+
const rest = target.items.filter((item) => idOf(item) !== itemId);
|
|
282
|
+
targetIndex = Math.min(Math.max(targetIndex, 0), rest.length);
|
|
283
|
+
if (targetColumn === columnIndex && targetIndex === itemIndex) return;
|
|
284
|
+
event.preventDefault();
|
|
285
|
+
this.itemDropped.emit(this.itemDrop(itemId, from.column.id, target.column.id, rest, targetIndex));
|
|
286
|
+
this.announcer.announce(this.locale.translate("kanbanMoved", {
|
|
287
|
+
column: target.column.title,
|
|
288
|
+
position: targetIndex + 1
|
|
289
|
+
}));
|
|
290
|
+
this.refocus("data-kanban-card", itemId);
|
|
291
|
+
}
|
|
292
|
+
onHandleKeydown(event, columnIndex) {
|
|
293
|
+
if (!event.altKey || event.key !== "ArrowLeft" && event.key !== "ArrowRight") return;
|
|
294
|
+
const columns = this.columns();
|
|
295
|
+
const target = columnIndex + (event.key === "ArrowLeft" ? -1 : 1);
|
|
296
|
+
if (target < 0 || target >= columns.length) return;
|
|
297
|
+
event.preventDefault();
|
|
298
|
+
const id = columns[columnIndex].id;
|
|
299
|
+
this.columnDropped.emit(this.columnDrop(id, target));
|
|
300
|
+
this.announcer.announce(this.locale.translate("kanbanMoved", {
|
|
301
|
+
column: this.boardName(),
|
|
302
|
+
position: target + 1
|
|
303
|
+
}));
|
|
304
|
+
this.refocus("data-kanban-handle", id);
|
|
305
|
+
}
|
|
306
|
+
onPointerDown(event) {
|
|
307
|
+
const target = event.target;
|
|
308
|
+
if (event.button !== 0 || event.pointerType !== "mouse" || target?.closest(DRAG_SCROLL_IGNORE)) return;
|
|
309
|
+
const board = event.currentTarget;
|
|
310
|
+
this.dragScroll = {
|
|
311
|
+
x: event.clientX,
|
|
312
|
+
left: board.scrollLeft,
|
|
313
|
+
pointer: event.pointerId
|
|
314
|
+
};
|
|
315
|
+
board.setPointerCapture?.(event.pointerId);
|
|
316
|
+
}
|
|
317
|
+
onPointerMove(event) {
|
|
318
|
+
if (!this.dragScroll || event.pointerId !== this.dragScroll.pointer) return;
|
|
319
|
+
event.currentTarget.scrollLeft = this.dragScroll.left - (event.clientX - this.dragScroll.x);
|
|
320
|
+
}
|
|
321
|
+
onPointerUp() {
|
|
322
|
+
this.dragScroll = null;
|
|
323
|
+
}
|
|
324
|
+
itemDrop(itemId, fromColumnId, toColumnId, rest, index) {
|
|
325
|
+
const idOf = this.itemId();
|
|
326
|
+
const before = rest[index];
|
|
327
|
+
const after = rest[index - 1];
|
|
328
|
+
return {
|
|
329
|
+
itemId,
|
|
330
|
+
fromColumnId,
|
|
331
|
+
toColumnId,
|
|
332
|
+
beforeId: before ? idOf(before) : null,
|
|
333
|
+
afterId: after ? idOf(after) : null
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
columnDrop(columnId, index) {
|
|
337
|
+
const rest = this.columns().filter((column) => column.id !== columnId);
|
|
338
|
+
return {
|
|
339
|
+
columnId,
|
|
340
|
+
beforeId: rest[index]?.id ?? null,
|
|
341
|
+
afterId: rest[index - 1]?.id ?? null
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
revealCard(listId, index) {
|
|
345
|
+
const list = listId ? this.document.getElementById(listId) : null;
|
|
346
|
+
const card = list?.querySelectorAll(":scope > .tx-kanban__card")[index];
|
|
347
|
+
if (!list || !card) return;
|
|
348
|
+
(card.hasAttribute("tabindex") ? card : card.querySelector("[tabindex=\"0\"], button, a[href]"))?.focus({ preventScroll: true });
|
|
349
|
+
const behavior = this.document.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth";
|
|
350
|
+
if (list.scrollHeight > list.clientHeight) {
|
|
351
|
+
const top = list.scrollTop + card.getBoundingClientRect().top - list.getBoundingClientRect().top;
|
|
352
|
+
list.scrollTo?.({
|
|
353
|
+
top: top - parseFloat(this.document.defaultView?.getComputedStyle(list).paddingTop ?? "0"),
|
|
354
|
+
behavior
|
|
355
|
+
});
|
|
356
|
+
} else card.scrollIntoView?.({
|
|
357
|
+
block: "nearest",
|
|
358
|
+
behavior
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
refocus(attribute, value) {
|
|
362
|
+
afterNextRender(() => {
|
|
363
|
+
const element = Array.from(this.host.nativeElement.querySelectorAll(`[${attribute}]`)).find((item) => item.getAttribute(attribute) === value);
|
|
364
|
+
(element?.hasAttribute("tabindex") || element?.tagName === "BUTTON" ? element : element?.querySelector("[tabindex=\"0\"], button, a[href]"))?.focus();
|
|
365
|
+
}, { injector: this.injector });
|
|
366
|
+
}
|
|
367
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
368
|
+
minVersion: "12.0.0",
|
|
369
|
+
version: "22.2.3",
|
|
370
|
+
ngImport: i0,
|
|
371
|
+
type: TxKanban,
|
|
372
|
+
deps: [],
|
|
373
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
374
|
+
});
|
|
375
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
376
|
+
minVersion: "17.0.0",
|
|
377
|
+
version: "22.2.3",
|
|
378
|
+
type: TxKanban,
|
|
379
|
+
isStandalone: true,
|
|
380
|
+
selector: "tx-kanban",
|
|
381
|
+
inputs: {
|
|
382
|
+
columns: {
|
|
383
|
+
classPropertyName: "columns",
|
|
384
|
+
publicName: "columns",
|
|
385
|
+
isSignal: true,
|
|
386
|
+
isRequired: true,
|
|
387
|
+
transformFunction: null
|
|
388
|
+
},
|
|
389
|
+
itemId: {
|
|
390
|
+
classPropertyName: "itemId",
|
|
391
|
+
publicName: "itemId",
|
|
392
|
+
isSignal: true,
|
|
393
|
+
isRequired: true,
|
|
394
|
+
transformFunction: null
|
|
395
|
+
},
|
|
396
|
+
itemsDraggable: {
|
|
397
|
+
classPropertyName: "itemsDraggable",
|
|
398
|
+
publicName: "itemsDraggable",
|
|
399
|
+
isSignal: true,
|
|
400
|
+
isRequired: false,
|
|
401
|
+
transformFunction: null
|
|
402
|
+
},
|
|
403
|
+
columnsDraggable: {
|
|
404
|
+
classPropertyName: "columnsDraggable",
|
|
405
|
+
publicName: "columnsDraggable",
|
|
406
|
+
isSignal: true,
|
|
407
|
+
isRequired: false,
|
|
408
|
+
transformFunction: null
|
|
409
|
+
},
|
|
410
|
+
focusableCards: {
|
|
411
|
+
classPropertyName: "focusableCards",
|
|
412
|
+
publicName: "focusableCards",
|
|
413
|
+
isSignal: true,
|
|
414
|
+
isRequired: false,
|
|
415
|
+
transformFunction: null
|
|
416
|
+
},
|
|
417
|
+
columnWidth: {
|
|
418
|
+
classPropertyName: "columnWidth",
|
|
419
|
+
publicName: "columnWidth",
|
|
420
|
+
isSignal: true,
|
|
421
|
+
isRequired: false,
|
|
422
|
+
transformFunction: null
|
|
423
|
+
},
|
|
424
|
+
label: {
|
|
425
|
+
classPropertyName: "label",
|
|
426
|
+
publicName: "label",
|
|
427
|
+
isSignal: true,
|
|
428
|
+
isRequired: false,
|
|
429
|
+
transformFunction: null
|
|
430
|
+
},
|
|
431
|
+
emptyText: {
|
|
432
|
+
classPropertyName: "emptyText",
|
|
433
|
+
publicName: "emptyText",
|
|
434
|
+
isSignal: true,
|
|
435
|
+
isRequired: false,
|
|
436
|
+
transformFunction: null
|
|
437
|
+
},
|
|
438
|
+
columnDragLabel: {
|
|
439
|
+
classPropertyName: "columnDragLabel",
|
|
440
|
+
publicName: "columnDragLabel",
|
|
441
|
+
isSignal: true,
|
|
442
|
+
isRequired: false,
|
|
443
|
+
transformFunction: null
|
|
444
|
+
},
|
|
445
|
+
pageSize: {
|
|
446
|
+
classPropertyName: "pageSize",
|
|
447
|
+
publicName: "pageSize",
|
|
448
|
+
isSignal: true,
|
|
449
|
+
isRequired: false,
|
|
450
|
+
transformFunction: null
|
|
451
|
+
},
|
|
452
|
+
height: {
|
|
453
|
+
classPropertyName: "height",
|
|
454
|
+
publicName: "height",
|
|
455
|
+
isSignal: true,
|
|
456
|
+
isRequired: false,
|
|
457
|
+
transformFunction: null
|
|
458
|
+
},
|
|
459
|
+
dt: {
|
|
460
|
+
classPropertyName: "dt",
|
|
461
|
+
publicName: "dt",
|
|
462
|
+
isSignal: true,
|
|
463
|
+
isRequired: false,
|
|
464
|
+
transformFunction: null
|
|
465
|
+
},
|
|
466
|
+
pt: {
|
|
467
|
+
classPropertyName: "pt",
|
|
468
|
+
publicName: "pt",
|
|
469
|
+
isSignal: true,
|
|
470
|
+
isRequired: false,
|
|
471
|
+
transformFunction: null
|
|
472
|
+
},
|
|
473
|
+
ptOptions: {
|
|
474
|
+
classPropertyName: "ptOptions",
|
|
475
|
+
publicName: "ptOptions",
|
|
476
|
+
isSignal: true,
|
|
477
|
+
isRequired: false,
|
|
478
|
+
transformFunction: null
|
|
479
|
+
},
|
|
480
|
+
unstyled: {
|
|
481
|
+
classPropertyName: "unstyled",
|
|
482
|
+
publicName: "unstyled",
|
|
483
|
+
isSignal: true,
|
|
484
|
+
isRequired: false,
|
|
485
|
+
transformFunction: null
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
outputs: {
|
|
489
|
+
itemDropped: "itemDropped",
|
|
490
|
+
columnDropped: "columnDropped"
|
|
491
|
+
},
|
|
492
|
+
host: {
|
|
493
|
+
properties: {
|
|
494
|
+
"class": "passThrough().root?.class",
|
|
495
|
+
"style": "hostStyle()",
|
|
496
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
497
|
+
"class.tx-kanban--fixed": "!!height()"
|
|
498
|
+
},
|
|
499
|
+
classAttribute: "tx-kanban"
|
|
500
|
+
},
|
|
501
|
+
queries: [
|
|
502
|
+
{
|
|
503
|
+
propertyName: "cardTemplate",
|
|
504
|
+
first: true,
|
|
505
|
+
predicate: TxKanbanCard,
|
|
506
|
+
descendants: true,
|
|
507
|
+
isSignal: true
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
propertyName: "headerTemplate",
|
|
511
|
+
first: true,
|
|
512
|
+
predicate: TxKanbanColumnHeader,
|
|
513
|
+
descendants: true,
|
|
514
|
+
isSignal: true
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
propertyName: "topTemplate",
|
|
518
|
+
first: true,
|
|
519
|
+
predicate: TxKanbanColumnTop,
|
|
520
|
+
descendants: true,
|
|
521
|
+
isSignal: true
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
propertyName: "footerTemplate",
|
|
525
|
+
first: true,
|
|
526
|
+
predicate: TxKanbanColumnFooter,
|
|
527
|
+
descendants: true,
|
|
528
|
+
isSignal: true
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
propertyName: "emptyTemplate",
|
|
532
|
+
first: true,
|
|
533
|
+
predicate: TxKanbanEmpty,
|
|
534
|
+
descendants: true,
|
|
535
|
+
isSignal: true
|
|
536
|
+
}
|
|
537
|
+
],
|
|
538
|
+
ngImport: i0,
|
|
539
|
+
template: "<div\n class=\"tx-kanban__board\"\n role=\"region\"\n tabindex=\"0\"\n [attr.aria-label]=\"boardName()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp()\"\n (pointercancel)=\"onPointerUp()\"\n>\n <div\n class=\"tx-kanban__track\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n [style.height]=\"height() || null\"\n [cdkDropListData]=\"columns()\"\n [cdkDropListDisabled]=\"!columnsDraggable()\"\n (cdkDropListDropped)=\"dropColumn($event)\"\n >\n @for (view of views(); track view.column.id; let columnIndex = $index) {\n @let column = view.column;\n <section\n class=\"tx-kanban__column\"\n cdkDrag\n [cdkDragData]=\"column\"\n [cdkDragDisabled]=\"!columnsDraggable()\"\n [style.width]=\"columnWidth() || null\"\n [attr.aria-label]=\"column.title\"\n [class]=\"passThrough().column?.class\"\n [style]=\"passThrough().column?.style\"\n >\n <div class=\"tx-kanban__column-placeholder\" *cdkDragPlaceholder [style.width]=\"columnWidth() || null\"></div>\n <header class=\"tx-kanban__head\" data-drag-ignore [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n @if (columnsDraggable()) {\n <button\n type=\"button\"\n class=\"tx-kanban__handle\"\n cdkDragHandle\n [attr.data-kanban-handle]=\"column.id\"\n [attr.aria-label]=\"handleName() + ': ' + column.title\"\n [attr.aria-description]=\"translations().kanbanMoveHint\"\n [title]=\"handleName()\"\n (keydown)=\"onHandleKeydown($event, columnIndex)\"\n >\n <tx-icon name=\"bars\" aria-hidden=\"true\" />\n </button>\n }\n @if (headerTemplate(); as header) {\n <ng-container *ngTemplateOutlet=\"header.template; context: { $implicit: column }\" />\n } @else {\n <h3 class=\"tx-kanban__title\">{{ column.title }}</h3>\n <tx-pill size=\"small\" [value]=\"column.items.length\" [unstyled]=\"isUnstyled()\" />\n }\n </header>\n @if (topTemplate(); as top) {\n <div class=\"tx-kanban__slot\" data-drag-ignore>\n <ng-container *ngTemplateOutlet=\"top.template; context: { $implicit: column }\" />\n </div>\n }\n <div\n class=\"tx-kanban__list\"\n cdkDropList\n [attr.role]=\"view.items.length ? 'list' : null\"\n [attr.tabindex]=\"height() ? 0 : null\"\n [attr.aria-label]=\"column.title\"\n [id]=\"listIds()[columnIndex]\"\n [cdkDropListData]=\"view\"\n [cdkDropListConnectedTo]=\"listIds()\"\n [cdkDropListDisabled]=\"!itemsDraggable()\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n (cdkDropListDropped)=\"dropItem($event)\"\n >\n @for (item of view.items; track itemId()(item); let itemIndex = $index) {\n <div\n class=\"tx-kanban__card\"\n role=\"listitem\"\n cdkDrag\n data-drag-ignore\n [attr.tabindex]=\"itemsDraggable() && focusableCards() ? 0 : null\"\n [attr.data-kanban-card]=\"itemId()(item)\"\n [attr.aria-description]=\"itemsDraggable() && focusableCards() ? translations().kanbanMoveHint : null\"\n [cdkDragData]=\"item\"\n [class]=\"passThrough().card?.class\"\n [style]=\"passThrough().card?.style\"\n (keydown)=\"onCardKeydown($event, columnIndex, itemIndex)\"\n >\n <div class=\"tx-kanban__card-placeholder\" *cdkDragPlaceholder></div>\n <ng-container *ngTemplateOutlet=\"cardTemplate().template; context: { $implicit: item, column: column }\" />\n </div>\n } @empty {\n @if (emptyTemplate(); as empty) {\n <ng-container *ngTemplateOutlet=\"empty.template; context: { $implicit: column }\" />\n } @else {\n <div class=\"tx-kanban__empty\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n {{ emptyText() ?? translations().noCards }}\n </div>\n }\n }\n </div>\n @if (view.hidden) {\n <button\n txButton\n type=\"button\"\n class=\"tx-kanban__more\"\n data-drag-ignore\n text\n severity=\"secondary\"\n icon=\"angle-down\"\n [unstyled]=\"isUnstyled()\"\n (click)=\"showMore(column.id)\"\n >\n {{ showMoreLabel(view.hidden) }}\n </button>\n }\n @if (footerTemplate(); as footer) {\n <div class=\"tx-kanban__slot\" data-drag-ignore>\n <ng-container *ngTemplateOutlet=\"footer.template; context: { $implicit: column }\" />\n </div>\n }\n </section>\n }\n <div class=\"tx-kanban__after\" data-drag-ignore>\n <ng-content />\n </div>\n </div>\n</div>\n",
|
|
540
|
+
styles: [":host{display:block;min-width:0}.tx-kanban__board{overflow-x:auto;outline:none}.tx-kanban__track{display:flex;align-items:flex-start;width:max-content}.tx-kanban__column{display:flex;flex-direction:column;flex-shrink:0;box-sizing:border-box}.tx-kanban__head{display:flex;align-items:center;cursor:default}.tx-kanban__handle{display:flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;border:0;background:transparent;color:inherit;cursor:grab}.tx-kanban__title{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-kanban__slot,.tx-kanban__card{display:block;cursor:default}.tx-kanban__list{display:flex;flex-direction:column}.tx-kanban__empty{display:flex;align-items:center;justify-content:center;text-align:center}.tx-kanban__more{align-self:stretch}.tx-kanban__after{flex-shrink:0}:host(.tx-kanban--fixed) .tx-kanban__track{align-items:stretch}:host(.tx-kanban--fixed) .tx-kanban__column{align-self:flex-start;max-height:100%}:host(.tx-kanban--fixed) .tx-kanban__list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-kanban__board{margin:calc(-1 * var(--tx-kanban-inset)) calc(-1 * var(--tx-kanban-inset)) 0;padding:var(--tx-kanban-inset) var(--tx-kanban-inset) var(--tx-kanban-padding-bottom)}:host([data-styled]) .tx-kanban__board:focus-visible{border-radius:var(--tx-kanban-column-border-radius);box-shadow:var(--tx-kanban-card-focus-ring-shadow)}:host([data-styled]) .tx-kanban__track{gap:var(--tx-kanban-gap);min-height:var(--tx-kanban-min-height)}:host([data-styled]) .tx-kanban__column{width:var(--tx-kanban-column-width);gap:var(--tx-kanban-column-gap);padding:var(--tx-kanban-column-padding);border-radius:var(--tx-kanban-column-border-radius);background:var(--tx-kanban-column-background);box-shadow:var(--tx-kanban-column-shadow)}:host([data-styled]) .tx-kanban__column-placeholder{align-self:stretch;min-height:var(--tx-kanban-min-height);border:2px dashed var(--tx-kanban-placeholder-border-color);border-radius:var(--tx-kanban-column-border-radius);background:var(--tx-kanban-placeholder-background)}:host([data-styled]) .tx-kanban__head{gap:var(--tx-kanban-column-header-gap);min-height:var(--tx-kanban-column-header-min-height)}:host([data-styled]) .tx-kanban__handle{width:var(--tx-kanban-handle-size);height:var(--tx-kanban-handle-size);border-radius:var(--tx-kanban-handle-border-radius);color:var(--tx-kanban-handle-color);font-size:var(--tx-kanban-handle-icon-size)}:host([data-styled]) .tx-kanban__handle:hover{background:var(--tx-kanban-handle-hover-background);color:var(--tx-kanban-handle-hover-color)}:host([data-styled]) .tx-kanban__handle:focus-visible{outline:none;box-shadow:var(--tx-kanban-card-focus-ring-shadow)}:host([data-styled]) .tx-kanban__title{color:var(--tx-kanban-column-title-color);font-size:var(--tx-kanban-column-title-font-size);font-weight:var(--tx-kanban-column-title-font-weight)}:host([data-styled]) .tx-kanban__list{gap:var(--tx-kanban-list-gap);min-height:var(--tx-kanban-list-min-height);margin:calc(-1 * var(--tx-kanban-list-padding));padding:var(--tx-kanban-list-padding);border-radius:var(--tx-kanban-column-border-radius);scrollbar-color:var(--tx-kanban-list-scrollbar-color) transparent;scrollbar-width:thin;transition:background-color var(--tx-kanban-motion-fade-duration)}:host([data-styled]) .tx-kanban__list.cdk-drop-list-receiving{background:var(--tx-kanban-list-receiving-background)}:host([data-styled]) .tx-kanban__list:focus-visible{outline:none;box-shadow:var(--tx-kanban-card-focus-ring-shadow)}:host([data-styled]) .tx-kanban__card{border-radius:var(--tx-kanban-card-border-radius)}:host([data-styled]) .tx-kanban__card:focus-visible{outline:none;box-shadow:var(--tx-kanban-card-focus-ring-shadow)}:host([data-styled]) .tx-kanban__card-placeholder{min-height:var(--tx-kanban-placeholder-min-height);border:2px dashed var(--tx-kanban-placeholder-border-color);border-radius:var(--tx-kanban-card-border-radius);background:var(--tx-kanban-placeholder-background)}:host([data-styled]) .tx-kanban__empty{min-height:var(--tx-kanban-empty-min-height);padding:var(--tx-kanban-empty-padding);border:1px dashed var(--tx-kanban-empty-border-color);border-radius:var(--tx-kanban-column-border-radius);color:var(--tx-kanban-empty-color);font-size:var(--tx-kanban-empty-font-size)}:host([data-styled]) .tx-kanban__track.cdk-drop-list-dragging .tx-kanban__column:not(.cdk-drag-placeholder),:host([data-styled]) .tx-kanban__list.cdk-drop-list-dragging .tx-kanban__card:not(.cdk-drag-placeholder){transition:transform var(--tx-kanban-motion-duration) var(--tx-kanban-motion-easing)}.tx-kanban__card.cdk-drag-preview,.tx-kanban__column.cdk-drag-preview{border-radius:var(--tx-kanban-card-border-radius);box-shadow:var(--tx-kanban-card-drag-shadow)}.tx-kanban__card.cdk-drag-animating,.tx-kanban__column.cdk-drag-animating{transition:transform var(--tx-kanban-motion-duration) var(--tx-kanban-motion-easing)}@media(prefers-reduced-motion:reduce){.tx-kanban__card.cdk-drag-animating,.tx-kanban__column.cdk-drag-animating,:host([data-styled]) .tx-kanban__track.cdk-drop-list-dragging .tx-kanban__column:not(.cdk-drag-placeholder),:host([data-styled]) .tx-kanban__list.cdk-drop-list-dragging .tx-kanban__card:not(.cdk-drag-placeholder),:host([data-styled]) .tx-kanban__list{transition:none}}\n"],
|
|
541
|
+
dependencies: [
|
|
542
|
+
{
|
|
543
|
+
kind: "directive",
|
|
544
|
+
type: NgTemplateOutlet,
|
|
545
|
+
selector: "[ngTemplateOutlet]",
|
|
546
|
+
inputs: [
|
|
547
|
+
"ngTemplateOutletContext",
|
|
548
|
+
"ngTemplateOutlet",
|
|
549
|
+
"ngTemplateOutletInjector"
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
kind: "directive",
|
|
554
|
+
type: CdkDropList,
|
|
555
|
+
selector: "[cdkDropList], cdk-drop-list",
|
|
556
|
+
inputs: [
|
|
557
|
+
"cdkDropListConnectedTo",
|
|
558
|
+
"cdkDropListData",
|
|
559
|
+
"cdkDropListOrientation",
|
|
560
|
+
"id",
|
|
561
|
+
"cdkDropListLockAxis",
|
|
562
|
+
"cdkDropListDisabled",
|
|
563
|
+
"cdkDropListSortingDisabled",
|
|
564
|
+
"cdkDropListEnterPredicate",
|
|
565
|
+
"cdkDropListSortPredicate",
|
|
566
|
+
"cdkDropListAutoScrollDisabled",
|
|
567
|
+
"cdkDropListAutoScrollStep",
|
|
568
|
+
"cdkDropListElementContainer",
|
|
569
|
+
"cdkDropListHasAnchor"
|
|
570
|
+
],
|
|
571
|
+
outputs: [
|
|
572
|
+
"cdkDropListDropped",
|
|
573
|
+
"cdkDropListEntered",
|
|
574
|
+
"cdkDropListExited",
|
|
575
|
+
"cdkDropListSorted"
|
|
576
|
+
],
|
|
577
|
+
exportAs: ["cdkDropList"]
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
kind: "directive",
|
|
581
|
+
type: CdkDrag,
|
|
582
|
+
selector: "[cdkDrag]",
|
|
583
|
+
inputs: [
|
|
584
|
+
"cdkDragData",
|
|
585
|
+
"cdkDragLockAxis",
|
|
586
|
+
"cdkDragRootElement",
|
|
587
|
+
"cdkDragBoundary",
|
|
588
|
+
"cdkDragStartDelay",
|
|
589
|
+
"cdkDragFreeDragPosition",
|
|
590
|
+
"cdkDragDisabled",
|
|
591
|
+
"cdkDragConstrainPosition",
|
|
592
|
+
"cdkDragPreviewClass",
|
|
593
|
+
"cdkDragPreviewContainer",
|
|
594
|
+
"cdkDragScale"
|
|
595
|
+
],
|
|
596
|
+
outputs: [
|
|
597
|
+
"cdkDragStarted",
|
|
598
|
+
"cdkDragReleased",
|
|
599
|
+
"cdkDragEnded",
|
|
600
|
+
"cdkDragEntered",
|
|
601
|
+
"cdkDragExited",
|
|
602
|
+
"cdkDragDropped",
|
|
603
|
+
"cdkDragMoved"
|
|
604
|
+
],
|
|
605
|
+
exportAs: ["cdkDrag"]
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
kind: "directive",
|
|
609
|
+
type: CdkDragHandle,
|
|
610
|
+
selector: "[cdkDragHandle]",
|
|
611
|
+
inputs: ["cdkDragHandleDisabled"]
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
kind: "directive",
|
|
615
|
+
type: CdkDragPlaceholder,
|
|
616
|
+
selector: "ng-template[cdkDragPlaceholder]",
|
|
617
|
+
inputs: ["data"]
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
kind: "component",
|
|
621
|
+
type: TxButton,
|
|
622
|
+
selector: "button[txButton], a[txButton]",
|
|
623
|
+
inputs: [
|
|
624
|
+
"label",
|
|
625
|
+
"severity",
|
|
626
|
+
"size",
|
|
627
|
+
"variant",
|
|
628
|
+
"outlined",
|
|
629
|
+
"text",
|
|
630
|
+
"link",
|
|
631
|
+
"rounded",
|
|
632
|
+
"raised",
|
|
633
|
+
"plain",
|
|
634
|
+
"fluid",
|
|
635
|
+
"disabled",
|
|
636
|
+
"tabindex",
|
|
637
|
+
"icon",
|
|
638
|
+
"iconPos",
|
|
639
|
+
"iconOnly",
|
|
640
|
+
"loading",
|
|
641
|
+
"loadingIcon",
|
|
642
|
+
"badge",
|
|
643
|
+
"badgeSeverity",
|
|
644
|
+
"dt",
|
|
645
|
+
"pt",
|
|
646
|
+
"ptOptions",
|
|
647
|
+
"unstyled"
|
|
648
|
+
]
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
kind: "component",
|
|
652
|
+
type: TxIcon,
|
|
653
|
+
selector: "tx-icon",
|
|
654
|
+
inputs: ["name"]
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
kind: "component",
|
|
658
|
+
type: TxPill,
|
|
659
|
+
selector: "tx-pill",
|
|
660
|
+
inputs: [
|
|
661
|
+
"value",
|
|
662
|
+
"tone",
|
|
663
|
+
"variant",
|
|
664
|
+
"size",
|
|
665
|
+
"icon",
|
|
666
|
+
"dot",
|
|
667
|
+
"removable",
|
|
668
|
+
"removeLabel",
|
|
669
|
+
"dt",
|
|
670
|
+
"pt",
|
|
671
|
+
"ptOptions",
|
|
672
|
+
"unstyled"
|
|
673
|
+
],
|
|
674
|
+
outputs: ["removed"]
|
|
675
|
+
}
|
|
676
|
+
],
|
|
677
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
678
|
+
});
|
|
679
|
+
};
|
|
680
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
681
|
+
minVersion: "12.0.0",
|
|
682
|
+
version: "22.2.3",
|
|
683
|
+
ngImport: i0,
|
|
684
|
+
type: TxKanban,
|
|
685
|
+
decorators: [{
|
|
686
|
+
type: Component,
|
|
687
|
+
args: [{
|
|
688
|
+
selector: "tx-kanban",
|
|
689
|
+
imports: [
|
|
690
|
+
NgTemplateOutlet,
|
|
691
|
+
CdkDropList,
|
|
692
|
+
CdkDrag,
|
|
693
|
+
CdkDragHandle,
|
|
694
|
+
CdkDragPlaceholder,
|
|
695
|
+
TxButton,
|
|
696
|
+
TxIcon,
|
|
697
|
+
TxPill
|
|
698
|
+
],
|
|
699
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
700
|
+
host: {
|
|
701
|
+
class: "tx-kanban",
|
|
702
|
+
"[class]": "passThrough().root?.class",
|
|
703
|
+
"[style]": "hostStyle()",
|
|
704
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
705
|
+
"[class.tx-kanban--fixed]": "!!height()"
|
|
706
|
+
},
|
|
707
|
+
template: "<div\n class=\"tx-kanban__board\"\n role=\"region\"\n tabindex=\"0\"\n [attr.aria-label]=\"boardName()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp()\"\n (pointercancel)=\"onPointerUp()\"\n>\n <div\n class=\"tx-kanban__track\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n [style.height]=\"height() || null\"\n [cdkDropListData]=\"columns()\"\n [cdkDropListDisabled]=\"!columnsDraggable()\"\n (cdkDropListDropped)=\"dropColumn($event)\"\n >\n @for (view of views(); track view.column.id; let columnIndex = $index) {\n @let column = view.column;\n <section\n class=\"tx-kanban__column\"\n cdkDrag\n [cdkDragData]=\"column\"\n [cdkDragDisabled]=\"!columnsDraggable()\"\n [style.width]=\"columnWidth() || null\"\n [attr.aria-label]=\"column.title\"\n [class]=\"passThrough().column?.class\"\n [style]=\"passThrough().column?.style\"\n >\n <div class=\"tx-kanban__column-placeholder\" *cdkDragPlaceholder [style.width]=\"columnWidth() || null\"></div>\n <header class=\"tx-kanban__head\" data-drag-ignore [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n @if (columnsDraggable()) {\n <button\n type=\"button\"\n class=\"tx-kanban__handle\"\n cdkDragHandle\n [attr.data-kanban-handle]=\"column.id\"\n [attr.aria-label]=\"handleName() + ': ' + column.title\"\n [attr.aria-description]=\"translations().kanbanMoveHint\"\n [title]=\"handleName()\"\n (keydown)=\"onHandleKeydown($event, columnIndex)\"\n >\n <tx-icon name=\"bars\" aria-hidden=\"true\" />\n </button>\n }\n @if (headerTemplate(); as header) {\n <ng-container *ngTemplateOutlet=\"header.template; context: { $implicit: column }\" />\n } @else {\n <h3 class=\"tx-kanban__title\">{{ column.title }}</h3>\n <tx-pill size=\"small\" [value]=\"column.items.length\" [unstyled]=\"isUnstyled()\" />\n }\n </header>\n @if (topTemplate(); as top) {\n <div class=\"tx-kanban__slot\" data-drag-ignore>\n <ng-container *ngTemplateOutlet=\"top.template; context: { $implicit: column }\" />\n </div>\n }\n <div\n class=\"tx-kanban__list\"\n cdkDropList\n [attr.role]=\"view.items.length ? 'list' : null\"\n [attr.tabindex]=\"height() ? 0 : null\"\n [attr.aria-label]=\"column.title\"\n [id]=\"listIds()[columnIndex]\"\n [cdkDropListData]=\"view\"\n [cdkDropListConnectedTo]=\"listIds()\"\n [cdkDropListDisabled]=\"!itemsDraggable()\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n (cdkDropListDropped)=\"dropItem($event)\"\n >\n @for (item of view.items; track itemId()(item); let itemIndex = $index) {\n <div\n class=\"tx-kanban__card\"\n role=\"listitem\"\n cdkDrag\n data-drag-ignore\n [attr.tabindex]=\"itemsDraggable() && focusableCards() ? 0 : null\"\n [attr.data-kanban-card]=\"itemId()(item)\"\n [attr.aria-description]=\"itemsDraggable() && focusableCards() ? translations().kanbanMoveHint : null\"\n [cdkDragData]=\"item\"\n [class]=\"passThrough().card?.class\"\n [style]=\"passThrough().card?.style\"\n (keydown)=\"onCardKeydown($event, columnIndex, itemIndex)\"\n >\n <div class=\"tx-kanban__card-placeholder\" *cdkDragPlaceholder></div>\n <ng-container *ngTemplateOutlet=\"cardTemplate().template; context: { $implicit: item, column: column }\" />\n </div>\n } @empty {\n @if (emptyTemplate(); as empty) {\n <ng-container *ngTemplateOutlet=\"empty.template; context: { $implicit: column }\" />\n } @else {\n <div class=\"tx-kanban__empty\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n {{ emptyText() ?? translations().noCards }}\n </div>\n }\n }\n </div>\n @if (view.hidden) {\n <button\n txButton\n type=\"button\"\n class=\"tx-kanban__more\"\n data-drag-ignore\n text\n severity=\"secondary\"\n icon=\"angle-down\"\n [unstyled]=\"isUnstyled()\"\n (click)=\"showMore(column.id)\"\n >\n {{ showMoreLabel(view.hidden) }}\n </button>\n }\n @if (footerTemplate(); as footer) {\n <div class=\"tx-kanban__slot\" data-drag-ignore>\n <ng-container *ngTemplateOutlet=\"footer.template; context: { $implicit: column }\" />\n </div>\n }\n </section>\n }\n <div class=\"tx-kanban__after\" data-drag-ignore>\n <ng-content />\n </div>\n </div>\n</div>\n",
|
|
708
|
+
styles: [":host{display:block;min-width:0}.tx-kanban__board{overflow-x:auto;outline:none}.tx-kanban__track{display:flex;align-items:flex-start;width:max-content}.tx-kanban__column{display:flex;flex-direction:column;flex-shrink:0;box-sizing:border-box}.tx-kanban__head{display:flex;align-items:center;cursor:default}.tx-kanban__handle{display:flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;border:0;background:transparent;color:inherit;cursor:grab}.tx-kanban__title{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-kanban__slot,.tx-kanban__card{display:block;cursor:default}.tx-kanban__list{display:flex;flex-direction:column}.tx-kanban__empty{display:flex;align-items:center;justify-content:center;text-align:center}.tx-kanban__more{align-self:stretch}.tx-kanban__after{flex-shrink:0}:host(.tx-kanban--fixed) .tx-kanban__track{align-items:stretch}:host(.tx-kanban--fixed) .tx-kanban__column{align-self:flex-start;max-height:100%}:host(.tx-kanban--fixed) .tx-kanban__list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-kanban__board{margin:calc(-1 * var(--tx-kanban-inset)) calc(-1 * var(--tx-kanban-inset)) 0;padding:var(--tx-kanban-inset) var(--tx-kanban-inset) var(--tx-kanban-padding-bottom)}:host([data-styled]) .tx-kanban__board:focus-visible{border-radius:var(--tx-kanban-column-border-radius);box-shadow:var(--tx-kanban-card-focus-ring-shadow)}:host([data-styled]) .tx-kanban__track{gap:var(--tx-kanban-gap);min-height:var(--tx-kanban-min-height)}:host([data-styled]) .tx-kanban__column{width:var(--tx-kanban-column-width);gap:var(--tx-kanban-column-gap);padding:var(--tx-kanban-column-padding);border-radius:var(--tx-kanban-column-border-radius);background:var(--tx-kanban-column-background);box-shadow:var(--tx-kanban-column-shadow)}:host([data-styled]) .tx-kanban__column-placeholder{align-self:stretch;min-height:var(--tx-kanban-min-height);border:2px dashed var(--tx-kanban-placeholder-border-color);border-radius:var(--tx-kanban-column-border-radius);background:var(--tx-kanban-placeholder-background)}:host([data-styled]) .tx-kanban__head{gap:var(--tx-kanban-column-header-gap);min-height:var(--tx-kanban-column-header-min-height)}:host([data-styled]) .tx-kanban__handle{width:var(--tx-kanban-handle-size);height:var(--tx-kanban-handle-size);border-radius:var(--tx-kanban-handle-border-radius);color:var(--tx-kanban-handle-color);font-size:var(--tx-kanban-handle-icon-size)}:host([data-styled]) .tx-kanban__handle:hover{background:var(--tx-kanban-handle-hover-background);color:var(--tx-kanban-handle-hover-color)}:host([data-styled]) .tx-kanban__handle:focus-visible{outline:none;box-shadow:var(--tx-kanban-card-focus-ring-shadow)}:host([data-styled]) .tx-kanban__title{color:var(--tx-kanban-column-title-color);font-size:var(--tx-kanban-column-title-font-size);font-weight:var(--tx-kanban-column-title-font-weight)}:host([data-styled]) .tx-kanban__list{gap:var(--tx-kanban-list-gap);min-height:var(--tx-kanban-list-min-height);margin:calc(-1 * var(--tx-kanban-list-padding));padding:var(--tx-kanban-list-padding);border-radius:var(--tx-kanban-column-border-radius);scrollbar-color:var(--tx-kanban-list-scrollbar-color) transparent;scrollbar-width:thin;transition:background-color var(--tx-kanban-motion-fade-duration)}:host([data-styled]) .tx-kanban__list.cdk-drop-list-receiving{background:var(--tx-kanban-list-receiving-background)}:host([data-styled]) .tx-kanban__list:focus-visible{outline:none;box-shadow:var(--tx-kanban-card-focus-ring-shadow)}:host([data-styled]) .tx-kanban__card{border-radius:var(--tx-kanban-card-border-radius)}:host([data-styled]) .tx-kanban__card:focus-visible{outline:none;box-shadow:var(--tx-kanban-card-focus-ring-shadow)}:host([data-styled]) .tx-kanban__card-placeholder{min-height:var(--tx-kanban-placeholder-min-height);border:2px dashed var(--tx-kanban-placeholder-border-color);border-radius:var(--tx-kanban-card-border-radius);background:var(--tx-kanban-placeholder-background)}:host([data-styled]) .tx-kanban__empty{min-height:var(--tx-kanban-empty-min-height);padding:var(--tx-kanban-empty-padding);border:1px dashed var(--tx-kanban-empty-border-color);border-radius:var(--tx-kanban-column-border-radius);color:var(--tx-kanban-empty-color);font-size:var(--tx-kanban-empty-font-size)}:host([data-styled]) .tx-kanban__track.cdk-drop-list-dragging .tx-kanban__column:not(.cdk-drag-placeholder),:host([data-styled]) .tx-kanban__list.cdk-drop-list-dragging .tx-kanban__card:not(.cdk-drag-placeholder){transition:transform var(--tx-kanban-motion-duration) var(--tx-kanban-motion-easing)}.tx-kanban__card.cdk-drag-preview,.tx-kanban__column.cdk-drag-preview{border-radius:var(--tx-kanban-card-border-radius);box-shadow:var(--tx-kanban-card-drag-shadow)}.tx-kanban__card.cdk-drag-animating,.tx-kanban__column.cdk-drag-animating{transition:transform var(--tx-kanban-motion-duration) var(--tx-kanban-motion-easing)}@media(prefers-reduced-motion:reduce){.tx-kanban__card.cdk-drag-animating,.tx-kanban__column.cdk-drag-animating,:host([data-styled]) .tx-kanban__track.cdk-drop-list-dragging .tx-kanban__column:not(.cdk-drag-placeholder),:host([data-styled]) .tx-kanban__list.cdk-drop-list-dragging .tx-kanban__card:not(.cdk-drag-placeholder),:host([data-styled]) .tx-kanban__list{transition:none}}\n"]
|
|
709
|
+
}]
|
|
710
|
+
}],
|
|
711
|
+
propDecorators: {
|
|
712
|
+
columns: [{
|
|
713
|
+
type: i0.Input,
|
|
714
|
+
args: [{
|
|
715
|
+
isSignal: true,
|
|
716
|
+
alias: "columns",
|
|
717
|
+
required: true
|
|
718
|
+
}]
|
|
719
|
+
}],
|
|
720
|
+
itemId: [{
|
|
721
|
+
type: i0.Input,
|
|
722
|
+
args: [{
|
|
723
|
+
isSignal: true,
|
|
724
|
+
alias: "itemId",
|
|
725
|
+
required: true
|
|
726
|
+
}]
|
|
727
|
+
}],
|
|
728
|
+
itemsDraggable: [{
|
|
729
|
+
type: i0.Input,
|
|
730
|
+
args: [{
|
|
731
|
+
isSignal: true,
|
|
732
|
+
alias: "itemsDraggable",
|
|
733
|
+
required: false
|
|
734
|
+
}]
|
|
735
|
+
}],
|
|
736
|
+
columnsDraggable: [{
|
|
737
|
+
type: i0.Input,
|
|
738
|
+
args: [{
|
|
739
|
+
isSignal: true,
|
|
740
|
+
alias: "columnsDraggable",
|
|
741
|
+
required: false
|
|
742
|
+
}]
|
|
743
|
+
}],
|
|
744
|
+
focusableCards: [{
|
|
745
|
+
type: i0.Input,
|
|
746
|
+
args: [{
|
|
747
|
+
isSignal: true,
|
|
748
|
+
alias: "focusableCards",
|
|
749
|
+
required: false
|
|
750
|
+
}]
|
|
751
|
+
}],
|
|
752
|
+
columnWidth: [{
|
|
753
|
+
type: i0.Input,
|
|
754
|
+
args: [{
|
|
755
|
+
isSignal: true,
|
|
756
|
+
alias: "columnWidth",
|
|
757
|
+
required: false
|
|
758
|
+
}]
|
|
759
|
+
}],
|
|
760
|
+
label: [{
|
|
761
|
+
type: i0.Input,
|
|
762
|
+
args: [{
|
|
763
|
+
isSignal: true,
|
|
764
|
+
alias: "label",
|
|
765
|
+
required: false
|
|
766
|
+
}]
|
|
767
|
+
}],
|
|
768
|
+
emptyText: [{
|
|
769
|
+
type: i0.Input,
|
|
770
|
+
args: [{
|
|
771
|
+
isSignal: true,
|
|
772
|
+
alias: "emptyText",
|
|
773
|
+
required: false
|
|
774
|
+
}]
|
|
775
|
+
}],
|
|
776
|
+
columnDragLabel: [{
|
|
777
|
+
type: i0.Input,
|
|
778
|
+
args: [{
|
|
779
|
+
isSignal: true,
|
|
780
|
+
alias: "columnDragLabel",
|
|
781
|
+
required: false
|
|
782
|
+
}]
|
|
783
|
+
}],
|
|
784
|
+
pageSize: [{
|
|
785
|
+
type: i0.Input,
|
|
786
|
+
args: [{
|
|
787
|
+
isSignal: true,
|
|
788
|
+
alias: "pageSize",
|
|
789
|
+
required: false
|
|
790
|
+
}]
|
|
791
|
+
}],
|
|
792
|
+
height: [{
|
|
793
|
+
type: i0.Input,
|
|
794
|
+
args: [{
|
|
795
|
+
isSignal: true,
|
|
796
|
+
alias: "height",
|
|
797
|
+
required: false
|
|
798
|
+
}]
|
|
799
|
+
}],
|
|
800
|
+
dt: [{
|
|
801
|
+
type: i0.Input,
|
|
802
|
+
args: [{
|
|
803
|
+
isSignal: true,
|
|
804
|
+
alias: "dt",
|
|
805
|
+
required: false
|
|
806
|
+
}]
|
|
807
|
+
}],
|
|
808
|
+
pt: [{
|
|
809
|
+
type: i0.Input,
|
|
810
|
+
args: [{
|
|
811
|
+
isSignal: true,
|
|
812
|
+
alias: "pt",
|
|
813
|
+
required: false
|
|
814
|
+
}]
|
|
815
|
+
}],
|
|
816
|
+
ptOptions: [{
|
|
817
|
+
type: i0.Input,
|
|
818
|
+
args: [{
|
|
819
|
+
isSignal: true,
|
|
820
|
+
alias: "ptOptions",
|
|
821
|
+
required: false
|
|
822
|
+
}]
|
|
823
|
+
}],
|
|
824
|
+
unstyled: [{
|
|
825
|
+
type: i0.Input,
|
|
826
|
+
args: [{
|
|
827
|
+
isSignal: true,
|
|
828
|
+
alias: "unstyled",
|
|
829
|
+
required: false
|
|
830
|
+
}]
|
|
831
|
+
}],
|
|
832
|
+
itemDropped: [{
|
|
833
|
+
type: i0.Output,
|
|
834
|
+
args: ["itemDropped"]
|
|
835
|
+
}],
|
|
836
|
+
columnDropped: [{
|
|
837
|
+
type: i0.Output,
|
|
838
|
+
args: ["columnDropped"]
|
|
839
|
+
}],
|
|
840
|
+
cardTemplate: [{
|
|
841
|
+
type: i0.ContentChild,
|
|
842
|
+
args: [i0.forwardRef(() => TxKanbanCard), { isSignal: true }]
|
|
843
|
+
}],
|
|
844
|
+
headerTemplate: [{
|
|
845
|
+
type: i0.ContentChild,
|
|
846
|
+
args: [i0.forwardRef(() => TxKanbanColumnHeader), { isSignal: true }]
|
|
847
|
+
}],
|
|
848
|
+
topTemplate: [{
|
|
849
|
+
type: i0.ContentChild,
|
|
850
|
+
args: [i0.forwardRef(() => TxKanbanColumnTop), { isSignal: true }]
|
|
851
|
+
}],
|
|
852
|
+
footerTemplate: [{
|
|
853
|
+
type: i0.ContentChild,
|
|
854
|
+
args: [i0.forwardRef(() => TxKanbanColumnFooter), { isSignal: true }]
|
|
855
|
+
}],
|
|
856
|
+
emptyTemplate: [{
|
|
857
|
+
type: i0.ContentChild,
|
|
858
|
+
args: [i0.forwardRef(() => TxKanbanEmpty), { isSignal: true }]
|
|
859
|
+
}]
|
|
860
|
+
}
|
|
861
|
+
});
|
|
862
|
+
export { TxKanban, TxKanbanCard, TxKanbanColumnFooter, TxKanbanColumnHeader, TxKanbanColumnTop, TxKanbanEmpty };
|
|
863
|
+
|
|
864
|
+
//# sourceMappingURL=tectra-ng-blocks-kanban.mjs.map
|