@nxgt/material 3.60.0 → 3.63.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 (114) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +3 -2
  3. package/dist/alert-dialog-RHm6WtQj.js +189 -0
  4. package/dist/{async-slice-HJY_VJjD.js → async-slice-DmX59NyA.js} +3 -4
  5. package/dist/{button-7BuUCGRm.js → button-DfS_amfQ.js} +1 -1
  6. package/dist/charts.js +3 -3
  7. package/dist/{chip-kQOrHlDX.js → chip-Cbndukko.js} +2 -2
  8. package/dist/{code-editor-Ckc9TTCM.js → code-editor-B0tN8Ha_.js} +11 -11
  9. package/dist/code-editor.js +54 -37
  10. package/dist/{code-language-items-rCPB0Xee.js → code-language-items-andgHKrM.js} +2 -2
  11. package/dist/components/ui/layout/sidebar/sidebar-tokens.css +13 -1
  12. package/dist/{components-BSM-h5IQ.js → components-Cm2doOJS.js} +13090 -12957
  13. package/dist/components.js +28 -26
  14. package/dist/dialog-Bd7Hid2L.js +219 -0
  15. package/dist/dnd.js +1 -1
  16. package/dist/{dropdown-menu-CiobN1wi.js → dropdown-menu-_SyVmSuy.js} +1 -1
  17. package/dist/editor.js +707 -706
  18. package/dist/{empty-state-DA517HAb.js → empty-state-D-2ZMXXJ.js} +2 -2
  19. package/dist/escape-owner-DpaP0lm1.js +19 -0
  20. package/dist/{field-blur-DdvY0NQQ.js → field-blur-DyOByjzw.js} +1 -1
  21. package/dist/{field-blur-context-DbJQZkEB.js → field-blur-context-DPe5_Nv5.js} +1 -1
  22. package/dist/hooks-a7_exKWS.js +329 -0
  23. package/dist/hooks.js +8 -102
  24. package/dist/{hover-card-DPs9huSs.js → hover-card-D_0smKBQ.js} +2 -2
  25. package/dist/i18n.js +8 -10
  26. package/dist/{icon-badge-C646JTOI.js → icon-badge-CBCU3ySF.js} +14 -14
  27. package/dist/{icon-button-DvP0Gy3j.js → icon-button-hKHsWTAt.js} +1 -1
  28. package/dist/illustrations-game.js +2 -0
  29. package/dist/lib/components/ui/display/list-tile/list-tile.d.ts +6 -0
  30. package/dist/lib/components/ui/display/list-tile/partials/list-tile-classes.d.ts +3 -1
  31. package/dist/lib/components/ui/display/list-tile/partials/list-tile-line.d.ts +1 -1
  32. package/dist/lib/components/ui/display/list-tile/partials/list-tile-toggle.d.ts +1 -1
  33. package/dist/lib/components/ui/feedback/index.d.ts +1 -0
  34. package/dist/lib/components/ui/feedback/unsaved-dialog/index.d.ts +1 -0
  35. package/dist/lib/components/ui/feedback/unsaved-dialog/unsaved-dialog.d.ts +20 -0
  36. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  37. package/dist/lib/components/ui/fields/textarea-field/textarea-footer.d.ts +2 -1
  38. package/dist/lib/components/ui/layout/app-shell/activity-layout.types.d.ts +6 -3
  39. package/dist/lib/components/ui/layout/app-shell/index.d.ts +1 -1
  40. package/dist/lib/components/ui/layout/app-shell/route-transition.d.ts +20 -2
  41. package/dist/lib/components/ui/layout/app-shell/shapes-clear-content.d.ts +2 -1
  42. package/dist/lib/components/ui/widgets/code-editor/configure-monaco.d.ts +2 -0
  43. package/dist/lib/components/ui/widgets/education/questions/index.d.ts +3 -1
  44. package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +1 -1
  45. package/dist/lib/components/ui/widgets/education/questions/partials/question-top.d.ts +6 -0
  46. package/dist/lib/components/ui/widgets/education/questions/question-long-text.d.ts +5 -0
  47. package/dist/lib/components/ui/widgets/education/questions/question-media-content.d.ts +24 -0
  48. package/dist/lib/components/ui/widgets/education/questions/question-media-helpers.d.ts +11 -0
  49. package/dist/lib/components/ui/widgets/education/questions/question-media-view.d.ts +18 -0
  50. package/dist/lib/components/ui/widgets/education/questions/question-media-view.types.d.ts +32 -0
  51. package/dist/lib/components/ui/widgets/education/questions/question-options.d.ts +2 -2
  52. package/dist/lib/components/ui/widgets/education/questions/question-text.d.ts +1 -1
  53. package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
  54. package/dist/lib/components/ui/widgets/education/questions/types.d.ts +38 -1
  55. package/dist/lib/components/ui/widgets/education/questions/use-reload-focus.d.ts +13 -0
  56. package/dist/lib/hooks/drafts-store.d.ts +4 -0
  57. package/dist/lib/hooks/index.d.ts +4 -0
  58. package/dist/lib/hooks/unsaved-guard-rules.d.ts +30 -0
  59. package/dist/lib/hooks/use-drafts.d.ts +75 -0
  60. package/dist/lib/hooks/use-react-router-block.d.ts +11 -0
  61. package/dist/lib/hooks/use-unsaved-guard/guard-core.d.ts +30 -0
  62. package/dist/lib/hooks/use-unsaved-guard/index.d.ts +3 -0
  63. package/dist/lib/hooks/use-unsaved-guard/types.d.ts +63 -0
  64. package/dist/lib/hooks/use-unsaved-guard/use-discard-guard.d.ts +15 -0
  65. package/dist/lib/hooks/use-unsaved-guard/use-unsaved-guard.d.ts +19 -0
  66. package/dist/lib/i18n/resources/en/en.d.ts +20 -0
  67. package/dist/lib/i18n/resources/en/material.json.d.ts +21 -1
  68. package/dist/lib/i18n/resources/fr/fr.d.ts +20 -0
  69. package/dist/lib/i18n/resources/fr/material.json.d.ts +21 -1
  70. package/dist/lib/i18n/resources/resources.d.ts +40 -0
  71. package/dist/lib/i18n/translator.d.ts +1 -1
  72. package/dist/lib/illustrations-game/index.d.ts +17 -0
  73. package/dist/lib.js +1 -1
  74. package/dist/main.js +42 -43
  75. package/dist/map.js +63 -63
  76. package/dist/material.css +1 -1
  77. package/dist/pdf-reader.js +1 -1
  78. package/dist/print.js +1 -2
  79. package/dist/{public-BYsrhyPW.js → public-D8JGp3PH.js} +823 -822
  80. package/dist/{rich-code-block-WJxDWPPY.js → rich-code-block-0R3bidsM.js} +5 -5
  81. package/dist/{sortable-provider-oPjlhlZo.js → sortable-provider-B75v53sB.js} +2 -2
  82. package/dist/{spinner-C5lObWXT.js → spinner-CAnpF3RK.js} +1 -1
  83. package/dist/theme-picker.js +2 -2
  84. package/dist/{theme-toggle-CPEq5JG-.js → theme-toggle-pQ5F602V.js} +1 -1
  85. package/dist/{toolbar-items-ByvXcMHm.js → toolbar-items-_ezD5B0r.js} +4 -4
  86. package/dist/translate-material-CvZK8_S6.js +96 -0
  87. package/dist/{stored-language-B-tiWZU2.js → translator-Caf-d96e.js} +2497 -8
  88. package/dist/{escape-owner-r57kuPjn.js → typography-CEK19bj8.js} +17 -34
  89. package/dist/{use-chat-composer-CzOVaIed.js → use-chat-composer-Dpvi_-CR.js} +5164 -5338
  90. package/dist/{use-heading-spy-BOtygPFu.js → use-heading-spy-mmcyEGmm.js} +186 -71
  91. package/dist/{use-material-translation-B5j3jZs7.js → use-material-translation-C_1cWRzW.js} +1 -2
  92. package/dist/use-return-focus-1ZIchrBM.js +269 -0
  93. package/docs/components/data-display.md +1 -0
  94. package/docs/components/feedback-and-status.md +23 -0
  95. package/docs/components/navigation-and-layout.md +5 -4
  96. package/docs/components/rich-widgets.md +73 -1
  97. package/docs/guides/app-shell.md +17 -0
  98. package/docs/guides/code-editor.md +8 -0
  99. package/docs/guides/csp.md +4 -0
  100. package/docs/guides/helpers.md +120 -0
  101. package/docs/guides/icon-motifs.md +3 -1
  102. package/docs/guides/illustrations.md +33 -1
  103. package/docs/guides/migrating-to-3.md +4 -2
  104. package/docs/guides/theming.md +13 -3
  105. package/docs/previews/feedback-status-illustration-game.webp +0 -0
  106. package/docs/previews/feedback-status-unsaveddialog.webp +0 -0
  107. package/docs/roadmap.md +1 -1
  108. package/docs/troubleshooting.md +9 -6
  109. package/lib/components/ui/layout/sidebar/sidebar-tokens.css +13 -1
  110. package/package.json +7 -2
  111. package/dist/dialog-yfPkLqUQ.js +0 -482
  112. package/dist/i18n-provider-BehR6cU7.js +0 -79
  113. package/dist/translate-material-tUaLZUmT.js +0 -20
  114. package/dist/translator-B9XjUDRu.js +0 -2451
