@bryntum/taskboard-angular 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 +230 -15
- package/package.json +1 -1
- package/src/lib/bryntum-button-group.component.ts +1213 -0
- package/src/lib/bryntum-button.component.ts +1190 -0
- package/src/lib/bryntum-chat-panel.component.ts +1435 -0
- package/src/lib/bryntum-checkbox-group.component.ts +1478 -0
- package/src/lib/bryntum-checkbox.component.ts +1333 -0
- package/src/lib/bryntum-chip-view.component.ts +1225 -0
- package/src/lib/bryntum-code-editor.component.ts +1419 -0
- package/src/lib/bryntum-color-field.component.ts +1334 -0
- package/src/lib/bryntum-column-combo.component.ts +1645 -0
- package/src/lib/bryntum-column-filter-field.component.ts +1360 -0
- package/src/lib/bryntum-column-picker-button.component.ts +1200 -0
- package/src/lib/bryntum-column-scroll-button.component.ts +1200 -0
- package/src/lib/bryntum-combo.component.ts +1634 -0
- package/src/lib/bryntum-container.component.ts +1166 -0
- package/src/lib/bryntum-date-field.component.ts +1413 -0
- package/src/lib/bryntum-date-picker.component.ts +1756 -0
- package/src/lib/bryntum-date-range-field.component.ts +1417 -0
- package/src/lib/bryntum-date-time-field.component.ts +1261 -0
- package/src/lib/bryntum-demo-code-editor.component.ts +1441 -0
- package/src/lib/bryntum-demo-header.component.ts +141 -0
- package/src/lib/bryntum-display-field.component.ts +1308 -0
- package/src/lib/bryntum-duration-field.component.ts +1390 -0
- package/src/lib/bryntum-editor.component.ts +1343 -0
- package/src/lib/bryntum-field-filter-picker-group.component.ts +1308 -0
- package/src/lib/bryntum-field-filter-picker.component.ts +1272 -0
- package/src/lib/bryntum-field-set.component.ts +1408 -0
- package/src/lib/bryntum-file-field.component.ts +1313 -0
- package/src/lib/bryntum-file-picker.component.ts +1199 -0
- package/src/lib/bryntum-filter-field.component.ts +1367 -0
- package/src/lib/bryntum-fullscreen-button.component.ts +53 -0
- package/src/lib/bryntum-hint.component.ts +1506 -0
- package/src/lib/bryntum-label.component.ts +989 -0
- package/src/lib/bryntum-list.component.ts +1196 -0
- package/src/lib/bryntum-menu.component.ts +1520 -0
- package/src/lib/bryntum-month-picker.component.ts +1400 -0
- package/src/lib/bryntum-number-field.component.ts +1368 -0
- package/src/lib/bryntum-paging-toolbar.component.ts +1243 -0
- package/src/lib/bryntum-panel.component.ts +1377 -0
- package/src/lib/bryntum-password-field.component.ts +1296 -0
- package/src/lib/bryntum-project-combo.component.ts +1648 -0
- package/src/lib/bryntum-radio-group.component.ts +1446 -0
- package/src/lib/bryntum-radio.component.ts +1333 -0
- package/src/lib/bryntum-resources-combo.component.ts +1644 -0
- package/src/lib/bryntum-scheduler-project-combo.component.ts +1638 -0
- package/src/lib/bryntum-slide-toggle.component.ts +1333 -0
- package/src/lib/bryntum-slider.component.ts +1112 -0
- package/src/lib/bryntum-splitter.component.ts +1025 -0
- package/src/lib/bryntum-swimlane-combo.component.ts +1644 -0
- package/src/lib/bryntum-swimlane-filter-field.component.ts +1377 -0
- package/src/lib/bryntum-swimlane-picker-button.component.ts +1200 -0
- package/src/lib/bryntum-swimlane-scroll-button.component.ts +1200 -0
- package/src/lib/bryntum-tab-panel.component.ts +1441 -0
- package/src/lib/bryntum-tag-combo.component.ts +1651 -0
- package/src/lib/bryntum-task-board-base.component.ts +2388 -0
- package/src/lib/bryntum-task-board-field-filter-picker-group.component.ts +1316 -0
- package/src/lib/bryntum-task-board-field-filter-picker.component.ts +1254 -0
- package/src/lib/bryntum-task-board-project-model.component.ts +1026 -0
- package/src/lib/bryntum-task-board.component.ts +2392 -0
- package/src/lib/bryntum-task-color-combo.component.ts +1334 -0
- package/src/lib/bryntum-task-filter-field.component.ts +1377 -0
- package/src/lib/bryntum-text-area-field.component.ts +1312 -0
- package/src/lib/bryntum-text-area-picker-field.component.ts +1343 -0
- package/src/lib/bryntum-text-field.component.ts +1321 -0
- package/src/lib/bryntum-time-field.component.ts +1388 -0
- package/src/lib/bryntum-time-picker.component.ts +1207 -0
- package/src/lib/bryntum-todo-list-field.component.ts +1318 -0
- package/src/lib/bryntum-toolbar.component.ts +1234 -0
- package/src/lib/bryntum-undo-redo.component.ts +1179 -0
- package/src/lib/bryntum-widget.component.ts +982 -0
- package/src/lib/bryntum-year-picker.component.ts +1423 -0
- package/src/lib/bryntum-zoom-slider.component.ts +1122 -0
- package/src/lib/taskboard.module.ts +232 -0
- package/src/lib/wrapper.helper.ts +89 -0
- package/src/public-api.ts +77 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Angular Bryntum TaskBoard Shared module
|
|
3
|
+
*/
|
|
4
|
+
import { NgModule } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
import { BryntumFullscreenButtonComponent } from './bryntum-fullscreen-button.component';
|
|
7
|
+
import { BryntumDemoHeaderComponent } from './bryntum-demo-header.component';
|
|
8
|
+
|
|
9
|
+
import { BryntumButtonComponent } from './bryntum-button.component';
|
|
10
|
+
import { BryntumButtonGroupComponent } from './bryntum-button-group.component';
|
|
11
|
+
import { BryntumChatPanelComponent } from './bryntum-chat-panel.component';
|
|
12
|
+
import { BryntumCheckboxComponent } from './bryntum-checkbox.component';
|
|
13
|
+
import { BryntumCheckboxGroupComponent } from './bryntum-checkbox-group.component';
|
|
14
|
+
import { BryntumChipViewComponent } from './bryntum-chip-view.component';
|
|
15
|
+
import { BryntumCodeEditorComponent } from './bryntum-code-editor.component';
|
|
16
|
+
import { BryntumColorFieldComponent } from './bryntum-color-field.component';
|
|
17
|
+
import { BryntumColumnComboComponent } from './bryntum-column-combo.component';
|
|
18
|
+
import { BryntumColumnFilterFieldComponent } from './bryntum-column-filter-field.component';
|
|
19
|
+
import { BryntumColumnPickerButtonComponent } from './bryntum-column-picker-button.component';
|
|
20
|
+
import { BryntumColumnScrollButtonComponent } from './bryntum-column-scroll-button.component';
|
|
21
|
+
import { BryntumComboComponent } from './bryntum-combo.component';
|
|
22
|
+
import { BryntumContainerComponent } from './bryntum-container.component';
|
|
23
|
+
import { BryntumDateFieldComponent } from './bryntum-date-field.component';
|
|
24
|
+
import { BryntumDatePickerComponent } from './bryntum-date-picker.component';
|
|
25
|
+
import { BryntumDateRangeFieldComponent } from './bryntum-date-range-field.component';
|
|
26
|
+
import { BryntumDateTimeFieldComponent } from './bryntum-date-time-field.component';
|
|
27
|
+
import { BryntumDemoCodeEditorComponent } from './bryntum-demo-code-editor.component';
|
|
28
|
+
import { BryntumDisplayFieldComponent } from './bryntum-display-field.component';
|
|
29
|
+
import { BryntumDurationFieldComponent } from './bryntum-duration-field.component';
|
|
30
|
+
import { BryntumEditorComponent } from './bryntum-editor.component';
|
|
31
|
+
import { BryntumFieldFilterPickerComponent } from './bryntum-field-filter-picker.component';
|
|
32
|
+
import { BryntumFieldFilterPickerGroupComponent } from './bryntum-field-filter-picker-group.component';
|
|
33
|
+
import { BryntumFieldSetComponent } from './bryntum-field-set.component';
|
|
34
|
+
import { BryntumFileFieldComponent } from './bryntum-file-field.component';
|
|
35
|
+
import { BryntumFilePickerComponent } from './bryntum-file-picker.component';
|
|
36
|
+
import { BryntumFilterFieldComponent } from './bryntum-filter-field.component';
|
|
37
|
+
import { BryntumHintComponent } from './bryntum-hint.component';
|
|
38
|
+
import { BryntumLabelComponent } from './bryntum-label.component';
|
|
39
|
+
import { BryntumListComponent } from './bryntum-list.component';
|
|
40
|
+
import { BryntumMenuComponent } from './bryntum-menu.component';
|
|
41
|
+
import { BryntumMonthPickerComponent } from './bryntum-month-picker.component';
|
|
42
|
+
import { BryntumNumberFieldComponent } from './bryntum-number-field.component';
|
|
43
|
+
import { BryntumPagingToolbarComponent } from './bryntum-paging-toolbar.component';
|
|
44
|
+
import { BryntumPanelComponent } from './bryntum-panel.component';
|
|
45
|
+
import { BryntumPasswordFieldComponent } from './bryntum-password-field.component';
|
|
46
|
+
import { BryntumProjectComboComponent } from './bryntum-project-combo.component';
|
|
47
|
+
import { BryntumTaskBoardProjectModelComponent } from './bryntum-task-board-project-model.component';
|
|
48
|
+
import { BryntumRadioComponent } from './bryntum-radio.component';
|
|
49
|
+
import { BryntumRadioGroupComponent } from './bryntum-radio-group.component';
|
|
50
|
+
import { BryntumResourcesComboComponent } from './bryntum-resources-combo.component';
|
|
51
|
+
import { BryntumSchedulerProjectComboComponent } from './bryntum-scheduler-project-combo.component';
|
|
52
|
+
import { BryntumSliderComponent } from './bryntum-slider.component';
|
|
53
|
+
import { BryntumSlideToggleComponent } from './bryntum-slide-toggle.component';
|
|
54
|
+
import { BryntumSplitterComponent } from './bryntum-splitter.component';
|
|
55
|
+
import { BryntumSwimlaneComboComponent } from './bryntum-swimlane-combo.component';
|
|
56
|
+
import { BryntumSwimlaneFilterFieldComponent } from './bryntum-swimlane-filter-field.component';
|
|
57
|
+
import { BryntumSwimlanePickerButtonComponent } from './bryntum-swimlane-picker-button.component';
|
|
58
|
+
import { BryntumSwimlaneScrollButtonComponent } from './bryntum-swimlane-scroll-button.component';
|
|
59
|
+
import { BryntumTabPanelComponent } from './bryntum-tab-panel.component';
|
|
60
|
+
import { BryntumTagComboComponent } from './bryntum-tag-combo.component';
|
|
61
|
+
import { BryntumTaskBoardComponent } from './bryntum-task-board.component';
|
|
62
|
+
import { BryntumTaskBoardBaseComponent } from './bryntum-task-board-base.component';
|
|
63
|
+
import { BryntumTaskBoardFieldFilterPickerComponent } from './bryntum-task-board-field-filter-picker.component';
|
|
64
|
+
import { BryntumTaskBoardFieldFilterPickerGroupComponent } from './bryntum-task-board-field-filter-picker-group.component';
|
|
65
|
+
import { BryntumTaskColorComboComponent } from './bryntum-task-color-combo.component';
|
|
66
|
+
import { BryntumTaskFilterFieldComponent } from './bryntum-task-filter-field.component';
|
|
67
|
+
import { BryntumTextAreaFieldComponent } from './bryntum-text-area-field.component';
|
|
68
|
+
import { BryntumTextAreaPickerFieldComponent } from './bryntum-text-area-picker-field.component';
|
|
69
|
+
import { BryntumTextFieldComponent } from './bryntum-text-field.component';
|
|
70
|
+
import { BryntumTimeFieldComponent } from './bryntum-time-field.component';
|
|
71
|
+
import { BryntumTimePickerComponent } from './bryntum-time-picker.component';
|
|
72
|
+
import { BryntumTodoListFieldComponent } from './bryntum-todo-list-field.component';
|
|
73
|
+
import { BryntumToolbarComponent } from './bryntum-toolbar.component';
|
|
74
|
+
import { BryntumUndoRedoComponent } from './bryntum-undo-redo.component';
|
|
75
|
+
import { BryntumWidgetComponent } from './bryntum-widget.component';
|
|
76
|
+
import { BryntumYearPickerComponent } from './bryntum-year-picker.component';
|
|
77
|
+
import { BryntumZoomSliderComponent } from './bryntum-zoom-slider.component';
|
|
78
|
+
|
|
79
|
+
@NgModule({
|
|
80
|
+
declarations : [
|
|
81
|
+
|
|
82
|
+
BryntumFullscreenButtonComponent,
|
|
83
|
+
BryntumDemoHeaderComponent,
|
|
84
|
+
|
|
85
|
+
BryntumButtonComponent,
|
|
86
|
+
BryntumButtonGroupComponent,
|
|
87
|
+
BryntumChatPanelComponent,
|
|
88
|
+
BryntumCheckboxComponent,
|
|
89
|
+
BryntumCheckboxGroupComponent,
|
|
90
|
+
BryntumChipViewComponent,
|
|
91
|
+
BryntumCodeEditorComponent,
|
|
92
|
+
BryntumColorFieldComponent,
|
|
93
|
+
BryntumColumnComboComponent,
|
|
94
|
+
BryntumColumnFilterFieldComponent,
|
|
95
|
+
BryntumColumnPickerButtonComponent,
|
|
96
|
+
BryntumColumnScrollButtonComponent,
|
|
97
|
+
BryntumComboComponent,
|
|
98
|
+
BryntumContainerComponent,
|
|
99
|
+
BryntumDateFieldComponent,
|
|
100
|
+
BryntumDatePickerComponent,
|
|
101
|
+
BryntumDateRangeFieldComponent,
|
|
102
|
+
BryntumDateTimeFieldComponent,
|
|
103
|
+
BryntumDemoCodeEditorComponent,
|
|
104
|
+
BryntumDisplayFieldComponent,
|
|
105
|
+
BryntumDurationFieldComponent,
|
|
106
|
+
BryntumEditorComponent,
|
|
107
|
+
BryntumFieldFilterPickerComponent,
|
|
108
|
+
BryntumFieldFilterPickerGroupComponent,
|
|
109
|
+
BryntumFieldSetComponent,
|
|
110
|
+
BryntumFileFieldComponent,
|
|
111
|
+
BryntumFilePickerComponent,
|
|
112
|
+
BryntumFilterFieldComponent,
|
|
113
|
+
BryntumHintComponent,
|
|
114
|
+
BryntumLabelComponent,
|
|
115
|
+
BryntumListComponent,
|
|
116
|
+
BryntumMenuComponent,
|
|
117
|
+
BryntumMonthPickerComponent,
|
|
118
|
+
BryntumNumberFieldComponent,
|
|
119
|
+
BryntumPagingToolbarComponent,
|
|
120
|
+
BryntumPanelComponent,
|
|
121
|
+
BryntumPasswordFieldComponent,
|
|
122
|
+
BryntumProjectComboComponent,
|
|
123
|
+
BryntumTaskBoardProjectModelComponent,
|
|
124
|
+
BryntumRadioComponent,
|
|
125
|
+
BryntumRadioGroupComponent,
|
|
126
|
+
BryntumResourcesComboComponent,
|
|
127
|
+
BryntumSchedulerProjectComboComponent,
|
|
128
|
+
BryntumSliderComponent,
|
|
129
|
+
BryntumSlideToggleComponent,
|
|
130
|
+
BryntumSplitterComponent,
|
|
131
|
+
BryntumSwimlaneComboComponent,
|
|
132
|
+
BryntumSwimlaneFilterFieldComponent,
|
|
133
|
+
BryntumSwimlanePickerButtonComponent,
|
|
134
|
+
BryntumSwimlaneScrollButtonComponent,
|
|
135
|
+
BryntumTabPanelComponent,
|
|
136
|
+
BryntumTagComboComponent,
|
|
137
|
+
BryntumTaskBoardComponent,
|
|
138
|
+
BryntumTaskBoardBaseComponent,
|
|
139
|
+
BryntumTaskBoardFieldFilterPickerComponent,
|
|
140
|
+
BryntumTaskBoardFieldFilterPickerGroupComponent,
|
|
141
|
+
BryntumTaskColorComboComponent,
|
|
142
|
+
BryntumTaskFilterFieldComponent,
|
|
143
|
+
BryntumTextAreaFieldComponent,
|
|
144
|
+
BryntumTextAreaPickerFieldComponent,
|
|
145
|
+
BryntumTextFieldComponent,
|
|
146
|
+
BryntumTimeFieldComponent,
|
|
147
|
+
BryntumTimePickerComponent,
|
|
148
|
+
BryntumTodoListFieldComponent,
|
|
149
|
+
BryntumToolbarComponent,
|
|
150
|
+
BryntumUndoRedoComponent,
|
|
151
|
+
BryntumWidgetComponent,
|
|
152
|
+
BryntumYearPickerComponent,
|
|
153
|
+
BryntumZoomSliderComponent
|
|
154
|
+
],
|
|
155
|
+
imports : [],
|
|
156
|
+
exports : [
|
|
157
|
+
|
|
158
|
+
BryntumFullscreenButtonComponent,
|
|
159
|
+
BryntumDemoHeaderComponent,
|
|
160
|
+
|
|
161
|
+
BryntumButtonComponent,
|
|
162
|
+
BryntumButtonGroupComponent,
|
|
163
|
+
BryntumChatPanelComponent,
|
|
164
|
+
BryntumCheckboxComponent,
|
|
165
|
+
BryntumCheckboxGroupComponent,
|
|
166
|
+
BryntumChipViewComponent,
|
|
167
|
+
BryntumCodeEditorComponent,
|
|
168
|
+
BryntumColorFieldComponent,
|
|
169
|
+
BryntumColumnComboComponent,
|
|
170
|
+
BryntumColumnFilterFieldComponent,
|
|
171
|
+
BryntumColumnPickerButtonComponent,
|
|
172
|
+
BryntumColumnScrollButtonComponent,
|
|
173
|
+
BryntumComboComponent,
|
|
174
|
+
BryntumContainerComponent,
|
|
175
|
+
BryntumDateFieldComponent,
|
|
176
|
+
BryntumDatePickerComponent,
|
|
177
|
+
BryntumDateRangeFieldComponent,
|
|
178
|
+
BryntumDateTimeFieldComponent,
|
|
179
|
+
BryntumDemoCodeEditorComponent,
|
|
180
|
+
BryntumDisplayFieldComponent,
|
|
181
|
+
BryntumDurationFieldComponent,
|
|
182
|
+
BryntumEditorComponent,
|
|
183
|
+
BryntumFieldFilterPickerComponent,
|
|
184
|
+
BryntumFieldFilterPickerGroupComponent,
|
|
185
|
+
BryntumFieldSetComponent,
|
|
186
|
+
BryntumFileFieldComponent,
|
|
187
|
+
BryntumFilePickerComponent,
|
|
188
|
+
BryntumFilterFieldComponent,
|
|
189
|
+
BryntumHintComponent,
|
|
190
|
+
BryntumLabelComponent,
|
|
191
|
+
BryntumListComponent,
|
|
192
|
+
BryntumMenuComponent,
|
|
193
|
+
BryntumMonthPickerComponent,
|
|
194
|
+
BryntumNumberFieldComponent,
|
|
195
|
+
BryntumPagingToolbarComponent,
|
|
196
|
+
BryntumPanelComponent,
|
|
197
|
+
BryntumPasswordFieldComponent,
|
|
198
|
+
BryntumProjectComboComponent,
|
|
199
|
+
BryntumTaskBoardProjectModelComponent,
|
|
200
|
+
BryntumRadioComponent,
|
|
201
|
+
BryntumRadioGroupComponent,
|
|
202
|
+
BryntumResourcesComboComponent,
|
|
203
|
+
BryntumSchedulerProjectComboComponent,
|
|
204
|
+
BryntumSliderComponent,
|
|
205
|
+
BryntumSlideToggleComponent,
|
|
206
|
+
BryntumSplitterComponent,
|
|
207
|
+
BryntumSwimlaneComboComponent,
|
|
208
|
+
BryntumSwimlaneFilterFieldComponent,
|
|
209
|
+
BryntumSwimlanePickerButtonComponent,
|
|
210
|
+
BryntumSwimlaneScrollButtonComponent,
|
|
211
|
+
BryntumTabPanelComponent,
|
|
212
|
+
BryntumTagComboComponent,
|
|
213
|
+
BryntumTaskBoardComponent,
|
|
214
|
+
BryntumTaskBoardBaseComponent,
|
|
215
|
+
BryntumTaskBoardFieldFilterPickerComponent,
|
|
216
|
+
BryntumTaskBoardFieldFilterPickerGroupComponent,
|
|
217
|
+
BryntumTaskColorComboComponent,
|
|
218
|
+
BryntumTaskFilterFieldComponent,
|
|
219
|
+
BryntumTextAreaFieldComponent,
|
|
220
|
+
BryntumTextAreaPickerFieldComponent,
|
|
221
|
+
BryntumTextFieldComponent,
|
|
222
|
+
BryntumTimeFieldComponent,
|
|
223
|
+
BryntumTimePickerComponent,
|
|
224
|
+
BryntumTodoListFieldComponent,
|
|
225
|
+
BryntumToolbarComponent,
|
|
226
|
+
BryntumUndoRedoComponent,
|
|
227
|
+
BryntumWidgetComponent,
|
|
228
|
+
BryntumYearPickerComponent,
|
|
229
|
+
BryntumZoomSliderComponent
|
|
230
|
+
]
|
|
231
|
+
})
|
|
232
|
+
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,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of Bryntum TaskBoard
|
|
3
|
+
*/
|
|
4
|
+
export * from './lib/taskboard.module';
|
|
5
|
+
|
|
6
|
+
export * from './lib/bryntum-fullscreen-button.component';
|
|
7
|
+
export * from './lib/bryntum-demo-header.component';
|
|
8
|
+
|
|
9
|
+
export * from './lib/bryntum-button.component';
|
|
10
|
+
export * from './lib/bryntum-button-group.component';
|
|
11
|
+
export * from './lib/bryntum-chat-panel.component';
|
|
12
|
+
export * from './lib/bryntum-checkbox.component';
|
|
13
|
+
export * from './lib/bryntum-checkbox-group.component';
|
|
14
|
+
export * from './lib/bryntum-chip-view.component';
|
|
15
|
+
export * from './lib/bryntum-code-editor.component';
|
|
16
|
+
export * from './lib/bryntum-color-field.component';
|
|
17
|
+
export * from './lib/bryntum-column-combo.component';
|
|
18
|
+
export * from './lib/bryntum-column-filter-field.component';
|
|
19
|
+
export * from './lib/bryntum-column-picker-button.component';
|
|
20
|
+
export * from './lib/bryntum-column-scroll-button.component';
|
|
21
|
+
export * from './lib/bryntum-combo.component';
|
|
22
|
+
export * from './lib/bryntum-container.component';
|
|
23
|
+
export * from './lib/bryntum-date-field.component';
|
|
24
|
+
export * from './lib/bryntum-date-picker.component';
|
|
25
|
+
export * from './lib/bryntum-date-range-field.component';
|
|
26
|
+
export * from './lib/bryntum-date-time-field.component';
|
|
27
|
+
export * from './lib/bryntum-demo-code-editor.component';
|
|
28
|
+
export * from './lib/bryntum-display-field.component';
|
|
29
|
+
export * from './lib/bryntum-duration-field.component';
|
|
30
|
+
export * from './lib/bryntum-editor.component';
|
|
31
|
+
export * from './lib/bryntum-field-filter-picker.component';
|
|
32
|
+
export * from './lib/bryntum-field-filter-picker-group.component';
|
|
33
|
+
export * from './lib/bryntum-field-set.component';
|
|
34
|
+
export * from './lib/bryntum-file-field.component';
|
|
35
|
+
export * from './lib/bryntum-file-picker.component';
|
|
36
|
+
export * from './lib/bryntum-filter-field.component';
|
|
37
|
+
export * from './lib/bryntum-hint.component';
|
|
38
|
+
export * from './lib/bryntum-label.component';
|
|
39
|
+
export * from './lib/bryntum-list.component';
|
|
40
|
+
export * from './lib/bryntum-menu.component';
|
|
41
|
+
export * from './lib/bryntum-month-picker.component';
|
|
42
|
+
export * from './lib/bryntum-number-field.component';
|
|
43
|
+
export * from './lib/bryntum-paging-toolbar.component';
|
|
44
|
+
export * from './lib/bryntum-panel.component';
|
|
45
|
+
export * from './lib/bryntum-password-field.component';
|
|
46
|
+
export * from './lib/bryntum-project-combo.component';
|
|
47
|
+
export * from './lib/bryntum-task-board-project-model.component';
|
|
48
|
+
export * from './lib/bryntum-radio.component';
|
|
49
|
+
export * from './lib/bryntum-radio-group.component';
|
|
50
|
+
export * from './lib/bryntum-resources-combo.component';
|
|
51
|
+
export * from './lib/bryntum-scheduler-project-combo.component';
|
|
52
|
+
export * from './lib/bryntum-slider.component';
|
|
53
|
+
export * from './lib/bryntum-slide-toggle.component';
|
|
54
|
+
export * from './lib/bryntum-splitter.component';
|
|
55
|
+
export * from './lib/bryntum-swimlane-combo.component';
|
|
56
|
+
export * from './lib/bryntum-swimlane-filter-field.component';
|
|
57
|
+
export * from './lib/bryntum-swimlane-picker-button.component';
|
|
58
|
+
export * from './lib/bryntum-swimlane-scroll-button.component';
|
|
59
|
+
export * from './lib/bryntum-tab-panel.component';
|
|
60
|
+
export * from './lib/bryntum-tag-combo.component';
|
|
61
|
+
export * from './lib/bryntum-task-board.component';
|
|
62
|
+
export * from './lib/bryntum-task-board-base.component';
|
|
63
|
+
export * from './lib/bryntum-task-board-field-filter-picker.component';
|
|
64
|
+
export * from './lib/bryntum-task-board-field-filter-picker-group.component';
|
|
65
|
+
export * from './lib/bryntum-task-color-combo.component';
|
|
66
|
+
export * from './lib/bryntum-task-filter-field.component';
|
|
67
|
+
export * from './lib/bryntum-text-area-field.component';
|
|
68
|
+
export * from './lib/bryntum-text-area-picker-field.component';
|
|
69
|
+
export * from './lib/bryntum-text-field.component';
|
|
70
|
+
export * from './lib/bryntum-time-field.component';
|
|
71
|
+
export * from './lib/bryntum-time-picker.component';
|
|
72
|
+
export * from './lib/bryntum-todo-list-field.component';
|
|
73
|
+
export * from './lib/bryntum-toolbar.component';
|
|
74
|
+
export * from './lib/bryntum-undo-redo.component';
|
|
75
|
+
export * from './lib/bryntum-widget.component';
|
|
76
|
+
export * from './lib/bryntum-year-picker.component';
|
|
77
|
+
export * from './lib/bryntum-zoom-slider.component'
|