@wavemaker/angular-codegen 12.0.0-next.141130 → 12.0.0-next.141134
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.
- angular-codegen/angular-app/angular.json +13 -1
- angular-codegen/angular-app/build-scripts/update-version.js +24 -0
- angular-codegen/angular-app/package-lock.json +5808 -10278
- angular-codegen/angular-app/package.json +20 -13
- angular-codegen/angular-app/src/assets/styles/css/wm-style.css +1 -1
- angular-codegen/angular-app/src/setup-jest.js +1 -0
- angular-codegen/dependencies/custom-widgets-bundle.cjs.js +93 -72
- angular-codegen/dependencies/pipe-provider.cjs.js +33 -27
- angular-codegen/dependencies/transpilation-mobile.cjs.js +71 -54
- angular-codegen/dependencies/transpilation-web.cjs.js +71 -54
- angular-codegen/package.json +1 -1
- angular-codegen/src/handlebar-helpers.js +1 -1
- angular-codegen/templates/customwidget/customwidget.component.ts.hbs +2 -1
|
@@ -126424,15 +126424,15 @@ var dataViewCtorString$1 = toSource$1(DataView$1$1),
|
|
|
126424
126424
|
* @param {*} value The value to query.
|
|
126425
126425
|
* @returns {string} Returns the `toStringTag`.
|
|
126426
126426
|
*/
|
|
126427
|
-
var getTag$
|
|
126427
|
+
var getTag$2 = baseGetTag$1;
|
|
126428
126428
|
|
|
126429
126429
|
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
126430
|
-
if ((DataView$1$1 && getTag$
|
|
126431
|
-
(Map$1$1 && getTag$
|
|
126432
|
-
(Promise$1$1 && getTag$
|
|
126433
|
-
(Set$1$1 && getTag$
|
|
126434
|
-
(WeakMap$1$1 && getTag$
|
|
126435
|
-
getTag$
|
|
126430
|
+
if ((DataView$1$1 && getTag$2(new DataView$1$1(new ArrayBuffer(1))) != dataViewTag$3$1) ||
|
|
126431
|
+
(Map$1$1 && getTag$2(new Map$1$1) != mapTag$8$1) ||
|
|
126432
|
+
(Promise$1$1 && getTag$2(Promise$1$1.resolve()) != promiseTag$1) ||
|
|
126433
|
+
(Set$1$1 && getTag$2(new Set$1$1) != setTag$8$1) ||
|
|
126434
|
+
(WeakMap$1$1 && getTag$2(new WeakMap$1$1) != weakMapTag$2$1)) {
|
|
126435
|
+
getTag$2 = function(value) {
|
|
126436
126436
|
var result = baseGetTag$1(value),
|
|
126437
126437
|
Ctor = result == objectTag$2$1 ? value.constructor : undefined,
|
|
126438
126438
|
ctorString = Ctor ? toSource$1(Ctor) : '';
|
|
@@ -126450,7 +126450,7 @@ if ((DataView$1$1 && getTag$1(new DataView$1$1(new ArrayBuffer(1))) != dataViewT
|
|
|
126450
126450
|
};
|
|
126451
126451
|
}
|
|
126452
126452
|
|
|
126453
|
-
var getTag$1$1 = getTag$
|
|
126453
|
+
var getTag$1$1 = getTag$2;
|
|
126454
126454
|
|
|
126455
126455
|
/** Used for built-in method references. */
|
|
126456
126456
|
var objectProto$c$1 = Object.prototype;
|
|
@@ -142015,6 +142015,7 @@ var FormWidgetType$1;
|
|
|
142015
142015
|
FormWidgetType["CHIPS"] = "chips";
|
|
142016
142016
|
FormWidgetType["COLORPICKER"] = "colorpicker";
|
|
142017
142017
|
FormWidgetType["CURRENCY"] = "currency";
|
|
142018
|
+
FormWidgetType["CUSTOMWIDGET"] = "custom-widget";
|
|
142018
142019
|
FormWidgetType["DATE"] = "date";
|
|
142019
142020
|
FormWidgetType["DATETIME"] = "datetime";
|
|
142020
142021
|
FormWidgetType["NUMBER"] = "number";
|
|
@@ -142032,7 +142033,6 @@ var FormWidgetType$1;
|
|
|
142032
142033
|
FormWidgetType["TIMESTAMP"] = "timestamp";
|
|
142033
142034
|
FormWidgetType["TYPEAHEAD"] = "typeahead";
|
|
142034
142035
|
FormWidgetType["UPLOAD"] = "upload";
|
|
142035
|
-
FormWidgetType["CUSTOM"] = "custom";
|
|
142036
142036
|
})(FormWidgetType$1 || (FormWidgetType$1 = {}));
|
|
142037
142037
|
var DataType$1;
|
|
142038
142038
|
(function (DataType) {
|
|
@@ -143816,7 +143816,6 @@ const REGEX$1 = {
|
|
|
143816
143816
|
IPOD: /iPod/i,
|
|
143817
143817
|
IPAD: /iPad/i,
|
|
143818
143818
|
MAC: /Mac/i,
|
|
143819
|
-
MACINTEL: /MacIntel/i,
|
|
143820
143819
|
ANDROID_TABLET: /android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i,
|
|
143821
143820
|
MOBILE: /Mobile/i,
|
|
143822
143821
|
WINDOWS: /Windows Phone/i,
|
|
@@ -143868,9 +143867,10 @@ const isAndroidTablet$1 = () => REGEX$1.ANDROID_TABLET.test(userAgent$1) && !((/
|
|
|
143868
143867
|
const isIphone$1 = () => REGEX$1.IPHONE.test(userAgent$1);
|
|
143869
143868
|
const isIpod$1 = () => REGEX$1.IPOD.test(userAgent$1);
|
|
143870
143869
|
const isIpad$1 = () => {
|
|
143871
|
-
return REGEX$1.IPAD.test(userAgent$1) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 &&
|
|
143870
|
+
return REGEX$1.IPAD.test(userAgent$1) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 && REGEX$1.MAC.test(window.navigator.platform));
|
|
143872
143871
|
};
|
|
143873
143872
|
const isIos$1 = () => isIphone$1() || isIpod$1() || isIpad$1();
|
|
143873
|
+
const isSafari$1 = () => navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1;
|
|
143874
143874
|
const isLargeTabletLandscape$1 = (landScapeWidth, landScapeHeight) => {
|
|
143875
143875
|
const width = landScapeWidth || '1366px';
|
|
143876
143876
|
const height = landScapeHeight || '1024px';
|
|
@@ -144092,7 +144092,7 @@ const getFormattedDate$1 = (datePipe, dateObj, format, timeZone, isTimeStampType
|
|
|
144092
144092
|
if (format === 'UTC') {
|
|
144093
144093
|
return new Date(dateObj).toISOString();
|
|
144094
144094
|
}
|
|
144095
|
-
if (timeZone) {
|
|
144095
|
+
if (timeZone && timeZone !== moment.defaultZone?.name) {
|
|
144096
144096
|
const momentFormat = format.replaceAll('y', 'Y').replaceAll('d', 'D').replace('a', 'A');
|
|
144097
144097
|
if (isIntervalDateTime) { // dates which are of type time widget (value is hh:mm:ss) but returned as date string from time comp
|
|
144098
144098
|
return moment(dateObj).format(momentFormat);
|
|
@@ -144484,6 +144484,7 @@ const isEqualWithFields$1 = (obj1, obj2, compareBy) => {
|
|
|
144484
144484
|
// compareBy can be 'id' or 'id1, id2' or 'id1, id2:id3'
|
|
144485
144485
|
// Split the compareby comma separated values
|
|
144486
144486
|
let _compareBy = isArray$2(compareBy) ? compareBy : split$1(compareBy, ',');
|
|
144487
|
+
//@ts-ignore
|
|
144487
144488
|
_compareBy = map$2(_compareBy, trim$1);
|
|
144488
144489
|
return isEqualWith$1(obj1, obj2, function (o1, o2) {
|
|
144489
144490
|
return every$1(_compareBy, function (cb) {
|
|
@@ -145338,6 +145339,7 @@ var Utils$1 = /*#__PURE__*/Object.freeze({
|
|
|
145338
145339
|
isNumberType: isNumberType$1,
|
|
145339
145340
|
isObject: isObject$3,
|
|
145340
145341
|
isPageable: isPageable$1,
|
|
145342
|
+
isSafari: isSafari$1,
|
|
145341
145343
|
isTablet: isTablet$1,
|
|
145342
145344
|
isValidWebURL: isValidWebURL$1,
|
|
145343
145345
|
isVideoFile: isVideoFile$1,
|
|
@@ -146875,7 +146877,7 @@ class FileIconClassPipe {
|
|
|
146875
146877
|
class StateClassPipe {
|
|
146876
146878
|
transform(state) {
|
|
146877
146879
|
const stateClassMap = {
|
|
146878
|
-
'success': 'wi wi-
|
|
146880
|
+
'success': 'wi wi-check-circle text-success',
|
|
146879
146881
|
'error': 'wi wi-error text-danger'
|
|
146880
146882
|
};
|
|
146881
146883
|
return stateClassMap[state.toLowerCase()];
|
|
@@ -185794,6 +185796,8 @@ if ((DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3)
|
|
|
185794
185796
|
};
|
|
185795
185797
|
}
|
|
185796
185798
|
|
|
185799
|
+
var getTag$1 = getTag;
|
|
185800
|
+
|
|
185797
185801
|
/** Used for built-in method references. */
|
|
185798
185802
|
var objectProto$c = Object.prototype;
|
|
185799
185803
|
|
|
@@ -185986,7 +185990,7 @@ var mapTag$6 = '[object Map]';
|
|
|
185986
185990
|
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
185987
185991
|
*/
|
|
185988
185992
|
function baseIsMap(value) {
|
|
185989
|
-
return isObjectLike(value) && getTag(value) == mapTag$6;
|
|
185993
|
+
return isObjectLike(value) && getTag$1(value) == mapTag$6;
|
|
185990
185994
|
}
|
|
185991
185995
|
|
|
185992
185996
|
/* Node.js helper references. */
|
|
@@ -186022,7 +186026,7 @@ var setTag$6 = '[object Set]';
|
|
|
186022
186026
|
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
186023
186027
|
*/
|
|
186024
186028
|
function baseIsSet(value) {
|
|
186025
|
-
return isObjectLike(value) && getTag(value) == setTag$6;
|
|
186029
|
+
return isObjectLike(value) && getTag$1(value) == setTag$6;
|
|
186026
186030
|
}
|
|
186027
186031
|
|
|
186028
186032
|
/* Node.js helper references. */
|
|
@@ -186135,7 +186139,7 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
186135
186139
|
return copyArray(value, result);
|
|
186136
186140
|
}
|
|
186137
186141
|
} else {
|
|
186138
|
-
var tag = getTag(value),
|
|
186142
|
+
var tag = getTag$1(value),
|
|
186139
186143
|
isFunc = tag == funcTag || tag == genTag;
|
|
186140
186144
|
|
|
186141
186145
|
if (isBuffer(value)) {
|
|
@@ -186843,8 +186847,8 @@ var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
|
|
|
186843
186847
|
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
186844
186848
|
var objIsArr = isArray(object),
|
|
186845
186849
|
othIsArr = isArray(other),
|
|
186846
|
-
objTag = objIsArr ? arrayTag : getTag(object),
|
|
186847
|
-
othTag = othIsArr ? arrayTag : getTag(other);
|
|
186850
|
+
objTag = objIsArr ? arrayTag : getTag$1(object),
|
|
186851
|
+
othTag = othIsArr ? arrayTag : getTag$1(other);
|
|
186848
186852
|
|
|
186849
186853
|
objTag = objTag == argsTag ? objectTag : objTag;
|
|
186850
186854
|
othTag = othTag == argsTag ? objectTag : othTag;
|
|
@@ -188919,7 +188923,7 @@ var mapTag$3 = '[object Map]',
|
|
|
188919
188923
|
*/
|
|
188920
188924
|
function createToPairs(keysFunc) {
|
|
188921
188925
|
return function(object) {
|
|
188922
|
-
var tag = getTag(object);
|
|
188926
|
+
var tag = getTag$1(object);
|
|
188923
188927
|
if (tag == mapTag$3) {
|
|
188924
188928
|
return mapToArray(object);
|
|
188925
188929
|
}
|
|
@@ -191166,7 +191170,7 @@ function isEmpty(value) {
|
|
|
191166
191170
|
isBuffer(value) || isTypedArray(value) || isArguments(value))) {
|
|
191167
191171
|
return !value.length;
|
|
191168
191172
|
}
|
|
191169
|
-
var tag = getTag(value);
|
|
191173
|
+
var tag = getTag$1(value);
|
|
191170
191174
|
if (tag == mapTag$2 || tag == setTag$2) {
|
|
191171
191175
|
return !value.size;
|
|
191172
191176
|
}
|
|
@@ -191654,7 +191658,7 @@ var weakMapTag = '[object WeakMap]';
|
|
|
191654
191658
|
* // => false
|
|
191655
191659
|
*/
|
|
191656
191660
|
function isWeakMap(value) {
|
|
191657
|
-
return isObjectLike(value) && getTag(value) == weakMapTag;
|
|
191661
|
+
return isObjectLike(value) && getTag$1(value) == weakMapTag;
|
|
191658
191662
|
}
|
|
191659
191663
|
|
|
191660
191664
|
/** `Object#toString` result references. */
|
|
@@ -192625,7 +192629,7 @@ function toArray(value) {
|
|
|
192625
192629
|
if (symIterator$1 && value[symIterator$1]) {
|
|
192626
192630
|
return iteratorToArray(value[symIterator$1]());
|
|
192627
192631
|
}
|
|
192628
|
-
var tag = getTag(value),
|
|
192632
|
+
var tag = getTag$1(value),
|
|
192629
192633
|
func = tag == mapTag$1 ? mapToArray : (tag == setTag$1 ? setToArray : values);
|
|
192630
192634
|
|
|
192631
192635
|
return func(value);
|
|
@@ -194964,7 +194968,7 @@ function size(collection) {
|
|
|
194964
194968
|
if (isArrayLike(collection)) {
|
|
194965
194969
|
return isString(collection) ? stringSize(collection) : collection.length;
|
|
194966
194970
|
}
|
|
194967
|
-
var tag = getTag(collection);
|
|
194971
|
+
var tag = getTag$1(collection);
|
|
194968
194972
|
if (tag == mapTag || tag == setTag) {
|
|
194969
194973
|
return collection.size;
|
|
194970
194974
|
}
|
|
@@ -201357,6 +201361,7 @@ var FormWidgetType;
|
|
|
201357
201361
|
FormWidgetType["CHIPS"] = "chips";
|
|
201358
201362
|
FormWidgetType["COLORPICKER"] = "colorpicker";
|
|
201359
201363
|
FormWidgetType["CURRENCY"] = "currency";
|
|
201364
|
+
FormWidgetType["CUSTOMWIDGET"] = "custom-widget";
|
|
201360
201365
|
FormWidgetType["DATE"] = "date";
|
|
201361
201366
|
FormWidgetType["DATETIME"] = "datetime";
|
|
201362
201367
|
FormWidgetType["NUMBER"] = "number";
|
|
@@ -201374,7 +201379,6 @@ var FormWidgetType;
|
|
|
201374
201379
|
FormWidgetType["TIMESTAMP"] = "timestamp";
|
|
201375
201380
|
FormWidgetType["TYPEAHEAD"] = "typeahead";
|
|
201376
201381
|
FormWidgetType["UPLOAD"] = "upload";
|
|
201377
|
-
FormWidgetType["CUSTOM"] = "custom";
|
|
201378
201382
|
})(FormWidgetType || (FormWidgetType = {}));
|
|
201379
201383
|
var DataType;
|
|
201380
201384
|
(function (DataType) {
|
|
@@ -202093,7 +202097,6 @@ const REGEX = {
|
|
|
202093
202097
|
IPOD: /iPod/i,
|
|
202094
202098
|
IPAD: /iPad/i,
|
|
202095
202099
|
MAC: /Mac/i,
|
|
202096
|
-
MACINTEL: /MacIntel/i,
|
|
202097
202100
|
ANDROID_TABLET: /android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i,
|
|
202098
202101
|
MOBILE: /Mobile/i,
|
|
202099
202102
|
WINDOWS: /Windows Phone/i,
|
|
@@ -202145,9 +202148,10 @@ const isAndroidTablet = () => REGEX.ANDROID_TABLET.test(userAgent) && !((/Tablet
|
|
|
202145
202148
|
const isIphone = () => REGEX.IPHONE.test(userAgent);
|
|
202146
202149
|
const isIpod = () => REGEX.IPOD.test(userAgent);
|
|
202147
202150
|
const isIpad = () => {
|
|
202148
|
-
return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 &&
|
|
202151
|
+
return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 && REGEX.MAC.test(window.navigator.platform));
|
|
202149
202152
|
};
|
|
202150
202153
|
const isIos = () => isIphone() || isIpod() || isIpad();
|
|
202154
|
+
const isSafari = () => navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1;
|
|
202151
202155
|
const isLargeTabletLandscape = (landScapeWidth, landScapeHeight) => {
|
|
202152
202156
|
const width = landScapeWidth || '1366px';
|
|
202153
202157
|
const height = landScapeHeight || '1024px';
|
|
@@ -202369,7 +202373,7 @@ const getFormattedDate = (datePipe, dateObj, format, timeZone, isTimeStampType,
|
|
|
202369
202373
|
if (format === 'UTC') {
|
|
202370
202374
|
return new Date(dateObj).toISOString();
|
|
202371
202375
|
}
|
|
202372
|
-
if (timeZone) {
|
|
202376
|
+
if (timeZone && timeZone !== moment.defaultZone?.name) {
|
|
202373
202377
|
const momentFormat = format.replaceAll('y', 'Y').replaceAll('d', 'D').replace('a', 'A');
|
|
202374
202378
|
if (isIntervalDateTime) { // dates which are of type time widget (value is hh:mm:ss) but returned as date string from time comp
|
|
202375
202379
|
return moment(dateObj).format(momentFormat);
|
|
@@ -202761,6 +202765,7 @@ const isEqualWithFields = (obj1, obj2, compareBy) => {
|
|
|
202761
202765
|
// compareBy can be 'id' or 'id1, id2' or 'id1, id2:id3'
|
|
202762
202766
|
// Split the compareby comma separated values
|
|
202763
202767
|
let _compareBy = isArray(compareBy) ? compareBy : split(compareBy, ',');
|
|
202768
|
+
//@ts-ignore
|
|
202764
202769
|
_compareBy = map(_compareBy, trim);
|
|
202765
202770
|
return isEqualWith(obj1, obj2, function (o1, o2) {
|
|
202766
202771
|
return every(_compareBy, function (cb) {
|
|
@@ -203615,6 +203620,7 @@ var Utils = /*#__PURE__*/Object.freeze({
|
|
|
203615
203620
|
isNumberType: isNumberType,
|
|
203616
203621
|
isObject: isObject,
|
|
203617
203622
|
isPageable: isPageable,
|
|
203623
|
+
isSafari: isSafari,
|
|
203618
203624
|
isTablet: isTablet,
|
|
203619
203625
|
isValidWebURL: isValidWebURL,
|
|
203620
203626
|
isVideoFile: isVideoFile,
|