@rio-cloud/rio-uikit 2.4.2 → 2.5.0
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/CountedInput.d.ts +2 -0
- package/CountedInput.js +5 -0
- package/CountedInput.js.map +1 -0
- package/TabbedPanel.d.ts +2 -0
- package/TabbedPanel.js +5 -0
- package/TabbedPanel.js.map +1 -0
- package/components/applicationHeader/NavItems.js +58 -46
- package/components/applicationHeader/NavItems.js.map +1 -1
- package/components/applicationLayout/ApplicationLayoutBody.d.ts +1 -1
- package/components/applicationLayout/ApplicationLayoutBody.js +29 -29
- package/components/applicationLayout/ApplicationLayoutBody.js.map +1 -1
- package/components/applicationLayout/ApplicationLayoutHeader.js +22 -7
- package/components/applicationLayout/ApplicationLayoutHeader.js.map +1 -1
- package/components/assetTree/useTreeHeight.js.map +1 -1
- package/components/button/Button.d.ts +11 -3
- package/components/button/Button.js.map +1 -1
- package/components/clearableInput/ClearableInput.d.ts +4 -0
- package/components/clearableInput/ClearableInput.js.map +1 -1
- package/components/countedInput/CountedInput.d.ts +91 -0
- package/components/countedInput/CountedInput.js +65 -0
- package/components/countedInput/CountedInput.js.map +1 -0
- package/components/datepicker/DayPicker.js +3 -2
- package/components/datepicker/DayPicker.js.map +1 -1
- package/components/datepicker/DayPickerInput.d.ts +1 -1
- package/components/datepicker/DayPickerInput.js.map +1 -1
- package/components/datepicker/dayPickerTypes.d.ts +3 -2
- package/components/datepicker/dayPickerTypes.js.map +1 -1
- package/components/datepicker/dayPickerUtils.d.ts +1 -1
- package/components/datepicker/dayPickerUtils.js +45 -22
- package/components/datepicker/dayPickerUtils.js.map +1 -1
- package/components/datepicker/useDayPickerInputState.d.ts +1 -1
- package/components/dialog/ConfirmationDialog.d.ts +17 -0
- package/components/dialog/ConfirmationDialog.js +43 -19
- package/components/dialog/ConfirmationDialog.js.map +1 -1
- package/components/dialog/DialogHeader.js +20 -19
- package/components/dialog/DialogHeader.js.map +1 -1
- package/components/dropdown/ButtonDropdown.d.ts +5 -0
- package/components/dropdown/ButtonDropdown.js +63 -61
- package/components/dropdown/ButtonDropdown.js.map +1 -1
- package/components/dropdown/DropdownToggleButton.d.ts +2 -0
- package/components/dropdown/DropdownToggleButton.js +39 -35
- package/components/dropdown/DropdownToggleButton.js.map +1 -1
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +103 -105
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js.map +1 -1
- package/components/map/utils/eventHandling.js.map +1 -1
- package/components/map/utils/mapTypes.d.ts +7 -0
- package/components/map/utils/mapTypes.js.map +1 -1
- package/components/map/utils/rendering.js +5 -5
- package/components/numberControl/NumberControl.js.map +1 -1
- package/components/page/Page.d.ts +2 -0
- package/components/page/Page.js.map +1 -1
- package/components/rioglyph/Rioglyph.d.ts +8 -2
- package/components/rioglyph/Rioglyph.js.map +1 -1
- package/components/rioglyph/RioglyphIconType.d.ts +1 -1
- package/components/selects/BaseSelectDropdown.d.ts +8 -0
- package/components/selects/BaseSelectDropdown.js +76 -60
- package/components/selects/BaseSelectDropdown.js.map +1 -1
- package/components/selects/Multiselect.d.ts +5 -0
- package/components/selects/Multiselect.js +60 -58
- package/components/selects/Multiselect.js.map +1 -1
- package/components/selects/Select.d.ts +5 -0
- package/components/selects/Select.js +60 -58
- package/components/selects/Select.js.map +1 -1
- package/components/sidebars/Sidebar.js +40 -40
- package/components/sidebars/Sidebar.js.map +1 -1
- package/components/sidebars/SidebarCloseButton.d.ts +3 -1
- package/components/sidebars/SidebarCloseButton.js +19 -5
- package/components/sidebars/SidebarCloseButton.js.map +1 -1
- package/components/states/CustomState.d.ts +7 -1
- package/components/states/CustomState.js.map +1 -1
- package/components/states/StateButton.d.ts +11 -1
- package/components/states/StateButton.js +46 -10
- package/components/states/StateButton.js.map +1 -1
- package/components/statsWidget/StatsWidgetNumber.d.ts +16 -1
- package/components/statsWidget/StatsWidgetNumber.js +29 -12
- package/components/statsWidget/StatsWidgetNumber.js.map +1 -1
- package/components/tabbedPanel/TabbedPanel.d.ts +99 -0
- package/components/tabbedPanel/TabbedPanel.js +119 -0
- package/components/tabbedPanel/TabbedPanel.js.map +1 -0
- package/components/table/Table.types.d.ts +9 -1
- package/components/table/TableColumn.js +20 -19
- package/components/table/TableColumn.js.map +1 -1
- package/components/table/TableHeaderColumn.d.ts +4 -0
- package/components/table/TableHeaderColumn.js +50 -53
- package/components/table/TableHeaderColumn.js.map +1 -1
- package/components/table/TableToolbar.d.ts +4 -0
- package/components/table/TableToolbar.js.map +1 -1
- package/components/table/TableToolbarColumn.d.ts +3 -0
- package/components/table/TableToolbarColumn.js.map +1 -1
- package/components/table/render/header/resolveHeaderCellStyle.d.ts +87 -55
- package/components/timepicker/TimePicker.d.ts +6 -0
- package/components/timepicker/TimePicker.js +57 -56
- package/components/timepicker/TimePicker.js.map +1 -1
- package/hooks/useClickOutside.js +3 -3
- package/hooks/useClipboard.js.map +1 -1
- package/hooks/useScrollPosition.js.map +1 -1
- package/package.json +4 -4
- package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +23 -22
- package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js.map +1 -1
- package/utils/analytics/getTrackingLabelFromNode.d.ts +2 -0
- package/utils/analytics/getTrackingLabelFromNode.js +24 -0
- package/utils/analytics/getTrackingLabelFromNode.js.map +1 -0
- package/utils/analytics/googleAnalyticsUtils.js +21 -28
- package/utils/analytics/googleAnalyticsUtils.js.map +1 -1
- package/utils/getNodeTextContent.d.ts +2 -0
- package/utils/getNodeTextContent.js +22 -0
- package/utils/getNodeTextContent.js.map +1 -0
- package/utils/init/initCSS.js +5 -5
- package/utils/init/initCSS.js.map +1 -1
- package/utils/init/initConfig.js +4 -7
- package/utils/init/initConfig.js.map +1 -1
- package/utils/init/initDocumentBootstrapping.js +14 -14
- package/utils/init/initDocumentBootstrapping.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/DayPickerPrototype.d.ts +0 -2
- package/DayPickerPrototype.js +0 -5
- package/DayPickerPrototype.js.map +0 -1
- package/TableNext.d.ts +0 -2
- package/TableNext.js +0 -25
- package/TableNext.js.map +0 -1
- package/components/datepicker/DayPickerPrototype.d.ts +0 -53
- package/components/datepicker/DayPickerPrototype.js +0 -285
- package/components/datepicker/DayPickerPrototype.js.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { isValidElement as o } from "react";
|
|
2
|
+
const e = (t) => {
|
|
3
|
+
if (!(t == null || typeof t == "boolean")) {
|
|
4
|
+
if (typeof t == "string" || typeof t == "number" || typeof t == "bigint")
|
|
5
|
+
return String(t);
|
|
6
|
+
if (Array.isArray(t)) {
|
|
7
|
+
const r = t.map(e).filter((n) => typeof n == "string" && n.length > 0);
|
|
8
|
+
return r.length > 0 ? r.join(" ") : void 0;
|
|
9
|
+
}
|
|
10
|
+
if (o(t)) {
|
|
11
|
+
const r = e(t.props.children);
|
|
12
|
+
if (r)
|
|
13
|
+
return r;
|
|
14
|
+
if (typeof t.props.defaultMessage == "string" && t.props.defaultMessage.length > 0)
|
|
15
|
+
return t.props.defaultMessage;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
e as getNodeTextContent
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=getNodeTextContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNodeTextContent.js","sources":["../../src/utils/getNodeTextContent.ts"],"sourcesContent":["import { isValidElement, type ReactNode } from 'react';\n\nexport const getNodeTextContent = (value: ReactNode): string | undefined => {\n if (value == null || typeof value === 'boolean') {\n return;\n }\n\n if (typeof value === 'string' || typeof value === 'number' || typeof value === 'bigint') {\n return String(value);\n }\n\n if (Array.isArray(value)) {\n const textValues = value\n .map(getNodeTextContent)\n .filter((textValue): textValue is string => typeof textValue === 'string' && textValue.length > 0);\n\n return textValues.length > 0 ? textValues.join(' ') : undefined;\n }\n\n if (isValidElement<{ children?: ReactNode; defaultMessage?: unknown }>(value)) {\n const childrenText = getNodeTextContent(value.props.children);\n\n if (childrenText) {\n return childrenText;\n }\n\n if (typeof value.props.defaultMessage === 'string' && value.props.defaultMessage.length > 0) {\n return value.props.defaultMessage;\n }\n }\n};\n"],"names":["getNodeTextContent","value","textValues","textValue","isValidElement","childrenText"],"mappings":";AAEO,MAAMA,IAAqB,CAACC,MAAyC;AACxE,MAAI,EAAAA,KAAS,QAAQ,OAAOA,KAAU,YAItC;AAAA,QAAI,OAAOA,KAAU,YAAY,OAAOA,KAAU,YAAY,OAAOA,KAAU;AAC3E,aAAO,OAAOA,CAAK;AAGvB,QAAI,MAAM,QAAQA,CAAK,GAAG;AACtB,YAAMC,IAAaD,EACd,IAAID,CAAkB,EACtB,OAAO,CAACG,MAAmC,OAAOA,KAAc,YAAYA,EAAU,SAAS,CAAC;AAErG,aAAOD,EAAW,SAAS,IAAIA,EAAW,KAAK,GAAG,IAAI;AAAA,IAC1D;AAEA,QAAIE,EAAmEH,CAAK,GAAG;AAC3E,YAAMI,IAAeL,EAAmBC,EAAM,MAAM,QAAQ;AAE5D,UAAII;AACA,eAAOA;AAGX,UAAI,OAAOJ,EAAM,MAAM,kBAAmB,YAAYA,EAAM,MAAM,eAAe,SAAS;AACtF,eAAOA,EAAM,MAAM;AAAA,IAE3B;AAAA;AACJ;"}
|
package/utils/init/initCSS.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { isInIframe as
|
|
1
|
+
import { isInIframe as a, debug as o } from "./initConfig.js";
|
|
2
2
|
import { version as r } from "../../version.js";
|
|
3
|
-
const d = (e) => !!document.head.querySelector(e), c = (e) => e.some(d),
|
|
4
|
-
if (
|
|
3
|
+
const d = (e) => !!document.head.querySelector(e), c = (e) => e.some(d), u = ["rio", "man", "vw", "scania", "traton"], l = (e) => u.includes(e), m = (e) => l(e) ? e : "rio", f = () => {
|
|
4
|
+
if (window.CSS?.supports?.("gap: 1px") || document.documentElement.classList.add("css-no-gap"), a && document.documentElement.classList.add("window-iframe"), document.title?.includes("UIKIT Demo"))
|
|
5
5
|
return;
|
|
6
6
|
o("Checking for UIKIT CSS in document head.");
|
|
7
7
|
const e = c(['link[href*="rio-uikit.css"]', 'link[href*="rio-uikit-core.css"]']), t = d('style[data-vite-dev-id*="uikit.scss"]'), i = c([
|
|
@@ -18,7 +18,7 @@ const d = (e) => !!document.head.querySelector(e), c = (e) => e.some(d), a = ["r
|
|
|
18
18
|
o("No UIKIT CSS found => append link tag to document head.");
|
|
19
19
|
const n = m(document.documentElement.dataset.brand), s = document.createElement("link");
|
|
20
20
|
s.rel = "stylesheet", s.type = "text/css", s.href = `https://uikit.developers.rio.cloud/${r}/${n}-uikit.css`, document.head.appendChild(s);
|
|
21
|
-
},
|
|
21
|
+
}, p = () => {
|
|
22
22
|
[...document.querySelectorAll('link[rel="stylesheet"]')].forEach((t) => {
|
|
23
23
|
const { href: i } = t;
|
|
24
24
|
if (i.includes("uikit.developers.rio.cloud")) {
|
|
@@ -34,7 +34,7 @@ If this is not on purpose, please fix it. Otherwise, this may lead to UI bugs.`
|
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
p as checkCSSVersion,
|
|
38
38
|
f as initCSS
|
|
39
39
|
};
|
|
40
40
|
//# sourceMappingURL=initCSS.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initCSS.js","sources":["../../../src/utils/init/initCSS.ts"],"sourcesContent":["import { debug, isInIframe } from './initConfig';\nimport { version } from '../../version';\n\nconst documentHas = (selector: string) => !!document.head.querySelector(selector);\nconst documentHasAnyOf = (selectors: string[]) => selectors.some(documentHas);\n\ntype Brand = (typeof BRANDS)[number];\n\nconst BRANDS = ['rio', 'man', 'vw', 'scania', 'traton'] as const;\n\nconst isValidBrand = (input: unknown): input is Brand => BRANDS.includes(input as
|
|
1
|
+
{"version":3,"file":"initCSS.js","sources":["../../../src/utils/init/initCSS.ts"],"sourcesContent":["import { debug, isInIframe, isTest } from './initConfig';\nimport { version } from '../../version';\n\nconst documentHas = (selector: string) => !!document.head.querySelector(selector);\nconst documentHasAnyOf = (selectors: string[]) => selectors.some(documentHas);\n\ntype Brand = (typeof BRANDS)[number];\n\nconst BRANDS = ['rio', 'man', 'vw', 'scania', 'traton'] as const;\n\nconst isValidBrand = (input: unknown): input is Brand => BRANDS.includes(input as Brand);\n\nconst getBrand = (input: unknown): Brand => (isValidBrand(input) ? input : 'rio');\n\nexport const initCSS = () => {\n if (!window.CSS?.supports?.('gap: 1px')) {\n document.documentElement.classList.add('css-no-gap');\n }\n\n if (isInIframe) {\n document.documentElement.classList.add('window-iframe');\n }\n\n if (document.title?.includes('UIKIT Demo')) {\n return;\n }\n\n if (isTest) {\n return;\n }\n\n debug('Checking for UIKIT CSS in document head.');\n\n const hasUikitCssLink = documentHasAnyOf(['link[href*=\"rio-uikit.css\"]', 'link[href*=\"rio-uikit-core.css\"]']);\n const isUikitDemoPage = documentHas('style[data-vite-dev-id*=\"uikit.scss\"]');\n const hasUikitBrandCssLink = documentHasAnyOf([\n 'link[href*=\"man-uikit.css\"]',\n 'link[href*=\"vw-uikit.css\"]',\n 'link[href*=\"scania-uikit.css\"]',\n 'link[href*=\"traton-uikit.css\"]',\n 'link[href*=\"rio-website.css\"]',\n ]);\n\n if (hasUikitCssLink || isUikitDemoPage || hasUikitBrandCssLink) {\n debug('UIKIT CSS found in document head.');\n return;\n }\n\n // If nothing is set, add a link tag to fetch the CSS from the UIKIT CDN.\n // Note: there is no way to differentiate between core + responsive or full CSS\n debug('No UIKIT CSS found => append link tag to document head.');\n\n const brand = getBrand(document.documentElement.dataset.brand);\n\n const link = document.createElement('link');\n link.rel = 'stylesheet';\n link.type = 'text/css';\n link.href = `https://uikit.developers.rio.cloud/${version}/${brand}-uikit.css`;\n\n document.head.appendChild(link);\n};\n\nexport const checkCSSVersion = () => {\n const cssLinks = [...document.querySelectorAll('link[rel=\"stylesheet\"]')] as HTMLLinkElement[];\n cssLinks.forEach(cssLink => {\n const { href } = cssLink;\n\n if (href.includes('uikit.developers.rio.cloud')) {\n const [, uikitVersionCSS] = new URL(href).pathname.split('/');\n\n if (!href.includes(version)) {\n console.warn(\n 'You are using different UIKIT JS and CSS versions.\\n' +\n `Your current JS version is ${version} and ` +\n `your current CSS version is ${uikitVersionCSS}.\\n` +\n 'If this is not on purpose, please fix it. Otherwise, this may lead to UI bugs.'\n );\n }\n } else if (href.includes('cdn.rio.cloud/libs/rio-uikit')) {\n console.error(\n 'You are still using an old \"cdn.rio.cloud\" css import. This will most likely cause major UI bugs! ' +\n 'Please update to the CSS URLs as explained on https://uikit.developers.rio.cloud/#start/howto.'\n );\n }\n });\n};\n\n// remote URL is not supported by most browsers yet\n// export const addTabsClippingSVG = () => {\n// const clippingSVG = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n// clippingSVG.setAttribute('width', '0');\n// clippingSVG.setAttribute('height', '0');\n// clippingSVG.setAttribute('id', 'tabs-rounded-clipping-mask');\n// clippingSVG.innerHTML = `\n// <clipPath id='tabs-rounded-clip-mask'>\n// <path fill-rule='evenodd' d='M0 4a4 4 0 0 0 4-4v4z' />\n// </clipPath>`;\n// document.body.appendChild(clippingSVG);\n// };\n"],"names":["documentHas","selector","documentHasAnyOf","selectors","BRANDS","isValidBrand","input","getBrand","initCSS","isInIframe","debug","hasUikitCssLink","isUikitDemoPage","hasUikitBrandCssLink","brand","link","version","checkCSSVersion","cssLink","href","uikitVersionCSS"],"mappings":";;AAGA,MAAMA,IAAc,CAACC,MAAqB,CAAC,CAAC,SAAS,KAAK,cAAcA,CAAQ,GAC1EC,IAAmB,CAACC,MAAwBA,EAAU,KAAKH,CAAW,GAItEI,IAAS,CAAC,OAAO,OAAO,MAAM,UAAU,QAAQ,GAEhDC,IAAe,CAACC,MAAmCF,EAAO,SAASE,CAAc,GAEjFC,IAAW,CAACD,MAA2BD,EAAaC,CAAK,IAAIA,IAAQ,OAE9DE,IAAU,MAAM;AASzB,MARK,OAAO,KAAK,WAAW,UAAU,KAClC,SAAS,gBAAgB,UAAU,IAAI,YAAY,GAGnDC,KACA,SAAS,gBAAgB,UAAU,IAAI,eAAe,GAGtD,SAAS,OAAO,SAAS,YAAY;AACrC;AAOJ,EAAAC,EAAM,0CAA0C;AAEhD,QAAMC,IAAkBT,EAAiB,CAAC,+BAA+B,kCAAkC,CAAC,GACtGU,IAAkBZ,EAAY,uCAAuC,GACrEa,IAAuBX,EAAiB;AAAA,IAC1C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,CACH;AAED,MAAIS,KAAmBC,KAAmBC,GAAsB;AAC5D,IAAAH,EAAM,mCAAmC;AACzC;AAAA,EACJ;AAIA,EAAAA,EAAM,yDAAyD;AAE/D,QAAMI,IAAQP,EAAS,SAAS,gBAAgB,QAAQ,KAAK,GAEvDQ,IAAO,SAAS,cAAc,MAAM;AAC1C,EAAAA,EAAK,MAAM,cACXA,EAAK,OAAO,YACZA,EAAK,OAAO,sCAAsCC,CAAO,IAAIF,CAAK,cAElE,SAAS,KAAK,YAAYC,CAAI;AAClC,GAEaE,IAAkB,MAAM;AAEjC,EADiB,CAAC,GAAG,SAAS,iBAAiB,wBAAwB,CAAC,EAC/D,QAAQ,CAAAC,MAAW;AACxB,UAAM,EAAE,MAAAC,MAASD;AAEjB,QAAIC,EAAK,SAAS,4BAA4B,GAAG;AAC7C,YAAM,CAAA,EAAGC,CAAe,IAAI,IAAI,IAAID,CAAI,EAAE,SAAS,MAAM,GAAG;AAE5D,MAAKA,EAAK,SAASH,CAAO,KACtB,QAAQ;AAAA,QACJ;AAAA,6BACkCA,CAAO,oCACNI,CAAe;AAAA;AAAA,MAAA;AAAA,IAI9D,MAAA,CAAWD,EAAK,SAAS,8BAA8B,KACnD,QAAQ;AAAA,MACJ;AAAA,IAAA;AAAA,EAIZ,CAAC;AACL;"}
|
package/utils/init/initConfig.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const c = o.env.NODE_ENV === "production" || location.protocol.startsWith("https"), r = o.env.NODE_ENV === "test", i = s(), p = (t) => !r && console.debug(t);
|
|
1
|
+
import { inIframe as e } from "../deviceUtils.js";
|
|
2
|
+
const r = e(), m = (o) => console.debug(o);
|
|
4
3
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
c as isProd,
|
|
8
|
-
r as isTest
|
|
4
|
+
m as debug,
|
|
5
|
+
r as isInIframe
|
|
9
6
|
};
|
|
10
7
|
//# sourceMappingURL=initConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initConfig.js","sources":["../../../src/utils/init/initConfig.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"initConfig.js","sources":["../../../src/utils/init/initConfig.ts"],"sourcesContent":["import { inIframe } from '../deviceUtils';\n\nexport const isProd = import.meta.env.PROD || location.protocol.startsWith('https');\nexport const isTest = import.meta.env.MODE === 'test';\n\nexport const isInIframe = inIframe();\n\nexport const debug = (message: string) => !isTest && console.debug(message);\n"],"names":["isInIframe","inIframe","debug","message"],"mappings":";AAKO,MAAMA,IAAaC,EAAA,GAEbC,IAAQ,CAACC,MAA+B,QAAQ,MAAMA,CAAO;"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { getColorScheme as i, listenForSchemeChange as r } from "../colorScheme.js";
|
|
2
|
-
import {
|
|
3
|
-
import { usedUikitVersion as
|
|
4
|
-
import { weAreHiring as
|
|
5
|
-
import { doNotUseTailwind as
|
|
6
|
-
import { initCSS as
|
|
7
|
-
import { checkForReleaseVersion as
|
|
8
|
-
import { getConsoleStyle as
|
|
9
|
-
import { initPiiObserver as
|
|
10
|
-
const
|
|
2
|
+
import { isInIframe as t } from "./initConfig.js";
|
|
3
|
+
import { usedUikitVersion as m } from "./usedUikitVersion.js";
|
|
4
|
+
import { weAreHiring as n } from "./weAreHiring.js";
|
|
5
|
+
import { doNotUseTailwind as s } from "./doNotUseTailwind.js";
|
|
6
|
+
import { initCSS as c, checkCSSVersion as f } from "./initCSS.js";
|
|
7
|
+
import { checkForReleaseVersion as p } from "./checkForReleaseVersion.js";
|
|
8
|
+
import { getConsoleStyle as l } from "./styledLogs.js";
|
|
9
|
+
import { initPiiObserver as a } from "./initPiiObserver.js";
|
|
10
|
+
const V = async () => {
|
|
11
11
|
if (!(!document || !document.documentElement)) {
|
|
12
|
-
if (
|
|
13
|
-
const o = (e) => console.log("%c%s",
|
|
14
|
-
o("- - - - - - - - - - - - - - - - - -"),
|
|
12
|
+
if (c(), a(), i(), r(), await p(), f(), !t) {
|
|
13
|
+
const o = (e) => console.log("%c%s", l(), e);
|
|
14
|
+
o("- - - - - - - - - - - - - - - - - -"), m(), n(), o("- - - - - - - - - - - - - - - - - -");
|
|
15
15
|
}
|
|
16
|
-
await
|
|
16
|
+
await s();
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
V as initDocumentBootstrapping
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=initDocumentBootstrapping.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initDocumentBootstrapping.js","sources":["../../../src/utils/init/initDocumentBootstrapping.ts"],"sourcesContent":["import { getColorScheme, listenForSchemeChange } from '../colorScheme';\nimport { isTest, isInIframe } from './initConfig';\nimport { usedUikitVersion } from './usedUikitVersion';\nimport { weAreHiring } from './weAreHiring';\nimport { doNotUseTailwind } from './doNotUseTailwind';\nimport { checkCSSVersion, initCSS } from './initCSS';\nimport { checkForReleaseVersion } from './checkForReleaseVersion';\nimport { getConsoleStyle } from './styledLogs';\nimport { initPiiObserver } from './initPiiObserver';\n\nexport const initDocumentBootstrapping = async () => {\n if (!document || !document.documentElement) {\n return;\n }\n\n // Initialize the CSS setup\n initCSS();\n\n if (!isTest) {\n // Initialize PII observer\n initPiiObserver();\n\n // Handle the current color scheme (e.g., light/dark mode)\n getColorScheme();\n listenForSchemeChange();\n\n // Verify the UIKIT version of the application\n await checkForReleaseVersion();\n\n // Ensure the correct CSS version is being used\n checkCSSVersion();\n\n if (!isInIframe) {\n const logStyled = (message: string) => console.log('%c%s', getConsoleStyle(), message);\n\n logStyled('- - - - - - - - - - - - - - - - - -');\n // Log or validate the UI Kit version\n usedUikitVersion();\n\n // Show a hiring message\n weAreHiring();\n logStyled('- - - - - - - - - - - - - - - - - -');\n }\n }\n\n // Enforce the rule that Tailwind CSS should not be used\n await doNotUseTailwind();\n};\n"],"names":["initDocumentBootstrapping","initCSS","
|
|
1
|
+
{"version":3,"file":"initDocumentBootstrapping.js","sources":["../../../src/utils/init/initDocumentBootstrapping.ts"],"sourcesContent":["import { getColorScheme, listenForSchemeChange } from '../colorScheme';\nimport { isTest, isInIframe } from './initConfig';\nimport { usedUikitVersion } from './usedUikitVersion';\nimport { weAreHiring } from './weAreHiring';\nimport { doNotUseTailwind } from './doNotUseTailwind';\nimport { checkCSSVersion, initCSS } from './initCSS';\nimport { checkForReleaseVersion } from './checkForReleaseVersion';\nimport { getConsoleStyle } from './styledLogs';\nimport { initPiiObserver } from './initPiiObserver';\n\nexport const initDocumentBootstrapping = async () => {\n if (!document || !document.documentElement) {\n return;\n }\n\n // Initialize the CSS setup\n initCSS();\n\n if (!isTest) {\n // Initialize PII observer\n initPiiObserver();\n\n // Handle the current color scheme (e.g., light/dark mode)\n getColorScheme();\n listenForSchemeChange();\n\n // Verify the UIKIT version of the application\n await checkForReleaseVersion();\n\n // Ensure the correct CSS version is being used\n checkCSSVersion();\n\n if (!isInIframe) {\n const logStyled = (message: string) => console.log('%c%s', getConsoleStyle(), message);\n\n logStyled('- - - - - - - - - - - - - - - - - -');\n // Log or validate the UI Kit version\n usedUikitVersion();\n\n // Show a hiring message\n weAreHiring();\n logStyled('- - - - - - - - - - - - - - - - - -');\n }\n }\n\n // Enforce the rule that Tailwind CSS should not be used\n await doNotUseTailwind();\n};\n"],"names":["initDocumentBootstrapping","initCSS","initPiiObserver","getColorScheme","listenForSchemeChange","checkForReleaseVersion","checkCSSVersion","isInIframe","logStyled","message","getConsoleStyle","usedUikitVersion","weAreHiring","doNotUseTailwind"],"mappings":";;;;;;;;;AAUO,MAAMA,IAA4B,YAAY;AACjD,MAAI,GAAC,YAAY,CAAC,SAAS,kBAqBvB;AAAA,QAhBJC,EAAA,GAIIC,EAAA,GAGAC,EAAA,GACAC,EAAA,GAGA,MAAMC,EAAA,GAGNC,EAAA,GAEI,CAACC,GAAY;AACb,YAAMC,IAAY,CAACC,MAAoB,QAAQ,IAAI,QAAQC,EAAA,GAAmBD,CAAO;AAErF,MAAAD,EAAU,qCAAqC,GAE/CG,EAAA,GAGAC,EAAA,GACAJ,EAAU,qCAAqC;AAAA,IACnD;AAIJ,UAAMK,EAAA;AAAA;AACV;"}
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version: "2.
|
|
1
|
+
export const version: "2.5.0";
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../src/version.js"],"sourcesContent":["export const version = '2.
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../src/version.js"],"sourcesContent":["export const version = '2.5.0';\n"],"names":["version"],"mappings":"AAAY,MAACA,IAAU;"}
|
package/DayPickerPrototype.d.ts
DELETED
package/DayPickerPrototype.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DayPickerPrototype.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/TableNext.d.ts
DELETED
package/TableNext.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { TableBatchDropdown as a, TableBody as l, TableColumn as b, TableColumnFilter as T, TableColumnsDropdown as t, TableExpandAllGroupsButton as r, TableExpandedContentRow as n, TableExpandedRow as d, TableExpanderButton as u, TableFooter as p, TableGroupFooterRow as w, TableGroupRow as R, TableHeader as m, TableHeaderColumn as x, TableHeaderRow as B, TableRow as C, TableSpacerRow as c, TableStickyRowButton as f, default as s } from "./components/table/Table.js";
|
|
2
|
-
import { default as i } from "./components/table/selection/useTableSelection.js";
|
|
3
|
-
export {
|
|
4
|
-
a as TableBatchDropdown,
|
|
5
|
-
l as TableBody,
|
|
6
|
-
b as TableColumn,
|
|
7
|
-
T as TableColumnFilter,
|
|
8
|
-
t as TableColumnsDropdown,
|
|
9
|
-
r as TableExpandAllGroupsButton,
|
|
10
|
-
n as TableExpandedContentRow,
|
|
11
|
-
d as TableExpandedRow,
|
|
12
|
-
u as TableExpanderButton,
|
|
13
|
-
p as TableFooter,
|
|
14
|
-
w as TableGroupFooterRow,
|
|
15
|
-
R as TableGroupRow,
|
|
16
|
-
m as TableHeader,
|
|
17
|
-
x as TableHeaderColumn,
|
|
18
|
-
B as TableHeaderRow,
|
|
19
|
-
C as TableRow,
|
|
20
|
-
c as TableSpacerRow,
|
|
21
|
-
f as TableStickyRowButton,
|
|
22
|
-
s as default,
|
|
23
|
-
i as useTableSelection
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=TableNext.js.map
|
package/TableNext.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableNext.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { DateRange as ReactDayPickerDateRange, DayPickerProps as ReactDayPickerProps } from 'react-day-picker';
|
|
2
|
-
export type DateRange = ReactDayPickerDateRange;
|
|
3
|
-
export type Modifiers = Record<string, boolean>;
|
|
4
|
-
export type OnSelectHandler<T> = (selected: T, triggerDate: Date, modifiers: Modifiers, event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
5
|
-
type CommonProps = Omit<React.HTMLProps<HTMLInputElement>, 'onChange' | 'value' | 'selected'> & {
|
|
6
|
-
id?: string;
|
|
7
|
-
locale?: string;
|
|
8
|
-
closeOnSelect?: boolean;
|
|
9
|
-
initialValue?: Date;
|
|
10
|
-
inputProps?: Omit<React.HTMLProps<HTMLInputElement>, 'type' | 'defaultValue' | 'children'>;
|
|
11
|
-
/**
|
|
12
|
-
* Custom format string (e.g., 'yyyy-MM-dd') to override locale-based formatting.
|
|
13
|
-
* If omitted, locale-based display is used for the input.
|
|
14
|
-
*/
|
|
15
|
-
dateFormat?: string;
|
|
16
|
-
alignRight?: boolean;
|
|
17
|
-
isClearable?: boolean;
|
|
18
|
-
minWidth?: number;
|
|
19
|
-
mandatory?: boolean;
|
|
20
|
-
bsSize?: 'sm' | 'md' | 'lg';
|
|
21
|
-
footer?: React.ReactNode;
|
|
22
|
-
inline?: boolean;
|
|
23
|
-
placeholder?: string | React.ReactElement;
|
|
24
|
-
inputClassName?: string;
|
|
25
|
-
className?: string;
|
|
26
|
-
showOutsideDays?: boolean;
|
|
27
|
-
fixedWeeks?: boolean;
|
|
28
|
-
defaultMonth?: Date;
|
|
29
|
-
startMonth?: Date;
|
|
30
|
-
endMonth?: Date;
|
|
31
|
-
modifiers?: ReactDayPickerProps['modifiers'];
|
|
32
|
-
modifiersStyles?: ReactDayPickerProps['modifiersStyles'];
|
|
33
|
-
};
|
|
34
|
-
type SingleModeProps = CommonProps & {
|
|
35
|
-
mode?: 'single';
|
|
36
|
-
selected?: Date;
|
|
37
|
-
onInputChange?: (rawValue: string, parsedDate: Date | undefined, isValid: boolean) => void;
|
|
38
|
-
onSelectChange?: (value: Date | undefined, modifiers: Modifiers) => void;
|
|
39
|
-
};
|
|
40
|
-
type MultipleModeProps = CommonProps & {
|
|
41
|
-
mode: 'multiple';
|
|
42
|
-
selected?: Date[];
|
|
43
|
-
onSelectChange?: (value: Date[] | undefined, modifiers: Modifiers) => void;
|
|
44
|
-
};
|
|
45
|
-
type RangeModeProps = CommonProps & {
|
|
46
|
-
mode: 'range';
|
|
47
|
-
selected?: DateRange;
|
|
48
|
-
onChange?: (value: DateRange | undefined) => void;
|
|
49
|
-
onSelectChange?: (value: DateRange | undefined, modifiers: Modifiers) => void;
|
|
50
|
-
};
|
|
51
|
-
type DayPickerProps = SingleModeProps | MultipleModeProps | RangeModeProps;
|
|
52
|
-
declare const DayPickerPrototype: (props: DayPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
|
-
export default DayPickerPrototype;
|
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
import { jsxs as N, jsx as i, Fragment as Pe } from "react/jsx-runtime";
|
|
2
|
-
import { useState as ee, useEffect as ne, useRef as R } from "react";
|
|
3
|
-
import { DayPicker as F } from "react-day-picker";
|
|
4
|
-
import { format as te, parse as ke, isValid as oe } from "date-fns";
|
|
5
|
-
import * as L from "date-fns/locale";
|
|
6
|
-
import { debounce as Ne } from "es-toolkit/function";
|
|
7
|
-
import Re from "../../hooks/useClickOutside.js";
|
|
8
|
-
import we from "../../hooks/usePopperDropdown.js";
|
|
9
|
-
import Ee from "../../hooks/useKey.js";
|
|
10
|
-
import xe from "../clearableInput/ClearableInput.js";
|
|
11
|
-
import Fe from "../../utils/classNames.js";
|
|
12
|
-
const Le = (e) => !e.mode || e.mode === "single", Te = (e) => e.mode === "multiple", Be = (e) => e.mode === "range", Qe = (e) => {
|
|
13
|
-
const {
|
|
14
|
-
id: r,
|
|
15
|
-
selected: o,
|
|
16
|
-
inputProps: s = {},
|
|
17
|
-
alignRight: u,
|
|
18
|
-
bsSize: f = "",
|
|
19
|
-
locale: a = "en-GB",
|
|
20
|
-
footer: S,
|
|
21
|
-
inline: re,
|
|
22
|
-
showOutsideDays: ie = !0,
|
|
23
|
-
fixedWeeks: ae = !0,
|
|
24
|
-
mode: b = "single",
|
|
25
|
-
dateFormat: m,
|
|
26
|
-
placeholder: O,
|
|
27
|
-
isClearable: j = !1,
|
|
28
|
-
closeOnSelect: K = !0,
|
|
29
|
-
defaultMonth: se,
|
|
30
|
-
startMonth: ce,
|
|
31
|
-
endMonth: de,
|
|
32
|
-
modifiers: le,
|
|
33
|
-
modifiersStyles: ye,
|
|
34
|
-
inputClassName: V,
|
|
35
|
-
className: A
|
|
36
|
-
} = e, c = b === "single", G = b === "multiple", ue = b === "range", p = o !== void 0, [fe, D] = ee(), M = p ? o : fe, C = c ? M instanceof Date ? M : void 0 : G ? Array.isArray(M) ? M : void 0 : Oe(M) ? M : void 0, me = je(a), [$, I] = ee(""), z = p && !c ? Ke(C, a, b, m) : $;
|
|
37
|
-
ne(() => {
|
|
38
|
-
c && p && o instanceof Date && I(T(o, a, m));
|
|
39
|
-
}, [o, c, p, a, m]);
|
|
40
|
-
const v = (n, t) => {
|
|
41
|
-
if (Le(e) && e.onSelectChange) {
|
|
42
|
-
e.onSelectChange(n, t);
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
if (Te(e) && e.onSelectChange) {
|
|
46
|
-
e.onSelectChange(n, t);
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
Be(e) && e.onSelectChange && e.onSelectChange(n, t);
|
|
50
|
-
}, H = (n) => U(n), pe = (n) => U(n.currentTarget.value), ge = R(
|
|
51
|
-
Ne((n) => {
|
|
52
|
-
const t = B(n, a);
|
|
53
|
-
console.log(t);
|
|
54
|
-
const l = !!t;
|
|
55
|
-
if (D(t), c && "onInputChange" in e && e.onInputChange && e.onInputChange(n, t, l), t !== void 0 || n === "") {
|
|
56
|
-
const De = m ? B(n, a, m) : t;
|
|
57
|
-
v(De, {});
|
|
58
|
-
}
|
|
59
|
-
}, 300)
|
|
60
|
-
).current, U = (n) => {
|
|
61
|
-
I(n), ge(n);
|
|
62
|
-
}, P = R(!1), W = (n) => {
|
|
63
|
-
const t = n.relatedTarget, l = t && X.current?.contains(t);
|
|
64
|
-
if (d && !l && h(), !c)
|
|
65
|
-
return;
|
|
66
|
-
const y = B($, a, m);
|
|
67
|
-
y && oe(y) && (D(y), v(y, {}), I(T(y, a, m)));
|
|
68
|
-
}, _ = () => {
|
|
69
|
-
d || J();
|
|
70
|
-
}, Z = (n) => {
|
|
71
|
-
if (n.key === "Tab" && (P.current = !0), n.key === "Enter") {
|
|
72
|
-
if (!d) {
|
|
73
|
-
k();
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
d && K && (v(C, {}), h());
|
|
77
|
-
}
|
|
78
|
-
}, q = (n) => {
|
|
79
|
-
p || D(n);
|
|
80
|
-
}, Me = () => {
|
|
81
|
-
H(""), q(void 0), I(""), p && D(void 0), ue && "onChange" in e && e.onChange && e.onChange(void 0), v(void 0, {});
|
|
82
|
-
}, w = (n, t, l, y) => {
|
|
83
|
-
q(n), v(n, l), c && !p && I(T(n, a, m)), P.current && g?.current?.focus(), K && (h(), P.current = !1);
|
|
84
|
-
}, {
|
|
85
|
-
isOpen: d,
|
|
86
|
-
open: J,
|
|
87
|
-
close: h,
|
|
88
|
-
referenceRef: Q,
|
|
89
|
-
popperElementRef: he,
|
|
90
|
-
popperStyles: Ce,
|
|
91
|
-
popperAttributes: Ie
|
|
92
|
-
} = we({ placement: u ? "bottom-end" : "bottom-start" }), g = R(null), X = R(null), ve = (n) => {
|
|
93
|
-
X.current = n, he(n);
|
|
94
|
-
}, E = Re(
|
|
95
|
-
(n) => {
|
|
96
|
-
const t = n.target;
|
|
97
|
-
if (!t) {
|
|
98
|
-
h();
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
const l = Q.current?.contains(t), y = g.current?.contains(t);
|
|
102
|
-
l || y || h();
|
|
103
|
-
},
|
|
104
|
-
void 0,
|
|
105
|
-
d
|
|
106
|
-
), k = () => {
|
|
107
|
-
J(), g.current?.focus();
|
|
108
|
-
};
|
|
109
|
-
Ee("Escape", (n) => {
|
|
110
|
-
const t = n.target;
|
|
111
|
-
g.current && g.current === t && d && h();
|
|
112
|
-
}), ne(() => {
|
|
113
|
-
const n = (t) => {
|
|
114
|
-
!d || !E.current || t.key === "Tab" && E.current.contains(document.activeElement) && (P.current = !0, console.log("User tabbed into dropdown"));
|
|
115
|
-
};
|
|
116
|
-
return document.addEventListener("keydown", n), () => {
|
|
117
|
-
document.removeEventListener("keydown", n);
|
|
118
|
-
};
|
|
119
|
-
}, [d]);
|
|
120
|
-
const Se = `DayPicker ${f === "sm" ? "margin-10" : "margin-15"} ${f}`, x = {
|
|
121
|
-
defaultMonth: se,
|
|
122
|
-
locale: me,
|
|
123
|
-
captionLayout: "dropdown",
|
|
124
|
-
animate: !0,
|
|
125
|
-
navLayout: "around",
|
|
126
|
-
startMonth: ce,
|
|
127
|
-
endMonth: de,
|
|
128
|
-
modifiers: le,
|
|
129
|
-
modifiersStyles: ye,
|
|
130
|
-
showOutsideDays: ie,
|
|
131
|
-
fixedWeeks: ae,
|
|
132
|
-
className: Se
|
|
133
|
-
}, Y = () => c ? /* @__PURE__ */ i(
|
|
134
|
-
F,
|
|
135
|
-
{
|
|
136
|
-
...x,
|
|
137
|
-
mode: "single",
|
|
138
|
-
selected: C,
|
|
139
|
-
onSelect: w
|
|
140
|
-
}
|
|
141
|
-
) : G ? /* @__PURE__ */ i(
|
|
142
|
-
F,
|
|
143
|
-
{
|
|
144
|
-
...x,
|
|
145
|
-
mode: "multiple",
|
|
146
|
-
selected: C,
|
|
147
|
-
onSelect: w
|
|
148
|
-
}
|
|
149
|
-
) : /* @__PURE__ */ i(
|
|
150
|
-
F,
|
|
151
|
-
{
|
|
152
|
-
...x,
|
|
153
|
-
mode: "range",
|
|
154
|
-
selected: C,
|
|
155
|
-
onSelect: w
|
|
156
|
-
}
|
|
157
|
-
);
|
|
158
|
-
if (re)
|
|
159
|
-
return /* @__PURE__ */ N("div", { className: `display-flex flex-column justify-content-between ${A}`, children: [
|
|
160
|
-
Y(),
|
|
161
|
-
S ? /* @__PURE__ */ i("div", { className: "padding-15", children: S }) : /* @__PURE__ */ i("div", {})
|
|
162
|
-
] });
|
|
163
|
-
const be = {
|
|
164
|
-
...s,
|
|
165
|
-
readOnly: !c,
|
|
166
|
-
style: {
|
|
167
|
-
background: "var(--color-white)",
|
|
168
|
-
...s?.style ?? {}
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
return /* @__PURE__ */ N(Pe, { children: [
|
|
172
|
-
/* @__PURE__ */ i("div", { ref: Q, className: `form-group ${A}`, children: /* @__PURE__ */ N("div", { className: "input-group", children: [
|
|
173
|
-
/* @__PURE__ */ i("span", { className: "input-group-addon", onClick: k, children: /* @__PURE__ */ i("span", { className: "rioglyph rioglyph-calendar", "aria-hidden": "true" }) }),
|
|
174
|
-
j && /* @__PURE__ */ i(
|
|
175
|
-
xe,
|
|
176
|
-
{
|
|
177
|
-
id: r,
|
|
178
|
-
autoComplete: "off",
|
|
179
|
-
placeholder: O,
|
|
180
|
-
...be,
|
|
181
|
-
type: "text",
|
|
182
|
-
value: z,
|
|
183
|
-
onChange: H,
|
|
184
|
-
onClick: k,
|
|
185
|
-
onClear: Me,
|
|
186
|
-
onBlur: W,
|
|
187
|
-
onFocus: _,
|
|
188
|
-
onKeyPress: Z,
|
|
189
|
-
ref: g,
|
|
190
|
-
inputClassName: V
|
|
191
|
-
}
|
|
192
|
-
),
|
|
193
|
-
!j && /* @__PURE__ */ i(
|
|
194
|
-
"input",
|
|
195
|
-
{
|
|
196
|
-
id: r,
|
|
197
|
-
size: 12,
|
|
198
|
-
type: "text",
|
|
199
|
-
autoComplete: "off",
|
|
200
|
-
placeholder: O,
|
|
201
|
-
...s,
|
|
202
|
-
value: z,
|
|
203
|
-
onChange: pe,
|
|
204
|
-
onClick: k,
|
|
205
|
-
onBlur: W,
|
|
206
|
-
onFocus: _,
|
|
207
|
-
onKeyDown: Z,
|
|
208
|
-
ref: g,
|
|
209
|
-
readOnly: !c,
|
|
210
|
-
className: Fe("ClearableInput form-control bg-white", V)
|
|
211
|
-
}
|
|
212
|
-
)
|
|
213
|
-
] }) }),
|
|
214
|
-
d && /* @__PURE__ */ i(
|
|
215
|
-
"div",
|
|
216
|
-
{
|
|
217
|
-
style: Ce,
|
|
218
|
-
className: "DayPickerPopover z-index-max bg-white shadow-default rounded margin-y-3 border",
|
|
219
|
-
...Ie,
|
|
220
|
-
ref: ve,
|
|
221
|
-
role: "dialog",
|
|
222
|
-
"aria-label": "DayPicker calendar",
|
|
223
|
-
children: /* @__PURE__ */ N("div", { ref: E, className: "display-flex flex-column justify-content-between", children: [
|
|
224
|
-
Y(),
|
|
225
|
-
S ? /* @__PURE__ */ i("div", { className: "padding-15", children: S }) : /* @__PURE__ */ i("div", {})
|
|
226
|
-
] })
|
|
227
|
-
}
|
|
228
|
-
)
|
|
229
|
-
] });
|
|
230
|
-
}, Oe = (e) => {
|
|
231
|
-
if (!e || typeof e != "object")
|
|
232
|
-
return !1;
|
|
233
|
-
const r = e, o = r.from instanceof Date, s = r.to === void 0 || r.to instanceof Date;
|
|
234
|
-
return o && s;
|
|
235
|
-
}, je = (e) => {
|
|
236
|
-
const r = e.split("-")[0];
|
|
237
|
-
return L[r] || L[e] || L.enGB;
|
|
238
|
-
}, T = (e, r, o) => e ? o ? te(e, o) : new Intl.DateTimeFormat(r).format(e) : "", Ke = (e, r, o, s) => {
|
|
239
|
-
if (!e)
|
|
240
|
-
return "";
|
|
241
|
-
const u = (f) => s ? te(f, s) : new Intl.DateTimeFormat(r).format(f);
|
|
242
|
-
if (o === "single" && e instanceof Date)
|
|
243
|
-
return u(e);
|
|
244
|
-
if (o === "multiple" && Array.isArray(e))
|
|
245
|
-
return e.map(u).join(", ");
|
|
246
|
-
if (o === "range" && typeof e == "object" && "from" in e) {
|
|
247
|
-
const { from: f, to: a } = e;
|
|
248
|
-
return !f || !a ? "" : [f, a].filter(Boolean).map(u).join(" – ");
|
|
249
|
-
}
|
|
250
|
-
return "";
|
|
251
|
-
}, Ve = {
|
|
252
|
-
"bg-BG": "dd.MM.yyyy",
|
|
253
|
-
"cs-CZ": "dd.MM.yyyy",
|
|
254
|
-
"da-DK": "dd-MM-yyyy",
|
|
255
|
-
"de-DE": "dd.MM.yyyy",
|
|
256
|
-
"el-GR": "dd/MM/yyyy",
|
|
257
|
-
"en-GB": "dd/MM/yyyy",
|
|
258
|
-
"es-ES": "dd/MM/yyyy",
|
|
259
|
-
"et-EE": "dd.MM.yyyy",
|
|
260
|
-
"fi-FI": "dd.MM.yyyy",
|
|
261
|
-
"fr-FR": "dd/MM/yyyy",
|
|
262
|
-
"hr-HR": "dd.MM.yyyy",
|
|
263
|
-
"hu-HU": "yyyy. MM. dd.",
|
|
264
|
-
"it-IT": "dd/MM/yyyy",
|
|
265
|
-
"lt-LT": "dd-MM-yyyy",
|
|
266
|
-
"lv-LV": "dd.MM.yyyy",
|
|
267
|
-
"nb-NO": "dd.MM.yyyy",
|
|
268
|
-
"nl-NL": "dd-MM-yyyy",
|
|
269
|
-
"pl-PL": "dd.MM.yyyy",
|
|
270
|
-
"pt-BR": "dd/MM/yyyy",
|
|
271
|
-
"pt-PT": "dd/MM/yyyy",
|
|
272
|
-
"ro-RO": "dd.MM.yyyy",
|
|
273
|
-
"sk-SK": "dd.MM.yyyy",
|
|
274
|
-
"sl-SI": "dd.MM.yyyy",
|
|
275
|
-
"sv-SE": "yyyy-MM-dd"
|
|
276
|
-
}, Ae = (e, r = "yyyy-MM-dd") => Ve[e] || r, B = (e, r, o) => {
|
|
277
|
-
if (!e)
|
|
278
|
-
return;
|
|
279
|
-
const s = o || Ae(r, o), u = ke(e, s, /* @__PURE__ */ new Date());
|
|
280
|
-
return oe(u) ? u : void 0;
|
|
281
|
-
};
|
|
282
|
-
export {
|
|
283
|
-
Qe as default
|
|
284
|
-
};
|
|
285
|
-
//# sourceMappingURL=DayPickerPrototype.js.map
|