@memberjunction/ng-dashboards 5.29.0 → 5.30.1

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 (90) hide show
  1. package/dist/AI/components/agents/agent-configuration.component.d.ts.map +1 -1
  2. package/dist/AI/components/agents/agent-configuration.component.js +11 -9
  3. package/dist/AI/components/agents/agent-configuration.component.js.map +1 -1
  4. package/dist/AI/components/agents/agent-editor.component.d.ts.map +1 -1
  5. package/dist/AI/components/agents/agent-editor.component.js +21 -19
  6. package/dist/AI/components/agents/agent-editor.component.js.map +1 -1
  7. package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.js +154 -154
  8. package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.js.map +1 -1
  9. package/dist/AI/components/duplicates/duplicate-detection-resource.component.d.ts.map +1 -1
  10. package/dist/AI/components/duplicates/duplicate-detection-resource.component.js +8 -0
  11. package/dist/AI/components/duplicates/duplicate-detection-resource.component.js.map +1 -1
  12. package/dist/AI/components/vectors/vector-management-resource.component.d.ts +1 -1
  13. package/dist/AI/components/vectors/vector-management-resource.component.d.ts.map +1 -1
  14. package/dist/AI/components/vectors/vector-management-resource.component.js +2 -2
  15. package/dist/AI/components/vectors/vector-management-resource.component.js.map +1 -1
  16. package/dist/APIKeys/api-applications-panel.component.d.ts +1 -1
  17. package/dist/APIKeys/api-applications-panel.component.d.ts.map +1 -1
  18. package/dist/APIKeys/api-applications-panel.component.js +15 -2
  19. package/dist/APIKeys/api-applications-panel.component.js.map +1 -1
  20. package/dist/APIKeys/api-key-edit-panel.component.d.ts.map +1 -1
  21. package/dist/APIKeys/api-key-edit-panel.component.js +17 -5
  22. package/dist/APIKeys/api-key-edit-panel.component.js.map +1 -1
  23. package/dist/Credentials/components/credentials-list-resource.component.d.ts.map +1 -1
  24. package/dist/Credentials/components/credentials-list-resource.component.js +56 -71
  25. package/dist/Credentials/components/credentials-list-resource.component.js.map +1 -1
  26. package/dist/DashboardBrowser/dashboard-browser-resource.component.d.ts +0 -8
  27. package/dist/DashboardBrowser/dashboard-browser-resource.component.d.ts.map +1 -1
  28. package/dist/DashboardBrowser/dashboard-browser-resource.component.js +73 -74
  29. package/dist/DashboardBrowser/dashboard-browser-resource.component.js.map +1 -1
  30. package/dist/DashboardBrowser/dashboard-share-adapter.d.ts +25 -0
  31. package/dist/DashboardBrowser/dashboard-share-adapter.d.ts.map +1 -0
  32. package/dist/DashboardBrowser/dashboard-share-adapter.js +99 -0
  33. package/dist/DashboardBrowser/dashboard-share-adapter.js.map +1 -0
  34. package/dist/DashboardBrowser/dashboard-share-dialog.component.d.ts +21 -104
  35. package/dist/DashboardBrowser/dashboard-share-dialog.component.d.ts.map +1 -1
  36. package/dist/DashboardBrowser/dashboard-share-dialog.component.js +48 -530
  37. package/dist/DashboardBrowser/dashboard-share-dialog.component.js.map +1 -1
  38. package/dist/DataExplorer/data-explorer-dashboard.component.d.ts +5 -0
  39. package/dist/DataExplorer/data-explorer-dashboard.component.d.ts.map +1 -1
  40. package/dist/DataExplorer/data-explorer-dashboard.component.js +17 -0
  41. package/dist/DataExplorer/data-explorer-dashboard.component.js.map +1 -1
  42. package/dist/Integration/components/connections/connections.component.d.ts +18 -1
  43. package/dist/Integration/components/connections/connections.component.d.ts.map +1 -1
  44. package/dist/Integration/components/connections/connections.component.js +251 -199
  45. package/dist/Integration/components/connections/connections.component.js.map +1 -1
  46. package/dist/Integration/services/integration-data.service.d.ts +7 -2
  47. package/dist/Integration/services/integration-data.service.d.ts.map +1 -1
  48. package/dist/Integration/services/integration-data.service.js +10 -2
  49. package/dist/Integration/services/integration-data.service.js.map +1 -1
  50. package/dist/KnowledgeHub/components/analytics/analytics-resource.component.js +144 -144
  51. package/dist/KnowledgeHub/components/analytics/analytics-resource.component.js.map +1 -1
  52. package/dist/Lists/components/lists-operations-resource.component.d.ts.map +1 -1
  53. package/dist/Lists/components/lists-operations-resource.component.js +12 -14
  54. package/dist/Lists/components/lists-operations-resource.component.js.map +1 -1
  55. package/dist/MCP/mcp-dashboard.component.d.ts.map +1 -1
  56. package/dist/MCP/mcp-dashboard.component.js +28 -57
  57. package/dist/MCP/mcp-dashboard.component.js.map +1 -1
  58. package/dist/Permissions/audit-log-resource.component.d.ts +38 -0
  59. package/dist/Permissions/audit-log-resource.component.d.ts.map +1 -0
  60. package/dist/Permissions/audit-log-resource.component.js +380 -0
  61. package/dist/Permissions/audit-log-resource.component.js.map +1 -0
  62. package/dist/Permissions/permissions-shared.d.ts +51 -0
  63. package/dist/Permissions/permissions-shared.d.ts.map +1 -0
  64. package/dist/Permissions/permissions-shared.js +91 -0
  65. package/dist/Permissions/permissions-shared.js.map +1 -0
  66. package/dist/Permissions/resource-access-resource.component.d.ts +45 -0
  67. package/dist/Permissions/resource-access-resource.component.d.ts.map +1 -0
  68. package/dist/Permissions/resource-access-resource.component.js +342 -0
  69. package/dist/Permissions/resource-access-resource.component.js.map +1 -0
  70. package/dist/Permissions/user-access-resource.component.d.ts +39 -0
  71. package/dist/Permissions/user-access-resource.component.d.ts.map +1 -0
  72. package/dist/Permissions/user-access-resource.component.js +346 -0
  73. package/dist/Permissions/user-access-resource.component.js.map +1 -0
  74. package/dist/component-studio-dashboards.module.d.ts +1 -0
  75. package/dist/component-studio-dashboards.module.d.ts.map +1 -1
  76. package/dist/component-studio-dashboards.module.js +7 -0
  77. package/dist/component-studio-dashboards.module.js.map +1 -1
  78. package/dist/core-dashboards.module.d.ts +24 -20
  79. package/dist/core-dashboards.module.d.ts.map +1 -1
  80. package/dist/core-dashboards.module.js +26 -1
  81. package/dist/core-dashboards.module.js.map +1 -1
  82. package/dist/public-api.d.ts +4 -1
  83. package/dist/public-api.d.ts.map +1 -1
  84. package/dist/public-api.js +4 -0
  85. package/dist/public-api.js.map +1 -1
  86. package/dist/shared/pipes/highlight-search.pipe.d.ts +1 -1
  87. package/dist/shared/pipes/highlight-search.pipe.d.ts.map +1 -1
  88. package/dist/shared/pipes/highlight-search.pipe.js +14 -4
  89. package/dist/shared/pipes/highlight-search.pipe.js.map +1 -1
  90. package/package.json +51 -50
