@base-framework/organisms 1.0.18 → 1.0.19
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.
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
export function Doctype(props: object): object;
|
|
2
|
+
/**
|
|
3
|
+
* Creates an HTML tag.
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props - Properties for the HTML element.
|
|
6
|
+
* @param {array} children - Children elements of the HTML element.
|
|
7
|
+
* @return {object} - Returns an object representing the HTML element.
|
|
8
|
+
*/
|
|
9
|
+
export const Html: Function;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a script tag.
|
|
12
|
+
*
|
|
13
|
+
* @param {object} props - Properties for the HTML element.
|
|
14
|
+
* @param {array} children - Children elements of the HTML element.
|
|
15
|
+
* @return {object} - Returns an object representing the HTML element.
|
|
16
|
+
*/
|
|
17
|
+
export const Script: Function;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a style tag.
|
|
20
|
+
*
|
|
21
|
+
* @param {object} props - Properties for the HTML element.
|
|
22
|
+
* @param {array} children - Children elements of the HTML element.
|
|
23
|
+
* @return {object} - Returns an object representing the HTML element.
|
|
24
|
+
*/
|
|
25
|
+
export const Style: Function;
|
|
26
|
+
/**
|
|
27
|
+
* Creates a head tag.
|
|
28
|
+
*
|
|
29
|
+
* @param {object} props - Properties for the head element.
|
|
30
|
+
* @param {array} children - Children elements of the head.
|
|
31
|
+
* @return {object} - Returns an object representing the head element.
|
|
32
|
+
*/
|
|
33
|
+
export const Head: Function;
|
|
34
|
+
export function Title(props: object): any;
|
|
35
|
+
export function Meta(props: object): object;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a body tag.
|
|
38
|
+
*
|
|
39
|
+
* @param {object} props - Properties for the body element.
|
|
40
|
+
* @param {array} children - Children elements of the body.
|
|
41
|
+
* @return {object} - Returns an object representing the body element.
|
|
42
|
+
*/
|
|
43
|
+
export const Body: Function;
|
|
44
|
+
/**
|
|
45
|
+
* Creates a div element.
|
|
46
|
+
*
|
|
47
|
+
* @param {object} props - Properties for the div element.
|
|
48
|
+
* @param {array} children - Children elements of the div.
|
|
49
|
+
* @return {object} - Returns an object representing the div element.
|
|
50
|
+
*/
|
|
51
|
+
export const Div: Function;
|
|
52
|
+
/**
|
|
53
|
+
* Creates a dialog element.
|
|
54
|
+
*
|
|
55
|
+
* @param {object} props - Properties for the div element.
|
|
56
|
+
* @param {array} children - Children elements of the div.
|
|
57
|
+
* @return {object} - Returns an object representing the dialog element.
|
|
58
|
+
*/
|
|
59
|
+
export const Dialog: Function;
|
|
60
|
+
/**
|
|
61
|
+
* Creates a span element.
|
|
62
|
+
*
|
|
63
|
+
* @param {object} props - Properties for the span element.
|
|
64
|
+
* @param {array} children - Children elements of the span.
|
|
65
|
+
* @return {object} - Returns an object representing the span element.
|
|
66
|
+
*/
|
|
67
|
+
export const Span: Function;
|
|
68
|
+
/**
|
|
69
|
+
* Creates a paragraph (p) element.
|
|
70
|
+
*
|
|
71
|
+
* @param {object} props - Properties for the paragraph element.
|
|
72
|
+
* @param {array} children - Children elements of the paragraph.
|
|
73
|
+
* @return {object} - Returns an object representing the paragraph element.
|
|
74
|
+
*/
|
|
75
|
+
export const P: Function;
|
|
76
|
+
/**
|
|
77
|
+
* Creates an anchor (a) element.
|
|
78
|
+
*
|
|
79
|
+
* @param {object} props - Properties for the anchor element.
|
|
80
|
+
* @param {array} children - Children elements of the anchor.
|
|
81
|
+
* @return {object} - Returns an object representing the anchor element.
|
|
82
|
+
*/
|
|
83
|
+
export const A: Function;
|
|
84
|
+
/**
|
|
85
|
+
* Creates a button element.
|
|
86
|
+
*/
|
|
87
|
+
export const Button: Function;
|
|
88
|
+
/**
|
|
89
|
+
* Creates a submit button element.
|
|
90
|
+
*/
|
|
91
|
+
export const SubmitButton: Function;
|
|
92
|
+
/**
|
|
93
|
+
* Creates an unordered list (ul) element.
|
|
94
|
+
*/
|
|
95
|
+
export const Ul: Function;
|
|
96
|
+
/**
|
|
97
|
+
* Creates a list item (li) element.
|
|
98
|
+
*/
|
|
99
|
+
export const Li: Function;
|
|
100
|
+
/**
|
|
101
|
+
* Creates an image (img) element.
|
|
102
|
+
*/
|
|
103
|
+
export const Img: Function;
|
|
104
|
+
/**
|
|
105
|
+
* Create a br element.
|
|
106
|
+
*
|
|
107
|
+
* @param {object} props - Properties for the br element.
|
|
108
|
+
* @return {object} - Returns an object representing the br element.
|
|
109
|
+
*/
|
|
110
|
+
export const Br: Function;
|
|
111
|
+
/**
|
|
112
|
+
* Creates a horizontal rule (hr) element.
|
|
113
|
+
*/
|
|
114
|
+
export const Hr: Function;
|
|
115
|
+
/**
|
|
116
|
+
* Creates a text (text) element.
|
|
117
|
+
*/
|
|
118
|
+
export const Text: Function;
|
|
119
|
+
/**
|
|
120
|
+
* Creates a header 1 (h1) element.
|
|
121
|
+
*/
|
|
122
|
+
export const H1: Function;
|
|
123
|
+
/**
|
|
124
|
+
* Creates a header 2 (h2) element.
|
|
125
|
+
*/
|
|
126
|
+
export const H2: Function;
|
|
127
|
+
/**
|
|
128
|
+
* Creates a header 3 (h3) element.
|
|
129
|
+
*/
|
|
130
|
+
export const H3: Function;
|
|
131
|
+
/**
|
|
132
|
+
* Creates a header 4 (h4) element.
|
|
133
|
+
*/
|
|
134
|
+
export const H4: Function;
|
|
135
|
+
/**
|
|
136
|
+
* Creates a header 5 (h5) element.
|
|
137
|
+
*/
|
|
138
|
+
export const H5: Function;
|
|
139
|
+
/**
|
|
140
|
+
* Creates a header 6 (h6) element.
|
|
141
|
+
*/
|
|
142
|
+
export const H6: Function;
|
|
143
|
+
/**
|
|
144
|
+
* Creates an input element.
|
|
145
|
+
*/
|
|
146
|
+
export const Input: Function;
|
|
147
|
+
/**
|
|
148
|
+
* Creates a label element.
|
|
149
|
+
*/
|
|
150
|
+
export const Label: Function;
|
|
151
|
+
/**
|
|
152
|
+
* Creates a checkbox input element.
|
|
153
|
+
*
|
|
154
|
+
* @param {object} props - Properties for the checkbox input element.
|
|
155
|
+
* @return {object} - Returns an object representing the checkbox input element.
|
|
156
|
+
*/
|
|
157
|
+
export const Checkbox: Function;
|
|
158
|
+
/**
|
|
159
|
+
* Creates a section element.
|
|
160
|
+
*/
|
|
161
|
+
export const Section: Function;
|
|
162
|
+
/**
|
|
163
|
+
* Creates an article element.
|
|
164
|
+
*/
|
|
165
|
+
export const Article: Function;
|
|
166
|
+
/**
|
|
167
|
+
* Creates a header (header) element.
|
|
168
|
+
*/
|
|
169
|
+
export const Header: Function;
|
|
170
|
+
/**
|
|
171
|
+
* Creates a footer element.
|
|
172
|
+
*/
|
|
173
|
+
export const Footer: Function;
|
|
174
|
+
/**
|
|
175
|
+
* Creates a nav element.
|
|
176
|
+
*/
|
|
177
|
+
export const Nav: Function;
|
|
178
|
+
/**
|
|
179
|
+
* Creates an aside element.
|
|
180
|
+
*/
|
|
181
|
+
export const Aside: Function;
|
|
182
|
+
/**
|
|
183
|
+
* Creates a figure element.
|
|
184
|
+
*/
|
|
185
|
+
export const Figure: Function;
|
|
186
|
+
/**
|
|
187
|
+
* Creates a figcaption element.
|
|
188
|
+
*/
|
|
189
|
+
export const Figcaption: Function;
|
|
190
|
+
/**
|
|
191
|
+
* Creates a main element.
|
|
192
|
+
*/
|
|
193
|
+
export const Main: Function;
|
|
194
|
+
/**
|
|
195
|
+
* Creates a video element.
|
|
196
|
+
*/
|
|
197
|
+
export const Video: Function;
|
|
198
|
+
/**
|
|
199
|
+
* Creates an audio element.
|
|
200
|
+
*/
|
|
201
|
+
export const Audio: Function;
|
|
202
|
+
/**
|
|
203
|
+
* Creates a table element.
|
|
204
|
+
*/
|
|
205
|
+
export const Table: Function;
|
|
206
|
+
/**
|
|
207
|
+
* Creates a table row (tr) element.
|
|
208
|
+
*/
|
|
209
|
+
export const Tr: Function;
|
|
210
|
+
/**
|
|
211
|
+
* Creates a table header (th) element.
|
|
212
|
+
*/
|
|
213
|
+
export const Th: Function;
|
|
214
|
+
/**
|
|
215
|
+
* Creates a table data (td) element.
|
|
216
|
+
*/
|
|
217
|
+
export const Td: Function;
|
|
218
|
+
/**
|
|
219
|
+
* Creates a table header group (thead) element.
|
|
220
|
+
*/
|
|
221
|
+
export const Thead: Function;
|
|
222
|
+
/**
|
|
223
|
+
* Creates a table body (tbody) element.
|
|
224
|
+
*/
|
|
225
|
+
export const Tbody: Function;
|
|
226
|
+
/**
|
|
227
|
+
* Creates a table footer (tfoot) element.
|
|
228
|
+
*/
|
|
229
|
+
export const Tfoot: Function;
|
|
230
|
+
/**
|
|
231
|
+
* Creates a form element.
|
|
232
|
+
*/
|
|
233
|
+
export const Form: Function;
|
|
234
|
+
/**
|
|
235
|
+
* Creates a select element.
|
|
236
|
+
*/
|
|
237
|
+
export const Select: Function;
|
|
238
|
+
/**
|
|
239
|
+
* Creates an option element for a select tag.
|
|
240
|
+
*/
|
|
241
|
+
export const Option: Function;
|
|
242
|
+
/**
|
|
243
|
+
* Creates a textarea element.
|
|
244
|
+
*/
|
|
245
|
+
export const Textarea: Function;
|
|
246
|
+
/**
|
|
247
|
+
* Creates a canvas element.
|
|
248
|
+
*/
|
|
249
|
+
export const Canvas: Function;
|
|
250
|
+
/**
|
|
251
|
+
* Creates a progress element.
|
|
252
|
+
*/
|
|
253
|
+
export const Progress: Function;
|
|
254
|
+
/**
|
|
255
|
+
* Creates a blockquote element.
|
|
256
|
+
*/
|
|
257
|
+
export const Blockquote: Function;
|
|
258
|
+
/**
|
|
259
|
+
* Creates a preformatted text (pre) element.
|
|
260
|
+
*/
|
|
261
|
+
export const Pre: Function;
|
|
262
|
+
/**
|
|
263
|
+
* Creates a code element.
|
|
264
|
+
*/
|
|
265
|
+
export const Code: Function;
|
|
266
|
+
/**
|
|
267
|
+
* Creates an ordered list (ol) element.
|
|
268
|
+
*/
|
|
269
|
+
export const Ol: Function;
|
|
270
|
+
/**
|
|
271
|
+
* Creates a definition list (dl) element.
|
|
272
|
+
*/
|
|
273
|
+
export const Dl: Function;
|
|
274
|
+
/**
|
|
275
|
+
* Creates a definition term (dt) element.
|
|
276
|
+
*/
|
|
277
|
+
export const Dt: Function;
|
|
278
|
+
/**
|
|
279
|
+
* Creates a definition description (dd) element.
|
|
280
|
+
*/
|
|
281
|
+
export const Dd: Function;
|
|
282
|
+
/**
|
|
283
|
+
* Creates a fieldset element.
|
|
284
|
+
*/
|
|
285
|
+
export const Fieldset: Function;
|
|
286
|
+
/**
|
|
287
|
+
* Creates a legend element.
|
|
288
|
+
*/
|
|
289
|
+
export const Legend: Function;
|
|
290
|
+
/**
|
|
291
|
+
* Creates a meter element.
|
|
292
|
+
*/
|
|
293
|
+
export const Meter: Function;
|
|
294
|
+
/**
|
|
295
|
+
* Creates an iframe element.
|
|
296
|
+
*/
|
|
297
|
+
export const Iframe: Function;
|
|
298
|
+
/**
|
|
299
|
+
* Creates a details element.
|
|
300
|
+
*/
|
|
301
|
+
export const Details: Function;
|
|
302
|
+
/**
|
|
303
|
+
* Creates a summary element.
|
|
304
|
+
*/
|
|
305
|
+
export const Summary: Function;
|
|
306
|
+
/**
|
|
307
|
+
* Creates an em element.
|
|
308
|
+
*/
|
|
309
|
+
export const Em: Function;
|
|
310
|
+
/**
|
|
311
|
+
* Creates a strong element.
|
|
312
|
+
*/
|
|
313
|
+
export const Strong: Function;
|
|
314
|
+
/**
|
|
315
|
+
* Creates a small element.
|
|
316
|
+
*/
|
|
317
|
+
export const Small: Function;
|
|
318
|
+
/**
|
|
319
|
+
* Creates a s element (strikethrough).
|
|
320
|
+
*/
|
|
321
|
+
export const S: Function;
|
|
322
|
+
/**
|
|
323
|
+
* Creates a cite element.
|
|
324
|
+
*/
|
|
325
|
+
export const Cite: Function;
|
|
326
|
+
/**
|
|
327
|
+
* Creates a q element (inline quotation).
|
|
328
|
+
*/
|
|
329
|
+
export const Q: Function;
|
|
330
|
+
/**
|
|
331
|
+
* Creates a dfn element (definition element).
|
|
332
|
+
*/
|
|
333
|
+
export const Dfn: Function;
|
|
334
|
+
/**
|
|
335
|
+
* Creates an abbr element (abbreviation).
|
|
336
|
+
*/
|
|
337
|
+
export const Abbr: Function;
|
|
338
|
+
/**
|
|
339
|
+
* Creates a data element.
|
|
340
|
+
*/
|
|
341
|
+
export const Data: Function;
|
|
342
|
+
/**
|
|
343
|
+
* Creates a time element.
|
|
344
|
+
*/
|
|
345
|
+
export const Time: Function;
|
|
346
|
+
/**
|
|
347
|
+
* Creates a var element (variable).
|
|
348
|
+
*/
|
|
349
|
+
export const Var: Function;
|
|
350
|
+
/**
|
|
351
|
+
* Creates a samp element (sample output).
|
|
352
|
+
*/
|
|
353
|
+
export const Samp: Function;
|
|
354
|
+
/**
|
|
355
|
+
* Creates a kbd element (keyboard input).
|
|
356
|
+
*/
|
|
357
|
+
export const Kbd: Function;
|
|
358
|
+
/**
|
|
359
|
+
* Creates a sub element (subscript).
|
|
360
|
+
*/
|
|
361
|
+
export const Sub: Function;
|
|
362
|
+
/**
|
|
363
|
+
* Creates a sup element (superscript).
|
|
364
|
+
*/
|
|
365
|
+
export const Sup: Function;
|
|
366
|
+
/**
|
|
367
|
+
* Creates an i element (italic).
|
|
368
|
+
*/
|
|
369
|
+
export const I: Function;
|
|
370
|
+
/**
|
|
371
|
+
* Creates a b element (bold).
|
|
372
|
+
*/
|
|
373
|
+
export const B: Function;
|
|
374
|
+
/**
|
|
375
|
+
* Creates a u element (underline).
|
|
376
|
+
*/
|
|
377
|
+
export const U: Function;
|
|
378
|
+
/**
|
|
379
|
+
* Creates a mark element.
|
|
380
|
+
*/
|
|
381
|
+
export const Mark: Function;
|
|
382
|
+
/**
|
|
383
|
+
* Creates a ruby element (for East Asian typography).
|
|
384
|
+
*/
|
|
385
|
+
export const Ruby: Function;
|
|
386
|
+
/**
|
|
387
|
+
* Creates an rt element (explanation/pronunciation of characters in East Asian typography).
|
|
388
|
+
*/
|
|
389
|
+
export const Rt: Function;
|
|
390
|
+
/**
|
|
391
|
+
* Creates an rp element (for East Asian fallback parenthesis).
|
|
392
|
+
*/
|
|
393
|
+
export const Rp: Function;
|
|
394
|
+
/**
|
|
395
|
+
* Creates a bdi element (Bi-Directional Isolation).
|
|
396
|
+
*/
|
|
397
|
+
export const Bdi: Function;
|
|
398
|
+
/**
|
|
399
|
+
* Creates a bdo element (Bi-Directional Override).
|
|
400
|
+
*/
|
|
401
|
+
export const Bdo: Function;
|
|
402
|
+
/**
|
|
403
|
+
* Creates a wbr element (Word Break Opportunity).
|
|
404
|
+
*/
|
|
405
|
+
export const Wbr: Function;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NavLink
|
|
3
|
+
*
|
|
4
|
+
* This will create a nav link that will add an active
|
|
5
|
+
* class when the browser route path matches the link
|
|
6
|
+
* href.
|
|
7
|
+
*
|
|
8
|
+
* @class
|
|
9
|
+
* @extends Component
|
|
10
|
+
*/
|
|
11
|
+
export class NavLink extends Component {
|
|
12
|
+
selectedClass: any;
|
|
13
|
+
/**
|
|
14
|
+
* This will render the component.
|
|
15
|
+
*
|
|
16
|
+
* @returns {object}
|
|
17
|
+
*/
|
|
18
|
+
render(): object;
|
|
19
|
+
/**
|
|
20
|
+
* This will get string.
|
|
21
|
+
*
|
|
22
|
+
* @param {string} string
|
|
23
|
+
* @returns {(string|null)}
|
|
24
|
+
*/
|
|
25
|
+
getString(string: string): (string | null);
|
|
26
|
+
/**
|
|
27
|
+
* This will setup the watchers.
|
|
28
|
+
*
|
|
29
|
+
* @protected
|
|
30
|
+
* @param {string} href
|
|
31
|
+
* @param {string} text
|
|
32
|
+
* @returns {array}
|
|
33
|
+
*/
|
|
34
|
+
protected setupWatchers(href: string, text: string): any[];
|
|
35
|
+
/**
|
|
36
|
+
* This will setup the states.
|
|
37
|
+
*
|
|
38
|
+
* @protected
|
|
39
|
+
* @returns {object}
|
|
40
|
+
*/
|
|
41
|
+
protected setupStates(): object;
|
|
42
|
+
/**
|
|
43
|
+
* This will update the class on the element.
|
|
44
|
+
*
|
|
45
|
+
* @param {boolean} selected
|
|
46
|
+
* @returns {void}
|
|
47
|
+
*/
|
|
48
|
+
update(selected: boolean): void;
|
|
49
|
+
}
|
|
50
|
+
import { Component } from '@base-framework/base';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChildHelper
|
|
3
|
+
*
|
|
4
|
+
* This class will help with getting children of a node.
|
|
5
|
+
*
|
|
6
|
+
* @class
|
|
7
|
+
*/
|
|
8
|
+
export class ChildHelper {
|
|
9
|
+
/**
|
|
10
|
+
* This will get the first child.
|
|
11
|
+
*
|
|
12
|
+
* @param {object} parent
|
|
13
|
+
* @returns {object|null}
|
|
14
|
+
*/
|
|
15
|
+
static first(parent: object): object | null;
|
|
16
|
+
/**
|
|
17
|
+
* This will get the last child.
|
|
18
|
+
*
|
|
19
|
+
* @param {object} parent
|
|
20
|
+
* @returns {object|null}
|
|
21
|
+
*/
|
|
22
|
+
static last(parent: object): object | null;
|
|
23
|
+
/**
|
|
24
|
+
* This will get the child at the specified index.
|
|
25
|
+
*
|
|
26
|
+
* @param {object} parent
|
|
27
|
+
* @param {number} index
|
|
28
|
+
* @returns {object|null}
|
|
29
|
+
*/
|
|
30
|
+
static get(parent: object, index: number): object | null;
|
|
31
|
+
/**
|
|
32
|
+
* This will get the parent of the node.
|
|
33
|
+
*
|
|
34
|
+
* @param {object} node
|
|
35
|
+
* @returns {object|null}
|
|
36
|
+
*/
|
|
37
|
+
static next(node: object): object | null;
|
|
38
|
+
/**
|
|
39
|
+
* This will get the previous sibling.
|
|
40
|
+
*
|
|
41
|
+
* @param {object} node
|
|
42
|
+
* @returns {object|null}
|
|
43
|
+
*/
|
|
44
|
+
static previous(node: object): object | null;
|
|
45
|
+
/**
|
|
46
|
+
* This will get the index of the node.
|
|
47
|
+
*
|
|
48
|
+
* @param {object} node
|
|
49
|
+
* @returns {number}
|
|
50
|
+
*/
|
|
51
|
+
static index(node: object): number;
|
|
52
|
+
/**
|
|
53
|
+
* This will get the previous index of the node.
|
|
54
|
+
*
|
|
55
|
+
* @param {object} node
|
|
56
|
+
* @returns {number}
|
|
57
|
+
*/
|
|
58
|
+
static getPreviousIndex(node: object): number;
|
|
59
|
+
/**
|
|
60
|
+
* This will replace a child layout.
|
|
61
|
+
*
|
|
62
|
+
* @param {object} layout
|
|
63
|
+
* @param {object} oldChild
|
|
64
|
+
* @param {object} parent
|
|
65
|
+
* @returns {void}
|
|
66
|
+
*/
|
|
67
|
+
static replace(layout: object, oldChild: object, parent: object): void;
|
|
68
|
+
/**
|
|
69
|
+
* This will remove a child.
|
|
70
|
+
*
|
|
71
|
+
* @param {object} node
|
|
72
|
+
* @returns {void}
|
|
73
|
+
*/
|
|
74
|
+
static remove(node: object): void;
|
|
75
|
+
/**
|
|
76
|
+
* This will append a child layout.
|
|
77
|
+
*
|
|
78
|
+
* @param {object} childrenLayout
|
|
79
|
+
* @param {object} container
|
|
80
|
+
* @param {object} parent
|
|
81
|
+
* @returns {void}
|
|
82
|
+
*/
|
|
83
|
+
static append(childrenLayout: object, container: object, parent: object): void;
|
|
84
|
+
/**
|
|
85
|
+
* This will prepend a child layout.
|
|
86
|
+
*
|
|
87
|
+
* @param {object} childrenLayout
|
|
88
|
+
* @param {object} container
|
|
89
|
+
* @param {object} parent
|
|
90
|
+
* @returns {void}
|
|
91
|
+
*/
|
|
92
|
+
static prepend(childrenLayout: object, container: object, parent: object): void;
|
|
93
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DataHelper
|
|
3
|
+
*
|
|
4
|
+
* This will help with data manipulation.
|
|
5
|
+
*
|
|
6
|
+
* @class
|
|
7
|
+
*/
|
|
8
|
+
export class DataHelper {
|
|
9
|
+
/**
|
|
10
|
+
* Compares two arrays of objects and returns the differences based on a specified key.
|
|
11
|
+
*
|
|
12
|
+
* @param {Array<Object>} oldArray - The original array of objects.
|
|
13
|
+
* @param {Array<Object>} newArray - The updated array of objects.
|
|
14
|
+
* @param {string} key - The key used to compare objects in the arrays.
|
|
15
|
+
* @returns {Object} An object containing arrays of added, updated, and deleted items.
|
|
16
|
+
*/
|
|
17
|
+
static diff(oldArray: Array<any>, newArray: Array<any>, key: string): any;
|
|
18
|
+
/**
|
|
19
|
+
* Converts an array of objects into a Map keyed by the specified property.
|
|
20
|
+
* Each value in the Map is an object containing the item and its index in the array.
|
|
21
|
+
*
|
|
22
|
+
* @param {Array<Object>} array - The array to convert.
|
|
23
|
+
* @param {string} key - The key used to map the objects.
|
|
24
|
+
* @returns {Map} A Map with keys as specified property and values as objects.
|
|
25
|
+
* @private
|
|
26
|
+
*/
|
|
27
|
+
private static arrayToMap;
|
|
28
|
+
/**
|
|
29
|
+
* Performs a deep comparison between two objects.
|
|
30
|
+
*
|
|
31
|
+
* @param {Object} obj1 - The first object to compare.
|
|
32
|
+
* @param {Object} obj2 - The second object to compare.
|
|
33
|
+
* @returns {boolean} True if objects are equal, else false.
|
|
34
|
+
* @private
|
|
35
|
+
*/
|
|
36
|
+
private static deepEqual;
|
|
37
|
+
}
|