@provoly/dashboard 0.23.4 → 0.23.5

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 (45) hide show
  1. package/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.d.ts +7 -3
  2. package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +22 -5
  3. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +3 -3
  4. package/esm2022/lib/core/components/share/group-share/group-share.component.mjs +12 -6
  5. package/esm2022/lib/core/model/filter.interface.mjs +1 -1
  6. package/esm2022/lib/core/model/manifest.interface.mjs +1 -1
  7. package/esm2022/lib/core/model/widget.interface.mjs +1 -1
  8. package/esm2022/lib/core/store/config/config.service.mjs +2 -1
  9. package/esm2022/lib/core/toolbox/toolbox-menu.service.mjs +1 -2
  10. package/esm2022/lib/dashboard/store/dashboard.actions.mjs +1 -1
  11. package/esm2022/lib/dashboard/store/dashboard.effects.mjs +2 -2
  12. package/esm2022/lib/dashboard/store/manifest.service.mjs +3 -3
  13. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +5 -9
  14. package/esm2022/presentation/components/presentation.component.mjs +23 -4
  15. package/esm2022/presentation/i18n/fr.translations.mjs +1 -2
  16. package/esm2022/restitution/components/restitution/restitution.component.mjs +5 -11
  17. package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +3 -3
  18. package/esm2022/restitution/components/restitution-list-item/restitution-list-item.component.mjs +3 -3
  19. package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +14 -5
  20. package/esm2022/toolbox/components/save-view/save-view.component.mjs +5 -7
  21. package/esm2022/toolbox/components/share/share.component.mjs +2 -3
  22. package/fesm2022/provoly-dashboard-admin.mjs +20 -3
  23. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  24. package/fesm2022/provoly-dashboard-dataset.mjs +2 -2
  25. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  26. package/fesm2022/provoly-dashboard-presentation.mjs +27 -13
  27. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  28. package/fesm2022/provoly-dashboard-restitution.mjs +7 -13
  29. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  30. package/fesm2022/provoly-dashboard-toolbox.mjs +18 -11
  31. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  32. package/fesm2022/provoly-dashboard.mjs +14 -8
  33. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  34. package/lib/core/components/share/group-share/group-share.component.d.ts +3 -2
  35. package/lib/core/model/filter.interface.d.ts +1 -0
  36. package/lib/core/model/manifest.interface.d.ts +0 -2
  37. package/lib/core/model/widget.interface.d.ts +0 -1
  38. package/lib/dashboard/components/widgets/widget-placement/widget-placement.utils.d.ts +0 -1
  39. package/lib/dashboard/store/dashboard.actions.d.ts +0 -2
  40. package/lib/dashboard/store/manifest.service.d.ts +1 -1
  41. package/package.json +7 -7
  42. package/presentation/components/presentation.component.d.ts +5 -0
  43. package/presentation/i18n/fr.translations.d.ts +0 -1
  44. package/styles/components/_a-label.scss +4 -0
  45. package/toolbox/components/filter-settings/filter-settings.component.d.ts +4 -14
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { Group, PryVisibilityType } from '../share.model';
4
4
  import { BehaviorSubject, Observable } from 'rxjs';
@@ -34,6 +34,7 @@ export declare class PryGroupShareComponent extends SubscriptionnerDirective imp
34
34
  } | null);
35
35
  _allowedGroups$: BehaviorSubject<string[] | undefined>;
36
36
  set allowedGroups(value: string[] | null);
37
+ radioValueChange: EventEmitter<PryVisibilityType>;
37
38
  constructor(store: Store, _cd: ChangeDetectorRef);
38
39
  writeValue(value: string[] | undefined): void;
39
40
  registerOnChange(fn: any): void;
@@ -42,5 +43,5 @@ export declare class PryGroupShareComponent extends SubscriptionnerDirective imp
42
43
  changeGroupsBasedOnRadioValue(type: PryVisibilityType): void;
43
44
  changeGroups(groups: (Group | string)[] | null): void;
44
45
  static ɵfac: i0.ɵɵFactoryDeclaration<PryGroupShareComponent, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<PryGroupShareComponent, "pry-group-share", never, { "disableRadios": { "alias": "disableRadios"; "required": false; }; "allowedGroups": { "alias": "allowedGroups"; "required": false; }; }, {}, never, never, false, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<PryGroupShareComponent, "pry-group-share", never, { "disableRadios": { "alias": "disableRadios"; "required": false; }; "allowedGroups": { "alias": "allowedGroups"; "required": false; }; }, { "radioValueChange": "radioValueChange"; }, never, never, false, never>;
