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