@pega/custom-dx-components 0.23.6 → 0.23.8
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/package.json +1 -1
- package/src/auth.js +9 -3
- package/src/tasks/authenticate/index.js +42 -39
- package/src/tasks/build/helper.js +5 -19
- package/src/tasks/bundle/builder/webpack.config.js +2 -4
- package/src/tasks/create/templates/Constellation/Field/Boolean/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Field/Date/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Field/DateTime/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Field/Decimal/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Field/Integer/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Field/Picklist/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Field/Text/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Template/FORM/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Template/PAGE/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Widget/CASE/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.js.mustache +13 -6
- package/src/tasks/create-all/index.js +51 -116
- package/src/tasks/init/index.js +5 -1
- package/src/tasks/init/template/package.json.mustache +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyBoolean/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyBoolean/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyCaseWidget/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyCaseWidget/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyCurrency/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyCurrency/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDate/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDate/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDateTime/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDateTime/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDecimal/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDecimal/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDetails/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDetails/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyEmail/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyEmail/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyForm/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyForm/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyInteger/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyInteger/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPage/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPage/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageCaseWidget/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageCaseWidget/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageWidget/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageWidget/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyParagraph/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyParagraph/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPercentage/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPercentage/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPhone/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPhone/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPicklist/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPicklist/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyText/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyText/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTextInput/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTextInput/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTimeOfDay/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTimeOfDay/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTwoColumnDetails/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTwoColumnDetails/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTwoColumnForm/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTwoColumnForm/styles.js +13 -6
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyURL/config.json +2 -2
- package/src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyURL/styles.js +13 -6
- package/src/tasks/init/template/test/functionTest/localCreateAllListDeleteAll.test.js +1 -1
- package/src/tasks/list/helper.js +10 -8
- package/src/tasks/publish/helper.js +16 -30
- package/src/tasks/publish-all/helper.js +9 -27
- package/src/util.js +43 -78
package/package.json
CHANGED
package/src/auth.js
CHANGED
|
@@ -622,9 +622,15 @@ class PegaAuth {
|
|
|
622
622
|
* Return agent value for POST commands
|
|
623
623
|
*/
|
|
624
624
|
#getAgent() {
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
625
|
+
if (this.isNode && this.config.ignoreInvalidCerts) {
|
|
626
|
+
let options = {rejectUnauthorized: false};
|
|
627
|
+
if (this.config.legacyTLS) {
|
|
628
|
+
options.secureOptions = this.crypto.constants.SSL_OP_LEGACY_SERVER_CONNECT;
|
|
629
|
+
}
|
|
630
|
+
return new this.https.Agent(options);
|
|
631
|
+
} else {
|
|
632
|
+
return undefined;
|
|
633
|
+
}
|
|
628
634
|
}
|
|
629
635
|
}
|
|
630
636
|
|
|
@@ -6,19 +6,18 @@ import inquirer from 'inquirer';
|
|
|
6
6
|
|
|
7
7
|
import { checkPathAccess, showVersion } from '../../util.js';
|
|
8
8
|
import { TOKEN_PATH, INF_TOKEN_URL_V1, INF_AUTHORIZE_URL_V1, LP_TOKEN_URL, LP_AUTHORIZE_URL } from '../../constants.js';
|
|
9
|
+
import PegaAuth from '../../auth.js';
|
|
9
10
|
|
|
10
11
|
import { getAuthQuestions } from './helper.js';
|
|
11
|
-
import PegaAuth from '../../auth.js';
|
|
12
12
|
|
|
13
13
|
export const TASKS_CONFIG_JSON_FILENAME = 'tasks.config.json';
|
|
14
14
|
|
|
15
15
|
const pegaConfigJsonPath = path.join(path.resolve(), TASKS_CONFIG_JSON_FILENAME);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const generateAccessToken = async config => {
|
|
16
|
+
const server = null;
|
|
19
17
|
|
|
18
|
+
const generateAccessToken = async (config) => {
|
|
20
19
|
let authSuccess = false;
|
|
21
|
-
const { serverType, authService, isolationId, grantType, clientId, clientSecret, user, password } = config;
|
|
20
|
+
const { serverType, authService, isolationId, grantType, clientId, clientSecret, user, password, legacyTLS } = config;
|
|
22
21
|
// Try to gracefully deal with missing trailing slashes for server (and later conditionally for redirectUri)
|
|
23
22
|
const server = config.server.endsWith('/') ? config.server : `${config.server}/`;
|
|
24
23
|
|
|
@@ -50,26 +49,32 @@ const generateAccessToken = async config => {
|
|
|
50
49
|
<div style="padding: 10px;">
|
|
51
50
|
</div>`;
|
|
52
51
|
|
|
53
|
-
const authCodeConfig =
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
52
|
+
const authCodeConfig =
|
|
53
|
+
grantType === 'authCode'
|
|
54
|
+
? {
|
|
55
|
+
authorizeUri: sAuthorizeUri,
|
|
56
|
+
redirectUri: config.redirectUri.endsWith('/') ? config.redirectUri : `${config.redirectUri}/`,
|
|
57
|
+
cert: config.cert,
|
|
58
|
+
key: config.key,
|
|
59
|
+
winTitle: 'DX Component Dev',
|
|
60
|
+
winBodyHtml: browserAuthSuccessMarkup
|
|
61
|
+
}
|
|
62
|
+
: {};
|
|
61
63
|
|
|
62
64
|
// Build auth config structure
|
|
63
65
|
const authConfig = {
|
|
64
|
-
serverType
|
|
65
|
-
authService
|
|
66
|
-
grantType
|
|
66
|
+
serverType,
|
|
67
|
+
authService,
|
|
68
|
+
grantType,
|
|
67
69
|
tokenUri: sTokenUri,
|
|
68
|
-
clientId
|
|
69
|
-
clientSecret
|
|
70
|
+
clientId,
|
|
71
|
+
clientSecret,
|
|
70
72
|
ignoreInvalidCerts: true,
|
|
71
73
|
...authCodeConfig
|
|
72
74
|
};
|
|
75
|
+
if (legacyTLS) {
|
|
76
|
+
authConfig.legacyTLS = true;
|
|
77
|
+
}
|
|
73
78
|
if (serverType === 'infinity') {
|
|
74
79
|
if (grantType !== 'clientCreds' && user && password) {
|
|
75
80
|
authConfig.userIdentifier = user;
|
|
@@ -84,14 +89,17 @@ const generateAccessToken = async config => {
|
|
|
84
89
|
try {
|
|
85
90
|
const auth = new PegaAuth(authConfig);
|
|
86
91
|
if (grantType === 'authCode') {
|
|
87
|
-
console.log(
|
|
92
|
+
console.log(
|
|
93
|
+
`${chalk.green('Awaiting authorization to complete (Ctrl-C to exit). You may need to enter credentials within your default browser.')}`
|
|
94
|
+
);
|
|
88
95
|
}
|
|
89
96
|
// console.log(`authConfig: ${JSON.stringify(authConfig)}`);
|
|
90
97
|
|
|
91
|
-
auth
|
|
98
|
+
auth
|
|
99
|
+
.login()
|
|
92
100
|
.then((token) => {
|
|
93
101
|
if (token?.token_type) {
|
|
94
|
-
fs.writeFile(TOKEN_PATH, JSON.stringify(token), err => {
|
|
102
|
+
fs.writeFile(TOKEN_PATH, JSON.stringify(token), (err) => {
|
|
95
103
|
if (err) {
|
|
96
104
|
console.error(err);
|
|
97
105
|
return reject(authSuccess);
|
|
@@ -101,32 +109,29 @@ const generateAccessToken = async config => {
|
|
|
101
109
|
return resolve(authSuccess);
|
|
102
110
|
});
|
|
103
111
|
} else {
|
|
104
|
-
console.log(`${chalk.bold.red(
|
|
112
|
+
console.log(`${chalk.bold.red(`Authentication failed:${JSON.stringify(token.errors ? token.errors : token)}`)}`);
|
|
105
113
|
return reject(authSuccess);
|
|
106
114
|
}
|
|
107
115
|
})
|
|
108
116
|
.catch((e) => {
|
|
109
|
-
console.log(`${chalk.bold.red(
|
|
117
|
+
console.log(`${chalk.bold.red(`Authentication failed:${e}`)}`);
|
|
110
118
|
return reject(authSuccess);
|
|
111
119
|
});
|
|
112
|
-
|
|
113
120
|
} catch (e) {
|
|
114
121
|
console.log(`Authentication failed: Problem initializing OAuth library`);
|
|
115
122
|
return reject(authSuccess);
|
|
116
123
|
}
|
|
117
|
-
|
|
118
124
|
});
|
|
119
125
|
};
|
|
120
126
|
|
|
121
|
-
export default async options => {
|
|
122
|
-
|
|
127
|
+
export default async (options) => {
|
|
123
128
|
let authOK = false;
|
|
124
129
|
|
|
125
130
|
showVersion();
|
|
126
131
|
|
|
127
132
|
await checkPathAccess(pegaConfigJsonPath);
|
|
128
133
|
|
|
129
|
-
|
|
134
|
+
const cfgData = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });
|
|
130
135
|
let data = null;
|
|
131
136
|
if (cfgData) {
|
|
132
137
|
try {
|
|
@@ -138,7 +143,7 @@ export default async options => {
|
|
|
138
143
|
}
|
|
139
144
|
|
|
140
145
|
const serverConfig = data['server-config'];
|
|
141
|
-
const isPwdNonEmpty = serverConfig
|
|
146
|
+
const isPwdNonEmpty = !!serverConfig.password;
|
|
142
147
|
|
|
143
148
|
// console.log(`serverConfig: ${JSON.stringify(serverConfig)}`);
|
|
144
149
|
const questions = await getAuthQuestions(serverConfig);
|
|
@@ -147,7 +152,7 @@ export default async options => {
|
|
|
147
152
|
const aAsked = answers.aAsked;
|
|
148
153
|
delete answers.aAsked;
|
|
149
154
|
const aProps = ['serverType', 'server', 'isolationId', 'clientId', 'grantType', 'authService', 'redirectUri', 'clientSecret', 'user', 'password'];
|
|
150
|
-
const isLaunchPad = answers.serverType ===
|
|
155
|
+
const isLaunchPad = answers.serverType === 'launchpad';
|
|
151
156
|
let bWriteUpdate = false;
|
|
152
157
|
for (let i = 0; i < aProps.length; i += 1) {
|
|
153
158
|
const prop = aProps[i];
|
|
@@ -163,8 +168,8 @@ export default async options => {
|
|
|
163
168
|
}
|
|
164
169
|
}
|
|
165
170
|
// Update the askedOnce array based on askOnce criteria
|
|
166
|
-
const aAskOnce = serverConfig
|
|
167
|
-
const aAskedOnce = serverConfig
|
|
171
|
+
const aAskOnce = serverConfig.questions_askOnce ? serverConfig.questions_askOnce.split(',') : [];
|
|
172
|
+
const aAskedOnce = serverConfig.questions_askedOnce ? serverConfig.questions_askedOnce.split(',') : [];
|
|
168
173
|
let bAskedOnceUpdated = false;
|
|
169
174
|
for (let j = 0; j < aAsked.length; j += 1) {
|
|
170
175
|
const prop = aAsked[j];
|
|
@@ -176,7 +181,7 @@ export default async options => {
|
|
|
176
181
|
}
|
|
177
182
|
// If askedOnce array was updated we need to update value in config
|
|
178
183
|
if (bAskedOnceUpdated) {
|
|
179
|
-
serverConfig
|
|
184
|
+
serverConfig.questions_askedOnce = aAskedOnce.join(',');
|
|
180
185
|
bWriteUpdate = true;
|
|
181
186
|
}
|
|
182
187
|
|
|
@@ -184,25 +189,23 @@ export default async options => {
|
|
|
184
189
|
// console.log(`serverConfig: ${JSON.stringify(serverConfig)}`);
|
|
185
190
|
authOK = await generateAccessToken(serverConfig);
|
|
186
191
|
} catch (e) {
|
|
187
|
-
console.log(`${chalk.bold.red(
|
|
192
|
+
console.log(`${chalk.bold.red(`Authentication failed:${JSON.stringify(e)}`)}`);
|
|
188
193
|
}
|
|
189
194
|
|
|
190
195
|
if (authOK & bWriteUpdate) {
|
|
191
196
|
// Don't write password value (unless it already had a value)
|
|
192
197
|
if (!isPwdNonEmpty) {
|
|
193
|
-
serverConfig
|
|
198
|
+
serverConfig.password = '';
|
|
194
199
|
}
|
|
195
200
|
console.log(`${chalk.green('Writing updated config...')}`);
|
|
196
201
|
let updCfg = null;
|
|
197
202
|
try {
|
|
198
203
|
updCfg = JSON.stringify(data, null, 2);
|
|
199
204
|
// console.log(`updated config: ${updCfg}`);
|
|
200
|
-
fs.writeFileSync(pegaConfigJsonPath, updCfg, err => {
|
|
205
|
+
fs.writeFileSync(pegaConfigJsonPath, updCfg, (err) => {
|
|
201
206
|
if (err) throw err;
|
|
202
207
|
});
|
|
203
|
-
} catch (e) {
|
|
204
|
-
|
|
205
|
-
}
|
|
208
|
+
} catch (e) {}
|
|
206
209
|
}
|
|
207
210
|
|
|
208
211
|
process.exit(1);
|
|
@@ -6,12 +6,7 @@ import fetch from 'node-fetch';
|
|
|
6
6
|
import AdmZip from 'adm-zip';
|
|
7
7
|
import chalk from 'chalk';
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
constructCompleteUrl,
|
|
11
|
-
getComponentDirectoryPath,
|
|
12
|
-
getComponents,
|
|
13
|
-
getPegaServerConfig
|
|
14
|
-
} from '../../util.js';
|
|
9
|
+
import { constructCompleteUrl, getComponentDirectoryPath, getComponents, getPegaServerConfig, getHttpsAgent } from '../../util.js';
|
|
15
10
|
import { PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT, TOKEN_PATH } from '../../constants.js';
|
|
16
11
|
|
|
17
12
|
export const getPublishComponentQuestions = async () => {
|
|
@@ -81,22 +76,15 @@ export const publishComponentToServer = async (data) => {
|
|
|
81
76
|
category: ''
|
|
82
77
|
};
|
|
83
78
|
const defaultPegaConfig = await getPegaServerConfig();
|
|
84
|
-
const url = constructCompleteUrl(
|
|
85
|
-
defaultPegaConfig.server,
|
|
86
|
-
PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT
|
|
87
|
-
);
|
|
79
|
+
const url = constructCompleteUrl(defaultPegaConfig.server, PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT);
|
|
88
80
|
try {
|
|
89
81
|
const OauthData = fs.readFileSync(TOKEN_PATH, 'utf8');
|
|
90
82
|
if (OauthData) {
|
|
91
|
-
const {
|
|
92
|
-
access_token: accessToken,
|
|
93
|
-
token_type: tokenType,
|
|
94
|
-
refresh_token: refreshToken
|
|
95
|
-
} = JSON.parse(OauthData);
|
|
83
|
+
const { access_token: accessToken, token_type: tokenType, refresh_token: refreshToken } = JSON.parse(OauthData);
|
|
96
84
|
let status = 500;
|
|
97
85
|
fetch(url, {
|
|
98
86
|
method: 'POST',
|
|
99
|
-
agent:
|
|
87
|
+
agent: getHttpsAgent(defaultPegaConfig),
|
|
100
88
|
headers: {
|
|
101
89
|
Authorization: `${tokenType} ${accessToken}`
|
|
102
90
|
},
|
|
@@ -109,9 +97,7 @@ export const publishComponentToServer = async (data) => {
|
|
|
109
97
|
.then((resp) => {
|
|
110
98
|
const respData = JSON.parse(resp);
|
|
111
99
|
if (status === 401) {
|
|
112
|
-
throw new Error(
|
|
113
|
-
'Error occurred in authentication. Please regenerate using authenticate'
|
|
114
|
-
);
|
|
100
|
+
throw new Error('Error occurred in authentication. Please regenerate using authenticate');
|
|
115
101
|
// console.log(accessTokenUri, refreshToken);
|
|
116
102
|
/* TODO - Handle refresh_token */
|
|
117
103
|
} else if (status === 200) {
|
|
@@ -49,7 +49,7 @@ export default (
|
|
|
49
49
|
{ inputFile, outputFile, componentKey, externals, globals, sourceMap, devBuild }
|
|
50
50
|
) => {
|
|
51
51
|
const isEnvDevelopment = webpackEnv === 'development' || devBuild;
|
|
52
|
-
const isEnvProduction = webpackEnv === 'production';
|
|
52
|
+
const isEnvProduction = webpackEnv === 'production' || !devBuild;
|
|
53
53
|
sourceMap = sourceMap === 'true';
|
|
54
54
|
shouldUseSourceMap = shouldUseSourceMap || sourceMap;
|
|
55
55
|
|
|
@@ -115,9 +115,7 @@ export default (
|
|
|
115
115
|
path: paths.appBuild,
|
|
116
116
|
// There will be one main bundle, and one file per asynchronous chunk.
|
|
117
117
|
// In development, it does not produce real files.
|
|
118
|
-
filename: isEnvProduction
|
|
119
|
-
? `${componentKey}/${componentKey}.js`
|
|
120
|
-
: isEnvDevelopment && `${componentKey}/${componentKey}.js`,
|
|
118
|
+
filename: isEnvProduction ? `${componentKey}/${componentKey}.js` : isEnvDevelopment && `${componentKey}/${componentKey}.js`,
|
|
121
119
|
chunkFilename: isEnvProduction
|
|
122
120
|
? `${componentKey}/js/[name].[contenthash:8].chunk.js`
|
|
123
121
|
: isEnvDevelopment && `${componentKey}/js/[name].chunk.js`,
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.js.mustache
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|