Browse Source

Updating naming convention [base/omni/lightning|type|Component]

master
Levi Olson 4 years ago
parent
commit
5bec020592
54 changed files with 115 additions and 209 deletions
  1. +9
    -7
      README.org
  2. +0
    -0
      force-app/main/default/lwc/baseAccordionComponent/baseAccordionComponent.html
  3. +3
    -3
      force-app/main/default/lwc/baseAccordionComponent/baseAccordionComponent.js
  4. +0
    -0
      force-app/main/default/lwc/baseAccordionComponent/baseAccordionComponent.js-meta.xml
  5. +0
    -0
      force-app/main/default/lwc/baseActionComponent/baseActionComponent.html
  6. +4
    -4
      force-app/main/default/lwc/baseActionComponent/baseActionComponent.js
  7. +0
    -0
      force-app/main/default/lwc/baseActionComponent/baseActionComponent.js-meta.xml
  8. +0
    -0
      force-app/main/default/lwc/baseCheckboxComponent/baseCheckboxComponent.html
  9. +3
    -3
      force-app/main/default/lwc/baseCheckboxComponent/baseCheckboxComponent.js
  10. +0
    -0
      force-app/main/default/lwc/baseCheckboxComponent/baseCheckboxComponent.js-meta.xml
  11. +0
    -0
      force-app/main/default/lwc/baseCssComponent/baseCssComponent.css
  12. +0
    -0
      force-app/main/default/lwc/baseCssComponent/baseCssComponent.html
  13. +2
    -2
      force-app/main/default/lwc/baseCssComponent/baseCssComponent.js
  14. +0
    -0
      force-app/main/default/lwc/baseCssComponent/baseCssComponent.js-meta.xml
  15. +0
    -0
      force-app/main/default/lwc/baseCustomComponent/baseCustomComponent.html
  16. +2
    -2
      force-app/main/default/lwc/baseCustomComponent/baseCustomComponent.js
  17. +0
    -0
      force-app/main/default/lwc/baseCustomComponent/baseCustomComponent.js-meta.xml
  18. +0
    -0
      force-app/main/default/lwc/baseCustomLayoutComponent/baseCustomLayoutComponent.html
  19. +2
    -2
      force-app/main/default/lwc/baseCustomLayoutComponent/baseCustomLayoutComponent.js
  20. +0
    -0
      force-app/main/default/lwc/baseCustomLayoutComponent/baseCustomLayoutComponent.js-meta.xml
  21. +0
    -0
      force-app/main/default/lwc/baseFileInputComponent/baseFileInputComponent.html
  22. +4
    -4
      force-app/main/default/lwc/baseFileInputComponent/baseFileInputComponent.js
  23. +0
    -0
      force-app/main/default/lwc/baseFileInputComponent/baseFileInputComponent.js-meta.xml
  24. +0
    -0
      force-app/main/default/lwc/baseStepNavigationComponent/baseStepNavigationComponent.html
  25. +3
    -3
      force-app/main/default/lwc/baseStepNavigationComponent/baseStepNavigationComponent.js
  26. +6
    -0
      force-app/main/default/lwc/baseStepNavigationComponent/baseStepNavigationComponent.js-meta.xml
  27. +6
    -0
      force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.html
  28. +4
    -5
      force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.js
  29. +6
    -0
      force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.js-meta.xml
  30. +0
    -7
      force-app/main/default/lwc/checkboxComponent/checkboxComponent.js-meta.xml
  31. +26
    -29
      force-app/main/default/lwc/jsconfig.json
  32. +0
    -0
      force-app/main/default/lwc/lightningCardComponent/lightningCardComponent.html
  33. +3
    -3
      force-app/main/default/lwc/lightningCardComponent/lightningCardComponent.js
  34. +0
    -0
      force-app/main/default/lwc/lightningCardComponent/lightningCardComponent.js-meta.xml
  35. +0
    -0
      force-app/main/default/lwc/lightningHelloWorldComponent/lightningHelloWorldComponent.html
  36. +2
    -2
      force-app/main/default/lwc/lightningHelloWorldComponent/lightningHelloWorldComponent.js
  37. +0
    -0
      force-app/main/default/lwc/lightningHelloWorldComponent/lightningHelloWorldComponent.js-meta.xml
  38. +0
    -7
      force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js-meta.xml
  39. +0
    -3
      force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.css
  40. +0
    -23
      force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.html
  41. +0
    -22
      force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js
  42. +0
    -6
      force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js-meta.xml
  43. +0
    -9
      force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.html
  44. +0
    -17
      force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.js
  45. +0
    -5
      force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.js-meta.xml
  46. +0
    -22
      force-app/main/default/lwc/myTextComponent/myTextComponent.js
  47. +0
    -0
      force-app/main/default/lwc/omniCheckboxComponent/omniCheckboxComponent.html
  48. +2
    -2
      force-app/main/default/lwc/omniCheckboxComponent/omniCheckboxComponent.js
  49. +6
    -0
      force-app/main/default/lwc/omniCheckboxComponent/omniCheckboxComponent.js-meta.xml
  50. +0
    -0
      force-app/main/default/lwc/omniTextComponent/omniTextComponent.html
  51. +22
    -0
      force-app/main/default/lwc/omniTextComponent/omniTextComponent.js
  52. +0
    -0
      force-app/main/default/lwc/omniTextComponent/omniTextComponent.js-meta.xml
  53. +0
    -6
      force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.html
  54. +0
    -11
      force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js-meta.xml

