@sankhyalabs/sankhyablocks 1.0.3 → 1.0.4
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/build/index.js
CHANGED
|
@@ -8329,7 +8329,7 @@ var DataUnitFetcher = /*#__PURE__*/function () {
|
|
|
8329
8329
|
_createClass(DataUnitFetcher, [{
|
|
8330
8330
|
key: "buldTemplates",
|
|
8331
8331
|
value: function buldTemplates() {
|
|
8332
|
-
this.templateByQuery.set("
|
|
8332
|
+
this.templateByQuery.set("fetchDataUnit", (0,dist.gql)(_templateObject || (_templateObject = _taggedTemplateLiteral(["query($name: String!) {\n $queryAlias$: fetchDataUnit(name: $name){\n name,\n fields{\n name,\n defaultValue,\n label,\n readOnly,\n required,\n dataType,\n userInterface,\n properties{\n name,\n value\n },\n dependencies{\n masterFields,\n type,\n expression\n }\n }\n }\n }"]))));
|
|
8333
8333
|
}
|
|
8334
8334
|
}, {
|
|
8335
8335
|
key: "getDataUnit",
|
|
@@ -8348,13 +8348,13 @@ var DataUnitFetcher = /*#__PURE__*/function () {
|
|
|
8348
8348
|
while (1) {
|
|
8349
8349
|
switch (_context.prev = _context.next) {
|
|
8350
8350
|
case 0:
|
|
8351
|
-
completPath = "dd://".concat(
|
|
8351
|
+
completPath = "dd://".concat(name, "/").concat(resourceID);
|
|
8352
8352
|
_context.next = 3;
|
|
8353
8353
|
return HttpFetcher.get().callGraphQL({
|
|
8354
8354
|
values: {
|
|
8355
8355
|
name: completPath
|
|
8356
8356
|
},
|
|
8357
|
-
query: _this.templateByQuery.get("
|
|
8357
|
+
query: _this.templateByQuery.get("fetchDataUnit")
|
|
8358
8358
|
});
|
|
8359
8359
|
|
|
8360
8360
|
case 3:
|
|
@@ -8424,6 +8424,8 @@ function workspace_defineProperties(target, props) { for (var i = 0; i < props.l
|
|
|
8424
8424
|
|
|
8425
8425
|
function workspace_createClass(Constructor, protoProps, staticProps) { if (protoProps) workspace_defineProperties(Constructor.prototype, protoProps); if (staticProps) workspace_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
8426
8426
|
|
|
8427
|
+
function workspace_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8428
|
+
|
|
8427
8429
|
var Workspace = /*#__PURE__*/function () {
|
|
8428
8430
|
function Workspace() {
|
|
8429
8431
|
workspace_classCallCheck(this, Workspace);
|
|
@@ -8441,6 +8443,8 @@ var Workspace = /*#__PURE__*/function () {
|
|
|
8441
8443
|
return Workspace;
|
|
8442
8444
|
}();
|
|
8443
8445
|
|
|
8446
|
+
workspace_defineProperty(Workspace, "resourceID", window["workspace"].resourceID);
|
|
8447
|
+
|
|
8444
8448
|
|
|
8445
8449
|
;// CONCATENATED MODULE: ./src/lib/utils/urlutils.ts
|
|
8446
8450
|
function urlutils_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -8535,7 +8539,7 @@ var SankhyaAppProvider = /*#__PURE__*/function (_ApplicationUtils) {
|
|
|
8535
8539
|
key: "getResourceID",
|
|
8536
8540
|
value: function getResourceID() {
|
|
8537
8541
|
var defaultValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
|
|
8538
|
-
return SankhyaAppProvider.urlParams.get("workspaceResourceID") || SankhyaAppProvider.urlParams.get("resourceI") || defaultValue || "unknown.resource.id";
|
|
8542
|
+
return SankhyaAppProvider.urlParams.get("workspaceResourceID") || SankhyaAppProvider.urlParams.get("resourceI") || defaultValue || Workspace.resourceID || "unknown.resource.id";
|
|
8539
8543
|
}
|
|
8540
8544
|
}, {
|
|
8541
8545
|
key: "temOpcional",
|
|
@@ -8576,6 +8580,7 @@ var SankhyaAppProvider = /*#__PURE__*/function (_ApplicationUtils) {
|
|
|
8576
8580
|
SankhyaAppProvider.dataUnitByEntity.set(entityName, dataUnit);
|
|
8577
8581
|
}
|
|
8578
8582
|
|
|
8583
|
+
dataUnit.loadMetadata();
|
|
8579
8584
|
return dataUnit;
|
|
8580
8585
|
}
|
|
8581
8586
|
/*public static getForm(entityName:string):any{
|