@mintplayer/ng-bootstrap 22.28.0 → 22.30.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 +157 -824
- 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 +283 -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 +222 -422
- 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 +124 -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,208 +1,93 @@
|
|
|
1
|
+
import * as _mintplayer_ui_core_scheduler from '@mintplayer/ui-core/scheduler';
|
|
2
|
+
import { SchedulerEvent, ViewType, TimeRange, SchedulerEventSelectedDetail, SchedulerEventDblClickDetail, SchedulerEventCreateDetail, SchedulerEventUpdateDetail, SchedulerEventDeleteDetail, SchedulerDateClickDetail, SchedulerSelectionChangeDetail, SchedulerResourceCreateDetail, SchedulerGroupCreateDetail, SchedulerResourceUpdateDetail, SchedulerResourceDeleteDetail, SchedulerMethods } from '@mintplayer/ui-core/scheduler';
|
|
3
|
+
export { DisplayMode, DragState, EventDetail, PreviewEvent, Resource, ResourceGroup, SchedulerDateClickDetail, SchedulerEvent, SchedulerEventCreateDetail, SchedulerEventDblClickDetail, SchedulerEventDeleteDetail, SchedulerEventPart, SchedulerEventSelectedDetail, SchedulerEventUpdateDetail, SchedulerGroupCreateDetail, SchedulerMessages, SchedulerOptions, SchedulerPermissions, SchedulerResourceCreateDetail, SchedulerResourceDeleteDetail, SchedulerResourceUpdateDetail, SchedulerSelectionChangeDetail, SchedulerState, SchedulerStateManager, TimeRange, TimeSlot, ViewType, createInitialState } from '@mintplayer/ui-core/scheduler';
|
|
4
|
+
import * as _mintplayer_ui_core_scheduler_core from '@mintplayer/ui-core/scheduler-core';
|
|
5
|
+
export { generateEventId, generateGroupId, generateResourceId } from '@mintplayer/ui-core/scheduler-core';
|
|
1
6
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { SchedulerEvent, Resource, ResourceGroup, SchedulerOptions, ViewType } from '@mintplayer/web-components/scheduler-core';
|
|
4
|
-
export { PreviewEvent, Resource, ResourceGroup, SchedulerEvent, SchedulerEventPart, SchedulerOptions, TimeSlot, ViewType, generateEventId, generateGroupId, generateResourceId } from '@mintplayer/web-components/scheduler-core';
|
|
7
|
+
import { ElementRef } from '@angular/core';
|
|
5
8
|
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* `
|
|
10
|
+
* A calendar and resource scheduler (#437): year, month, week, day and timeline views over `events`
|
|
11
|
+
* and `resources`. Drag (or the keyboard) creates, moves and resizes; every change is a request
|
|
12
|
+
* (`eventCreate`, `eventUpdate`, `eventDelete`, `resource*`) the consumer applies to its own data.
|
|
13
|
+
* Two-way: `view`, `date`, `selectedEvent`, `selectedRange`. Strings come from `options.messages`.
|
|
10
14
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Event create *request* event. Per PRD scheduler-controlled-selection, the
|
|
17
|
-
* `mp-scheduler` web-component no longer constructs an event itself on drag-end
|
|
18
|
-
* or `Enter` — it emits the selected range and the consumer decides whether
|
|
19
|
-
* to push a `SchedulerEvent` into its `[events]` input.
|
|
20
|
-
*/
|
|
21
|
-
interface SchedulerEventCreateEvent {
|
|
22
|
-
/** The selected time range. */
|
|
23
|
-
range: {
|
|
24
|
-
start: Date;
|
|
25
|
-
end: Date;
|
|
26
|
-
};
|
|
27
|
-
/** Resource the request targets (timeline view only). */
|
|
28
|
-
resourceId?: string;
|
|
29
|
-
/** View that produced the request. */
|
|
30
|
-
view: ViewType;
|
|
31
|
-
originalEvent?: Event;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Selection-change event. Fires on every transition — including the
|
|
35
|
-
* transition to an empty selection. `selectedEvent` and `range` are
|
|
36
|
-
* independent dimensions of the selection state.
|
|
37
|
-
*/
|
|
38
|
-
interface SchedulerSelectionChangeEvent {
|
|
39
|
-
selectedEvent: SchedulerEvent | null;
|
|
40
|
-
range: {
|
|
41
|
-
start: Date;
|
|
42
|
-
end: Date;
|
|
43
|
-
} | null;
|
|
44
|
-
view: ViewType;
|
|
45
|
-
resourceId?: string;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Event update event detail
|
|
49
|
-
*/
|
|
50
|
-
interface SchedulerEventUpdateEvent {
|
|
51
|
-
event: SchedulerEvent;
|
|
52
|
-
oldEvent: SchedulerEvent;
|
|
53
|
-
originalEvent?: Event;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Event delete event detail
|
|
57
|
-
*/
|
|
58
|
-
interface SchedulerEventDeleteEvent {
|
|
59
|
-
event: SchedulerEvent;
|
|
60
|
-
originalEvent?: Event;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Date click event detail
|
|
64
|
-
*/
|
|
65
|
-
interface DateClickEvent {
|
|
66
|
-
date: Date;
|
|
67
|
-
resource?: Resource;
|
|
68
|
-
originalEvent?: Event;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Resource/group creation *request*. Like `eventCreate`, the scheduler never
|
|
72
|
-
* edits its own `[resources]` — the consumer decides the id, title and where
|
|
73
|
-
* in the tree the new item goes. `parentId` names the group to insert into and
|
|
74
|
-
* is absent for a root-level item.
|
|
75
|
-
*/
|
|
76
|
-
interface SchedulerResourceCreateEvent {
|
|
77
|
-
parentId?: string;
|
|
78
|
-
view: ViewType;
|
|
79
|
-
originalEvent?: Event;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Resource/group mutation request. `changes` carries only the fields the
|
|
83
|
-
* scheduler is asking to change, so a handler can apply them without diffing.
|
|
84
|
-
*/
|
|
85
|
-
interface SchedulerResourceUpdateEvent {
|
|
86
|
-
resource: Resource | ResourceGroup;
|
|
87
|
-
changes: Partial<Resource & ResourceGroup>;
|
|
88
|
-
originalEvent?: Event;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Resource/group deletion request.
|
|
92
|
-
*/
|
|
93
|
-
interface SchedulerResourceDeleteEvent {
|
|
94
|
-
resource: Resource | ResourceGroup;
|
|
95
|
-
originalEvent?: Event;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Angular wrapper for the mp-scheduler web component using signals
|
|
99
|
-
*/
|
|
100
|
-
declare class BsSchedulerComponent implements AfterViewInit {
|
|
101
|
-
private readonly injector;
|
|
102
|
-
private readonly schedulerRef;
|
|
15
|
+
declare class BsSchedulerComponent {
|
|
16
|
+
#private;
|
|
17
|
+
/** The host element. */
|
|
18
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
103
19
|
readonly events: _angular_core.InputSignal<SchedulerEvent[]>;
|
|
104
|
-
readonly resources: _angular_core.InputSignal<(Resource | ResourceGroup)[]>;
|
|
105
|
-
readonly options: _angular_core.InputSignal<Partial<SchedulerOptions
|
|
106
|
-
|
|
107
|
-
* Coarse read-only switch — the one-line way to make the whole scheduler
|
|
108
|
-
* look-but-don't-touch. It maps onto the WC's `readonly` attribute rather
|
|
109
|
-
* than a property so plain-HTML and SSR consumers get the same knob;
|
|
110
|
-
* `[options].permissions` still refines individual capabilities beneath it.
|
|
111
|
-
* Aliased because `readonly` cannot name a class member here.
|
|
112
|
-
*/
|
|
113
|
-
readonly isReadonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
114
|
-
protected readonly readonlyAttr: _angular_core.Signal<"" | null>;
|
|
115
|
-
/**
|
|
116
|
-
* The WC's built-in event editor (double-click / right-click / F2 on an
|
|
117
|
-
* event), ON by default. Set false when the app ships its own editor —
|
|
118
|
-
* `(eventDblClick)` keeps firing either way. Rendered as the `event-editor`
|
|
119
|
-
* attribute, whose literal "false" is the off switch, so the binding can be
|
|
120
|
-
* unconditional.
|
|
121
|
-
*/
|
|
20
|
+
readonly resources: _angular_core.InputSignal<(_mintplayer_ui_core_scheduler_core.Resource | _mintplayer_ui_core_scheduler_core.ResourceGroup)[]>;
|
|
21
|
+
readonly options: _angular_core.InputSignal<Partial<_mintplayer_ui_core_scheduler_core.SchedulerOptions> | null>;
|
|
22
|
+
readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
122
23
|
readonly eventEditor: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
123
|
-
|
|
124
|
-
readonly
|
|
125
|
-
readonly
|
|
24
|
+
readonly locale: _angular_core.InputSignal<string | null>;
|
|
25
|
+
readonly firstDayOfWeek: _angular_core.InputSignalWithTransform<number | null, unknown>;
|
|
26
|
+
readonly slotDuration: _angular_core.InputSignalWithTransform<number | null, unknown>;
|
|
27
|
+
readonly timeFormat: _angular_core.InputSignal<"12h" | "24h" | null>;
|
|
28
|
+
readonly view: _angular_core.ModelSignal<ViewType | null>;
|
|
29
|
+
readonly date: _angular_core.ModelSignal<Date | null>;
|
|
126
30
|
readonly selectedEvent: _angular_core.ModelSignal<SchedulerEvent | null>;
|
|
127
|
-
readonly selectedRange: _angular_core.ModelSignal<
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
readonly
|
|
132
|
-
|
|
133
|
-
readonly
|
|
134
|
-
|
|
135
|
-
readonly
|
|
136
|
-
|
|
137
|
-
readonly
|
|
138
|
-
|
|
139
|
-
readonly
|
|
140
|
-
|
|
141
|
-
readonly
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
today():
|
|
169
|
-
/**
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
|
|
185
|
-
*/
|
|
186
|
-
addEvent(event: SchedulerEvent): void;
|
|
187
|
-
/**
|
|
188
|
-
* Update an event
|
|
189
|
-
*/
|
|
190
|
-
updateEvent(event: SchedulerEvent): void;
|
|
191
|
-
/**
|
|
192
|
-
* Remove an event
|
|
193
|
-
*/
|
|
194
|
-
removeEvent(eventId: string): void;
|
|
195
|
-
/**
|
|
196
|
-
* Get an event by ID
|
|
197
|
-
*/
|
|
198
|
-
getEventById(eventId: string): SchedulerEvent | null;
|
|
199
|
-
/**
|
|
200
|
-
* Refetch/refresh events
|
|
201
|
-
*/
|
|
202
|
-
refetchEvents(): void;
|
|
31
|
+
readonly selectedRange: _angular_core.ModelSignal<TimeRange | null>;
|
|
32
|
+
/** An event was selected by click, tap or focus. */
|
|
33
|
+
readonly eventselected: _angular_core.OutputEmitterRef<SchedulerEventSelectedDetail>;
|
|
34
|
+
/** An event was activated twice (double click or double tap). */
|
|
35
|
+
readonly eventdblclick: _angular_core.OutputEmitterRef<SchedulerEventDblClickDetail>;
|
|
36
|
+
/** A request to create an event over a range (drag, Enter, the popover). */
|
|
37
|
+
readonly eventcreate: _angular_core.OutputEmitterRef<SchedulerEventCreateDetail>;
|
|
38
|
+
/** A request to apply a move, resize or editor change. */
|
|
39
|
+
readonly eventupdate: _angular_core.OutputEmitterRef<SchedulerEventUpdateDetail>;
|
|
40
|
+
/** A request to delete an event. */
|
|
41
|
+
readonly eventdelete: _angular_core.OutputEmitterRef<SchedulerEventDeleteDetail>;
|
|
42
|
+
/** A day of the month or year view was clicked. */
|
|
43
|
+
readonly dateclick: _angular_core.OutputEmitterRef<SchedulerDateClickDetail>;
|
|
44
|
+
/** The selected event or range changed. */
|
|
45
|
+
readonly selectionchanged: _angular_core.OutputEmitterRef<SchedulerSelectionChangeDetail>;
|
|
46
|
+
/** A request to add a resource (optionally under a group). */
|
|
47
|
+
readonly resourcecreate: _angular_core.OutputEmitterRef<SchedulerResourceCreateDetail>;
|
|
48
|
+
/** A request to add a group (optionally under a group). */
|
|
49
|
+
readonly groupcreate: _angular_core.OutputEmitterRef<SchedulerGroupCreateDetail>;
|
|
50
|
+
/** A request to rename or recolour a resource. */
|
|
51
|
+
readonly resourceupdate: _angular_core.OutputEmitterRef<SchedulerResourceUpdateDetail>;
|
|
52
|
+
/** A request to delete a resource. */
|
|
53
|
+
readonly resourcedelete: _angular_core.OutputEmitterRef<SchedulerResourceDeleteDetail>;
|
|
54
|
+
/** The view, after it changed. */
|
|
55
|
+
readonly viewchange: _angular_core.OutputEmitterRef<ViewType>;
|
|
56
|
+
/** The shown date, after it changed. */
|
|
57
|
+
readonly datechange: _angular_core.OutputEmitterRef<Date>;
|
|
58
|
+
/** The selected event, after it changed. */
|
|
59
|
+
readonly selectedeventchange: _angular_core.OutputEmitterRef<SchedulerEvent | null>;
|
|
60
|
+
/** The range selection, after it changed. */
|
|
61
|
+
readonly selectedrangechange: _angular_core.OutputEmitterRef<TimeRange | null>;
|
|
62
|
+
/** The template's props. */
|
|
63
|
+
protected readonly props: _angular_core.Signal<{
|
|
64
|
+
view: _mintplayer_ui_core_scheduler.SchedulerView;
|
|
65
|
+
}>;
|
|
66
|
+
constructor();
|
|
67
|
+
/** The next period. */
|
|
68
|
+
next(...args: Parameters<SchedulerMethods['next']>): ReturnType<SchedulerMethods['next']>;
|
|
69
|
+
/** The previous period. */
|
|
70
|
+
prev(...args: Parameters<SchedulerMethods['prev']>): ReturnType<SchedulerMethods['prev']>;
|
|
71
|
+
/** The period containing today. */
|
|
72
|
+
today(...args: Parameters<SchedulerMethods['today']>): ReturnType<SchedulerMethods['today']>;
|
|
73
|
+
/** The period containing a date. */
|
|
74
|
+
gotoDate(...args: Parameters<SchedulerMethods['gotoDate']>): ReturnType<SchedulerMethods['gotoDate']>;
|
|
75
|
+
/** Switch the view, and announce it. */
|
|
76
|
+
changeView(...args: Parameters<SchedulerMethods['changeView']>): ReturnType<SchedulerMethods['changeView']>;
|
|
77
|
+
/** Clear the range selection. */
|
|
78
|
+
clearSelection(...args: Parameters<SchedulerMethods['clearSelection']>): ReturnType<SchedulerMethods['clearSelection']>;
|
|
79
|
+
/** Add an event to the scheduler's own copy, and announce it. */
|
|
80
|
+
addEvent(...args: Parameters<SchedulerMethods['addEvent']>): ReturnType<SchedulerMethods['addEvent']>;
|
|
81
|
+
/** Replace an event in the scheduler's own copy, and announce it. */
|
|
82
|
+
updateEvent(...args: Parameters<SchedulerMethods['updateEvent']>): ReturnType<SchedulerMethods['updateEvent']>;
|
|
83
|
+
/** Remove an event from the scheduler's own copy, and announce it. */
|
|
84
|
+
removeEvent(...args: Parameters<SchedulerMethods['removeEvent']>): ReturnType<SchedulerMethods['removeEvent']>;
|
|
85
|
+
/** An event by id, or null. */
|
|
86
|
+
getEventById(...args: Parameters<SchedulerMethods['getEventById']>): ReturnType<SchedulerMethods['getEventById']>;
|
|
87
|
+
/** Re-render from the current events. */
|
|
88
|
+
refetchEvents(...args: Parameters<SchedulerMethods['refetchEvents']>): ReturnType<SchedulerMethods['refetchEvents']>;
|
|
203
89
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSchedulerComponent, never>;
|
|
204
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSchedulerComponent, "bs-scheduler", never, { "events": { "alias": "events"; "required": false; "isSignal": true; }; "resources": { "alias": "resources"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "
|
|
90
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSchedulerComponent, "bs-scheduler", never, { "events": { "alias": "events"; "required": false; "isSignal": true; }; "resources": { "alias": "resources"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "eventEditor": { "alias": "eventEditor"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "slotDuration": { "alias": "slotDuration"; "required": false; "isSignal": true; }; "timeFormat": { "alias": "timeFormat"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "selectedEvent": { "alias": "selectedEvent"; "required": false; "isSignal": true; }; "selectedRange": { "alias": "selectedRange"; "required": false; "isSignal": true; }; }, { "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"; }, never, never, true, never>;
|
|
205
91
|
}
|
|
206
92
|
|
|
207
93
|
export { BsSchedulerComponent };
|
|
208
|
-
export type { DateClickEvent, SchedulerEventCreateEvent, SchedulerEventDeleteEvent, SchedulerEventSelectedEvent, SchedulerEventUpdateEvent, SchedulerResourceCreateEvent, SchedulerResourceDeleteEvent, SchedulerResourceUpdateEvent, SchedulerSelectionChangeEvent };
|
|
@@ -1,78 +1,138 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnDestroy, ElementRef } from '@angular/core';
|
|
3
|
-
import
|
|
2
|
+
import { Signal, OnDestroy, ElementRef, TemplateRef } from '@angular/core';
|
|
3
|
+
import * as _mintplayer_ui_core_select from '@mintplayer/ui-core/select';
|
|
4
|
+
import { SelectChangeEventDetail, SelectOption } from '@mintplayer/ui-core/select';
|
|
5
|
+
export { SelectChangeEventDetail, SelectItem, SelectOptgroup, SelectOption, SelectSize } from '@mintplayer/ui-core/select';
|
|
4
6
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
7
|
import * as i2 from '@mintplayer/ng-bootstrap/a11y';
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The `ControlValueAccessor` of `bs-select` (a host directive of the generated
|
|
11
|
+
* component, see `select.angular.ts`). The select's value space is strings; an
|
|
12
|
+
* `<option [ngValue]>` maps any value (an object, compared with `compareWith`)
|
|
13
|
+
* to a stable `"<id>: <value>"` string, the way Angular's own
|
|
14
|
+
* `SelectControlValueAccessor` does.
|
|
15
|
+
*/
|
|
9
16
|
declare class BsSelectValueAccessor implements ControlValueAccessor {
|
|
10
|
-
private
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
private readonly element;
|
|
18
|
+
readonly compareWith: _angular_core.InputSignal<(value1: unknown, value2: unknown) => boolean>;
|
|
19
|
+
/** A form control drives the select: its `viewValue` wins over the `value` input. */
|
|
20
|
+
readonly bound: _angular_core.WritableSignal<boolean>;
|
|
21
|
+
/** The form control's value, as the select's string. */
|
|
22
|
+
readonly viewValue: _angular_core.WritableSignal<string | null>;
|
|
23
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
24
|
+
/** The string the select shows, from the form control or the `value` input (set by `extendInputs`). */
|
|
25
|
+
selected: Signal<string | null>;
|
|
26
|
+
private value;
|
|
27
|
+
private readonly optionMap;
|
|
28
|
+
private idCounter;
|
|
29
|
+
private onChange;
|
|
14
30
|
onTouched: () => void;
|
|
31
|
+
registerOnChange(fn: (value: unknown) => void): void;
|
|
15
32
|
registerOnTouched(fn: () => void): void;
|
|
16
|
-
registerOnChange(fn: (p: any) => void): void;
|
|
17
33
|
setDisabledState(isDisabled: boolean): void;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
value: any;
|
|
21
|
-
optionMap: Map<string, any>;
|
|
22
|
-
idCounter: number;
|
|
23
|
-
private compareWithFunction;
|
|
24
|
-
readonly compareWith: _angular_core.InputSignal<((value1: any, value2: any) => boolean) | undefined>;
|
|
25
|
-
constructor();
|
|
26
|
-
buildValueString(id: string | null, value: any): string;
|
|
27
|
-
/**
|
|
28
|
-
* The id half of a `"<id>: <value>"` string, or null when there is no string
|
|
29
|
-
* to read.
|
|
30
|
-
*
|
|
31
|
-
* Null is a real case, not defensive padding: `<option value="">` is the
|
|
32
|
-
* idiomatic way to write a placeholder ("— none —", "Browser locale"), and
|
|
33
|
-
* `mp-select` normalizes an empty selection to `null` on its host. The host is
|
|
34
|
-
* what `hostOnChange` reads, because `mp-select` re-dispatches a composed
|
|
35
|
-
* `change` whose target is the element rather than the inner `<select>`. So
|
|
36
|
-
* selecting a placeholder threw `can't access property "split", valueString is
|
|
37
|
-
* null` and the model never updated — the control looked frozen on that option.
|
|
38
|
-
*/
|
|
39
|
-
extractId(valueString: string | null | undefined): string | null;
|
|
40
|
-
writeValue(value: any): void;
|
|
34
|
+
writeValue(value: unknown): void;
|
|
35
|
+
onNativeChange(event: Event): void;
|
|
41
36
|
registerOption(): string;
|
|
37
|
+
setOption(id: string, value: unknown): void;
|
|
38
|
+
removeOption(id: string): void;
|
|
39
|
+
/** Re-select after an option's plain value changed. */
|
|
40
|
+
refresh(): void;
|
|
41
|
+
buildValueString(id: string | null, value: unknown): string;
|
|
42
42
|
/** The id of the registered option whose value matches, or null when none does. */
|
|
43
|
-
getOptionId
|
|
44
|
-
|
|
43
|
+
private getOptionId;
|
|
44
|
+
/**
|
|
45
|
+
* An empty selection (a `<option value="">` placeholder) reaches the model as
|
|
46
|
+
* `null`; a plain `value` option is never registered and passes its string.
|
|
47
|
+
*/
|
|
48
|
+
private getOptionValue;
|
|
45
49
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSelectValueAccessor, never>;
|
|
46
50
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsSelectValueAccessor, "bs-select", never, { "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
47
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Every `<option>` in a template that imports it: inside a `bs-select`, an
|
|
54
|
+
* `[ngValue]` (any value) or a `[value]` (a string). It writes the `selected`
|
|
55
|
+
* attribute for the selected option, so the server-rendered page shows the
|
|
56
|
+
* selection with JavaScript off.
|
|
57
|
+
*/
|
|
48
58
|
declare class BsSelectOption implements OnDestroy {
|
|
49
|
-
private element;
|
|
50
|
-
private renderer;
|
|
51
|
-
private select;
|
|
59
|
+
private readonly element;
|
|
60
|
+
private readonly renderer;
|
|
61
|
+
private readonly select;
|
|
62
|
+
private readonly id;
|
|
63
|
+
readonly ngValue: _angular_core.InputSignal<unknown>;
|
|
64
|
+
readonly value: _angular_core.InputSignal<string | undefined>;
|
|
65
|
+
private readonly valueString;
|
|
66
|
+
protected readonly isSelected: Signal<boolean>;
|
|
52
67
|
constructor();
|
|
53
|
-
|
|
54
|
-
readonly ngValue: _angular_core.InputSignal<any>;
|
|
55
|
-
readonly value: _angular_core.InputSignal<any>;
|
|
56
|
-
setElementValue(value: string): void;
|
|
68
|
+
private setValue;
|
|
57
69
|
ngOnDestroy(): void;
|
|
58
70
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSelectOption, never>;
|
|
59
71
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsSelectOption, "option", never, { "ngValue": { "alias": "ngValue"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
60
72
|
}
|
|
61
73
|
|
|
74
|
+
/** The `option` slot of `<bs-select>`: `<ng-template bsSelectOption>` or `*bsSelectOption`. */
|
|
75
|
+
declare class BsSelectOptionDirective {
|
|
76
|
+
readonly templateRef: TemplateRef<{
|
|
77
|
+
option: SelectOption;
|
|
78
|
+
} & {
|
|
79
|
+
$implicit: {
|
|
80
|
+
option: SelectOption;
|
|
81
|
+
};
|
|
82
|
+
}>;
|
|
83
|
+
static ngTemplateContextGuard(_dir: BsSelectOptionDirective, ctx: unknown): ctx is {
|
|
84
|
+
option: SelectOption;
|
|
85
|
+
} & {
|
|
86
|
+
$implicit: {
|
|
87
|
+
option: SelectOption;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSelectOptionDirective, never>;
|
|
91
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsSelectOptionDirective, "[bsSelectOption]", never, {}, {}, never, never, true, never>;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Bootstrap `.form-select` around a native `<select>` (#437): it works and submits with JavaScript off.
|
|
95
|
+
*
|
|
96
|
+
* Give it `options`, or put `<option>` / `<optgroup>` children inside. `value` (or `values` when
|
|
97
|
+
* `multiple`) is two-way. An `aria-label` on the component names the select; so does `inputLabel`.
|
|
98
|
+
* The `option` slot renders rich option content where the engine supports customizable select.
|
|
99
|
+
*/
|
|
62
100
|
declare class BsSelectComponent {
|
|
101
|
+
#private;
|
|
102
|
+
/** The host element. */
|
|
103
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
104
|
+
readonly size: _angular_core.InputSignal<_mintplayer_ui_core_select.SelectSize>;
|
|
105
|
+
readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
106
|
+
readonly numberVisible: _angular_core.InputSignalWithTransform<number | null | undefined, unknown>;
|
|
107
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
108
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
109
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
110
|
+
readonly errorText: _angular_core.InputSignal<string | null | undefined>;
|
|
111
|
+
readonly name: _angular_core.InputSignal<string | null | undefined>;
|
|
112
|
+
readonly inputLabel: _angular_core.InputSignal<string | null | undefined>;
|
|
113
|
+
readonly value: _angular_core.ModelSignal<string | null>;
|
|
114
|
+
readonly values: _angular_core.ModelSignal<string[]>;
|
|
115
|
+
readonly options: _angular_core.InputSignal<_mintplayer_ui_core_select.SelectItem[] | null | undefined>;
|
|
116
|
+
/** The user picked: the value, and every value of a multiple select. */
|
|
117
|
+
readonly valuechange: _angular_core.OutputEmitterRef<SelectChangeEventDetail>;
|
|
118
|
+
private readonly optionSlot;
|
|
119
|
+
/** The template's named slots. */
|
|
120
|
+
protected readonly slots: _angular_core.Signal<{
|
|
121
|
+
option: TemplateRef<{
|
|
122
|
+
option: SelectOption;
|
|
123
|
+
} & {
|
|
124
|
+
$implicit: {
|
|
125
|
+
option: SelectOption;
|
|
126
|
+
};
|
|
127
|
+
}> | undefined;
|
|
128
|
+
}>;
|
|
129
|
+
/** The template's props. */
|
|
130
|
+
protected readonly props: _angular_core.Signal<{
|
|
131
|
+
view: _mintplayer_ui_core_select.SelectView;
|
|
132
|
+
}>;
|
|
63
133
|
constructor();
|
|
64
|
-
identifier: _angular_core.InputSignal<number>;
|
|
65
|
-
/** Reference to the underlying `<mp-select>` WC. Read by
|
|
66
|
-
* `BsSelectValueAccessor` to drive `value` / `disabled` via property
|
|
67
|
-
* setters and listen for the bubbled, composed `change` event. */
|
|
68
|
-
readonly selectBox: _angular_core.Signal<ElementRef<MpSelect>>;
|
|
69
|
-
size: _angular_core.InputSignal<BsSelectSize>;
|
|
70
|
-
multiple: _angular_core.InputSignal<boolean>;
|
|
71
|
-
numberVisible: _angular_core.InputSignal<number | null>;
|
|
72
|
-
disabled: _angular_core.InputSignal<boolean>;
|
|
73
134
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSelectComponent, never>;
|
|
74
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSelectComponent, "bs-select", never, { "
|
|
135
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSelectComponent, "bs-select", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "numberVisible": { "alias": "numberVisible"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "values": { "alias": "values"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "values": "valuesChange"; "valuechange": "valuechange"; }, ["optionSlot"], ["*"], true, [{ directive: typeof BsSelectValueAccessor; inputs: { "compareWith": "compareWith"; }; outputs: {}; }, { directive: typeof i2.BsControlValidityDirective; inputs: { "errorMessages": "errorMessages"; }; outputs: {}; }]>;
|
|
75
136
|
}
|
|
76
137
|
|
|
77
|
-
export { BsSelectComponent, BsSelectOption, BsSelectValueAccessor };
|
|
78
|
-
export type { BsSelectSize };
|
|
138
|
+
export { BsSelectComponent, BsSelectOption, BsSelectOptionDirective, BsSelectValueAccessor };
|
|
@@ -1,54 +1,80 @@
|
|
|
1
|
+
import * as _mintplayer_ui_core_shell from '@mintplayer/ui-core/shell';
|
|
2
|
+
import { ShellLabels } from '@mintplayer/ui-core/shell';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { TemplateRef } from '@angular/core';
|
|
2
5
|
import { Breakpoint } from '@mintplayer/ng-bootstrap';
|
|
3
|
-
import { ShellStateChangeEventDetail } from '@mintplayer/web-components/shell';
|
|
4
6
|
|
|
5
7
|
type BsShellState = 'auto' | 'show' | 'hide';
|
|
8
|
+
/** Payload of `(statechange)`: whether the sidebar is now open. */
|
|
9
|
+
interface BsShellStateChange {
|
|
10
|
+
open: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The shell's sidebar content, rendered inside its `<aside>`:
|
|
15
|
+
*
|
|
16
|
+
* <nav *bsShellSidebar>…</nav>
|
|
17
|
+
*/
|
|
18
|
+
declare class BsShellSidebarDirective {
|
|
19
|
+
readonly template: TemplateRef<any>;
|
|
20
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsShellSidebarDirective, never>;
|
|
21
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsShellSidebarDirective, "[bsShellSidebar]", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Content for the shell's top bar, rendered after the hamburger:
|
|
25
|
+
*
|
|
26
|
+
* <div *bsShellTopbar>…brand / nav…</div>
|
|
27
|
+
*/
|
|
28
|
+
declare class BsShellTopbarDirective {
|
|
29
|
+
readonly template: TemplateRef<any>;
|
|
30
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsShellTopbarDirective, never>;
|
|
31
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsShellTopbarDirective, "[bsShellTopbar]", never, {}, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
6
33
|
|
|
7
34
|
/**
|
|
8
|
-
* `<bs-shell>` —
|
|
35
|
+
* `<bs-shell>` — responsive app shell with a collapsible sidebar (#437).
|
|
9
36
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* and
|
|
13
|
-
*
|
|
14
|
-
*
|
|
37
|
+
* Renders the markup of `@mintplayer/ui-core/shell` in its own template, so
|
|
38
|
+
* the server-rendered page is the working shell: the open state is a native
|
|
39
|
+
* checkbox per viewport mode and every rule is CSS, which makes the hamburger
|
|
40
|
+
* work with JavaScript off. The host is the `.shell` root, so a height on
|
|
41
|
+
* `bs-shell` bounds the layout and makes the content the scroll region.
|
|
15
42
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
43
|
+
* - `*bsShellSidebar` marks the sidebar content;
|
|
44
|
+
* - `*bsShellTopbar` fills the top bar after the hamburger;
|
|
45
|
+
* - everything else is the main content.
|
|
19
46
|
*/
|
|
20
47
|
declare class BsShellComponent {
|
|
21
48
|
readonly state: _angular_core.InputSignal<BsShellState>;
|
|
22
49
|
readonly breakpoint: _angular_core.InputSignal<Breakpoint>;
|
|
50
|
+
/** Expanded sidebar width (any CSS length); also settable via `--mp-shell-size`. */
|
|
51
|
+
readonly size: _angular_core.ModelSignal<string | null>;
|
|
52
|
+
/** Hides the built-in hamburger; drive the shell through `state` or `toggle()`. */
|
|
53
|
+
readonly externalToggle: _angular_core.InputSignal<boolean>;
|
|
23
54
|
/** Auto-close the overlay drawer when a sidebar link is clicked (narrow mode only). */
|
|
24
55
|
readonly dismissOnNavigate: _angular_core.InputSignal<boolean>;
|
|
25
|
-
/**
|
|
26
|
-
readonly
|
|
27
|
-
|
|
28
|
-
|
|
56
|
+
/** Localized accessible names; missing keys fall back to English. */
|
|
57
|
+
readonly labels: _angular_core.InputSignal<Partial<ShellLabels> | null>;
|
|
58
|
+
/** Fires when the sidebar opens or closes through the shell. */
|
|
59
|
+
readonly statechange: _angular_core.OutputEmitterRef<BsShellStateChange>;
|
|
60
|
+
protected readonly sidebar: _angular_core.Signal<BsShellSidebarDirective | undefined>;
|
|
61
|
+
protected readonly topbar: _angular_core.Signal<BsShellTopbarDirective | undefined>;
|
|
62
|
+
private readonly host;
|
|
63
|
+
private readonly id;
|
|
64
|
+
protected readonly view: _angular_core.Signal<_mintplayer_ui_core_shell.ShellView>;
|
|
65
|
+
/** True once the listeners are attached (browser only), so e2e can wait on it. */
|
|
66
|
+
private readonly hydrated;
|
|
29
67
|
constructor();
|
|
30
68
|
/** Set the expanded sidebar width (any CSS length, e.g. `'20rem'`). */
|
|
31
69
|
setSize(size: string): void;
|
|
32
|
-
/**
|
|
70
|
+
/** Open or close the sidebar in the current viewport mode. */
|
|
33
71
|
toggle(force?: boolean): void;
|
|
72
|
+
protected onToggleChange(event: Event): void;
|
|
73
|
+
protected onSkip(event: Event): void;
|
|
74
|
+
protected onClick(event: MouseEvent): void;
|
|
34
75
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsShellComponent, never>;
|
|
35
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsShellComponent, "bs-shell", never, { "state": { "alias": "state"; "required": false; "isSignal": true; }; "breakpoint": { "alias": "breakpoint"; "required": false; "isSignal": true; }; "dismissOnNavigate": { "alias": "dismissOnNavigate"; "required": false; "isSignal": true; }; }, { "statechange": "statechange"; },
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Marks the element that should be projected into `<mp-shell>`'s `sidebar`
|
|
40
|
-
* slot. Use as a plain attribute on the sidebar element:
|
|
41
|
-
*
|
|
42
|
-
* <nav bsShellSidebar>…</nav>
|
|
43
|
-
*
|
|
44
|
-
* (Previously a structural directive capturing a `TemplateRef`; the WC migration
|
|
45
|
-
* replaced template projection with a named slot, so this now just sets
|
|
46
|
-
* `slot="sidebar"` on its host.)
|
|
47
|
-
*/
|
|
48
|
-
declare class BsShellSidebarDirective {
|
|
49
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsShellSidebarDirective, never>;
|
|
50
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsShellSidebarDirective, "[bsShellSidebar]", never, {}, {}, never, never, true, never>;
|
|
76
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsShellComponent, "bs-shell", never, { "state": { "alias": "state"; "required": false; "isSignal": true; }; "breakpoint": { "alias": "breakpoint"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "externalToggle": { "alias": "externalToggle"; "required": false; "isSignal": true; }; "dismissOnNavigate": { "alias": "dismissOnNavigate"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; "statechange": "statechange"; }, ["sidebar", "topbar"], ["*"], true, never>;
|
|
51
77
|
}
|
|
52
78
|
|
|
53
|
-
export { BsShellComponent, BsShellSidebarDirective };
|
|
54
|
-
export type { BsShellState };
|
|
79
|
+
export { BsShellComponent, BsShellSidebarDirective, BsShellTopbarDirective };
|
|
80
|
+
export type { BsShellState, BsShellStateChange };
|