@fctc/interface-logic 5.2.6 → 5.2.7
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/{chunk-F2VAAEVB.mjs → chunk-6ARYI77N.mjs} +3 -12
- package/dist/chunk-6LSKTACC.js +687 -0
- package/dist/{chunk-ZDXEWQQD.mjs → chunk-ACSPOGTI.mjs} +7 -14
- package/dist/chunk-B432GFRR.mjs +606 -0
- package/dist/{chunk-HQVNK2EW.mjs → chunk-BPJZ3QRN.mjs} +770 -128
- package/dist/{chunk-FWBYTZIV.js → chunk-C5QQGBN4.js} +18 -23
- package/dist/chunk-COC7NGXP.js +19 -19
- package/dist/chunk-GGNOJ77I.js +2 -1
- package/dist/{chunk-F4RE57FT.mjs → chunk-ICDQN2GL.mjs} +539 -1393
- package/dist/{chunk-U4Q3MW45.js → chunk-JDXUTKMX.js} +852 -170
- package/dist/chunk-Q3Y6RCJ4.mjs +1 -18
- package/dist/{chunk-CCTDGAMA.js → chunk-Q5YXX4OR.js} +51 -52
- package/dist/{chunk-U2COUTK5.js → chunk-TX2WZCYM.js} +931 -1610
- package/dist/chunk-VBVNP77T.mjs +2 -6
- package/dist/chunk-WAXGOBY2.mjs +1 -0
- package/dist/chunk-WTPKTZQC.js +31 -33
- package/dist/configs.js +9 -4
- package/dist/configs.mjs +3 -7
- package/dist/constants.js +70 -36
- package/dist/constants.mjs +1 -36
- package/dist/environment.d.mts +1 -1
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +17 -8
- package/dist/environment.mjs +4 -12
- package/dist/hooks.d.mts +7 -1
- package/dist/hooks.d.ts +7 -1
- package/dist/hooks.js +617 -306
- package/dist/hooks.mjs +6 -312
- package/dist/index.d.mts +10 -4
- package/dist/index.d.ts +10 -4
- package/dist/index.js +1245 -433
- package/dist/index.mjs +8 -433
- package/dist/{local-storage-AbiOQTLK.d.mts → local-storage-BPvoMGYJ.d.mts} +1 -1
- package/dist/{local-storage-AbiOQTLK.d.ts → local-storage-BPvoMGYJ.d.ts} +1 -1
- package/dist/models.js +7 -3
- package/dist/models.mjs +2 -7
- package/dist/provider.d.mts +8 -3
- package/dist/provider.d.ts +8 -3
- package/dist/provider.js +45 -20
- package/dist/provider.mjs +6 -26
- package/dist/services.js +49 -24
- package/dist/services.mjs +6 -30
- package/dist/store.d.mts +382 -0
- package/dist/store.d.ts +382 -0
- package/dist/store.js +326 -0
- package/dist/store.mjs +1 -0
- package/dist/types.js +4 -1
- package/dist/types.mjs +1 -1
- package/dist/utils.d.mts +61 -33
- package/dist/utils.d.ts +61 -33
- package/dist/utils.js +139 -36
- package/dist/utils.mjs +2 -36
- package/package.json +28 -14
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunkU4Q3MW45js = require('./chunk-U4Q3MW45.js');
|
|
3
|
+
var chunkQ5YXX4OR_js = require('./chunk-Q5YXX4OR.js');
|
|
4
|
+
var chunkJDXUTKMX_js = require('./chunk-JDXUTKMX.js');
|
|
8
5
|
|
|
9
6
|
// src/environment/EnvStore.ts
|
|
10
|
-
var EventEmitter =
|
|
11
|
-
|
|
7
|
+
var EventEmitter = class {
|
|
8
|
+
listeners = {};
|
|
12
9
|
on(event, callback) {
|
|
13
10
|
if (!this.listeners[event]) {
|
|
14
11
|
this.listeners[event] = [];
|
|
@@ -20,13 +17,13 @@ var EventEmitter = (_class = class {constructor() { _class.prototype.__init.call
|
|
|
20
17
|
this.listeners[event].forEach((callback) => callback(data));
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
|
-
}
|
|
20
|
+
};
|
|
24
21
|
var EnvStore = class {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
constructor(localStorageUtil =
|
|
22
|
+
state;
|
|
23
|
+
emitter;
|
|
24
|
+
localStorageUtil;
|
|
25
|
+
sessionStorageUtil;
|
|
26
|
+
constructor(localStorageUtil = chunkJDXUTKMX_js.localStorageUtils(), sessionStorageUtil = chunkJDXUTKMX_js.sessionStorageUtils) {
|
|
30
27
|
this.state = {
|
|
31
28
|
baseUrl: "",
|
|
32
29
|
requests: null,
|
|
@@ -66,7 +63,7 @@ var EnvStore = class {
|
|
|
66
63
|
localStorageUtils: this.localStorageUtil,
|
|
67
64
|
sessionStorageUtils: this.sessionStorageUtil
|
|
68
65
|
};
|
|
69
|
-
this.state.requests =
|
|
66
|
+
this.state.requests = chunkQ5YXX4OR_js.axiosClient.init(this.state);
|
|
70
67
|
this.emitter.emit("update", this.getEnv());
|
|
71
68
|
return this.getEnv();
|
|
72
69
|
}
|
|
@@ -114,8 +111,8 @@ var EnvStore = class {
|
|
|
114
111
|
};
|
|
115
112
|
var env = null;
|
|
116
113
|
function initEnv({
|
|
117
|
-
localStorageUtils: localStorageUtil =
|
|
118
|
-
sessionStorageUtils: sessionStorageUtil =
|
|
114
|
+
localStorageUtils: localStorageUtil = chunkJDXUTKMX_js.localStorageUtils(),
|
|
115
|
+
sessionStorageUtils: sessionStorageUtil = chunkJDXUTKMX_js.sessionStorageUtils
|
|
119
116
|
}) {
|
|
120
117
|
if (!env) {
|
|
121
118
|
env = new EnvStore(localStorageUtil, sessionStorageUtil);
|
|
@@ -126,11 +123,9 @@ function getEnv() {
|
|
|
126
123
|
if (!env) {
|
|
127
124
|
env = initEnv({});
|
|
128
125
|
}
|
|
129
|
-
return
|
|
126
|
+
return env?.getEnv();
|
|
130
127
|
}
|
|
131
128
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
exports.EnvStore = EnvStore; exports.initEnv = initEnv; exports.getEnv = getEnv;
|
|
129
|
+
exports.EnvStore = EnvStore;
|
|
130
|
+
exports.getEnv = getEnv;
|
|
131
|
+
exports.initEnv = initEnv;
|
package/dist/chunk-COC7NGXP.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/constants/api/key-constant.ts
|
|
2
4
|
var KeyConstants = /* @__PURE__ */ ((KeyConstants2) => {
|
|
3
5
|
KeyConstants2["PROFILE"] = "userinfo";
|
|
4
6
|
KeyConstants2["CURRENT_COMPANY"] = "current_company";
|
|
@@ -301,21 +303,19 @@ var WIDGETNOSTRING = /* @__PURE__ */ ((WIDGETNOSTRING2) => {
|
|
|
301
303
|
return WIDGETNOSTRING2;
|
|
302
304
|
})(WIDGETNOSTRING || {});
|
|
303
305
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
exports.KeyConstants = KeyConstants; exports.MethodConstants = MethodConstants; exports.UriConstants = UriConstants; exports.FieldTypeConstants = FieldTypeConstants; exports.MethodType = MethodType; exports.ModelConstants = ModelConstants; exports.LoadDataModel = LoadDataModel; exports.LoadDataModelSupa = LoadDataModelSupa; exports.MODEL_TO_TABLE = MODEL_TO_TABLE; exports.ComponentType = ComponentType; exports.SearchType = SearchType; exports.WIDGETAVATAR = WIDGETAVATAR; exports.WIDGETCURRENCY = WIDGETCURRENCY; exports.WIDGETCOLOR = WIDGETCOLOR; exports.WIDGETSTATUS = WIDGETSTATUS; exports.WIDGETNOSTRING = WIDGETNOSTRING;
|
|
306
|
+
exports.ComponentType = ComponentType;
|
|
307
|
+
exports.FieldTypeConstants = FieldTypeConstants;
|
|
308
|
+
exports.KeyConstants = KeyConstants;
|
|
309
|
+
exports.LoadDataModel = LoadDataModel;
|
|
310
|
+
exports.LoadDataModelSupa = LoadDataModelSupa;
|
|
311
|
+
exports.MODEL_TO_TABLE = MODEL_TO_TABLE;
|
|
312
|
+
exports.MethodConstants = MethodConstants;
|
|
313
|
+
exports.MethodType = MethodType;
|
|
314
|
+
exports.ModelConstants = ModelConstants;
|
|
315
|
+
exports.SearchType = SearchType;
|
|
316
|
+
exports.UriConstants = UriConstants;
|
|
317
|
+
exports.WIDGETAVATAR = WIDGETAVATAR;
|
|
318
|
+
exports.WIDGETCOLOR = WIDGETCOLOR;
|
|
319
|
+
exports.WIDGETCURRENCY = WIDGETCURRENCY;
|
|
320
|
+
exports.WIDGETNOSTRING = WIDGETNOSTRING;
|
|
321
|
+
exports.WIDGETSTATUS = WIDGETSTATUS;
|
package/dist/chunk-GGNOJ77I.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|