@@ -1,115 +1,32 @@
1
- import { EventEmitter, OnChanges, SimpleChanges, ChangeDetectorRef } from '@angular/core';
2
- import { MJDashboardEntity, MJDashboardPermissionEntity, MJUserEntity } from '@memberjunction/core-entities';
1
+ import { EventEmitter } from '@angular/core';
2
+ import { MJDashboardEntity } from '@memberjunction/core-entities';
3
+ import { ResourceShareContext, ResourceShareDialogResult } from '@memberjunction/ng-resource-permissions';
4
+ import { DashboardShareAdapter } from './dashboard-share-adapter';
3
5
  import * as i0 from "@angular/core";
4
6
  /**
5
- * Represents a user share with their permissions
7
+ * Public re-export kept for backward compatibility with existing call sites
8
+ * ({@link DashboardBrowserResourceComponent}, `DashboardResource` wrapper).
9
+ * The new abstraction lives in `@memberjunction/ng-resource-permissions`.
6
10
  */
7
- export interface UserSharePermission {
8
- /** The permission entity (may be new or existing) */
9
- Permission: MJDashboardPermissionEntity;
10
- /** The user being shared with */
11
- User: MJUserEntity;
12
- /** Whether this is a newly added share */
13
- IsNew: boolean;
14
- /** Whether this share has been marked for removal */
15
- MarkedForRemoval: boolean;
16
- }
17
- /**
18
- * Result emitted when the dialog is closed
19
- */
20
- export interface ShareDialogResult {
21
- /** The action taken: 'save' or 'cancel' */
22
- Action: 'save' | 'cancel';
23
- /** The dashboard that was shared (only on save) */
11
+ export type ShareDialogResult = ResourceShareDialogResult & {
24
12
  Dashboard?: MJDashboardEntity;
25
- }
13
+ };
26
14
  /**
27
- * Dialog component for sharing dashboards with other users.
28
- * Allows setting granular permissions (CanRead, CanEdit, CanDelete, CanShare).
15
+ * Thin wrapper that maps a `MJDashboardEntity` + the Dashboard-specific
16
+ * permission model onto the generic `mj-resource-share-dialog`. Existing call
17
+ * sites (`<mj-dashboard-share-dialog [Dashboard]=... [Visible]=... (Result)=... />`)
18
+ * continue to work unchanged — this component just constructs the context +
19
+ * adapter and delegates.
29
20
  */
