bitboss-ui 0.2.70 → 0.2.72

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 (144) hide show
  1. package/dist/index101.js +2 -2
  2. package/dist/index103.js +2 -2
  3. package/dist/index109.js +1 -1
  4. package/dist/index11.js +2 -2
  5. package/dist/index111.js +4 -4
  6. package/dist/index113.js +1 -1
  7. package/dist/index116.js +1 -1
  8. package/dist/index117.js +1 -1
  9. package/dist/index118.js +1 -1
  10. package/dist/index119.js +1 -1
  11. package/dist/index121.js +1 -1
  12. package/dist/index125.js +1 -1
  13. package/dist/index126.js +1 -1
  14. package/dist/index127.js +1 -1
  15. package/dist/index131.js +2 -2
  16. package/dist/index15.js +8 -8
  17. package/dist/index17.js +9 -9
  18. package/dist/index19.js +3 -3
  19. package/dist/index196.js +2 -2
  20. package/dist/index196.js.map +1 -1
  21. package/dist/index197.js +235 -2
  22. package/dist/index197.js.map +1 -1
  23. package/dist/index198.js +10 -2
  24. package/dist/index198.js.map +1 -1
  25. package/dist/index199.js +2 -235
  26. package/dist/index199.js.map +1 -1
  27. package/dist/index200.js +4 -2
  28. package/dist/index200.js.map +1 -1
  29. package/dist/index201.js +3 -5
  30. package/dist/index201.js.map +1 -1
  31. package/dist/index202.js +3 -16
  32. package/dist/index202.js.map +1 -1
  33. package/dist/index203.js +5 -16
  34. package/dist/index203.js.map +1 -1
  35. package/dist/index204.js +15 -18
  36. package/dist/index204.js.map +1 -1
  37. package/dist/index205.js +13 -17
  38. package/dist/index205.js.map +1 -1
  39. package/dist/index206.js +18 -28
  40. package/dist/index206.js.map +1 -1
  41. package/dist/index207.js +20 -8
  42. package/dist/index207.js.map +1 -1
  43. package/dist/index208.js +29 -2
  44. package/dist/index208.js.map +1 -1
  45. package/dist/index209.js +8 -121
  46. package/dist/index209.js.map +1 -1
  47. package/dist/index21.js +2 -2
  48. package/dist/index210.js +2 -2
  49. package/dist/index210.js.map +1 -1
  50. package/dist/index211.js +3 -6
  51. package/dist/index211.js.map +1 -1
  52. package/dist/index212.js +35 -4
  53. package/dist/index212.js.map +1 -1
  54. package/dist/index213.js +6 -368
  55. package/dist/index213.js.map +1 -1
  56. package/dist/index214.js +345 -350
  57. package/dist/index214.js.map +1 -1
  58. package/dist/index215.js +134 -3
  59. package/dist/index215.js.map +1 -1
  60. package/dist/index216.js +2 -3
  61. package/dist/index216.js.map +1 -1
  62. package/dist/index217.js +174 -3
  63. package/dist/index217.js.map +1 -1
  64. package/dist/index218.js +23 -35
  65. package/dist/index218.js.map +1 -1
  66. package/dist/index219.js +365 -126
  67. package/dist/index219.js.map +1 -1
  68. package/dist/index220.js +2 -174
  69. package/dist/index220.js.map +1 -1
  70. package/dist/index221.js +121 -23
  71. package/dist/index221.js.map +1 -1
  72. package/dist/index222.js +2 -10
  73. package/dist/index222.js.map +1 -1
  74. package/dist/index224.js +3 -3
  75. package/dist/index226.js +1 -1
  76. package/dist/index228.js +5 -295
  77. package/dist/index228.js.map +1 -1
  78. package/dist/index229.js +160 -6
  79. package/dist/index229.js.map +1 -1
  80. package/dist/index23.js +1 -1
  81. package/dist/index230.js +1 -4
  82. package/dist/index230.js.map +1 -1
  83. package/dist/index231.js +69 -2
  84. package/dist/index231.js.map +1 -1
  85. package/dist/index232.js +4 -2
  86. package/dist/index232.js.map +1 -1
  87. package/dist/index233.js +224 -2
  88. package/dist/index233.js.map +1 -1
  89. package/dist/index234.js +258 -2
  90. package/dist/index234.js.map +1 -1
  91. package/dist/index235.js +295 -2
  92. package/dist/index235.js.map +1 -1
  93. package/dist/index236.js +6 -160
  94. package/dist/index236.js.map +1 -1
  95. package/dist/index237.js +4 -1
  96. package/dist/index237.js.map +1 -1
  97. package/dist/index238.js +2 -69
  98. package/dist/index238.js.map +1 -1
  99. package/dist/index239.js +2 -106
  100. package/dist/index239.js.map +1 -1
  101. package/dist/index240.js +2 -4
  102. package/dist/index240.js.map +1 -1
  103. package/dist/index241.js +2 -5
  104. package/dist/index241.js.map +1 -1
  105. package/dist/index242.js +2 -2
  106. package/dist/index243.js +430 -219
  107. package/dist/index243.js.map +1 -1
  108. package/dist/index244.js +83 -252
  109. package/dist/index244.js.map +1 -1
  110. package/dist/index245.js +2 -117
  111. package/dist/index245.js.map +1 -1
  112. package/dist/index246.js +110 -428
  113. package/dist/index246.js.map +1 -1
  114. package/dist/index247.js +105 -88
  115. package/dist/index247.js.map +1 -1
  116. package/dist/index249.js +2 -2
  117. package/dist/index25.js +2 -2
  118. package/dist/index250.js +15 -4
  119. package/dist/index250.js.map +1 -1
  120. package/dist/index251.js +4 -4
  121. package/dist/index251.js.map +1 -1
  122. package/dist/index252.js +4 -61
  123. package/dist/index252.js.map +1 -1
  124. package/dist/index253.js +60 -14
  125. package/dist/index253.js.map +1 -1
  126. package/dist/index254.js +3 -2
  127. package/dist/index254.js.map +1 -1
  128. package/dist/index255.js +2 -3
  129. package/dist/index255.js.map +1 -1
  130. package/dist/index29.js +3 -3
  131. package/dist/index31.js +8 -8
  132. package/dist/index33.js +2 -2
  133. package/dist/index35.js +2 -2
  134. package/dist/index47.js +1 -1
  135. package/dist/index49.js +1 -1
  136. package/dist/index65.js +4 -4
  137. package/dist/index72.js +1 -1
  138. package/dist/index75.js +1 -1
  139. package/dist/index79.js +4 -4
  140. package/dist/index81.js +1 -1
  141. package/dist/index99.js +47 -47
  142. package/dist/index99.js.map +1 -1
  143. package/dist/style.css +1 -1
  144. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index235.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index235.js","sources":["../node_modules/dayjs/dayjs.min.js"],"sourcesContent":["!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));"],"names":["t","e","module","this","n","r","i","s","u","a","o","c","f","h","d","l","$","y","M","m","v","g","p","S","_","w","O","b","D","k"],"mappings":";;;;;AAAA,KAAC,SAASA,GAAEC,GAAE;AAAsD,MAAAC,YAAeD,EAAmH;AAAA,IAAA,GAAEE,GAAM,WAAU;AAAc,UAAIH,IAAE,KAAIC,IAAE,KAAIG,IAAE,MAAKC,IAAE,eAAcC,IAAE,UAASC,IAAE,UAASC,IAAE,QAAOC,IAAE,OAAMC,IAAE,QAAOC,IAAE,SAAQC,IAAE,WAAUC,IAAE,QAAOC,IAAE,QAAOC,IAAE,gBAAeC,IAAE,8FAA6FC,IAAE,uFAAsFC,IAAE,EAAC,MAAK,MAAK,UAAS,2DAA2D,MAAM,GAAG,GAAE,QAAO,wFAAwF,MAAM,GAAG,GAAE,SAAQ,SAASlB,GAAE;AAAC,YAAIC,IAAE,CAAC,MAAK,MAAK,MAAK,IAAI,GAAEG,IAAEJ,IAAE;AAAI,eAAM,MAAIA,KAAGC,GAAGG,IAAE,MAAI,EAAE,KAAGH,EAAEG,CAAC,KAAGH,EAAE,CAAC,KAAG;AAAA,MAAG,EAAC,GAAEkB,IAAE,SAASnB,GAAEC,GAAEG,GAAE;AAAC,YAAI,IAAE,OAAOJ,CAAC;AAAE,eAAM,CAAC,KAAG,EAAE,UAAQC,IAAED,IAAE,KAAG,MAAMC,IAAE,IAAE,EAAE,MAAM,EAAE,KAAKG,CAAC,IAAEJ;AAAA,MAAC,GAAEoB,IAAE,EAAC,GAAED,GAAE,GAAE,SAASnB,GAAE;AAAC,YAAIC,IAAE,CAACD,EAAE,UAAS,GAAGI,IAAE,KAAK,IAAIH,CAAC,GAAE,IAAE,KAAK,MAAMG,IAAE,EAAE,GAAEE,IAAEF,IAAE;AAAG,gBA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AI0B,EAAE,SAAO,SAAS1B,GAAEC,GAAE;AAAC,eAAOD,EAAE,OAAKA,EAAEC,GAAEuB,GAAEE,CAAC,GAAE1B,EAAE,KAAG,KAAI0B;AAAA,MAAC,GAAEA,EAAE,SAAOD,GAAEC,EAAE,UAAQH,GAAEG,EAAE,OAAK,SAAS1B,GAAE;AAAC,eAAO0B,EAAE,MAAI1B,CAAC;AAAA,MAAC,GAAE0B,EAAE,KAAG,EAAEL,CAAC,GAAEK,EAAE,KAAG,GAAEA,EAAE,IAAE,IAAGA;AAAA,IAAC,CAAC;AAAA;;","x_google_ignoreList":[0]}
