@komaci/esm-generator 264.4.0 → 266.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/build/genericAstGeneration.js +80 -34
  2. package/package.json +1 -1
  3. package/build/__tests__/adgAstGeneration.spec.d.ts +0 -2
  4. package/build/__tests__/adgAstGeneration.spec.js +0 -447
  5. package/build/__tests__/compile-generated-module-fixtures.spec.d.ts +0 -2
  6. package/build/__tests__/compile-generated-module-fixtures.spec.js +0 -49
  7. package/build/__tests__/compilerConfigs.d.ts +0 -24
  8. package/build/__tests__/compilerConfigs.js +0 -126
  9. package/build/__tests__/compositionAstGeneration.spec.d.ts +0 -2
  10. package/build/__tests__/compositionAstGeneration.spec.js +0 -676
  11. package/build/__tests__/fixtures-combined-files/exclude-comps-unused-import-prop/actual.d.ts +0 -6
  12. package/build/__tests__/fixtures-combined-files/exclude-comps-unused-import-prop/actual.js +0 -28
  13. package/build/__tests__/fixtures-combined-files/exclude-partial-classProps-indirect-importRef-getter/actual.d.ts +0 -29
  14. package/build/__tests__/fixtures-combined-files/exclude-partial-classProps-indirect-importRef-getter/actual.js +0 -148
  15. package/build/__tests__/fixtures-combined-files/exclude-total-unused-import-getter-from-one/actual.d.ts +0 -9
  16. package/build/__tests__/fixtures-combined-files/exclude-total-unused-import-getter-from-one/actual.js +0 -35
  17. package/build/__tests__/fixtures-combined-files/exclude-total-unused-import-getter-from-two/actual.d.ts +0 -10
  18. package/build/__tests__/fixtures-combined-files/exclude-total-unused-import-getter-from-two/actual.js +0 -39
  19. package/build/__tests__/fixtures-combined-files/exclude-wire-unused-import-prop/actual.d.ts +0 -7
  20. package/build/__tests__/fixtures-combined-files/exclude-wire-unused-import-prop/actual.js +0 -34
  21. package/build/__tests__/fixtures-combined-files/image-type/actual.d.ts +0 -13
  22. package/build/__tests__/fixtures-combined-files/image-type/actual.js +0 -41
  23. package/build/__tests__/fixtures-combined-files/include-all-indirect-importRef-getter-complex/actual.d.ts +0 -14
  24. package/build/__tests__/fixtures-combined-files/include-all-indirect-importRef-getter-complex/actual.js +0 -79
  25. package/build/__tests__/fixtures-combined-files/include-class-prop-indirect-importRef-getter/actual.d.ts +0 -18
  26. package/build/__tests__/fixtures-combined-files/include-class-prop-indirect-importRef-getter/actual.js +0 -103
  27. package/build/__tests__/fixtures-combined-files/include-comps-used-import-prop/actual.d.ts +0 -6
  28. package/build/__tests__/fixtures-combined-files/include-comps-used-import-prop/actual.js +0 -28
  29. package/build/__tests__/fixtures-combined-files/include-salesforce-resourceUrl-imports/actual.d.ts +0 -6
  30. package/build/__tests__/fixtures-combined-files/include-salesforce-resourceUrl-imports/actual.js +0 -16
  31. package/build/__tests__/fixtures-combined-files/include-salesforce-resourceUrl-nonAnalyzable-imports/actual.d.ts +0 -4
  32. package/build/__tests__/fixtures-combined-files/include-salesforce-resourceUrl-nonAnalyzable-imports/actual.js +0 -18
  33. package/build/__tests__/fixtures-combined-files/include-template-strings/actual.d.ts +0 -10
  34. package/build/__tests__/fixtures-combined-files/include-template-strings/actual.js +0 -41
  35. package/build/__tests__/fixtures-combined-files/include-used-import-getter/actual.d.ts +0 -9
  36. package/build/__tests__/fixtures-combined-files/include-used-import-getter/actual.js +0 -38
  37. package/build/__tests__/fixtures-combined-files/include-wire-used-import-prop/actual.d.ts +0 -7
  38. package/build/__tests__/fixtures-combined-files/include-wire-used-import-prop/actual.js +0 -34
  39. package/build/__tests__/fixtures-combined-files/only-named-export-with-template/actual.d.ts +0 -1
  40. package/build/__tests__/fixtures-combined-files/only-named-export-with-template/actual.js +0 -2
  41. package/build/__tests__/fixtures-combined-files/unsupported-wire-from-supported-namespace/actual.d.ts +0 -6
  42. package/build/__tests__/fixtures-combined-files/unsupported-wire-from-supported-namespace/actual.js +0 -19
  43. package/build/__tests__/fixtures-combined-files-multiple-templates/invalid-renderFunc-no-valid-imports/c/component/component.d.ts +0 -5
  44. package/build/__tests__/fixtures-combined-files-multiple-templates/invalid-renderFunc-no-valid-imports/c/component/component.js +0 -14
  45. package/build/__tests__/fixtures-combined-files-multiple-templates/valid-render-function-complex/lightning/component/component.d.ts +0 -6
  46. package/build/__tests__/fixtures-combined-files-multiple-templates/valid-render-function-complex/lightning/component/component.js +0 -31
  47. package/build/__tests__/fixtures-combined-files-multiple-templates/valid-render-function-simple/lightning/component/component.d.ts +0 -6
  48. package/build/__tests__/fixtures-combined-files-multiple-templates/valid-render-function-simple/lightning/component/component.js +0 -27
  49. package/build/__tests__/fixtures-gql/multipleGqlQueries/c/component/component.d.ts +0 -15
  50. package/build/__tests__/fixtures-gql/multipleGqlQueries/c/component/component.js +0 -104
  51. package/build/__tests__/fixtures-script-files/class-extends-multiple-with-separate-imports/actual.d.ts +0 -8
  52. package/build/__tests__/fixtures-script-files/class-extends-multiple-with-separate-imports/actual.js +0 -17
  53. package/build/__tests__/fixtures-script-files/class-extends-separate-imports/actual.d.ts +0 -4
  54. package/build/__tests__/fixtures-script-files/class-extends-separate-imports/actual.js +0 -13
  55. package/build/__tests__/fixtures-script-files/class-extends-separate-imports-alias/actual.d.ts +0 -4
  56. package/build/__tests__/fixtures-script-files/class-extends-separate-imports-alias/actual.js +0 -10
  57. package/build/__tests__/fixtures-script-files/class-props/actual.d.ts +0 -30
  58. package/build/__tests__/fixtures-script-files/class-props/actual.js +0 -103
  59. package/build/__tests__/fixtures-script-files/empty-class/actual.d.ts +0 -4
  60. package/build/__tests__/fixtures-script-files/empty-class/actual.js +0 -7
  61. package/build/__tests__/fixtures-script-files/empty-doc/actual.d.ts +0 -1
  62. package/build/__tests__/fixtures-script-files/empty-doc/actual.js +0 -2
  63. package/build/__tests__/fixtures-script-files/empty-wire/actual.d.ts +0 -5
  64. package/build/__tests__/fixtures-script-files/empty-wire/actual.js +0 -16
  65. package/build/__tests__/fixtures-script-files/exclude-wire-unused-import-prop/actual.d.ts +0 -7
  66. package/build/__tests__/fixtures-script-files/exclude-wire-unused-import-prop/actual.js +0 -34
  67. package/build/__tests__/fixtures-script-files/exports/actual.d.ts +0 -22
  68. package/build/__tests__/fixtures-script-files/exports/actual.js +0 -63
  69. package/build/__tests__/fixtures-script-files/imports/actual.d.ts +0 -11
  70. package/build/__tests__/fixtures-script-files/imports/actual.js +0 -80
  71. package/build/__tests__/fixtures-script-files/imports-namespaced/actual.d.ts +0 -10
  72. package/build/__tests__/fixtures-script-files/imports-namespaced/actual.js +0 -63
  73. package/build/__tests__/fixtures-script-files/include-wire-unused-import-prop/actual.d.ts +0 -7
  74. package/build/__tests__/fixtures-script-files/include-wire-unused-import-prop/actual.js +0 -34
  75. package/build/__tests__/fixtures-script-files/inheritance-imports-default/actual.d.ts +0 -3
  76. package/build/__tests__/fixtures-script-files/inheritance-imports-default/actual.js +0 -10
  77. package/build/__tests__/fixtures-script-files/inheritance-imports-local/actual.d.ts +0 -9
  78. package/build/__tests__/fixtures-script-files/inheritance-imports-local/actual.js +0 -24
  79. package/build/__tests__/fixtures-script-files/inheritance-imports-named/actual.d.ts +0 -4
  80. package/build/__tests__/fixtures-script-files/inheritance-imports-named/actual.js +0 -17
  81. package/build/__tests__/fixtures-script-files/inheritance-parent-unresolved/actual.d.ts +0 -4
  82. package/build/__tests__/fixtures-script-files/inheritance-parent-unresolved/actual.js +0 -17
  83. package/build/__tests__/fixtures-script-files/unsupported-wire-from-supported-namespace/actual.d.ts +0 -6
  84. package/build/__tests__/fixtures-script-files/unsupported-wire-from-supported-namespace/actual.js +0 -19
  85. package/build/__tests__/fixtures-script-files/wire-basic/actual.d.ts +0 -8
  86. package/build/__tests__/fixtures-script-files/wire-basic/actual.js +0 -30
  87. package/build/__tests__/fixtures-script-files/wire-functions/actual.d.ts +0 -13
  88. package/build/__tests__/fixtures-script-files/wire-functions/actual.js +0 -46
  89. package/build/__tests__/fixtures-script-files/wire-imports/actual.d.ts +0 -11
  90. package/build/__tests__/fixtures-script-files/wire-imports/actual.js +0 -63
  91. package/build/__tests__/fixtures-source-code/badImportRef.d.ts +0 -4
  92. package/build/__tests__/fixtures-source-code/badImportRef.js +0 -31
  93. package/build/__tests__/fixtures-source-code/generalMockSourceCode.d.ts +0 -8
  94. package/build/__tests__/fixtures-source-code/generalMockSourceCode.js +0 -127
  95. package/build/__tests__/fixtures-source-code/gqlMockSource.d.ts +0 -3
  96. package/build/__tests__/fixtures-source-code/gqlMockSource.js +0 -95
  97. package/build/__tests__/functionAstGeneration.spec.d.ts +0 -2
  98. package/build/__tests__/functionAstGeneration.spec.js +0 -727
  99. package/build/__tests__/general-komaci-docs/assorted-template-strings/source.d.ts +0 -10
  100. package/build/__tests__/general-komaci-docs/assorted-template-strings/source.js +0 -41
  101. package/build/__tests__/general-komaci-docs/getters-and-compositions-collisions/source.d.ts +0 -7
  102. package/build/__tests__/general-komaci-docs/getters-and-compositions-collisions/source.js +0 -31
  103. package/build/__tests__/general-komaci-docs/import-types/source.d.ts +0 -18
  104. package/build/__tests__/general-komaci-docs/import-types/source.js +0 -108
  105. package/build/__tests__/general-komaci-docs/import-types/validationStuff.d.ts +0 -18
  106. package/build/__tests__/general-komaci-docs/import-types/validationStuff.js +0 -63
  107. package/build/__tests__/general-komaci-docs/template-component/source.d.ts +0 -8
  108. package/build/__tests__/general-komaci-docs/template-component/source.js +0 -34
  109. package/build/__tests__/generated-module/compile-graphql-with-scoped-import.spec.d.ts +0 -2
  110. package/build/__tests__/generated-module/compile-graphql-with-scoped-import.spec.js +0 -20
  111. package/build/__tests__/generated-module/lightning/component/component.d.ts +0 -18
  112. package/build/__tests__/generated-module/lightning/component/component.js +0 -168
  113. package/build/__tests__/genericAstGeneration.spec.d.ts +0 -2
  114. package/build/__tests__/genericAstGeneration.spec.js +0 -1052
  115. package/build/__tests__/index.spec.d.ts +0 -2
  116. package/build/__tests__/index.spec.js +0 -393
  117. package/build/__tests__/komaci-ast-unit.spec.d.ts +0 -2
  118. package/build/__tests__/komaci-ast-unit.spec.js +0 -422
  119. package/build/__tests__/komaci-bundle-module.fixtures.spec.d.ts +0 -2
  120. package/build/__tests__/komaci-bundle-module.fixtures.spec.js +0 -76
  121. package/build/__tests__/komaci-bundle-multiple-templates-module.fixtures.spec.d.ts +0 -2
  122. package/build/__tests__/komaci-bundle-multiple-templates-module.fixtures.spec.js +0 -117
  123. package/build/__tests__/komaci-gql.fixtures.spec.d.ts +0 -2
  124. package/build/__tests__/komaci-gql.fixtures.spec.js +0 -51
  125. package/build/__tests__/komaci-script-module.fixtures.spec.d.ts +0 -2
  126. package/build/__tests__/komaci-script-module.fixtures.spec.js +0 -70
  127. package/build/__tests__/komaci-template-module.fixtures.spec.d.ts +0 -2
  128. package/build/__tests__/komaci-template-module.fixtures.spec.js +0 -57
  129. package/build/__tests__/readAndParseBundle.d.ts +0 -22
  130. package/build/__tests__/readAndParseBundle.js +0 -80
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const lwc_1 = require("lwc");
7
- const myResource_1 = __importDefault(require("@salesforce/resourceUrl/myResource"));
8
- class StaticResourceLWCExample extends lwc_1.LightningElement {
9
- constructor() {
10
- super(...arguments);
11
- this.spring20Logo = myResource_1.default + '/images/salesforce-spring-2020.jpg';
12
- this.summer20Logo = myResource_1.default + '/images/salesfoce-summer-2020.jpeg';
13
- }
14
- }
15
- exports.default = StaticResourceLWCExample;
16
- //# sourceMappingURL=actual.js.map
@@ -1,4 +0,0 @@
1
- export default class StaticResourceLWCExample extends LightningElement {
2
- }
3
- import { LightningElement } from "lwc";
4
- //# sourceMappingURL=actual.d.ts.map
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const lwc_1 = require("lwc");
7
- const myLib_1 = __importDefault(require("@salesforce/resourceUrl/myLib"));
8
- const platformResourceLoader_1 = require("lightning/platformResourceLoader");
9
- class StaticResourceLWCExample extends lwc_1.LightningElement {
10
- constructor() {
11
- super();
12
- (0, platformResourceLoader_1.loadScript)(this, `${myLib_1.default}/index.js`).then(() => {
13
- let result = myLib_1.default.myFunction(3, 3);
14
- });
15
- }
16
- }
17
- exports.default = StaticResourceLWCExample;
18
- //# sourceMappingURL=actual.js.map
@@ -1,10 +0,0 @@
1
- export default class Component extends LightningElement {
2
- basic: any;
3
- basicInit: string;
4
- publicWithTemplate: string;
5
- internalProp: any;
6
- badTemplate: any;
7
- wireForLinkage: any;
8
- }
9
- import { LightningElement } from "lwc";
10
- //# sourceMappingURL=actual.d.ts.map
@@ -1,41 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- const lwc_1 = require("lwc");
10
- const record_1 = require("lightning/record");
11
- const graphql_1 = require("lightning/graphql");
12
- const snoop_1 = require("snoop");
13
- class Component extends lwc_1.LightningElement {
14
- constructor() {
15
- super(...arguments);
16
- this.basicInit = 'testing';
17
- this.publicWithTemplate = `A template here maybe it references ${this.basicInit}`;
18
- this.internalProp = (0, graphql_1.gql) `search { record $thing ${['a', 'b', 'c']
19
- .map((a) => `a${a}`)
20
- .join(',')}}`;
21
- this.badTemplate = (0, snoop_1.sneaky) `${(this.basic = 'boom')}normal string`;
22
- }
23
- }
24
- __decorate([
25
- lwc_1.api
26
- ], Component.prototype, "basic", void 0);
27
- __decorate([
28
- lwc_1.api
29
- ], Component.prototype, "basicInit", void 0);
30
- __decorate([
31
- lwc_1.api
32
- ], Component.prototype, "publicWithTemplate", void 0);
33
- __decorate([
34
- (0, lwc_1.wire)(record_1.getRecord, {
35
- p1: '$publicWithTemplate',
36
- p2: '$internalProp',
37
- p3: '$badTemplate',
38
- })
39
- ], Component.prototype, "wireForLinkage", void 0);
40
- exports.default = Component;
41
- //# sourceMappingURL=actual.js.map
@@ -1,9 +0,0 @@
1
- export default class Example extends LightningElement {
2
- recordId: any;
3
- label: any;
4
- myAttr: string;
5
- get myGetter(): string;
6
- record: any;
7
- }
8
- import { LightningElement } from "lwc";
9
- //# sourceMappingURL=actual.d.ts.map
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const lwc_1 = require("lwc");
13
- const uiRecordApi_1 = require("lightning/uiRecordApi");
14
- const shared_1 = __importDefault(require("force/shared"));
15
- class Example extends lwc_1.LightningElement {
16
- constructor() {
17
- super(...arguments);
18
- this.label = shared_1.default;
19
- this.myAttr = 'Hello, World!';
20
- }
21
- get myGetter() {
22
- return 'something ' + shared_1.default + this.myAttr;
23
- }
24
- }
25
- __decorate([
26
- lwc_1.api
27
- ], Example.prototype, "recordId", void 0);
28
- __decorate([
29
- lwc_1.api
30
- ], Example.prototype, "label", void 0);
31
- __decorate([
32
- lwc_1.api
33
- ], Example.prototype, "myAttr", void 0);
34
- __decorate([
35
- (0, lwc_1.wire)(uiRecordApi_1.getRecord, { recordId: '$myGetter', layoutTypes: ['Full'], modes: ['View'] })
36
- ], Example.prototype, "record", void 0);
37
- exports.default = Example;
38
- //# sourceMappingURL=actual.js.map
@@ -1,7 +0,0 @@
1
- export default class ScriptTestClass extends LightningElement {
2
- label: any;
3
- myAttr: string;
4
- myWire: any;
5
- }
6
- import { LightningElement } from "lwc";
7
- //# sourceMappingURL=actual.d.ts.map
@@ -1,34 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const lwc_1 = require("lwc");
13
- const uiRecordApi_1 = require("lightning/uiRecordApi");
14
- const myLabel_1 = __importDefault(require("@salesforce/label/myLabel"));
15
- class ScriptTestClass extends lwc_1.LightningElement {
16
- constructor() {
17
- super(...arguments);
18
- this.label = myLabel_1.default;
19
- this.myAttr = 'Hello, World!';
20
- }
21
- }
22
- __decorate([
23
- lwc_1.api
24
- ], ScriptTestClass.prototype, "label", void 0);
25
- __decorate([
26
- lwc_1.api
27
- ], ScriptTestClass.prototype, "myAttr", void 0);
28
- __decorate([
29
- (0, lwc_1.wire)(uiRecordApi_1.getRecord, {
30
- resourceId: '$label',
31
- })
32
- ], ScriptTestClass.prototype, "myWire", void 0);
33
- exports.default = ScriptTestClass;
34
- //# sourceMappingURL=actual.js.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=actual.d.ts.map
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=actual.js.map
@@ -1,6 +0,0 @@
1
- export default class ScriptTestClass extends LightningElement {
2
- nonPublicAttr: any;
3
- wireOut: any;
4
- }
5
- import { LightningElement } from "lwc";
6
- //# sourceMappingURL=actual.d.ts.map
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- const lwc_1 = require("lwc");
10
- const unsupportWire_1 = require("laf/unsupportWire");
11
- class ScriptTestClass extends lwc_1.LightningElement {
12
- }
13
- __decorate([
14
- (0, lwc_1.wire)(unsupportWire_1.unsupportedWire, {
15
- attr: '$nonPublicAttr',
16
- })
17
- ], ScriptTestClass.prototype, "wireOut", void 0);
18
- exports.default = ScriptTestClass;
19
- //# sourceMappingURL=actual.js.map
@@ -1,5 +0,0 @@
1
- export default class KomaciAction extends LightningElement {
2
- render(): any;
3
- }
4
- import { LightningElement } from "lwc";
5
- //# sourceMappingURL=component.d.ts.map
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const lwc_1 = require("lwc");
7
- const shared_1 = __importDefault(require("force/shared"));
8
- class KomaciAction extends lwc_1.LightningElement {
9
- render() {
10
- return shared_1.default; //invalid, not returning an imported template.
11
- }
12
- }
13
- exports.default = KomaciAction;
14
- //# sourceMappingURL=component.js.map
@@ -1,6 +0,0 @@
1
- export default class KomaciAction extends LightningElement {
2
- showTemplateOne: boolean;
3
- render(): any;
4
- }
5
- import { LightningElement } from "lwc";
6
- //# sourceMappingURL=component.d.ts.map
@@ -1,31 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const lwc_1 = require("lwc");
13
- const component_html_1 = __importDefault(require("./component.html"));
14
- const templateOne_html_1 = __importDefault(require("./templateOne.html"));
15
- class KomaciAction extends lwc_1.LightningElement {
16
- constructor() {
17
- super(...arguments);
18
- this.showTemplateOne = true;
19
- }
20
- render() {
21
- if (this.showTemplateOne) {
22
- return templateOne_html_1.default;
23
- }
24
- return component_html_1.default;
25
- }
26
- }
27
- __decorate([
28
- lwc_1.api
29
- ], KomaciAction.prototype, "showTemplateOne", void 0);
30
- exports.default = KomaciAction;
31
- //# sourceMappingURL=component.js.map
@@ -1,6 +0,0 @@
1
- export default class Component extends LightningElement {
2
- showTemplateOne: boolean;
3
- render(): any;
4
- }
5
- import { LightningElement } from "lwc";
6
- //# sourceMappingURL=component.d.ts.map
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const lwc_1 = require("lwc");
13
- const component_html_1 = __importDefault(require("./component.html"));
14
- class Component extends lwc_1.LightningElement {
15
- constructor() {
16
- super(...arguments);
17
- this.showTemplateOne = true;
18
- }
19
- render() {
20
- return component_html_1.default;
21
- }
22
- }
23
- __decorate([
24
- lwc_1.api
25
- ], Component.prototype, "showTemplateOne", void 0);
26
- exports.default = Component;
27
- //# sourceMappingURL=component.js.map
@@ -1,15 +0,0 @@
1
- export default class KomaciAction extends LightningElement {
2
- recordId: any;
3
- temp: string;
4
- accountQuery: any;
5
- contactQuery: any;
6
- get gqlFromGetter(): any;
7
- get badGqlFromGetter(): any;
8
- get variables(): {
9
- id: any;
10
- };
11
- graphqlRecord: any;
12
- graphqlContactRecord: any;
13
- }
14
- import { LightningElement } from "lwc";
15
- //# sourceMappingURL=component.d.ts.map
@@ -1,104 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- const lwc_1 = require("lwc");
10
- //an import to gql will still get hoisted since contactQuery will not be getting swapped out.
11
- const uiGraphQLApi_1 = require("lightning/uiGraphQLApi");
12
- class KomaciAction extends lwc_1.LightningElement {
13
- constructor() {
14
- super(...arguments);
15
- this.temp = 'temp';
16
- //Valid Query, all on one line.
17
- // prettier-ignore
18
- this.accountQuery = (0, uiGraphQLApi_1.gql) `query accountById($id: ID) {uiapi {query {Account(where: { Id: { eq: $id } }) @category(name: "recordQuery") {edges {node { Name @category(name: "StringValue") {valuedisplayValue}}}}}}}`;
19
- //cannot apply metaschema directives, has expressions
20
- this.contactQuery = (0, uiGraphQLApi_1.gql) `
21
- query accountById($id: ID) {
22
- uiapi {
23
- query {
24
- Contact(where: { Id: { eq: $id } }) @category(name: ${this.temp}) {
25
- edges {
26
- node {
27
- Name @category(name: "StringValue") {
28
- value
29
- displayValue
30
- }
31
- }
32
- }
33
- }
34
- }
35
- }
36
- }
37
- `;
38
- }
39
- //Getter with valid gql query, getter needs to return imported gql query.
40
- get gqlFromGetter() {
41
- return (0, uiGraphQLApi_1.gql) `
42
- query accountById($id: ID) {
43
- uiapi {
44
- query {
45
- Contact(where: { Id: { eq: $id } })
46
- @category(name: "recordQuery") {
47
- edges {
48
- node {
49
- Name @category(name: "StringValue") {
50
- value
51
- displayValue
52
- }
53
- }
54
- }
55
- }
56
- }
57
- }
58
- }
59
- `;
60
- }
61
- //cannot apply metaschema directives, has expressions
62
- get badGqlFromGetter() {
63
- return (0, uiGraphQLApi_1.gql) `
64
- query accountById($id: ID) {
65
- uiapi {
66
- query {
67
- Contact(where: { Id: { eq: $id } }) @category(name: "recordQuery") {
68
- edges {
69
- node {
70
- Name @category(name: ${this.temp}) {
71
- value
72
- displayValue
73
- }
74
- }
75
- }
76
- }
77
- }
78
- }
79
- }
80
- `;
81
- }
82
- get variables() {
83
- return {
84
- id: this.recordId,
85
- };
86
- }
87
- }
88
- __decorate([
89
- lwc_1.api
90
- ], KomaciAction.prototype, "recordId", void 0);
91
- __decorate([
92
- (0, lwc_1.wire)(uiGraphQLApi_1.unstable_graphql, {
93
- query: '$accountQuery',
94
- variables: '$variables',
95
- })
96
- ], KomaciAction.prototype, "graphqlRecord", void 0);
97
- __decorate([
98
- (0, lwc_1.wire)(uiGraphQLApi_1.unstable_graphql, {
99
- query: '$contactQuery',
100
- variables: '$variables',
101
- })
102
- ], KomaciAction.prototype, "graphqlContactRecord", void 0);
103
- exports.default = KomaciAction;
104
- //# sourceMappingURL=component.js.map
@@ -1,8 +0,0 @@
1
- export default class ScriptTestClass {
2
- }
3
- export class TestClass0 {
4
- }
5
- export class TestClass1 {
6
- get getterProp(): any;
7
- }
8
- //# sourceMappingURL=actual.d.ts.map
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TestClass1 = exports.TestClass0 = void 0;
4
- const foo_1 = require("lightning/foo");
5
- class ScriptTestClass extends foo_1.Foo {
6
- }
7
- exports.default = ScriptTestClass;
8
- class TestClass0 extends foo_1.Foo {
9
- }
10
- exports.TestClass0 = TestClass0;
11
- class TestClass1 extends foo_1.Bar {
12
- get getterProp() {
13
- return foo_1.Foo;
14
- }
15
- }
16
- exports.TestClass1 = TestClass1;
17
- //# sourceMappingURL=actual.js.map
@@ -1,4 +0,0 @@
1
- export default class ScriptTestClass {
2
- get getterProp(): any;
3
- }
4
- //# sourceMappingURL=actual.d.ts.map
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const shared_1 = __importDefault(require("force/shared"));
7
- class ScriptTestClass extends shared_1.default {
8
- get getterProp() {
9
- return shared_1.default;
10
- }
11
- }
12
- exports.default = ScriptTestClass;
13
- //# sourceMappingURL=actual.js.map
@@ -1,4 +0,0 @@
1
- export default class ScriptTestClass {
2
- get getterProp(): any;
3
- }
4
- //# sourceMappingURL=actual.d.ts.map
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const shared_1 = require("force/shared");
4
- class ScriptTestClass extends shared_1.Foo {
5
- get getterProp() {
6
- return shared_1.myConst;
7
- }
8
- }
9
- exports.default = ScriptTestClass;
10
- //# sourceMappingURL=actual.js.map
@@ -1,30 +0,0 @@
1
- export default class ScriptTestClass extends LightningElement {
2
- propNumber: number;
3
- propString: string;
4
- propBooleanTrue: boolean;
5
- propBooleanFalse: boolean;
6
- propNull: null;
7
- propUndefined: undefined;
8
- propNoInitValue: any;
9
- propUnresolved: number;
10
- propImport: any;
11
- propObject: {
12
- prop1: number;
13
- nested: {
14
- prop2: any;
15
- };
16
- };
17
- propArray: any[];
18
- templatedProp: any;
19
- get propGetterNumber(): number;
20
- get propComputed(): number;
21
- get propGetterArray(): any[];
22
- get propPrivateState(): string;
23
- testProp: any;
24
- get variables(): {
25
- id: any;
26
- };
27
- get record(): any;
28
- }
29
- import { LightningElement } from "lwc";
30
- //# sourceMappingURL=actual.d.ts.map
@@ -1,103 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- const lwc_1 = require("lwc");
10
- const transformWire_1 = require("laf/transformWire");
11
- const shared_1 = require("force/shared");
12
- class ScriptTestClass extends lwc_1.LightningElement {
13
- constructor() {
14
- super(...arguments);
15
- this.propNumber = 5;
16
- this.propString = 'five';
17
- this.propBooleanTrue = true;
18
- this.propBooleanFalse = false;
19
- this.propNull = null;
20
- this.propUndefined = undefined;
21
- // non-analyzable initial value
22
- this.propUnresolved = 5 + 5;
23
- this.propImport = transformWire_1.myResource1;
24
- this.propObject = { prop1: 5, nested: { prop2: transformWire_1.myResource1 } };
25
- this.propArray = [5, 'five', transformWire_1.myResource2, {}];
26
- this.templatedProp = (0, shared_1.gql) `A prop that uses templates to reference stuff ${this.propNumber} ${this.propString.substring(1)} ${transformWire_1.myResource1}`;
27
- }
28
- get propGetterNumber() {
29
- return 5;
30
- }
31
- get propComputed() {
32
- return 5 + 5;
33
- }
34
- get propGetterArray() {
35
- return [5, 'five', transformWire_1.myResource1, { prop1: 'myProp1' }];
36
- }
37
- get propPrivateState() {
38
- return this.propString;
39
- }
40
- get variables() {
41
- return {
42
- id: this.record,
43
- };
44
- }
45
- get record() {
46
- if (this.recordId) {
47
- return this.recordId;
48
- }
49
- return '';
50
- }
51
- }
52
- __decorate([
53
- lwc_1.api
54
- ], ScriptTestClass.prototype, "propNumber", void 0);
55
- __decorate([
56
- lwc_1.api
57
- ], ScriptTestClass.prototype, "propString", void 0);
58
- __decorate([
59
- lwc_1.api
60
- ], ScriptTestClass.prototype, "propBooleanTrue", void 0);
61
- __decorate([
62
- lwc_1.api
63
- ], ScriptTestClass.prototype, "propBooleanFalse", void 0);
64
- __decorate([
65
- lwc_1.api
66
- ], ScriptTestClass.prototype, "propNull", void 0);
67
- __decorate([
68
- lwc_1.api
69
- ], ScriptTestClass.prototype, "propUndefined", void 0);
70
- __decorate([
71
- lwc_1.api
72
- ], ScriptTestClass.prototype, "propNoInitValue", void 0);
73
- __decorate([
74
- lwc_1.api
75
- ], ScriptTestClass.prototype, "propUnresolved", void 0);
76
- __decorate([
77
- lwc_1.track
78
- ], ScriptTestClass.prototype, "propImport", void 0);
79
- __decorate([
80
- lwc_1.api
81
- ], ScriptTestClass.prototype, "propGetterNumber", null);
82
- __decorate([
83
- (0, lwc_1.wire)(transformWire_1.myResource1, {
84
- propNumber: '$propNumber',
85
- propString: '$propString',
86
- propBooleanTrue: '$propBooleanTrue',
87
- propBooleanFalse: '$propBooleanFalse',
88
- propNull: '$propNull',
89
- propUndefined: '$propUndefined',
90
- propNoInitValue: '$propNoInitValue',
91
- propUnresolved: '$propUnresolved',
92
- propImport: '$propImport',
93
- propObject: '$propObject',
94
- propArray: '$propArray',
95
- propGetterNumber: '$propGetterNumber',
96
- propComputed: '$propComputed',
97
- propGetterArray: '$propGetterArray',
98
- propPrivateState: '$propPrivateState',
99
- templatedProp: '$templatedProp',
100
- })
101
- ], ScriptTestClass.prototype, "testProp", void 0);
102
- exports.default = ScriptTestClass;
103
- //# sourceMappingURL=actual.js.map
@@ -1,4 +0,0 @@
1
- export default class ScriptTestClass extends LightningElement {
2
- }
3
- import { LightningElement } from "lwc";
4
- //# sourceMappingURL=actual.d.ts.map