@rowsncolumns/utils 9.2.35

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 (154) hide show
  1. package/LICENSE.md +100 -0
  2. package/dist/cjs/array.d.ts +3 -0
  3. package/dist/cjs/array.d.ts.map +1 -0
  4. package/dist/cjs/array.js +19 -0
  5. package/dist/cjs/cell-data-helpers.d.ts +19 -0
  6. package/dist/cjs/cell-data-helpers.d.ts.map +1 -0
  7. package/dist/cjs/cell-data-helpers.js +64 -0
  8. package/dist/cjs/color.d.ts +20 -0
  9. package/dist/cjs/color.d.ts.map +1 -0
  10. package/dist/cjs/color.js +168 -0
  11. package/dist/cjs/colors.d.ts +2 -0
  12. package/dist/cjs/colors.d.ts.map +1 -0
  13. package/dist/cjs/colors.js +78 -0
  14. package/dist/cjs/conditional-format.d.ts +49 -0
  15. package/dist/cjs/conditional-format.d.ts.map +1 -0
  16. package/dist/cjs/conditional-format.js +227 -0
  17. package/dist/cjs/content-hash.d.ts +16 -0
  18. package/dist/cjs/content-hash.d.ts.map +1 -0
  19. package/dist/cjs/content-hash.js +72 -0
  20. package/dist/cjs/data-validation.d.ts +54 -0
  21. package/dist/cjs/data-validation.d.ts.map +1 -0
  22. package/dist/cjs/data-validation.js +249 -0
  23. package/dist/cjs/date.d.ts +15 -0
  24. package/dist/cjs/date.d.ts.map +1 -0
  25. package/dist/cjs/date.js +56 -0
  26. package/dist/cjs/dom.d.ts +10 -0
  27. package/dist/cjs/dom.d.ts.map +1 -0
  28. package/dist/cjs/dom.js +97 -0
  29. package/dist/cjs/formatter.d.ts +22 -0
  30. package/dist/cjs/formatter.d.ts.map +1 -0
  31. package/dist/cjs/formatter.js +264 -0
  32. package/dist/cjs/formula-refs.d.ts +7 -0
  33. package/dist/cjs/formula-refs.d.ts.map +1 -0
  34. package/dist/cjs/formula-refs.js +54 -0
  35. package/dist/cjs/formula.d.ts +80 -0
  36. package/dist/cjs/formula.d.ts.map +1 -0
  37. package/dist/cjs/formula.js +401 -0
  38. package/dist/cjs/index.d.ts +24 -0
  39. package/dist/cjs/index.d.ts.map +1 -0
  40. package/dist/cjs/index.js +26 -0
  41. package/dist/cjs/locale.d.ts +34 -0
  42. package/dist/cjs/locale.d.ts.map +1 -0
  43. package/dist/cjs/locale.js +260 -0
  44. package/dist/cjs/log.d.ts +4 -0
  45. package/dist/cjs/log.d.ts.map +1 -0
  46. package/dist/cjs/log.js +28 -0
  47. package/dist/cjs/memoize.d.ts +18 -0
  48. package/dist/cjs/memoize.d.ts.map +1 -0
  49. package/dist/cjs/memoize.js +128 -0
  50. package/dist/cjs/numbers.d.ts +19 -0
  51. package/dist/cjs/numbers.d.ts.map +1 -0
  52. package/dist/cjs/numbers.js +47 -0
  53. package/dist/cjs/selection.d.ts +88 -0
  54. package/dist/cjs/selection.d.ts.map +1 -0
  55. package/dist/cjs/selection.js +368 -0
  56. package/dist/cjs/shared-string-canonical.d.ts +18 -0
  57. package/dist/cjs/shared-string-canonical.d.ts.map +1 -0
  58. package/dist/cjs/shared-string-canonical.js +74 -0
  59. package/dist/cjs/sort.d.ts +15 -0
  60. package/dist/cjs/sort.d.ts.map +1 -0
  61. package/dist/cjs/sort.js +44 -0
  62. package/dist/cjs/string.d.ts +74 -0
  63. package/dist/cjs/string.d.ts.map +1 -0
  64. package/dist/cjs/string.js +237 -0
  65. package/dist/cjs/table-styles.d.ts +56 -0
  66. package/dist/cjs/table-styles.d.ts.map +1 -0
  67. package/dist/cjs/table-styles.js +362 -0
  68. package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -0
  69. package/dist/cjs/typeguards.d.ts +4 -0
  70. package/dist/cjs/typeguards.d.ts.map +1 -0
  71. package/dist/cjs/typeguards.js +15 -0
  72. package/dist/cjs/uuid.d.ts +8 -0
  73. package/dist/cjs/uuid.d.ts.map +1 -0
  74. package/dist/cjs/uuid.js +30 -0
  75. package/dist/cjs/vitest.config.d.ts +3 -0
  76. package/dist/cjs/vitest.config.d.ts.map +1 -0
  77. package/dist/cjs/vitest.config.js +9 -0
  78. package/dist/esm/array.d.ts +3 -0
  79. package/dist/esm/array.d.ts.map +1 -0
  80. package/dist/esm/array.js +14 -0
  81. package/dist/esm/cell-data-helpers.d.ts +19 -0
  82. package/dist/esm/cell-data-helpers.d.ts.map +1 -0
  83. package/dist/esm/cell-data-helpers.js +39 -0
  84. package/dist/esm/color.d.ts +20 -0
  85. package/dist/esm/color.d.ts.map +1 -0
  86. package/dist/esm/color.js +152 -0
  87. package/dist/esm/colors.d.ts +2 -0
  88. package/dist/esm/colors.d.ts.map +1 -0
  89. package/dist/esm/colors.js +75 -0
  90. package/dist/esm/conditional-format.d.ts +49 -0
  91. package/dist/esm/conditional-format.d.ts.map +1 -0
  92. package/dist/esm/conditional-format.js +219 -0
  93. package/dist/esm/content-hash.d.ts +16 -0
  94. package/dist/esm/content-hash.d.ts.map +1 -0
  95. package/dist/esm/content-hash.js +68 -0
  96. package/dist/esm/data-validation.d.ts +54 -0
  97. package/dist/esm/data-validation.d.ts.map +1 -0
  98. package/dist/esm/data-validation.js +237 -0
  99. package/dist/esm/date.d.ts +15 -0
  100. package/dist/esm/date.d.ts.map +1 -0
  101. package/dist/esm/date.js +46 -0
  102. package/dist/esm/dom.d.ts +10 -0
  103. package/dist/esm/dom.d.ts.map +1 -0
  104. package/dist/esm/dom.js +90 -0
  105. package/dist/esm/formatter.d.ts +22 -0
  106. package/dist/esm/formatter.d.ts.map +1 -0
  107. package/dist/esm/formatter.js +253 -0
  108. package/dist/esm/formula-refs.d.ts +7 -0
  109. package/dist/esm/formula-refs.d.ts.map +1 -0
  110. package/dist/esm/formula-refs.js +49 -0
  111. package/dist/esm/formula.d.ts +80 -0
  112. package/dist/esm/formula.d.ts.map +1 -0
  113. package/dist/esm/formula.js +298 -0
  114. package/dist/esm/index.d.ts +24 -0
  115. package/dist/esm/index.d.ts.map +1 -0
  116. package/dist/esm/index.js +23 -0
  117. package/dist/esm/locale.d.ts +34 -0
  118. package/dist/esm/locale.d.ts.map +1 -0
  119. package/dist/esm/locale.js +223 -0
  120. package/dist/esm/log.d.ts +4 -0
  121. package/dist/esm/log.d.ts.map +1 -0
  122. package/dist/esm/log.js +3 -0
  123. package/dist/esm/memoize.d.ts +18 -0
  124. package/dist/esm/memoize.d.ts.map +1 -0
  125. package/dist/esm/memoize.js +95 -0
  126. package/dist/esm/numbers.d.ts +19 -0
  127. package/dist/esm/numbers.d.ts.map +1 -0
  128. package/dist/esm/numbers.js +40 -0
  129. package/dist/esm/selection.d.ts +88 -0
  130. package/dist/esm/selection.d.ts.map +1 -0
  131. package/dist/esm/selection.js +311 -0
  132. package/dist/esm/shared-string-canonical.d.ts +18 -0
  133. package/dist/esm/shared-string-canonical.d.ts.map +1 -0
  134. package/dist/esm/shared-string-canonical.js +68 -0
  135. package/dist/esm/sort.d.ts +15 -0
  136. package/dist/esm/sort.d.ts.map +1 -0
  137. package/dist/esm/sort.js +39 -0
  138. package/dist/esm/string.d.ts +74 -0
  139. package/dist/esm/string.d.ts.map +1 -0
  140. package/dist/esm/string.js +213 -0
  141. package/dist/esm/table-styles.d.ts +56 -0
  142. package/dist/esm/table-styles.d.ts.map +1 -0
  143. package/dist/esm/table-styles.js +367 -0
  144. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -0
  145. package/dist/esm/typeguards.d.ts +4 -0
  146. package/dist/esm/typeguards.d.ts.map +1 -0
  147. package/dist/esm/typeguards.js +7 -0
  148. package/dist/esm/uuid.d.ts +8 -0
  149. package/dist/esm/uuid.d.ts.map +1 -0
  150. package/dist/esm/uuid.js +25 -0
  151. package/dist/esm/vitest.config.d.ts +3 -0
  152. package/dist/esm/vitest.config.d.ts.map +1 -0
  153. package/dist/esm/vitest.config.js +7 -0
  154. package/package.json +49 -0
