@wavemaker/angular-codegen 11.14.2-rc.6311 → 11.15.0-rc.245
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/angular-app/angular.json +8 -1
- package/angular-app/dependency-report.html +1 -1
- package/angular-app/npm-shrinkwrap.json +1112 -1022
- package/angular-app/package-lock.json +1112 -1022
- package/angular-app/package.json +10 -5
- package/angular-app/src/assets/styles/css/wm-style.css +1 -1
- package/angular-app/src/tsconfig.app.json +5 -2
- package/build-angular-app.js +20 -1
- package/dependencies/custom-widgets-bundle.cjs.js +43 -37
- package/dependencies/expression-parser.cjs.js +2 -2
- package/dependencies/pipe-provider.cjs.js +40 -26
- package/dependencies/transpilation-web.cjs.js +37 -15
- package/download-packages.js +53 -5
- package/npm-shrinkwrap.json +190 -192
- package/package-lock.json +190 -192
- package/package.json +2 -2
- package/src/codegen.js +1 -1
- package/src/gen-app-codegen-module.js +1 -1
- package/src/gen-app-skeleton.js +1 -1
- package/src/gen-components.js +1 -1
- package/src/gen-layouts.js +1 -1
- package/src/project-meta.js +1 -1
- package/src/wm-utils.js +1 -1
- package/templates/app.config.ts.hbs +11 -1
- package/angular-app/src/app/app-codegen.module.ts +0 -11
- package/angular-app/src/framework/angular1.polyfills.ts +0 -36
|
@@ -5867,14 +5867,14 @@ function createNgModuleType(meta) {
|
|
|
5867
5867
|
if (meta.kind === R3NgModuleMetadataKind.Local) {
|
|
5868
5868
|
return new ExpressionType$1(meta.type.value);
|
|
5869
5869
|
}
|
|
5870
|
-
const { type: moduleType, declarations, exports
|
|
5870
|
+
const { type: moduleType, declarations, exports, imports, includeImportTypes, publicDeclarationTypes, } = meta;
|
|
5871
5871
|
return new ExpressionType$1(importExpr(Identifiers.NgModuleDeclaration, [
|
|
5872
5872
|
new ExpressionType$1(moduleType.type),
|
|
5873
5873
|
publicDeclarationTypes === null
|
|
5874
5874
|
? tupleTypeOf(declarations)
|
|
5875
5875
|
: tupleOfTypes(publicDeclarationTypes),
|
|
5876
5876
|
includeImportTypes ? tupleTypeOf(imports) : NONE_TYPE,
|
|
5877
|
-
tupleTypeOf(exports
|
|
5877
|
+
tupleTypeOf(exports),
|
|
5878
5878
|
]));
|
|
5879
5879
|
}
|
|
5880
5880
|
/**
|
|
@@ -33117,7 +33117,7 @@ function verifySemanticsOfNgModuleDef$1(moduleType, allowDuplicateDeclarationsIn
|
|
|
33117
33117
|
verifySemanticsOfNgModuleImport(modOrStandaloneCmpt, moduleType);
|
|
33118
33118
|
verifySemanticsOfNgModuleDef$1(modOrStandaloneCmpt, false, moduleType);
|
|
33119
33119
|
});
|
|
33120
|
-
const exports
|
|
33120
|
+
const exports = maybeUnwrapFn$1(ngModuleDef.exports);
|
|
33121
33121
|
declarations.forEach(verifyDeclarationsHaveDefinitions);
|
|
33122
33122
|
declarations.forEach(verifyDirectivesHaveSelector);
|
|
33123
33123
|
declarations.forEach((declarationType) => verifyNotStandalone(declarationType, moduleType));
|
|
@@ -33125,7 +33125,7 @@ function verifySemanticsOfNgModuleDef$1(moduleType, allowDuplicateDeclarationsIn
|
|
|
33125
33125
|
...declarations.map(resolveForwardRef$1),
|
|
33126
33126
|
...flatten$3(imports.map(computeCombinedExports$1)).map(resolveForwardRef$1),
|
|
33127
33127
|
];
|
|
33128
|
-
exports
|
|
33128
|
+
exports.forEach(verifyExportsAreDeclaredOrReExported);
|
|
33129
33129
|
declarations.forEach((decl) => verifyDeclarationIsUnique(decl, allowDuplicateDeclarationsInRoot));
|
|
33130
33130
|
const ngModule = getAnnotation$1(moduleType, 'NgModule');
|
|
33131
33131
|
if (ngModule) {
|
|
@@ -81193,7 +81193,7 @@ function verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRo
|
|
|
81193
81193
|
verifySemanticsOfNgModuleImport(modOrStandaloneCmpt, moduleType);
|
|
81194
81194
|
verifySemanticsOfNgModuleDef(modOrStandaloneCmpt, false, moduleType);
|
|
81195
81195
|
});
|
|
81196
|
-
const exports
|
|
81196
|
+
const exports = maybeUnwrapFn(ngModuleDef.exports);
|
|
81197
81197
|
declarations.forEach(verifyDeclarationsHaveDefinitions);
|
|
81198
81198
|
declarations.forEach(verifyDirectivesHaveSelector);
|
|
81199
81199
|
declarations.forEach((declarationType) => verifyNotStandalone(declarationType, moduleType));
|
|
@@ -81201,7 +81201,7 @@ function verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRo
|
|
|
81201
81201
|
...declarations.map(resolveForwardRef),
|
|
81202
81202
|
...flatten$1(imports.map(computeCombinedExports)).map(resolveForwardRef),
|
|
81203
81203
|
];
|
|
81204
|
-
exports
|
|
81204
|
+
exports.forEach(verifyExportsAreDeclaredOrReExported);
|
|
81205
81205
|
declarations.forEach((decl) => verifyDeclarationIsUnique(decl, allowDuplicateDeclarationsInRoot));
|
|
81206
81206
|
const ngModule = getAnnotation(moduleType, 'NgModule');
|
|
81207
81207
|
if (ngModule) {
|
|
@@ -102019,14 +102019,14 @@ function createNgModuleType$1(meta) {
|
|
|
102019
102019
|
if (meta.kind === R3NgModuleMetadataKind$1.Local) {
|
|
102020
102020
|
return new ExpressionType$1$1(meta.type.value);
|
|
102021
102021
|
}
|
|
102022
|
-
const { type: moduleType, declarations, exports
|
|
102022
|
+
const { type: moduleType, declarations, exports, imports, includeImportTypes, publicDeclarationTypes, } = meta;
|
|
102023
102023
|
return new ExpressionType$1$1(importExpr$1(Identifiers$1.NgModuleDeclaration, [
|
|
102024
102024
|
new ExpressionType$1$1(moduleType.type),
|
|
102025
102025
|
publicDeclarationTypes === null
|
|
102026
102026
|
? tupleTypeOf$1(declarations)
|
|
102027
102027
|
: tupleOfTypes$1(publicDeclarationTypes),
|
|
102028
102028
|
includeImportTypes ? tupleTypeOf$1(imports) : NONE_TYPE$1,
|
|
102029
|
-
tupleTypeOf$1(exports
|
|
102029
|
+
tupleTypeOf$1(exports),
|
|
102030
102030
|
]));
|
|
102031
102031
|
}
|
|
102032
102032
|
/**
|
|
@@ -125009,7 +125009,7 @@ function toFinite$1(value) {
|
|
|
125009
125009
|
return value === 0 ? value : 0;
|
|
125010
125010
|
}
|
|
125011
125011
|
value = toNumber$1(value);
|
|
125012
|
-
if (value === INFINITY$1 || value === -
|
|
125012
|
+
if (value === INFINITY$1 || value === -Infinity) {
|
|
125013
125013
|
var sign = (value < 0 ? -1 : 1);
|
|
125014
125014
|
return sign * MAX_INTEGER$1;
|
|
125015
125015
|
}
|
|
@@ -133049,7 +133049,7 @@ var hasRequiredEntities$1;
|
|
|
133049
133049
|
function requireEntities$1 () {
|
|
133050
133050
|
if (hasRequiredEntities$1) return entities$1;
|
|
133051
133051
|
hasRequiredEntities$1 = 1;
|
|
133052
|
-
(function (exports
|
|
133052
|
+
(function (exports) {
|
|
133053
133053
|
|
|
133054
133054
|
var freeze = requireConventions$1().freeze;
|
|
133055
133055
|
|
|
@@ -133060,7 +133060,7 @@ function requireEntities$1 () {
|
|
|
133060
133060
|
* @see https://www.w3.org/TR/2008/REC-xml-20081126/#sec-predefined-ent W3C XML 1.0
|
|
133061
133061
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML Wikipedia
|
|
133062
133062
|
*/
|
|
133063
|
-
exports
|
|
133063
|
+
exports.XML_ENTITIES = freeze({
|
|
133064
133064
|
amp: '&',
|
|
133065
133065
|
apos: "'",
|
|
133066
133066
|
gt: '>',
|
|
@@ -133082,7 +133082,7 @@ function requireEntities$1 () {
|
|
|
133082
133082
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML Wikipedia (HTML)
|
|
133083
133083
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Entities_representing_special_characters_in_XHTML Wikpedia (XHTML)
|
|
133084
133084
|
*/
|
|
133085
|
-
exports
|
|
133085
|
+
exports.HTML_ENTITIES = freeze({
|
|
133086
133086
|
Aacute: '\u00C1',
|
|
133087
133087
|
aacute: '\u00E1',
|
|
133088
133088
|
Abreve: '\u0102',
|
|
@@ -135214,7 +135214,7 @@ function requireEntities$1 () {
|
|
|
135214
135214
|
* @deprecated use `HTML_ENTITIES` instead
|
|
135215
135215
|
* @see HTML_ENTITIES
|
|
135216
135216
|
*/
|
|
135217
|
-
exports
|
|
135217
|
+
exports.entityMap = exports.HTML_ENTITIES;
|
|
135218
135218
|
} (entities$1));
|
|
135219
135219
|
return entities$1;
|
|
135220
135220
|
}
|
|
@@ -137022,7 +137022,7 @@ var hasRequiredMoment$1;
|
|
|
137022
137022
|
function requireMoment$1 () {
|
|
137023
137023
|
if (hasRequiredMoment$1) return moment$2.exports;
|
|
137024
137024
|
hasRequiredMoment$1 = 1;
|
|
137025
|
-
(function (module, exports
|
|
137025
|
+
(function (module, exports) {
|
|
137026
137026
|
(function (global, factory) {
|
|
137027
137027
|
module.exports = factory() ;
|
|
137028
137028
|
}(this, (function () {
|
|
@@ -146174,6 +146174,7 @@ var FormWidgetType$1;
|
|
|
146174
146174
|
FormWidgetType["CUSTOMWIDGET"] = "custom-widget";
|
|
146175
146175
|
FormWidgetType["DATE"] = "date";
|
|
146176
146176
|
FormWidgetType["DATETIME"] = "datetime";
|
|
146177
|
+
FormWidgetType["ICONBUTTONTOGGLE"] = "iconbutton-toggle";
|
|
146177
146178
|
FormWidgetType["NUMBER"] = "number";
|
|
146178
146179
|
FormWidgetType["PASSWORD"] = "password";
|
|
146179
146180
|
FormWidgetType["RADIOSET"] = "radioset";
|
|
@@ -148014,6 +148015,7 @@ const $watch$1 = (expr, $scope, $locals, listener, identifier = watchIdGenerator
|
|
|
148014
148015
|
const fn = $parseExpr$1();
|
|
148015
148016
|
const scopeType = getScopeType$1($scope);
|
|
148016
148017
|
const scopeName = getScopeName$1($scope, scopeType);
|
|
148018
|
+
const destroyFn = () => $unwatch$1(identifier);
|
|
148017
148019
|
const watchInfo = {
|
|
148018
148020
|
fn: fn.bind(null, $scope, $locals),
|
|
148019
148021
|
listener,
|
|
@@ -148022,7 +148024,8 @@ const $watch$1 = (expr, $scope, $locals, listener, identifier = watchIdGenerator
|
|
|
148022
148024
|
doNotClone,
|
|
148023
148025
|
isMuted,
|
|
148024
148026
|
scopeType,
|
|
148025
|
-
scopeName
|
|
148027
|
+
scopeName,
|
|
148028
|
+
destroyFn
|
|
148026
148029
|
};
|
|
148027
148030
|
// Store in registry
|
|
148028
148031
|
const widgetId = getWidgetId$1(identifier);
|
|
@@ -148037,7 +148040,7 @@ const $watch$1 = (expr, $scope, $locals, listener, identifier = watchIdGenerator
|
|
|
148037
148040
|
else {
|
|
148038
148041
|
registry$1.set(identifier, watchInfo);
|
|
148039
148042
|
}
|
|
148040
|
-
return
|
|
148043
|
+
return destroyFn;
|
|
148041
148044
|
};
|
|
148042
148045
|
/**
|
|
148043
148046
|
* Unwatches a single identifier
|
|
@@ -148047,6 +148050,7 @@ const $unwatch$1 = (identifier) => {
|
|
|
148047
148050
|
if (widgetId) {
|
|
148048
148051
|
const propertyName = getPropertyName$1(identifier);
|
|
148049
148052
|
const widgetGroup = registry$1.get(widgetId);
|
|
148053
|
+
//@ts-ignore
|
|
148050
148054
|
if (widgetGroup && typeof widgetGroup === 'object' && !widgetGroup.fn) {
|
|
148051
148055
|
const watchInfo = widgetGroup[propertyName];
|
|
148052
148056
|
if (watchInfo) {
|
|
@@ -149493,7 +149497,10 @@ const getAppSetting$1 = (key, defaultValue) => {
|
|
|
149493
149497
|
const setListClass$1 = (scope) => {
|
|
149494
149498
|
let temp = '';
|
|
149495
149499
|
if (scope.itemsperrow) {
|
|
149496
|
-
if (
|
|
149500
|
+
if (scope.itemsperrow === "auto") {
|
|
149501
|
+
scope.itemsPerRowClass = "";
|
|
149502
|
+
}
|
|
149503
|
+
else if (isNaN(parseInt(scope.itemsperrow, 10))) {
|
|
149497
149504
|
// handling itemsperrow containing string of classes
|
|
149498
149505
|
split$1(scope.itemsperrow, ' ').forEach((cls) => {
|
|
149499
149506
|
const keys = split$1(cls, '-');
|
|
@@ -158882,14 +158889,14 @@ function createNgModuleType(meta) {
|
|
|
158882
158889
|
if (meta.kind === R3NgModuleMetadataKind.Local) {
|
|
158883
158890
|
return new ExpressionType$1(meta.type.value);
|
|
158884
158891
|
}
|
|
158885
|
-
const { type: moduleType, declarations, exports
|
|
158892
|
+
const { type: moduleType, declarations, exports, imports, includeImportTypes, publicDeclarationTypes, } = meta;
|
|
158886
158893
|
return new ExpressionType$1(importExpr(Identifiers.NgModuleDeclaration, [
|
|
158887
158894
|
new ExpressionType$1(moduleType.type),
|
|
158888
158895
|
publicDeclarationTypes === null
|
|
158889
158896
|
? tupleTypeOf(declarations)
|
|
158890
158897
|
: tupleOfTypes(publicDeclarationTypes),
|
|
158891
158898
|
includeImportTypes ? tupleTypeOf(imports) : NONE_TYPE,
|
|
158892
|
-
tupleTypeOf(exports
|
|
158899
|
+
tupleTypeOf(exports),
|
|
158893
158900
|
]));
|
|
158894
158901
|
}
|
|
158895
158902
|
/**
|
|
@@ -181872,7 +181879,7 @@ function toFinite(value) {
|
|
|
181872
181879
|
return value === 0 ? value : 0;
|
|
181873
181880
|
}
|
|
181874
181881
|
value = toNumber(value);
|
|
181875
|
-
if (value === INFINITY || value === -
|
|
181882
|
+
if (value === INFINITY || value === -Infinity) {
|
|
181876
181883
|
var sign = (value < 0 ? -1 : 1);
|
|
181877
181884
|
return sign * MAX_INTEGER;
|
|
181878
181885
|
}
|
|
@@ -189912,7 +189919,7 @@ var hasRequiredEntities;
|
|
|
189912
189919
|
function requireEntities () {
|
|
189913
189920
|
if (hasRequiredEntities) return entities;
|
|
189914
189921
|
hasRequiredEntities = 1;
|
|
189915
|
-
(function (exports
|
|
189922
|
+
(function (exports) {
|
|
189916
189923
|
|
|
189917
189924
|
var freeze = requireConventions().freeze;
|
|
189918
189925
|
|
|
@@ -189923,7 +189930,7 @@ function requireEntities () {
|
|
|
189923
189930
|
* @see https://www.w3.org/TR/2008/REC-xml-20081126/#sec-predefined-ent W3C XML 1.0
|
|
189924
189931
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML Wikipedia
|
|
189925
189932
|
*/
|
|
189926
|
-
exports
|
|
189933
|
+
exports.XML_ENTITIES = freeze({
|
|
189927
189934
|
amp: '&',
|
|
189928
189935
|
apos: "'",
|
|
189929
189936
|
gt: '>',
|
|
@@ -189945,7 +189952,7 @@ function requireEntities () {
|
|
|
189945
189952
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML Wikipedia (HTML)
|
|
189946
189953
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Entities_representing_special_characters_in_XHTML Wikpedia (XHTML)
|
|
189947
189954
|
*/
|
|
189948
|
-
exports
|
|
189955
|
+
exports.HTML_ENTITIES = freeze({
|
|
189949
189956
|
Aacute: '\u00C1',
|
|
189950
189957
|
aacute: '\u00E1',
|
|
189951
189958
|
Abreve: '\u0102',
|
|
@@ -192077,7 +192084,7 @@ function requireEntities () {
|
|
|
192077
192084
|
* @deprecated use `HTML_ENTITIES` instead
|
|
192078
192085
|
* @see HTML_ENTITIES
|
|
192079
192086
|
*/
|
|
192080
|
-
exports
|
|
192087
|
+
exports.entityMap = exports.HTML_ENTITIES;
|
|
192081
192088
|
} (entities));
|
|
192082
192089
|
return entities;
|
|
192083
192090
|
}
|
|
@@ -193885,7 +193892,7 @@ var hasRequiredMoment;
|
|
|
193885
193892
|
function requireMoment () {
|
|
193886
193893
|
if (hasRequiredMoment) return moment$1.exports;
|
|
193887
193894
|
hasRequiredMoment = 1;
|
|
193888
|
-
(function (module, exports
|
|
193895
|
+
(function (module, exports) {
|
|
193889
193896
|
(function (global, factory) {
|
|
193890
193897
|
module.exports = factory() ;
|
|
193891
193898
|
}(this, (function () {
|
|
@@ -203037,6 +203044,7 @@ var FormWidgetType;
|
|
|
203037
203044
|
FormWidgetType["CUSTOMWIDGET"] = "custom-widget";
|
|
203038
203045
|
FormWidgetType["DATE"] = "date";
|
|
203039
203046
|
FormWidgetType["DATETIME"] = "datetime";
|
|
203047
|
+
FormWidgetType["ICONBUTTONTOGGLE"] = "iconbutton-toggle";
|
|
203040
203048
|
FormWidgetType["NUMBER"] = "number";
|
|
203041
203049
|
FormWidgetType["PASSWORD"] = "password";
|
|
203042
203050
|
FormWidgetType["RADIOSET"] = "radioset";
|
|
@@ -203812,6 +203820,7 @@ const $watch = (expr, $scope, $locals, listener, identifier = watchIdGenerator.n
|
|
|
203812
203820
|
const fn = $parseExpr();
|
|
203813
203821
|
const scopeType = getScopeType($scope);
|
|
203814
203822
|
const scopeName = getScopeName($scope, scopeType);
|
|
203823
|
+
const destroyFn = () => $unwatch(identifier);
|
|
203815
203824
|
const watchInfo = {
|
|
203816
203825
|
fn: fn.bind(null, $scope, $locals),
|
|
203817
203826
|
listener,
|
|
@@ -203820,7 +203829,8 @@ const $watch = (expr, $scope, $locals, listener, identifier = watchIdGenerator.n
|
|
|
203820
203829
|
doNotClone,
|
|
203821
203830
|
isMuted,
|
|
203822
203831
|
scopeType,
|
|
203823
|
-
scopeName
|
|
203832
|
+
scopeName,
|
|
203833
|
+
destroyFn
|
|
203824
203834
|
};
|
|
203825
203835
|
// Store in registry
|
|
203826
203836
|
const widgetId = getWidgetId(identifier);
|
|
@@ -203835,7 +203845,7 @@ const $watch = (expr, $scope, $locals, listener, identifier = watchIdGenerator.n
|
|
|
203835
203845
|
else {
|
|
203836
203846
|
registry.set(identifier, watchInfo);
|
|
203837
203847
|
}
|
|
203838
|
-
return
|
|
203848
|
+
return destroyFn;
|
|
203839
203849
|
};
|
|
203840
203850
|
/**
|
|
203841
203851
|
* Unwatches a single identifier
|
|
@@ -203845,6 +203855,7 @@ const $unwatch = (identifier) => {
|
|
|
203845
203855
|
if (widgetId) {
|
|
203846
203856
|
const propertyName = getPropertyName(identifier);
|
|
203847
203857
|
const widgetGroup = registry.get(widgetId);
|
|
203858
|
+
//@ts-ignore
|
|
203848
203859
|
if (widgetGroup && typeof widgetGroup === 'object' && !widgetGroup.fn) {
|
|
203849
203860
|
const watchInfo = widgetGroup[propertyName];
|
|
203850
203861
|
if (watchInfo) {
|
|
@@ -205291,7 +205302,10 @@ const getAppSetting = (key, defaultValue) => {
|
|
|
205291
205302
|
const setListClass = (scope) => {
|
|
205292
205303
|
let temp = '';
|
|
205293
205304
|
if (scope.itemsperrow) {
|
|
205294
|
-
if (
|
|
205305
|
+
if (scope.itemsperrow === "auto") {
|
|
205306
|
+
scope.itemsPerRowClass = "";
|
|
205307
|
+
}
|
|
205308
|
+
else if (isNaN(parseInt(scope.itemsperrow, 10))) {
|
|
205295
205309
|
// handling itemsperrow containing string of classes
|
|
205296
205310
|
split(scope.itemsperrow, ' ').forEach((cls) => {
|
|
205297
205311
|
const keys = split(cls, '-');
|
|
@@ -5867,14 +5867,14 @@ function createNgModuleType(meta) {
|
|
|
5867
5867
|
if (meta.kind === R3NgModuleMetadataKind.Local) {
|
|
5868
5868
|
return new ExpressionType$1(meta.type.value);
|
|
5869
5869
|
}
|
|
5870
|
-
const { type: moduleType, declarations, exports
|
|
5870
|
+
const { type: moduleType, declarations, exports, imports, includeImportTypes, publicDeclarationTypes, } = meta;
|
|
5871
5871
|
return new ExpressionType$1(importExpr(Identifiers.NgModuleDeclaration, [
|
|
5872
5872
|
new ExpressionType$1(moduleType.type),
|
|
5873
5873
|
publicDeclarationTypes === null
|
|
5874
5874
|
? tupleTypeOf(declarations)
|
|
5875
5875
|
: tupleOfTypes(publicDeclarationTypes),
|
|
5876
5876
|
includeImportTypes ? tupleTypeOf(imports) : NONE_TYPE,
|
|
5877
|
-
tupleTypeOf(exports
|
|
5877
|
+
tupleTypeOf(exports),
|
|
5878
5878
|
]));
|
|
5879
5879
|
}
|
|
5880
5880
|
/**
|
|
@@ -28857,7 +28857,7 @@ function toFinite(value) {
|
|
|
28857
28857
|
return value === 0 ? value : 0;
|
|
28858
28858
|
}
|
|
28859
28859
|
value = toNumber(value);
|
|
28860
|
-
if (value === INFINITY$1 || value === -
|
|
28860
|
+
if (value === INFINITY$1 || value === -Infinity) {
|
|
28861
28861
|
var sign = (value < 0 ? -1 : 1);
|
|
28862
28862
|
return sign * MAX_INTEGER;
|
|
28863
28863
|
}
|
|
@@ -39572,7 +39572,7 @@ var hasRequiredEntities;
|
|
|
39572
39572
|
function requireEntities () {
|
|
39573
39573
|
if (hasRequiredEntities) return entities;
|
|
39574
39574
|
hasRequiredEntities = 1;
|
|
39575
|
-
(function (exports
|
|
39575
|
+
(function (exports) {
|
|
39576
39576
|
|
|
39577
39577
|
var freeze = requireConventions().freeze;
|
|
39578
39578
|
|
|
@@ -39583,7 +39583,7 @@ function requireEntities () {
|
|
|
39583
39583
|
* @see https://www.w3.org/TR/2008/REC-xml-20081126/#sec-predefined-ent W3C XML 1.0
|
|
39584
39584
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML Wikipedia
|
|
39585
39585
|
*/
|
|
39586
|
-
exports
|
|
39586
|
+
exports.XML_ENTITIES = freeze({
|
|
39587
39587
|
amp: '&',
|
|
39588
39588
|
apos: "'",
|
|
39589
39589
|
gt: '>',
|
|
@@ -39605,7 +39605,7 @@ function requireEntities () {
|
|
|
39605
39605
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML Wikipedia (HTML)
|
|
39606
39606
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Entities_representing_special_characters_in_XHTML Wikpedia (XHTML)
|
|
39607
39607
|
*/
|
|
39608
|
-
exports
|
|
39608
|
+
exports.HTML_ENTITIES = freeze({
|
|
39609
39609
|
Aacute: '\u00C1',
|
|
39610
39610
|
aacute: '\u00E1',
|
|
39611
39611
|
Abreve: '\u0102',
|
|
@@ -41737,7 +41737,7 @@ function requireEntities () {
|
|
|
41737
41737
|
* @deprecated use `HTML_ENTITIES` instead
|
|
41738
41738
|
* @see HTML_ENTITIES
|
|
41739
41739
|
*/
|
|
41740
|
-
exports
|
|
41740
|
+
exports.entityMap = exports.HTML_ENTITIES;
|
|
41741
41741
|
} (entities));
|
|
41742
41742
|
return entities;
|
|
41743
41743
|
}
|
|
@@ -43545,7 +43545,7 @@ var hasRequiredMoment;
|
|
|
43545
43545
|
function requireMoment () {
|
|
43546
43546
|
if (hasRequiredMoment) return moment$1.exports;
|
|
43547
43547
|
hasRequiredMoment = 1;
|
|
43548
|
-
(function (module, exports
|
|
43548
|
+
(function (module, exports) {
|
|
43549
43549
|
(function (global, factory) {
|
|
43550
43550
|
module.exports = factory() ;
|
|
43551
43551
|
}(this, (function () {
|
|
@@ -81680,7 +81680,7 @@ function verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRo
|
|
|
81680
81680
|
verifySemanticsOfNgModuleImport(modOrStandaloneCmpt, moduleType);
|
|
81681
81681
|
verifySemanticsOfNgModuleDef(modOrStandaloneCmpt, false, moduleType);
|
|
81682
81682
|
});
|
|
81683
|
-
const exports
|
|
81683
|
+
const exports = maybeUnwrapFn(ngModuleDef.exports);
|
|
81684
81684
|
declarations.forEach(verifyDeclarationsHaveDefinitions);
|
|
81685
81685
|
declarations.forEach(verifyDirectivesHaveSelector);
|
|
81686
81686
|
declarations.forEach((declarationType) => verifyNotStandalone(declarationType, moduleType));
|
|
@@ -81688,7 +81688,7 @@ function verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRo
|
|
|
81688
81688
|
...declarations.map(resolveForwardRef),
|
|
81689
81689
|
...flatten(imports.map(computeCombinedExports)).map(resolveForwardRef),
|
|
81690
81690
|
];
|
|
81691
|
-
exports
|
|
81691
|
+
exports.forEach(verifyExportsAreDeclaredOrReExported);
|
|
81692
81692
|
declarations.forEach((decl) => verifyDeclarationIsUnique(decl, allowDuplicateDeclarationsInRoot));
|
|
81693
81693
|
const ngModule = getAnnotation(moduleType, 'NgModule');
|
|
81694
81694
|
if (ngModule) {
|
|
@@ -99358,6 +99358,7 @@ var FormWidgetType;
|
|
|
99358
99358
|
FormWidgetType["CUSTOMWIDGET"] = "custom-widget";
|
|
99359
99359
|
FormWidgetType["DATE"] = "date";
|
|
99360
99360
|
FormWidgetType["DATETIME"] = "datetime";
|
|
99361
|
+
FormWidgetType["ICONBUTTONTOGGLE"] = "iconbutton-toggle";
|
|
99361
99362
|
FormWidgetType["NUMBER"] = "number";
|
|
99362
99363
|
FormWidgetType["PASSWORD"] = "password";
|
|
99363
99364
|
FormWidgetType["RADIOSET"] = "radioset";
|
|
@@ -99487,6 +99488,9 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
99487
99488
|
case FormWidgetType.TOGGLE:
|
|
99488
99489
|
tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="toggle" ${showTmpl}></div>`;
|
|
99489
99490
|
break;
|
|
99491
|
+
case FormWidgetType.ICONBUTTONTOGGLE:
|
|
99492
|
+
tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="button" ${showTmpl}></div>`;
|
|
99493
|
+
break;
|
|
99490
99494
|
case FormWidgetType.SLIDER:
|
|
99491
99495
|
tmpl = `<div wmSlider ${innerTmpl} ${showTmpl}></div>`;
|
|
99492
99496
|
break;
|
|
@@ -99578,6 +99582,7 @@ const getRequiredFormWidget = (widgetType) => {
|
|
|
99578
99582
|
return 'wm-textarea';
|
|
99579
99583
|
case FormWidgetType.CHECKBOX:
|
|
99580
99584
|
case FormWidgetType.TOGGLE:
|
|
99585
|
+
case FormWidgetType.ICONBUTTONTOGGLE:
|
|
99581
99586
|
return 'wm-checkbox';
|
|
99582
99587
|
case FormWidgetType.UPLOAD:
|
|
99583
99588
|
return 'wm-fileupload';
|
|
@@ -100422,6 +100427,7 @@ const $watch = (expr, $scope, $locals, listener, identifier = watchIdGenerator.n
|
|
|
100422
100427
|
const fn = $parseExpr();
|
|
100423
100428
|
const scopeType = getScopeType($scope);
|
|
100424
100429
|
const scopeName = getScopeName($scope, scopeType);
|
|
100430
|
+
const destroyFn = () => $unwatch(identifier);
|
|
100425
100431
|
const watchInfo = {
|
|
100426
100432
|
fn: fn.bind(null, $scope, $locals),
|
|
100427
100433
|
listener,
|
|
@@ -100430,7 +100436,8 @@ const $watch = (expr, $scope, $locals, listener, identifier = watchIdGenerator.n
|
|
|
100430
100436
|
doNotClone,
|
|
100431
100437
|
isMuted,
|
|
100432
100438
|
scopeType,
|
|
100433
|
-
scopeName
|
|
100439
|
+
scopeName,
|
|
100440
|
+
destroyFn
|
|
100434
100441
|
};
|
|
100435
100442
|
// Store in registry
|
|
100436
100443
|
const widgetId = getWidgetId(identifier);
|
|
@@ -100445,7 +100452,7 @@ const $watch = (expr, $scope, $locals, listener, identifier = watchIdGenerator.n
|
|
|
100445
100452
|
else {
|
|
100446
100453
|
registry.set(identifier, watchInfo);
|
|
100447
100454
|
}
|
|
100448
|
-
return
|
|
100455
|
+
return destroyFn;
|
|
100449
100456
|
};
|
|
100450
100457
|
/**
|
|
100451
100458
|
* Unwatches a single identifier
|
|
@@ -100455,6 +100462,7 @@ const $unwatch = (identifier) => {
|
|
|
100455
100462
|
if (widgetId) {
|
|
100456
100463
|
const propertyName = getPropertyName(identifier);
|
|
100457
100464
|
const widgetGroup = registry.get(widgetId);
|
|
100465
|
+
//@ts-ignore
|
|
100458
100466
|
if (widgetGroup && typeof widgetGroup === 'object' && !widgetGroup.fn) {
|
|
100459
100467
|
const watchInfo = widgetGroup[propertyName];
|
|
100460
100468
|
if (watchInfo) {
|
|
@@ -101897,7 +101905,10 @@ const getAppSetting = (key, defaultValue) => {
|
|
|
101897
101905
|
const setListClass = (scope) => {
|
|
101898
101906
|
let temp = '';
|
|
101899
101907
|
if (scope.itemsperrow) {
|
|
101900
|
-
if (
|
|
101908
|
+
if (scope.itemsperrow === "auto") {
|
|
101909
|
+
scope.itemsPerRowClass = "";
|
|
101910
|
+
}
|
|
101911
|
+
else if (isNaN(parseInt(scope.itemsperrow, 10))) {
|
|
101901
101912
|
// handling itemsperrow containing string of classes
|
|
101902
101913
|
split(scope.itemsperrow, ' ').forEach((cls) => {
|
|
101903
101914
|
const keys = split(cls, '-');
|
|
@@ -104656,7 +104667,14 @@ var button_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
104656
104667
|
const tagName$Q = 'div';
|
|
104657
104668
|
register('wm-checkbox', () => {
|
|
104658
104669
|
return {
|
|
104659
|
-
pre: attrs =>
|
|
104670
|
+
pre: attrs => {
|
|
104671
|
+
if (attrs.get('type') === 'button') {
|
|
104672
|
+
return `<${tagName$Q} wmCheckbox ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`;
|
|
104673
|
+
}
|
|
104674
|
+
else {
|
|
104675
|
+
return `<${tagName$Q} wmCheckbox ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)} style="height:100%">`;
|
|
104676
|
+
}
|
|
104677
|
+
},
|
|
104660
104678
|
post: () => `</${tagName$Q}>`
|
|
104661
104679
|
};
|
|
104662
104680
|
});
|
|
@@ -104712,7 +104730,11 @@ var number_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
104712
104730
|
const tagName$M = 'ul';
|
|
104713
104731
|
register('wm-radioset', () => {
|
|
104714
104732
|
return {
|
|
104715
|
-
pre:
|
|
104733
|
+
pre: (attrs) => {
|
|
104734
|
+
const hintAttr = attrs.get("hint") ? ` title="${attrs.get("hint")}" ` : '';
|
|
104735
|
+
return `<${tagName$M} role="radiogroup" wmRadioset ${hintAttr} ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)}
|
|
104736
|
+
${getNgModelAttr(attrs)}>`;
|
|
104737
|
+
},
|
|
104716
104738
|
post: () => `</${tagName$M}>`
|
|
104717
104739
|
};
|
|
104718
104740
|
});
|
package/download-packages.js
CHANGED
|
@@ -38,14 +38,21 @@ const downloadNPMPackage = async (packageInfo) => {
|
|
|
38
38
|
if (!packageInfo.baseDir) { // going to install in the .wm folder if baseDir is not defined(optimizeUIBuild true)
|
|
39
39
|
// To check node modules.
|
|
40
40
|
if (!isNPMPackageExist(PATH_NPM_PACKAGE_SUCCESS, packageInfo.successMsg)) {
|
|
41
|
+
fs.mkdirSync(PATH_NPM_PACKAGE, { recursive: true });
|
|
41
42
|
// Check if another process is already installing
|
|
42
43
|
if (fs.existsSync(LOCK_FILE)) {
|
|
43
44
|
console.log(`Waiting for another build to complete npm install... for package ${packageInfo.name}`);
|
|
44
45
|
await waitForLock(LOCK_FILE, 20 * 60 * 1000); // Wait for 20 minutes (timeout in milliseconds)
|
|
46
|
+
// After waiting, check if installation completed
|
|
47
|
+
if (!isNPMPackageExist(PATH_NPM_PACKAGE_SUCCESS, packageInfo.successMsg)) {
|
|
48
|
+
console.log(`[LOCK] Previous install for ${packageInfo.name} was incomplete. Re-installing...`);
|
|
49
|
+
createPidLock(LOCK_FILE);
|
|
50
|
+
await processPackage(packageInfo, PATH_NPM_PACKAGE);
|
|
51
|
+
fs.writeFileSync(PATH_NPM_PACKAGE_SUCCESS, packageInfo.successMsg);
|
|
52
|
+
}
|
|
45
53
|
} else {
|
|
46
|
-
// Acquire the lock
|
|
47
|
-
|
|
48
|
-
fs.writeFileSync(LOCK_FILE, "PROGRESS");
|
|
54
|
+
// Create PID lock and Acquire the lock
|
|
55
|
+
createPidLock(LOCK_FILE);
|
|
49
56
|
|
|
50
57
|
await processPackage(packageInfo, PATH_NPM_PACKAGE);
|
|
51
58
|
|
|
@@ -115,6 +122,31 @@ const deleteFiles = (files) => {
|
|
|
115
122
|
});
|
|
116
123
|
}
|
|
117
124
|
|
|
125
|
+
/**
|
|
126
|
+
* Check if a process with given PID is still running.
|
|
127
|
+
* @param {number} pid Process ID to verify
|
|
128
|
+
* @returns {boolean} True if process is alive, false otherwise
|
|
129
|
+
*/
|
|
130
|
+
const isProcessRunning = (pid) => {
|
|
131
|
+
try {
|
|
132
|
+
process.kill(pid, 0); // check only, does NOT kill
|
|
133
|
+
return true;
|
|
134
|
+
} catch {
|
|
135
|
+
return false; // PID not running
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Create a lock file containing the current process PID.
|
|
142
|
+
* @param {string} lockFile Full path to the .LOCK file
|
|
143
|
+
*/
|
|
144
|
+
const createPidLock = (lockFile) => {
|
|
145
|
+
fs.mkdirSync(path.dirname(lockFile), { recursive: true });
|
|
146
|
+
fs.writeFileSync(lockFile, String(process.pid));
|
|
147
|
+
console.log(`[LOCK] Created lock for PID ${process.pid}`);
|
|
148
|
+
}
|
|
149
|
+
|
|
118
150
|
/**
|
|
119
151
|
*
|
|
120
152
|
* @param lockFile
|
|
@@ -125,9 +157,25 @@ const waitForLock = async (lockFile, timeout) => {
|
|
|
125
157
|
timeout = timeout || 20 * 60 * 1000 // Wait for 20 minutes (timeout in milliseconds)
|
|
126
158
|
// Helper function to wait for the lock to be released with a timeout
|
|
127
159
|
const startTime = Date.now();
|
|
128
|
-
while (
|
|
160
|
+
while (true) {
|
|
161
|
+
if (!fs.existsSync(lockFile)) return; // lock free
|
|
162
|
+
let pid = null;
|
|
163
|
+
try {
|
|
164
|
+
pid = Number(fs.readFileSync(lockFile, "utf8"));
|
|
165
|
+
} catch {
|
|
166
|
+
// corrupt lock → remove
|
|
167
|
+
fs.unlinkSync(lockFile);
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
// stale lock → PID dead
|
|
171
|
+
if (!isProcessRunning(pid)) {
|
|
172
|
+
console.log(`[LOCK] Removing stale lock from PID ${pid}`);
|
|
173
|
+
fs.unlinkSync(lockFile);
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
// still locked → wait
|
|
129
177
|
if (Date.now() - startTime > timeout) {
|
|
130
|
-
console.error(
|
|
178
|
+
console.error(`[LOCK] Timeout!! - waiting for the lock for PID ${pid} to be released. Exiting...`);
|
|
131
179
|
process.exit(1); // Terminate the process with an error code
|
|
132
180
|
}
|
|
133
181
|
await sleep(1000); // Wait for 1 second before checking again
|