bitboss-ui 0.2.71 → 0.2.73

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 (173) hide show
  1. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -1
  2. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -1
  3. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
  4. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  5. package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
  6. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
  7. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  8. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +1 -1
  9. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +1 -1
  10. package/dist/components/BbChip/BbChip.vue.d.ts +1 -1
  11. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
  12. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -1
  13. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
  14. package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
  15. package/dist/components/BbIntersection/BbIntersection.vue.d.ts +1 -1
  16. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
  17. package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
  18. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
  19. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +1 -1
  20. package/dist/components/BbRatio/BbRatio.vue.d.ts +1 -1
  21. package/dist/components/BbSelect/BbSelect.vue.d.ts +1 -1
  22. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
  23. package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
  24. package/dist/components/BbTab/BbTab.vue.d.ts +1 -1
  25. package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
  26. package/dist/components/BbTable/types.d.ts +1 -1
  27. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +1 -1
  28. package/dist/composables/useConfirm.d.ts +1 -1
  29. package/dist/composables/useOptions.d.ts +1 -1
  30. package/dist/composables/useToast.d.ts +1 -1
  31. package/dist/index101.js +3 -3
  32. package/dist/index103.js +2 -2
  33. package/dist/index109.js +1 -1
  34. package/dist/index11.js +1 -1
  35. package/dist/index111.js +4 -4
  36. package/dist/index113.js +1 -1
  37. package/dist/index116.js +1 -1
  38. package/dist/index118.js +1 -1
  39. package/dist/index121.js +1 -1
  40. package/dist/index125.js +1 -1
  41. package/dist/index126.js +1 -1
  42. package/dist/index127.js +1 -1
  43. package/dist/index131.js +2 -2
  44. package/dist/index15.js +8 -8
  45. package/dist/index17.js +9 -9
  46. package/dist/index19.js +3 -3
  47. package/dist/index196.js +2 -2
  48. package/dist/index196.js.map +1 -1
  49. package/dist/index197.js +10 -2
  50. package/dist/index197.js.map +1 -1
  51. package/dist/index199.js +4 -235
  52. package/dist/index199.js.map +1 -1
  53. package/dist/index200.js +235 -2
  54. package/dist/index200.js.map +1 -1
  55. package/dist/index201.js +3 -5
  56. package/dist/index201.js.map +1 -1
  57. package/dist/index202.js +35 -16
  58. package/dist/index202.js.map +1 -1
  59. package/dist/index203.js +6 -16
  60. package/dist/index203.js.map +1 -1
  61. package/dist/index204.js +294 -18
  62. package/dist/index204.js.map +1 -1
  63. package/dist/index205.js +13 -17
  64. package/dist/index205.js.map +1 -1
  65. package/dist/index206.js +13 -26
  66. package/dist/index206.js.map +1 -1
  67. package/dist/index207.js +19 -8
  68. package/dist/index207.js.map +1 -1
  69. package/dist/index208.js +20 -2
  70. package/dist/index208.js.map +1 -1
  71. package/dist/index209.js +27 -119
  72. package/dist/index209.js.map +1 -1
  73. package/dist/index21.js +2 -2
  74. package/dist/index210.js +8 -2
  75. package/dist/index210.js.map +1 -1
  76. package/dist/index211.js +2 -6
  77. package/dist/index211.js.map +1 -1
  78. package/dist/index212.js +368 -4
  79. package/dist/index212.js.map +1 -1
  80. package/dist/index213.js +131 -365
  81. package/dist/index213.js.map +1 -1
  82. package/dist/index214.js +2 -373
  83. package/dist/index214.js.map +1 -1
  84. package/dist/index215.js +174 -3
  85. package/dist/index215.js.map +1 -1
  86. package/dist/index216.js +23 -3
  87. package/dist/index216.js.map +1 -1
  88. package/dist/index217.js +373 -3
  89. package/dist/index217.js.map +1 -1
  90. package/dist/index218.js +2 -35
  91. package/dist/index218.js.map +1 -1
  92. package/dist/index219.js +3 -134
  93. package/dist/index219.js.map +1 -1
  94. package/dist/index220.js +3 -174
  95. package/dist/index220.js.map +1 -1
  96. package/dist/index221.js +121 -23
  97. package/dist/index221.js.map +1 -1
  98. package/dist/index222.js +2 -10
  99. package/dist/index222.js.map +1 -1
  100. package/dist/index224.js +79 -6
  101. package/dist/index224.js.map +1 -1
  102. package/dist/index225.js +6 -17
  103. package/dist/index225.js.map +1 -1
  104. package/dist/index226.js +17 -79
  105. package/dist/index226.js.map +1 -1
  106. package/dist/index227.js +69 -2
  107. package/dist/index227.js.map +1 -1
  108. package/dist/index228.js +5 -295
  109. package/dist/index228.js.map +1 -1
  110. package/dist/index229.js +2 -6
  111. package/dist/index229.js.map +1 -1
  112. package/dist/index23.js +1 -1
  113. package/dist/index230.js +160 -2
  114. package/dist/index230.js.map +1 -1
  115. package/dist/index231.js +1 -4
  116. package/dist/index231.js.map +1 -1
  117. package/dist/index232.js +4 -2
  118. package/dist/index232.js.map +1 -1
  119. package/dist/index233.js +15 -2
  120. package/dist/index233.js.map +1 -1
  121. package/dist/index234.js +435 -2
  122. package/dist/index234.js.map +1 -1
  123. package/dist/index235.js +89 -2
  124. package/dist/index235.js.map +1 -1
  125. package/dist/index236.js +197 -157
  126. package/dist/index236.js.map +1 -1
  127. package/dist/index237.js +8 -1
  128. package/dist/index237.js.map +1 -1
  129. package/dist/index238.js +2 -69
  130. package/dist/index238.js.map +1 -1
  131. package/dist/index239.js +2 -106
  132. package/dist/index239.js.map +1 -1
  133. package/dist/index240.js +2 -4
  134. package/dist/index240.js.map +1 -1
  135. package/dist/index241.js +2 -5
  136. package/dist/index241.js.map +1 -1
  137. package/dist/index242.js +2 -2
  138. package/dist/index243.js +2 -224
  139. package/dist/index243.js.map +1 -1
  140. package/dist/index244.js +2 -258
  141. package/dist/index244.js.map +1 -1
  142. package/dist/index246.js +99 -428
  143. package/dist/index246.js.map +1 -1
  144. package/dist/index247.js +218 -83
  145. package/dist/index247.js.map +1 -1
  146. package/dist/index248.js +258 -200
  147. package/dist/index248.js.map +1 -1
  148. package/dist/index249.js +2 -2
  149. package/dist/index25.js +1 -1
  150. package/dist/index253.js +2 -15
  151. package/dist/index253.js.map +1 -1
  152. package/dist/index254.js +3 -2
  153. package/dist/index254.js.map +1 -1
  154. package/dist/index255.js +2 -3
  155. package/dist/index255.js.map +1 -1
  156. package/dist/index29.js +2 -2
  157. package/dist/index31.js +8 -8
  158. package/dist/index33.js +1 -1
  159. package/dist/index35.js +1 -1
  160. package/dist/index65.js +4 -4
  161. package/dist/index69.js +2 -2
  162. package/dist/index72.js +1 -1
  163. package/dist/index75.js +1 -1
  164. package/dist/index77.js +1 -1
  165. package/dist/index79.js +4 -4
  166. package/dist/index81.js +1 -1
  167. package/dist/index99.js +93 -89
  168. package/dist/index99.js.map +1 -1
  169. package/dist/style.css +1 -1
  170. package/package.json +1 -1
  171. package/dist/components/BbStep/BbStep.vue.d.ts +0 -159
  172. package/dist/index256.js +0 -5
  173. package/dist/index256.js.map +0 -1
