@mintplayer/ng-bootstrap 22.19.0 → 22.21.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 +10 -0
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +3 -0
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +6 -3
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs +9 -11
- package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +2 -4
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +3 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +36 -56
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +10 -18
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +13 -24
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +6 -15
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -7
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +17 -6
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +47 -50
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +8 -5
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +160 -83
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +2 -4
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +2 -4
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +4 -2
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +21 -7
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs +19 -14
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-enum.mjs +15 -12
- package/fesm2022/mintplayer-ng-bootstrap-enum.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +16 -6
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +21 -4
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +26 -10
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +4 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +2 -4
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +8 -11
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +73 -67
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +4 -16
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +11 -22
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +2 -4
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +188 -249
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +64 -146
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +37 -30
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +9 -25
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +2 -4
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +3 -0
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +150 -83
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +3 -0
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +46 -44
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +2 -4
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +63 -89
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +6 -14
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +25 -56
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs +47 -58
- package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs.map +1 -1
- package/package.json +2 -2
- package/types/mintplayer-ng-bootstrap-alert.d.ts +3 -1
- package/types/mintplayer-ng-bootstrap-button-type.d.ts +6 -6
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +0 -1
- package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-color-picker.d.ts +9 -3
- package/types/mintplayer-ng-bootstrap-context-menu.d.ts +8 -10
- package/types/mintplayer-ng-bootstrap-copy.d.ts +3 -1
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +56 -11
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +3 -1
- package/types/mintplayer-ng-bootstrap-dropdown.d.ts +3 -0
- package/types/mintplayer-ng-bootstrap-enhanced-paste.d.ts +6 -1
- package/types/mintplayer-ng-bootstrap-enum.d.ts +17 -4
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +2 -3
- package/types/mintplayer-ng-bootstrap-file-upload.d.ts +7 -1
- package/types/mintplayer-ng-bootstrap-modal.d.ts +9 -1
- package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +10 -1
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-query-builder.d.ts +2 -3
- package/types/mintplayer-ng-bootstrap-resizable.d.ts +65 -31
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +27 -21
- package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +18 -2
- package/types/mintplayer-ng-bootstrap-select.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +2 -2
- package/types/mintplayer-ng-bootstrap-theming.d.ts +86 -54
- package/types/mintplayer-ng-bootstrap-timeline.d.ts +27 -5
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-tooltip.d.ts +18 -17
- package/types/mintplayer-ng-bootstrap-tree-select.d.ts +3 -4
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +4 -4
- package/types/mintplayer-ng-bootstrap-user-agent.d.ts +13 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { TemplateRef, Signal,
|
|
3
|
-
import { FilterSelection, FilterMode, FilterInputType, FilterOperator, DistinctValues, FilterContext, DatatableColumnDef, DatatableDistincts, DatatableLabels, DatatableSelectionMode, TreeIdKey, TreeSelectionStrategy, FilterChangeDetail, MpDatatable } from '@mintplayer/web-components/datatable';
|
|
2
|
+
import { TemplateRef, Signal, ElementRef } from '@angular/core';
|
|
3
|
+
import { FilterSelection, FilterMode, FilterInputType, FilterOperator, DistinctValues, FilterContext, DatatableColumnDef, DatatableDistincts, DatatableLabels, DatatableSelectionMode, TreeIdKey, TreeSelectionStrategy, FilterChangeDetail, MpDatatable, DatatableReloadOptions } from '@mintplayer/web-components/datatable';
|
|
4
4
|
export { CellContent, CellRenderer, ComparisonFilterChangeDetail, DatatableColumnDef, DatatableDistincts, DatatableFetch, DatatableFetchRequest, DatatableFetchResponse, DatatableLabels, DatatableSelectionMode, DistinctValue, DistinctValues, DistinctsRequest, FilterChangeDetail, FilterContext, FilterInputType, FilterMode, FilterOperator, FilterRenderer, FilterSelection, HeaderRenderer, RowEventDetail, RowKey, RowRenderContext, RowRenderer, SelectionChangeEventDetail, SortChangeEventDetail, TreeExpandedIdsChangeDetail, TreeIdKey, TreeRowExpandDetail, TreeSelectionStrategy, ValuesFilterChangeDetail, computeNextSort } from '@mintplayer/web-components/datatable';
|
|
5
5
|
import { SortColumn, PaginationRequest, PaginationResponse } from '@mintplayer/pagination';
|
|
6
6
|
|
|
@@ -156,7 +156,7 @@ interface BsDatatableTreeRowEvent<T> {
|
|
|
156
156
|
depth: number;
|
|
157
157
|
parentId: unknown | null;
|
|
158
158
|
}
|
|
159
|
-
declare class BsDatatableComponent<TData>
|
|
159
|
+
declare class BsDatatableComponent<TData> {
|
|
160
160
|
private readonly platformId;
|
|
161
161
|
private readonly vcr;
|
|
162
162
|
private readonly destroyRef;
|
|
@@ -190,14 +190,47 @@ declare class BsDatatableComponent<TData> implements AfterViewInit {
|
|
|
190
190
|
readonly labels: _angular_core.InputSignal<Partial<DatatableLabels> | null>;
|
|
191
191
|
/** Two-way bound pagination / sort settings. */
|
|
192
192
|
readonly settings: _angular_core.ModelSignal<DatatableSettings>;
|
|
193
|
-
/**
|
|
193
|
+
/**
|
|
194
|
+
* - `'none'` (default): no selection, no checkbox column.
|
|
195
|
+
* - `'single'`: a row click selects that one row.
|
|
196
|
+
* - `'multiple'`: a row click selects (Ctrl/Shift extend it), plus a checkbox column.
|
|
197
|
+
* - `'checkbox'`: multi-select through the checkbox column only; a row click
|
|
198
|
+
* just opens the row (`rowClick`), it never changes the selection.
|
|
199
|
+
*/
|
|
194
200
|
readonly selectionMode: _angular_core.InputSignal<DatatableSelectionMode>;
|
|
195
201
|
/** @deprecated Use `selectionMode`. Kept for source-level compatibility. */
|
|
196
202
|
readonly selectable: _angular_core.InputSignal<DatatableSelectionMode | undefined>;
|
|
197
|
-
/**
|
|
203
|
+
/**
|
|
204
|
+
* Two-way bound array of selected rows. Identity is `rowKey`: two row
|
|
205
|
+
* objects with the same key are the same selection entry.
|
|
206
|
+
*
|
|
207
|
+
* The selection survives paging, sorting and re-fetching: a selected row
|
|
208
|
+
* that leaves the loaded data stays in the model (the element remembers it).
|
|
209
|
+
* Rows written here are handed to the element, so a host may select rows
|
|
210
|
+
* that are not loaded at all. After a selection change the model holds the
|
|
211
|
+
* freshest row object the element knows for each key.
|
|
212
|
+
*/
|
|
198
213
|
readonly selection: _angular_core.ModelSignal<TData[]>;
|
|
199
|
-
/**
|
|
214
|
+
/**
|
|
215
|
+
* The row's identity, used for selection and for keeping views across
|
|
216
|
+
* re-renders. Default: `String(row.id)`.
|
|
217
|
+
*
|
|
218
|
+
* **With `[fetch]` (or any selection that must survive paging) the key must
|
|
219
|
+
* be stable** — derived from the row itself, never from its position. The
|
|
220
|
+
* fallback for a row without an `id`, `row-${index}`, is positional and
|
|
221
|
+
* therefore unstable: the same row gets another key on another page or sort.
|
|
222
|
+
* Worse, a selected row that is not loaded has no index and is keyed
|
|
223
|
+
* `rowKey(row, -1)`, so every id-less off-page row collapses onto the one
|
|
224
|
+
* key `row--1` — in this wrapper's model and in the element alike — and the
|
|
225
|
+
* selection can no longer tell them apart. Supply a stable `rowKey`.
|
|
226
|
+
*/
|
|
200
227
|
readonly rowKey: _angular_core.InputSignal<(row: TData, index: number) => string>;
|
|
228
|
+
/**
|
|
229
|
+
* Names a row for its selection checkbox ("Select {label}"). When unset, or
|
|
230
|
+
* when it returns an empty string, the trimmed text of the row's first cell
|
|
231
|
+
* is used, and failing that the row number.
|
|
232
|
+
*/
|
|
233
|
+
readonly rowLabel: _angular_core.InputSignal<((row: TData) => string) | null>;
|
|
201
234
|
/** Drag-resize column widths. Default `true`. */
|
|
202
235
|
readonly resizableColumns: _angular_core.InputSignal<boolean>;
|
|
203
236
|
/** Built-in pagination footer. Ignored when `[fetch]` is provided (server-side paging owns the page state). */
|
|
@@ -210,8 +243,6 @@ declare class BsDatatableComponent<TData> implements AfterViewInit {
|
|
|
210
243
|
readonly virtualBuffer: _angular_core.InputSignal<number>;
|
|
211
244
|
/** Forwarded to the inner table (legacy responsive flag, currently a CSS hook). */
|
|
212
245
|
readonly isResponsive: _angular_core.InputSignal<boolean>;
|
|
213
|
-
/** Optional row equality predicate (selection identity across re-fetches). */
|
|
214
|
-
readonly compareWith: _angular_core.InputSignal<((a: TData, b: TData) => boolean) | undefined>;
|
|
215
246
|
/** Emitted on row single-click. */
|
|
216
247
|
readonly rowClick: _angular_core.OutputEmitterRef<BsDatatableRowEvent<TData>>;
|
|
217
248
|
/** Emitted on row double-click. */
|
|
@@ -256,7 +287,7 @@ declare class BsDatatableComponent<TData> implements AfterViewInit {
|
|
|
256
287
|
* because only they know whether the filter is client-side or a new query.
|
|
257
288
|
*/
|
|
258
289
|
readonly filterChange: _angular_core.OutputEmitterRef<FilterChangeDetail>;
|
|
259
|
-
readonly datatableRef: _angular_core.Signal<ElementRef<MpDatatable
|
|
290
|
+
readonly datatableRef: _angular_core.Signal<ElementRef<MpDatatable>>;
|
|
260
291
|
/** Column directives (header template + sortable). Wrapper-level discovery. */
|
|
261
292
|
readonly columnDirectives: _angular_core.Signal<readonly BsDatatableColumnDirective[]>;
|
|
262
293
|
/** Optional row template. When present, drives a per-row EmbeddedView render path. */
|
|
@@ -301,7 +332,21 @@ declare class BsDatatableComponent<TData> implements AfterViewInit {
|
|
|
301
332
|
/** EmbeddedViews for row templates, keyed by rowKey for reuse. */
|
|
302
333
|
private rowViews;
|
|
303
334
|
constructor();
|
|
304
|
-
|
|
335
|
+
/** The selection model the wrapper last built from a WC event (echo guard). */
|
|
336
|
+
private lastEmittedSelection;
|
|
337
|
+
/**
|
|
338
|
+
* Keys a selection-model row the way the element would: a row the element
|
|
339
|
+
* currently reports keeps the key it reports it under; any other row gets
|
|
340
|
+
* `rowKey(row, -1)`, which is what the element uses for a row that is not
|
|
341
|
+
* in its loaded data.
|
|
342
|
+
*/
|
|
343
|
+
private selectionKeyLookup;
|
|
344
|
+
/**
|
|
345
|
+
* Re-queries `[fetch]` for the current sort, page and page size, e.g. after
|
|
346
|
+
* the server data changed. The selection is kept. `resetPage: true` also
|
|
347
|
+
* returns to page 1. A no-op on the server and without `[fetch]`.
|
|
348
|
+
*/
|
|
349
|
+
reload(options?: DatatableReloadOptions): void;
|
|
305
350
|
private buildRowRenderer;
|
|
306
351
|
onSortChange(event: Event): void;
|
|
307
352
|
onSelectionChange(event: Event): void;
|
|
@@ -316,7 +361,7 @@ declare class BsDatatableComponent<TData> implements AfterViewInit {
|
|
|
316
361
|
onFilterChange(event: Event): void;
|
|
317
362
|
private toBsEvent;
|
|
318
363
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDatatableComponent<any>, never>;
|
|
319
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsDatatableComponent<any>, "bs-datatable", never, { "columnsInput": { "alias": "columns"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "fetch": { "alias": "fetch"; "required": false; "isSignal": true; }; "distincts": { "alias": "distincts"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "rowKey": { "alias": "rowKey"; "required": false; "isSignal": true; }; "
|
|
364
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsDatatableComponent<any>, "bs-datatable", never, { "columnsInput": { "alias": "columns"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "fetch": { "alias": "fetch"; "required": false; "isSignal": true; }; "distincts": { "alias": "distincts"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "rowKey": { "alias": "rowKey"; "required": false; "isSignal": true; }; "rowLabel": { "alias": "rowLabel"; "required": false; "isSignal": true; }; "resizableColumns": { "alias": "resizableColumns"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "itemSize": { "alias": "itemSize"; "required": false; "isSignal": true; }; "virtualBuffer": { "alias": "virtualBuffer"; "required": false; "isSignal": true; }; "isResponsive": { "alias": "isResponsive"; "required": false; "isSignal": true; }; "tree": { "alias": "tree"; "required": false; "isSignal": true; }; "idKey": { "alias": "idKey"; "required": false; "isSignal": true; }; "childCountKey": { "alias": "childCountKey"; "required": false; "isSignal": true; }; "treeIndent": { "alias": "treeIndent"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; "selectionStrategy": { "alias": "selectionStrategy"; "required": false; "isSignal": true; }; }, { "settings": "settingsChange"; "selection": "selectionChange"; "rowClick": "rowClick"; "rowDblClick": "rowDblClick"; "rowContextMenu": "rowContextMenu"; "expandedIds": "expandedIdsChange"; "rowExpand": "rowExpand"; "rowCollapse": "rowCollapse"; "filterChange": "filterChange"; }, ["columnDirectives", "rowTemplate"], never, true, never>;
|
|
320
365
|
}
|
|
321
366
|
|
|
322
367
|
/**
|
|
@@ -19,7 +19,7 @@ declare class BsDatepickerComponent implements AfterViewInit, ControlValueAccess
|
|
|
19
19
|
protected readonly formDisabled: _angular_core.WritableSignal<boolean>;
|
|
20
20
|
disabled: _angular_core.InputSignal<boolean>;
|
|
21
21
|
protected readonly effectiveDisabled: _angular_core.WritableSignal<boolean>;
|
|
22
|
-
readonly wcRef: _angular_core.Signal<ElementRef<MpDatepickerElement
|
|
22
|
+
readonly wcRef: _angular_core.Signal<ElementRef<MpDatepickerElement>>;
|
|
23
23
|
private onChange;
|
|
24
24
|
private onTouched;
|
|
25
25
|
private onValidatorChange;
|
|
@@ -40,7 +40,7 @@ declare class BsDatetimePickerComponent implements AfterViewInit, ControlValueAc
|
|
|
40
40
|
protected readonly effectiveDisabled: _angular_core.WritableSignal<boolean>;
|
|
41
41
|
readonly opened: _angular_core.OutputEmitterRef<DatetimePopup>;
|
|
42
42
|
readonly closed: _angular_core.OutputEmitterRef<DatetimePopup>;
|
|
43
|
-
readonly wcRef: _angular_core.Signal<ElementRef<MpDatetimePickerElement
|
|
43
|
+
readonly wcRef: _angular_core.Signal<ElementRef<MpDatetimePickerElement>>;
|
|
44
44
|
private onChange;
|
|
45
45
|
private onTouched;
|
|
46
46
|
private onValidatorChange;
|
|
@@ -74,7 +74,9 @@ declare const BS_DROPDOWN_MENU_CONTEXT: InjectionToken<boolean>;
|
|
|
74
74
|
* a `listbox` menu).
|
|
75
75
|
* - `disabled` — non-interactive; removed from the menu's roving order.
|
|
76
76
|
* - `value` — opaque value carried in the menu's `select` event detail;
|
|
77
|
-
*
|
|
77
|
+
* written to the host `<li>` as its `dropdownValue` property, which the WC
|
|
78
|
+
* reads. Not the `value` property: `HTMLLIElement.value` is a native long
|
|
79
|
+
* that turns an object or a string into 0.
|
|
78
80
|
*/
|
|
79
81
|
declare class BsDropdownItemDirective {
|
|
80
82
|
readonly active: i0.InputSignal<boolean>;
|
|
@@ -16,6 +16,9 @@ declare class BsDropdownMenuDirective extends ClickOutsideDirective {
|
|
|
16
16
|
private templatePortal;
|
|
17
17
|
private stackToken;
|
|
18
18
|
constructor();
|
|
19
|
+
/** The open menu's overlay pane, where its items are; null while closed. */
|
|
20
|
+
get overlayElement(): HTMLElement | null;
|
|
21
|
+
private disposeOverlay;
|
|
19
22
|
clickedOutside(event: Event): void;
|
|
20
23
|
onEscape(event: Event): void;
|
|
21
24
|
private doClose;
|
|
@@ -6,12 +6,17 @@ interface NumberOverflow {
|
|
|
6
6
|
inputValue?: number;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* On a number input bound with `ngModel`, a pasted value outside `min`/`max` is clamped to the
|
|
11
|
+
* nearest bound (and reported through `numberOverflow`) instead of being refused by the browser.
|
|
12
|
+
* A paste that is already in range goes through untouched.
|
|
13
|
+
*/
|
|
9
14
|
declare class EnhancedPasteDirective {
|
|
10
15
|
private element;
|
|
11
16
|
private model;
|
|
12
17
|
readonly numberOverflow: i0.OutputEmitterRef<NumberOverflow>;
|
|
13
18
|
onPaste(event: ClipboardEvent): void;
|
|
14
|
-
filterInput(value:
|
|
19
|
+
filterInput(value: string, min: number, max: number): NumberOverflow | null;
|
|
15
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<EnhancedPasteDirective, never>;
|
|
16
21
|
static ɵdir: i0.ɵɵDirectiveDeclaration<EnhancedPasteDirective, "input[type=\"number\"][bsEnhancedPaste]", never, {}, { "numberOverflow": "numberOverflow"; }, never, never, true, never>;
|
|
17
22
|
}
|
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
|
|
3
|
-
interface EnumItem {
|
|
3
|
+
interface EnumItem<V = number> {
|
|
4
4
|
key: string;
|
|
5
|
-
value: number;
|
|
5
|
+
/** The member value: a number for a numeric enum; pass V = string for a string enum. */
|
|
6
|
+
value: V;
|
|
6
7
|
}
|
|
7
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Reads the members of a TypeScript enum object.
|
|
11
|
+
*
|
|
12
|
+
* A numeric enum compiles to an object holding both directions (`{ 0: 'a', a: 0 }`); a string
|
|
13
|
+
* enum holds only names (`{ A: 'a' }`); a mixed enum holds reverse entries for its numeric
|
|
14
|
+
* members only. A member NAME can never be a numeric string, so the names are exactly the keys
|
|
15
|
+
* that are not numbers, whatever kind of enum it is. (Splitting `Object.keys` in half, as this
|
|
16
|
+
* did before, only worked for purely numeric enums: a string enum lost half its members.)
|
|
17
|
+
*/
|
|
8
18
|
declare class EnumService {
|
|
19
|
+
/** The member names, in declaration order. */
|
|
9
20
|
getKeys(en: Record<string, unknown>): string[];
|
|
10
|
-
|
|
11
|
-
|
|
21
|
+
/** The member values, in declaration order. */
|
|
22
|
+
getValues<V = number>(en: Record<string, unknown>): V[];
|
|
23
|
+
/** Name/value pairs, in declaration order. */
|
|
24
|
+
getItems<V = number>(en: Record<string, unknown>): EnumItem<V>[];
|
|
12
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<EnumService, never>;
|
|
13
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<EnumService>;
|
|
14
27
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
3
|
import { FileSystemNode, OperationFlags, FileManagerViewMode, FileManagerSelectionMode, DialogResolver, ConflictResolver, FileManagerMessages, NavigateEventDetail, NodeOpenEventDetail, SelectionChangeEventDetail, UploadRequestEventDetail, OperationEventDetail, MpFileManager, UploadEntry, OperationKind } from '@mintplayer/web-components/file-manager';
|
|
4
4
|
export { ConflictResolver, DEFAULT_FILE_MANAGER_MESSAGES, DialogResolver, FileManagerMessages, FileManagerSelectionMode, FileManagerViewMode, FileSystemNode, FileSystemNodeType, NavigateEventDetail, NodeOpenEventDetail, OperationEventDetail, OperationFlags, OperationKind, SelectionChangeEventDetail, UploadEntry, UploadRequestEventDetail, mergeMessages } from '@mintplayer/web-components/file-manager';
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ interface ChildrenLoadedEventDetail {
|
|
|
8
8
|
parentId: string;
|
|
9
9
|
children: FileSystemNode[];
|
|
10
10
|
}
|
|
11
|
-
declare class BsFileManagerComponent
|
|
11
|
+
declare class BsFileManagerComponent {
|
|
12
12
|
/** All file-system nodes. Consumer mutates this in response to operation events. */
|
|
13
13
|
readonly nodes: _angular_core.InputSignal<FileSystemNode[]>;
|
|
14
14
|
/** Restrict the tree to descendants of this folder. `null` = show everything. */
|
|
@@ -71,7 +71,6 @@ declare class BsFileManagerComponent implements AfterViewInit {
|
|
|
71
71
|
/** Convenience: number of pending operations. */
|
|
72
72
|
readonly pendingCount: _angular_core.Signal<number>;
|
|
73
73
|
constructor();
|
|
74
|
-
ngAfterViewInit(): void;
|
|
75
74
|
/** Mark a node as having an operation in flight (rows render busy). */
|
|
76
75
|
markPending(nodeId: string, op: OperationKind): void;
|
|
77
76
|
/** Clear the pending state on a node. */
|
|
@@ -15,6 +15,12 @@ declare class BsFileUploadComponent {
|
|
|
15
15
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
16
16
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
17
17
|
readonly inputAriaLabel: _angular_core.InputSignal<string>;
|
|
18
|
+
/** Live-region announcement after one file is added. Override to translate. */
|
|
19
|
+
readonly fileAddedAnnouncement: _angular_core.InputSignal<(fileName: string) => string>;
|
|
20
|
+
/** Live-region announcement after several files are added at once. Override to translate. */
|
|
21
|
+
readonly filesAddedAnnouncement: _angular_core.InputSignal<(count: number) => string>;
|
|
22
|
+
/** Accessible name of the default template's progress bar. Override to translate. */
|
|
23
|
+
readonly progressLabel: _angular_core.InputSignal<(fileName: string) => string>;
|
|
18
24
|
readonly colors: typeof Color;
|
|
19
25
|
isDraggingFile: _angular_core.WritableSignal<boolean>;
|
|
20
26
|
readonly fileTemplate: _angular_core.WritableSignal<TemplateRef<FileUpload> | undefined>;
|
|
@@ -26,7 +32,7 @@ declare class BsFileUploadComponent {
|
|
|
26
32
|
onDrop(event: DragEvent): void;
|
|
27
33
|
private processDroppedFiles;
|
|
28
34
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsFileUploadComponent, never>;
|
|
29
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsFileUploadComponent, "bs-file-upload", never, { "dropFilesCaption": { "alias": "dropFilesCaption"; "required": false; "isSignal": true; }; "browseFilesCaption": { "alias": "browseFilesCaption"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "inputAriaLabel": { "alias": "inputAriaLabel"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; "isSignal": true; }; }, { "files": "filesChange"; "filesDropped": "filesDropped"; }, never, never, true, never>;
|
|
35
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsFileUploadComponent, "bs-file-upload", never, { "dropFilesCaption": { "alias": "dropFilesCaption"; "required": false; "isSignal": true; }; "browseFilesCaption": { "alias": "browseFilesCaption"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "inputAriaLabel": { "alias": "inputAriaLabel"; "required": false; "isSignal": true; }; "fileAddedAnnouncement": { "alias": "fileAddedAnnouncement"; "required": false; "isSignal": true; }; "filesAddedAnnouncement": { "alias": "filesAddedAnnouncement"; "required": false; "isSignal": true; }; "progressLabel": { "alias": "progressLabel"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; "isSignal": true; }; }, { "files": "filesChange"; "filesDropped": "filesDropped"; }, never, never, true, never>;
|
|
30
36
|
}
|
|
31
37
|
|
|
32
38
|
declare class BsFileUploadTemplateDirective {
|
|
@@ -24,8 +24,11 @@ declare class BsModalComponent {
|
|
|
24
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<BsModalComponent, "bs-modal-content", never, {}, {}, never, never, true, never>;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/** Time the modal's leave animation is given before its overlay is disposed. */
|
|
28
|
+
declare const MODAL_LEAVE_MS = 500;
|
|
27
29
|
declare class BsModalHostComponent implements AfterViewInit, OnDestroy {
|
|
28
30
|
private overlay;
|
|
31
|
+
private appRef;
|
|
29
32
|
private parentInjector;
|
|
30
33
|
private portalFactory;
|
|
31
34
|
private overlayStack;
|
|
@@ -38,6 +41,11 @@ declare class BsModalHostComponent implements AfterViewInit, OnDestroy {
|
|
|
38
41
|
readonly scrollable: i0.InputSignal<boolean>;
|
|
39
42
|
constructor();
|
|
40
43
|
ngAfterViewInit(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Plays the modal's leave animation, then disposes the overlay. The close is written to the
|
|
46
|
+
* modal directly: this host's sync effect is destroyed with it and would never deliver it.
|
|
47
|
+
* If the application is torn down first, the pending dispose is cancelled and runs at once.
|
|
48
|
+
*/
|
|
41
49
|
ngOnDestroy(): void;
|
|
42
50
|
onKeyDown(event: Event): void;
|
|
43
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsModalHostComponent, never>;
|
|
@@ -80,4 +88,4 @@ declare class BsModalCloseDirective {
|
|
|
80
88
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BsModalCloseDirective, "[bsModalClose]", never, {}, {}, never, never, true, never>;
|
|
81
89
|
}
|
|
82
90
|
|
|
83
|
-
export { BsModalBodyDirective, BsModalCloseDirective, BsModalComponent, BsModalDirective, BsModalFooterDirective, BsModalHeaderDirective, BsModalHostComponent };
|
|
91
|
+
export { BsModalBodyDirective, BsModalCloseDirective, BsModalComponent, BsModalDirective, BsModalFooterDirective, BsModalHeaderDirective, BsModalHostComponent, MODAL_LEAVE_MS };
|
|
@@ -15,6 +15,8 @@ declare class BsOffcanvasContextService {
|
|
|
15
15
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<BsOffcanvasContextService>;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/** Duration of the panel's slide transition (Bootstrap's $offcanvas-transition-duration). */
|
|
19
|
+
declare const OFFCANVAS_TRANSITION_MS = 300;
|
|
18
20
|
declare class BsOffcanvasComponent {
|
|
19
21
|
contentTemplate: TemplateRef<any>;
|
|
20
22
|
private platformId;
|
|
@@ -68,6 +70,7 @@ declare class OffcanvasBodyComponent {
|
|
|
68
70
|
declare class BsOffcanvasHostComponent implements AfterViewInit, OnDestroy {
|
|
69
71
|
private overlayService;
|
|
70
72
|
private rootInjector;
|
|
73
|
+
private appRef;
|
|
71
74
|
private portalFactory;
|
|
72
75
|
constructor();
|
|
73
76
|
content: TemplateRef<any>;
|
|
@@ -81,6 +84,12 @@ declare class BsOffcanvasHostComponent implements AfterViewInit, OnDestroy {
|
|
|
81
84
|
hasBackdrop: _angular_core.ModelSignal<boolean>;
|
|
82
85
|
backdropClick: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
83
86
|
ngAfterViewInit(): void;
|
|
87
|
+
/**
|
|
88
|
+
* Plays the panel's hide transition, then disposes the overlay. The hide is written to the
|
|
89
|
+
* panel directly: this host's sync effects are destroyed with it and would never deliver it.
|
|
90
|
+
* If the application is torn down before the transition ends, the pending dispose is
|
|
91
|
+
* cancelled and runs at once, so no timer outlives the app.
|
|
92
|
+
*/
|
|
84
93
|
ngOnDestroy(): void;
|
|
85
94
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsOffcanvasHostComponent, never>;
|
|
86
95
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsOffcanvasHostComponent, "bs-offcanvas", never, { "isVisible": { "alias": "isVisible"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; }, { "isVisible": "isVisibleChange"; "size": "sizeChange"; "position": "positionChange"; "hasBackdrop": "hasBackdropChange"; "backdropClick": "backdropClick"; }, never, never, true, never>;
|
|
@@ -109,4 +118,4 @@ declare class BsOffcanvasPushDirective {
|
|
|
109
118
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsOffcanvasPushDirective, "[bsOffcanvasPush]", never, { "offcanvas": { "alias": "bsOffcanvasPush"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
110
119
|
}
|
|
111
120
|
|
|
112
|
-
export { BsOffcanvasCloseDirective, BsOffcanvasComponent, BsOffcanvasContentDirective, BsOffcanvasHostComponent, BsOffcanvasPushDirective, OffcanvasBodyComponent, OffcanvasHeaderComponent };
|
|
121
|
+
export { BsOffcanvasCloseDirective, BsOffcanvasComponent, BsOffcanvasContentDirective, BsOffcanvasHostComponent, BsOffcanvasPushDirective, OFFCANVAS_TRANSITION_MS, OffcanvasBodyComponent, OffcanvasHeaderComponent };
|
|
@@ -33,7 +33,7 @@ declare class BsOtpInputComponent {
|
|
|
33
33
|
readonly inputLabel: _angular_core.InputSignal<string | null>;
|
|
34
34
|
readonly value: _angular_core.ModelSignal<string | undefined>;
|
|
35
35
|
readonly complete: _angular_core.OutputEmitterRef<string>;
|
|
36
|
-
readonly elementRef: _angular_core.Signal<ElementRef<MintOtpInputElement
|
|
36
|
+
readonly elementRef: _angular_core.Signal<ElementRef<MintOtpInputElement> | undefined>;
|
|
37
37
|
private readonly hostRef;
|
|
38
38
|
protected readonly invalidAttr: _angular_core.Signal<"" | null>;
|
|
39
39
|
constructor();
|
|
@@ -14,7 +14,7 @@ declare class BsPaginationComponent {
|
|
|
14
14
|
readonly showArrows: _angular_core.InputSignal<boolean>;
|
|
15
15
|
/** Page number size. */
|
|
16
16
|
readonly size: _angular_core.InputSignal<Size>;
|
|
17
|
-
protected readonly paginationRef: _angular_core.Signal<ElementRef<MpPagination
|
|
17
|
+
protected readonly paginationRef: _angular_core.Signal<ElementRef<MpPagination>>;
|
|
18
18
|
constructor();
|
|
19
19
|
onPageChange(event: Event): void;
|
|
20
20
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsPaginationComponent, never>;
|
|
@@ -32,7 +32,7 @@ declare class BsPriorityNavComponent {
|
|
|
32
32
|
overflowChange: _angular_core.OutputEmitterRef<BsPriorityNavItemDirective[]>;
|
|
33
33
|
readonly items: _angular_core.Signal<readonly BsPriorityNavItemDirective[]>;
|
|
34
34
|
private measureSizers;
|
|
35
|
-
stripSizer: _angular_core.Signal<BsObserveSizeDirective
|
|
35
|
+
stripSizer: _angular_core.Signal<BsObserveSizeDirective>;
|
|
36
36
|
private stripElement;
|
|
37
37
|
moreSizer: _angular_core.Signal<BsObserveSizeDirective | undefined>;
|
|
38
38
|
isMoreOpen: _angular_core.WritableSignal<boolean>;
|
|
@@ -65,7 +65,6 @@ declare class BsQueryBuilderComponent implements AfterContentInit, ControlValueA
|
|
|
65
65
|
showPreview: _angular_core.InputSignal<boolean>;
|
|
66
66
|
showSavedQueries: _angular_core.InputSignal<boolean>;
|
|
67
67
|
maxDepth: _angular_core.InputSignal<number>;
|
|
68
|
-
timezone: _angular_core.InputSignal<string>;
|
|
69
68
|
savedQueries: _angular_core.InputSignal<SavedQuery[]>;
|
|
70
69
|
operatorOverrides: _angular_core.InputSignal<Partial<Record<string, _mintplayer_web_components_query_builder.Operator[]>> | undefined>;
|
|
71
70
|
disabled: _angular_core.InputSignal<boolean>;
|
|
@@ -80,7 +79,7 @@ declare class BsQueryBuilderComponent implements AfterContentInit, ControlValueA
|
|
|
80
79
|
readonly deleteQuery: _angular_core.OutputEmitterRef<{
|
|
81
80
|
name: string;
|
|
82
81
|
}>;
|
|
83
|
-
readonly wcRef: _angular_core.Signal<ElementRef<MpQueryBuilderElement
|
|
82
|
+
readonly wcRef: _angular_core.Signal<ElementRef<MpQueryBuilderElement>>;
|
|
84
83
|
protected editorDirectives: QueryList<BsQueryBuilderEditorDirective>;
|
|
85
84
|
private vcr;
|
|
86
85
|
protected readonly formDisabled: _angular_core.WritableSignal<boolean>;
|
|
@@ -107,7 +106,7 @@ declare class BsQueryBuilderComponent implements AfterContentInit, ControlValueA
|
|
|
107
106
|
registerOnTouched(fn: () => void): void;
|
|
108
107
|
setDisabledState(isDisabled: boolean): void;
|
|
109
108
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsQueryBuilderComponent, never>;
|
|
110
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsQueryBuilderComponent, "bs-query-builder", never, { "query": { "alias": "query"; "required": false; "isSignal": true; }; "schema": { "alias": "schema"; "required": false; "isSignal": true; }; "rootEntity": { "alias": "rootEntity"; "required": false; "isSignal": true; }; "multiEntityPickerEnabled": { "alias": "multiEntityPickerEnabled"; "required": false; "isSignal": true; }; "selectedFields": { "alias": "selectedFields"; "required": false; "isSignal": true; }; "sortBy": { "alias": "sortBy"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "showPreview": { "alias": "showPreview"; "required": false; "isSignal": true; }; "showSavedQueries": { "alias": "showSavedQueries"; "required": false; "isSignal": true; }; "maxDepth": { "alias": "maxDepth"; "required": false; "isSignal": true; }; "
|
|
109
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsQueryBuilderComponent, "bs-query-builder", never, { "query": { "alias": "query"; "required": false; "isSignal": true; }; "schema": { "alias": "schema"; "required": false; "isSignal": true; }; "rootEntity": { "alias": "rootEntity"; "required": false; "isSignal": true; }; "multiEntityPickerEnabled": { "alias": "multiEntityPickerEnabled"; "required": false; "isSignal": true; }; "selectedFields": { "alias": "selectedFields"; "required": false; "isSignal": true; }; "sortBy": { "alias": "sortBy"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "showPreview": { "alias": "showPreview"; "required": false; "isSignal": true; }; "showSavedQueries": { "alias": "showSavedQueries"; "required": false; "isSignal": true; }; "maxDepth": { "alias": "maxDepth"; "required": false; "isSignal": true; }; "savedQueries": { "alias": "savedQueries"; "required": false; "isSignal": true; }; "operatorOverrides": { "alias": "operatorOverrides"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "editorRegistry": { "alias": "editorRegistry"; "required": false; "isSignal": true; }; }, { "query": "queryChange"; "rootEntity": "rootEntityChange"; "selectedFields": "selectedFieldsChange"; "sortBy": "sortByChange"; "saveQuery": "saveQuery"; "loadQuery": "loadQuery"; "deleteQuery": "deleteQuery"; }, ["editorDirectives"], never, true, never>;
|
|
111
110
|
}
|
|
112
111
|
|
|
113
112
|
export { BsQueryBuilderComponent, BsQueryBuilderEditorDirective };
|
|
@@ -4,22 +4,32 @@ import { Position } from '@mintplayer/ng-bootstrap';
|
|
|
4
4
|
|
|
5
5
|
type ResizablePositioning = 'absolute' | 'inline';
|
|
6
6
|
|
|
7
|
+
/** A physical edge of the box, after `start`/`end` are resolved against the text direction. */
|
|
8
|
+
type PhysicalSide = 'top' | 'bottom' | 'left' | 'right';
|
|
9
|
+
/** The geometry captured when a resize begins; every move is computed from it. */
|
|
7
10
|
interface ResizeAction {
|
|
8
11
|
positioning: ResizablePositioning;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
/** The physical edges the active glyph drags. */
|
|
13
|
+
sides: PhysicalSide[];
|
|
14
|
+
/** The box's viewport rect at the start of the resize. */
|
|
15
|
+
rect: {
|
|
16
|
+
left: number;
|
|
17
|
+
top: number;
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
};
|
|
21
|
+
/** The box's offsetLeft/offsetTop: its position in its containing block. */
|
|
22
|
+
offset: {
|
|
23
|
+
left: number;
|
|
24
|
+
top: number;
|
|
25
|
+
};
|
|
26
|
+
/** The box's computed margins, in px. */
|
|
27
|
+
margin: {
|
|
28
|
+
left: number;
|
|
29
|
+
right: number;
|
|
30
|
+
top: number;
|
|
31
|
+
bottom: number;
|
|
32
|
+
};
|
|
23
33
|
}
|
|
24
34
|
|
|
25
35
|
interface PresetPosition {
|
|
@@ -29,6 +39,24 @@ interface PresetPosition {
|
|
|
29
39
|
height: number;
|
|
30
40
|
}
|
|
31
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Accessible names of the resize glyphs, keyed by the PHYSICAL edge or corner the glyph sits
|
|
44
|
+
* on (a `start` glyph is on the right in a right-to-left document, and is named from this
|
|
45
|
+
* table's right-hand entries). Pass a partial table to `bs-resizable`'s `[labels]` to
|
|
46
|
+
* translate them.
|
|
47
|
+
*/
|
|
48
|
+
interface BsResizableLabels {
|
|
49
|
+
top: string;
|
|
50
|
+
bottom: string;
|
|
51
|
+
left: string;
|
|
52
|
+
right: string;
|
|
53
|
+
topLeft: string;
|
|
54
|
+
topRight: string;
|
|
55
|
+
bottomLeft: string;
|
|
56
|
+
bottomRight: string;
|
|
57
|
+
}
|
|
58
|
+
declare const DEFAULT_RESIZABLE_LABELS: BsResizableLabels;
|
|
59
|
+
|
|
32
60
|
declare class BsResizableComponent {
|
|
33
61
|
element: ElementRef<any>;
|
|
34
62
|
resizeAction?: ResizeAction;
|
|
@@ -36,6 +64,8 @@ declare class BsResizableComponent {
|
|
|
36
64
|
horizontal: _angular_core.InputSignal<boolean>;
|
|
37
65
|
vertical: _angular_core.InputSignal<boolean>;
|
|
38
66
|
corners: _angular_core.InputSignal<boolean>;
|
|
67
|
+
/** Translations of the glyphs' accessible names; missing keys keep the English default. */
|
|
68
|
+
labels: _angular_core.InputSignal<Partial<BsResizableLabels>>;
|
|
39
69
|
showCorners: _angular_core.Signal<boolean>;
|
|
40
70
|
hostPosition: _angular_core.Signal<"position-absolute" | "position-relative">;
|
|
41
71
|
wrapperPosition: _angular_core.Signal<string[]>;
|
|
@@ -50,40 +80,44 @@ declare class BsResizableComponent {
|
|
|
50
80
|
left: _angular_core.WritableSignal<number | undefined>;
|
|
51
81
|
top: _angular_core.WritableSignal<number | undefined>;
|
|
52
82
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsResizableComponent, never>;
|
|
53
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsResizableComponent, "bs-resizable", never, { "positioning": { "alias": "positioning"; "required": false; "isSignal": true; }; "horizontal": { "alias": "horizontal"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "corners": { "alias": "corners"; "required": false; "isSignal": true; }; "presetPosition": { "alias": "presetPosition"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
interface PointerData {
|
|
57
|
-
clientX: number;
|
|
58
|
-
clientY: number;
|
|
59
|
-
preventDefault: () => void;
|
|
83
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsResizableComponent, "bs-resizable", never, { "positioning": { "alias": "positioning"; "required": false; "isSignal": true; }; "horizontal": { "alias": "horizontal"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "corners": { "alias": "corners"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "presetPosition": { "alias": "presetPosition"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
60
84
|
}
|
|
61
85
|
|
|
86
|
+
/**
|
|
87
|
+
* One drag handle of `bs-resizable`. Its logical positions (`start`/`end`) are resolved to
|
|
88
|
+
* physical sides once, from the document direction, and that one value drives the glyph's
|
|
89
|
+
* placement class, its drag and keyboard math and its accessible name, so the three can never
|
|
90
|
+
* disagree.
|
|
91
|
+
*/
|
|
62
92
|
declare class BsResizeGlyphDirective {
|
|
63
93
|
private readonly resizable;
|
|
64
|
-
|
|
65
|
-
positions: _angular_core.WritableSignal<string>;
|
|
66
|
-
activeClass: _angular_core.WritableSignal<boolean>;
|
|
94
|
+
private readonly dir;
|
|
67
95
|
readonly bsResizeGlyph: _angular_core.InputSignal<Position[]>;
|
|
96
|
+
readonly activeClass: _angular_core.WritableSignal<boolean>;
|
|
97
|
+
readonly sides: _angular_core.Signal<PhysicalSide[]>;
|
|
98
|
+
readonly sideClasses: _angular_core.Signal<string>;
|
|
68
99
|
readonly ariaOrientation: _angular_core.Signal<"horizontal" | "vertical" | null>;
|
|
69
|
-
readonly ariaLabel: _angular_core.Signal<
|
|
100
|
+
readonly ariaLabel: _angular_core.Signal<string | null>;
|
|
70
101
|
onMouseDown(ev: MouseEvent): void;
|
|
71
102
|
onTouchStart(ev: TouchEvent): void;
|
|
72
103
|
onMouseMove(ev: MouseEvent): void;
|
|
73
104
|
onTouchMove(ev: TouchEvent): void;
|
|
74
|
-
onMouseUp(ev: Event): void;
|
|
75
105
|
onTouchEnd(ev: TouchEvent): void;
|
|
76
106
|
onPointerDown(): void;
|
|
77
|
-
private isBusy;
|
|
78
|
-
onPointerMove(ev: PointerData): void;
|
|
79
107
|
onPointerUp(): void;
|
|
80
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* Keyboard alternative to drag: an arrow key moves the glyph's own edge by 10px (1px with
|
|
110
|
+
* Shift). It is computed as a one-step drag, so it moves the same edge and writes the same
|
|
111
|
+
* signals as dragging would, in both positioning modes.
|
|
112
|
+
*/
|
|
81
113
|
onKeydown(event: KeyboardEvent): void;
|
|
114
|
+
private captureAction;
|
|
115
|
+
private apply;
|
|
82
116
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsResizeGlyphDirective, never>;
|
|
83
117
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsResizeGlyphDirective, "[bsResizeGlyph]", never, { "bsResizeGlyph": { "alias": "bsResizeGlyph"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
84
118
|
}
|
|
85
119
|
|
|
86
120
|
declare const RESIZABLE: InjectionToken<BsResizableComponent>;
|
|
87
121
|
|
|
88
|
-
export { BsResizableComponent, BsResizeGlyphDirective, RESIZABLE };
|
|
89
|
-
export type {
|
|
122
|
+
export { BsResizableComponent, BsResizeGlyphDirective, DEFAULT_RESIZABLE_LABELS, RESIZABLE };
|
|
123
|
+
export type { BsResizableLabels, PhysicalSide, PresetPosition, ResizablePositioning, ResizeAction };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { AfterViewInit,
|
|
2
|
+
import { AfterViewInit, OutputEmitterRef } from '@angular/core';
|
|
3
3
|
import { SchedulerEvent, Resource, ResourceGroup, SchedulerOptions, ViewType } from '@mintplayer/web-components/scheduler-core';
|
|
4
4
|
export { PreviewEvent, Resource, ResourceGroup, SchedulerEvent, SchedulerEventPart, SchedulerOptions, TimeSlot, ViewType, generateEventId, generateGroupId, generateResourceId } from '@mintplayer/web-components/scheduler-core';
|
|
5
5
|
|
|
@@ -97,7 +97,7 @@ interface SchedulerResourceDeleteEvent {
|
|
|
97
97
|
/**
|
|
98
98
|
* Angular wrapper for the mp-scheduler web component using signals
|
|
99
99
|
*/
|
|
100
|
-
declare class BsSchedulerComponent implements AfterViewInit
|
|
100
|
+
declare class BsSchedulerComponent implements AfterViewInit {
|
|
101
101
|
private readonly injector;
|
|
102
102
|
private readonly schedulerRef;
|
|
103
103
|
readonly events: _angular_core.InputSignal<SchedulerEvent[]>;
|
|
@@ -128,26 +128,32 @@ declare class BsSchedulerComponent implements AfterViewInit, OnDestroy {
|
|
|
128
128
|
start: Date;
|
|
129
129
|
end: Date;
|
|
130
130
|
} | null>;
|
|
131
|
-
readonly eventSelected:
|
|
132
|
-
readonly eventDblClick:
|
|
133
|
-
readonly eventCreate:
|
|
134
|
-
readonly eventUpdate:
|
|
135
|
-
readonly eventDelete:
|
|
136
|
-
readonly dateClick:
|
|
137
|
-
readonly selectionChange:
|
|
138
|
-
readonly resourceCreate:
|
|
139
|
-
readonly groupCreate:
|
|
140
|
-
readonly resourceUpdate:
|
|
141
|
-
readonly resourceDelete:
|
|
142
|
-
readonly currentWeekStart: _angular_core.Signal<Date>;
|
|
143
|
-
readonly currentWeekEnd: _angular_core.Signal<Date>;
|
|
144
|
-
readonly visibleEvents: _angular_core.Signal<SchedulerEvent[]>;
|
|
145
|
-
private readonly initialized;
|
|
146
|
-
private eventListeners;
|
|
131
|
+
readonly eventSelected: OutputEmitterRef<SchedulerEventSelectedEvent>;
|
|
132
|
+
readonly eventDblClick: OutputEmitterRef<SchedulerEventSelectedEvent>;
|
|
133
|
+
readonly eventCreate: OutputEmitterRef<SchedulerEventCreateEvent>;
|
|
134
|
+
readonly eventUpdate: OutputEmitterRef<SchedulerEventUpdateEvent>;
|
|
135
|
+
readonly eventDelete: OutputEmitterRef<SchedulerEventDeleteEvent>;
|
|
136
|
+
readonly dateClick: OutputEmitterRef<DateClickEvent>;
|
|
137
|
+
readonly selectionChange: OutputEmitterRef<SchedulerSelectionChangeEvent>;
|
|
138
|
+
readonly resourceCreate: OutputEmitterRef<SchedulerResourceCreateEvent>;
|
|
139
|
+
readonly groupCreate: OutputEmitterRef<SchedulerResourceCreateEvent>;
|
|
140
|
+
readonly resourceUpdate: OutputEmitterRef<SchedulerResourceUpdateEvent>;
|
|
141
|
+
readonly resourceDelete: OutputEmitterRef<SchedulerResourceDeleteEvent>;
|
|
147
142
|
ngAfterViewInit(): void;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
143
|
+
/**
|
|
144
|
+
* True while the wrapper itself assigns `view` / `date`. The element answers
|
|
145
|
+
* such a write with a synchronous `view-change` carrying its state at that
|
|
146
|
+
* moment, i.e. the OTHER value still old; adopting it would overwrite a date
|
|
147
|
+
* the consumer set in the same tick. Only the element's own navigation is
|
|
148
|
+
* written back.
|
|
149
|
+
*/
|
|
150
|
+
private writingNavigation;
|
|
151
|
+
private writeNavigation;
|
|
152
|
+
protected onEventSelected(e: Event): void;
|
|
153
|
+
protected onViewChange(e: Event): void;
|
|
154
|
+
protected onSelectionChange(e: Event): void;
|
|
155
|
+
/** Re-emits a WC event's detail on the matching output, unchanged. */
|
|
156
|
+
protected forward<T>(target: OutputEmitterRef<T>, e: Event): void;
|
|
151
157
|
/**
|
|
152
158
|
* Navigate to next period
|
|
153
159
|
*/
|