@@ -0,0 +1,367 @@
1
+ /**
2
+ * Table styles and banded range utilities
3
+ * Shared between toolkit (import) and app (rendering)
4
+ */
5
+ const stripeTint = 0.8;
6
+ const colorIndexes = [1, 4, 5, 6, 7, 8, 9];
7
+ /**
8
+ * Get table border styles map with all table themes and their banded definitions
9
+ */
10
+ export const getTableBorderStyles = (showRowStripes, showColumnStripes) => {
11
+ let runningLightIndex = 1;
12
+ let runningMediumIndex = 1;
13
+ let runningDarkIndex = 1;
14
+ return new Map([
15
+ [
16
+ "Light",
17
+ [
18
+ ["None", 0, 0, undefined],
19
+ ...colorIndexes.map((value) => {
20
+ return [
21
+ ("TableStyleLight" + runningLightIndex++),
22
+ stripeTint,
23
+ 1,
24
+ {
25
+ rowProperties: {
26
+ firstBandColor: {
27
+ theme: value,
28
+ tint: showRowStripes ? stripeTint : 1,
29
+ },
30
+ secondBandColor: showRowStripes
31
+ ? {
32
+ theme: 0,
33
+ }
34
+ : undefined,
35
+ headerBorder: {
36
+ top: {
37
+ width: 1,
38
+ style: "solid",
39
+ color: { theme: value },
40
+ },
41
+ bottom: {
42
+ width: 1,
43
+ style: "solid",
44
+ color: { theme: value },
45
+ },
46
+ },
47
+ footerBorder: {
48
+ bottom: {
49
+ width: 1,
50
+ style: "solid",
51
+ color: { theme: value },
52
+ },
53
+ },
54
+ },
55
+ columnProperties: showColumnStripes
56
+ ? {
57
+ firstBandColor: {
58
+ theme: value,
59
+ tint: showColumnStripes ? stripeTint : 1,
60
+ },
61
+ }
62
+ : undefined,
63
+ },
64
+ ];
65
+ }),
66
+ ...colorIndexes.map((value) => {
67
+ return [
68
+ ("TableStyleLight" + runningLightIndex++),
69
+ undefined,
70
+ undefined,
71
+ {
72
+ rowProperties: {
73
+ headerColor: { theme: value },
74
+ },
75
+ },
76
+ ];
77
+ }),
78
+ ...colorIndexes.map((value) => {
79
+ const border = {
80
+ width: 1,
81
+ style: "solid",
82
+ color: { theme: value },
83
+ };
84
+ return [
85
+ ("TableStyleLight" + runningLightIndex++),
86
+ stripeTint,
87
+ 1,
88
+ {
89
+ rowProperties: {
90
+ firstBandColor: {
91
+ theme: value,
92
+ tint: showRowStripes ? stripeTint : 1,
93
+ },
94
+ secondBandColor: showRowStripes
95
+ ? {
96
+ theme: 0,
97
+ }
98
+ : undefined,
99
+ firstBandBorder: {
100
+ top: border,
101
+ left: border,
102
+ right: border,
103
+ bottom: border,
104
+ },
105
+ headerBorder: {
106
+ top: border,
107
+ left: border,
108
+ right: border,
109
+ bottom: border,
110
+ },
111
+ },
112
+ columnProperties: showColumnStripes
113
+ ? {
114
+ firstBandColor: {
115
+ theme: value,
116
+ tint: showColumnStripes ? stripeTint : 1,
117
+ },
118
+ }
119
+ : undefined,
120
+ },
121
+ ];
122
+ }),
123
+ ],
124
+ ],
125
+ [
126
+ "Medium",
127
+ [
128
+ ...colorIndexes.map((value) => {
129
+ return [
130
+ ("TableStyleMedium" + runningMediumIndex++),
131
+ stripeTint,
132
+ 1,
133
+ {
134
+ rowProperties: {
135
+ headerColor: { theme: value },
136
+ firstBandColor: {
137
+ theme: value,
138
+ tint: showRowStripes ? stripeTint : 1,
139
+ },
140
+ secondBandColor: showRowStripes
141
+ ? {
142
+ theme: 0,
143
+ }
144
+ : undefined,
145
+ firstBandBorder: {
146
+ bottom: {
147
+ width: 1,
148
+ style: "solid",
149
+ color: { theme: value },
150
+ },
151
+ },
152
+ },
153
+ columnProperties: showColumnStripes
154
+ ? {
155
+ firstBandColor: {
156
+ theme: value,
157
+ tint: showColumnStripes ? stripeTint : 1,
158
+ },
159
+ }
160
+ : undefined,
161
+ },
162
+ ];
163
+ }),
164
+ ...colorIndexes.map((value) => {
165
+ return [
166
+ ("TableStyleMedium" + runningMediumIndex++),
167
+ 0.6,
168
+ 0.8,
169
+ {
170
+ rowProperties: {
171
+ headerColor: { theme: value },
172
+ firstBandColor: {
173
+ theme: value,
174
+ tint: showRowStripes ? 0.6 : 0.8,
175
+ },
176
+ secondBandColor: {
177
+ theme: value,
178
+ tint: 0.8,
179
+ },
180
+ },
181
+ columnProperties: showColumnStripes
182
+ ? {
183
+ firstBandColor: {
184
+ theme: value,
185
+ tint: showColumnStripes ? 0.6 : 0.8,
186
+ },
187
+ }
188
+ : undefined,
189
+ },
190
+ ];
191
+ }),
192
+ ...colorIndexes.map((value) => {
193
+ const border = {
194
+ width: 2,
195
+ style: "solid",
196
+ color: { theme: 1 },
197
+ };
198
+ return [
199
+ ("TableStyleMedium" + runningMediumIndex++),
200
+ -0.15,
201
+ 1,
202
+ {
203
+ rowProperties: {
204
+ headerColor: { theme: value },
205
+ firstBandColor: {
206
+ theme: 0,
207
+ tint: showRowStripes ? -0.15 : 1,
208
+ },
209
+ secondBandColor: showRowStripes
210
+ ? {
211
+ theme: 0,
212
+ }
213
+ : undefined,
214
+ headerBorder: {
215
+ top: border,
216
+ },
217
+ footerBorder: {
218
+ bottom: border,
219
+ },
220
+ },
221
+ columnProperties: showColumnStripes
222
+ ? {
223
+ firstBandColor: {
224
+ theme: 0,
225
+ tint: showColumnStripes ? -0.15 : 1,
226
+ },
227
+ }
228
+ : undefined,
229
+ },
230
+ ];
231
+ }),
232
+ ...colorIndexes.map((value) => {
233
+ const border = {
234
+ width: 1,
235
+ style: "solid",
236
+ color: { theme: value },
237
+ };
238
+ return [
239
+ ("TableStyleMedium" + runningMediumIndex++),
240
+ stripeTint,
241
+ 0.9,
242
+ {
243
+ rowProperties: {
244
+ headerColor: {
245
+ theme: value,
246
+ tint: 0.9,
247
+ },
248
+ firstBandColor: {
249
+ theme: value,
250
+ tint: showRowStripes ? stripeTint : 0.9,
251
+ },
252
+ secondBandColor: {
253
+ theme: value,
254
+ tint: 0.9,
255
+ },
256
+ firstBandBorder: {
257
+ top: border,
258
+ left: border,
259
+ right: border,
260
+ bottom: border,
261
+ },
262
+ headerBorder: {
263
+ top: border,
264
+ left: border,
265
+ right: border,
266
+ bottom: border,
267
+ },
268
+ },
269
+ columnProperties: showColumnStripes
270
+ ? {
271
+ firstBandColor: {
272
+ theme: value,
273
+ tint: showColumnStripes ? stripeTint : 0.9,
274
+ },
275
+ }
276
+ : undefined,
277
+ },
278
+ ];
279
+ }),
280
+ ],
281
+ ],
282
+ [
283
+ "Dark",
284
+ [
285
+ ...colorIndexes.map((value) => {
286
+ const firstTint = value - 1 === 0 ? 0.25 : -0.25;
287
+ const secondTint = value - 1 === 0 ? 0.5 : 0;
288
+ return [
289
+ ("TableStyleDark" + runningDarkIndex++),
290
+ firstTint,
291
+ secondTint,
292
+ {
293
+ rowProperties: {
294
+ headerColor: { theme: 1 },
295
+ firstBandColor: {
296
+ theme: value,
297
+ tint: showRowStripes ? firstTint : secondTint,
298
+ },
299
+ secondBandColor: {
300
+ theme: value,
301
+ tint: secondTint,
302
+ },
303
+ },
304
+ columnProperties: showColumnStripes
305
+ ? {
306
+ firstBandColor: {
307
+ theme: value,
308
+ tint: showColumnStripes ? firstTint : secondTint,
309
+ },
310
+ }
311
+ : undefined,
312
+ },
313
+ ];
314
+ }),
315
+ ...[1, 5, 7, 9].map((value) => {
316
+ const firstTint = value - 1 === 0 ? -0.35 : 0.6;
317
+ const secondTint = value - 1 === 0 ? -0.15 : 0.8;
318
+ return [
319
+ ("TableStyleDark" + runningDarkIndex++),
320
+ firstTint,
321
+ secondTint,
322
+ {
323
+ rowProperties: {
324
+ headerColor: { theme: value },
325
+ firstBandColor: {
326
+ theme: value - 1,
327
+ tint: showRowStripes ? firstTint : secondTint,
328
+ },
329
+ secondBandColor: {
330
+ theme: value - 1,
331
+ tint: secondTint,
332
+ },
333
+ },
334
+ columnProperties: showColumnStripes
335
+ ? {
336
+ firstBandColor: {
337
+ theme: value - 1,
338
+ tint: showColumnStripes ? firstTint : secondTint,
339
+ },
340
+ }
341
+ : undefined,
342
+ },
343
+ ];
344
+ }),
345
+ ],
346
+ ],
347
+ ]);
348
+ };
349
+ /**
350
+ * Find the banded definition for a given table theme
351
+ */
352
+ export const findMatchingBandProperty = (tableTheme, showRowStripes, showColumnStripes) => {
353
+ const bandProperties = getTableBorderStyles(showRowStripes, showColumnStripes);
354
+ let result;
355
+ bandProperties.forEach((tableStyles) => {
356
+ if (result)
357
+ return;
358
+ for (let i = 0; i < tableStyles.length; i++) {
359
+ const [themeName, , , bandDefinition] = tableStyles[i];
360
+ if (themeName === tableTheme) {
361
+ result = bandDefinition ? { ...bandDefinition } : undefined;
362
+ return;
363
+ }
364
+ }
365
+ });
366
+ return result;
367
+ };
@@ -0,0 +1 @@
1
+ {"root":["../../array.ts","../../cell-data-helpers.ts","../../color.ts","../../colors.ts","../../conditional-format.ts","../../content-hash.ts","../../data-validation.ts","../../date.ts","../../dom.ts","../../formatter.ts","../../formula-refs.ts","../../formula.ts","../../index.ts","../../locale.ts","../../log.ts","../../memoize.ts","../../numbers.ts","../../selection.ts","../../shared-string-canonical.ts","../../sort.ts","../../string.ts","../../table-styles.ts","../../typeguards.ts","../../uuid.ts","../../vitest.config.ts"],"version":"5.8.3"}
@@ -0,0 +1,4 @@
1
+ export declare const isDefined: <T>(val: T | undefined | null) => val is T;
2
+ export declare const isNil: <T>(value: T | undefined | null) => value is undefined | null;
3
+ export declare const isNilOrBlank: (value: string | undefined | null) => value is "" | null | undefined;
4
+ //# sourceMappingURL=typeguards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeguards.d.ts","sourceRoot":"","sources":["../../typeguards.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,KAAK,CAAC,GAAG,SAAS,GAAG,IAAI,KAAG,GAAG,IAAI,CAC7B,CAAC;AAGpC,eAAO,MAAM,KAAK,GAAI,CAAC,EACrB,OAAO,CAAC,GAAG,SAAS,GAAG,IAAI,KAC1B,KAAK,IAAI,SAAS,GAAG,IAAyB,CAAC;AAElD,eAAO,MAAM,YAAY,GACvB,OAAO,MAAM,GAAG,SAAS,GAAG,IAAI,KAC/B,KAAK,IAAI,EAAE,GAAG,IAAI,GAAG,SAEvB,CAAC"}
@@ -0,0 +1,7 @@
1
+ // Typeguards
2
+ export const isDefined = (val) => val !== undefined && val !== null;
3
+ // Typeguards isNil
4
+ export const isNil = (value) => !isDefined(value);
5
+ export const isNilOrBlank = (value) => {
6
+ return isNil(value) || String(value).trim() === "";
7
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Generate a random uuid
3
+ * Conform to Google Sheet 9 Digit ID
4
+ * @returns
5
+ */
6
+ export declare const uuid: () => number;
7
+ export declare const uuidString: () => string;
8
+ //# sourceMappingURL=uuid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../uuid.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,IAAI,cAA0D,CAAC;AAE5E,eAAO,MAAM,UAAU,cAqBtB,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Generate a random uuid
3
+ * Conform to Google Sheet 9 Digit ID
4
+ * @returns
5
+ */
6
+ export const uuid = () => Math.floor(Math.random() * 900000000) + 100000000;
7
+ export const uuidString = () => {
8
+ // Check for crypto in various environments (Node.js, browser, etc.)
9
+ const cryptoObj = typeof crypto !== "undefined"
10
+ ? crypto
11
+ : typeof window !== "undefined" && window.crypto
12
+ ? window.crypto
13
+ : typeof global !== "undefined" && global.crypto
14
+ ? global.crypto
15
+ : null;
16
+ if (cryptoObj && typeof cryptoObj.randomUUID === "function") {
17
+ return cryptoObj.randomUUID();
18
+ }
19
+ const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
20
+ let result = "";
21
+ for (let i = 0; i < 9; i++) {
22
+ result += chars.charAt(Math.floor(Math.random() * chars.length));
23
+ }
24
+ return result;
25
+ };
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vite").UserConfig;
2
+ export default _default;
3
+ //# sourceMappingURL=vitest.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../../vitest.config.ts"],"names":[],"mappings":";AAEA,wBAKG"}
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from "vitest/config";
2
+ export default defineConfig({
3
+ test: {
4
+ globals: true,
5
+ environment: "node",
6
+ },
7
+ });
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@rowsncolumns/utils",
3
+ "version": "9.2.35",
4
+ "author": "Vinay M",
5
+ "license": "SEE LICENSE IN LICENSE.md",
6
+ "main": "./dist/cjs/index.js",
7
+ "module": "./dist/esm/index.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/esm/index.js",
11
+ "require": "./dist/cjs/index.js"
12
+ },
13
+ "./selection": {
14
+ "import": "./dist/esm/selection.js",
15
+ "require": "./dist/cjs/selection.js"
16
+ },
17
+ "./colors": {
18
+ "import": "./dist/esm/colors.js",
19
+ "require": "./dist/cjs/colors.js"
20
+ },
21
+ "./formula-refs": {
22
+ "import": "./dist/esm/formula-refs.js",
23
+ "require": "./dist/cjs/formula-refs.js"
24
+ }
25
+ },
26
+ "scripts": {
27
+ "build": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json",
28
+ "clean": "rimraf dist",
29
+ "build:watch": "tsc -p ./tsconfig.esm.json --watch",
30
+ "test": "vitest --run",
31
+ "types": "tsc -p . --noEmit"
32
+ },
33
+ "files": [
34
+ "dist"
35
+ ],
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "https://github.com/rowsncolumns/spreadsheet.git"
39
+ },
40
+ "bugs": {
41
+ "url": "https://github.com/rowsncolumns/spreadsheet/issues"
42
+ },
43
+ "dependencies": {
44
+ "numfmt": "^3.2.2",
45
+ "@rowsncolumns/common-types": ">=5.2.29"
46
+ },
47
+ "devDependencies": {},
48
+ "peerDependencies": {}
49
+ }