+ 9
- 7
README.org View File

@ -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]

force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.html → force-app/main/default/lwc/baseAccordionComponent/baseAccordionComponent.html View File


force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.js → force-app/main/default/lwc/baseAccordionComponent/baseAccordionComponent.js View File

@ -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() {

force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.js-meta.xml → force-app/main/default/lwc/baseAccordionComponent/baseAccordionComponent.js-meta.xml View File


force-app/main/default/lwc/myActionComponent/myActionComponent.html → force-app/main/default/lwc/baseActionComponent/baseActionComponent.html View File


force-app/main/default/lwc/myActionComponent/myActionComponent.js → force-app/main/default/lwc/baseActionComponent/baseActionComponent.js View File

@ -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
}
}
}

force-app/main/default/lwc/customLayout/customLayout.js-meta.xml → force-app/main/default/lwc/baseActionComponent/baseActionComponent.js-meta.xml View File


force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.html → force-app/main/default/lwc/baseCheckboxComponent/baseCheckboxComponent.html View File


force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js → force-app/main/default/lwc/baseCheckboxComponent/baseCheckboxComponent.js View File

@ -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() {

force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.js-meta.xml → force-app/main/default/lwc/baseCheckboxComponent/baseCheckboxComponent.js-meta.xml View File


force-app/main/default/lwc/myCssComponent/myCssComponent.css → force-app/main/default/lwc/baseCssComponent/baseCssComponent.css View File


force-app/main/default/lwc/myCssComponent/myCssComponent.html → force-app/main/default/lwc/baseCssComponent/baseCssComponent.html View File


force-app/main/default/lwc/myCssComponent/myCssComponent.js → force-app/main/default/lwc/baseCssComponent/baseCssComponent.js View File

@ -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");
}
}

force-app/main/default/lwc/myCssComponent/myCssComponent.js-meta.xml → force-app/main/default/lwc/baseCssComponent/baseCssComponent.js-meta.xml View File


force-app/main/default/lwc/myCustomComponent/myCustomComponent.html → force-app/main/default/lwc/baseCustomComponent/baseCustomComponent.html View File


force-app/main/default/lwc/myCustomComponent/myCustomComponent.js → force-app/main/default/lwc/baseCustomComponent/baseCustomComponent.js View File