package/dist/index236.js CHANGED
@@ -1,163 +1,9 @@
1
- import { defineComponent as K, ref as s, computed as y, openBlock as p, createElementBlock as m, normalizeClass as g, renderSlot as v, createElementVNode as k, Fragment as E, renderList as C, toDisplayString as B, createBlock as S, withDirectives as z, mergeProps as H, vModelDynamic as J } from "vue";
2
- import { clamp as P } from "./index200.js";
3
- import { drop as q } from "./index256.js";
4
- import { isNil as R } from "./index120.js";
5
- import { isNotNil as w } from "./index124.js";
6
- import { wait as L } from "./index122.js";
7
- import U from "./index115.js";
8
- import "./index158.js";
9
- const j = { class: "bb-base-tag__input-container" }, G = ["id", "autocomplete", "autofocus", "disabled", "placeholder", "readonly"], te = /* @__PURE__ */ K({
10
- __name: "BaseTag",
11
- props: {
12
- autocomplete: {},
13
- autofocus: {},
14
- comma: { type: Boolean },
15
- disabled: { type: Boolean },
16
- divider: { default: "Enter" },
17
- hasErrors: { type: Boolean },
18
- id: {},
19
- modelValue: {},
20
- multiple: { type: Boolean, default: !0 },
21
- name: {},
22
- placeholder: {},
23
- readonly: {}
24
- },
25
- emits: ["blur", "change", "click", "duplicate", "focus", "inactive", "input", "keydown", "keyup", "update:modelValue"],
26
- setup(N, { emit: I }) {
27
- const a = N, u = I;
28
- if (a.multiple && !Array.isArray(a.modelValue))
29
- throw new Error('Multiple is set to "true" but modelValue is not an array.');
30
- const i = s(null), $ = s(null), c = s(null), t = s(""), D = y(() => a.placeholder), o = y(
31
- () => [].concat(a.modelValue).filter(w)
32
- ), h = y(() => {
33
- let e = {};
34
- return o.value.forEach((n, r) => {
35
- e[JSON.stringify(n)] = r;
36
- }), {
37
- get: (n) => e[JSON.stringify(n)]
38
- };
39
- }), f = s(!1), l = s(null), A = (e) => {
40
- if (u("keyup", e), a.readonly || a.disabled) {
41
- e.preventDefault();
42
- return;
43
- }
44
- if (e.key === a.divider) {
45
- if (t.value[t.value.length - 1] === e.key && (t.value = t.value.slice(0, t.value.length - 1)), !t.value)
46
- return;
47
- l.value = null;
48
- const n = h.value.get(t.value);
49
- R(n) ? F(t.value) : u("duplicate", t.value), t.value = "";
50
- } else if (e.key === "ArrowLeft")
51
- l.value === null ? l.value = o.value.length - 1 : l.value === 0 ? l.value = null : l.value--;
52
- else if (e.key === "ArrowRight")
53
- l.value === null ? l.value = 1 : l.value === o.value.length - 1 ? l.value = null : l.value++;
54
- else if (e.key === "Backspace") {
55
- if (t.value)
56
- return;
57
- w(l.value) ? (b(l.value), l.value = P(
58
- l.value,
59
- 0,
60
- o.value.length - 2
61
- ), o.value.length === 1 && (l.value = null)) : l.value = o.value.length - 1;
62
- } else
63
- (e.key === "Tab" || e.key === "Escape") && (l.value = null);
64
- }, F = (e) => {
65
- a.multiple ? u("update:modelValue", a.modelValue.concat(e)) : u("update:modelValue", e);
66
- }, b = (e) => {
67
- if (typeof e == "number")
68
- a.multiple ? u("update:modelValue", q(a.modelValue, 1, e)) : u("update:modelValue", null);
69
- else {
70
- const n = h.value.get(t.value);
71
- b(n);
72
- }
73
- }, M = (e) => {
74
- u("focus", e), f.value = !0, document.addEventListener("click", _), document.addEventListener("focusin", V), c.value instanceof HTMLInputElement && c.value.select();
75
- }, O = (e) => {
76
- u("click", e), !(a.disabled || a.readonly) && c.value instanceof HTMLElement && c.value.focus();
77
- }, _ = (e) => {
78
- if (e.target instanceof Node && i.value && !i.value.contains(e.target)) {
79
- u("inactive"), document.removeEventListener("click", _), f.value = !1, a.multiple && L(500).then(() => {
80
- t.value = "";
81
- });
82
- return;
83
- }
84
- }, V = (e) => {
85
- if (e.target instanceof Node && i.value && !i.value.contains(e.target)) {
86
- u("inactive"), document.removeEventListener("focusin", V), f.value = !1, a.multiple && L(500).then(() => {
87
- t.value = "";
88
- });
89
- return;
90
- }
91
- }, T = {
92
- onBlur: (e) => u("blur", e),
93
- onChange: (e) => u("change", e),
94
- onKeydown: (e) => {
95
- e.key === "Enter" && a.divider === "Enter" && e.preventDefault(), u("keydown", e);
96
- },
97
- onInput: (e) => u("input", e)
98
- };
99
- return (e, n) => (p(), m("span", {
100
- ref_key: "outerContainer",
101
- ref: i,
102
- class: g({
103
- "bb-base-tag": !0,
104
- "bb-base-tag--active": f.value,
105
- "bb-base-tag--disabled": e.disabled,
106
- "bb-base-tag--errors": e.hasErrors,
107
- "bb-base-tag--readonly": e.readonly
108
- }),
109
- onClick: O
110
- }, [
111
- v(e.$slots, "prepend-outer"),
112
- k("span", {
113
- ref_key: "innerContainer",
114
- ref: $,
115
- class: "bb-base-tag__inner-container"
116
- }, [
117
- v(e.$slots, "prepend"),
118
- k("span", j, [
119
- e.comma ? (p(!0), m(E, { key: 0 }, C(o.value, (r, d) => (p(), m("span", {
120
- key: r,
121
- class: g({
122
- "bb-base-tag__selected": !0,
123
- "bb-base-tag__selected--comma": !0,
124
- "bb-base-tag__selected--focused": d === l.value
125
- })
126
- }, B(r) + B(d < o.value.length - 1 ? "," : ""), 3))), 128)) : (p(!0), m(E, { key: 1 }, C(o.value, (r, d) => (p(), S(U, {
127
- key: r,
128
- class: g({
129
- "bb-base-tag__selected": !0,
130
- "bb-base-tag__selected--chip": !0,
131
- "bb-base-tag__selected--focused": d === l.value
132
- }),
133
- clearable: !0,
134
- text: r,
135
- "onClick:clear": (Q) => b(d)
136
- }, null, 8, ["class", "text", "onClick:clear"]))), 128)),
137
- z(k("input", H({ id: e.id }, T, {
138
- ref_key: "input",
139
- ref: c,
140
- "onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r),
141
- autocomplete: e.autocomplete,
142
- autofocus: e.autofocus,
143
- class: "bb-base-tag__text-input",
144
- disabled: e.disabled,
145
- placeholder: D.value,
146
- readonly: e.readonly,
147
- type: "text",
148
- onFocus: M,
149
- onKeyup: A
150
- }), null, 16, G), [
151
- [J, t.value]
152
- ])
153
- ]),
154
- v(e.$slots, "append")
155
- ], 512),
156
- v(e.$slots, "append-outer")
157
- ], 2));
158
- }
159
- });
1
+ var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function l(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
160
5
  export {
161
- te as default
6
+ o as commonjsGlobal,
7
+ l as getDefaultExportFromCjs
162
8
  };
163
9
  //# sourceMappingURL=index236.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index236.js","sources":["../src/components/BaseTag/BaseTag.vue"],"sourcesContent":["<template>\n\t<span\n\t\tref=\"outerContainer\"\n\t\t:class=\"{\n\t\t\t'bb-base-tag': true,\n\t\t\t'bb-base-tag--active': active,\n\t\t\t'bb-base-tag--disabled': disabled,\n\t\t\t'bb-base-tag--errors': hasErrors,\n\t\t\t'bb-base-tag--readonly': readonly,\n\t\t}\"\n\t\t@click=\"onOuterContainerClick\"\n\t>\n\t\t<slot name=\"prepend-outer\"></slot>\n\t\t<span ref=\"innerContainer\" class=\"bb-base-tag__inner-container\">\n\t\t\t<slot name=\"prepend\"></slot>\n\t\t\t<span class=\"bb-base-tag__input-container\">\n\t\t\t\t<template v-if=\"comma\">\n\t\t\t\t\t<span\n\t\t\t\t\t\tv-for=\"(option, index) in modelValueNormalized\"\n\t\t\t\t\t\t:key=\"option\"\n\t\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t\t'bb-base-tag__selected': true,\n\t\t\t\t\t\t\t'bb-base-tag__selected--comma': true,\n\t\t\t\t\t\t\t'bb-base-tag__selected--focused': index === focusedIndex,\n\t\t\t\t\t\t}\"\n\t\t\t\t\t\t>{{ option\n\t\t\t\t\t\t}}{{ index < modelValueNormalized.length - 1 ? ',' : '' }}</span\n\t\t\t\t\t>\n\t\t\t\t</template>\n\t\t\t\t<template v-else>\n\t\t\t\t\t<BbChip\n\t\t\t\t\t\tv-for=\"(option, index) in modelValueNormalized\"\n\t\t\t\t\t\t:key=\"option\"\n\t\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t\t'bb-base-tag__selected': true,\n\t\t\t\t\t\t\t'bb-base-tag__selected--chip': true,\n\t\t\t\t\t\t\t'bb-base-tag__selected--focused': index === focusedIndex,\n\t\t\t\t\t\t}\"\n\t\t\t\t\t\t:clearable=\"true\"\n\t\t\t\t\t\t:text=\"option\"\n\t\t\t\t\t\t@click:clear=\"removeValue(index)\"\n\t\t\t\t\t/>\n\t\t\t\t</template>\n\n\t\t\t\t<input\n\t\t\t\t\t:id=\"id\"\n\t\t\t\t\tv-bind=\"eventListeners\"\n\t\t\t\t\tref=\"input\"\n\t\t\t\t\tv-model=\"query\"\n\t\t\t\t\t:autocomplete=\"autocomplete\"\n\t\t\t\t\t:autofocus=\"autofocus\"\n\t\t\t\t\t:class=\"'bb-base-tag__text-input'\"\n\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t:placeholder=\"computedPlaceholder\"\n\t\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t\t:type=\"'text'\"\n\t\t\t\t\t@focus=\"onInputFocus\"\n\t\t\t\t\t@keyup=\"onInputKeyup\"\n\t\t\t\t/>\n\t\t\t</span>\n\t\t\t<slot name=\"append\"></slot>\n\t\t</span>\n\t\t<slot name=\"append-outer\"></slot>\n\t</span>\n</template>\n\n<script setup lang=\"ts\">\nimport { clamp } from '@/utilities/functions/clamp';\nimport { computed, ref } from 'vue';\nimport { drop } from '@/utilities/functions/drop';\nimport { isNil } from '@/utilities/functions/isNil';\nimport { isNotNil } from '@/utilities/functions/isNotNil';\nimport { wait } from '@/utilities/functions/wait';\nimport BbChip from '../BbChip/BbChip.vue';\nimport type { InputHTMLAttributes, HTMLAttributes } from 'vue';\n\nexport type BaseTagProps = {\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tautocomplete?: InputHTMLAttributes['autocomplete'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Sets the display model for selected values to a list\n\t * of comma separated string. In this mode the user\n\t * cannot deselect an option by pressing the close button.\n\t */\n\tcomma?: boolean;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * The divider key used to separate values from one another. By default it is \"Enter\"\n\t */\n\tdivider?: KeyboardEvent['key'];\n\n\t/**\n\t * Define if the component should be in an error state.\n\t * It usually attaches a CSS class for styling purposes.\n\t */\n\thasErrors?: boolean;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Used by v-model. Can be any serializable type.\n\t */\n\tmodelValue: any;\n\n\t/**\n\t * Allows the selection of multiple items.\n\t */\n\tmultiple?: boolean;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * String displayed when there's no data.\n\t */\n\tplaceholder?: InputHTMLAttributes['placeholder'];\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n};\n\nconst props = withDefaults(defineProps<BaseTagProps>(), {\n\tdivider: 'Enter',\n\tmultiple: true,\n});\n\nexport type BaseTagEvents = {\n\t(e: 'blur', event: FocusEvent): void;\n\n\t(e: 'change', event: Event): void;\n\n\t(e: 'click', event: MouseEvent): void;\n\n\t(e: 'duplicate', string: string): void;\n\n\t(e: 'focus', event: FocusEvent): void;\n\n\t(e: 'inactive'): void;\n\n\t(e: 'input', event: Event): void;\n\n\t(e: 'keydown', event: KeyboardEvent): void;\n\n\t(e: 'keyup', event: KeyboardEvent): void;\n\n\t(e: 'update:modelValue', value: any): void;\n};\n\nconst emit = defineEmits<BaseTagEvents>();\n\nexport type BaseTagSlots = {\n\tappend?: (props: object) => any;\n\n\t'append-outer'?: (props: object) => any;\n\n\tprepend?: (props: object) => any;\n\n\t'prepend-outer'?: (props: object) => any;\n};\n\ndefineSlots<BaseTagSlots>();\n\nif (props.multiple && !Array.isArray(props.modelValue)) {\n\tthrow new Error('Multiple is set to \"true\" but modelValue is not an array.');\n}\n\nconst outerContainer = ref<HTMLElement | null>(null);\nconst innerContainer = ref<HTMLElement | null>(null);\nconst input = ref<HTMLElement | null>(null);\nconst query = ref<string>('');\nconst computedPlaceholder = computed(() => {\n\treturn props.placeholder;\n});\n\nconst modelValueNormalized = computed(() =>\n\t[].concat(props.modelValue).filter(isNotNil)\n);\n\n/**\n * Indexes modelValue to a map so when can easily know which values are selected\n */\nconst modelValueIndexed = computed(() => {\n\tlet map: { [key: string]: number } = {};\n\tmodelValueNormalized.value.forEach((value: any, index: number) => {\n\t\tmap[JSON.stringify(value)] = index;\n\t});\n\treturn {\n\t\tget: (value: any) => map[JSON.stringify(value)],\n\t};\n});\n\n/**\n * Applies a class when the user is inside this whole component.\n * We cannot use focus within as it doesn't work for elements that are teleported.\n * Also we cannot use the <input/> if we phisically move focus to the options so\n * we track it manually.\n */\nconst active = ref(false);\n\nconst focusedIndex = ref<null | number>(null);\n\nconst onInputKeyup = (event: KeyboardEvent) => {\n\temit('keyup', event);\n\tif (props.readonly || props.disabled) {\n\t\tevent.preventDefault();\n\t\treturn;\n\t}\n\tif (event.key === props.divider) {\n\t\tif (query.value[query.value.length - 1] === event.key) {\n\t\t\tquery.value = query.value.slice(0, query.value.length - 1);\n\t\t}\n\t\tif (!query.value) return;\n\t\tfocusedIndex.value = null;\n\t\tconst currentIndex = modelValueIndexed.value.get(query.value);\n\t\tif (isNil(currentIndex)) selectValue(query.value);\n\t\telse emit('duplicate', query.value);\n\t\tquery.value = '';\n\t} else if (event.key === 'ArrowLeft') {\n\t\tif (focusedIndex.value === null)\n\t\t\tfocusedIndex.value = modelValueNormalized.value.length - 1;\n\t\telse if (focusedIndex.value === 0) focusedIndex.value = null;\n\t\telse focusedIndex.value--;\n\t} else if (event.key === 'ArrowRight') {\n\t\tif (focusedIndex.value === null) focusedIndex.value = 1;\n\t\telse if (focusedIndex.value === modelValueNormalized.value.length - 1)\n\t\t\tfocusedIndex.value = null;\n\t\telse focusedIndex.value++;\n\t} else if (event.key === 'Backspace') {\n\t\tif (query.value) return;\n\t\tif (isNotNil(focusedIndex.value)) {\n\t\t\tremoveValue(focusedIndex.value);\n\t\t\tfocusedIndex.value = clamp(\n\t\t\t\tfocusedIndex.value,\n\t\t\t\t0,\n\t\t\t\tmodelValueNormalized.value.length - 2\n\t\t\t);\n\t\t\tif (modelValueNormalized.value.length === 1) focusedIndex.value = null;\n\t\t} else focusedIndex.value = modelValueNormalized.value.length - 1;\n\t} else if (event.key === 'Tab' || event.key === 'Escape') {\n\t\tfocusedIndex.value = null;\n\t}\n};\n\nconst selectValue = (text: string) => {\n\tif (props.multiple) emit('update:modelValue', props.modelValue.concat(text));\n\telse emit('update:modelValue', text);\n};\n\nconst removeValue = (indexOrString: number | string) => {\n\tif (typeof indexOrString === 'number') {\n\t\tif (props.multiple)\n\t\t\temit('update:modelValue', drop(props.modelValue, 1, indexOrString));\n\t\telse emit('update:modelValue', null);\n\t} else {\n\t\tconst currentIndex = modelValueIndexed.value.get(query.value);\n\t\tremoveValue(currentIndex);\n\t}\n};\n\nconst onInputFocus = (event: FocusEvent) => {\n\temit('focus', event);\n\tactive.value = true;\n\tdocument.addEventListener('click', onClickOutside);\n\tdocument.addEventListener('focusin', onFocusOutside);\n\tif (input.value instanceof HTMLInputElement) input.value.select();\n};\n\n/**\n * When clicking on the outside container seamlessly move focus to the input and open the panel\n */\nconst onOuterContainerClick = (event: MouseEvent) => {\n\temit('click', event);\n\tif (props.disabled || props.readonly) return;\n\tif (input.value instanceof HTMLElement) {\n\t\tinput.value.focus();\n\t}\n};\n\n/**\n * On click outside of the container close the panel, remove active state.\n * In multiple selection clear query after a timeout\n */\nconst onClickOutside = (event: Event) => {\n\tif (event.target instanceof Node) {\n\t\tif (outerContainer.value) {\n\t\t\tif (!outerContainer.value.contains(event.target)) {\n\t\t\t\temit('inactive');\n\t\t\t\tdocument.removeEventListener('click', onClickOutside);\n\t\t\t\tactive.value = false;\n\t\t\t\tif (props.multiple)\n\t\t\t\t\twait(500).then(() => {\n\t\t\t\t\t\tquery.value = '';\n\t\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n};\n\nconst onFocusOutside = (event: FocusEvent) => {\n\tif (event.target instanceof Node) {\n\t\tif (outerContainer.value) {\n\t\t\tif (!outerContainer.value.contains(event.target)) {\n\t\t\t\temit('inactive');\n\t\t\t\tdocument.removeEventListener('focusin', onFocusOutside);\n\t\t\t\tactive.value = false;\n\t\t\t\tif (props.multiple)\n\t\t\t\t\twait(500).then(() => {\n\t\t\t\t\t\tquery.value = '';\n\t\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n};\n\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonChange: (event: Event) => emit('change', event),\n\tonKeydown: (event: KeyboardEvent) => {\n\t\tif (event.key === 'Enter' && props.divider === 'Enter') {\n\t\t\tevent.preventDefault();\n\t\t}\n\t\temit('keydown', event);\n\t},\n\tonInput: (event: Event) => emit('input', event),\n};\n</script>\n<style lang=\"postcss\">\n@import '@/assets/css/BaseTag';\n</style>\n"],"names":["props","__props","emit","__emit","outerContainer","ref","innerContainer","input","query","computedPlaceholder","computed","modelValueNormalized","isNotNil","modelValueIndexed","map","value","index","active","focusedIndex","onInputKeyup","event","currentIndex","isNil","selectValue","removeValue","clamp","text","indexOrString","drop","onInputFocus","onClickOutside","onFocusOutside","onOuterContainerClick","wait","eventListeners"],"mappings":";;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index236.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
package/dist/index237.js CHANGED
@@ -1,2 +1,5 @@
1
-
1
+ var a = { exports: {} };
2
+ export {
3
+ a as __module
4
+ };
2
5
  //# sourceMappingURL=index237.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index237.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index237.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index238.js CHANGED
@@ -1,72 +1,5 @@
1
- import { defineComponent as d, openBlock as s, createElementBlock as a, normalizeClass as b, createElementVNode as t, createBlock as i, createCommentVNode as o, toDisplayString as l, withCtx as p } from "vue";
2
- import h from "./index9.js";
3
- import "./index10.js";
4
- import u from "./index117.js";
5
- import "./index169.js";
6
- const k = { class: "bb-toast-message__icon-container" }, g = { class: "bb-toast-message__content" }, f = {
7
- key: 0,
8
- class: "bb-toast-message__title"
9
- }, C = { class: "bb-toast-message__text" }, v = { class: "bb-toast-message__close" }, w = /* @__PURE__ */ t("svg", {
10
- fill: "none",
11
- viewBox: "0 0 24 24",
12
- xmlns: "http://www.w3.org/2000/svg"
13
- }, [
14
- /* @__PURE__ */ t("path", {
15
- d: "M23 23L1 1M23 1L1 23",
16
- stroke: "currentColor",
17
- "stroke-linecap": "round",
18
- "stroke-width": "2"
19
- })
20
- ], -1), N = /* @__PURE__ */ d({
21
- __name: "BbToastMessage",
22
- props: {
23
- title: {},
24
- text: {},
25
- icon: {},
26
- theme: { default: "default" },
27
- id: {},
28
- showClose: { type: Boolean }
29
- },
30
- emits: ["click:close"],
31
- setup(n, { emit: c }) {
32
- const r = n, m = c, _ = () => {
33
- m("click:close", r.id);
34
- };
35
- return (e, y) => (s(), a("div", {
36
- "aria-atomic": "true",
37
- "aria-live": "assertive",
38
- "aria-role": "alert",
39
- class: b(["bb-toast-message", { [`bb-toast-message--${e.theme}`]: e.theme }])
40
- }, [
41
- t("div", k, [
42
- e.icon ? (s(), i(u, {
43
- key: 0,
44
- class: "bb-alert__icon",
45
- type: e.icon
46
- }, null, 8, ["type"])) : o("", !0)
47
- ]),
48
- t("div", g, [
49
- e.title ? (s(), a("p", f, l(e.title), 1)) : o("", !0),
50
- t("p", C, l(e.text), 1)
51
- ]),
52
- t("div", v, [
53
- e.showClose ? (s(), i(h, {
54
- key: 0,
55
- "aria-label": "Chiudi",
56
- block: "",
57
- class: "bb-toast-message__close-btn",
58
- onClick: _
59
- }, {
60
- default: p(() => [
61
- w
62
- ]),
63
- _: 1
64
- })) : o("", !0)
65
- ])
66
- ], 2));
67
- }
68
- });
1
+ var e = { exports: {} };
69
2
  export {
70
- N as default
3
+ e as __module
71
4
  };
72
5
  //# sourceMappingURL=index238.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index238.js","sources":["../src/components/BbToast/BbToastMessage.vue"],"sourcesContent":["<template>\n\t<div\n\t\taria-atomic=\"true\"\n\t\taria-live=\"assertive\"\n\t\taria-role=\"alert\"\n\t\tclass=\"bb-toast-message\"\n\t\t:class=\"{ [`bb-toast-message--${theme}`]: theme }\"\n\t>\n\t\t<div class=\"bb-toast-message__icon-container\">\n\t\t\t<BbIcon v-if=\"icon\" class=\"bb-alert__icon\" :type=\"icon\" />\n\t\t</div>\n\n\t\t<div class=\"bb-toast-message__content\">\n\t\t\t<p v-if=\"title\" class=\"bb-toast-message__title\">{{ title }}</p>\n\t\t\t<p class=\"bb-toast-message__text\">{{ text }}</p>\n\t\t</div>\n\t\t<div class=\"bb-toast-message__close\">\n\t\t\t<BaseButton\n\t\t\t\tv-if=\"showClose\"\n\t\t\t\t:aria-label=\"'Chiudi'\"\n\t\t\t\tblock\n\t\t\t\tclass=\"bb-toast-message__close-btn\"\n\t\t\t\t@click=\"onClickClose\"\n\t\t\t>\n\t\t\t\t<svg fill=\"none\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M23 23L1 1M23 1L1 23\"\n\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t</BaseButton>\n\t\t</div>\n\t</div>\n</template>\n\n<script setup lang=\"ts\">\nimport type { Message } from '../../composables/useToast';\nimport BaseButton from '../BaseButton/BaseButton.vue';\nimport BbIcon from '../BbIcon/BbIcon.vue';\n\nconst props = withDefaults(defineProps<Message>(), {\n\ttheme: 'default',\n});\ntype BbToastMessageEvents = {\n\t(e: 'click:close', id: Message['id']): void;\n};\nconst emit = defineEmits<BbToastMessageEvents>();\n\nconst onClickClose = () => {\n\temit('click:close', props.id);\n};\n</script>\n\n<style scoped></style>\n"],"names":["props","__props","emit","__emit","onClickClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,UAAMA,IAAQC,GAMRC,IAAOC,GAEPC,IAAe,MAAM;AACrB,MAAAF,EAAA,eAAeF,EAAM,EAAE;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index238.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index239.js CHANGED
@@ -1,109 +1,5 @@
1
- function l(n) {
2
- return a(n) ? (n.nodeName || "").toLowerCase() : "#document";
3
- }
4
- function i(n) {
5
- var t;
6
- return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
7
- }
8
- function y(n) {
9
- var t;
10
- return (t = (a(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
11
- }
12
- function a(n) {
13
- return n instanceof Node || n instanceof i(n).Node;
14
- }
15
- function S(n) {
16
- return n instanceof Element || n instanceof i(n).Element;
17
- }
18
- function d(n) {
19
- return n instanceof HTMLElement || n instanceof i(n).HTMLElement;
20
- }
21
- function s(n) {
22
- return typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
23
- }
24
- function m(n) {
25
- const {
26
- overflow: t,
27
- overflowX: e,
28
- overflowY: o,
29
- display: r
30
- } = p(n);
31
- return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
32
- }
33
- function E(n) {
34
- return ["table", "td", "th"].includes(l(n));
35
- }
36
- function N(n) {
37
- const t = h(), e = p(n);
38
- return e.transform !== "none" || e.perspective !== "none" || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
39
- }
40
- function T(n) {
41
- let t = u(n);
42
- for (; d(t) && !w(t); ) {
43
- if (N(t))
44
- return t;
45
- t = u(t);
46
- }
47
- return null;
48
- }
49
- function h() {
50
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
51
- }
52
- function w(n) {
53
- return ["html", "body", "#document"].includes(l(n));
54
- }
55
- function p(n) {
56
- return i(n).getComputedStyle(n);
57
- }
58
- function C(n) {
59
- return S(n) ? {
60
- scrollLeft: n.scrollLeft,
61
- scrollTop: n.scrollTop
62
- } : {
63
- scrollLeft: n.pageXOffset,
64
- scrollTop: n.pageYOffset
65
- };
66
- }
67
- function u(n) {
68
- if (l(n) === "html")
69
- return n;
70
- const t = (
71
- // Step into the shadow DOM of the parent of a slotted node.
72
- n.assignedSlot || // DOM Element detected.
73
- n.parentNode || // ShadowRoot detected.
74
- s(n) && n.host || // Fallback.
75
- y(n)
76
- );
77
- return s(t) ? t.host : t;
78
- }
79
- function g(n) {
80
- const t = u(n);
81
- return w(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : d(t) && m(t) ? t : g(t);
82
- }
83
- function f(n, t, e) {
84
- var o;
85
- t === void 0 && (t = []), e === void 0 && (e = !0);
86
- const r = g(n), b = r === ((o = n.ownerDocument) == null ? void 0 : o.body), c = i(r);
87
- return b ? t.concat(c, c.visualViewport || [], m(r) ? r : [], c.frameElement && e ? f(c.frameElement) : []) : t.concat(r, f(r, [], e));
88
- }
1
+ var e = { exports: {} };
89
2
  export {
90
- p as getComputedStyle,
91
- T as getContainingBlock,
92
- y as getDocumentElement,
93
- g as getNearestOverflowAncestor,
94
- l as getNodeName,
95
- C as getNodeScroll,
96
- f as getOverflowAncestors,
97
- u as getParentNode,
98
- i as getWindow,
99
- N as isContainingBlock,
100
- S as isElement,
101
- d as isHTMLElement,
102
- w as isLastTraversableNode,
103
- a as isNode,
104
- m as isOverflowElement,
105
- s as isShadowRoot,
106
- E as isTableElement,
107
- h as isWebKit
3
+ e as __module
108
4
  };
109
5
  //# sourceMappingURL=index239.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index239.js","sources":["../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"],"sourcesContent":["function getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n // Browsers without `ShadowRoot` support.\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isContainingBlock(element) {\n const webkit = isWebKit();\n const css = getComputedStyle(element);\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else {\n currentNode = getParentNode(currentNode);\n }\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nfunction isLastTraversableNode(node) {\n return ['html', 'body', '#document'].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.pageXOffset,\n scrollTop: element.pageYOffset\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isWebKit };\n"],"names":["getNodeName","node","isNode","getWindow","_node$ownerDocument","getDocumentElement","_ref","value","isElement","isHTMLElement","isShadowRoot","isOverflowElement","element","overflow","overflowX","overflowY","display","getComputedStyle","isTableElement","isContainingBlock","webkit","isWebKit","css","getContainingBlock","currentNode","getParentNode","isLastTraversableNode","getNodeScroll","result","getNearestOverflowAncestor","parentNode","getOverflowAncestors","list","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win"],"mappings":"AAAA,SAASA,EAAYC,GAAM;AACzB,SAAIC,EAAOD,CAAI,KACLA,EAAK,YAAY,IAAI,YAAW,IAKnC;AACT;AACA,SAASE,EAAUF,GAA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I;AACrC,SAAIyB,EAAsBI,CAAU,IAC3B7B,EAAK,gBAAgBA,EAAK,cAAc,OAAOA,EAAK,OAEzDQ,EAAcqB,CAAU,KAAKnB,EAAkBmB,CAAU,IACpDA,IAEFD,EAA2BC,CAAU;AAC9C;AACA,SAASC,EAAqB9B,GAAM+B,GAAMC,GAAiB;AACzD,MAAIC;AACJ,EAAIF,MAAS,WACXA,IAAO,CAAA,IAELC,MAAoB,WACtBA,IAAkB;AAEpB,QAAME,IAAqBN,EAA2B5B,CAAI,GACpDmC,IAASD,QAAyBD,IAAuBjC,EAAK,kBAAkB,OAAO,SAASiC,EAAqB,OACrHG,IAAMlC,EAAUgC,CAAkB;AACxC,SAAIC,IACKJ,EAAK,OAAOK,GAAKA,EAAI,kBAAkB,CAAE,GAAE1B,EAAkBwB,CAAkB,IAAIA,IAAqB,IAAIE,EAAI,gBAAgBJ,IAAkBF,EAAqBM,EAAI,YAAY,IAAI,CAAA,CAAE,IAE/LL,EAAK,OAAOG,GAAoBJ,EAAqBI,GAAoB,CAAE,GAAEF,CAAe,CAAC;AACtG;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index239.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index240.js CHANGED
@@ -1,7 +1,5 @@
1
- const e = function(t) {
2
- return (...n) => n.length >= t.length ? t(...n) : e(t.bind(void 0, ...n));
3
- };
1
+ var e = { exports: {} };
4
2
  export {
5
- e as curry
3
+ e as __module
6
4
  };
7
5
  //# sourceMappingURL=index240.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index240.js","sources":["../src/utilities/functions/curry.ts"],"sourcesContent":["export type Curried<A extends any[], R> = <P extends Partial<A>>(\n\t...args: P\n) => P extends A\n\t? R\n\t: A extends [...SameLength<P>, ...infer S]\n\t\t? S extends any[]\n\t\t\t? Curried<S, R>\n\t\t\t: never\n\t\t: never;\n\ntype SameLength<T extends any[]> = Extract<{ [K in keyof T]: any }, any[]>;\n\nexport const curry = function <A extends any[], R>(\n\tfn: (...args: A) => R\n): Curried<A, R> {\n\treturn (...args: any[]): any =>\n\t\targs.length >= fn.length\n\t\t\t? fn(...(args as any))\n\t\t\t: curry((fn as any).bind(undefined, ...args));\n};\n"],"names":["curry","fn","args"],"mappings":"AAYa,MAAAA,IAAQ,SACpBC,GACgB;AAChB,SAAO,IAAIC,MACVA,EAAK,UAAUD,EAAG,SACfA,EAAG,GAAIC,CAAY,IACnBF,EAAOC,EAAW,KAAK,QAAW,GAAGC,CAAI,CAAC;AAC/C;"}
1
+ {"version":3,"file":"index240.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index241.js CHANGED
@@ -1,8 +1,5 @@
1
- const o = (l, n, f = (r) => r, u) => l.map((r) => Array.isArray(r[n]) ? [
2
- f(r, u),
3
- ...o(r[n], n, f, f(r, u))
4
- ] : [f(r, u)]).flat();
1
+ var e = { exports: {} };
5
2
  export {
6
- o as flattenTree
3
+ e as __module
7
4
  };
8
5
  //# sourceMappingURL=index241.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index241.js","sources":["../src/utilities/functions/flattenTree.ts"],"sourcesContent":["export const flattenTree = <T extends Record<string, any>, U>(\n\titems: T[],\n\tkeyName: keyof T,\n\tmapper: (item: T, parent?: U) => U = (x: any) => x,\n\tparent?: ReturnType<typeof mapper>\n): ReturnType<typeof mapper>[] => {\n\treturn items\n\t\t.map((item) => {\n\t\t\tif (Array.isArray(item[keyName])) {\n\t\t\t\treturn [\n\t\t\t\t\tmapper(item, parent),\n\t\t\t\t\t...flattenTree(item[keyName], keyName, mapper, mapper(item, parent)),\n\t\t\t\t];\n\t\t\t}\n\t\t\treturn [mapper(item, parent)];\n\t\t})\n\t\t.flat();\n};\n"],"names":["flattenTree","items","keyName","mapper","x","parent","item"],"mappings":"AAAa,MAAAA,IAAc,CAC1BC,GACAC,GACAC,IAAqC,CAACC,MAAWA,GACjDC,MAEOJ,EACL,IAAI,CAACK,MACD,MAAM,QAAQA,EAAKJ,CAAO,CAAC,IACvB;AAAA,EACNC,EAAOG,GAAMD,CAAM;AAAA,EACnB,GAAGL,EAAYM,EAAKJ,CAAO,GAAGA,GAASC,GAAQA,EAAOG,GAAMD,CAAM,CAAC;AAAA,IAG9D,CAACF,EAAOG,GAAMD,CAAM,CAAC,CAC5B,EACA,KAAK;"}
1
+ {"version":3,"file":"index241.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index242.js CHANGED
@@ -1,5 +1,5 @@
1
- import e from "./index199.js";
1
+ var e = { exports: {} };
2
2
  export {
3
- e as default
3
+ e as __module
4
4
  };
5
5
  //# sourceMappingURL=index242.js.map