@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,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Angular wrapper for Bryntum Fullscreen button
|
|
3
|
+
*/
|
|
4
|
+
import { Component, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
5
|
+
import { Button, Fullscreen } from '@bryntum/taskboard';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector : 'bryntum-fullscreen-button',
|
|
9
|
+
template : ''
|
|
10
|
+
})
|
|
11
|
+
export class BryntumFullscreenButtonComponent implements OnInit, OnDestroy {
|
|
12
|
+
// class variables
|
|
13
|
+
private elementRef: ElementRef;
|
|
14
|
+
private button!: Button;
|
|
15
|
+
|
|
16
|
+
constructor(element: ElementRef) {
|
|
17
|
+
this.elementRef = element;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Initializes component
|
|
22
|
+
*/
|
|
23
|
+
ngOnInit(): void {
|
|
24
|
+
if (!Fullscreen.enabled) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
this.button = new Button({
|
|
28
|
+
appendTo : this.elementRef.nativeElement,
|
|
29
|
+
icon : 'b-icon b-icon-fullscreen',
|
|
30
|
+
tooltip : 'Fullscreen',
|
|
31
|
+
rendition : 'text',
|
|
32
|
+
onClick() {
|
|
33
|
+
if (Fullscreen.enabled) {
|
|
34
|
+
if (!Fullscreen.isFullscreen) {
|
|
35
|
+
Fullscreen.request(document.body);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
Fullscreen.exit();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Destroys component
|
|
47
|
+
*/
|
|
48
|
+
ngOnDestroy() : void {
|
|
49
|
+
if (this.button) {
|
|
50
|
+
this.button.destroy();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|