@nxgt/material 3.26.1 → 3.28.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/CHANGELOG.md +28 -0
- package/README.md +2 -2
- package/dist/{async-slice-gAbGnQT8.js → async-slice-DmhasXmq.js} +2 -2
- package/dist/{button-Cr9GIIj4.js → button-BjIg_Lz6.js} +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-s11lOfxB.js → chip-DIBIDUZH.js} +1 -1
- package/dist/{code-editor-DGIjL8Hr.js → code-editor-2EU-q9FV.js} +4 -4
- package/dist/code-editor.js +4 -4
- package/dist/{code-language-items-DCOQnaCo.js → code-language-items-C_UeMQMm.js} +2 -2
- package/dist/components/ui/display/chip/chip-parts.css +19 -0
- package/dist/{components-BEN2FVD-.js → components-Cl3Zyoe-.js} +15000 -14487
- package/dist/components.js +26 -26
- package/dist/{dialog-Crvg-MN5.js → dialog-LtXwv6N3.js} +1 -1
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-B71aggp0.js → dropdown-menu-ppMPD12c.js} +1 -1
- package/dist/editor.js +7 -7
- package/dist/{empty-state-8LddxMU4.js → empty-state-X_nikpBS.js} +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{i18n-provider-BDi9-6DO.js → i18n-provider-BfyDgd2o.js} +1 -1
- package/dist/i18n.js +5 -5
- package/dist/{icon-badge-DG7wLnHh.js → icon-badge-oLBh3Mlk.js} +1 -1
- package/dist/lib/components/ui/collections/facet-group/facet-group.d.ts +1 -1
- package/dist/lib/components/ui/collections/facet-group/types.d.ts +2 -0
- package/dist/lib/components/ui/collections/filter/bar/filter-bar-classes.d.ts +11 -1
- package/dist/lib/components/ui/collections/filter/bar/{filter-bar.d.ts → filter-bar-view.d.ts} +2 -2
- package/dist/lib/components/ui/collections/filter/bar/partials/filter-clear-all.d.ts +2 -2
- package/dist/lib/components/ui/collections/filter/bar/partials/filter-quick-pill.d.ts +4 -1
- package/dist/lib/components/ui/collections/filter/bar/partials/filter-quick-toggle.d.ts +3 -0
- package/dist/lib/components/ui/collections/filter/bar/partials/filter-scope-list.d.ts +6 -0
- package/dist/lib/components/ui/collections/filter/bar/partials/filter-scope-pill.d.ts +13 -0
- package/dist/lib/components/ui/collections/filter/bar/partials/use-quick-condition.d.ts +19 -0
- package/dist/lib/components/ui/collections/filter/bar/partials/use-quick-pill.d.ts +30 -0
- package/dist/lib/components/ui/collections/filter/bar/use-filter-bar-wiring.d.ts +5 -0
- package/dist/lib/components/ui/collections/filter/editors/boolean-editor.d.ts +3 -2
- package/dist/lib/components/ui/collections/filter/editors/checkbox-editor.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/editors/switch-editor.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/facets/filter-facets.d.ts +2 -2
- package/dist/lib/components/ui/collections/filter/filter-bar-url.d.ts +51 -0
- package/dist/lib/components/ui/collections/filter/index.d.ts +2 -0
- package/dist/lib/components/ui/collections/filter/internal.d.ts +3 -1
- package/dist/lib/components/ui/collections/filter/query/filter-results-status.d.ts +4 -1
- package/dist/lib/components/ui/collections/filter/query/types.d.ts +21 -3
- package/dist/lib/components/ui/collections/{server-table → filter/query}/use-answer-wait.d.ts +3 -1
- package/dist/lib/components/ui/collections/filter/query/use-apply-now.d.ts +6 -0
- package/dist/lib/components/ui/collections/filter/query/use-defaults.d.ts +15 -0
- package/dist/lib/components/ui/collections/filter/query/use-field-error.d.ts +5 -0
- package/dist/lib/components/ui/collections/filter/query/use-filter-query-options.d.ts +14 -0
- package/dist/lib/components/ui/collections/filter/query/use-filter-query-value.d.ts +2 -0
- package/dist/lib/components/ui/collections/filter/query/use-filter-query.d.ts +6 -2
- package/dist/lib/components/ui/collections/filter/query/use-filter-url-query.d.ts +52 -0
- package/dist/lib/components/ui/collections/filter/query/use-refusal-announcement.d.ts +10 -0
- package/dist/lib/components/ui/collections/filter/sections/chips/condition-panel.d.ts +2 -1
- package/dist/lib/components/ui/collections/filter/sections/chips/filter-chip-body.d.ts +4 -2
- package/dist/lib/components/ui/collections/filter/sections/chips/filter-chip-list.d.ts +3 -2
- package/dist/lib/components/ui/collections/filter/sections/chips/filter-default-chip.d.ts +14 -0
- package/dist/lib/components/ui/collections/filter/sections/chips/filter-default-group.d.ts +16 -0
- package/dist/lib/components/ui/collections/filter/sections/chips/filter-default-parts.d.ts +12 -0
- package/dist/lib/components/ui/collections/filter/sections/chips/filter-error-parts.d.ts +22 -0
- package/dist/lib/components/ui/collections/filter/sections/chips/use-control-description.d.ts +13 -0
- package/dist/lib/components/ui/collections/filter/sections/filter-facet-section.d.ts +5 -0
- package/dist/lib/components/ui/collections/filter/sections/filter-search.d.ts +4 -3
- package/dist/lib/components/ui/collections/filter/sections/filter-sections-classes.d.ts +8 -0
- package/dist/lib/components/ui/collections/filter/sections/renderers/choice-facet.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/sections/use-filter-shortcuts.d.ts +4 -3
- package/dist/lib/components/ui/collections/server-table/partials/server-table-empty-chips.d.ts +1 -1
- package/dist/lib/components/ui/collections/server-table/types.d.ts +13 -1
- package/dist/lib/components/ui/collections/server-table/use-filter-params.d.ts +5 -4
- package/dist/lib/components/ui/collections/server-table/use-table-answer.d.ts +1 -1
- package/dist/lib/components/ui/layout/app-shell/activity-column.d.ts +2 -2
- package/dist/lib/components/ui/layout/app-shell/activity-layout.d.ts +1 -1
- package/dist/lib/components/ui/layout/app-shell/activity-layout.types.d.ts +11 -0
- package/dist/lib/components/ui/layout/app-shell/backdrop-layer.d.ts +3 -1
- package/dist/lib/components/ui/layout/app-shell/shapes-clear-content.d.ts +24 -0
- package/dist/lib/components/ui/layout/app-shell/theme-backdrop.d.ts +3 -1
- package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +4 -3
- package/dist/lib/components/ui/layout/app-shell/watch-content.d.ts +10 -1
- package/dist/lib/components/ui/layout/auth-card/auth-card-backdrop.d.ts +4 -2
- package/dist/lib/components/ui/layout/auth-card/auth-card.d.ts +4 -2
- package/dist/lib/i18n/resources/en/en.d.ts +11 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +11 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +11 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +11 -0
- package/dist/lib/i18n/resources/resources.d.ts +22 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +43 -43
- package/dist/map.js +4 -4
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +2 -2
- package/dist/{public-QUiFLEoj.js → public-BeM7-x-m.js} +6 -6
- package/dist/{rich-code-block-CjD54THr.js → rich-code-block-B4TIjZRA.js} +4 -4
- package/dist/{sortable-provider-DYnyzfgR.js → sortable-provider-Dcsw0pgW.js} +1 -1
- package/dist/{spinner-CJtTRNAX.js → spinner-1Ia6Akhy.js} +1 -1
- package/dist/{stored-language-ClkfkueV.js → stored-language-DoWMr969.js} +22 -0
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-ufQL3SO6.js → theme-toggle-GlKtdgYz.js} +1 -1
- package/dist/{toolbar-items-DlioFgpM.js → toolbar-items-C1GdN9P9.js} +2 -2
- package/dist/{translate-material-O-uasx3u.js → translate-material-BneuBHXZ.js} +2 -2
- package/dist/{translator-C0uxN1Nh.js → translator-D88BbpXZ.js} +1 -1
- package/dist/{use-chat-composer-DzVO5mwz.js → use-chat-composer-beyfZPBD.js} +12 -12
- package/dist/{use-heading-spy-BHCVdJfr.js → use-heading-spy-BN0yeBod.js} +1 -1
- package/dist/{use-material-translation-B4Frk3vC.js → use-material-translation-Cqcwkuur.js} +2 -2
- package/docs/components/data-table-filter-and-lists.md +184 -3
- package/docs/components/navigation-and-layout.md +1 -1
- package/docs/guides/app-shell.md +38 -0
- package/docs/guides/backgrounds.md +5 -0
- package/docs/guides/i18n.md +7 -0
- package/docs/guides/server-lists-url.md +114 -1
- package/docs/roadmap.md +16 -0
- package/docs/troubleshooting.md +73 -5
- package/lib/components/ui/display/chip/chip-parts.css +19 -0
- package/package.json +2 -2
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { Box } from './keep-shapes-inside.js';
|
|
2
|
+
import { ClearMode } from './shapes-clear-content.js';
|
|
2
3
|
/**
|
|
3
4
|
* The boxes of the text (its glyph runs), the controls and the surfaces (cards, tables, lists: whole) of the region, in the content's own coordinates.
|
|
4
5
|
* Both walks stop at `MAX_CONTENT_BOXES`: text past it is not collected.
|
|
5
6
|
*/
|
|
6
7
|
export declare function collectOccupied(region: Element, anchored?: boolean): Box[];
|
|
8
|
+
/** The occupied boxes of a region, split for `keepClear="gaps"`: the surfaces (cards, lists, tables) apart from the text, controls and marked blocks. */
|
|
9
|
+
export declare function collectContent(region: Element, anchored?: boolean): {
|
|
10
|
+
solid: Box[];
|
|
11
|
+
surfaces: Box[];
|
|
12
|
+
};
|
|
7
13
|
/** A shape unit as the pass measured it: what to hide, whether the layer's edge or band already hides it, its box and its margin. */
|
|
8
14
|
export interface WatchedUnit {
|
|
9
15
|
/** The elements that carry `data-hidden`. */
|
|
@@ -27,10 +33,13 @@ export interface WatchedUnit {
|
|
|
27
33
|
* The occupied boxes are collected when the content changes or resizes and
|
|
28
34
|
* kept in content coordinates, so a scroll only shifts them: the scroll
|
|
29
35
|
* handler is a rAF-throttled loop over the cached boxes, no layout read.
|
|
36
|
+
* `mode` is the `keepClear` value: `all` (default) drops a glyph that meets any
|
|
37
|
+
* box; `gaps` lets one stay in a gap of 24px or more between surfaces
|
|
38
|
+
* (shapes-clear-content.ts); `off` keeps nothing clear.
|
|
30
39
|
* `anchored` is for a layer that scrolls with the content (absolute, not
|
|
31
40
|
* sticky): the boxes then move together and need no offset.
|
|
32
41
|
*/
|
|
33
|
-
export declare function watchContent(column: HTMLElement, anchored?: boolean): {
|
|
42
|
+
export declare function watchContent(column: HTMLElement, anchored?: boolean, mode?: ClearMode): {
|
|
34
43
|
/** Reads the page's occupied boxes (only when there are units) and the scroll offset. */
|
|
35
44
|
measure(next: WatchedUnit[]): void;
|
|
36
45
|
/** Writes `data-hidden` for the units given to the last `measure`. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { KeepClear } from '../app-shell/shapes-clear-content.js';
|
|
2
3
|
/**
|
|
3
4
|
* The layer behind an `AuthCard`'s content: the theme's background (`themed`)
|
|
4
5
|
* or the app's own node. Absolute, `aria-hidden`, `inert` and without pointer
|
|
@@ -6,9 +7,10 @@ import { ReactNode } from 'react';
|
|
|
6
7
|
* is `anchored` (no scroll offset). Its shapes stay whole and clear of the
|
|
7
8
|
* marked content (`data-keep-clear` and `data-keep-clear-box` on the card).
|
|
8
9
|
*/
|
|
9
|
-
export declare function AuthCardBackdrop({ backdrop, themed, }: {
|
|
10
|
+
export declare function AuthCardBackdrop({ backdrop, themed, keepClear, }: {
|
|
10
11
|
backdrop: ReactNode;
|
|
11
12
|
themed: boolean;
|
|
13
|
+
keepClear?: KeepClear;
|
|
12
14
|
}): import("react").JSX.Element;
|
|
13
15
|
/**
|
|
14
16
|
* The page's content, marked for the keep-clear pass when there is a backdrop
|
|
@@ -18,6 +20,6 @@ export declare function AuthCardBackdrop({ backdrop, themed, }: {
|
|
|
18
20
|
*/
|
|
19
21
|
export declare function AuthCardContent({ on, keepClear, children, }: {
|
|
20
22
|
on: boolean;
|
|
21
|
-
keepClear:
|
|
23
|
+
keepClear: KeepClear;
|
|
22
24
|
children: ReactNode;
|
|
23
25
|
}): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
@@ -35,9 +35,11 @@ export type AuthCardProps = Omit<ComponentProps<'main'>, 'title'> & {
|
|
|
35
35
|
* Keeps the backdrop's shapes clear of the brand row, the card and the
|
|
36
36
|
* page's text and controls: a shape that would meet one is hidden, never
|
|
37
37
|
* moved (the same pass as `ActivityLayout`'s). `true` by default; `false`
|
|
38
|
-
* lets the backdrop run under the card.
|
|
38
|
+
* lets the backdrop run under the card. `'gaps'` also lets a shape stay in a
|
|
39
|
+
* gap of 24px or more between two surfaces (it still meets no text, control
|
|
40
|
+
* or card).
|
|
39
41
|
*/
|
|
40
|
-
keepClear?: boolean;
|
|
42
|
+
keepClear?: boolean | 'gaps';
|
|
41
43
|
/** The form. */
|
|
42
44
|
children: ReactNode;
|
|
43
45
|
};
|
|
@@ -1332,6 +1332,17 @@ export declare const en: {
|
|
|
1332
1332
|
until: string;
|
|
1333
1333
|
"up-to": string;
|
|
1334
1334
|
};
|
|
1335
|
+
default: {
|
|
1336
|
+
label: string;
|
|
1337
|
+
hint: string;
|
|
1338
|
+
tag: string;
|
|
1339
|
+
change: string;
|
|
1340
|
+
};
|
|
1341
|
+
error: {
|
|
1342
|
+
tag: string;
|
|
1343
|
+
label: string;
|
|
1344
|
+
announce: string;
|
|
1345
|
+
};
|
|
1335
1346
|
bar: {
|
|
1336
1347
|
label: string;
|
|
1337
1348
|
search: string;
|
|
@@ -1322,6 +1322,17 @@ declare const _default: {
|
|
|
1322
1322
|
"until": "Until {value}",
|
|
1323
1323
|
"up-to": "Up to {value}"
|
|
1324
1324
|
},
|
|
1325
|
+
"default": {
|
|
1326
|
+
"label": "Default",
|
|
1327
|
+
"hint": "Default value, in effect until you choose one",
|
|
1328
|
+
"tag": "· {default}",
|
|
1329
|
+
"change": "{filter}, default value. Change"
|
|
1330
|
+
},
|
|
1331
|
+
"error": {
|
|
1332
|
+
"tag": "Invalid",
|
|
1333
|
+
"label": "Invalid: {message}",
|
|
1334
|
+
"announce": "{field}: {message}"
|
|
1335
|
+
},
|
|
1325
1336
|
"bar": {
|
|
1326
1337
|
"label": "Filters",
|
|
1327
1338
|
"search": "Search",
|
|
@@ -1332,6 +1332,17 @@ export declare const fr: {
|
|
|
1332
1332
|
until: string;
|
|
1333
1333
|
"up-to": string;
|
|
1334
1334
|
};
|
|
1335
|
+
default: {
|
|
1336
|
+
label: string;
|
|
1337
|
+
hint: string;
|
|
1338
|
+
tag: string;
|
|
1339
|
+
change: string;
|
|
1340
|
+
};
|
|
1341
|
+
error: {
|
|
1342
|
+
tag: string;
|
|
1343
|
+
label: string;
|
|
1344
|
+
announce: string;
|
|
1345
|
+
};
|
|
1335
1346
|
bar: {
|
|
1336
1347
|
label: string;
|
|
1337
1348
|
search: string;
|
|
@@ -1322,6 +1322,17 @@ declare const _default: {
|
|
|
1322
1322
|
"until": "Jusqu'au {value}",
|
|
1323
1323
|
"up-to": "Jusqu'à {value}"
|
|
1324
1324
|
},
|
|
1325
|
+
"default": {
|
|
1326
|
+
"label": "Par défaut",
|
|
1327
|
+
"hint": "Valeur par défaut, appliquée tant que vous n'en choisissez pas une",
|
|
1328
|
+
"tag": "· {default}",
|
|
1329
|
+
"change": "{filter}, valeur par défaut. Modifier"
|
|
1330
|
+
},
|
|
1331
|
+
"error": {
|
|
1332
|
+
"tag": "Invalide",
|
|
1333
|
+
"label": "Invalide : {message}",
|
|
1334
|
+
"announce": "{field} : {message}"
|
|
1335
|
+
},
|
|
1325
1336
|
"bar": {
|
|
1326
1337
|
"label": "Filtres",
|
|
1327
1338
|
"search": "Rechercher",
|
|
@@ -1330,6 +1330,17 @@ export declare const resources: {
|
|
|
1330
1330
|
until: string;
|
|
1331
1331
|
"up-to": string;
|
|
1332
1332
|
};
|
|
1333
|
+
default: {
|
|
1334
|
+
label: string;
|
|
1335
|
+
hint: string;
|
|
1336
|
+
tag: string;
|
|
1337
|
+
change: string;
|
|
1338
|
+
};
|
|
1339
|
+
error: {
|
|
1340
|
+
tag: string;
|
|
1341
|
+
label: string;
|
|
1342
|
+
announce: string;
|
|
1343
|
+
};
|
|
1333
1344
|
bar: {
|
|
1334
1345
|
label: string;
|
|
1335
1346
|
search: string;
|
|
@@ -4052,6 +4063,17 @@ export declare const resources: {
|
|
|
4052
4063
|
until: string;
|
|
4053
4064
|
"up-to": string;
|
|
4054
4065
|
};
|
|
4066
|
+
default: {
|
|
4067
|
+
label: string;
|
|
4068
|
+
hint: string;
|
|
4069
|
+
tag: string;
|
|
4070
|
+
change: string;
|
|
4071
|
+
};
|
|
4072
|
+
error: {
|
|
4073
|
+
tag: string;
|
|
4074
|
+
label: string;
|
|
4075
|
+
announce: string;
|
|
4076
|
+
};
|
|
4055
4077
|
bar: {
|
|
4056
4078
|
label: string;
|
|
4057
4079
|
search: string;
|