nuxeo-development-framework 5.2.7 → 5.2.9

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 (37) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +8 -6
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/dynamic-view/list-viewer/list-viewer.component.js +1 -1
  4. package/esm2015/lib/components/notifications/components/notifications-button/notifications-button.component.js +2 -2
  5. package/esm2015/lib/components/spell-checker-field/spell-checker-field.module.js +1 -1
  6. package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/aggregation-field/aggregation-field.component.js +4 -4
  7. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/aggregation-field-config.js +1 -1
  8. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/base-field-config.js +1 -1
  9. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/custom-field-config.js +1 -1
  10. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/autocomplete-options.js +1 -1
  11. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/checkbox-options.js +1 -1
  12. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/common-utils.js +1 -1
  13. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/input-options.js +1 -1
  14. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/predicate-field-config.js +1 -1
  15. package/esm2015/lib/components/tables/ndf-table/models/table-config.js +1 -1
  16. package/esm2015/lib/components/tables/ndf-table/models/table-mode.js +1 -1
  17. package/esm2015/lib/components/tables/ndf-table/models/types.js +1 -1
  18. package/esm2015/lib/components/tables/table/page-sizes-list/page-sizes-list.component.js +2 -2
  19. package/esm2015/lib/components/tables/table/table/table.component.js +3 -1
  20. package/esm2015/lib/shared/models/index.js +1 -2
  21. package/fesm2015/nuxeo-development-framework.js +8 -6
  22. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  23. package/lib/components/tables/ndf-table/filters-panel/models/aggregation-field-config.d.ts +4 -4
  24. package/lib/components/tables/ndf-table/filters-panel/models/base-field-config.d.ts +1 -1
  25. package/lib/components/tables/ndf-table/filters-panel/models/custom-field-config.d.ts +3 -3
  26. package/lib/components/tables/ndf-table/filters-panel/models/field-options/autocomplete-options.d.ts +8 -1
  27. package/lib/components/tables/ndf-table/filters-panel/models/field-options/checkbox-options.d.ts +9 -1
  28. package/lib/components/tables/ndf-table/filters-panel/models/field-options/common-utils.d.ts +37 -6
  29. package/lib/components/tables/ndf-table/filters-panel/models/field-options/input-options.d.ts +14 -2
  30. package/lib/components/tables/ndf-table/filters-panel/models/predicate-field-config.d.ts +3 -3
  31. package/lib/components/tables/ndf-table/models/table-config.d.ts +37 -0
  32. package/lib/components/tables/ndf-table/models/table-mode.d.ts +2 -2
  33. package/lib/components/tables/ndf-table/models/types.d.ts +2 -1
  34. package/lib/shared/models/index.d.ts +0 -1
  35. package/package.json +1 -1
  36. package/esm2015/lib/shared/models/types-helper.js +0 -2
  37. package/lib/shared/models/types-helper.d.ts +0 -1
@@ -1,7 +1,7 @@
1
- import { BaseFiledConfig } from './base-field-config';
1
+ import { BaseFieldConfig } from './base-field-config';
2
2
  import { AutocompleteOptions, CheckboxOptions, CustomOptions, DateListOptions, DropdownOptions, RadioOptions, SwitchOptions } from './field-options';
3
3
  import { FieldSendModeType, Prettify } from './types-helper';
