@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
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
|
+
// tslint:disable-next-line: no-namespace
|
|
3
|
+
export var Dates;
|
|
4
|
+
(function (Dates) {
|
|
5
|
+
class DateDto {
|
|
6
|
+
constructor(date) {
|
|
7
|
+
if (date !== undefined) {
|
|
8
|
+
this.date = date;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
Dates.DateDto = DateDto;
|
|
13
|
+
class DateStringDto {
|
|
14
|
+
constructor(dateString) {
|
|
15
|
+
if (dateString !== undefined) {
|
|
16
|
+
this.dateString = dateString;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
Dates.DateStringDto = DateStringDto;
|
|
21
|
+
class DateSecondsDto {
|
|
22
|
+
constructor(date, seconds) {
|
|
23
|
+
/**
|
|
24
|
+
* The seconds of the date
|
|
25
|
+
* @default 30
|
|
26
|
+
* @minimum 0
|
|
27
|
+
* @maximum Infinity
|
|
28
|
+
* @step 1
|
|
29
|
+
*/
|
|
30
|
+
this.seconds = 30;
|
|
31
|
+
if (date !== undefined) {
|
|
32
|
+
this.date = date;
|
|
33
|
+
}
|
|
34
|
+
if (seconds !== undefined) {
|
|
35
|
+
this.seconds = seconds;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
Dates.DateSecondsDto = DateSecondsDto;
|
|
40
|
+
class DateDayDto {
|
|
41
|
+
constructor(date, day) {
|
|
42
|
+
/**
|
|
43
|
+
* The day of the date
|
|
44
|
+
* @default 1
|
|
45
|
+
* @minimum 0
|
|
46
|
+
* @maximum Infinity
|
|
47
|
+
* @step 1
|
|
48
|
+
*/
|
|
49
|
+
this.day = 1;
|
|
50
|
+
if (date !== undefined) {
|
|
51
|
+
this.date = date;
|
|
52
|
+
}
|
|
53
|
+
if (day !== undefined) {
|
|
54
|
+
this.day = day;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
Dates.DateDayDto = DateDayDto;
|
|
59
|
+
class DateYearDto {
|
|
60
|
+
constructor(date, year) {
|
|
61
|
+
/**
|
|
62
|
+
* The year of the date
|
|
63
|
+
* @default 1
|
|
64
|
+
* @minimum 0
|
|
65
|
+
* @maximum Infinity
|
|
66
|
+
* @step 1
|
|
67
|
+
*/
|
|
68
|
+
this.year = 1;
|
|
69
|
+
if (date !== undefined) {
|
|
70
|
+
this.date = date;
|
|
71
|
+
}
|
|
72
|
+
if (year !== undefined) {
|
|
73
|
+
this.year = year;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
Dates.DateYearDto = DateYearDto;
|
|
78
|
+
class DateMonthDto {
|
|
79
|
+
constructor(date, month) {
|
|
80
|
+
/**
|
|
81
|
+
* The month of the date
|
|
82
|
+
* @default 1
|
|
83
|
+
* @minimum 0
|
|
84
|
+
* @maximum Infinity
|
|
85
|
+
* @step 1
|
|
86
|
+
*/
|
|
87
|
+
this.month = 1;
|
|
88
|
+
if (date !== undefined) {
|
|
89
|
+
this.date = date;
|
|
90
|
+
}
|
|
91
|
+
if (month !== undefined) {
|
|
92
|
+
this.month = month;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
Dates.DateMonthDto = DateMonthDto;
|
|
97
|
+
class DateHoursDto {
|
|
98
|
+
constructor(date, hours) {
|
|
99
|
+
/**
|
|
100
|
+
* The hours of the date
|
|
101
|
+
* @default 1
|
|
102
|
+
* @minimum 0
|
|
103
|
+
* @maximum Infinity
|
|
104
|
+
* @step 1
|
|
105
|
+
*/
|
|
106
|
+
this.hours = 1;
|
|
107
|
+
if (date !== undefined) {
|
|
108
|
+
this.date = date;
|
|
109
|
+
}
|
|
110
|
+
if (hours !== undefined) {
|
|
111
|
+
this.hours = hours;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
Dates.DateHoursDto = DateHoursDto;
|
|
116
|
+
class DateMinutesDto {
|
|
117
|
+
constructor(date, minutes) {
|
|
118
|
+
/**
|
|
119
|
+
* The minutes of the date
|
|
120
|
+
* @default 1
|
|
121
|
+
* @minimum 0
|
|
122
|
+
* @maximum Infinity
|
|
123
|
+
* @step 1
|
|
124
|
+
*/
|
|
125
|
+
this.minutes = 1;
|
|
126
|
+
if (date !== undefined) {
|
|
127
|
+
this.date = date;
|
|
128
|
+
}
|
|
129
|
+
if (minutes !== undefined) {
|
|
130
|
+
this.minutes = minutes;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
Dates.DateMinutesDto = DateMinutesDto;
|
|
135
|
+
class DateMillisecondsDto {
|
|
136
|
+
constructor(date, milliseconds) {
|
|
137
|
+
/**
|
|
138
|
+
* The milliseconds of the date
|
|
139
|
+
* @default 1
|
|
140
|
+
* @minimum 0
|
|
141
|
+
* @maximum Infinity
|
|
142
|
+
* @step 1
|
|
143
|
+
*/
|
|
144
|
+
this.milliseconds = 1;
|
|
145
|
+
if (date !== undefined) {
|
|
146
|
+
this.date = date;
|
|
147
|
+
}
|
|
148
|
+
if (milliseconds !== undefined) {
|
|
149
|
+
this.milliseconds = milliseconds;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
Dates.DateMillisecondsDto = DateMillisecondsDto;
|
|
154
|
+
class DateTimeDto {
|
|
155
|
+
constructor(date, time) {
|
|
156
|
+
/**
|
|
157
|
+
* The time of the date
|
|
158
|
+
* @default 1
|
|
159
|
+
* @minimum 0
|
|
160
|
+
* @maximum Infinity
|
|
161
|
+
* @step 1
|
|
162
|
+
*/
|
|
163
|
+
this.time = 1;
|
|
164
|
+
if (date !== undefined) {
|
|
165
|
+
this.date = date;
|
|
166
|
+
}
|
|
167
|
+
if (time !== undefined) {
|
|
168
|
+
this.time = time;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
Dates.DateTimeDto = DateTimeDto;
|
|
173
|
+
class CreateFromUnixTimeStampDto {
|
|
174
|
+
constructor(unixTimeStamp) {
|
|
175
|
+
/**
|
|
176
|
+
* The unix time stamp
|
|
177
|
+
* @default 1
|
|
178
|
+
* @minimum 0
|
|
179
|
+
* @maximum Infinity
|
|
180
|
+
* @step 1
|
|
181
|
+
*/
|
|
182
|
+
this.unixTimeStamp = 1;
|
|
183
|
+
if (unixTimeStamp !== undefined) {
|
|
184
|
+
this.unixTimeStamp = unixTimeStamp;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
Dates.CreateFromUnixTimeStampDto = CreateFromUnixTimeStampDto;
|
|
189
|
+
class CreateDateDto {
|
|
190
|
+
constructor(year, month, day, hours, minutes, seconds, milliseconds) {
|
|
191
|
+
/**
|
|
192
|
+
* The year of the date
|
|
193
|
+
* @default 1
|
|
194
|
+
* @minimum 0
|
|
195
|
+
* @maximum Infinity
|
|
196
|
+
* @step 1
|
|
197
|
+
*/
|
|
198
|
+
this.year = 1;
|
|
199
|
+
/**
|
|
200
|
+
* The month of the date
|
|
201
|
+
* @default 1
|
|
202
|
+
* @minimum 0
|
|
203
|
+
* @maximum Infinity
|
|
204
|
+
* @step 1
|
|
205
|
+
*/
|
|
206
|
+
this.month = 1;
|
|
207
|
+
/**
|
|
208
|
+
* The day of the month
|
|
209
|
+
* @default 1
|
|
210
|
+
* @minimum 0
|
|
211
|
+
* @maximum Infinity
|
|
212
|
+
* @step 1
|
|
213
|
+
*/
|
|
214
|
+
this.day = 1;
|
|
215
|
+
/**
|
|
216
|
+
* The hours of the date
|
|
217
|
+
* @default 1
|
|
218
|
+
* @minimum 0
|
|
219
|
+
* @maximum Infinity
|
|
220
|
+
* @step 1
|
|
221
|
+
*/
|
|
222
|
+
this.hours = 1;
|
|
223
|
+
/**
|
|
224
|
+
* The minutes of the date
|
|
225
|
+
* @default 1
|
|
226
|
+
* @minimum 0
|
|
227
|
+
* @maximum Infinity
|
|
228
|
+
* @step 1
|
|
229
|
+
*/
|
|
230
|
+
this.minutes = 1;
|
|
231
|
+
/**
|
|
232
|
+
* The seconds of the date
|
|
233
|
+
* @default 1
|
|
234
|
+
* @minimum 0
|
|
235
|
+
* @maximum Infinity
|
|
236
|
+
* @step 1
|
|
237
|
+
*/
|
|
238
|
+
this.seconds = 1;
|
|
239
|
+
/**
|
|
240
|
+
* The milliseconds of the date
|
|
241
|
+
* @default 1
|
|
242
|
+
* @minimum 0
|
|
243
|
+
* @maximum Infinity
|
|
244
|
+
* @step 1
|
|
245
|
+
*/
|
|
246
|
+
this.milliseconds = 1;
|
|
247
|
+
if (year !== undefined) {
|
|
248
|
+
this.year = year;
|
|
249
|
+
}
|
|
250
|
+
if (month !== undefined) {
|
|
251
|
+
this.month = month;
|
|
252
|
+
}
|
|
253
|
+
if (day !== undefined) {
|
|
254
|
+
this.day = day;
|
|
255
|
+
}
|
|
256
|
+
if (hours !== undefined) {
|
|
257
|
+
this.hours = hours;
|
|
258
|
+
}
|
|
259
|
+
if (minutes !== undefined) {
|
|
260
|
+
this.minutes = minutes;
|
|
261
|
+
}
|
|
262
|
+
if (seconds !== undefined) {
|
|
263
|
+
this.seconds = seconds;
|
|
264
|
+
}
|
|
265
|
+
if (milliseconds !== undefined) {
|
|
266
|
+
this.milliseconds = milliseconds;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
Dates.CreateDateDto = CreateDateDto;
|
|
271
|
+
})(Dates || (Dates = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./color-inputs";
|
|
2
|
+
export * from "./lists-inputs";
|
|
3
|
+
export * from "./logic-inputs";
|
|
4
|
+
export * from "./math-inputs";
|
|
5
|
+
export * from "./point-inputs";
|
|
6
|
+
export * from "./text-inputs";
|
|
7
|
+
export * from "./vector-inputs";
|
|
8
|
+
export * from "./transforms-inputs";
|
|
9
|
+
export * from "./base-inputs";
|
|
10
|
+
export * from "./dates-inputs";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./color-inputs";
|
|
2
|
+
export * from "./lists-inputs";
|
|
3
|
+
export * from "./logic-inputs";
|
|
4
|
+
export * from "./math-inputs";
|
|
5
|
+
export * from "./point-inputs";
|
|
6
|
+
export * from "./text-inputs";
|
|
7
|
+
export * from "./text-inputs";
|
|
8
|
+
export * from "./vector-inputs";
|
|
9
|
+
export * from "./transforms-inputs";
|
|
10
|
+
export * from "./dates-inputs";
|