@@ -293,6 +293,7 @@ declare const _default: {
293
293
  "true": "True",
294
294
  "false": "False",
295
295
  "answer-placeholder": "Your answer",
296
+ "code-placeholder": "Write your code",
296
297
  "expected": "Expected: {answer}",
297
298
  "next": "Next",
298
299
  "previous": "Previous",
@@ -308,7 +309,20 @@ declare const _default: {
308
309
  "kind-choice": "Multiple choice",
309
310
  "kind-multi": "Select all that apply",
310
311
  "kind-boolean": "True or false",
311
- "kind-text": "Short answer"
312
+ "kind-text": "Short answer",
313
+ "kind-open": "Open answer",
314
+ "kind-code": "Code answer"
315
+ },
316
+ "question-media": {
317
+ "image": "Image for this question",
318
+ "audio": "Audio for this question",
319
+ "video": "Video for this question",
320
+ "document": "Document for this question",
321
+ "error-title": "The file did not load",
322
+ "error-description": "The link may have expired.",
323
+ "reload": "Reload",
324
+ "open": "Open the file",
325
+ "new-tab": "opens in a new tab"
312
326
  },
313
327
  "quiz": {
314
328
  "count": "{count, plural, one {# question} other {# questions}}",
@@ -1329,6 +1343,12 @@ declare const _default: {
1329
1343
  "dark": "Dark",
1330
1344
  "system": "System"
1331
1345
  },
1346
+ "unsaved": {
1347
+ "title": "Leave without saving?",
1348
+ "description": "Your changes have not been saved and will be lost.",
1349
+ "stay": "Stay",
1350
+ "leave": "Leave"
1351
+ },
1332
1352
  "load-more": {
1333
1353
  "shown": "Showing {shown} of {total}",
1334
1354
  "shown-count": "{shown, plural, one {# shown} other {# shown}}",
@@ -303,6 +303,7 @@ export declare const fr: {
303
303
  true: string;
304
304
  false: string;
305
305
  "answer-placeholder": string;
306
+ "code-placeholder": string;
306
307
  expected: string;
307
308
  next: string;
308
309
  previous: string;
@@ -319,6 +320,19 @@ export declare const fr: {
319
320
  "kind-multi": string;
320
321
  "kind-boolean": string;
321
322
  "kind-text": string;
323
+ "kind-open": string;
324
+ "kind-code": string;
325
+ };
326
+ "question-media": {
327
+ image: string;
328
+ audio: string;
329
+ video: string;
330
+ document: string;
331
+ "error-title": string;
332
+ "error-description": string;
333
+ reload: string;
334
+ open: string;
335
+ "new-tab": string;
322
336
  };
323
337
  quiz: {
324
338
  count: string;
@@ -1339,6 +1353,12 @@ export declare const fr: {
1339
1353
  dark: string;
1340
1354
  system: string;
1341
1355
  };
1356
+ unsaved: {
1357
+ title: string;
1358
+ description: string;
1359
+ stay: string;
1360
+ leave: string;
1361
+ };
1342
1362
  "load-more": {
1343
1363
  shown: string;
1344
1364
  "shown-count": string;
@@ -293,6 +293,7 @@ declare const _default: {
293
293
  "true": "Vrai",
294
294
  "false": "Faux",
295
295
  "answer-placeholder": "Votre réponse",
296
+ "code-placeholder": "Écrivez votre code",
296
297
  "expected": "Attendu : {answer}",
297
298
  "next": "Suivant",
298
299
  "previous": "Précédent",
@@ -308,7 +309,20 @@ declare const _default: {
308
309
  "kind-choice": "Choix unique",
309
310
  "kind-multi": "Plusieurs réponses",
310
311
  "kind-boolean": "Vrai ou faux",
311
- "kind-text": "Réponse courte"
312
+ "kind-text": "Réponse courte",
313
+ "kind-open": "Réponse ouverte",
314
+ "kind-code": "Réponse en code"
315
+ },
316
+ "question-media": {
317
+ "image": "Image de cette question",
318
+ "audio": "Audio de cette question",
319
+ "video": "Vidéo de cette question",
320
+ "document": "Document de cette question",
321
+ "error-title": "Le fichier ne s’est pas chargé",
322
+ "error-description": "Le lien a peut-être expiré.",
323
+ "reload": "Recharger",
324
+ "open": "Ouvrir le fichier",
325
+ "new-tab": "s’ouvre dans un nouvel onglet"
312
326
  },
313
327
  "quiz": {
314
328
  "count": "{count, plural, one {# question} other {# questions}}",
@@ -1329,6 +1343,12 @@ declare const _default: {
1329
1343
  "dark": "Sombre",
1330
1344
  "system": "Système"
1331
1345
  },
1346
+ "unsaved": {
1347
+ "title": "Quitter sans enregistrer ?",
1348
+ "description": "Vos modifications n’ont pas été enregistrées et seront perdues.",
1349
+ "stay": "Rester",
1350
+ "leave": "Quitter"
1351
+ },
1332
1352
  "load-more": {
1333
1353
  "shown": "Affichage de {shown} sur {total}",
1334
1354
  "shown-count": "{shown, plural, one {# affiché} other {# affichés}}",
@@ -301,6 +301,7 @@ export declare const resources: {
301
301
  true: string;
302
302
  false: string;
303
303
  "answer-placeholder": string;
304
+ "code-placeholder": string;
304
305
  expected: string;
305
306
  next: string;
306
307
  previous: string;
@@ -317,6 +318,19 @@ export declare const resources: {
317
318
  "kind-multi": string;
318
319
  "kind-boolean": string;
319
320
  "kind-text": string;
321
+ "kind-open": string;
322
+ "kind-code": string;
323
+ };
324
+ "question-media": {
325
+ image: string;
326
+ audio: string;
327
+ video: string;
328
+ document: string;
329
+ "error-title": string;
330
+ "error-description": string;
331
+ reload: string;
332
+ open: string;
333
+ "new-tab": string;
320
334
  };
321
335
  quiz: {
322
336
  count: string;
@@ -1337,6 +1351,12 @@ export declare const resources: {
1337
1351
  dark: string;
1338
1352
  system: string;
1339
1353
  };
1354
+ unsaved: {
1355
+ title: string;
1356
+ description: string;
1357
+ stay: string;
1358
+ leave: string;
1359
+ };
1340
1360
  "load-more": {
1341
1361
  shown: string;
1342
1362
  "shown-count": string;
@@ -3256,6 +3276,7 @@ export declare const resources: {
3256
3276
  true: string;
3257
3277
  false: string;
3258
3278
  "answer-placeholder": string;
3279
+ "code-placeholder": string;
3259
3280
  expected: string;
3260
3281
  next: string;
3261
3282
  previous: string;
@@ -3272,6 +3293,19 @@ export declare const resources: {
3272
3293
  "kind-multi": string;
3273
3294
  "kind-boolean": string;
3274
3295
  "kind-text": string;
3296
+ "kind-open": string;
3297
+ "kind-code": string;
3298
+ };
3299
+ "question-media": {
3300
+ image: string;
3301
+ audio: string;
3302
+ video: string;
3303
+ document: string;
3304
+ "error-title": string;
3305
+ "error-description": string;
3306
+ reload: string;
3307
+ open: string;
3308
+ "new-tab": string;
3275
3309
  };
3276
3310
  quiz: {
3277
3311
  count: string;
@@ -4292,6 +4326,12 @@ export declare const resources: {
4292
4326
  dark: string;
4293
4327
  system: string;
4294
4328
  };
4329
+ unsaved: {
4330
+ title: string;
4331
+ description: string;
4332
+ stay: string;
4333
+ leave: string;
4334
+ };
4295
4335
  "load-more": {
4296
4336
  shown: string;
4297
4337
  "shown-count": string;