@bryntum/grid-angular 7.1.1 → 7.1.3

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.
Files changed (74) hide show
  1. package/README.md +215 -15
  2. package/bundles/bryntum-grid-angular.umd.js +114 -48
  3. package/bundles/bryntum-grid-angular.umd.js.map +1 -1
  4. package/esm2015/lib/bryntum-grid-base.component.js +39 -17
  5. package/esm2015/lib/bryntum-grid.component.js +39 -17
  6. package/esm2015/lib/bryntum-tree-grid.component.js +39 -17
  7. package/fesm2015/bryntum-grid-angular.js +114 -48
  8. package/fesm2015/bryntum-grid-angular.js.map +1 -1
  9. package/lib/bryntum-grid-base.component.d.ts +32 -16
  10. package/lib/bryntum-grid.component.d.ts +32 -16
  11. package/lib/bryntum-tree-grid.component.d.ts +32 -16
  12. package/package.json +1 -1
  13. package/src/lib/bryntum-a-i-filter-field.component.ts +1336 -0
  14. package/src/lib/bryntum-button-group.component.ts +1213 -0
  15. package/src/lib/bryntum-button.component.ts +1190 -0
  16. package/src/lib/bryntum-chat-panel.component.ts +1435 -0
  17. package/src/lib/bryntum-checkbox-group.component.ts +1478 -0
  18. package/src/lib/bryntum-checkbox.component.ts +1333 -0
  19. package/src/lib/bryntum-checklist-filter-combo.component.ts +1650 -0
  20. package/src/lib/bryntum-chip-view.component.ts +1225 -0
  21. package/src/lib/bryntum-code-editor.component.ts +1419 -0
  22. package/src/lib/bryntum-color-field.component.ts +1334 -0
  23. package/src/lib/bryntum-combo.component.ts +1634 -0
  24. package/src/lib/bryntum-container.component.ts +1166 -0
  25. package/src/lib/bryntum-date-field.component.ts +1413 -0
  26. package/src/lib/bryntum-date-picker.component.ts +1756 -0
  27. package/src/lib/bryntum-date-range-field.component.ts +1417 -0
  28. package/src/lib/bryntum-date-time-field.component.ts +1261 -0
  29. package/src/lib/bryntum-demo-code-editor.component.ts +1441 -0
  30. package/src/lib/bryntum-demo-header.component.ts +141 -0
  31. package/src/lib/bryntum-display-field.component.ts +1308 -0
  32. package/src/lib/bryntum-duration-field.component.ts +1390 -0
  33. package/src/lib/bryntum-editor.component.ts +1343 -0
  34. package/src/lib/bryntum-field-filter-picker-group.component.ts +1308 -0
  35. package/src/lib/bryntum-field-filter-picker.component.ts +1272 -0
  36. package/src/lib/bryntum-field-set.component.ts +1408 -0
  37. package/src/lib/bryntum-file-field.component.ts +1313 -0
  38. package/src/lib/bryntum-file-picker.component.ts +1199 -0
  39. package/src/lib/bryntum-filter-field.component.ts +1367 -0
  40. package/src/lib/bryntum-fullscreen-button.component.ts +53 -0
  41. package/src/lib/bryntum-grid-base.component.ts +2814 -0
  42. package/src/lib/bryntum-grid-chart-designer.component.ts +999 -0
  43. package/src/lib/bryntum-grid-field-filter-picker-group.component.ts +1300 -0
  44. package/src/lib/bryntum-grid-field-filter-picker.component.ts +1287 -0
  45. package/src/lib/bryntum-grid.component.ts +2818 -0
  46. package/src/lib/bryntum-group-bar.component.ts +1225 -0
  47. package/src/lib/bryntum-hint.component.ts +1506 -0
  48. package/src/lib/bryntum-label.component.ts +989 -0
  49. package/src/lib/bryntum-list.component.ts +1196 -0
  50. package/src/lib/bryntum-menu.component.ts +1520 -0
  51. package/src/lib/bryntum-month-picker.component.ts +1400 -0
  52. package/src/lib/bryntum-number-field.component.ts +1368 -0
  53. package/src/lib/bryntum-paging-toolbar.component.ts +1243 -0
  54. package/src/lib/bryntum-panel.component.ts +1377 -0
  55. package/src/lib/bryntum-password-field.component.ts +1296 -0
  56. package/src/lib/bryntum-radio-group.component.ts +1446 -0
  57. package/src/lib/bryntum-radio.component.ts +1333 -0
  58. package/src/lib/bryntum-slide-toggle.component.ts +1333 -0
  59. package/src/lib/bryntum-slider.component.ts +1112 -0
  60. package/src/lib/bryntum-splitter.component.ts +1025 -0
  61. package/src/lib/bryntum-tab-panel.component.ts +1441 -0
  62. package/src/lib/bryntum-text-area-field.component.ts +1312 -0
  63. package/src/lib/bryntum-text-area-picker-field.component.ts +1343 -0
  64. package/src/lib/bryntum-text-field.component.ts +1321 -0
  65. package/src/lib/bryntum-time-field.component.ts +1388 -0
  66. package/src/lib/bryntum-time-picker.component.ts +1207 -0
  67. package/src/lib/bryntum-toolbar.component.ts +1234 -0
  68. package/src/lib/bryntum-tree-combo.component.ts +1634 -0
  69. package/src/lib/bryntum-tree-grid.component.ts +2818 -0
  70. package/src/lib/bryntum-widget.component.ts +982 -0
  71. package/src/lib/bryntum-year-picker.component.ts +1423 -0
  72. package/src/lib/grid.module.ts +196 -0
  73. package/src/lib/wrapper.helper.ts +89 -0
  74. package/src/public-api.ts +65 -0
