@wavemaker/rn-codegen 11.14.1-30.647738 → 11.14.1-32.647748
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/command.js +0 -6
- package/command.js.map +1 -1
- package/npm-shrinkwrap.json +37 -46
- package/package-lock.json +37 -46
- package/package.json +6 -3
- package/src/app.generator.js +8 -113
- package/src/app.generator.js.map +1 -1
- package/src/project.service.js +0 -8
- package/src/project.service.js.map +1 -1
- package/src/templates/app.template +37 -36
- package/src/templates/babel.config.js.template +3 -6
- package/src/templates/bootstrap.template +3 -3
- package/src/templates/package.web.json +3 -7
- package/src/templates/project/.npmrc +1 -0
- package/src/templates/project/app.json +3 -1
- package/src/templates/project/esbuild/esbuild.script.js +4 -35
- package/src/templates/project/package.json +3 -7
- package/src/templates/project/scripts/wm-babel.transform.plugin.js +11 -1
- package/src/theme/components/input/currency.styledef.js +0 -8
- package/src/theme/components/input/currency.styledef.js.map +1 -1
- package/src/theme/components/input/number.styledef.js +0 -30
- package/src/theme/components/input/number.styledef.js.map +1 -1
- package/src/theme/components/input/text.styledef.js +2 -121
- package/src/theme/components/input/text.styledef.js.map +1 -1
- package/src/theme/components/input/textarea.styledef.js +2 -62
- package/src/theme/components/input/textarea.styledef.js.map +1 -1
- package/src/theme/rn-stylesheet.transpiler.js +6 -30
- package/src/theme/rn-stylesheet.transpiler.js.map +1 -1
- package/src/transpile/components/container/tabs.transformer.js +1 -9
- package/src/transpile/components/container/tabs.transformer.js.map +1 -1
- package/src/transpile/components/container/wizard/wizardstep.transformer.js +10 -2
- package/src/transpile/components/container/wizard/wizardstep.transformer.js.map +1 -1
- package/src/transpile/components/data/form/form-field.transformer.js +1 -12
- package/src/transpile/components/data/form/form-field.transformer.js.map +1 -1
- package/src/transpile/property/property-parser.js +0 -9
- package/src/transpile/property/property-parser.js.map +1 -1
|
@@ -4,7 +4,7 @@ import * as POLLYFILL from './polyfills';
|
|
|
4
4
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
5
5
|
import "setimmediate";
|
|
6
6
|
|
|
7
|
-
import { Alert, View, ImageBackground, PanResponder, Linking, LogBox, Appearance } from 'react-native';
|
|
7
|
+
import { Alert, View, ImageBackground, PanResponder, Linking, LogBox, Appearance, Platform } from 'react-native';
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import moment from 'moment';
|
|
10
10
|
import * as _ from 'lodash';
|
|
@@ -30,7 +30,6 @@ import themeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';
|
|
|
30
30
|
import SecurityService from '@wavemaker/app-rn-runtime/runtime/services/app-security.service';
|
|
31
31
|
import AppI18nService from '@wavemaker/app-rn-runtime/runtime/services/app-i18n.service';
|
|
32
32
|
import WM from '@wavemaker/app-rn-runtime/runtime/platform.api';
|
|
33
|
-
import Environment from '@wavemaker/app-rn-runtime/core/environment';
|
|
34
33
|
|
|
35
34
|
import { getThemes, getSelectedTheme, hasAppTheme, setAppTheme, resolveThemeAsset } from './app.theme';
|
|
36
35
|
import styles from './app.style';
|
|
@@ -41,6 +40,7 @@ import ResourceResolver from './src/resolve/resource.resolver';
|
|
|
41
40
|
import WM_CUSTOM_FORMATTERS from './src/extensions/formatters';
|
|
42
41
|
import getAppVariables from './src/app.variables';
|
|
43
42
|
import bootstrap, { appConfig } from './bootstrap';
|
|
43
|
+
import { captureExternalLaunchUrl } from '@wavemaker/app-rn-runtime/runtime/services/browser.service';
|
|
44
44
|
{{#if enableWavePulse}}
|
|
45
45
|
import { createWavePulseAgent } from './wavepulse/wavepulse.agent';
|
|
46
46
|
{{/if}}
|
|
@@ -65,19 +65,6 @@ class App extends BaseApp {
|
|
|
65
65
|
_reloadApp();
|
|
66
66
|
};
|
|
67
67
|
WM.App = this;
|
|
68
|
-
this.profileGlobals = {
|
|
69
|
-
{{#each enabledProfiles}}
|
|
70
|
-
'{{this}}': require('./{{this}}.json'),
|
|
71
|
-
{{/each}}
|
|
72
|
-
};
|
|
73
|
-
// starts on Default Profile if set, else the first bundled profile.
|
|
74
|
-
this.loadGlobal(appConfig.defaultProfile && this.profileGlobals[appConfig.defaultProfile] ? appConfig.defaultProfile : Object.keys(this.profileGlobals)[0]);
|
|
75
|
-
Environment.registerLoadCallback(this.loadGlobal.bind(this));
|
|
76
|
-
Environment.getCurrentAsync().then(savedProfile => {
|
|
77
|
-
if (savedProfile && savedProfile !== this.currentProfile && this.profileGlobals[savedProfile]) {
|
|
78
|
-
this.loadGlobal(savedProfile);
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
68
|
this.timerId = false;
|
|
82
69
|
this.panResponder = PanResponder.create({
|
|
83
70
|
onStartShouldSetPanResponderCapture: () => {
|
|
@@ -97,26 +84,6 @@ class App extends BaseApp {
|
|
|
97
84
|
{{/if}}
|
|
98
85
|
}
|
|
99
86
|
|
|
100
|
-
loadGlobal(profileName) {
|
|
101
|
-
if (!this.profileGlobals[profileName]) {
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
Object.keys(this.Global).forEach(key => delete this.Global[key]);
|
|
105
|
-
Object.assign(this.Global, this.profileGlobals[profileName]);
|
|
106
|
-
this.currentProfile = profileName;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
setProfile(profileName) {
|
|
110
|
-
if (!this.profileGlobals[profileName]) {
|
|
111
|
-
return Promise.reject(new Error(`Profile "${profileName}" was not bundled with this build.`));
|
|
112
|
-
}
|
|
113
|
-
return Environment.setCurrent(profileName);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
getCurrentProfileAsync() {
|
|
117
|
-
return Environment.getCurrentAsync();
|
|
118
|
-
}
|
|
119
|
-
|
|
120
87
|
getSecurityInfo() {
|
|
121
88
|
{{#if profile.useLocalMetadata}}
|
|
122
89
|
const defaultSecurityConfig = require('./metadata/app/security-config.json');
|
|
@@ -297,6 +264,8 @@ class App extends BaseApp {
|
|
|
297
264
|
RNRestart && RNRestart.Restart();
|
|
298
265
|
}
|
|
299
266
|
this.appConfig.selectedLocale = newLocale;
|
|
267
|
+
// Set moment locale to match the app locale
|
|
268
|
+
moment.locale(newLocale);
|
|
300
269
|
{{#if profile.useLocalMetadata}}
|
|
301
270
|
return this.handleLocaleUrl(`i18n/${newLocale}.json`)
|
|
302
271
|
{{else}}
|
|
@@ -411,7 +380,21 @@ class App extends BaseApp {
|
|
|
411
380
|
}
|
|
412
381
|
{{/if}}
|
|
413
382
|
|
|
383
|
+
handleExternalLaunch(externalLaunch) {
|
|
384
|
+
if (!externalLaunch || externalLaunch.type === 'none') {
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
captureExternalLaunchUrl(externalLaunch.url, this.appConfig);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
componentDidUpdate(prevProps) {
|
|
391
|
+
if (prevProps.externalLaunch !== this.props.externalLaunch) {
|
|
392
|
+
this.handleExternalLaunch(this.props.externalLaunch);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
414
396
|
componentDidMount() {
|
|
397
|
+
this.handleExternalLaunch(this.props.externalLaunch);
|
|
415
398
|
{{#if animatedSplash}}
|
|
416
399
|
SplashScreen.hideAsync().then(() => {});{{/if}}
|
|
417
400
|
this.appConfig.getServiceDefinitions = this.getServiceDefinitions.bind(this);
|
|
@@ -436,6 +419,10 @@ class App extends BaseApp {
|
|
|
436
419
|
.then(() => AppI18nService.init())
|
|
437
420
|
.then(() => this.changeLocale( isWebPreviewMode() ? this.getDefaultLocale() : null ))
|
|
438
421
|
.then(() => {console.log('Locale files loaded')})
|
|
422
|
+
.then(() => {
|
|
423
|
+
// Set initial moment locale to match app locale
|
|
424
|
+
moment.locale(this.appConfig.selectedLocale || 'en');
|
|
425
|
+
})
|
|
439
426
|
.then(() => this.loadFonts())
|
|
440
427
|
.then(() => {console.log('Font files loaded')})
|
|
441
428
|
.then(() => initializeDeviceOperations())
|
|
@@ -545,6 +532,20 @@ export default (props) => {
|
|
|
545
532
|
props = props || {};
|
|
546
533
|
const [visible, setVisible] = useState(true);
|
|
547
534
|
const [isAppStarted, setIsAppStarted] = useState(false);
|
|
535
|
+
const [externalLaunch, setExternalLaunch] = useState({ type: 'none' });
|
|
536
|
+
|
|
537
|
+
useEffect(() => {
|
|
538
|
+
if (Platform.OS === 'web') {
|
|
539
|
+
return;
|
|
540
|
+
}
|
|
541
|
+
const handleLaunchUrl = (url) => {
|
|
542
|
+
setExternalLaunch(captureExternalLaunchUrl(url, appConfig));
|
|
543
|
+
};
|
|
544
|
+
Linking.getInitialURL().then(handleLaunchUrl);
|
|
545
|
+
const subscription = Linking.addEventListener('url', ({ url }) => handleLaunchUrl(url));
|
|
546
|
+
return () => subscription.remove();
|
|
547
|
+
}, []);
|
|
548
|
+
|
|
548
549
|
_reloadApp = useCallback(() => {
|
|
549
550
|
setVisible(false);
|
|
550
551
|
setTimeout(() => {
|
|
@@ -556,6 +557,6 @@ export default (props) => {
|
|
|
556
557
|
{{#if animatedSplash}}
|
|
557
558
|
{!isAppStarted ? <AnimatedSplash /> : null}
|
|
558
559
|
{{/if}}
|
|
559
|
-
<App {...props} onStart={() => setIsAppStarted(true)} />
|
|
560
|
+
<App {...props} externalLaunch={externalLaunch} onStart={() => setIsAppStarted(true)} />
|
|
560
561
|
</>) : {{#if animatedSplash}}(<AnimatedSplash />){{else}}(<></>){{/if}};
|
|
561
562
|
};
|
|
@@ -7,11 +7,8 @@ module.exports = function(api) {
|
|
|
7
7
|
plugins: [
|
|
8
8
|
{{#if enableLogs}} {{else}}'transform-remove-console', {{/if}}
|
|
9
9
|
'@babel/plugin-proposal-export-namespace-from',
|
|
10
|
-
{{#if isWeb}}'react-native-reanimated/plugin' {{else}}'react-native-worklets/plugin'{{/if}}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
test: './src',
|
|
14
|
-
plugins: ['./scripts/wm-babel.transform.plugin.js']
|
|
15
|
-
}]
|
|
10
|
+
{{#if isWeb}}'react-native-reanimated/plugin' {{else}}'react-native-worklets/plugin'{{/if}},
|
|
11
|
+
'./scripts/wm-babel.transform.plugin.js'
|
|
12
|
+
]
|
|
16
13
|
};
|
|
17
14
|
};
|
|
@@ -19,6 +19,7 @@ import * as config from './wm_rn_config.json';
|
|
|
19
19
|
|
|
20
20
|
export const appConfig = {
|
|
21
21
|
url : config.serverPath !== 'http://NOSERVERREQUIRED.com' ? config.serverPath : null,
|
|
22
|
+
appId: config.id,
|
|
22
23
|
theme: appTheme,
|
|
23
24
|
preferences: config.preferences,
|
|
24
25
|
splash: config.splash,
|
|
@@ -34,11 +35,10 @@ export const appConfig = {
|
|
|
34
35
|
},
|
|
35
36
|
revertLayoutToExpo50: config.revertLayoutToExpo50,
|
|
36
37
|
edgeToEdgeConfig:config.edgeToEdgeConfig,
|
|
38
|
+
browserConfig: config.browserConfig,
|
|
37
39
|
disableNavigationAnimation:config.disableNavigationAnimation,
|
|
38
40
|
detachInactiveScreens:config.detachInactiveScreens,
|
|
39
|
-
isLegacyTappable:config.isLegacyTappable
|
|
40
|
-
enablePageCache:config.enablePageCache,
|
|
41
|
-
defaultProfile: config.defaultProfile
|
|
41
|
+
isLegacyTappable:config.isLegacyTappable
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
{{#if profile.generateWeb}}
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"postinstall": ""
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@wavemaker/app-rn-runtime": "11.14.1-
|
|
15
|
-
"@wavemaker/variables": "11.14.1-
|
|
16
|
-
"@wavemaker/rn-codegen": "11.14.1-
|
|
14
|
+
"@wavemaker/app-rn-runtime": "11.14.1-32.647748",
|
|
15
|
+
"@wavemaker/variables": "11.14.1-32.647748",
|
|
16
|
+
"@wavemaker/rn-codegen": "11.14.1-32.647748",
|
|
17
17
|
"@wavemaker/wavepulse-agent": "1.0.11",
|
|
18
18
|
"expo": "54.0.12",
|
|
19
19
|
"expo-build-properties": "1.0.9",
|
|
@@ -101,9 +101,5 @@
|
|
|
101
101
|
"@types/babel__standalone": "7.1.7",
|
|
102
102
|
"@expo/config-plugins": "54.0.1"
|
|
103
103
|
},
|
|
104
|
-
"overrides": {
|
|
105
|
-
"@react-navigation/core": "7.21.2",
|
|
106
|
-
"postcss": "8.5.26"
|
|
107
|
-
},
|
|
108
104
|
"private": true
|
|
109
105
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
puppeteer_skip_chromium_download=true
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"name": "wm-react-native-app",
|
|
9
9
|
"slug": "wm-react-native-app",
|
|
10
|
+
"scheme": "wm-react-native-app",
|
|
10
11
|
"version": "1.0.0",
|
|
11
12
|
"jsEngine": "hermes",
|
|
12
13
|
"orientation": "portrait",
|
|
@@ -45,7 +46,8 @@
|
|
|
45
46
|
"android": {
|
|
46
47
|
"enableProguardInReleaseBuilds": true,
|
|
47
48
|
"enableShrinkResourcesInReleaseBuilds": true,
|
|
48
|
-
"useLegacyPackaging": true
|
|
49
|
+
"useLegacyPackaging": true,
|
|
50
|
+
"extraProguardRules": "-keep class com.facebook.react.views.view.WindowUtilKt { *; }\n-keepclassmembers class com.facebook.react.views.view.WindowUtilKt { public static *** isEdgeToEdgeFeatureFlagOn(); public static *** setEdgeToEdgeFeatureFlagOn(); public static *** enableEdgeToEdge(android.view.Window); public static *** disableEdgeToEdge(android.view.Window); }"
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
],
|
|
@@ -105,22 +105,6 @@ class EsBuilder {
|
|
|
105
105
|
.replace(` | $TEMPORARY$string<'raw'> `, '');
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
async patchReactNativePaperDates() {
|
|
110
|
-
let path = `${__dirname}/../node_modules/react-native-paper-dates/lib/module/Date/Calendar.js`;
|
|
111
|
-
if(fs.existsSync(path)) {
|
|
112
|
-
await readAndReplaceFileContent(path, (content) => {
|
|
113
|
-
return content.replace("scrollMode === 'horizontal'", "scrollMode === 'horizontal' && selectingYear ");
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
path = `${__dirname}/../node_modules/react-native-paper-dates/lib/module/Date/AnimatedCrossView.js`;
|
|
117
|
-
if(fs.existsSync(path)) {
|
|
118
|
-
await readAndReplaceFileContent(path, (content) => {
|
|
119
|
-
return content.replace("calendar), /*#__PURE__*/React.createElement(Animated.View", "calendar), collapsed ? null : /*#__PURE__*/React.createElement(Animated.View");
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
console.log('Patched react-native-paper-dates Calendar.js and AnimatedCrossView.js');
|
|
123
|
-
}
|
|
124
108
|
|
|
125
109
|
async patchReactNativeWeb() {
|
|
126
110
|
const path = `${__dirname}/../node_modules/react-native-web/dist/cjs/exports/render/index.js`;
|
|
@@ -379,7 +363,6 @@ class EsBuilder {
|
|
|
379
363
|
// .then(() => this.patchReactNavigation())
|
|
380
364
|
.then(() => this.patchReactNativeReanimated())
|
|
381
365
|
.then(() => this.patchExpoVideo())
|
|
382
|
-
.then(() => this.patchReactNativePaperDates())
|
|
383
366
|
.then(() => {
|
|
384
367
|
console.log('*********** LIBRARIES ARE BUILT FOR ESBUILD **************');
|
|
385
368
|
}, (e) => {
|
|
@@ -395,7 +378,7 @@ class EsBuilder {
|
|
|
395
378
|
const appJson = JSON.parse(fs.readFileSync(appJsonPath, 'utf8'));
|
|
396
379
|
return esbuild.build({
|
|
397
380
|
entryPoints: ['./node_modules/expo/AppEntry.js'],
|
|
398
|
-
external:['./node_modules/react-native-vector-icons'
|
|
381
|
+
external:['./node_modules/react-native-vector-icons'],
|
|
399
382
|
bundle: true,
|
|
400
383
|
entryNames: 'bundle-[hash]',
|
|
401
384
|
outdir: 'web-build',
|
|
@@ -410,7 +393,7 @@ class EsBuilder {
|
|
|
410
393
|
metafile: true,
|
|
411
394
|
sourcemap: true,
|
|
412
395
|
plugins: [babel({
|
|
413
|
-
filter: /\/src
|
|
396
|
+
filter: /\/src\/.*jsx?/,
|
|
414
397
|
config : {
|
|
415
398
|
targets: {
|
|
416
399
|
browsers: 'last 2 versions',
|
|
@@ -426,27 +409,13 @@ class EsBuilder {
|
|
|
426
409
|
}), babel({
|
|
427
410
|
// Strip Flow types from React Native packages that ship Flow source
|
|
428
411
|
// (e.g. @react-native/assets-registry/registry.js).
|
|
429
|
-
filter: /node_modules
|
|
412
|
+
filter: /node_modules\/(react-native|@react-native)\/.*\.(js|jsx)$/,
|
|
430
413
|
config: {
|
|
431
414
|
babelrc: false,
|
|
432
415
|
configFile: false,
|
|
433
416
|
plugins: [require.resolve('@babel/plugin-transform-flow-strip-types')]
|
|
434
417
|
}
|
|
435
|
-
}),
|
|
436
|
-
// Transform Flow-typed source files shipped with react-native.
|
|
437
|
-
// The RN Babel preset handles newer Flow syntax beyond simple type stripping.
|
|
438
|
-
filter: /node_modules\/react-native\/.*\.(js|jsx)$/,
|
|
439
|
-
config: {
|
|
440
|
-
babelrc: false,
|
|
441
|
-
configFile: false,
|
|
442
|
-
presets: [require.resolve('@react-native/babel-preset')]
|
|
443
|
-
}
|
|
444
|
-
}), babel({
|
|
445
|
-
filter: /node_modules\/(@wavemaker)\/.*\.(js|jsx)$/,
|
|
446
|
-
config: {
|
|
447
|
-
plugins: ['react-native-worklets/plugin']
|
|
448
|
-
}
|
|
449
|
-
}),resolve({
|
|
418
|
+
}), resolve({
|
|
450
419
|
'victory-native': 'victory'
|
|
451
420
|
}), {
|
|
452
421
|
// Fallback resolver: if a bare specifier like `expo-asset` or
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"postinstall": "node ./scripts/post-build.js"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@wavemaker/app-rn-runtime": "11.14.1-
|
|
15
|
-
"@wavemaker/variables": "11.14.1-
|
|
16
|
-
"@wavemaker/rn-codegen": "11.14.1-
|
|
14
|
+
"@wavemaker/app-rn-runtime": "11.14.1-32.647748",
|
|
15
|
+
"@wavemaker/variables": "11.14.1-32.647748",
|
|
16
|
+
"@wavemaker/rn-codegen": "11.14.1-32.647748",
|
|
17
17
|
"@wavemaker/wavepulse-agent": "1.0.11",
|
|
18
18
|
"expo": "54.0.12",
|
|
19
19
|
"expo-build-properties": "1.0.9",
|
|
@@ -101,9 +101,5 @@
|
|
|
101
101
|
"@types/babel__standalone": "7.1.7",
|
|
102
102
|
"@expo/config-plugins": "54.0.1"
|
|
103
103
|
},
|
|
104
|
-
"overrides": {
|
|
105
|
-
"@react-navigation/core": "7.21.2",
|
|
106
|
-
"postcss": "8.5.26"
|
|
107
|
-
},
|
|
108
104
|
"private": true
|
|
109
105
|
}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
const t = require("@babel/types");
|
|
2
2
|
const babel = require("@babel/core");
|
|
3
3
|
const jsx = require('@babel/plugin-syntax-jsx').default;
|
|
4
|
+
const nodePath = require('path');
|
|
5
|
+
|
|
6
|
+
function isInSrc(state) {
|
|
7
|
+
const filename = state && state.filename;
|
|
8
|
+
if (!filename) {
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
const relative = nodePath.relative(state.cwd || process.cwd(), filename);
|
|
12
|
+
return !relative.startsWith('..') && (relative === 'src' || relative.startsWith('src' + nodePath.sep));
|
|
13
|
+
}
|
|
4
14
|
|
|
5
15
|
function isWatchableExpression(path) {
|
|
6
16
|
const exp = path && path.container && path.container.value && path.container.value.expression;
|
|
@@ -62,7 +72,7 @@ const plugin = function() {
|
|
|
62
72
|
exit(path, state) {
|
|
63
73
|
const { node, parentPath } = path;
|
|
64
74
|
const nodeName = node.openingElement && node.openingElement.name && node.openingElement.name.name;
|
|
65
|
-
if (node.__wm_processed || !nodeName || !nodeName.startsWith('Wm')) {
|
|
75
|
+
if (node.__wm_processed || !nodeName || !nodeName.startsWith('Wm') || !isInSrc(state)) {
|
|
66
76
|
return;
|
|
67
77
|
}
|
|
68
78
|
const nameAttribute = t.jsxAttribute(
|
|
@@ -25,14 +25,6 @@ exports.default = {
|
|
|
25
25
|
className: '.app-currency-active-flotaing-label',
|
|
26
26
|
rnStyleSelector: 'app-currency.activeFloatingLabel',
|
|
27
27
|
style: {}
|
|
28
|
-
}, {
|
|
29
|
-
className: '.app-currency-inactive-floating-label',
|
|
30
|
-
rnStyleSelector: 'app-currency.inactiveFloatingLabel',
|
|
31
|
-
style: {}
|
|
32
|
-
}, {
|
|
33
|
-
className: '.app-currency-with-label.app-currency-inactive-floating-label',
|
|
34
|
-
rnStyleSelector: 'app-currency-with-label.inactiveFloatingLabel',
|
|
35
|
-
style: {}
|
|
36
28
|
}, {
|
|
37
29
|
className: '.app-currency-invalid',
|
|
38
30
|
rnStyleSelector: 'app-currency.invalid',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currency.styledef.js","sourceRoot":"","sources":["../../../../../src/theme/components/input/currency.styledef.ts"],"names":[],"mappings":";;AAEA,kBAAe;IACX,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;YAClB,SAAS,EAAE,eAAe;YAC1B,eAAe,EAAE,mBAAmB;YACpC,mBAAmB,EAAE,mCAAmC;YACxD,KAAK,EAAE;gBACH,cAAc,EAAE,mBAAmB;gBACnC,kBAAkB,EAAE,uBAAuB;aAC9C;SACJ,EAAE;YACC,SAAS,EAAE,qBAAqB;YAChC,eAAe,EAAE,oBAAoB;YACrC,mBAAmB,EAAE,oBAAoB;YACzC,KAAK,EAAE;gBACH,kBAAkB,EAAE,eAAe;gBACnC,OAAO,EAAE,uBAAuB;aACnC;SACJ,EAAE;YACC,SAAS,EAAE,8BAA8B;YACzC,eAAe,EAAE,4BAA4B;YAC7C,KAAK,EAAE,EAAE;SACZ,EAAE;YACC,SAAS,EAAE,qCAAqC;YAChD,eAAe,EAAE,kCAAkC;YACnD,KAAK,EAAE,EAAE;SACZ,EAAE;YACC,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"currency.styledef.js","sourceRoot":"","sources":["../../../../../src/theme/components/input/currency.styledef.ts"],"names":[],"mappings":";;AAEA,kBAAe;IACX,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;YAClB,SAAS,EAAE,eAAe;YAC1B,eAAe,EAAE,mBAAmB;YACpC,mBAAmB,EAAE,mCAAmC;YACxD,KAAK,EAAE;gBACH,cAAc,EAAE,mBAAmB;gBACnC,kBAAkB,EAAE,uBAAuB;aAC9C;SACJ,EAAE;YACC,SAAS,EAAE,qBAAqB;YAChC,eAAe,EAAE,oBAAoB;YACrC,mBAAmB,EAAE,oBAAoB;YACzC,KAAK,EAAE;gBACH,kBAAkB,EAAE,eAAe;gBACnC,OAAO,EAAE,uBAAuB;aACnC;SACJ,EAAE;YACC,SAAS,EAAE,8BAA8B;YACzC,eAAe,EAAE,4BAA4B;YAC7C,KAAK,EAAE,EAAE;SACZ,EAAE;YACC,SAAS,EAAE,qCAAqC;YAChD,eAAe,EAAE,kCAAkC;YACnD,KAAK,EAAE,EAAE;SACZ,EAAE;YACC,SAAS,EAAE,uBAAuB;YAClC,eAAe,EAAE,sBAAsB;YACvC,mBAAmB,EAAE,EAAE;YACvB,KAAK,EAAE;gBACH,qBAAqB,EAAE,0BAA0B;aACpD;SACJ,EAAC;YACE,SAAS,EAAE,uBAAuB;YAClC,eAAe,EAAE,sBAAsB;YACvC,mBAAmB,EAAE,EAAE;YACvB,KAAK,EAAE;gBACH,cAAc,EAAE,wBAAwB;aAC3C;SACJ,EAAC;YACE,SAAS,EAAE,2BAA2B;YACtC,eAAe,EAAE,8BAA8B;YAC/C,mBAAmB,EAAE,EAAE;YACvB,KAAK,EAAE;gBACH,OAAO,EAAE,wBAAwB;aACpC;SACJ,EAAE;YACC,SAAS,EAAE,wBAAwB;YACnC,eAAe,EAAE,uBAAuB;YACxC,mBAAmB,EAAE,uBAAuB;YAC5C,KAAK,EAAE,EAAE;SACZ,EAAG;YACA,SAAS,EAAE,8BAA8B;YACzC,eAAe,EAAE,2BAA2B;YAC5C,mBAAmB,EAAE,6BAA6B;YAClD,KAAK,EAAE,EAAE;SACZ,EAAE;YACC,SAAS,EAAE,sCAAsC;YACjD,eAAe,EAAE,mCAAmC;YACpD,mBAAmB,EAAE,qCAAqC;YAC1D,KAAK,EAAE,EAAE;SACZ,EAAE;YACC,SAAS,EAAE,6BAA6B;YACxC,eAAe,EAAE,uCAAuC;YACxD,mBAAmB,EAAE,4BAA4B;YACjD,KAAK,EAAE,EAAE;SACZ;KACJ,CAAC;CACiB,CAAC"}
|
|
@@ -8,17 +8,6 @@ exports.default = {
|
|
|
8
8
|
style: {
|
|
9
9
|
'border-color': '@inputBorderColor',
|
|
10
10
|
'background-color': '@inputBackgroundColor'
|
|
11
|
-
},
|
|
12
|
-
dtStyle: {
|
|
13
|
-
'min-height': 'var(--wm-number-container-min-height)',
|
|
14
|
-
'padding-top': 'var(--wm-number-container-padding-top)',
|
|
15
|
-
'padding-bottom': 'var(--wm-number-container-padding-bottom)',
|
|
16
|
-
'padding-left': 'var(--wm-number-container-padding-left)',
|
|
17
|
-
'padding-right': 'var(--wm-number-container-padding-right)',
|
|
18
|
-
// 'border-width': 'var(--wm-number-container-border-width)',
|
|
19
|
-
'border-style': 'var(--wm-number-container-border-style)',
|
|
20
|
-
'border-radius': 'var(--wm-number-container-border-radius)',
|
|
21
|
-
'background-color': 'var(--wm-color-white)',
|
|
22
11
|
}
|
|
23
12
|
}, {
|
|
24
13
|
className: '.app-number-invalid',
|
|
@@ -33,10 +22,6 @@ exports.default = {
|
|
|
33
22
|
studioStyleSelector: '',
|
|
34
23
|
style: {
|
|
35
24
|
'border-color': '@inputFocusBorderColor'
|
|
36
|
-
},
|
|
37
|
-
dtStyle: {
|
|
38
|
-
'border-color': 'var(--wm-form-control-border-color)'
|
|
39
|
-
// 'var(--wm-wizard-number-stepper-step-active-background)',
|
|
40
25
|
}
|
|
41
26
|
}, {
|
|
42
27
|
className: '.app-number-placeholer',
|
|
@@ -58,21 +43,6 @@ exports.default = {
|
|
|
58
43
|
className: '.app-number-active-flotaing-label',
|
|
59
44
|
rnStyleSelector: 'app-number.activeFloatingLabel',
|
|
60
45
|
style: {}
|
|
61
|
-
}, {
|
|
62
|
-
className: '.app-number-inactive-floating-label',
|
|
63
|
-
rnStyleSelector: 'app-number.inactiveFloatingLabel',
|
|
64
|
-
style: {}
|
|
65
|
-
}, {
|
|
66
|
-
className: '.app-number-with-label.app-number-inactive-floating-label',
|
|
67
|
-
rnStyleSelector: 'app-number-with-label.inactiveFloatingLabel',
|
|
68
|
-
style: {}
|
|
69
|
-
}, {
|
|
70
|
-
className: '.app-number-with-label.app-number-active-flotaing-label',
|
|
71
|
-
style: {},
|
|
72
|
-
dtStyle: {
|
|
73
|
-
'color': 'var(--wm-form-control-border-color)',
|
|
74
|
-
// 'var(--wm-wizard-number-stepper-step-current-background)',
|
|
75
|
-
}
|
|
76
46
|
}, {
|
|
77
47
|
className: '.app-number-skeleton',
|
|
78
48
|
rnStyleSelector: 'app-number.skeleton',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.styledef.js","sourceRoot":"","sources":["../../../../../src/theme/components/input/number.styledef.ts"],"names":[],"mappings":";;AAEA,kBAAe;IACX,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;YAClB,SAAS,EAAE,aAAa;YACxB,eAAe,EAAE,iBAAiB;YAClC,mBAAmB,EAAE,6BAA6B;YAClD,KAAK,EAAE;gBACH,cAAc,EAAE,mBAAmB;gBACnC,kBAAkB,EAAE,uBAAuB;aAC9C;
|
|
1
|
+
{"version":3,"file":"number.styledef.js","sourceRoot":"","sources":["../../../../../src/theme/components/input/number.styledef.ts"],"names":[],"mappings":";;AAEA,kBAAe;IACX,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;YAClB,SAAS,EAAE,aAAa;YACxB,eAAe,EAAE,iBAAiB;YAClC,mBAAmB,EAAE,6BAA6B;YAClD,KAAK,EAAE;gBACH,cAAc,EAAE,mBAAmB;gBACnC,kBAAkB,EAAE,uBAAuB;aAC9C;SACJ,EAAE;YACC,SAAS,EAAE,qBAAqB;YAChC,eAAe,EAAE,oBAAoB;YACrC,mBAAmB,EAAE,EAAE;YACvB,KAAK,EAAE;gBACH,qBAAqB,EAAE,0BAA0B;aACpD;SACJ,EAAC;YACE,SAAS,EAAE,qBAAqB;YAChC,eAAe,EAAE,oBAAoB;YACrC,mBAAmB,EAAE,EAAE;YACvB,KAAK,EAAE;gBACH,cAAc,EAAE,wBAAwB;aAC3C;SACJ,EAAE;YACC,SAAS,EAAE,wBAAwB;YACnC,eAAe,EAAE,4BAA4B;YAC7C,mBAAmB,EAAE,EAAE;YACvB,KAAK,EAAE;gBACH,OAAO,EAAE,wBAAwB;aACpC;SACJ,EAAE;YACC,SAAS,EAAE,sBAAsB;YACjC,eAAe,EAAE,qBAAqB;YACtC,mBAAmB,EAAE,sBAAsB;YAC3C,KAAK,EAAE,EAAE;SACZ,EAAE;YACC,SAAS,EAAE,4BAA4B;YACvC,eAAe,EAAE,0BAA0B;YAC3C,KAAK,EAAE,EAAE;SACZ,EAAE;YACC,SAAS,EAAE,mCAAmC;YAC9C,eAAe,EAAE,gCAAgC;YACjD,KAAK,EAAE,EAAE;SACZ,EAAE;YACC,SAAS,EAAE,sBAAsB;YACjC,eAAe,EAAE,qBAAqB;YACtC,KAAK,EAAE,EAAE;SACZ,EAAE;YACC,SAAS,EAAE,4BAA4B;YACvC,eAAe,EAAE,0BAA0B;YAC3C,KAAK,EAAE,EAAE;SACZ,CAAC,CAAC;CACY,CAAC"}
|
|
@@ -8,42 +8,18 @@ exports.default = {
|
|
|
8
8
|
style: {
|
|
9
9
|
'border-color': '@inputBorderColor',
|
|
10
10
|
'background-color': '@inputBackgroundColor',
|
|
11
|
-
},
|
|
12
|
-
dtStyle: {
|
|
13
|
-
'background-color': 'var(--wm-form-control-background)',
|
|
14
|
-
'border-width': 'var(--wm-form-control-border-width)',
|
|
15
|
-
'border-style': 'var(--wm-form-control-border-style)',
|
|
16
|
-
'border-radius': 'var(--wm-form-control-radius)',
|
|
17
|
-
'padding-left': 'var(--wm-form-control-padding)',
|
|
18
|
-
'padding-right': 'var(--wm-form-control-padding)',
|
|
19
|
-
'min-height': 'var(--wm-text-min-height)',
|
|
20
|
-
'padding-top': 'var(--wm-text-padding-top)',
|
|
21
|
-
'padding-bottom': 'var(--wm-text-padding-bottom)',
|
|
22
|
-
'border-color': 'var(--wm-text-border-color)',
|
|
23
|
-
'font-family': 'var(--wm-text-font-family)'
|
|
24
11
|
}
|
|
25
12
|
}, {
|
|
26
13
|
className: '.app-text-text',
|
|
27
14
|
rnStyleSelector: 'app-text.text',
|
|
28
15
|
studioStyleSelector: '.app-textbox',
|
|
29
|
-
style: {}
|
|
30
|
-
dtStyle: {
|
|
31
|
-
'color': 'var(--wm-form-control-color)',
|
|
32
|
-
'font-family': 'var(--wm-form-control-font-family)',
|
|
33
|
-
'font-size': 'var(--wm-form-control-font-size)',
|
|
34
|
-
// 'font-weight':'var(--wm-form-control-font-weight)',
|
|
35
|
-
'line-height': 'var(--wm-form-control-line-height)',
|
|
36
|
-
'letter-spacing': 'var(--wm-form-control-letter-spacing)'
|
|
37
|
-
}
|
|
16
|
+
style: {}
|
|
38
17
|
}, {
|
|
39
18
|
className: '.app-text-invalid',
|
|
40
19
|
rnStyleSelector: 'app-text.invalid',
|
|
41
20
|
studioStyleSelector: '.app-textbox.invalid',
|
|
42
21
|
style: {
|
|
43
22
|
'border-bottom-color': '@inputInvalidBorderColor',
|
|
44
|
-
},
|
|
45
|
-
dtStyle: {
|
|
46
|
-
'border-bottom-color': 'var(--wm-text-invalid-border-bottom-color)'
|
|
47
23
|
}
|
|
48
24
|
}, {
|
|
49
25
|
className: '.app-text-focused',
|
|
@@ -51,24 +27,12 @@ exports.default = {
|
|
|
51
27
|
studioStyleSelector: '.app-textbox.focused',
|
|
52
28
|
style: {
|
|
53
29
|
'border-color': '@inputFocusBorderColor',
|
|
54
|
-
},
|
|
55
|
-
dtStyle: {
|
|
56
|
-
'border-color': 'var(--wm-form-control-border-color)',
|
|
57
|
-
}
|
|
58
|
-
}, {
|
|
59
|
-
className: '.app-text-place-holder-text',
|
|
60
|
-
rnStyleSelector: 'app-text.placeholderText',
|
|
61
|
-
dtStyle: {
|
|
62
|
-
'color': 'var(--wm-form-control-border-color)',
|
|
63
30
|
}
|
|
64
31
|
}, {
|
|
65
32
|
className: '.app-text-disabled',
|
|
66
33
|
rnStyleSelector: 'app-text-disabled.root',
|
|
67
34
|
studioStyleSelector: '',
|
|
68
|
-
style: {}
|
|
69
|
-
dtStyle: {
|
|
70
|
-
'background-color': 'var(--wm-text-disabled-background-color)',
|
|
71
|
-
}
|
|
35
|
+
style: {}
|
|
72
36
|
}, {
|
|
73
37
|
className: '.app-text-flotaing-label',
|
|
74
38
|
rnStyleSelector: 'app-text.floatingLabel',
|
|
@@ -77,94 +41,11 @@ exports.default = {
|
|
|
77
41
|
className: '.app-text-active-flotaing-label',
|
|
78
42
|
rnStyleSelector: 'app-text.activeFloatingLabel',
|
|
79
43
|
style: {}
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
className: '.app-text-with-label.app-text-active-flotaing-label',
|
|
83
|
-
style: {},
|
|
84
|
-
dtStyle: {
|
|
85
|
-
'color': 'var(--wm-form-control-border-color)',
|
|
86
|
-
}
|
|
87
|
-
}, {
|
|
88
|
-
className: '.app-text-with-label.app-text-inactive-floating-label',
|
|
89
|
-
rnStyleSelector: 'app-text-with-label.inactiveFloatingLabel',
|
|
90
|
-
style: {}
|
|
91
|
-
}, {
|
|
92
|
-
className: '.app-text-with-label.app-text-flotaing-label',
|
|
93
|
-
dtStyle: {
|
|
94
|
-
'top': 'var(--wm-text-floating-label-top)',
|
|
95
|
-
'left': 'var(--wm-text-floating-label-left)',
|
|
96
|
-
'font-size': 'var(--wm-text-floating-label-font-size)',
|
|
97
|
-
'color': ' var(--wm-form-control-border-color)',
|
|
98
|
-
}
|
|
99
|
-
}, {
|
|
100
|
-
className: '.app-text-with-label.app-text',
|
|
101
|
-
dtStyle: {
|
|
102
|
-
'min-height': 'var(--wm-text-floating-label-min-height)'
|
|
103
|
-
}
|
|
104
44
|
}, {
|
|
105
45
|
className: '.app-text-skeleton',
|
|
106
46
|
rnStyleSelector: 'app-text.skeleton',
|
|
107
47
|
studioStyleSelector: '.app-text-skeleton',
|
|
108
|
-
style: {},
|
|
109
|
-
dtStyle: {
|
|
110
|
-
'width': 'var(--wm-text-skeleton-width)',
|
|
111
|
-
'height': 'var(--wm-text-skeleton-height)',
|
|
112
|
-
'border-radius': 'var(--wm-space-1)'
|
|
113
|
-
}
|
|
114
|
-
}, {
|
|
115
|
-
className: '.app-input-invalid',
|
|
116
|
-
rnStyleSelector: 'app-input.invalid',
|
|
117
|
-
studioStyleSelector: '.app-textbox.invalid',
|
|
118
|
-
style: {
|
|
119
|
-
'border-bottom-color': '@inputInvalidBorderColor',
|
|
120
|
-
},
|
|
121
|
-
dtStyle: {
|
|
122
|
-
'border-bottom-color': 'var(--wm-text-invalid-border-bottom-color)'
|
|
123
|
-
}
|
|
124
|
-
}, {
|
|
125
|
-
className: '.app-invalid-focused',
|
|
126
|
-
rnStyleSelector: 'app-invalid.focused',
|
|
127
|
-
studioStyleSelector: '.app-textbox.focused',
|
|
128
|
-
style: {
|
|
129
|
-
'border-color': '@inputFocusBorderColor',
|
|
130
|
-
},
|
|
131
|
-
dtStyle: {
|
|
132
|
-
'border-color': 'var(--wm-form-control-border-color)',
|
|
133
|
-
}
|
|
134
|
-
}, {
|
|
135
|
-
className: '.app-input-disabled',
|
|
136
|
-
rnStyleSelector: 'app-input.disabled',
|
|
137
|
-
studioStyleSelector: '',
|
|
138
|
-
style: {},
|
|
139
|
-
dtStyle: {
|
|
140
|
-
'background-color': 'var(--wm-text-disabled-background-color)',
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
className: '.app-input-flotaing-label',
|
|
145
|
-
rnStyleSelector: 'app-input.floatingLabel',
|
|
146
|
-
style: {}
|
|
147
|
-
}, {
|
|
148
|
-
className: '.app-input-active-flotaing-label',
|
|
149
|
-
rnStyleSelector: 'app-input.activeFloatingLabel',
|
|
150
48
|
style: {}
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
className: '.app-input-with-label.app-input-active-flotaing-label',
|
|
154
|
-
rnStyleSelector: ".app-input-with-label.inputFlotaingLabelActive",
|
|
155
|
-
style: {},
|
|
156
|
-
dtStyle: {
|
|
157
|
-
'color': 'var(--wm-form-control-border-color)',
|
|
158
|
-
}
|
|
159
|
-
}, {
|
|
160
|
-
className: '.app-input-with-label.app-input-flotaing-label',
|
|
161
|
-
rnStyleSelector: ".app-input-with-label.inputFlotaingLabelActivea",
|
|
162
|
-
dtStyle: {
|
|
163
|
-
'top': 'var(--wm-input-floating-label-top)',
|
|
164
|
-
'left': 'var(--wm-input-floating-label-left)',
|
|
165
|
-
'font-size': 'var(--wm-input-floating-label-font-size)',
|
|
166
|
-
'color': ' var(--wm-form-control-border-color)',
|
|
167
|
-
}
|
|
168
49
|
}])
|
|
169
50
|
};
|
|
170
51
|
//# sourceMappingURL=text.styledef.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.styledef.js","sourceRoot":"","sources":["../../../../../src/theme/components/input/text.styledef.ts"],"names":[],"mappings":";;AAEA,kBAAe;IACX,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;YAClB,SAAS,EAAE,WAAW;YACtB,eAAe,EAAE,eAAe;YAChC,mBAAmB,EAAE,cAAc;YACnC,KAAK,EAAE;gBACH,cAAc,EAAE,mBAAmB;gBACnC,kBAAkB,EAAE,uBAAuB;aAC9C;
|
|
1
|
+
{"version":3,"file":"text.styledef.js","sourceRoot":"","sources":["../../../../../src/theme/components/input/text.styledef.ts"],"names":[],"mappings":";;AAEA,kBAAe;IACX,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;YAClB,SAAS,EAAE,WAAW;YACtB,eAAe,EAAE,eAAe;YAChC,mBAAmB,EAAE,cAAc;YACnC,KAAK,EAAE;gBACH,cAAc,EAAE,mBAAmB;gBACnC,kBAAkB,EAAE,uBAAuB;aAC9C;SACJ,EAAE;YACC,SAAS,EAAE,gBAAgB;YAC3B,eAAe,EAAE,eAAe;YAChC,mBAAmB,EAAE,cAAc;YACnC,KAAK,EAAE,EAAE;SACZ,EAAE;YACC,SAAS,EAAE,mBAAmB;YAC9B,eAAe,EAAE,kBAAkB;YACnC,mBAAmB,EAAE,sBAAsB;YAC3C,KAAK,EAAE;gBACH,qBAAqB,EAAE,0BAA0B;aACpD;SACJ,EAAC;YACE,SAAS,EAAE,mBAAmB;YAC9B,eAAe,EAAE,kBAAkB;YACnC,mBAAmB,EAAE,sBAAsB;YAC3C,KAAK,EAAE;gBACH,cAAc,EAAE,wBAAwB;aAC3C;SACJ,EAAC;YACE,SAAS,EAAE,oBAAoB;YAC/B,eAAe,EAAE,wBAAwB;YACzC,mBAAmB,EAAE,EAAE;YACvB,KAAK,EAAE,EAAE;SACZ,EAAE;YACC,SAAS,EAAE,0BAA0B;YACrC,eAAe,EAAE,wBAAwB;YACzC,KAAK,EAAE,EAAE;SACZ,EAAE;YACC,SAAS,EAAE,iCAAiC;YAC5C,eAAe,EAAE,8BAA8B;YAC/C,KAAK,EAAE,EAAE;SACZ,EAAG;YACA,SAAS,EAAE,oBAAoB;YAC/B,eAAe,EAAE,mBAAmB;YACpC,mBAAmB,EAAE,oBAAoB;YACzC,KAAK,EAAE,EAAE;SACZ,CAAC,CAAC;CACY,CAAC"}
|