bitboss-ui 2.1.5 → 2.1.7

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 (157) hide show
  1. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +1 -1
  2. package/dist/components/BbSelect/BbSelect.vue.d.ts +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index106.js +1 -1
  5. package/dist/index111.js +1 -1
  6. package/dist/index121.js +3 -3
  7. package/dist/index129.js +1 -1
  8. package/dist/index13.js +1 -1
  9. package/dist/index131.js +3 -3
  10. package/dist/index133.js +1 -1
  11. package/dist/index136.js +1 -1
  12. package/dist/index137.js +2 -2
  13. package/dist/index139.js +2 -2
  14. package/dist/index15.js +7 -7
  15. package/dist/index17.js +2 -2
  16. package/dist/index206.js +2 -138
  17. package/dist/index207.js +138 -2
  18. package/dist/index209.js +2 -2
  19. package/dist/index210.js +2 -2
  20. package/dist/index211.js +2 -2
  21. package/dist/index212.js +2 -2
  22. package/dist/index213.js +2 -2
  23. package/dist/index214.js +2 -2
  24. package/dist/index215.js +2 -2
  25. package/dist/index216.js +1 -1
  26. package/dist/index219.js +3 -3
  27. package/dist/index222.js +2 -2
  28. package/dist/index223.js +1 -1
  29. package/dist/index224.js +2 -2
  30. package/dist/index227.js +1 -1
  31. package/dist/index229.js +1 -1
  32. package/dist/index23.js +8 -8
  33. package/dist/index230.js +1 -1
  34. package/dist/index231.js +1 -1
  35. package/dist/index233.js +34 -2
  36. package/dist/index234.js +2 -2
  37. package/dist/index236.js +2 -4
  38. package/dist/index237.js +7 -106
  39. package/dist/index238.js +9 -0
  40. package/dist/index239.js +4 -100
  41. package/dist/{index241.js → index240.js} +2 -2
  42. package/dist/index242.js +15 -0
  43. package/dist/index243.js +5 -13
  44. package/dist/index244.js +2 -2
  45. package/dist/index245.js +2 -2
  46. package/dist/index246.js +11 -2
  47. package/dist/index247.js +19 -6
  48. package/dist/index248.js +113 -7
  49. package/dist/index25.js +2 -2
  50. package/dist/index250.js +8 -9
  51. package/dist/index251.js +3 -3
  52. package/dist/index252.js +4 -5
  53. package/dist/index253.js +195 -18
  54. package/dist/index255.js +5 -0
  55. package/dist/index256.js +2 -177
  56. package/dist/index257.js +13 -4
  57. package/dist/index258.js +100 -191
  58. package/dist/index260.js +100 -10
  59. package/dist/index262.js +176 -33
  60. package/dist/index263.js +1 -1
  61. package/dist/index266.js +2 -2
  62. package/dist/index267.js +3 -9
  63. package/dist/index268.js +6 -23
  64. package/dist/index269.js +16 -6
  65. package/dist/index27.js +1 -1
  66. package/dist/index270.js +8 -15
  67. package/dist/index271.js +23 -9
  68. package/dist/index272.js +9 -3
  69. package/dist/index273.js +1 -1
  70. package/dist/index276.js +5 -67
  71. package/dist/index277.js +67 -5
  72. package/dist/index278.js +4 -279
  73. package/dist/index279.js +8 -2
  74. package/dist/index280.js +277 -13
  75. package/dist/index281.js +2 -2
  76. package/dist/index282.js +9 -9
  77. package/dist/index284.js +14 -17
  78. package/dist/index286.js +16 -12
  79. package/dist/index288.js +11 -15
  80. package/dist/index29.js +4 -4
  81. package/dist/index290.js +15 -23
  82. package/dist/index292.js +27 -2
  83. package/dist/index293.js +2 -2
  84. package/dist/index294.js +1 -1
  85. package/dist/index295.js +1 -1
  86. package/dist/index296.js +2 -28
  87. package/dist/index297.js +1 -21
  88. package/dist/index298.js +30 -0
  89. package/dist/index299.js +22 -7
  90. package/dist/index301.js +7 -11
  91. package/dist/index302.js +7 -3
  92. package/dist/index303.js +11 -17
  93. package/dist/index304.js +3 -6
  94. package/dist/index305.js +17 -4
  95. package/dist/index306.js +6 -3
  96. package/dist/index307.js +2 -3
  97. package/dist/index308.js +4 -3
  98. package/dist/index309.js +6 -0
  99. package/dist/index31.js +1 -1
  100. package/dist/index310.js +3 -5
  101. package/dist/index312.js +125 -2
  102. package/dist/index313.js +2 -3
  103. package/dist/index314.js +1 -1
  104. package/dist/index315.js +3 -2
  105. package/dist/index316.js +5 -2
  106. package/dist/index317.js +3 -701
  107. package/dist/index318.js +3 -354
  108. package/dist/index319.js +5 -58
  109. package/dist/index320.js +2 -5
  110. package/dist/index321.js +701 -8
  111. package/dist/index322.js +354 -5
  112. package/dist/index323.js +57 -3
  113. package/dist/index324.js +7 -2
  114. package/dist/index325.js +18 -6
  115. package/dist/index326.js +7 -18
  116. package/dist/index327.js +5 -6
  117. package/dist/index328.js +7 -32
  118. package/dist/index329.js +57 -27
  119. package/dist/index330.js +60 -0
  120. package/dist/index331.js +2 -58
  121. package/dist/index332.js +128 -57
  122. package/dist/index333.js +353 -113
  123. package/dist/index334.js +6 -368
  124. package/dist/index335.js +32 -227
  125. package/dist/index336.js +28 -8
  126. package/dist/index338.js +47 -8
  127. package/dist/index339.js +227 -46
  128. package/dist/index340.js +1 -1
  129. package/dist/index341.js +131 -0
  130. package/dist/index343.js +3 -129
  131. package/dist/index344.js +467 -421
  132. package/dist/index345.js +422 -113
  133. package/dist/index346.js +123 -478
  134. package/dist/index35.js +2 -2
  135. package/dist/index37.js +182 -182
  136. package/dist/index39.js +5 -5
  137. package/dist/index41.js +1 -1
  138. package/dist/index45.js +5 -5
  139. package/dist/index47.js +2 -2
  140. package/dist/index49.js +3 -3
  141. package/dist/index57.js +1 -1
  142. package/dist/index61.js +2 -2
  143. package/dist/index79.js +4 -4
  144. package/dist/index83.js +2 -2
  145. package/dist/index87.js +1 -1
  146. package/dist/index90.js +2 -2
  147. package/dist/index92.js +1 -1
  148. package/dist/index94.js +2 -2
  149. package/dist/index96.js +1 -1
  150. package/package.json +2 -2
  151. package/dist/index249.js +0 -15
  152. package/dist/index254.js +0 -115
  153. package/dist/index261.js +0 -5
  154. package/dist/index300.js +0 -9
  155. package/dist/index311.js +0 -127
  156. package/dist/index337.js +0 -8
  157. package/dist/index342.js +0 -5
