@mintplayer/ng-bootstrap 22.27.0 → 22.29.0
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/_bootstrap.scss +4 -101
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +62 -30
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -64
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +50 -46
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +65 -94
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +122 -97
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +80 -133
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -19
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +76 -37
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +37 -82
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +150 -813
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +172 -118
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +180 -142
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +66 -116
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +80 -204
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +32 -17
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +220 -20
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +98 -129
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +144 -265
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +133 -217
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +46 -25
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +166 -93
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +148 -231
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +133 -94
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +76 -7
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +766 -812
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +206 -180
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +202 -141
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +113 -59
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +133 -76
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +60 -87
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +86 -83
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +1 -2
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +38 -34
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +177 -147
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +200 -94
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +186 -233
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +58 -136
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +22 -16
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/package.json +11 -9
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +40 -21
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +36 -33
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +39 -16
- package/types/mintplayer-ng-bootstrap-card.d.ts +25 -33
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +70 -55
- package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +65 -45
- package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +12 -3
- package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +34 -19
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +34 -8
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +32 -59
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +217 -416
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +77 -29
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +83 -51
- package/types/mintplayer-ng-bootstrap-dock.d.ts +57 -38
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +25 -30
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +61 -81
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +17 -12
- package/types/mintplayer-ng-bootstrap-machine.d.ts +112 -4
- package/types/mintplayer-ng-bootstrap-multi-range.d.ts +53 -27
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +88 -164
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +63 -30
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +23 -7
- package/types/mintplayer-ng-bootstrap-phone-input.d.ts +77 -47
- package/types/mintplayer-ng-bootstrap-query-builder.d.ts +95 -98
- package/types/mintplayer-ng-bootstrap-radio.d.ts +68 -35
- package/types/mintplayer-ng-bootstrap-rating.d.ts +27 -2
- package/types/mintplayer-ng-bootstrap-ribbon.d.ts +546 -220
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +82 -197
- package/types/mintplayer-ng-bootstrap-select.d.ts +113 -53
- package/types/mintplayer-ng-bootstrap-shell.d.ts +59 -33
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +63 -27
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +45 -56
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +47 -26
- package/types/mintplayer-ng-bootstrap-table.d.ts +1 -2
- package/types/mintplayer-ng-bootstrap-theming.d.ts +19 -18
- package/types/mintplayer-ng-bootstrap-timeline.d.ts +287 -117
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +100 -27
- package/types/mintplayer-ng-bootstrap-tree-select.d.ts +188 -94
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +74 -59
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +3 -0
- package/src/styles/utilities/cursor.scss +0 -12
- package/src/styles/utilities/overflow.scss +0 -12
- package/src/styles/utilities/white-space.scss +0 -12
- package/src/styles/utilities/width.scss +0 -14
|
@@ -1,206 +1,232 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import '@
|
|
4
|
-
import {
|
|
5
|
-
|
|
2
|
+
import { Directive, inject, ElementRef, input, booleanAttribute, numberAttribute, model, output, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
+
import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
5
|
+
import { schedulerCore, schedulerScopedStyles } from '@mintplayer/ui-core/scheduler';
|
|
6
|
+
export { SchedulerStateManager, createInitialState } from '@mintplayer/ui-core/scheduler';
|
|
7
|
+
import { BsDatetimePickerComponent } from '@mintplayer/ng-bootstrap/datetime-picker';
|
|
8
|
+
export { generateEventId, generateGroupId, generateResourceId } from '@mintplayer/ui-core/scheduler-core';
|
|
6
9
|
|
|
10
|
+
// GENERATED from the scheduler manifest (scheduler) by @mintplayer/nx-component-compiler. Do not edit.
|
|
11
|
+
/** Types the `SchedTimeGrid` partial's context in this template. */
|
|
12
|
+
class SchedTimeGridPartial {
|
|
13
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedTimeGridPartial, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
17
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: SchedTimeGridPartial, isStandalone: true, selector: "ng-template[mpPartialSchedTimeGrid]", ngImport: i0 }); }
|
|
18
|
+
}
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedTimeGridPartial, decorators: [{
|
|
20
|
+
type: Directive,
|
|
21
|
+
args: [{ selector: 'ng-template[mpPartialSchedTimeGrid]' }]
|
|
22
|
+
}] });
|
|
23
|
+
/** Types the `SchedMonth` partial's context in this template. */
|
|
24
|
+
class SchedMonthPartial {
|
|
25
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedMonthPartial, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
29
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: SchedMonthPartial, isStandalone: true, selector: "ng-template[mpPartialSchedMonth]", ngImport: i0 }); }
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedMonthPartial, decorators: [{
|
|
32
|
+
type: Directive,
|
|
33
|
+
args: [{ selector: 'ng-template[mpPartialSchedMonth]' }]
|
|
34
|
+
}] });
|
|
35
|
+
/** Types the `SchedYear` partial's context in this template. */
|
|
36
|
+
class SchedYearPartial {
|
|
37
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedYearPartial, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
41
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: SchedYearPartial, isStandalone: true, selector: "ng-template[mpPartialSchedYear]", ngImport: i0 }); }
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedYearPartial, decorators: [{
|
|
44
|
+
type: Directive,
|
|
45
|
+
args: [{ selector: 'ng-template[mpPartialSchedYear]' }]
|
|
46
|
+
}] });
|
|
47
|
+
/** Types the `SchedTimeline` partial's context in this template. */
|
|
48
|
+
class SchedTimelinePartial {
|
|
49
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedTimelinePartial, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
53
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: SchedTimelinePartial, isStandalone: true, selector: "ng-template[mpPartialSchedTimeline]", ngImport: i0 }); }
|
|
54
|
+
}
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedTimelinePartial, decorators: [{
|
|
56
|
+
type: Directive,
|
|
57
|
+
args: [{ selector: 'ng-template[mpPartialSchedTimeline]' }]
|
|
58
|
+
}] });
|
|
59
|
+
/** Types the `SchedPopover` partial's context in this template. */
|
|
60
|
+
class SchedPopoverPartial {
|
|
61
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedPopoverPartial, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
65
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: SchedPopoverPartial, isStandalone: true, selector: "ng-template[mpPartialSchedPopover]", ngImport: i0 }); }
|
|
66
|
+
}
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedPopoverPartial, decorators: [{
|
|
68
|
+
type: Directive,
|
|
69
|
+
args: [{ selector: 'ng-template[mpPartialSchedPopover]' }]
|
|
70
|
+
}] });
|
|
71
|
+
/** Types the `SchedPopoverEvent` partial's context in this template. */
|
|
72
|
+
class SchedPopoverEventPartial {
|
|
73
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedPopoverEventPartial, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
77
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: SchedPopoverEventPartial, isStandalone: true, selector: "ng-template[mpPartialSchedPopoverEvent]", ngImport: i0 }); }
|
|
78
|
+
}
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedPopoverEventPartial, decorators: [{
|
|
80
|
+
type: Directive,
|
|
81
|
+
args: [{ selector: 'ng-template[mpPartialSchedPopoverEvent]' }]
|
|
82
|
+
}] });
|
|
83
|
+
/** Types the `SchedRowPanel` partial's context in this template. */
|
|
84
|
+
class SchedRowPanelPartial {
|
|
85
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedRowPanelPartial, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
89
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: SchedRowPanelPartial, isStandalone: true, selector: "ng-template[mpPartialSchedRowPanel]", ngImport: i0 }); }
|
|
90
|
+
}
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedRowPanelPartial, decorators: [{
|
|
92
|
+
type: Directive,
|
|
93
|
+
args: [{ selector: 'ng-template[mpPartialSchedRowPanel]' }]
|
|
94
|
+
}] });
|
|
95
|
+
/** Types the `SchedEditor` partial's context in this template. */
|
|
96
|
+
class SchedEditorPartial {
|
|
97
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedEditorPartial, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
101
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: SchedEditorPartial, isStandalone: true, selector: "ng-template[mpPartialSchedEditor]", ngImport: i0 }); }
|
|
102
|
+
}
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SchedEditorPartial, decorators: [{
|
|
104
|
+
type: Directive,
|
|
105
|
+
args: [{ selector: 'ng-template[mpPartialSchedEditor]' }]
|
|
106
|
+
}] });
|
|
7
107
|
/**
|
|
8
|
-
*
|
|
108
|
+
* A calendar and resource scheduler (#437): year, month, week, day and timeline views over `events`
|
|
109
|
+
* and `resources`. Drag (or the keyboard) creates, moves and resizes; every change is a request
|
|
110
|
+
* (`eventCreate`, `eventUpdate`, `eventDelete`, `resource*`) the consumer applies to its own data.
|
|
111
|
+
* Two-way: `view`, `date`, `selectedEvent`, `selectedRange`. Strings come from `options.messages`.
|
|
9
112
|
*/
|
|
10
113
|
class BsSchedulerComponent {
|
|
114
|
+
#core;
|
|
11
115
|
constructor() {
|
|
12
|
-
|
|
13
|
-
this.
|
|
14
|
-
...(ngDevMode ? [{ debugName: "schedulerRef" }] : /* istanbul ignore next */ []));
|
|
15
|
-
// Input signals
|
|
116
|
+
/** The host element. */
|
|
117
|
+
this.elementRef = inject(ElementRef);
|
|
16
118
|
this.events = input([], /* @ts-ignore */
|
|
17
119
|
...(ngDevMode ? [{ debugName: "events" }] : /* istanbul ignore next */ []));
|
|
18
120
|
this.resources = input([], /* @ts-ignore */
|
|
19
121
|
...(ngDevMode ? [{ debugName: "resources" }] : /* istanbul ignore next */ []));
|
|
20
|
-
this.options = input(
|
|
122
|
+
this.options = input(null, /* @ts-ignore */
|
|
21
123
|
...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
22
|
-
|
|
23
|
-
* Coarse read-only switch — the one-line way to make the whole scheduler
|
|
24
|
-
* look-but-don't-touch. It maps onto the WC's `readonly` attribute rather
|
|
25
|
-
* than a property so plain-HTML and SSR consumers get the same knob;
|
|
26
|
-
* `[options].permissions` still refines individual capabilities beneath it.
|
|
27
|
-
* Aliased because `readonly` cannot name a class member here.
|
|
28
|
-
*/
|
|
29
|
-
this.isReadonly = input(false, { ...(ngDevMode ? { debugName: "isReadonly" } : /* istanbul ignore next */ {}), alias: 'readonly', transform: booleanAttribute });
|
|
30
|
-
this.readonlyAttr = computed(() => (this.isReadonly() ? '' : null), /* @ts-ignore */
|
|
31
|
-
...(ngDevMode ? [{ debugName: "readonlyAttr" }] : /* istanbul ignore next */ []));
|
|
32
|
-
/**
|
|
33
|
-
* The WC's built-in event editor (double-click / right-click / F2 on an
|
|
34
|
-
* event), ON by default. Set false when the app ships its own editor —
|
|
35
|
-
* `(eventDblClick)` keeps firing either way. Rendered as the `event-editor`
|
|
36
|
-
* attribute, whose literal "false" is the off switch, so the binding can be
|
|
37
|
-
* unconditional.
|
|
38
|
-
*/
|
|
124
|
+
this.readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
39
125
|
this.eventEditor = input(true, { ...(ngDevMode ? { debugName: "eventEditor" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
40
|
-
this.
|
|
41
|
-
...(ngDevMode ? [{ debugName: "
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
this.view = model('week', /* @ts-ignore */
|
|
126
|
+
this.locale = input(null, /* @ts-ignore */
|
|
127
|
+
...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
128
|
+
this.firstDayOfWeek = input(null, { ...(ngDevMode ? { debugName: "firstDayOfWeek" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
|
|
129
|
+
this.slotDuration = input(null, { ...(ngDevMode ? { debugName: "slotDuration" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
|
|
130
|
+
this.timeFormat = input(null, /* @ts-ignore */
|
|
131
|
+
...(ngDevMode ? [{ debugName: "timeFormat" }] : /* istanbul ignore next */ []));
|
|
132
|
+
this.view = model(null, /* @ts-ignore */
|
|
48
133
|
...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
|
|
49
|
-
this.date = model(
|
|
134
|
+
this.date = model(null, /* @ts-ignore */
|
|
50
135
|
...(ngDevMode ? [{ debugName: "date" }] : /* istanbul ignore next */ []));
|
|
51
136
|
this.selectedEvent = model(null, /* @ts-ignore */
|
|
52
137
|
...(ngDevMode ? [{ debugName: "selectedEvent" }] : /* istanbul ignore next */ []));
|
|
53
138
|
this.selectedRange = model(null, /* @ts-ignore */
|
|
54
139
|
...(ngDevMode ? [{ debugName: "selectedRange" }] : /* istanbul ignore next */ []));
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
this.
|
|
61
|
-
|
|
62
|
-
this.
|
|
63
|
-
|
|
64
|
-
this.
|
|
65
|
-
|
|
66
|
-
this.
|
|
67
|
-
|
|
68
|
-
this.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
this.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
this.
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
this.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
this.schedulerRef().nativeElement.next();
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Navigate to previous period
|
|
137
|
-
*/
|
|
138
|
-
prev() {
|
|
139
|
-
this.schedulerRef().nativeElement.prev();
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Navigate to today
|
|
143
|
-
*/
|
|
144
|
-
today() {
|
|
145
|
-
this.schedulerRef().nativeElement.today();
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Navigate to a specific date
|
|
149
|
-
*/
|
|
150
|
-
gotoDate(date) {
|
|
151
|
-
this.schedulerRef().nativeElement.gotoDate(date);
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Change the current view
|
|
155
|
-
*/
|
|
156
|
-
changeView(view) {
|
|
157
|
-
this.schedulerRef().nativeElement.changeView(view);
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Clear the time-range selection and the focused-cell selection. Call this
|
|
161
|
-
* from your `(eventCreate)` handler if you want the post-create selection
|
|
162
|
-
* cleared — the scheduler no longer auto-clears (PRD: scheduler-controlled-selection).
|
|
163
|
-
*/
|
|
164
|
-
clearSelection() {
|
|
165
|
-
this.schedulerRef().nativeElement.clearSelection();
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Add an event
|
|
169
|
-
*/
|
|
170
|
-
addEvent(event) {
|
|
171
|
-
this.schedulerRef().nativeElement.addEvent(event);
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Update an event
|
|
175
|
-
*/
|
|
176
|
-
updateEvent(event) {
|
|
177
|
-
this.schedulerRef().nativeElement.updateEvent(event);
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Remove an event
|
|
181
|
-
*/
|
|
182
|
-
removeEvent(eventId) {
|
|
183
|
-
this.schedulerRef().nativeElement.removeEvent(eventId);
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Get an event by ID
|
|
187
|
-
*/
|
|
188
|
-
getEventById(eventId) {
|
|
189
|
-
return this.schedulerRef().nativeElement.getEventById(eventId);
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Refetch/refresh events
|
|
193
|
-
*/
|
|
194
|
-
refetchEvents() {
|
|
195
|
-
this.schedulerRef().nativeElement.refetchEvents();
|
|
140
|
+
/** An event was selected by click, tap or focus. */
|
|
141
|
+
this.eventselected = output();
|
|
142
|
+
/** An event was activated twice (double click or double tap). */
|
|
143
|
+
this.eventdblclick = output();
|
|
144
|
+
/** A request to create an event over a range (drag, Enter, the popover). */
|
|
145
|
+
this.eventcreate = output();
|
|
146
|
+
/** A request to apply a move, resize or editor change. */
|
|
147
|
+
this.eventupdate = output();
|
|
148
|
+
/** A request to delete an event. */
|
|
149
|
+
this.eventdelete = output();
|
|
150
|
+
/** A day of the month or year view was clicked. */
|
|
151
|
+
this.dateclick = output();
|
|
152
|
+
/** The selected event or range changed. */
|
|
153
|
+
this.selectionchanged = output();
|
|
154
|
+
/** A request to add a resource (optionally under a group). */
|
|
155
|
+
this.resourcecreate = output();
|
|
156
|
+
/** A request to add a group (optionally under a group). */
|
|
157
|
+
this.groupcreate = output();
|
|
158
|
+
/** A request to rename or recolour a resource. */
|
|
159
|
+
this.resourceupdate = output();
|
|
160
|
+
/** A request to delete a resource. */
|
|
161
|
+
this.resourcedelete = output();
|
|
162
|
+
/** The view, after it changed. */
|
|
163
|
+
this.viewchange = output();
|
|
164
|
+
/** The shown date, after it changed. */
|
|
165
|
+
this.datechange = output();
|
|
166
|
+
/** The selected event, after it changed. */
|
|
167
|
+
this.selectedeventchange = output();
|
|
168
|
+
/** The range selection, after it changed. */
|
|
169
|
+
this.selectedrangechange = output();
|
|
170
|
+
this.#core = useCore(schedulerCore, { inputs: () => ({ events: this.events(), resources: this.resources(), options: this.options(), readonly: this.readonly(), eventEditor: this.eventEditor(), locale: this.locale(), firstDayOfWeek: this.firstDayOfWeek(), slotDuration: this.slotDuration(), timeFormat: this.timeFormat(), view: this.view(), date: this.date(), selectedEvent: this.selectedEvent(), selectedRange: this.selectedRange() }), idPrefix: 'bs-scheduler', outputs: { eventSelected: this.eventselected, eventDblClick: this.eventdblclick, eventCreate: this.eventcreate, eventUpdate: this.eventupdate, eventDelete: this.eventdelete, dateClick: this.dateclick, selectionChanged: this.selectionchanged, resourceCreate: this.resourcecreate, groupCreate: this.groupcreate, resourceUpdate: this.resourceupdate, resourceDelete: this.resourcedelete, viewChange: this.viewchange, dateChange: this.datechange, selectedEventChange: this.selectedeventchange, selectedRangeChange: this.selectedrangechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'scheduler' }), models: { view: this.view, date: this.date, selectedEvent: this.selectedEvent, selectedRange: this.selectedRange } });
|
|
171
|
+
/** The template's props. */
|
|
172
|
+
this.props = this.#core.props;
|
|
173
|
+
useScopedStyles('scheduler', schedulerScopedStyles);
|
|
174
|
+
}
|
|
175
|
+
/** The next period. */
|
|
176
|
+
next(...args) {
|
|
177
|
+
return this.#core.call('next', args);
|
|
178
|
+
}
|
|
179
|
+
/** The previous period. */
|
|
180
|
+
prev(...args) {
|
|
181
|
+
return this.#core.call('prev', args);
|
|
182
|
+
}
|
|
183
|
+
/** The period containing today. */
|
|
184
|
+
today(...args) {
|
|
185
|
+
return this.#core.call('today', args);
|
|
186
|
+
}
|
|
187
|
+
/** The period containing a date. */
|
|
188
|
+
gotoDate(...args) {
|
|
189
|
+
return this.#core.call('gotoDate', args);
|
|
190
|
+
}
|
|
191
|
+
/** Switch the view, and announce it. */
|
|
192
|
+
changeView(...args) {
|
|
193
|
+
return this.#core.call('changeView', args);
|
|
194
|
+
}
|
|
195
|
+
/** Clear the range selection. */
|
|
196
|
+
clearSelection(...args) {
|
|
197
|
+
return this.#core.call('clearSelection', args);
|
|
198
|
+
}
|
|
199
|
+
/** Add an event to the scheduler's own copy, and announce it. */
|
|
200
|
+
addEvent(...args) {
|
|
201
|
+
return this.#core.call('addEvent', args);
|
|
202
|
+
}
|
|
203
|
+
/** Replace an event in the scheduler's own copy, and announce it. */
|
|
204
|
+
updateEvent(...args) {
|
|
205
|
+
return this.#core.call('updateEvent', args);
|
|
206
|
+
}
|
|
207
|
+
/** Remove an event from the scheduler's own copy, and announce it. */
|
|
208
|
+
removeEvent(...args) {
|
|
209
|
+
return this.#core.call('removeEvent', args);
|
|
210
|
+
}
|
|
211
|
+
/** An event by id, or null. */
|
|
212
|
+
getEventById(...args) {
|
|
213
|
+
return this.#core.call('getEventById', args);
|
|
214
|
+
}
|
|
215
|
+
/** Re-render from the current events. */
|
|
216
|
+
refetchEvents(...args) {
|
|
217
|
+
return this.#core.call('refetchEvents', args);
|
|
196
218
|
}
|
|
197
219
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSchedulerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
198
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsSchedulerComponent, isStandalone: true, selector: "bs-scheduler", inputs: { events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, resources: { classPropertyName: "resources", publicName: "resources", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, isReadonly: { classPropertyName: "isReadonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, eventEditor: { classPropertyName: "eventEditor", publicName: "eventEditor", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, selectedEvent: { classPropertyName: "selectedEvent", publicName: "selectedEvent", isSignal: true, isRequired: false, transformFunction: null }, selectedRange: { classPropertyName: "selectedRange", publicName: "selectedRange", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { view: "viewChange", date: "dateChange", selectedEvent: "selectedEventChange", selectedRange: "selectedRangeChange", eventSelected: "eventSelected", eventDblClick: "eventDblClick", eventCreate: "eventCreate", eventUpdate: "eventUpdate", eventDelete: "eventDelete", dateClick: "dateClick", selectionChange: "selectionChange", resourceCreate: "resourceCreate", groupCreate: "groupCreate", resourceUpdate: "resourceUpdate", resourceDelete: "resourceDelete" }, viewQueries: [{ propertyName: "schedulerRef", first: true, predicate: ["scheduler"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-scheduler bsForwardAria #scheduler\n [attr.readonly]=\"readonlyAttr()\"\n [attr.event-editor]=\"eventEditorAttr()\"\n (event-selected)=\"onEventSelected($event)\"\n (event-dblclick)=\"forward(eventDblClick, $event)\"\n (event-create)=\"forward(eventCreate, $event)\"\n (event-update)=\"forward(eventUpdate, $event)\"\n (event-delete)=\"forward(eventDelete, $event)\"\n (date-click)=\"forward(dateClick, $event)\"\n (resource-create)=\"forward(resourceCreate, $event)\"\n (group-create)=\"forward(groupCreate, $event)\"\n (resource-update)=\"forward(resourceUpdate, $event)\"\n (resource-delete)=\"forward(resourceDelete, $event)\"\n (view-change)=\"onViewChange($event)\"\n (selection-change)=\"onSelectionChange($event)\"\n></mp-scheduler>\n", styles: [":host{display:block;height:100%}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
220
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsSchedulerComponent, isStandalone: true, selector: "bs-scheduler", inputs: { events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, resources: { classPropertyName: "resources", publicName: "resources", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, eventEditor: { classPropertyName: "eventEditor", publicName: "eventEditor", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, slotDuration: { classPropertyName: "slotDuration", publicName: "slotDuration", isSignal: true, isRequired: false, transformFunction: null }, timeFormat: { classPropertyName: "timeFormat", publicName: "timeFormat", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, selectedEvent: { classPropertyName: "selectedEvent", publicName: "selectedEvent", isSignal: true, isRequired: false, transformFunction: null }, selectedRange: { classPropertyName: "selectedRange", publicName: "selectedRange", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { view: "viewChange", date: "dateChange", selectedEvent: "selectedEventChange", selectedRange: "selectedRangeChange", eventselected: "eventselected", eventdblclick: "eventdblclick", eventcreate: "eventcreate", eventupdate: "eventupdate", eventdelete: "eventdelete", dateclick: "dateclick", selectionchanged: "selectionchanged", resourcecreate: "resourcecreate", groupcreate: "groupcreate", resourceupdate: "resourceupdate", resourcedelete: "resourcedelete", viewchange: "viewchange", datechange: "datechange", selectedeventchange: "selectedeventchange", selectedrangechange: "selectedrangechange" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/scheduler/src/templates/scheduler.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"scheduler\" [mpProps]=\"p_view.container\">\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.header\">\n <nav data-mps=\"scheduler\" [mpProps]=\"p_view.nav\">\n <button data-mps=\"scheduler\" [mpProps]=\"p_view.prev\">\n \u2039\n </button>\n <button data-mps=\"scheduler\" [mpProps]=\"p_view.next\">\n \u203A\n </button>\n <button data-mps=\"scheduler\" [mpProps]=\"p_view.today\">\n {{ p_view.todayText }}\n </button>\n </nav>\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.title\">\n {{ p_view.titleText }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.switcher\">\n @for (v of p_view.views; track v.key) {\n <button data-mps=\"scheduler\" [mpProps]=\"v.bag\">\n {{ v.text }}\n </button>\n }\n </div>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.content\" [style]=\"p_view.contentStyle\">\n @if (p_view.timeGrid) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedTimeGrid\" [ngTemplateOutletContext]=\"{ grid: p_view.timeGrid }\" />\n }\n @if (p_view.month) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedMonth\" [ngTemplateOutletContext]=\"{ month: p_view.month }\" />\n }\n @if (p_view.year) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedYear\" [ngTemplateOutletContext]=\"{ year: p_view.year }\" />\n }\n @if (p_view.timeline) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedTimeline\" [ngTemplateOutletContext]=\"{ timeline: p_view.timeline }\" />\n }\n @if (p_view.timeline && p_view.timeline.addBar) {\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.timeline.addBar.bag\">\n @for (b of p_view.timeline.addBar.buttons; track b.key) {\n <button data-mps=\"scheduler\" [mpProps]=\"b.bag\">\n {{ b.text }}\n </button>\n }\n </div>\n }\n </div>\n</div>\n<div data-mps=\"scheduler\" [mpProps]=\"p_view.kbdGrid\">\n {{ p_view.kbdGridText }}\n</div>\n<div data-mps=\"scheduler\" [mpProps]=\"p_view.kbdEvent\">\n {{ p_view.kbdEventText }}\n</div>\n@if (p_view.popover) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedPopover\" [ngTemplateOutletContext]=\"{ popover: p_view.popover }\" />\n}\n@if (p_view.rowPanel) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedRowPanel\" [ngTemplateOutletContext]=\"{ panel: p_view.rowPanel }\" />\n}\n@if (p_view.editor) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedEditor\" [ngTemplateOutletContext]=\"{ editor: p_view.editor }\" />\n}\n<div data-mps=\"scheduler\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n<ng-template #partial_SchedTimeGrid mpPartialSchedTimeGrid let-pp_grid=\"grid\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.headerRow\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.gutterSpace\"></div>\n @for (h of pp_grid.headers; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"h.nameBag\">\n {{ h.name }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"h.numberBag\">\n {{ h.number }}\n </div>\n @if (h.monthYearBag) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.monthYearBag\">\n {{ h.monthYear }}\n </div>\n }\n </div>\n }\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.grid\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.gutter\">\n @for (l of pp_grid.labels; track l.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"l.bag\">\n {{ l.text }}\n </div>\n }\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.days\">\n @for (c of pp_grid.columns; track c.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"c.bag\">\n @for (slot of c.slots; track slot.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"slot.bag\"></div>\n }\n <div data-mps=\"scheduler\" [mpProps]=\"c.events\">\n @for (b of c.boxes; track b.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"b.bag\" [style]=\"b.style\">\n <div data-mps=\"scheduler\" [mpProps]=\"b.content\">\n <div data-mps=\"scheduler\" [mpProps]=\"b.titleBag\">\n {{ b.title }}\n </div>\n @if (b.timeBag) {\n <div data-mps=\"scheduler\" [mpProps]=\"b.timeBag\">\n {{ b.time }}\n </div>\n }\n </div>\n @for (h of b.handles; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n <span data-mps=\"scheduler\" [mpProps]=\"h.glyph\"></span>\n </div>\n }\n </div>\n }\n @for (p of c.previews; track p.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"p.bag\" [style]=\"p.style\"></div>\n }\n </div>\n @if (c.now) {\n <div data-mps=\"scheduler\" [mpProps]=\"c.now.bag\" [style]=\"c.now.style\"></div>\n }\n </div>\n }\n </div>\n </div>\n</ng-template>\n<ng-template #partial_SchedMonth mpPartialSchedMonth let-pp_month=\"month\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_month.headerRow\">\n @for (h of pp_month.headers; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n {{ h.text }}\n </div>\n }\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_month.grid\">\n @for (w of pp_month.weeks; track w.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"w.bag\">\n @for (d of w.days; track d.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"d.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"d.numberBag\">\n {{ d.number }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"d.events\">\n @for (e of d.items; track e.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"e.bag\" [style]=\"e.style\">\n {{ e.title }}\n </div>\n }\n @if (d.more) {\n <div data-mps=\"scheduler\" [mpProps]=\"d.more.bag\">\n {{ d.more.text }}\n </div>\n }\n </div>\n </div>\n }\n </div>\n }\n </div>\n</ng-template>\n<ng-template #partial_SchedYear mpPartialSchedYear let-pp_year=\"year\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_year.grid\">\n @for (m of pp_year.months; track m.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"m.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"m.headerBag\">\n {{ m.header }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"m.mini\">\n @for (h of m.dayHeaders; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n {{ h.text }}\n </div>\n }\n @for (d of m.days; track d.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"d.bag\">\n {{ d.text }}\n </div>\n }\n </div>\n </div>\n }\n </div>\n</ng-template>\n<ng-template #partial_SchedTimeline mpPartialSchedTimeline let-pp_timeline=\"timeline\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.timeline\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.head\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.dayRow\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.resourceHeader\">\n {{ pp_timeline.resourceHeaderText }}\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.resizer\"></div>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.dayHeaders\">\n @for (d of pp_timeline.days; track d.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"d.bag\" [style]=\"d.style\">\n <span data-mps=\"scheduler\" [mpProps]=\"d.labelBag\">\n {{ d.label }}\n </span>\n </div>\n }\n </div>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.timeRow\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.emptyHeader\"></div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.timeHeaders\">\n @for (t of pp_timeline.times; track t.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"t.bag\">\n {{ t.text }}\n </div>\n }\n </div>\n </div>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.body\">\n @for (r of pp_timeline.rows; track r.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"r.bag\" [style]=\"r.style\">\n <div data-mps=\"scheduler\" [mpProps]=\"r.cell\" [style]=\"r.cellStyle\">\n @if (r.menu) {\n <button data-mps=\"scheduler\" [mpProps]=\"r.menu.bag\" [style]=\"r.menu.style\">\n <span data-mps=\"scheduler\" [mpProps]=\"r.menu.glyph\">\n \u22EF\n </span>\n </button>\n }\n @if (r.toggle) {\n <button data-mps=\"scheduler\" [mpProps]=\"r.toggle.bag\">\n {{ r.toggle.text }}\n </button>\n }\n @if (r.rename) {\n <input data-mps=\"scheduler\" [mpProps]=\"r.rename.bag\" [value]=\"r.rename.value\">\n } @else {\n <span data-mps=\"scheduler\" [mpProps]=\"r.titleBag\">\n {{ r.title }}\n </span>\n }\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"r.slots\">\n @for (c of r.cells; track c.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"c.bag\"></div>\n }\n @if (r.events) {\n <div data-mps=\"scheduler\" [mpProps]=\"r.events\">\n @for (b of r.boxes; track b.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"b.bag\" [style]=\"b.style\">\n <div data-mps=\"scheduler\" [mpProps]=\"b.content\">\n <div data-mps=\"scheduler\" [mpProps]=\"b.titleBag\">\n {{ b.title }}\n </div>\n @if (b.timeBag) {\n <div data-mps=\"scheduler\" [mpProps]=\"b.timeBag\">\n {{ b.time }}\n </div>\n }\n </div>\n @for (h of b.handles; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n <span data-mps=\"scheduler\" [mpProps]=\"h.glyph\"></span>\n </div>\n }\n </div>\n }\n @for (p of r.previews; track p.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"p.bag\" [style]=\"p.style\"></div>\n }\n </div>\n }\n </div>\n </div>\n }\n @if (pp_timeline.empty) {\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.empty.bag\">\n {{ pp_timeline.empty.text }}\n </div>\n }\n </div>\n </div>\n</ng-template>\n<ng-template #partial_SchedPopover mpPartialSchedPopover let-pp_popover=\"popover\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.head\">\n <div data-mps=\"scheduler\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.dateBag\">\n {{ pp_popover.date }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.countBag\">\n {{ pp_popover.count }}\n </div>\n </div>\n <button data-mps=\"scheduler\" [mpProps]=\"pp_popover.close\">\n <span data-mps=\"scheduler\" aria-hidden=\"true\">\n \u00D7\n </span>\n </button>\n </div>\n @if (pp_popover.empty) {\n <p data-mps=\"scheduler\" [mpProps]=\"pp_popover.empty.bag\">\n {{ pp_popover.empty.text }}\n </p>\n }\n @if (pp_popover.list) {\n <ul data-mps=\"scheduler\" [mpProps]=\"pp_popover.list\">\n @for (e of pp_popover.events; track e.key) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedPopoverEvent\" [ngTemplateOutletContext]=\"{ event: e }\" />\n }\n </ul>\n }\n @for (g of pp_popover.groups; track g.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"g.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"g.headingBag\">\n {{ g.heading }}\n </div>\n <ul data-mps=\"scheduler\" [mpProps]=\"g.list\">\n @for (e of g.events; track e.key) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedPopoverEvent\" [ngTemplateOutletContext]=\"{ event: e }\" />\n }\n </ul>\n </div>\n }\n @if (pp_popover.resource) {\n <label data-mps=\"scheduler\" [mpProps]=\"pp_popover.resource.bag\">\n <span data-mps=\"scheduler\" [mpProps]=\"pp_popover.resource.labelBag\">\n {{ pp_popover.resource.label }}\n </span>\n <select data-mps=\"scheduler\" [mpProps]=\"pp_popover.resource.select\">\n @for (o of pp_popover.resource.options; track o.key) {\n <option data-mps=\"scheduler\" [attr.value]=\"o.value\">\n {{ o.text }}\n </option>\n }\n </select>\n </label>\n }\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.actions\">\n @if (pp_popover.create) {\n <button data-mps=\"scheduler\" [mpProps]=\"pp_popover.create.bag\">\n {{ pp_popover.create.text }}\n </button>\n }\n <button data-mps=\"scheduler\" [mpProps]=\"pp_popover.drill.bag\">\n {{ pp_popover.drill.text }}\n </button>\n </div>\n </div>\n</ng-template>\n<ng-template #partial_SchedPopoverEvent mpPartialSchedPopoverEvent let-pp_event=\"event\">\n <li data-mps=\"scheduler\" [mpProps]=\"pp_event.row\">\n <button data-mps=\"scheduler\" [mpProps]=\"pp_event.bag\">\n <span data-mps=\"scheduler\" [mpProps]=\"pp_event.swatch\" [style]=\"pp_event.swatchStyle\"></span>\n <span data-mps=\"scheduler\" [mpProps]=\"pp_event.titleBag\">\n {{ pp_event.title }}\n </span>\n </button>\n @if (pp_event.remove) {\n <button data-mps=\"scheduler\" [mpProps]=\"pp_event.remove\">\n <span data-mps=\"scheduler\" aria-hidden=\"true\">\n \u00D7\n </span>\n </button>\n }\n </li>\n</ng-template>\n<ng-template #partial_SchedRowPanel mpPartialSchedRowPanel let-pp_panel=\"panel\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_panel.bag\">\n @for (a of pp_panel.actions; track a.key) {\n @if (a.color) {\n <label data-mps=\"scheduler\" [mpProps]=\"a.color.label\">\n <span data-mps=\"scheduler\">\n {{ a.color.text }}\n </span>\n <input data-mps=\"scheduler\" [mpProps]=\"a.color.input\" [value]=\"a.color.value\">\n </label>\n }\n @if (a.button) {\n <button data-mps=\"scheduler\" [mpProps]=\"a.button.bag\">\n {{ a.button.text }}\n </button>\n }\n }\n </div>\n</ng-template>\n<ng-template #partial_SchedEditor mpPartialSchedEditor let-pp_editor=\"editor\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.head\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.titleBag\">\n {{ pp_editor.title }}\n </div>\n <button data-mps=\"scheduler\" [mpProps]=\"pp_editor.close\">\n <span data-mps=\"scheduler\" aria-hidden=\"true\">\n \u00D7\n </span>\n </button>\n </div>\n <label data-mps=\"scheduler\" [mpProps]=\"pp_editor.field\">\n <span data-mps=\"scheduler\">\n {{ pp_editor.titleLabel }}\n </span>\n <input data-mps=\"scheduler\" [mpProps]=\"pp_editor.titleInput\" [value]=\"pp_editor.titleValue\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.titleError\">\n {{ pp_editor.titleErrorText }}\n </div>\n </label>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.startField\">\n <bs-datetime-picker [max]=\"pp_editor.startMax\" [disabled]=\"pp_editor.startDisabled\" [inputLabel]=\"pp_editor.startLabel\" [locale]=\"pp_editor.locale\" [firstDayOfWeek]=\"pp_editor.firstDayOfWeek\" [hour12]=\"pp_editor.hour12\" [step]=\"pp_editor.step\" [value]=\"pp_editor.start.value\" (valueChange)=\"pp_editor.start.set($event)\"></bs-datetime-picker>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.endField\">\n <bs-datetime-picker [min]=\"pp_editor.endMin\" [disabled]=\"pp_editor.endDisabled\" [invalid]=\"pp_editor.endInvalid\" [errorText]=\"pp_editor.endError\" [inputLabel]=\"pp_editor.endLabel\" [locale]=\"pp_editor.locale\" [firstDayOfWeek]=\"pp_editor.firstDayOfWeek\" [hour12]=\"pp_editor.hour12\" [step]=\"pp_editor.step\" [value]=\"pp_editor.end.value\" (valueChange)=\"pp_editor.end.set($event)\"></bs-datetime-picker>\n </div>\n <label data-mps=\"scheduler\" [mpProps]=\"pp_editor.field\">\n <span data-mps=\"scheduler\">\n {{ pp_editor.colorLabel }}\n </span>\n <input data-mps=\"scheduler\" [mpProps]=\"pp_editor.colorInput\" [value]=\"pp_editor.colorValue\">\n </label>\n <label data-mps=\"scheduler\" [mpProps]=\"pp_editor.inherit\">\n <input data-mps=\"scheduler\" [mpProps]=\"pp_editor.inheritInput\" [checked]=\"pp_editor.inheritChecked\">\n <span data-mps=\"scheduler\">\n {{ pp_editor.inheritLabel }}\n </span>\n </label>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.actions\">\n <button data-mps=\"scheduler\" [mpProps]=\"pp_editor.save.bag\">\n {{ pp_editor.save.text }}\n </button>\n @if (pp_editor.remove) {\n <button data-mps=\"scheduler\" [mpProps]=\"pp_editor.remove.bag\">\n {{ pp_editor.remove.text }}\n </button>\n }\n <button data-mps=\"scheduler\" [mpProps]=\"pp_editor.cancel.bag\">\n {{ pp_editor.cancel.text }}\n </button>\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: SchedTimeGridPartial, selector: "ng-template[mpPartialSchedTimeGrid]" }, { kind: "directive", type: SchedMonthPartial, selector: "ng-template[mpPartialSchedMonth]" }, { kind: "directive", type: SchedYearPartial, selector: "ng-template[mpPartialSchedYear]" }, { kind: "directive", type: SchedTimelinePartial, selector: "ng-template[mpPartialSchedTimeline]" }, { kind: "directive", type: SchedPopoverPartial, selector: "ng-template[mpPartialSchedPopover]" }, { kind: "directive", type: SchedPopoverEventPartial, selector: "ng-template[mpPartialSchedPopoverEvent]" }, { kind: "directive", type: SchedRowPanelPartial, selector: "ng-template[mpPartialSchedRowPanel]" }, { kind: "directive", type: SchedEditorPartial, selector: "ng-template[mpPartialSchedEditor]" }, { kind: "component", type: BsDatetimePickerComponent, selector: "bs-datetime-picker", inputs: ["value", "min", "max", "disableDateFn", "firstDayOfWeek", "locale", "hour12", "step", "defaultTime", "placeholder", "showClear", "disabled", "required", "invalid", "errorText", "inputLabel", "name", "labels", "calendarLabels"], outputs: ["valueChange", "valuechange", "openchange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
199
221
|
}
|
|
200
222
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSchedulerComponent, decorators: [{
|
|
201
223
|
type: Component,
|
|
202
|
-
args: [{ selector: 'bs-scheduler', imports: [BsForwardAriaDirective], changeDetection: ChangeDetectionStrategy.OnPush, schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "<mp-scheduler bsForwardAria #scheduler\n [attr.readonly]=\"readonlyAttr()\"\n [attr.event-editor]=\"eventEditorAttr()\"\n (event-selected)=\"onEventSelected($event)\"\n (event-dblclick)=\"forward(eventDblClick, $event)\"\n (event-create)=\"forward(eventCreate, $event)\"\n (event-update)=\"forward(eventUpdate, $event)\"\n (event-delete)=\"forward(eventDelete, $event)\"\n (date-click)=\"forward(dateClick, $event)\"\n (resource-create)=\"forward(resourceCreate, $event)\"\n (group-create)=\"forward(groupCreate, $event)\"\n (resource-update)=\"forward(resourceUpdate, $event)\"\n (resource-delete)=\"forward(resourceDelete, $event)\"\n (view-change)=\"onViewChange($event)\"\n (selection-change)=\"onSelectionChange($event)\"\n></mp-scheduler>\n", styles: [":host{display:block;height:100%}\n"] }]
|
|
203
|
-
}], propDecorators: {
|
|
224
|
+
args: [{ selector: 'bs-scheduler', imports: [MpPropsDirective, NgTemplateOutlet, SchedTimeGridPartial, SchedMonthPartial, SchedYearPartial, SchedTimelinePartial, SchedPopoverPartial, SchedPopoverEventPartial, SchedRowPanelPartial, SchedEditorPartial, BsDatetimePickerComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/scheduler/src/templates/scheduler.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"scheduler\" [mpProps]=\"p_view.container\">\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.header\">\n <nav data-mps=\"scheduler\" [mpProps]=\"p_view.nav\">\n <button data-mps=\"scheduler\" [mpProps]=\"p_view.prev\">\n \u2039\n </button>\n <button data-mps=\"scheduler\" [mpProps]=\"p_view.next\">\n \u203A\n </button>\n <button data-mps=\"scheduler\" [mpProps]=\"p_view.today\">\n {{ p_view.todayText }}\n </button>\n </nav>\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.title\">\n {{ p_view.titleText }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.switcher\">\n @for (v of p_view.views; track v.key) {\n <button data-mps=\"scheduler\" [mpProps]=\"v.bag\">\n {{ v.text }}\n </button>\n }\n </div>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.content\" [style]=\"p_view.contentStyle\">\n @if (p_view.timeGrid) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedTimeGrid\" [ngTemplateOutletContext]=\"{ grid: p_view.timeGrid }\" />\n }\n @if (p_view.month) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedMonth\" [ngTemplateOutletContext]=\"{ month: p_view.month }\" />\n }\n @if (p_view.year) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedYear\" [ngTemplateOutletContext]=\"{ year: p_view.year }\" />\n }\n @if (p_view.timeline) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedTimeline\" [ngTemplateOutletContext]=\"{ timeline: p_view.timeline }\" />\n }\n @if (p_view.timeline && p_view.timeline.addBar) {\n <div data-mps=\"scheduler\" [mpProps]=\"p_view.timeline.addBar.bag\">\n @for (b of p_view.timeline.addBar.buttons; track b.key) {\n <button data-mps=\"scheduler\" [mpProps]=\"b.bag\">\n {{ b.text }}\n </button>\n }\n </div>\n }\n </div>\n</div>\n<div data-mps=\"scheduler\" [mpProps]=\"p_view.kbdGrid\">\n {{ p_view.kbdGridText }}\n</div>\n<div data-mps=\"scheduler\" [mpProps]=\"p_view.kbdEvent\">\n {{ p_view.kbdEventText }}\n</div>\n@if (p_view.popover) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedPopover\" [ngTemplateOutletContext]=\"{ popover: p_view.popover }\" />\n}\n@if (p_view.rowPanel) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedRowPanel\" [ngTemplateOutletContext]=\"{ panel: p_view.rowPanel }\" />\n}\n@if (p_view.editor) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedEditor\" [ngTemplateOutletContext]=\"{ editor: p_view.editor }\" />\n}\n<div data-mps=\"scheduler\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n<ng-template #partial_SchedTimeGrid mpPartialSchedTimeGrid let-pp_grid=\"grid\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.headerRow\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.gutterSpace\"></div>\n @for (h of pp_grid.headers; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"h.nameBag\">\n {{ h.name }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"h.numberBag\">\n {{ h.number }}\n </div>\n @if (h.monthYearBag) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.monthYearBag\">\n {{ h.monthYear }}\n </div>\n }\n </div>\n }\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.grid\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.gutter\">\n @for (l of pp_grid.labels; track l.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"l.bag\">\n {{ l.text }}\n </div>\n }\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_grid.days\">\n @for (c of pp_grid.columns; track c.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"c.bag\">\n @for (slot of c.slots; track slot.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"slot.bag\"></div>\n }\n <div data-mps=\"scheduler\" [mpProps]=\"c.events\">\n @for (b of c.boxes; track b.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"b.bag\" [style]=\"b.style\">\n <div data-mps=\"scheduler\" [mpProps]=\"b.content\">\n <div data-mps=\"scheduler\" [mpProps]=\"b.titleBag\">\n {{ b.title }}\n </div>\n @if (b.timeBag) {\n <div data-mps=\"scheduler\" [mpProps]=\"b.timeBag\">\n {{ b.time }}\n </div>\n }\n </div>\n @for (h of b.handles; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n <span data-mps=\"scheduler\" [mpProps]=\"h.glyph\"></span>\n </div>\n }\n </div>\n }\n @for (p of c.previews; track p.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"p.bag\" [style]=\"p.style\"></div>\n }\n </div>\n @if (c.now) {\n <div data-mps=\"scheduler\" [mpProps]=\"c.now.bag\" [style]=\"c.now.style\"></div>\n }\n </div>\n }\n </div>\n </div>\n</ng-template>\n<ng-template #partial_SchedMonth mpPartialSchedMonth let-pp_month=\"month\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_month.headerRow\">\n @for (h of pp_month.headers; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n {{ h.text }}\n </div>\n }\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_month.grid\">\n @for (w of pp_month.weeks; track w.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"w.bag\">\n @for (d of w.days; track d.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"d.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"d.numberBag\">\n {{ d.number }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"d.events\">\n @for (e of d.items; track e.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"e.bag\" [style]=\"e.style\">\n {{ e.title }}\n </div>\n }\n @if (d.more) {\n <div data-mps=\"scheduler\" [mpProps]=\"d.more.bag\">\n {{ d.more.text }}\n </div>\n }\n </div>\n </div>\n }\n </div>\n }\n </div>\n</ng-template>\n<ng-template #partial_SchedYear mpPartialSchedYear let-pp_year=\"year\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_year.grid\">\n @for (m of pp_year.months; track m.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"m.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"m.headerBag\">\n {{ m.header }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"m.mini\">\n @for (h of m.dayHeaders; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n {{ h.text }}\n </div>\n }\n @for (d of m.days; track d.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"d.bag\">\n {{ d.text }}\n </div>\n }\n </div>\n </div>\n }\n </div>\n</ng-template>\n<ng-template #partial_SchedTimeline mpPartialSchedTimeline let-pp_timeline=\"timeline\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.timeline\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.head\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.dayRow\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.resourceHeader\">\n {{ pp_timeline.resourceHeaderText }}\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.resizer\"></div>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.dayHeaders\">\n @for (d of pp_timeline.days; track d.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"d.bag\" [style]=\"d.style\">\n <span data-mps=\"scheduler\" [mpProps]=\"d.labelBag\">\n {{ d.label }}\n </span>\n </div>\n }\n </div>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.timeRow\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.emptyHeader\"></div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.timeHeaders\">\n @for (t of pp_timeline.times; track t.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"t.bag\">\n {{ t.text }}\n </div>\n }\n </div>\n </div>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.body\">\n @for (r of pp_timeline.rows; track r.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"r.bag\" [style]=\"r.style\">\n <div data-mps=\"scheduler\" [mpProps]=\"r.cell\" [style]=\"r.cellStyle\">\n @if (r.menu) {\n <button data-mps=\"scheduler\" [mpProps]=\"r.menu.bag\" [style]=\"r.menu.style\">\n <span data-mps=\"scheduler\" [mpProps]=\"r.menu.glyph\">\n \u22EF\n </span>\n </button>\n }\n @if (r.toggle) {\n <button data-mps=\"scheduler\" [mpProps]=\"r.toggle.bag\">\n {{ r.toggle.text }}\n </button>\n }\n @if (r.rename) {\n <input data-mps=\"scheduler\" [mpProps]=\"r.rename.bag\" [value]=\"r.rename.value\">\n } @else {\n <span data-mps=\"scheduler\" [mpProps]=\"r.titleBag\">\n {{ r.title }}\n </span>\n }\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"r.slots\">\n @for (c of r.cells; track c.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"c.bag\"></div>\n }\n @if (r.events) {\n <div data-mps=\"scheduler\" [mpProps]=\"r.events\">\n @for (b of r.boxes; track b.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"b.bag\" [style]=\"b.style\">\n <div data-mps=\"scheduler\" [mpProps]=\"b.content\">\n <div data-mps=\"scheduler\" [mpProps]=\"b.titleBag\">\n {{ b.title }}\n </div>\n @if (b.timeBag) {\n <div data-mps=\"scheduler\" [mpProps]=\"b.timeBag\">\n {{ b.time }}\n </div>\n }\n </div>\n @for (h of b.handles; track h.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"h.bag\">\n <span data-mps=\"scheduler\" [mpProps]=\"h.glyph\"></span>\n </div>\n }\n </div>\n }\n @for (p of r.previews; track p.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"p.bag\" [style]=\"p.style\"></div>\n }\n </div>\n }\n </div>\n </div>\n }\n @if (pp_timeline.empty) {\n <div data-mps=\"scheduler\" [mpProps]=\"pp_timeline.empty.bag\">\n {{ pp_timeline.empty.text }}\n </div>\n }\n </div>\n </div>\n</ng-template>\n<ng-template #partial_SchedPopover mpPartialSchedPopover let-pp_popover=\"popover\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.head\">\n <div data-mps=\"scheduler\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.dateBag\">\n {{ pp_popover.date }}\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.countBag\">\n {{ pp_popover.count }}\n </div>\n </div>\n <button data-mps=\"scheduler\" [mpProps]=\"pp_popover.close\">\n <span data-mps=\"scheduler\" aria-hidden=\"true\">\n \u00D7\n </span>\n </button>\n </div>\n @if (pp_popover.empty) {\n <p data-mps=\"scheduler\" [mpProps]=\"pp_popover.empty.bag\">\n {{ pp_popover.empty.text }}\n </p>\n }\n @if (pp_popover.list) {\n <ul data-mps=\"scheduler\" [mpProps]=\"pp_popover.list\">\n @for (e of pp_popover.events; track e.key) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedPopoverEvent\" [ngTemplateOutletContext]=\"{ event: e }\" />\n }\n </ul>\n }\n @for (g of pp_popover.groups; track g.key) {\n <div data-mps=\"scheduler\" [mpProps]=\"g.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"g.headingBag\">\n {{ g.heading }}\n </div>\n <ul data-mps=\"scheduler\" [mpProps]=\"g.list\">\n @for (e of g.events; track e.key) {\n <ng-container [ngTemplateOutlet]=\"partial_SchedPopoverEvent\" [ngTemplateOutletContext]=\"{ event: e }\" />\n }\n </ul>\n </div>\n }\n @if (pp_popover.resource) {\n <label data-mps=\"scheduler\" [mpProps]=\"pp_popover.resource.bag\">\n <span data-mps=\"scheduler\" [mpProps]=\"pp_popover.resource.labelBag\">\n {{ pp_popover.resource.label }}\n </span>\n <select data-mps=\"scheduler\" [mpProps]=\"pp_popover.resource.select\">\n @for (o of pp_popover.resource.options; track o.key) {\n <option data-mps=\"scheduler\" [attr.value]=\"o.value\">\n {{ o.text }}\n </option>\n }\n </select>\n </label>\n }\n <div data-mps=\"scheduler\" [mpProps]=\"pp_popover.actions\">\n @if (pp_popover.create) {\n <button data-mps=\"scheduler\" [mpProps]=\"pp_popover.create.bag\">\n {{ pp_popover.create.text }}\n </button>\n }\n <button data-mps=\"scheduler\" [mpProps]=\"pp_popover.drill.bag\">\n {{ pp_popover.drill.text }}\n </button>\n </div>\n </div>\n</ng-template>\n<ng-template #partial_SchedPopoverEvent mpPartialSchedPopoverEvent let-pp_event=\"event\">\n <li data-mps=\"scheduler\" [mpProps]=\"pp_event.row\">\n <button data-mps=\"scheduler\" [mpProps]=\"pp_event.bag\">\n <span data-mps=\"scheduler\" [mpProps]=\"pp_event.swatch\" [style]=\"pp_event.swatchStyle\"></span>\n <span data-mps=\"scheduler\" [mpProps]=\"pp_event.titleBag\">\n {{ pp_event.title }}\n </span>\n </button>\n @if (pp_event.remove) {\n <button data-mps=\"scheduler\" [mpProps]=\"pp_event.remove\">\n <span data-mps=\"scheduler\" aria-hidden=\"true\">\n \u00D7\n </span>\n </button>\n }\n </li>\n</ng-template>\n<ng-template #partial_SchedRowPanel mpPartialSchedRowPanel let-pp_panel=\"panel\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_panel.bag\">\n @for (a of pp_panel.actions; track a.key) {\n @if (a.color) {\n <label data-mps=\"scheduler\" [mpProps]=\"a.color.label\">\n <span data-mps=\"scheduler\">\n {{ a.color.text }}\n </span>\n <input data-mps=\"scheduler\" [mpProps]=\"a.color.input\" [value]=\"a.color.value\">\n </label>\n }\n @if (a.button) {\n <button data-mps=\"scheduler\" [mpProps]=\"a.button.bag\">\n {{ a.button.text }}\n </button>\n }\n }\n </div>\n</ng-template>\n<ng-template #partial_SchedEditor mpPartialSchedEditor let-pp_editor=\"editor\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.bag\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.head\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.titleBag\">\n {{ pp_editor.title }}\n </div>\n <button data-mps=\"scheduler\" [mpProps]=\"pp_editor.close\">\n <span data-mps=\"scheduler\" aria-hidden=\"true\">\n \u00D7\n </span>\n </button>\n </div>\n <label data-mps=\"scheduler\" [mpProps]=\"pp_editor.field\">\n <span data-mps=\"scheduler\">\n {{ pp_editor.titleLabel }}\n </span>\n <input data-mps=\"scheduler\" [mpProps]=\"pp_editor.titleInput\" [value]=\"pp_editor.titleValue\">\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.titleError\">\n {{ pp_editor.titleErrorText }}\n </div>\n </label>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.startField\">\n <bs-datetime-picker [max]=\"pp_editor.startMax\" [disabled]=\"pp_editor.startDisabled\" [inputLabel]=\"pp_editor.startLabel\" [locale]=\"pp_editor.locale\" [firstDayOfWeek]=\"pp_editor.firstDayOfWeek\" [hour12]=\"pp_editor.hour12\" [step]=\"pp_editor.step\" [value]=\"pp_editor.start.value\" (valueChange)=\"pp_editor.start.set($event)\"></bs-datetime-picker>\n </div>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.endField\">\n <bs-datetime-picker [min]=\"pp_editor.endMin\" [disabled]=\"pp_editor.endDisabled\" [invalid]=\"pp_editor.endInvalid\" [errorText]=\"pp_editor.endError\" [inputLabel]=\"pp_editor.endLabel\" [locale]=\"pp_editor.locale\" [firstDayOfWeek]=\"pp_editor.firstDayOfWeek\" [hour12]=\"pp_editor.hour12\" [step]=\"pp_editor.step\" [value]=\"pp_editor.end.value\" (valueChange)=\"pp_editor.end.set($event)\"></bs-datetime-picker>\n </div>\n <label data-mps=\"scheduler\" [mpProps]=\"pp_editor.field\">\n <span data-mps=\"scheduler\">\n {{ pp_editor.colorLabel }}\n </span>\n <input data-mps=\"scheduler\" [mpProps]=\"pp_editor.colorInput\" [value]=\"pp_editor.colorValue\">\n </label>\n <label data-mps=\"scheduler\" [mpProps]=\"pp_editor.inherit\">\n <input data-mps=\"scheduler\" [mpProps]=\"pp_editor.inheritInput\" [checked]=\"pp_editor.inheritChecked\">\n <span data-mps=\"scheduler\">\n {{ pp_editor.inheritLabel }}\n </span>\n </label>\n <div data-mps=\"scheduler\" [mpProps]=\"pp_editor.actions\">\n <button data-mps=\"scheduler\" [mpProps]=\"pp_editor.save.bag\">\n {{ pp_editor.save.text }}\n </button>\n @if (pp_editor.remove) {\n <button data-mps=\"scheduler\" [mpProps]=\"pp_editor.remove.bag\">\n {{ pp_editor.remove.text }}\n </button>\n }\n <button data-mps=\"scheduler\" [mpProps]=\"pp_editor.cancel.bag\">\n {{ pp_editor.cancel.text }}\n </button>\n </div>\n </div>\n</ng-template>\n" }]
|
|
225
|
+
}], ctorParameters: () => [], propDecorators: { events: [{ type: i0.Input, args: [{ isSignal: true, alias: "events", required: false }] }], resources: [{ type: i0.Input, args: [{ isSignal: true, alias: "resources", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], eventEditor: [{ type: i0.Input, args: [{ isSignal: true, alias: "eventEditor", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], slotDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "slotDuration", required: false }] }], timeFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeFormat", required: false }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: false }] }, { type: i0.Output, args: ["viewChange"] }], date: [{ type: i0.Input, args: [{ isSignal: true, alias: "date", required: false }] }, { type: i0.Output, args: ["dateChange"] }], selectedEvent: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedEvent", required: false }] }, { type: i0.Output, args: ["selectedEventChange"] }], selectedRange: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedRange", required: false }] }, { type: i0.Output, args: ["selectedRangeChange"] }], eventselected: [{ type: i0.Output, args: ["eventselected"] }], eventdblclick: [{ type: i0.Output, args: ["eventdblclick"] }], eventcreate: [{ type: i0.Output, args: ["eventcreate"] }], eventupdate: [{ type: i0.Output, args: ["eventupdate"] }], eventdelete: [{ type: i0.Output, args: ["eventdelete"] }], dateclick: [{ type: i0.Output, args: ["dateclick"] }], selectionchanged: [{ type: i0.Output, args: ["selectionchanged"] }], resourcecreate: [{ type: i0.Output, args: ["resourcecreate"] }], groupcreate: [{ type: i0.Output, args: ["groupcreate"] }], resourceupdate: [{ type: i0.Output, args: ["resourceupdate"] }], resourcedelete: [{ type: i0.Output, args: ["resourcedelete"] }], viewchange: [{ type: i0.Output, args: ["viewchange"] }], datechange: [{ type: i0.Output, args: ["datechange"] }], selectedeventchange: [{ type: i0.Output, args: ["selectedeventchange"] }], selectedrangechange: [{ type: i0.Output, args: ["selectedrangechange"] }] } });
|
|
226
|
+
|
|
227
|
+
// GENERATED from the scheduler manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
228
|
+
|
|
229
|
+
// The scheduler is generated from @mintplayer/ui-core/scheduler (PRD #437 D10).
|
|
204
230
|
|
|
205
231
|
/**
|
|
206
232
|
* Generated bundle index. Do not edit.
|