46
47
  }
@@ -4,6 +4,7 @@ export interface Filter {
4
4
  type: string;
5
5
  attributes: {
6
6
  id: string;
7
+ customId: string;
7
8
  technicalName: string;
8
9
  label: string;
9
10
  datasource: string;
@@ -17,7 +17,6 @@ export interface ManifestDescription {
17
17
  description?: string;
18
18
  manifestUrl: string;
19
19
  image: string;
20
- cover: boolean;
21
20
  creationDate: string;
22
21
  modificationDate: string;
23
22
  groups: string[];
@@ -73,7 +72,6 @@ export interface WidgetManifest {
73
72
  options?: WidgetOptions;
74
73
  datasource?: string | string[];
75
74
  header?: boolean;
76
- cover?: boolean;
77
75
  contextMenu?: boolean;
78
76
  }
79
77
  export interface CustomWidgetOptions {
@@ -8,6 +8,5 @@ export interface Widget {
8
8
  visibility?: PryVisibility;
9
9
  datasource: string[];
10
10
  owner?: boolean;
11
- cover?: boolean;
12
11
  modificationDate: string;
13
12
  }
@@ -14,7 +14,6 @@ export declare const WidgetPlacementUtils: {
14
14
  options?: import("../../../../core/model/manifest.interface").WidgetOptions | undefined;
15
15
  datasource?: string | string[] | undefined;
16
16
  header?: boolean | undefined;
17
- cover?: boolean | undefined;
18
17
  contextMenu?: boolean | undefined;
19
18
  }[];
20
19
  swapArrayElements: (arr: any[], x: number, y: number) => any[];
@@ -242,7 +242,6 @@ export declare const DashboardActions: {
242
242
  id: string;
243
243
  description?: string | undefined;
244
244
  image?: string | undefined;
245
- cover?: boolean | undefined;
246
245
  metadata?: {
247
246
  metadataDefId: string;
248
247
  value: string;
@@ -254,7 +253,6 @@ export declare const DashboardActions: {
254
253
  id: string;
255
254
  description?: string | undefined;
256
255
  image?: string | undefined;
257
- cover?: boolean | undefined;
258
256
  metadata?: {
259
257
  metadataDefId: string;
260
258
  value: string;
@@ -14,7 +14,7 @@ export declare class ManifestService {
14
14
  constructor(httpClient: HttpClient, store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService);
15
15
  list(): Observable<ManifestDescription[]>;
16
16
  get(id: string): Observable<GlobalManifest>;
17
- save(name: string, manifest: GlobalManifest, id: string, description?: string, image?: string, cover?: boolean, metadata?: {
17
+ save(name: string, manifest: GlobalManifest, id: string, description?: string, image?: string, metadata?: {
18
18
  metadataDefId: string;
19
19
  value: string;
20
20
  }[], groups?: string[]): Observable<ShareConflict>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.23.4",
3
+ "version": "0.23.5",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "16.x || 17.x",
@@ -186,18 +186,18 @@
186
186
  "esm": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
187
187
  "default": "./fesm2022/provoly-dashboard-components-expand-panel.mjs"
188
188
  },
189
- "./components/metadata-editor": {
190
- "types": "./components/metadata-editor/index.d.ts",
191
- "esm2022": "./esm2022/components/metadata-editor/provoly-dashboard-components-metadata-editor.mjs",
192
- "esm": "./esm2022/components/metadata-editor/provoly-dashboard-components-metadata-editor.mjs",
193
- "default": "./fesm2022/provoly-dashboard-components-metadata-editor.mjs"
194
- },
195
189
  "./components/filter": {
196
190
  "types": "./components/filter/index.d.ts",
197
191
  "esm2022": "./esm2022/components/filter/provoly-dashboard-components-filter.mjs",
198
192
  "esm": "./esm2022/components/filter/provoly-dashboard-components-filter.mjs",
199
193
  "default": "./fesm2022/provoly-dashboard-components-filter.mjs"
200
194
  },
195
+ "./components/metadata-editor": {
196
+ "types": "./components/metadata-editor/index.d.ts",
197
+ "esm2022": "./esm2022/components/metadata-editor/provoly-dashboard-components-metadata-editor.mjs",
198
+ "esm": "./esm2022/components/metadata-editor/provoly-dashboard-components-metadata-editor.mjs",
199
+ "default": "./fesm2022/provoly-dashboard-components-metadata-editor.mjs"
200
+ },
201
201
  "./components/scheme-picker": {
202
202
  "types": "./components/scheme-picker/index.d.ts",
203
203
  "esm2022": "./esm2022/components/scheme-picker/provoly-dashboard-components-scheme-picker.mjs",
@@ -40,6 +40,8 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
40
40
  [key in PryVisibilityType]: boolean;
41
41
  }>;
42
42
  allowedShareGroups$: Observable<string[]>;
43
+ shareRadioValue$: BehaviorSubject<PryVisibilityType | undefined>;
44
+ disableShareButton$: BehaviorSubject<boolean>;
43
45
  mode: 'theme' | 'meta';
44
46
  set listOfManifests(manifests: ManifestDescription[] | null);
45
47
  hideToolbox: boolean;
@@ -57,6 +59,9 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
57
59
  focusCrossElement(): void;
58
60
  focusValidation(): void;
59
61
  editContent(selectedPresentation: ManifestDescription): void;
62
+ updateAccessGroups($event: string[]): void;
63
+ updateVisibility($event: PryVisibilityType): void;
64
+ updateDisableButtonValue(): void;
60
65
  static ɵfac: i0.ɵɵFactoryDeclaration<PryPresentationComponent, never>;
61
66
  static ɵcmp: i0.ɵɵComponentDeclaration<PryPresentationComponent, "pry-presentation", never, { "editionStartUrl": { "alias": "editionStartUrl"; "required": false; }; "consultStartUrl": { "alias": "consultStartUrl"; "required": false; }; "meAsOwner": { "alias": "meAsOwner"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "listOfManifests": { "alias": "listOfManifests"; "required": false; }; "hideToolbox": { "alias": "hideToolbox"; "required": false; }; "search": { "alias": "search"; "required": false; }; }, {}, never, never, false, never>;
62
67
  }
@@ -19,7 +19,6 @@ export declare const frTranslations: {
19
19
  categories: string;
20
20
  categoryInput: string;
21
21
  grid: string;
22
- cover: string;
23
22
  theme: string;
24
23
  };
25
24
  share: string;
@@ -13,4 +13,8 @@
13
13
  padding-top: 7px;
14
14
  padding-left: 12px;
15
15
  }
16
+
17
+ &--disabled {
18
+ opacity: 0.5;
19
+ }
16
20
  }
@@ -13,6 +13,7 @@ export declare enum FilterSteps {
13
13
  }
14
14
  export interface Attribute {
15
15
  id: string;
16
+ customId: string;
16
17
  technicalName: string;
17
18
  label: string;
18
19
  datasource: string;
@@ -48,22 +49,10 @@ export declare class PryFilterSettingsComponent extends ToolboxActionComponent {
48
49
  value: string;
49
50
  }[]>;
50
51
  classes: Class[];
51
- attributes$: Observable<{
52
- id: string;
53
- technicalName: string;
54
- label: string;
55
- datasource: string;
56
- type: string;
57
- }[]>;
52
+ attributes$: Observable<Attribute[]>;
58
53
  selectedAttribute$: BehaviorSubject<string[]>;
59
54
  container: ViewContainerRef;
60
- attributes: {
61
- id: string;
62
- technicalName: string;
63
- label: string;
64
- datasource: string;
65
- type: string;
66
- }[];
55
+ attributes: Attribute[];
67
56
  constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, filterFactoryService: FilterFactoryService, injector: Injector, i18nService: PryI18nService);
68
57
  getDatasourceClass(dataSource: DataSource, classes: Class[]): Class | undefined;
69
58
  isValidAttributeForComponentType(componentType: string, attribute: Attribute): boolean;
@@ -82,6 +71,7 @@ export declare class PryFilterSettingsComponent extends ToolboxActionComponent {
82
71
  label: string;
83
72
  value: string;
84
73
  }[];
74
+ getCustomAttributeId(attributeId: string, datasetId: string): string;
85
75
  protected readonly FilterSteps: typeof FilterSteps;
86
76
  static ɵfac: i0.ɵɵFactoryDeclaration<PryFilterSettingsComponent, never>;
87
77
  static ɵcmp: i0.ɵɵComponentDeclaration<PryFilterSettingsComponent, "pry-filter-settings", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, never, false, never>;