package/dist/index45.js CHANGED
@@ -6,14 +6,14 @@ import ae from "./index111.js";
6
6
  import { last as le } from "./index217.js";
7
7
  import { useBaseOptions as ne } from "./index229.js";
8
8
  import { useIndexById as re } from "./index228.js";
9
- import ie from "./index237.js";
9
+ import ie from "./index258.js";
10
10
  /* empty css */
11
- import ue from "./index239.js";
11
+ import ue from "./index260.js";
12
12
  /* empty css */
13
- import se from "./index241.js";
13
+ import se from "./index240.js";
14
14
  /* empty css */
15
- import de from "./index243.js";
16
- import { isEmpty as pe } from "./index244.js";
15
+ import de from "./index242.js";
16
+ import { isEmpty as pe } from "./index245.js";
17
17
  const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], De = /* @__PURE__ */ Q({
18
18
  __name: "BaseTag",
19
19
  props: {
package/dist/index47.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as h, ref as y, computed as u, onMounted as g, watch as B, nextTick as V, createBlock as $, openBlock as k, normalizeClass as C, withCtx as r, createVNode as i, unref as T, createElementVNode as v, mergeProps as x, renderSlot as t } from "vue";
2
- import E from "./index243.js";
3
- import G from "./index241.js";
2
+ import E from "./index242.js";
3
+ import G from "./index240.js";
4
4
  /* empty css */
5
5
  import M from "./index111.js";
6
6
  /* empty css */
package/dist/index49.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as V, ref as h, computed as v, onMounted as B, onBeforeUnmount as M, watch as g, createElementBlock as i, openBlock as r, Fragment as w, createVNode as m, createElementVNode as $, normalizeClass as C, withCtx as n, unref as q, mergeProps as b, renderSlot as d } from "vue";
2
- import E from "./index241.js";
2
+ import E from "./index240.js";
3
3
  /* empty css */
4
- import I from "./index243.js";
4
+ import I from "./index242.js";
5
5
  import { isNotNil as N } from "./index140.js";
6
- import { MaskInput as z } from "./index256.js";
6
+ import { MaskInput as z } from "./index262.js";
7
7
  const D = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type"], F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type", "value"], U = /* @__PURE__ */ V({
8
8
  __name: "BaseTextInput",
9
9
  props: {
package/dist/index57.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
2
  import { isCssColor as l } from "./index235.js";
3
- import { isNil as B } from "./index246.js";
3
+ import { isNil as B } from "./index236.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
6
6
  props: {
package/dist/index61.js CHANGED
@@ -7,8 +7,8 @@ import p from "./index85.js";
7
7
  /* empty css */
8
8
  import T from "./index113.js";
9
9
  /* empty css */
10
- import { pickBy as W } from "./index260.js";
11
- import { noop as w } from "./index261.js";
10
+ import { pickBy as W } from "./index250.js";
11
+ import { noop as w } from "./index251.js";
12
12
  import { useLocale as D } from "./index224.js";
13
13
  const E = {
14
14
  key: 2,
package/dist/index79.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as N, computed as R, ref as E, watch as W, createBlock as h, openBlock as k, unref as f, normalizeClass as G, withCtx as D, createElementVNode as I, normalizeStyle as J, renderSlot as m, createElementBlock as q, Fragment as F, renderList as Q, createVNode as X, mergeProps as Y, createCommentVNode as A, toDisplayString as Z, normalizeProps as x, guardReactiveProps as ee } from "vue";
2
- import { findRightIndex as T } from "./index267.js";
2
+ import { findRightIndex as T } from "./index270.js";
3
3
  import { useId as te } from "./index8.js";
4
- import { useUntil as ne } from "./index250.js";
4
+ import { useUntil as ne } from "./index246.js";
5
5
  import { wait as oe } from "./index135.js";
6
6
  import ae from "./index13.js";
7
7
  /* empty css */
8
8
  import B from "./index85.js";
9
9
  /* empty css */
10
- import le from "./index254.js";
10
+ import le from "./index248.js";
11
11
  /* empty css */
12
- import K from "./index268.js";
12
+ import K from "./index271.js";
13
13
  const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, Ee = /* @__PURE__ */ N({
14
14
  __name: "BbDropdown",
15
15
  props: {
package/dist/index83.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, createBlock as G, openBlock as V, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
2
- import { findInTree as ae } from "./index270.js";
2
+ import { findInTree as ae } from "./index269.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index111.js";
5
5
  /* empty css */
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
53
53
  const r = a.accept[t];
54
54
  if (r.includes("/")) e.push(r);
55
55
  else {
56
- b || (b = (await import("./index269.js")).default);
56
+ b || (b = (await import("./index268.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index87.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, createBlock as g, openBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index272.js";
2
+ import { throttle as c } from "./index267.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index90.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as O, mergeModels as E, useModel as P, computed as p, ref as T, watch as q, onMounted as A, createElementBlock as d, openBlock as c, withModifiers as H, normalizeStyle as K, normalizeClass as R, unref as v, createCommentVNode as y, Fragment as U, createElementVNode as l, renderSlot as s, createTextVNode as j, toDisplayString as z, nextTick as G } from "vue";
2
- import { parseSize as J } from "./index249.js";
2
+ import { parseSize as J } from "./index257.js";
3
3
  import { useId as D } from "./index8.js";
4
4
  import { useLocale as Q } from "./index224.js";
5
5
  import { useMobile as X } from "./index9.js";
6
- import { useUntil as Y } from "./index250.js";
6
+ import { useUntil as Y } from "./index246.js";
7
7
  import { wait as h } from "./index135.js";
8
8
  const Z = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], x = {
9
9
  ref: "header",
package/dist/index92.js CHANGED
@@ -3,7 +3,7 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as d, r
3
3
  /* empty css */
4
4
  import P from "./index13.js";
5
5
  /* empty css */
6
- import { debounce as X } from "./index271.js";
6
+ import { debounce as X } from "./index272.js";
7
7
  import { useLocale as H } from "./index224.js";
8
8
  import { useRoute as J } from "./index142.js";
9
9
  const K = ["aria-label"], Q = { class: "bb-pagination__page-label sr-only" }, Y = { class: "bb-pagination__page-label" }, Z = { class: "bb-pagination__page-label" }, ee = { class: "bb-pagination__page-label sr-only" }, ue = /* @__PURE__ */ V({
package/dist/index94.js CHANGED
@@ -2,10 +2,10 @@ import { defineComponent as V, ref as m, computed as g, createBlock as k, openBl
2
2
  import { useId as H } from "./index8.js";
3
3
  import { useIntersectionObserver as N } from "./index137.js";
4
4
  import { useLocale as U } from "./index224.js";
5
- import { useUntil as W } from "./index250.js";
5
+ import { useUntil as W } from "./index246.js";
6
6
  import q from "./index13.js";
7
7
  /* empty css */
8
- import A from "./index254.js";
8
+ import A from "./index248.js";
9
9
  /* empty css */
10
10
  const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @__PURE__ */ V({
11
11
  __name: "BbPopover",
package/dist/index96.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, createElementBlock as l, openBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index207.js";
2
+ import { clamp as p } from "./index206.js";
3
3
  import { getAsPercentageBetween as i } from "./index136.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
@@ -92,4 +92,4 @@
92
92
  "lint-staged": {
93
93
  "*.{js,css,md,html,json,vue,ts}": "prettier --write"
94
94
  }
95
- }
95
+ }
package/dist/index249.js DELETED
@@ -1,15 +0,0 @@
1
- const c = (t, r) => {
2
- if (typeof t == "string") {
3
- const e = /^(\d+)([a-zA-Z%]+)?$/, n = t.match(e);
4
- if (n) {
5
- const [, o, a] = n;
6
- return a ? t : o + "px";
7
- } else if (t in r)
8
- return r[t] + "px";
9
- throw new Error(`Invalid size: ${t}`);
10
- }
11
- return t + "px";
12
- };
13
- export {
14
- c as parseSize
15
- };
package/dist/index254.js DELETED
@@ -1,115 +0,0 @@
1
- import { defineComponent as P, mergeModels as D, useModel as V, ref as r, watch as A, onMounted as x, computed as S, createBlock as b, openBlock as v, resolveDynamicComponent as g, normalizeStyle as z, normalizeClass as E, unref as n, withCtx as w, renderSlot as y, createCommentVNode as N, mergeProps as h, createElementVNode as C } from "vue";
2
- import { wait as F } from "./index135.js";
3
- import { useFloating as U, arrow as j } from "./index333.js";
4
- import { flip as q, offset as G, shift as H, hide as I, autoUpdate as J } from "./index334.js";
5
- const K = { class: "bb-common-popover__bubble" }, W = /* @__PURE__ */ P({
6
- __name: "CommonPopover",
7
- props: /* @__PURE__ */ D({
8
- arrowPadding: {},
9
- offset: {},
10
- block: { type: Boolean },
11
- padding: { default: 0 },
12
- placement: {},
13
- transitionDuration: { default: 250 },
14
- containerAttributes: {},
15
- dialog: { type: Boolean },
16
- renderContent: { type: Boolean, default: !0 },
17
- tag: { default: "span" }
18
- }, {
19
- modelValue: { type: Boolean, default: !1 },
20
- modelModifiers: {}
21
- }),
22
- emits: ["update:modelValue"],
23
- setup(s) {
24
- const o = s, a = V(s, "modelValue"), i = r(), t = r(), p = r(), { floatingStyles: k, placement: _, middlewareData: l, update: M } = U(
25
- i,
26
- t,
27
- {
28
- placement: o.placement,
29
- whileElementsMounted: J,
30
- middleware: [
31
- q(),
32
- G(o.offset),
33
- H({ padding: o.padding }),
34
- I(),
35
- j({
36
- element: p,
37
- padding: o.arrowPadding
38
- })
39
- ],
40
- strategy: "fixed"
41
- }
42
- ), d = (e) => {
43
- e ? (M(), o.dialog ? t.value.showModal() : t.value.showPopover()) : F(o.transitionDuration).then(() => {
44
- t.value && (o.dialog ? t.value.close() : t.value.hidePopover());
45
- });
46
- };
47
- A(a, d, { flush: "post" }), x(() => {
48
- a.value && d(a.value);
49
- });
50
- const $ = S(() => {
51
- if (l.value.arrow) {
52
- const { x: e, y: u } = l.value.arrow;
53
- return {
54
- style: {
55
- left: `${e}px`,
56
- top: `${u}px`
57
- }
58
- };
59
- }
60
- }), B = () => {
61
- a.value = !1;
62
- };
63
- return (e, u) => (v(), b(g(e.dialog ? "div" : e.tag), {
64
- ref_key: "wrapper",
65
- ref: i,
66
- class: E(["bb-common-popover", {
67
- "bb-common-popover--open": a.value && !!t.value,
68
- "bb-common-popover--block": o.block,
69
- [`bb-common-popover--${n(_)}`]: !0
70
- }]),
71
- style: z({
72
- "--transition-duration": `${o.transitionDuration}ms`
73
- })
74
- }, {
75
- default: w(() => {
76
- var m, c, f;
77
- return [
78
- y(e.$slots, "activator"),
79
- e.renderContent ? (v(), b(g(e.dialog ? "dialog" : e.tag), h({
80
- key: 0,
81
- ref_key: "content",
82
- ref: t,
83
- class: ["bb-common-popover__bubble-container", {
84
- "bb-common-popover__bubble-container--open": a.value && !!t.value
85
- }],
86
- popover: "manual",
87
- style: {
88
- ...((m = e.containerAttributes) == null ? void 0 : m.style) ?? {},
89
- ...n(k),
90
- "--arrow-offset-x": Math.round(((f = (c = n(l)) == null ? void 0 : c.arrow) == null ? void 0 : f.x) ?? 0) + "px",
91
- "--page-padding": `${e.padding}px`
92
- },
93
- tabindex: a.value ? void 0 : -1
94
- }, e.containerAttributes, { onClose: n(B) }), {
95
- default: w(() => [
96
- C("span", h({
97
- ref_key: "bubblearrow",
98
- ref: p,
99
- class: "bb-common-popover__arrow"
100
- }, $.value), null, 16),
101
- C("span", K, [
102
- y(e.$slots, "default")
103
- ])
104
- ]),
105
- _: 3
106
- }, 16, ["class", "style", "tabindex", "onClose"])) : N("", !0)
107
- ];
108
- }),
109
- _: 3
110
- }, 8, ["class", "style"]));
111
- }
112
- });
113
- export {
114
- W as default
115
- };
package/dist/index261.js DELETED
@@ -1,5 +0,0 @@
1
- const o = () => {
2
- };
3
- export {
4
- o as noop
5
- };
package/dist/index300.js DELETED
@@ -1,9 +0,0 @@
1
- import o from "./index331.js";
2
- import r from "./index332.js";
3
- const e = {
4
- it: o,
5
- en: r
6
- };
7
- export {
8
- e as locales
9
- };
package/dist/index311.js DELETED
@@ -1,127 +0,0 @@
1
- import { __module as k } from "./index312.js";
2
- var nt = k.exports, G;
3
- function it() {
4
- return G ? k.exports : (G = 1, function(I, ot) {
5
- (function(E, F) {
6
- I.exports = F();
7
- })(nt, function() {
8
- var E = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, F = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, Q = /\d/, L = /\d\d/, s = /\d\d?/, x = /\d*[^-_:/,()\s\d]+/, m = {}, X = function(t) {
9
- return (t = +t) + (t > 68 ? 1900 : 2e3);
10
- }, o = function(t) {
11
- return function(r) {
12
- this[t] = +r;
13
- };
14
- }, R = [/[+-]\d\d:?(\d\d)?|Z/, function(t) {
15
- (this.zone || (this.zone = {})).offset = function(r) {
16
- if (!r || r === "Z") return 0;
17
- var e = r.match(/([+-]|\d\d)/g), n = 60 * e[1] + (+e[2] || 0);
18
- return n === 0 ? 0 : e[0] === "+" ? -n : n;
19
- }(t);
20
- }], P = function(t) {
21
- var r = m[t];
22
- return r && (r.indexOf ? r : r.s.concat(r.f));
23
- }, V = function(t, r) {
24
- var e, n = m.meridiem;
25
- if (n) {
26
- for (var f = 1; f <= 24; f += 1) if (t.indexOf(n(f, 0, r)) > -1) {
27
- e = f > 12;
28
- break;
29
- }
30
- } else e = t === (r ? "pm" : "PM");
31
- return e;
32
- }, J = { A: [x, function(t) {
33
- this.afternoon = V(t, !1);
34
- }], a: [x, function(t) {
35
- this.afternoon = V(t, !0);
36
- }], Q: [Q, function(t) {
37
- this.month = 3 * (t - 1) + 1;
38
- }], S: [Q, function(t) {
39
- this.milliseconds = 100 * +t;
40
- }], SS: [L, function(t) {
41
- this.milliseconds = 10 * +t;
42
- }], SSS: [/\d{3}/, function(t) {
43
- this.milliseconds = +t;
44
- }], s: [s, o("seconds")], ss: [s, o("seconds")], m: [s, o("minutes")], mm: [s, o("minutes")], H: [s, o("hours")], h: [s, o("hours")], HH: [s, o("hours")], hh: [s, o("hours")], D: [s, o("day")], DD: [L, o("day")], Do: [x, function(t) {
45
- var r = m.ordinal, e = t.match(/\d+/);
46
- if (this.day = e[0], r) for (var n = 1; n <= 31; n += 1) r(n).replace(/\[|\]/g, "") === t && (this.day = n);
47
- }], w: [s, o("week")], ww: [L, o("week")], M: [s, o("month")], MM: [L, o("month")], MMM: [x, function(t) {
48
- var r = P("months"), e = (P("monthsShort") || r.map(function(n) {
49
- return n.slice(0, 3);
50
- })).indexOf(t) + 1;
51
- if (e < 1) throw new Error();
52
- this.month = e % 12 || e;
53
- }], MMMM: [x, function(t) {
54
- var r = P("months").indexOf(t) + 1;
55
- if (r < 1) throw new Error();
56
- this.month = r % 12 || r;
57
- }], Y: [/[+-]?\d+/, o("year")], YY: [L, function(t) {
58
- this.year = X(t);
59
- }], YYYY: [/\d{4}/, o("year")], Z: R, ZZ: R };
60
- function K(t) {
61
- var r, e;
62
- r = t, e = m && m.formats;
63
- for (var n = (t = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(v, l, u) {
64
- var i = u && u.toUpperCase();
65
- return l || e[u] || E[u] || e[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, Y, D) {
66
- return Y || D.slice(1);
67
- });
68
- })).match(F), f = n.length, h = 0; h < f; h += 1) {
69
- var y = n[h], p = J[y], c = p && p[0], d = p && p[1];
70
- n[h] = d ? { regex: c, parser: d } : y.replace(/^\[|\]$/g, "");
71
- }
72
- return function(v) {
73
- for (var l = {}, u = 0, i = 0; u < f; u += 1) {
74
- var M = n[u];
75
- if (typeof M == "string") i += M.length;
76
- else {
77
- var Y = M.regex, D = M.parser, $ = v.slice(i), g = Y.exec($)[0];
78
- D.call(l, g), v = v.replace(g, "");
79
- }
80
- }
81
- return function(w) {
82
- var S = w.afternoon;
83
- if (S !== void 0) {
84
- var a = w.hours;
85
- S ? a < 12 && (w.hours += 12) : a === 12 && (w.hours = 0), delete w.afternoon;
86
- }
87
- }(l), l;
88
- };
89
- }
90
- return function(t, r, e) {
91
- e.p.customParseFormat = !0, t && t.parseTwoDigitYear && (X = t.parseTwoDigitYear);
92
- var n = r.prototype, f = n.parse;
93
- n.parse = function(h) {
94
- var y = h.date, p = h.utc, c = h.args;
95
- this.$u = p;
96
- var d = c[1];
97
- if (typeof d == "string") {
98
- var v = c[2] === !0, l = c[3] === !0, u = v || l, i = c[2];
99
- l && (i = c[2]), m = this.$locale(), !v && i && (m = e.Ls[i]), this.$d = function($, g, w, S) {
100
- try {
101
- if (["x", "X"].indexOf(g) > -1) return new Date((g === "X" ? 1e3 : 1) * $);
102
- var a = K(g)($), _ = a.year, A = a.month, N = a.day, W = a.hours, tt = a.minutes, rt = a.seconds, et = a.milliseconds, j = a.zone, B = a.week, C = /* @__PURE__ */ new Date(), H = N || (_ || A ? 1 : C.getDate()), O = _ || C.getFullYear(), T = 0;
103
- _ && !A || (T = A > 0 ? A - 1 : C.getMonth());
104
- var Z, z = W || 0, q = tt || 0, U = rt || 0, b = et || 0;
105
- return j ? new Date(Date.UTC(O, T, H, z, q, U, b + 60 * j.offset * 1e3)) : w ? new Date(Date.UTC(O, T, H, z, q, U, b)) : (Z = new Date(O, T, H, z, q, U, b), B && (Z = S(Z).week(B).toDate()), Z);
106
- } catch {
107
- return /* @__PURE__ */ new Date("");
108
- }
109
- }(y, d, p, e), this.init(), i && i !== !0 && (this.$L = this.locale(i).$L), u && y != this.format(d) && (this.$d = /* @__PURE__ */ new Date("")), m = {};
110
- } else if (d instanceof Array) for (var M = d.length, Y = 1; Y <= M; Y += 1) {
111
- c[1] = d[Y - 1];
112
- var D = e.apply(this, c);
113
- if (D.isValid()) {
114
- this.$d = D.$d, this.$L = D.$L, this.init();
115
- break;
116
- }
117
- Y === M && (this.$d = /* @__PURE__ */ new Date(""));
118
- }
119
- else f.call(this, h);
120
- };
121
- };
122
- });
123
- }(k), k.exports);
124
- }
125
- export {
126
- it as __require
127
- };
package/dist/index337.js DELETED
@@ -1,8 +0,0 @@
1
- function l(c, f, r) {
2
- const t = c / 255, n = f / 255, o = r / 255, i = Math.max(t, n, o), a = Math.min(t, n, o), s = i - a;
3
- let e = 0;
4
- return s !== 0 && (i === t ? e = (n - o) / s % 6 : i === n ? e = (o - t) / s + 2 : i === o && (e = (t - n) / s + 4), e *= 60, e < 0 && (e += 360)), e;
5
- }
6
- export {
7
- l as getHueFromRGB
8
- };
package/dist/index342.js DELETED
@@ -1,5 +0,0 @@
1
- import o from "./index329.js";
2
- /* empty css */
3
- export {
4
- o as default
5
- };