4
- export declare type AggregationFieldConfig = Prettify<BaseFiledConfig & {
4
+ export declare type AggregationFieldConfig = Prettify<BaseFieldConfig & {
5
5
  aggregation: string;
6
6
  propertyPath?: string;
7
7
  bindLabel?: {
@@ -9,8 +9,8 @@ export declare type AggregationFieldConfig = Prettify<BaseFiledConfig & {
9
9
  en: string;
10
10
  };
11
11
  bindValue?: string;
12
- dataTransformer?: 'documentTypee' | 'format' | 'subject' | 'site' | 'store' | 'system' | string;
13
- sendMode?: FieldSendModeType;
12
+ dataTransformer?: string;
13
+ sendMode: FieldSendModeType;
14
14
  tooltip?: AggregationTooltipType;
15
15
  render: CheckboxOptions | SwitchOptions | RadioOptions | DropdownOptions | AutocompleteOptions | CustomOptions | DateListOptions;
16
16
  }>;
@@ -1,5 +1,5 @@
1
1
  import { ComparisonOperator, TranslateKey } from './types-helper';
2
- export declare type BaseFiledConfig = {
2
+ export declare type BaseFieldConfig = {
3
3
  label: TranslateKey;
4
4
  fieldKey: string;
5
5
  values?: unknown;
@@ -1,7 +1,7 @@
1
1
  import { FieldSendModeType, Prettify } from './types-helper';
2
- import { BaseFiledConfig } from './base-field-config';
2
+ import { BaseFieldConfig } from './base-field-config';
3
3
  import { ActiveUserSwitcherOptions } from './field-options/custom-fields-options';
4
- export declare type CustomFieldConfig = Prettify<BaseFiledConfig & {
5
- sendMode?: Exclude<FieldSendModeType, 'custom'>;
4
+ export declare type CustomFieldConfig = Prettify<BaseFieldConfig & {
5
+ sendMode: Exclude<FieldSendModeType, 'custom'>;
6
6
  render: ActiveUserSwitcherOptions;
7
7
  }>;
@@ -1,6 +1,13 @@
1
- import { Prettify } from "../types-helper";
1
+ import { Prettify } from '../types-helper';
2
2
  import { HideLabel, ShowTotalConfig } from './common-utils';
3
+ /**
4
+ * Configuration options for an autocomplete field.
5
+ */
3
6
  export declare type AutocompleteOptions = {
4
7
  type: 'autocomplete';
8
+ /**
9
+ * Additional options for the autocomplete field, combining
10
+ * `ShowTotalConfig` and `HideLabel` properties.
11
+ */
5
12
  options?: Prettify<ShowTotalConfig & HideLabel>;
6
13
  };
@@ -1,6 +1,14 @@
1
- import { Prettify } from "../types-helper";
1
+ import { Prettify } from '../types-helper';
2
2
  import { CollapseConfig, FilterConfig, HideLabel, SearchConfig, ShowTotalConfig, SortOptions } from './common-utils';
3
+ /**
4
+ * Configuration options for a checkbox field.
5
+ */
3
6
  export declare type CheckboxOptions = {
4
7
  type: 'checkbox';
8
+ /**
9
+ * Additional options for the checkbox field, combining
10
+ * `ShowTotalConfig`, `FilterConfig`, `CollapseConfig`,
11
+ * `SearchConfig`, `HideLabel`, and `SortOptions` properties.
12
+ */
5
13
  options?: Prettify<ShowTotalConfig & FilterConfig & CollapseConfig & SearchConfig & HideLabel & SortOptions>;
6
14
  };
@@ -1,24 +1,55 @@
1
1
  import { ComparisonOperator, EvaluatedString, StringOrNumber } from '../types-helper';
2
- export declare type FilterConfig = {
3
- filter?: boolean;
4
- };
5
- export declare type HideLabel = {
6
- hideLabel?: boolean;
7
- };
2
+ /**
3
+ * Configuration for search functionality.
4
+ */
8
5
  export declare type SearchConfig = {
9
6
  search?: {
7
+ /**
8
+ * Placeholder text for the search input.
9
+ */
10
10
  placeholder?: string;
11
+ /**
12
+ * Query configuration for the search.
13
+ */
11
14
  query: {
15
+ /**
16
+ * The field to be queried.
17
+ */
12
18
  field?: string;
19
+ /**
20
+ * HTTP method to use for the query.
21
+ * Can be either 'get' or 'post'.
22
+ */
13
23
  method?: 'get' | 'post';
24
+ /**
25
+ * The URL endpoint for the query.
26
+ */
14
27
  url: string;
28
+ /**
29
+ * Operator to use for comparison in the query.
30
+ */
15
31
  operator?: ComparisonOperator;
32
+ /**
33
+ * Template string for dynamic query generation.
34
+ */
16
35
  template?: EvaluatedString;
36
+ /**
37
+ * Query parameters as key-value pairs.
38
+ */
17
39
  params?: Record<StringOrNumber, StringOrNumber>;
40
+ /**
41
+ * HTTP headers as key-value pairs.
42
+ */
18
43
  headers?: Record<StringOrNumber, StringOrNumber>;
19
44
  };
20
45
  };
21
46
  };
47
+ export declare type FilterConfig = {
48
+ filter?: boolean;
49
+ };
50
+ export declare type HideLabel = {
51
+ hideLabel?: boolean;
52
+ };
22
53
  export declare type CollapseConfig = {
23
54
  collapse?: boolean;
24
55
  minVisibleCount?: number;
@@ -1,7 +1,11 @@
1
1
  import { KeyValue } from '@angular/common';
2
2
  import { MatDialogConfig } from '@angular/material/dialog';
3
- import { Prettify } from '../types-helper';
3
+ import { Prettify, TranslateKey } from '../types-helper';
4
4
  import { HideLabel } from './common-utils';
5
+ /**
6
+ * Represents the configuration options for an input field.
7
+ *
8
+ */
5
9
  export declare type InputOptions = {
6
10
  type: 'input';
7
11
  options?: Prettify<HideLabel & {
@@ -26,13 +30,21 @@ export declare type InputOptions = {
26
30
  text?: string;
27
31
  dropdown?: {
28
32
  selectedValue?: string;
29
- items: KeyValue<string, string>[];
33
+ items: KeyValue<TranslateKey, string>[];
30
34
  };
31
35
  tooltip?: string;
32
36
  dialog?: HtmlDialogConfig;
33
37
  };
34
38
  }>;
35
39
  };
40
+ /**
41
+ * Represents the configuration for an HTML dialog.
42
+ *
43
+ * @typedef {Object} HtmlDialogConfig
44
+ * @property {Array<string>} content - The content of the dialog.
45
+ * @property {string} [title] - The title of the dialog.
46
+ * @property {Partial<MatDialogConfig>} [options] - Additional configuration options for the dialog.
47
+ */
36
48
  export declare type HtmlDialogConfig = {
37
49
  content: string[];
38
50
  title?: string;
@@ -1,7 +1,7 @@
1
- import { BaseFiledConfig } from './base-field-config';
1
+ import { BaseFieldConfig } from './base-field-config';
2
2
  import { DateInputOptions, InputOptions } from './field-options';
3
3
  import { FieldSendModeType, Prettify } from './types-helper';
4
- export declare type PredicateFieldConfig = Prettify<BaseFiledConfig & {
5
- sendMode?: Exclude<FieldSendModeType, 'custom'>;
4
+ export declare type PredicateFieldConfig = Prettify<BaseFieldConfig & {
5
+ sendMode: Exclude<FieldSendModeType, 'custom'>;
6
6
  render: InputOptions | DateInputOptions;
7
7
  }>;
@@ -1,43 +1,80 @@
1
1
  import { TableColumnAction, TableColumnConfig } from './table-column';
2
2
  import { NdfTableOptions } from './table-options';
3
3
  import { TableDefaultSortModel, TablePaginationOptions, TableSortingArray, TableSortOptions, TableTab } from './types';
4
+ /**
5
+ * Configuration type for the NDF Table component.
6
+ * Extends `TablePaginationOptions` and provides additional properties
7
+ * for customizing table behavior, appearance, and data handling.
8
+ */
4
9
  export declare type NdfTableConfig = TablePaginationOptions & {
10
+ /** Indicates if the data is provided directly instead of being fetched. */
5
11
  isDataProvided?: boolean;
12
+ /** Options for configuring the table. */
6
13
  options?: NdfTableOptions;
14
+ /** Enables horizontal scrollbar if set to true. */
7
15
  scrollbarH?: boolean;
16
+ /** Defines the column mode: 'flex', 'fixed', or 'force'. */
8
17
  columnMode?: 'flex' | 'fixed' | 'force';
18
+ /** The page provider identifier for fetching data. */
9
19
  pageProvider: string;
20
+ /** A mapping of field names to their corresponding values. */
10
21
  fields: Record<string, string>;
22
+ /** Custom URL configuration for fetching data. */
11
23
  customUrl?: {
12
24
  url: string;
13
25
  method: 'POST' | 'GET';
14
26
  payload?: Record<string, any>;
15
27
  predicateKey?: string;
16
28
  };
29
+ /** Quick filter identifier for the table. */
17
30
  quickFilters?: string;
31
+ /** Configuration for table columns. */
18
32
  columns: TableColumnConfig[];
33
+ /** List of column identifiers with dynamic visibility. */
19
34
  columnsWithDynamicVisibiltiy?: string[];
35
+ /** List of column identifiers with dynamic display. */
20
36
  columnsWithDynamicDisplay?: string[];
37
+ /** List of filter identifiers with dynamic display. */
21
38
  filtersWithDynamicDisplay?: string[];
39
+ /** Configuration for responsive columns. */
22
40
  responsiveColumns?: TableColumnConfig[];
41
+ /** Specifies the full width of the table. */
23
42
  fullWidth?: string;
43
+ /** Prefix for table-related identifiers. */
24
44
  prefix?: string;
45
+ /** Sorting options for the table. */
25
46
  sortingBy?: TableSortOptions;
47
+ /** Default sorting configuration for the table. */
26
48
  defaultSort?: TableDefaultSortModel;
49
+ /** Custom headers for table requests. */
27
50
  headers?: Record<string, any>;
51
+ /** Query parameters for table requests. */
28
52
  queryParam?: Record<string, any>;
53
+ /** Actions available for table columns. */
29
54
  tableActions?: TableColumnAction[];
55
+ /** Highlights the selected card if set to true. */
30
56
  highlightSelectedCard?: boolean;
57
+ /** Tabs configuration for the table. */
31
58
  tabs?: TableTab[];
59
+ /** Array of sorting configurations. */
32
60
  sortingArray?: TableSortingArray[];
61
+ /** Determines when to skip aggregation: 'never' or 'onPageChange'. */
33
62
  skipAggregation?: 'never' | 'onPageChange';
63
+ /** Range configuration for the table. */
34
64
  range?: any;
65
+ /** Indicates if the table is used on a search page. */
35
66
  isSearchPage?: any;
67
+ /** Enables multi-select rows if set to true. */
36
68
  multiSelectRows?: boolean;
69
+ /** Adds a custom first row to the table if set to true. */
37
70
  customFirstRow?: boolean;
71
+ /** Displays actions as a menu if set to true. */
38
72
  showActionsAsMenu?: boolean;
73
+ /** Additional filter parameters for the table. */
39
74
  filterParams?: Record<string, any>;
75
+ /** Format configuration for the table. */
40
76
  format?: string;
77
+ /** Available page sizes for the table. */
41
78
  pageSizes?: {
42
79
  label: string;
43
80
  size: number;
@@ -1,4 +1,4 @@
1
- import { Prettify } from '../filters-panel';
1
+ import { Prettify, TranslateKey } from '../filters-panel';
2
2
  declare type BaseTableModel = {
3
3
  toggleMode?: boolean;
4
4
  availableMode?: TableModeList;
@@ -12,7 +12,7 @@ declare type CustomTableMode = Prettify<BaseTableModel & {
12
12
  }>;
13
13
  export declare type TableViewMode = 'dynamicCard' | 'list' | 'card' | 'custom';
14
14
  export declare type TableToggleItem = {
15
- key?: string;
15
+ key?: TranslateKey;
16
16
  value: TableViewMode;
17
17
  icon: string;
18
18
  };
@@ -1,3 +1,4 @@
1
+ import { TranslateKey } from '../filters-panel';
1
2
  export declare type TablePaginationOptions = {
2
3
  pageNumber: number;
3
4
  pageSize: number;
@@ -27,7 +28,7 @@ export declare type TableTab = {
27
28
  pageProvider: string;
28
29
  };
29
30
  export declare type SortTableItem = {
30
- key: string;
31
+ key: TranslateKey;
31
32
  value: string;
32
33
  direction: 'asc' | 'desc';
33
34
  selected?: boolean;
@@ -1,4 +1,3 @@
1
1
  export * from './mapper/index';
2
2
  export * from './nuxeo-response.model';
3
3
  export * from './task.model';
4
- export * from './types-helper';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "5.2.7",
3
+ "version": "5.2.9",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMtaGVscGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbnV4ZW8tZGV2ZWxvcG1lbnQtZnJhbWV3b3JrL3NyYy9saWIvc2hhcmVkL21vZGVscy90eXBlcy1oZWxwZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIFRyYW5zbGF0ZWRLZXkgPSBzdHJpbmc7XHJcbiJdfQ==
@@ -1 +0,0 @@
1
- export declare type TranslatedKey = string;