@@ -0,0 +1,196 @@
1
+ /**
2
+ * Angular Bryntum Grid 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 { BryntumAIFilterFieldComponent } from './bryntum-a-i-filter-field.component';
10
+ import { BryntumButtonComponent } from './bryntum-button.component';
11
+ import { BryntumButtonGroupComponent } from './bryntum-button-group.component';
12
+ import { BryntumChatPanelComponent } from './bryntum-chat-panel.component';
13
+ import { BryntumCheckboxComponent } from './bryntum-checkbox.component';
14
+ import { BryntumCheckboxGroupComponent } from './bryntum-checkbox-group.component';
15
+ import { BryntumChecklistFilterComboComponent } from './bryntum-checklist-filter-combo.component';
16
+ import { BryntumChipViewComponent } from './bryntum-chip-view.component';
17
+ import { BryntumCodeEditorComponent } from './bryntum-code-editor.component';
18
+ import { BryntumColorFieldComponent } from './bryntum-color-field.component';
19
+ import { BryntumComboComponent } from './bryntum-combo.component';
20
+ import { BryntumContainerComponent } from './bryntum-container.component';
21
+ import { BryntumDateFieldComponent } from './bryntum-date-field.component';
22
+ import { BryntumDatePickerComponent } from './bryntum-date-picker.component';
23
+ import { BryntumDateRangeFieldComponent } from './bryntum-date-range-field.component';
24
+ import { BryntumDateTimeFieldComponent } from './bryntum-date-time-field.component';
25
+ import { BryntumDemoCodeEditorComponent } from './bryntum-demo-code-editor.component';
26
+ import { BryntumDisplayFieldComponent } from './bryntum-display-field.component';
27
+ import { BryntumDurationFieldComponent } from './bryntum-duration-field.component';
28
+ import { BryntumEditorComponent } from './bryntum-editor.component';
29
+ import { BryntumFieldFilterPickerComponent } from './bryntum-field-filter-picker.component';
30
+ import { BryntumFieldFilterPickerGroupComponent } from './bryntum-field-filter-picker-group.component';
31
+ import { BryntumFieldSetComponent } from './bryntum-field-set.component';
32
+ import { BryntumFileFieldComponent } from './bryntum-file-field.component';
33
+ import { BryntumFilePickerComponent } from './bryntum-file-picker.component';
34
+ import { BryntumFilterFieldComponent } from './bryntum-filter-field.component';
35
+ import { BryntumGridComponent } from './bryntum-grid.component';
36
+ import { BryntumGridBaseComponent } from './bryntum-grid-base.component';
37
+ import { BryntumGridChartDesignerComponent } from './bryntum-grid-chart-designer.component';
38
+ import { BryntumGridFieldFilterPickerComponent } from './bryntum-grid-field-filter-picker.component';
39
+ import { BryntumGridFieldFilterPickerGroupComponent } from './bryntum-grid-field-filter-picker-group.component';
40
+ import { BryntumGroupBarComponent } from './bryntum-group-bar.component';
41
+ import { BryntumHintComponent } from './bryntum-hint.component';
42
+ import { BryntumLabelComponent } from './bryntum-label.component';
43
+ import { BryntumListComponent } from './bryntum-list.component';
44
+ import { BryntumMenuComponent } from './bryntum-menu.component';
45
+ import { BryntumMonthPickerComponent } from './bryntum-month-picker.component';
46
+ import { BryntumNumberFieldComponent } from './bryntum-number-field.component';
47
+ import { BryntumPagingToolbarComponent } from './bryntum-paging-toolbar.component';
48
+ import { BryntumPanelComponent } from './bryntum-panel.component';
49
+ import { BryntumPasswordFieldComponent } from './bryntum-password-field.component';
50
+ import { BryntumRadioComponent } from './bryntum-radio.component';
51
+ import { BryntumRadioGroupComponent } from './bryntum-radio-group.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 { BryntumTabPanelComponent } from './bryntum-tab-panel.component';
56
+ import { BryntumTextAreaFieldComponent } from './bryntum-text-area-field.component';
57
+ import { BryntumTextAreaPickerFieldComponent } from './bryntum-text-area-picker-field.component';
58
+ import { BryntumTextFieldComponent } from './bryntum-text-field.component';
59
+ import { BryntumTimeFieldComponent } from './bryntum-time-field.component';
60
+ import { BryntumTimePickerComponent } from './bryntum-time-picker.component';
61
+ import { BryntumToolbarComponent } from './bryntum-toolbar.component';
62
+ import { BryntumTreeComboComponent } from './bryntum-tree-combo.component';
63
+ import { BryntumTreeGridComponent } from './bryntum-tree-grid.component';
64
+ import { BryntumWidgetComponent } from './bryntum-widget.component';
65
+ import { BryntumYearPickerComponent } from './bryntum-year-picker.component';
66
+
67
+ @NgModule({
68
+ declarations : [
69
+
70
+ BryntumFullscreenButtonComponent,
71
+ BryntumDemoHeaderComponent,
72
+
73
+ BryntumAIFilterFieldComponent,
74
+ BryntumButtonComponent,
75
+ BryntumButtonGroupComponent,
76
+ BryntumChatPanelComponent,
77
+ BryntumCheckboxComponent,
78
+ BryntumCheckboxGroupComponent,
79
+ BryntumChecklistFilterComboComponent,
80
+ BryntumChipViewComponent,
81
+ BryntumCodeEditorComponent,
82
+ BryntumColorFieldComponent,
83
+ BryntumComboComponent,
84
+ BryntumContainerComponent,
85
+ BryntumDateFieldComponent,
86
+ BryntumDatePickerComponent,
87
+ BryntumDateRangeFieldComponent,
88
+ BryntumDateTimeFieldComponent,
89
+ BryntumDemoCodeEditorComponent,
90
+ BryntumDisplayFieldComponent,
91
+ BryntumDurationFieldComponent,
92
+ BryntumEditorComponent,
93
+ BryntumFieldFilterPickerComponent,
94
+ BryntumFieldFilterPickerGroupComponent,
95
+ BryntumFieldSetComponent,
96
+ BryntumFileFieldComponent,
97
+ BryntumFilePickerComponent,
98
+ BryntumFilterFieldComponent,
99
+ BryntumGridComponent,
100
+ BryntumGridBaseComponent,
101
+ BryntumGridChartDesignerComponent,
102
+ BryntumGridFieldFilterPickerComponent,
103
+ BryntumGridFieldFilterPickerGroupComponent,
104
+ BryntumGroupBarComponent,
105
+ BryntumHintComponent,
106
+ BryntumLabelComponent,
107
+ BryntumListComponent,
108
+ BryntumMenuComponent,
109
+ BryntumMonthPickerComponent,
110
+ BryntumNumberFieldComponent,
111
+ BryntumPagingToolbarComponent,
112
+ BryntumPanelComponent,
113
+ BryntumPasswordFieldComponent,
114
+ BryntumRadioComponent,
115
+ BryntumRadioGroupComponent,
116
+ BryntumSliderComponent,
117
+ BryntumSlideToggleComponent,
118
+ BryntumSplitterComponent,
119
+ BryntumTabPanelComponent,
120
+ BryntumTextAreaFieldComponent,
121
+ BryntumTextAreaPickerFieldComponent,
122
+ BryntumTextFieldComponent,
123
+ BryntumTimeFieldComponent,
124
+ BryntumTimePickerComponent,
125
+ BryntumToolbarComponent,
126
+ BryntumTreeComboComponent,
127
+ BryntumTreeGridComponent,
128
+ BryntumWidgetComponent,
129
+ BryntumYearPickerComponent
130
+ ],
131
+ imports : [],
132
+ exports : [
133
+
134
+ BryntumFullscreenButtonComponent,
135
+ BryntumDemoHeaderComponent,
136
+
137
+ BryntumAIFilterFieldComponent,
138
+ BryntumButtonComponent,
139
+ BryntumButtonGroupComponent,
140
+ BryntumChatPanelComponent,
141
+ BryntumCheckboxComponent,
142
+ BryntumCheckboxGroupComponent,
143
+ BryntumChecklistFilterComboComponent,
144
+ BryntumChipViewComponent,
145
+ BryntumCodeEditorComponent,
146
+ BryntumColorFieldComponent,
147
+ BryntumComboComponent,
148
+ BryntumContainerComponent,
149
+ BryntumDateFieldComponent,
150
+ BryntumDatePickerComponent,
151
+ BryntumDateRangeFieldComponent,
152
+ BryntumDateTimeFieldComponent,
153
+ BryntumDemoCodeEditorComponent,
154
+ BryntumDisplayFieldComponent,
155
+ BryntumDurationFieldComponent,
156
+ BryntumEditorComponent,
157
+ BryntumFieldFilterPickerComponent,
158
+ BryntumFieldFilterPickerGroupComponent,
159
+ BryntumFieldSetComponent,
160
+ BryntumFileFieldComponent,
161
+ BryntumFilePickerComponent,
162
+ BryntumFilterFieldComponent,
163
+ BryntumGridComponent,
164
+ BryntumGridBaseComponent,
165
+ BryntumGridChartDesignerComponent,
166
+ BryntumGridFieldFilterPickerComponent,
167
+ BryntumGridFieldFilterPickerGroupComponent,
168
+ BryntumGroupBarComponent,
169
+ BryntumHintComponent,
170
+ BryntumLabelComponent,
171
+ BryntumListComponent,
172
+ BryntumMenuComponent,
173
+ BryntumMonthPickerComponent,
174
+ BryntumNumberFieldComponent,
175
+ BryntumPagingToolbarComponent,
176
+ BryntumPanelComponent,
177
+ BryntumPasswordFieldComponent,
178
+ BryntumRadioComponent,
179
+ BryntumRadioGroupComponent,
180
+ BryntumSliderComponent,
181
+ BryntumSlideToggleComponent,
182
+ BryntumSplitterComponent,
183
+ BryntumTabPanelComponent,
184
+ BryntumTextAreaFieldComponent,
185
+ BryntumTextAreaPickerFieldComponent,
186
+ BryntumTextFieldComponent,
187
+ BryntumTimeFieldComponent,
188
+ BryntumTimePickerComponent,
189
+ BryntumToolbarComponent,
190
+ BryntumTreeComboComponent,
191
+ BryntumTreeGridComponent,
192
+ BryntumWidgetComponent,
193
+ BryntumYearPickerComponent
194
+ ]
195
+ })
196
+ export class BryntumGridModule { }
@@ -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/grid/docs/guide/Grid/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,65 @@
1
+ /*
2
+ * Public API Surface of Bryntum Grid
3
+ */
4
+ export * from './lib/grid.module';
5
+
6
+ export * from './lib/bryntum-fullscreen-button.component';
7
+ export * from './lib/bryntum-demo-header.component';
8
+
9
+ export * from './lib/bryntum-a-i-filter-field.component';
10
+ export * from './lib/bryntum-button.component';
11
+ export * from './lib/bryntum-button-group.component';
12
+ export * from './lib/bryntum-chat-panel.component';
13
+ export * from './lib/bryntum-checkbox.component';
14
+ export * from './lib/bryntum-checkbox-group.component';
15
+ export * from './lib/bryntum-checklist-filter-combo.component';
16
+ export * from './lib/bryntum-chip-view.component';
17
+ export * from './lib/bryntum-code-editor.component';
18
+ export * from './lib/bryntum-color-field.component';
19
+ export * from './lib/bryntum-combo.component';
20
+ export * from './lib/bryntum-container.component';
21
+ export * from './lib/bryntum-date-field.component';
22
+ export * from './lib/bryntum-date-picker.component';
23
+ export * from './lib/bryntum-date-range-field.component';
24
+ export * from './lib/bryntum-date-time-field.component';
25
+ export * from './lib/bryntum-demo-code-editor.component';
26
+ export * from './lib/bryntum-display-field.component';
27
+ export * from './lib/bryntum-duration-field.component';
28
+ export * from './lib/bryntum-editor.component';
29
+ export * from './lib/bryntum-field-filter-picker.component';
30
+ export * from './lib/bryntum-field-filter-picker-group.component';
31
+ export * from './lib/bryntum-field-set.component';
32
+ export * from './lib/bryntum-file-field.component';
33
+ export * from './lib/bryntum-file-picker.component';
34
+ export * from './lib/bryntum-filter-field.component';
35
+ export * from './lib/bryntum-grid.component';
36
+ export * from './lib/bryntum-grid-base.component';
37
+ export * from './lib/bryntum-grid-chart-designer.component';
38
+ export * from './lib/bryntum-grid-field-filter-picker.component';
39
+ export * from './lib/bryntum-grid-field-filter-picker-group.component';
40
+ export * from './lib/bryntum-group-bar.component';
41
+ export * from './lib/bryntum-hint.component';
42
+ export * from './lib/bryntum-label.component';
43
+ export * from './lib/bryntum-list.component';
44
+ export * from './lib/bryntum-menu.component';
45
+ export * from './lib/bryntum-month-picker.component';
46
+ export * from './lib/bryntum-number-field.component';
47
+ export * from './lib/bryntum-paging-toolbar.component';
48
+ export * from './lib/bryntum-panel.component';
49
+ export * from './lib/bryntum-password-field.component';
50
+ export * from './lib/bryntum-radio.component';
51
+ export * from './lib/bryntum-radio-group.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-tab-panel.component';
56
+ export * from './lib/bryntum-text-area-field.component';
57
+ export * from './lib/bryntum-text-area-picker-field.component';
58
+ export * from './lib/bryntum-text-field.component';
59
+ export * from './lib/bryntum-time-field.component';
60
+ export * from './lib/bryntum-time-picker.component';
61
+ export * from './lib/bryntum-toolbar.component';
62
+ export * from './lib/bryntum-tree-combo.component';
63
+ export * from './lib/bryntum-tree-grid.component';
64
+ export * from './lib/bryntum-widget.component';
65
+ export * from './lib/bryntum-year-picker.component'