@memberjunction/ng-timeline 4.3.1 → 5.0.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.
@@ -78,7 +78,7 @@ export interface TimelineEventArgs<T = any> {
78
78
  *
79
79
  * @example
80
80
  * ```typescript
81
- * onBeforeClick(args: BeforeEventClickArgs<TaskEntity>) {
81
+ * onBeforeClick(args: BeforeEventClickArgs<MJTaskEntity>) {
82
82
  * // Prevent click on archived items
83
83
  * if (args.event.entity.Status === 'Archived') {
84
84
  * args.cancel = true;
@@ -105,7 +105,7 @@ export interface AfterEventClickArgs<T = any> extends AfterEventArgs, TimelineEv
105
105
  *
106
106
  * @example
107
107
  * ```typescript
108
- * onBeforeExpand(args: BeforeEventExpandArgs<TaskEntity>) {
108
+ * onBeforeExpand(args: BeforeEventExpandArgs<MJTaskEntity>) {
109
109
  * // Require permission to view details
110
110
  * if (!this.canViewDetails(args.event.entity)) {
111
111
  * args.cancel = true;
@@ -148,7 +148,7 @@ export interface AfterEventCollapseArgs<T = any> extends AfterEventArgs, Timelin
148
148
  *
149
149
  * @example
150
150
  * ```typescript
151
- * onBeforeHover(args: BeforeEventHoverArgs<TaskEntity>) {
151
+ * onBeforeHover(args: BeforeEventHoverArgs<MJTaskEntity>) {
152
152
  * if (args.hoverState === 'enter') {
153
153
  * // Could cancel hover effects
154
154
  * // args.cancel = true;
@@ -184,7 +184,7 @@ export interface AfterEventHoverArgs<T = any> extends AfterEventArgs, TimelineEv
184
184
  *
185
185
  * @example
186
186
  * ```typescript
187
- * onBeforeAction(args: BeforeActionClickArgs<TaskEntity>) {
187
+ * onBeforeAction(args: BeforeActionClickArgs<MJTaskEntity>) {
188
188
  * if (args.action.id === 'delete') {
189
189
  * // Show confirmation before allowing delete
190
190
  * if (!this.confirmDelete(args.event.entity)) {
@@ -208,7 +208,7 @@ export interface BeforeActionClickArgs<T = any> extends BeforeEventArgs, Timelin
208
208
  *
209
209
  * @example
210
210
  * ```typescript
211
- * onAfterAction(args: AfterActionClickArgs<TaskEntity>) {
211
+ * onAfterAction(args: AfterActionClickArgs<MJTaskEntity>) {
212
212
  * switch (args.action.id) {
213
213
  * case 'view':
214
214
  * this.router.navigate(['/tasks', args.event.entity.ID]);
@@ -21,7 +21,7 @@ import { TimelineCardConfig, TimelineEventConfig } from './types';
21
21
  * @example
22
22
  * ```typescript
23
23
  * // Works with BaseEntity
24
- * const entity = await md.GetEntityObject<TaskEntity>('Tasks');
24
+ * const entity = await md.GetEntityObject<MJTaskEntity>('Tasks');
25
25
  * const name = getFieldValue(entity, 'Name'); // Uses entity.Get('Name')
26
26
  *
27
27
  * // Works with plain objects
@@ -68,9 +68,9 @@ export declare function getRecordId(record: any, idFieldName?: string): string;
68
68
  *
69
69
  * @example MemberJunction usage with BaseEntity
70
70
  * ```typescript
71
- * import { TaskEntity } from '@memberjunction/core-entities';
71
+ * import { MJTaskEntity } from '@memberjunction/core-entities';
72
72
  *
73
- * const group = new TimelineGroup<TaskEntity>();
73
+ * const group = new TimelineGroup<MJTaskEntity>();
74
74
  * group.EntityName = 'Tasks';
75
75
  * group.DataSourceType = 'entity';
76
76
  * group.Filter = "Status = 'Open'";
@@ -80,7 +80,7 @@ export declare function getRecordId(record: any, idFieldName?: string): string;
80
80
  *
81
81
  * @example With full configuration
82
82
  * ```typescript
83
- * const group = new TimelineGroup<TaskEntity>();
83
+ * const group = new TimelineGroup<MJTaskEntity>();
84
84
  * group.EntityName = 'Tasks';
85
85
  * group.TitleFieldName = 'Name';
86
86
  * group.DateFieldName = 'CompletedAt';
@@ -114,7 +114,7 @@ export declare class TimelineGroup<T = any> {
114
114
  * The MemberJunction entity name for this group.
115
115
  * Required when `DataSourceType` is `'entity'`.
116
116
  *
117
- * @example 'Tasks', 'AI Agents', 'Users'
117
+ * @example 'Tasks', 'MJ: AI Agents', 'Users'
118
118
  */
119
119
  EntityName?: string;
120
120
  /**
@@ -338,7 +338,7 @@ export declare class TimelineGroup<T = any> {
338
338
  *
339
339
  * @example
340
340
  * ```typescript
341
- * const group = await TimelineGroup.FromView<TaskEntity>({
341
+ * const group = await TimelineGroup.FromView<MJTaskEntity>({
342
342
  * EntityName: 'Tasks',
343
343
  * ExtraFilter: "Status = 'Open'",
344
344
  * OrderBy: 'DueDate DESC'
@@ -24,7 +24,7 @@ import { DEFAULT_CARD_CONFIG } from './types';
24
24
  * @example
25
25
  * ```typescript
26
26
  * // Works with BaseEntity
27
- * const entity = await md.GetEntityObject<TaskEntity>('Tasks');
27
+ * const entity = await md.GetEntityObject<MJTaskEntity>('Tasks');
28
28
  * const name = getFieldValue(entity, 'Name'); // Uses entity.Get('Name')
29
29
  *
30
30
  * // Works with plain objects
@@ -105,9 +105,9 @@ export function getRecordId(record, idFieldName) {
105
105
  *
106
106
  * @example MemberJunction usage with BaseEntity
107
107
  * ```typescript
108
- * import { TaskEntity } from '@memberjunction/core-entities';
108
+ * import { MJTaskEntity } from '@memberjunction/core-entities';
109
109
  *
110
- * const group = new TimelineGroup<TaskEntity>();
110
+ * const group = new TimelineGroup<MJTaskEntity>();
111
111
  * group.EntityName = 'Tasks';
112
112
  * group.DataSourceType = 'entity';
113
113
  * group.Filter = "Status = 'Open'";
@@ -117,7 +117,7 @@ export function getRecordId(record, idFieldName) {
117
117
  *
118
118
  * @example With full configuration
119
119
  * ```typescript
120
- * const group = new TimelineGroup<TaskEntity>();
120
+ * const group = new TimelineGroup<MJTaskEntity>();
121
121
  * group.EntityName = 'Tasks';
122
122
  * group.TitleFieldName = 'Name';
123
123
  * group.DateFieldName = 'CompletedAt';
@@ -154,7 +154,7 @@ export class TimelineGroup {
154
154
  * The MemberJunction entity name for this group.
155
155
  * Required when `DataSourceType` is `'entity'`.
156
156
  *
157
- * @example 'Tasks', 'AI Agents', 'Users'
157
+ * @example 'Tasks', 'MJ: AI Agents', 'Users'
158
158
  */
159
159
  EntityName;
160
160
  /**
@@ -446,7 +446,7 @@ export class TimelineGroup {
446
446
  *
447
447
  * @example
448
448
  * ```typescript
449
- * const group = await TimelineGroup.FromView<TaskEntity>({
449
+ * const group = await TimelineGroup.FromView<MJTaskEntity>({
450
450
  * EntityName: 'Tasks',
451
451
  * ExtraFilter: "Status = 'Open'",
452
452
  * OrderBy: 'DueDate DESC'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-timeline",
3
- "version": "4.3.1",
3
+ "version": "5.0.0",
4
4
  "description": "MemberJunction: Responsive timeline component for Angular. Works with MemberJunction entities or plain JavaScript objects. No external dependencies.",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -37,7 +37,7 @@
37
37
  }
38
38
  },
39
39
  "dependencies": {
40
- "@memberjunction/core": "4.3.1",
40
+ "@memberjunction/core": "5.0.0",
41
41
  "rxjs": "~7.8.2",
42
42
  "tslib": "^2.8.1"
43
43
  },