@mintplayer/web-components 2.15.0 → 2.16.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/chunks/mp-datatable-B7st6G-I.mjs +2238 -0
- package/chunks/{mp-datetime-picker.element-D1CiLbHm.mjs → mp-datetime-picker.element-DsWA1AFs.mjs} +2 -2
- package/chunks/{mp-timepicker.element-COZEUIoE.mjs → mp-timepicker.element-CwaAAOcm.mjs} +1 -1
- package/chunks/{overlay-controller-D6agzzOI.mjs → overlay-controller-DifgO6jT.mjs} +103 -47
- package/datatable/index.mjs +6 -5
- package/datatable/src/components/mp-datatable.d.ts +201 -1
- package/datatable/src/index.d.ts +3 -1
- package/datatable/src/types/column-def.d.ts +61 -0
- package/datatable/src/types/filter.d.ts +138 -0
- package/datatable/src/types/index.d.ts +3 -2
- package/datatable/src/types/labels.d.ts +58 -0
- package/datepicker/index.mjs +1 -1
- package/datetime-picker/index.mjs +1 -1
- package/file-manager/index.mjs +1 -1
- package/navbar/index.mjs +1 -1
- package/overlay/index.mjs +5 -2
- package/overlay/src/index.d.ts +2 -0
- package/overlay/src/overlay-controller.d.ts +27 -0
- package/overlay/src/overlay-portal.d.ts +53 -0
- package/package.json +1 -1
- package/ribbon/index.mjs +1 -1
- package/scheduler/index.mjs +2 -2
- package/timepicker/index.mjs +1 -1
- package/tree-select/index.mjs +1 -1
- package/chunks/mp-datatable-UJI8E73X.mjs +0 -1400
- package/datatable/src/styles/datatable.styles.d.ts +0 -2
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types for the distinct-value filter panel.
|
|
3
|
+
*
|
|
4
|
+
* The component owns the *panel*, never the *filtering*: it collects a
|
|
5
|
+
* selection and emits it. Which rows that selection removes, and whether the
|
|
6
|
+
* removal happens client-side or on a server, belongs to the consumer.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* One selectable entry in the filter panel's checkbox list.
|
|
10
|
+
*
|
|
11
|
+
* `value` is the raw cell value and is what a consumer matches on; `label` is
|
|
12
|
+
* what the user reads. Identity across re-queries is `value` under SameValueZero
|
|
13
|
+
* (so `NaN` matches itself), never `label` — two rows can render the same text.
|
|
14
|
+
*/
|
|
15
|
+
export interface DistinctValue {
|
|
16
|
+
value: unknown;
|
|
17
|
+
label: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The value list backing one column's panel, split into the two buckets the
|
|
21
|
+
* panel renders differently.
|
|
22
|
+
*
|
|
23
|
+
* `matching` are values present in the data as currently filtered. `remaining`
|
|
24
|
+
* are values that were present when the column's filter was first applied but
|
|
25
|
+
* are not any more — they stay listed (dimmed) so a user can widen a selection
|
|
26
|
+
* without first clearing it. `hasMore` reports that the source truncated the
|
|
27
|
+
* list, which is what drives a re-query as the user types.
|
|
28
|
+
*/
|
|
29
|
+
export interface DistinctValues {
|
|
30
|
+
matching: DistinctValue[];
|
|
31
|
+
remaining: DistinctValue[];
|
|
32
|
+
hasMore: boolean;
|
|
33
|
+
}
|
|
34
|
+
/** One request for a column's distinct values. */
|
|
35
|
+
export interface DistinctsRequest {
|
|
36
|
+
/** `DatatableColumnDef.name` of the column whose panel is open. */
|
|
37
|
+
column: string;
|
|
38
|
+
/** Current search term; `''` when the user has typed nothing. */
|
|
39
|
+
search: string;
|
|
40
|
+
/** Aborted when the panel closes or a newer request supersedes this one. */
|
|
41
|
+
signal: AbortSignal;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Consumer-supplied source of distinct values.
|
|
45
|
+
*
|
|
46
|
+
* Resolving `null` means "I have nothing for this column" and the component
|
|
47
|
+
* falls back to computing the list locally from the rows it holds — which it
|
|
48
|
+
* can only do when it holds all of them (no `fetch`, not externally paged, no
|
|
49
|
+
* tree children). A source that returns `null` for a column it cannot answer is
|
|
50
|
+
* therefore the correct way to mix server-backed and local columns in one table.
|
|
51
|
+
*/
|
|
52
|
+
export type DatatableDistincts = (request: DistinctsRequest) => Promise<DistinctValues | null>;
|
|
53
|
+
/**
|
|
54
|
+
* How a column's built-in panel asks the question.
|
|
55
|
+
*
|
|
56
|
+
* `'values'` lists the column's distinct values as checkboxes. `'comparison'`
|
|
57
|
+
* offers an operator and a single operand — the right shape for a quantity,
|
|
58
|
+
* where ticking forty individual years is a poor way to say "after 1990".
|
|
59
|
+
*
|
|
60
|
+
* The consumer picks this per column and the component never infers it: a
|
|
61
|
+
* numeric column is often an enum (a year, in a five-row table) and a string
|
|
62
|
+
* column is often ordinal, so any guess would be wrong about half the time.
|
|
63
|
+
*/
|
|
64
|
+
export type FilterMode = 'values' | 'comparison';
|
|
65
|
+
/** The comparison a `'comparison'` panel applies. */
|
|
66
|
+
export type FilterOperator = 'eq' | 'neq' | 'lt' | 'lte' | 'gt' | 'gte';
|
|
67
|
+
/**
|
|
68
|
+
* The `type` of the operand input in a `'comparison'` panel.
|
|
69
|
+
*
|
|
70
|
+
* Quantities only, and deliberately no `'text'`. A comparison against a string
|
|
71
|
+
* is either exact-match — which `'values'` already does better, with a list —
|
|
72
|
+
* or a lexicographic `>`, which is almost never what someone means by
|
|
73
|
+
* "filter this column". **A free-text filter is a nest-your-own case**: supply a
|
|
74
|
+
* `filterRenderer` (Angular: `*bsDatatableFilterPanel`) and drive it from the
|
|
75
|
+
* same `FilterContext` the built-in panels use. There is no `contains` operator
|
|
76
|
+
* for the same reason.
|
|
77
|
+
*/
|
|
78
|
+
export type FilterInputType = 'number' | 'date';
|
|
79
|
+
/** A column's current filter selection. */
|
|
80
|
+
export interface FilterSelection {
|
|
81
|
+
values: DistinctValue[];
|
|
82
|
+
/** `true` = exclude the selected values instead of including them. */
|
|
83
|
+
inverse: boolean;
|
|
84
|
+
/** Comparison-mode operator. Ignored in `'values'` mode. */
|
|
85
|
+
operator?: FilterOperator;
|
|
86
|
+
/**
|
|
87
|
+
* Comparison-mode operand: a `number` for `filterInputType: 'number'`, an
|
|
88
|
+
* ISO `yyyy-mm-dd` string for `'date'`, otherwise the raw text. `null` means
|
|
89
|
+
* the user has not entered one, and no filter is active.
|
|
90
|
+
*/
|
|
91
|
+
operand?: string | number | null;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Handed to `FilterRenderer` so a consumer's own panel can drive the same
|
|
95
|
+
* machinery the default panel uses — the value list, the search re-query and
|
|
96
|
+
* the change event are the component's, whatever renders them.
|
|
97
|
+
*
|
|
98
|
+
* `values()` and `loading()` are plain getters, not signals: the WC core is
|
|
99
|
+
* framework-agnostic. Re-render on `onChange`.
|
|
100
|
+
*/
|
|
101
|
+
export interface FilterContext {
|
|
102
|
+
/** The current list, or `null` while nothing has loaded (or nothing can). */
|
|
103
|
+
values(): DistinctValues | null;
|
|
104
|
+
/** `true` while a source request for this column is in flight. */
|
|
105
|
+
loading(): boolean;
|
|
106
|
+
/** Set the search term. Debounced; re-queries the source only when needed. */
|
|
107
|
+
search(term: string): void;
|
|
108
|
+
/** Replace the selection and emit the change event. */
|
|
109
|
+
apply(values: DistinctValue[], inverse: boolean): void;
|
|
110
|
+
/** Clear the selection, reset `inverse`, and emit the change event. */
|
|
111
|
+
clear(): void;
|
|
112
|
+
/** Subscribe to value-list and selection changes. Returns an unsubscribe. */
|
|
113
|
+
onChange(callback: () => void): () => void;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Detail of the `mp-datatable-filter-change` event.
|
|
117
|
+
*
|
|
118
|
+
* A discriminated union on `mode`, not one flat shape with half its fields
|
|
119
|
+
* unset: a consumer switching on `mode` cannot then read a field the other mode
|
|
120
|
+
* never fills, which is the mistake a single optional-everything interface
|
|
121
|
+
* invites. Clearing fires the shape of the column's own mode, emptied.
|
|
122
|
+
*/
|
|
123
|
+
export type FilterChangeDetail = ValuesFilterChangeDetail | ComparisonFilterChangeDetail;
|
|
124
|
+
export interface ValuesFilterChangeDetail {
|
|
125
|
+
mode: 'values';
|
|
126
|
+
/** `DatatableColumnDef.name` of the column whose selection changed. */
|
|
127
|
+
column: string;
|
|
128
|
+
/** Empty when the user cleared the filter. */
|
|
129
|
+
selected: DistinctValue[];
|
|
130
|
+
inverse: boolean;
|
|
131
|
+
}
|
|
132
|
+
export interface ComparisonFilterChangeDetail {
|
|
133
|
+
mode: 'comparison';
|
|
134
|
+
column: string;
|
|
135
|
+
operator: FilterOperator;
|
|
136
|
+
/** `null` when the user cleared the filter or emptied the input. */
|
|
137
|
+
operand: string | number | null;
|
|
138
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export type { DatatableColumnDef, CellContent, CellRenderer, HeaderRenderer, RowKey, RowRenderer, RowRenderContext, } from './column-def';
|
|
1
|
+
export type { DatatableColumnDef, CellContent, CellRenderer, HeaderRenderer, FilterRenderer, RowKey, RowRenderer, RowRenderContext, } from './column-def';
|
|
2
|
+
export type { DistinctValue, DistinctValues, DistinctsRequest, DatatableDistincts, FilterSelection, FilterContext, FilterChangeDetail, ValuesFilterChangeDetail, ComparisonFilterChangeDetail, FilterMode, FilterOperator, FilterInputType, } from './filter';
|
|
2
3
|
export type { DatatableFetchRequest, DatatableFetchResponse, DatatableFetch, TreeRowExpandDetail, TreeExpandedIdsChangeDetail, TreeIdKey, TreeSelectionStrategy, } from './tree';
|
|
3
|
-
export { DEFAULT_DATATABLE_LABELS } from './labels';
|
|
4
|
+
export { DEFAULT_DATATABLE_LABELS, FILTER_OPERATOR_SYMBOLS, DEFAULT_FILTER_OPERATORS } from './labels';
|
|
4
5
|
export type { DatatableLabels } from './labels';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FilterOperator } from './filter';
|
|
1
2
|
/**
|
|
2
3
|
* User-visible strings rendered by `<mp-datatable>`. Consumers override via the
|
|
3
4
|
* `labels` property; merge semantics are partial — any key the consumer omits
|
|
@@ -21,10 +22,67 @@ export interface DatatableLabels {
|
|
|
21
22
|
rowsPerPage: string;
|
|
22
23
|
resizeColumn: (column: string) => string;
|
|
23
24
|
selectRow: (rowNumber: number) => string;
|
|
25
|
+
/** Accessible name of a column's filter trigger in the filter row. */
|
|
26
|
+
filterColumn: (column: string) => string;
|
|
27
|
+
/**
|
|
28
|
+
* Accessible name of a filter trigger whose column is filtered. `summary` is
|
|
29
|
+
* the column's `filterSummary` when it set one — a formatter, not a suffix,
|
|
30
|
+
* because a translation may need it first.
|
|
31
|
+
*/
|
|
32
|
+
filterColumnActive: (column: string, summary?: string) => string;
|
|
33
|
+
/** The filter panel's Clear button. */
|
|
34
|
+
filterClear: (column: string) => string;
|
|
35
|
+
/** The filter panel's search box. */
|
|
36
|
+
filterSearch: string;
|
|
37
|
+
/** The filter panel's include/exclude toggle. */
|
|
38
|
+
filterInvert: string;
|
|
39
|
+
/** Accessible name of the filter panel's checkbox list. */
|
|
40
|
+
filterGroup: (column: string) => string;
|
|
41
|
+
/** Shown when the source truncated the value list. */
|
|
42
|
+
filterHasMore: string;
|
|
43
|
+
/** Shown when no value list could be produced for this column. */
|
|
44
|
+
filterNoValues: string;
|
|
45
|
+
/**
|
|
46
|
+
* Renders one distinct value as a checkbox label.
|
|
47
|
+
*
|
|
48
|
+
* The default implementation reads `filterNone` / `filterEmpty` /
|
|
49
|
+
* `filterTrue` / `filterFalse` off `this`, so it is invoked as a METHOD on
|
|
50
|
+
* the merged label set and a consumer translating only those four keys gets
|
|
51
|
+
* them. A consumer who replaces `filterValue` outright owns all four cases.
|
|
52
|
+
*/
|
|
53
|
+
filterValue: (this: DatatableLabels, value: unknown) => string;
|
|
54
|
+
/** `filterValue`'s rendering of `null` / `undefined`. */
|
|
55
|
+
filterNone: string;
|
|
56
|
+
/** `filterValue`'s rendering of the empty string. */
|
|
57
|
+
filterEmpty: string;
|
|
58
|
+
/** `filterValue`'s rendering of `true`. */
|
|
59
|
+
filterTrue: string;
|
|
60
|
+
/** `filterValue`'s rendering of `false`. */
|
|
61
|
+
filterFalse: string;
|
|
62
|
+
/** Announced when a column's filter selection changes. */
|
|
63
|
+
announceFilter: (column: string, count: number) => string;
|
|
64
|
+
/** Accessible name of the operator selector in a comparison panel. */
|
|
65
|
+
filterOperator: string;
|
|
66
|
+
/** Accessible name of the operand input in a comparison panel. */
|
|
67
|
+
filterOperand: string;
|
|
68
|
+
/**
|
|
69
|
+
* Visible text of each operator option.
|
|
70
|
+
*
|
|
71
|
+
* Words, not bare glyphs: `<` and `>` are read as "less than sign" by some
|
|
72
|
+
* screen readers and not at all by others, and the symbol is carried
|
|
73
|
+
* separately so the option still reads as a symbol to sighted users.
|
|
74
|
+
*/
|
|
75
|
+
filterOperatorLabel: (operator: FilterOperator) => string;
|
|
76
|
+
/** Announced when a comparison filter changes. */
|
|
77
|
+
announceComparisonFilter: (column: string, operator: string, operand: string) => string;
|
|
24
78
|
/** Live-region announcements (Phase E). */
|
|
25
79
|
announceSorted: (column: string, direction: 'ascending' | 'descending' | 'none') => string;
|
|
26
80
|
announcePage: (page: number, totalPages: number) => string;
|
|
27
81
|
announceSelection: (count: number) => string;
|
|
28
82
|
announceLoaded: (rows: number) => string;
|
|
29
83
|
}
|
|
84
|
+
/** The symbol shown alongside each operator's words. */
|
|
85
|
+
export declare const FILTER_OPERATOR_SYMBOLS: Record<FilterOperator, string>;
|
|
86
|
+
/** Every operator, in the order a panel offers them when a column names none. */
|
|
87
|
+
export declare const DEFAULT_FILTER_OPERATORS: FilterOperator[];
|
|
30
88
|
export declare const DEFAULT_DATATABLE_LABELS: DatatableLabels;
|
package/datepicker/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { html as d, unsafeCSS as u, LitElement as p, nothing as c } from "lit";
|
|
2
2
|
import { query as a } from "lit/decorators.js";
|
|
3
|
-
import { O as h } from "../chunks/overlay-controller-
|
|
3
|
+
import { O as h } from "../chunks/overlay-controller-DifgO6jT.mjs";
|
|
4
4
|
import "lit/directives/ref.js";
|
|
5
5
|
import { H as b } from "../chunks/host-aria-WSGs7SPQ.mjs";
|
|
6
6
|
import "../chunks/mp-calendar.element-CJ8-t-Zn.mjs";
|
package/file-manager/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { createRef as x, ref as C } from "lit/directives/ref.js";
|
|
|
9
9
|
import { styleMap as k } from "lit/directives/style-map.js";
|
|
10
10
|
import "../chunks/mp-splitter-Ckn1kN4v.mjs";
|
|
11
11
|
import "../chunks/mp-treeview-C8iltDbq.mjs";
|
|
12
|
-
import "../chunks/mp-datatable-
|
|
12
|
+
import "../chunks/mp-datatable-B7st6G-I.mjs";
|
|
13
13
|
const E = g(`:host {
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
package/navbar/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { unsafeCSS as n, LitElement as d, html as o } from "lit";
|
|
2
|
-
import { O as v } from "../chunks/overlay-controller-
|
|
2
|
+
import { O as v } from "../chunks/overlay-controller-DifgO6jT.mjs";
|
|
3
3
|
const p = n(`.navbar {
|
|
4
4
|
--bs-navbar-padding-x: 0;
|
|
5
5
|
--bs-navbar-padding-y: 0.5rem;
|
package/overlay/index.mjs
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { O as e } from "../chunks/overlay-controller-
|
|
1
|
+
import { O as e, a as o, c as n, o as t } from "../chunks/overlay-controller-DifgO6jT.mjs";
|
|
2
2
|
export {
|
|
3
|
-
e as OverlayController
|
|
3
|
+
e as OverlayController,
|
|
4
|
+
o as acquirePortal,
|
|
5
|
+
n as currentOverlayContainer,
|
|
6
|
+
t as openPaneCount
|
|
4
7
|
};
|
package/overlay/src/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
export { acquirePortal, currentOverlayContainer, openPaneCount } from './overlay-portal';
|
|
2
|
+
export type { PortalHandle } from './overlay-portal';
|
|
1
3
|
export { OverlayController } from './overlay-controller';
|
|
2
4
|
export type { OverlayControllerOptions, OverlayPosition, OverlayOriginX, OverlayOriginY, PanelWidth, ScrollStrategy, } from './overlay-controller';
|
|
@@ -91,6 +91,24 @@ export interface OverlayControllerOptions {
|
|
|
91
91
|
* - `string` — any CSS width value (`'50vw'`, `'fit-content'`, …)
|
|
92
92
|
*/
|
|
93
93
|
panelWidth?: PanelWidth;
|
|
94
|
+
/**
|
|
95
|
+
* Render the panel into a document-root overlay pane instead of leaving it
|
|
96
|
+
* where the host rendered it. Default: false, so every existing consumer is
|
|
97
|
+
* unaffected.
|
|
98
|
+
*
|
|
99
|
+
* A panel left in place is clipped by any `overflow: auto` ancestor and
|
|
100
|
+
* stacked against whatever `z-index` its neighbours use; a portalled one is
|
|
101
|
+
* neither. Use it when the panel opens from inside a scroll container, or
|
|
102
|
+
* when the host's ancestors belong to a consumer's application and so cannot
|
|
103
|
+
* be relied on to avoid establishing a fixed containing block.
|
|
104
|
+
*
|
|
105
|
+
* The controller does **not** render the panel — it never has. It acquires
|
|
106
|
+
* the pane before the host's update, so the host can render into
|
|
107
|
+
* {@link OverlayController.portalContainer} during that same update, and
|
|
108
|
+
* releases it on close. `panel()` must therefore resolve to an element inside
|
|
109
|
+
* that container while the overlay is open.
|
|
110
|
+
*/
|
|
111
|
+
portal?: boolean;
|
|
94
112
|
onOpen?: () => void;
|
|
95
113
|
onClose?: () => void;
|
|
96
114
|
}
|
|
@@ -160,10 +178,19 @@ export declare class OverlayController implements ReactiveController {
|
|
|
160
178
|
/** Inline `padding-right` we wrote on <body> to compensate for the
|
|
161
179
|
* disappearing scrollbar — captured so release() can restore exactly. */
|
|
162
180
|
private blockedBodyPaddingRight;
|
|
181
|
+
/** Live pane in the document-root container, when `options.portal` is set. */
|
|
182
|
+
private portalHandle;
|
|
163
183
|
constructor(host: ReactiveControllerHost & HTMLElement, options: OverlayControllerOptions);
|
|
164
184
|
hostConnected(): void;
|
|
165
185
|
hostDisconnected(): void;
|
|
166
186
|
get isOpen(): boolean;
|
|
187
|
+
/**
|
|
188
|
+
* The document-root pane to render the panel into, or `null` when this
|
|
189
|
+
* overlay is closed or not portalled. Read it from the host's update so the
|
|
190
|
+
* panel exists by the time the controller positions it.
|
|
191
|
+
*/
|
|
192
|
+
get portalContainer(): HTMLElement | null;
|
|
193
|
+
private releasePortal;
|
|
167
194
|
/**
|
|
168
195
|
* Whether this overlay is the top-most dismissible layer — i.e. whether an
|
|
169
196
|
* Escape belongs to IT rather than to something opened on top of it.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A document-root overlay container, in the spirit of `@angular/cdk/overlay`'s
|
|
3
|
+
* `OverlayContainer` — the DOM-ownership half that `OverlayController` has
|
|
4
|
+
* deliberately never had. The controller positions; this owns where the panel
|
|
5
|
+
* lives. They compose, and either works without the other.
|
|
6
|
+
*
|
|
7
|
+
* ## Why a panel would leave its own subtree
|
|
8
|
+
*
|
|
9
|
+
* A panel rendered in place is clipped by any `overflow: auto` ancestor and
|
|
10
|
+
* stacked against whatever `z-index` its neighbours happen to use. The house
|
|
11
|
+
* answer so far has been `position: fixed` plus a hand-picked `z-index` per
|
|
12
|
+
* component, which holds only while **no ancestor establishes a fixed
|
|
13
|
+
* containing block**. That rule is enforced by comments, and it is unenforceable
|
|
14
|
+
* outright when the ancestors belong to a consumer's application — as they do
|
|
15
|
+
* for a light-DOM component such as `mp-datatable`.
|
|
16
|
+
*
|
|
17
|
+
* Moving the panel to a container that is the last child of `<body>` removes
|
|
18
|
+
* both problems at once: nothing clips it, and panes stack in DOM order rather
|
|
19
|
+
* than by a number each component invented on its own.
|
|
20
|
+
*
|
|
21
|
+
* ## The invariant this file exists to protect
|
|
22
|
+
*
|
|
23
|
+
* **The container must never establish a containing block.** No `transform`,
|
|
24
|
+
* `filter`, `backdrop-filter`, `perspective`, `contain`, `will-change` or
|
|
25
|
+
* `container-type`. Any of those would make it the containing block for the
|
|
26
|
+
* `position: fixed` panes inside it, and every panel's viewport coordinates —
|
|
27
|
+
* written by `OverlayController` from `getBoundingClientRect()` — would be
|
|
28
|
+
* silently wrong. This is the one ancestor we control; `overlay-portal.spec.ts`
|
|
29
|
+
* asserts the computed style so a later edit cannot quietly reintroduce the trap.
|
|
30
|
+
*
|
|
31
|
+
* Measured (Chromium 151, Firefox 153, WebKit 26.5): with these styles a
|
|
32
|
+
* `position: fixed` child of a pane resolves against the viewport at exactly
|
|
33
|
+
* (0, 0), and 20 acquire/release cycles leave no orphaned nodes.
|
|
34
|
+
*/
|
|
35
|
+
/** A single pane inside the shared container. Release it when the panel closes. */
|
|
36
|
+
export interface PortalHandle {
|
|
37
|
+
/** The element to render the panel into. Positioned by `OverlayController`. */
|
|
38
|
+
readonly container: HTMLElement;
|
|
39
|
+
/** Removes the pane, and the shared container with it when this was the last one. */
|
|
40
|
+
release(): void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Acquires a pane in the shared document-root container.
|
|
44
|
+
*
|
|
45
|
+
* Returns `null` during SSR, where there is no document to attach to; callers
|
|
46
|
+
* fall back to rendering in place, which is correct for a non-interactive
|
|
47
|
+
* server render.
|
|
48
|
+
*/
|
|
49
|
+
export declare function acquirePortal(): PortalHandle | null;
|
|
50
|
+
/** Test seam: the live container, or null when nothing is open. */
|
|
51
|
+
export declare function currentOverlayContainer(): HTMLElement | null;
|
|
52
|
+
/** Test seam. */
|
|
53
|
+
export declare function openPaneCount(): number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/web-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "Framework-agnostic Lit web components for the @mintplayer/bootstrap design system. Consumed by @mintplayer/ng-bootstrap, @mintplayer/react-bootstrap, and @mintplayer/vue-bootstrap.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
package/ribbon/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement as k, css as g, nothing as L, html as d } from "lit";
|
|
2
2
|
import { property as l, state as _, query as S } from "lit/decorators.js";
|
|
3
3
|
import { L as se } from "../chunks/live-announcer-Bi0orG4n.mjs";
|
|
4
|
-
import { O as G } from "../chunks/overlay-controller-
|
|
4
|
+
import { O as G } from "../chunks/overlay-controller-DifgO6jT.mjs";
|
|
5
5
|
var be = Object.defineProperty, A = (s, e, i, r) => {
|
|
6
6
|
for (var t = void 0, o = s.length - 1, n; o >= 0; o--)
|
|
7
7
|
(n = s[o]) && (t = n(e, i, t) || t);
|
package/scheduler/index.mjs
CHANGED
|
@@ -4,10 +4,10 @@ import { e as pe } from "../chunks/error-text-B45eDAt1.mjs";
|
|
|
4
4
|
import { D as ve, s as H, d as h, j as E, w, v as X, p as me, x as j, z as C, y as O, r as ie, u as re, q as ge, k as fe } from "../chunks/id-DNZVAnGC.mjs";
|
|
5
5
|
import { f as ye } from "../chunks/form-control.styles-C3j87Sn3.mjs";
|
|
6
6
|
import { i as be } from "../chunks/invalid-feedback.styles-he0JYrJm.mjs";
|
|
7
|
-
import { O as _ } from "../chunks/overlay-controller-
|
|
7
|
+
import { O as _ } from "../chunks/overlay-controller-DifgO6jT.mjs";
|
|
8
8
|
import "../chunks/mp-checkbox-CzwS7Y_t.mjs";
|
|
9
9
|
import "../chunks/mp-select-BNrbPwN4.mjs";
|
|
10
|
-
import "../chunks/mp-datetime-picker.element-
|
|
10
|
+
import "../chunks/mp-datetime-picker.element-DsWA1AFs.mjs";
|
|
11
11
|
function oe(p, e = []) {
|
|
12
12
|
for (const t of p) {
|
|
13
13
|
if (H(t)) {
|
package/timepicker/index.mjs
CHANGED
package/tree-select/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { unsafeCSS as p, LitElement as u, nothing as o } from "lit";
|
|
2
2
|
import { s as m, i as b, d } from "../chunks/install-light-styles-DbCAGFOC.mjs";
|
|
3
3
|
import { repeat as f } from "lit/directives/repeat.js";
|
|
4
|
-
import { O as _ } from "../chunks/overlay-controller-
|
|
4
|
+
import { O as _ } from "../chunks/overlay-controller-DifgO6jT.mjs";
|
|
5
5
|
import { L as v } from "../chunks/live-announcer-Bi0orG4n.mjs";
|
|
6
6
|
import { d as g } from "../chunks/focus-restore-DxuP1Oe2.mjs";
|
|
7
7
|
import { H as y } from "../chunks/host-aria-WSGs7SPQ.mjs";
|