@nxgt/material 3.97.0 → 3.99.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 +20 -0
  2. package/README.md +2 -2
  3. package/dist/{alert-dialog-VyVfYwzv.js → alert-dialog-DYzxchiS.js} +1 -1
  4. package/dist/{async-slice-jR8f-SJC.js → async-slice-drJyPvuM.js} +1 -1
  5. package/dist/{button-ClrQMe_S.js → button-GeIsUekU.js} +1 -1
  6. package/dist/{calculator-kdSjeRhf.js → calculator-BS4PAm6l.js} +10 -10
  7. package/dist/calculator-field.js +6 -6
  8. package/dist/{calculator-segment-OI0rHAjA.js → calculator-segment-CEdwE24M.js} +1 -1
  9. package/dist/calculator.js +1 -1
  10. package/dist/charts.js +3 -3
  11. package/dist/{chip-DzKhmUzo.js → chip-BdEtFQ85.js} +2 -2
  12. package/dist/{code-editor-DV0TiySE.js → code-editor-BByXZOGy.js} +4 -4
  13. package/dist/code-editor.js +4 -4
  14. package/dist/{code-language-items-6o5SAVbP.js → code-language-items-CSZX5zxD.js} +2 -2
  15. package/dist/{components-Bk8KDjaj.js → components-DPmZnTlW.js} +18039 -17937
  16. package/dist/components.js +37 -37
  17. package/dist/{conversion-variant-QaaNYhTr.js → conversion-variant-DTQqAyDt.js} +4 -4
  18. package/dist/{currency-field-5Zg_sjY1.js → currency-field-Dnju7ss2.js} +4 -4
  19. package/dist/{dialog-Bti9bn6a.js → dialog-5_2__tu8.js} +3 -3
  20. package/dist/dnd.js +1 -1
  21. package/dist/{dropdown-menu-B21gOpBE.js → dropdown-menu-FdGC5kIP.js} +1 -1
  22. package/dist/editor.js +8 -8
  23. package/dist/{empty-state-Dw-X-0aA.js → empty-state-BoepPG5v.js} +1 -1
  24. package/dist/{financial-variant-DR7pCGqi.js → financial-variant-BhqJp5C-.js} +5 -5
  25. package/dist/{hooks-ppNryrR_.js → hooks-C8MhL6hs.js} +2 -2
  26. package/dist/hooks.js +2 -2
  27. package/dist/{hover-card-tmyRjh2p.js → hover-card-CmHJeBeY.js} +1 -1
  28. package/dist/i18n.js +3 -3
  29. package/dist/{icon-badge-DW6-PxOt.js → icon-badge-LGUPQh_c.js} +1 -1
  30. package/dist/{icon-button-DKpk5gLZ.js → icon-button-BSVpO1jP.js} +1 -1
  31. package/dist/lib/components/ui/collections/filter/bar/partials/filter-inline-scope-chips.d.ts +11 -0
  32. package/dist/lib/components/ui/collections/filter/bar/partials/filter-scope-list.d.ts +1 -0
  33. package/dist/lib/components/ui/collections/filter/bar/partials/use-quick-condition.d.ts +1 -0
  34. package/dist/lib/components/ui/collections/server-table/index.d.ts +2 -1
  35. package/dist/lib/components/ui/collections/server-table/use-archived-status-field.d.ts +15 -0
  36. package/dist/lib/components/ui/display/change-history/change-history.d.ts +2 -1
  37. package/dist/lib/components/ui/display/change-history/change-history.utils.d.ts +5 -0
  38. package/dist/lib/components/ui/display/change-history/types.d.ts +6 -2
  39. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  40. package/dist/lib/components/ui/media/image-cropper/crop-image.d.ts +15 -2
  41. package/dist/lib/components/ui/media/image-cropper/image-cropper.d.ts +3 -3
  42. package/dist/lib/components/ui/media/image-cropper/index.d.ts +3 -2
  43. package/dist/lib/components/ui/media/image-cropper/types.d.ts +9 -0
  44. package/dist/lib/components/ui/media/image-cropper/use-apply-crop.d.ts +3 -3
  45. package/dist/lib/components/ui/media/image-cropper/use-image-cropper.d.ts +3 -3
  46. package/dist/lib/components/ui/widgets/event-calendar/partials/calendar-toolbar.d.ts +2 -1
  47. package/dist/lib/i18n/resources/en/en.d.ts +7 -0
  48. package/dist/lib/i18n/resources/en/material.json.d.ts +7 -0
  49. package/dist/lib/i18n/resources/fr/fr.d.ts +7 -0
  50. package/dist/lib/i18n/resources/fr/material.json.d.ts +7 -0
  51. package/dist/lib/i18n/resources/resources.d.ts +14 -0
  52. package/dist/lib/i18n/translator.d.ts +1 -1
  53. package/dist/lib.js +1 -1
  54. package/dist/main.js +53 -53
  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/{percent-field-D1Y4HUPt.js → percent-field-DGlU_xii.js} +2 -2
  59. package/dist/{picker-surface-Bc7jhjjV.js → picker-surface-CGhqNR8a.js} +4 -4
  60. package/dist/{popover-C2AG-fER.js → popover-ZxL7ktKk.js} +1 -1
  61. package/dist/{pos-types-BXMMXwbI.js → pos-types-BQ0QpYMp.js} +1 -1
  62. package/dist/{pos-variant-DCf4-Val.js → pos-variant-CKy8h_5i.js} +4 -4
  63. package/dist/print.js +1 -1
  64. package/dist/{programmer-variant-BnvZqPJs.js → programmer-variant-CbHstE28.js} +2 -2
  65. package/dist/{public-BuRnxJOK.js → public-D-tdOz4b.js} +9 -9
  66. package/dist/{rich-code-block-C30r7TeB.js → rich-code-block-CTPj1LuD.js} +5 -5
  67. package/dist/{scientific-variant-Z1vVCSJv.js → scientific-variant-B8U9h3II.js} +2 -2
  68. package/dist/{sortable-provider-DZzc_tN2.js → sortable-provider-CSoWE7Ce.js} +2 -2
  69. package/dist/{spinner-BiGzIQFB.js → spinner-ffuwBXHl.js} +1 -1
  70. package/dist/{tabs-CzBz8Doo.js → tabs-JgRq6ZJx.js} +1 -1
  71. package/dist/{text-field-bla3PUdk.js → text-field-DURkIP-v.js} +1 -1
  72. package/dist/theme-picker.js +2 -2
  73. package/dist/{theme-toggle-B7rO23w0.js → theme-toggle-n_Zg7JAA.js} +1 -1
  74. package/dist/{toolbar-items-CBv3l8sn.js → toolbar-items-IANZdcw4.js} +4 -4
  75. package/dist/{translate-material-9bYZA_nV.js → translate-material-CMHUH5Ha.js} +1 -1
  76. package/dist/{translator-B5RR8VyT.js → translator-9zA-Um3W.js} +14 -0
  77. package/dist/{use-chat-composer-4cs6opDX.js → use-chat-composer-BoIN7RCA.js} +16 -16
  78. package/dist/{use-heading-spy-De3zZEMX.js → use-heading-spy-8o20PEZH.js} +4 -4
  79. package/dist/{use-material-translation-DM4nCI16.js → use-material-translation-CLNaMhUf.js} +1 -1
  80. package/dist/{use-return-focus-CbTPRBcn.js → use-return-focus-DWhbTGVe.js} +1 -1
  81. package/docs/components/data-display.md +7 -4
  82. package/docs/components/data-table-filter-and-lists.md +38 -2
  83. package/docs/components/media-and-files.md +20 -0
  84. package/docs/guides/server-lists-url.md +8 -0
  85. package/docs/roadmap.md +5 -0
  86. package/package.json +2 -2
