From 9f7e005ab50263667c62eecd2bbd7171407c5bef Mon Sep 17 00:00:00 2001 From: Bryan Sugiarto Date: Wed, 6 Dec 2023 15:31:24 -0700 Subject: [PATCH 1/2] remove DemoWorkPlan directory --- .../default/lwc/demoWorkPlan/demoWorkPlan.css | 4 - .../lwc/demoWorkPlan/demoWorkPlan.html | 29 ------- .../default/lwc/demoWorkPlan/demoWorkPlan.js | 86 ------------------- .../lwc/demoWorkPlan/demoWorkPlan.js-meta.xml | 5 -- 4 files changed, 124 deletions(-) delete mode 100644 ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.css delete mode 100644 ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.html delete mode 100644 ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.js delete mode 100644 ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.js-meta.xml diff --git a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.css b/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.css deleted file mode 100644 index a58925e..0000000 --- a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.css +++ /dev/null @@ -1,4 +0,0 @@ -:host h4, -h3 { - color: #009ad7; -} diff --git a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.html b/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.html deleted file mode 100644 index 71f0868..0000000 --- a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.html +++ /dev/null @@ -1,29 +0,0 @@ - diff --git a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.js b/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.js deleted file mode 100644 index 199ced1..0000000 --- a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.js +++ /dev/null @@ -1,86 +0,0 @@ -import { LightningElement, api, wire, track } from "lwc"; -import { gql, graphql } from "lightning/uiGraphQLApi"; - -export default class DemoWorkPlan extends LightningElement { - @api workPlanId; - - @track _workStepRecords; - - @api - get workPlanRecord() { - return this._workPlanRecord; - } - set workPlanRecord(val) { - if (val && val.errors && val.errors.length > 0) { - // ERROR - } else { - // val.node is like below - // { - // "Id": "0gqRO0000000fw4YAA", - // "ParentRecordId": { - // "value": "0WORO000000CkXF4A0", - // "displayValue": null - // } - // } - this._workPlanRecord = val.node; - } - } - - @wire(graphql, { - query: "$workStepQuery", - variables: "$workStepVariables" - }) - handleWorkStepGql(val) { - if (val && val.errors && val.errors.length > 0) { - // ERROR - } else if ( - val && - val.data && - val.data.uiapi.query.WorkStep && - val.data.uiapi.query.WorkStep.edges.length > 0 - ) { - this._workStepRecords = val.data.uiapi.query.WorkStep.edges; - } - } - - get workStepQuery() { - return gql` - query workstep($parentId: ID = "") { - uiapi { - query { - WorkStep(where: { WorkPlanId: { eq: $parentId } }) { - edges { - node { - Id - WorkPlanId { - value - displayValue - } - Status { - value - displayValue - label - } - Name { - value - displayValue - label - } - Description { - value - displayValue - } - } - } - } - } - } - } - `; - } - get workStepVariables() { - return { - parentId: this.workPlanId - }; - } -} diff --git a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.js-meta.xml b/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.js-meta.xml deleted file mode 100644 index e6df6b9..0000000 --- a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkPlan/demoWorkPlan.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 59.0 - false - From d4ab561e978ebdd9c10283b70c0f3d6f178a0fc7 Mon Sep 17 00:00:00 2001 From: Bryan Sugiarto Date: Wed, 6 Dec 2023 15:31:39 -0700 Subject: [PATCH 2/2] remove demoWorkStepPresentation directory --- .../demoWorkStepPresentation.css | 3 --- .../demoWorkStepPresentation.html | 7 ------ .../demoWorkStepPresentation.js | 23 ------------------- .../demoWorkStepPresentation.js-meta.xml | 5 ---- 4 files changed, 38 deletions(-) delete mode 100644 ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.css delete mode 100644 ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.html delete mode 100644 ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.js delete mode 100644 ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.js-meta.xml diff --git a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.css b/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.css deleted file mode 100644 index 92d692c..0000000 --- a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.css +++ /dev/null @@ -1,3 +0,0 @@ -:host { - display: contents; -} diff --git a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.html b/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.html deleted file mode 100644 index 7618cec..0000000 --- a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.html +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.js b/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.js deleted file mode 100644 index 5b4a164..0000000 --- a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.js +++ /dev/null @@ -1,23 +0,0 @@ -import { LightningElement, api } from "lwc"; - -export default class DemoWorkStepPresentation extends LightningElement { - @api - get workStepRecord() { - return this._workStepRecord; - } - set workStepRecord(val) { - if (val && val.errors && val.errors.length > 0) { - // ERROR - } else { - // val.node is like below - // { - // "Id": "0gqRO0000000fw4YAA", - // "ParentRecordId": { - // "value": "0WORO000000CkXF4A0", - // "displayValue": null - // } - // } - this._workStepRecord = val.node; - } - } -} diff --git a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.js-meta.xml b/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.js-meta.xml deleted file mode 100644 index e6df6b9..0000000 --- a/ServiceDocumentSamples/force-app/main/default/lwc/demoWorkStepPresentation/demoWorkStepPresentation.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 59.0 - false -