@acorex-platform/module-location-management-client 0.0.30 → 0.0.33

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 (38) hide show
  1. package/fesm2022/acorex-platform-module-location-management-client-contracts-entities-geographic-region.mjs +782 -0
  2. package/fesm2022/acorex-platform-module-location-management-client-contracts-entities-geographic-region.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-location-management-client-contracts-entities-location-assignment.mjs +400 -0
  4. package/fesm2022/acorex-platform-module-location-management-client-contracts-entities-location-assignment.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-location-management-client-contracts-entities-location-role.mjs +156 -0
  6. package/fesm2022/acorex-platform-module-location-management-client-contracts-entities-location-role.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-location-management-client-contracts-entities-location-type.mjs +288 -0
  8. package/fesm2022/acorex-platform-module-location-management-client-contracts-entities-location-type.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-location-management-client-contracts-entities-location.mjs +1356 -0
  10. package/fesm2022/acorex-platform-module-location-management-client-contracts-entities-location.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog-acorex-platform-module-location-management-client-contracts-entity-catalog-B1rJccHr.mjs +70 -0
  12. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog-acorex-platform-module-location-management-client-contracts-entity-catalog-B1rJccHr.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog-geographic-region.entity-CUhM4K8a.mjs +735 -0
  14. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog-geographic-region.entity-CUhM4K8a.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog-location-assignment.entity-Cw46YCj9.mjs +198 -0
  16. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog-location-assignment.entity-Cw46YCj9.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog-location-assignment.utils-CfwbSQiM.mjs +160 -0
  18. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog-location-assignment.utils-CfwbSQiM.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog-location-role.entity-CEtJEhCf.mjs +109 -0
  20. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog-location-role.entity-CEtJEhCf.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog-location-type.entity-BXuQ_A7h.mjs +241 -0
  22. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog-location-type.entity-BXuQ_A7h.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog-location.entity-CmnVKTG-.mjs +1154 -0
  24. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog-location.entity-CmnVKTG-.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog.mjs +2 -0
  26. package/fesm2022/acorex-platform-module-location-management-client-contracts-entity-catalog.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-location-management-client-local-entities.mjs +33 -0
  28. package/fesm2022/acorex-platform-module-location-management-client-local-entities.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-location-management-client.mjs +1 -1
  30. package/fesm2022/acorex-platform-module-location-management-client.mjs.map +1 -1
  31. package/package.json +29 -1
  32. package/types/acorex-platform-module-location-management-client-contracts-entities-geographic-region.d.ts +5 -0
  33. package/types/acorex-platform-module-location-management-client-contracts-entities-location-assignment.d.ts +5 -0
  34. package/types/acorex-platform-module-location-management-client-contracts-entities-location-role.d.ts +5 -0
  35. package/types/acorex-platform-module-location-management-client-contracts-entities-location-type.d.ts +5 -0
  36. package/types/acorex-platform-module-location-management-client-contracts-entities-location.d.ts +5 -0
  37. package/types/acorex-platform-module-location-management-client-contracts-entity-catalog.d.ts +10 -0
  38. package/types/acorex-platform-module-location-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-location-management-client-contracts-entities-geographic-region.mjs","sources":["../../../../libs/modules/location-management/contracts/src/root-config.ts","../../../../libs/modules/location-management/contracts/src/entities/geographic-region/geographic-region.entity.ts","../../../../libs/modules/location-management/contracts/src/acorex-platform-module-location-management-client-contracts-entities-geographic-region.ts"],"sourcesContent":["const config = {\n i18n: 'location-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: 'LocationManagement',\n title: '@location-management:module.title',\n icon: 'fa-light fa-map-marker-alt',\n },\n entities: {\n location: {\n name: 'Location',\n title: '@location-management:locations.entities.location.title',\n titlePlural: '@location-management:locations.entities.location.plural',\n icon: 'fa-light fa-map-marker-alt',\n },\n\n locationType: {\n name: 'LocationType',\n title: '@location-management:location-types.entities.location-type.title',\n titlePlural: '@location-management:location-types.entities.location-type.plural',\n icon: 'fa-light fa-tags',\n },\n locationRole: {\n name: 'LocationRole',\n title: '@location-management:location-roles.entities.location-role.title',\n titlePlural: '@location-management:location-roles.entities.location-role.plural',\n icon: 'fa-light fa-map-pin',\n },\n geographicRegion: {\n name: 'GeographicRegion',\n title: '@location-management:geographic-regions.entities.geographic-region.title',\n titlePlural: '@location-management:geographic-regions.entities.geographic-region.plural',\n icon: 'fa-light fa-globe',\n },\n locationAssignment: {\n name: 'LocationAssignment',\n title: `@${config.i18n}:location-assignments.entities.location-assignment.title`,\n titlePlural: `@${config.i18n}:location-assignments.entities.location-assignment.plural`,\n icon: 'fa-light fa-building-user',\n },\n },\n} as const;\n","import { AXPRegionalSetting, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function geographicRegionFactory(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.geographicRegion.name,\n parentKey: 'parentId',\n title: RootConfig.entities.geographicRegion.title,\n icon: RootConfig.entities.geographicRegion.icon,\n formats: {\n individual: RootConfig.entities.geographicRegion.title,\n plural: RootConfig.entities.geographicRegion.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ context.eval(\"type\") + (context.eval(\"parentId\") ? \" (Child)\" : \"\") }}',\n },\n },\n plugins: [{ name: 'archive' }],\n groups: [\n {\n id: 'basic-info',\n title: '@general:terms.interface.basic-info',\n },\n {\n id: 'geographic-data',\n title: '@general:terms.interface.geographic-details',\n },\n {\n id: 'additional-info',\n title: '@general:terms.interface.additional-info',\n },\n {\n id: 'settings',\n title: '@general:terms.interface.settings',\n },\n ],\n properties: [\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n multiLanguage: true,\n placeholder: 'Enter region title',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'code',\n title: '@general:terms.common.code',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: 'Region code (e.g., CA, US)',\n },\n },\n },\n },\n {\n name: 'type',\n title: '@location-management:geographic-regions.entities.geographic-region.fields.type',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.select,\n options: {\n valueField: 'code',\n textField: 'title',\n dataSource: [\n { code: 'country', title: 'Country' },\n { code: 'state', title: 'State/Province' },\n { code: 'city', title: 'City' },\n { code: 'district', title: 'District' },\n { code: 'subdistrict', title: 'Subdistrict' },\n { code: 'territory', title: 'Territory' },\n ],\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'parentId',\n title: '@location-management:geographic-regions.entities.geographic-region.fields.parent-region',\n groupId: 'basic-info',\n options: {\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.geographicRegion.name}`,\n expose: [\n { source: 'id', target: 'parentRegion.id' },\n { source: 'name', target: 'parentRegion.name' },\n { source: 'type', target: 'parentRegion.type' },\n ],\n },\n },\n },\n },\n {\n name: 'coordinates',\n title: '@location-management:geographic-regions.entities.geographic-region.fields.coordinates',\n groupId: 'geographic-data',\n options: {\n filter: {\n advance: {\n enabled: false,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.map,\n options: {\n hasDraw: true,\n maxPolygon: 0,\n fitToDraw: true,\n },\n },\n },\n },\n {\n name: 'timezone',\n title: '@location-management:geographic-regions.entities.geographic-region.fields.timezone',\n groupId: 'geographic-data',\n options: {\n filter: {\n advance: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n defaultValue: `{{ settings.get('${AXPRegionalSetting.TimeZone}') }}`,\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: 'LocaleManagement.Timezones',\n look: 'select',\n allowSearch: true,\n valueField: 'code',\n textField: 'title',\n placeholder: 'e.g., America/New_York',\n filter: {\n logic: 'and',\n filters: [{ field: 'isActive', operator: { type: 'equal' }, value: true }],\n },\n },\n },\n },\n },\n {\n name: 'population',\n title: '@location-management:geographic-regions.entities.geographic-region.fields.population',\n groupId: 'additional-info',\n options: {\n filter: {\n advance: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 0,\n },\n },\n },\n },\n {\n name: 'area',\n title: '@location-management:geographic-regions.entities.geographic-region.fields.area',\n groupId: 'additional-info',\n options: {\n filter: {\n advance: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 0,\n placeholder: 'Area in square kilometers',\n },\n },\n },\n },\n {\n name: 'currencyId',\n title: '@location-management:geographic-regions.entities.geographic-region.fields.currency',\n groupId: 'additional-info',\n options: {\n sort: { enabled: false },\n filter: {\n advance: {\n enabled: true,\n },\n inline: { enabled: false },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `${\"FinancialCore\"}.${\"Currency\"}`,\n multiple: false,\n look: 'select',\n textField: 'code',\n valueField: 'id',\n expose: [\n { source: 'id', target: 'currency.id' },\n { source: 'code', target: 'currency.code' },\n { source: 'title', target: 'currency.title' },\n { source: 'symbol', target: 'currency.symbol' },\n ],\n },\n },\n },\n },\n ],\n columns: [\n { name: 'title', options: { width: '400px', order: 1 } },\n { name: 'code', options: { width: '150px', order: 2 } },\n { name: 'type', options: { width: '150px', dataPath: 'type.title', order: 3 } },\n { name: 'currencyId', options: { width: '150px', dataPath: 'currency.code', order: 4 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'basic-info',\n },\n {\n id: 'geographic-data',\n },\n {\n id: 'additional-info',\n },\n {\n id: 'settings',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'code',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'type',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'parentId',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'coordinates',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n },\n },\n },\n {\n name: 'timezone',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 4,\n },\n },\n },\n },\n {\n name: 'population',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 4,\n },\n },\n },\n },\n {\n name: 'area',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 4,\n },\n },\n },\n },\n {\n name: 'currencyId',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 4,\n },\n },\n },\n },\n\n ],\n },\n update: {\n sections: [\n {\n id: 'basic-info',\n },\n {\n id: 'geographic-data',\n },\n {\n id: 'additional-info',\n },\n {\n id: 'settings',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'code',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'type',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'parentId',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'coordinates',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n },\n },\n },\n {\n name: 'timezone',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 4,\n },\n },\n },\n },\n {\n name: 'population',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 4,\n },\n },\n },\n },\n {\n name: 'area',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 4,\n },\n },\n },\n },\n {\n name: 'currencyId',\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 4,\n },\n },\n },\n },\n\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'basic-info',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n {\n id: 'geographic-data',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n {\n id: 'additional-info',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n {\n id: 'settings',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n order: 1,\n },\n },\n },\n },\n {\n name: 'code',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n order: 2,\n },\n },\n },\n },\n {\n name: 'type',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n order: 3,\n },\n },\n },\n },\n {\n name: 'parentId',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n order: 4,\n },\n },\n },\n },\n {\n name: 'coordinates',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 5,\n },\n },\n },\n },\n {\n name: 'timezone',\n layout: {\n positions: {\n lg: {\n colSpan: 4,\n order: 6,\n },\n },\n },\n },\n {\n name: 'population',\n layout: {\n positions: {\n lg: {\n colSpan: 4,\n order: 7,\n },\n },\n },\n },\n {\n name: 'area',\n layout: {\n positions: {\n lg: {\n colSpan: 4,\n order: 8,\n },\n },\n },\n },\n {\n name: 'currencyId',\n layout: {\n positions: {\n lg: {\n colSpan: 4,\n order: 9,\n },\n },\n },\n },\n\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'title', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.geographic-region';\n"],"names":[],"mappings":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alog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ //#region ---- Imports ----
5
+ //#endregion
6
+ //#region ---- Constants ----
7
+ /** Canonical assignee type for party-scoped location assignment links. */
8
+ const LOCATION_ASSIGNMENT_PARTY_TYPE = 'BusinessCore.Party';
9
+ //#endregion
10
+ //#region ---- Display helpers ----
11
+ /** Resolves assignee display title from host/process data (plain string or multi-language object). */
12
+ function resolveLocationAssignmentDisplayTitle(locale, ...candidates) {
13
+ for (const candidate of candidates) {
14
+ if (candidate == null || candidate === '') {
15
+ continue;
16
+ }
17
+ const resolved = resolveMultiLanguageString(candidate, locale).trim();
18
+ if (resolved) {
19
+ return resolved;
20
+ }
21
+ }
22
+ return '';
23
+ }
24
+ /** Builds a location snapshot for nested LocationAssignment display fields. */
25
+ function buildLocationAssignmentLocationSnapshot(locationRow, locationId) {
26
+ const fullAddress = locationRow['fullAddress']?.trim() || formatAddressData(locationRow)?.trim() || undefined;
27
+ const toRegionRef = (value) => {
28
+ if (value == null) {
29
+ return undefined;
30
+ }
31
+ if (typeof value === 'object') {
32
+ const record = value;
33
+ const title = record['title'];
34
+ if (title == null) {
35
+ return undefined;
36
+ }
37
+ if (typeof title === 'string') {
38
+ return { title };
39
+ }
40
+ if (typeof title === 'object') {
41
+ return {
42
+ title: resolveMultiLanguageString(title, 'en-US'),
43
+ };
44
+ }
45
+ return undefined;
46
+ }
47
+ return { title: String(value) };
48
+ };
49
+ return {
50
+ id: locationId,
51
+ title: locationRow['title'],
52
+ fullAddress,
53
+ street1: locationRow['street1'],
54
+ street2: locationRow['street2'],
55
+ postalCode: locationRow['postalCode'],
56
+ city: toRegionRef(locationRow['city']),
57
+ state: toRegionRef(locationRow['state']),
58
+ country: toRegionRef(locationRow['country']),
59
+ };
60
+ }
61
+ /** Builds a person snapshot for nested LocationAssignment site-contact fields. */
62
+ function buildLocationAssignmentPersonSnapshot(personRow, personId) {
63
+ const fullName = personRow['fullName'] ??
64
+ [personRow['firstName'], personRow['lastName']].filter(Boolean).join(' ').trim();
65
+ return {
66
+ id: personId,
67
+ fullName: fullName || undefined,
68
+ phones: personRow['phones'],
69
+ emails: personRow['emails'],
70
+ };
71
+ }
72
+ //#endregion
73
+ //#region ---- Filter helpers ----
74
+ /** Filters LocationAssignment rows for a location detail context. */
75
+ function locationAssignmentLocationConditions(locationIdContextPath = 'id') {
76
+ return [
77
+ {
78
+ name: 'locationId',
79
+ operator: { type: 'equal' },
80
+ value: `{{context.eval("${locationIdContextPath}")}}`,
81
+ },
82
+ ];
83
+ }
84
+ /** Filters LocationAssignment rows for the current details-view host entity. */
85
+ function locationAssignmentPartyConditions(hostIdContextPath = 'id') {
86
+ return [
87
+ {
88
+ name: 'ownerRef.type',
89
+ operator: { type: 'equal' },
90
+ value: '{{ host.entity() }}',
91
+ },
92
+ {
93
+ name: 'ownerRef.id',
94
+ operator: { type: 'equal' },
95
+ value: `{{ host.eval("${hostIdContextPath}") }}`,
96
+ },
97
+ ];
98
+ }
99
+ //#endregion
100
+ //#region ---- Form layout helpers ----
101
+ /** Assignee lookup omitted when injected from party/customer/supplier context. */
102
+ const LOCATION_ASSIGNMENT_REF_PROPERTY_NAMES = ['ownerRef.id', 'ownerRef.type'];
103
+ /** Location lookup omitted when injected from location detail context. */
104
+ const LOCATION_ASSIGNMENT_LOCATION_PROPERTY_NAMES = ['locationId'];
105
+ function omitLocationAssignmentRefFromEditLayouts(layouts) {
106
+ return layouts.filter((layout) => !LOCATION_ASSIGNMENT_REF_PROPERTY_NAMES.includes(layout.name));
107
+ }
108
+ function omitLocationAssignmentLocationFromEditLayouts(layouts) {
109
+ return layouts.filter((layout) => !LOCATION_ASSIGNMENT_LOCATION_PROPERTY_NAMES.includes(layout.name));
110
+ }
111
+ //#endregion
112
+ //#region ---- Property factories ----
113
+ /** Polymorphic assignee lookup (AssessmentCase subjectRef pattern). */
114
+ function createLocationAssignmentOwnerRefLookupProperty(groupId, options = {}) {
115
+ const readonly = options.readonly ?? false;
116
+ return {
117
+ name: 'ownerRef.id',
118
+ title: '@location-management:location-assignments.entities.location-assignment.fields.assignee.title',
119
+ groupId,
120
+ options: readonly
121
+ ? { sort: { enabled: false }, filter: { advance: { enabled: false }, inline: { enabled: false } } }
122
+ : { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
123
+ schema: {
124
+ dataType: 'string',
125
+ readonly,
126
+ interface: {
127
+ type: AXPWidgetsList.Editors.LookupBox,
128
+ options: {
129
+ readonly,
130
+ entity: "{{ context.eval('ownerRef.type') }}",
131
+ textField: 'title',
132
+ valueField: 'id',
133
+ expose: [
134
+ { source: 'id', target: 'ownerRef.id' },
135
+ { source: 'title', target: 'ownerRef.title' },
136
+ ],
137
+ triggers: [{ event: "{{ events.context('ownerRef.type') }}", action: '{{ widget.refresh() }}' }],
138
+ },
139
+ },
140
+ },
141
+ validations: [{ rule: 'required' }],
142
+ };
143
+ }
144
+ /** Hidden assignee type field; defaults to BusinessCore.Party. */
145
+ function createLocationAssignmentOwnerRefTypeProperty(groupId) {
146
+ return {
147
+ name: 'ownerRef.type',
148
+ title: '@location-management:location-assignments.entities.location-assignment.fields.assignee-type.title',
149
+ groupId,
150
+ schema: {
151
+ dataType: 'string',
152
+ visible: false,
153
+ defaultValue: LOCATION_ASSIGNMENT_PARTY_TYPE,
154
+ interface: { type: AXPWidgetsList.Editors.TextBox },
155
+ },
156
+ };
157
+ }
158
+ //#endregion
159
+
160
+ const config = {
161
+ i18n: 'location-management',
162
+ };
163
+ const RootConfig = {
164
+ config,
165
+ module: {
166
+ name: 'LocationManagement',
167
+ title: '@location-management:module.title',
168
+ icon: 'fa-light fa-map-marker-alt',
169
+ },
170
+ entities: {
171
+ location: {
172
+ name: 'Location',
173
+ title: '@location-management:locations.entities.location.title',
174
+ titlePlural: '@location-management:locations.entities.location.plural',
175
+ icon: 'fa-light fa-map-marker-alt',
176
+ },
177
+ locationType: {
178
+ name: 'LocationType',
179
+ title: '@location-management:location-types.entities.location-type.title',
180
+ titlePlural: '@location-management:location-types.entities.location-type.plural',
181
+ icon: 'fa-light fa-tags',
182
+ },
183
+ locationRole: {
184
+ name: 'LocationRole',
185
+ title: '@location-management:location-roles.entities.location-role.title',
186
+ titlePlural: '@location-management:location-roles.entities.location-role.plural',
187
+ icon: 'fa-light fa-map-pin',
188
+ },
189
+ geographicRegion: {
190
+ name: 'GeographicRegion',
191
+ title: '@location-management:geographic-regions.entities.geographic-region.title',
192
+ titlePlural: '@location-management:geographic-regions.entities.geographic-region.plural',
193
+ icon: 'fa-light fa-globe',
194
+ },
195
+ locationAssignment: {
196
+ name: 'LocationAssignment',
197
+ title: `@${config.i18n}:location-assignments.entities.location-assignment.title`,
198
+ titlePlural: `@${config.i18n}:location-assignments.entities.location-assignment.plural`,
199
+ icon: 'fa-light fa-building-user',
200
+ },
201
+ },
202
+ };
203
+
204
+ //#endregion
205
+ //#region ---- Entity Factory ----
206
+ async function locationAssignmentFactory() {
207
+ const entityDef = {
208
+ module: RootConfig.module.name,
209
+ name: RootConfig.entities.locationAssignment.name,
210
+ title: RootConfig.entities.locationAssignment.title,
211
+ icon: RootConfig.entities.locationAssignment.icon,
212
+ formats: {
213
+ individual: RootConfig.entities.locationAssignment.title,
214
+ plural: RootConfig.entities.locationAssignment.titlePlural,
215
+ searchResult: {
216
+ title: '{{ location.title }}',
217
+ description: '@location-management:location-assignments.entities.location-assignment.search-result-description',
218
+ },
219
+ },
220
+ plugins: [{ name: 'notes' }],
221
+ groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
222
+ properties: [
223
+ {
224
+ name: 'locationId',
225
+ title: '@location-management:location-assignments.entities.location-assignment.fields.location.title',
226
+ groupId: 'basic-info',
227
+ options: {
228
+ sort: { enabled: true },
229
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
230
+ },
231
+ schema: {
232
+ dataType: 'string',
233
+ interface: {
234
+ type: AXPWidgetsList.Editors.LookupBox,
235
+ options: {
236
+ entity: `${RootConfig.module.name}.${RootConfig.entities.location.name}`,
237
+ multiple: false,
238
+ textField: 'title',
239
+ columns: ['title', 'code', 'fullAddress', 'locationTypeId'],
240
+ allowCreate: 'quick',
241
+ expose: [
242
+ { source: 'id', target: 'location.id' },
243
+ { source: 'title', target: 'location.title' },
244
+ { source: 'fullAddress', target: 'location.fullAddress' },
245
+ { source: 'street1', target: 'location.street1' },
246
+ { source: 'street2', target: 'location.street2' },
247
+ { source: 'postalCode', target: 'location.postalCode' },
248
+ { source: 'city.title', target: 'location.city.title' },
249
+ { source: 'state.title', target: 'location.state.title' },
250
+ { source: 'country.title', target: 'location.country.title' },
251
+ ],
252
+ },
253
+ },
254
+ },
255
+ validations: [{ rule: 'required' }],
256
+ },
257
+ createLocationAssignmentOwnerRefTypeProperty('basic-info'),
258
+ createLocationAssignmentOwnerRefLookupProperty('basic-info'),
259
+ {
260
+ name: 'roleId',
261
+ title: '@location-management:location-assignments.entities.location-assignment.fields.role.title',
262
+ groupId: 'basic-info',
263
+ options: {
264
+ sort: { enabled: true },
265
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
266
+ },
267
+ schema: {
268
+ dataType: 'string',
269
+ interface: {
270
+ type: AXPWidgetsCatalog.lookup,
271
+ options: {
272
+ look: 'select',
273
+ entity: `${RootConfig.module.name}.${RootConfig.entities.locationRole.name}`,
274
+ multiple: false,
275
+ expose: [
276
+ { source: 'id', target: 'role.id' },
277
+ { source: 'title', target: 'role.title' },
278
+ ],
279
+ },
280
+ },
281
+ },
282
+ validations: [{ rule: 'required' }],
283
+ },
284
+ {
285
+ name: 'personId',
286
+ title: '@location-management:location-assignments.entities.location-assignment.fields.contact.title',
287
+ groupId: 'basic-info',
288
+ options: {
289
+ sort: { enabled: true },
290
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
291
+ },
292
+ schema: {
293
+ dataType: 'string',
294
+ interface: {
295
+ type: AXPWidgetsCatalog.lookup,
296
+ options: {
297
+ entity: 'PersonCore.Person',
298
+ multiple: false,
299
+ textField: 'fullName',
300
+ columns: ['fullName', 'phones', 'emails'],
301
+ allowCreate: 'quick',
302
+ expose: [
303
+ { source: 'id', target: 'person.id' },
304
+ { source: 'fullName', target: 'person.fullName' },
305
+ { source: 'phones', target: 'person.phones' },
306
+ { source: 'emails', target: 'person.emails' },
307
+ ],
308
+ },
309
+ },
310
+ },
311
+ },
312
+ ],
313
+ columns: [
314
+ {
315
+ name: 'locationId',
316
+ title: '@general:terms.common.title',
317
+ options: { dataPath: 'location.title' },
318
+ },
319
+ {
320
+ name: 'roleId',
321
+ title: '@location-management:location-assignments.entities.location-assignment.fields.role.title',
322
+ options: { dataPath: 'role.title' },
323
+ },
324
+ {
325
+ name: 'location.fullAddress',
326
+ title: '@general:terms.geography.address',
327
+ options: { width: '280px' },
328
+ },
329
+ {
330
+ name: 'personId',
331
+ title: '@general:terms.people.contact',
332
+ options: { dataPath: 'person.fullName' },
333
+ },
334
+ {
335
+ name: 'person.phones',
336
+ title: '@general:terms.communication.phones',
337
+ options: { width: '180px' },
338
+ },
339
+ {
340
+ name: 'ownerRef.id',
341
+ title: '@location-management:location-assignments.entities.location-assignment.fields.assignee.title',
342
+ options: { dataPath: 'ownerRef.title' },
343
+ },
344
+ {
345
+ name: 'notes',
346
+ title: '@general:terms.common.notes',
347
+ },
348
+ ],
349
+ interfaces: {
350
+ master: {
351
+ create: {
352
+ sections: [{ id: 'basic-info' }],
353
+ properties: [
354
+ { name: 'locationId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
355
+ { name: 'ownerRef.id', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
356
+ { name: 'roleId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
357
+ { name: 'personId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
358
+ ],
359
+ },
360
+ update: {
361
+ sections: [{ id: 'basic-info' }],
362
+ properties: [
363
+ { name: 'locationId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
364
+ { name: 'ownerRef.id', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
365
+ { name: 'roleId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
366
+ { name: 'personId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
367
+ ],
368
+ },
369
+ single: {
370
+ title: '{{ location.title }}',
371
+ sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
372
+ properties: [
373
+ { name: 'locationId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
374
+ { name: 'ownerRef.id', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
375
+ { name: 'roleId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
376
+ { name: 'personId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
377
+ ],
378
+ actions: [...entityMasterRecordActions()],
379
+ },
380
+ list: {
381
+ actions: [...entityMasterCrudActions()],
382
+ views: [
383
+ createAllQueryView({
384
+ sorts: [{ name: 'locationId', dir: 'asc' }],
385
+ }),
386
+ ],
387
+ },
388
+ },
389
+ },
390
+ };
391
+ return entityDef;
392
+ }
393
+ //#endregion
394
+
395
+ /**
396
+ * Generated bundle index. Do not edit.
397
+ */
398
+
399
+ export { locationAssignmentFactory };
400
+ //# sourceMappingURL=acorex-platform-module-location-management-client-contracts-entities-location-assignment.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-location-management-client-contracts-entities-location-assignment.mjs","sources":["../../../../libs/modules/location-management/contracts/src/location-assignment.utils.ts","../../../../libs/modules/location-management/contracts/src/root-config.ts","../../../../libs/modules/location-management/contracts/src/entities/location-assignment/location-assignment.entity.ts","../../../../libs/modules/location-management/contracts/src/acorex-platform-module-location-management-client-contracts-entities-location-assignment.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport {\n AXPWidgetsList,\n formatAddressData,\n resolveMultiLanguageString,\n type AXPMultiLanguageString,\n} from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityProperty, AXPQueryFilter } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Types ----\n\ntype LocationAssignmentLocationSnapshot = {\n id: string;\n title: string;\n fullAddress?: string;\n street1?: string;\n street2?: string;\n postalCode?: string;\n city?: { title: string };\n state?: { title: string };\n country?: { title: string };\n};\n\ntype LocationAssignmentPersonSnapshot = {\n id: string;\n fullName?: string;\n phones?: unknown[];\n emails?: unknown[];\n};\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Canonical assignee type for party-scoped location assignment links. */\nexport const LOCATION_ASSIGNMENT_PARTY_TYPE = 'BusinessCore.Party';\n\n//#endregion\n\n//#region ---- Display helpers ----\n\n/** Resolves assignee display title from host/process data (plain string or multi-language object). */\nexport function resolveLocationAssignmentDisplayTitle(locale: string, ...candidates: unknown[]): string {\n for (const candidate of candidates) {\n if (candidate == null || candidate === '') {\n continue;\n }\n\n const resolved = resolveMultiLanguageString(\n candidate as string | AXPMultiLanguageString | null | undefined,\n locale,\n ).trim();\n if (resolved) {\n return resolved;\n }\n }\n\n return '';\n}\n\n/** Builds a location snapshot for nested LocationAssignment display fields. */\nexport function buildLocationAssignmentLocationSnapshot(\n locationRow: Record<string, unknown>,\n locationId: string,\n): LocationAssignmentLocationSnapshot {\n const fullAddress =\n (locationRow['fullAddress'] as string | undefined)?.trim() || formatAddressData(locationRow)?.trim() || undefined;\n\n const toRegionRef = (value: unknown) => {\n if (value == null) {\n return undefined;\n }\n if (typeof value === 'object') {\n const record = value as Record<string, unknown>;\n const title = record['title'];\n if (title == null) {\n return undefined;\n }\n if (typeof title === 'string') {\n return { title };\n }\n if (typeof title === 'object') {\n return {\n title: resolveMultiLanguageString(title as AXPMultiLanguageString, 'en-US'),\n };\n }\n return undefined;\n }\n return { title: String(value) };\n };\n\n return {\n id: locationId,\n title: locationRow['title'] as string,\n fullAddress,\n street1: locationRow['street1'] as string | undefined,\n street2: locationRow['street2'] as string | undefined,\n postalCode: locationRow['postalCode'] as string | undefined,\n city: toRegionRef(locationRow['city']),\n state: toRegionRef(locationRow['state']),\n country: toRegionRef(locationRow['country']),\n };\n}\n\n/** Builds a person snapshot for nested LocationAssignment site-contact fields. */\nexport function buildLocationAssignmentPersonSnapshot(\n personRow: Record<string, unknown>,\n personId: string,\n): LocationAssignmentPersonSnapshot {\n const fullName =\n (personRow['fullName'] as string | undefined) ??\n [personRow['firstName'], personRow['lastName']].filter(Boolean).join(' ').trim();\n\n return {\n id: personId,\n fullName: fullName || undefined,\n phones: personRow['phones'] as unknown[] | undefined,\n emails: personRow['emails'] as unknown[] | undefined,\n };\n}\n\n//#endregion\n\n//#region ---- Filter helpers ----\n\n/** Filters LocationAssignment rows for a location detail context. */\nexport function locationAssignmentLocationConditions(locationIdContextPath = 'id'): AXPQueryFilter[] {\n return [\n {\n name: 'locationId',\n operator: { type: 'equal' },\n value: `{{context.eval(\"${locationIdContextPath}\")}}`,\n },\n ];\n}\n\n/** Filters LocationAssignment rows for the current details-view host entity. */\nexport function locationAssignmentPartyConditions(hostIdContextPath = 'id'): AXPQueryFilter[] {\n return [\n {\n name: 'ownerRef.type',\n operator: { type: 'equal' },\n value: '{{ host.entity() }}',\n },\n {\n name: 'ownerRef.id',\n operator: { type: 'equal' },\n value: `{{ host.eval(\"${hostIdContextPath}\") }}`,\n },\n ];\n}\n\n//#endregion\n\n//#region ---- Form layout helpers ----\n\n/** Assignee lookup omitted when injected from party/customer/supplier context. */\nexport const LOCATION_ASSIGNMENT_REF_PROPERTY_NAMES = ['ownerRef.id', 'ownerRef.type'] as const;\n\n/** Location lookup omitted when injected from location detail context. */\nexport const LOCATION_ASSIGNMENT_LOCATION_PROPERTY_NAMES = ['locationId'] as const;\n\ntype PropertyLayoutRef = { name: string; layout?: Record<string, unknown> };\n\nexport function omitLocationAssignmentRefFromEditLayouts<T extends PropertyLayoutRef>(layouts: T[]): T[] {\n return layouts.filter(\n (layout) =>\n !LOCATION_ASSIGNMENT_REF_PROPERTY_NAMES.includes(\n layout.name as (typeof LOCATION_ASSIGNMENT_REF_PROPERTY_NAMES)[number],\n ),\n );\n}\n\nexport function omitLocationAssignmentLocationFromEditLayouts<T extends PropertyLayoutRef>(layouts: T[]): T[] {\n return layouts.filter(\n (layout) =>\n !LOCATION_ASSIGNMENT_LOCATION_PROPERTY_NAMES.includes(\n layout.name as (typeof LOCATION_ASSIGNMENT_LOCATION_PROPERTY_NAMES)[number],\n ),\n );\n}\n\n//#endregion\n\n//#region ---- Property factories ----\n\n/** Polymorphic assignee lookup (AssessmentCase subjectRef pattern). */\nexport function createLocationAssignmentOwnerRefLookupProperty(\n groupId: string,\n options: { readonly?: boolean } = {},\n): AXPEntityProperty {\n const readonly = options.readonly ?? false;\n\n return {\n name: 'ownerRef.id',\n title: '@location-management:location-assignments.entities.location-assignment.fields.assignee.title',\n groupId,\n options: readonly\n ? { sort: { enabled: false }, filter: { advance: { enabled: false }, inline: { enabled: false } } }\n : { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n readonly,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n readonly,\n entity: \"{{ context.eval('ownerRef.type') }}\",\n textField: 'title',\n valueField: 'id',\n expose: [\n { source: 'id', target: 'ownerRef.id' },\n { source: 'title', target: 'ownerRef.title' },\n ],\n triggers: [{ event: \"{{ events.context('ownerRef.type') }}\", action: '{{ widget.refresh() }}' }],\n },\n },\n },\n validations: [{ rule: 'required' }],\n };\n}\n\n/** Hidden assignee type field; defaults to BusinessCore.Party. */\nexport function createLocationAssignmentOwnerRefTypeProperty(groupId: string): AXPEntityProperty {\n return {\n name: 'ownerRef.type',\n title: '@location-management:location-assignments.entities.location-assignment.fields.assignee-type.title',\n groupId,\n schema: {\n dataType: 'string',\n visible: false,\n defaultValue: LOCATION_ASSIGNMENT_PARTY_TYPE,\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n };\n}\n\n//#endregion\n","const config = {\n i18n: 'location-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: 'LocationManagement',\n title: '@location-management:module.title',\n icon: 'fa-light fa-map-marker-alt',\n },\n entities: {\n location: {\n name: 'Location',\n title: '@location-management:locations.entities.location.title',\n titlePlural: '@location-management:locations.entities.location.plural',\n icon: 'fa-light fa-map-marker-alt',\n },\n\n locationType: {\n name: 'LocationType',\n title: '@location-management:location-types.entities.location-type.title',\n titlePlural: '@location-management:location-types.entities.location-type.plural',\n icon: 'fa-light fa-tags',\n },\n locationRole: {\n name: 'LocationRole',\n title: '@location-management:location-roles.entities.location-role.title',\n titlePlural: '@location-management:location-roles.entities.location-role.plural',\n icon: 'fa-light fa-map-pin',\n },\n geographicRegion: {\n name: 'GeographicRegion',\n title: '@location-management:geographic-regions.entities.geographic-region.title',\n titlePlural: '@location-management:geographic-regions.entities.geographic-region.plural',\n icon: 'fa-light fa-globe',\n },\n locationAssignment: {\n name: 'LocationAssignment',\n title: `@${config.i18n}:location-assignments.entities.location-assignment.title`,\n titlePlural: `@${config.i18n}:location-assignments.entities.location-assignment.plural`,\n icon: 'fa-light fa-building-user',\n },\n },\n} as const;\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\n\n//#region ---- Imports ----\n\nimport { createLocationAssignmentOwnerRefLookupProperty, createLocationAssignmentOwnerRefTypeProperty } from '../../location-assignment.utils';\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function locationAssignmentFactory(): Promise<AXPEntity> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.locationAssignment.name,\n title: RootConfig.entities.locationAssignment.title,\n icon: RootConfig.entities.locationAssignment.icon,\n formats: {\n individual: RootConfig.entities.locationAssignment.title,\n plural: RootConfig.entities.locationAssignment.titlePlural,\n searchResult: {\n title: '{{ location.title }}',\n description: '@location-management:location-assignments.entities.location-assignment.search-result-description',\n },\n },\n plugins: [{ name: 'notes' }],\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'locationId',\n title: '@location-management:location-assignments.entities.location-assignment.fields.location.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.location.name}`,\n multiple: false,\n textField: 'title',\n columns: ['title', 'code', 'fullAddress', 'locationTypeId'],\n allowCreate: 'quick',\n expose: [\n { source: 'id', target: 'location.id' },\n { source: 'title', target: 'location.title' },\n { source: 'fullAddress', target: 'location.fullAddress' },\n { source: 'street1', target: 'location.street1' },\n { source: 'street2', target: 'location.street2' },\n { source: 'postalCode', target: 'location.postalCode' },\n { source: 'city.title', target: 'location.city.title' },\n { source: 'state.title', target: 'location.state.title' },\n { source: 'country.title', target: 'location.country.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n createLocationAssignmentOwnerRefTypeProperty('basic-info'),\n createLocationAssignmentOwnerRefLookupProperty('basic-info'),\n {\n name: 'roleId',\n title: '@location-management:location-assignments.entities.location-assignment.fields.role.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n look: 'select',\n entity: `${RootConfig.module.name}.${RootConfig.entities.locationRole.name}`,\n multiple: false,\n expose: [\n { source: 'id', target: 'role.id' },\n { source: 'title', target: 'role.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'personId',\n title: '@location-management:location-assignments.entities.location-assignment.fields.contact.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: 'PersonCore.Person',\n multiple: false,\n textField: 'fullName',\n columns: ['fullName', 'phones', 'emails'],\n allowCreate: 'quick',\n expose: [\n { source: 'id', target: 'person.id' },\n { source: 'fullName', target: 'person.fullName' },\n { source: 'phones', target: 'person.phones' },\n { source: 'emails', target: 'person.emails' },\n ],\n },\n },\n },\n },\n ],\n columns: [\n {\n name: 'locationId',\n title: '@general:terms.common.title',\n options: { dataPath: 'location.title' },\n },\n {\n name: 'roleId',\n title: '@location-management:location-assignments.entities.location-assignment.fields.role.title',\n options: { dataPath: 'role.title' },\n },\n {\n name: 'location.fullAddress',\n title: '@general:terms.geography.address',\n options: { width: '280px' },\n },\n {\n name: 'personId',\n title: '@general:terms.people.contact',\n options: { dataPath: 'person.fullName' },\n },\n {\n name: 'person.phones',\n title: '@general:terms.communication.phones',\n options: { width: '180px' },\n },\n {\n name: 'ownerRef.id',\n title: '@location-management:location-assignments.entities.location-assignment.fields.assignee.title',\n options: { dataPath: 'ownerRef.title' },\n },\n {\n name: 'notes',\n title: '@general:terms.common.notes',\n },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'locationId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'ownerRef.id', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'roleId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'personId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'locationId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'ownerRef.id', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'roleId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'personId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n },\n single: {\n title: '{{ location.title }}',\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'locationId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'ownerRef.id', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'roleId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'personId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'locationId', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.location-assignment';\n"],"names":[],"mappings":";;;AAAA;AAiCA;AAEA;AAEA;AACO,MAAM,8BAA8B,GAAG,oBAAoB;AAElE;AAEA;AAEA;SACgB,qCAAqC,CAAC,MAAc,EAAE,GAAG,UAAqB,EAAA;AAC5F,IAAA,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;QAClC,IAAI,SAAS,IAAI,IAAI,IAAI,SAAS,KAAK,EAAE,EAAE;YACzC;QACF;QAEA,MAAM,QAAQ,GAAG,0BAA0B,CACzC,SAA+D,EAC/D,MAAM,CACP,CAAC,IAAI,EAAE;QACR,IAAI,QAAQ,EAAE;AACZ,YAAA,OAAO,QAAQ;QACjB;IACF;AAEA,IAAA,OAAO,EAAE;AACX;AAEA;AACM,SAAU,uCAAuC,CACrD,WAAoC,EACpC,UAAkB,EAAA;AAElB,IAAA,MAAM,WAAW,GACd,WAAW,CAAC,aAAa,CAAwB,EAAE,IAAI,EAAE,IAAI,iBAAiB,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS;AAEnH,IAAA,MAAM,WAAW,GAAG,CAAC,KAAc,KAAI;AACrC,QAAA,IAAI,KAAK,IAAI,IAAI,EAAE;AACjB,YAAA,OAAO,SAAS;QAClB;AACA,QA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