@syncfusion/ej2-angular-kanban 29.2.4-ngcc → 30.1.37-ngcc
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/@syncfusion/ej2-angular-kanban.es5.js +354 -354
- package/@syncfusion/ej2-angular-kanban.js +303 -303
- package/{license → LICENSE} +10 -10
- package/dist/ej2-angular-kanban.umd.js +345 -345
- package/dist/ej2-angular-kanban.umd.min.js +1 -1
- package/ej2-angular-kanban.d.ts +5 -5
- package/package.json +15 -46
- package/public_api.d.ts +1 -1
- package/schematics/utils/lib-details.d.ts +2 -2
- package/schematics/utils/lib-details.js +2 -2
- package/schematics/utils/lib-details.ts +4 -4
- package/src/index.d.ts +6 -6
- package/src/kanban/columns.directive.d.ts +90 -90
- package/src/kanban/kanban-all.module.d.ts +5 -5
- package/src/kanban/kanban.component.d.ts +59 -59
- package/src/kanban/kanban.module.d.ts +5 -5
- package/src/kanban/stackedheaders.directive.d.ts +36 -36
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-angular-kanban.umd.js
|
|
3
|
-
* version :
|
|
3
|
+
* version : 30.1.37
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
@@ -13,350 +13,350 @@
|
|
|
13
13
|
(factory((global['ej2-angular-kanban'] = {}),global.ng.core,global.ej2.angular.base,global.ej2.kanban,global.ng.common));
|
|
14
14
|
}(this, (function (exports,core,ej2AngularBase,ej2Kanban,common) { 'use strict';
|
|
15
15
|
|
|
16
|
-
var __extends = (this && this.__extends) || (function () {
|
|
17
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20
|
-
return function (d, b) {
|
|
21
|
-
extendStatics(d, b);
|
|
22
|
-
function __() { this.constructor = d; }
|
|
23
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24
|
-
};
|
|
25
|
-
})();
|
|
26
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
27
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
28
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
29
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
30
|
-
else
|
|
31
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
32
|
-
if (d = decorators[i])
|
|
33
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
34
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35
|
-
};
|
|
36
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
37
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
38
|
-
return Reflect.metadata(k, v);
|
|
39
|
-
};
|
|
40
|
-
var input = ['allowDrag', 'allowDrop', 'allowToggle', 'headerText', 'isExpanded', 'keyField', 'maxCount', 'minCount', 'showAddButton', 'showItemCount', 'template', 'transitionColumns'];
|
|
41
|
-
var outputs = [];
|
|
42
|
-
/**
|
|
43
|
-
* `e-columns` directive represent a columns of the Kanban board.
|
|
44
|
-
* It must be contained in a Kanban component(`ejs-kanban`).
|
|
45
|
-
* ```html
|
|
46
|
-
* <ejs-kanban>
|
|
47
|
-
* <e-columns>
|
|
48
|
-
* <e-column keyField='Open' textField='To Do'></e-column>
|
|
49
|
-
* <e-column keyField='Close' textField='Completed'></e-column>
|
|
50
|
-
* </e-columns>
|
|
51
|
-
* </ejs-kanban>
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
var ColumnDirective = /** @class */ (function (_super) {
|
|
55
|
-
__extends(ColumnDirective, _super);
|
|
56
|
-
/**
|
|
57
|
-
* @param {?} viewContainerRef
|
|
58
|
-
*/
|
|
59
|
-
function ColumnDirective(viewContainerRef) {
|
|
60
|
-
var _this = _super.call(this) || this;
|
|
61
|
-
_this.viewContainerRef = viewContainerRef;
|
|
62
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
63
|
-
_this.registerEvents(outputs);
|
|
64
|
-
_this.directivePropList = input;
|
|
65
|
-
return _this;
|
|
66
|
-
}
|
|
67
|
-
return ColumnDirective;
|
|
68
|
-
}(ej2AngularBase.ComplexBase));
|
|
69
|
-
ColumnDirective.decorators = [
|
|
70
|
-
{ type: core.Directive, args: [{
|
|
71
|
-
selector: 'e-columns>e-column',
|
|
72
|
-
inputs: input,
|
|
73
|
-
outputs: outputs,
|
|
74
|
-
queries: {}
|
|
75
|
-
},] },
|
|
76
|
-
];
|
|
77
|
-
/**
|
|
78
|
-
* @nocollapse
|
|
79
|
-
*/
|
|
80
|
-
ColumnDirective.ctorParameters = function () { return [
|
|
81
|
-
{ type: core.ViewContainerRef, },
|
|
82
|
-
]; };
|
|
83
|
-
ColumnDirective.propDecorators = {
|
|
84
|
-
'template': [{ type: core.ContentChild, args: ['template',] },],
|
|
85
|
-
};
|
|
86
|
-
__decorate([
|
|
87
|
-
ej2AngularBase.Template(),
|
|
88
|
-
__metadata("design:type", Object)
|
|
89
|
-
], ColumnDirective.prototype, "template", void 0);
|
|
90
|
-
/**
|
|
91
|
-
* Column Array Directive
|
|
92
|
-
*/
|
|
93
|
-
var ColumnsDirective = /** @class */ (function (_super) {
|
|
94
|
-
__extends(ColumnsDirective, _super);
|
|
95
|
-
function ColumnsDirective() {
|
|
96
|
-
return _super.call(this, 'columns') || this;
|
|
97
|
-
}
|
|
98
|
-
return ColumnsDirective;
|
|
99
|
-
}(ej2AngularBase.ArrayBase));
|
|
100
|
-
ColumnsDirective.decorators = [
|
|
101
|
-
{ type: core.Directive, args: [{
|
|
102
|
-
selector: 'ejs-kanban>e-columns',
|
|
103
|
-
queries: {
|
|
104
|
-
children: new core.ContentChildren(ColumnDirective)
|
|
105
|
-
},
|
|
106
|
-
},] },
|
|
107
|
-
];
|
|
108
|
-
/**
|
|
109
|
-
* @nocollapse
|
|
110
|
-
*/
|
|
111
|
-
ColumnsDirective.ctorParameters = function () { return []; };
|
|
112
|
-
var input$1 = ['keyFields', 'text'];
|
|
113
|
-
var outputs$1 = [];
|
|
114
|
-
/**
|
|
115
|
-
* `e-stackedHeaders` directive represent a stacked header of the Kanban board.
|
|
116
|
-
* It must be contained in a Kanban component(`ejs-kanban`).
|
|
117
|
-
* ```html
|
|
118
|
-
* <ejs-kanban>
|
|
119
|
-
* <e-stackedHeaders>
|
|
120
|
-
* <e-stackedHeader keyField='Open' text='To Do'></e-stackedHeader>
|
|
121
|
-
* <e-stackedHeader keyField='Close' text='Completed'></e-stackedHeader>
|
|
122
|
-
* </e-stackedHeaders>
|
|
123
|
-
* </ejs-kanban>
|
|
124
|
-
* ```
|
|
125
|
-
*/
|
|
126
|
-
var StackedHeaderDirective = /** @class */ (function (_super) {
|
|
127
|
-
__extends(StackedHeaderDirective, _super);
|
|
128
|
-
/**
|
|
129
|
-
* @param {?} viewContainerRef
|
|
130
|
-
*/
|
|
131
|
-
function StackedHeaderDirective(viewContainerRef) {
|
|
132
|
-
var _this = _super.call(this) || this;
|
|
133
|
-
_this.viewContainerRef = viewContainerRef;
|
|
134
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
135
|
-
_this.registerEvents(outputs$1);
|
|
136
|
-
_this.directivePropList = input$1;
|
|
137
|
-
return _this;
|
|
138
|
-
}
|
|
139
|
-
return StackedHeaderDirective;
|
|
140
|
-
}(ej2AngularBase.ComplexBase));
|
|
141
|
-
StackedHeaderDirective.decorators = [
|
|
142
|
-
{ type: core.Directive, args: [{
|
|
143
|
-
selector: 'e-stackedHeaders>e-stackedHeader',
|
|
144
|
-
inputs: input$1,
|
|
145
|
-
outputs: outputs$1,
|
|
146
|
-
queries: {}
|
|
147
|
-
},] },
|
|
148
|
-
];
|
|
149
|
-
/**
|
|
150
|
-
* @nocollapse
|
|
151
|
-
*/
|
|
152
|
-
StackedHeaderDirective.ctorParameters = function () { return [
|
|
153
|
-
{ type: core.ViewContainerRef, },
|
|
154
|
-
]; };
|
|
155
|
-
/**
|
|
156
|
-
* StackedHeader Array Directive
|
|
157
|
-
*/
|
|
158
|
-
var StackedHeadersDirective = /** @class */ (function (_super) {
|
|
159
|
-
__extends(StackedHeadersDirective, _super);
|
|
160
|
-
function StackedHeadersDirective() {
|
|
161
|
-
return _super.call(this, 'stackedheaders') || this;
|
|
162
|
-
}
|
|
163
|
-
return StackedHeadersDirective;
|
|
164
|
-
}(ej2AngularBase.ArrayBase));
|
|
165
|
-
StackedHeadersDirective.decorators = [
|
|
166
|
-
{ type: core.Directive, args: [{
|
|
167
|
-
selector: 'ejs-kanban>e-stackedHeaders',
|
|
168
|
-
queries: {
|
|
169
|
-
children: new core.ContentChildren(StackedHeaderDirective)
|
|
170
|
-
},
|
|
171
|
-
},] },
|
|
172
|
-
];
|
|
173
|
-
/**
|
|
174
|
-
* @nocollapse
|
|
175
|
-
*/
|
|
176
|
-
StackedHeadersDirective.ctorParameters = function () { return []; };
|
|
177
|
-
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
178
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
179
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
180
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
181
|
-
else
|
|
182
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
183
|
-
if (d = decorators[i])
|
|
184
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
185
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
186
|
-
};
|
|
187
|
-
var __metadata$1 = (this && this.__metadata) || function (k, v) {
|
|
188
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
189
|
-
return Reflect.metadata(k, v);
|
|
190
|
-
};
|
|
191
|
-
var inputs = ['allowDragAndDrop', 'allowKeyboard', 'cardHeight', 'cardSettings', 'columns', 'constraintType', 'cssClass', 'dataSource', 'dialogSettings', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableTooltip', 'enableVirtualization', 'externalDropId', 'height', 'keyField', 'locale', 'query', 'showEmptyColumn', 'sortSettings', 'stackedHeaders', 'swimlaneSettings', 'tooltipTemplate', 'width'];
|
|
192
|
-
var outputs$2 = ['actionBegin', 'actionComplete', 'actionFailure', 'cardClick', 'cardDoubleClick', 'cardRendered', 'created', 'dataBinding', 'dataBound', 'dataSourceChanged', 'dataStateChange', 'dialogClose', 'dialogOpen', 'drag', 'dragStart', 'dragStop', 'queryCellInfo'];
|
|
193
|
-
var twoWays = [''];
|
|
194
|
-
/**
|
|
195
|
-
* `ej-kanban` represents the Angular Kanban Component.
|
|
196
|
-
* ```html
|
|
197
|
-
* <ejs-kanban></ejs-kanban>
|
|
198
|
-
* ```
|
|
199
|
-
*/
|
|
200
|
-
exports.KanbanComponent = /** @class */ (function (_super) {
|
|
201
|
-
__extends(KanbanComponent, _super);
|
|
202
|
-
/**
|
|
203
|
-
* @param {?} ngEle
|
|
204
|
-
* @param {?} srenderer
|
|
205
|
-
* @param {?} viewContainerRef
|
|
206
|
-
* @param {?} injector
|
|
207
|
-
*/
|
|
208
|
-
function KanbanComponent(ngEle, srenderer, viewContainerRef, injector) {
|
|
209
|
-
var _this = _super.call(this) || this;
|
|
210
|
-
_this.ngEle = ngEle;
|
|
211
|
-
_this.srenderer = srenderer;
|
|
212
|
-
_this.viewContainerRef = viewContainerRef;
|
|
213
|
-
_this.injector = injector;
|
|
214
|
-
_this.tags = ['columns', 'stackedHeaders'];
|
|
215
|
-
_this.element = _this.ngEle.nativeElement;
|
|
216
|
-
_this.injectedModules = _this.injectedModules || [];
|
|
217
|
-
_this.registerEvents(outputs$2);
|
|
218
|
-
_this.addTwoWay.call(_this, twoWays);
|
|
219
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
220
|
-
_this.context = new ej2AngularBase.ComponentBase();
|
|
221
|
-
return _this;
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* @return {?}
|
|
225
|
-
*/
|
|
226
|
-
KanbanComponent.prototype.ngOnInit = function () {
|
|
227
|
-
this.context.ngOnInit(this);
|
|
228
|
-
};
|
|
229
|
-
/**
|
|
230
|
-
* @return {?}
|
|
231
|
-
*/
|
|
232
|
-
KanbanComponent.prototype.ngAfterViewInit = function () {
|
|
233
|
-
this.context.ngAfterViewInit(this);
|
|
234
|
-
};
|
|
235
|
-
/**
|
|
236
|
-
* @return {?}
|
|
237
|
-
*/
|
|
238
|
-
KanbanComponent.prototype.ngOnDestroy = function () {
|
|
239
|
-
this.context.ngOnDestroy(this);
|
|
240
|
-
};
|
|
241
|
-
/**
|
|
242
|
-
* @return {?}
|
|
243
|
-
*/
|
|
244
|
-
KanbanComponent.prototype.ngAfterContentChecked = function () {
|
|
245
|
-
this.tagObjects[0].instance = this.childColumns;
|
|
246
|
-
if (this.childStackedHeaders) {
|
|
247
|
-
this.tagObjects[1].instance = /** @type {?} */ (this.childStackedHeaders);
|
|
248
|
-
}
|
|
249
|
-
this.context.ngAfterContentChecked(this);
|
|
250
|
-
};
|
|
251
|
-
return KanbanComponent;
|
|
252
|
-
}(ej2Kanban.Kanban));
|
|
253
|
-
exports.KanbanComponent.decorators = [
|
|
254
|
-
{ type: core.Component, args: [{
|
|
255
|
-
selector: 'ejs-kanban',
|
|
256
|
-
inputs: inputs,
|
|
257
|
-
outputs: outputs$2,
|
|
258
|
-
template: '',
|
|
259
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
260
|
-
queries: {
|
|
261
|
-
childColumns: new core.ContentChild(ColumnsDirective),
|
|
262
|
-
childStackedHeaders: new core.ContentChild(StackedHeadersDirective)
|
|
263
|
-
}
|
|
264
|
-
},] },
|
|
265
|
-
];
|
|
266
|
-
/**
|
|
267
|
-
* @nocollapse
|
|
268
|
-
*/
|
|
269
|
-
exports.KanbanComponent.ctorParameters = function () { return [
|
|
270
|
-
{ type: core.ElementRef, },
|
|
271
|
-
{ type: core.Renderer2, },
|
|
272
|
-
{ type: core.ViewContainerRef, },
|
|
273
|
-
{ type: core.Injector, },
|
|
274
|
-
]; };
|
|
275
|
-
exports.KanbanComponent.propDecorators = {
|
|
276
|
-
'tooltipTemplate': [{ type: core.ContentChild, args: ['tooltipTemplate',] },],
|
|
277
|
-
'columns_template': [{ type: core.ContentChild, args: ['columnsTemplate',] },],
|
|
278
|
-
'swimlaneSettings_template': [{ type: core.ContentChild, args: ['swimlaneSettingsTemplate',] },],
|
|
279
|
-
'cardSettings_template': [{ type: core.ContentChild, args: ['cardSettingsTemplate',] },],
|
|
280
|
-
'dialogSettings_template': [{ type: core.ContentChild, args: ['dialogSettingsTemplate',] },],
|
|
281
|
-
};
|
|
282
|
-
__decorate$1([
|
|
283
|
-
ej2AngularBase.Template(),
|
|
284
|
-
__metadata$1("design:type", Object)
|
|
285
|
-
], exports.KanbanComponent.prototype, "tooltipTemplate", void 0);
|
|
286
|
-
__decorate$1([
|
|
287
|
-
ej2AngularBase.Template(),
|
|
288
|
-
__metadata$1("design:type", Object)
|
|
289
|
-
], exports.KanbanComponent.prototype, "columns_template", void 0);
|
|
290
|
-
__decorate$1([
|
|
291
|
-
ej2AngularBase.Template(),
|
|
292
|
-
__metadata$1("design:type", Object)
|
|
293
|
-
], exports.KanbanComponent.prototype, "swimlaneSettings_template", void 0);
|
|
294
|
-
__decorate$1([
|
|
295
|
-
ej2AngularBase.Template(),
|
|
296
|
-
__metadata$1("design:type", Object)
|
|
297
|
-
], exports.KanbanComponent.prototype, "cardSettings_template", void 0);
|
|
298
|
-
__decorate$1([
|
|
299
|
-
ej2AngularBase.Template(),
|
|
300
|
-
__metadata$1("design:type", Object)
|
|
301
|
-
], exports.KanbanComponent.prototype, "dialogSettings_template", void 0);
|
|
302
|
-
exports.KanbanComponent = __decorate$1([
|
|
303
|
-
ej2AngularBase.ComponentMixins([ej2AngularBase.ComponentBase]),
|
|
304
|
-
__metadata$1("design:paramtypes", [core.ElementRef,
|
|
305
|
-
core.Renderer2,
|
|
306
|
-
core.ViewContainerRef,
|
|
307
|
-
core.Injector])
|
|
308
|
-
], exports.KanbanComponent);
|
|
309
|
-
/**
|
|
310
|
-
* NgModule definition for the Kanban component.
|
|
311
|
-
*/
|
|
312
|
-
var KanbanModule = /** @class */ (function () {
|
|
313
|
-
function KanbanModule() {
|
|
314
|
-
}
|
|
315
|
-
return KanbanModule;
|
|
316
|
-
}());
|
|
317
|
-
KanbanModule.decorators = [
|
|
318
|
-
{ type: core.NgModule, args: [{
|
|
319
|
-
imports: [common.CommonModule],
|
|
320
|
-
declarations: [
|
|
321
|
-
exports.KanbanComponent,
|
|
322
|
-
ColumnDirective,
|
|
323
|
-
ColumnsDirective,
|
|
324
|
-
StackedHeaderDirective,
|
|
325
|
-
StackedHeadersDirective
|
|
326
|
-
],
|
|
327
|
-
exports: [
|
|
328
|
-
exports.KanbanComponent,
|
|
329
|
-
ColumnDirective,
|
|
330
|
-
ColumnsDirective,
|
|
331
|
-
StackedHeaderDirective,
|
|
332
|
-
StackedHeadersDirective
|
|
333
|
-
]
|
|
334
|
-
},] },
|
|
335
|
-
];
|
|
336
|
-
/**
|
|
337
|
-
* @nocollapse
|
|
338
|
-
*/
|
|
339
|
-
KanbanModule.ctorParameters = function () { return []; };
|
|
340
|
-
/**
|
|
341
|
-
* NgModule definition for the Kanban component with providers.
|
|
342
|
-
*/
|
|
343
|
-
var KanbanAllModule = /** @class */ (function () {
|
|
344
|
-
function KanbanAllModule() {
|
|
345
|
-
}
|
|
346
|
-
return KanbanAllModule;
|
|
347
|
-
}());
|
|
348
|
-
KanbanAllModule.decorators = [
|
|
349
|
-
{ type: core.NgModule, args: [{
|
|
350
|
-
imports: [common.CommonModule, KanbanModule],
|
|
351
|
-
exports: [
|
|
352
|
-
KanbanModule
|
|
353
|
-
],
|
|
354
|
-
providers: []
|
|
355
|
-
},] },
|
|
356
|
-
];
|
|
357
|
-
/**
|
|
358
|
-
* @nocollapse
|
|
359
|
-
*/
|
|
16
|
+
var __extends = (this && this.__extends) || (function () {
|
|
17
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20
|
+
return function (d, b) {
|
|
21
|
+
extendStatics(d, b);
|
|
22
|
+
function __() { this.constructor = d; }
|
|
23
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24
|
+
};
|
|
25
|
+
})();
|
|
26
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
27
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
28
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
29
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
30
|
+
else
|
|
31
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
32
|
+
if (d = decorators[i])
|
|
33
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
34
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35
|
+
};
|
|
36
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
37
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
38
|
+
return Reflect.metadata(k, v);
|
|
39
|
+
};
|
|
40
|
+
var input = ['allowDrag', 'allowDrop', 'allowToggle', 'headerText', 'isExpanded', 'keyField', 'maxCount', 'minCount', 'showAddButton', 'showItemCount', 'template', 'transitionColumns'];
|
|
41
|
+
var outputs = [];
|
|
42
|
+
/**
|
|
43
|
+
* `e-columns` directive represent a columns of the Kanban board.
|
|
44
|
+
* It must be contained in a Kanban component(`ejs-kanban`).
|
|
45
|
+
* ```html
|
|
46
|
+
* <ejs-kanban>
|
|
47
|
+
* <e-columns>
|
|
48
|
+
* <e-column keyField='Open' textField='To Do'></e-column>
|
|
49
|
+
* <e-column keyField='Close' textField='Completed'></e-column>
|
|
50
|
+
* </e-columns>
|
|
51
|
+
* </ejs-kanban>
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
var ColumnDirective = /** @class */ (function (_super) {
|
|
55
|
+
__extends(ColumnDirective, _super);
|
|
56
|
+
/**
|
|
57
|
+
* @param {?} viewContainerRef
|
|
58
|
+
*/
|
|
59
|
+
function ColumnDirective(viewContainerRef) {
|
|
60
|
+
var _this = _super.call(this) || this;
|
|
61
|
+
_this.viewContainerRef = viewContainerRef;
|
|
62
|
+
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
63
|
+
_this.registerEvents(outputs);
|
|
64
|
+
_this.directivePropList = input;
|
|
65
|
+
return _this;
|
|
66
|
+
}
|
|
67
|
+
return ColumnDirective;
|
|
68
|
+
}(ej2AngularBase.ComplexBase));
|
|
69
|
+
ColumnDirective.decorators = [
|
|
70
|
+
{ type: core.Directive, args: [{
|
|
71
|
+
selector: 'e-columns>e-column',
|
|
72
|
+
inputs: input,
|
|
73
|
+
outputs: outputs,
|
|
74
|
+
queries: {}
|
|
75
|
+
},] },
|
|
76
|
+
];
|
|
77
|
+
/**
|
|
78
|
+
* @nocollapse
|
|
79
|
+
*/
|
|
80
|
+
ColumnDirective.ctorParameters = function () { return [
|
|
81
|
+
{ type: core.ViewContainerRef, },
|
|
82
|
+
]; };
|
|
83
|
+
ColumnDirective.propDecorators = {
|
|
84
|
+
'template': [{ type: core.ContentChild, args: ['template',] },],
|
|
85
|
+
};
|
|
86
|
+
__decorate([
|
|
87
|
+
ej2AngularBase.Template(),
|
|
88
|
+
__metadata("design:type", Object)
|
|
89
|
+
], ColumnDirective.prototype, "template", void 0);
|
|
90
|
+
/**
|
|
91
|
+
* Column Array Directive
|
|
92
|
+
*/
|
|
93
|
+
var ColumnsDirective = /** @class */ (function (_super) {
|
|
94
|
+
__extends(ColumnsDirective, _super);
|
|
95
|
+
function ColumnsDirective() {
|
|
96
|
+
return _super.call(this, 'columns') || this;
|
|
97
|
+
}
|
|
98
|
+
return ColumnsDirective;
|
|
99
|
+
}(ej2AngularBase.ArrayBase));
|
|
100
|
+
ColumnsDirective.decorators = [
|
|
101
|
+
{ type: core.Directive, args: [{
|
|
102
|
+
selector: 'ejs-kanban>e-columns',
|
|
103
|
+
queries: {
|
|
104
|
+
children: new core.ContentChildren(ColumnDirective)
|
|
105
|
+
},
|
|
106
|
+
},] },
|
|
107
|
+
];
|
|
108
|
+
/**
|
|
109
|
+
* @nocollapse
|
|
110
|
+
*/
|
|
111
|
+
ColumnsDirective.ctorParameters = function () { return []; };
|
|
112
|
+
var input$1 = ['keyFields', 'text'];
|
|
113
|
+
var outputs$1 = [];
|
|
114
|
+
/**
|
|
115
|
+
* `e-stackedHeaders` directive represent a stacked header of the Kanban board.
|
|
116
|
+
* It must be contained in a Kanban component(`ejs-kanban`).
|
|
117
|
+
* ```html
|
|
118
|
+
* <ejs-kanban>
|
|
119
|
+
* <e-stackedHeaders>
|
|
120
|
+
* <e-stackedHeader keyField='Open' text='To Do'></e-stackedHeader>
|
|
121
|
+
* <e-stackedHeader keyField='Close' text='Completed'></e-stackedHeader>
|
|
122
|
+
* </e-stackedHeaders>
|
|
123
|
+
* </ejs-kanban>
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
var StackedHeaderDirective = /** @class */ (function (_super) {
|
|
127
|
+
__extends(StackedHeaderDirective, _super);
|
|
128
|
+
/**
|
|
129
|
+
* @param {?} viewContainerRef
|
|
130
|
+
*/
|
|
131
|
+
function StackedHeaderDirective(viewContainerRef) {
|
|
132
|
+
var _this = _super.call(this) || this;
|
|
133
|
+
_this.viewContainerRef = viewContainerRef;
|
|
134
|
+
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
135
|
+
_this.registerEvents(outputs$1);
|
|
136
|
+
_this.directivePropList = input$1;
|
|
137
|
+
return _this;
|
|
138
|
+
}
|
|
139
|
+
return StackedHeaderDirective;
|
|
140
|
+
}(ej2AngularBase.ComplexBase));
|
|
141
|
+
StackedHeaderDirective.decorators = [
|
|
142
|
+
{ type: core.Directive, args: [{
|
|
143
|
+
selector: 'e-stackedHeaders>e-stackedHeader',
|
|
144
|
+
inputs: input$1,
|
|
145
|
+
outputs: outputs$1,
|
|
146
|
+
queries: {}
|
|
147
|
+
},] },
|
|
148
|
+
];
|
|
149
|
+
/**
|
|
150
|
+
* @nocollapse
|
|
151
|
+
*/
|
|
152
|
+
StackedHeaderDirective.ctorParameters = function () { return [
|
|
153
|
+
{ type: core.ViewContainerRef, },
|
|
154
|
+
]; };
|
|
155
|
+
/**
|
|
156
|
+
* StackedHeader Array Directive
|
|
157
|
+
*/
|
|
158
|
+
var StackedHeadersDirective = /** @class */ (function (_super) {
|
|
159
|
+
__extends(StackedHeadersDirective, _super);
|
|
160
|
+
function StackedHeadersDirective() {
|
|
161
|
+
return _super.call(this, 'stackedheaders') || this;
|
|
162
|
+
}
|
|
163
|
+
return StackedHeadersDirective;
|
|
164
|
+
}(ej2AngularBase.ArrayBase));
|
|
165
|
+
StackedHeadersDirective.decorators = [
|
|
166
|
+
{ type: core.Directive, args: [{
|
|
167
|
+
selector: 'ejs-kanban>e-stackedHeaders',
|
|
168
|
+
queries: {
|
|
169
|
+
children: new core.ContentChildren(StackedHeaderDirective)
|
|
170
|
+
},
|
|
171
|
+
},] },
|
|
172
|
+
];
|
|
173
|
+
/**
|
|
174
|
+
* @nocollapse
|
|
175
|
+
*/
|
|
176
|
+
StackedHeadersDirective.ctorParameters = function () { return []; };
|
|
177
|
+
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
178
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
179
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
180
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
181
|
+
else
|
|
182
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
183
|
+
if (d = decorators[i])
|
|
184
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
185
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
186
|
+
};
|
|
187
|
+
var __metadata$1 = (this && this.__metadata) || function (k, v) {
|
|
188
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
189
|
+
return Reflect.metadata(k, v);
|
|
190
|
+
};
|
|
191
|
+
var inputs = ['allowDragAndDrop', 'allowKeyboard', 'cardHeight', 'cardSettings', 'columns', 'constraintType', 'cssClass', 'dataSource', 'dialogSettings', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableTooltip', 'enableVirtualization', 'externalDropId', 'height', 'keyField', 'locale', 'query', 'showEmptyColumn', 'sortSettings', 'stackedHeaders', 'swimlaneSettings', 'tooltipTemplate', 'width'];
|
|
192
|
+
var outputs$2 = ['actionBegin', 'actionComplete', 'actionFailure', 'cardClick', 'cardDoubleClick', 'cardRendered', 'created', 'dataBinding', 'dataBound', 'dataSourceChanged', 'dataStateChange', 'dialogClose', 'dialogOpen', 'drag', 'dragStart', 'dragStop', 'queryCellInfo'];
|
|
193
|
+
var twoWays = [''];
|
|
194
|
+
/**
|
|
195
|
+
* `ej-kanban` represents the Angular Kanban Component.
|
|
196
|
+
* ```html
|
|
197
|
+
* <ejs-kanban></ejs-kanban>
|
|
198
|
+
* ```
|
|
199
|
+
*/
|
|
200
|
+
exports.KanbanComponent = /** @class */ (function (_super) {
|
|
201
|
+
__extends(KanbanComponent, _super);
|
|
202
|
+
/**
|
|
203
|
+
* @param {?} ngEle
|
|
204
|
+
* @param {?} srenderer
|
|
205
|
+
* @param {?} viewContainerRef
|
|
206
|
+
* @param {?} injector
|
|
207
|
+
*/
|
|
208
|
+
function KanbanComponent(ngEle, srenderer, viewContainerRef, injector) {
|
|
209
|
+
var _this = _super.call(this) || this;
|
|
210
|
+
_this.ngEle = ngEle;
|
|
211
|
+
_this.srenderer = srenderer;
|
|
212
|
+
_this.viewContainerRef = viewContainerRef;
|
|
213
|
+
_this.injector = injector;
|
|
214
|
+
_this.tags = ['columns', 'stackedHeaders'];
|
|
215
|
+
_this.element = _this.ngEle.nativeElement;
|
|
216
|
+
_this.injectedModules = _this.injectedModules || [];
|
|
217
|
+
_this.registerEvents(outputs$2);
|
|
218
|
+
_this.addTwoWay.call(_this, twoWays);
|
|
219
|
+
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
220
|
+
_this.context = new ej2AngularBase.ComponentBase();
|
|
221
|
+
return _this;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* @return {?}
|
|
225
|
+
*/
|
|
226
|
+
KanbanComponent.prototype.ngOnInit = function () {
|
|
227
|
+
this.context.ngOnInit(this);
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* @return {?}
|
|
231
|
+
*/
|
|
232
|
+
KanbanComponent.prototype.ngAfterViewInit = function () {
|
|
233
|
+
this.context.ngAfterViewInit(this);
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* @return {?}
|
|
237
|
+
*/
|
|
238
|
+
KanbanComponent.prototype.ngOnDestroy = function () {
|
|
239
|
+
this.context.ngOnDestroy(this);
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* @return {?}
|
|
243
|
+
*/
|
|
244
|
+
KanbanComponent.prototype.ngAfterContentChecked = function () {
|
|
245
|
+
this.tagObjects[0].instance = this.childColumns;
|
|
246
|
+
if (this.childStackedHeaders) {
|
|
247
|
+
this.tagObjects[1].instance = /** @type {?} */ (this.childStackedHeaders);
|
|
248
|
+
}
|
|
249
|
+
this.context.ngAfterContentChecked(this);
|
|
250
|
+
};
|
|
251
|
+
return KanbanComponent;
|
|
252
|
+
}(ej2Kanban.Kanban));
|
|
253
|
+
exports.KanbanComponent.decorators = [
|
|
254
|
+
{ type: core.Component, args: [{
|
|
255
|
+
selector: 'ejs-kanban',
|
|
256
|
+
inputs: inputs,
|
|
257
|
+
outputs: outputs$2,
|
|
258
|
+
template: '',
|
|
259
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
260
|
+
queries: {
|
|
261
|
+
childColumns: new core.ContentChild(ColumnsDirective),
|
|
262
|
+
childStackedHeaders: new core.ContentChild(StackedHeadersDirective)
|
|
263
|
+
}
|
|
264
|
+
},] },
|
|
265
|
+
];
|
|
266
|
+
/**
|
|
267
|
+
* @nocollapse
|
|
268
|
+
*/
|
|
269
|
+
exports.KanbanComponent.ctorParameters = function () { return [
|
|
270
|
+
{ type: core.ElementRef, },
|
|
271
|
+
{ type: core.Renderer2, },
|
|
272
|
+
{ type: core.ViewContainerRef, },
|
|
273
|
+
{ type: core.Injector, },
|
|
274
|
+
]; };
|
|
275
|
+
exports.KanbanComponent.propDecorators = {
|
|
276
|
+
'tooltipTemplate': [{ type: core.ContentChild, args: ['tooltipTemplate',] },],
|
|
277
|
+
'columns_template': [{ type: core.ContentChild, args: ['columnsTemplate',] },],
|
|
278
|
+
'swimlaneSettings_template': [{ type: core.ContentChild, args: ['swimlaneSettingsTemplate',] },],
|
|
279
|
+
'cardSettings_template': [{ type: core.ContentChild, args: ['cardSettingsTemplate',] },],
|
|
280
|
+
'dialogSettings_template': [{ type: core.ContentChild, args: ['dialogSettingsTemplate',] },],
|
|
281
|
+
};
|
|
282
|
+
__decorate$1([
|
|
283
|
+
ej2AngularBase.Template(),
|
|
284
|
+
__metadata$1("design:type", Object)
|
|
285
|
+
], exports.KanbanComponent.prototype, "tooltipTemplate", void 0);
|
|
286
|
+
__decorate$1([
|
|
287
|
+
ej2AngularBase.Template(),
|
|
288
|
+
__metadata$1("design:type", Object)
|
|
289
|
+
], exports.KanbanComponent.prototype, "columns_template", void 0);
|
|
290
|
+
__decorate$1([
|
|
291
|
+
ej2AngularBase.Template(),
|
|
292
|
+
__metadata$1("design:type", Object)
|
|
293
|
+
], exports.KanbanComponent.prototype, "swimlaneSettings_template", void 0);
|
|
294
|
+
__decorate$1([
|
|
295
|
+
ej2AngularBase.Template(),
|
|
296
|
+
__metadata$1("design:type", Object)
|
|
297
|
+
], exports.KanbanComponent.prototype, "cardSettings_template", void 0);
|
|
298
|
+
__decorate$1([
|
|
299
|
+
ej2AngularBase.Template(),
|
|
300
|
+
__metadata$1("design:type", Object)
|
|
301
|
+
], exports.KanbanComponent.prototype, "dialogSettings_template", void 0);
|
|
302
|
+
exports.KanbanComponent = __decorate$1([
|
|
303
|
+
ej2AngularBase.ComponentMixins([ej2AngularBase.ComponentBase]),
|
|
304
|
+
__metadata$1("design:paramtypes", [core.ElementRef,
|
|
305
|
+
core.Renderer2,
|
|
306
|
+
core.ViewContainerRef,
|
|
307
|
+
core.Injector])
|
|
308
|
+
], exports.KanbanComponent);
|
|
309
|
+
/**
|
|
310
|
+
* NgModule definition for the Kanban component.
|
|
311
|
+
*/
|
|
312
|
+
var KanbanModule = /** @class */ (function () {
|
|
313
|
+
function KanbanModule() {
|
|
314
|
+
}
|
|
315
|
+
return KanbanModule;
|
|
316
|
+
}());
|
|
317
|
+
KanbanModule.decorators = [
|
|
318
|
+
{ type: core.NgModule, args: [{
|
|
319
|
+
imports: [common.CommonModule],
|
|
320
|
+
declarations: [
|
|
321
|
+
exports.KanbanComponent,
|
|
322
|
+
ColumnDirective,
|
|
323
|
+
ColumnsDirective,
|
|
324
|
+
StackedHeaderDirective,
|
|
325
|
+
StackedHeadersDirective
|
|
326
|
+
],
|
|
327
|
+
exports: [
|
|
328
|
+
exports.KanbanComponent,
|
|
329
|
+
ColumnDirective,
|
|
330
|
+
ColumnsDirective,
|
|
331
|
+
StackedHeaderDirective,
|
|
332
|
+
StackedHeadersDirective
|
|
333
|
+
]
|
|
334
|
+
},] },
|
|
335
|
+
];
|
|
336
|
+
/**
|
|
337
|
+
* @nocollapse
|
|
338
|
+
*/
|
|
339
|
+
KanbanModule.ctorParameters = function () { return []; };
|
|
340
|
+
/**
|
|
341
|
+
* NgModule definition for the Kanban component with providers.
|
|
342
|
+
*/
|
|
343
|
+
var KanbanAllModule = /** @class */ (function () {
|
|
344
|
+
function KanbanAllModule() {
|
|
345
|
+
}
|
|
346
|
+
return KanbanAllModule;
|
|
347
|
+
}());
|
|
348
|
+
KanbanAllModule.decorators = [
|
|
349
|
+
{ type: core.NgModule, args: [{
|
|
350
|
+
imports: [common.CommonModule, KanbanModule],
|
|
351
|
+
exports: [
|
|
352
|
+
KanbanModule
|
|
353
|
+
],
|
|
354
|
+
providers: []
|
|
355
|
+
},] },
|
|
356
|
+
];
|
|
357
|
+
/**
|
|
358
|
+
* @nocollapse
|
|
359
|
+
*/
|
|
360
360
|
KanbanAllModule.ctorParameters = function () { return []; };
|
|
361
361
|
|
|
362
362
|
exports.ColumnDirective = ColumnDirective;
|