@ -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

force-app/main/default/lwc/myCustomComponent/myCustomComponent.js-meta.xml → force-app/main/default/lwc/baseCustomComponent/baseCustomComponent.js-meta.xml View File


force-app/main/default/lwc/customLayout/customLayout.html → force-app/main/default/lwc/baseCustomLayoutComponent/baseCustomLayoutComponent.html View File


force-app/main/default/lwc/customLayout/customLayout.js → force-app/main/default/lwc/baseCustomLayoutComponent/baseCustomLayoutComponent.js View File

@ -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)));
}
}
}

force-app/main/default/lwc/myActionComponent/myActionComponent.js-meta.xml → force-app/main/default/lwc/baseCustomLayoutComponent/baseCustomLayoutComponent.js-meta.xml View File


force-app/main/default/lwc/fileUpload/fileUpload.html → force-app/main/default/lwc/baseFileInputComponent/baseFileInputComponent.html View File


force-app/main/default/lwc/fileUpload/fileUpload.js → force-app/main/default/lwc/baseFileInputComponent/baseFileInputComponent.js View File

@ -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) {

force-app/main/default/lwc/fileUpload/fileUpload.js-meta.xml → force-app/main/default/lwc/baseFileInputComponent/baseFileInputComponent.js-meta.xml View File


force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.html → force-app/main/default/lwc/baseStepNavigationComponent/baseStepNavigationComponent.html View File


force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.js → force-app/main/default/lwc/baseStepNavigationComponent/baseStepNavigationComponent.js View File

@ -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() {

+ 6
- 0
force-app/main/default/lwc/baseStepNavigationComponent/baseStepNavigationComponent.js-meta.xml View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>46.0</apiVersion>
<isExposed>true</isExposed>
<runtimeNamespace>vlocity_cmt</runtimeNamespace>
</LightningComponentBundle>

+ 6
- 0
force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.html View File

@ -0,0 +1,6 @@
<template>
<!-- <script src="https://maps.googleapis.com/maps/api/js?client=gme-verizoncommunications&channel=VPSCX&libraries=places&callback=initAutocomplete" async defer></script> -->
</template>

force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js → force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.js View File

@ -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;
}
}

+ 6
- 0
force-app/main/default/lwc/baseTypeaheadComponent/baseTypeaheadComponent.js-meta.xml View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>46.0</apiVersion>
<isExposed>true</isExposed>
<runtimeNamespace>vlocity_cmt</runtimeNamespace>
</LightningComponentBundle>

+ 0
- 7
force-app/main/default/lwc/checkboxComponent/checkboxComponent.js-meta.xml View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>46.0</apiVersion>
<isExposed>true</isExposed>
<runtimeNamespace>vlocity_cmt</runtimeNamespace>
<masterLabel>checkboxComponent</masterLabel>
</LightningComponentBundle>

+ 26
- 29
force-app/main/default/lwc/jsconfig.json View File

@ -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"
]
}
},

force-app/main/default/lwc/myCardComponent/myCardComponent.html → force-app/main/default/lwc/lightningCardComponent/lightningCardComponent.html View File


force-app/main/default/lwc/myCardComponent/myCardComponent.js → force-app/main/default/lwc/lightningCardComponent/lightningCardComponent.js View File

@ -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');
}
}
}

force-app/main/default/lwc/myCardComponent/myCardComponent.js-meta.xml → force-app/main/default/lwc/lightningCardComponent/lightningCardComponent.js-meta.xml View File


force-app/main/default/lwc/helloWorld/helloWorld.html → force-app/main/default/lwc/lightningHelloWorldComponent/lightningHelloWorldComponent.html View File


force-app/main/default/lwc/helloWorld/helloWorld.js → force-app/main/default/lwc/lightningHelloWorldComponent/lightningHelloWorldComponent.js View File

@ -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;
}
}
}

