@nxgt/material 3.71.0 → 3.73.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 (86) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +1 -1
  3. package/dist/{alert-dialog-y2pbowVh.js → alert-dialog-A8K8zai1.js} +1 -1
  4. package/dist/{async-slice-CGfWBOaV.js → async-slice-B8933IHY.js} +1 -1
  5. package/dist/{button-D54Hrjo0.js → button-C8moFnIT.js} +1 -1
  6. package/dist/charts.js +3 -3
  7. package/dist/{chip-B5MhXBfm.js → chip-B6AY1E91.js} +2 -2
  8. package/dist/{code-editor-mULs4SL8.js → code-editor-DQZIKL54.js} +5 -5
  9. package/dist/code-editor.js +5 -5
  10. package/dist/{code-language-items-BWDnqUqn.js → code-language-items-8VL0aMKG.js} +2 -2
  11. package/dist/components/ui/fields/attributes/attribute-values-form/attribute-values-form.css +5 -0
  12. package/dist/{components-B_taYVcd.js → components-Cvp2F9uk.js} +16928 -16733
  13. package/dist/components.js +28 -28
  14. package/dist/{dialog-AjCYZ2Vz.js → dialog-WuLTwxkr.js} +5 -5
  15. package/dist/dnd.js +1 -1
  16. package/dist/{dropdown-menu-LN60hu_3.js → dropdown-menu-tadySeGH.js} +1 -1
  17. package/dist/editor.js +10 -10
  18. package/dist/{empty-state-Bo8G8W8G.js → empty-state-ZYiFSSBQ.js} +2 -2
  19. package/dist/{field-blur-Cnd6FfCH.js → field-blur-BYR0yE5L.js} +1 -1
  20. package/dist/{field-blur-context-bUFZj8iN.js → field-blur-context-bEhByoK-.js} +1 -1
  21. package/dist/{hooks-Dt4PkQiZ.js → hooks-GpwD8iDu.js} +2 -2
  22. package/dist/hooks.js +2 -2
  23. package/dist/{hover-card-QtGnvsnc.js → hover-card-BowaI_ra.js} +1 -1
  24. package/dist/i18n.js +3 -3
  25. package/dist/{icon-badge-DLbpCQIm.js → icon-badge-B1B0Lg02.js} +3 -3
  26. package/dist/{icon-button-C59DqL7L.js → icon-button-BbGU17cb.js} +1 -1
  27. package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +3 -0
  28. package/dist/lib/components/ui/fields/attributes/attribute-values-form-field-set/attribute-values-form-field-set.d.ts +5 -1
  29. package/dist/lib/components/ui/fields/choice-list/choice-list-focus.d.ts +42 -0
  30. package/dist/lib/components/ui/fields/contacts/contact-dialog.d.ts +8 -2
  31. package/dist/lib/components/ui/fields/contacts/contacts-dialog-form-field.d.ts +4 -1
  32. package/dist/lib/components/ui/fields/contacts/contacts-editor.d.ts +15 -2
  33. package/dist/lib/components/ui/fields/contacts/contacts-form-field.d.ts +6 -1
  34. package/dist/lib/components/ui/fields/contacts/logic/offered-types.d.ts +3 -0
  35. package/dist/lib/components/ui/fields/contacts/models.d.ts +2 -0
  36. package/dist/lib/components/ui/fields/contacts/partials/contact-fields.d.ts +4 -2
  37. package/dist/lib/components/ui/fields/contacts/partials/contact-groups.d.ts +4 -2
  38. package/dist/lib/components/ui/fields/contacts/partials/contact-row.d.ts +4 -2
  39. package/dist/lib/components/ui/fields/contacts/partials/phone-sheet.d.ts +4 -2
  40. package/dist/lib/components/ui/fields/contacts/partials/quick-add.d.ts +4 -2
  41. package/dist/lib/components/ui/fields/contacts/partials/row-actions.d.ts +3 -1
  42. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  43. package/dist/lib/components/ui/media/upload/network-upload-field/network-upload-field.d.ts +5 -0
  44. package/dist/lib/components/ui/media/upload/network-upload-field/partials/network-upload-field-items.d.ts +2 -1
  45. package/dist/lib/components/ui/media/upload/network-upload-field/upload-constraints.d.ts +10 -2
  46. package/dist/lib/components/ui/overlays/dialog/dialog-body-overflow.d.ts +7 -0
  47. package/dist/lib/components/ui/overlays/dialog/dialog-body.d.ts +10 -0
  48. package/dist/lib/components/ui/overlays/dialog/dialog-variants.d.ts +4 -0
  49. package/dist/lib/components/ui/overlays/dialog/dialog.d.ts +1 -0
  50. package/dist/lib/components/ui/selection/autocomplete/autocomplete-enter.d.ts +7 -3
  51. package/dist/lib/i18n/resources/en/en.d.ts +7 -0
  52. package/dist/lib/i18n/resources/en/material.json.d.ts +7 -0
  53. package/dist/lib/i18n/resources/fr/fr.d.ts +7 -0
  54. package/dist/lib/i18n/resources/fr/material.json.d.ts +7 -0
  55. package/dist/lib/i18n/resources/resources.d.ts +14 -0
  56. package/dist/lib/i18n/translator.d.ts +1 -1
  57. package/dist/lib.js +1 -1
  58. package/dist/main.js +42 -42
  59. package/dist/map.js +8 -8
  60. package/dist/material.css +1 -1
  61. package/dist/pdf-reader.js +1 -1
  62. package/dist/print.js +1 -1
  63. package/dist/{public-BSaSCwy7.js → public-CFj2qn7l.js} +9 -9
  64. package/dist/{rich-code-block-BFVj1GWz.js → rich-code-block-B7Teg7-e.js} +5 -5
  65. package/dist/{sortable-provider-REwyjiOZ.js → sortable-provider-DU2zp_jn.js} +19 -13
  66. package/dist/{spinner-BFZxqdWC.js → spinner-C5Kb6MWu.js} +1 -1
  67. package/dist/theme-picker.js +2 -2
  68. package/dist/{theme-toggle-BHi6miz-.js → theme-toggle-B1JZg7mU.js} +1 -1
  69. package/dist/{toolbar-items-BTtoKVlx.js → toolbar-items-m_1FTFPQ.js} +3 -3
  70. package/dist/{translate-material-R-uLthBy.js → translate-material-D1ndrd7a.js} +1 -1
  71. package/dist/{translator-ClbXOGQO.js → translator-CtEC_AQa.js} +14 -0
  72. package/dist/{typography-v-PJ4Zco.js → typography-prQHb3gI.js} +1 -1
  73. package/dist/{use-chat-composer-Rhan4Xv0.js → use-chat-composer-BAoUsyKN.js} +1924 -1911
  74. package/dist/{use-heading-spy-CJnBkCY0.js → use-heading-spy-Bzj5mIUZ.js} +4 -4
  75. package/dist/{use-material-translation-CCWUeiEn.js → use-material-translation-C6H0B4kE.js} +1 -1
  76. package/dist/{use-return-focus-Duk40DZI.js → use-return-focus-CkUX1HFl.js} +1 -1
  77. package/docs/components/form-fields.md +72 -3
  78. package/docs/components/media-and-files.md +4 -1
  79. package/docs/components/overlays-and-menus.md +20 -1
  80. package/docs/components/primitives.md +2 -1
  81. package/docs/components/selection-and-choice.md +4 -2
  82. package/docs/guides/forms.md +8 -3
  83. package/docs/guides/i18n.md +1 -1
  84. package/docs/troubleshooting.md +114 -1
  85. package/lib/components/ui/fields/attributes/attribute-values-form/attribute-values-form.css +5 -0
  86. package/package.json +3 -2
