@rokkit/core 1.0.0-next.125 → 1.0.0-next.128
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/colors/index.d.ts +6 -366
- package/dist/constants.d.ts +44 -9
- package/dist/index.d.ts +1 -1
- package/dist/mapping.d.ts +0 -61
- package/dist/nested.d.ts +0 -9
- package/dist/theme.d.ts +55 -796
- package/dist/utils.d.ts +25 -1
- package/dist/vite/icon-collections.d.ts +32 -0
- package/dist/vite/index.d.ts +1 -0
- package/package.json +10 -2
- package/src/constants.js +75 -16
- package/src/field-mapper.js +3 -3
- package/src/index.js +1 -1
- package/src/key-event-map.js +1 -1
- package/src/mapping.js +2 -115
- package/src/nested.js +3 -31
- package/src/utils.js +64 -14
- package/src/vite/icon-collections.js +73 -0
- package/src/vite/index.js +1 -0
- package/src/colors/index.js +0 -22
- package/src/theme.js +0 -174
package/dist/colors/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export const
|
|
1
|
+
import type { PresetMiniColors } from '@unocss/preset-mini/colors';
|
|
2
|
+
import extraColors from './extra.json';
|
|
3
|
+
export declare const shades: number[];
|
|
4
|
+
export declare const defaultPalette: string[];
|
|
5
|
+
export declare const syntaxColors: {
|
|
4
6
|
"one-dark": {
|
|
5
7
|
dark: {
|
|
6
8
|
"--tab-size": string;
|
|
@@ -42,366 +44,4 @@ export const syntaxColors: {
|
|
|
42
44
|
};
|
|
43
45
|
};
|
|
44
46
|
};
|
|
45
|
-
export const defaultColors:
|
|
46
|
-
shark: {
|
|
47
|
-
DEFAULT: string;
|
|
48
|
-
"50": string;
|
|
49
|
-
"100": string;
|
|
50
|
-
"200": string;
|
|
51
|
-
"300": string;
|
|
52
|
-
"400": string;
|
|
53
|
-
"500": string;
|
|
54
|
-
"600": string;
|
|
55
|
-
"700": string;
|
|
56
|
-
"800": string;
|
|
57
|
-
"900": string;
|
|
58
|
-
"950": string;
|
|
59
|
-
};
|
|
60
|
-
inherit: string;
|
|
61
|
-
current: string;
|
|
62
|
-
transparent: string;
|
|
63
|
-
black: string;
|
|
64
|
-
white: string;
|
|
65
|
-
rose: {
|
|
66
|
-
50: string;
|
|
67
|
-
100: string;
|
|
68
|
-
200: string;
|
|
69
|
-
300: string;
|
|
70
|
-
400: string;
|
|
71
|
-
500: string;
|
|
72
|
-
600: string;
|
|
73
|
-
700: string;
|
|
74
|
-
800: string;
|
|
75
|
-
900: string;
|
|
76
|
-
950: string;
|
|
77
|
-
};
|
|
78
|
-
pink: {
|
|
79
|
-
50: string;
|
|
80
|
-
100: string;
|
|
81
|
-
200: string;
|
|
82
|
-
300: string;
|
|
83
|
-
400: string;
|
|
84
|
-
500: string;
|
|
85
|
-
600: string;
|
|
86
|
-
700: string;
|
|
87
|
-
800: string;
|
|
88
|
-
900: string;
|
|
89
|
-
950: string;
|
|
90
|
-
};
|
|
91
|
-
fuchsia: {
|
|
92
|
-
50: string;
|
|
93
|
-
100: string;
|
|
94
|
-
200: string;
|
|
95
|
-
300: string;
|
|
96
|
-
400: string;
|
|
97
|
-
500: string;
|
|
98
|
-
600: string;
|
|
99
|
-
700: string;
|
|
100
|
-
800: string;
|
|
101
|
-
900: string;
|
|
102
|
-
950: string;
|
|
103
|
-
};
|
|
104
|
-
purple: {
|
|
105
|
-
50: string;
|
|
106
|
-
100: string;
|
|
107
|
-
200: string;
|
|
108
|
-
300: string;
|
|
109
|
-
400: string;
|
|
110
|
-
500: string;
|
|
111
|
-
600: string;
|
|
112
|
-
700: string;
|
|
113
|
-
800: string;
|
|
114
|
-
900: string;
|
|
115
|
-
950: string;
|
|
116
|
-
};
|
|
117
|
-
violet: {
|
|
118
|
-
50: string;
|
|
119
|
-
100: string;
|
|
120
|
-
200: string;
|
|
121
|
-
300: string;
|
|
122
|
-
400: string;
|
|
123
|
-
500: string;
|
|
124
|
-
600: string;
|
|
125
|
-
700: string;
|
|
126
|
-
800: string;
|
|
127
|
-
900: string;
|
|
128
|
-
950: string;
|
|
129
|
-
};
|
|
130
|
-
indigo: {
|
|
131
|
-
50: string;
|
|
132
|
-
100: string;
|
|
133
|
-
200: string;
|
|
134
|
-
300: string;
|
|
135
|
-
400: string;
|
|
136
|
-
500: string;
|
|
137
|
-
600: string;
|
|
138
|
-
700: string;
|
|
139
|
-
800: string;
|
|
140
|
-
900: string;
|
|
141
|
-
950: string;
|
|
142
|
-
};
|
|
143
|
-
blue: {
|
|
144
|
-
50: string;
|
|
145
|
-
100: string;
|
|
146
|
-
200: string;
|
|
147
|
-
300: string;
|
|
148
|
-
400: string;
|
|
149
|
-
500: string;
|
|
150
|
-
600: string;
|
|
151
|
-
700: string;
|
|
152
|
-
800: string;
|
|
153
|
-
900: string;
|
|
154
|
-
950: string;
|
|
155
|
-
};
|
|
156
|
-
sky: {
|
|
157
|
-
50: string;
|
|
158
|
-
100: string;
|
|
159
|
-
200: string;
|
|
160
|
-
300: string;
|
|
161
|
-
400: string;
|
|
162
|
-
500: string;
|
|
163
|
-
600: string;
|
|
164
|
-
700: string;
|
|
165
|
-
800: string;
|
|
166
|
-
900: string;
|
|
167
|
-
950: string;
|
|
168
|
-
};
|
|
169
|
-
cyan: {
|
|
170
|
-
50: string;
|
|
171
|
-
100: string;
|
|
172
|
-
200: string;
|
|
173
|
-
300: string;
|
|
174
|
-
400: string;
|
|
175
|
-
500: string;
|
|
176
|
-
600: string;
|
|
177
|
-
700: string;
|
|
178
|
-
800: string;
|
|
179
|
-
900: string;
|
|
180
|
-
950: string;
|
|
181
|
-
};
|
|
182
|
-
teal: {
|
|
183
|
-
50: string;
|
|
184
|
-
100: string;
|
|
185
|
-
200: string;
|
|
186
|
-
300: string;
|
|
187
|
-
400: string;
|
|
188
|
-
500: string;
|
|
189
|
-
600: string;
|
|
190
|
-
700: string;
|
|
191
|
-
800: string;
|
|
192
|
-
900: string;
|
|
193
|
-
950: string;
|
|
194
|
-
};
|
|
195
|
-
emerald: {
|
|
196
|
-
50: string;
|
|
197
|
-
100: string;
|
|
198
|
-
200: string;
|
|
199
|
-
300: string;
|
|
200
|
-
400: string;
|
|
201
|
-
500: string;
|
|
202
|
-
600: string;
|
|
203
|
-
700: string;
|
|
204
|
-
800: string;
|
|
205
|
-
900: string;
|
|
206
|
-
950: string;
|
|
207
|
-
};
|
|
208
|
-
green: {
|
|
209
|
-
50: string;
|
|
210
|
-
100: string;
|
|
211
|
-
200: string;
|
|
212
|
-
300: string;
|
|
213
|
-
400: string;
|
|
214
|
-
500: string;
|
|
215
|
-
600: string;
|
|
216
|
-
700: string;
|
|
217
|
-
800: string;
|
|
218
|
-
900: string;
|
|
219
|
-
950: string;
|
|
220
|
-
};
|
|
221
|
-
lime: {
|
|
222
|
-
50: string;
|
|
223
|
-
100: string;
|
|
224
|
-
200: string;
|
|
225
|
-
300: string;
|
|
226
|
-
400: string;
|
|
227
|
-
500: string;
|
|
228
|
-
600: string;
|
|
229
|
-
700: string;
|
|
230
|
-
800: string;
|
|
231
|
-
900: string;
|
|
232
|
-
950: string;
|
|
233
|
-
};
|
|
234
|
-
yellow: {
|
|
235
|
-
50: string;
|
|
236
|
-
100: string;
|
|
237
|
-
200: string;
|
|
238
|
-
300: string;
|
|
239
|
-
400: string;
|
|
240
|
-
500: string;
|
|
241
|
-
600: string;
|
|
242
|
-
700: string;
|
|
243
|
-
800: string;
|
|
244
|
-
900: string;
|
|
245
|
-
950: string;
|
|
246
|
-
};
|
|
247
|
-
amber: {
|
|
248
|
-
50: string;
|
|
249
|
-
100: string;
|
|
250
|
-
200: string;
|
|
251
|
-
300: string;
|
|
252
|
-
400: string;
|
|
253
|
-
500: string;
|
|
254
|
-
600: string;
|
|
255
|
-
700: string;
|
|
256
|
-
800: string;
|
|
257
|
-
900: string;
|
|
258
|
-
950: string;
|
|
259
|
-
};
|
|
260
|
-
orange: {
|
|
261
|
-
50: string;
|
|
262
|
-
100: string;
|
|
263
|
-
200: string;
|
|
264
|
-
300: string;
|
|
265
|
-
400: string;
|
|
266
|
-
500: string;
|
|
267
|
-
600: string;
|
|
268
|
-
700: string;
|
|
269
|
-
800: string;
|
|
270
|
-
900: string;
|
|
271
|
-
950: string;
|
|
272
|
-
};
|
|
273
|
-
red: {
|
|
274
|
-
50: string;
|
|
275
|
-
100: string;
|
|
276
|
-
200: string;
|
|
277
|
-
300: string;
|
|
278
|
-
400: string;
|
|
279
|
-
500: string;
|
|
280
|
-
600: string;
|
|
281
|
-
700: string;
|
|
282
|
-
800: string;
|
|
283
|
-
900: string;
|
|
284
|
-
950: string;
|
|
285
|
-
};
|
|
286
|
-
gray: {
|
|
287
|
-
50: string;
|
|
288
|
-
100: string;
|
|
289
|
-
200: string;
|
|
290
|
-
300: string;
|
|
291
|
-
400: string;
|
|
292
|
-
500: string;
|
|
293
|
-
600: string;
|
|
294
|
-
700: string;
|
|
295
|
-
800: string;
|
|
296
|
-
900: string;
|
|
297
|
-
950: string;
|
|
298
|
-
};
|
|
299
|
-
slate: {
|
|
300
|
-
50: string;
|
|
301
|
-
100: string;
|
|
302
|
-
200: string;
|
|
303
|
-
300: string;
|
|
304
|
-
400: string;
|
|
305
|
-
500: string;
|
|
306
|
-
600: string;
|
|
307
|
-
700: string;
|
|
308
|
-
800: string;
|
|
309
|
-
900: string;
|
|
310
|
-
950: string;
|
|
311
|
-
};
|
|
312
|
-
zinc: {
|
|
313
|
-
50: string;
|
|
314
|
-
100: string;
|
|
315
|
-
200: string;
|
|
316
|
-
300: string;
|
|
317
|
-
400: string;
|
|
318
|
-
500: string;
|
|
319
|
-
600: string;
|
|
320
|
-
700: string;
|
|
321
|
-
800: string;
|
|
322
|
-
900: string;
|
|
323
|
-
950: string;
|
|
324
|
-
};
|
|
325
|
-
neutral: {
|
|
326
|
-
50: string;
|
|
327
|
-
100: string;
|
|
328
|
-
200: string;
|
|
329
|
-
300: string;
|
|
330
|
-
400: string;
|
|
331
|
-
500: string;
|
|
332
|
-
600: string;
|
|
333
|
-
700: string;
|
|
334
|
-
800: string;
|
|
335
|
-
900: string;
|
|
336
|
-
950: string;
|
|
337
|
-
};
|
|
338
|
-
stone: {
|
|
339
|
-
50: string;
|
|
340
|
-
100: string;
|
|
341
|
-
200: string;
|
|
342
|
-
300: string;
|
|
343
|
-
400: string;
|
|
344
|
-
500: string;
|
|
345
|
-
600: string;
|
|
346
|
-
700: string;
|
|
347
|
-
800: string;
|
|
348
|
-
900: string;
|
|
349
|
-
950: string;
|
|
350
|
-
};
|
|
351
|
-
light: {
|
|
352
|
-
50: string;
|
|
353
|
-
100: string;
|
|
354
|
-
200: string;
|
|
355
|
-
300: string;
|
|
356
|
-
400: string;
|
|
357
|
-
500: string;
|
|
358
|
-
600: string;
|
|
359
|
-
700: string;
|
|
360
|
-
800: string;
|
|
361
|
-
900: string;
|
|
362
|
-
950: string;
|
|
363
|
-
};
|
|
364
|
-
dark: {
|
|
365
|
-
50: string;
|
|
366
|
-
100: string;
|
|
367
|
-
200: string;
|
|
368
|
-
300: string;
|
|
369
|
-
400: string;
|
|
370
|
-
500: string;
|
|
371
|
-
600: string;
|
|
372
|
-
700: string;
|
|
373
|
-
800: string;
|
|
374
|
-
900: string;
|
|
375
|
-
950: string;
|
|
376
|
-
};
|
|
377
|
-
lightblue: string | (import("@unocss/preset-mini/dist/shared/preset-mini.BjJC-NnU.mjs").C & {
|
|
378
|
-
DEFAULT?: string;
|
|
379
|
-
});
|
|
380
|
-
lightBlue: string | (import("@unocss/preset-mini/dist/shared/preset-mini.BjJC-NnU.mjs").C & {
|
|
381
|
-
DEFAULT?: string;
|
|
382
|
-
});
|
|
383
|
-
warmgray: string | (import("@unocss/preset-mini/dist/shared/preset-mini.BjJC-NnU.mjs").C & {
|
|
384
|
-
DEFAULT?: string;
|
|
385
|
-
});
|
|
386
|
-
warmGray: string | (import("@unocss/preset-mini/dist/shared/preset-mini.BjJC-NnU.mjs").C & {
|
|
387
|
-
DEFAULT?: string;
|
|
388
|
-
});
|
|
389
|
-
truegray: string | (import("@unocss/preset-mini/dist/shared/preset-mini.BjJC-NnU.mjs").C & {
|
|
390
|
-
DEFAULT?: string;
|
|
391
|
-
});
|
|
392
|
-
trueGray: string | (import("@unocss/preset-mini/dist/shared/preset-mini.BjJC-NnU.mjs").C & {
|
|
393
|
-
DEFAULT?: string;
|
|
394
|
-
});
|
|
395
|
-
coolgray: string | (import("@unocss/preset-mini/dist/shared/preset-mini.BjJC-NnU.mjs").C & {
|
|
396
|
-
DEFAULT?: string;
|
|
397
|
-
});
|
|
398
|
-
coolGray: string | (import("@unocss/preset-mini/dist/shared/preset-mini.BjJC-NnU.mjs").C & {
|
|
399
|
-
DEFAULT?: string;
|
|
400
|
-
});
|
|
401
|
-
bluegray: string | (import("@unocss/preset-mini/dist/shared/preset-mini.BjJC-NnU.mjs").C & {
|
|
402
|
-
DEFAULT?: string;
|
|
403
|
-
});
|
|
404
|
-
blueGray: string | (import("@unocss/preset-mini/dist/shared/preset-mini.BjJC-NnU.mjs").C & {
|
|
405
|
-
DEFAULT?: string;
|
|
406
|
-
});
|
|
407
|
-
};
|
|
47
|
+
export declare const defaultColors: PresetMiniColors & typeof extraColors;
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remap legacy field-override keys to their BASE_FIELDS semantic equivalents.
|
|
3
|
+
* e.g. { text: 'name' } → { label: 'name' }
|
|
4
|
+
*
|
|
5
|
+
* @param {Record<string, string> | null | undefined} fields
|
|
6
|
+
* @returns {Record<string, string>}
|
|
7
|
+
*/
|
|
8
|
+
export function normalizeFields(fields: Record<string, string> | null | undefined): Record<string, string>;
|
|
1
9
|
/**
|
|
2
10
|
* Generate a state icon mapping from a list of icon names
|
|
3
11
|
*
|
|
@@ -6,18 +14,45 @@
|
|
|
6
14
|
*/
|
|
7
15
|
export function stateIconsFromNames(icons: string[]): import("./types").StateIcons;
|
|
8
16
|
export const DATA_IMAGE_REGEX: RegExp;
|
|
17
|
+
export const ITEM_SNIPPET: "itemContent";
|
|
18
|
+
export const GROUP_SNIPPET: "groupContent";
|
|
9
19
|
/**
|
|
20
|
+
* @deprecated Use BASE_FIELDS from @rokkit/core instead.
|
|
21
|
+
* Retained for legacy ListController/FieldMapper/Proxy consumers (Toolbar, Table).
|
|
22
|
+
* Will be removed when those components migrate to Wrapper+Navigator.
|
|
10
23
|
* @type {import('./types).FieldMapping} Fields
|
|
11
24
|
*/
|
|
12
|
-
export const
|
|
13
|
-
export
|
|
14
|
-
export namespace defaultOptions {
|
|
25
|
+
export const DEFAULT_FIELDS: any;
|
|
26
|
+
export namespace BASE_FIELDS {
|
|
15
27
|
let id: string;
|
|
16
|
-
let label: string;
|
|
17
28
|
let value: string;
|
|
18
|
-
let
|
|
29
|
+
let label: string;
|
|
30
|
+
let icon: string;
|
|
31
|
+
let avatar: string;
|
|
32
|
+
let subtext: string;
|
|
33
|
+
let tooltip: string;
|
|
34
|
+
let badge: string;
|
|
35
|
+
let shortcut: string;
|
|
36
|
+
let children: string;
|
|
37
|
+
let type: string;
|
|
38
|
+
let snippet: string;
|
|
39
|
+
let href: string;
|
|
40
|
+
let hrefTarget: string;
|
|
41
|
+
let disabled: string;
|
|
42
|
+
let expanded: string;
|
|
43
|
+
let selected: string;
|
|
44
|
+
}
|
|
45
|
+
export const DEFAULT_ICONS: string[];
|
|
46
|
+
export namespace DEFAULT_OPTIONS {
|
|
47
|
+
let id_1: string;
|
|
48
|
+
export { id_1 as id };
|
|
49
|
+
let label_1: string;
|
|
50
|
+
export { label_1 as label };
|
|
51
|
+
let value_1: string;
|
|
52
|
+
export { value_1 as value };
|
|
53
|
+
export let checked: string;
|
|
19
54
|
}
|
|
20
|
-
export namespace
|
|
55
|
+
export namespace DEFAULT_KEYMAP {
|
|
21
56
|
let ArrowRight: string;
|
|
22
57
|
let ArrowLeft: string;
|
|
23
58
|
let ArrowDown: string;
|
|
@@ -25,7 +60,7 @@ export namespace defaultKeyMap {
|
|
|
25
60
|
let Enter: string;
|
|
26
61
|
let Escape: string;
|
|
27
62
|
}
|
|
28
|
-
export namespace
|
|
63
|
+
export namespace DEFAULT_THEME_MAPPING {
|
|
29
64
|
let surface: string;
|
|
30
65
|
let primary: string;
|
|
31
66
|
let secondary: string;
|
|
@@ -49,5 +84,5 @@ export namespace TONE_MAP {
|
|
|
49
84
|
let z9: number;
|
|
50
85
|
let z10: number;
|
|
51
86
|
}
|
|
52
|
-
export const
|
|
53
|
-
export { defaultColors, syntaxColors, shades, defaultPalette } from "./colors/index
|
|
87
|
+
export const DEFAULT_STATE_ICONS: any;
|
|
88
|
+
export { defaultColors, syntaxColors, shades, defaultPalette } from "./colors/index";
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ export { FieldMapper } from "./field-mapper.js";
|
|
|
8
8
|
export { createEmitter } from "./events.js";
|
|
9
9
|
export { getLineTypes } from "./connector.js";
|
|
10
10
|
export { generateTicks } from "./ticks.js";
|
|
11
|
+
export { getNestedFields } from "./mapping.js";
|
|
11
12
|
export { getItemAtIndex, getIndexForItem } from "./mapped-items.js";
|
|
12
13
|
export { weekdays, getCalendarDays } from "./calendar.js";
|
|
13
|
-
export { getValue, getNestedFields, hasChildren, isExpanded } from "./mapping.js";
|
package/dist/mapping.d.ts
CHANGED
|
@@ -1,38 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get the component to be used to render the item.
|
|
3
|
-
* If the component is null or undefined, it will return the default component.
|
|
4
|
-
*
|
|
5
|
-
* @param {object|string} value
|
|
6
|
-
* @param {import('./types.js').FieldMapping} fields
|
|
7
|
-
* @param {import('./types.js').ComponentMap} using
|
|
8
|
-
*/
|
|
9
|
-
export function getComponent(value: object | string, fields: import("./types.js").FieldMapping, using: import("./types.js").ComponentMap): import("svelte").SvelteComponent<Record<string, any>, any, any>;
|
|
10
|
-
/**
|
|
11
|
-
* Get the icon for the item. If the icon is an object, it will use the state to determine which icon to use.
|
|
12
|
-
*
|
|
13
|
-
* @param {object|string} value
|
|
14
|
-
* @param {import('./types.js').FieldMapping} fields
|
|
15
|
-
* @returns {string}
|
|
16
|
-
*/
|
|
17
|
-
export function getIcon(value: object | string, fields?: import("./types.js").FieldMapping): string;
|
|
18
|
-
/**
|
|
19
|
-
* Get the value for the item. If the value is an object,
|
|
20
|
-
* it will use the field mapping to determine which attribute to get.
|
|
21
|
-
*
|
|
22
|
-
* @param {*} node
|
|
23
|
-
* @param {import('./types').FieldMapping} fields
|
|
24
|
-
* @returns {*}
|
|
25
|
-
*/
|
|
26
|
-
export function getValue(node: any, fields?: import("./types").FieldMapping): any;
|
|
27
|
-
/**
|
|
28
|
-
* Get the text for the item. If the text is an object,
|
|
29
|
-
* it will use the field mapping to determine which attribute to get.
|
|
30
|
-
*
|
|
31
|
-
* @param {*} node
|
|
32
|
-
* @param {import('./types').FieldMapping} fields
|
|
33
|
-
* @returns {string}
|
|
34
|
-
*/
|
|
35
|
-
export function getText(node: any, fields?: import("./types").FieldMapping): string;
|
|
36
1
|
/**
|
|
37
2
|
* Gets the attribute from the node
|
|
38
3
|
* @param {*} node
|
|
@@ -40,32 +5,6 @@ export function getText(node: any, fields?: import("./types").FieldMapping): str
|
|
|
40
5
|
* @returns {*}
|
|
41
6
|
*/
|
|
42
7
|
export function getAttribute(node: any, attr: string): any;
|
|
43
|
-
/**
|
|
44
|
-
* Get the formatted text for the item. If the text is an object, use the field mapping to determine
|
|
45
|
-
* which attribute to get currency. Use the formatter or identity function to format the text.
|
|
46
|
-
*
|
|
47
|
-
* @param {*} node
|
|
48
|
-
* @param {import('./types').FieldMapping} fields
|
|
49
|
-
* @param {Function} formatter
|
|
50
|
-
* @returns {Function}
|
|
51
|
-
*/
|
|
52
|
-
export function getFormattedText(node: any, fields?: import("./types").FieldMapping, formatter?: Function): Function;
|
|
53
|
-
/**
|
|
54
|
-
* Check if the current item is a parent
|
|
55
|
-
*
|
|
56
|
-
* @param {*} item
|
|
57
|
-
* @param {import('./types').FieldMapping} fields
|
|
58
|
-
* @returns {boolean}
|
|
59
|
-
*/
|
|
60
|
-
export function hasChildren(item: any, fields: import("./types").FieldMapping): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Check if the current item is a parent and is expanded
|
|
63
|
-
*
|
|
64
|
-
* @param {*} item
|
|
65
|
-
* @param {import('./types').FieldMapping} fields
|
|
66
|
-
* @returns {boolean}
|
|
67
|
-
*/
|
|
68
|
-
export function isExpanded(item: any, fields: import("./types").FieldMapping): boolean;
|
|
69
8
|
/**
|
|
70
9
|
* Fetches the fieldmapping for a child node
|
|
71
10
|
*
|
package/dist/nested.d.ts
CHANGED
|
@@ -7,12 +7,3 @@
|
|
|
7
7
|
* @returns {Array}
|
|
8
8
|
*/
|
|
9
9
|
export function flattenNestedList(items: any[], fields?: any, level?: number): any[];
|
|
10
|
-
/**
|
|
11
|
-
* Matches a path slug to a value in the menu
|
|
12
|
-
*
|
|
13
|
-
* @param {string} slug
|
|
14
|
-
* @param {Array} data
|
|
15
|
-
* @param {import('./types').FieldMapping} fields
|
|
16
|
-
* @returns {any}
|
|
17
|
-
*/
|
|
18
|
-
export function findValueFromPath(slug: string, data: any[], fields: import("./types").FieldMapping): any;
|