@nxgt/material 3.63.0 → 3.65.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.
Files changed (83) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/{alert-dialog-RHm6WtQj.js → alert-dialog-C0nGUSCP.js} +1 -1
  3. package/dist/{async-slice-DmX59NyA.js → async-slice-CyansBvD.js} +1 -1
  4. package/dist/{button-DfS_amfQ.js → button-D5k3K-gM.js} +1 -1
  5. package/dist/charts.js +818 -807
  6. package/dist/{chip-Cbndukko.js → chip-lWXIJkqo.js} +2 -2
  7. package/dist/{code-editor-B0tN8Ha_.js → code-editor-aXG4CdY-.js} +403 -393
  8. package/dist/code-editor.js +5 -5
  9. package/dist/{code-language-items-andgHKrM.js → code-language-items-CsaXyApg.js} +2 -2
  10. package/dist/components/ui/display/chip/chip-soft.css +19 -5
  11. package/dist/{components-Cm2doOJS.js → components-DNcTvjlv.js} +15083 -14933
  12. package/dist/components.js +21 -21
  13. package/dist/{dialog-Bd7Hid2L.js → dialog-DWNaxpa-.js} +4 -4
  14. package/dist/dnd.js +1 -1
  15. package/dist/{dropdown-menu-_SyVmSuy.js → dropdown-menu-ChvAIQIW.js} +1 -1
  16. package/dist/editor.js +10 -10
  17. package/dist/{empty-state-D-2ZMXXJ.js → empty-state-CFLcVzKL.js} +2 -2
  18. package/dist/{field-blur-DyOByjzw.js → field-blur-CV9orzdJ.js} +1 -1
  19. package/dist/{field-blur-context-DPe5_Nv5.js → field-blur-context-C8BX8IBy.js} +1 -1
  20. package/dist/{hooks-a7_exKWS.js → hooks-DilW-3jc.js} +2 -2
  21. package/dist/hooks.js +2 -2
  22. package/dist/{hover-card-D_0smKBQ.js → hover-card-IeS_1RPH.js} +1 -1
  23. package/dist/i18n.js +3 -3
  24. package/dist/{icon-badge-CBCU3ySF.js → icon-badge-Bf4SoA2i.js} +3 -3
  25. package/dist/{icon-button-hKHsWTAt.js → icon-button-l3dQTRrC.js} +1 -1
  26. package/dist/lib/components/ui/actions/load-more-footer/load-more-footer.d.ts +11 -2
  27. package/dist/lib/components/ui/actions/load-more-footer/use-footer-focus.d.ts +15 -0
  28. package/dist/lib/components/ui/actions/load-more-footer/use-last-page.d.ts +9 -0
  29. package/dist/lib/components/ui/collections/filter/bar/partials/filter-inline-chips.d.ts +11 -0
  30. package/dist/lib/components/ui/collections/filter/bar/partials/filter-inline-list.d.ts +6 -0
  31. package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +1 -0
  32. package/dist/lib/components/ui/collections/server-table/partials/server-table-grid-paging.d.ts +9 -0
  33. package/dist/lib/components/ui/collections/server-table/partials/server-table-load-more.d.ts +17 -0
  34. package/dist/lib/components/ui/collections/server-table/past-end.d.ts +3 -0
  35. package/dist/lib/components/ui/collections/server-table/types-paging.d.ts +10 -0
  36. package/dist/lib/components/ui/collections/server-table/types.d.ts +2 -2
  37. package/dist/lib/components/ui/collections/server-table/use-table-answer.d.ts +1 -1
  38. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  39. package/dist/lib/components/ui/widgets/code-editor/code-editor-field.d.ts +7 -6
  40. package/dist/lib/components/ui/widgets/code-editor/code-editor-types.d.ts +6 -0
  41. package/dist/lib/components/ui/widgets/code-editor/use-code-editor-instance.d.ts +12 -1
  42. package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +1 -1
  43. package/dist/lib/components/ui/widgets/education/questions/question-long-text.d.ts +2 -2
  44. package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
  45. package/dist/lib/components/ui/widgets/education/questions/types.d.ts +14 -0
  46. package/dist/lib/components/ui/widgets/native-charts/core/reference-geometry.d.ts +16 -2
  47. package/dist/lib/i18n/resources/en/en.d.ts +1 -0
  48. package/dist/lib/i18n/resources/en/material.json.d.ts +1 -0
  49. package/dist/lib/i18n/resources/fr/fr.d.ts +1 -0
  50. package/dist/lib/i18n/resources/fr/material.json.d.ts +1 -0
  51. package/dist/lib/i18n/resources/resources.d.ts +2 -0
  52. package/dist/lib/i18n/translator.d.ts +1 -1
  53. package/dist/lib.js +1 -1
  54. package/dist/main.js +25 -25
  55. package/dist/map.js +8 -8
  56. package/dist/material.css +1 -1
  57. package/dist/pdf-reader.js +1 -1
  58. package/dist/print.js +1 -1
  59. package/dist/{public-D8JGp3PH.js → public-B-greXGt.js} +9 -9
  60. package/dist/{rich-code-block-0R3bidsM.js → rich-code-block-Cv6s59vB.js} +5 -5
  61. package/dist/{sortable-provider-B75v53sB.js → sortable-provider-DVmZcglU.js} +2 -2
  62. package/dist/{spinner-CAnpF3RK.js → spinner-OQAweH2r.js} +1 -1
  63. package/dist/theme-picker.js +2 -2
  64. package/dist/{theme-toggle-pQ5F602V.js → theme-toggle-DPx44p6a.js} +1 -1
  65. package/dist/{toolbar-items-_ezD5B0r.js → toolbar-items-CQ3S_XZw.js} +3 -3
  66. package/dist/{translate-material-CvZK8_S6.js → translate-material-BHL4g2UB.js} +1 -1
  67. package/dist/{translator-Caf-d96e.js → translator-BJsjXcAp.js} +2 -0
  68. package/dist/{typography-CEK19bj8.js → typography-CwhEwPay.js} +1 -1
  69. package/dist/{use-chat-composer-Dpvi_-CR.js → use-chat-composer-R0vng5RU.js} +16 -16
  70. package/dist/{use-heading-spy-mmcyEGmm.js → use-heading-spy-Brcn0l_J.js} +4 -4
  71. package/dist/{use-material-translation-C_1cWRzW.js → use-material-translation-mY3U83TV.js} +1 -1
  72. package/dist/{use-return-focus-1ZIchrBM.js → use-return-focus-BQ413TNG.js} +1 -1
  73. package/docs/components/buttons-and-actions.md +2 -2
  74. package/docs/components/data-table-filter-and-lists.md +111 -2
  75. package/docs/components/navigation-and-layout.md +9 -5
  76. package/docs/components/rich-widgets.md +4 -1
  77. package/docs/guides/charts.md +1 -1
  78. package/docs/guides/code-editor.md +14 -0
  79. package/docs/guides/i18n.md +3 -1
  80. package/docs/roadmap.md +4 -0
  81. package/docs/troubleshooting.md +9 -7
  82. package/lib/components/ui/display/chip/chip-soft.css +19 -5
  83. package/package.json +2 -2
