@datawire-ai/busyfile-design-library 1.30.4 → 1.30.5

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 (110) hide show
  1. package/dist/index100.js +15 -11
  2. package/dist/index101.js +13 -217
  3. package/dist/index102.js +7 -13
  4. package/dist/index103.js +50 -30
  5. package/dist/index104.js +633 -118
  6. package/dist/index105.js +13 -15
  7. package/dist/index106.js +227 -9
  8. package/dist/index107.js +219 -49
  9. package/dist/index108.js +30 -11
  10. package/dist/index109.js +11 -4
  11. package/dist/index110.js +4 -13
  12. package/dist/index111.js +12 -3
  13. package/dist/index112.js +3 -46
  14. package/dist/index113.js +46 -14
  15. package/dist/index114.js +7 -650
  16. package/dist/index115.js +14 -13
  17. package/dist/index116.js +178 -223
  18. package/dist/index121.js +1 -1
  19. package/dist/index123.js +1 -1
  20. package/dist/index124.js +3 -3
  21. package/dist/index127.js +3 -3
  22. package/dist/index128.js +3 -3
  23. package/dist/index200.js +5 -525
  24. package/dist/index201.js +3 -128
  25. package/dist/index202.js +22 -132
  26. package/dist/index203.js +110 -5
  27. package/dist/index204.js +16 -3
  28. package/dist/index205.js +522 -21
  29. package/dist/index206.js +127 -109
  30. package/dist/index207.js +133 -15
  31. package/dist/index217.js +2 -2
  32. package/dist/index218.js +2 -2
  33. package/dist/index221.js +3 -3
  34. package/dist/index222.js +1 -1
  35. package/dist/index223.js +2 -2
  36. package/dist/index225.js +1 -1
  37. package/dist/index226.js +2 -2
  38. package/dist/index227.js +1 -1
  39. package/dist/index228.js +6 -6
  40. package/dist/index229.js +3 -3
  41. package/dist/index230.js +1 -1
  42. package/dist/index231.js +1 -1
  43. package/dist/index232.js +3 -3
  44. package/dist/index233.js +1 -1
  45. package/dist/index234.js +1 -1
  46. package/dist/index236.js +1 -1
  47. package/dist/index237.js +1 -1
  48. package/dist/index238.js +1 -1
  49. package/dist/index239.js +2 -2
  50. package/dist/index240.js +2 -2
  51. package/dist/index241.js +3 -3
  52. package/dist/index242.js +2 -2
  53. package/dist/index243.js +1 -1
  54. package/dist/index245.js +1 -1
  55. package/dist/index246.js +2 -2
  56. package/dist/index247.js +1 -1
  57. package/dist/index269.js +1 -1
  58. package/dist/index274.js +1 -1
  59. package/dist/index276.js +1 -1
  60. package/dist/index277.js +2 -2
  61. package/dist/index282.js +6 -5
  62. package/dist/index283.js +15 -5
  63. package/dist/index284.js +29 -4
  64. package/dist/index285.js +12 -15
  65. package/dist/index286.js +5 -8
  66. package/dist/index287.js +5 -5
  67. package/dist/index288.js +4 -5
  68. package/dist/index289.js +15 -512
  69. package/dist/index290.js +9 -50
  70. package/dist/index291.js +5 -17
  71. package/dist/index292.js +4 -6
  72. package/dist/index293.js +512 -8
  73. package/dist/index294.js +50 -8
  74. package/dist/index295.js +17 -8
  75. package/dist/index296.js +6 -12
  76. package/dist/index297.js +8 -10
  77. package/dist/index298.js +7 -14
  78. package/dist/index299.js +8 -6
  79. package/dist/index300.js +12 -15
  80. package/dist/index301.js +10 -28
  81. package/dist/index302.js +14 -12
  82. package/dist/index33.js +89 -73
  83. package/dist/index40.js +1 -1
  84. package/dist/index42.js +4 -4
  85. package/dist/index44.js +7 -7
  86. package/dist/index46.js +5 -5
  87. package/dist/index49.js +12 -12
  88. package/dist/index52.js +10 -10
  89. package/dist/index59.js +5 -5
  90. package/dist/index63.js +1 -1
  91. package/dist/index75.js +7 -7
  92. package/dist/index80.js +2 -2
  93. package/dist/index82.js +19 -19
  94. package/dist/index83.js +5 -5
  95. package/dist/index85.js +13 -13
  96. package/dist/index86.js +4 -4
  97. package/dist/index87.js +6 -6
  98. package/dist/index89.js +25 -5
  99. package/dist/index90.js +64 -23
  100. package/dist/index91.js +5 -66
  101. package/dist/index92.js +1 -1
  102. package/dist/index94.js +1 -1
  103. package/dist/index95.js +68 -32
  104. package/dist/index96.js +33 -181
  105. package/dist/index97.js +10 -7
  106. package/dist/index98.js +120 -64
  107. package/dist/index99.js +126 -116
  108. package/dist/style.css +1 -1
  109. package/dist/types/index.d.ts +4 -1
  110. package/package.json +1 -1
