@a-ui/react 7.13.0-beta.1 → 7.13.0-beta.2
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/package.json +3 -3
- package/index.js +0 -1
- package/index.mjs +0 -100
- package/index10.js +0 -1
- package/index10.mjs +0 -60
- package/index100.js +0 -1
- package/index100.mjs +0 -4
- package/index101.js +0 -1
- package/index101.mjs +0 -400
- package/index102.js +0 -5
- package/index102.mjs +0 -42
- package/index103.js +0 -1
- package/index103.mjs +0 -4
- package/index104.js +0 -1
- package/index104.mjs +0 -10
- package/index105.js +0 -2
- package/index105.mjs +0 -329
- package/index106.js +0 -1
- package/index106.mjs +0 -52
- package/index107.js +0 -1
- package/index107.mjs +0 -4
- package/index108.js +0 -1
- package/index108.mjs +0 -67
- package/index109.js +0 -1
- package/index109.mjs +0 -45
- package/index11.js +0 -1
- package/index11.mjs +0 -12
- package/index110.js +0 -10
- package/index110.mjs +0 -62
- package/index111.js +0 -1
- package/index111.mjs +0 -46
- package/index112.js +0 -1
- package/index112.mjs +0 -42
- package/index113.js +0 -1
- package/index113.mjs +0 -4
- package/index114.js +0 -1
- package/index114.mjs +0 -4
- package/index115.js +0 -1
- package/index115.mjs +0 -4
- package/index116.js +0 -1
- package/index116.mjs +0 -33
- package/index117.js +0 -5
- package/index117.mjs +0 -21
- package/index118.js +0 -9
- package/index118.mjs +0 -63
- package/index119.js +0 -1
- package/index119.mjs +0 -65
- package/index12.js +0 -1
- package/index12.mjs +0 -215
- package/index120.js +0 -1
- package/index120.mjs +0 -16
- package/index121.js +0 -1
- package/index121.mjs +0 -9
- package/index122.js +0 -1
- package/index122.mjs +0 -9
- package/index123.js +0 -1
- package/index123.mjs +0 -8
- package/index124.js +0 -1
- package/index124.mjs +0 -8
- package/index125.js +0 -1
- package/index125.mjs +0 -7
- package/index126.js +0 -1
- package/index126.mjs +0 -7
- package/index127.js +0 -1
- package/index127.mjs +0 -9
- package/index128.js +0 -1
- package/index128.mjs +0 -7
- package/index129.js +0 -1
- package/index129.mjs +0 -69
- package/index13.js +0 -1
- package/index13.mjs +0 -29
- package/index130.js +0 -1
- package/index130.mjs +0 -5
- package/index131.js +0 -1
- package/index131.mjs +0 -7
- package/index132.js +0 -1
- package/index132.mjs +0 -13
- package/index133.js +0 -1
- package/index133.mjs +0 -4
- package/index134.js +0 -1
- package/index134.mjs +0 -393
- package/index135.js +0 -1
- package/index135.mjs +0 -127
- package/index136.js +0 -1
- package/index136.mjs +0 -136
- package/index137.js +0 -1
- package/index137.mjs +0 -4
- package/index138.js +0 -1
- package/index138.mjs +0 -4
- package/index139.js +0 -8
- package/index139.mjs +0 -78
- package/index14.js +0 -1
- package/index14.mjs +0 -44
- package/index140.js +0 -8
- package/index140.mjs +0 -95
- package/index141.js +0 -5
- package/index141.mjs +0 -54
- package/index142.js +0 -1
- package/index142.mjs +0 -10
- package/index143.js +0 -1
- package/index143.mjs +0 -7
- package/index144.js +0 -1
- package/index144.mjs +0 -54
- package/index145.js +0 -11
- package/index145.mjs +0 -60
- package/index146.js +0 -1
- package/index146.mjs +0 -4
- package/index147.js +0 -1
- package/index147.mjs +0 -4
- package/index148.js +0 -1
- package/index148.mjs +0 -7
- package/index149.js +0 -1
- package/index149.mjs +0 -7
- package/index15.js +0 -1
- package/index15.mjs +0 -8
- package/index150.js +0 -1
- package/index150.mjs +0 -9
- package/index151.js +0 -1
- package/index151.mjs +0 -15
- package/index152.js +0 -1
- package/index152.mjs +0 -18
- package/index153.js +0 -1
- package/index153.mjs +0 -11
- package/index154.js +0 -1
- package/index154.mjs +0 -8
- package/index155.js +0 -1
- package/index155.mjs +0 -8
- package/index156.js +0 -1
- package/index156.mjs +0 -7
- package/index157.js +0 -1
- package/index157.mjs +0 -515
- package/index158.js +0 -1
- package/index158.mjs +0 -52
- package/index159.js +0 -1
- package/index159.mjs +0 -20
- package/index16.js +0 -1
- package/index16.mjs +0 -15
- package/index160.js +0 -1
- package/index160.mjs +0 -20
- package/index161.js +0 -1
- package/index161.mjs +0 -7
- package/index162.js +0 -1
- package/index162.mjs +0 -10
- package/index163.js +0 -1
- package/index163.mjs +0 -8
- package/index164.js +0 -1
- package/index164.mjs +0 -7
- package/index165.js +0 -1
- package/index165.mjs +0 -8
- package/index166.js +0 -1
- package/index166.mjs +0 -11
- package/index167.js +0 -1
- package/index167.mjs +0 -7
- package/index168.js +0 -1
- package/index168.mjs +0 -10
- package/index169.js +0 -1
- package/index169.mjs +0 -14
- package/index17.js +0 -1
- package/index17.mjs +0 -108
- package/index170.js +0 -1
- package/index170.mjs +0 -11
- package/index171.js +0 -1
- package/index171.mjs +0 -11
- package/index172.js +0 -1
- package/index172.mjs +0 -15
- package/index173.js +0 -1
- package/index173.mjs +0 -6
- package/index174.js +0 -1
- package/index174.mjs +0 -35
- package/index175.js +0 -1
- package/index175.mjs +0 -67
- package/index176.js +0 -1
- package/index176.mjs +0 -10
- package/index177.js +0 -1
- package/index177.mjs +0 -10
- package/index178.js +0 -1
- package/index178.mjs +0 -9
- package/index179.js +0 -1
- package/index179.mjs +0 -9
- package/index18.js +0 -1
- package/index18.mjs +0 -136
- package/index180.js +0 -1
- package/index180.mjs +0 -16
- package/index181.js +0 -1
- package/index181.mjs +0 -4
- package/index182.js +0 -1
- package/index182.mjs +0 -4
- package/index183.js +0 -1
- package/index183.mjs +0 -4
- package/index184.js +0 -1
- package/index184.mjs +0 -59
- package/index185.js +0 -1
- package/index185.mjs +0 -24
- package/index186.js +0 -1
- package/index186.mjs +0 -43
- package/index187.js +0 -1
- package/index187.mjs +0 -63
- package/index188.js +0 -1
- package/index188.mjs +0 -34
- package/index189.js +0 -1
- package/index189.mjs +0 -15
- package/index19.js +0 -1
- package/index19.mjs +0 -11
- package/index190.js +0 -1
- package/index190.mjs +0 -64
- package/index191.js +0 -1
- package/index191.mjs +0 -64
- package/index192.js +0 -1
- package/index192.mjs +0 -65
- package/index193.js +0 -1
- package/index193.mjs +0 -65
- package/index194.js +0 -1
- package/index194.mjs +0 -42
- package/index195.js +0 -1
- package/index195.mjs +0 -43
- package/index196.js +0 -1
- package/index196.mjs +0 -55
- package/index197.js +0 -1
- package/index197.mjs +0 -45
- package/index198.js +0 -1
- package/index198.mjs +0 -39
- package/index199.js +0 -1
- package/index199.mjs +0 -68
- package/index2.js +0 -1
- package/index2.mjs +0 -12
- package/index20.js +0 -1
- package/index20.mjs +0 -54
- package/index200.js +0 -1
- package/index200.mjs +0 -68
- package/index201.js +0 -1
- package/index201.mjs +0 -93
- package/index202.js +0 -1
- package/index202.mjs +0 -43
- package/index203.js +0 -1
- package/index203.mjs +0 -43
- package/index204.js +0 -1
- package/index204.mjs +0 -43
- package/index205.js +0 -1
- package/index205.mjs +0 -27
- package/index206.js +0 -1
- package/index206.mjs +0 -26
- package/index207.js +0 -1
- package/index207.mjs +0 -26
- package/index208.js +0 -1
- package/index208.mjs +0 -27
- package/index209.js +0 -1
- package/index209.mjs +0 -26
- package/index21.js +0 -1
- package/index21.mjs +0 -33
- package/index210.js +0 -1
- package/index210.mjs +0 -26
- package/index211.js +0 -1
- package/index211.mjs +0 -16
- package/index212.js +0 -1
- package/index212.mjs +0 -42
- package/index213.js +0 -1
- package/index213.mjs +0 -42
- package/index214.js +0 -1
- package/index214.mjs +0 -16
- package/index215.js +0 -1
- package/index215.mjs +0 -16
- package/index216.js +0 -1
- package/index216.mjs +0 -70
- package/index217.js +0 -1
- package/index217.mjs +0 -33
- package/index218.js +0 -1
- package/index218.mjs +0 -11
- package/index219.js +0 -1
- package/index219.mjs +0 -155
- package/index22.js +0 -1
- package/index22.mjs +0 -22
- package/index220.js +0 -1
- package/index220.mjs +0 -110
- package/index221.js +0 -1
- package/index221.mjs +0 -22
- package/index222.js +0 -1
- package/index222.mjs +0 -103
- package/index223.js +0 -1
- package/index223.mjs +0 -49
- package/index224.js +0 -1
- package/index224.mjs +0 -70
- package/index225.js +0 -1
- package/index225.mjs +0 -33
- package/index226.js +0 -1
- package/index226.mjs +0 -11
- package/index227.js +0 -1
- package/index227.mjs +0 -110
- package/index228.js +0 -1
- package/index228.mjs +0 -109
- package/index229.js +0 -1
- package/index229.mjs +0 -9
- package/index23.js +0 -1
- package/index23.mjs +0 -32
- package/index230.js +0 -1
- package/index230.mjs +0 -18
- package/index231.js +0 -1
- package/index231.mjs +0 -31
- package/index232.js +0 -1
- package/index232.mjs +0 -15
- package/index233.js +0 -1
- package/index233.mjs +0 -61
- package/index234.js +0 -1
- package/index234.mjs +0 -11
- package/index235.js +0 -1
- package/index235.mjs +0 -22
- package/index24.js +0 -2
- package/index24.mjs +0 -62
- package/index25.js +0 -1
- package/index25.mjs +0 -15
- package/index26.js +0 -1
- package/index26.mjs +0 -12
- package/index27.js +0 -1
- package/index27.mjs +0 -43
- package/index28.js +0 -1
- package/index28.mjs +0 -34
- package/index29.js +0 -1
- package/index29.mjs +0 -10
- package/index3.js +0 -1
- package/index3.mjs +0 -15
- package/index30.js +0 -1
- package/index30.mjs +0 -72
- package/index31.js +0 -1
- package/index31.mjs +0 -40
- package/index32.js +0 -1
- package/index32.mjs +0 -48
- package/index33.js +0 -1
- package/index33.mjs +0 -90
- package/index34.js +0 -1
- package/index34.mjs +0 -36
- package/index35.js +0 -1
- package/index35.mjs +0 -25
- package/index36.js +0 -1
- package/index36.mjs +0 -27
- package/index37.js +0 -1
- package/index37.mjs +0 -110
- package/index38.js +0 -1
- package/index38.mjs +0 -57
- package/index39.js +0 -1
- package/index39.mjs +0 -21
- package/index4.js +0 -1
- package/index4.mjs +0 -58
- package/index40.js +0 -1
- package/index40.mjs +0 -40
- package/index41.js +0 -1
- package/index41.mjs +0 -54
- package/index42.js +0 -1
- package/index42.mjs +0 -73
- package/index43.js +0 -1
- package/index43.mjs +0 -49
- package/index44.js +0 -1
- package/index44.mjs +0 -13
- package/index45.js +0 -1
- package/index45.mjs +0 -73
- package/index46.js +0 -1
- package/index46.mjs +0 -99
- package/index47.js +0 -1
- package/index47.mjs +0 -45
- package/index48.js +0 -1
- package/index48.mjs +0 -26
- package/index49.js +0 -1
- package/index49.mjs +0 -83
- package/index5.js +0 -1
- package/index5.mjs +0 -136
- package/index50.js +0 -1
- package/index50.mjs +0 -35
- package/index51.js +0 -1
- package/index51.mjs +0 -10
- package/index52.js +0 -1
- package/index52.mjs +0 -13
- package/index53.js +0 -1
- package/index53.mjs +0 -30
- package/index54.js +0 -1
- package/index54.mjs +0 -51
- package/index55.js +0 -1
- package/index55.mjs +0 -10
- package/index56.js +0 -1
- package/index56.mjs +0 -49
- package/index58.js +0 -1
- package/index58.mjs +0 -64
- package/index59.js +0 -1
- package/index59.mjs +0 -62
- package/index6.js +0 -1
- package/index6.mjs +0 -29
- package/index60.js +0 -1
- package/index60.mjs +0 -31
- package/index61.js +0 -1
- package/index61.mjs +0 -23
- package/index62.js +0 -1
- package/index62.mjs +0 -32
- package/index63.js +0 -1
- package/index63.mjs +0 -16
- package/index64.js +0 -1
- package/index64.mjs +0 -61
- package/index65.js +0 -1
- package/index65.mjs +0 -19
- package/index66.js +0 -7
- package/index66.mjs +0 -411
- package/index7.js +0 -1
- package/index7.mjs +0 -8
- package/index70.js +0 -1
- package/index70.mjs +0 -4
- package/index71.js +0 -1
- package/index71.mjs +0 -76
- package/index72.js +0 -1
- package/index72.mjs +0 -31
- package/index73.js +0 -1
- package/index73.mjs +0 -38
- package/index74.js +0 -1
- package/index74.mjs +0 -6
- package/index75.js +0 -1
- package/index75.mjs +0 -37
- package/index76.js +0 -1
- package/index76.mjs +0 -7
- package/index77.js +0 -1
- package/index77.mjs +0 -7
- package/index78.js +0 -1
- package/index78.mjs +0 -7
- package/index79.js +0 -1
- package/index79.mjs +0 -7
- package/index8.js +0 -1
- package/index8.mjs +0 -18
- package/index80.js +0 -1
- package/index80.mjs +0 -7
- package/index81.js +0 -1
- package/index81.mjs +0 -19
- package/index82.js +0 -1
- package/index82.mjs +0 -87
- package/index83.js +0 -1
- package/index83.mjs +0 -8
- package/index84.js +0 -1
- package/index84.mjs +0 -27
- package/index85.js +0 -1
- package/index85.mjs +0 -57
- package/index87.js +0 -1
- package/index87.mjs +0 -7
- package/index88.js +0 -1
- package/index88.mjs +0 -121
- package/index89.js +0 -1
- package/index89.mjs +0 -20
- package/index9.js +0 -1
- package/index9.mjs +0 -18
- package/index90.js +0 -1
- package/index90.mjs +0 -26
- package/index91.js +0 -1
- package/index91.mjs +0 -4
- package/index92.js +0 -1
- package/index92.mjs +0 -237
- package/index93.js +0 -1
- package/index93.mjs +0 -4
- package/index94.js +0 -1
- package/index94.mjs +0 -13
- package/index95.js +0 -1
- package/index95.mjs +0 -249
- package/index96.js +0 -1
- package/index96.mjs +0 -91
- package/index97.js +0 -1
- package/index97.mjs +0 -15
- package/index98.js +0 -1
- package/index98.mjs +0 -6
- package/index99.js +0 -1
- package/index99.mjs +0 -4
- package/packages/antwerp-ui/react-components/src/lib/atoms/input/text-field/TextField.css +0 -1
- package/packages/antwerp-ui/react-components/src/lib/atoms/tooltip/Tooltip.css +0 -1
- package/packages/antwerp-ui/react-components/src/lib/molecules/autocomplete/Autocomplete.css +0 -1
- package/packages/antwerp-ui/react-components/src/lib/molecules/datepicker/DateRangePicker.css +0 -1
package/index111.mjs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { __exports as r } from "./index114.mjs";
|
|
2
|
-
Object.defineProperty(r, "__esModule", {
|
|
3
|
-
value: !0
|
|
4
|
-
});
|
|
5
|
-
r.log = c;
|
|
6
|
-
r.resetState = l;
|
|
7
|
-
function i(s, e) {
|
|
8
|
-
if (!(s instanceof e))
|
|
9
|
-
throw new TypeError("Cannot call a class as a function");
|
|
10
|
-
}
|
|
11
|
-
var a = function s() {
|
|
12
|
-
var e = this;
|
|
13
|
-
i(this, s), this.register = function(n) {
|
|
14
|
-
if (e.openInstances.indexOf(n) !== -1) {
|
|
15
|
-
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Cannot register modal instance that's already open");
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
e.openInstances.push(n), e.emit("register");
|
|
19
|
-
}, this.deregister = function(n) {
|
|
20
|
-
var t = e.openInstances.indexOf(n);
|
|
21
|
-
if (t === -1) {
|
|
22
|
-
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Unable to deregister " + n + " as it was never registered");
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
e.openInstances.splice(t, 1), e.emit("deregister");
|
|
26
|
-
}, this.subscribe = function(n) {
|
|
27
|
-
e.subscribers.push(n);
|
|
28
|
-
}, this.emit = function(n) {
|
|
29
|
-
e.subscribers.forEach(function(t) {
|
|
30
|
-
return t(
|
|
31
|
-
n,
|
|
32
|
-
// shallow copy to avoid accidental mutation
|
|
33
|
-
e.openInstances.slice()
|
|
34
|
-
);
|
|
35
|
-
});
|
|
36
|
-
}, this.openInstances = [], this.subscribers = [];
|
|
37
|
-
}, o = new a();
|
|
38
|
-
function c() {
|
|
39
|
-
console.log("portalOpenInstances ----------"), console.log(o.openInstances.length), o.openInstances.forEach(function(s) {
|
|
40
|
-
return console.log(s);
|
|
41
|
-
}), console.log("end portalOpenInstances ----------");
|
|
42
|
-
}
|
|
43
|
-
function l() {
|
|
44
|
-
o = new a();
|
|
45
|
-
}
|
|
46
|
-
r.default = o;
|
package/index112.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./index147.js");require("./index111.js");const i=require("./index114.js");Object.defineProperty(s.__exports,"__esModule",{value:!0});s.__exports.resetState=f;s.__exports.log=v;var c=i.__exports,u=p(c);function p(t){return t&&t.__esModule?t:{default:t}}var e=void 0,n=void 0,r=[];function f(){for(var t=[e,n],o=0;o<t.length;o++){var a=t[o];a&&a.parentNode&&a.parentNode.removeChild(a)}e=n=null,r=[]}function v(){console.log("bodyTrap ----------"),console.log(r.length);for(var t=[e,n],o=0;o<t.length;o++){var a=t[o],l=a||{};console.log(l.nodeName,l.className,l.id)}console.log("edn bodyTrap ----------")}function d(){if(r.length===0){process.env.NODE_ENV!=="production"&&console.warn("React-Modal: Open instances > 0 expected");return}r[r.length-1].focusContent()}function _(t,o){!e&&!n&&(e=document.createElement("div"),e.setAttribute("data-react-modal-body-trap",""),e.style.position="absolute",e.style.opacity="0",e.setAttribute("tabindex","0"),e.addEventListener("focus",d),n=e.cloneNode(),n.addEventListener("focus",d)),r=o,r.length>0?(document.body.firstChild!==e&&document.body.insertBefore(e,document.body.firstChild),document.body.lastChild!==n&&document.body.appendChild(n)):(e.parentElement&&e.parentElement.removeChild(e),n.parentElement&&n.parentElement.removeChild(n))}u.default.subscribe(_);module.exports=s.__exports;
|
package/index112.mjs
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { __exports as d } from "./index147.mjs";
|
|
2
|
-
import "./index111.mjs";
|
|
3
|
-
import { __exports as i } from "./index114.mjs";
|
|
4
|
-
Object.defineProperty(d, "__esModule", {
|
|
5
|
-
value: !0
|
|
6
|
-
});
|
|
7
|
-
d.resetState = f;
|
|
8
|
-
d.log = v;
|
|
9
|
-
var p = i, c = u(p);
|
|
10
|
-
function u(t) {
|
|
11
|
-
return t && t.__esModule ? t : { default: t };
|
|
12
|
-
}
|
|
13
|
-
var e = void 0, o = void 0, r = [];
|
|
14
|
-
function f() {
|
|
15
|
-
for (var t = [e, o], n = 0; n < t.length; n++) {
|
|
16
|
-
var a = t[n];
|
|
17
|
-
a && a.parentNode && a.parentNode.removeChild(a);
|
|
18
|
-
}
|
|
19
|
-
e = o = null, r = [];
|
|
20
|
-
}
|
|
21
|
-
function v() {
|
|
22
|
-
console.log("bodyTrap ----------"), console.log(r.length);
|
|
23
|
-
for (var t = [e, o], n = 0; n < t.length; n++) {
|
|
24
|
-
var a = t[n], l = a || {};
|
|
25
|
-
console.log(l.nodeName, l.className, l.id);
|
|
26
|
-
}
|
|
27
|
-
console.log("edn bodyTrap ----------");
|
|
28
|
-
}
|
|
29
|
-
function s() {
|
|
30
|
-
if (r.length === 0) {
|
|
31
|
-
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Open instances > 0 expected");
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
r[r.length - 1].focusContent();
|
|
35
|
-
}
|
|
36
|
-
function m(t, n) {
|
|
37
|
-
!e && !o && (e = document.createElement("div"), e.setAttribute("data-react-modal-body-trap", ""), e.style.position = "absolute", e.style.opacity = "0", e.setAttribute("tabindex", "0"), e.addEventListener("focus", s), o = e.cloneNode(), o.addEventListener("focus", s)), r = n, r.length > 0 ? (document.body.firstChild !== e && document.body.insertBefore(e, document.body.firstChild), document.body.lastChild !== o && document.body.appendChild(o)) : (e.parentElement && e.parentElement.removeChild(e), o.parentElement && o.parentElement.removeChild(o));
|
|
38
|
-
}
|
|
39
|
-
c.default.subscribe(m);
|
|
40
|
-
export {
|
|
41
|
-
d as default
|
|
42
|
-
};
|
package/index113.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/index113.mjs
DELETED
package/index114.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/index114.mjs
DELETED
package/index115.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/index115.mjs
DELETED
package/index116.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var g=process.env.NODE_ENV!=="production",i=function(){};if(g){var c=function(a,r){var e=arguments.length;r=new Array(e>1?e-1:0);for(var n=1;n<e;n++)r[n-1]=arguments[n];var u=0,o="Warning: "+a.replace(/%s/g,function(){return r[u++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}};i=function(t,a,r){var e=arguments.length;r=new Array(e>2?e-2:0);for(var n=2;n<e;n++)r[n-2]=arguments[n];if(a===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");t||c.apply(null,[a].concat(r))}}var f=i;exports.warning_1=f;
|
package/index116.mjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var c = process.env.NODE_ENV !== "production", i = function() {
|
|
2
|
-
};
|
|
3
|
-
if (c) {
|
|
4
|
-
var g = function(e, r) {
|
|
5
|
-
var a = arguments.length;
|
|
6
|
-
r = new Array(a > 1 ? a - 1 : 0);
|
|
7
|
-
for (var n = 1; n < a; n++)
|
|
8
|
-
r[n - 1] = arguments[n];
|
|
9
|
-
var u = 0, t = "Warning: " + e.replace(/%s/g, function() {
|
|
10
|
-
return r[u++];
|
|
11
|
-
});
|
|
12
|
-
typeof console < "u" && console.error(t);
|
|
13
|
-
try {
|
|
14
|
-
throw new Error(t);
|
|
15
|
-
} catch {
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
i = function(o, e, r) {
|
|
19
|
-
var a = arguments.length;
|
|
20
|
-
r = new Array(a > 2 ? a - 2 : 0);
|
|
21
|
-
for (var n = 2; n < a; n++)
|
|
22
|
-
r[n - 2] = arguments[n];
|
|
23
|
-
if (e === void 0)
|
|
24
|
-
throw new Error(
|
|
25
|
-
"`warning(condition, format, ...args)` requires a warning message argument"
|
|
26
|
-
);
|
|
27
|
-
o || g.apply(null, [e].concat(r));
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
var s = i;
|
|
31
|
-
export {
|
|
32
|
-
s as w
|
|
33
|
-
};
|
package/index117.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index137.js");/*!
|
|
2
|
-
Copyright (c) 2015 Jed Watson.
|
|
3
|
-
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
4
|
-
All rights reserved.
|
|
5
|
-
*/(function(n){(function(){var e=!!(typeof window<"u"&&window.document&&window.document.createElement),t={canUseDOM:e,canUseWorkers:typeof Worker<"u",canUseEventListeners:e&&!!(window.addEventListener||window.attachEvent),canUseViewport:e&&!!window.screen};n.exports?n.exports=t:window.ExecutionEnvironment=t})()})(o.__module);var r=o.__module.exports;exports.exenvExports=r;
|
package/index117.mjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { __module as t } from "./index137.mjs";
|
|
2
|
-
/*!
|
|
3
|
-
Copyright (c) 2015 Jed Watson.
|
|
4
|
-
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
5
|
-
All rights reserved.
|
|
6
|
-
*/
|
|
7
|
-
(function(n) {
|
|
8
|
-
(function() {
|
|
9
|
-
var e = !!(typeof window < "u" && window.document && window.document.createElement), o = {
|
|
10
|
-
canUseDOM: e,
|
|
11
|
-
canUseWorkers: typeof Worker < "u",
|
|
12
|
-
canUseEventListeners: e && !!(window.addEventListener || window.attachEvent),
|
|
13
|
-
canUseViewport: e && !!window.screen
|
|
14
|
-
};
|
|
15
|
-
n.exports ? n.exports = o : window.ExecutionEnvironment = o;
|
|
16
|
-
})();
|
|
17
|
-
})(t);
|
|
18
|
-
var i = t.exports;
|
|
19
|
-
export {
|
|
20
|
-
i as e
|
|
21
|
-
};
|
package/index118.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function l(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function r(t){function e(o){var n=this.constructor.getDerivedStateFromProps(t,o);return n??null}this.setState(e.bind(this))}function p(t,e){try{var o=this.props,n=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,n)}finally{this.props=o,this.state=n}}l.__suppressDeprecationWarning=!0;r.__suppressDeprecationWarning=!0;p.__suppressDeprecationWarning=!0;function m(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if(typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function")return t;var o=null,n=null,i=null;if(typeof e.componentWillMount=="function"?o="componentWillMount":typeof e.UNSAFE_componentWillMount=="function"&&(o="UNSAFE_componentWillMount"),typeof e.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof e.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof e.componentWillUpdate=="function"?i="componentWillUpdate":typeof e.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),o!==null||n!==null||i!==null){var a=t.displayName||t.name,s=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
2
|
-
|
|
3
|
-
`+a+" uses "+s+" but also contains the following legacy lifecycles:"+(o!==null?`
|
|
4
|
-
`+o:"")+(n!==null?`
|
|
5
|
-
`+n:"")+(i!==null?`
|
|
6
|
-
`+i:"")+`
|
|
7
|
-
|
|
8
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
9
|
-
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof t.getDerivedStateFromProps=="function"&&(e.componentWillMount=l,e.componentWillReceiveProps=r),typeof e.getSnapshotBeforeUpdate=="function"){if(typeof e.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=p;var c=e.componentDidUpdate;e.componentDidUpdate=function(f,u,d){var h=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;c.call(this,f,u,h)}}return t}exports.polyfill=m;
|
package/index118.mjs
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
function l() {
|
|
2
|
-
var t = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
3
|
-
t != null && this.setState(t);
|
|
4
|
-
}
|
|
5
|
-
function p(t) {
|
|
6
|
-
function e(o) {
|
|
7
|
-
var n = this.constructor.getDerivedStateFromProps(t, o);
|
|
8
|
-
return n ?? null;
|
|
9
|
-
}
|
|
10
|
-
this.setState(e.bind(this));
|
|
11
|
-
}
|
|
12
|
-
function r(t, e) {
|
|
13
|
-
try {
|
|
14
|
-
var o = this.props, n = this.state;
|
|
15
|
-
this.props = t, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
|
|
16
|
-
o,
|
|
17
|
-
n
|
|
18
|
-
);
|
|
19
|
-
} finally {
|
|
20
|
-
this.props = o, this.state = n;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
l.__suppressDeprecationWarning = !0;
|
|
24
|
-
p.__suppressDeprecationWarning = !0;
|
|
25
|
-
r.__suppressDeprecationWarning = !0;
|
|
26
|
-
function y(t) {
|
|
27
|
-
var e = t.prototype;
|
|
28
|
-
if (!e || !e.isReactComponent)
|
|
29
|
-
throw new Error("Can only polyfill class components");
|
|
30
|
-
if (typeof t.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function")
|
|
31
|
-
return t;
|
|
32
|
-
var o = null, n = null, i = null;
|
|
33
|
-
if (typeof e.componentWillMount == "function" ? o = "componentWillMount" : typeof e.UNSAFE_componentWillMount == "function" && (o = "UNSAFE_componentWillMount"), typeof e.componentWillReceiveProps == "function" ? n = "componentWillReceiveProps" : typeof e.UNSAFE_componentWillReceiveProps == "function" && (n = "UNSAFE_componentWillReceiveProps"), typeof e.componentWillUpdate == "function" ? i = "componentWillUpdate" : typeof e.UNSAFE_componentWillUpdate == "function" && (i = "UNSAFE_componentWillUpdate"), o !== null || n !== null || i !== null) {
|
|
34
|
-
var a = t.displayName || t.name, s = typeof t.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
|
|
35
|
-
throw Error(
|
|
36
|
-
`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
37
|
-
|
|
38
|
-
` + a + " uses " + s + " but also contains the following legacy lifecycles:" + (o !== null ? `
|
|
39
|
-
` + o : "") + (n !== null ? `
|
|
40
|
-
` + n : "") + (i !== null ? `
|
|
41
|
-
` + i : "") + `
|
|
42
|
-
|
|
43
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
44
|
-
https://fb.me/react-async-component-lifecycle-hooks`
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
if (typeof t.getDerivedStateFromProps == "function" && (e.componentWillMount = l, e.componentWillReceiveProps = p), typeof e.getSnapshotBeforeUpdate == "function") {
|
|
48
|
-
if (typeof e.componentDidUpdate != "function")
|
|
49
|
-
throw new Error(
|
|
50
|
-
"Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype"
|
|
51
|
-
);
|
|
52
|
-
e.componentWillUpdate = r;
|
|
53
|
-
var c = e.componentDidUpdate;
|
|
54
|
-
e.componentDidUpdate = function(f, u, d) {
|
|
55
|
-
var h = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
|
|
56
|
-
c.call(this, f, u, h);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
return t;
|
|
60
|
-
}
|
|
61
|
-
export {
|
|
62
|
-
y as polyfill
|
|
63
|
-
};
|
package/index119.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),O=require("./index51.js"),c=require("react"),D=require("./index75.js"),r=require("./index132.js"),p=require("./index131.js"),w=require("./index123.js"),E=require("./index125.js"),R=require("./index124.js"),S=require("./index85.js");function $({date:e,monthYear:u,unavailable:i,unavailableFrom:a,unavailableTo:m,value:n,onChange:d,highlight:s,ariaLabelCurrentDay:b,onMouseEnter:f,onMouseLeave:y,hoverStyle:j}){const o=c.useMemo(()=>D.isInRange(e,a,m,i),[i,a,m,e]),M=c.useMemo(()=>!!n&&r.isSameDay(n,e)&&!(s&&(s[0]||s[1])),[n,e,s]),x=c.useMemo(()=>!!s&&(s[0]&&r.isSameDay(new Date(s[0]),e)||s[1]&&r.isSameDay(new Date(s[1]),e)||s[0]&&s[1]&&D.isBetween(e,s[0],s[1])),[s,e]),q=r.isSameDay(e,new Date),B=O.classNames({"is-current":q,"is-faded":p.isBefore(e,w.startOfMonth(u))||E.isAfter(e,R.endOfMonth(u)),"is-unavailable":o,"is-selected":M||!!x,"is-hovered":!!j});return t.jsx("td",{children:t.jsx("button",{className:B,tabIndex:o?-1:void 0,disabled:o,type:"button","aria-pressed":M,"aria-label":`${S.format(e,"EEEE d MMMM yyyy")}${q?`, ${b}`:""}`,onClick:()=>{d(e)},onMouseEnter:()=>{f&&f(e)},onMouseLeave:()=>{y&&y(e)},children:t.jsx("span",{children:S.format(e,"d")})})})}exports.DayButton=$;
|
package/index119.mjs
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { classNames as $ } from "./index51.mjs";
|
|
3
|
-
import { useMemo as f } from "react";
|
|
4
|
-
import { isInRange as a, isBetween as C } from "./index75.mjs";
|
|
5
|
-
import { isSameDay as s } from "./index132.mjs";
|
|
6
|
-
import { isBefore as I } from "./index131.mjs";
|
|
7
|
-
import { startOfMonth as N } from "./index123.mjs";
|
|
8
|
-
import { isAfter as O } from "./index125.mjs";
|
|
9
|
-
import { endOfMonth as S } from "./index124.mjs";
|
|
10
|
-
import { format as u } from "./index85.mjs";
|
|
11
|
-
function K({
|
|
12
|
-
date: r,
|
|
13
|
-
monthYear: c,
|
|
14
|
-
unavailable: p,
|
|
15
|
-
unavailableFrom: t,
|
|
16
|
-
unavailableTo: i,
|
|
17
|
-
value: n,
|
|
18
|
-
onChange: w,
|
|
19
|
-
highlight: o,
|
|
20
|
-
ariaLabelCurrentDay: E,
|
|
21
|
-
onMouseEnter: y,
|
|
22
|
-
onMouseLeave: M,
|
|
23
|
-
hoverStyle: d
|
|
24
|
-
}) {
|
|
25
|
-
const e = f(
|
|
26
|
-
() => a(r, t, i, p),
|
|
27
|
-
[p, t, i, r]
|
|
28
|
-
), D = f(
|
|
29
|
-
() => !!n && s(n, r) && !(o && (o[0] || o[1])),
|
|
30
|
-
[n, r, o]
|
|
31
|
-
), x = f(
|
|
32
|
-
() => !!o && (o[0] && s(new Date(o[0]), r) || o[1] && s(new Date(o[1]), r) || o[0] && o[1] && C(r, o[0], o[1])),
|
|
33
|
-
[o, r]
|
|
34
|
-
), b = s(r, /* @__PURE__ */ new Date()), B = $({
|
|
35
|
-
"is-current": b,
|
|
36
|
-
"is-faded": I(r, N(c)) || O(r, S(c)),
|
|
37
|
-
"is-unavailable": e,
|
|
38
|
-
"is-selected": D || !!x,
|
|
39
|
-
"is-hovered": !!d
|
|
40
|
-
});
|
|
41
|
-
return /* @__PURE__ */ m("td", { children: /* @__PURE__ */ m(
|
|
42
|
-
"button",
|
|
43
|
-
{
|
|
44
|
-
className: B,
|
|
45
|
-
tabIndex: e ? -1 : void 0,
|
|
46
|
-
disabled: e,
|
|
47
|
-
type: "button",
|
|
48
|
-
"aria-pressed": D,
|
|
49
|
-
"aria-label": `${u(r, "EEEE d MMMM yyyy")}${b ? `, ${E}` : ""}`,
|
|
50
|
-
onClick: () => {
|
|
51
|
-
w(r);
|
|
52
|
-
},
|
|
53
|
-
onMouseEnter: () => {
|
|
54
|
-
y && y(r);
|
|
55
|
-
},
|
|
56
|
-
onMouseLeave: () => {
|
|
57
|
-
M && M(r);
|
|
58
|
-
},
|
|
59
|
-
children: /* @__PURE__ */ m("span", { children: u(r, "d") })
|
|
60
|
-
}
|
|
61
|
-
) });
|
|
62
|
-
}
|
|
63
|
-
export {
|
|
64
|
-
K as DayButton
|
|
65
|
-
};
|
package/index12.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),t=require("./index70.js"),ee=require("./index51.js"),te=require("./index71.js"),d=require("react"),ae=require("./index52.js"),ne=require("./index72.js"),re=require("./index73.js"),ie=require("./index74.js"),l=require("./index75.js"),M=require("./index76.js"),v=require("./index77.js"),se=require("./index78.js"),oe=require("./index79.js"),ce=require("./index80.js"),de=require("./index81.js"),ue=require("./index24.js"),O=require("./index10.js"),$=d.forwardRef(({ariaLabel:F="Kalender",ariaLabelCurrentDay:H="Huidige dag",ariaLabelNextMonth:b="Ga naar de volgende maand",ariaLabelNextYear:k="Ga naar het volgend jaar",ariaLabelNextYears:q="Ga naar de volgende jaren",ariaLabelPreviousMonth:T="Ga naar de vorige maand",ariaLabelPreviousYear:j="Ga naar het vorig jaar",ariaLabelPreviousYears:E="Ga naar de voorgaande jaren",className:x,highlightDates:G,isOpen:_=!0,locale:o=ae.DEFAULT_LOCALE,onBlur:W,onChange:R,qa:B,unavailable:I=[],unavailableFrom:K,unavailableTo:P,value:u,hoverStart:L,isModal:S=!1},w)=>{const[D,V]=d.useState(u?new Date(u):void 0),[n,m]=d.useState(M.getYear(new Date(u||new Date))),[r,f]=d.useState(v.getMonth(new Date(u||new Date))),[a,p]=d.useState(t.CalendarView.DAYS),[h,Y]=d.useState(n-7);d.useEffect(()=>{const e=u?new Date(u):void 0;if(isNaN(e?.getTime())){f(v.getMonth(new Date)),m(M.getYear(new Date)),Y(M.getYear(new Date)-7),V(void 0);return}return V(e)},[u]),d.useEffect(()=>{if(S&&w&&"current"in w&&w.current){const e=w.current,i=Array.from(e.querySelectorAll("button")).filter(c=>!c.disabled),y=i[0],C=i[i.length-1];e.contains(document.activeElement)||y.focus();const N=c=>{c.key==="Tab"&&c.shiftKey&&document.activeElement===y?(C.focus(),c.preventDefault()):c.key==="Tab"&&!c.shiftKey&&document.activeElement===C&&(y.focus(),c.preventDefault())};return e.addEventListener("keydown",N),function(){e?.removeEventListener("keydown",N)}}},[w,S,a,r,n]);const g=d.useMemo(()=>{const e=new Date(n,r);return{[t.CalendarView.DAYS]:{main:ie.titleize(l.formatWithFallback(e,"MMMM yyyy",o)),next:`${b}, ${l.formatWithFallback(de.addMonths(e,1),"MMMM yyyy",o)}`,prev:`${T}, ${l.formatWithFallback(ce.subMonths(e),"MMMM yyyy",o)}`},[t.CalendarView.MONTHS]:{main:l.formatWithFallback(e,"yyyy",o),next:`${k}, ${l.formatWithFallback(oe.addYears(e,1),"yyyy",o)}`,prev:`${j}, ${l.formatWithFallback(se.subYears(e),"yyyy",o)}`},[t.CalendarView.YEARS]:{main:`${h} - ${h+17}`,next:q,prev:E}}[a]},[a,n,r,h,b,k,q,T,j,E,o]),U=()=>{if(a===t.CalendarView.DAYS)return m(r===0?n-1:n),f(r===0?11:r-1);if(a===t.CalendarView.MONTHS)return m(n-1);if(a===t.CalendarView.YEARS)return Y(h-18)},z=()=>{if(a===t.CalendarView.DAYS)return m(r===11?n+1:n),f((r+1)%12);if(a===t.CalendarView.MONTHS)return m(n+1);if(a===t.CalendarView.YEARS)return Y(h+18)},J=()=>{const e=[t.CalendarView.DAYS,t.CalendarView.MONTHS,t.CalendarView.YEARS];p(e[(e.findIndex(i=>i===a)+1)%e.length])},A=e=>{if(a===t.CalendarView.DAYS){V(e);const i=e.getFullYear(),y=e.getMonth(),C=e.getDate();return R&&R(l.toUtcMidnightInBrussels(i,y,C))}else{if(a===t.CalendarView.MONTHS)return f(v.getMonth(e)),p(t.CalendarView.DAYS);if(a===t.CalendarView.YEARS)return m(M.getYear(e)),p(t.CalendarView.MONTHS)}},Q=()=>{switch(a){case t.CalendarView.DAYS:return s.jsx(te.DaysView,{highlight:G,locale:o,ariaLabelCurrentDay:H,activeMonth:r,activeYear:n,value:D,onChange:A,unavailableFrom:K,unavailableTo:P,unavailable:I,hoverStart:L});case t.CalendarView.MONTHS:return s.jsx(ne.MonthsView,{locale:o,value:D,onChange:A,activeYear:n});case t.CalendarView.YEARS:return s.jsx(re.YearsView,{value:D,onChange:A,yearsRowsStart:h,activeMonth:r})}},X=ee.classNames({"m-datepicker":!0,"is-open":!!_,[`${x}`]:!!x}),Z=S?{role:"dialog","aria-modal":!0}:{};return s.jsxs("div",{ref:w,"aria-label":F,className:X,"aria-hidden":!_,"data-qa":B,onBlur:W,onMouseDownCapture:e=>{const i=e.currentTarget;i.setAttribute("data-mousedown-inside","true"),setTimeout(()=>i.removeAttribute("data-mousedown-inside"),0)},onClick:e=>e.stopPropagation(),...Z,children:[s.jsxs("div",{className:"m-datepicker__nav",children:[s.jsxs("button",{type:"button",className:"m-datepicker__nav-title","aria-label":g.main,onClick:J,children:[g.main,s.jsx(ue.Icon,{name:a===t.CalendarView.DAYS?"arrow-down-1":"arrow-up-1"})]}),s.jsxs("div",{className:"m-datepicker__nav-pagination",children:[s.jsx(O.Button,{ariaLabel:g.prev,emphasis:"low",addOn:{type:"icon",iconProps:{name:"arrow-left-1"}},onClick:U}),s.jsx(O.Button,{ariaLabel:g.next,emphasis:"low",addOn:{type:"icon",iconProps:{name:"arrow-right-1"}},onClick:z})]})]}),Q()]})});exports.Calendar=$;exports.default=$;
|
package/index12.mjs
DELETED
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import { jsxs as g, jsx as f } from "react/jsx-runtime";
|
|
2
|
-
import { CalendarView as t } from "./index70.mjs";
|
|
3
|
-
import { classNames as ee } from "./index51.mjs";
|
|
4
|
-
import { DaysView as te } from "./index71.mjs";
|
|
5
|
-
import { forwardRef as ne, useState as y, useEffect as x, useMemo as re } from "react";
|
|
6
|
-
import { DEFAULT_LOCALE as ae } from "./index52.mjs";
|
|
7
|
-
import { MonthsView as oe } from "./index72.mjs";
|
|
8
|
-
import { YearsView as ie } from "./index73.mjs";
|
|
9
|
-
import { titleize as se } from "./index74.mjs";
|
|
10
|
-
import { formatWithFallback as p, toUtcMidnightInBrussels as ce } from "./index75.mjs";
|
|
11
|
-
import { getYear as S } from "./index76.mjs";
|
|
12
|
-
import { getMonth as C } from "./index77.mjs";
|
|
13
|
-
import { subYears as me } from "./index78.mjs";
|
|
14
|
-
import { addYears as de } from "./index79.mjs";
|
|
15
|
-
import { subMonths as ue } from "./index80.mjs";
|
|
16
|
-
import { addMonths as fe } from "./index81.mjs";
|
|
17
|
-
import { Icon as pe } from "./index24.mjs";
|
|
18
|
-
import { Button as G } from "./index10.mjs";
|
|
19
|
-
const Re = ne(
|
|
20
|
-
({
|
|
21
|
-
ariaLabel: F = "Kalender",
|
|
22
|
-
ariaLabelCurrentDay: I = "Huidige dag",
|
|
23
|
-
ariaLabelNextMonth: b = "Ga naar de volgende maand",
|
|
24
|
-
ariaLabelNextYear: E = "Ga naar het volgend jaar",
|
|
25
|
-
ariaLabelNextYears: N = "Ga naar de volgende jaren",
|
|
26
|
-
ariaLabelPreviousMonth: $ = "Ga naar de vorige maand",
|
|
27
|
-
ariaLabelPreviousYear: O = "Ga naar het vorig jaar",
|
|
28
|
-
ariaLabelPreviousYears: R = "Ga naar de voorgaande jaren",
|
|
29
|
-
className: H,
|
|
30
|
-
highlightDates: K,
|
|
31
|
-
isOpen: V = !0,
|
|
32
|
-
locale: i = ae,
|
|
33
|
-
onBlur: P,
|
|
34
|
-
onChange: _,
|
|
35
|
-
qa: q,
|
|
36
|
-
unavailable: B = [],
|
|
37
|
-
unavailableFrom: L,
|
|
38
|
-
unavailableTo: U,
|
|
39
|
-
value: c,
|
|
40
|
-
hoverStart: z,
|
|
41
|
-
isModal: A = !1
|
|
42
|
-
}, m) => {
|
|
43
|
-
const [M, v] = y(c ? new Date(c) : void 0), [r, d] = y(S(new Date(c || /* @__PURE__ */ new Date()))), [a, h] = y(C(new Date(c || /* @__PURE__ */ new Date()))), [n, Y] = y(t.DAYS), [u, k] = y(r - 7);
|
|
44
|
-
x(() => {
|
|
45
|
-
const e = c ? new Date(c) : void 0;
|
|
46
|
-
if (isNaN(e?.getTime())) {
|
|
47
|
-
h(C(/* @__PURE__ */ new Date())), d(S(/* @__PURE__ */ new Date())), k(S(/* @__PURE__ */ new Date()) - 7), v(void 0);
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
return v(e);
|
|
51
|
-
}, [c]), x(() => {
|
|
52
|
-
if (A && m && "current" in m && m.current) {
|
|
53
|
-
const e = m.current, o = Array.from(e.querySelectorAll("button")).filter((s) => !s.disabled), l = o[0], D = o[o.length - 1];
|
|
54
|
-
e.contains(document.activeElement) || l.focus();
|
|
55
|
-
const j = (s) => {
|
|
56
|
-
s.key === "Tab" && s.shiftKey && document.activeElement === l ? (D.focus(), s.preventDefault()) : s.key === "Tab" && !s.shiftKey && document.activeElement === D && (l.focus(), s.preventDefault());
|
|
57
|
-
};
|
|
58
|
-
return e.addEventListener("keydown", j), function() {
|
|
59
|
-
e?.removeEventListener("keydown", j);
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
}, [m, A, n, a, r]);
|
|
63
|
-
const w = re(() => {
|
|
64
|
-
const e = new Date(r, a);
|
|
65
|
-
return {
|
|
66
|
-
[t.DAYS]: {
|
|
67
|
-
main: se(p(e, "MMMM yyyy", i)),
|
|
68
|
-
next: `${b}, ${p(fe(e, 1), "MMMM yyyy", i)}`,
|
|
69
|
-
prev: `${$}, ${p(ue(e), "MMMM yyyy", i)}`
|
|
70
|
-
},
|
|
71
|
-
[t.MONTHS]: {
|
|
72
|
-
main: p(e, "yyyy", i),
|
|
73
|
-
next: `${E}, ${p(de(e, 1), "yyyy", i)}`,
|
|
74
|
-
prev: `${O}, ${p(me(e), "yyyy", i)}`
|
|
75
|
-
},
|
|
76
|
-
[t.YEARS]: {
|
|
77
|
-
main: `${u} - ${u + 17}`,
|
|
78
|
-
next: N,
|
|
79
|
-
prev: R
|
|
80
|
-
}
|
|
81
|
-
}[n];
|
|
82
|
-
}, [
|
|
83
|
-
n,
|
|
84
|
-
r,
|
|
85
|
-
a,
|
|
86
|
-
u,
|
|
87
|
-
b,
|
|
88
|
-
E,
|
|
89
|
-
N,
|
|
90
|
-
$,
|
|
91
|
-
O,
|
|
92
|
-
R,
|
|
93
|
-
i
|
|
94
|
-
]), W = () => {
|
|
95
|
-
if (n === t.DAYS)
|
|
96
|
-
return d(a === 0 ? r - 1 : r), h(a === 0 ? 11 : a - 1);
|
|
97
|
-
if (n === t.MONTHS)
|
|
98
|
-
return d(r - 1);
|
|
99
|
-
if (n === t.YEARS)
|
|
100
|
-
return k(u - 18);
|
|
101
|
-
}, J = () => {
|
|
102
|
-
if (n === t.DAYS)
|
|
103
|
-
return d(a === 11 ? r + 1 : r), h((a + 1) % 12);
|
|
104
|
-
if (n === t.MONTHS)
|
|
105
|
-
return d(r + 1);
|
|
106
|
-
if (n === t.YEARS)
|
|
107
|
-
return k(u + 18);
|
|
108
|
-
}, Q = () => {
|
|
109
|
-
const e = [t.DAYS, t.MONTHS, t.YEARS];
|
|
110
|
-
Y(e[(e.findIndex((o) => o === n) + 1) % e.length]);
|
|
111
|
-
}, T = (e) => {
|
|
112
|
-
if (n === t.DAYS) {
|
|
113
|
-
v(e);
|
|
114
|
-
const o = e.getFullYear(), l = e.getMonth(), D = e.getDate();
|
|
115
|
-
return _ && _(ce(o, l, D));
|
|
116
|
-
} else {
|
|
117
|
-
if (n === t.MONTHS)
|
|
118
|
-
return h(C(e)), Y(t.DAYS);
|
|
119
|
-
if (n === t.YEARS)
|
|
120
|
-
return d(S(e)), Y(t.MONTHS);
|
|
121
|
-
}
|
|
122
|
-
}, X = () => {
|
|
123
|
-
switch (n) {
|
|
124
|
-
case t.DAYS:
|
|
125
|
-
return /* @__PURE__ */ f(
|
|
126
|
-
te,
|
|
127
|
-
{
|
|
128
|
-
highlight: K,
|
|
129
|
-
locale: i,
|
|
130
|
-
ariaLabelCurrentDay: I,
|
|
131
|
-
activeMonth: a,
|
|
132
|
-
activeYear: r,
|
|
133
|
-
value: M,
|
|
134
|
-
onChange: T,
|
|
135
|
-
unavailableFrom: L,
|
|
136
|
-
unavailableTo: U,
|
|
137
|
-
unavailable: B,
|
|
138
|
-
hoverStart: z
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
case t.MONTHS:
|
|
142
|
-
return /* @__PURE__ */ f(oe, { locale: i, value: M, onChange: T, activeYear: r });
|
|
143
|
-
case t.YEARS:
|
|
144
|
-
return /* @__PURE__ */ f(
|
|
145
|
-
ie,
|
|
146
|
-
{
|
|
147
|
-
value: M,
|
|
148
|
-
onChange: T,
|
|
149
|
-
yearsRowsStart: u,
|
|
150
|
-
activeMonth: a
|
|
151
|
-
}
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
}, Z = ee({ "m-datepicker": !0, "is-open": !!V, [`${H}`]: !!H });
|
|
155
|
-
return /* @__PURE__ */ g(
|
|
156
|
-
"div",
|
|
157
|
-
{
|
|
158
|
-
ref: m,
|
|
159
|
-
"aria-label": F,
|
|
160
|
-
className: Z,
|
|
161
|
-
"aria-hidden": !V,
|
|
162
|
-
"data-qa": q,
|
|
163
|
-
onBlur: P,
|
|
164
|
-
onMouseDownCapture: (e) => {
|
|
165
|
-
const o = e.currentTarget;
|
|
166
|
-
o.setAttribute("data-mousedown-inside", "true"), setTimeout(() => o.removeAttribute("data-mousedown-inside"), 0);
|
|
167
|
-
},
|
|
168
|
-
onClick: (e) => e.stopPropagation(),
|
|
169
|
-
...A ? { role: "dialog", "aria-modal": !0 } : {},
|
|
170
|
-
children: [
|
|
171
|
-
/* @__PURE__ */ g("div", { className: "m-datepicker__nav", children: [
|
|
172
|
-
/* @__PURE__ */ g(
|
|
173
|
-
"button",
|
|
174
|
-
{
|
|
175
|
-
type: "button",
|
|
176
|
-
className: "m-datepicker__nav-title",
|
|
177
|
-
"aria-label": w.main,
|
|
178
|
-
onClick: Q,
|
|
179
|
-
children: [
|
|
180
|
-
w.main,
|
|
181
|
-
/* @__PURE__ */ f(pe, { name: n === t.DAYS ? "arrow-down-1" : "arrow-up-1" })
|
|
182
|
-
]
|
|
183
|
-
}
|
|
184
|
-
),
|
|
185
|
-
/* @__PURE__ */ g("div", { className: "m-datepicker__nav-pagination", children: [
|
|
186
|
-
/* @__PURE__ */ f(
|
|
187
|
-
G,
|
|
188
|
-
{
|
|
189
|
-
ariaLabel: w.prev,
|
|
190
|
-
emphasis: "low",
|
|
191
|
-
addOn: { type: "icon", iconProps: { name: "arrow-left-1" } },
|
|
192
|
-
onClick: W
|
|
193
|
-
}
|
|
194
|
-
),
|
|
195
|
-
/* @__PURE__ */ f(
|
|
196
|
-
G,
|
|
197
|
-
{
|
|
198
|
-
ariaLabel: w.next,
|
|
199
|
-
emphasis: "low",
|
|
200
|
-
addOn: { type: "icon", iconProps: { name: "arrow-right-1" } },
|
|
201
|
-
onClick: J
|
|
202
|
-
}
|
|
203
|
-
)
|
|
204
|
-
] })
|
|
205
|
-
] }),
|
|
206
|
-
X()
|
|
207
|
-
]
|
|
208
|
-
}
|
|
209
|
-
);
|
|
210
|
-
}
|
|
211
|
-
);
|
|
212
|
-
export {
|
|
213
|
-
Re as Calendar,
|
|
214
|
-
Re as default
|
|
215
|
-
};
|
package/index120.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index155.js"),i=require("./index148.js");function d(o,a){const{start:t,end:r}=u.normalizeInterval(a?.in,o);let n=+t>+r;const c=n?+t:+r,e=n?r:t;e.setHours(0,0,0,0);let l=1;const s=[];for(;+e<=c;)s.push(i.constructFrom(t,e)),e.setDate(e.getDate()+l),e.setHours(0,0,0,0);return n?s.reverse():s}exports.eachDayOfInterval=d;
|
package/index120.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { normalizeInterval as m } from "./index155.mjs";
|
|
2
|
-
import { constructFrom as l } from "./index148.mjs";
|
|
3
|
-
function p(n, a) {
|
|
4
|
-
const { start: t, end: r } = m(a?.in, n);
|
|
5
|
-
let s = +t > +r;
|
|
6
|
-
const c = s ? +t : +r, e = s ? r : t;
|
|
7
|
-
e.setHours(0, 0, 0, 0);
|
|
8
|
-
let i = 1;
|
|
9
|
-
const o = [];
|
|
10
|
-
for (; +e <= c; )
|
|
11
|
-
o.push(l(t, e)), e.setDate(e.getDate() + i), e.setHours(0, 0, 0, 0);
|
|
12
|
-
return s ? o.reverse() : o;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
p as eachDayOfInterval
|
|
16
|
-
};
|
package/index121.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index156.js"),i=require("./index149.js");function u(a,t){const n=c.getDefaultOptions(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,e=i.toDate(a,t?.in),s=e.getDay(),r=(s<o?-7:0)+6-(s-o);return e.setDate(e.getDate()+r),e.setHours(23,59,59,999),e}exports.endOfWeek=u;
|
package/index121.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { getDefaultOptions as c } from "./index156.mjs";
|
|
2
|
-
import { toDate as f } from "./index149.mjs";
|
|
3
|
-
function k(s, e) {
|
|
4
|
-
const n = c(), o = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, t = f(s, e?.in), a = t.getDay(), r = (a < o ? -7 : 0) + 6 - (a - o);
|
|
5
|
-
return t.setDate(t.getDate() + r), t.setHours(23, 59, 59, 999), t;
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
k as endOfWeek
|
|
9
|
-
};
|
package/index122.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index156.js"),i=require("./index149.js");function u(o,e){const s=c.getDefaultOptions(),a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,t=i.toDate(o,e?.in),n=t.getDay(),r=(n<a?7:0)+n-a;return t.setDate(t.getDate()-r),t.setHours(0,0,0,0),t}exports.startOfWeek=u;
|
package/index122.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { getDefaultOptions as c } from "./index156.mjs";
|
|
2
|
-
import { toDate as f } from "./index149.mjs";
|
|
3
|
-
function k(s, e) {
|
|
4
|
-
const o = c(), a = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0, t = f(s, e?.in), n = t.getDay(), r = (n < a ? 7 : 0) + n - a;
|
|
5
|
-
return t.setDate(t.getDate() - r), t.setHours(0, 0, 0, 0), t;
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
k as startOfWeek
|
|
9
|
-
};
|
package/index123.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index149.js");function n(e,o){const t=r.toDate(e,o?.in);return t.setDate(1),t.setHours(0,0,0,0),t}exports.startOfMonth=n;
|
package/index123.mjs
DELETED
package/index124.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index149.js");function u(e,n){const t=r.toDate(e,n?.in),o=t.getMonth();return t.setFullYear(t.getFullYear(),o+1,0),t.setHours(23,59,59,999),t}exports.endOfMonth=u;
|
package/index124.mjs
DELETED
package/index125.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index149.js");function o(e,r){return+t.toDate(e)>+t.toDate(r)}exports.isAfter=o;
|