@@ -59,6 +59,12 @@ export type Question = {
59
59
  tolerance?: number;
60
60
  /** `number`: the unit shown after the field ("km", "%"). */
61
61
  unit?: string;
62
+ /**
63
+ * `open`, `code`: a persistent helper line under the answer field ("A person
64
+ * will mark this"), linked to it by `aria-describedby`. Its id is
65
+ * `${promptId}-description`. Unlike `hint`, it is always shown.
66
+ */
67
+ description?: string;
62
68
  /** `open`, `code`: the most characters accepted; a counter shows while editable. */
63
69
  maxLength?: number;
64
70
  /** `code`: the language of the code ("python"), given to `renderCode`. */
@@ -74,6 +80,8 @@ export type QuestionCodeField = {
74
80
  onChange: (value: string) => void;
75
81
  /** The prompt's id: name the field with `aria-labelledby`. */
76
82
  labelledBy: string;
83
+ /** The id of the `description` line, when there is one: add it to `aria-describedby`. */
84
+ describedBy?: string;
77
85
  /** The prompt, as a text label for editors that take one. */
78
86
  label: string;
79
87
  language?: string;
@@ -86,6 +94,12 @@ export type QuestionProps = {
86
94
  value?: QuestionAnswer;
87
95
  onValueChange?: (value: QuestionAnswer) => void;
88
96
  revealed?: boolean;
97
+ /**
98
+ * The id of the prompt (the fieldset's legend text), so a wrapper can use
99
+ * `aria-labelledby`. Default: a generated id. The `description` line is
100
+ * `${promptId}-description`.
101
+ */
102
+ promptId?: string;
89
103
  /**
90
104
  * The verdict the server gave, shown as given (no comparison with
91
105
  * `question.correct` in the browser). It reveals the card; `pending` is a
@@ -44,8 +44,22 @@ export declare function bandBox(band: Pick<RefBand, 'from' | 'to'>, domain: Doma
44
44
  export declare function thresholdAt(value: number, domain: Domain, y: (value: number) => number): number | null;
45
45
  /** The baseline of a band's label: inside the band under its top edge, or above a band too thin to hold it. */
46
46
  export declare function bandLabelBaseline(top: number, height: number): number;
47
- /** The baseline of a threshold's label: above its line, or under it at the top of the plot. */
48
- export declare function thresholdLabelBaseline(lineY: number): number;
47
+ /** How far a point's marker reaches from its centre (the tone ring is the widest, 7 px). */
48
+ export declare const MARKER_REACH = 8;
49
+ /**
50
+ * The y of the markers that fall over the stretch `left` to `right` of the
51
+ * plot, a marker reaching `MARKER_REACH` px beyond its x. `ys` is the y of
52
+ * each row (null where the row has no value) and `x` maps a row to a pixel.
53
+ */
54
+ export declare function markersBetween(ys: readonly (number | null)[], x: (index: number) => number, left: number, right: number): number[];
55
+ /**
56
+ * The baseline of a threshold's label: above its line, or under it at the top
57
+ * of the plot. `pointYs` are the y of the series' points under the label's
58
+ * width: when one would sit on the label above the line and none would
59
+ * under it, the label goes to the other side, so it never covers a point or
60
+ * its marker.
61
+ */
62
+ export declare function thresholdLabelBaseline(lineY: number, pointYs?: readonly number[]): number;
49
63
  /** How many of `values` lie outside `band` (a missing value is not counted, nor one in a row where a stepped band has no range), and how many there are. */
50
64
  export declare function outsideBand(values: readonly (number | null | undefined)[], band: Pick<RefBand, 'from' | 'to' | 'ranges'>): {
51
65
  outside: number;
@@ -1504,6 +1504,7 @@ export declare const en: {
1504
1504
  apply: string;
1505
1505
  reset: string;
1506
1506
  "clear-all": string;
1507
+ "inline-clear-hint": string;
1507
1508
  min: string;
1508
1509
  max: string;
1509
1510
  presets: {
@@ -1494,6 +1494,7 @@ declare const _default: {
1494
1494
  "apply": "Apply Filters",
1495
1495
  "reset": "Reset",
1496
1496
  "clear-all": "Clear all",
1497
+ "inline-clear-hint": "Pressing a selected chip removes it from the filter",
1497
1498
  "min": "Min",
1498
1499
  "max": "Max",
1499
1500
  "presets": {
@@ -1504,6 +1504,7 @@ export declare const fr: {
1504
1504
  apply: string;
1505
1505
  reset: string;
1506
1506
  "clear-all": string;
1507
+ "inline-clear-hint": string;
1507
1508
  min: string;
1508
1509
  max: string;
1509
1510
  presets: {
@@ -1494,6 +1494,7 @@ declare const _default: {
1494
1494
  "apply": "Appliquer",
1495
1495
  "reset": "Réinitialiser",
1496
1496
  "clear-all": "Tout effacer",
1497
+ "inline-clear-hint": "Appuyer sur une puce sélectionnée la retire du filtre",
1497
1498
  "min": "Min",
1498
1499
  "max": "Max",
1499
1500
  "presets": {
@@ -1502,6 +1502,7 @@ export declare const resources: {
1502
1502
  apply: string;
1503
1503
  reset: string;
1504
1504
  "clear-all": string;
1505
+ "inline-clear-hint": string;
1505
1506
  min: string;
1506
1507
  max: string;
1507
1508
  presets: {
@@ -4477,6 +4478,7 @@ export declare const resources: {
4477
4478
  apply: string;
4478
4479
  reset: string;
4479
4480
  "clear-all": string;
4481
+ "inline-clear-hint": string;
4480
4482
  min: string;
4481
4483
  max: string;
4482
4484
  presets: {