@veloceapps/sdk 2.0.18 → 2.0.20
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/bundles/veloce-sdk-cms.umd.js +18 -1
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk-runtime.umd.js +3 -4
- package/bundles/veloce-sdk-runtime.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +22 -6
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/cms/utils/element.utils.d.ts +1 -0
- package/esm2015/cms/utils/element.utils.js +16 -1
- package/esm2015/runtime/execution/directives/vl-quote.directive.js +2 -2
- package/esm2015/runtime/services/quote.service.js +2 -3
- package/esm2015/src/pages/legacy-product/legacy-product.component.js +22 -8
- package/esm2015/src/types/flow-customization.types.js +1 -1
- package/fesm2015/veloce-sdk-cms.js +17 -1
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk-runtime.js +2 -3
- package/fesm2015/veloce-sdk-runtime.js.map +1 -1
- package/fesm2015/veloce-sdk.js +22 -9
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +2 -1
- package/src/pages/legacy-product/legacy-product.component.d.ts +5 -2
- package/src/types/flow-customization.types.d.ts +2 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common'), require('@veloce/core'), require('@angular/cdk/drag-drop'), require('@angular/forms'), require('lodash'), require('@veloce/components'), require('@veloce/sdk/runtime'), require('rxjs/operators'), require('@veloce/api'), require('primeng/api'), require('primeng/dynamicdialog'), require('@babel/standalone')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@veloce/sdk/cms', ['exports', '@angular/core', 'rxjs', '@angular/common', '@veloce/core', '@angular/cdk/drag-drop', '@angular/forms', 'lodash', '@veloce/components', '@veloce/sdk/runtime', 'rxjs/operators', '@veloce/api', 'primeng/api', 'primeng/dynamicdialog', '@babel/standalone'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloce = global.veloce || {}, global.veloce.sdk = global.veloce.sdk || {}, global.veloce.sdk.cms = {}), global.ng.core, global.rxjs, global.ng.common, global["@veloce/core"], global.ng.cdk.dragDrop, global.ng.forms, global.lodash, global["@veloce/components"], global.veloce.sdk.runtime, global.rxjs.operators, global["@veloce/api"], global["primeng/api"], global
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloce = global.veloce || {}, global.veloce.sdk = global.veloce.sdk || {}, global.veloce.sdk.cms = {}), global.ng.core, global.rxjs, global.ng.common, global["@veloce/core"], global.ng.cdk.dragDrop, global.ng.forms, global.lodash, global["@veloce/components"], global.veloce.sdk.runtime, global.rxjs.operators, global["@veloce/api"], global["primeng/api"], global["primeng/dynamicdialog"], global["@babel/standalone"]));
|
|
5
5
|
})(this, (function (exports, i0, rxjs, i8, core, dragDrop, angularForms, lodash, i6, i2, rxjsOperators, i1, i2$1, i5, standalone) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
@@ -841,6 +841,21 @@
|
|
|
841
841
|
return match.replace(/"/g, '');
|
|
842
842
|
});
|
|
843
843
|
}
|
|
844
|
+
var isValidScript = function (script) {
|
|
845
|
+
var _a;
|
|
846
|
+
if (!script) {
|
|
847
|
+
return false;
|
|
848
|
+
}
|
|
849
|
+
var exportedClassName = script && ((_a = EXPORTED_CLASS_REGEX.exec(script)) !== null && _a !== void 0 ? _a : [])[1];
|
|
850
|
+
if (!exportedClassName) {
|
|
851
|
+
return false;
|
|
852
|
+
}
|
|
853
|
+
var meta = extractElementMetadata(script);
|
|
854
|
+
if (!meta.name || !meta.type) {
|
|
855
|
+
return false;
|
|
856
|
+
}
|
|
857
|
+
return true;
|
|
858
|
+
};
|
|
844
859
|
|
|
845
860
|
var ElementContextService = /** @class */ (function () {
|
|
846
861
|
function ElementContextService() {
|
|
@@ -1811,6 +1826,7 @@
|
|
|
1811
1826
|
getElementConfig: getElementConfig,
|
|
1812
1827
|
doesElementSupportIO: doesElementSupportIO,
|
|
1813
1828
|
stringifyElementMetadata: stringifyElementMetadata,
|
|
1829
|
+
isValidScript: isValidScript,
|
|
1814
1830
|
parseBoundPath: parseBoundPath,
|
|
1815
1831
|
findLineItem: findLineItem,
|
|
1816
1832
|
insertLineItem: insertLineItem,
|
|
@@ -2244,6 +2260,7 @@
|
|
|
2244
2260
|
exports.getElementConfig = getElementConfig;
|
|
2245
2261
|
exports.getRecommendedPrices = getRecommendedPrices;
|
|
2246
2262
|
exports.insertLineItem = insertLineItem;
|
|
2263
|
+
exports.isValidScript = isValidScript;
|
|
2247
2264
|
exports.mapAttributes = mapAttributes;
|
|
2248
2265
|
exports.metadataToElement = metadataToElement;
|
|
2249
2266
|
exports.normalizeElementMetadata = normalizeElementMetadata;
|