@bitbybit-dev/base 0.19.8 → 0.20.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/babel.config.cjs +1 -0
- package/babel.config.d.cts +5 -0
- package/index.d.ts +1 -0
- package/{index.ts → index.js} +1 -2
- package/lib/api/index.js +1 -0
- package/lib/api/inputs/base-inputs.d.ts +35 -0
- package/lib/api/inputs/base-inputs.js +1 -0
- package/lib/api/inputs/{color-inputs.ts → color-inputs.d.ts} +26 -48
- package/lib/api/inputs/color-inputs.js +164 -0
- package/lib/api/inputs/dates-inputs.d.ts +216 -0
- package/lib/api/inputs/dates-inputs.js +271 -0
- package/lib/api/inputs/{index.ts → index.d.ts} +1 -0
- package/lib/api/inputs/index.js +10 -0
- package/lib/api/inputs/{inputs.ts → inputs.d.ts} +1 -0
- package/lib/api/inputs/inputs.js +10 -0
- package/lib/api/inputs/{lists-inputs.ts → lists-inputs.d.ts} +91 -190
- package/lib/api/inputs/lists-inputs.js +576 -0
- package/lib/api/inputs/{logic-inputs.ts → logic-inputs.d.ts} +24 -46
- package/lib/api/inputs/logic-inputs.js +111 -0
- package/lib/api/inputs/{math-inputs.ts → math-inputs.d.ts} +53 -97
- package/lib/api/inputs/math-inputs.js +391 -0
- package/lib/api/inputs/{point-inputs.ts → point-inputs.d.ts} +77 -168
- package/lib/api/inputs/point-inputs.js +521 -0
- package/lib/api/inputs/text-inputs.d.ts +83 -0
- package/lib/api/inputs/text-inputs.js +120 -0
- package/lib/api/inputs/{transforms-inputs.ts → transforms-inputs.d.ts} +35 -64
- package/lib/api/inputs/transforms-inputs.js +200 -0
- package/lib/api/inputs/{vector-inputs.ts → vector-inputs.d.ts} +48 -104
- package/lib/api/inputs/vector-inputs.js +304 -0
- package/lib/api/services/color.d.ts +114 -0
- package/lib/api/services/{color.ts → color.js} +15 -34
- package/lib/api/services/dates.d.ts +367 -0
- package/lib/api/services/dates.js +450 -0
- package/lib/api/services/geometry-helper.d.ts +15 -0
- package/lib/api/services/{geometry-helper.ts → geometry-helper.js} +31 -43
- package/lib/api/services/{index.ts → index.d.ts} +2 -1
- package/lib/api/services/index.js +10 -0
- package/lib/api/services/lists.d.ts +287 -0
- package/lib/api/services/{lists.ts → lists.js} +59 -83
- package/lib/api/services/logic.d.ts +99 -0
- package/lib/api/services/{logic.ts → logic.js} +24 -32
- package/lib/api/services/math.d.ts +349 -0
- package/lib/api/services/{math.ts → math.js} +71 -136
- package/lib/api/services/point.d.ts +222 -0
- package/lib/api/services/{point.ts → point.js} +32 -67
- package/lib/api/services/text.d.ts +69 -0
- package/lib/api/services/{text.ts → text.js} +7 -17
- package/lib/api/services/transforms.d.ts +122 -0
- package/lib/api/services/{transforms.ts → transforms.js} +37 -83
- package/lib/api/services/vector.d.ts +320 -0
- package/lib/api/services/{vector.ts → vector.js} +42 -80
- package/lib/{index.ts → index.d.ts} +0 -1
- package/lib/index.js +1 -0
- package/package.json +1 -1
- package/lib/api/inputs/base-inputs.ts +0 -18
- package/lib/api/inputs/text-inputs.ts +0 -108
- package/lib/api/services/color.test.ts +0 -86
- package/lib/api/services/lists.test.ts +0 -612
- package/lib/api/services/logic.test.ts +0 -187
- package/lib/api/services/math.test.ts +0 -622
- package/lib/api/services/text.test.ts +0 -55
- package/lib/api/services/vector.test.ts +0 -360
- package/tsconfig.bitbybit.json +0 -26
- package/tsconfig.json +0 -24
- /package/lib/api/{index.ts → index.d.ts} +0 -0
|
@@ -1,20 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// tslint:disable-next-line: no-namespace
|
|
5
|
-
export namespace Lists {
|
|
6
|
-
|
|
7
|
-
export enum firstLastEnum {
|
|
1
|
+
export declare namespace Lists {
|
|
2
|
+
enum firstLastEnum {
|
|
8
3
|
first = "first",
|
|
9
|
-
last = "last"
|
|
4
|
+
last = "last"
|
|
10
5
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
constructor(list?: T[], index?: number, clone?: boolean) {
|
|
14
|
-
if (list !== undefined) { this.list = list; }
|
|
15
|
-
if (index !== undefined) { this.index = index; }
|
|
16
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
17
|
-
}
|
|
6
|
+
class ListItemDto<T> {
|
|
7
|
+
constructor(list?: T[], index?: number, clone?: boolean);
|
|
18
8
|
/**
|
|
19
9
|
* The list to interrogate
|
|
20
10
|
* @default undefined
|
|
@@ -27,20 +17,15 @@ export namespace Lists {
|
|
|
27
17
|
* @maximum Infinity
|
|
28
18
|
* @step 1
|
|
29
19
|
*/
|
|
30
|
-
index
|
|
20
|
+
index: number;
|
|
31
21
|
/**
|
|
32
22
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
33
23
|
* @default true
|
|
34
24
|
*/
|
|
35
|
-
clone
|
|
25
|
+
clone?: boolean;
|
|
36
26
|
}
|
|
37
|
-
|
|
38
|
-
constructor(list?: T[], indexStart?: number, indexEnd?: number, clone?: boolean)
|
|
39
|
-
if (list !== undefined) { this.list = list; }
|
|
40
|
-
if (indexStart !== undefined) { this.indexStart = indexStart; }
|
|
41
|
-
if (indexEnd !== undefined) { this.indexEnd = indexEnd; }
|
|
42
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
43
|
-
}
|
|
27
|
+
class SubListDto<T> {
|
|
28
|
+
constructor(list?: T[], indexStart?: number, indexEnd?: number, clone?: boolean);
|
|
44
29
|
/**
|
|
45
30
|
* The list to split into a sublist
|
|
46
31
|
* @default undefined
|
|
@@ -53,7 +38,7 @@ export namespace Lists {
|
|
|
53
38
|
* @maximum Infinity
|
|
54
39
|
* @step 1
|
|
55
40
|
*/
|
|
56
|
-
indexStart
|
|
41
|
+
indexStart: number;
|
|
57
42
|
/**
|
|
58
43
|
* Index to which to end the sublist - 0 means first.
|
|
59
44
|
* @default 1
|
|
@@ -61,18 +46,15 @@ export namespace Lists {
|
|
|
61
46
|
* @maximum Infinity
|
|
62
47
|
* @step 1
|
|
63
48
|
*/
|
|
64
|
-
indexEnd
|
|
49
|
+
indexEnd: number;
|
|
65
50
|
/**
|
|
66
51
|
* Tries to clone the data in the component, sometimes it may not be possible if structure is circular
|
|
67
52
|
* @default true
|
|
68
53
|
*/
|
|
69
|
-
clone
|
|
54
|
+
clone?: boolean;
|
|
70
55
|
}
|
|
71
|
-
|
|
72
|
-
constructor(list?: T[], clone?: boolean)
|
|
73
|
-
if (list !== undefined) { this.list = list; }
|
|
74
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
75
|
-
}
|
|
56
|
+
class ListCloneDto<T> {
|
|
57
|
+
constructor(list?: T[], clone?: boolean);
|
|
76
58
|
/**
|
|
77
59
|
* The list to interrogate
|
|
78
60
|
* @default undefined
|
|
@@ -82,12 +64,10 @@ export namespace Lists {
|
|
|
82
64
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
83
65
|
* @default true
|
|
84
66
|
*/
|
|
85
|
-
clone
|
|
67
|
+
clone?: boolean;
|
|
86
68
|
}
|
|
87
|
-
|
|
88
|
-
constructor(list?: T[])
|
|
89
|
-
if (list !== undefined) { this.list = list; }
|
|
90
|
-
}
|
|
69
|
+
class RepeatInPatternDto<T> {
|
|
70
|
+
constructor(list?: T[]);
|
|
91
71
|
/**
|
|
92
72
|
* The list to interrogate
|
|
93
73
|
* @default undefined
|
|
@@ -97,7 +77,7 @@ export namespace Lists {
|
|
|
97
77
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
98
78
|
* @default true
|
|
99
79
|
*/
|
|
100
|
-
clone
|
|
80
|
+
clone?: boolean;
|
|
101
81
|
/**
|
|
102
82
|
* The limit of the length of the list
|
|
103
83
|
* @default 100
|
|
@@ -105,14 +85,10 @@ export namespace Lists {
|
|
|
105
85
|
* @maximum Infinity
|
|
106
86
|
* @step 1
|
|
107
87
|
*/
|
|
108
|
-
lengthLimit
|
|
88
|
+
lengthLimit: number;
|
|
109
89
|
}
|
|
110
|
-
|
|
111
|
-
constructor(list?: T[], clone?: boolean, orderAsc?: boolean)
|
|
112
|
-
if (list !== undefined) { this.list = list; }
|
|
113
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
114
|
-
if (orderAsc !== undefined) { this.orderAsc = orderAsc; }
|
|
115
|
-
}
|
|
90
|
+
class SortDto<T> {
|
|
91
|
+
constructor(list?: T[], clone?: boolean, orderAsc?: boolean);
|
|
116
92
|
/**
|
|
117
93
|
* The list to interrogate
|
|
118
94
|
* @default undefined
|
|
@@ -122,19 +98,15 @@ export namespace Lists {
|
|
|
122
98
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
123
99
|
* @default true
|
|
124
100
|
*/
|
|
125
|
-
clone
|
|
101
|
+
clone?: boolean;
|
|
126
102
|
/**
|
|
127
103
|
* If true, the list will be sorted in ascending order, otherwise in descending order
|
|
128
104
|
* @default true
|
|
129
105
|
*/
|
|
130
|
-
orderAsc
|
|
106
|
+
orderAsc: boolean;
|
|
131
107
|
}
|
|
132
|
-
|
|
133
|
-
constructor(list?: T[], clone?: boolean, orderAsc?: boolean)
|
|
134
|
-
if (list !== undefined) { this.list = list; }
|
|
135
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
136
|
-
if (orderAsc !== undefined) { this.orderAsc = orderAsc; }
|
|
137
|
-
}
|
|
108
|
+
class SortJsonDto<T> {
|
|
109
|
+
constructor(list?: T[], clone?: boolean, orderAsc?: boolean);
|
|
138
110
|
/**
|
|
139
111
|
* The list to interrogate
|
|
140
112
|
* @default undefined
|
|
@@ -144,34 +116,28 @@ export namespace Lists {
|
|
|
144
116
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
145
117
|
* @default true
|
|
146
118
|
*/
|
|
147
|
-
clone
|
|
119
|
+
clone?: boolean;
|
|
148
120
|
/**
|
|
149
121
|
* If true, the list will be sorted in ascending order, otherwise in descending order
|
|
150
122
|
* @default true
|
|
151
123
|
*/
|
|
152
|
-
orderAsc
|
|
124
|
+
orderAsc: boolean;
|
|
153
125
|
/**
|
|
154
126
|
* The property to sort by
|
|
155
127
|
* @default propName
|
|
156
128
|
*/
|
|
157
|
-
property
|
|
129
|
+
property: string;
|
|
158
130
|
}
|
|
159
|
-
|
|
160
|
-
constructor(list?: T[])
|
|
161
|
-
if (list !== undefined) { this.list = list; }
|
|
162
|
-
}
|
|
131
|
+
class ListDto<T> {
|
|
132
|
+
constructor(list?: T[]);
|
|
163
133
|
/**
|
|
164
134
|
* The list
|
|
165
135
|
* @default undefined
|
|
166
136
|
*/
|
|
167
137
|
list: T[];
|
|
168
138
|
}
|
|
169
|
-
|
|
170
|
-
constructor(list?: T[], nrElements?: number, keepRemainder?: boolean)
|
|
171
|
-
if (list !== undefined) { this.list = list; }
|
|
172
|
-
if (nrElements !== undefined) { this.nrElements = nrElements; }
|
|
173
|
-
if (keepRemainder !== undefined) { this.keepRemainder = keepRemainder; }
|
|
174
|
-
}
|
|
139
|
+
class GroupListDto<T> {
|
|
140
|
+
constructor(list?: T[], nrElements?: number, keepRemainder?: boolean);
|
|
175
141
|
/**
|
|
176
142
|
* The list of elements to group together
|
|
177
143
|
* @default undefined
|
|
@@ -184,18 +150,15 @@ export namespace Lists {
|
|
|
184
150
|
* @maximum Infinity
|
|
185
151
|
* @step 1
|
|
186
152
|
*/
|
|
187
|
-
nrElements
|
|
153
|
+
nrElements: number;
|
|
188
154
|
/**
|
|
189
155
|
* If true, the remainder of the list will be added as a separate group
|
|
190
156
|
* @default false
|
|
191
157
|
*/
|
|
192
|
-
keepRemainder
|
|
158
|
+
keepRemainder: boolean;
|
|
193
159
|
}
|
|
194
|
-
|
|
195
|
-
constructor(item?: T, times?: number)
|
|
196
|
-
if (item !== undefined) { this.item = item; }
|
|
197
|
-
if (times !== undefined) { this.times = times; }
|
|
198
|
-
}
|
|
160
|
+
class MultiplyItemDto<T> {
|
|
161
|
+
constructor(item?: T, times?: number);
|
|
199
162
|
/**
|
|
200
163
|
* The item to multiply
|
|
201
164
|
* @default undefined
|
|
@@ -210,13 +173,8 @@ export namespace Lists {
|
|
|
210
173
|
*/
|
|
211
174
|
times: number;
|
|
212
175
|
}
|
|
213
|
-
|
|
214
|
-
constructor(list?: T[], item?: T, index?: number, clone?: boolean)
|
|
215
|
-
if (list !== undefined) { this.list = list; }
|
|
216
|
-
if (item !== undefined) { this.item = item; }
|
|
217
|
-
if (index !== undefined) { this.index = index; }
|
|
218
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
219
|
-
}
|
|
176
|
+
class AddItemAtIndexDto<T> {
|
|
177
|
+
constructor(list?: T[], item?: T, index?: number, clone?: boolean);
|
|
220
178
|
/**
|
|
221
179
|
* The list to which item needs to be added
|
|
222
180
|
* @default undefined
|
|
@@ -234,20 +192,15 @@ export namespace Lists {
|
|
|
234
192
|
* @maximum Infinity
|
|
235
193
|
* @step 1
|
|
236
194
|
*/
|
|
237
|
-
index
|
|
195
|
+
index: number;
|
|
238
196
|
/**
|
|
239
197
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
240
198
|
* @default true
|
|
241
199
|
*/
|
|
242
|
-
clone
|
|
200
|
+
clone?: boolean;
|
|
243
201
|
}
|
|
244
|
-
|
|
245
|
-
constructor(list?: T[], item?: T, indexes?: number[], clone?: boolean)
|
|
246
|
-
if (list !== undefined) { this.list = list; }
|
|
247
|
-
if (item !== undefined) { this.item = item; }
|
|
248
|
-
if (indexes !== undefined) { this.indexes = indexes; }
|
|
249
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
250
|
-
}
|
|
202
|
+
class AddItemAtIndexesDto<T> {
|
|
203
|
+
constructor(list?: T[], item?: T, indexes?: number[], clone?: boolean);
|
|
251
204
|
/**
|
|
252
205
|
* The list to which item needs to be added
|
|
253
206
|
* @default undefined
|
|
@@ -262,21 +215,15 @@ export namespace Lists {
|
|
|
262
215
|
* The index to add the item at
|
|
263
216
|
* @default [0]
|
|
264
217
|
*/
|
|
265
|
-
indexes: number[]
|
|
218
|
+
indexes: number[];
|
|
266
219
|
/**
|
|
267
220
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
268
221
|
* @default true
|
|
269
222
|
*/
|
|
270
|
-
clone
|
|
223
|
+
clone?: boolean;
|
|
271
224
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
constructor(list?: T[], items?: T[], indexes?: number[], clone?: boolean) {
|
|
275
|
-
if (list !== undefined) { this.list = list; }
|
|
276
|
-
if (items !== undefined) { this.items = items; }
|
|
277
|
-
if (indexes !== undefined) { this.indexes = indexes; }
|
|
278
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
279
|
-
}
|
|
225
|
+
class AddItemsAtIndexesDto<T> {
|
|
226
|
+
constructor(list?: T[], items?: T[], indexes?: number[], clone?: boolean);
|
|
280
227
|
/**
|
|
281
228
|
* The list to which item needs to be added
|
|
282
229
|
* @default undefined
|
|
@@ -291,19 +238,15 @@ export namespace Lists {
|
|
|
291
238
|
* The index to add the item at
|
|
292
239
|
* @default [0]
|
|
293
240
|
*/
|
|
294
|
-
indexes: number[]
|
|
241
|
+
indexes: number[];
|
|
295
242
|
/**
|
|
296
243
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
297
244
|
* @default true
|
|
298
245
|
*/
|
|
299
|
-
clone
|
|
246
|
+
clone?: boolean;
|
|
300
247
|
}
|
|
301
|
-
|
|
302
|
-
constructor(list?: T[], index?: number, clone?: boolean)
|
|
303
|
-
if (list !== undefined) { this.list = list; }
|
|
304
|
-
if (index !== undefined) { this.index = index; }
|
|
305
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
306
|
-
}
|
|
248
|
+
class RemoveItemAtIndexDto<T> {
|
|
249
|
+
constructor(list?: T[], index?: number, clone?: boolean);
|
|
307
250
|
/**
|
|
308
251
|
* The list from which item needs to be removed
|
|
309
252
|
* @default undefined
|
|
@@ -316,19 +259,15 @@ export namespace Lists {
|
|
|
316
259
|
* @maximum Infinity
|
|
317
260
|
* @step 1
|
|
318
261
|
*/
|
|
319
|
-
index
|
|
262
|
+
index: number;
|
|
320
263
|
/**
|
|
321
264
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
322
265
|
* @default true
|
|
323
266
|
*/
|
|
324
|
-
clone
|
|
267
|
+
clone?: boolean;
|
|
325
268
|
}
|
|
326
|
-
|
|
327
|
-
constructor(list?: T[], indexes?: number[], clone?: boolean)
|
|
328
|
-
if (list !== undefined) { this.list = list; }
|
|
329
|
-
if (indexes !== undefined) { this.indexes = indexes; }
|
|
330
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
331
|
-
}
|
|
269
|
+
class RemoveItemsAtIndexesDto<T> {
|
|
270
|
+
constructor(list?: T[], indexes?: number[], clone?: boolean);
|
|
332
271
|
/**
|
|
333
272
|
* The list from which item needs to be removed
|
|
334
273
|
* @default undefined
|
|
@@ -343,15 +282,10 @@ export namespace Lists {
|
|
|
343
282
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
344
283
|
* @default true
|
|
345
284
|
*/
|
|
346
|
-
clone
|
|
285
|
+
clone?: boolean;
|
|
347
286
|
}
|
|
348
|
-
|
|
349
|
-
constructor(list?: T[], nth?: number, offset?: number, clone?: boolean)
|
|
350
|
-
if (list !== undefined) { this.list = list; }
|
|
351
|
-
if (nth !== undefined) { this.nth = nth; }
|
|
352
|
-
if (offset !== undefined) { this.offset = offset; }
|
|
353
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
354
|
-
}
|
|
287
|
+
class RemoveNthItemDto<T> {
|
|
288
|
+
constructor(list?: T[], nth?: number, offset?: number, clone?: boolean);
|
|
355
289
|
/**
|
|
356
290
|
* The list from which item needs to be removed
|
|
357
291
|
* @default undefined
|
|
@@ -364,7 +298,7 @@ export namespace Lists {
|
|
|
364
298
|
* @maximum Infinity
|
|
365
299
|
* @step 1
|
|
366
300
|
*/
|
|
367
|
-
nth
|
|
301
|
+
nth: number;
|
|
368
302
|
/**
|
|
369
303
|
* The offset from which to start counting
|
|
370
304
|
* @default 0
|
|
@@ -372,19 +306,15 @@ export namespace Lists {
|
|
|
372
306
|
* @maximum Infinity
|
|
373
307
|
* @step 1
|
|
374
308
|
*/
|
|
375
|
-
offset
|
|
309
|
+
offset: number;
|
|
376
310
|
/**
|
|
377
311
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
378
312
|
* @default true
|
|
379
313
|
*/
|
|
380
|
-
clone
|
|
314
|
+
clone?: boolean;
|
|
381
315
|
}
|
|
382
|
-
|
|
383
|
-
constructor(list?: T[], threshold?: number, clone?: boolean)
|
|
384
|
-
if (list !== undefined) { this.list = list; }
|
|
385
|
-
if (threshold !== undefined) { this.threshold = threshold; }
|
|
386
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
387
|
-
}
|
|
316
|
+
class RandomThresholdDto<T> {
|
|
317
|
+
constructor(list?: T[], threshold?: number, clone?: boolean);
|
|
388
318
|
/**
|
|
389
319
|
* The list from which item needs to be updated
|
|
390
320
|
* @default undefined
|
|
@@ -397,18 +327,15 @@ export namespace Lists {
|
|
|
397
327
|
* @maximum 1
|
|
398
328
|
* @step 1
|
|
399
329
|
*/
|
|
400
|
-
threshold
|
|
330
|
+
threshold: number;
|
|
401
331
|
/**
|
|
402
332
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
403
333
|
* @default true
|
|
404
334
|
*/
|
|
405
|
-
clone
|
|
335
|
+
clone?: boolean;
|
|
406
336
|
}
|
|
407
|
-
|
|
408
|
-
constructor(list?: T[], clone?: boolean)
|
|
409
|
-
if (list !== undefined) { this.list = list; }
|
|
410
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
411
|
-
}
|
|
337
|
+
class RemoveDuplicatesDto<T> {
|
|
338
|
+
constructor(list?: T[], clone?: boolean);
|
|
412
339
|
/**
|
|
413
340
|
* The list from which item needs to be removed
|
|
414
341
|
* @default undefined
|
|
@@ -418,14 +345,10 @@ export namespace Lists {
|
|
|
418
345
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
419
346
|
* @default true
|
|
420
347
|
*/
|
|
421
|
-
clone
|
|
348
|
+
clone?: boolean;
|
|
422
349
|
}
|
|
423
|
-
|
|
424
|
-
constructor(list?: T[], clone?: boolean, tolerance?: number)
|
|
425
|
-
if (list !== undefined) { this.list = list; }
|
|
426
|
-
if (tolerance !== undefined) { this.tolerance = tolerance; }
|
|
427
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
428
|
-
}
|
|
350
|
+
class RemoveDuplicatesToleranceDto<T> {
|
|
351
|
+
constructor(list?: T[], clone?: boolean, tolerance?: number);
|
|
429
352
|
/**
|
|
430
353
|
* The list from which item needs to be removed
|
|
431
354
|
* @default undefined
|
|
@@ -438,18 +361,15 @@ export namespace Lists {
|
|
|
438
361
|
* @maximum Infinity
|
|
439
362
|
* @step 1e-7
|
|
440
363
|
*/
|
|
441
|
-
tolerance
|
|
364
|
+
tolerance: number;
|
|
442
365
|
/**
|
|
443
366
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
444
367
|
* @default true
|
|
445
368
|
*/
|
|
446
|
-
clone
|
|
369
|
+
clone?: boolean;
|
|
447
370
|
}
|
|
448
|
-
|
|
449
|
-
constructor(list?: T[], pattern?: boolean[])
|
|
450
|
-
if (list !== undefined) { this.list = list; }
|
|
451
|
-
if (pattern !== undefined) { this.pattern = pattern; }
|
|
452
|
-
}
|
|
371
|
+
class GetByPatternDto<T> {
|
|
372
|
+
constructor(list?: T[], pattern?: boolean[]);
|
|
453
373
|
/**
|
|
454
374
|
* The list from which we need to get an item
|
|
455
375
|
* @default undefined
|
|
@@ -459,15 +379,10 @@ export namespace Lists {
|
|
|
459
379
|
* The list of booleans to be used as a pattern (true means get, false means skip)
|
|
460
380
|
* @default [true, true, false]
|
|
461
381
|
*/
|
|
462
|
-
pattern: boolean[]
|
|
382
|
+
pattern: boolean[];
|
|
463
383
|
}
|
|
464
|
-
|
|
465
|
-
constructor(list?: T[], nth?: number, offset?: number, clone?: boolean)
|
|
466
|
-
if (list !== undefined) { this.list = list; }
|
|
467
|
-
if (nth !== undefined) { this.nth = nth; }
|
|
468
|
-
if (offset !== undefined) { this.offset = offset; }
|
|
469
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
470
|
-
}
|
|
384
|
+
class GetNthItemDto<T> {
|
|
385
|
+
constructor(list?: T[], nth?: number, offset?: number, clone?: boolean);
|
|
471
386
|
/**
|
|
472
387
|
* The list from which we need to get an item
|
|
473
388
|
* @default undefined
|
|
@@ -480,7 +395,7 @@ export namespace Lists {
|
|
|
480
395
|
* @maximum Infinity
|
|
481
396
|
* @step 1
|
|
482
397
|
*/
|
|
483
|
-
nth
|
|
398
|
+
nth: number;
|
|
484
399
|
/**
|
|
485
400
|
* The offset from which to start counting
|
|
486
401
|
* @default 0
|
|
@@ -488,28 +403,23 @@ export namespace Lists {
|
|
|
488
403
|
* @maximum Infinity
|
|
489
404
|
* @step 1
|
|
490
405
|
*/
|
|
491
|
-
offset
|
|
406
|
+
offset: number;
|
|
492
407
|
/**
|
|
493
408
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
494
409
|
* @default true
|
|
495
410
|
*/
|
|
496
|
-
clone
|
|
411
|
+
clone?: boolean;
|
|
497
412
|
}
|
|
498
|
-
|
|
499
|
-
constructor(lists?: T[])
|
|
500
|
-
if (lists !== undefined) { this.lists = lists; }
|
|
501
|
-
}
|
|
413
|
+
class GetLongestListLength<T> {
|
|
414
|
+
constructor(lists?: T[]);
|
|
502
415
|
/**
|
|
503
416
|
* The list from which we need to get an item
|
|
504
417
|
* @default undefined
|
|
505
418
|
*/
|
|
506
419
|
lists: T[];
|
|
507
420
|
}
|
|
508
|
-
|
|
509
|
-
constructor(lists?: T[], level?: number)
|
|
510
|
-
if (lists !== undefined) { this.lists = lists; }
|
|
511
|
-
if (level !== undefined) { this.level = level; }
|
|
512
|
-
}
|
|
421
|
+
class MergeElementsOfLists<T> {
|
|
422
|
+
constructor(lists?: T[], level?: number);
|
|
513
423
|
/**
|
|
514
424
|
* The list from which we need to get an item
|
|
515
425
|
* @default undefined
|
|
@@ -522,14 +432,10 @@ export namespace Lists {
|
|
|
522
432
|
* @maximum Infinity
|
|
523
433
|
* @step 1
|
|
524
434
|
*/
|
|
525
|
-
level
|
|
435
|
+
level: number;
|
|
526
436
|
}
|
|
527
|
-
|
|
528
|
-
constructor(list?: T[], item?: T, clone?: boolean)
|
|
529
|
-
if (list !== undefined) { this.list = list; }
|
|
530
|
-
if (item !== undefined) { this.item = item; }
|
|
531
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
532
|
-
}
|
|
437
|
+
class AddItemDto<T> {
|
|
438
|
+
constructor(list?: T[], item?: T, clone?: boolean);
|
|
533
439
|
/**
|
|
534
440
|
* The list to which item needs to be added
|
|
535
441
|
* @default undefined
|
|
@@ -544,15 +450,10 @@ export namespace Lists {
|
|
|
544
450
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
545
451
|
* @default true
|
|
546
452
|
*/
|
|
547
|
-
clone
|
|
453
|
+
clone?: boolean;
|
|
548
454
|
}
|
|
549
|
-
|
|
550
|
-
constructor(list?: T[], item?: T, position?: firstLastEnum, clone?: boolean)
|
|
551
|
-
if (list !== undefined) { this.list = list; }
|
|
552
|
-
if (item !== undefined) { this.item = item; }
|
|
553
|
-
if (position !== undefined) { this.position = position; }
|
|
554
|
-
if (clone !== undefined) { this.clone = clone; }
|
|
555
|
-
}
|
|
455
|
+
class AddItemFirstLastDto<T> {
|
|
456
|
+
constructor(list?: T[], item?: T, position?: firstLastEnum, clone?: boolean);
|
|
556
457
|
/**
|
|
557
458
|
* The list to which item needs to be added
|
|
558
459
|
* @default undefined
|
|
@@ -567,11 +468,11 @@ export namespace Lists {
|
|
|
567
468
|
* The option if the item needs to be added at the beginning or the end of the list
|
|
568
469
|
* @default last
|
|
569
470
|
*/
|
|
570
|
-
position: firstLastEnum
|
|
471
|
+
position: firstLastEnum;
|
|
571
472
|
/**
|
|
572
473
|
* Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
|
|
573
474
|
* @default true
|
|
574
475
|
*/
|
|
575
|
-
clone
|
|
476
|
+
clone?: boolean;
|
|
576
477
|
}
|
|
577
478
|
}
|