@@ -1,4 +1,4 @@
1
- import { Contact } from '../models.js';
1
+ import { Contact, ContactTypeName } from '../models.js';
2
2
  import { ContactText } from '../use-contact-text.js';
3
3
  type ContactFieldsProps = {
4
4
  text: ContactText;
@@ -15,6 +15,8 @@ type ContactFieldsProps = {
15
15
  focusKey: (name: string) => string;
16
16
  /** Each contact's place in its type's group, 1-based: the accessible names. */
17
17
  positions: ReadonlyMap<number, number>;
18
+ /** The types offered by the menu; every type by default. */
19
+ types?: readonly ContactTypeName[];
18
20
  disabled?: boolean;
19
21
  /** One column: the sheet's layout. */
20
22
  stacked?: boolean;
@@ -25,5 +27,5 @@ type ContactFieldsProps = {
25
27
  * belong to the value: a wrong format, a duplicate or, once left, an empty
26
28
  * value. Each message is a `role="alert"` linked to the value field.
27
29
  */
28
- export declare function ContactFields({ text, contact, index, items, rowId, left, onLeave, focusKey, positions, disabled, stacked, onChange, }: ContactFieldsProps): import("react").JSX.Element;
30
+ export declare function ContactFields({ text, contact, index, items, rowId, left, onLeave, focusKey, positions, types, disabled, stacked, onChange, }: ContactFieldsProps): import("react").JSX.Element;
29
31
  export {};
@@ -1,6 +1,6 @@
1
1
  import { HeadingLevel } from '../../inline-editor/editor-header.js';
2
2
  import { groupContacts } from '../logic/primary.js';
3
- import { Contact } from '../models.js';
3
+ import { Contact, ContactTypeName } from '../models.js';
4
4
  import { ContactText } from '../use-contact-text.js';
5
5
  import { ContactsEditorState } from '../use-contacts-editor.js';
6
6
  type ContactGroupsProps = {
@@ -13,8 +13,10 @@ type ContactGroupsProps = {
13
13
  headingLevel?: HeadingLevel;
14
14
  /** A phone shows summary rows that open the sheet. */
15
15
  phone: boolean;
16
+ types?: readonly ContactTypeName[];
17
+ primary?: boolean;
16
18
  disabled?: boolean;
17
19
  };
18
20
  /** The contacts of each type: full rows, or on a phone summary rows. */
19
- export declare function ContactGroups({ text, editor, items, groups, positions, variant, headingLevel, phone, disabled, }: ContactGroupsProps): import("react").JSX.Element[];
21
+ export declare function ContactGroups({ text, editor, items, groups, positions, variant, headingLevel, phone, types, primary, disabled, }: ContactGroupsProps): import("react").JSX.Element[];
20
22
  export {};
@@ -1,4 +1,4 @@
1
- import { Contact } from '../models.js';
1
+ import { Contact, ContactTypeName } from '../models.js';
2
2
  import { ContactText } from '../use-contact-text.js';
3
3
  import { ContactsEditorState } from '../use-contacts-editor.js';
4
4
  export type ContactRowProps = {
@@ -8,7 +8,9 @@ export type ContactRowProps = {
8
8
  index: number;
9
9
  positions: ReadonlyMap<number, number>;
10
10
  variant: 'list' | 'cards';
11
+ types?: readonly ContactTypeName[];
12
+ primary?: boolean;
11
13
  disabled?: boolean;
12
14
  };
13
15
  /** One contact on a tablet or a desktop: its icon, its fields and its actions. */
14
- export declare function ContactRow({ text, editor, items, index, positions, variant, disabled, }: ContactRowProps): import("react").JSX.Element;
16
+ export declare function ContactRow({ text, editor, items, index, positions, variant, types, primary: withPrimary, disabled, }: ContactRowProps): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Contact } from '../models.js';
1
+ import { Contact, ContactTypeName } from '../models.js';
2
2
  import { ContactText } from '../use-contact-text.js';
3
3
  import { ContactsEditorState } from '../use-contacts-editor.js';
4
4
  type PhoneSheetProps = {
@@ -7,8 +7,10 @@ type PhoneSheetProps = {
7
7
  items: Contact[];
8
8
  positions: ReadonlyMap<number, number>;
9
9
  variant: 'list' | 'cards';
10
+ types?: readonly ContactTypeName[];
11
+ primary?: boolean;
10
12
  disabled?: boolean;
11
13
  };
12
14
  /** A phone's editor for one contact: the same fields and actions, in a bottom sheet. */
13
- export declare function PhoneSheet({ text, editor, items, positions, variant, disabled, }: PhoneSheetProps): import("react").JSX.Element;
15
+ export declare function PhoneSheet({ text, editor, items, positions, variant, types, primary, disabled, }: PhoneSheetProps): import("react").JSX.Element;
14
16
  export {};
@@ -1,12 +1,14 @@
1
- import { ContactType } from '../models.js';
1
+ import { ContactType, ContactTypeName } from '../models.js';
2
2
  import { ContactText } from '../use-contact-text.js';
3
3
  type QuickAddProps = {
4
4
  text: ContactText;
5
+ /** The types offered; every type by default. */
6
+ types?: readonly ContactTypeName[];
5
7
  disabled?: boolean;
6
8
  /** The scoped focus key of a control, so a remove can return to the chip. */
7
9
  focusKey: (name: string) => string;
8
10
  onAdd: (type: ContactType) => void;
9
11
  };
10
12
  /** "Add Contact" and one chip per type: adds an empty contact of that type. */
11
- export declare function QuickAdd({ text: { t, typeName }, disabled, focusKey, onAdd, }: QuickAddProps): import("react").JSX.Element;
13
+ export declare function QuickAdd({ text: { t, typeName }, types, disabled, focusKey, onAdd, }: QuickAddProps): import("react").JSX.Element;
12
14
  export {};
@@ -7,10 +7,12 @@ type RowActionsProps = {
7
7
  position: number;
8
8
  /** The star's scoped focus key, so focus can return to it after the row moves. */
9
9
  starFocusKey?: string;
10
+ /** Hides the star (primary marks are off). */
11
+ hidePrimary?: boolean;
10
12
  disabled?: boolean;
11
13
  onPrimary: () => void;
12
14
  onRemove: () => void;
13
15
  };
14
16
  /** The star that makes a contact the primary one of its type, and the trash. */
15
- export declare function RowActions({ text: { t }, primary, typeName, position, starFocusKey, disabled, onPrimary, onRemove, }: RowActionsProps): import("react").JSX.Element;
17
+ export declare function RowActions({ text: { t }, primary, typeName, position, starFocusKey, hidePrimary, disabled, onPrimary, onRemove, }: RowActionsProps): import("react").JSX.Element;
16
18
  export {};