30
- export declare class DashboardShareDialogComponent implements OnChanges {
31
- private cdr;
21
+ export declare class DashboardShareDialogComponent {
32
22
  Visible: boolean;
33
- Dashboard: MJDashboardEntity | null;
23
+ set Dashboard(value: MJDashboardEntity | null);
24
+ get Dashboard(): MJDashboardEntity | null;
34
25
  Result: EventEmitter<ShareDialogResult>;
35
- /** Current shares for this dashboard */
36
- UserShares: UserSharePermission[];
37
- /** All available users for sharing (excludes owner and already shared) */
38
- AvailableUsers: MJUserEntity[];
39
- /** All users in the system */
40
- private allUsers;
41
- /** Loading state */
42
- IsLoading: boolean;
43
- /** Error message to display */
44
- Error: string | null;
45
- /** Search filter for available users */
46
- UserSearchFilter: string;
47
- constructor(cdr: ChangeDetectorRef);
48
- ngOnChanges(changes: SimpleChanges): void;
49
- /**
50
- * Reset dialog state
51
- */
52
- private resetDialog;
53
- /**
54
- * Load existing shares and available users
55
- */
56
- private loadData;
57
- /**
58
- * Update the list of available users (excludes owner and already shared)
59
- */
60
- private updateAvailableUsers;
61
- /**
62
- * Get filtered available users based on search
63
- */
64
- get FilteredAvailableUsers(): MJUserEntity[];
65
- /**
66
- * Check if there are unsaved changes
67
- */
68
- get HasChanges(): boolean;
69
- /**
70
- * Add a user to the share list
71
- */
72
- addUserShare(user: MJUserEntity): Promise<void>;
73
- /**
74
- * Mark a share for removal
75
- */
76
- removeUserShare(share: UserSharePermission): void;
77
- /**
78
- * Undo removal of a share
79
- */
80
- undoRemove(share: UserSharePermission): void;
81
- /**
82
- * Get shares that are not marked for removal
83
- */
84
- get ActiveShares(): UserSharePermission[];
85
- /**
86
- * Get shares marked for removal
87
- */
88
- get RemovedShares(): UserSharePermission[];
89
- /**
90
- * Toggle CanEdit permission (also enables CanRead)
91
- */
92
- toggleCanEdit(share: UserSharePermission): void;
93
- /**
94
- * Toggle CanDelete permission (also enables CanRead and CanEdit)
95
- */
96
- toggleCanDelete(share: UserSharePermission): void;
97
- /**
98
- * Toggle CanShare permission (also enables CanRead)
99
- */
100
- toggleCanShare(share: UserSharePermission): void;
101
- /**
102
- * Save all permission changes
103
- */
104
- onSave(): Promise<void>;
105
- /**
106
- * Cancel and close the dialog
107
- */
108
- onCancel(): void;
109
- /**
110
- * Get initials for a user (for avatar display)
111
- */
112
- getUserInitials(user: MJUserEntity): string;
26
+ context: ResourceShareContext | null;
27
+ adapter: DashboardShareAdapter;
28
+ private _dashboard;
29
+ onResult(result: ResourceShareDialogResult): void;
113
30
  static ɵfac: i0.ɵɵFactoryDeclaration<DashboardShareDialogComponent, never>;
114
31
  static ɵcmp: i0.ɵɵComponentDeclaration<DashboardShareDialogComponent, "mj-dashboard-share-dialog", never, { "Visible": { "alias": "Visible"; "required": false; }; "Dashboard": { "alias": "Dashboard"; "required": false; }; }, { "Result": "Result"; }, never, never, false, never>;
115
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard-share-dialog.component.d.ts","sourceRoot":"","sources":["../../src/DashboardBrowser/dashboard-share-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAqB,MAAM,eAAe,CAAC;AAEvI,OAAO,EAAE,iBAAiB,EAAE,2BAA2B,EAAmB,YAAY,EAAE,MAAM,+BAA+B,CAAC;;AAG9H;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,qDAAqD;IACrD,UAAU,EAAE,2BAA2B,CAAC;IACxC,iCAAiC;IACjC,IAAI,EAAE,YAAY,CAAC;IACnB,0CAA0C;IAC1C,KAAK,EAAE,OAAO,CAAC;IACf,qDAAqD;IACrD,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,2CAA2C;IAC3C,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,mDAAmD;IACnD,SAAS,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED;;;GAGG;AACH,qBAOa,6BAA8B,YAAW,SAAS;IAuB/C,OAAO,CAAC,GAAG;IAtBd,OAAO,UAAS;I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I,IAAI;IAIvB;;OAEG;IACI,eAAe,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM;yCAzSzC,6BAA6B;2CAA7B,6BAA6B;CAiTzC"}
1
+ {"version":3,"file":"dashboard-share-dialog.component.d.ts","sourceRoot":"","sources":["../../src/DashboardBrowser/dashboard-share-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACH,oBAAoB,EACpB,yBAAyB,EAC5B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;;AAElE;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,yBAAyB,GAAG;IAAE,SAAS,CAAC,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAE9F;;;;;;GAMG;AACH,qBAYa,6BAA6B;IAC7B,OAAO,UAAS;IACzB,IACI,SAAS,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,EAU5C;IACD,IAAI,SAAS,IAAI,iBAAiB,GAAG,IAAI,CAExC;IACS,MAAM,kCAAyC;IAElD,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAAQ;IAC5C,OAAO,wBAA+B;IAE7C,OAAO,CAAC,UAAU,CAAkC;IAEpD,QAAQ,CAAC,MAAM,EAAE,yBAAyB,GAAG,IAAI;yCAxBxC,6BAA6B;2CAA7B,6BAA6B;CA8BzC"}