Skip to content

Commit cee4cd7

Browse files
authored
Merge branch 'main' into customList
2 parents b3d169e + b1a8622 commit cee4cd7

File tree

97 files changed

+2093
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+2093
-239
lines changed

config/project-scratch-def.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"securitySettings": {
3030
"sessionSettings": {
3131
"forceRelogin": false,
32-
"lockerServiceNext": false
32+
"lockerServiceNext": true
3333
},
3434
"enableAdminLoginAsAnyUser": true
3535
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
h3 {
2+
border-radius: var(--slds-g-radius-border-1);
3+
border-radius: 0.25rem;
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<template>
2+
<div class="slds-card slds-theme_default">
3+
<div class="slds-card__body slds-card__body_inner">
4+
<div class={sectionClass}>
5+
<h3 class="slds-section__title slds-truncate slds-p-around_xx-small slds-theme_shade">
6+
<button class="slds-button slds-section__title-action" onclick={handleClick} label={label}>
7+
<lightning-icon
8+
icon-name="utility:switch"
9+
alternative-text="button icon"
10+
size="x-small"
11+
class="slds-section__title-action-icon slds-button__icon_left"
12+
></lightning-icon>
13+
<span class="slds-truncate" title={label}>{label}</span>
14+
</button>
15+
</h3>
16+
<div class="slds-section__content">
17+
<template if:true={fields}>
18+
<lightning-record-form
19+
object-api-name={objectApiName}
20+
record-id={recordId}
21+
fields={fieldArray}
22+
columns={columns}
23+
mode={mode}
24+
>
25+
</lightning-record-form>
26+
</template>
27+
</div>
28+
</div>
29+
</div>
30+
</div>
31+
</template>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import { LightningElement, api, track } from 'lwc';
2+
export default class TagRecordForm extends LightningElement {
3+
@api recordId;
4+
@api objectApiName;
5+
@api label;
6+
@api fields;
7+
@api twoColumns;
8+
@api readOnly;
9+
10+
@track fieldArray = [];
11+
@track open;
12+
13+
// run the getter when the component is connected to the DOM
14+
connectedCallback() {
15+
try {
16+
if (this.fields) {
17+
this.fieldArray = this.fields.split(',').map((field) => field.trim());
18+
} else {
19+
console.error('fields property is undefined or empty');
20+
}
21+
22+
if (typeof this.open === 'undefined') {
23+
this.open = true;
24+
}
25+
} catch (error) {
26+
console.error('Error in connectedCallback: ' + error.message);
27+
}
28+
}
29+
30+
get sectionClass() {
31+
return this.open ? 'slds-section slds-is-open' : 'slds-section';
32+
}
33+
get mode() {
34+
return this.readOnly ? 'readonly' : 'view';
35+
}
36+
get columns() {
37+
return this.twoColumns ? '2' : '1';
38+
}
39+
40+
handleClick() {
41+
this.open = !this.open;
42+
}
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<apiVersion>62.0</apiVersion>
4+
<isExposed>true</isExposed>
5+
<targets>
6+
<target>lightning__RecordPage</target>
7+
</targets>
8+
<targetConfigs>
9+
<targetConfig targets="lightning__RecordPage">
10+
<objects>
11+
<object>Account</object>
12+
</objects>
13+
<property name="fields" type="String" />
14+
<property name="label" type="String" />
15+
<property name="readOnly" type="Boolean" default="true" />
16+
<property name="twoColumns" type="Boolean" default="true" />
17+
<supportedFormFactors>
18+
<supportedFormFactor type="Large" />
19+
<supportedFormFactor type="Small" />
20+
</supportedFormFactors>
21+
</targetConfig>
22+
</targetConfigs>
23+
</LightningComponentBundle>

force-app/functionality/activities/classes/TAG_ActivityTriggerHelper.cls

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public with sharing class TAG_ActivityTriggerHelper {
3737
taskEmpActEv.CompletedDate__c = task.TAG_CompletedDate__c;
3838
taskEmpActEv.IACaseNumber__c = task.TAG_IACaseNumber__c;
3939
taskEmpActEv.IACooperationId__c = task.TAG_IACooperationId__c;
40+
taskEmpActEv.IAPlanId__c = task.TAG_IAPlanId__c;
4041
taskEmpActEv.IASubtheme__c = task.IASubtheme__c;
4142
taskEmpActEv.Id__c = task.Id;
4243
taskEmpActEv.LastModifiedById__c = task.LastModifiedById;
@@ -98,6 +99,7 @@ public with sharing class TAG_ActivityTriggerHelper {
9899
eventEmpActEv.EndDateTime__c = event.EndDateTime;
99100
eventEmpActEv.IACaseNumber__c = event.TAG_IACaseNumber__c;
100101
eventEmpActEv.IACooperationId__c = event.TAG_IACooperationId__c;
102+
eventEmpActEv.IAPlanId__c = event.TAG_IAPlanId__c;
101103
eventEmpActEv.IASubtheme__c = event.IASubtheme__c;
102104
eventEmpActEv.Id__c = event.Id;
103105
eventEmpActEv.LastModifiedById__c = event.LastModifiedById;

force-app/functionality/activities/classes/TAG_ActivityTriggerHelperTest.cls

+4
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ public class TAG_ActivityTriggerHelperTest {
114114
CreatedDate,
115115
TAG_IACaseNumber__c,
116116
TAG_IACooperationId__c,
117+
TAG_IAPlanId__c,
117118
IASubtheme__c,
118119
LastModifiedDate,
119120
Priority,
@@ -149,6 +150,7 @@ public class TAG_ActivityTriggerHelperTest {
149150
EndDateTime,
150151
TAG_IACaseNumber__c,
151152
TAG_IACooperationId__c,
153+
TAG_IAPlanId__c,
152154
IASubtheme__c,
153155
LastModifiedDate,
154156
RecordTypeId,
@@ -363,6 +365,7 @@ public class TAG_ActivityTriggerHelperTest {
363365
CreatedDate,
364366
TAG_IACaseNumber__c,
365367
TAG_IACooperationId__c,
368+
TAG_IAPlanId__c,
366369
IASubtheme__c,
367370
LastModifiedDate,
368371
Priority,
@@ -398,6 +401,7 @@ public class TAG_ActivityTriggerHelperTest {
398401
EndDateTime,
399402
TAG_IACaseNumber__c,
400403
TAG_IACooperationId__c,
404+
TAG_IAPlanId__c,
401405
IASubtheme__c,
402406
LastModifiedDate,
403407
RecordTypeId,

force-app/functionality/activities/classes/TAG_ActivityTriggerTest.cls

+4
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public class TAG_ActivityTriggerTest {
115115
CreatedDate,
116116
TAG_IACaseNumber__c,
117117
TAG_IACooperationId__c,
118+
TAG_IAPlanId__c,
118119
IASubtheme__c,
119120
LastModifiedDate,
120121
Priority,
@@ -150,6 +151,7 @@ public class TAG_ActivityTriggerTest {
150151
EndDateTime,
151152
TAG_IACaseNumber__c,
152153
TAG_IACooperationId__c,
154+
TAG_IAPlanId__c,
153155
IASubtheme__c,
154156
LastModifiedDate,
155157
RecordTypeId,
@@ -330,6 +332,7 @@ public class TAG_ActivityTriggerTest {
330332
CreatedDate,
331333
TAG_IACaseNumber__c,
332334
TAG_IACooperationId__c,
335+
TAG_IAPlanId__c,
333336
IASubtheme__c,
334337
LastModifiedDate,
335338
Priority,
@@ -365,6 +368,7 @@ public class TAG_ActivityTriggerTest {
365368
EndDateTime,
366369
TAG_IACaseNumber__c,
367370
TAG_IACooperationId__c,
371+
TAG_IAPlanId__c,
368372
IASubtheme__c,
369373
LastModifiedDate,
370374
RecordTypeId,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3+
<label>Dialogue Meeting</label>
4+
<protected>false</protected>
5+
<values>
6+
<field>AllowAutoOpen__c</field>
7+
<value xsi:type="xsd:boolean">false</value>
8+
</values>
9+
<values>
10+
<field>AutomaticRefresh_PushTopicName__c</field>
11+
<value xsi:nil="true"/>
12+
</values>
13+
<values>
14+
<field>AutomaticRefresh__c</field>
15+
<value xsi:type="xsd:boolean">false</value>
16+
</values>
17+
<values>
18+
<field>ClampLines__c</field>
19+
<value xsi:nil="true"/>
20+
</values>
21+
<values>
22+
<field>CreateableObject_Field1__c</field>
23+
<value xsi:nil="true"/>
24+
</values>
25+
<values>
26+
<field>CreateableObject_Field2__c</field>
27+
<value xsi:nil="true"/>
28+
</values>
29+
<values>
30+
<field>CreateableObject_Field3__c</field>
31+
<value xsi:nil="true"/>
32+
</values>
33+
<values>
34+
<field>CreateableObject_Field4__c</field>
35+
<value xsi:nil="true"/>
36+
</values>
37+
<values>
38+
<field>CreateableObject_Field5__c</field>
39+
<value xsi:nil="true"/>
40+
</values>
41+
<values>
42+
<field>CreateableObject_RecordType__c</field>
43+
<value xsi:nil="true"/>
44+
</values>
45+
<values>
46+
<field>CreateableObject_TextEnglish__c</field>
47+
<value xsi:nil="true"/>
48+
</values>
49+
<values>
50+
<field>CreateableObject_TextNorwegian__c</field>
51+
<value xsi:nil="true"/>
52+
</values>
53+
<values>
54+
<field>CreateableObject_Value1__c</field>
55+
<value xsi:nil="true"/>
56+
</values>
57+
<values>
58+
<field>CreateableObject_Value2__c</field>
59+
<value xsi:nil="true"/>
60+
</values>
61+
<values>
62+
<field>CreateableObject_Value3__c</field>
63+
<value xsi:nil="true"/>
64+
</values>
65+
<values>
66+
<field>CreateableObject_Value4__c</field>
67+
<value xsi:nil="true"/>
68+
</values>
69+
<values>
70+
<field>CreateableObject_Value5__c</field>
71+
<value xsi:nil="true"/>
72+
</values>
73+
<values>
74+
<field>CustomComponent__c</field>
75+
<value xsi:nil="true"/>
76+
</values>
77+
<values>
78+
<field>CustomView__c</field>
79+
<value xsi:type="xsd:boolean">false</value>
80+
</values>
81+
<values>
82+
<field>ExpandedFieldsToDisplay__c</field>
83+
<value xsi:nil="true"/>
84+
</values>
85+
<values>
86+
<field>FilterableCheckbox__c</field>
87+
<value xsi:nil="true"/>
88+
</values>
89+
<values>
90+
<field>FilterablePicklist1__c</field>
91+
<value xsi:nil="true"/>
92+
</values>
93+
<values>
94+
<field>FilterablePicklist2__c</field>
95+
<value xsi:nil="true"/>
96+
</values>
97+
<values>
98+
<field>SLDS_Dropdown_Icon__c</field>
99+
<value xsi:type="xsd:string">utility:event</value>
100+
</values>
101+
<values>
102+
<field>SLDS_Icon__c</field>
103+
<value xsi:type="xsd:string">standard:event</value>
104+
</values>
105+
<values>
106+
<field>SLDS_Timeline_Color__c</field>
107+
<value xsi:type="xsd:string">dc7792</value>
108+
</values>
109+
<values>
110+
<field>SObjectDateFieldIsDate__c</field>
111+
<value xsi:type="xsd:boolean">false</value>
112+
</values>
113+
<values>
114+
<field>SObjectDateField__c</field>
115+
<value xsi:type="xsd:string">MeetingTime__c</value>
116+
</values>
117+
<values>
118+
<field>SObjectName__c</field>
119+
<value xsi:type="xsd:string">DialogueMeeting__c</value>
120+
</values>
121+
<values>
122+
<field>SObjectRelatedUserId__c</field>
123+
<value xsi:type="xsd:string">OwnerId</value>
124+
</values>
125+
<values>
126+
<field>SObjectSubtitle__c</field>
127+
<value xsi:nil="true"/>
128+
</values>
129+
<values>
130+
<field>SObjectTitle__c</field>
131+
<value xsi:type="xsd:string">Status__c</value>
132+
</values>
133+
<values>
134+
<field>SObjectTypeField__c</field>
135+
<value xsi:nil="true"/>
136+
</values>
137+
<values>
138+
<field>SObjectTypeValue__c</field>
139+
<value xsi:nil="true"/>
140+
</values>
141+
<values>
142+
<field>SubtitleFutureEnglish__c</field>
143+
<value xsi:type="xsd:string">has dialogue meeting</value>
144+
</values>
145+
<values>
146+
<field>SubtitleFutureNorwegian__c</field>
147+
<value xsi:type="xsd:string">har dialogmøte</value>
148+
</values>
149+
<values>
150+
<field>SubtitlePastEnglish__c</field>
151+
<value xsi:type="xsd:string">had dialogue meeting</value>
152+
</values>
153+
<values>
154+
<field>SubtitlePastNorwegian__c</field>
155+
<value xsi:type="xsd:string">hadde dialogmøte</value>
156+
</values>
157+
<values>
158+
<field>SubtitleRelatedUserPrepositionEng__c</field>
159+
<value xsi:type="xsd:string">with</value>
160+
</values>
161+
<values>
162+
<field>SubtitleRelatedUserPrepositionNor__c</field>
163+
<value xsi:type="xsd:string">med</value>
164+
</values>
165+
</CustomMetadata>

0 commit comments

Comments
 (0)