@@ -5,9 +5,22 @@ export declare function rotateSize(width: number, height: number, rotation: numb
5
5
  height: number;
6
6
  };
7
7
  export declare function createImage(url: string): Promise<HTMLImageElement>;
8
- export declare function cropImageToFile(imageSrc: string, pixelCrop: Area, options?: {
8
+ /**
9
+ * The size to draw a crop at: its longest side capped at `outputSize` px,
10
+ * the ratio kept. Downscale only: a crop already small enough is unchanged.
11
+ */
12
+ export declare function fitOutputSize(width: number, height: number, outputSize?: number): {
13
+ width: number;
14
+ height: number;
15
+ };
16
+ export type CropImageOptions = {
9
17
  rotation?: number;
18
+ /** Longest side of the file in px. Downscale only. Default: the crop's size. */
19
+ outputSize?: number;
20
+ /** Default `'image/jpeg'`. */
10
21
  mimeType?: string;
22
+ /** 0 to 1, for the lossy types. Default `0.92`. */
11
23
  quality?: number;
12
24
  fileName?: string;
13
- }): Promise<File>;
25
+ };
26
+ export declare function cropImageToFile(imageSrc: string, pixelCrop: Area, options?: CropImageOptions): Promise<File>;
@@ -1,6 +1,6 @@
1
1
  import { ButtonVariant } from '../../actions/button/button.js';
