eservices-core 1.0.315 → 1.0.317
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/dist/index.d.ts +7 -2
- package/dist/index.js +22 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/values-to-upper-case.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _utils from "./utils";
|
|
2
2
|
import * as mixins from "./mixins";
|
|
3
3
|
import config from "./config";
|
|
4
4
|
import * as types from "./types";
|
|
@@ -88,6 +88,11 @@ import WidgetBreadcrumbs from "./widgets/breadcrumbs/widget-breadcrumbs.vue";
|
|
|
88
88
|
import WidgetCommunication from "./widgets/communication/widget-communication.vue";
|
|
89
89
|
import WidgetList from "./widgets/tables/WidgetList.vue";
|
|
90
90
|
export { WidgetBreadcrumbs, WidgetCommunication, WidgetList };
|
|
91
|
+
import valuesToUpperCase from "./utils/values-to-upper-case";
|
|
92
|
+
declare const utils: {
|
|
93
|
+
valuesToUpperCase: typeof valuesToUpperCase;
|
|
94
|
+
};
|
|
95
|
+
export { utils };
|
|
91
96
|
declare const _default: {
|
|
92
97
|
services: {
|
|
93
98
|
authService: typeof authService;
|
|
@@ -148,7 +153,7 @@ declare const _default: {
|
|
|
148
153
|
usage: {
|
|
149
154
|
inputs: typeof import("./useMethods/useInput");
|
|
150
155
|
};
|
|
151
|
-
utils: typeof
|
|
156
|
+
utils: typeof _utils;
|
|
152
157
|
classes: {
|
|
153
158
|
StepWorker: typeof import("./classes/StepWorker").default;
|
|
154
159
|
Errors: typeof CoreError;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* eservices-core v1.0.
|
|
2
|
+
* eservices-core v1.0.317
|
|
3
3
|
* (c) 2022 ESERVICES
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -2086,7 +2086,7 @@ function requestHandler(callback, options = {}) {
|
|
|
2086
2086
|
});
|
|
2087
2087
|
}
|
|
2088
2088
|
|
|
2089
|
-
var
|
|
2089
|
+
var _utils = /*#__PURE__*/Object.freeze({
|
|
2090
2090
|
__proto__: null,
|
|
2091
2091
|
Request: Request,
|
|
2092
2092
|
clickOutside: clickOutside,
|
|
@@ -5600,6 +5600,24 @@ styleInject(css_248z);
|
|
|
5600
5600
|
script.__scopeId = "data-v-4b4d3458";
|
|
5601
5601
|
script.__file = "core/widgets/communication/widget-communication.vue";
|
|
5602
5602
|
|
|
5603
|
+
/**
|
|
5604
|
+
* @description Recursive changing object, uppercase first chapter of each key.
|
|
5605
|
+
* */
|
|
5606
|
+
function valuesToUpperCase(values) {
|
|
5607
|
+
return Object.keys(values).reduce((acc, key) => {
|
|
5608
|
+
let value = values[key];
|
|
5609
|
+
const newKey = key.charAt(0).toUpperCase() + key.slice(1); // upper
|
|
5610
|
+
// If current value is not primitive value, continue recursive parse
|
|
5611
|
+
if (typeof value === 'object' && !(value === undefined || value === null))
|
|
5612
|
+
value = valuesToUpperCase(value);
|
|
5613
|
+
acc[newKey] = value;
|
|
5614
|
+
return acc;
|
|
5615
|
+
}, {});
|
|
5616
|
+
}
|
|
5617
|
+
|
|
5618
|
+
const utils = {
|
|
5619
|
+
valuesToUpperCase
|
|
5620
|
+
};
|
|
5603
5621
|
var index = {
|
|
5604
5622
|
/*
|
|
5605
5623
|
StepRecordRow,
|
|
@@ -5612,7 +5630,7 @@ var index = {
|
|
|
5612
5630
|
services,
|
|
5613
5631
|
widgets: a,
|
|
5614
5632
|
usage,
|
|
5615
|
-
utils,
|
|
5633
|
+
utils: _utils,
|
|
5616
5634
|
classes,
|
|
5617
5635
|
mixins,
|
|
5618
5636
|
config,
|
|
@@ -5636,4 +5654,5 @@ exports["default"] = index;
|
|
|
5636
5654
|
exports.metadataService = metadataService;
|
|
5637
5655
|
exports.processWizardService = processWizardService;
|
|
5638
5656
|
exports.requestHandler = requestHandler;
|
|
5657
|
+
exports.utils = utils;
|
|
5639
5658
|
exports.viewService = viewService;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ interface ListRowValues extends ValuesInterface {
|
|
|
22
22
|
interface SortConfig {
|
|
23
23
|
[name: string]: boolean;
|
|
24
24
|
}
|
|
25
|
-
declare type Values = string | number | null | ValuesInterface | boolean;
|
|
25
|
+
declare type Values = string | number | null | ValuesInterface | boolean | undefined;
|
|
26
26
|
interface FormControllerInterface {
|
|
27
27
|
name?: string;
|
|
28
28
|
disable: () => void;
|