@luna-park/plugin 2.4.0 → 2.5.0
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/components.d.mts +10 -0
- package/dist/components.mjs +40 -0
- package/dist/extractor.d.mts +1 -1
- package/dist/index-CFhhfAj1.d.mts +1236 -0
- package/dist/{index-kGM_G99G.d.mts → index-D7gCzkm1.d.mts} +1 -1
- package/dist/index.d.mts +3 -1235
- package/package.json +15 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "@sinclair/typebox";
|
|
4
|
-
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
5
|
-
import { Cron } from "lite-cron";
|
|
6
|
-
import { PGliteWorker } from "@electric-sql/pglite/worker";
|
|
1
|
+
import { a as LogicUtil, d as TSchema, i as LogicType, l as TLogicNode, n as ELogicType, o as Static, p as makeLogicNode, r as EVarType, t as ELogicScope } from "./index-D7gCzkm1.mjs";
|
|
2
|
+
import { $ as TFolder, A as TDBOperation, B as TFileExport, C as EElementType, D as TApplication, E as TAnyLogicExport, F as TFileConfigExport, G as TFileScript, H as TFileMediaExport, I as TFileCron, J as TFileStoreExport, K as TFileScriptExport, L as TFileCronExport, M as TFileComponent, N as TFileComponentExport, O as TApplicationExport, P as TFileConfig, Q as TFileTypeExport, R as TFileDatabase, S as EDBOperation, T as TAnyLogic, U as TFileRoute, V as TFileMedia, W as TFileRouteExport, X as TFileTextExport, Y as TFileText, Z as TFileType, _ as TInterface, a as TOption, at as TLogicMain, b as THookParams, c as TPluginWorkspaceSection, ct as getPluginSecretEnvName, d as TToken, dt as TSlot, et as TFolderExport, f as TTemplate, g as TPanels, h as TElementPanelProps, i as THost, it as TLogicExport, j as TFile, k as TDBCondition, l as TProxyPlugin, lt as TRouteGuard, m as TElementPanelAction, n as TBasePlugin, nt as TLayoutSchemaExport, o as TPlugin, ot as TLogicMainExport, p as TElementPanel, q as TFileStore, r as TEnv, rt as TLogic, s as TPluginGuide, st as TPluginElement, t as EInjectionKey, tt as TLayoutSchema, u as TSecrets, ut as TComponent, v as TInterfaceEditorProps, w as ETokenType, x as EDBCondition, y as EPluginHooks, z as TFileDatabaseExport } from "./index-CFhhfAj1.mjs";
|
|
7
3
|
declare var __VLS_1: {};
|
|
8
4
|
type __VLS_Slots = {} & {
|
|
9
5
|
default?: (props: typeof __VLS_1) => any;
|
|
@@ -16,1238 +12,10 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
16
12
|
$slots: S;
|
|
17
13
|
};
|
|
18
14
|
};
|
|
19
|
-
type TSlot = TSchema<TObject> | TSchema<TVoid>;
|
|
20
|
-
type StaticOfProps<T extends Record<string, TSchema>> = { [K in keyof T]: {
|
|
21
|
-
schema: TSchema;
|
|
22
|
-
value: Static<T[K]>;
|
|
23
|
-
}; };
|
|
24
|
-
type TAttributes<TProps extends Record<string, TSchema>, TInternals> = StaticOfProps<TProps> & {
|
|
25
|
-
internals: TInternals;
|
|
26
|
-
};
|
|
27
|
-
type TComponent<TProps extends Record<string, TSchema> = Record<string, TSchema>, TInternals = unknown> = {
|
|
28
|
-
build?: {
|
|
29
|
-
imports?: Array<{
|
|
30
|
-
default?: boolean;
|
|
31
|
-
from: string;
|
|
32
|
-
name: string;
|
|
33
|
-
}>;
|
|
34
|
-
name?: string;
|
|
35
|
-
};
|
|
36
|
-
component: Component;
|
|
37
|
-
documentation?: {
|
|
38
|
-
description?: string;
|
|
39
|
-
link?: string;
|
|
40
|
-
};
|
|
41
|
-
emits?: Record<string, TSchema> | ((attributes: TAttributes<TProps, TInternals>) => Record<string, TSchema>);
|
|
42
|
-
guides?: Array<string>;
|
|
43
|
-
icon?: IconDefinition | string;
|
|
44
|
-
internals?: TInternals;
|
|
45
|
-
llm?: string;
|
|
46
|
-
models?: Record<string, TSchema> | ((attributes: TAttributes<TProps, TInternals>) => Record<string, TSchema>);
|
|
47
|
-
name: string;
|
|
48
|
-
preview?: {
|
|
49
|
-
properties?: Partial<{ [TKey in keyof TProps]: Static<TProps[TKey]>; }>;
|
|
50
|
-
slots?: Record<string, string>;
|
|
51
|
-
style?: string;
|
|
52
|
-
};
|
|
53
|
-
properties?: TProps;
|
|
54
|
-
slots?: Record<string, TSlot> | ((attributes: TAttributes<TProps, TInternals>) => Record<string, TSlot>);
|
|
55
|
-
};
|
|
56
|
-
type TRouteGuard = {
|
|
57
|
-
build: {
|
|
58
|
-
generate: (config: Record<string, unknown>) => string;
|
|
59
|
-
imports?: Array<{
|
|
60
|
-
name: string;
|
|
61
|
-
target: string;
|
|
62
|
-
}>;
|
|
63
|
-
};
|
|
64
|
-
check: (params: {
|
|
65
|
-
config: Record<string, unknown>;
|
|
66
|
-
context: Record<string, unknown>;
|
|
67
|
-
}) => MaybePromise<void>;
|
|
68
|
-
config?: TSchema<TObject>;
|
|
69
|
-
description?: string;
|
|
70
|
-
id: string;
|
|
71
|
-
label: string;
|
|
72
|
-
};
|
|
73
|
-
type TExportNodeFunction = {
|
|
74
|
-
deprecated?: string;
|
|
75
|
-
description?: string;
|
|
76
|
-
instance?: TSchema;
|
|
77
|
-
kind?: "constructor" | "method";
|
|
78
|
-
name?: string;
|
|
79
|
-
parameters?: Array<TSchema>;
|
|
80
|
-
return?: TSchema;
|
|
81
|
-
};
|
|
82
|
-
type TExportNodeResult = {
|
|
83
|
-
components: Record<string, {
|
|
84
|
-
properties: Record<string, TSchema>;
|
|
85
|
-
slots: Record<string, TSchema>;
|
|
86
|
-
}>;
|
|
87
|
-
functions: Record<string, TExportNodeFunction>;
|
|
88
|
-
types: Record<string, TSchema>;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Runtime classes the editor registers through module augmentation, replacing the declarations below
|
|
92
|
-
*/
|
|
93
|
-
interface TEditorClasses {}
|
|
94
|
-
type TEditorClass<TKey extends string, TFallback> = TEditorClasses extends Record<TKey, infer TClass> ? TClass : TFallback;
|
|
95
|
-
declare class CPathPoint {
|
|
96
|
-
direction: CVector;
|
|
97
|
-
location: CVector;
|
|
98
|
-
constructor({ direction, location }: {
|
|
99
|
-
direction: TVector;
|
|
100
|
-
location: TVector;
|
|
101
|
-
});
|
|
102
|
-
move(offset: TVector, config?: {
|
|
103
|
-
reverse: boolean;
|
|
104
|
-
}): CPathPoint;
|
|
105
|
-
}
|
|
106
|
-
type TPath = Array<CPathPoint>;
|
|
107
|
-
type CWire = TEditorClass<"CWire", CBaseWire>;
|
|
108
|
-
declare class CBaseWire {
|
|
109
|
-
id: string;
|
|
110
|
-
from: CAnchor;
|
|
111
|
-
to: CAnchor;
|
|
112
|
-
animate: boolean;
|
|
113
|
-
constructor(wire: {
|
|
114
|
-
id: string;
|
|
115
|
-
from: CAnchor;
|
|
116
|
-
temp?: boolean;
|
|
117
|
-
to: CAnchor;
|
|
118
|
-
});
|
|
119
|
-
get type(): TSchema;
|
|
120
|
-
get toType(): TSchema;
|
|
121
|
-
getPath(): TPath;
|
|
122
|
-
}
|
|
123
|
-
type TWireExport = {
|
|
124
|
-
from: {
|
|
125
|
-
key: string;
|
|
126
|
-
node: string;
|
|
127
|
-
};
|
|
128
|
-
to: {
|
|
129
|
-
key: string;
|
|
130
|
-
node: string;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
type TWire = CWire;
|
|
134
|
-
declare enum EElementType {
|
|
135
|
-
Script = "script",
|
|
136
|
-
Standalone = "standalone",
|
|
137
|
-
Folder = "folder",
|
|
138
|
-
MainLogic = "main",
|
|
139
|
-
Logic = "logic",
|
|
140
|
-
Config = "config",
|
|
141
|
-
Text = "text",
|
|
142
|
-
Store = "store",
|
|
143
|
-
Database = "database",
|
|
144
|
-
Component = "component",
|
|
145
|
-
Route = "route",
|
|
146
|
-
Type = "type",
|
|
147
|
-
Cron = "cron",
|
|
148
|
-
Media = "media"
|
|
149
|
-
}
|
|
150
|
-
type TFolderArtboardView = {
|
|
151
|
-
name: string;
|
|
152
|
-
location: TVector;
|
|
153
|
-
properties: Record<string, unknown>;
|
|
154
|
-
};
|
|
155
|
-
type TFolderArtboard = {
|
|
156
|
-
location: TVector;
|
|
157
|
-
views: Record<string, TFolderArtboardView>;
|
|
158
|
-
};
|
|
159
|
-
interface TFolderOf<TChild> {
|
|
160
|
-
type: EElementType.Folder;
|
|
161
|
-
artboards?: Record<string, TFolderArtboard>;
|
|
162
|
-
children: Record<string, TChild>;
|
|
163
|
-
color?: string;
|
|
164
|
-
}
|
|
165
|
-
type TFolderExport = TFileBaseExport & TFolderOf<TFileExport>;
|
|
166
|
-
type TFolder = TFileBase & TFolderOf<TFile>;
|
|
167
|
-
type TFileState = {
|
|
168
|
-
expand?: boolean;
|
|
169
|
-
isEditing?: boolean;
|
|
170
|
-
logic?: TCanvas;
|
|
171
|
-
opened?: boolean;
|
|
172
|
-
panel?: string;
|
|
173
|
-
};
|
|
174
|
-
type TFileBaseExport = {
|
|
175
|
-
name: string;
|
|
176
|
-
state: TFileState;
|
|
177
|
-
};
|
|
178
|
-
type TFileBase = TFileBaseExport & {
|
|
179
|
-
id: string;
|
|
180
|
-
parent?: TFolder;
|
|
181
|
-
};
|
|
182
|
-
declare enum ELayoutValueType {
|
|
183
|
-
Variable = "variable",
|
|
184
|
-
Property = "property",
|
|
185
|
-
Attribute = "attribute",
|
|
186
|
-
Context = "context",
|
|
187
|
-
Computed = "computed",
|
|
188
|
-
Event = "event",
|
|
189
|
-
File = "file",
|
|
190
|
-
Model = "model",
|
|
191
|
-
Logic = "logic"
|
|
192
|
-
}
|
|
193
|
-
type TContextValue = {
|
|
194
|
-
schema: TSchema;
|
|
195
|
-
value: unknown;
|
|
196
|
-
};
|
|
197
|
-
type TLayoutContext = Record<string, TContextValue>;
|
|
198
|
-
/**
|
|
199
|
-
* Runtime-only reactive value (never exported)
|
|
200
|
-
*/
|
|
201
|
-
type TLayoutValue = {
|
|
202
|
-
id: string;
|
|
203
|
-
type?: ELayoutValueType;
|
|
204
|
-
baseType?: ELayoutValueType;
|
|
205
|
-
child: Array<string>;
|
|
206
|
-
component?: TFileComponent;
|
|
207
|
-
context: TLayoutContext;
|
|
208
|
-
stackId: string;
|
|
209
|
-
get value(): unknown;
|
|
210
|
-
set value(value: unknown);
|
|
211
|
-
get schema(): TSchema;
|
|
212
|
-
get baseSchema(): TSchema;
|
|
213
|
-
};
|
|
214
|
-
declare enum EDynamicVariableType {
|
|
215
|
-
Constant = "constant",
|
|
216
|
-
Dynamic = "dynamic",
|
|
217
|
-
Token = "token"
|
|
218
|
-
}
|
|
219
|
-
declare enum EDynamicOperation {
|
|
220
|
-
Equal = "equal",
|
|
221
|
-
NotEqual = "not-equal",
|
|
222
|
-
Greater = "greater",
|
|
223
|
-
GreaterEqual = "greater-equal",
|
|
224
|
-
Less = "less",
|
|
225
|
-
LessEqual = "less-equal",
|
|
226
|
-
StartsWith = "starts-with",
|
|
227
|
-
EndsWith = "ends-with",
|
|
228
|
-
Includes = "includes",
|
|
229
|
-
At = "at",
|
|
230
|
-
Join = "join",
|
|
231
|
-
ToLowerCase = "to-lower-case",
|
|
232
|
-
ToUpperCase = "to-upper-case",
|
|
233
|
-
Trim = "trim",
|
|
234
|
-
Length = "length",
|
|
235
|
-
Not = "not",
|
|
236
|
-
And = "and",
|
|
237
|
-
Or = "or",
|
|
238
|
-
Add = "add",
|
|
239
|
-
Subtract = "subtract",
|
|
240
|
-
Multiply = "multiply",
|
|
241
|
-
Divide = "divide",
|
|
242
|
-
Modulo = "modulo",
|
|
243
|
-
Ternary = "ternary",
|
|
244
|
-
ToString = "to-string",
|
|
245
|
-
ToNumber = "to-number",
|
|
246
|
-
ToBoolean = "to-boolean",
|
|
247
|
-
Call = "call"
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* One operation applied to the previous value, optionally followed by a property access on its result.
|
|
251
|
-
*/
|
|
252
|
-
type TDynamicVariableStep = {
|
|
253
|
-
access?: Array<string>;
|
|
254
|
-
operation: EDynamicOperation;
|
|
255
|
-
variables: Array<TMaybeDynamicVariableExport>;
|
|
256
|
-
};
|
|
257
|
-
/**
|
|
258
|
-
* Serializable data of a dynamic variable. Runtime variables extend it with methods, so they stay assignable to it.
|
|
259
|
-
*/
|
|
260
|
-
type TDynamicVariableExport = {
|
|
261
|
-
type: EDynamicVariableType;
|
|
262
|
-
_dynamic: true;
|
|
263
|
-
access: Array<string>;
|
|
264
|
-
steps?: Array<TDynamicVariableStep>;
|
|
265
|
-
token: string;
|
|
266
|
-
value: unknown;
|
|
267
|
-
};
|
|
268
|
-
type TDynamicVariable = TDynamicVariableExport & {
|
|
269
|
-
getComputed(component: TFileComponent, options?: {
|
|
270
|
-
context?: TLayoutContext;
|
|
271
|
-
stackId?: string;
|
|
272
|
-
}): ComputedRef<TContextValue | TLayoutValue>;
|
|
273
|
-
getValue(component: TFileComponent, options?: {
|
|
274
|
-
base?: boolean;
|
|
275
|
-
context?: TLayoutContext;
|
|
276
|
-
stackId?: string;
|
|
277
|
-
}): TContextValue;
|
|
278
|
-
getRawValue(): unknown;
|
|
279
|
-
toJSON(): unknown;
|
|
280
|
-
};
|
|
281
|
-
/**
|
|
282
|
-
* A raw constant stored in place of a dynamic variable (constants are unwrapped on load).
|
|
283
|
-
* Arrays and objects may still contain dynamic variables.
|
|
284
|
-
*/
|
|
285
|
-
type TRawValueExport = string | number | boolean | null | undefined | Array<TMaybeDynamicVariableExport> | {
|
|
286
|
-
[key: string]: TMaybeDynamicVariableExport;
|
|
287
|
-
};
|
|
288
|
-
type TRawValue = string | number | boolean | null | undefined | Array<TMaybeDynamicVariable> | {
|
|
289
|
-
[key: string]: TMaybeDynamicVariable;
|
|
290
|
-
};
|
|
291
|
-
type TMaybeDynamicVariableExport = TDynamicVariableExport | TRawValueExport;
|
|
292
|
-
type TMaybeDynamicVariable = TDynamicVariable | TRawValue;
|
|
293
|
-
type TValueExport = TSchema;
|
|
294
|
-
type TValue = {
|
|
295
|
-
id: string;
|
|
296
|
-
isEditing?: boolean;
|
|
297
|
-
parent?: TLogic;
|
|
298
|
-
schema: TSchema;
|
|
299
|
-
};
|
|
300
|
-
declare enum ELayoutElement {
|
|
301
|
-
input = "input",
|
|
302
|
-
div = "div",
|
|
303
|
-
media = "media",
|
|
304
|
-
customText = "customText",
|
|
305
|
-
component = "component",
|
|
306
|
-
package = "package",
|
|
307
|
-
customHtml = "customHtml",
|
|
308
|
-
slot = "slot",
|
|
309
|
-
template = "template",
|
|
310
|
-
variable = "variable",
|
|
311
|
-
link = "link"
|
|
312
|
-
}
|
|
313
|
-
declare enum ETokenType {
|
|
314
|
-
Class = "class",
|
|
315
|
-
Color = "color",
|
|
316
|
-
FontSize = "font-size",
|
|
317
|
-
FontWeight = "font-weight",
|
|
318
|
-
FontFamily = "font-family",
|
|
319
|
-
Length = "length",
|
|
320
|
-
Time = "time"
|
|
321
|
-
}
|
|
322
|
-
declare module "@luna-park/logicnodes" {
|
|
323
|
-
interface TSchemaOptions {
|
|
324
|
-
custom?: boolean;
|
|
325
|
-
displayGrid?: number;
|
|
326
|
-
dual?: boolean;
|
|
327
|
-
filter?: boolean;
|
|
328
|
-
flex?: boolean;
|
|
329
|
-
grid?: boolean;
|
|
330
|
-
image?: boolean;
|
|
331
|
-
mode?: "corner";
|
|
332
|
-
number?: boolean;
|
|
333
|
-
quad?: boolean;
|
|
334
|
-
ref?: boolean;
|
|
335
|
-
shadow?: boolean;
|
|
336
|
-
units?: Array<string>;
|
|
337
|
-
}
|
|
338
|
-
interface TString<T extends string = string> {
|
|
339
|
-
target?: string;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
type TTextBlock = {
|
|
343
|
-
content: string;
|
|
344
|
-
key: string;
|
|
345
|
-
};
|
|
346
|
-
/**
|
|
347
|
-
* Element of a plugin component, as `plugin/<plugin id>/<component>`
|
|
348
|
-
*/
|
|
349
|
-
type TPluginElement = `plugin/${string}`;
|
|
350
|
-
type TLayoutElementType = ELayoutElement | TPluginElement;
|
|
351
|
-
type TLayoutContentOf<TElement extends TLayoutElementType, TVariable, TChild> = TElement extends ELayoutElement.variable ? {
|
|
352
|
-
var: TVariable;
|
|
353
|
-
} : TElement extends ELayoutElement.component ? {
|
|
354
|
-
id: string;
|
|
355
|
-
slots: Record<string, TChild>;
|
|
356
|
-
} : TElement extends ELayoutElement.customText ? {
|
|
357
|
-
text: TTextBlock;
|
|
358
|
-
variables: Array<string>;
|
|
359
|
-
} : TElement extends ELayoutElement.customHtml ? {
|
|
360
|
-
html: string;
|
|
361
|
-
variables: Array<string>;
|
|
362
|
-
} : TElement extends ELayoutElement.package ? {
|
|
363
|
-
slots: Record<string, TChild>;
|
|
364
|
-
target: Array<string>;
|
|
365
|
-
} : TElement extends TPluginElement ? {
|
|
366
|
-
internals?: unknown;
|
|
367
|
-
slots: Record<string, TChild>;
|
|
368
|
-
target: string;
|
|
369
|
-
} : Record<string, unknown>;
|
|
370
|
-
/**
|
|
371
|
-
* Style rules by category, then by property. The `custom` category holds raw CSS properties absent from `layoutStyles`
|
|
372
|
-
*/
|
|
373
|
-
type TLayoutStyleRulesExport = Record<string, Record<string, TMaybeDynamicVariableExport>>;
|
|
374
|
-
type TLayoutStyleRules = Record<string, Record<string, TMaybeDynamicVariable>>;
|
|
375
|
-
type TLayoutStylePseudo = "active" | "focus-visible" | "hover";
|
|
376
|
-
type TLayoutStyleState = "default" | TLayoutStylePseudo;
|
|
377
|
-
type TLayoutStyleStatesOf<TRules> = Partial<Record<TLayoutStyleState, TRules>>;
|
|
378
|
-
type TLayoutStyleStatesExport = TLayoutStyleStatesOf<TLayoutStyleRulesExport>;
|
|
379
|
-
type TLayoutStyleStates = TLayoutStyleStatesOf<TLayoutStyleRules>;
|
|
380
|
-
type TLayoutStyleOf<TStates> = {
|
|
381
|
-
base?: TStates;
|
|
382
|
-
quick?: Array<string>;
|
|
383
|
-
[media: `${number}`]: TStates | undefined;
|
|
384
|
-
};
|
|
385
|
-
type TLayoutStyleExport = TLayoutStyleOf<TLayoutStyleStatesExport>;
|
|
386
|
-
type TLayoutStyle = TLayoutStyleOf<TLayoutStyleStates>;
|
|
387
|
-
type TLayoutClassOf<TStyle> = {
|
|
388
|
-
id: string;
|
|
389
|
-
name: string;
|
|
390
|
-
style: TStyle;
|
|
391
|
-
};
|
|
392
|
-
type TLayoutClassExport = TLayoutClassOf<TLayoutStyleExport>;
|
|
393
|
-
type TLayoutClass = TLayoutClassOf<TLayoutStyle>;
|
|
394
|
-
/**
|
|
395
|
-
* Class applied to an element: `name` is a constant, a class token or a variable, applied while `toggle` is truthy (always when absent)
|
|
396
|
-
*/
|
|
397
|
-
type TLayoutClassBindingOf<TVariable> = {
|
|
398
|
-
name: TVariable;
|
|
399
|
-
toggle?: TVariable;
|
|
400
|
-
};
|
|
401
|
-
type TLayoutEventParameterOf<TVariable> = {
|
|
402
|
-
schema: TSchema;
|
|
403
|
-
value: TVariable;
|
|
404
|
-
};
|
|
405
|
-
type TLayoutEventParameterExport = TLayoutEventParameterOf<TMaybeDynamicVariableExport>;
|
|
406
|
-
type TLayoutEventParameter = TLayoutEventParameterOf<TMaybeDynamicVariable>;
|
|
407
|
-
interface TLayoutNodeOf<TElement extends TLayoutElementType, TVariable, TChild, TStyle, TEventParameter> {
|
|
408
|
-
id: string;
|
|
409
|
-
name: string;
|
|
410
|
-
children: Array<TChild>;
|
|
411
|
-
classes: Array<TLayoutClassBindingOf<TVariable>>;
|
|
412
|
-
collapsed?: boolean;
|
|
413
|
-
content: TLayoutContentOf<TElement, TVariable, TChild>;
|
|
414
|
-
element: TElement;
|
|
415
|
-
events: Record<string, Record<string, TEventParameter>>;
|
|
416
|
-
models?: Record<string, Array<string>>;
|
|
417
|
-
plugins?: Record<string, Record<string, TVariable>>;
|
|
418
|
-
properties: Record<string, TVariable>;
|
|
419
|
-
style: TStyle;
|
|
420
|
-
tag?: string;
|
|
421
|
-
}
|
|
422
|
-
interface TLayoutNodeExport<TElement extends TLayoutElementType> extends TLayoutNodeOf<TElement, TMaybeDynamicVariableExport, TLayoutSchemaExport, TLayoutStyleExport, TLayoutEventParameterExport> {}
|
|
423
|
-
interface TLayoutNode<TElement extends TLayoutElementType> extends TLayoutNodeOf<TElement, TMaybeDynamicVariable, TLayoutSchema, TLayoutStyle, TLayoutEventParameter> {
|
|
424
|
-
component: TFileComponent;
|
|
425
|
-
parent?: TLayoutSchema;
|
|
426
|
-
}
|
|
427
|
-
type TLayoutSchemaExport<TElement extends TLayoutElementType = TLayoutElementType> = { [TInnerElement in TElement]: TLayoutNodeExport<TInnerElement>; }[TElement];
|
|
428
|
-
type TLayoutSchema<TElement extends TLayoutElementType = TLayoutElementType> = { [TInnerElement in TElement]: TLayoutNode<TInnerElement>; }[TElement];
|
|
429
|
-
declare enum EComponentType {
|
|
430
|
-
Component = "component",
|
|
431
|
-
Page = "page"
|
|
432
|
-
}
|
|
433
|
-
declare enum EComponentPreview {
|
|
434
|
-
Compact = "compact",
|
|
435
|
-
Stretch = "stretch",
|
|
436
|
-
Full = "full"
|
|
437
|
-
}
|
|
438
|
-
type TComponentOptions = {
|
|
439
|
-
type: EComponentType;
|
|
440
|
-
path: string;
|
|
441
|
-
preview: EComponentPreview;
|
|
442
|
-
previewBackground?: string;
|
|
443
|
-
previewSize?: string;
|
|
444
|
-
seo?: TPageSeo;
|
|
445
|
-
};
|
|
446
|
-
declare enum ESeoSource {
|
|
447
|
-
Static = "static",
|
|
448
|
-
Dynamic = "dynamic"
|
|
449
|
-
}
|
|
450
|
-
type TPageSeo = {
|
|
451
|
-
description?: string;
|
|
452
|
-
image?: string;
|
|
453
|
-
metadataRoute?: string;
|
|
454
|
-
noindex?: boolean;
|
|
455
|
-
sitemapRoute?: string;
|
|
456
|
-
source?: ESeoSource;
|
|
457
|
-
title?: string;
|
|
458
|
-
};
|
|
459
|
-
interface TFileComponentOf<TClass, TLayout, TLogic, TValue> {
|
|
460
|
-
type: EElementType.Component;
|
|
461
|
-
classes?: Record<string, TClass>;
|
|
462
|
-
collapsed?: boolean;
|
|
463
|
-
layout: TLayout;
|
|
464
|
-
logics: Record<string, TLogic>;
|
|
465
|
-
options: TComponentOptions;
|
|
466
|
-
values: {
|
|
467
|
-
computed: Record<string, TValue>;
|
|
468
|
-
events: Record<string, TValue>;
|
|
469
|
-
model?: TSchema;
|
|
470
|
-
properties: Record<string, TValue>;
|
|
471
|
-
variables: Record<string, TValue>;
|
|
472
|
-
};
|
|
473
|
-
}
|
|
474
|
-
type TFileComponentExport = TFileBaseExport & TFileComponentOf<TLayoutClassExport, TLayoutSchemaExport, TAnyLogicExport, TValueExport>;
|
|
475
|
-
type TFileComponent = TFileBase & TFileComponentOf<TLayoutClass, TLayoutSchema, TAnyLogic, TValue> & {
|
|
476
|
-
flat: Record<string, TLayoutSchema>;
|
|
477
|
-
};
|
|
478
|
-
type TFileConfigFields = {
|
|
479
|
-
type: EElementType.Config;
|
|
480
|
-
content: unknown;
|
|
481
|
-
display: EConfigDisplay;
|
|
482
|
-
schema: TSchema;
|
|
483
|
-
scope: ELogicScope;
|
|
484
|
-
};
|
|
485
|
-
type TFileConfigExport = TFileBaseExport & TFileConfigFields;
|
|
486
|
-
type TFileConfig = TFileBase & TFileConfigFields;
|
|
487
|
-
declare enum EConfigDisplay {
|
|
488
|
-
Smart = "smart",
|
|
489
|
-
Performance = "performance"
|
|
490
|
-
}
|
|
491
|
-
interface TFileCronOf<TLogic> {
|
|
492
|
-
type: EElementType.Cron;
|
|
493
|
-
active: boolean;
|
|
494
|
-
editorTrigger: boolean;
|
|
495
|
-
logics: Record<string, TLogic>;
|
|
496
|
-
time: string;
|
|
497
|
-
}
|
|
498
|
-
type TFileCronExport = TFileBaseExport & TFileCronOf<TAnyLogicExport>;
|
|
499
|
-
type TFileCron = TFileBase & TFileCronOf<TAnyLogic> & {
|
|
500
|
-
cron?: Cron;
|
|
501
|
-
scope: ELogicScope.Backend;
|
|
502
|
-
};
|
|
503
|
-
type TDatabaseRow = Record<string, unknown>;
|
|
504
|
-
type TQueryValue = string | number | boolean;
|
|
505
|
-
type TQueryOperation = Record<string, {
|
|
506
|
-
$eq?: TQueryValue;
|
|
507
|
-
$exists?: boolean;
|
|
508
|
-
$gt?: TQueryValue;
|
|
509
|
-
$gte?: TQueryValue;
|
|
510
|
-
$ilike?: string;
|
|
511
|
-
$in?: Array<TQueryValue>;
|
|
512
|
-
$like?: string;
|
|
513
|
-
$lt?: TQueryValue;
|
|
514
|
-
$lte?: TQueryValue;
|
|
515
|
-
$neq?: TQueryValue;
|
|
516
|
-
$nin?: Array<TQueryValue>;
|
|
517
|
-
}>;
|
|
518
|
-
type TQuery = TQueryOperation | {
|
|
519
|
-
$and?: Array<TQuery>;
|
|
520
|
-
$not?: TQuery;
|
|
521
|
-
$or?: Array<TQuery>;
|
|
522
|
-
};
|
|
523
|
-
type TQueryOptions = {
|
|
524
|
-
limit?: number;
|
|
525
|
-
offset?: number;
|
|
526
|
-
order?: Array<TOrder>;
|
|
527
|
-
};
|
|
528
|
-
type TOrder = {
|
|
529
|
-
column: string;
|
|
530
|
-
direction: "asc" | "desc";
|
|
531
|
-
};
|
|
532
|
-
type CDatabase = TEditorClass<"CDatabase", CBaseDatabase>;
|
|
533
|
-
declare class CBaseDatabase {
|
|
534
|
-
file: TFileDatabase;
|
|
535
|
-
db: PGliteWorker;
|
|
536
|
-
ready: boolean;
|
|
537
|
-
exist: boolean;
|
|
538
|
-
constructor(file: TFileDatabase);
|
|
539
|
-
init(): Promise<void>;
|
|
540
|
-
prepare(): Promise<void>;
|
|
541
|
-
findById(id: string): Promise<TDatabaseRow | undefined>;
|
|
542
|
-
find(filter: TDatabaseRow): Promise<Array<TDatabaseRow>>;
|
|
543
|
-
findWithQuery(query: TQuery, options?: TQueryOptions): Promise<Array<TDatabaseRow>>;
|
|
544
|
-
updateById(id: string, data: TDatabaseRow): Promise<void>;
|
|
545
|
-
update(filter: TDatabaseRow, data: TDatabaseRow): Promise<void>;
|
|
546
|
-
updateWithQuery(query: TQuery, data: TDatabaseRow): Promise<void>;
|
|
547
|
-
deleteById(id: string): Promise<TDatabaseRow | undefined>;
|
|
548
|
-
delete(filter: TDatabaseRow): Promise<TDatabaseRow | undefined>;
|
|
549
|
-
deleteWithQuery(query: TQuery): Promise<TDatabaseRow | undefined>;
|
|
550
|
-
insert(data: TDatabaseRow): Promise<TDatabaseRow | undefined>;
|
|
551
|
-
toRealKey(row: TDatabaseRow): TDatabaseRow;
|
|
552
|
-
toSchemaKey(row: TDatabaseRow): TDatabaseRow;
|
|
553
|
-
updateColumns(init: boolean): Promise<void>;
|
|
554
|
-
save(): Promise<Array<TDatabaseRow>>;
|
|
555
|
-
load(): Promise<void>;
|
|
556
|
-
reload(): Promise<void>;
|
|
557
|
-
getUpdate(data: TDatabaseRow): unknown;
|
|
558
|
-
getQueryFilter(filter: TDatabaseRow): unknown;
|
|
559
|
-
getQueryOptions(options?: TQueryOptions): unknown;
|
|
560
|
-
getQuery(query: TQuery): unknown;
|
|
561
|
-
getOperation(query: TQueryOperation): unknown;
|
|
562
|
-
}
|
|
563
|
-
type TFileDatabaseFields = {
|
|
564
|
-
type: EElementType.Database;
|
|
565
|
-
data: Array<TDatabaseRow>;
|
|
566
|
-
schema: TSchema<TObject>;
|
|
567
|
-
};
|
|
568
|
-
type TFileDatabaseExport = TFileBaseExport & TFileDatabaseFields;
|
|
569
|
-
type TFileDatabase = TFileBase & TFileDatabaseFields & {
|
|
570
|
-
db: CDatabase;
|
|
571
|
-
scope: ELogicScope.Backend;
|
|
572
|
-
};
|
|
573
|
-
type TFileMediaFields = {
|
|
574
|
-
type: EElementType.Media;
|
|
575
|
-
mimeType: string;
|
|
576
|
-
previewUrl?: string;
|
|
577
|
-
target: string;
|
|
578
|
-
};
|
|
579
|
-
type TFileMediaExport = TFileBaseExport & TFileMediaFields;
|
|
580
|
-
type TFileMedia = TFileBase & TFileMediaFields;
|
|
581
|
-
declare enum ERouteMethod {
|
|
582
|
-
Get = "get",
|
|
583
|
-
Post = "post",
|
|
584
|
-
Put = "put",
|
|
585
|
-
Patch = "patch",
|
|
586
|
-
Delete = "delete"
|
|
587
|
-
}
|
|
588
|
-
type TRouteGuardRef = {
|
|
589
|
-
id: string;
|
|
590
|
-
config: Record<string, unknown>;
|
|
591
|
-
};
|
|
592
|
-
interface TFileRouteOf<TLogic> {
|
|
593
|
-
type: EElementType.Route;
|
|
594
|
-
guards?: Array<TRouteGuardRef>;
|
|
595
|
-
input: {
|
|
596
|
-
body: TSchema;
|
|
597
|
-
headers: TSchema;
|
|
598
|
-
query: TSchema;
|
|
599
|
-
};
|
|
600
|
-
logics: Record<string, TLogic>;
|
|
601
|
-
method: ERouteMethod;
|
|
602
|
-
output: TSchema;
|
|
603
|
-
path: string;
|
|
604
|
-
}
|
|
605
|
-
type TFileRouteExport = TFileBaseExport & TFileRouteOf<TAnyLogicExport>;
|
|
606
|
-
type TFileRoute = TFileBase & TFileRouteOf<TAnyLogic> & {
|
|
607
|
-
scope: ELogicScope.Backend;
|
|
608
|
-
};
|
|
609
|
-
interface TFileScriptOf<TLogic> {
|
|
610
|
-
type: EElementType.Script;
|
|
611
|
-
logics: Record<string, TLogic>;
|
|
612
|
-
options?: {
|
|
613
|
-
autoReload?: boolean;
|
|
614
|
-
};
|
|
615
|
-
scope: ELogicScope;
|
|
616
|
-
}
|
|
617
|
-
type TFileScriptExport = TFileBaseExport & TFileScriptOf<TAnyLogicExport>;
|
|
618
|
-
type TFileScript = TFileBase & TFileScriptOf<TAnyLogic>;
|
|
619
|
-
declare enum EStoreType {
|
|
620
|
-
Memory = "memory",
|
|
621
|
-
Session = "session",
|
|
622
|
-
Local = "local"
|
|
623
|
-
}
|
|
624
|
-
type TStoreOptions = {
|
|
625
|
-
type: EStoreType;
|
|
626
|
-
};
|
|
627
|
-
interface TFileStoreOf<TLogic> {
|
|
628
|
-
type: EElementType.Store;
|
|
629
|
-
default: unknown;
|
|
630
|
-
logics: Record<string, TLogic>;
|
|
631
|
-
options: TStoreOptions;
|
|
632
|
-
schema: TSchema;
|
|
633
|
-
}
|
|
634
|
-
type TFileStoreExport = TFileBaseExport & TFileStoreOf<TLogicExport>;
|
|
635
|
-
type TFileStore = TFileBase & TFileStoreOf<TLogic> & {
|
|
636
|
-
proxy: TSchema;
|
|
637
|
-
scope: ELogicScope.Frontend;
|
|
638
|
-
value: Record<string, unknown>;
|
|
639
|
-
};
|
|
640
|
-
type TFileTextFields = {
|
|
641
|
-
type: EElementType.Text;
|
|
642
|
-
blocks: Array<TTextBlock>;
|
|
643
|
-
};
|
|
644
|
-
type TFileTextExport = TFileBaseExport & TFileTextFields;
|
|
645
|
-
type TFileText = TFileBase & TFileTextFields & {
|
|
646
|
-
scope: ELogicScope.Frontend;
|
|
647
|
-
};
|
|
648
|
-
type TFileTypeFields = {
|
|
649
|
-
type: EElementType.Type;
|
|
650
|
-
schemas: Record<string, TSchema>;
|
|
651
|
-
};
|
|
652
|
-
type TFileTypeExport = TFileBaseExport & TFileTypeFields;
|
|
653
|
-
type TFileType = TFileBase & TFileTypeFields & {
|
|
654
|
-
scope: ELogicScope.Shared;
|
|
655
|
-
};
|
|
656
|
-
interface TApplicationOf<TTree> {
|
|
657
|
-
name: string;
|
|
658
|
-
config: TApplicationConfig;
|
|
659
|
-
tree: TTree;
|
|
660
|
-
version: number;
|
|
661
|
-
}
|
|
662
|
-
type TApplicationExport = TApplicationOf<TFolderExport>;
|
|
663
|
-
type TApplication = TApplicationOf<TFolder>;
|
|
664
|
-
declare enum EHistoryMode {
|
|
665
|
-
Hash = "hash",
|
|
666
|
-
Web = "web",
|
|
667
|
-
Memory = "memory"
|
|
668
|
-
}
|
|
669
|
-
declare enum EResponsiveStrategy {
|
|
670
|
-
DesktopFirst = "desktop-first",
|
|
671
|
-
MobileFirst = "mobile-first"
|
|
672
|
-
}
|
|
673
|
-
declare enum EFileSortStrategy {
|
|
674
|
-
Name = "name",
|
|
675
|
-
Type = "type"
|
|
676
|
-
}
|
|
677
|
-
type TApplicationToken = {
|
|
678
|
-
id: string;
|
|
679
|
-
name: string;
|
|
680
|
-
value: string;
|
|
681
|
-
};
|
|
682
|
-
declare enum EColorTokenRole {
|
|
683
|
-
Background = "background",
|
|
684
|
-
Content = "content"
|
|
685
|
-
}
|
|
686
|
-
type TApplicationColorToken = TApplicationToken & {
|
|
687
|
-
role?: EColorTokenRole;
|
|
688
|
-
};
|
|
689
|
-
type TApplicationFontToken = TApplicationToken & {
|
|
690
|
-
cdn?: string;
|
|
691
|
-
default?: boolean;
|
|
692
|
-
italic?: boolean;
|
|
693
|
-
weights?: Array<number>;
|
|
694
|
-
};
|
|
695
|
-
type TApplicationTokens = {
|
|
696
|
-
colors: Array<TApplicationColorToken>;
|
|
697
|
-
fonts: Array<TApplicationFontToken>;
|
|
698
|
-
lengths: Array<TApplicationToken>;
|
|
699
|
-
};
|
|
700
|
-
type TApplicationConfig = {
|
|
701
|
-
backend: {
|
|
702
|
-
salt: string;
|
|
703
|
-
};
|
|
704
|
-
description?: string;
|
|
705
|
-
desktop: {
|
|
706
|
-
appleTeamId?: string;
|
|
707
|
-
backendUrl?: string;
|
|
708
|
-
fullscreen: boolean;
|
|
709
|
-
height: number;
|
|
710
|
-
identifier?: string;
|
|
711
|
-
resizable: boolean;
|
|
712
|
-
version: string;
|
|
713
|
-
width: number;
|
|
714
|
-
};
|
|
715
|
-
libraries: Record<string, boolean>;
|
|
716
|
-
packages: Record<string, {
|
|
717
|
-
name: string;
|
|
718
|
-
components: TExportNodeResult["components"];
|
|
719
|
-
description?: string;
|
|
720
|
-
functions: TExportNodeResult["functions"];
|
|
721
|
-
types: TExportNodeResult["types"];
|
|
722
|
-
}>;
|
|
723
|
-
palette: {
|
|
724
|
-
inject: {
|
|
725
|
-
css: string;
|
|
726
|
-
head: string;
|
|
727
|
-
html: string;
|
|
728
|
-
js: string;
|
|
729
|
-
};
|
|
730
|
-
tokens: TApplicationTokens;
|
|
731
|
-
};
|
|
732
|
-
plugins: Record<string, {
|
|
733
|
-
config?: unknown;
|
|
734
|
-
internals?: unknown;
|
|
735
|
-
target: string;
|
|
736
|
-
}>;
|
|
737
|
-
state: {
|
|
738
|
-
currentTab: string;
|
|
739
|
-
deployAppId?: string;
|
|
740
|
-
deployServerId?: string;
|
|
741
|
-
explorerSort?: EFileSortStrategy;
|
|
742
|
-
tabs: Array<string>;
|
|
743
|
-
};
|
|
744
|
-
style: {
|
|
745
|
-
strategy: EResponsiveStrategy;
|
|
746
|
-
};
|
|
747
|
-
web: {
|
|
748
|
-
favicon?: TApplicationFavicon;
|
|
749
|
-
history: EHistoryMode;
|
|
750
|
-
pwa: boolean;
|
|
751
|
-
pwaConfig?: TApplicationPwaConfig;
|
|
752
|
-
seo?: TApplicationSeoConfig;
|
|
753
|
-
};
|
|
754
|
-
};
|
|
755
|
-
type TApplicationFavicon = string | Pick<TDynamicVariableExport, "_dynamic" | "access" | "type">;
|
|
756
|
-
type TApplicationSeoConfig = {
|
|
757
|
-
description: string;
|
|
758
|
-
image: string;
|
|
759
|
-
language: string;
|
|
760
|
-
noindex: boolean;
|
|
761
|
-
siteUrl: string;
|
|
762
|
-
titleTemplate: string;
|
|
763
|
-
};
|
|
764
|
-
declare enum EPwaDisplay {
|
|
765
|
-
Standalone = "standalone",
|
|
766
|
-
Fullscreen = "fullscreen",
|
|
767
|
-
MinimalUi = "minimal-ui",
|
|
768
|
-
Browser = "browser"
|
|
769
|
-
}
|
|
770
|
-
declare enum EPwaOrientation {
|
|
771
|
-
Any = "any",
|
|
772
|
-
Portrait = "portrait",
|
|
773
|
-
Landscape = "landscape"
|
|
774
|
-
}
|
|
775
|
-
type TApplicationPwaConfig = {
|
|
776
|
-
backgroundColor: string;
|
|
777
|
-
description: string;
|
|
778
|
-
display: EPwaDisplay;
|
|
779
|
-
icon: string;
|
|
780
|
-
orientation: EPwaOrientation;
|
|
781
|
-
shortName: string;
|
|
782
|
-
themeColor: string;
|
|
783
|
-
};
|
|
784
|
-
type TFileExport = TFolderExport | TFileComponentExport | TFileConfigExport | TFileCronExport | TFileDatabaseExport | TFileRouteExport | TFileScriptExport | TFileStoreExport | TFileTextExport | TFileTypeExport | TFileMediaExport;
|
|
785
|
-
type TFile = TFolder | TFileComponent | TFileConfig | TFileCron | TFileDatabase | TFileRoute | TFileScript | TFileStore | TFileText | TFileType | TFileMedia;
|
|
786
|
-
declare enum ELogicMode {
|
|
787
|
-
Pure = "pure",
|
|
788
|
-
Macro = "macro",
|
|
789
|
-
Code = "code"
|
|
790
|
-
}
|
|
791
|
-
type TCanvas = {
|
|
792
|
-
location: TVector;
|
|
793
|
-
zoom: number;
|
|
794
|
-
};
|
|
795
|
-
interface TGraphOf<TNode, TWire> {
|
|
796
|
-
autoplace?: boolean;
|
|
797
|
-
canvas: TCanvas;
|
|
798
|
-
nodes: Record<string, TNode>;
|
|
799
|
-
wires: Record<string, TWire>;
|
|
800
|
-
}
|
|
801
|
-
type TGraphExport = TGraphOf<TNodeExport, TWireExport>;
|
|
802
|
-
type TGraph = TGraphOf<TNode, TWire>;
|
|
803
|
-
type TAnchorExport = TSchema;
|
|
804
|
-
type TAnchor = {
|
|
805
|
-
id: string;
|
|
806
|
-
parent?: TLogic;
|
|
807
|
-
schema: TSchema;
|
|
808
|
-
};
|
|
809
|
-
interface TLogicBaseOf<TGraph, TValue> {
|
|
810
|
-
name: string;
|
|
811
|
-
graph: TGraph;
|
|
812
|
-
values: {
|
|
813
|
-
variables: Record<string, TValue>;
|
|
814
|
-
};
|
|
815
|
-
}
|
|
816
|
-
type TLogicRuntimeFields = {
|
|
817
|
-
id: string;
|
|
818
|
-
db: Record<string, TLogicNode>;
|
|
819
|
-
isEditing?: boolean;
|
|
820
|
-
parent: TFile;
|
|
821
|
-
};
|
|
822
|
-
interface TLogicOf<TGraph, TValue, TAnchor> extends TLogicBaseOf<TGraph, TValue> {
|
|
823
|
-
type: EElementType.Logic | EElementType.Standalone;
|
|
824
|
-
async: boolean;
|
|
825
|
-
code?: string;
|
|
826
|
-
description?: string;
|
|
827
|
-
export: boolean;
|
|
828
|
-
hue?: number;
|
|
829
|
-
icon?: string;
|
|
830
|
-
inputs: Record<string, TAnchor>;
|
|
831
|
-
mode: ELogicMode;
|
|
832
|
-
outputs: Record<string, TAnchor>;
|
|
833
|
-
packages?: Array<string>;
|
|
834
|
-
}
|
|
835
|
-
type TLogicExport = TLogicOf<TGraphExport, TValueExport, TAnchorExport>;
|
|
836
|
-
type TLogic = TLogicOf<TGraph, TValue, TAnchor> & TLogicRuntimeFields;
|
|
837
|
-
interface TLogicMainOf<TGraph, TValue> extends TLogicBaseOf<TGraph, TValue> {
|
|
838
|
-
name: "Main";
|
|
839
|
-
type: EElementType.MainLogic;
|
|
840
|
-
}
|
|
841
|
-
type TLogicMainExport = TLogicMainOf<TGraphExport, TValueExport>;
|
|
842
|
-
type TLogicMain = TLogicMainOf<TGraph, TValue> & TLogicRuntimeFields & {
|
|
843
|
-
id: "main";
|
|
844
|
-
};
|
|
845
|
-
type TAnyLogicExport = TLogicExport | TLogicMainExport;
|
|
846
|
-
type TAnyLogic = TLogic | TLogicMain;
|
|
847
|
-
type TStackParent = {
|
|
848
|
-
logic?: TLogic;
|
|
849
|
-
node?: CNode;
|
|
850
|
-
stack: TStack;
|
|
851
|
-
};
|
|
852
|
-
type TStack = {
|
|
853
|
-
id: string;
|
|
854
|
-
config?: Record<string, unknown>;
|
|
855
|
-
context: object;
|
|
856
|
-
parent?: TStackParent;
|
|
857
|
-
variables: Record<string, unknown>;
|
|
858
|
-
};
|
|
859
|
-
type TBaseNode = {
|
|
860
|
-
id: string;
|
|
861
|
-
data?: object;
|
|
862
|
-
dbNode: TGeneratedNode;
|
|
863
|
-
inputs: Record<string, CNodeAnchor>;
|
|
864
|
-
location: TVector;
|
|
865
|
-
outputs: Record<string, CNodeAnchor>;
|
|
866
|
-
};
|
|
867
|
-
/**
|
|
868
|
-
* Proxy bound to a stack, exposing the node inputs, outputs and context by key
|
|
869
|
-
*/
|
|
870
|
-
type TNodeProxy = {
|
|
871
|
-
[key: string]: unknown;
|
|
872
|
-
with(stack?: TStack): TNodeProxy;
|
|
873
|
-
};
|
|
874
|
-
type TGeneratedNode<TLogic extends TLogicNode = TLogicNode> = TLogic & {
|
|
875
|
-
node?: CNode;
|
|
876
|
-
origin: TLogic;
|
|
877
|
-
proxy: TNodeProxy;
|
|
878
|
-
};
|
|
879
|
-
type TNodeData = {
|
|
880
|
-
color?: string;
|
|
881
|
-
config: Record<string, unknown>;
|
|
882
|
-
customTypes: Record<string, Partial<TSchema>>;
|
|
883
|
-
hideUnusedPins?: boolean;
|
|
884
|
-
manual?: Record<string, unknown>;
|
|
885
|
-
multiple?: {
|
|
886
|
-
isArray?: boolean;
|
|
887
|
-
number: number;
|
|
888
|
-
};
|
|
889
|
-
note?: string;
|
|
890
|
-
optionals: Record<string, boolean>;
|
|
891
|
-
size?: Partial<TVector>;
|
|
892
|
-
} & Record<string, unknown>;
|
|
893
|
-
type CNode = TEditorClass<"CNode", CBaseNode>;
|
|
894
|
-
declare class CBaseNode {
|
|
895
|
-
id: string;
|
|
896
|
-
dbNode: TGeneratedNode;
|
|
897
|
-
element?: HTMLElement;
|
|
898
|
-
invert: boolean;
|
|
899
|
-
parent?: TAnyLogic;
|
|
900
|
-
config: {
|
|
901
|
-
animate: boolean;
|
|
902
|
-
processing: boolean;
|
|
903
|
-
};
|
|
904
|
-
inputs: Record<string, CNodeAnchor>;
|
|
905
|
-
outputs: Record<string, CNodeAnchor>;
|
|
906
|
-
cache: {
|
|
907
|
-
location?: CVector;
|
|
908
|
-
relativeLocation?: CVector;
|
|
909
|
-
reloadKey: number;
|
|
910
|
-
size?: CVector;
|
|
911
|
-
};
|
|
912
|
-
_data: TNodeData;
|
|
913
|
-
constructor(node: TBaseNode);
|
|
914
|
-
get orderedInputs(): Array<CNodeAnchor>;
|
|
915
|
-
get orderedOutputs(): Array<CNodeAnchor>;
|
|
916
|
-
set location(location: TVector);
|
|
917
|
-
get location(): TVector;
|
|
918
|
-
reload(): void;
|
|
919
|
-
getSafeInputs(): Record<string, CNodeAnchor>;
|
|
920
|
-
getSafeOutputs(): Record<string, CNodeAnchor>;
|
|
921
|
-
set data(data: Record<string, unknown>);
|
|
922
|
-
get data(): TNodeData;
|
|
923
|
-
reset(): void;
|
|
924
|
-
dispose(): void;
|
|
925
|
-
setLocation(location: TVector): CNode;
|
|
926
|
-
getAnchorLocation(anchor: CNodeAnchor): CVector;
|
|
927
|
-
getRelativeAnchorLocation(anchor: CNodeAnchor): CVector;
|
|
928
|
-
getRelativeAnchorLocation_internal(anchor: CNodeAnchor): CVector;
|
|
929
|
-
getLocation(): CVector;
|
|
930
|
-
getHeaderHeight(): number;
|
|
931
|
-
getSize(): TVector;
|
|
932
|
-
execute(outputKey: string, stack?: TStack): MaybePromise<void>;
|
|
933
|
-
get isAsync(): boolean;
|
|
934
|
-
getInput(inputKey: string, stack?: TStack): unknown;
|
|
935
|
-
setOutput(outputKey: string, value: unknown, stack?: TStack): void;
|
|
936
|
-
}
|
|
937
|
-
type TNodeExport = {
|
|
938
|
-
data?: Record<string, unknown>;
|
|
939
|
-
internal?: {
|
|
940
|
-
inputs?: Record<string, unknown>;
|
|
941
|
-
outputs?: Record<string, unknown>;
|
|
942
|
-
};
|
|
943
|
-
location: TVector;
|
|
944
|
-
logic: string;
|
|
945
|
-
};
|
|
946
|
-
type TNode = CNode;
|
|
947
|
-
type TDBAnchor = {
|
|
948
|
-
id?: string;
|
|
949
|
-
schema: TSchema;
|
|
950
|
-
};
|
|
951
|
-
declare enum EAnchorDirection {
|
|
952
|
-
Input = "input",
|
|
953
|
-
Output = "output",
|
|
954
|
-
None = "none"
|
|
955
|
-
}
|
|
956
|
-
type CAnchor = TEditorClass<"CAnchor", CBaseAnchor>;
|
|
957
|
-
type CNodeAnchor = TEditorClass<"CNodeAnchor", CBaseNodeAnchor>;
|
|
958
|
-
declare class CBaseAnchor {
|
|
959
|
-
connections: Array<CWire>;
|
|
960
|
-
dbAnchor: TDBAnchor;
|
|
961
|
-
padding?: number;
|
|
962
|
-
protected constructor(anchor: {
|
|
963
|
-
connections?: Array<CWire>;
|
|
964
|
-
dbAnchor: TDBAnchor;
|
|
965
|
-
padding?: number;
|
|
966
|
-
});
|
|
967
|
-
getLocation(): TVector;
|
|
968
|
-
getPadding(): number;
|
|
969
|
-
get schema(): TSchema;
|
|
970
|
-
get schemaRaw(): TSchema;
|
|
971
|
-
get toSchema(): TSchema;
|
|
972
|
-
}
|
|
973
|
-
declare class CBaseNodeAnchor extends CBaseAnchor {
|
|
974
|
-
key: string;
|
|
975
|
-
index: number;
|
|
976
|
-
node: CNode;
|
|
977
|
-
direction: EAnchorDirection;
|
|
978
|
-
value: unknown;
|
|
979
|
-
element?: HTMLElement;
|
|
980
|
-
cache: {
|
|
981
|
-
preview?: unknown;
|
|
982
|
-
relativeLocation?: CVector;
|
|
983
|
-
};
|
|
984
|
-
constructor(anchor: {
|
|
985
|
-
connections?: Array<CWire>;
|
|
986
|
-
dbAnchor: TDBAnchor;
|
|
987
|
-
direction: EAnchorDirection;
|
|
988
|
-
element?: HTMLElement;
|
|
989
|
-
index: number;
|
|
990
|
-
key: string;
|
|
991
|
-
node: CNode;
|
|
992
|
-
padding?: number;
|
|
993
|
-
});
|
|
994
|
-
get schema(): TSchema;
|
|
995
|
-
get toSchema(): TSchema;
|
|
996
|
-
get schemaRaw(): TSchema;
|
|
997
|
-
getLocation(): CVector;
|
|
998
|
-
getRelativeLocation(): CVector;
|
|
999
|
-
resetCache(): void;
|
|
1000
|
-
getPadding(): number;
|
|
1001
|
-
isDisabled(): boolean;
|
|
1002
|
-
errorMessage(): string | undefined;
|
|
1003
|
-
setValue(value: string | number | boolean): void;
|
|
1004
|
-
resetValue(): void;
|
|
1005
|
-
}
|
|
1006
|
-
declare enum EDBOperation {
|
|
1007
|
-
And = "and",
|
|
1008
|
-
Or = "or"
|
|
1009
|
-
}
|
|
1010
|
-
type TDBOperation = {
|
|
1011
|
-
type: EDBOperation;
|
|
1012
|
-
conditions: Array<TDBCondition | TDBOperation>;
|
|
1013
|
-
};
|
|
1014
|
-
declare enum EDBCondition {
|
|
1015
|
-
Equals = "equals",
|
|
1016
|
-
NotEquals = "notEquals",
|
|
1017
|
-
GreaterThan = "greaterThan",
|
|
1018
|
-
LessThan = "lessThan",
|
|
1019
|
-
GreaterThanOrEquals = "greaterThanOrEquals",
|
|
1020
|
-
LessThanOrEquals = "lessThanOrEquals",
|
|
1021
|
-
In = "in",
|
|
1022
|
-
IsNull = "isNull",
|
|
1023
|
-
NotNull = "notNull",
|
|
1024
|
-
Like = "like",
|
|
1025
|
-
ILike = "ilike",
|
|
1026
|
-
Contains = "contains"
|
|
1027
|
-
}
|
|
1028
|
-
type TDBCondition = {
|
|
1029
|
-
operation: EDBCondition;
|
|
1030
|
-
source: Array<string>;
|
|
1031
|
-
} & ({
|
|
1032
|
-
type: "value";
|
|
1033
|
-
target: unknown;
|
|
1034
|
-
} | {
|
|
1035
|
-
type: "column";
|
|
1036
|
-
target: Array<string>;
|
|
1037
|
-
});
|
|
1038
|
-
declare function getPluginSecretEnvName(pluginId: string, name: string): string;
|
|
1039
|
-
export declare enum EPluginHooks {
|
|
1040
|
-
BackendMiddleware = "backend/middleware",
|
|
1041
|
-
BackendInputNode = "backend/input-node",
|
|
1042
|
-
DatabaseScope = "database/scope",
|
|
1043
|
-
DatabaseChange = "database/change"
|
|
1044
|
-
}
|
|
1045
|
-
type THookParams = {
|
|
1046
|
-
[EPluginHooks.DatabaseScope]: {
|
|
1047
|
-
addConditions: (conditions: Array<TDBCondition | TDBOperation>) => void;
|
|
1048
|
-
table: string;
|
|
1049
|
-
};
|
|
1050
|
-
[EPluginHooks.DatabaseChange]: {
|
|
1051
|
-
operation: "insert" | "update" | "delete";
|
|
1052
|
-
rows: Array<Record<string, unknown>>;
|
|
1053
|
-
table: string;
|
|
1054
|
-
};
|
|
1055
|
-
[EPluginHooks.BackendMiddleware]: {
|
|
1056
|
-
cookies: Record<string, {
|
|
1057
|
-
options?: Record<string, unknown>;
|
|
1058
|
-
value: string;
|
|
1059
|
-
}>;
|
|
1060
|
-
setContextVar: (key: string, value: unknown) => void;
|
|
1061
|
-
};
|
|
1062
|
-
[EPluginHooks.BackendInputNode]: {
|
|
1063
|
-
addInput: (key: string, schema: TSchema) => void;
|
|
1064
|
-
};
|
|
1065
|
-
};
|
|
1066
|
-
type TInterface = TInterfaceConfig<Component> & {
|
|
1067
|
-
arguments?: Array<TSchema>;
|
|
1068
|
-
description?: string;
|
|
1069
|
-
methods?: Array<{
|
|
1070
|
-
name: string;
|
|
1071
|
-
parameters?: Array<TSchema>;
|
|
1072
|
-
return: TSchema;
|
|
1073
|
-
}>;
|
|
1074
|
-
};
|
|
1075
|
-
type TInterfaceEditorProps = {
|
|
1076
|
-
anchor?: boolean;
|
|
1077
|
-
modelValue?: TInterfaceConstantValue;
|
|
1078
|
-
placeholder?: string;
|
|
1079
|
-
schema: TSchema;
|
|
1080
|
-
};
|
|
1081
|
-
type TElementPanelAction = {
|
|
1082
|
-
icon: IconDefinition;
|
|
1083
|
-
onClick: (params: {
|
|
1084
|
-
getElements: () => Array<HTMLElement>;
|
|
1085
|
-
schema: TLayoutSchema;
|
|
1086
|
-
}) => void;
|
|
1087
|
-
title: string;
|
|
1088
|
-
};
|
|
1089
|
-
type TElementPanel = {
|
|
1090
|
-
actions?: Array<TElementPanelAction>;
|
|
1091
|
-
component?: Component;
|
|
1092
|
-
directive?: {
|
|
1093
|
-
build: {
|
|
1094
|
-
from: string;
|
|
1095
|
-
name: `v${string}`;
|
|
1096
|
-
};
|
|
1097
|
-
value: Directive;
|
|
1098
|
-
};
|
|
1099
|
-
filter?: (schema: TLayoutSchema) => boolean;
|
|
1100
|
-
icon?: IconDefinition;
|
|
1101
|
-
id: string;
|
|
1102
|
-
label: string;
|
|
1103
|
-
properties?: Record<string, TSchema>;
|
|
1104
|
-
};
|
|
1105
|
-
type TElementPanelProps<TValues = Record<string, unknown>> = {
|
|
1106
|
-
getElements: () => Array<HTMLElement>;
|
|
1107
|
-
modelValue: TValues;
|
|
1108
|
-
schema: TLayoutSchema;
|
|
1109
|
-
};
|
|
1110
|
-
type TPanels = {
|
|
1111
|
-
element?: Array<TElementPanel>;
|
|
1112
|
-
};
|
|
1113
|
-
type TTemplate = {
|
|
1114
|
-
name: string;
|
|
1115
|
-
preview?: string;
|
|
1116
|
-
template: TFileExport;
|
|
1117
|
-
};
|
|
1118
|
-
type TToken = {
|
|
1119
|
-
id: string;
|
|
1120
|
-
name?: string;
|
|
1121
|
-
type: ETokenType;
|
|
1122
|
-
value: string;
|
|
1123
|
-
};
|
|
1124
|
-
export declare enum EInjectionKey {
|
|
1125
|
-
ViteImport = "viteImport",
|
|
1126
|
-
VitePlugin = "vitePlugin",
|
|
1127
|
-
AppImport = "appImport",
|
|
1128
|
-
AppBody = "appBody",
|
|
1129
|
-
AppSetup = "appSetup",
|
|
1130
|
-
Style = "style",
|
|
1131
|
-
ServerImport = "serverImport",
|
|
1132
|
-
ServerBody = "serverBody"
|
|
1133
|
-
}
|
|
1134
|
-
type TBasePlugin<TConfig extends TSchema = TSchema, TInternals = unknown> = {
|
|
1135
|
-
api?: TOption<TEnv<TConfig, TInternals>, unknown>;
|
|
1136
|
-
build?: {
|
|
1137
|
-
backImports?: Array<{
|
|
1138
|
-
name: string;
|
|
1139
|
-
version?: string;
|
|
1140
|
-
}>;
|
|
1141
|
-
env?: Record<string, string>;
|
|
1142
|
-
frontImports?: Array<{
|
|
1143
|
-
name: string;
|
|
1144
|
-
version?: string;
|
|
1145
|
-
}>;
|
|
1146
|
-
injections?: Partial<Record<EInjectionKey, string>>;
|
|
1147
|
-
};
|
|
1148
|
-
color?: string;
|
|
1149
|
-
config?: TConfig;
|
|
1150
|
-
dependencies?: Array<{
|
|
1151
|
-
id: string;
|
|
1152
|
-
name: string;
|
|
1153
|
-
target: string;
|
|
1154
|
-
}>;
|
|
1155
|
-
description?: string;
|
|
1156
|
-
editor?: {
|
|
1157
|
-
components?: Array<TComponent>;
|
|
1158
|
-
guards?: Array<TRouteGuard>;
|
|
1159
|
-
inputs?: Record<string, Component>;
|
|
1160
|
-
interfaces?: Array<TInterface>;
|
|
1161
|
-
nodes?: Array<TLogicNode>;
|
|
1162
|
-
panel?: TPanels;
|
|
1163
|
-
templates?: Array<TTemplate>;
|
|
1164
|
-
tokens?: Array<TToken>;
|
|
1165
|
-
wrapper?: TComponent & {
|
|
1166
|
-
attributes?: Record<string, unknown>;
|
|
1167
|
-
};
|
|
1168
|
-
};
|
|
1169
|
-
guides?: Record<string, TPluginGuide>;
|
|
1170
|
-
hooks?: { [THook in EPluginHooks]?: (params: THookParams[THook]) => MaybePromise<void>; };
|
|
1171
|
-
icon: string;
|
|
1172
|
-
id: string;
|
|
1173
|
-
inject?: {
|
|
1174
|
-
css?: string;
|
|
1175
|
-
js?: string;
|
|
1176
|
-
};
|
|
1177
|
-
interface?: Component;
|
|
1178
|
-
internals?: TInternals;
|
|
1179
|
-
lifecycle?: {
|
|
1180
|
-
mount?: (env: TEnv<TConfig, TInternals>) => Promise<void> | void;
|
|
1181
|
-
unmount?: (env: TEnv<TConfig, TInternals>) => Promise<void> | void;
|
|
1182
|
-
update?: (env: TEnv<TConfig, TInternals>) => Promise<void> | void;
|
|
1183
|
-
};
|
|
1184
|
-
llm?: string;
|
|
1185
|
-
name: string;
|
|
1186
|
-
windows?: Record<string, Component>;
|
|
1187
|
-
workspace?: {
|
|
1188
|
-
openOnClick?: boolean;
|
|
1189
|
-
preview?: Component;
|
|
1190
|
-
sections?: Array<TPluginWorkspaceSection>;
|
|
1191
|
-
};
|
|
1192
|
-
};
|
|
1193
|
-
type TPluginGuide = {
|
|
1194
|
-
content: string;
|
|
1195
|
-
description: string;
|
|
1196
|
-
};
|
|
1197
|
-
type TPluginWorkspaceSection = {
|
|
1198
|
-
component: Component;
|
|
1199
|
-
description?: string;
|
|
1200
|
-
icon: IconDefinition | string;
|
|
1201
|
-
id: string;
|
|
1202
|
-
title: string;
|
|
1203
|
-
};
|
|
1204
|
-
type TPlugin<TConfig extends TSchema = TSchema, TInternal = unknown, TBase extends TBasePlugin<TConfig, TInternal> = TBasePlugin<TConfig, TInternal>> = Omit<TBase, "build" | "editor" | "inject"> & { [TCategory in "build" | "editor" | "inject"]?: { [TKey in keyof NonNullable<TBase[TCategory]>]: TOption<TEnv<TConfig, TInternal>, NonNullable<TBase[TCategory]>[TKey]>; }; };
|
|
1205
|
-
type TProxyPlugin<TConfig extends TSchema = TSchema, TInternal = unknown, TBase extends TBasePlugin<TConfig, TInternal> = TBasePlugin<TConfig, TInternal>> = Omit<TBase, "build" | "editor" | "inject"> & { [TCategory in "build" | "editor" | "inject"]?: { [TKey in keyof NonNullable<TBase[TCategory]>]: Promise<NonNullable<TBase[TCategory]>[TKey]>; }; };
|
|
1206
|
-
type TEnv<TConfig extends TSchema = TSchema, TInternals = unknown> = {
|
|
1207
|
-
addFile: (file: DeepPartial<TFileExport> & {
|
|
1208
|
-
type: EElementType;
|
|
1209
|
-
}, parentId?: string) => TFile;
|
|
1210
|
-
app: TApplication | TApplicationExport;
|
|
1211
|
-
backend: {
|
|
1212
|
-
cookies: Record<string, {
|
|
1213
|
-
options?: Record<string, unknown>;
|
|
1214
|
-
value: string;
|
|
1215
|
-
}>;
|
|
1216
|
-
onCommit: (callback: () => Promise<void> | void) => Promise<void>;
|
|
1217
|
-
onRollback: (callback: () => Promise<void> | void) => void;
|
|
1218
|
-
};
|
|
1219
|
-
config: Static<TConfig>;
|
|
1220
|
-
getFile: (id: string) => TFile | undefined;
|
|
1221
|
-
getPlugin: <TApi = unknown>(id: string) => Promise<TApi | undefined>;
|
|
1222
|
-
host?: THost;
|
|
1223
|
-
internals: TInternals;
|
|
1224
|
-
log: (message: string, severity?: "info" | "warning" | "error") => void;
|
|
1225
|
-
mode: "build" | "editor";
|
|
1226
|
-
secrets?: TSecrets;
|
|
1227
|
-
};
|
|
1228
|
-
type THost = {
|
|
1229
|
-
readonly available: boolean;
|
|
1230
|
-
authorize: (buildUrl: (callback: string) => string, options?: {
|
|
1231
|
-
signal?: AbortSignal;
|
|
1232
|
-
timeout?: number;
|
|
1233
|
-
}) => Promise<URLSearchParams>;
|
|
1234
|
-
fetch: typeof fetch;
|
|
1235
|
-
readFile: (path: string) => Promise<Uint8Array | undefined>;
|
|
1236
|
-
removeFile: (path: string) => Promise<void>;
|
|
1237
|
-
writeFile: (path: string, data: Uint8Array) => Promise<void>;
|
|
1238
|
-
};
|
|
1239
|
-
type TSecrets = {
|
|
1240
|
-
readonly available: boolean;
|
|
1241
|
-
get: (name: string) => Promise<string | undefined>;
|
|
1242
|
-
list: () => Promise<Array<string>>;
|
|
1243
|
-
remove: (name: string) => Promise<void>;
|
|
1244
|
-
set: (name: string, value: string) => Promise<void>;
|
|
1245
|
-
};
|
|
1246
|
-
type TOption<TParams = unknown, TResult = unknown> = TResult | ((env: TParams) => Promise<TResult> | TResult);
|
|
1247
15
|
export declare function makePlugin<TConfig extends TSchema, TInternal>(plugin: TPlugin<TConfig, TInternal>): TPlugin<TConfig, TInternal>;
|
|
1248
16
|
export declare function makeComponent<TProps extends Record<string, TSchema>>(component: TComponent<TProps>): TComponent<TProps>;
|
|
1249
17
|
export declare function loadPlugin<TConfig extends TSchema, TInternal>(plugin: TPlugin<TConfig, TInternal>, env: Partial<TEnv>): Promise<TBasePlugin<TConfig, TInternal>>;
|
|
1250
18
|
export declare function sortPlugins<T extends Pick<TBasePlugin, "dependencies" | "id">>(plugins: Array<T>): Array<T>;
|
|
1251
19
|
export declare function getPluginApi<TApi = unknown>(plugin: Pick<TBasePlugin, "api" | "config" | "id"> | undefined, env: Partial<TEnv>): Promise<TApi | undefined>;
|
|
1252
20
|
export declare function getPluginParam<T>(target: TOption<TEnv, T>, env: Partial<TEnv>): Promise<T>;
|
|
1253
|
-
export { EDBCondition, EDBOperation, EElementType, ELogicScope, ELogicType, ETokenType, EVarType, _default as LSettingsStoryWrapper, LogicType, LogicUtil, type Static, type TAnyLogic, type TAnyLogicExport, type TApplication, type TApplicationExport, type TBasePlugin, type TComponent, type TDBCondition, type TDBOperation, type TElementPanel, type TElementPanelAction, type TElementPanelProps, type TEnv, type TFile, type TFileComponent, type TFileComponentExport, type TFileConfig, type TFileConfigExport, type TFileCron, type TFileCronExport, type TFileDatabase, type TFileDatabaseExport, type TFileExport, type TFileMedia, type TFileMediaExport, type TFileRoute, type TFileRouteExport, type TFileScript, type TFileScriptExport, type TFileStore, type TFileStoreExport, type TFileText, type TFileTextExport, type TFileType, type TFileTypeExport, type TFolder, type TFolderExport, type THookParams, type THost, type TInterface, type TInterfaceEditorProps, type TLayoutSchema, type TLayoutSchemaExport, type TLogic, type TLogicExport, type TLogicMain, type TLogicMainExport, type TLogicNode, type TOption, type TPanels, type TPlugin, type TPluginElement, type TPluginGuide, type TPluginWorkspaceSection, type TProxyPlugin, type TRouteGuard, type TSchema, type TSecrets, type TSlot, type TTemplate, type TToken, getPluginSecretEnvName, makeLogicNode };
|
|
21
|
+
export { EDBCondition, EDBOperation, EElementType, EInjectionKey, ELogicScope, ELogicType, EPluginHooks, ETokenType, EVarType, _default as LSettingsStoryWrapper, LogicType, LogicUtil, type Static, type TAnyLogic, type TAnyLogicExport, type TApplication, type TApplicationExport, type TBasePlugin, type TComponent, type TDBCondition, type TDBOperation, type TElementPanel, type TElementPanelAction, type TElementPanelProps, type TEnv, type TFile, type TFileComponent, type TFileComponentExport, type TFileConfig, type TFileConfigExport, type TFileCron, type TFileCronExport, type TFileDatabase, type TFileDatabaseExport, type TFileExport, type TFileMedia, type TFileMediaExport, type TFileRoute, type TFileRouteExport, type TFileScript, type TFileScriptExport, type TFileStore, type TFileStoreExport, type TFileText, type TFileTextExport, type TFileType, type TFileTypeExport, type TFolder, type TFolderExport, type THookParams, type THost, type TInterface, type TInterfaceEditorProps, type TLayoutSchema, type TLayoutSchemaExport, type TLogic, type TLogicExport, type TLogicMain, type TLogicMainExport, type TLogicNode, type TOption, type TPanels, type TPlugin, type TPluginElement, type TPluginGuide, type TPluginWorkspaceSection, type TProxyPlugin, type TRouteGuard, type TSchema, type TSecrets, type TSlot, type TTemplate, type TToken, getPluginSecretEnvName, makeLogicNode };
|