@bryntum/taskboard-angular-thin 7.1.1 → 7.1.2
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 +289 -15
- package/package.json +1 -1
- package/src/lib/bryntum-column-combo.component.ts +1646 -0
- package/src/lib/bryntum-column-filter-field.component.ts +1361 -0
- package/src/lib/bryntum-column-picker-button.component.ts +1201 -0
- package/src/lib/bryntum-column-scroll-button.component.ts +1201 -0
- package/src/lib/bryntum-project-combo.component.ts +1649 -0
- package/src/lib/bryntum-resources-combo.component.ts +1645 -0
- package/src/lib/bryntum-swimlane-combo.component.ts +1645 -0
- package/src/lib/bryntum-swimlane-filter-field.component.ts +1378 -0
- package/src/lib/bryntum-swimlane-picker-button.component.ts +1201 -0
- package/src/lib/bryntum-swimlane-scroll-button.component.ts +1201 -0
- package/src/lib/bryntum-tag-combo.component.ts +1652 -0
- package/src/lib/bryntum-task-board-base.component.ts +2389 -0
- package/src/lib/bryntum-task-board-field-filter-picker-group.component.ts +1317 -0
- package/src/lib/bryntum-task-board-field-filter-picker.component.ts +1255 -0
- package/src/lib/bryntum-task-board-project-model.component.ts +1027 -0
- package/src/lib/bryntum-task-board.component.ts +2393 -0
- package/src/lib/bryntum-task-color-combo.component.ts +1335 -0
- package/src/lib/bryntum-task-filter-field.component.ts +1378 -0
- package/src/lib/bryntum-todo-list-field.component.ts +1319 -0
- package/src/lib/bryntum-undo-redo.component.ts +1180 -0
- package/src/lib/bryntum-zoom-slider.component.ts +1123 -0
- package/src/lib/taskboard.module.ts +79 -0
- package/src/lib/wrapper.helper.ts +89 -0
- package/src/public-api.ts +26 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Angular Bryntum TaskBoard Shared module
|
|
3
|
+
*/
|
|
4
|
+
import { NgModule } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
import { BryntumColumnComboComponent } from './bryntum-column-combo.component';
|
|
7
|
+
import { BryntumColumnFilterFieldComponent } from './bryntum-column-filter-field.component';
|
|
8
|
+
import { BryntumColumnPickerButtonComponent } from './bryntum-column-picker-button.component';
|
|
9
|
+
import { BryntumColumnScrollButtonComponent } from './bryntum-column-scroll-button.component';
|
|
10
|
+
import { BryntumProjectComboComponent } from './bryntum-project-combo.component';
|
|
11
|
+
import { BryntumTaskBoardProjectModelComponent } from './bryntum-task-board-project-model.component';
|
|
12
|
+
import { BryntumResourcesComboComponent } from './bryntum-resources-combo.component';
|
|
13
|
+
import { BryntumSwimlaneComboComponent } from './bryntum-swimlane-combo.component';
|
|
14
|
+
import { BryntumSwimlaneFilterFieldComponent } from './bryntum-swimlane-filter-field.component';
|
|
15
|
+
import { BryntumSwimlanePickerButtonComponent } from './bryntum-swimlane-picker-button.component';
|
|
16
|
+
import { BryntumSwimlaneScrollButtonComponent } from './bryntum-swimlane-scroll-button.component';
|
|
17
|
+
import { BryntumTagComboComponent } from './bryntum-tag-combo.component';
|
|
18
|
+
import { BryntumTaskBoardComponent } from './bryntum-task-board.component';
|
|
19
|
+
import { BryntumTaskBoardBaseComponent } from './bryntum-task-board-base.component';
|
|
20
|
+
import { BryntumTaskBoardFieldFilterPickerComponent } from './bryntum-task-board-field-filter-picker.component';
|
|
21
|
+
import { BryntumTaskBoardFieldFilterPickerGroupComponent } from './bryntum-task-board-field-filter-picker-group.component';
|
|
22
|
+
import { BryntumTaskColorComboComponent } from './bryntum-task-color-combo.component';
|
|
23
|
+
import { BryntumTaskFilterFieldComponent } from './bryntum-task-filter-field.component';
|
|
24
|
+
import { BryntumTodoListFieldComponent } from './bryntum-todo-list-field.component';
|
|
25
|
+
import { BryntumUndoRedoComponent } from './bryntum-undo-redo.component';
|
|
26
|
+
import { BryntumZoomSliderComponent } from './bryntum-zoom-slider.component';
|
|
27
|
+
|
|
28
|
+
@NgModule({
|
|
29
|
+
declarations : [
|
|
30
|
+
|
|
31
|
+
BryntumColumnComboComponent,
|
|
32
|
+
BryntumColumnFilterFieldComponent,
|
|
33
|
+
BryntumColumnPickerButtonComponent,
|
|
34
|
+
BryntumColumnScrollButtonComponent,
|
|
35
|
+
BryntumProjectComboComponent,
|
|
36
|
+
BryntumTaskBoardProjectModelComponent,
|
|
37
|
+
BryntumResourcesComboComponent,
|
|
38
|
+
BryntumSwimlaneComboComponent,
|
|
39
|
+
BryntumSwimlaneFilterFieldComponent,
|
|
40
|
+
BryntumSwimlanePickerButtonComponent,
|
|
41
|
+
BryntumSwimlaneScrollButtonComponent,
|
|
42
|
+
BryntumTagComboComponent,
|
|
43
|
+
BryntumTaskBoardComponent,
|
|
44
|
+
BryntumTaskBoardBaseComponent,
|
|
45
|
+
BryntumTaskBoardFieldFilterPickerComponent,
|
|
46
|
+
BryntumTaskBoardFieldFilterPickerGroupComponent,
|
|
47
|
+
BryntumTaskColorComboComponent,
|
|
48
|
+
BryntumTaskFilterFieldComponent,
|
|
49
|
+
BryntumTodoListFieldComponent,
|
|
50
|
+
BryntumUndoRedoComponent,
|
|
51
|
+
BryntumZoomSliderComponent
|
|
52
|
+
],
|
|
53
|
+
imports : [],
|
|
54
|
+
exports : [
|
|
55
|
+
|
|
56
|
+
BryntumColumnComboComponent,
|
|
57
|
+
BryntumColumnFilterFieldComponent,
|
|
58
|
+
BryntumColumnPickerButtonComponent,
|
|
59
|
+
BryntumColumnScrollButtonComponent,
|
|
60
|
+
BryntumProjectComboComponent,
|
|
61
|
+
BryntumTaskBoardProjectModelComponent,
|
|
62
|
+
BryntumResourcesComboComponent,
|
|
63
|
+
BryntumSwimlaneComboComponent,
|
|
64
|
+
BryntumSwimlaneFilterFieldComponent,
|
|
65
|
+
BryntumSwimlanePickerButtonComponent,
|
|
66
|
+
BryntumSwimlaneScrollButtonComponent,
|
|
67
|
+
BryntumTagComboComponent,
|
|
68
|
+
BryntumTaskBoardComponent,
|
|
69
|
+
BryntumTaskBoardBaseComponent,
|
|
70
|
+
BryntumTaskBoardFieldFilterPickerComponent,
|
|
71
|
+
BryntumTaskBoardFieldFilterPickerGroupComponent,
|
|
72
|
+
BryntumTaskColorComboComponent,
|
|
73
|
+
BryntumTaskFilterFieldComponent,
|
|
74
|
+
BryntumTodoListFieldComponent,
|
|
75
|
+
BryntumUndoRedoComponent,
|
|
76
|
+
BryntumZoomSliderComponent
|
|
77
|
+
]
|
|
78
|
+
})
|
|
79
|
+
export class BryntumTaskBoardModule { }
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { isDevMode } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
export default class WrapperHelper {
|
|
4
|
+
/**
|
|
5
|
+
* Development warning. Showed when environment is set to 'development'.
|
|
6
|
+
*/
|
|
7
|
+
public static devWarning(clsName: string, msg: string) : void {
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
if (window.bryntum && window.bryntum.isTestEnv || isDevMode()) {
|
|
10
|
+
console.warn(`Bryntum${clsName}Component development warning!\n${msg}\n` +
|
|
11
|
+
'Please check Angular integration guide: https://bryntum.com/products/taskboard/docs/guide/TaskBoard/integration/angular/guide'
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Development warning for container parameter.
|
|
18
|
+
*/
|
|
19
|
+
public static devWarningContainer(clsName: string, containerParam: string) : void {
|
|
20
|
+
WrapperHelper.devWarning(clsName,
|
|
21
|
+
`Using "${containerParam}" parameter for configuration is not recommended.\n` +
|
|
22
|
+
'Widget is placed automatically inside it\'s container element' +
|
|
23
|
+
`Solution: remove "${containerParam}" parameter from configuration.`
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Development warning for config parameter.
|
|
29
|
+
*/
|
|
30
|
+
public static devWarningConfigProp(clsName: string, prop: string) : void {
|
|
31
|
+
WrapperHelper.devWarning(clsName,
|
|
32
|
+
`Using "${prop}" parameter for configuration is not recommended.\n` +
|
|
33
|
+
`Solution: Use separate parameter for each "${prop}" value to enable reactive updates of the API instance`
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Development warning for config property.
|
|
39
|
+
*/
|
|
40
|
+
public static devWarningUpdateProp(clsName: string, prop: string): void {
|
|
41
|
+
WrapperHelper.devWarning(clsName,
|
|
42
|
+
`"${prop}" is a static config option for component constructor only. No runtime changes are supported!`
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Applies property value to Bryntum config or instance.
|
|
48
|
+
* @param {Object} configOrInstance target object
|
|
49
|
+
* @param {string} prop property name
|
|
50
|
+
* @param {any} value value
|
|
51
|
+
* @param {Boolean} isConfig config setting mode
|
|
52
|
+
*/
|
|
53
|
+
public static applyPropValue(configOrInstance: object|any, prop: string, value: object|any, isConfig: boolean = true): void {
|
|
54
|
+
|
|
55
|
+
if (prop === 'project') {
|
|
56
|
+
// Allow use ProjectModel component as project
|
|
57
|
+
if (value && typeof value === 'object') {
|
|
58
|
+
configOrInstance[prop] = value.instance || value;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
else if (prop === 'features' && typeof value === 'object') {
|
|
62
|
+
Object.keys(value).forEach(key => WrapperHelper.applyPropValue(configOrInstance, `${key}Feature`, value[key], isConfig));
|
|
63
|
+
}
|
|
64
|
+
else if (prop === 'config' && typeof value === 'object') {
|
|
65
|
+
Object.keys(value).forEach(key => WrapperHelper.applyPropValue(configOrInstance, key, value[key], isConfig));
|
|
66
|
+
}
|
|
67
|
+
else if (prop === 'columns' && !isConfig) {
|
|
68
|
+
configOrInstance['columns'].data = value;
|
|
69
|
+
}
|
|
70
|
+
else if (prop.endsWith('Feature')) {
|
|
71
|
+
const
|
|
72
|
+
features = configOrInstance['features'],
|
|
73
|
+
featureName = prop.replace('Feature', '');
|
|
74
|
+
if (isConfig) {
|
|
75
|
+
features[featureName] = value;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
const feature = features[featureName];
|
|
79
|
+
if (feature) {
|
|
80
|
+
feature.setConfig(value);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
configOrInstance[prop] = value;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of Bryntum TaskBoard
|
|
3
|
+
*/
|
|
4
|
+
export * from './lib/taskboard.module';
|
|
5
|
+
|
|
6
|
+
export * from './lib/bryntum-column-combo.component';
|
|
7
|
+
export * from './lib/bryntum-column-filter-field.component';
|
|
8
|
+
export * from './lib/bryntum-column-picker-button.component';
|
|
9
|
+
export * from './lib/bryntum-column-scroll-button.component';
|
|
10
|
+
export * from './lib/bryntum-project-combo.component';
|
|
11
|
+
export * from './lib/bryntum-task-board-project-model.component';
|
|
12
|
+
export * from './lib/bryntum-resources-combo.component';
|
|
13
|
+
export * from './lib/bryntum-swimlane-combo.component';
|
|
14
|
+
export * from './lib/bryntum-swimlane-filter-field.component';
|
|
15
|
+
export * from './lib/bryntum-swimlane-picker-button.component';
|
|
16
|
+
export * from './lib/bryntum-swimlane-scroll-button.component';
|
|
17
|
+
export * from './lib/bryntum-tag-combo.component';
|
|
18
|
+
export * from './lib/bryntum-task-board.component';
|
|
19
|
+
export * from './lib/bryntum-task-board-base.component';
|
|
20
|
+
export * from './lib/bryntum-task-board-field-filter-picker.component';
|
|
21
|
+
export * from './lib/bryntum-task-board-field-filter-picker-group.component';
|
|
22
|
+
export * from './lib/bryntum-task-color-combo.component';
|
|
23
|
+
export * from './lib/bryntum-task-filter-field.component';
|
|
24
|
+
export * from './lib/bryntum-todo-list-field.component';
|
|
25
|
+
export * from './lib/bryntum-undo-redo.component';
|
|
26
|
+
export * from './lib/bryntum-zoom-slider.component'
|