diff --git a/.eslintrc b/.eslintrc
new file mode 100644
index 0000000..931e958
--- /dev/null
+++ b/.eslintrc
@@ -0,0 +1,10 @@
+{
+ "extends": "eslint:recommended",
+ "rules": {
+ "consistent-return": 2,
+ "indent" : [1, 4],
+ "no-else-return" : 1,
+ "semi" : [1, "always"],
+ "space-unary-ops" : 2
+ }
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 6a3ee15..d50699e 100755
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -4,5 +4,5 @@
"**/bower_components": true,
"**/.sfdx": true
},
- "eslint.nodePath": "/Users/leviolson/.vscode/extensions/salesforce.salesforcedx-vscode-lwc-47.17.1/node_modules"
+ "vlocity.sfdxUsername": "lolson@eaglecrk.com.vusrvo-009555"
}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/checkboxComponent/checkboxComponent.html b/force-app/main/default/lwc/checkboxComponent/checkboxComponent.html
new file mode 100644
index 0000000..bfe1cc4
--- /dev/null
+++ b/force-app/main/default/lwc/checkboxComponent/checkboxComponent.html
@@ -0,0 +1,11 @@
+
+
+
+
diff --git a/force-app/main/default/lwc/checkboxComponent/checkboxComponent.js b/force-app/main/default/lwc/checkboxComponent/checkboxComponent.js
new file mode 100644
index 0000000..d931dc7
--- /dev/null
+++ b/force-app/main/default/lwc/checkboxComponent/checkboxComponent.js
@@ -0,0 +1,15 @@
+import { LightningElement } from "lwc";
+import OmniscriptCheckbox from "vlocity_cmt/omniscriptCheckbox";
+
+export default class checkboxComponent extends OmniscriptCheckbox {
+
+ connectedCallback() {
+ console.debug("checkboxComponent - connected");
+ this.omniApplyCallResp({'checkbox':false});
+ }
+
+ handleChange(evt) {
+ console.debug("hangleChange: ", evt);
+ }
+
+}
diff --git a/force-app/main/default/lwc/checkboxComponent/checkboxComponent.js-meta.xml b/force-app/main/default/lwc/checkboxComponent/checkboxComponent.js-meta.xml
new file mode 100644
index 0000000..76fb8c7
--- /dev/null
+++ b/force-app/main/default/lwc/checkboxComponent/checkboxComponent.js-meta.xml
@@ -0,0 +1,7 @@
+
+
+ 46.0
+ true
+ vlocity_cmt
+ checkboxComponent
+
diff --git a/force-app/main/default/lwc/customLayout/customLayout.html b/force-app/main/default/lwc/customLayout/customLayout.html
old mode 100755
new mode 100644
index 615a95b..d30a6e9
--- a/force-app/main/default/lwc/customLayout/customLayout.html
+++ b/force-app/main/default/lwc/customLayout/customLayout.html
@@ -5,4 +5,4 @@
-
+
\ No newline at end of file
diff --git a/force-app/main/default/lwc/customLayout/customLayout.js b/force-app/main/default/lwc/customLayout/customLayout.js
old mode 100755
new mode 100644
index b56c969..2063b76
--- a/force-app/main/default/lwc/customLayout/customLayout.js
+++ b/force-app/main/default/lwc/customLayout/customLayout.js
@@ -12,8 +12,8 @@ export default class CustomLayout extends BaseLayout(LightningElement) {
connectedCallback() {
this.cards = this.definition.Cards;
- console.log("This is definition object", JSON.parse(JSON.stringify(this.definition)));
+ console.log("This is defination object", JSON.parse(JSON.stringify(this.definition)));
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/fileUpload/fileUpload.html b/force-app/main/default/lwc/fileUpload/fileUpload.html
new file mode 100644
index 0000000..63aff86
--- /dev/null
+++ b/force-app/main/default/lwc/fileUpload/fileUpload.html
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/force-app/main/default/lwc/fileUpload/fileUpload.js b/force-app/main/default/lwc/fileUpload/fileUpload.js
new file mode 100644
index 0000000..961dc0d
--- /dev/null
+++ b/force-app/main/default/lwc/fileUpload/fileUpload.js
@@ -0,0 +1,36 @@
+import { LightningElement, api } from "lwc";
+import Input from "vlocity_cmt/input";
+import template from "./fileUpload.html"
+import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin';
+
+export default class fileUpload extends OmniscriptBaseMixin(Input){
+
+ get value() {
+ return this._value;
+ }
+ @api
+ set value(val) {
+ console.debug('Setter files', val);
+ this._value = val;
+ }
+ get FileList() {
+ return this._FileList;
+ }
+ @api
+ set FileList(val) {
+ console.debug('Setter files', val);
+ this._FileList = val;
+ }
+
+ connectedCallback() {
+ console.debug("fileUpload - connected");
+ }
+
+ handleInput(evt) {
+ console.debug("handleInput", this.inputValue);
+ }
+
+ render() {
+ return template;
+ }
+}
diff --git a/force-app/main/default/lwc/fileUpload/fileUpload.js-meta.xml b/force-app/main/default/lwc/fileUpload/fileUpload.js-meta.xml
new file mode 100644
index 0000000..35cfbf5
--- /dev/null
+++ b/force-app/main/default/lwc/fileUpload/fileUpload.js-meta.xml
@@ -0,0 +1,6 @@
+
+
+ 46.0
+ true
+ vlocity_cmt
+
diff --git a/force-app/main/default/lwc/jsconfig.json b/force-app/main/default/lwc/jsconfig.json
index 1d5e093..92d7d69 100644
--- a/force-app/main/default/lwc/jsconfig.json
+++ b/force-app/main/default/lwc/jsconfig.json
@@ -9,6 +9,9 @@
"c/helloWorld": [
"helloWorld/helloWorld.js"
],
+ "c/myAccordionComponent": [
+ "myAccordionComponent/myAccordionComponent.js"
+ ],
"c/myActionComponent": [
"myActionComponent/myActionComponent.js"
],
@@ -20,6 +23,27 @@
],
"c/myTextComponent": [
"myTextComponent/myTextComponent.js"
+ ],
+ "c/myCardComponent": [
+ "myCardComponent/myCardComponent.js"
+ ],
+ "c/myCssComponent": [
+ "myCssComponent/myCssComponent.js"
+ ],
+ "c/myCustomComponentWithNavButtons": [
+ "myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js"
+ ],
+ "c/myCheckboxComponent": [
+ "myCheckboxComponent/myCheckboxComponent.js"
+ ],
+ "c/checkboxComponent": [
+ "checkboxComponent/checkboxComponent.js"
+ ],
+ "c/fileUpload": [
+ "fileUpload/fileUpload.js"
+ ],
+ "c/typeaheadAddressComponent": [
+ "typeaheadAddressComponent/typeaheadAddressComponent.js"
]
}
},
diff --git a/force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.html b/force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.html
new file mode 100644
index 0000000..f47fc45
--- /dev/null
+++ b/force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.html
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+ Accordion summary
+
+
+
+
+
+
+ More Options
+
+
+ Accordion details - A
+
+
+
+
+
+
+
+
+
+
+ Accordion summary
+
+
+
+
+
+
+ More Options
+
+
+ Accordion details - B
+
+
+
+
+
+
+
+
+
+
+ Accordion summary
+
+
+
+
+
+
+ More Options
+
+
+ Accordion details - C
+
+
+
+
diff --git a/force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.js b/force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.js
new file mode 100644
index 0000000..2f0bbc2
--- /dev/null
+++ b/force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.js
@@ -0,0 +1,49 @@
+import { LightningElement, track } from "lwc";
+// import omniscriptCustomLwc from "vlocity_cmt/omniscriptCustomLwc";
+import template from "./myAccordionComponent.html"
+import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin';
+
+export default class myAccordionComponent 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
+ // the `nds-accordion__secion` section element
+ accordions = 3;
+
+ // Whether multiple accordions can be open at the same time
+ showMultiple = false;
+
+ // Smart method that dynamically adjusts which accordions are open
+ // based on `showMultiple` variable
+ accordionOpen(num) {
+ let accordion = this.template.querySelector(`.a${num}`);
+ // console.debug("accordion", num, accordion, accordion.classList);
+ accordion.classList.toggle('nds-is-open');
+
+ if (!this.showMultiple) {
+ for (let i = 1; i <= this.accordions; i++) {
+ if (i === num) continue;
+ let a = this.template.querySelector('.a' + i);
+ a.classList.remove('nds-is-open');
+ }
+ }
+ }
+
+ a1Click() {
+ this.accordionOpen(1);
+ }
+ a2Click() {
+ this.accordionOpen(2);
+ }
+ a3Click() {
+ this.accordionOpen(3);
+ }
+
+ connectedCallback() {
+ console.debug('myAccordionComponent', this);
+ }
+
+ render() {
+ return template;
+ }
+}
diff --git a/force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.js-meta.xml b/force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.js-meta.xml
new file mode 100755
index 0000000..7112802
--- /dev/null
+++ b/force-app/main/default/lwc/myAccordionComponent/myAccordionComponent.js-meta.xml
@@ -0,0 +1,6 @@
+
+
+ 46.0
+ true
+ vlocity_cmt
+
diff --git a/force-app/main/default/lwc/myActionComponent/myActionComponent.html b/force-app/main/default/lwc/myActionComponent/myActionComponent.html
old mode 100755
new mode 100644
index 3f2080f..913130a
--- a/force-app/main/default/lwc/myActionComponent/myActionComponent.html
+++ b/force-app/main/default/lwc/myActionComponent/myActionComponent.html
@@ -1,17 +1,16 @@
Wow.
-
-
+
@@ -29,4 +28,4 @@
URL: {url}
-
+
\ No newline at end of file
diff --git a/force-app/main/default/lwc/myActionComponent/myActionComponent.js b/force-app/main/default/lwc/myActionComponent/myActionComponent.js
old mode 100755
new mode 100644
index 490fce1..2509988
--- a/force-app/main/default/lwc/myActionComponent/myActionComponent.js
+++ b/force-app/main/default/lwc/myActionComponent/myActionComponent.js
@@ -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/myCardComponent/myCardComponent.html b/force-app/main/default/lwc/myCardComponent/myCardComponent.html
new file mode 100644
index 0000000..cf05b37
--- /dev/null
+++ b/force-app/main/default/lwc/myCardComponent/myCardComponent.html
@@ -0,0 +1,23 @@
+
+
+
+ {body}
+
+
\ No newline at end of file
diff --git a/force-app/main/default/lwc/myCardComponent/myCardComponent.js b/force-app/main/default/lwc/myCardComponent/myCardComponent.js
new file mode 100644
index 0000000..4d41f9f
--- /dev/null
+++ b/force-app/main/default/lwc/myCardComponent/myCardComponent.js
@@ -0,0 +1,11 @@
+import { LightningElement, api } from 'lwc';
+
+export default class MyCardComponent extends LightningElement {
+ @api title = 'Default Title';
+ @api body = 'Default Body';
+ @api link = 'Default Link';
+
+ connectedCallback() {
+ console.log('MyCardComponent - 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/myCardComponent/myCardComponent.js-meta.xml
new file mode 100755
index 0000000..e645336
--- /dev/null
+++ b/force-app/main/default/lwc/myCardComponent/myCardComponent.js-meta.xml
@@ -0,0 +1,6 @@
+
+
+ 47.0
+ true
+ vlocity_cmt
+
diff --git a/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.html b/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.html
new file mode 100644
index 0000000..b8fc252
--- /dev/null
+++ b/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.html
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js b/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js
new file mode 100644
index 0000000..9053135
--- /dev/null
+++ b/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js
@@ -0,0 +1,15 @@
+import { LightningElement, track } from "lwc";
+import template from "./myCheckboxComponent.html"
+import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin';
+
+export default class myCheckboxComponent extends OmniscriptBaseMixin(LightningElement){
+
+ connectedCallback() {
+ // this.layout = this.getAttribute('data-omni-layout'); // returns lightning or newport
+ console.debug("myCheckboxComponent - connected");
+ }
+
+ render() {
+ return template;
+ }
+}
diff --git a/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js-meta.xml b/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js-meta.xml
new file mode 100644
index 0000000..8f332c3
--- /dev/null
+++ b/force-app/main/default/lwc/myCheckboxComponent/myCheckboxComponent.js-meta.xml
@@ -0,0 +1,7 @@
+
+
+ 46.0
+ true
+ myCheckboxComponent
+ vlocity_cmt
+
diff --git a/force-app/main/default/lwc/myCssComponent/myCssComponent.css b/force-app/main/default/lwc/myCssComponent/myCssComponent.css
new file mode 100644
index 0000000..d70bc66
--- /dev/null
+++ b/force-app/main/default/lwc/myCssComponent/myCssComponent.css
@@ -0,0 +1,3 @@
+.via-nds .nds-button.nds-button_brand {
+ background-color: red !important;
+}
diff --git a/force-app/main/default/lwc/myCssComponent/myCssComponent.html b/force-app/main/default/lwc/myCssComponent/myCssComponent.html
new file mode 100755
index 0000000..27e0f69
--- /dev/null
+++ b/force-app/main/default/lwc/myCssComponent/myCssComponent.html
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/force-app/main/default/lwc/myCssComponent/myCssComponent.js b/force-app/main/default/lwc/myCssComponent/myCssComponent.js
new file mode 100755
index 0000000..7c42042
--- /dev/null
+++ b/force-app/main/default/lwc/myCssComponent/myCssComponent.js
@@ -0,0 +1,8 @@
+import { LightningElement } from 'lwc';
+import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin';
+
+export default class MyCssComponent extends OmniscriptBaseMixin(LightningElement) {
+ connectedCallback() {
+ console.log("myCssComponent - Connected");
+ }
+}
diff --git a/force-app/main/default/lwc/myCssComponent/myCssComponent.js-meta.xml b/force-app/main/default/lwc/myCssComponent/myCssComponent.js-meta.xml
new file mode 100755
index 0000000..7d12ccd
--- /dev/null
+++ b/force-app/main/default/lwc/myCssComponent/myCssComponent.js-meta.xml
@@ -0,0 +1,6 @@
+
+
+ 48.0
+ true
+ vlocity_cmt
+
diff --git a/force-app/main/default/lwc/myCustomComponent/myCustomComponent.html b/force-app/main/default/lwc/myCustomComponent/myCustomComponent.html
old mode 100755
new mode 100644
index c895caa..37714dd
--- a/force-app/main/default/lwc/myCustomComponent/myCustomComponent.html
+++ b/force-app/main/default/lwc/myCustomComponent/myCustomComponent.html
@@ -4,8 +4,15 @@
theme={theme}
min-length="10"
required
+ onblur={handleInput}
label="Minimum 10 char"
placeholder="Minimum 10 char">
+
+
diff --git a/force-app/main/default/lwc/myCustomComponent/myCustomComponent.js b/force-app/main/default/lwc/myCustomComponent/myCustomComponent.js
old mode 100755
new mode 100644
index 2c2df1b..d2f3ceb
--- a/force-app/main/default/lwc/myCustomComponent/myCustomComponent.js
+++ b/force-app/main/default/lwc/myCustomComponent/myCustomComponent.js
@@ -20,14 +20,13 @@ export default class MyCustomComponent extends OmniscriptBaseMixin(LightningElem
console.log("MyCustomComponent - this.omniSeedJson:", JSON.parse(JSON.stringify(this.omniSeedJson)));
console.log("MyCustomComponent - this.omniJsonDef:", JSON.parse(JSON.stringify(this.omniJsonDef)));
console.log("MyCustomComponent - this.omniJsonData:", JSON.parse(JSON.stringify(this.omniJsonData)));
- // console.log("MyCustomComponent - this.omniLayout:", JSON.parse(JSON.stringify(this.omniLayout)));
} catch (e) {
console.debug("Error Parsing: ", e);
-
}
}
- handleBlur(evt) {
- this.omniUpdateDataJson(evt);
+ handleInput(evt) {
+ let inp = this.template.querySelector('input')
+ this.omniUpdateDataJson();
}
}
diff --git a/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.css b/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.css
new file mode 100644
index 0000000..9aae251
--- /dev/null
+++ b/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.css
@@ -0,0 +1,3 @@
+.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
new file mode 100644
index 0000000..837729f
--- /dev/null
+++ b/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.html
@@ -0,0 +1,23 @@
+
+
+
+
diff --git a/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js b/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js
new file mode 100644
index 0000000..7027138
--- /dev/null
+++ b/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js
@@ -0,0 +1,22 @@
+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
new file mode 100644
index 0000000..01108b4
--- /dev/null
+++ b/force-app/main/default/lwc/myCustomComponentWithNavButtons/myCustomComponentWithNavButtons.js-meta.xml
@@ -0,0 +1,6 @@
+
+
+ 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
old mode 100755
new mode 100644
index 170f380..2d41284
--- a/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.html
+++ b/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.html
@@ -6,4 +6,4 @@
layout={layout}
resume={resume}>
-
+
\ 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
old mode 100755
new mode 100644
index d3b8b77..2772b18
--- a/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.js
+++ b/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.js
@@ -14,4 +14,4 @@ export default class MyOmniComponentInBaseClass extends OmniscriptBaseMixin(Ligh
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
index e645336..e8784b8 100755
--- a/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.js-meta.xml
+++ b/force-app/main/default/lwc/myOmniComponentInBaseClass/myOmniComponentInBaseClass.js-meta.xml
@@ -1,6 +1,5 @@
47.0
- true
- vlocity_cmt
+ false
diff --git a/force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.html b/force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.html
new file mode 100644
index 0000000..1e995df
--- /dev/null
+++ b/force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.html
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
diff --git a/force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.js b/force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.js
new file mode 100644
index 0000000..a2841e0
--- /dev/null
+++ b/force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.js
@@ -0,0 +1,25 @@
+import { LightningElement } from 'lwc';
+import template from './myStepCustomNavigation.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) {
+
+ connectedCallback() {
+ console.debug("myStepCustomNavigation - connected");
+ }
+
+ gotoNext() {
+ dispatchOmniEvent(this, { moveToStep: 'next' }, 'omniautoadvance');
+ }
+
+ gotoPrev() {
+ console.debug('gotoPrev stepIndex', this.stepIndex);
+ dispatchOmniEvent(this, { moveToStep: this.stepIndex - 1 }, 'omniautoadvance');
+ }
+
+ render() {
+ return template;
+ }
+}
diff --git a/force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.js-meta.xml b/force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.js-meta.xml
new file mode 100755
index 0000000..7112802
--- /dev/null
+++ b/force-app/main/default/lwc/myStepCustomNavigation/myStepCustomNavigation.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/myTextComponent/myTextComponent.html
old mode 100755
new mode 100644
diff --git a/force-app/main/default/lwc/myTextComponent/myTextComponent.js b/force-app/main/default/lwc/myTextComponent/myTextComponent.js
old mode 100755
new mode 100644
index 5868ff5..7a6ebf5
--- a/force-app/main/default/lwc/myTextComponent/myTextComponent.js
+++ b/force-app/main/default/lwc/myTextComponent/myTextComponent.js
@@ -1,10 +1,19 @@
-import template from "./myTextComponent.html";
import OmniscriptText from 'vlocity_cmt/omniscriptText';
+import template from "./myTextComponent.html";
-export default class MyTextComponent extends OmniscriptText {
+export default class MyTextComponent extends OmniscriptTbext {
connectedCallback() {
- console.log("myTextComponent - Connected");
-
+ 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() {
diff --git a/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.html b/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.html
new file mode 100644
index 0000000..fac0254
--- /dev/null
+++ b/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.html
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js b/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js
new file mode 100644
index 0000000..5fef1b1
--- /dev/null
+++ b/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js
@@ -0,0 +1,18 @@
+import { LightningElement } from "lwc";
+import Typeahead from "vlocity_cmt/typeahead";
+import template from "./typeaheadAddressComponent.html"
+import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin';
+
+export default class typeaheadAddressComponent extends OmniscriptBaseMixin(Typeahead){
+ // your properties and methods here
+
+ connectedCallback() {
+ // Call omniUpdateDataJson to update the omniscript
+ // this.omniUpdateDataJson({'key':'value'});
+ }
+
+ render()
+ {
+ return template;
+ }
+}
diff --git a/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js-meta.xml b/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js-meta.xml
new file mode 100644
index 0000000..dbc5abd
--- /dev/null
+++ b/force-app/main/default/lwc/typeaheadAddressComponent/typeaheadAddressComponent.js-meta.xml
@@ -0,0 +1,11 @@
+
+
+ 46.0
+ true
+ typeaheadAddressComponent
+
+ lightning__RecordPage
+ lightning__AppPage
+ lightning__HomePage
+
+