@salesforce/templates 66.13.2 → 66.13.4
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.
- package/lib/templates/project/angularextapp/CHANGELOG.md +40 -0
- package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/package-lock.json +202 -206
- package/lib/templates/project/angularextapp/package.json +1 -1
- package/lib/templates/project/angularintapp/CHANGELOG.md +40 -0
- package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/package-lock.json +205 -209
- package/lib/templates/project/angularintapp/package.json +1 -1
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/package-lock.json +173 -180
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/package-lock.json +173 -180
- package/lib/templates/uiBundles/angularbasic/.graphqlrc.yml +2 -0
- package/lib/templates/uiBundles/angularbasic/angular.json +7 -2
- package/lib/templates/uiBundles/angularbasic/codegen.yml +95 -0
- package/lib/templates/uiBundles/angularbasic/esbuild/graphql-codegen.mjs +13 -0
- package/lib/templates/uiBundles/angularbasic/package-lock.json +448 -361
- package/lib/templates/uiBundles/angularbasic/package.json +9 -2
- package/lib/templates/uiBundles/angularbasic/scripts/get-graphql-schema.mjs +69 -0
- package/lib/templates/uiBundles/angularbasic/src/app/app.routes.ts +3 -3
- package/lib/templates/uiBundles/angularbasic/src/app/components/layout/app-layout/{app-layout.component.spec.ts → app-layout.spec.ts} +1 -1
- package/lib/templates/uiBundles/angularbasic/src/app/components/layout/app-layout/{app-layout.component.ts → app-layout.ts} +1 -1
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/alert/{alert.component.ts → alert.ts} +1 -1
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/button/{button.component.ts → button.ts} +2 -2
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/card/{card.component.ts → card.ts} +1 -1
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/collapsible/{collapsible.component.ts → collapsible.ts} +1 -1
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/date-picker/{date-picker.component.ts → date-picker.ts} +2 -2
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/date-range-picker/{date-range-picker.component.ts → date-range-picker.ts} +2 -2
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/dialog/{dialog.component.ts → dialog.ts} +1 -1
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/field/{field.component.ts → field.ts} +1 -1
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/input/{input.component.ts → input.ts} +2 -2
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/label/{label.component.ts → label.ts} +1 -1
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/paginator/{paginator.component.ts → paginator.ts} +1 -1
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/popover/{popover.component.ts → popover.ts} +1 -1
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/select/{select.component.ts → select.ts} +2 -2
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/separator/{separator.component.ts → separator.ts} +2 -2
- package/lib/templates/uiBundles/angularbasic/src/app/components/ui/skeleton/{skeleton.component.ts → skeleton.ts} +2 -2
- package/lib/templates/uiBundles/angularbasic/src/app/pages/home/{home.component.spec.ts → home.spec.ts} +1 -1
- package/lib/templates/uiBundles/angularbasic/src/app/pages/home/{home.component.ts → home.ts} +1 -1
- package/lib/templates/uiBundles/angularbasic/src/app/pages/not-found/{not-found.component.spec.ts → not-found.spec.ts} +1 -1
- package/lib/templates/uiBundles/angularbasic/src/app/pages/not-found/{not-found.component.ts → not-found.ts} +1 -1
- package/lib/templates/uiBundles/reactbasic/package-lock.json +173 -180
- package/package.json +7 -7
- /package/lib/templates/uiBundles/angularbasic/src/app/components/layout/app-layout/{app-layout.component.html → app-layout.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/alert/{alert.component.html → alert.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/button/{button.component.html → button.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/button/{button.component.scss → button.scss} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/card/{card.component.scss → card.scss} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/collapsible/{collapsible.component.html → collapsible.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/date-picker/{date-picker.component.html → date-picker.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/date-picker/{date-picker.component.scss → date-picker.scss} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/date-range-picker/{date-range-picker.component.html → date-range-picker.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/date-range-picker/{date-range-picker.component.scss → date-range-picker.scss} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/dialog/{dialog.component.html → dialog.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/field/{field.component.html → field.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/input/{input.component.html → input.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/input/{input.component.scss → input.scss} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/label/{label.component.html → label.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/paginator/{paginator.component.html → paginator.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/popover/{popover.component.html → popover.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/select/{select.component.html → select.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/select/{select.component.scss → select.scss} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/separator/{separator.component.html → separator.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/separator/{separator.component.scss → separator.scss} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/skeleton/{skeleton.component.html → skeleton.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/skeleton/{skeleton.component.scss → skeleton.scss} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/components/ui/spinner/{spinner.component.ts → spinner.ts} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/pages/home/{home.component.html → home.html} +0 -0
- /package/lib/templates/uiBundles/angularbasic/src/app/pages/not-found/{not-found.component.html → not-found.html} +0 -0
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
"version": 1,
|
|
4
4
|
"cli": {
|
|
5
5
|
"packageManager": "npm",
|
|
6
|
-
"analytics": false
|
|
6
|
+
"analytics": false,
|
|
7
|
+
"cache": {
|
|
8
|
+
"enabled": false
|
|
9
|
+
}
|
|
7
10
|
},
|
|
8
11
|
"newProjectRoot": "projects",
|
|
9
12
|
"projects": {
|
|
@@ -40,10 +43,11 @@
|
|
|
40
43
|
"silenceDeprecations": ["import"]
|
|
41
44
|
}
|
|
42
45
|
},
|
|
43
|
-
"plugins": [
|
|
46
|
+
"plugins": []
|
|
44
47
|
},
|
|
45
48
|
"configurations": {
|
|
46
49
|
"production": {
|
|
50
|
+
"plugins": ["./esbuild/api-version.mjs"],
|
|
47
51
|
"budgets": [
|
|
48
52
|
{
|
|
49
53
|
"type": "anyComponentStyle",
|
|
@@ -61,6 +65,7 @@
|
|
|
61
65
|
}
|
|
62
66
|
},
|
|
63
67
|
"development": {
|
|
68
|
+
"plugins": ["./esbuild/graphql-codegen.mjs"],
|
|
64
69
|
"optimization": false,
|
|
65
70
|
"extractLicenses": false,
|
|
66
71
|
"sourceMap": true
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
schema: '../../../../../schema.graphql'
|
|
2
|
+
documents: 'src/**/*.{graphql,ts}'
|
|
3
|
+
generates:
|
|
4
|
+
src/app/api/graphql-operations-types.ts:
|
|
5
|
+
plugins:
|
|
6
|
+
- 'graphql-codegen-typescript-operation-types'
|
|
7
|
+
- 'typescript-operations'
|
|
8
|
+
config:
|
|
9
|
+
onlyOperationTypes: true
|
|
10
|
+
skipTypename: true
|
|
11
|
+
preResolveTypes: true
|
|
12
|
+
scalars:
|
|
13
|
+
# String-serialized scalars
|
|
14
|
+
JSON:
|
|
15
|
+
input: 'string'
|
|
16
|
+
output: 'string'
|
|
17
|
+
Date:
|
|
18
|
+
input: 'string'
|
|
19
|
+
output: 'string'
|
|
20
|
+
DateTime:
|
|
21
|
+
input: 'string'
|
|
22
|
+
output: 'string'
|
|
23
|
+
Time:
|
|
24
|
+
input: 'string'
|
|
25
|
+
output: 'string'
|
|
26
|
+
Email:
|
|
27
|
+
input: 'string'
|
|
28
|
+
output: 'string'
|
|
29
|
+
Url:
|
|
30
|
+
input: 'string'
|
|
31
|
+
output: 'string'
|
|
32
|
+
PhoneNumber:
|
|
33
|
+
input: 'string'
|
|
34
|
+
output: 'string'
|
|
35
|
+
Picklist:
|
|
36
|
+
input: 'string'
|
|
37
|
+
output: 'string'
|
|
38
|
+
MultiPicklist:
|
|
39
|
+
input: 'string'
|
|
40
|
+
output: 'string'
|
|
41
|
+
TextArea:
|
|
42
|
+
input: 'string'
|
|
43
|
+
output: 'string'
|
|
44
|
+
LongTextArea:
|
|
45
|
+
input: 'string'
|
|
46
|
+
output: 'string'
|
|
47
|
+
RichTextArea:
|
|
48
|
+
input: 'string'
|
|
49
|
+
output: 'string'
|
|
50
|
+
EncryptedString:
|
|
51
|
+
input: 'string'
|
|
52
|
+
output: 'string'
|
|
53
|
+
Base64:
|
|
54
|
+
input: 'string'
|
|
55
|
+
output: 'string'
|
|
56
|
+
IdOrRef:
|
|
57
|
+
input: 'string'
|
|
58
|
+
output: 'string'
|
|
59
|
+
# BigDecimal-serialized scalars (accepts number or string, returns number)
|
|
60
|
+
Currency:
|
|
61
|
+
input: 'number | string'
|
|
62
|
+
output: 'number'
|
|
63
|
+
BigDecimal:
|
|
64
|
+
input: 'number | string'
|
|
65
|
+
output: 'number'
|
|
66
|
+
Double:
|
|
67
|
+
input: 'number | string'
|
|
68
|
+
output: 'number'
|
|
69
|
+
Percent:
|
|
70
|
+
input: 'number | string'
|
|
71
|
+
output: 'number'
|
|
72
|
+
Longitude:
|
|
73
|
+
input: 'number | string'
|
|
74
|
+
output: 'number'
|
|
75
|
+
Latitude:
|
|
76
|
+
input: 'number | string'
|
|
77
|
+
output: 'number'
|
|
78
|
+
# Integer-like scalars
|
|
79
|
+
Long:
|
|
80
|
+
input: 'number'
|
|
81
|
+
output: 'number'
|
|
82
|
+
BigInteger:
|
|
83
|
+
input: 'number'
|
|
84
|
+
output: 'number'
|
|
85
|
+
Short:
|
|
86
|
+
input: 'number'
|
|
87
|
+
output: 'number'
|
|
88
|
+
Byte:
|
|
89
|
+
input: 'number'
|
|
90
|
+
output: 'number'
|
|
91
|
+
Char:
|
|
92
|
+
input: 'number'
|
|
93
|
+
output: 'number'
|
|
94
|
+
overwrite: true
|
|
95
|
+
ignoreNoDocuments: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GraphQL Codegen esbuild plugin — runs codegen on build start.
|
|
3
|
+
*
|
|
4
|
+
* Resolves GraphQL operations into typed TypeScript at build time using the
|
|
5
|
+
* project's `codegen.yml` configuration. Re-runs on every rebuild during
|
|
6
|
+
* `ng serve` so generated types stay in sync with schema/document changes.
|
|
7
|
+
*
|
|
8
|
+
* Referenced from angular.json: architect.build.options.plugins[].
|
|
9
|
+
*/
|
|
10
|
+
import { createGraphQLCodegenPlugin } from '@salesforce/angular-plugin-ui-bundle';
|
|
11
|
+
|
|
12
|
+
const plugin = createGraphQLCodegenPlugin();
|
|
13
|
+
export default plugin;
|