@rio-cloud/rio-uikit 2.5.0-beta.1 → 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/DatePicker.d.ts +1 -1
- package/components/datepicker/DatePicker.js +1 -1
- package/components/datepicker/DatePicker.js.map +1 -1
- 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 +2 -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 +2 -2
- package/version.js.map +1 -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.5.0
|
|
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.5.0
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../src/version.js"],"sourcesContent":["export const version = '2.5.0';\n"],"names":["version"],"mappings":"AAAY,MAACA,IAAU;"}
|