package/dist/index274.js CHANGED
@@ -1,4 +1,4 @@
1
- import { buildFormatLongFn as t } from "./index299.js";
1
+ import { buildFormatLongFn as t } from "./index282.js";
2
2
  const m = {
3
3
  full: "EEEE, MMMM do, y",
4
4
  long: "MMMM do, y",
package/dist/index276.js CHANGED
@@ -1,4 +1,4 @@
1
- import { buildLocalizeFn as e } from "./index300.js";
1
+ import { buildLocalizeFn as e } from "./index283.js";
2
2
  const a = {
3
3
  narrow: ["B", "A"],
4
4
  abbreviated: ["BC", "AD"],
package/dist/index277.js CHANGED
@@ -1,5 +1,5 @@
1
- import { buildMatchFn as a } from "./index301.js";
2
- import { buildMatchPatternFn as i } from "./index302.js";
1
+ import { buildMatchFn as a } from "./index284.js";
2
+ import { buildMatchPatternFn as i } from "./index285.js";
3
3
  const n = /^(\d+)(th|st|nd|rd)?/i, e = /\d+/i, r = {
4
4
  narrow: /^(b|a)/i,
5
5
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
package/dist/index282.js CHANGED
@@ -1,8 +1,9 @@
1
- import { constructFromSymbol as o } from "./index284.js";
2
- function c(r, n) {
3
- return typeof r == "function" ? r(n) : r && typeof r == "object" && o in r ? r[o](n) : r instanceof Date ? new r.constructor(n) : new Date(n);
1
+ function r(t) {
2
+ return (d = {}) => {
3
+ const n = d.width ? String(d.width) : t.defaultWidth;
4
+ return t.formats[n] || t.formats[t.defaultWidth];
5
+ };
4
6
  }
5
7
  export {
6
- c as constructFrom,
7
- c as default
8
+ r as buildFormatLongFn
8
9
  };
package/dist/index283.js CHANGED
@@ -1,8 +1,18 @@
1
- import { constructFrom as r } from "./index282.js";
2
- function e(t, o) {
3
- return r(o || t, t);
1
+ function h(e) {
2
+ return (a, t) => {
3
+ const c = t != null && t.context ? String(t.context) : "standalone";
4
+ let l;
5
+ if (c === "formatting" && e.formattingValues) {
6
+ const d = e.defaultFormattingWidth || e.defaultWidth, u = t != null && t.width ? String(t.width) : d;
7
+ l = e.formattingValues[u] || e.formattingValues[d];
8
+ } else {
9
+ const d = e.defaultWidth, u = t != null && t.width ? String(t.width) : e.defaultWidth;
10
+ l = e.values[u] || e.values[d];
11
+ }
12
+ const f = e.argumentCallback ? e.argumentCallback(a) : a;
13
+ return l[f];
14
+ };
4
15
  }
5
16
  export {
6
- e as default,
7
- e as toDate
17
+ h as buildLocalizeFn
8
18
  };
package/dist/index284.js CHANGED
@@ -1,6 +1,31 @@
1
- const o = 6048e5, c = 864e5, n = Symbol.for("constructDateFrom");
1
+ function P(t) {
2
+ return (n, e = {}) => {
3
+ const l = e.width, h = l && t.matchPatterns[l] || t.matchPatterns[t.defaultMatchWidth], i = n.match(h);
4
+ if (!i)
5
+ return null;
6
+ const r = i[0], c = l && t.parsePatterns[l] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(c) ? o(c, (u) => u.test(r)) : (
7
+ // [TODO] -- I challenge you to fix the type
8
+ s(c, (u) => u.test(r))
9
+ );
10
+ let a;
11
+ a = t.valueCallback ? t.valueCallback(d) : d, a = e.valueCallback ? (
12
+ // [TODO] -- I challenge you to fix the type
13
+ e.valueCallback(a)
14
+ ) : a;
15
+ const f = n.slice(r.length);
16
+ return { value: a, rest: f };
17
+ };
18
+ }
19
+ function s(t, n) {
20
+ for (const e in t)
21
+ if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
22
+ return e;
23
+ }
24
+ function o(t, n) {
25
+ for (let e = 0; e < t.length; e++)
26
+ if (n(t[e]))
27
+ return e;
28
+ }
2
29
  export {
3
- n as constructFromSymbol,
4
- c as millisecondsInDay,
5
- o as millisecondsInWeek
30
+ P as buildMatchFn
6
31
  };
package/dist/index285.js CHANGED
@@ -1,18 +1,15 @@
1
- import { toDate as o } from "./index283.js";
2
- function l(t) {
3
- const e = o(t), n = new Date(
4
- Date.UTC(
5
- e.getFullYear(),
6
- e.getMonth(),
7
- e.getDate(),
8
- e.getHours(),
9
- e.getMinutes(),
10
- e.getSeconds(),
11
- e.getMilliseconds()
12
- )
13
- );
14
- return n.setUTCFullYear(e.getFullYear()), +t - +n;
1
+ function h(t) {
2
+ return (e, c = {}) => {
3
+ const n = e.match(t.matchPattern);
4
+ if (!n) return null;
5
+ const u = n[0], a = e.match(t.parsePattern);
6
+ if (!a) return null;
7
+ let l = t.valueCallback ? t.valueCallback(a[0]) : a[0];
8
+ l = c.valueCallback ? c.valueCallback(l) : l;
9
+ const r = e.slice(u.length);
10
+ return { value: l, rest: r };
11
+ };
15
12
  }
16
13
  export {
17
- l as getTimezoneOffsetInMilliseconds
14
+ h as buildMatchPatternFn
18
15
  };
package/dist/index286.js CHANGED
@@ -1,11 +1,8 @@
1
- import { constructFrom as r } from "./index282.js";
2
- function i(e, ...o) {
3
- const n = r.bind(
4
- null,
5
- o.find((t) => typeof t == "object")
6
- );
7
- return o.map(n);
1
+ import { constructFromSymbol as o } from "./index288.js";
2
+ function c(r, n) {
3
+ return typeof r == "function" ? r(n) : r && typeof r == "object" && o in r ? r[o](n) : r instanceof Date ? new r.constructor(n) : new Date(n);
8
4
  }
9
5
  export {
10
- i as normalizeDates
6
+ c as constructFrom,
7
+ c as default
11
8
  };
package/dist/index287.js CHANGED
@@ -1,8 +1,8 @@
1
- import { normalizeDates as o } from "./index286.js";
2
- function m(r, t) {
3
- const [n, e] = o(r, t.start, t.end);
4
- return { start: n, end: e };
1
+ import { constructFrom as r } from "./index286.js";
2
+ function e(t, o) {
3
+ return r(o || t, t);
5
4
  }
6
5
  export {
7
- m as normalizeInterval
6
+ e as default,
7
+ e as toDate
8
8
  };
package/dist/index288.js CHANGED
@@ -1,7 +1,6 @@
1
- let t = {};
2
- function e() {
3
- return t;
4
- }
1
+ const o = 6048e5, c = 864e5, n = Symbol.for("constructDateFrom");
5
2
  export {
6
- e as getDefaultOptions
3
+ n as constructFromSymbol,
4
+ c as millisecondsInDay,
5
+ o as millisecondsInWeek
7
6
  };