@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.
Files changed (65) hide show
  1. package/babel.config.cjs +1 -0
  2. package/babel.config.d.cts +5 -0
  3. package/index.d.ts +1 -0
  4. package/{index.ts → index.js} +1 -2
  5. package/lib/api/index.js +1 -0
  6. package/lib/api/inputs/base-inputs.d.ts +35 -0
  7. package/lib/api/inputs/base-inputs.js +1 -0
  8. package/lib/api/inputs/{color-inputs.ts → color-inputs.d.ts} +26 -48
  9. package/lib/api/inputs/color-inputs.js +164 -0
  10. package/lib/api/inputs/dates-inputs.d.ts +216 -0
  11. package/lib/api/inputs/dates-inputs.js +271 -0
  12. package/lib/api/inputs/{index.ts → index.d.ts} +1 -0
  13. package/lib/api/inputs/index.js +10 -0
  14. package/lib/api/inputs/{inputs.ts → inputs.d.ts} +1 -0
  15. package/lib/api/inputs/inputs.js +10 -0
  16. package/lib/api/inputs/{lists-inputs.ts → lists-inputs.d.ts} +91 -190
  17. package/lib/api/inputs/lists-inputs.js +576 -0
  18. package/lib/api/inputs/{logic-inputs.ts → logic-inputs.d.ts} +24 -46
  19. package/lib/api/inputs/logic-inputs.js +111 -0
  20. package/lib/api/inputs/{math-inputs.ts → math-inputs.d.ts} +53 -97
  21. package/lib/api/inputs/math-inputs.js +391 -0
  22. package/lib/api/inputs/{point-inputs.ts → point-inputs.d.ts} +77 -168
  23. package/lib/api/inputs/point-inputs.js +521 -0
  24. package/lib/api/inputs/text-inputs.d.ts +83 -0
  25. package/lib/api/inputs/text-inputs.js +120 -0
  26. package/lib/api/inputs/{transforms-inputs.ts → transforms-inputs.d.ts} +35 -64
  27. package/lib/api/inputs/transforms-inputs.js +200 -0
  28. package/lib/api/inputs/{vector-inputs.ts → vector-inputs.d.ts} +48 -104
  29. package/lib/api/inputs/vector-inputs.js +304 -0
  30. package/lib/api/services/color.d.ts +114 -0
  31. package/lib/api/services/{color.ts → color.js} +15 -34
  32. package/lib/api/services/dates.d.ts +367 -0
  33. package/lib/api/services/dates.js +450 -0
  34. package/lib/api/services/geometry-helper.d.ts +15 -0
  35. package/lib/api/services/{geometry-helper.ts → geometry-helper.js} +31 -43
  36. package/lib/api/services/{index.ts → index.d.ts} +2 -1
  37. package/lib/api/services/index.js +10 -0
  38. package/lib/api/services/lists.d.ts +287 -0
  39. package/lib/api/services/{lists.ts → lists.js} +59 -83
  40. package/lib/api/services/logic.d.ts +99 -0
  41. package/lib/api/services/{logic.ts → logic.js} +24 -32
  42. package/lib/api/services/math.d.ts +349 -0
  43. package/lib/api/services/{math.ts → math.js} +71 -136
  44. package/lib/api/services/point.d.ts +222 -0
  45. package/lib/api/services/{point.ts → point.js} +32 -67
  46. package/lib/api/services/text.d.ts +69 -0
  47. package/lib/api/services/{text.ts → text.js} +7 -17
  48. package/lib/api/services/transforms.d.ts +122 -0
  49. package/lib/api/services/{transforms.ts → transforms.js} +37 -83
  50. package/lib/api/services/vector.d.ts +320 -0
  51. package/lib/api/services/{vector.ts → vector.js} +42 -80
  52. package/lib/{index.ts → index.d.ts} +0 -1
  53. package/lib/index.js +1 -0
  54. package/package.json +1 -1
  55. package/lib/api/inputs/base-inputs.ts +0 -18
  56. package/lib/api/inputs/text-inputs.ts +0 -108
  57. package/lib/api/services/color.test.ts +0 -86
  58. package/lib/api/services/lists.test.ts +0 -612
  59. package/lib/api/services/logic.test.ts +0 -187
  60. package/lib/api/services/math.test.ts +0 -622
  61. package/lib/api/services/text.test.ts +0 -55
  62. package/lib/api/services/vector.test.ts +0 -360
  63. package/tsconfig.bitbybit.json +0 -26
  64. package/tsconfig.json +0 -24
  65. /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 = {}));
@@ -7,3 +7,4 @@ export * from "./text-inputs";
7
7
  export * from "./vector-inputs";
8
8
  export * from "./transforms-inputs";
9
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 "./vector-inputs";
8
+ export * from "./transforms-inputs";
9
+ export * from "./base-inputs";
10
+ export * from "./dates-inputs";
@@ -7,3 +7,4 @@ export * from "./text-inputs";
7
7
  export * from "./text-inputs";
8
8
  export * from "./vector-inputs";
9
9
  export * from "./transforms-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";