@vuu-ui/vuu-data-remote 2.0.0 → 2.1.0-alpha.2
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/cjs/inlined-worker.js +38 -38
- package/cjs/inlined-worker.js.map +1 -1
- package/esm/inlined-worker.js +38 -38
- package/esm/inlined-worker.js.map +1 -1
- package/package.json +7 -7
- package/types/inlined-worker.d.ts +1 -1
package/cjs/inlined-worker.js
CHANGED
|
@@ -132,6 +132,44 @@ var EventEmitter = class {
|
|
|
132
132
|
};
|
|
133
133
|
_events = new WeakMap();
|
|
134
134
|
|
|
135
|
+
// ../vuu-utils/src/protocol-message-utils.ts
|
|
136
|
+
var MENU_RPC_TYPES = [
|
|
137
|
+
"VIEW_PORT_MENUS_SELECT_RPC",
|
|
138
|
+
"VIEW_PORT_MENU_TABLE_RPC",
|
|
139
|
+
"VIEW_PORT_MENU_ROW_RPC",
|
|
140
|
+
"VIEW_PORT_MENU_CELL_RPC"
|
|
141
|
+
];
|
|
142
|
+
var INVALID_SESSION = "Invalid session";
|
|
143
|
+
var SESSION_LIMIT_EXCEEDED = "User session limit exceeded";
|
|
144
|
+
var INVALID_TOKEN = "Invalid token";
|
|
145
|
+
var TOKEN_EXPIRED = "Token has expired";
|
|
146
|
+
var InvalidLoginMessages = [
|
|
147
|
+
INVALID_SESSION,
|
|
148
|
+
SESSION_LIMIT_EXCEEDED,
|
|
149
|
+
INVALID_TOKEN,
|
|
150
|
+
TOKEN_EXPIRED
|
|
151
|
+
];
|
|
152
|
+
var isLoginErrorMessage = (message) => typeof message === "string" && InvalidLoginMessages.includes(message);
|
|
153
|
+
var isSelectRequest = (message) => message && typeof message === "object" && "type" in message && (message.type === "SELECT_ROW" || message.type === "DESELECT_ROW" || message.type === "SELECT_ROW_RANGE" || message.type === "SELECT_ALL" || message.type === "DESELECT_ALL");
|
|
154
|
+
var isRpcServiceRequest = (message) => message.type === "RPC_REQUEST";
|
|
155
|
+
var hasViewPortContext = (message) => message.context.type === "VIEWPORT_CONTEXT";
|
|
156
|
+
var isVuuMenuRpcRequest = (message) => MENU_RPC_TYPES.includes(message["type"]);
|
|
157
|
+
var isOpenDialogAction = (action) => action !== void 0 && action.type === "OPEN_DIALOG_ACTION";
|
|
158
|
+
var isCreateVpSuccess = (response) => response.type === "CREATE_VP_SUCCESS";
|
|
159
|
+
var isSessionTable = (table) => {
|
|
160
|
+
if (table !== null && typeof table === "object" && "table" in table && "module" in table) {
|
|
161
|
+
return table.table.startsWith("session");
|
|
162
|
+
}
|
|
163
|
+
return false;
|
|
164
|
+
};
|
|
165
|
+
function isActionMessage(rpcResponse) {
|
|
166
|
+
return rpcResponse.type === "VIEW_PORT_MENU_RESP";
|
|
167
|
+
}
|
|
168
|
+
function isSessionTableActionMessage(rpcResponse) {
|
|
169
|
+
var _a;
|
|
170
|
+
return isActionMessage(rpcResponse) && isOpenDialogAction(rpcResponse.action) && isSessionTable(rpcResponse.action.table) && ((_a = rpcResponse.action) == null ? void 0 : _a.renderComponent) === "inline-form";
|
|
171
|
+
}
|
|
172
|
+
|
|
135
173
|
// ../vuu-utils/src/datasource/datasource-utils.ts
|
|
136
174
|
var isConnectionQualityMetrics = (msg) => msg.type === "connection-metrics";
|
|
137
175
|
var isVisualLinkMessage = (msg) => msg.type.endsWith("_VISUAL_LINK");
|
|
@@ -306,44 +344,6 @@ var RangeMonitor = class {
|
|
|
306
344
|
}
|
|
307
345
|
};
|
|
308
346
|
|
|
309
|
-
// ../vuu-utils/src/protocol-message-utils.ts
|
|
310
|
-
var MENU_RPC_TYPES = [
|
|
311
|
-
"VIEW_PORT_MENUS_SELECT_RPC",
|
|
312
|
-
"VIEW_PORT_MENU_TABLE_RPC",
|
|
313
|
-
"VIEW_PORT_MENU_ROW_RPC",
|
|
314
|
-
"VIEW_PORT_MENU_CELL_RPC"
|
|
315
|
-
];
|
|
316
|
-
var INVALID_SESSION = "Invalid session";
|
|
317
|
-
var SESSION_LIMIT_EXCEEDED = "User session limit exceeded";
|
|
318
|
-
var INVALID_TOKEN = "Invalid token";
|
|
319
|
-
var TOKEN_EXPIRED = "Token has expired";
|
|
320
|
-
var InvalidLoginMessages = [
|
|
321
|
-
INVALID_SESSION,
|
|
322
|
-
SESSION_LIMIT_EXCEEDED,
|
|
323
|
-
INVALID_TOKEN,
|
|
324
|
-
TOKEN_EXPIRED
|
|
325
|
-
];
|
|
326
|
-
var isLoginErrorMessage = (message) => typeof message === "string" && InvalidLoginMessages.includes(message);
|
|
327
|
-
var isSelectRequest = (message) => message && typeof message === "object" && "type" in message && (message.type === "SELECT_ROW" || message.type === "DESELECT_ROW" || message.type === "SELECT_ROW_RANGE" || message.type === "SELECT_ALL" || message.type === "DESELECT_ALL");
|
|
328
|
-
var isRpcServiceRequest = (message) => message.type === "RPC_REQUEST";
|
|
329
|
-
var hasViewPortContext = (message) => message.context.type === "VIEWPORT_CONTEXT";
|
|
330
|
-
var isVuuMenuRpcRequest = (message) => MENU_RPC_TYPES.includes(message["type"]);
|
|
331
|
-
var isOpenDialogAction = (action) => action !== void 0 && action.type === "OPEN_DIALOG_ACTION";
|
|
332
|
-
var isCreateVpSuccess = (response) => response.type === "CREATE_VP_SUCCESS";
|
|
333
|
-
var isSessionTable = (table) => {
|
|
334
|
-
if (table !== null && typeof table === "object" && "table" in table && "module" in table) {
|
|
335
|
-
return table.table.startsWith("session");
|
|
336
|
-
}
|
|
337
|
-
return false;
|
|
338
|
-
};
|
|
339
|
-
function isActionMessage(rpcResponse) {
|
|
340
|
-
return rpcResponse.type === "VIEW_PORT_MENU_RESP";
|
|
341
|
-
}
|
|
342
|
-
function isSessionTableActionMessage(rpcResponse) {
|
|
343
|
-
var _a;
|
|
344
|
-
return isActionMessage(rpcResponse) && isOpenDialogAction(rpcResponse.action) && isSessionTable(rpcResponse.action.table) && ((_a = rpcResponse.action) == null ? void 0 : _a.renderComponent) === "inline-form";
|
|
345
|
-
}
|
|
346
|
-
|
|
347
347
|
// ../vuu-utils/src/keyset.ts
|
|
348
348
|
var EMPTY = [];
|
|
349
349
|
var KeySet = class {
|