@mj-biz-apps/common-ng 5.50.2 → 5.51.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.
- package/dist/lib/components/relationship-list/__tests__/relationship-dates.test.d.ts +2 -0
- package/dist/lib/components/relationship-list/__tests__/relationship-dates.test.d.ts.map +1 -0
- package/dist/lib/components/relationship-list/__tests__/relationship-dates.test.js +54 -0
- package/dist/lib/components/relationship-list/__tests__/relationship-dates.test.js.map +1 -0
- package/dist/lib/components/relationship-list/__tests__/relationship-list-edit.test.d.ts +9 -0
- package/dist/lib/components/relationship-list/__tests__/relationship-list-edit.test.d.ts.map +1 -0
- package/dist/lib/components/relationship-list/__tests__/relationship-list-edit.test.js +99 -0
- package/dist/lib/components/relationship-list/__tests__/relationship-list-edit.test.js.map +1 -0
- package/dist/lib/components/relationship-list/__tests__/relationship-list-end.test.d.ts +7 -0
- package/dist/lib/components/relationship-list/__tests__/relationship-list-end.test.d.ts.map +1 -0
- package/dist/lib/components/relationship-list/__tests__/relationship-list-end.test.js +41 -0
- package/dist/lib/components/relationship-list/__tests__/relationship-list-end.test.js.map +1 -0
- package/dist/lib/components/relationship-list/relationship-dates.d.ts +5 -0
- package/dist/lib/components/relationship-list/relationship-dates.d.ts.map +1 -0
- package/dist/lib/components/relationship-list/relationship-dates.js +29 -0
- package/dist/lib/components/relationship-list/relationship-dates.js.map +1 -0
- package/dist/lib/components/relationship-list/relationship-list.component.d.ts +1 -5
- package/dist/lib/components/relationship-list/relationship-list.component.d.ts.map +1 -1
- package/dist/lib/components/relationship-list/relationship-list.component.js +8 -30
- package/dist/lib/components/relationship-list/relationship-list.component.js.map +1 -1
- package/dist/lib/data/__tests__/directory-dashboard-days.test.d.ts +2 -0
- package/dist/lib/data/__tests__/directory-dashboard-days.test.d.ts.map +1 -0
- package/dist/lib/data/__tests__/directory-dashboard-days.test.js +54 -0
- package/dist/lib/data/__tests__/directory-dashboard-days.test.js.map +1 -0
- package/dist/lib/data/__tests__/directory-stats.test.js +1 -8
- package/dist/lib/data/__tests__/directory-stats.test.js.map +1 -1
- package/dist/lib/data/directory-queries.d.ts.map +1 -1
- package/dist/lib/data/directory-queries.js +10 -5
- package/dist/lib/data/directory-queries.js.map +1 -1
- package/dist/lib/data/directory-stats.d.ts +1 -5
- package/dist/lib/data/directory-stats.d.ts.map +1 -1
- package/dist/lib/data/directory-stats.js +0 -24
- package/dist/lib/data/directory-stats.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsCommonActivity/mjbizappscommonactivity.form.component.js +2 -2
- package/dist/lib/generated/Entities/mjBizAppsCommonJobFunction/mjbizappscommonjobfunction.form.component.js +2 -2
- package/dist/lib/generated/Entities/mjBizAppsCommonOrganization/mjbizappscommonorganization.form.component.js +2 -2
- package/dist/lib/generated/Entities/mjBizAppsCommonOrganization/mjbizappscommonorganization.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsCommonPerson/mjbizappscommonperson.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsCommonPerson/mjbizappscommonperson.form.component.js +38 -42
- package/dist/lib/generated/Entities/mjBizAppsCommonPerson/mjbizappscommonperson.form.component.js.map +1 -1
- package/package.json +14 -14
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The directory dashboard's "people added" bars are business days (golive #168): the query buckets
|
|
3
|
+
* __mj_CreatedAt by fnBusinessDayOf against fnBusinessToday(), and the labels name the same days by
|
|
4
|
+
* the business zone. Bucketing or labelling by UTC put Thursday evening in Chicago under "Fri".
|
|
5
|
+
*/
|
|
6
|
+
import { readFileSync } from 'node:fs';
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
9
|
+
import { BusinessTimeZoneEngine } from '@mj-biz-apps/common-entities';
|
|
10
|
+
const runQuery = vi.fn();
|
|
11
|
+
vi.mock('@memberjunction/core', async (importOriginal) => {
|
|
12
|
+
const actual = await importOriginal();
|
|
13
|
+
return { ...actual, RunQuery: class {
|
|
14
|
+
RunQuery = runQuery;
|
|
15
|
+
} };
|
|
16
|
+
});
|
|
17
|
+
import { LoadDirectoryDashboardSummary } from '../directory-queries';
|
|
18
|
+
const SUMMARY_SQL = fileURLToPath(new URL('../../../../../../metadata/queries/SQL/directory-dashboard-summary.sql', import.meta.url));
|
|
19
|
+
describe('LoadDirectoryDashboardSummary day labels', () => {
|
|
20
|
+
beforeEach(() => {
|
|
21
|
+
vi.useFakeTimers();
|
|
22
|
+
// Thursday 8:30 PM in Chicago is already Friday in UTC.
|
|
23
|
+
vi.setSystemTime(new Date('2026-10-02T01:30:00.000Z'));
|
|
24
|
+
vi.spyOn(BusinessTimeZoneEngine.Instance, 'Resolve').mockReturnValue('America/Chicago');
|
|
25
|
+
runQuery.mockResolvedValue({ Success: true, Results: [{ PeopleAddedD0: 4, PeopleAddedD1: 1 }] });
|
|
26
|
+
});
|
|
27
|
+
afterEach(() => {
|
|
28
|
+
vi.useRealTimers();
|
|
29
|
+
vi.restoreAllMocks();
|
|
30
|
+
});
|
|
31
|
+
it('labels the current bar with the business weekday, not the UTC one', async () => {
|
|
32
|
+
const summary = await LoadDirectoryDashboardSummary();
|
|
33
|
+
const current = summary.PeoplePerDay[6];
|
|
34
|
+
expect(current).toEqual({ Label: 'Thu', Value: 4, Current: true });
|
|
35
|
+
});
|
|
36
|
+
it('labels the week back from the business day', async () => {
|
|
37
|
+
const summary = await LoadDirectoryDashboardSummary();
|
|
38
|
+
expect(summary.PeoplePerDay.map((bar) => bar.Label)).toEqual(['Fri', 'Sat', 'Sun', 'Mon', 'Tue', 'Wed', 'Thu']);
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
describe('the directory dashboard summary query', () => {
|
|
42
|
+
const sql = readFileSync(SUMMARY_SQL, 'utf8').replace(/^\s*--.*$/gm, '');
|
|
43
|
+
it('buckets people by business day, against the business today', () => {
|
|
44
|
+
expect(sql).toContain('CROSS JOIN [__mj_BizAppsCommon].[fnBusinessToday]() AS bt');
|
|
45
|
+
for (let ago = 0; ago <= 6; ago++) {
|
|
46
|
+
const day = ago === 0 ? 'bt.Today' : `DATEADD(DAY, -${ago}, bt.Today)`;
|
|
47
|
+
expect(sql).toContain(`WHEN [__mj_BizAppsCommon].[fnBusinessDayOf](__mj_CreatedAt) = ${day} THEN 1 ELSE 0 END), 0) AS PeopleAddedD${ago},`);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
it('reads no UTC day and writes no AT TIME ZONE, which MJ\'s SQL parser cannot read', () => {
|
|
51
|
+
expect(sql).not.toMatch(/SYSUTCDATETIME|GETUTCDATE|AT TIME ZONE/i);
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=directory-dashboard-days.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directory-dashboard-days.test.js","sourceRoot":"","sources":["../../../../src/lib/data/__tests__/directory-dashboard-days.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,MAAM,QAAQ,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;AACzB,EAAE,CAAC,IAAI,CAAC,sBAAsB,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;IACrD,MAAM,MAAM,GAAG,MAAM,cAAc,EAAyC,CAAC;IAC7E,OAAO,EAAE,GAAG,MAAM,EAAE,QAAQ,EAAE;YAAQ,QAAQ,GAAG,QAAQ,CAAC;SAAE,EAAE,CAAC;AACnE,CAAC,CAAC,CAA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,MAAM,CAAC,OAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;IACrH,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,uCAAuC,EAAE,GAAG,EAAE;IACnD,MAAM,GAAG,GAAG,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;IAEzE,EAAE,CAAC,4DAA4D,EAAE,GAAG,EAAE;QAClE,MAAM,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,2DAA2D,CAAC,CAAC;QACnF,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC;YAChC,MAAM,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAiB,GAAG,aAAa,CAAC;YACvE,MAAM,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,iEAAiE,GAAG,0CAA0C,GAAG,GAAG,CAAC,CAAC;QAChJ,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iFAAiF,EAAE,GAAG,EAAE;QACvF,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,yCAAyC,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { BuildDirectoryQueues,
|
|
2
|
+
import { BuildDirectoryQueues, CountByLabel, EscapeFilterValue, EscapeLikeValue, PeopleMissingEmail, PersonEmail, } from '../directory-stats';
|
|
3
3
|
import { COMMON_ENTITIES } from '../entity-names';
|
|
4
4
|
function person(partial) {
|
|
5
5
|
return {
|
|
@@ -60,13 +60,6 @@ describe('directory-stats', () => {
|
|
|
60
60
|
]);
|
|
61
61
|
expect(PeopleMissingEmail(people)).toHaveLength(1);
|
|
62
62
|
});
|
|
63
|
-
it('counts rows per local day', () => {
|
|
64
|
-
const today = new Date();
|
|
65
|
-
const bars = CountByDay([{ __mj_CreatedAt: today }, { __mj_CreatedAt: today }]);
|
|
66
|
-
expect(bars).toHaveLength(7);
|
|
67
|
-
expect(bars[6].Current).toBe(true);
|
|
68
|
-
expect(bars[6].Value).toBe(2);
|
|
69
|
-
});
|
|
70
63
|
it('groups mix labels and sorts by count', () => {
|
|
71
64
|
const rows = CountByLabel([{ Label: 'Company' }, { Label: 'Company' }, { Label: 'Chapter' }]);
|
|
72
65
|
expect(rows[0]).toEqual({ Label: 'Company', Value: 2 });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory-stats.test.js","sourceRoot":"","sources":["../../../../src/lib/data/__tests__/directory-stats.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACH,oBAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"directory-stats.test.js","sourceRoot":"","sources":["../../../../src/lib/data/__tests__/directory-stats.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACH,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,WAAW,GACd,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,SAAS,MAAM,CAAC,OAAqF;IACjG,OAAO;QACH,SAAS,EAAE,KAAK;QAChB,QAAQ,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AE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QACxD,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACrD,MAAM,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACtD,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAAE;QACzD,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC/C,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7C,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7C,MAAM,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory-queries.d.ts","sourceRoot":"","sources":["../../../src/lib/data/directory-queries.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"directory-queries.d.ts","sourceRoot":"","sources":["../../../src/lib/data/directory-queries.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACR,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,wBAAwB,EACxB,kBAAkB,EAClB,cAAc,EACd,wBAAwB,EAC3B,MAAM,mBAAmB,CAAC;AAK3B,MAAM,WAAW,yBAAyB;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,yBAAyB,EAAE,MAAM,CAAC;IAClC,wBAAwB,EAAE,MAAM,CAAC;IACjC,2BAA2B,EAAE,MAAM,CAAC;IACpC,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,mBAAmB,EAAE,eAAe,EAAE,CAAC;IACvC,UAAU,EAAE,sBAAsB,EAAE,CAAC;IACrC,MAAM,EAAE,cAAc,EAAE,CAAC;CAC5B;AAqBD,wBAAsB,6BAA6B,IAAI,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CA8G/F;AAkDD,4DAA4D;AAC5D,wBAAsB,qBAAqB,IAAI,OAAO,CAAC;IACnD,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,aAAa,EAAE,wBAAwB,EAAE,CAAC;IAC1C,aAAa,EAAE,wBAAwB,EAAE,CAAC;CAC7C,CAAC,CA+BD;AAED,wBAAsB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAW5F;AAED,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,EAAE,CAAC,CAWzG"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LogError, RunQuery, RunView } from '@memberjunction/core';
|
|
2
|
+
import { AddDays, BusinessTimeZoneEngine, FromCalendarDay } from '@mj-biz-apps/common-entities';
|
|
2
3
|
import { COMMON_ENTITIES } from './entity-names';
|
|
3
4
|
const DIRECTORY_SUMMARY_QUERY = 'Common: Directory Dashboard Summary';
|
|
4
5
|
const DIRECTORY_SUMMARY_CATEGORY = 'Common';
|
|
@@ -11,10 +12,13 @@ function str(v) {
|
|
|
11
12
|
const s = String(v).trim();
|
|
12
13
|
return s.length ? s : null;
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Short weekday of the business day `daysAgo` before `today`: the day the query's PeopleAddedD<n>
|
|
17
|
+
* counts (fnBusinessDayOf against fnBusinessToday). A CalendarDay is UTC midnight, so it is formatted
|
|
18
|
+
* in UTC; the zone was already applied when `today` was resolved.
|
|
19
|
+
*/
|
|
20
|
+
function businessWeekday(today, daysAgo) {
|
|
21
|
+
return FromCalendarDay(AddDays(today, -daysAgo)).toLocaleDateString('en-US', { weekday: 'short', timeZone: 'UTC' });
|
|
18
22
|
}
|
|
19
23
|
export async function LoadDirectoryDashboardSummary() {
|
|
20
24
|
const result = await new RunQuery().RunQuery({
|
|
@@ -103,6 +107,7 @@ export async function LoadDirectoryDashboardSummary() {
|
|
|
103
107
|
Detail: site ? site : 'No website on file either.',
|
|
104
108
|
});
|
|
105
109
|
}
|
|
110
|
+
const today = BusinessTimeZoneEngine.Instance.Today();
|
|
106
111
|
return {
|
|
107
112
|
ActivePeopleCount: num(row['ActivePeople']),
|
|
108
113
|
TotalPeopleCount: num(row['TotalPeople']),
|
|
@@ -114,7 +119,7 @@ export async function LoadDirectoryDashboardSummary() {
|
|
|
114
119
|
OrganizationsMissingType: num(row['OrganizationsMissingType']),
|
|
115
120
|
OrganizationsMissingWebsite: num(row['OrganizationsMissingWebsite']),
|
|
116
121
|
PeoplePerDay: [6, 5, 4, 3, 2, 1, 0].map((ago) => ({
|
|
117
|
-
Label:
|
|
122
|
+
Label: businessWeekday(today, ago),
|
|
118
123
|
Value: num(row[`PeopleAddedD${ago}`]),
|
|
119
124
|
Current: ago === 0,
|
|
120
125
|
})),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory-queries.js","sourceRoot":"","sources":["../../../src/lib/data/directory-queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAWjD,MAAM,uBAAuB,GAAG,qCAAqC,CAAC;AACtE,MAAM,0BAA0B,GAAG,QAAQ,CAAC;AAkB5C,SAAS,GAAG,CAAC,CAAU;IACnB,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACrE,CAAC;AAED,SAAS,GAAG,CAAC,CAAU;IACnB,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IAC/C,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC3B,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/B,CAAC;AAED,SAAS,
|
|
1
|
+
{"version":3,"file":"directory-queries.js","sourceRoot":"","sources":["../../../src/lib/data/directory-queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAoB,MAAM,8BAA8B,CAAC;AAClH,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAWjD,MAAM,uBAAuB,GAAG,qCAAqC,CAAC;AACtE,MAAM,0BAA0B,GAAG,QAAQ,CAAC;AAkB5C,SAAS,GAAG,CAAC,CAAU;IACnB,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CA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C;QAChC,WAAW,EAAE,MAAM;QACnB,OAAO,EAAE,MAAM;QACf,OAAO,EAAE,GAAG;QACZ,UAAU,EAAE,QAAQ;KACvB,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;AAChD,CAAC"}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import type { DirectoryAttentionItem, DirectoryBarRow,
|
|
1
|
+
import type { DirectoryAttentionItem, DirectoryBarRow, DirectoryHeadline, DirectoryOrganizationRow, DirectoryPersonRow, DirectoryQueue, DirectoryRelationshipRow } from './directory-types';
|
|
2
2
|
export declare function PersonEmail(person: DirectoryPersonRow): string | null;
|
|
3
3
|
export declare function PersonPhone(person: DirectoryPersonRow): string | null;
|
|
4
|
-
export declare function LocalDayKey(value: Date | string): string;
|
|
5
4
|
export declare function ActivePeople(people: readonly DirectoryPersonRow[]): DirectoryPersonRow[];
|
|
6
5
|
export declare function ActiveOrganizations(orgs: readonly DirectoryOrganizationRow[]): DirectoryOrganizationRow[];
|
|
7
6
|
export declare function PeopleMissingEmail(people: readonly DirectoryPersonRow[]): DirectoryPersonRow[];
|
|
8
7
|
export declare function PeopleMissingOrganization(people: readonly DirectoryPersonRow[]): DirectoryPersonRow[];
|
|
9
8
|
export declare function OrganizationsMissingType(orgs: readonly DirectoryOrganizationRow[]): DirectoryOrganizationRow[];
|
|
10
9
|
export declare function OrganizationsMissingWebsite(orgs: readonly DirectoryOrganizationRow[]): DirectoryOrganizationRow[];
|
|
11
|
-
export declare function CountByDay(rows: readonly {
|
|
12
|
-
__mj_CreatedAt: Date | string;
|
|
13
|
-
}[], days?: number): DirectoryDayBar[];
|
|
14
10
|
export declare function CountByLabel(rows: readonly {
|
|
15
11
|
Label: string;
|
|
16
12
|
}[]): DirectoryBarRow[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory-stats.d.ts","sourceRoot":"","sources":["../../../src/lib/data/directory-stats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,sBAAsB,EACtB,eAAe,EACf,
|
|
1
|
+
{"version":3,"file":"directory-stats.d.ts","sourceRoot":"","sources":["../../../src/lib/data/directory-stats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,cAAc,EACd,wBAAwB,EAC3B,MAAM,mBAAmB,CAAC;AAE3B,wBAAgB,WAAW,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM,GAAG,IAAI,CAErE;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM,GAAG,IAAI,CAErE;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,kBAAkB,EAAE,GAAG,kBAAkB,EAAE,CAExF;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,wBAAwB,EAAE,GAAG,wBAAwB,EAAE,CAEzG;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,kBAAkB,EAAE,GAAG,kBAAkB,EAAE,CAE9F;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,SAAS,kBAAkB,EAAE,GAAG,kBAAkB,EAAE,CAErG;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,SAAS,wBAAwB,EAAE,GAAG,wBAAwB,EAAE,CAE9G;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,SAAS,wBAAwB,EAAE,GAAG,wBAAwB,EAAE,CAEjH;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,eAAe,EAAE,CASlF;AAED,wBAAgB,eAAe,CAAC,CAAC,SAAS;IAAE,cAAc,EAAE,IAAI,GAAG,MAAM,CAAA;CAAE,EAAE,IAAI,EAAE,SAAS,CAAC,EAAE,EAAE,IAAI,SAAI,GAAG,CAAC,EAAE,CAI9G;AAED,wBAAgB,oBAAoB,CAChC,MAAM,EAAE,SAAS,kBAAkB,EAAE,EACrC,IAAI,EAAE,SAAS,wBAAwB,EAAE,GAC1C,cAAc,EAAE,CAoClB;AAED,wBAAgB,mBAAmB,CAC/B,MAAM,EAAE,SAAS,kBAAkB,EAAE,EACrC,IAAI,EAAE,SAAS,wBAAwB,EAAE,GAC1C,sBAAsB,EAAE,CA6B1B;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,wBAAwB,GAAG,MAAM,CAIvE;AAED,6FAA6F;AAC7F,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKrD;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,SAAS,cAAc,EAAE,CAAC;CACrC;AAED,wGAAwG;AACxG,eAAO,MAAM,6BAA6B,qDAAqD,CAAC;AAEhG;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,sBAAsB,GAAG,IAAI,GAAG,SAAS,GAAG,iBAAiB,CAgC5G"}
|
|
@@ -4,15 +4,6 @@ export function PersonEmail(person) {
|
|
|
4
4
|
export function PersonPhone(person) {
|
|
5
5
|
return person.PrimaryPhone || person.Phone || null;
|
|
6
6
|
}
|
|
7
|
-
export function LocalDayKey(value) {
|
|
8
|
-
const date = value instanceof Date ? value : new Date(value);
|
|
9
|
-
if (Number.isNaN(date.getTime()))
|
|
10
|
-
return '';
|
|
11
|
-
const year = date.getFullYear();
|
|
12
|
-
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
13
|
-
const day = String(date.getDate()).padStart(2, '0');
|
|
14
|
-
return `${year}-${month}-${day}`;
|
|
15
|
-
}
|
|
16
7
|
export function ActivePeople(people) {
|
|
17
8
|
return people.filter((person) => person.Status === 'Active');
|
|
18
9
|
}
|
|
@@ -31,21 +22,6 @@ export function OrganizationsMissingType(orgs) {
|
|
|
31
22
|
export function OrganizationsMissingWebsite(orgs) {
|
|
32
23
|
return ActiveOrganizations(orgs).filter((org) => !org.Website);
|
|
33
24
|
}
|
|
34
|
-
export function CountByDay(rows, days = 7) {
|
|
35
|
-
const today = new Date();
|
|
36
|
-
const bars = [];
|
|
37
|
-
for (let back = days - 1; back >= 0; back--) {
|
|
38
|
-
const day = new Date(today);
|
|
39
|
-
day.setDate(today.getDate() - back);
|
|
40
|
-
const key = LocalDayKey(day);
|
|
41
|
-
bars.push({
|
|
42
|
-
Label: day.toLocaleDateString('en-US', { weekday: 'short' }),
|
|
43
|
-
Value: rows.filter((row) => LocalDayKey(row.__mj_CreatedAt) === key).length,
|
|
44
|
-
Current: back === 0,
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
return bars;
|
|
48
|
-
}
|
|
49
25
|
export function CountByLabel(rows) {
|
|
50
26
|
const counts = new Map();
|
|
51
27
|
for (const row of rows) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory-stats.js","sourceRoot":"","sources":["../../../src/lib/data/directory-stats.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"directory-stats.js","sourceRoot":"","sources":["../../../src/lib/data/directory-stats.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,WAAW,CAAC,MAA0B;IAClD,OAAO,MAAM,CAAC,YAAY,IAAI,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,MAA0B;IAClD,OAAO,MAAM,CAAC,YAAY,IAAI,MAAM,CAAC,KAAK,IAAI,IAAI,CA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E,IAAI;YACvB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,IAAI;YAClB,kBAAkB,EAAE,IAAI;YACxB,KAAK,EAAE,6BAA6B;SACvC,CAAC;IACN,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAC7E,OAAO;QACH,UAAU,EAAE,KAAK;QACjB,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;QAC5C,uBAAuB,EAAE,OAAO,CAAC,uBAAuB;QACxD,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;QAC5C,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;QACvC,YAAY,EACR,OAAO,CAAC,gBAAgB,KAAK,OAAO,CAAC,iBAAiB;YAClD,CAAC,CAAC,4BAA4B;YAC9B,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,4BAA4B;QACjE,kBAAkB,EACd,OAAO,CAAC,sBAAsB,KAAK,OAAO,CAAC,uBAAuB;YAC9D,CAAC,CAAC,sBAAsB;YACxB,CAAC,CAAC,GAAG,OAAO,CAAC,sBAAsB,4BAA4B;QACvE,KAAK,EAAE,IAAI;KACd,CAAC;AACN,CAAC"}
|
|
@@ -68,7 +68,7 @@ let mjBizAppsCommonActivityFormComponent = class mjBizAppsCommonActivityFormComp
|
|
|
68
68
|
]);
|
|
69
69
|
}
|
|
70
70
|
static ɵfac = /*@__PURE__*/ (() => { let ɵmjBizAppsCommonActivityFormComponent_BaseFactory; return function mjBizAppsCommonActivityFormComponent_Factory(__ngFactoryType__) { return (ɵmjBizAppsCommonActivityFormComponent_BaseFactory || (ɵmjBizAppsCommonActivityFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(mjBizAppsCommonActivityFormComponent)))(__ngFactoryType__ || mjBizAppsCommonActivityFormComponent); }; })();
|
|
71
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: mjBizAppsCommonActivityFormComponent, selectors: [["gen-mjbizappscommonactivity-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 48, vars: 167, consts: [[3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["Slot", "before-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "activityDetails", "SectionName", "Activity Details", "Icon", "fa fa-info-circle", 3, "Form", "FormContext"], ["FieldName", "ActivityTypeID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Title", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Direction", "Type", "select", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Status", "Type", "select", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Outcome", "Type", "select", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "
|
|
71
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: mjBizAppsCommonActivityFormComponent, selectors: [["gen-mjbizappscommonactivity-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 48, vars: 167, consts: [[3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["Slot", "before-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "activityDetails", "SectionName", "Activity Details", "Icon", "fa fa-info-circle", 3, "Form", "FormContext"], ["FieldName", "ActivityTypeID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Title", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Direction", "Type", "select", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Status", "Type", "select", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Outcome", "Type", "select", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Details", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "SentimentScore", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "timeline", "SectionName", "Timeline", "Icon", "fa fa-clock", 3, "Form", "FormContext"], ["FieldName", "StartedAt", "Type", "datepicker", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "EndedAt", "Type", "datepicker", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "securityAndAccess", "SectionName", "Security and Access", "Icon", "fa fa-shield-alt", 3, "Form", "FormContext"], ["FieldName", "Visibility", "Type", "select", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "LoggedByUserID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "relationships", "SectionName", "Relationships", "Icon", "fa fa-sitemap", 3, "Form", "FormContext"], ["FieldName", "ParentActivityID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "RootParentActivityID", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ParentActivityIDDepth", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ParentActivityIDPath", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ParentActivityIDIsLeaf", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ParentActivityIDChildCount", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "location", "SectionName", "Location", "Icon", "fa fa-map-marker-alt", 3, "Form", "FormContext"], ["FieldName", "Location", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "AddressID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "details", "SectionName", "Details", "Icon", "fa fa-align-left", 3, "Form", "FormContext"], ["FieldName", "__mj_Latitude", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_Longitude", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "systemMetadata", "SectionName", "System Metadata", "Icon", "fa fa-cog", 3, "Form", "FormContext"], ["FieldName", "Source", "Type", "select", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "SourceSystem", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ExternalID", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ExternalThreadID", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ActivitySyncConnectionID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_CreatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_UpdatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["Slot", "after-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "mJBizAppsCommonActivities", "SectionName", "Activities", "Icon", "fa fa-calendar-alt", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJBizAppsCommonActivityFiles", "SectionName", "Activity Files", "Icon", "fa fa-table", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJBizAppsCommonActivityLinks", "SectionName", "Activity Links", "Icon", "fa fa-table", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJBizAppsCommonActivitySyncRunDetails", "SectionName", "Activity Sync Run Details", "Icon", "fa fa-sync-alt", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["Slot", "after-related", 3, "Entity", "Record", "FormComponent", "FormContext"], [3, "Navigate", "AfterDataLoad", "Params", "NewRecordValues", "AllowLoad", "ShowToolbar"]], template: function mjBizAppsCommonActivityFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
72
72
|
i0.ɵɵelementStart(0, "mj-record-form-container", 0);
|
|
73
73
|
i0.ɵɵlistener("Navigate", function mjBizAppsCommonActivityFormComponent_Template_mj_record_form_container_Navigate_0_listener($event) { return ctx.OnFormNavigate($event); })("DeleteRequested", function mjBizAppsCommonActivityFormComponent_Template_mj_record_form_container_DeleteRequested_0_listener() { return ctx.OnDeleteRequested(); })("FavoriteToggled", function mjBizAppsCommonActivityFormComponent_Template_mj_record_form_container_FavoriteToggled_0_listener() { return ctx.OnFavoriteToggled(); })("HistoryRequested", function mjBizAppsCommonActivityFormComponent_Template_mj_record_form_container_HistoryRequested_0_listener() { return ctx.OnHistoryRequested(); })("ListManagementRequested", function mjBizAppsCommonActivityFormComponent_Template_mj_record_form_container_ListManagementRequested_0_listener() { return ctx.OnListManagementRequested(); });
|
|
74
74
|
i0.ɵɵelement(1, "mj-form-panel-slot", 1);
|
|
@@ -212,7 +212,7 @@ mjBizAppsCommonActivityFormComponent = __decorate([
|
|
|
212
212
|
export { mjBizAppsCommonActivityFormComponent };
|
|
213
213
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(mjBizAppsCommonActivityFormComponent, [{
|
|
214
214
|
type: Component,
|
|
215
|
-
args: [{ standalone: false, selector: 'gen-mjbizappscommonactivity-form', template: "<mj-record-form-container [Record]=\"record\" [FormComponent]=\"this\"\n (Navigate)=\"OnFormNavigate($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (ListManagementRequested)=\"OnListManagementRequested()\">\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"before-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <!-- ========================================\n FIELD PANELS\n ======================================== -->\n <!-- Activity Details Section -->\n <mj-collapsible-panel\n SectionKey=\"activityDetails\"\n SectionName=\"Activity Details\"\n Icon=\"fa fa-info-circle\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ActivityTypeID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Title\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Description\"\n Type=\"textarea\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Direction\"\n Type=\"select\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Status\"\n Type=\"select\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Outcome\"\n Type=\"select\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"SentimentScore\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Details\"\n Type=\"textarea\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <!-- Timeline Section -->\n <mj-collapsible-panel\n SectionKey=\"timeline\"\n SectionName=\"Timeline\"\n Icon=\"fa fa-clock\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"StartedAt\"\n Type=\"datepicker\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"EndedAt\"\n Type=\"datepicker\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <!-- Security and Access Section -->\n <mj-collapsible-panel\n SectionKey=\"securityAndAccess\"\n SectionName=\"Security and Access\"\n Icon=\"fa fa-shield-alt\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Visibility\"\n Type=\"select\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"LoggedByUserID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <!-- Relationships Section -->\n <mj-collapsible-panel\n SectionKey=\"relationships\"\n SectionName=\"Relationships\"\n Icon=\"fa fa-sitemap\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ParentActivityID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"RootParentActivityID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ParentActivityIDDepth\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ParentActivityIDPath\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ParentActivityIDIsLeaf\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ParentActivityIDChildCount\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <!-- Location Section -->\n <mj-collapsible-panel\n SectionKey=\"location\"\n SectionName=\"Location\"\n Icon=\"fa fa-map-marker-alt\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Location\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"AddressID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <!-- Details Section -->\n <mj-collapsible-panel\n SectionKey=\"details\"\n SectionName=\"Details\"\n Icon=\"fa fa-align-left\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_Latitude\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_Longitude\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <!-- System Metadata Section -->\n <mj-collapsible-panel\n SectionKey=\"systemMetadata\"\n SectionName=\"System Metadata\"\n Icon=\"fa fa-cog\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Source\"\n Type=\"select\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"SourceSystem\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ExternalID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ExternalThreadID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ActivitySyncConnectionID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_CreatedAt\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_UpdatedAt\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <!-- ========================================\n RELATED ENTITY PANELS\n ======================================== -->\n\n <!-- Activities Section -->\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsCommonActivities\"\n SectionName=\"Activities\"\n Icon=\"fa fa-calendar-alt\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsCommonActivities')\"\n [DefaultExpanded]=\"false\">\n @if (record.IsSaved) {\n <div>\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Common: Activities','ParentActivityID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Common: Activities','ParentActivityID')\"\n [AllowLoad]=\"IsSectionExpanded('mJBizAppsCommonActivities')\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsCommonActivities', $event.totalRowCount)\"\n >\n </mj-explorer-entity-data-grid>\n </div>\n }\n </mj-collapsible-panel>\n\n <!-- Activity Files Section -->\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsCommonActivityFiles\"\n SectionName=\"Activity Files\"\n Icon=\"fa fa-table\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsCommonActivityFiles')\"\n [DefaultExpanded]=\"false\">\n @if (record.IsSaved) {\n <div>\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Common: Activity Files','ActivityID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Common: Activity Files','ActivityID')\"\n [AllowLoad]=\"IsSectionExpanded('mJBizAppsCommonActivityFiles')\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsCommonActivityFiles', $event.totalRowCount)\"\n >\n </mj-explorer-entity-data-grid>\n </div>\n }\n </mj-collapsible-panel>\n\n <!-- Activity Links Section -->\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsCommonActivityLinks\"\n SectionName=\"Activity Links\"\n Icon=\"fa fa-table\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsCommonActivityLinks')\"\n [DefaultExpanded]=\"false\">\n @if (record.IsSaved) {\n <div>\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Common: Activity Links','ActivityID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Common: Activity Links','ActivityID')\"\n [AllowLoad]=\"IsSectionExpanded('mJBizAppsCommonActivityLinks')\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsCommonActivityLinks', $event.totalRowCount)\"\n >\n </mj-explorer-entity-data-grid>\n </div>\n }\n </mj-collapsible-panel>\n\n <!-- Activity Sync Run Details Section -->\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsCommonActivitySyncRunDetails\"\n SectionName=\"Activity Sync Run Details\"\n Icon=\"fa fa-sync-alt\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsCommonActivitySyncRunDetails')\"\n [DefaultExpanded]=\"false\">\n @if (record.IsSaved) {\n <div>\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Common: Activity Sync Run Details','ActivityID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Common: Activity Sync Run Details','ActivityID')\"\n [AllowLoad]=\"IsSectionExpanded('mJBizAppsCommonActivitySyncRunDetails')\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsCommonActivitySyncRunDetails', $event.totalRowCount)\"\n >\n </mj-explorer-entity-data-grid>\n </div>\n }\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-related\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n</mj-record-form-container>\n " }]
|
|
215
|
+
args: [{ standalone: false, selector: 'gen-mjbizappscommonactivity-form', template: "<mj-record-form-container [Record]=\"record\" [FormComponent]=\"this\"\n (Navigate)=\"OnFormNavigate($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (ListManagementRequested)=\"OnListManagementRequested()\">\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"before-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <!-- ========================================\n FIELD PANELS\n ======================================== -->\n <!-- Activity Details Section -->\n <mj-collapsible-panel\n SectionKey=\"activityDetails\"\n SectionName=\"Activity Details\"\n Icon=\"fa fa-info-circle\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ActivityTypeID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Title\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Description\"\n Type=\"textarea\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Direction\"\n Type=\"select\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Status\"\n Type=\"select\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Outcome\"\n Type=\"select\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Details\"\n Type=\"textarea\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"SentimentScore\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <!-- Timeline Section -->\n <mj-collapsible-panel\n SectionKey=\"timeline\"\n SectionName=\"Timeline\"\n Icon=\"fa fa-clock\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"StartedAt\"\n Type=\"datepicker\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"EndedAt\"\n Type=\"datepicker\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <!-- Security and Access Section -->\n <mj-collapsible-panel\n SectionKey=\"securityAndAccess\"\n SectionName=\"Security and Access\"\n Icon=\"fa fa-shield-alt\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Visibility\"\n Type=\"select\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"LoggedByUserID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <!-- Relationships Section -->\n <mj-collapsible-panel\n SectionKey=\"relationships\"\n SectionName=\"Relationships\"\n Icon=\"fa fa-sitemap\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ParentActivityID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"RootParentActivityID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ParentActivityIDDepth\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ParentActivityIDPath\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ParentActivityIDIsLeaf\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ParentActivityIDChildCount\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <!-- Location Section -->\n <mj-collapsible-panel\n SectionKey=\"location\"\n SectionName=\"Location\"\n Icon=\"fa fa-map-marker-alt\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Location\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"AddressID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <!-- Details Section -->\n <mj-collapsible-panel\n SectionKey=\"details\"\n SectionName=\"Details\"\n Icon=\"fa fa-align-left\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_Latitude\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_Longitude\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <!-- System Metadata Section -->\n <mj-collapsible-panel\n SectionKey=\"systemMetadata\"\n SectionName=\"System Metadata\"\n Icon=\"fa fa-cog\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Source\"\n Type=\"select\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"SourceSystem\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ExternalID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ExternalThreadID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ActivitySyncConnectionID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_CreatedAt\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_UpdatedAt\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <!-- ========================================\n RELATED ENTITY PANELS\n ======================================== -->\n\n <!-- Activities Section -->\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsCommonActivities\"\n SectionName=\"Activities\"\n Icon=\"fa fa-calendar-alt\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsCommonActivities')\"\n [DefaultExpanded]=\"false\">\n @if (record.IsSaved) {\n <div>\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Common: Activities','ParentActivityID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Common: Activities','ParentActivityID')\"\n [AllowLoad]=\"IsSectionExpanded('mJBizAppsCommonActivities')\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsCommonActivities', $event.totalRowCount)\"\n >\n </mj-explorer-entity-data-grid>\n </div>\n }\n </mj-collapsible-panel>\n\n <!-- Activity Files Section -->\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsCommonActivityFiles\"\n SectionName=\"Activity Files\"\n Icon=\"fa fa-table\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsCommonActivityFiles')\"\n [DefaultExpanded]=\"false\">\n @if (record.IsSaved) {\n <div>\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Common: Activity Files','ActivityID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Common: Activity Files','ActivityID')\"\n [AllowLoad]=\"IsSectionExpanded('mJBizAppsCommonActivityFiles')\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsCommonActivityFiles', $event.totalRowCount)\"\n >\n </mj-explorer-entity-data-grid>\n </div>\n }\n </mj-collapsible-panel>\n\n <!-- Activity Links Section -->\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsCommonActivityLinks\"\n SectionName=\"Activity Links\"\n Icon=\"fa fa-table\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsCommonActivityLinks')\"\n [DefaultExpanded]=\"false\">\n @if (record.IsSaved) {\n <div>\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Common: Activity Links','ActivityID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Common: Activity Links','ActivityID')\"\n [AllowLoad]=\"IsSectionExpanded('mJBizAppsCommonActivityLinks')\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsCommonActivityLinks', $event.totalRowCount)\"\n >\n </mj-explorer-entity-data-grid>\n </div>\n }\n </mj-collapsible-panel>\n\n <!-- Activity Sync Run Details Section -->\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsCommonActivitySyncRunDetails\"\n SectionName=\"Activity Sync Run Details\"\n Icon=\"fa fa-sync-alt\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsCommonActivitySyncRunDetails')\"\n [DefaultExpanded]=\"false\">\n @if (record.IsSaved) {\n <div>\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Common: Activity Sync Run Details','ActivityID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Common: Activity Sync Run Details','ActivityID')\"\n [AllowLoad]=\"IsSectionExpanded('mJBizAppsCommonActivitySyncRunDetails')\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsCommonActivitySyncRunDetails', $event.totalRowCount)\"\n >\n </mj-explorer-entity-data-grid>\n </div>\n }\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-related\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n</mj-record-form-container>\n " }]
|
|
216
216
|
}], null, null); })();
|
|
217
217
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(mjBizAppsCommonActivityFormComponent, { className: "mjBizAppsCommonActivityFormComponent", filePath: "lib/generated/Entities/mjBizAppsCommonActivity/mjbizappscommonactivity.form.component.ts", lineNumber: 13 }); })();
|
|
218
218
|
//# sourceMappingURL=mjbizappscommonactivity.form.component.js.map
|
|
@@ -41,7 +41,7 @@ let mjBizAppsCommonJobFunctionFormComponent = class mjBizAppsCommonJobFunctionFo
|
|
|
41
41
|
]);
|
|
42
42
|
}
|
|
43
43
|
static ɵfac = /*@__PURE__*/ (() => { let ɵmjBizAppsCommonJobFunctionFormComponent_BaseFactory; return function mjBizAppsCommonJobFunctionFormComponent_Factory(__ngFactoryType__) { return (ɵmjBizAppsCommonJobFunctionFormComponent_BaseFactory || (ɵmjBizAppsCommonJobFunctionFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(mjBizAppsCommonJobFunctionFormComponent)))(__ngFactoryType__ || mjBizAppsCommonJobFunctionFormComponent); }; })();
|
|
44
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: mjBizAppsCommonJobFunctionFormComponent, selectors: [["gen-mjbizappscommonjobfunction-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 16, vars: 55, consts: [[3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["Slot", "before-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "jobFunctionDetails", "SectionName", "Job Function Details", "Icon", "fa fa-briefcase", 3, "Form", "FormContext"], ["FieldName", "Name", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Sequence", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Status", "Type", "select", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "systemMetadata", "SectionName", "System Metadata", "Icon", "fa fa-cog", 3, "Form", "FormContext"], ["FieldName", "__mj_CreatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_UpdatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["Slot", "after-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "mJBizAppsCommonPersonJobFunctions", "SectionName", "Person Job Functions", "Icon", "fa fa-
|
|
44
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: mjBizAppsCommonJobFunctionFormComponent, selectors: [["gen-mjbizappscommonjobfunction-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 16, vars: 55, consts: [[3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["Slot", "before-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "jobFunctionDetails", "SectionName", "Job Function Details", "Icon", "fa fa-briefcase", 3, "Form", "FormContext"], ["FieldName", "Name", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Sequence", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Status", "Type", "select", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "systemMetadata", "SectionName", "System Metadata", "Icon", "fa fa-cog", 3, "Form", "FormContext"], ["FieldName", "__mj_CreatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_UpdatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["Slot", "after-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "mJBizAppsCommonPersonJobFunctions", "SectionName", "Person Job Functions", "Icon", "fa fa-table", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJBizAppsCommonRelationships", "SectionName", "Relationships", "Icon", "fa fa-handshake", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["Slot", "after-related", 3, "Entity", "Record", "FormComponent", "FormContext"], [3, "Navigate", "AfterDataLoad", "Params", "NewRecordValues", "AllowLoad", "ShowToolbar"]], template: function mjBizAppsCommonJobFunctionFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
45
45
|
i0.ɵɵelementStart(0, "mj-record-form-container", 0);
|
|
46
46
|
i0.ɵɵlistener("Navigate", function mjBizAppsCommonJobFunctionFormComponent_Template_mj_record_form_container_Navigate_0_listener($event) { return ctx.OnFormNavigate($event); })("DeleteRequested", function mjBizAppsCommonJobFunctionFormComponent_Template_mj_record_form_container_DeleteRequested_0_listener() { return ctx.OnDeleteRequested(); })("FavoriteToggled", function mjBizAppsCommonJobFunctionFormComponent_Template_mj_record_form_container_FavoriteToggled_0_listener() { return ctx.OnFavoriteToggled(); })("HistoryRequested", function mjBizAppsCommonJobFunctionFormComponent_Template_mj_record_form_container_HistoryRequested_0_listener() { return ctx.OnHistoryRequested(); })("ListManagementRequested", function mjBizAppsCommonJobFunctionFormComponent_Template_mj_record_form_container_ListManagementRequested_0_listener() { return ctx.OnListManagementRequested(); });
|
|
47
47
|
i0.ɵɵelement(1, "mj-form-panel-slot", 1);
|
|
@@ -100,7 +100,7 @@ mjBizAppsCommonJobFunctionFormComponent = __decorate([
|
|
|
100
100
|
export { mjBizAppsCommonJobFunctionFormComponent };
|
|
101
101
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(mjBizAppsCommonJobFunctionFormComponent, [{
|
|
102
102
|
type: Component,
|
|
103
|
-
args: [{ standalone: false, selector: 'gen-mjbizappscommonjobfunction-form', template: "<mj-record-form-container [Record]=\"record\" [FormComponent]=\"this\"\n (Navigate)=\"OnFormNavigate($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (ListManagementRequested)=\"OnListManagementRequested()\">\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"before-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <!-- ========================================\n FIELD PANELS\n ======================================== -->\n <!-- Job Function Details Section -->\n <mj-collapsible-panel\n SectionKey=\"jobFunctionDetails\"\n SectionName=\"Job Function Details\"\n Icon=\"fa fa-briefcase\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Name\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Description\"\n Type=\"textarea\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Sequence\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Status\"\n Type=\"select\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <!-- System Metadata Section -->\n <mj-collapsible-panel\n SectionKey=\"systemMetadata\"\n SectionName=\"System Metadata\"\n Icon=\"fa fa-cog\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_CreatedAt\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_UpdatedAt\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <!-- ========================================\n RELATED ENTITY PANELS\n ======================================== -->\n\n <!-- Person Job Functions Section -->\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsCommonPersonJobFunctions\"\n SectionName=\"Person Job Functions\"\n Icon=\"fa fa-
|
|
103
|
+
args: [{ standalone: false, selector: 'gen-mjbizappscommonjobfunction-form', template: "<mj-record-form-container [Record]=\"record\" [FormComponent]=\"this\"\n (Navigate)=\"OnFormNavigate($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (ListManagementRequested)=\"OnListManagementRequested()\">\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"before-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <!-- ========================================\n FIELD PANELS\n ======================================== -->\n <!-- Job Function Details Section -->\n <mj-collapsible-panel\n SectionKey=\"jobFunctionDetails\"\n SectionName=\"Job Function Details\"\n Icon=\"fa fa-briefcase\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Name\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Description\"\n Type=\"textarea\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Sequence\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Status\"\n Type=\"select\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <!-- System Metadata Section -->\n <mj-collapsible-panel\n SectionKey=\"systemMetadata\"\n SectionName=\"System Metadata\"\n Icon=\"fa fa-cog\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_CreatedAt\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_UpdatedAt\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <!-- ========================================\n RELATED ENTITY PANELS\n ======================================== -->\n\n <!-- Person Job Functions Section -->\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsCommonPersonJobFunctions\"\n SectionName=\"Person Job Functions\"\n Icon=\"fa fa-table\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsCommonPersonJobFunctions')\"\n [DefaultExpanded]=\"false\">\n @if (record.IsSaved) {\n <div>\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Common: Person Job Functions','JobFunctionID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Common: Person Job Functions','JobFunctionID')\"\n [AllowLoad]=\"IsSectionExpanded('mJBizAppsCommonPersonJobFunctions')\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsCommonPersonJobFunctions', $event.totalRowCount)\"\n >\n </mj-explorer-entity-data-grid>\n </div>\n }\n </mj-collapsible-panel>\n\n <!-- Relationships Section -->\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsCommonRelationships\"\n SectionName=\"Relationships\"\n Icon=\"fa fa-handshake\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsCommonRelationships')\"\n [DefaultExpanded]=\"false\">\n @if (record.IsSaved) {\n <div>\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Common: Relationships','JobFunctionID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Common: Relationships','JobFunctionID')\"\n [AllowLoad]=\"IsSectionExpanded('mJBizAppsCommonRelationships')\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsCommonRelationships', $event.totalRowCount)\"\n >\n </mj-explorer-entity-data-grid>\n </div>\n }\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-related\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n</mj-record-form-container>\n " }]
|
|
104
104
|
}], null, null); })();
|
|
105
105
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(mjBizAppsCommonJobFunctionFormComponent, { className: "mjBizAppsCommonJobFunctionFormComponent", filePath: "lib/generated/Entities/mjBizAppsCommonJobFunction/mjbizappscommonjobfunction.form.component.ts", lineNumber: 13 }); })();
|
|
106
106
|
//# sourceMappingURL=mjbizappscommonjobfunction.form.component.js.map
|