bitboss-ui 2.0.5 → 2.0.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.
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -3
- package/dist/composables/useOptions.d.ts +1 -1
- package/dist/index.js +138 -137
- package/dist/index.js.map +1 -1
- package/dist/index10.js +74 -35
- package/dist/index10.js.map +1 -1
- package/dist/{index99.js → index100.js} +3 -3
- package/dist/index100.js.map +1 -0
- package/dist/{index101.js → index102.js} +3 -3
- package/dist/{index101.js.map → index102.js.map} +1 -1
- package/dist/{index103.js → index104.js} +8 -8
- package/dist/{index103.js.map → index104.js.map} +1 -1
- package/dist/{index105.js → index106.js} +10 -10
- package/dist/{index105.js.map → index106.js.map} +1 -1
- package/dist/{index107.js → index108.js} +3 -3
- package/dist/{index107.js.map → index108.js.map} +1 -1
- package/dist/index11.js +36 -189
- package/dist/index11.js.map +1 -1
- package/dist/{index109.js → index110.js} +3 -3
- package/dist/{index109.js.map → index110.js.map} +1 -1
- package/dist/{index111.js → index112.js} +3 -3
- package/dist/{index111.js.map → index112.js.map} +1 -1
- package/dist/{index113.js → index114.js} +3 -3
- package/dist/{index113.js.map → index114.js.map} +1 -1
- package/dist/{index115.js → index116.js} +8 -8
- package/dist/{index115.js.map → index116.js.map} +1 -1
- package/dist/{index117.js → index118.js} +1 -1
- package/dist/{index117.js.map → index118.js.map} +1 -1
- package/dist/index12.js +189 -78
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +34 -38
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +38 -38
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +39 -42
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +43 -31
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +35 -2
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -21
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +21 -2
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +2 -312
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +309 -21
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +24 -2
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +85 -0
- package/dist/index13.js.map +1 -0
- package/dist/index130.js +2 -5
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +5 -9
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +8 -5
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +6 -3
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +1 -1
- package/dist/index135.js +1 -1
- package/dist/index136.js +1 -1
- package/dist/index137.js +1 -1
- package/dist/index138.js +1 -1
- package/dist/index139.js +1 -1
- package/dist/index140.js +1 -1
- package/dist/index141.js +1 -1
- package/dist/index142.js +1 -1
- package/dist/index143.js +1 -1
- package/dist/index144.js +1 -1
- package/dist/index145.js +1 -1
- package/dist/index146.js +1 -1
- package/dist/index147.js +1 -1
- package/dist/index148.js +1 -1
- package/dist/index149.js +1 -1
- package/dist/{index14.js → index15.js} +4 -4
- package/dist/{index14.js.map → index15.js.map} +1 -1
- package/dist/index150.js +1 -1
- package/dist/index151.js +1 -1
- package/dist/index152.js +1 -1
- package/dist/index153.js +1 -1
- package/dist/index154.js +1 -1
- package/dist/index155.js +1 -1
- package/dist/index156.js +1 -1
- package/dist/index157.js +1 -1
- package/dist/index158.js +1 -1
- package/dist/index159.js +2 -2
- package/dist/{index161.js → index160.js} +1 -1
- package/dist/index160.js.map +1 -0
- package/dist/index162.js +6 -0
- package/dist/index162.js.map +1 -0
- package/dist/index164.js +1 -1
- package/dist/index165.js +1 -1
- package/dist/index166.js +1 -1
- package/dist/index167.js +1 -1
- package/dist/index168.js +1 -1
- package/dist/index169.js +2 -2
- package/dist/{index16.js → index17.js} +4 -4
- package/dist/{index16.js.map → index17.js.map} +1 -1
- package/dist/index170.js +6 -0
- package/dist/index170.js.map +1 -0
- package/dist/index172.js +2 -3
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +1 -1
- package/dist/index174.js +1 -1
- package/dist/index175.js +1 -1
- package/dist/index176.js +1 -1
- package/dist/index177.js +1 -1
- package/dist/index178.js +1 -1
- package/dist/index179.js +1 -1
- package/dist/index180.js +1 -1
- package/dist/index181.js +1 -1
- package/dist/index182.js +1 -1
- package/dist/index183.js +2 -2
- package/dist/{index185.js → index184.js} +1 -1
- package/dist/index184.js.map +1 -0
- package/dist/index186.js +6 -0
- package/dist/index186.js.map +1 -0
- package/dist/index188.js +1 -1
- package/dist/index189.js +1 -1
- package/dist/{index18.js → index19.js} +76 -74
- package/dist/index19.js.map +1 -0
- package/dist/index190.js +1 -1
- package/dist/index191.js +1 -1
- package/dist/index192.js +1 -1
- package/dist/index193.js +1 -1
- package/dist/index194.js +1 -1
- package/dist/index195.js +1 -1
- package/dist/index196.js +1 -1
- package/dist/index197.js +3 -81
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +81 -3
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +2 -5
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +2 -16
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +4 -16
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +2 -19
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +8 -19
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +124 -25
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +5 -3
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +123 -2
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +19 -8
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +14 -247
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +19 -0
- package/dist/index209.js.map +1 -0
- package/dist/{index20.js → index21.js} +26 -27
- package/dist/index21.js.map +1 -0
- package/dist/index210.js +2 -52
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +2 -37
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +35 -5
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +174 -41
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +6 -2
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +43 -4
- package/dist/index215.js.map +1 -1
- package/dist/index217.js +13 -2
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +4 -41
- package/dist/index218.js.map +1 -1
- package/dist/{index233.js → index219.js} +4 -4
- package/dist/{index233.js.map → index219.js.map} +1 -1
- package/dist/index220.js +19 -13
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +25 -156
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +3 -84
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +252 -0
- package/dist/index223.js.map +1 -0
- package/dist/index224.js +52 -3
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +44 -35
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +5 -6
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +49 -7
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +3 -126
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +3 -123
- package/dist/index229.js.map +1 -1
- package/dist/{index22.js → index23.js} +74 -76
- package/dist/index23.js.map +1 -0
- package/dist/index230.js +7 -2
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +152 -168
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +84 -5
- package/dist/index232.js.map +1 -1
- package/dist/index234.js +2 -3
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +1 -1
- package/dist/index236.js +3 -3
- package/dist/index238.js +2 -2
- package/dist/index243.js +4 -224
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +6 -281
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +16 -6
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +9 -2
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +23 -2
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +9 -2
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +281 -2
- package/dist/index249.js.map +1 -1
- package/dist/{index24.js → index25.js} +6 -6
- package/dist/{index24.js.map → index25.js.map} +1 -1
- package/dist/index250.js +6 -2
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -2
- package/dist/index252.js +2 -3
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +2 -2
- package/dist/index254.js +2 -2
- package/dist/index255.js +2 -2
- package/dist/index256.js +122 -24
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +429 -20
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +6 -0
- package/dist/index258.js.map +1 -0
- package/dist/index260.js +6 -3
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +21 -8
- package/dist/index261.js.map +1 -1
- package/dist/index263.js +2 -3
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +5 -0
- package/dist/index264.js.map +1 -0
- package/dist/index265.js +1 -5
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +2 -16
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +2 -9
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +2 -3
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +28 -12
- package/dist/index269.js.map +1 -1
- package/dist/{index26.js → index27.js} +4 -4
- package/dist/{index26.js.map → index27.js.map} +1 -1
- package/dist/index270.js +21 -8
- package/dist/index270.js.map +1 -1
- package/dist/index272.js +224 -17
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +82 -424
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +197 -86
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +436 -2
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +126 -68
- package/dist/index276.js.map +1 -1
- package/dist/index278.js +2 -200
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +9 -2
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +68 -125
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +3 -22
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +15 -0
- package/dist/index282.js.map +1 -0
- package/dist/index283.js +7 -434
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +16 -126
- package/dist/index284.js.map +1 -1
- package/dist/index287.js +12 -12
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +18 -0
- package/dist/index288.js.map +1 -0
- package/dist/index289.js +4 -15
- package/dist/index289.js.map +1 -1
- package/dist/{index28.js → index29.js} +19 -19
- package/dist/index29.js.map +1 -0
- package/dist/index290.js +4 -7
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +57 -17
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +34 -6
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +7 -4
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +19 -4
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +6 -58
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +2 -35
- package/dist/index296.js.map +1 -1
- package/dist/index298.js +47 -2
- package/dist/index298.js.map +1 -1
- package/dist/index300.js +424 -0
- package/dist/index300.js.map +1 -0
- package/dist/index301.js +42 -416
- package/dist/index301.js.map +1 -1
- package/dist/{index30.js → index31.js} +4 -4
- package/dist/{index30.js.map → index31.js.map} +1 -1
- package/dist/{index32.js → index33.js} +41 -40
- package/dist/index33.js.map +1 -0
- package/dist/{index34.js → index35.js} +19 -18
- package/dist/{index34.js.map → index35.js.map} +1 -1
- package/dist/{index36.js → index37.js} +8 -7
- package/dist/index37.js.map +1 -0
- package/dist/{index38.js → index39.js} +4 -3
- package/dist/index39.js.map +1 -0
- package/dist/index4.js +14 -40
- package/dist/index4.js.map +1 -1
- package/dist/{index40.js → index41.js} +4 -4
- package/dist/{index40.js.map → index41.js.map} +1 -1
- package/dist/{index42.js → index43.js} +32 -31
- package/dist/{index42.js.map → index43.js.map} +1 -1
- package/dist/{index44.js → index45.js} +9 -9
- package/dist/index45.js.map +1 -0
- package/dist/{index46.js → index47.js} +3 -3
- package/dist/{index46.js.map → index47.js.map} +1 -1
- package/dist/{index48.js → index49.js} +4 -4
- package/dist/{index48.js.map → index49.js.map} +1 -1
- package/dist/index5.js +38 -76
- package/dist/index5.js.map +1 -1
- package/dist/index51.js +95 -0
- package/dist/index51.js.map +1 -0
- package/dist/{index52.js → index53.js} +3 -3
- package/dist/{index52.js.map → index53.js.map} +1 -1
- package/dist/{index54.js → index55.js} +3 -3
- package/dist/{index54.js.map → index55.js.map} +1 -1
- package/dist/{index56.js → index57.js} +2 -2
- package/dist/{index56.js.map → index57.js.map} +1 -1
- package/dist/{index58.js → index59.js} +7 -6
- package/dist/{index58.js.map → index59.js.map} +1 -1
- package/dist/index6.js +78 -62
- package/dist/index6.js.map +1 -1
- package/dist/{index60.js → index61.js} +3 -3
- package/dist/{index60.js.map → index61.js.map} +1 -1
- package/dist/{index62.js → index63.js} +3 -3
- package/dist/{index62.js.map → index63.js.map} +1 -1
- package/dist/{index64.js → index65.js} +5 -5
- package/dist/{index64.js.map → index65.js.map} +1 -1
- package/dist/{index66.js → index67.js} +3 -3
- package/dist/{index66.js.map → index67.js.map} +1 -1
- package/dist/{index68.js → index69.js} +2 -2
- package/dist/{index68.js.map → index69.js.map} +1 -1
- package/dist/index7.js +60 -18
- package/dist/index7.js.map +1 -1
- package/dist/{index70.js → index71.js} +9 -9
- package/dist/{index70.js.map → index71.js.map} +1 -1
- package/dist/{index72.js → index73.js} +3 -3
- package/dist/{index72.js.map → index73.js.map} +1 -1
- package/dist/{index74.js → index75.js} +5 -5
- package/dist/{index74.js.map → index75.js.map} +1 -1
- package/dist/index77.js +37 -120
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +130 -0
- package/dist/index78.js.map +1 -0
- package/dist/index8.js +19 -7
- package/dist/index8.js.map +1 -1
- package/dist/{index79.js → index80.js} +5 -5
- package/dist/{index79.js.map → index80.js.map} +1 -1
- package/dist/{index81.js → index82.js} +7 -6
- package/dist/{index81.js.map → index82.js.map} +1 -1
- package/dist/{index83.js → index84.js} +7 -7
- package/dist/{index83.js.map → index84.js.map} +1 -1
- package/dist/{index85.js → index86.js} +3 -3
- package/dist/{index85.js.map → index86.js.map} +1 -1
- package/dist/{index87.js → index88.js} +3 -3
- package/dist/{index87.js.map → index88.js.map} +1 -1
- package/dist/index9.js +7 -78
- package/dist/index9.js.map +1 -1
- package/dist/{index89.js → index90.js} +3 -3
- package/dist/{index89.js.map → index90.js.map} +1 -1
- package/dist/{index91.js → index92.js} +3 -3
- package/dist/{index91.js.map → index92.js.map} +1 -1
- package/dist/{index93.js → index94.js} +1 -1
- package/dist/index94.js.map +1 -0
- package/dist/{index95.js → index96.js} +3 -3
- package/dist/{index95.js.map → index96.js.map} +1 -1
- package/dist/{index97.js → index98.js} +3 -3
- package/dist/{index97.js.map → index98.js.map} +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index119.js +0 -47
- package/dist/index119.js.map +0 -1
- package/dist/index161.js.map +0 -1
- package/dist/index163.js +0 -6
- package/dist/index163.js.map +0 -1
- package/dist/index171.js +0 -5
- package/dist/index171.js.map +0 -1
- package/dist/index18.js.map +0 -1
- package/dist/index185.js.map +0 -1
- package/dist/index187.js +0 -6
- package/dist/index187.js.map +0 -1
- package/dist/index20.js.map +0 -1
- package/dist/index216.js +0 -5
- package/dist/index216.js.map +0 -1
- package/dist/index22.js.map +0 -1
- package/dist/index259.js +0 -10
- package/dist/index259.js.map +0 -1
- package/dist/index262.js +0 -26
- package/dist/index262.js.map +0 -1
- package/dist/index271.js +0 -12
- package/dist/index271.js.map +0 -1
- package/dist/index28.js.map +0 -1
- package/dist/index299.js +0 -50
- package/dist/index299.js.map +0 -1
- package/dist/index3.js +0 -17
- package/dist/index3.js.map +0 -1
- package/dist/index302.js +0 -50
- package/dist/index302.js.map +0 -1
- package/dist/index32.js.map +0 -1
- package/dist/index36.js.map +0 -1
- package/dist/index38.js.map +0 -1
- package/dist/index44.js.map +0 -1
- package/dist/index50.js +0 -97
- package/dist/index50.js.map +0 -1
- package/dist/index76.js +0 -47
- package/dist/index76.js.map +0 -1
- package/dist/index93.js.map +0 -1
- package/dist/index99.js.map +0 -1
package/dist/index228.js
CHANGED
|
@@ -1,129 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { isNode as B, getNodeName as F } from "./index280.js";
|
|
4
|
-
import { getOverflowAncestors as le } from "./index280.js";
|
|
5
|
-
import { computed as a, ref as f, shallowRef as I, watch as h, getCurrentScope as U, onScopeDispose as k, shallowReadonly as r, unref as q } from "vue";
|
|
6
|
-
function z(e) {
|
|
7
|
-
return e != null && typeof e == "object" && "$el" in e;
|
|
8
|
-
}
|
|
9
|
-
function g(e) {
|
|
10
|
-
if (z(e)) {
|
|
11
|
-
const l = e.$el;
|
|
12
|
-
return B(l) && F(l) === "#comment" ? null : l;
|
|
13
|
-
}
|
|
14
|
-
return e;
|
|
15
|
-
}
|
|
16
|
-
function o(e) {
|
|
17
|
-
return typeof e == "function" ? e() : q(e);
|
|
18
|
-
}
|
|
19
|
-
function K(e) {
|
|
20
|
-
return {
|
|
21
|
-
name: "arrow",
|
|
22
|
-
options: e,
|
|
23
|
-
fn(l) {
|
|
24
|
-
const t = g(o(e.element));
|
|
25
|
-
return t == null ? {} : j({
|
|
26
|
-
element: t,
|
|
27
|
-
padding: e.padding
|
|
28
|
-
}).fn(l);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function M(e) {
|
|
33
|
-
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
34
|
-
}
|
|
35
|
-
function C(e, l) {
|
|
36
|
-
const t = M(e);
|
|
37
|
-
return Math.round(l * t) / t;
|
|
38
|
-
}
|
|
39
|
-
function L(e, l, t) {
|
|
40
|
-
t === void 0 && (t = {});
|
|
41
|
-
const x = t.whileElementsMounted, V = a(() => {
|
|
42
|
-
var n;
|
|
43
|
-
return (n = o(t.open)) != null ? n : !0;
|
|
44
|
-
}), D = a(() => o(t.middleware)), d = a(() => {
|
|
45
|
-
var n;
|
|
46
|
-
return (n = o(t.placement)) != null ? n : "bottom";
|
|
47
|
-
}), v = a(() => {
|
|
48
|
-
var n;
|
|
49
|
-
return (n = o(t.strategy)) != null ? n : "absolute";
|
|
50
|
-
}), S = a(() => {
|
|
51
|
-
var n;
|
|
52
|
-
return (n = o(t.transform)) != null ? n : !0;
|
|
53
|
-
}), i = a(() => g(e.value)), u = a(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), O = f(d.value), P = I({}), y = f(!1), _ = a(() => {
|
|
54
|
-
const n = {
|
|
55
|
-
position: c.value,
|
|
56
|
-
left: "0",
|
|
57
|
-
top: "0"
|
|
58
|
-
};
|
|
59
|
-
if (!u.value)
|
|
60
|
-
return n;
|
|
61
|
-
const R = C(u.value, p.value), b = C(u.value, w.value);
|
|
62
|
-
return S.value ? {
|
|
63
|
-
...n,
|
|
64
|
-
transform: "translate(" + R + "px, " + b + "px)",
|
|
65
|
-
...M(u.value) >= 1.5 && {
|
|
66
|
-
willChange: "transform"
|
|
67
|
-
}
|
|
68
|
-
} : {
|
|
69
|
-
position: c.value,
|
|
70
|
-
left: R + "px",
|
|
71
|
-
top: b + "px"
|
|
72
|
-
};
|
|
73
|
-
});
|
|
74
|
-
let s;
|
|
75
|
-
function m() {
|
|
76
|
-
i.value == null || u.value == null || A(i.value, u.value, {
|
|
77
|
-
middleware: D.value,
|
|
78
|
-
placement: d.value,
|
|
79
|
-
strategy: v.value
|
|
80
|
-
}).then((n) => {
|
|
81
|
-
p.value = n.x, w.value = n.y, c.value = n.strategy, O.value = n.placement, P.value = n.middlewareData, y.value = !0;
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
function E() {
|
|
85
|
-
typeof s == "function" && (s(), s = void 0);
|
|
86
|
-
}
|
|
87
|
-
function N() {
|
|
88
|
-
if (E(), x === void 0) {
|
|
89
|
-
m();
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
if (i.value != null && u.value != null) {
|
|
93
|
-
s = x(i.value, u.value, m);
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function $() {
|
|
98
|
-
V.value || (y.value = !1);
|
|
99
|
-
}
|
|
100
|
-
return h([D, d, v], m, {
|
|
101
|
-
flush: "sync"
|
|
102
|
-
}), h([i, u], N, {
|
|
103
|
-
flush: "sync"
|
|
104
|
-
}), h(V, $, {
|
|
105
|
-
flush: "sync"
|
|
106
|
-
}), U() && k(E), {
|
|
107
|
-
x: r(p),
|
|
108
|
-
y: r(w),
|
|
109
|
-
strategy: r(c),
|
|
110
|
-
placement: r(O),
|
|
111
|
-
middlewareData: r(P),
|
|
112
|
-
isPositioned: r(y),
|
|
113
|
-
floatingStyles: _,
|
|
114
|
-
update: m
|
|
115
|
-
};
|
|
116
|
-
}
|
|
1
|
+
import r from "./index272.js";
|
|
2
|
+
const t = r;
|
|
117
3
|
export {
|
|
118
|
-
|
|
119
|
-
W as autoUpdate,
|
|
120
|
-
A as computePosition,
|
|
121
|
-
X as flip,
|
|
122
|
-
le as getOverflowAncestors,
|
|
123
|
-
Y as hide,
|
|
124
|
-
Z as offset,
|
|
125
|
-
ee as platform,
|
|
126
|
-
ne as shift,
|
|
127
|
-
L as useFloating
|
|
4
|
+
t as deburr
|
|
128
5
|
};
|
|
129
6
|
//# sourceMappingURL=index228.js.map
|
package/dist/index228.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index228.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 { isNode, getNodeName } from '@floating-ui/utils/dom';\nimport { unref, computed, ref, shallowRef, watch, getCurrentScope, onScopeDispose, shallowReadonly } from 'vue-demi';\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\nfunction toValue(source) {\n return typeof source === 'function' ? source() : unref(source);\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(toValue(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 _toValue;\n return (_toValue = toValue(options.open)) != null ? _toValue : true;\n });\n const middlewareOption = computed(() => toValue(options.middleware));\n const placementOption = computed(() => {\n var _toValue2;\n return (_toValue2 = toValue(options.placement)) != null ? _toValue2 : 'bottom';\n });\n const strategyOption = computed(() => {\n var _toValue3;\n return (_toValue3 = toValue(options.strategy)) != null ? _toValue3 : 'absolute';\n });\n const transformOption = computed(() => {\n var _toValue4;\n return (_toValue4 = toValue(options.transform)) != null ? _toValue4 : 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","toValue","source","unref","arrow","options","args","arrow$1","getDPR","roundByDPR","value","dpr","useFloating","reference","floating","whileElementsMountedOption","openOption","computed","_toValue","middlewareOption","placementOption","_toValue2","strategyOption","_toValue3","transformOption","_toValue4","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":"index228.js","sources":["../src/utilities/functions/deburr.ts"],"sourcesContent":["import d from 'lodash.deburr';\n\nexport const deburr = d;\n"],"names":["deburr","d"],"mappings":";AAEO,MAAMA,IAASC;"}
|
package/dist/index229.js
CHANGED
|
@@ -1,126 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
(function(V, rt) {
|
|
4
|
-
(function(b, Z) {
|
|
5
|
-
V.exports = Z();
|
|
6
|
-
})(W, function() {
|
|
7
|
-
var b = { 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" }, Z = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, $ = /\d\d/, i = /\d\d?/, y = /\d*[^-_:/,()\s\d]+/, m = {}, U = function(t) {
|
|
8
|
-
return (t = +t) + (t > 68 ? 1900 : 2e3);
|
|
9
|
-
}, o = function(t) {
|
|
10
|
-
return function(r) {
|
|
11
|
-
this[t] = +r;
|
|
12
|
-
};
|
|
13
|
-
}, j = [/[+-]\d\d:?(\d\d)?|Z/, function(t) {
|
|
14
|
-
(this.zone || (this.zone = {})).offset = function(r) {
|
|
15
|
-
if (!r || r === "Z") return 0;
|
|
16
|
-
var n = r.match(/([+-]|\d\d)/g), e = 60 * n[1] + (+n[2] || 0);
|
|
17
|
-
return e === 0 ? 0 : n[0] === "+" ? -e : e;
|
|
18
|
-
}(t);
|
|
19
|
-
}], F = function(t) {
|
|
20
|
-
var r = m[t];
|
|
21
|
-
return r && (r.indexOf ? r : r.s.concat(r.f));
|
|
22
|
-
}, k = function(t, r) {
|
|
23
|
-
var n, e = m.meridiem;
|
|
24
|
-
if (e) {
|
|
25
|
-
for (var c = 1; c <= 24; c += 1) if (t.indexOf(e(c, 0, r)) > -1) {
|
|
26
|
-
n = c > 12;
|
|
27
|
-
break;
|
|
28
|
-
}
|
|
29
|
-
} else n = t === (r ? "pm" : "PM");
|
|
30
|
-
return n;
|
|
31
|
-
}, q = { A: [y, function(t) {
|
|
32
|
-
this.afternoon = k(t, !1);
|
|
33
|
-
}], a: [y, function(t) {
|
|
34
|
-
this.afternoon = k(t, !0);
|
|
35
|
-
}], S: [/\d/, function(t) {
|
|
36
|
-
this.milliseconds = 100 * +t;
|
|
37
|
-
}], SS: [$, function(t) {
|
|
38
|
-
this.milliseconds = 10 * +t;
|
|
39
|
-
}], SSS: [/\d{3}/, function(t) {
|
|
40
|
-
this.milliseconds = +t;
|
|
41
|
-
}], s: [i, o("seconds")], ss: [i, o("seconds")], m: [i, o("minutes")], mm: [i, o("minutes")], H: [i, o("hours")], h: [i, o("hours")], HH: [i, o("hours")], hh: [i, o("hours")], D: [i, o("day")], DD: [$, o("day")], Do: [y, function(t) {
|
|
42
|
-
var r = m.ordinal, n = t.match(/\d+/);
|
|
43
|
-
if (this.day = n[0], r) for (var e = 1; e <= 31; e += 1) r(e).replace(/\[|\]/g, "") === t && (this.day = e);
|
|
44
|
-
}], M: [i, o("month")], MM: [$, o("month")], MMM: [y, function(t) {
|
|
45
|
-
var r = F("months"), n = (F("monthsShort") || r.map(function(e) {
|
|
46
|
-
return e.slice(0, 3);
|
|
47
|
-
})).indexOf(t) + 1;
|
|
48
|
-
if (n < 1) throw new Error();
|
|
49
|
-
this.month = n % 12 || n;
|
|
50
|
-
}], MMMM: [y, function(t) {
|
|
51
|
-
var r = F("months").indexOf(t) + 1;
|
|
52
|
-
if (r < 1) throw new Error();
|
|
53
|
-
this.month = r % 12 || r;
|
|
54
|
-
}], Y: [/[+-]?\d+/, o("year")], YY: [$, function(t) {
|
|
55
|
-
this.year = U(t);
|
|
56
|
-
}], YYYY: [/\d{4}/, o("year")], Z: j, ZZ: j };
|
|
57
|
-
function B(t) {
|
|
58
|
-
var r, n;
|
|
59
|
-
r = t, n = m && m.formats;
|
|
60
|
-
for (var e = (t = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(v, l, f) {
|
|
61
|
-
var a = f && f.toUpperCase();
|
|
62
|
-
return l || n[f] || b[f] || n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, Y, D) {
|
|
63
|
-
return Y || D.slice(1);
|
|
64
|
-
});
|
|
65
|
-
})).match(Z), c = e.length, h = 0; h < c; h += 1) {
|
|
66
|
-
var w = e[h], p = q[w], u = p && p[0], d = p && p[1];
|
|
67
|
-
e[h] = d ? { regex: u, parser: d } : w.replace(/^\[|\]$/g, "");
|
|
68
|
-
}
|
|
69
|
-
return function(v) {
|
|
70
|
-
for (var l = {}, f = 0, a = 0; f < c; f += 1) {
|
|
71
|
-
var M = e[f];
|
|
72
|
-
if (typeof M == "string") a += M.length;
|
|
73
|
-
else {
|
|
74
|
-
var Y = M.regex, D = M.parser, S = v.slice(a), g = Y.exec(S)[0];
|
|
75
|
-
D.call(l, g), v = v.replace(g, "");
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return function(L) {
|
|
79
|
-
var s = L.afternoon;
|
|
80
|
-
if (s !== void 0) {
|
|
81
|
-
var x = L.hours;
|
|
82
|
-
s ? x < 12 && (L.hours += 12) : x === 12 && (L.hours = 0), delete L.afternoon;
|
|
83
|
-
}
|
|
84
|
-
}(l), l;
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
return function(t, r, n) {
|
|
88
|
-
n.p.customParseFormat = !0, t && t.parseTwoDigitYear && (U = t.parseTwoDigitYear);
|
|
89
|
-
var e = r.prototype, c = e.parse;
|
|
90
|
-
e.parse = function(h) {
|
|
91
|
-
var w = h.date, p = h.utc, u = h.args;
|
|
92
|
-
this.$u = p;
|
|
93
|
-
var d = u[1];
|
|
94
|
-
if (typeof d == "string") {
|
|
95
|
-
var v = u[2] === !0, l = u[3] === !0, f = v || l, a = u[2];
|
|
96
|
-
l && (a = u[2]), m = this.$locale(), !v && a && (m = n.Ls[a]), this.$d = function(S, g, L) {
|
|
97
|
-
try {
|
|
98
|
-
if (["x", "X"].indexOf(g) > -1) return new Date((g === "X" ? 1e3 : 1) * S);
|
|
99
|
-
var s = B(g)(S), x = s.year, A = s.month, I = s.day, J = s.hours, K = s.minutes, N = s.seconds, Q = s.milliseconds, X = s.zone, H = /* @__PURE__ */ new Date(), O = I || (x || A ? 1 : H.getDate()), P = x || H.getFullYear(), T = 0;
|
|
100
|
-
x && !A || (T = A > 0 ? A - 1 : H.getMonth());
|
|
101
|
-
var z = J || 0, C = K || 0, E = N || 0, _ = Q || 0;
|
|
102
|
-
return X ? new Date(Date.UTC(P, T, O, z, C, E, _ + 60 * X.offset * 1e3)) : L ? new Date(Date.UTC(P, T, O, z, C, E, _)) : new Date(P, T, O, z, C, E, _);
|
|
103
|
-
} catch {
|
|
104
|
-
return /* @__PURE__ */ new Date("");
|
|
105
|
-
}
|
|
106
|
-
}(w, d, p), this.init(), a && a !== !0 && (this.$L = this.locale(a).$L), f && w != this.format(d) && (this.$d = /* @__PURE__ */ new Date("")), m = {};
|
|
107
|
-
} else if (d instanceof Array) for (var M = d.length, Y = 1; Y <= M; Y += 1) {
|
|
108
|
-
u[1] = d[Y - 1];
|
|
109
|
-
var D = n.apply(this, u);
|
|
110
|
-
if (D.isValid()) {
|
|
111
|
-
this.$d = D.$d, this.$L = D.$L, this.init();
|
|
112
|
-
break;
|
|
113
|
-
}
|
|
114
|
-
Y === M && (this.$d = /* @__PURE__ */ new Date(""));
|
|
115
|
-
}
|
|
116
|
-
else c.call(this, h);
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
});
|
|
120
|
-
})(G);
|
|
121
|
-
var tt = G.exports;
|
|
122
|
-
const at = /* @__PURE__ */ R(tt);
|
|
1
|
+
import t from "./index273.js";
|
|
2
|
+
const r = t;
|
|
123
3
|
export {
|
|
124
|
-
|
|
4
|
+
r as throttle
|
|
125
5
|
};
|
|
126
6
|
//# sourceMappingURL=index229.js.map
|
package/dist/index229.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index229.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index229.js","sources":["../src/utilities/functions/throttle.ts"],"sourcesContent":["import t from 'lodash.throttle';\n\nexport const throttle = t;\n"],"names":["throttle"],"mappings":";AAEO,MAAMA,IAAW;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as o, getCurrentInstance as se, computed as
|
|
2
|
-
import { throttle as ve } from "./
|
|
3
|
-
import { useFocusTrap as
|
|
4
|
-
import { useId as
|
|
5
|
-
import { wait as
|
|
6
|
-
import { waitFor as
|
|
7
|
-
import { useModalsState as k } from "./
|
|
8
|
-
import { useLogger as pe } from "./
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as ae, ref as o, getCurrentInstance as se, computed as m, nextTick as N, useAttrs as ne, onMounted as ie, onBeforeUnmount as F, watch as re, openBlock as _, createBlock as ue, Teleport as de, createElementVNode as a, mergeProps as G, createElementBlock as T, renderSlot as u, createTextVNode as ce, toDisplayString as P, createCommentVNode as z } from "vue";
|
|
2
|
+
import { throttle as ve } from "./index229.js";
|
|
3
|
+
import { useFocusTrap as fe } from "./index212.js";
|
|
4
|
+
import { useId as K } from "./index8.js";
|
|
5
|
+
import { wait as H } from "./index127.js";
|
|
6
|
+
import { waitFor as be } from "./index214.js";
|
|
7
|
+
import { useModalsState as k } from "./index230.js";
|
|
8
|
+
import { useLogger as pe } from "./index203.js";
|
|
9
|
+
const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], ye = /* @__PURE__ */ a("span", { class: "bb-base-dialog-close__icon" }, [
|
|
10
10
|
/* @__PURE__ */ a("svg", {
|
|
11
11
|
"aria-hidden": "true",
|
|
12
12
|
fill: "none",
|
|
@@ -20,7 +20,7 @@ const ge = { class: "bb-base-dialog-close" }, me = { class: "bb-base-dialog-clos
|
|
|
20
20
|
"stroke-width": "2"
|
|
21
21
|
})
|
|
22
22
|
])
|
|
23
|
-
], -1),
|
|
23
|
+
], -1), he = /* @__PURE__ */ a("div", { style: { flex: "10000 10000 0%" } }, null, -1), ze = /* @__PURE__ */ ae({
|
|
24
24
|
__name: "BaseDialog",
|
|
25
25
|
props: {
|
|
26
26
|
closeLabel: { default: "Chiudi modale" },
|
|
@@ -41,70 +41,70 @@ const ge = { class: "bb-base-dialog-close" }, me = { class: "bb-base-dialog-clos
|
|
|
41
41
|
modelValue: { type: [Boolean, null] }
|
|
42
42
|
},
|
|
43
43
|
emits: ["shown", "hidden", "update:modelValue"],
|
|
44
|
-
setup(
|
|
45
|
-
var
|
|
46
|
-
const t =
|
|
44
|
+
setup(U, { emit: j }) {
|
|
45
|
+
var I, R;
|
|
46
|
+
const t = U, d = j, C = `title_${K().id.value}`, B = `description_${K().id.value}`, g = o(null), c = o(null), $ = o(null), y = o(null), v = o(null), s = o(null), f = o(null), q = o(null), L = !!((R = (I = se()) == null ? void 0 : I.proxy) != null && R.$nuxt), h = o(0), J = m(() => {
|
|
47
47
|
const { openedModals: e } = k();
|
|
48
|
-
return e.value && e.value ===
|
|
49
|
-
}), { activate:
|
|
48
|
+
return e.value && e.value === h.value;
|
|
49
|
+
}), { activate: Q, deactivate: M } = fe($, {
|
|
50
50
|
initialFocus: t.focusTarget ?? void 0,
|
|
51
51
|
clickOutsideDeactivates: (e) => e.target === c.value,
|
|
52
52
|
allowOutsideClick: !0,
|
|
53
53
|
/* On esc deactivate the trap, return focus and then close the modal */
|
|
54
|
-
escapeDeactivates: () => (
|
|
54
|
+
escapeDeactivates: () => (N(() => {
|
|
55
55
|
d("update:modelValue", !1);
|
|
56
56
|
}), !0)
|
|
57
|
-
}),
|
|
57
|
+
}), X = ne(), Y = m(() => t.closeLabel);
|
|
58
58
|
ie(async () => {
|
|
59
|
-
s.value && (
|
|
60
|
-
}),
|
|
59
|
+
s.value && (g.value = new ResizeObserver(r), g.value.observe(s.value)), window.addEventListener("resize", r), r(), !(!t.modelValue && !i.value) && (L && !globalThis.document || S());
|
|
60
|
+
}), F(() => {
|
|
61
61
|
window.removeEventListener("resize", r);
|
|
62
62
|
});
|
|
63
|
-
const V = o(!1),
|
|
63
|
+
const V = o(!1), b = o(!1), D = o(!0), p = o(!1), i = o(t.eager || t.modelValue), O = m(() => b.value || p.value), Z = () => {
|
|
64
64
|
if (!globalThis.document) return;
|
|
65
65
|
const e = window.innerWidth - document.documentElement.clientWidth;
|
|
66
66
|
document.body.style.overflow = "hidden", document.body.style.paddingRight = `${e}px`;
|
|
67
|
-
},
|
|
67
|
+
}, x = () => {
|
|
68
68
|
globalThis.document && (document.body.style.overflow = "auto", document.body.style.paddingRight = "0px");
|
|
69
69
|
};
|
|
70
|
-
|
|
70
|
+
F(() => {
|
|
71
71
|
if (t.modelValue) {
|
|
72
72
|
const { openedModals: e, modalHasClosed: l } = k();
|
|
73
|
-
e.value && (l(),
|
|
73
|
+
e.value && (l(), h.value = 0, x());
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
|
-
const
|
|
76
|
+
const S = async () => {
|
|
77
77
|
if (t.modelValue) {
|
|
78
|
-
i.value || (i.value = !0, await
|
|
78
|
+
i.value || (i.value = !0, await be(() => !!s.value), await N(), s.value && (g.value = new ResizeObserver(r), g.value.observe(s.value))), D.value = !1, p.value = !1, b.value = !0;
|
|
79
79
|
const { modalHasOpened: e, openedModals: l } = k();
|
|
80
|
-
e(),
|
|
80
|
+
e(), h.value = l.value, Z(), await H(t.transitionDuration), b.value = !1, V.value = !0, d("shown"), Q();
|
|
81
81
|
} else {
|
|
82
|
-
|
|
82
|
+
M(), b.value = !1, V.value = !1, p.value = !0, await H(t.transitionDuration), p.value = !1, D.value = !0;
|
|
83
83
|
const { modalHasClosed: e, openedModals: l } = k();
|
|
84
|
-
e(),
|
|
84
|
+
e(), h.value = 0, l.value || x(), d("hidden");
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
re(
|
|
88
88
|
() => t.modelValue,
|
|
89
89
|
() => {
|
|
90
|
-
!t.modelValue && !i.value ||
|
|
90
|
+
!t.modelValue && !i.value || L && !globalThis.document || S();
|
|
91
91
|
},
|
|
92
92
|
{ flush: "post" }
|
|
93
93
|
);
|
|
94
|
-
const
|
|
94
|
+
const w = (e) => {
|
|
95
95
|
e.target === c.value && e.preventDefault();
|
|
96
96
|
}, ee = (e) => {
|
|
97
|
-
t.disabled ||
|
|
98
|
-
},
|
|
99
|
-
t.disabled ||
|
|
100
|
-
}, te =
|
|
97
|
+
t.disabled || O.value || c.value && e.target === c.value && (t.persistent || d("update:modelValue", !1));
|
|
98
|
+
}, A = () => {
|
|
99
|
+
t.disabled || O.value || (M(), d("update:modelValue", !1));
|
|
100
|
+
}, te = m(() => {
|
|
101
101
|
const e = [
|
|
102
102
|
{
|
|
103
103
|
"bb-base-dialog bb-base-dialog__overlay": !0,
|
|
104
104
|
"bb-base-dialog--fullscreen": t.fullscreen,
|
|
105
|
-
"bb-base-dialog--faded": !
|
|
105
|
+
"bb-base-dialog--faded": !J.value,
|
|
106
106
|
"bb-base-dialog--open": V.value,
|
|
107
|
-
"bb-base-dialog--opening":
|
|
107
|
+
"bb-base-dialog--opening": b.value,
|
|
108
108
|
"bb-base-dialog--closed": D.value,
|
|
109
109
|
"bb-base-dialog--closing": p.value,
|
|
110
110
|
[`bb-base-dialog--transition-${t.transition}`]: !0
|
|
@@ -112,10 +112,10 @@ const ge = { class: "bb-base-dialog-close" }, me = { class: "bb-base-dialog-clos
|
|
|
112
112
|
t.overlayClasses
|
|
113
113
|
].flat(), l = {
|
|
114
114
|
onClick: ee,
|
|
115
|
-
onScroll:
|
|
116
|
-
onTouchmove:
|
|
117
|
-
onWheel:
|
|
118
|
-
onKeydown:
|
|
115
|
+
onScroll: w,
|
|
116
|
+
onTouchmove: w,
|
|
117
|
+
onWheel: w,
|
|
118
|
+
onKeydown: w
|
|
119
119
|
}, n = {
|
|
120
120
|
transitionDuration: t.transitionDuration / 1e3 + "s"
|
|
121
121
|
};
|
|
@@ -123,9 +123,9 @@ const ge = { class: "bb-base-dialog-close" }, me = { class: "bb-base-dialog-clos
|
|
|
123
123
|
class: e,
|
|
124
124
|
style: n,
|
|
125
125
|
...l,
|
|
126
|
-
...
|
|
126
|
+
...X
|
|
127
127
|
};
|
|
128
|
-
}), le =
|
|
128
|
+
}), le = m(() => {
|
|
129
129
|
const e = [
|
|
130
130
|
{
|
|
131
131
|
"bb-base-dialog__panel": !0,
|
|
@@ -138,12 +138,12 @@ const ge = { class: "bb-base-dialog-close" }, me = { class: "bb-base-dialog-clos
|
|
|
138
138
|
};
|
|
139
139
|
i.value && (t.title && (l["aria-labelledby"] = C), t.description && (l["aria-describedby"] = B));
|
|
140
140
|
let n;
|
|
141
|
-
const
|
|
141
|
+
const W = {
|
|
142
142
|
sm: 384,
|
|
143
143
|
md: 652,
|
|
144
144
|
lg: 896
|
|
145
145
|
};
|
|
146
|
-
t.fullscreen ? n = "100%" : typeof t.size == "number" ? n = t.size + "px" : t.size in
|
|
146
|
+
t.fullscreen ? n = "100%" : typeof t.size == "number" ? n = t.size + "px" : t.size in W ? n = W[t.size] + "px" : n = t.size + "px";
|
|
147
147
|
const oe = {
|
|
148
148
|
maxWidth: n,
|
|
149
149
|
transitionDuration: t.transitionDuration / 1e3 + "s"
|
|
@@ -154,23 +154,23 @@ const ge = { class: "bb-base-dialog-close" }, me = { class: "bb-base-dialog-clos
|
|
|
154
154
|
...l
|
|
155
155
|
};
|
|
156
156
|
});
|
|
157
|
-
let
|
|
157
|
+
let E = 0;
|
|
158
158
|
const r = ve(
|
|
159
159
|
async () => {
|
|
160
|
-
if (
|
|
160
|
+
if (E++, E === 100) {
|
|
161
161
|
const { error: e } = pe();
|
|
162
162
|
e(
|
|
163
163
|
"Dialog is updating its height too often. Please check the content is reliably sized."
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
166
|
if (t.fullscreen) {
|
|
167
|
-
|
|
167
|
+
q.value = window.innerHeight;
|
|
168
168
|
return;
|
|
169
169
|
}
|
|
170
|
-
if (v.value && s.value &&
|
|
171
|
-
const e = v.value.scrollHeight + s.value.scrollHeight +
|
|
172
|
-
if (
|
|
173
|
-
const l = v.value.scrollHeight + s.value.scrollHeight +
|
|
170
|
+
if (v.value && s.value && f.value) {
|
|
171
|
+
const e = v.value.scrollHeight + s.value.scrollHeight + f.value.scrollHeight + 2;
|
|
172
|
+
if (y.value && (y.value.style.height = "0px", y.value.style.height = `${e + 2}px`, await H(30), v.value && s.value && f.value)) {
|
|
173
|
+
const l = v.value.scrollHeight + s.value.scrollHeight + f.value.scrollHeight + 2;
|
|
174
174
|
e !== l && r();
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -178,19 +178,19 @@ const ge = { class: "bb-base-dialog-close" }, me = { class: "bb-base-dialog-clos
|
|
|
178
178
|
200,
|
|
179
179
|
{ trailing: !0 }
|
|
180
180
|
);
|
|
181
|
-
return (e, l) => (
|
|
182
|
-
a("div",
|
|
181
|
+
return (e, l) => (_(), ue(de, { to: "body" }, [
|
|
182
|
+
a("div", G(te.value, {
|
|
183
183
|
ref_key: "overlay",
|
|
184
184
|
ref: c
|
|
185
185
|
}), [
|
|
186
|
-
a("div",
|
|
186
|
+
a("div", G(le.value, {
|
|
187
187
|
ref_key: "panel",
|
|
188
|
-
ref:
|
|
188
|
+
ref: $
|
|
189
189
|
}), [
|
|
190
|
-
i.value ? (
|
|
190
|
+
i.value ? (_(), T("div", {
|
|
191
191
|
key: 0,
|
|
192
192
|
ref_key: "content",
|
|
193
|
-
ref:
|
|
193
|
+
ref: y,
|
|
194
194
|
class: "bb-base-dialog__content"
|
|
195
195
|
}, [
|
|
196
196
|
a("div", {
|
|
@@ -199,7 +199,7 @@ const ge = { class: "bb-base-dialog-close" }, me = { class: "bb-base-dialog-clos
|
|
|
199
199
|
class: "bb-base-dialog__header"
|
|
200
200
|
}, [
|
|
201
201
|
u(e.$slots, "header", {
|
|
202
|
-
close:
|
|
202
|
+
close: A,
|
|
203
203
|
title: e.title,
|
|
204
204
|
titleId: C
|
|
205
205
|
}, () => [
|
|
@@ -208,22 +208,20 @@ const ge = { class: "bb-base-dialog-close" }, me = { class: "bb-base-dialog-clos
|
|
|
208
208
|
class: "bb-base-dialog__title"
|
|
209
209
|
}, [
|
|
210
210
|
u(e.$slots, "title", { text: e.title }, () => [
|
|
211
|
-
ce(
|
|
211
|
+
ce(P(e.title), 1)
|
|
212
212
|
])
|
|
213
213
|
]),
|
|
214
|
-
a("span",
|
|
215
|
-
e.showClose ? (
|
|
214
|
+
a("span", me, [
|
|
215
|
+
e.showClose ? (_(), T("button", {
|
|
216
216
|
key: 0,
|
|
217
|
+
"aria-label": Y.value,
|
|
217
218
|
type: "button",
|
|
218
|
-
onClick:
|
|
219
|
+
onClick: A
|
|
219
220
|
}, [
|
|
220
|
-
u(e.$slots, "close", {
|
|
221
|
-
|
|
222
|
-
a("span", he, z(O.value), 1),
|
|
223
|
-
ye
|
|
224
|
-
])
|
|
221
|
+
u(e.$slots, "close", {}, () => [
|
|
222
|
+
ye
|
|
225
223
|
])
|
|
226
|
-
])) :
|
|
224
|
+
], 8, ge)) : z("", !0)
|
|
227
225
|
])
|
|
228
226
|
])
|
|
229
227
|
], 512),
|
|
@@ -236,29 +234,29 @@ const ge = { class: "bb-base-dialog-close" }, me = { class: "bb-base-dialog-clos
|
|
|
236
234
|
descriptionId: B,
|
|
237
235
|
text: e.description
|
|
238
236
|
}, () => [
|
|
239
|
-
e.description ? (
|
|
237
|
+
e.description ? (_(), T("div", {
|
|
240
238
|
key: 0,
|
|
241
239
|
id: B,
|
|
242
|
-
class: "bb-base-dialog__description"
|
|
243
|
-
},
|
|
240
|
+
class: "bb-base-dialog__description sr-only"
|
|
241
|
+
}, P(e.description), 1)) : z("", !0)
|
|
244
242
|
]),
|
|
245
243
|
u(e.$slots, "default")
|
|
246
244
|
], 512),
|
|
247
|
-
|
|
245
|
+
he,
|
|
248
246
|
a("div", {
|
|
249
247
|
ref_key: "footer",
|
|
250
|
-
ref:
|
|
248
|
+
ref: f,
|
|
251
249
|
class: "bb-base-dialog__footer"
|
|
252
250
|
}, [
|
|
253
251
|
u(e.$slots, "footer")
|
|
254
252
|
], 512)
|
|
255
|
-
], 512)) :
|
|
253
|
+
], 512)) : z("", !0)
|
|
256
254
|
], 16)
|
|
257
255
|
], 16)
|
|
258
256
|
]));
|
|
259
257
|
}
|
|
260
258
|
});
|
|
261
259
|
export {
|
|
262
|
-
|
|
260
|
+
ze as default
|
|
263
261
|
};
|
|
264
|
-
//# sourceMappingURL=
|
|
262
|
+
//# sourceMappingURL=index23.js.map
|