force-app/main/default/lwc/helloWorld/helloWorld.js-meta.xml → force-app/main/default/lwc/lightningHelloWorldComponent/lightningHelloWorldComponent.js-meta.xml View File


+ 0
- 7
force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js-meta.xml View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>46.0</apiVersion>
<isExposed>true</isExposed>
<masterLabel>myCheckboxComponent</masterLabel>
<runtimeNamespace>vlocity_cmt</runtimeNamespace>
</LightningComponentBundle>

+ 0
- 3
force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.css View File

@ -1,3 +0,0 @@
.nds-button.nds-button_secondary {
background-color: red;
}

+ 0
- 23
force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.html View File

@ -1,23 +0,0 @@
<template>
<div class="nds-box">
<p>A block of content</p>
</div>
<div class="nds-grid nds-grid_align-spread">
<div class="nds-col">
<vlocity_cmt-button
theme="nds"
onclick={gotoPrev}
variant="primary"
label="Previous">
</vlocity_cmt-button>
</div>
<div class="nds-col">
<vlocity_cmt-button
theme="nds"
onclick={gotoNext}
variant="secondary"
label="Next">
</vlocity_cmt-button>
</div>
</div>
</template>

+ 0
- 22
force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js View File

@ -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;
}
}

+ 0
- 6
force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js-meta.xml View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>45.0</apiVersion>
<isExposed>true</isExposed>
<runtimeNamespace>vlocity_cmt</runtimeNamespace>
</LightningComponentBundle>

+ 0
- 9
force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.html View File

@ -1,9 +0,0 @@
<template>
<vlocity_cmt-omniscript-text
json-def={omniJsonDef}
data-omni-key={omniJsonDef.name}
json-data={omniJsonData}
layout={layout}
resume={resume}>
</vlocity_cmt-omniscript-text>
</template>

+ 0
- 17
force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.js View File

@ -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;
}
}

+ 0
- 5
force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.js-meta.xml View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>47.0</apiVersion>
<isExposed>false</isExposed>
</LightningComponentBundle>

+ 0
- 22
force-app/main/default/lwc/myTextComponent/myTextComponent.js View File

@ -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;
}
}

force-app/main/default/lwc/checkboxComponent/checkboxComponent.html → force-app/main/default/lwc/omniCheckboxComponent/omniCheckboxComponent.html View File


force-app/main/default/lwc/checkboxComponent/checkboxComponent.js → force-app/main/default/lwc/omniCheckboxComponent/omniCheckboxComponent.js View File

@ -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});
}

+ 6
- 0
force-app/main/default/lwc/omniCheckboxComponent/omniCheckboxComponent.js-meta.xml View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>46.0</apiVersion>
<isExposed>true</isExposed>
<runtimeNamespace>vlocity_cmt</runtimeNamespace>
</LightningComponentBundle>

force-app/main/default/lwc/myTextComponent/myTextComponent.html → force-app/main/default/lwc/omniTextComponent/omniTextComponent.html View File


+ 22
- 0
force-app/main/default/lwc/omniTextComponent/omniTextComponent.js View File

@ -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;
}
}

force-app/main/default/lwc/myTextComponent/myTextComponent.js-meta.xml → force-app/main/default/lwc/omniTextComponent/omniTextComponent.js-meta.xml View File


+ 0
- 6
force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.html View File

@ -1,6 +0,0 @@
<template>
<script src="https://maps.googleapis.com/maps/api/js?client=gme-verizoncommunications&channel=VPSCX&libraries=places&callback=initAutocomplete" async defer></script>
</template>

+ 0
- 11
force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js-meta.xml View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>46.0</apiVersion>
<isExposed>true</isExposed>
<masterLabel>typeaheadAddressComponent</masterLabel>
<targets>
<target>lightning__RecordPage</target>
<target>lightning__AppPage</target>
<target>lightning__HomePage</target>
</targets>
</LightningComponentBundle>

Loading…
Cancel
Save