2
- import { ImageCropResult, ImageCropShape } from './types.js';
3
- export type ImageCropperProps = {
2
+ import { ImageCropOutput, ImageCropResult, ImageCropShape } from './types.js';
3
+ export type ImageCropperProps = ImageCropOutput & {
4
4
  src: string;
5
5
  aspect?: number;
6
6
  cropShape?: ImageCropShape;
@@ -16,4 +16,4 @@ export type ImageCropperProps = {
16
16
  cancelVariant?: ButtonVariant;
17
17
  className?: string;
18
18
  };
19
- export declare function ImageCropper({ src, aspect: aspectProp, cropShape, fileName, onCrop, onCancel, cancelVariant, className, }: ImageCropperProps): import("react").JSX.Element;
19
+ export declare function ImageCropper({ src, aspect: aspectProp, cropShape, fileName, outputSize, mimeType, quality, onCrop, onCancel, cancelVariant, className, }: ImageCropperProps): import("react").JSX.Element;
@@ -1,7 +1,8 @@
1
- export { cropImageToFile, getRadianAngle, rotateSize } from './crop-image.js';
1
+ export type { CropImageOptions } from './crop-image.js';
2
+ export { cropImageToFile, fitOutputSize, getRadianAngle, rotateSize, } from './crop-image.js';
2
3
  export type { ImageCropperProps } from './image-cropper.js';
3
4
  export { ImageCropper } from './image-cropper.js';
4
5
  export type { ImageCropperDialogProps } from './image-cropper-dialog.js';
5
6
  export { ImageCropperDialog } from './image-cropper-dialog.js';
6
- export type { ImageCropAspectId, ImageCropResult, ImageCropShape, } from './types.js';
7
+ export type { ImageCropAspectId, ImageCropOutput, ImageCropResult, ImageCropShape, } from './types.js';
7
8
  export { IMAGE_CROP_ASPECTS } from './types.js';
@@ -4,6 +4,15 @@ export type ImageCropResult = {
4
4
  file: File;
5
5
  area: Area;
6
6
  };
7
+ /** What the cropped file is made of, shared by the helper and the cropper. */
8
+ export type ImageCropOutput = {
9
+ /** Longest side of the file in px (512, say). Downscale only. Default: the crop's own size. */
10
+ outputSize?: number;
11
+ /** Default `'image/jpeg'`. */
12
+ mimeType?: string;
13
+ /** 0 to 1, for the lossy types. Default `0.92`. */
14
+ quality?: number;
15
+ };
7
16
  export declare const IMAGE_CROP_ASPECTS: readonly [{
8
17
  readonly id: "1:1";
9
18
  readonly label: "1:1";
@@ -1,6 +1,6 @@
1
1
  import { Area } from 'react-easy-crop';
2
- import { ImageCropResult } from './types.js';
3
- type Options = {
2
+ import { ImageCropOutput, ImageCropResult } from './types.js';
3
+ type Options = ImageCropOutput & {
4
4
  src: string;
5
5
  area: Area | null;
6
6
  rotation: number;
@@ -8,7 +8,7 @@ type Options = {
8
8
  onCrop: (result: ImageCropResult) => void | Promise<void>;
9
9
  };
10
10
  /** The apply step: crops the image, hands it to `onCrop` and tracks saving. */
11
- export declare function useApplyCrop({ src, area, rotation, fileName, onCrop, }: Options): {
11
+ export declare function useApplyCrop({ src, area, rotation, fileName, outputSize, mimeType, quality, onCrop, }: Options): {
12
12
  apply: () => Promise<void>;
13
13
  isSaving: boolean;
14
14
  error: string | null;
@@ -1,8 +1,8 @@
1
1
  import { RefObject } from 'react';
2
2
  import { Area, Point } from 'react-easy-crop';
3
3
  import { CropSize } from './crop-resize-handles.js';
4
- import { ImageCropAspectId, ImageCropResult } from './types.js';
5
- type Options = {
4
+ import { ImageCropAspectId, ImageCropOutput, ImageCropResult } from './types.js';
5
+ type Options = ImageCropOutput & {
6
6
  src: string;
7
7
  aspect?: number;
8
8
  fileName?: string;
@@ -10,7 +10,7 @@ type Options = {
10
10
  frameRef: RefObject<HTMLDivElement | null>;
11
11
  };
12
12
  /** The cropper's crop, zoom, rotation and aspect state, and the area to apply. */
13
- export declare function useImageCropper({ src, aspect: aspectProp, fileName, onCrop, frameRef, }: Options): {
13
+ export declare function useImageCropper({ src, aspect: aspectProp, fileName, outputSize, mimeType, quality, onCrop, frameRef, }: Options): {
14
14
  crop: Point;
15
15
  setCrop: import('react').Dispatch<import('react').SetStateAction<Point>>;
16
16
  zoom: number;
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Today, the arrows and the period on the first row; the view switcher and
2
+ * Today, the arrows and the period on the first row (up to 30rem the period
3
+ * wraps to a row of its own); the view switcher and
3
4
  * the search after them, on a row of their own on a phone — where the search
4
5
  * folds into an icon until it is opened (or holds a query).
5
6
  */
@@ -1611,6 +1611,13 @@ export declare const en: {
1611
1611
  reset: string;
1612
1612
  "clear-all": string;
1613
1613
  "inline-clear-hint": string;
1614
+ "archived-status": {
1615
+ toggle: string;
1616
+ field: string;
1617
+ active: string;
1618
+ archived: string;
1619
+ all: string;
1620
+ };
1614
1621
  min: string;
1615
1622
  max: string;
1616
1623
  presets: {
@@ -1601,6 +1601,13 @@ declare const _default: {
1601
1601
  "reset": "Reset",
1602
1602
  "clear-all": "Clear all",
1603
1603
  "inline-clear-hint": "Pressing a selected chip removes it from the filter",
1604
+ "archived-status": {
1605
+ "toggle": "Show archived",
1606
+ "field": "Show",
1607
+ "active": "Active",
1608
+ "archived": "Archived",
1609
+ "all": "All"
1610
+ },
1604
1611
  "min": "Min",
1605
1612
  "max": "Max",
1606
1613
  "presets": {
@@ -1611,6 +1611,13 @@ export declare const fr: {
1611
1611
  reset: string;
1612
1612
  "clear-all": string;
1613
1613
  "inline-clear-hint": string;
1614
+ "archived-status": {
1615
+ toggle: string;
1616
+ field: string;
1617
+ active: string;
1618
+ archived: string;
1619
+ all: string;
1620
+ };
1614
1621
  min: string;
1615
1622
  max: string;
1616
1623
  presets: {
@@ -1601,6 +1601,13 @@ declare const _default: {
1601
1601
  "reset": "Réinitialiser",
1602
1602
  "clear-all": "Tout effacer",
1603
1603
  "inline-clear-hint": "Appuyer sur une puce sélectionnée la retire du filtre",
1604
+ "archived-status": {
1605
+ "toggle": "Afficher les archivés",
1606
+ "field": "Afficher",
1607
+ "active": "Actifs",
1608
+ "archived": "Archivés",
1609
+ "all": "Tous"
1610
+ },
1604
1611
  "min": "Min",
1605
1612
  "max": "Max",
1606
1613
  "presets": {
@@ -1609,6 +1609,13 @@ export declare const resources: {
1609
1609
  reset: string;
1610
1610
  "clear-all": string;
1611
1611
  "inline-clear-hint": string;
1612
+ "archived-status": {
1613
+ toggle: string;
1614
+ field: string;
1615
+ active: string;
1616
+ archived: string;
1617
+ all: string;
1618
+ };
1612
1619
  min: string;
1613
1620
  max: string;
1614
1621
  presets: {
@@ -5202,6 +5209,13 @@ export declare const resources: {
5202
5209
  reset: string;
5203
5210
  "clear-all": string;
5204
5211
  "inline-clear-hint": string;
5212
+ "archived-status": {
5213
+ toggle: string;
5214
+ field: string;
5215
+ active: string;
5216
+ archived: string;
5217
+ all: string;
5218
+ };
5205
5219
  min: string;
5206
5220
  max: string;
5207
5221
  presets: {