package/dist/index208.js CHANGED
@@ -1,5 +1,23 @@
1
- const e = (t) => t[t.length - 1];
1
+ import { getDefaultExportFromCjs as p, commonjsGlobal as s } from "./index237.js";
2
+ import { __module as n } from "./index242.js";
3
+ (function(u, l) {
4
+ (function(c, e) {
5
+ u.exports = e();
6
+ })(s, function() {
7
+ return function(c, e, r) {
8
+ r.updateLocale = function(f, o) {
9
+ var t = r.Ls[f];
10
+ if (t)
11
+ return (o ? Object.keys(o) : []).forEach(function(a) {
12
+ t[a] = o[a];
13
+ }), t;
14
+ };
15
+ };
16
+ });
17
+ })(n);
18
+ var i = n.exports;
19
+ const x = /* @__PURE__ */ p(i);
2
20
  export {
3
- e as last
21
+ x as default
4
22
  };
5
23
  //# sourceMappingURL=index208.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index208.js","sources":["../src/utilities/functions/last.ts"],"sourcesContent":["/** Takes an array and returns the last element of it */\nexport const last = <T>(arr: T[]) => arr[arr.length - 1];\n"],"names":["last","arr"],"mappings":"AACO,MAAMA,IAAO,CAAIC,MAAaA,EAAIA,EAAI,SAAS,CAAC;"}
