@wavemaker/angular-codegen 11.2.0-next.141027 → 11.2.0-next.141029
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.
@@ -82,7 +82,9 @@
|
|
82
82
|
"./node_modules/hammerjs/hammer.min.js",
|
83
83
|
"./node_modules/iscroll/build/iscroll.js",
|
84
84
|
"./node_modules/js-cookie/src/js.cookie.js",
|
85
|
-
"./node_modules/jssha/dist/sha256.js"
|
85
|
+
"./node_modules/jssha/dist/sha256.js",
|
86
|
+
"./node_modules/tabbable/dist/index.min.js",
|
87
|
+
"./node_modules/@wavemaker/focus-trap/dist/focus-trap.min.js"
|
86
88
|
]
|
87
89
|
},
|
88
90
|
"configurations": {
|
@@ -177,7 +179,9 @@
|
|
177
179
|
"./node_modules/hammerjs/hammer.min.js",
|
178
180
|
"./node_modules/iscroll/build/iscroll.js",
|
179
181
|
"./node_modules/js-cookie/src/js.cookie.js",
|
180
|
-
"./node_modules/jssha/dist/sha256.js"
|
182
|
+
"./node_modules/jssha/dist/sha256.js",
|
183
|
+
"./node_modules/tabbable/dist/index.min.js",
|
184
|
+
"./node_modules/@wavemaker/focus-trap/dist/focus-trap.min.js"
|
181
185
|
],
|
182
186
|
"aot": false,
|
183
187
|
"vendorChunk": true,
|
@@ -5950,6 +5950,15 @@
|
|
5950
5950
|
"resolved": "https://registry.npmjs.org/@wavemaker.com/nvd3/-/nvd3-1.0.0.tgz",
|
5951
5951
|
"integrity": "sha512-KwdblvQbf0k51JYt1SJIhhkoQflWsOfgb6MVT9I/kDFpGmm5Z71PXOTNwOGnBFvuqGH6AJVQoM7StE0IK6OmXQ=="
|
5952
5952
|
},
|
5953
|
+
"@wavemaker/focus-trap": {
|
5954
|
+
"version": "1.0.0",
|
5955
|
+
"resolved": "https://registry.npmjs.org/@wavemaker/focus-trap/-/focus-trap-1.0.0.tgz",
|
5956
|
+
"integrity": "sha512-ZGQxxL2gdF07h+1nyOzK0jO9QAduv74vBHH42GMV4uHjQvPfuWClwXQEtyBukkX5EXAuOLZNc5X4AWSvOsz0eA==",
|
5957
|
+
"requires": {
|
5958
|
+
"tabbable": "^6.0.1",
|
5959
|
+
"yarn": "^1.22.19"
|
5960
|
+
}
|
5961
|
+
},
|
5953
5962
|
"@webassemblyjs/ast": {
|
5954
5963
|
"version": "1.9.0",
|
5955
5964
|
"resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.9.0.tgz",
|
@@ -20350,6 +20359,11 @@
|
|
20350
20359
|
"integrity": "sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ==",
|
20351
20360
|
"dev": true
|
20352
20361
|
},
|
20362
|
+
"tabbable": {
|
20363
|
+
"version": "6.0.1",
|
20364
|
+
"resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.0.1.tgz",
|
20365
|
+
"integrity": "sha512-SYJSIgeyXW7EuX1ytdneO5e8jip42oHWg9xl/o3oTYhmXusZVgiA+VlPvjIN+kHii9v90AmzTZEBcsEvuAY+TA=="
|
20366
|
+
},
|
20353
20367
|
"tapable": {
|
20354
20368
|
"version": "2.2.1",
|
20355
20369
|
"resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",
|
@@ -23150,6 +23164,11 @@
|
|
23150
23164
|
}
|
23151
23165
|
}
|
23152
23166
|
},
|
23167
|
+
"yarn": {
|
23168
|
+
"version": "1.22.19",
|
23169
|
+
"resolved": "https://registry.npmjs.org/yarn/-/yarn-1.22.19.tgz",
|
23170
|
+
"integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ=="
|
23171
|
+
},
|
23153
23172
|
"yauzl": {
|
23154
23173
|
"version": "2.10.0",
|
23155
23174
|
"resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
|
@@ -46,6 +46,7 @@
|
|
46
46
|
"@awesome-cordova-plugins/vibration": "5.39.1",
|
47
47
|
"@metrichor/jmespath": "^0.3.1",
|
48
48
|
"@wavemaker.com/nvd3": "1.0.0",
|
49
|
+
"@wavemaker/focus-trap": "^1.0.0",
|
49
50
|
"angular-imask": "6.0.4",
|
50
51
|
"angular2-websocket": "0.9.7",
|
51
52
|
"core-js": "2.5.4",
|
@@ -69,7 +70,7 @@
|
|
69
70
|
"tslib": "^2.0.0",
|
70
71
|
"x2js": "3.2.6",
|
71
72
|
"zone.js": "~0.11.4",
|
72
|
-
"@wavemaker/app-ng-runtime": "11.2.0-next.
|
73
|
+
"@wavemaker/app-ng-runtime": "11.2.0-next.141029"
|
73
74
|
},
|
74
75
|
"devDependencies": {
|
75
76
|
"@ampproject/rollup-plugin-closure-compiler": "0.8.5",
|
@@ -69521,17 +69521,17 @@ ToDatePipe.ctorParameters = () => [
|
|
69521
69521
|
{ type: AbstractI18nService }
|
69522
69522
|
];
|
69523
69523
|
class ToNumberPipe {
|
69524
|
-
constructor(decimalPipe,
|
69524
|
+
constructor(decimalPipe, i18nService) {
|
69525
69525
|
this.decimalPipe = decimalPipe;
|
69526
|
-
this.
|
69526
|
+
this.i18nService = i18nService;
|
69527
69527
|
}
|
69528
69528
|
transform(data, fracSize) {
|
69529
69529
|
if (fracSize && !String(fracSize).match(/^(\d+)?\.((\d+)(-(\d+))?)?$/)) {
|
69530
69530
|
fracSize = '1.' + fracSize + '-' + fracSize;
|
69531
69531
|
}
|
69532
69532
|
if (!_.isNaN(+data)) {
|
69533
|
-
const locale = this.
|
69534
|
-
const formattedLocale = locale ? locale['number'] :
|
69533
|
+
const locale = this.i18nService && this.i18nService.getwidgetLocale() ? this.i18nService.getwidgetLocale() : undefined;
|
69534
|
+
const formattedLocale = locale ? locale['number'] : null;
|
69535
69535
|
return this.decimalPipe.transform(data, fracSize, formattedLocale);
|
69536
69536
|
}
|
69537
69537
|
}
|
@@ -69546,13 +69546,13 @@ ToNumberPipe.ctorParameters = () => [
|
|
69546
69546
|
{ type: AbstractI18nService, decorators: [{ type: Inject$1, args: [AbstractI18nService,] }] }
|
69547
69547
|
];
|
69548
69548
|
class ToCurrencyPipe {
|
69549
|
-
constructor(decimalPipe,
|
69549
|
+
constructor(decimalPipe, i18nService) {
|
69550
69550
|
this.decimalPipe = decimalPipe;
|
69551
|
-
this.
|
69551
|
+
this.i18nService = i18nService;
|
69552
69552
|
}
|
69553
69553
|
transform(data, currencySymbol, fracSize) {
|
69554
69554
|
const _currencySymbol = (CURRENCY_INFO[currencySymbol] || {}).symbol || currencySymbol || '';
|
69555
|
-
let _val = new ToNumberPipe(this.decimalPipe, this.
|
69555
|
+
let _val = new ToNumberPipe(this.decimalPipe, this.i18nService).transform(data, fracSize);
|
69556
69556
|
const isNegativeNumber = _.startsWith(_val, '-');
|
69557
69557
|
if (isNegativeNumber) {
|
69558
69558
|
_val = _val.replace('-', '');
|