diff --git a/README.org b/README.org index ba599c9..79a5a20 100644 --- a/README.org +++ b/README.org @@ -4,21 +4,23 @@ My own local collection of (mostly) working examples of Vlocity LWCs. ** List -*** NEEDCLARIFICATION Step Example - myStepCustomNavigation [[dired:./force-app/main/default/lwc/myStepCustomNavigation/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/myStepCustomNavigation][gh]] +*** NEEDCLARIFICATION Step Example - baseStepNavigationComponent [[dired:./force-app/main/default/lwc/baseStepNavigationComponent/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/baseStepNavigationComponent][gh]] Need to get info on how to get =stepIndex= for the =dispatchOmniEvent= to work -*** NEEDCLARIFICATION Checkbox Example - myCheckboxComponent [[dired:./force-app/main/default/lwc/myCheckboxComponent/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/myCheckboxComponent][gh]] +*** NEEDCLARIFICATION Checkbox Example - baseCheckboxComponent [[dired:./force-app/main/default/lwc/baseCheckboxComponent/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/baseCheckboxComponent][gh]] Not able to get the value of the checkbox -*** NEEDCLARIFICATION File Upload - fileUpload [[dired:force-app/main/default/lwc/fileUpload/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/fileUpload][gh]] +*** NEEDCLARIFICATION Checkbox Example - omniCheckboxComponent [[dired:./force-app/main/default/lwc/omniCheckboxComponent/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/omniCheckboxComponent][gh]] +Not able to get the value of the checkbox +*** NEEDCLARIFICATION File Upload - baseFileInputComponent [[dired:force-app/main/default/lwc/baseFileInputComponent/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/baseFileInputComponent][gh]] Not able to see the files on the input *** NEEDCLARIFICATION CSS Styling Example - textBlockHeader [[dired:~/Projects/vlocity/devr6/force-app/main/default/lwc/textBlock][link]] ap Need to add styles to parent, so this isn't an effective solution /Maybe explore adding just the class (and the rest styled via Newport)/ -*** WAITING Typeahead Example - typeaheadAddressComponent [[dired:./force-app/main/default/lwc/typeaheadAddressComponent/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/typeaheadAddressComponent][gh]] +*** WAITING Typeahead Example - baseTypeaheadComponent [[dired:./force-app/main/default/lwc/baseTypeaheadComponent/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/baseTypeaheadComponent][gh]] Waiting on example from Sidd -*** DONE Accordion Example - myAccordionExample [[dired:./force-app/main/default/lwc/myAccordionComponent/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/myAccordionComponent][gh]] +*** DONE Accordion Example - baseAccordionComponent [[dired:./force-app/main/default/lwc/baseAccordionComponent/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/baseAccordionComponent][gh]] CLOSED: [2020-02-29 Sat 17:59] -*** DONE Text Example - myTextComponent [[dired:./force-app/main/default/lwc/myTextComponent/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/myTextComponent][gh]] +*** DONE Text Example - omniTextComponent [[dired:./force-app/main/default/lwc/omniTextComponent/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/omniTextComponent][gh]] CLOSED: [2020-02-29 Sat 18:03] -*** DONE Vlocity Action Example - myActionComponent [[dired:./force-app/main/default/lwc/myActionComponent/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/myActionComponent][gh]] +*** DONE Vlocity Action Example - baseActionComponent [[dired:./force-app/main/default/lwc/baseActionComponent/][link]] [[https://github.com/leothelocust/vlocity-lwc-examples/tree/master/force-app/main/default/lwc/baseActionComponent][gh]] CLOSED: [2020-02-29 Sat 18:03] diff --git a/force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.html b/force-app/main/default/lwc/baseAccordionComponent/baseAccordionComponent.html similarity index 100% rename from force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.html rename to force-app/main/default/lwc/baseAccordionComponent/baseAccordionComponent.html diff --git a/force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.js b/force-app/main/default/lwc/baseAccordionComponent/baseAccordionComponent.js similarity index 87% rename from force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.js rename to force-app/main/default/lwc/baseAccordionComponent/baseAccordionComponent.js index 2f0bbc2..8c01292 100644 --- a/force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.js +++ b/force-app/main/default/lwc/baseAccordionComponent/baseAccordionComponent.js @@ -1,9 +1,9 @@ import { LightningElement, track } from "lwc"; // import omniscriptCustomLwc from "vlocity_cmt/omniscriptCustomLwc"; -import template from "./myAccordionComponent.html" +import template from "./baseAccordionComponent.html" import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin'; -export default class myAccordionComponent extends OmniscriptBaseMixin(LightningElement) { +export default class BaseAccordionComponent extends OmniscriptBaseMixin(LightningElement) { // Besides copy paste from https://nds.vlocity.tools/?path=/story/ui-components-accordion--default // the only thing to add to HTML is the class "a1", "a2", etc... on @@ -40,7 +40,7 @@ export default class myAccordionComponent extends OmniscriptBaseMixin(LightningE } connectedCallback() { - console.debug('myAccordionComponent', this); + console.debug('BaseAccordionComponent', this); } render() { diff --git a/force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.js-meta.xml b/force-app/main/default/lwc/baseAccordionComponent/baseAccordionComponent.js-meta.xml similarity index 100% rename from force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.js-meta.xml rename to force-app/main/default/lwc/baseAccordionComponent/baseAccordionComponent.js-meta.xml diff --git a/force-app/main/default/lwc/myActionComponent/myActionComponent.html b/force-app/main/default/lwc/baseActionComponent/baseActionComponent.html similarity index 100% rename from force-app/main/default/lwc/myActionComponent/myActionComponent.html rename to force-app/main/default/lwc/baseActionComponent/baseActionComponent.html diff --git a/force-app/main/default/lwc/myActionComponent/myActionComponent.js b/force-app/main/default/lwc/baseActionComponent/baseActionComponent.js similarity index 86% rename from force-app/main/default/lwc/myActionComponent/myActionComponent.js rename to force-app/main/default/lwc/baseActionComponent/baseActionComponent.js index 2509988..e477fd6 100644 --- a/force-app/main/default/lwc/myActionComponent/myActionComponent.js +++ b/force-app/main/default/lwc/baseActionComponent/baseActionComponent.js @@ -1,8 +1,8 @@ -import tmpl from './myActionComponent.html'; +import tmpl from './baseActionComponent.html'; import { LightningElement, track } from 'lwc'; import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin'; -export default class MyActionComponent extends OmniscriptBaseMixin(LightningElement) { +export default class BaseActionComponent extends OmniscriptBaseMixin(LightningElement) { @track url; @track query = JSON.stringify({ datasource: { @@ -18,7 +18,7 @@ export default class MyActionComponent extends OmniscriptBaseMixin(LightningElem }); connectedCallback() { - console.log('MyActionComponent - Connected'); + console.log('BaseActionComponent - Connected'); } render() { @@ -50,4 +50,4 @@ export default class MyActionComponent extends OmniscriptBaseMixin(LightningElem } -} \ No newline at end of file +} diff --git a/force-app/main/default/lwc/customLayout/customLayout.js-meta.xml b/force-app/main/default/lwc/baseActionComponent/baseActionComponent.js-meta.xml similarity index 100% rename from force-app/main/default/lwc/customLayout/customLayout.js-meta.xml rename to force-app/main/default/lwc/baseActionComponent/baseActionComponent.js-meta.xml diff --git a/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.html b/force-app/main/default/lwc/baseCheckboxComponent/baseCheckboxComponent.html similarity index 100% rename from force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.html rename to force-app/main/default/lwc/baseCheckboxComponent/baseCheckboxComponent.html diff --git a/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js b/force-app/main/default/lwc/baseCheckboxComponent/baseCheckboxComponent.js similarity index 59% rename from force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js rename to force-app/main/default/lwc/baseCheckboxComponent/baseCheckboxComponent.js index 9053135..e8ffc3f 100644 --- a/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js +++ b/force-app/main/default/lwc/baseCheckboxComponent/baseCheckboxComponent.js @@ -1,12 +1,12 @@ import { LightningElement, track } from "lwc"; -import template from "./myCheckboxComponent.html" +import template from "./baseCheckboxComponent.html" import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin'; -export default class myCheckboxComponent extends OmniscriptBaseMixin(LightningElement){ +export default class BaseCheckboxComponent extends OmniscriptBaseMixin(LightningElement){ connectedCallback() { // this.layout = this.getAttribute('data-omni-layout'); // returns lightning or newport - console.debug("myCheckboxComponent - connected"); + console.debug("BaseCheckboxComponent - connected"); } render() { diff --git a/force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.js-meta.xml b/force-app/main/default/lwc/baseCheckboxComponent/baseCheckboxComponent.js-meta.xml old mode 100755 new mode 100644 similarity index 100% rename from force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.js-meta.xml rename to force-app/main/default/lwc/baseCheckboxComponent/baseCheckboxComponent.js-meta.xml diff --git a/force-app/main/default/lwc/myCssComponent/myCssComponent.css b/force-app/main/default/lwc/baseCssComponent/baseCssComponent.css similarity index 100% rename from force-app/main/default/lwc/myCssComponent/myCssComponent.css rename to force-app/main/default/lwc/baseCssComponent/baseCssComponent.css diff --git a/force-app/main/default/lwc/myCssComponent/myCssComponent.html b/force-app/main/default/lwc/baseCssComponent/baseCssComponent.html similarity index 100% rename from force-app/main/default/lwc/myCssComponent/myCssComponent.html rename to force-app/main/default/lwc/baseCssComponent/baseCssComponent.html diff --git a/force-app/main/default/lwc/myCssComponent/myCssComponent.js b/force-app/main/default/lwc/baseCssComponent/baseCssComponent.js similarity index 51% rename from force-app/main/default/lwc/myCssComponent/myCssComponent.js rename to force-app/main/default/lwc/baseCssComponent/baseCssComponent.js index 7c42042..8c2508f 100755 --- a/force-app/main/default/lwc/myCssComponent/myCssComponent.js +++ b/force-app/main/default/lwc/baseCssComponent/baseCssComponent.js @@ -1,8 +1,8 @@ import { LightningElement } from 'lwc'; import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin'; -export default class MyCssComponent extends OmniscriptBaseMixin(LightningElement) { +export default class BaseCssComponent extends OmniscriptBaseMixin(LightningElement) { connectedCallback() { - console.log("myCssComponent - Connected"); + console.log("BaseCssComponent - Connected"); } } diff --git a/force-app/main/default/lwc/myCssComponent/myCssComponent.js-meta.xml b/force-app/main/default/lwc/baseCssComponent/baseCssComponent.js-meta.xml similarity index 100% rename from force-app/main/default/lwc/myCssComponent/myCssComponent.js-meta.xml rename to force-app/main/default/lwc/baseCssComponent/baseCssComponent.js-meta.xml diff --git a/force-app/main/default/lwc/myCustomComponent/myCustomComponent.html b/force-app/main/default/lwc/baseCustomComponent/baseCustomComponent.html similarity index 100% rename from force-app/main/default/lwc/myCustomComponent/myCustomComponent.html rename to force-app/main/default/lwc/baseCustomComponent/baseCustomComponent.html diff --git a/force-app/main/default/lwc/myCustomComponent/myCustomComponent.js b/force-app/main/default/lwc/baseCustomComponent/baseCustomComponent.js similarity index 90% rename from force-app/main/default/lwc/myCustomComponent/myCustomComponent.js rename to force-app/main/default/lwc/baseCustomComponent/baseCustomComponent.js index d2f3ceb..d8a8b51 100644 --- a/force-app/main/default/lwc/myCustomComponent/myCustomComponent.js +++ b/force-app/main/default/lwc/baseCustomComponent/baseCustomComponent.js @@ -1,13 +1,13 @@ import { LightningElement, track } from 'lwc'; import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin'; -export default class MyCustomComponent extends OmniscriptBaseMixin(LightningElement) { +export default class BaseCustomComponent extends OmniscriptBaseMixin(LightningElement) { @track layout; @track theme; @track parentClass; connectedCallback() { - console.log("MyCustomComponent - Connected"); + console.log("BaseCustomComponent - Connected"); this.layout = this.getAttribute('data-omni-layout'); // returns lightning or newport this.theme = this.layout === 'lightning' ? 'slds' : 'nds'; // we can now use theme={theme} in html diff --git a/force-app/main/default/lwc/myCustomComponent/myCustomComponent.js-meta.xml b/force-app/main/default/lwc/baseCustomComponent/baseCustomComponent.js-meta.xml similarity index 100% rename from force-app/main/default/lwc/myCustomComponent/myCustomComponent.js-meta.xml rename to force-app/main/default/lwc/baseCustomComponent/baseCustomComponent.js-meta.xml diff --git a/force-app/main/default/lwc/customLayout/customLayout.html b/force-app/main/default/lwc/baseCustomLayoutComponent/baseCustomLayoutComponent.html similarity index 100% rename from force-app/main/default/lwc/customLayout/customLayout.html rename to force-app/main/default/lwc/baseCustomLayoutComponent/baseCustomLayoutComponent.html diff --git a/force-app/main/default/lwc/customLayout/customLayout.js b/force-app/main/default/lwc/baseCustomLayoutComponent/baseCustomLayoutComponent.js similarity index 86% rename from force-app/main/default/lwc/customLayout/customLayout.js rename to force-app/main/default/lwc/baseCustomLayoutComponent/baseCustomLayoutComponent.js index 2063b76..2507d10 100644 --- a/force-app/main/default/lwc/customLayout/customLayout.js +++ b/force-app/main/default/lwc/baseCustomLayoutComponent/baseCustomLayoutComponent.js @@ -1,7 +1,7 @@ import { LightningElement } from 'lwc'; import { BaseLayout } from "vlocity_cmt/baseLayout"; -export default class CustomLayout extends BaseLayout(LightningElement) { +export default class BaseCustomLayoutComponent extends BaseLayout(LightningElement) { // @api recordId; // @api theme; // @api parent; @@ -16,4 +16,4 @@ export default class CustomLayout extends BaseLayout(LightningElement) { console.log("This is records", JSON.parse(JSON.stringify(this.records))); console.log("This is cards", JSON.parse(JSON.stringify(this.cards))); } -} \ No newline at end of file +} diff --git a/force-app/main/default/lwc/myActionComponent/myActionComponent.js-meta.xml b/force-app/main/default/lwc/baseCustomLayoutComponent/baseCustomLayoutComponent.js-meta.xml similarity index 100% rename from force-app/main/default/lwc/myActionComponent/myActionComponent.js-meta.xml rename to force-app/main/default/lwc/baseCustomLayoutComponent/baseCustomLayoutComponent.js-meta.xml diff --git a/force-app/main/default/lwc/fileUpload/fileUpload.html b/force-app/main/default/lwc/baseFileInputComponent/baseFileInputComponent.html similarity index 100% rename from force-app/main/default/lwc/fileUpload/fileUpload.html rename to force-app/main/default/lwc/baseFileInputComponent/baseFileInputComponent.html diff --git a/force-app/main/default/lwc/fileUpload/fileUpload.js b/force-app/main/default/lwc/baseFileInputComponent/baseFileInputComponent.js similarity index 72% rename from force-app/main/default/lwc/fileUpload/fileUpload.js rename to force-app/main/default/lwc/baseFileInputComponent/baseFileInputComponent.js index 961dc0d..62935e4 100644 --- a/force-app/main/default/lwc/fileUpload/fileUpload.js +++ b/force-app/main/default/lwc/baseFileInputComponent/baseFileInputComponent.js @@ -1,9 +1,9 @@ import { LightningElement, api } from "lwc"; -import Input from "vlocity_cmt/input"; -import template from "./fileUpload.html" +import input from "vlocity_cmt/input"; +import template from "./baseFileInputComponent.html" import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin'; -export default class fileUpload extends OmniscriptBaseMixin(Input){ +export default class BaseFileInputComponent extends OmniscriptBaseMixin(input){ get value() { return this._value; @@ -23,7 +23,7 @@ export default class fileUpload extends OmniscriptBaseMixin(Input){ } connectedCallback() { - console.debug("fileUpload - connected"); + console.debug("BaseFileInputComponent - connected"); } handleInput(evt) { diff --git a/force-app/main/default/lwc/fileUpload/fileUpload.js-meta.xml b/force-app/main/default/lwc/baseFileInputComponent/baseFileInputComponent.js-meta.xml similarity index 100% rename from force-app/main/default/lwc/fileUpload/fileUpload.js-meta.xml rename to force-app/main/default/lwc/baseFileInputComponent/baseFileInputComponent.js-meta.xml diff --git a/force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.html b/force-app/main/default/lwc/baseStepNavigationComponent/baseStepNavigationComponent.html similarity index 100% rename from force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.html rename to force-app/main/default/lwc/baseStepNavigationComponent/baseStepNavigationComponent.html diff --git a/force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.js b/force-app/main/default/lwc/baseStepNavigationComponent/baseStepNavigationComponent.js similarity index 72% rename from force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.js rename to force-app/main/default/lwc/baseStepNavigationComponent/baseStepNavigationComponent.js index a2841e0..3da1d3b 100644 --- a/force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.js +++ b/force-app/main/default/lwc/baseStepNavigationComponent/baseStepNavigationComponent.js @@ -1,13 +1,13 @@ import { LightningElement } from 'lwc'; -import template from './myStepCustomNavigation.html' +import template from './baseStepNavigationComponent.html' import omniscriptStep from 'vlocity_cmt/omniscriptStep'; import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin'; import { dispatchOmniEvent } from 'vlocity_cmt/omniscriptUtils'; -export default class myStepCustomNavigation extends OmniscriptBaseMixin(omniscriptStep) { +export default class BaseStepNavigationComponent extends OmniscriptBaseMixin(omniscriptStep) { connectedCallback() { - console.debug("myStepCustomNavigation - connected"); + console.debug("BaseStepNavigationComponent - connected"); } gotoNext() { diff --git a/force-app/main/default/lwc/baseStepNavigationComponent/baseStepNavigationComponent.js-meta.xml b/force-app/main/default/lwc/baseStepNavigationComponent/baseStepNavigationComponent.js-meta.xml new file mode 100755 index 0000000..7112802 --- /dev/null +++ b/force-app/main/default/lwc/baseStepNavigationComponent/baseStepNavigationComponent.js-meta.xml @@ -0,0 +1,6 @@ + + + 46.0 + true + vlocity_cmt + diff --git a/force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.html b/force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.html new file mode 100644 index 0000000..256fb0e --- /dev/null +++ b/force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.html @@ -0,0 +1,6 @@ + diff --git a/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js b/force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.js similarity index 61% rename from force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js rename to force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.js index 5fef1b1..f512a25 100644 --- a/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js +++ b/force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.js @@ -1,9 +1,9 @@ import { LightningElement } from "lwc"; -import Typeahead from "vlocity_cmt/typeahead"; -import template from "./typeaheadAddressComponent.html" +import typeahead from "vlocity_cmt/typeahead"; +import template from "./baseTypeaheadComponent.html" import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin'; -export default class typeaheadAddressComponent extends OmniscriptBaseMixin(Typeahead){ +export default class BaseTypeaheadComponent extends OmniscriptBaseMixin(typeahead){ // your properties and methods here connectedCallback() { @@ -11,8 +11,7 @@ export default class typeaheadAddressComponent extends OmniscriptBaseMixin(Typea // this.omniUpdateDataJson({'key':'value'}); } - render() - { + render() { return template; } } diff --git a/force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.js-meta.xml b/force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.js-meta.xml new file mode 100644 index 0000000..7112802 --- /dev/null +++ b/force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.js-meta.xml @@ -0,0 +1,6 @@ + + + 46.0 + true + vlocity_cmt + diff --git a/force-app/main/default/lwc/checkboxComponent/checkboxComponent.js-meta.xml b/force-app/main/default/lwc/checkboxComponent/checkboxComponent.js-meta.xml deleted file mode 100644 index 76fb8c7..0000000 --- a/force-app/main/default/lwc/checkboxComponent/checkboxComponent.js-meta.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - 46.0 - true - vlocity_cmt - checkboxComponent - diff --git a/force-app/main/default/lwc/jsconfig.json b/force-app/main/default/lwc/jsconfig.json index 92d7d69..51f51cf 100644 --- a/force-app/main/default/lwc/jsconfig.json +++ b/force-app/main/default/lwc/jsconfig.json @@ -3,47 +3,44 @@ "experimentalDecorators": true, "baseUrl": ".", "paths": { - "c/customLayout": [ - "customLayout/customLayout.js" + "c/baseAccordionComponent": [ + "baseAccordionComponent/baseAccordionComponent.js" ], - "c/helloWorld": [ - "helloWorld/helloWorld.js" + "c/baseActionComponent": [ + "baseActionComponent/baseActionComponent.js" ], - "c/myAccordionComponent": [ - "myAccordionComponent/myAccordionComponent.js" + "c/baseCheckboxComponent": [ + "baseCheckboxComponent/baseCheckboxComponent.js" ], - "c/myActionComponent": [ - "myActionComponent/myActionComponent.js" + "c/baseCssComponent": [ + "baseCssComponent/baseCssComponent.js" ], - "c/myCustomComponent": [ - "myCustomComponent/myCustomComponent.js" + "c/baseCustomComponent": [ + "baseCustomComponent/baseCustomComponent.js" ], - "c/myOmniComponentInBaseClass": [ - "myOmniComponentInBaseClass/myOmniComponentInBaseClass.js" + "c/baseCustomLayoutComponent": [ + "baseCustomLayoutComponent/baseCustomLayoutComponent.js" ], - "c/myTextComponent": [ - "myTextComponent/myTextComponent.js" + "c/baseFileInputComponent": [ + "baseFileInputComponent/baseFileInputComponent.js" ], - "c/myCardComponent": [ - "myCardComponent/myCardComponent.js" + "c/baseStepNavigationComponent": [ + "baseStepNavigationComponent/baseStepNavigationComponent.js" ], - "c/myCssComponent": [ - "myCssComponent/myCssComponent.js" + "c/baseTypeaheadComponent": [ + "baseTypeaheadComponent/baseTypeaheadComponent.js" ], - "c/myCustomComponentWithNavButtons": [ - "myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js" + "c/lightningCardComponent": [ + "lightningCardComponent/lightningCardComponent.js" ], - "c/myCheckboxComponent": [ - "myCheckboxComponent/myCheckboxComponent.js" + "c/lightningHelloWorldComponent": [ + "lightningHelloWorldComponent/lightningHelloWorldComponent.js" ], - "c/checkboxComponent": [ - "checkboxComponent/checkboxComponent.js" + "c/omniCheckboxComponent": [ + "omniCheckboxComponent/omniCheckboxComponent.js" ], - "c/fileUpload": [ - "fileUpload/fileUpload.js" - ], - "c/typeaheadAddressComponent": [ - "typeaheadAddressComponent/typeaheadAddressComponent.js" + "c/omniTextComponent": [ + "omniTextComponent/omniTextComponent.js" ] } }, diff --git a/force-app/main/default/lwc/myCardComponent/myCardComponent.html b/force-app/main/default/lwc/lightningCardComponent/lightningCardComponent.html similarity index 100% rename from force-app/main/default/lwc/myCardComponent/myCardComponent.html rename to force-app/main/default/lwc/lightningCardComponent/lightningCardComponent.html diff --git a/force-app/main/default/lwc/myCardComponent/myCardComponent.js b/force-app/main/default/lwc/lightningCardComponent/lightningCardComponent.js similarity index 57% rename from force-app/main/default/lwc/myCardComponent/myCardComponent.js rename to force-app/main/default/lwc/lightningCardComponent/lightningCardComponent.js index 4d41f9f..41b1113 100644 --- a/force-app/main/default/lwc/myCardComponent/myCardComponent.js +++ b/force-app/main/default/lwc/lightningCardComponent/lightningCardComponent.js @@ -1,11 +1,11 @@ import { LightningElement, api } from 'lwc'; -export default class MyCardComponent extends LightningElement { +export default class LightningCardComponent extends LightningElement { @api title = 'Default Title'; @api body = 'Default Body'; @api link = 'Default Link'; connectedCallback() { - console.log('MyCardComponent - connected'); + console.log('LightningCardComponent - connected'); } -} \ No newline at end of file +} diff --git a/force-app/main/default/lwc/myCardComponent/myCardComponent.js-meta.xml b/force-app/main/default/lwc/lightningCardComponent/lightningCardComponent.js-meta.xml similarity index 100% rename from force-app/main/default/lwc/myCardComponent/myCardComponent.js-meta.xml rename to force-app/main/default/lwc/lightningCardComponent/lightningCardComponent.js-meta.xml diff --git a/force-app/main/default/lwc/helloWorld/helloWorld.html b/force-app/main/default/lwc/lightningHelloWorldComponent/lightningHelloWorldComponent.html similarity index 100% rename from force-app/main/default/lwc/helloWorld/helloWorld.html rename to force-app/main/default/lwc/lightningHelloWorldComponent/lightningHelloWorldComponent.html diff --git a/force-app/main/default/lwc/helloWorld/helloWorld.js b/force-app/main/default/lwc/lightningHelloWorldComponent/lightningHelloWorldComponent.js similarity index 66% rename from force-app/main/default/lwc/helloWorld/helloWorld.js rename to force-app/main/default/lwc/lightningHelloWorldComponent/lightningHelloWorldComponent.js index b51c053..3ea592f 100755 --- a/force-app/main/default/lwc/helloWorld/helloWorld.js +++ b/force-app/main/default/lwc/lightningHelloWorldComponent/lightningHelloWorldComponent.js @@ -1,8 +1,8 @@ import { LightningElement, track } from 'lwc'; -export default class HelloWorld extends LightningElement { +export default class LightningHelloWorldComponent extends LightningElement { @track greeting = 'World'; changeHandler (event) { this.greeting = event.target.value; } -} \ No newline at end of file +} diff --git a/force-app/main/default/lwc/helloWorld/helloWorld.js-meta.xml b/force-app/main/default/lwc/lightningHelloWorldComponent/lightningHelloWorldComponent.js-meta.xml similarity index 100% rename from force-app/main/default/lwc/helloWorld/helloWorld.js-meta.xml rename to force-app/main/default/lwc/lightningHelloWorldComponent/lightningHelloWorldComponent.js-meta.xml diff --git a/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js-meta.xml b/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js-meta.xml deleted file mode 100644 index 8f332c3..0000000 --- a/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js-meta.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - 46.0 - true - myCheckboxComponent - vlocity_cmt - diff --git a/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.css b/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.css deleted file mode 100644 index 9aae251..0000000 --- a/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.css +++ /dev/null @@ -1,3 +0,0 @@ -.nds-button.nds-button_secondary { - background-color: red; -} diff --git a/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.html b/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.html deleted file mode 100644 index 837729f..0000000 --- a/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.html +++ /dev/null @@ -1,23 +0,0 @@ - diff --git a/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js b/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js deleted file mode 100644 index 7027138..0000000 --- a/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js +++ /dev/null @@ -1,22 +0,0 @@ -import { LightningElement } from "lwc"; -import template from "./myCustomComponentWithNavButtons.html" -import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin'; -import { dispatchOmniEvent } from 'vlocity_cmt/omniscriptUtils'; - -export default class myCustomComponentWithNavButtons extends OmniscriptBaseMixin(LightningElement) { - connectedCallback() { - console.debug("myCustomComponentWithNavButtons - connected"); - } - - gotoNext() { - dispatchOmniEvent(this, { moveToStep: 'next' }, 'omniautoadvance'); - } - - gotoPrev() { - dispatchOmniEvent(this, { moveToStep: this.stepIndex - 1 }, 'omniautoadvance'); - } - - render() { - return template; - } -} diff --git a/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js-meta.xml b/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js-meta.xml deleted file mode 100644 index 01108b4..0000000 --- a/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js-meta.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - 45.0 - true - vlocity_cmt - diff --git a/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.html b/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.html deleted file mode 100644 index 2d41284..0000000 --- a/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.html +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.js b/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.js deleted file mode 100644 index 2772b18..0000000 --- a/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.js +++ /dev/null @@ -1,17 +0,0 @@ -import template from './myOmniComponentInBaseClass.html'; -import { LightningElement } from 'lwc'; -import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin'; - -export default class MyOmniComponentInBaseClass extends OmniscriptBaseMixin(LightningElement) { - connectedCallback() { - console.log("myOmniComponentInBaseClass - Connected"); - } - - handleBlur(evt) { - this.omniUpdateDataJson(evt.target.value); - } - - render() { - return template; - } -} \ No newline at end of file diff --git a/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.js-meta.xml b/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.js-meta.xml deleted file mode 100755 index e8784b8..0000000 --- a/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.js-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 47.0 - false - diff --git a/force-app/main/default/lwc/myTextComponent/myTextComponent.js b/force-app/main/default/lwc/myTextComponent/myTextComponent.js deleted file mode 100644 index 7a6ebf5..0000000 --- a/force-app/main/default/lwc/myTextComponent/myTextComponent.js +++ /dev/null @@ -1,22 +0,0 @@ -import OmniscriptText from 'vlocity_cmt/omniscriptText'; -import template from "./myTextComponent.html"; - -export default class MyTextComponent extends OmniscriptTbext { - connectedCallback() { - console.log("MyTextComponent - Connected"); - try { - console.log("MyTextComponent - this:", this); - console.log("MyTextComponent - this.scriptHeaderDef:", JSON.parse(JSON.stringify(this.scriptHeaderDef))); - console.log("MyTextComponent - this.resume:", JSON.parse(JSON.stringify(this.resume))); - console.log("MyTextComponent - this.seedJson:", JSON.parse(JSON.stringify(this.seedJson))); - console.log("MyTextComponent - this.jsonDef:", JSON.parse(JSON.stringify(this.jsonDef))); - console.log("MyTextComponent - this.jsonData:", JSON.parse(JSON.stringify(this.jsonData))); - } catch (e) { - console.debug("Error Parsing: ", e); - } - } - - render() { - return template; - } -} diff --git a/force-app/main/default/lwc/checkboxComponent/checkboxComponent.html b/force-app/main/default/lwc/omniCheckboxComponent/omniCheckboxComponent.html similarity index 100% rename from force-app/main/default/lwc/checkboxComponent/checkboxComponent.html rename to force-app/main/default/lwc/omniCheckboxComponent/omniCheckboxComponent.html diff --git a/force-app/main/default/lwc/checkboxComponent/checkboxComponent.js b/force-app/main/default/lwc/omniCheckboxComponent/omniCheckboxComponent.js similarity index 67% rename from force-app/main/default/lwc/checkboxComponent/checkboxComponent.js rename to force-app/main/default/lwc/omniCheckboxComponent/omniCheckboxComponent.js index d931dc7..d761814 100644 --- a/force-app/main/default/lwc/checkboxComponent/checkboxComponent.js +++ b/force-app/main/default/lwc/omniCheckboxComponent/omniCheckboxComponent.js @@ -1,10 +1,10 @@ import { LightningElement } from "lwc"; import OmniscriptCheckbox from "vlocity_cmt/omniscriptCheckbox"; -export default class checkboxComponent extends OmniscriptCheckbox { +export default class OmniCheckboxComponent extends OmniscriptCheckbox { connectedCallback() { - console.debug("checkboxComponent - connected"); + console.debug("OmniCheckboxComponent - connected"); this.omniApplyCallResp({'checkbox':false}); } diff --git a/force-app/main/default/lwc/omniCheckboxComponent/omniCheckboxComponent.js-meta.xml b/force-app/main/default/lwc/omniCheckboxComponent/omniCheckboxComponent.js-meta.xml new file mode 100644 index 0000000..7112802 --- /dev/null +++ b/force-app/main/default/lwc/omniCheckboxComponent/omniCheckboxComponent.js-meta.xml @@ -0,0 +1,6 @@ + + + 46.0 + true + vlocity_cmt + diff --git a/force-app/main/default/lwc/myTextComponent/myTextComponent.html b/force-app/main/default/lwc/omniTextComponent/omniTextComponent.html similarity index 100% rename from force-app/main/default/lwc/myTextComponent/myTextComponent.html rename to force-app/main/default/lwc/omniTextComponent/omniTextComponent.html diff --git a/force-app/main/default/lwc/omniTextComponent/omniTextComponent.js b/force-app/main/default/lwc/omniTextComponent/omniTextComponent.js new file mode 100644 index 0000000..7d3aa12 --- /dev/null +++ b/force-app/main/default/lwc/omniTextComponent/omniTextComponent.js @@ -0,0 +1,22 @@ +import OmniscriptText from 'vlocity_cmt/omniscriptText'; +import template from "./omniTextComponent.html"; + +export default class OmniTextComponent extends OmniscriptTbext { + connectedCallback() { + console.log("OmniTextComponent - Connected"); + try { + console.log("OmniTextComponent - this:", this); + console.log("OmniTextComponent - this.scriptHeaderDef:", JSON.parse(JSON.stringify(this.scriptHeaderDef))); + console.log("OmniTextComponent - this.resume:", JSON.parse(JSON.stringify(this.resume))); + console.log("OmniTextComponent - this.seedJson:", JSON.parse(JSON.stringify(this.seedJson))); + console.log("OmniTextComponent - this.jsonDef:", JSON.parse(JSON.stringify(this.jsonDef))); + console.log("OmniTextComponent - this.jsonData:", JSON.parse(JSON.stringify(this.jsonData))); + } catch (e) { + console.debug("Error Parsing: ", e); + } + } + + render() { + return template; + } +} diff --git a/force-app/main/default/lwc/myTextComponent/myTextComponent.js-meta.xml b/force-app/main/default/lwc/omniTextComponent/omniTextComponent.js-meta.xml similarity index 100% rename from force-app/main/default/lwc/myTextComponent/myTextComponent.js-meta.xml rename to force-app/main/default/lwc/omniTextComponent/omniTextComponent.js-meta.xml diff --git a/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.html b/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.html deleted file mode 100644 index fac0254..0000000 --- a/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.html +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js-meta.xml b/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js-meta.xml deleted file mode 100644 index dbc5abd..0000000 --- a/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js-meta.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - 46.0 - true - typeaheadAddressComponent - - lightning__RecordPage - lightning__AppPage - lightning__HomePage - -