1
+ {"version":3,"file":"index208.js","sources":["../node_modules/dayjs/plugin/updateLocale.js"],"sourcesContent":["!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define(n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_updateLocale=n()}(this,(function(){\"use strict\";return function(e,n,t){t.updateLocale=function(e,n){var o=t.Ls[e];if(o)return(n?Object.keys(n):[]).forEach((function(e){o[e]=n[e]})),o}}}));"],"names":["e","n","module","this","t","o"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAuI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,WAAO,SAASH,GAAEC,GAAEG,GAAE;AAAC,MAAAA,EAAE,eAAa,SAASJ,GAAEC,GAAE;AAAC,YAAII,IAAED,EAAE,GAAGJ,CAAC;AAAE,YAAGK;AAAE,kBAAOJ,IAAE,OAAO,KAAKA,CAAC,IAAE,CAAA,GAAI,QAAS,SAASD,GAAE;AAAC,YAAAK,EAAEL,CAAC,IAAEC,EAAED,CAAC;AAAA,UAAC,IAAIK;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC;;;;","x_google_ignoreList":[0]}
package/dist/index209.js CHANGED
@@ -1,124 +1,32 @@
1
- import { arrow as j, computePosition as A } from "./index213.js";
2
- import { autoUpdate as T, flip as W, platform as X, shift as Y } from "./index213.js";
3
- import { unref as o, computed as r, ref as f, shallowRef as B, watch as h, getCurrentScope as F, onScopeDispose as I, shallowReadonly as a } from "vue";
4
- import { isNode as U, getNodeName as k } from "./index239.js";
5
- import { getOverflowAncestors as ee } from "./index239.js";
6
- function q(n) {
7
- return n != null && typeof n == "object" && "$el" in n;
8
- }
9
- function g(n) {
10
- if (q(n)) {
11
- const l = n.$el;
12
- return U(l) && k(l) === "#comment" ? null : l;
13
- }
14
- return n;
15
- }
16
- function J(n) {
17
- return {
18
- name: "arrow",
19
- options: n,
20
- fn(l) {
21
- const t = g(o(n.element));
22
- return t == null ? {} : j({
23
- element: t,
24
- padding: n.padding
25
- }).fn(l);
26
- }
27
- };
28
- }
29
- function S(n) {
30
- return typeof window > "u" ? 1 : (n.ownerDocument.defaultView || window).devicePixelRatio || 1;
31
- }
32
- function M(n, l) {
33
- const t = S(n);
34
- return Math.round(l * t) / t;
35
- }
36
- function K(n, l, t) {
37
- t === void 0 && (t = {});
38
- const x = t.whileElementsMounted, D = r(() => {
39
- var e;
40
- return (e = o(t.open)) != null ? e : !0;
41
- }), O = r(() => o(t.middleware)), d = r(() => {
42
- var e;
43
- return (e = o(t.placement)) != null ? e : "bottom";
44
- }), v = r(() => {
45
- var e;
46
- return (e = o(t.strategy)) != null ? e : "absolute";
47
- }), _ = r(() => {
48
- var e;
49
- return (e = o(t.transform)) != null ? e : !0;
50
- }), i = r(() => g(n.value)), u = r(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), P = f(d.value), E = B({}), y = f(!1), N = r(() => {
51
- const e = {
52
- position: c.value,
53
- left: "0",
54
- top: "0"
55
- };
56
- if (!u.value)
57
- return e;
58
- const b = M(u.value, p.value), C = M(u.value, w.value);
59
- return _.value ? {
60
- ...e,
61
- transform: "translate(" + b + "px, " + C + "px)",
62
- ...S(u.value) >= 1.5 && {
63
- willChange: "transform"
64
- }
65
- } : {
66
- position: c.value,
67
- left: b + "px",
68
- top: C + "px"
1
+ import { getDefaultExportFromCjs as c, commonjsGlobal as k } from "./index237.js";
2
+ import { __module as n } from "./index243.js";
3
+ (function(f, p) {
4
+ (function(r, e) {
5
+ f.exports = e();
6
+ })(k, function() {
7
+ var r = "week", e = "year";
8
+ return function(w, u, a) {
9
+ var o = u.prototype;
10
+ o.week = function(t) {
11
+ if (t === void 0 && (t = null), t !== null)
12
+ return this.add(7 * (t - this.week()), "day");
13
+ var s = this.$locale().yearStart || 1;
14
+ if (this.month() === 11 && this.date() > 25) {
15
+ var l = a(this).startOf(e).add(1, e).date(s), d = a(this).endOf(r);
16
+ if (l.isBefore(d))
17
+ return 1;
18
+ }
19
+ var h = a(this).startOf(e).date(s).startOf(r).subtract(1, "millisecond"), i = this.diff(h, r, !0);
20
+ return i < 0 ? a(this).startOf("week").week() : Math.ceil(i);
21
+ }, o.weeks = function(t) {
22
+ return t === void 0 && (t = null), this.week(t);
23
+ };
69
24
  };
70
25
  });
71
- let s;
72
- function m() {
73
- i.value == null || u.value == null || A(i.value, u.value, {
74
- middleware: O.value,
75
- placement: d.value,
76
- strategy: v.value
77
- }).then((e) => {
78
- p.value = e.x, w.value = e.y, c.value = e.strategy, P.value = e.placement, E.value = e.middlewareData, y.value = !0;
79
- });
80
- }
81
- function R() {
82
- typeof s == "function" && (s(), s = void 0);
83
- }
84
- function V() {
85
- if (R(), x === void 0) {
86
- m();
87
- return;
88
- }
89
- if (i.value != null && u.value != null) {
90
- s = x(i.value, u.value, m);
91
- return;
92
- }
93
- }
94
- function $() {
95
- D.value || (y.value = !1);
96
- }
97
- return h([O, d, v], m, {
98
- flush: "sync"
99
- }), h([i, u], V, {
100
- flush: "sync"
101
- }), h(D, $, {
102
- flush: "sync"
103
- }), F() && I(R), {
104
- x: a(p),
105
- y: a(w),
106
- strategy: a(c),
107
- placement: a(P),
108
- middlewareData: a(E),
109
- isPositioned: a(y),
110
- floatingStyles: N,
111
- update: m
112
- };
113
- }
26
+ })(n);
27
+ var m = n.exports;
28
+ const x = /* @__PURE__ */ c(m);
114
29
  export {
115
- J as arrow,
116
- T as autoUpdate,
117
- A as computePosition,
118
- W as flip,
119
- ee as getOverflowAncestors,
120
- X as platform,
121
- Y as shift,
122
- K as useFloating
30
+ x as default
123
31
  };
124
32
  //# sourceMappingURL=index209.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index209.js","sources":["../node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs"],"sourcesContent":["import { arrow as arrow$1, computePosition } from '@floating-ui/dom';\nexport { autoPlacement, autoUpdate, computePosition, detectOverflow, flip, getOverflowAncestors, hide, inline, limitShift, offset, platform, shift, size } from '@floating-ui/dom';\nimport { unref, computed, ref, shallowRef, watch, getCurrentScope, onScopeDispose, shallowReadonly } from 'vue-demi';\nimport { isNode, getNodeName } from '@floating-ui/utils/dom';\n\nfunction isComponentPublicInstance(target) {\n return target != null && typeof target === 'object' && '$el' in target;\n}\nfunction unwrapElement(target) {\n if (isComponentPublicInstance(target)) {\n const element = target.$el;\n return isNode(element) && getNodeName(element) === '#comment' ? null : element;\n }\n return target;\n}\n\n/**\n * Positions an inner element of the floating element such that it is centered to the reference element.\n * @param options The arrow options.\n * @see https://floating-ui.com/docs/arrow\n */\nfunction arrow(options) {\n return {\n name: 'arrow',\n options,\n fn(args) {\n const element = unwrapElement(unref(options.element));\n if (element == null) {\n return {};\n }\n return arrow$1({\n element,\n padding: options.padding\n }).fn(args);\n }\n };\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element next to a reference element when it is given a certain CSS positioning strategy.\n * @param reference The reference template ref.\n * @param floating The floating template ref.\n * @param options The floating options.\n * @see https://floating-ui.com/docs/vue\n */\nfunction useFloating(reference, floating, options) {\n if (options === void 0) {\n options = {};\n }\n const whileElementsMountedOption = options.whileElementsMounted;\n const openOption = computed(() => {\n var _unref;\n return (_unref = unref(options.open)) != null ? _unref : true;\n });\n const middlewareOption = computed(() => unref(options.middleware));\n const placementOption = computed(() => {\n var _unref2;\n return (_unref2 = unref(options.placement)) != null ? _unref2 : 'bottom';\n });\n const strategyOption = computed(() => {\n var _unref3;\n return (_unref3 = unref(options.strategy)) != null ? _unref3 : 'absolute';\n });\n const transformOption = computed(() => {\n var _unref4;\n return (_unref4 = unref(options.transform)) != null ? _unref4 : true;\n });\n const referenceElement = computed(() => unwrapElement(reference.value));\n const floatingElement = computed(() => unwrapElement(floating.value));\n const x = ref(0);\n const y = ref(0);\n const strategy = ref(strategyOption.value);\n const placement = ref(placementOption.value);\n const middlewareData = shallowRef({});\n const isPositioned = ref(false);\n const floatingStyles = computed(() => {\n const initialStyles = {\n position: strategy.value,\n left: '0',\n top: '0'\n };\n if (!floatingElement.value) {\n return initialStyles;\n }\n const xVal = roundByDPR(floatingElement.value, x.value);\n const yVal = roundByDPR(floatingElement.value, y.value);\n if (transformOption.value) {\n return {\n ...initialStyles,\n transform: \"translate(\" + xVal + \"px, \" + yVal + \"px)\",\n ...(getDPR(floatingElement.value) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy.value,\n left: xVal + \"px\",\n top: yVal + \"px\"\n };\n });\n let whileElementsMountedCleanup;\n function update() {\n if (referenceElement.value == null || floatingElement.value == null) {\n return;\n }\n computePosition(referenceElement.value, floatingElement.value, {\n middleware: middlewareOption.value,\n placement: placementOption.value,\n strategy: strategyOption.value\n }).then(position => {\n x.value = position.x;\n y.value = position.y;\n strategy.value = position.strategy;\n placement.value = position.placement;\n middlewareData.value = position.middlewareData;\n isPositioned.value = true;\n });\n }\n function cleanup() {\n if (typeof whileElementsMountedCleanup === 'function') {\n whileElementsMountedCleanup();\n whileElementsMountedCleanup = undefined;\n }\n }\n function attach() {\n cleanup();\n if (whileElementsMountedOption === undefined) {\n update();\n return;\n }\n if (referenceElement.value != null && floatingElement.value != null) {\n whileElementsMountedCleanup = whileElementsMountedOption(referenceElement.value, floatingElement.value, update);\n return;\n }\n }\n function reset() {\n if (!openOption.value) {\n isPositioned.value = false;\n }\n }\n watch([middlewareOption, placementOption, strategyOption], update, {\n flush: 'sync'\n });\n watch([referenceElement, floatingElement], attach, {\n flush: 'sync'\n });\n watch(openOption, reset, {\n flush: 'sync'\n });\n if (getCurrentScope()) {\n onScopeDispose(cleanup);\n }\n return {\n x: shallowReadonly(x),\n y: shallowReadonly(y),\n strategy: shallowReadonly(strategy),\n placement: shallowReadonly(placement),\n middlewareData: shallowReadonly(middlewareData),\n isPositioned: shallowReadonly(isPositioned),\n floatingStyles,\n update\n };\n}\n\nexport { arrow, useFloating };\n"],"names":["isComponentPublicInstance","target","unwrapElement","element","isNode","getNodeName","arrow","options","args","unref","arrow$1","getDPR","roundByDPR","value","dpr","useFloating","reference","floating","whileElementsMountedOption","openOption","computed","_unref","middlewareOption","placementOption","_unref2","strategyOption","_unref3","transformOption","_unref4","referenceElement","floatingElement","x","ref","y","strategy","placement","middlewareData","shallowRef","isPositioned","floatingStyles","initialStyles","xVal","yVal","whileElementsMountedCleanup","update","computePosition","position","cleanup","attach","reset","watch","getCurrentScope","onScopeDispose","shallowReadonly"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index209.js","sources":["../node_modules/dayjs/plugin/weekOfYear.js"],"sourcesContent":["!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_weekOfYear=t()}(this,(function(){\"use strict\";var e=\"week\",t=\"year\";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),\"day\");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,\"millisecond\"),o=this.diff(a,e,!0);return o<0?r(this).startOf(\"week\").week():Math.ceil(o)},f.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}));"],"names":["e","t","module","this","i","n","r","f","s","a","o"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAqI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,QAAIH,IAAE,QAAOC,IAAE;AAAO,WAAO,SAASG,GAAEC,GAAEC,GAAE;AAAC,UAAIC,IAAEF,EAAE;AAAU,MAAAE,EAAE,OAAK,SAASH,GAAE;AAAC,YAAYA,MAAT,WAAaA,IAAE,OAAaA,MAAP;AAAS,iBAAO,KAAK,IAAI,KAAGA,IAAE,KAAK,KAAI,IAAI,KAAK;AAAE,YAAIC,IAAE,KAAK,QAAO,EAAG,aAAW;AAAE,YAAQ,KAAK,MAAO,MAAjB,MAAmB,KAAK,KAAI,IAAG,IAAG;AAAC,cAAIE,IAAED,EAAE,IAAI,EAAE,QAAQL,CAAC,EAAE,IAAI,GAAEA,CAAC,EAAE,KAAKI,CAAC,GAAEG,IAAEF,EAAE,IAAI,EAAE,MAAMN,CAAC;AAAE,cAAGO,EAAE,SAASC,CAAC;AAAE,mBAAO;AAAA,QAAC;AAAC,YAAIC,IAAEH,EAAE,IAAI,EAAE,QAAQL,CAAC,EAAE,KAAKI,CAAC,EAAE,QAAQL,CAAC,EAAE,SAAS,GAAE,aAAa,GAAEU,IAAE,KAAK,KAAKD,GAAET,GAAE,EAAE;AAAE,eAAOU,IAAE,IAAEJ,EAAE,IAAI,EAAE,QAAQ,MAAM,EAAE,KAAI,IAAG,KAAK,KAAKI,CAAC;AAAA,MAAC,GAAEH,EAAE,QAAM,SAASP,GAAE;AAAC,eAAgBA,MAAT,WAAaA,IAAE,OAAM,KAAK,KAAKA,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC;;;;","x_google_ignoreList":[0]}
package/dist/index21.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as $, computed as n, openBlock as i, createElementBlock as b, createBlock as h, resolveDynamicComponent as v, normalizeProps as o, guardReactiveProps as l, withCtx as c, renderSlot as _, createTextVNode as A, toDisplayString as g, createElementVNode as E, unref as z, createVNode as S, Fragment as T, renderList as V } from "vue";
2
- import { deburr as N } from "./index215.js";
2
+ import { deburr as N } from "./index219.js";
3
3
  import { getAsPercentage as P } from "./index121.js";
4
- import { snakeCase as D } from "./index216.js";
4
+ import { snakeCase as D } from "./index220.js";
5
5
  import { useId as I } from "./index7.js";
6
6
  import F from "./index118.js";
7
7
  import "./index183.js";
package/dist/index210.js CHANGED
@@ -1,5 +1,11 @@
1
- const o = (e) => e[0];
1
+ const s = (t, o) => t.reduce(
2
+ (e, r, u, p) => {
3
+ const n = o(r, u, p);
4
+ return n in e || (e[n] = []), e[n].push(r), e;
5
+ },
6
+ {}
7
+ );
2
8
  export {
3
- o as head
9
+ s as groupBy
4
10
  };
5
11
  //# sourceMappingURL=index210.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index210.js","sources":["../src/utilities/functions/head.ts"],"sourcesContent":["/** Takes an array and returns the first item in it */\nexport const head = <T>(arr: T[]) => arr[0];\n"],"names":["head","arr"],"mappings":"AACO,MAAMA,IAAO,CAAIC,MAAaA,EAAI,CAAC;"}
1
+ {"version":3,"file":"index210.js","sources":["../src/utilities/functions/groupBy.ts"],"sourcesContent":["/**\n * Creates an object with keys corresponding to the return value of iteratee and values correspond to arrays of items\n */\n\nexport const groupBy = <T>(\n\tarr: T[],\n\titeratee: (item: T, index: number, arr: T[]) => string | number | symbol\n): Record<ReturnType<typeof iteratee>, T[]> => {\n\treturn arr.reduce(\n\t\t(acc: { [key: ReturnType<typeof iteratee>]: T[] }, curr, index, arr) => {\n\t\t\tconst key = iteratee(curr, index, arr);\n\t\t\tif (!(key in acc)) {\n\t\t\t\tacc[key] = [];\n\t\t\t}\n\t\t\tacc[key].push(curr);\n\t\t\treturn acc;\n\t\t},\n\t\t{}\n\t);\n};\n"],"names":["groupBy","arr","iteratee","acc","curr","index","key"],"mappings":"AAIa,MAAAA,IAAU,CACtBC,GACAC,MAEOD,EAAI;AAAA,EACV,CAACE,GAAkDC,GAAMC,GAAOJ,MAAQ;AACvE,UAAMK,IAAMJ,EAASE,GAAMC,GAAOJ,CAAG;AACjC,WAAEK,KAAOH,MACRA,EAAAG,CAAG,IAAI,KAERH,EAAAG,CAAG,EAAE,KAAKF,CAAI,GACXD;AAAA,EACR;AAAA,EACA,CAAC;AAAA;"}
package/dist/index211.js CHANGED
@@ -1,9 +1,5 @@
1
- const o = (e, t = 50) => new Promise((r) => {
2
- const n = setInterval(() => {
3
- e() && (clearInterval(n), r());
4
- }, t);
5
- });
1
+ const e = (t) => t[t.length - 1];
6
2
  export {
7
- o as waitFor
3
+ e as last
8
4
  };
9
5
  //# sourceMappingURL=index211.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index211.js","sources":["../src/utilities/functions/waitFor.ts"],"sourcesContent":["/** Wait until iteratee returns true to resolve the promise */\nexport const waitFor: (\n\titeratee: () => boolean,\n\tinterval?: number\n) => Promise<void> = (iteratee, interval = 50) =>\n\tnew Promise((resolve) => {\n\t\tconst i = setInterval(() => {\n\t\t\tif (iteratee()) {\n\t\t\t\tclearInterval(i);\n\t\t\t\tresolve();\n\t\t\t}\n\t\t}, interval);\n\t});\n"],"names":["waitFor","iteratee","interval","resolve","i"],"mappings":"AACa,MAAAA,IAGQ,CAACC,GAAUC,IAAW,OAC1C,IAAI,QAAQ,CAACC,MAAY;AAClB,QAAAC,IAAI,YAAY,MAAM;AAC3B,IAAIH,QACH,cAAcG,CAAC,GACPD;KAEPD,CAAQ;AACZ,CAAC;"}
1
+ {"version":3,"file":"index211.js","sources":["../src/utilities/functions/last.ts"],"sourcesContent":["/** Takes an array and returns the last element of it */\nexport const last = <T>(arr: T[]) => arr[arr.length - 1];\n"],"names":["last","arr"],"mappings":"AACO,MAAMA,IAAO,CAAIC,MAAaA,EAAIA,EAAI,SAAS,CAAC;"}
package/dist/index212.js CHANGED
@@ -1,7 +1,371 @@
1
- import { curry as e } from "./index240.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
1
+ import { shift as P, flip as tt, arrow as et, computePosition as ot } from "./index217.js";
2
+ import { detectOverflow as At, offset as Nt } from "./index217.js";
3
+ import { createCoords as x, rectToClientRect as q, round as N, floor as A, max as T, min as I } from "./index245.js";
4
+ import { getOverflowAncestors as V, isElement as b, getWindow as E, getComputedStyle as y, getDocumentElement as C, isHTMLElement as R, isWebKit as U, getNodeName as W, isOverflowElement as S, getNodeScroll as D, isTableElement as nt, isContainingBlock as K, getContainingBlock as it, getParentNode as z, isLastTraversableNode as X } from "./index246.js";
5
+ function j(t) {
6
+ const e = y(t);
7
+ let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
8
+ const s = R(t), c = s ? t.offsetWidth : n, i = s ? t.offsetHeight : o, r = N(n) !== c || N(o) !== i;
9
+ return r && (n = c, o = i), {
10
+ width: n,
11
+ height: o,
12
+ $: r
13
+ };
14
+ }
15
+ function $(t) {
16
+ return b(t) ? t : t.contextElement;
17
+ }
18
+ function F(t) {
19
+ const e = $(t);
20
+ if (!R(e))
21
+ return x(1);
22
+ const n = e.getBoundingClientRect(), {
23
+ width: o,
24
+ height: s,
25
+ $: c
26
+ } = j(e);
27
+ let i = (c ? N(n.width) : n.width) / o, r = (c ? N(n.height) : n.height) / s;
28
+ return (!i || !Number.isFinite(i)) && (i = 1), (!r || !Number.isFinite(r)) && (r = 1), {
29
+ x: i,
30
+ y: r
31
+ };
32
+ }
33
+ const st = /* @__PURE__ */ x(0);
34
+ function G(t) {
35
+ const e = E(t);
36
+ return !U() || !e.visualViewport ? st : {
37
+ x: e.visualViewport.offsetLeft,
38
+ y: e.visualViewport.offsetTop
39
+ };
40
+ }
41
+ function rt(t, e, n) {
42
+ return e === void 0 && (e = !1), !n || e && n !== E(t) ? !1 : e;
43
+ }
44
+ function L(t, e, n, o) {
45
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
46
+ const s = t.getBoundingClientRect(), c = $(t);
47
+ let i = x(1);
48
+ e && (o ? b(o) && (i = F(o)) : i = F(t));
49
+ const r = rt(c, n, o) ? G(c) : x(0);
50
+ let l = (s.left + r.x) / i.x, f = (s.top + r.y) / i.y, u = s.width / i.x, h = s.height / i.y;
51
+ if (c) {
52
+ const w = E(c), g = o && b(o) ? E(o) : o;
53
+ let v = w, a = v.frameElement;
54
+ for (; a && o && g !== v; ) {
55
+ const p = F(a), d = a.getBoundingClientRect(), m = y(a), O = d.left + (a.clientLeft + parseFloat(m.paddingLeft)) * p.x, B = d.top + (a.clientTop + parseFloat(m.paddingTop)) * p.y;
56
+ l *= p.x, f *= p.y, u *= p.x, h *= p.y, l += O, f += B, v = E(a), a = v.frameElement;
57
+ }
58
+ }
59
+ return q({
60
+ width: u,
61
+ height: h,
62
+ x: l,
63
+ y: f
64
+ });
65
+ }
66
+ const ct = [":popover-open", ":modal"];
67
+ function J(t) {
68
+ return ct.some((e) => {
69
+ try {
70
+ return t.matches(e);
71
+ } catch {
72
+ return !1;
73
+ }
74
+ });
75
+ }
76
+ function lt(t) {
77
+ let {
78
+ elements: e,
79
+ rect: n,
80
+ offsetParent: o,
81
+ strategy: s
82
+ } = t;
83
+ const c = s === "fixed", i = C(o), r = e ? J(e.floating) : !1;
84
+ if (o === i || r && c)
85
+ return n;
86
+ let l = {
87
+ scrollLeft: 0,
88
+ scrollTop: 0
89
+ }, f = x(1);
90
+ const u = x(0), h = R(o);
91
+ if ((h || !h && !c) && ((W(o) !== "body" || S(i)) && (l = D(o)), R(o))) {
92
+ const w = L(o);
93
+ f = F(o), u.x = w.x + o.clientLeft, u.y = w.y + o.clientTop;
94
+ }
95
+ return {
96
+ width: n.width * f.x,
97
+ height: n.height * f.y,
98
+ x: n.x * f.x - l.scrollLeft * f.x + u.x,
99
+ y: n.y * f.y - l.scrollTop * f.y + u.y
100
+ };
101
+ }
102
+ function ft(t) {
103
+ return Array.from(t.getClientRects());
104
+ }
105
+ function Q(t) {
106
+ return L(C(t)).left + D(t).scrollLeft;
107
+ }
108
+ function ut(t) {
109
+ const e = C(t), n = D(t), o = t.ownerDocument.body, s = T(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), c = T(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
110
+ let i = -n.scrollLeft + Q(t);
111
+ const r = -n.scrollTop;
112
+ return y(o).direction === "rtl" && (i += T(e.clientWidth, o.clientWidth) - s), {
113
+ width: s,
114
+ height: c,
115
+ x: i,
116
+ y: r
117
+ };
118
+ }
119
+ function ht(t, e) {
120
+ const n = E(t), o = C(t), s = n.visualViewport;
121
+ let c = o.clientWidth, i = o.clientHeight, r = 0, l = 0;
122
+ if (s) {
123
+ c = s.width, i = s.height;
124
+ const f = U();
125
+ (!f || f && e === "fixed") && (r = s.offsetLeft, l = s.offsetTop);
126
+ }
127
+ return {
128
+ width: c,
129
+ height: i,
130
+ x: r,
131
+ y: l
132
+ };
133
+ }
134
+ function at(t, e) {
135
+ const n = L(t, !0, e === "fixed"), o = n.top + t.clientTop, s = n.left + t.clientLeft, c = R(t) ? F(t) : x(1), i = t.clientWidth * c.x, r = t.clientHeight * c.y, l = s * c.x, f = o * c.y;
136
+ return {
137
+ width: i,
138
+ height: r,
139
+ x: l,
140
+ y: f
141
+ };
142
+ }
143
+ function _(t, e, n) {
144
+ let o;
145
+ if (e === "viewport")
146
+ o = ht(t, n);
147
+ else if (e === "document")
148
+ o = ut(C(t));
149
+ else if (b(e))
150
+ o = at(e, n);
151
+ else {
152
+ const s = G(t);
153
+ o = {
154
+ ...e,
155
+ x: e.x - s.x,
156
+ y: e.y - s.y
157
+ };
158
+ }
159
+ return q(o);
160
+ }
161
+ function Y(t, e) {
162
+ const n = z(t);
163
+ return n === e || !b(n) || X(n) ? !1 : y(n).position === "fixed" || Y(n, e);
164
+ }
165
+ function dt(t, e) {
166
+ const n = e.get(t);
167
+ if (n)
168
+ return n;
169
+ let o = V(t, [], !1).filter((r) => b(r) && W(r) !== "body"), s = null;
170
+ const c = y(t).position === "fixed";
171
+ let i = c ? z(t) : t;
172
+ for (; b(i) && !X(i); ) {
173
+ const r = y(i), l = K(i);
174
+ !l && r.position === "fixed" && (s = null), (c ? !l && !s : !l && r.position === "static" && !!s && ["absolute", "fixed"].includes(s.position) || S(i) && !l && Y(t, i)) ? o = o.filter((u) => u !== i) : s = r, i = z(i);
175
+ }
176
+ return e.set(t, o), o;
177
+ }
178
+ function gt(t) {
179
+ let {
180
+ element: e,
181
+ boundary: n,
182
+ rootBoundary: o,
183
+ strategy: s
184
+ } = t;
185
+ const i = [...n === "clippingAncestors" ? dt(e, this._c) : [].concat(n), o], r = i[0], l = i.reduce((f, u) => {
186
+ const h = _(e, u, s);
187
+ return f.top = T(h.top, f.top), f.right = I(h.right, f.right), f.bottom = I(h.bottom, f.bottom), f.left = T(h.left, f.left), f;
188
+ }, _(e, r, s));
189
+ return {
190
+ width: l.right - l.left,
191
+ height: l.bottom - l.top,
192
+ x: l.left,
193
+ y: l.top
194
+ };
195
+ }
196
+ function pt(t) {
197
+ const {
198
+ width: e,
199
+ height: n
200
+ } = j(t);
201
+ return {
202
+ width: e,
203
+ height: n
204
+ };
205
+ }
206
+ function mt(t, e, n) {
207
+ const o = R(e), s = C(e), c = n === "fixed", i = L(t, !0, c, e);
208
+ let r = {
209
+ scrollLeft: 0,
210
+ scrollTop: 0
211
+ };
212
+ const l = x(0);
213
+ if (o || !o && !c)
214
+ if ((W(e) !== "body" || S(s)) && (r = D(e)), o) {
215
+ const h = L(e, !0, c, e);
216
+ l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
217
+ } else
218
+ s && (l.x = Q(s));
219
+ const f = i.left + r.scrollLeft - l.x, u = i.top + r.scrollTop - l.y;
220
+ return {
221
+ x: f,
222
+ y: u,
223
+ width: i.width,
224
+ height: i.height
225
+ };
226
+ }
227
+ function k(t, e) {
228
+ return !R(t) || y(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
229
+ }
230
+ function Z(t, e) {
231
+ const n = E(t);
232
+ if (!R(t) || J(t))
233
+ return n;
234
+ let o = k(t, e);
235
+ for (; o && nt(o) && y(o).position === "static"; )
236
+ o = k(o, e);
237
+ return o && (W(o) === "html" || W(o) === "body" && y(o).position === "static" && !K(o)) ? n : o || it(t) || n;
238
+ }
239
+ const wt = async function(t) {
240
+ const e = this.getOffsetParent || Z, n = this.getDimensions;
241
+ return {
242
+ reference: mt(t.reference, await e(t.floating), t.strategy),
243
+ floating: {
244
+ x: 0,
245
+ y: 0,
246
+ ...await n(t.floating)
247
+ }
248
+ };
249
+ };
250
+ function yt(t) {
251
+ return y(t).direction === "rtl";
252
+ }
253
+ const vt = {
254
+ convertOffsetParentRelativeRectToViewportRelativeRect: lt,
255
+ getDocumentElement: C,
256
+ getClippingRect: gt,
257
+ getOffsetParent: Z,
258
+ getElementRects: wt,
259
+ getClientRects: ft,
260
+ getDimensions: pt,
261
+ getScale: F,
262
+ isElement: b,
263
+ isRTL: yt
264
+ };
265
+ function xt(t, e) {
266
+ let n = null, o;
267
+ const s = C(t);
268
+ function c() {
269
+ var r;
270
+ clearTimeout(o), (r = n) == null || r.disconnect(), n = null;
271
+ }
272
+ function i(r, l) {
273
+ r === void 0 && (r = !1), l === void 0 && (l = 1), c();
274
+ const {
275
+ left: f,
276
+ top: u,
277
+ width: h,
278
+ height: w
279
+ } = t.getBoundingClientRect();
280
+ if (r || e(), !h || !w)
281
+ return;
282
+ const g = A(u), v = A(s.clientWidth - (f + h)), a = A(s.clientHeight - (u + w)), p = A(f), m = {
283
+ rootMargin: -g + "px " + -v + "px " + -a + "px " + -p + "px",
284
+ threshold: T(0, I(1, l)) || 1
285
+ };
286
+ let O = !0;
287
+ function B(M) {
288
+ const H = M[0].intersectionRatio;
289
+ if (H !== l) {
290
+ if (!O)
291
+ return i();
292
+ H ? i(!1, H) : o = setTimeout(() => {
293
+ i(!1, 1e-7);
294
+ }, 100);
295
+ }
296
+ O = !1;
297
+ }
298
+ try {
299
+ n = new IntersectionObserver(B, {
300
+ ...m,
301
+ // Handle <iframe>s
302
+ root: s.ownerDocument
303
+ });
304
+ } catch {
305
+ n = new IntersectionObserver(B, m);
306
+ }
307
+ n.observe(t);
308
+ }
309
+ return i(!0), c;
310
+ }
311
+ function Ot(t, e, n, o) {
312
+ o === void 0 && (o = {});
313
+ const {
314
+ ancestorScroll: s = !0,
315
+ ancestorResize: c = !0,
316
+ elementResize: i = typeof ResizeObserver == "function",
317
+ layoutShift: r = typeof IntersectionObserver == "function",
318
+ animationFrame: l = !1
319
+ } = o, f = $(t), u = s || c ? [...f ? V(f) : [], ...V(e)] : [];
320
+ u.forEach((d) => {
321
+ s && d.addEventListener("scroll", n, {
322
+ passive: !0
323
+ }), c && d.addEventListener("resize", n);
324
+ });
325
+ const h = f && r ? xt(f, n) : null;
326
+ let w = -1, g = null;
327
+ i && (g = new ResizeObserver((d) => {
328
+ let [m] = d;
329
+ m && m.target === f && g && (g.unobserve(e), cancelAnimationFrame(w), w = requestAnimationFrame(() => {
330
+ var O;
331
+ (O = g) == null || O.observe(e);
332
+ })), n();
333
+ }), f && !l && g.observe(f), g.observe(e));
334
+ let v, a = l ? L(t) : null;
335
+ l && p();
336
+ function p() {
337
+ const d = L(t);
338
+ a && (d.x !== a.x || d.y !== a.y || d.width !== a.width || d.height !== a.height) && n(), a = d, v = requestAnimationFrame(p);
339
+ }
340
+ return n(), () => {
341
+ var d;
342
+ u.forEach((m) => {
343
+ s && m.removeEventListener("scroll", n), c && m.removeEventListener("resize", n);
344
+ }), h == null || h(), (d = g) == null || d.disconnect(), g = null, l && cancelAnimationFrame(v);
345
+ };
346
+ }
347
+ const Et = P, Lt = tt, Tt = et, Ft = (t, e, n) => {
348
+ const o = /* @__PURE__ */ new Map(), s = {
349
+ platform: vt,
350
+ ...n
351
+ }, c = {
352
+ ...s.platform,
353
+ _c: o
354
+ };
355
+ return ot(t, e, {
356
+ ...s,
357
+ platform: c
358
+ });
359
+ };
3
360
  export {
4
- t as baseWhen,
5
- s as when
361
+ Tt as arrow,
362
+ Ot as autoUpdate,
363
+ Ft as computePosition,
364
+ At as detectOverflow,
365
+ Lt as flip,
366
+ V as getOverflowAncestors,
367
+ Nt as offset,
368
+ vt as platform,
369
+ Et as shift
6
370
  };
7
371
  //# sourceMappingURL=index212.js.map