@imperium/layout 13.0.4 → 13.0.5

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.
@@ -1,7 +1,9 @@
1
- import React, { useEffect, useRef } from 'react';
1
+ import React, { useState, useEffect, useRef } from 'react';
2
2
  import debug from 'debug';
3
3
  import { isEqual } from 'lodash-es';
4
4
  import { useDispatch } from 'react-redux';
5
+ import { Button } from 'semantic-ui-react';
6
+ import { useMediaQuery } from 'react-responsive';
5
7
  import { DataHooks } from '../../datahooks/DataHooks.js';
6
8
  import { actions } from '../../state.js';
7
9
  import { sortWeightedItems } from '../../utils.js';
@@ -26,6 +28,8 @@ function useDeepCompareEffect(callback, deps) {
26
28
  function ContentComponent({ page, params }) {
27
29
  const dispatch = useDispatch();
28
30
  const data = useBuildContentData({ stateSelectorHook: page.stateSelectorHook, permissionSelectorHook: page.permissionSelectorHook, params });
31
+ const [visible, setVisible] = useState(true);
32
+ const isMobile = useMediaQuery({ query: "(max-width: 900px)" });
29
33
  useDeepCompareEffect(() => {
30
34
  dispatch(actions.setParams(params));
31
35
  }, [dispatch, params]);
@@ -33,6 +37,30 @@ function ContentComponent({ page, params }) {
33
37
  const sidebarItems = sortWeightedItems(page.sidebar || []);
34
38
  const sidebar = sidebarItems.length > 0 ? /* @__PURE__ */ React.createElement("div", {
35
39
  className: `${styles.sidebar} imperiumContentSidebar`
40
+ }, /* @__PURE__ */ React.createElement("div", {
41
+ className: styles.sidebarButton
42
+ }, /* @__PURE__ */ React.createElement(Button, {
43
+ icon: "angle right",
44
+ size: "big",
45
+ onClick: () => setVisible(false),
46
+ fluid: true,
47
+ style: { paddingLeft: 0 }
48
+ })), /* @__PURE__ */ React.createElement("div", {
49
+ className: styles.sidebarContent
50
+ }, /* @__PURE__ */ React.createElement("div", {
51
+ className: `${styles.actionsHeader} imperiumContentSidebarHeader`
52
+ }, /* @__PURE__ */ React.createElement("h3", null, "Actions")), sidebarItems.map((sb, index) => {
53
+ return /* @__PURE__ */ React.createElement("div", {
54
+ className: styles.sidebarItem,
55
+ key: index
56
+ }, /* @__PURE__ */ React.createElement(SidebarItemWrapper, {
57
+ item: sb,
58
+ params,
59
+ data
60
+ }));
61
+ }))) : null;
62
+ const mobileSidebar = sidebarItems.length > 0 ? /* @__PURE__ */ React.createElement("div", {
63
+ className: `${styles.sidebarMobile} imperiumContentSidebar`
36
64
  }, /* @__PURE__ */ React.createElement("div", {
37
65
  className: `${styles.actionsHeader} imperiumContentSidebarHeader`
38
66
  }, /* @__PURE__ */ React.createElement("h3", null, "Actions")), sidebarItems.map((sb, index) => {
@@ -54,7 +82,13 @@ function ContentComponent({ page, params }) {
54
82
  data
55
83
  }), /* @__PURE__ */ React.createElement("div", {
56
84
  className: `${styles.content} imperiumContent ${page.full && styles.contentFull}`
57
- }, content)), sidebar, /* @__PURE__ */ React.createElement(DataHooks, {
85
+ }, content)), isMobile && mobileSidebar, !isMobile && /* @__PURE__ */ React.createElement(React.Fragment, null, visible && sidebar, !visible && /* @__PURE__ */ React.createElement(Button, {
86
+ icon: "angle left",
87
+ size: "big",
88
+ onClick: () => setVisible(true),
89
+ className: styles.sidebarButton,
90
+ style: { paddingLeft: 0 }
91
+ })), /* @__PURE__ */ React.createElement(DataHooks, {
58
92
  dataHooks: page.dataHooks || []
59
93
  }));
60
94
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ContentComponent.js","sources":["../../../../src/content/components/ContentComponent.tsx"],"sourcesContent":["import type {DefineRouteOptions} from '@imperium/router';\nimport debug from 'debug';\nimport {isEqual} from 'lodash-es';\nimport {DependencyList, EffectCallback, useEffect, useRef} from 'react';\nimport {useDispatch} from 'react-redux';\nimport {DataHooks} from '../../datahooks/DataHooks';\nimport {actions} from '../../state';\nimport {sortWeightedItems} from '../../utils';\nimport {useBuildContentData} from '../hooks/useBuildContentData';\nimport type {Page, RouteParameters, SidebarItem} from '../types';\nimport {Header} from './Header';\nimport {SidebarItemWrapper} from './SidebarItemWrapper';\nimport styles from './styles.module.css';\n\nconst d = debug('imperium.layout.content.components.ContentComponent');\n\ninterface ContentComponentProps<T extends DefineRouteOptions, K extends keyof T> {\n\tpage: Page<T, K>;\n\tparams: RouteParameters<T[K]['params']>;\n}\n\nfunction useDeepCompareMemoize(value: any) {\n\tconst ref = useRef();\n\tif (!value && !ref.current) return ref.current;\n\tif (!isEqual(value, ref.current)) {\n\t\tref.current = value;\n\t}\n\treturn ref.current;\n}\n\nfunction useDeepCompareEffect(callback: EffectCallback, deps: DependencyList) {\n\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\tuseEffect(callback, deps.map(useDeepCompareMemoize));\n}\n\nexport function ContentComponent<T extends DefineRouteOptions, K extends keyof T>({page, params}: ContentComponentProps<T, K>) {\n\tconst dispatch = useDispatch();\n\tconst data = useBuildContentData({stateSelectorHook: page.stateSelectorHook, permissionSelectorHook: page.permissionSelectorHook, params});\n\n\tuseDeepCompareEffect(() => {\n\t\tdispatch(actions.setParams(params));\n\t}, [dispatch, params]);\n\n\tconst content = page.content(data);\n\tconst sidebarItems = sortWeightedItems(page.sidebar || []);\n\n\tconst sidebar =\n\t\tsidebarItems.length > 0 ? (\n\t\t\t<div className={`${styles.sidebar} imperiumContentSidebar`}>\n\t\t\t\t<div className={`${styles.actionsHeader} imperiumContentSidebarHeader`}>\n\t\t\t\t\t<h3>Actions</h3>\n\t\t\t\t</div>\n\t\t\t\t{sidebarItems.map((sb, index) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t\t\t\t<div className={styles.sidebarItem} key={index}>\n\t\t\t\t\t\t\t<SidebarItemWrapper item={sb as SidebarItem<T, K>} params={params} data={data} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t</div>\n\t\t) : null;\n\n\treturn (\n\t\t<div className={`${styles.parent} imperiumContentWrapperParent`}>\n\t\t\t<div className={`${styles.wrapper} imperiumContentWrapper`}>\n\t\t\t\t<Header header={page.header} data={data} />\n\t\t\t\t<div className={`${styles.content} imperiumContent ${page.full && styles.contentFull}`}>{content}</div>\n\t\t\t</div>\n\t\t\t{sidebar}\n\t\t\t<DataHooks dataHooks={page.dataHooks || []} />\n\t\t</div>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAcU,MAAM,qDAAqD,EAAA;AAOrE,SAAA,qBAAA,CAA+B,KAAY,EAAA;AAC1C,EAAA,MAAM,MAAM,MAAO,EAAA,CAAA;AACnB,EAAI,IAAA,CAAC,KAAS,IAAA,CAAC,GAAI,CAAA,OAAA;AAAS,IAAA,OAAO,GAAI,CAAA,OAAA,CAAA;AACvC,EAAA,IAAI,CAAC,OAAA,CAAQ,KAAO,EAAA,GAAA,CAAI,OAAO,CAAG,EAAA;AACjC,IAAA,GAAA,CAAI,OAAU,GAAA,KAAA,CAAA;AAAA,GACf;AACA,EAAA,OAAO,GAAI,CAAA,OAAA,CAAA;AACZ,CAAA;AAEA,SAAA,oBAAA,CAA8B,UAA0B,IAAsB,EAAA;AAE7E,EAAA,SAAA,CAAU,QAAU,EAAA,IAAA,CAAK,GAAI,CAAA,qBAAqB,CAAC,CAAA,CAAA;AACpD,CAAA;AAEkF,SAAA,gBAAA,CAAA,EAAC,MAAM,MAAsC,EAAA,EAAA;AAC9H,EAAA,MAAM,WAAW,WAAY,EAAA,CAAA;AAC7B,EAAM,MAAA,IAAA,GAAO,mBAAoB,CAAA,EAAC,iBAAmB,EAAA,IAAA,CAAK,mBAAmB,sBAAwB,EAAA,IAAA,CAAK,sBAAwB,EAAA,MAAA,EAAO,CAAA,CAAA;AAEzI,EAAA,oBAAA,CAAqB,MAAM;AAC1B,IAAS,QAAA,CAAA,OAAA,CAAQ,SAAU,CAAA,MAAM,CAAC,CAAA,CAAA;AAAA,GAChC,EAAA,CAAC,QAAU,EAAA,MAAM,CAAC,CAAA,CAAA;AAErB,EAAM,MAAA,OAAA,GAAU,IAAK,CAAA,OAAA,CAAQ,IAAI,C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,EAAA;AAAA,IAAI,WAAW,CAAG,EAAA,MAAA,CAAO,OAA2B,CAAA,iBAAA,EAAA,IAAA,CAAK,QAAQ,MAAO,CAAA,WAAA,CAAA,CAAA;AAAA,GAAA,EAAgB,OAAQ,CAClG,CACC,EAAA,OAAA,kBACA,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA;AAAA,IAAU,SAAA,EAAW,IAAK,CAAA,SAAA,IAAa,EAAC;AAAA,GAAG,CAC7C,CAAA,CAAA;AAEF;;;;"}
1
+ {"version":3,"file":"ContentComponent.js","sources":["../../../../src/content/components/ContentComponent.tsx"],"sourcesContent":["import type {DefineRouteOptions} from '@imperium/router';\nimport debug from 'debug';\nimport {isEqual} from 'lodash-es';\nimport {DependencyList, EffectCallback, useEffect, useRef, useState} from 'react';\nimport {useDispatch} from 'react-redux';\nimport {Button} from 'semantic-ui-react';\nimport {useMediaQuery} from 'react-responsive';\nimport {DataHooks} from '../../datahooks/DataHooks';\nimport {actions} from '../../state';\nimport {sortWeightedItems} from '../../utils';\nimport {useBuildContentData} from '../hooks/useBuildContentData';\nimport type {Page, RouteParameters, SidebarItem} from '../types';\nimport {Header} from './Header';\nimport {SidebarItemWrapper} from './SidebarItemWrapper';\nimport styles from './styles.module.css';\n\nconst d = debug('imperium.layout.content.components.ContentComponent');\n\ninterface ContentComponentProps<T extends DefineRouteOptions, K extends keyof T> {\n\tpage: Page<T, K>;\n\tparams: RouteParameters<T[K]['params']>;\n}\n\nfunction useDeepCompareMemoize(value: any) {\n\tconst ref = useRef();\n\tif (!value && !ref.current) return ref.current;\n\tif (!isEqual(value, ref.current)) {\n\t\tref.current = value;\n\t}\n\treturn ref.current;\n}\n\nfunction useDeepCompareEffect(callback: EffectCallback, deps: DependencyList) {\n\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\tuseEffect(callback, deps.map(useDeepCompareMemoize));\n}\n\nexport function ContentComponent<T extends DefineRouteOptions, K extends keyof T>({page, params}: ContentComponentProps<T, K>) {\n\tconst dispatch = useDispatch();\n\tconst data = useBuildContentData({stateSelectorHook: page.stateSelectorHook, permissionSelectorHook: page.permissionSelectorHook, params});\n\tconst [visible, setVisible] = useState(true);\n\tconst isMobile = useMediaQuery({query: '(max-width: 900px)'});\n\n\tuseDeepCompareEffect(() => {\n\t\tdispatch(actions.setParams(params));\n\t}, [dispatch, params]);\n\n\tconst content = page.content(data);\n\tconst sidebarItems = sortWeightedItems(page.sidebar || []);\n\n\tconst sidebar =\n\t\tsidebarItems.length > 0 ? (\n\t\t\t<div className={`${styles.sidebar} imperiumContentSidebar`}>\n\t\t\t\t<div className={styles.sidebarButton}>\n\t\t\t\t\t<Button icon=\"angle right\" size=\"big\" onClick={() => setVisible(false)} fluid style={{paddingLeft: 0}} />\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.sidebarContent}>\n\t\t\t\t\t<div className={`${styles.actionsHeader} imperiumContentSidebarHeader`}>\n\t\t\t\t\t\t<h3>Actions</h3>\n\t\t\t\t\t</div>\n\t\t\t\t\t{sidebarItems.map((sb, index) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t\t\t\t\t<div className={styles.sidebarItem} key={index}>\n\t\t\t\t\t\t\t\t<SidebarItemWrapper item={sb as SidebarItem<T, K>} params={params} data={data} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t) : null;\n\n\tconst mobileSidebar =\n\t\tsidebarItems.length > 0 ? (\n\t\t\t<div className={`${styles.sidebarMobile} imperiumContentSidebar`}>\n\t\t\t\t<div className={`${styles.actionsHeader} imperiumContentSidebarHeader`}>\n\t\t\t\t\t<h3>Actions</h3>\n\t\t\t\t</div>\n\t\t\t\t{sidebarItems.map((sb, index) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t\t\t\t<div className={styles.sidebarItem} key={index}>\n\t\t\t\t\t\t\t<SidebarItemWrapper item={sb as SidebarItem<T, K>} params={params} data={data} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t</div>\n\t\t) : null;\n\n\treturn (\n\t\t<div className={`${styles.parent} imperiumContentWrapperParent`}>\n\t\t\t<div className={`${styles.wrapper} imperiumContentWrapper`}>\n\t\t\t\t<Header header={page.header} data={data} />\n\t\t\t\t<div className={`${styles.content} imperiumContent ${page.full && styles.contentFull}`}>{content}</div>\n\t\t\t</div>\n\t\t\t{isMobile && mobileSidebar}\n\t\t\t{!isMobile && (\n\t\t\t\t<>\n\t\t\t\t\t{visible && sidebar}\n\t\t\t\t\t{!visible && (\n\t\t\t\t\t\t<Button icon=\"angle left\" size=\"big\" onClick={() => setVisible(true)} className={styles.sidebarButton} style={{paddingLeft: 0}} />\n\t\t\t\t\t)}\n\t\t\t\t</>\n\t\t\t)}\n\t\t\t<DataHooks dataHooks={page.dataHooks || []} />\n\t\t</div>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAgBU,MAAM,qDAAqD,EAAA;AAOrE,SAAA,qBAAA,CAA+B,KAAY,EAAA;AAC1C,EAAA,MAAM,MAAM,MAAO,EAAA,CAAA;AACnB,EAAI,IAAA,CAAC,KAAS,IAAA,CAAC,GAAI,CAAA,OAAA;AAAS,IAAA,OAAO,GAAI,CAAA,OAAA,CAAA;AACvC,EAAA,IAAI,CAAC,OAAA,CAAQ,KAAO,EAAA,GAAA,CAAI,OAAO,CAAG,EAAA;AACjC,IAAA,GAAA,CAAI,OAAU,GAAA,KAAA,CAAA;AAAA,GACf;AACA,EAAA,OAAO,GAAI,CAAA,OAAA,CAAA;AACZ,CAAA;AAEA,SAAA,oBAAA,CAA8B,UAA0B,IAAsB,EAAA;AAE7E,EAAA,SAAA,CAAU,QAAU,EAAA,IAAA,CAAK,GAAI,CAAA,qBAAqB,CAAC,CAAA,CAAA;AACpD,CAAA;AAEkF,SAAA,gB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IAAa,EAAC;AAAA,GAAG,CAC7C,CAAA,CAAA;AAEF;;;;"}
@@ -1,7 +1,7 @@
1
1
  import styleInject from './../../external/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = ".styles-module_parent__OuBHK {\n\tflex: 1;\n\tdisplay: flex;\n\tflex-direction: row;\n\theight: 100%;\n}\n\n.styles-module_wrapper__2DEM0 {\n\tflex: 1;\n\tflex-basis: calc(65%);\n}\n\n.styles-module_content__PWtmR {\n\tmargin: 0 0.8rem 0.8rem 0.8rem;\n}\n\n.styles-module_contentFull__q2jrq {\n\theight: 100%;\n\tmargin: 0 0;\n}\n\n.styles-module_header__4mpgB {\n\tpadding: 0.8rem 0.8rem 0 0.8rem;\n\tmargin-bottom: 0.8rem;\n}\n\n.styles-module_sidebar__H9Cuy {\n\tmin-width: 250px;\n\tpadding: 10px;\n\toverflow-y: auto;\n\toverflow-x: hidden;\n}\n\n.styles-module_sidebarItem__-JRCt {\n\tmargin-bottom: 5px;\n}\n\n.styles-module_actionsHeader__Ke2ht {\n\tdisplay: none;\n}\n\n@media print\n{\n\t.styles-module_noPrint__V49Dv, .styles-module_noPrint__V49Dv *\n\t{\n\t\tdisplay: none !important;\n\t}\n}\n\n@media only screen and (max-width: 768px) {\n\t.styles-module_parent__OuBHK {\n\t\tflex-direction: column;\n\t\theight: auto;\n\t}\n\t.styles-module_wrapper__2DEM0 {\n\t\tborder-right: none;\n\t\tpadding-bottom: 20px;\n\t}\n\t.styles-module_sidebar__H9Cuy {\n\t\tmin-width: auto;\n\t}\n\t.styles-module_actionsHeader__Ke2ht {\n\t\tdisplay: block;\n\t\tmargin-bottom: 5px;\n\t}\n}\n";
4
- var styles = {"parent":"styles-module_parent__OuBHK","wrapper":"styles-module_wrapper__2DEM0","content":"styles-module_content__PWtmR","contentFull":"styles-module_contentFull__q2jrq","header":"styles-module_header__4mpgB","sidebar":"styles-module_sidebar__H9Cuy","sidebarItem":"styles-module_sidebarItem__-JRCt","actionsHeader":"styles-module_actionsHeader__Ke2ht","noPrint":"styles-module_noPrint__V49Dv"};
3
+ var css_248z = ".styles-module_parent__OuBHK {\n\tflex: 1;\n\tdisplay: flex;\n\tflex-direction: row;\n\theight: 100%;\n}\n\n.styles-module_wrapper__2DEM0 {\n\tflex: 1;\n\tflex-basis: calc(65%);\n}\n\n.styles-module_content__PWtmR {\n\tmargin: 0 0.8rem 0.8rem 0.8rem;\n}\n\n.styles-module_contentFull__q2jrq {\n\theight: 100%;\n\tmargin: 0 0;\n}\n\n.styles-module_header__4mpgB {\n\tpadding: 0.8rem 0.8rem 0 0.8rem;\n\tmargin-bottom: 0.8rem;\n}\n\n.styles-module_sidebar__H9Cuy {\n\tmin-width: 250px;\n\toverflow-y: auto;\n\toverflow-x: hidden;\n\tdisplay: flex;\n}\n\n.styles-module_sidebarMobile__wAWDO {\n\t min-width: 250px;\n\t overflow-y: auto;\n\t overflow-x: hidden;\n\t padding: 10px;\n }\n\n.styles-module_sidebarButton__zpsaO {\n\twidth: 20px;\n\theight: 100%;\n\tdisplay: flex;\n}\n\n.styles-module_sidebarContent__BxpZ1 {\n\twidth: calc(100% - 30px);\n\tpadding: 10px;\n}\n\n.styles-module_sidebarItem__-JRCt {\n\tmargin-bottom: 5px;\n}\n\n.styles-module_actionsHeader__Ke2ht {\n\tdisplay: none;\n}\n\n@media print\n{\n\t.styles-module_noPrint__V49Dv, .styles-module_noPrint__V49Dv *\n\t{\n\t\tdisplay: none !important;\n\t}\n}\n\n@media only screen and (max-width: 768px) {\n\t.styles-module_parent__OuBHK {\n\t\tflex-direction: column;\n\t\theight: auto;\n\t}\n\t.styles-module_wrapper__2DEM0 {\n\t\tborder-right: none;\n\t\tpadding-bottom: 20px;\n\t}\n\t.styles-module_sidebar__H9Cuy {\n\t\tmin-width: auto;\n\t}\n\t.styles-module_actionsHeader__Ke2ht {\n\t\tdisplay: block;\n\t\tmargin-bottom: 5px;\n\t}\n}\n";
4
+ var styles = {"parent":"styles-module_parent__OuBHK","wrapper":"styles-module_wrapper__2DEM0","content":"styles-module_content__PWtmR","contentFull":"styles-module_contentFull__q2jrq","header":"styles-module_header__4mpgB","sidebar":"styles-module_sidebar__H9Cuy","sidebarMobile":"styles-module_sidebarMobile__wAWDO","sidebarButton":"styles-module_sidebarButton__zpsaO","sidebarContent":"styles-module_sidebarContent__BxpZ1","sidebarItem":"styles-module_sidebarItem__-JRCt","actionsHeader":"styles-module_actionsHeader__Ke2ht","noPrint":"styles-module_noPrint__V49Dv"};
5
5
  styleInject(css_248z);
6
6
 
7
7
  export { styles as default };
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react';
2
2
  import debug from 'debug';
3
- import { Segment } from 'semantic-ui-react';
4
3
  import { useMediaQuery } from 'react-responsive';
4
+ import { Segment } from 'semantic-ui-react';
5
5
  import { moveItems } from '../moveItems.js';
6
6
  import { LayoutItemBar } from './LayoutItemBar.js';
7
7
  import { SecondaryMenuToggleItem } from './SecondaryMenuToggleItem.js';
@@ -1 +1 @@
1
- {"version":3,"file":"Layout.js","sources":["../../../../src/layout/components/Layout.tsx"],"sourcesContent":["import debug from 'debug';\nimport {ReactNode, useState} from 'react';\nimport {Segment} from 'semantic-ui-react';\nimport {useMediaQuery} from 'react-responsive';\nimport {moveItems} from '../moveItems';\nimport type {LayoutData} from '../types';\nimport {LayoutItemBar} from './LayoutItemBar';\nimport {SecondaryMenuToggleItem} from './SecondaryMenuToggleItem';\nimport styles from './styles.module.css';\n\nconst d = debug('imperium.layout.components.Layout');\n\ninterface LayoutProps extends Required<LayoutData> {\n\tchildren?: ReactNode;\n}\n\n/**\n * Renders the main layout.\n * Hides/shows/collapses things as need for mobile layout.\n * Tracks state to whether the side menu is open or not.\n * @param footer\n * @param menubar\n * @param statusbar\n * @param children\n * @constructor\n */\nexport function Layout({footer, primaryMenu, statusbar, secondaryMenu, children}: LayoutProps) {\n\tconst isMobile = useMediaQuery({query: '(max-width: 900px)'});\n\tconst [menuOpen, setMenuOpen] = useState(false);\n\n\tconst primaryMenuToggle = {\n\t\tstickOnMobile: true,\n\t\tweight: -19999,\n\t\trender: () => {\n\t\t\tif (!isMobile) return null;\n\t\t\treturn <SecondaryMenuToggleItem menuOpen={menuOpen} setMenuOpen={setMenuOpen} />;\n\t\t},\n\t};\n\n\t// Determine menubar items\n\tconst primaryMenuItems = moveItems(\n\t\tisMobile\n\t\t\t? [\n\t\t\t\t\tprimaryMenuToggle,\n\t\t\t\t\t...primaryMenu.map(p => {\n\t\t\t\t\t\treturn {...p, text: undefined};\n\t\t\t\t\t}),\n\t\t\t ]\n\t\t\t: primaryMenu,\n\t);\n\n\t// Determine sidebar items\n\tconst secondaryMenuItems = moveItems(secondaryMenu);\n\n\tconst secondaryMenuComp =\n\t\tsecondaryMenuItems.length > 0 ? (\n\t\t\t<div className=\"imperiumSecondaryMenuWrapper noPrint\">\n\t\t\t\t<LayoutItemBar\n\t\t\t\t\titems={secondaryMenuItems}\n\t\t\t\t\tinverted\n\t\t\t\t\tvertical\n\t\t\t\t\tclassName={\n\t\t\t\t\t\tisMobile && !menuOpen\n\t\t\t\t\t\t\t? `${styles.secondaryMenu} ${styles.secondaryMenuHidden} imperiumSecondaryMenu`\n\t\t\t\t\t\t\t: `${styles.secondaryMenu} imperiumSecondaryMenu`\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t) : null;\n\n\t// Determine footer items\n\tconst footerItems = moveItems(footer);\n\tconst footerComp =\n\t\tfooterItems.length > 0 ? (\n\t\t\t<LayoutItemBar name=\"footer\" items={footerItems} className={`${styles.footer} imperiumFooter`} inverted borderless />\n\t\t) : null;\n\n\t// Determine status bar items\n\tconst statusbarItems = moveItems(statusbar);\n\tconst statusbarComp =\n\t\tstatusbarItems.length > 0 ? <LayoutItemBar items={statusbarItems} inverted className={`${styles.statusbar} imperiumStatusbar`} /> : null;\n\n\treturn (\n\t\t<div className={`${styles.parent} imperiumLayout ${isMobile ? 'imperiumMobile' : 'imperiumNotMobile'}`}>\n\t\t\t<div className=\"imperiumPrimaryMenuWrapper\">\n\t\t\t\t<LayoutItemBar items={primaryMenuItems} inverted borderless className={`${styles.menubar} imperiumPrimaryMenu`} />\n\t\t\t\t{statusbarComp}\n\t\t\t</div>\n\t\t\t<Segment attached className={`${styles.contentWrapper} imperiumLayoutContentWrapper`}>\n\t\t\t\t{secondaryMenuComp}\n\t\t\t\t<div className={`${styles.content} imperiumLayoutContent`}>{children}</div>\n\t\t\t</Segment>\n\t\t\t{footerComp}\n\t\t</div>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;;;AAUU,MAAM,mCAAmC,EAAA;AAgB5C,SAAA,MAAA,CAAgB,EAAC,MAAA,EAAQ,WAAa,EAAA,SAAA,EAAW,eAAe,QAAwB,EAAA,EAAA;AAC9F,EAAA,MAAM,QAAW,GAAA,aAAA,CAAc,EAAC,KAAA,EAAO,sBAAqB,CAAA,CAAA;AAC5D,EAAA,MAAM,CAAC,QAAA,EAAU,WAAe,CAAA,GAAA,QAAA,CAAS,KAAK,CAAA,CAAA;AAE9C,EAAA,MAAM,iBAAoB,GAAA;AAAA,IACzB,aAAe,EAAA,IAAA;AAAA,IACf,MAAQ,EAAA,CAAA,KAAA;AAAA,IACR,QAAQ,MAAM;AACb,MAAA,IAAI,CAAC,QAAA;AAAU,QAAO,OAAA,IAAA,CAAA;AACtB,MAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,uBAAA,EAAA;AAAA,QAAwB,QAAA;AAAA,QAAoB,WAAA;AAAA,OAA0B,CAAA,CAAA;AAAA,KAC/E;AAAA,GACD,CAAA;AAGA,EAAM,MAAA,gBAAA,GAAmB,UACxB,QACG,GAAA;AAAA,IACA,iBAAA;AAAA,IACA,GAAG,WAAY,CAAA,GAAA,CAAI,CAAK,CAAA,KAAA;AACvB,MAAO,OAAA,EAAA,GAAI,CAAG,EAAA,IAAA,EAAM,KAAS,CAAA,EAAA,CAAA;AAAA,KAC7B,CAAA;AAAA,MAED,WACJ,CAAA,CAAA;AAGA,EAAM,MA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+B,CAAK,GAAA,IAAA,CAAA;AAErI,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAI,SAAW,EAAA,CAAA,EAAG,MAAO,CAAA,MAAA,CAAA,gBAAA,EAAyB,WAAW,gBAAmB,GAAA,mBAAA,CAAA,CAAA;AAAA,GAAA,kBAC/E,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAI,SAAU,EAAA,4BAAA;AAAA,GAAA,kBACb,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA;AAAA,IAAc,KAAO,EAAA,gBAAA;AAAA,IAAkB,QAAQ,EAAA,IAAA;AAAA,IAAC,UAAU,EAAA,IAAA;AAAA,IAAC,SAAA,EAAW,GAAG,MAAO,CAAA,OAAA,CAAA,oBAAA,CAAA;AAAA,GAA+B,CAAA,EAC/G,aACF,CAAA,kBACC,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA;AAAA,IAAQ,QAAQ,EAAA,IAAA;AAAA,IAAC,SAAA,EAAW,GAAG,MAAO,CAAA,cAAA,CAAA,6BAAA,CAAA;AAAA,GAAA,EACrC,mCACA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAI,SAAA,EAAW,GAAG,MAAO,CAAA,OAAA,CAAA,sBAAA,CAAA;AAAA,GAAkC,EAAA,QAAS,CACtE,CAAA,EACC,UACF,CAAA,CAAA;AAEF;;;;"}
1
+ {"version":3,"file":"Layout.js","sources":["../../../../src/layout/components/Layout.tsx"],"sourcesContent":["import debug from 'debug';\nimport {ReactNode, useState} from 'react';\nimport {useMediaQuery} from 'react-responsive';\nimport {Segment} from 'semantic-ui-react';\nimport {moveItems} from '../moveItems';\nimport type {LayoutData} from '../types';\nimport {LayoutItemBar} from './LayoutItemBar';\nimport {SecondaryMenuToggleItem} from './SecondaryMenuToggleItem';\nimport styles from './styles.module.css';\n\nconst d = debug('imperium.layout.components.Layout');\n\ninterface LayoutProps extends Required<LayoutData> {\n\tchildren?: ReactNode;\n}\n\n/**\n * Renders the main layout.\n * Hides/shows/collapses things as need for mobile layout.\n * Tracks state to whether the side menu is open or not.\n * @param footer\n * @param menubar\n * @param statusbar\n * @param children\n * @constructor\n */\nexport function Layout({footer, primaryMenu, statusbar, secondaryMenu, children}: LayoutProps) {\n\tconst isMobile = useMediaQuery({query: '(max-width: 900px)'});\n\tconst [menuOpen, setMenuOpen] = useState(false);\n\n\tconst primaryMenuToggle = {\n\t\tstickOnMobile: true,\n\t\tweight: -19999,\n\t\trender: () => {\n\t\t\tif (!isMobile) return null;\n\t\t\treturn <SecondaryMenuToggleItem menuOpen={menuOpen} setMenuOpen={setMenuOpen} />;\n\t\t},\n\t};\n\n\t// Determine menubar items\n\tconst primaryMenuItems = moveItems(\n\t\tisMobile\n\t\t\t? [\n\t\t\t\t\tprimaryMenuToggle,\n\t\t\t\t\t...primaryMenu.map(p => {\n\t\t\t\t\t\treturn {...p, text: undefined};\n\t\t\t\t\t}),\n\t\t\t ]\n\t\t\t: primaryMenu,\n\t);\n\n\t// Determine sidebar items\n\tconst secondaryMenuItems = moveItems(secondaryMenu);\n\n\tconst secondaryMenuComp =\n\t\tsecondaryMenuItems.length > 0 ? (\n\t\t\t<div className=\"imperiumSecondaryMenuWrapper noPrint\">\n\t\t\t\t<LayoutItemBar\n\t\t\t\t\titems={secondaryMenuItems}\n\t\t\t\t\tinverted\n\t\t\t\t\tvertical\n\t\t\t\t\tclassName={\n\t\t\t\t\t\tisMobile && !menuOpen\n\t\t\t\t\t\t\t? `${styles.secondaryMenu} ${styles.secondaryMenuHidden} imperiumSecondaryMenu`\n\t\t\t\t\t\t\t: `${styles.secondaryMenu} imperiumSecondaryMenu`\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t) : null;\n\n\t// Determine footer items\n\tconst footerItems = moveItems(footer);\n\tconst footerComp =\n\t\tfooterItems.length > 0 ? (\n\t\t\t<LayoutItemBar name=\"footer\" items={footerItems} className={`${styles.footer} imperiumFooter`} inverted borderless />\n\t\t) : null;\n\n\t// Determine status bar items\n\tconst statusbarItems = moveItems(statusbar);\n\tconst statusbarComp =\n\t\tstatusbarItems.length > 0 ? <LayoutItemBar items={statusbarItems} inverted className={`${styles.statusbar} imperiumStatusbar`} /> : null;\n\n\treturn (\n\t\t<div className={`${styles.parent} imperiumLayout ${isMobile ? 'imperiumMobile' : 'imperiumNotMobile'}`}>\n\t\t\t<div className=\"imperiumPrimaryMenuWrapper\">\n\t\t\t\t<LayoutItemBar items={primaryMenuItems} inverted borderless className={`${styles.menubar} imperiumPrimaryMenu`} />\n\t\t\t\t{statusbarComp}\n\t\t\t</div>\n\t\t\t<Segment attached className={`${styles.contentWrapper} imperiumLayoutContentWrapper`}>\n\t\t\t\t{secondaryMenuComp}\n\t\t\t\t<div className={`${styles.content} imperiumLayoutContent`}>{children}</div>\n\t\t\t</Segment>\n\t\t\t{footerComp}\n\t\t</div>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;;;AAUU,MAAM,mCAAmC,EAAA;AAgB5C,SAAA,MAAA,CAAgB,EAAC,MAAA,EAAQ,WAAa,EAAA,SAAA,EAAW,eAAe,QAAwB,EAAA,EAAA;AAC9F,EAAA,MAAM,QAAW,GAAA,aAAA,CAAc,EAAC,KAAA,EAAO,sBAAqB,CAAA,CAAA;AAC5D,EAAA,MAAM,CAAC,QAAA,EAAU,WAAe,CAAA,GAAA,QAAA,CAAS,KAAK,CAAA,CAAA;AAE9C,EAAA,MAAM,iBAAoB,GAAA;AAAA,IACzB,aAAe,EAAA,IAAA;AAAA,IACf,MAAQ,EAAA,CAAA,KAAA;AAAA,IACR,QAAQ,MAAM;AACb,MAAA,IAAI,CAAC,QAAA;AAAU,QAAO,OAAA,IAAA,CAAA;AACtB,MAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,uBAAA,EAAA;AAAA,QAAwB,QAAA;AAAA,QAAoB,WAAA;AAAA,OAA0B,CAAA,CAAA;AAAA,KAC/E;AAAA,GACD,CAAA;A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ive';
3
+ import { Menu } from 'semantic-ui-react';
4
4
  import { linkParameters, getIcon, getText } from '../utils.js';
5
5
 
6
6
  function PlainItem({ item, data, as }) {
@@ -1 +1 @@
1
- {"version":3,"file":"PlainItem.js","sources":["../../../../src/layout/components/PlainItem.tsx"],"sourcesContent":["import type {ComponentClass} from 'react';\nimport {Menu} from 'semantic-ui-react';\nimport {useMediaQuery} from 'react-responsive';\nimport type {Data} from '../../types';\nimport type {CustomLayoutItem, DropdownLayoutItem, LayoutItem, MenuLayoutItem} from '../types';\nimport {getIcon, getText, linkParameters} from '../utils';\n\ninterface PlainItemProps {\n\titem: Exclude<LayoutItem, MenuLayoutItem | DropdownLayoutItem | CustomLayoutItem>;\n\tdata: Data;\n\tas?: ComponentClass;\n}\n\nexport function PlainItem({item, data, as}: PlainItemProps) {\n\tconst isMobile = useMediaQuery({query: '(max-width: 900px)'});\n\tconst linkParams = linkParameters(item, data);\n\n\tconst ItemX = as || Menu.Item;\n\n\treturn (\n\t\t<ItemX {...linkParams} style={isMobile ? {paddingLeft: 8, paddingRight: 4} : undefined}>\n\t\t\t{getIcon(item, data)}\n\t\t\t{getText(item, data)}\n\t\t</ItemX>\n\t);\n}\n"],"names":[],"mappings":";;;;;AAa0B,SAAA,SAAA,CAAA,EAAC,IAAM,EAAA,IAAA,EAAM,EAAqB,EAAA,EAAA;AAC3D,EAAA,MAAM,QAAW,GAAA,aAAA,CAAc,EAAC,KAAA,EAAO,sBAAqB,CAAA,CAAA;AAC5D,EAAM,MAAA,UAAA,GAAa,cAAe,CAAA,IAAA,EAAM,IAAI,CAAA,CAAA;AAE5C,EAAM,MAAA,KAAA,GAAQ,MAAM,IAAK,CAAA,IAAA,CAAA;AAEzB,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAU,GAAA,UAAA;AAAA,IAAY,OAAO,QAAW,GAAA,EAAC,aAAa,CAAG,EAAA,YAAA,EAAc,GAAK,GAAA,KAAA,CAAA;AAAA,GAAA,EAC3E,QAAQ,IAAM,EAAA,IAAI,GAClB,OAAQ,CAAA,IAAA,EAAM,IAAI,CACpB,CAAA,CAAA;AAEF;;;;"}
1
+ {"version":3,"file":"PlainItem.js","sources":["../../../../src/layout/components/PlainItem.tsx"],"sourcesContent":["import type {ComponentClass} from 'react';\nimport {useMediaQuery} from 'react-responsive';\nimport {Menu} from 'semantic-ui-react';\nimport type {Data} from '../../types';\nimport type {CustomLayoutItem, DropdownLayoutItem, LayoutItem, MenuLayoutItem} from '../types';\nimport {getIcon, getText, linkParameters} from '../utils';\n\ninterface PlainItemProps {\n\titem: Exclude<LayoutItem, MenuLayoutItem | DropdownLayoutItem | CustomLayoutItem>;\n\tdata: Data;\n\tas?: ComponentClass;\n}\n\nexport function PlainItem({item, data, as}: PlainItemProps) {\n\tconst isMobile = useMediaQuery({query: '(max-width: 900px)'});\n\tconst linkParams = linkParameters(item, data);\n\n\tconst ItemX = as || Menu.Item;\n\n\treturn (\n\t\t<ItemX {...linkParams} style={isMobile ? {paddingLeft: 8, paddingRight: 4} : undefined}>\n\t\t\t{getIcon(item, data)}\n\t\t\t{getText(item, data)}\n\t\t</ItemX>\n\t);\n}\n"],"names":[],"mappings":";;;;;AAa0B,SAAA,SAAA,CAAA,EAAC,IAAM,EAAA,IAAA,EAAM,EAAqB,EAAA,EAAA;AAC3D,EAAA,MAAM,QAAW,GAAA,aAAA,CAAc,EAAC,KAAA,EAAO,sBAAqB,CAAA,CAAA;AAC5D,EAAM,MAAA,UAAA,GAAa,cAAe,CAAA,IAAA,EAAM,IAAI,CAAA,CAAA;AAE5C,EAAM,MAAA,KAAA,GAAQ,MAAM,IAAK,CAAA,IAAA,CAAA;AAEzB,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAU,GAAA,UAAA;AAAA,IAAY,OAAO,QAAW,GAAA,EAAC,aAAa,CAAG,EAAA,YAAA,EAAc,GAAK,GAAA,KAAA,CAAA;AAAA,GAAA,EAC3E,QAAQ,IAAM,EAAA,IAAI,GAClB,OAAQ,CAAA,IAAA,EAAM,IAAI,CACpB,CAAA,CAAA;AAEF;;;;"}
package/dist/stats.html CHANGED
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
2669
2669
  </script>
2670
2670
  <script>
2671
2671
  /*<!--*/
2672
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"90b0-1"}]},{"name":"state.js","children":[{"name":"src/state.ts","uid":"90b0-3"}]},{"name":"layout/withLayout.js","children":[{"name":"src/layout/withLayout.tsx","uid":"90b0-5"}]},{"name":"content/dividerSidebarItem.js","children":[{"name":"src/content/dividerSidebarItem.ts","uid":"90b0-7"}]},{"name":"content/createPages.js","children":[{"name":"src/content/createPages.tsx","uid":"90b0-9"}]},{"name":"types.js","children":[{"name":"src/types.ts","uid":"90b0-11"}]},{"name":"content/types.js","children":[{"name":"src/content/types.ts","uid":"90b0-13"}]},{"name":"datahooks/DataHooks.js","children":[{"name":"src/datahooks/DataHooks.tsx","uid":"90b0-15"}]},{"name":"datahooks/Permissions.js","children":[{"name":"src/datahooks/Permissions.tsx","uid":"90b0-17"}]},{"name":"datahooks/PermissionHooks.js","children":[{"name":"src/datahooks/PermissionHooks.tsx","uid":"90b0-19"}]},{"name":"layout/components/Layout.js","children":[{"name":"src/layout/components/Layout.tsx","uid":"90b0-21"}]},{"name":"content/components/ContentComponent.js","children":[{"name":"src/content/components/ContentComponent.tsx","uid":"90b0-23"}]},{"name":"datahooks/ExecutePermissionHook.js","children":[{"name":"src/datahooks/ExecutePermissionHook.tsx","uid":"90b0-25"}]},{"name":"datahooks/ExecuteDataHook.js","children":[{"name":"src/datahooks/ExecuteDataHook.tsx","uid":"90b0-27"}]},{"name":"utils.js","children":[{"name":"src/utils.ts","uid":"90b0-29"}]},{"name":"layout/moveItems.js","children":[{"name":"src/layout/moveItems.ts","uid":"90b0-31"}]},{"name":"layout/components/styles.module.css.js","children":[{"name":"src/layout/components/styles.module.css","uid":"90b0-33"}]},{"name":"content/components/styles.module.css.js","children":[{"name":"src/content/components/styles.module.css","uid":"90b0-35"}]},{"name":"layout/components/LayoutItemBar.js","children":[{"name":"src/layout/components/LayoutItemBar.tsx","uid":"90b0-37"}]},{"name":"layout/components/SecondaryMenuToggleItem.js","children":[{"name":"src/layout/components/SecondaryMenuToggleItem.tsx","uid":"90b0-39"}]},{"name":"content/components/Header.js","children":[{"name":"src/content/components/Header.tsx","uid":"90b0-41"}]},{"name":"content/components/SidebarItemWrapper.js","children":[{"name":"src/content/components/SidebarItemWrapper.tsx","uid":"90b0-43"}]},{"name":"content/hooks/useBuildContentData.js","children":[{"name":"src/content/hooks/useBuildContentData.ts","uid":"90b0-45"}]},{"name":"layout/types.js","children":[{"name":"src/layout/types.ts","uid":"90b0-47"}]},{"name":"layout/utils.js","children":[{"name":"src/layout/utils.tsx","uid":"90b0-49"}]},{"name":"hooks/useBuildData.js","children":[{"name":"src/hooks/useBuildData.ts","uid":"90b0-51"}]},{"name":"layout/components/LayoutItemWrapper.js","children":[{"name":"src/layout/components/LayoutItemWrapper.tsx","uid":"90b0-53"}]},{"name":"content/components/ActionFormSidebarItemComponent.js","children":[{"name":"src/content/components/ActionFormSidebarItemComponent.tsx","uid":"90b0-55"}]},{"name":"content/components/ActionSidebarItemComponent.js","children":[{"name":"src/content/components/ActionSidebarItemComponent.tsx","uid":"90b0-57"}]},{"name":"content/components/PlainSidebarItem.js","children":[{"name":"src/content/components/PlainSidebarItem.tsx","uid":"90b0-59"}]},{"name":"content/components/CustomSidebarItemComponent.js","children":[{"name":"src/content/components/CustomSidebarItemComponent.tsx","uid":"90b0-61"}]},{"name":"commonItems.js","children":[{"name":"src/commonItems.ts","uid":"90b0-63"}]},{"name":"hooks/useIsActiveRoute.js","children":[{"name":"src/hooks/useIsActiveRoute.ts","uid":"90b0-65"}]},{"name":"hooks/useSelectPermission.js","children":[{"name":"src/hooks/useSelectPermission.ts","uid":"90b0-67"}]},{"name":"hooks/useSelectState.js","children":[{"name":"src/hooks/useSelectState.ts","uid":"90b0-69"}]},{"name":"content/utils.js","children":[{"name":"src/content/utils.tsx","uid":"90b0-71"}]},{"name":"content/components/ActionForm.js","children":[{"name":"src/content/components/ActionForm.tsx","uid":"90b0-73"}]},{"name":"layout/components/DropdownItem.js","children":[{"name":"src/layout/components/DropdownItem.tsx","uid":"90b0-75"}]},{"name":"layout/components/CustomLayoutItemComponent.js","children":[{"name":"src/layout/components/CustomLayoutItemComponent.tsx","uid":"90b0-77"}]},{"name":"layout/components/MenuItem.js","children":[{"name":"src/layout/components/MenuItem.tsx","uid":"90b0-79"}]},{"name":"layout/components/PlainItem.js","children":[{"name":"src/layout/components/PlainItem.tsx","uid":"90b0-81"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/mike/dev/imperium/node_modules/style-inject/dist/style-inject.es.js","uid":"90b0-83"}]}],"isRoot":true},"nodeParts":{"90b0-1":{"renderedLength":144,"gzipLength":131,"brotliLength":106,"mainUid":"90b0-0"},"90b0-3":{"renderedLength":489,"gzipLength":250,"brotliLength":217,"mainUid":"90b0-2"},"90b0-5":{"renderedLength":1955,"gzipLength":562,"brotliLength":488,"mainUid":"90b0-4"},"90b0-7":{"renderedLength":59,"gzipLength":73,"brotliLength":63,"mainUid":"90b0-6"},"90b0-9":{"renderedLength":650,"gzipLength":301,"brotliLength":268,"mainUid":"90b0-8"},"90b0-11":{"renderedLength":121,"gzipLength":111,"brotliLength":90,"mainUid":"90b0-10"},"90b0-13":{"renderedLength":388,"gzipLength":167,"brotliLength":111,"mainUid":"90b0-12"},"90b0-15":{"renderedLength":1058,"gzipLength":390,"brotliLength":330,"mainUid":"90b0-14"},"90b0-17":{"renderedLength":808,"gzipLength":351,"brotliLength":306,"mainUid":"90b0-16"},"90b0-19":{"renderedLength":339,"gzipLength":202,"brotliLength":164,"mainUid":"90b0-18"},"90b0-21":{"renderedLength":2512,"gzipLength":751,"brotliLength":636,"mainUid":"90b0-20"},"90b0-23":{"renderedLength":1970,"gzipLength":653,"brotliLength":565,"mainUid":"90b0-22"},"90b0-25":{"renderedLength":345,"gzipLength":207,"brotliLength":172,"mainUid":"90b0-24"},"90b0-27":{"renderedLength":123,"gzipLength":111,"brotliLength":93,"mainUid":"90b0-26"},"90b0-29":{"renderedLength":145,"gzipLength":117,"brotliLength":116,"mainUid":"90b0-28"},"90b0-31":{"renderedLength":1401,"gzipLength":376,"brotliLength":347,"mainUid":"90b0-30"},"90b0-33":{"renderedLength":3176,"gzipLength":928,"brotliLength":762,"mainUid":"90b0-32"},"90b0-35":{"renderedLength":1639,"gzipLength":581,"brotliLength":473,"mainUid":"90b0-34"},"90b0-37":{"renderedLength":726,"gzipLength":294,"brotliLength":252,"mainUid":"90b0-36"},"90b0-39":{"renderedLength":356,"gzipLength":233,"brotliLength":176,"mainUid":"90b0-38"},"90b0-41":{"renderedLength":1042,"gzipLength":377,"brotliLength":323,"mainUid":"90b0-40"},"90b0-43":{"renderedLength":1189,"gzipLength":399,"brotliLength":314,"mainUid":"90b0-42"},"90b0-45":{"renderedLength":257,"gzipLength":158,"brotliLength":122,"mainUid":"90b0-44"},"90b0-47":{"renderedLength":191,"gzipLength":113,"brotliLength":89,"mainUid":"90b0-46"},"90b0-49":{"renderedLength":915,"gzipLength":393,"brotliLength":328,"mainUid":"90b0-48"},"90b0-51":{"renderedLength":799,"gzipLength":370,"brotliLength":330,"mainUid":"90b0-50"},"90b0-53":{"renderedLength":1503,"gzipLength":487,"brotliLength":399,"mainUid":"90b0-52"},"90b0-55":{"renderedLength":663,"gzipLength":346,"brotliLength":277,"mainUid":"90b0-54"},"90b0-57":{"renderedLength":362,"gzipLength":246,"brotliLength":185,"mainUid":"90b0-56"},"90b0-59":{"renderedLength":344,"gzipLength":236,"brotliLength":186,"mainUid":"90b0-58"},"90b0-61":{"renderedLength":83,"gzipLength":97,"brotliLength":66,"mainUid":"90b0-60"},"90b0-63":{"renderedLength":203,"gzipLength":136,"brotliLength":97,"mainUid":"90b0-62"},"90b0-65":{"renderedLength":514,"gzipLength":227,"brotliLength":187,"mainUid":"90b0-64"},"90b0-67":{"renderedLength":294,"gzipLength":155,"brotliLength":114,"mainUid":"90b0-66"},"90b0-69":{"renderedLength":326,"gzipLength":176,"brotliLength":141,"mainUid":"90b0-68"},"90b0-71":{"renderedLength":628,"gzipLength":259,"brotliLength":219,"mainUid":"90b0-70"},"90b0-73":{"renderedLength":1667,"gzipLength":624,"brotliLength":519,"mainUid":"90b0-72"},"90b0-75":{"renderedLength":1179,"gzipLength":450,"brotliLength":362,"mainUid":"90b0-74"},"90b0-77":{"renderedLength":82,"gzipLength":96,"brotliLength":66,"mainUid":"90b0-76"},"90b0-79":{"renderedLength":252,"gzipLength":157,"brotliLength":116,"mainUid":"90b0-78"},"90b0-81":{"renderedLength":379,"gzipLength":264,"brotliLength":224,"mainUid":"90b0-80"},"90b0-83":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"90b0-82"}},"nodeMetas":{"90b0-0":{"id":"/src/index.ts","moduleParts":{"index.js":"90b0-1"},"imported":[{"uid":"90b0-4"},{"uid":"90b0-2"},{"uid":"90b0-8"},{"uid":"90b0-6"}],"importedBy":[],"isEntry":true},"90b0-2":{"id":"/src/state.ts","moduleParts":{"state.js":"90b0-3"},"imported":[{"uid":"90b0-86"},{"uid":"90b0-87"}],"importedBy":[{"uid":"90b0-0"},{"uid":"90b0-16"},{"uid":"90b0-22"},{"uid":"90b0-24"},{"uid":"90b0-50"}]},"90b0-4":{"id":"/src/layout/withLayout.tsx","moduleParts":{"layout/withLayout.js":"90b0-5"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-85"},{"uid":"90b0-14"},{"uid":"90b0-18"},{"uid":"90b0-16"},{"uid":"90b0-10"},{"uid":"90b0-20"}],"importedBy":[{"uid":"90b0-0"}]},"90b0-6":{"id":"/src/content/dividerSidebarItem.ts","moduleParts":{"content/dividerSidebarItem.js":"90b0-7"},"imported":[],"importedBy":[{"uid":"90b0-0"}]},"90b0-8":{"id":"/src/content/createPages.tsx","moduleParts":{"content/createPages.js":"90b0-9"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-85"},{"uid":"90b0-22"},{"uid":"90b0-12"}],"importedBy":[{"uid":"90b0-0"}]},"90b0-10":{"id":"/src/types.ts","moduleParts":{"types.js":"90b0-11"},"imported":[],"importedBy":[{"uid":"90b0-4"}]},"90b0-12":{"id":"/src/content/types.ts","moduleParts":{"content/types.js":"90b0-13"},"imported":[],"importedBy":[{"uid":"90b0-8"},{"uid":"90b0-40"},{"uid":"90b0-42"}]},"90b0-14":{"id":"/src/datahooks/DataHooks.tsx","moduleParts":{"datahooks/DataHooks.js":"90b0-15"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-85"},{"uid":"90b0-88"},{"uid":"90b0-26"}],"importedBy":[{"uid":"90b0-4"},{"uid":"90b0-22"}]},"90b0-16":{"id":"/src/datahooks/Permissions.tsx","moduleParts":{"datahooks/Permissions.js":"90b0-17"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-89"},{"uid":"90b0-85"},{"uid":"90b0-90"},{"uid":"90b0-2"}],"importedBy":[{"uid":"90b0-4"}]},"90b0-18":{"id":"/src/datahooks/PermissionHooks.tsx","moduleParts":{"datahooks/PermissionHooks.js":"90b0-19"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-85"},{"uid":"90b0-24"}],"importedBy":[{"uid":"90b0-4"}]},"90b0-20":{"id":"/src/layout/components/Layout.tsx","moduleParts":{"layout/components/Layout.js":"90b0-21"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-85"},{"uid":"90b0-91"},{"uid":"90b0-92"},{"uid":"90b0-30"},{"uid":"90b0-36"},{"uid":"90b0-38"},{"uid":"90b0-32"}],"importedBy":[{"uid":"90b0-4"}]},"90b0-22":{"id":"/src/content/components/ContentComponent.tsx","moduleParts":{"content/components/ContentComponent.js":"90b0-23"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-85"},{"uid":"90b0-93"},{"uid":"90b0-90"},{"uid":"90b0-14"},{"uid":"90b0-2"},{"uid":"90b0-28"},{"uid":"90b0-44"},{"uid":"90b0-40"},{"uid":"90b0-42"},{"uid":"90b0-34"}],"importedBy":[{"uid":"90b0-8"}]},"90b0-24":{"id":"/src/datahooks/ExecutePermissionHook.tsx","moduleParts":{"datahooks/ExecutePermissionHook.js":"90b0-25"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-90"},{"uid":"90b0-2"}],"importedBy":[{"uid":"90b0-18"}]},"90b0-26":{"id":"/src/datahooks/ExecuteDataHook.tsx","moduleParts":{"datahooks/ExecuteDataHook.js":"90b0-27"},"imported":[{"uid":"90b0-84"}],"importedBy":[{"uid":"90b0-14"}]},"90b0-28":{"id":"/src/utils.ts","moduleParts":{"utils.js":"90b0-29"},"imported":[{"uid":"90b0-93"}],"importedBy":[{"uid":"90b0-22"},{"uid":"90b0-36"},{"uid":"90b0-52"}]},"90b0-30":{"id":"/src/layout/moveItems.ts","moduleParts":{"layout/moveItems.js":"90b0-31"},"imported":[{"uid":"90b0-85"},{"uid":"90b0-93"},{"uid":"90b0-46"}],"importedBy":[{"uid":"90b0-20"}]},"90b0-32":{"id":"/src/layout/components/styles.module.css","moduleParts":{"layout/components/styles.module.css.js":"90b0-33"},"imported":[{"uid":"90b0-82"}],"importedBy":[{"uid":"90b0-20"},{"uid":"90b0-38"},{"uid":"90b0-74"}]},"90b0-34":{"id":"/src/content/components/styles.module.css","moduleParts":{"content/components/styles.module.css.js":"90b0-35"},"imported":[{"uid":"90b0-82"}],"importedBy":[{"uid":"90b0-22"},{"uid":"90b0-40"}]},"90b0-36":{"id":"/src/layout/components/LayoutItemBar.tsx","moduleParts":{"layout/components/LayoutItemBar.js":"90b0-37"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-85"},{"uid":"90b0-91"},{"uid":"90b0-28"},{"uid":"90b0-48"},{"uid":"90b0-52"}],"importedBy":[{"uid":"90b0-20"}]},"90b0-38":{"id":"/src/layout/components/SecondaryMenuToggleItem.tsx","moduleParts":{"layout/components/SecondaryMenuToggleItem.js":"90b0-39"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-91"},{"uid":"90b0-32"}],"importedBy":[{"uid":"90b0-20"}]},"90b0-40":{"id":"/src/content/components/Header.tsx","moduleParts":{"content/components/Header.js":"90b0-41"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-85"},{"uid":"90b0-91"},{"uid":"90b0-12"},{"uid":"90b0-34"}],"importedBy":[{"uid":"90b0-22"}]},"90b0-42":{"id":"/src/content/components/SidebarItemWrapper.tsx","moduleParts":{"content/components/SidebarItemWrapper.js":"90b0-43"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-85"},{"uid":"90b0-94"},{"uid":"90b0-91"},{"uid":"90b0-44"},{"uid":"90b0-12"},{"uid":"90b0-54"},{"uid":"90b0-56"},{"uid":"90b0-60"},{"uid":"90b0-58"}],"importedBy":[{"uid":"90b0-22"}]},"90b0-44":{"id":"/src/content/hooks/useBuildContentData.ts","moduleParts":{"content/hooks/useBuildContentData.js":"90b0-45"},"imported":[{"uid":"90b0-50"}],"importedBy":[{"uid":"90b0-22"},{"uid":"90b0-42"}]},"90b0-46":{"id":"/src/layout/types.ts","moduleParts":{"layout/types.js":"90b0-47"},"imported":[],"importedBy":[{"uid":"90b0-30"},{"uid":"90b0-52"}]},"90b0-48":{"id":"/src/layout/utils.tsx","moduleParts":{"layout/utils.js":"90b0-49"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-88"},{"uid":"90b0-91"},{"uid":"90b0-62"}],"importedBy":[{"uid":"90b0-36"},{"uid":"90b0-74"},{"uid":"90b0-80"}]},"90b0-50":{"id":"/src/hooks/useBuildData.ts","moduleParts":{"hooks/useBuildData.js":"90b0-51"},"imported":[{"uid":"90b0-89"},{"uid":"90b0-85"},{"uid":"90b0-93"},{"uid":"90b0-88"},{"uid":"90b0-2"},{"uid":"90b0-64"},{"uid":"90b0-66"},{"uid":"90b0-68"}],"importedBy":[{"uid":"90b0-44"},{"uid":"90b0-52"}]},"90b0-52":{"id":"/src/layout/components/LayoutItemWrapper.tsx","moduleParts":{"layout/components/LayoutItemWrapper.js":"90b0-53"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-85"},{"uid":"90b0-94"},{"uid":"90b0-91"},{"uid":"90b0-50"},{"uid":"90b0-28"},{"uid":"90b0-46"},{"uid":"90b0-76"},{"uid":"90b0-74"},{"uid":"90b0-78"},{"uid":"90b0-80"}],"importedBy":[{"uid":"90b0-36"}]},"90b0-54":{"id":"/src/content/components/ActionFormSidebarItemComponent.tsx","moduleParts":{"content/components/ActionFormSidebarItemComponent.js":"90b0-55"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-85"},{"uid":"90b0-91"},{"uid":"90b0-70"},{"uid":"90b0-72"}],"importedBy":[{"uid":"90b0-42"}]},"90b0-56":{"id":"/src/content/components/ActionSidebarItemComponent.tsx","moduleParts":{"content/components/ActionSidebarItemComponent.js":"90b0-57"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-91"},{"uid":"90b0-70"}],"importedBy":[{"uid":"90b0-42"}]},"90b0-58":{"id":"/src/content/components/PlainSidebarItem.tsx","moduleParts":{"content/components/PlainSidebarItem.js":"90b0-59"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-88"},{"uid":"90b0-91"},{"uid":"90b0-70"}],"importedBy":[{"uid":"90b0-42"}]},"90b0-60":{"id":"/src/content/components/CustomSidebarItemComponent.tsx","moduleParts":{"content/components/CustomSidebarItemComponent.js":"90b0-61"},"imported":[{"uid":"90b0-84"}],"importedBy":[{"uid":"90b0-42"}]},"90b0-62":{"id":"/src/commonItems.ts","moduleParts":{"commonItems.js":"90b0-63"},"imported":[],"importedBy":[{"uid":"90b0-48"},{"uid":"90b0-64"}]},"90b0-64":{"id":"/src/hooks/useIsActiveRoute.ts","moduleParts":{"hooks/useIsActiveRoute.js":"90b0-65"},"imported":[{"uid":"90b0-95"},{"uid":"90b0-62"}],"importedBy":[{"uid":"90b0-50"}]},"90b0-66":{"id":"/src/hooks/useSelectPermission.ts","moduleParts":{"hooks/useSelectPermission.js":"90b0-67"},"imported":[{"uid":"90b0-93"}],"importedBy":[{"uid":"90b0-50"}]},"90b0-68":{"id":"/src/hooks/useSelectState.ts","moduleParts":{"hooks/useSelectState.js":"90b0-69"},"imported":[{"uid":"90b0-93"}],"importedBy":[{"uid":"90b0-50"}]},"90b0-70":{"id":"/src/content/utils.tsx","moduleParts":{"content/utils.js":"90b0-71"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-91"}],"importedBy":[{"uid":"90b0-54"},{"uid":"90b0-56"},{"uid":"90b0-58"}]},"90b0-72":{"id":"/src/content/components/ActionForm.tsx","moduleParts":{"content/components/ActionForm.js":"90b0-73"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-96"},{"uid":"90b0-85"},{"uid":"90b0-91"}],"importedBy":[{"uid":"90b0-54"}]},"90b0-74":{"id":"/src/layout/components/DropdownItem.tsx","moduleParts":{"layout/components/DropdownItem.js":"90b0-75"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-85"},{"uid":"90b0-91"},{"uid":"90b0-48"},{"uid":"90b0-32"}],"importedBy":[{"uid":"90b0-52"}]},"90b0-76":{"id":"/src/layout/components/CustomLayoutItemComponent.tsx","moduleParts":{"layout/components/CustomLayoutItemComponent.js":"90b0-77"},"imported":[{"uid":"90b0-84"}],"importedBy":[{"uid":"90b0-52"}]},"90b0-78":{"id":"/src/layout/components/MenuItem.tsx","moduleParts":{"layout/components/MenuItem.js":"90b0-79"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-91"}],"importedBy":[{"uid":"90b0-52"}]},"90b0-80":{"id":"/src/layout/components/PlainItem.tsx","moduleParts":{"layout/components/PlainItem.js":"90b0-81"},"imported":[{"uid":"90b0-84"},{"uid":"90b0-91"},{"uid":"90b0-92"},{"uid":"90b0-48"}],"importedBy":[{"uid":"90b0-52"}]},"90b0-82":{"id":"/home/mike/dev/imperium/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"90b0-83"},"imported":[],"importedBy":[{"uid":"90b0-32"},{"uid":"90b0-34"}]},"90b0-84":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"90b0-4"},{"uid":"90b0-8"},{"uid":"90b0-14"},{"uid":"90b0-18"},{"uid":"90b0-16"},{"uid":"90b0-20"},{"uid":"90b0-22"},{"uid":"90b0-26"},{"uid":"90b0-24"},{"uid":"90b0-36"},{"uid":"90b0-38"},{"uid":"90b0-40"},{"uid":"90b0-42"},{"uid":"90b0-48"},{"uid":"90b0-52"},{"uid":"90b0-54"},{"uid":"90b0-56"},{"uid":"90b0-60"},{"uid":"90b0-58"},{"uid":"90b0-76"},{"uid":"90b0-74"},{"uid":"90b0-78"},{"uid":"90b0-80"},{"uid":"90b0-70"},{"uid":"90b0-72"}],"isExternal":true},"90b0-85":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"90b0-4"},{"uid":"90b0-8"},{"uid":"90b0-14"},{"uid":"90b0-18"},{"uid":"90b0-16"},{"uid":"90b0-20"},{"uid":"90b0-22"},{"uid":"90b0-30"},{"uid":"90b0-36"},{"uid":"90b0-40"},{"uid":"90b0-42"},{"uid":"90b0-52"},{"uid":"90b0-50"},{"uid":"90b0-54"},{"uid":"90b0-74"},{"uid":"90b0-72"}],"isExternal":true},"90b0-86":{"id":"@imperium/state","moduleParts":{},"imported":[],"importedBy":[{"uid":"90b0-2"}],"isExternal":true},"90b0-87":{"id":"@reduxjs/toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"90b0-2"}],"isExternal":true},"90b0-88":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"90b0-14"},{"uid":"90b0-48"},{"uid":"90b0-50"},{"uid":"90b0-58"}],"isExternal":true},"90b0-89":{"id":"@imperium/auth-client","moduleParts":{},"imported":[],"importedBy":[{"uid":"90b0-16"},{"uid":"90b0-50"}],"isExternal":true},"90b0-90":{"id":"react-redux","moduleParts":{},"imported":[],"importedBy":[{"uid":"90b0-16"},{"uid":"90b0-22"},{"uid":"90b0-24"}],"isExternal":true},"90b0-91":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"90b0-20"},{"uid":"90b0-36"},{"uid":"90b0-38"},{"uid":"90b0-40"},{"uid":"90b0-42"},{"uid":"90b0-48"},{"uid":"90b0-52"},{"uid":"90b0-54"},{"uid":"90b0-56"},{"uid":"90b0-58"},{"uid":"90b0-74"},{"uid":"90b0-78"},{"uid":"90b0-80"},{"uid":"90b0-70"},{"uid":"90b0-72"}],"isExternal":true},"90b0-92":{"id":"react-responsive","moduleParts":{},"imported":[],"importedBy":[{"uid":"90b0-20"},{"uid":"90b0-80"}],"isExternal":true},"90b0-93":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"90b0-22"},{"uid":"90b0-30"},{"uid":"90b0-28"},{"uid":"90b0-50"},{"uid":"90b0-66"},{"uid":"90b0-68"}],"isExternal":true},"90b0-94":{"id":"mingo","moduleParts":{},"imported":[],"importedBy":[{"uid":"90b0-42"},{"uid":"90b0-52"}],"isExternal":true},"90b0-95":{"id":"react-router","moduleParts":{},"imported":[],"importedBy":[{"uid":"90b0-64"}],"isExternal":true},"90b0-96":{"id":"@thx/controls","moduleParts":{},"imported":[],"importedBy":[{"uid":"90b0-72"}],"isExternal":true}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
2672
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"d500-1"}]},{"name":"state.js","children":[{"name":"src/state.ts","uid":"d500-3"}]},{"name":"content/dividerSidebarItem.js","children":[{"name":"src/content/dividerSidebarItem.ts","uid":"d500-5"}]},{"name":"layout/withLayout.js","children":[{"name":"src/layout/withLayout.tsx","uid":"d500-7"}]},{"name":"content/createPages.js","children":[{"name":"src/content/createPages.tsx","uid":"d500-9"}]},{"name":"types.js","children":[{"name":"src/types.ts","uid":"d500-11"}]},{"name":"datahooks/DataHooks.js","children":[{"name":"src/datahooks/DataHooks.tsx","uid":"d500-13"}]},{"name":"datahooks/PermissionHooks.js","children":[{"name":"src/datahooks/PermissionHooks.tsx","uid":"d500-15"}]},{"name":"datahooks/Permissions.js","children":[{"name":"src/datahooks/Permissions.tsx","uid":"d500-17"}]},{"name":"layout/components/Layout.js","children":[{"name":"src/layout/components/Layout.tsx","uid":"d500-19"}]},{"name":"content/types.js","children":[{"name":"src/content/types.ts","uid":"d500-21"}]},{"name":"content/components/ContentComponent.js","children":[{"name":"src/content/components/ContentComponent.tsx","uid":"d500-23"}]},{"name":"datahooks/ExecuteDataHook.js","children":[{"name":"src/datahooks/ExecuteDataHook.tsx","uid":"d500-25"}]},{"name":"datahooks/ExecutePermissionHook.js","children":[{"name":"src/datahooks/ExecutePermissionHook.tsx","uid":"d500-27"}]},{"name":"layout/moveItems.js","children":[{"name":"src/layout/moveItems.ts","uid":"d500-29"}]},{"name":"layout/components/styles.module.css.js","children":[{"name":"src/layout/components/styles.module.css","uid":"d500-31"}]},{"name":"layout/components/LayoutItemBar.js","children":[{"name":"src/layout/components/LayoutItemBar.tsx","uid":"d500-33"}]},{"name":"layout/components/SecondaryMenuToggleItem.js","children":[{"name":"src/layout/components/SecondaryMenuToggleItem.tsx","uid":"d500-35"}]},{"name":"utils.js","children":[{"name":"src/utils.ts","uid":"d500-37"}]},{"name":"content/components/styles.module.css.js","children":[{"name":"src/content/components/styles.module.css","uid":"d500-39"}]},{"name":"content/hooks/useBuildContentData.js","children":[{"name":"src/content/hooks/useBuildContentData.ts","uid":"d500-41"}]},{"name":"content/components/Header.js","children":[{"name":"src/content/components/Header.tsx","uid":"d500-43"}]},{"name":"content/components/SidebarItemWrapper.js","children":[{"name":"src/content/components/SidebarItemWrapper.tsx","uid":"d500-45"}]},{"name":"layout/types.js","children":[{"name":"src/layout/types.ts","uid":"d500-47"}]},{"name":"layout/utils.js","children":[{"name":"src/layout/utils.tsx","uid":"d500-49"}]},{"name":"layout/components/LayoutItemWrapper.js","children":[{"name":"src/layout/components/LayoutItemWrapper.tsx","uid":"d500-51"}]},{"name":"hooks/useBuildData.js","children":[{"name":"src/hooks/useBuildData.ts","uid":"d500-53"}]},{"name":"content/components/ActionFormSidebarItemComponent.js","children":[{"name":"src/content/components/ActionFormSidebarItemComponent.tsx","uid":"d500-55"}]},{"name":"content/components/ActionSidebarItemComponent.js","children":[{"name":"src/content/components/ActionSidebarItemComponent.tsx","uid":"d500-57"}]},{"name":"content/components/CustomSidebarItemComponent.js","children":[{"name":"src/content/components/CustomSidebarItemComponent.tsx","uid":"d500-59"}]},{"name":"content/components/PlainSidebarItem.js","children":[{"name":"src/content/components/PlainSidebarItem.tsx","uid":"d500-61"}]},{"name":"commonItems.js","children":[{"name":"src/commonItems.ts","uid":"d500-63"}]},{"name":"layout/components/CustomLayoutItemComponent.js","children":[{"name":"src/layout/components/CustomLayoutItemComponent.tsx","uid":"d500-65"}]},{"name":"hooks/useIsActiveRoute.js","children":[{"name":"src/hooks/useIsActiveRoute.ts","uid":"d500-67"}]},{"name":"hooks/useSelectPermission.js","children":[{"name":"src/hooks/useSelectPermission.ts","uid":"d500-69"}]},{"name":"hooks/useSelectState.js","children":[{"name":"src/hooks/useSelectState.ts","uid":"d500-71"}]},{"name":"layout/components/DropdownItem.js","children":[{"name":"src/layout/components/DropdownItem.tsx","uid":"d500-73"}]},{"name":"layout/components/MenuItem.js","children":[{"name":"src/layout/components/MenuItem.tsx","uid":"d500-75"}]},{"name":"layout/components/PlainItem.js","children":[{"name":"src/layout/components/PlainItem.tsx","uid":"d500-77"}]},{"name":"content/utils.js","children":[{"name":"src/content/utils.tsx","uid":"d500-79"}]},{"name":"content/components/ActionForm.js","children":[{"name":"src/content/components/ActionForm.tsx","uid":"d500-81"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/artemis/GitHub/imperium/node_modules/style-inject/dist/style-inject.es.js","uid":"d500-83"}]}],"isRoot":true},"nodeParts":{"d500-1":{"renderedLength":144,"gzipLength":131,"brotliLength":106,"mainUid":"d500-0"},"d500-3":{"renderedLength":489,"gzipLength":250,"brotliLength":217,"mainUid":"d500-2"},"d500-5":{"renderedLength":59,"gzipLength":73,"brotliLength":63,"mainUid":"d500-4"},"d500-7":{"renderedLength":1955,"gzipLength":562,"brotliLength":488,"mainUid":"d500-6"},"d500-9":{"renderedLength":650,"gzipLength":301,"brotliLength":268,"mainUid":"d500-8"},"d500-11":{"renderedLength":121,"gzipLength":111,"brotliLength":90,"mainUid":"d500-10"},"d500-13":{"renderedLength":1058,"gzipLength":390,"brotliLength":330,"mainUid":"d500-12"},"d500-15":{"renderedLength":339,"gzipLength":202,"brotliLength":164,"mainUid":"d500-14"},"d500-17":{"renderedLength":808,"gzipLength":351,"brotliLength":306,"mainUid":"d500-16"},"d500-19":{"renderedLength":2512,"gzipLength":751,"brotliLength":636,"mainUid":"d500-18"},"d500-21":{"renderedLength":388,"gzipLength":167,"brotliLength":111,"mainUid":"d500-20"},"d500-23":{"renderedLength":3376,"gzipLength":879,"brotliLength":768,"mainUid":"d500-22"},"d500-25":{"renderedLength":123,"gzipLength":111,"brotliLength":93,"mainUid":"d500-24"},"d500-27":{"renderedLength":345,"gzipLength":207,"brotliLength":172,"mainUid":"d500-26"},"d500-29":{"renderedLength":1401,"gzipLength":376,"brotliLength":347,"mainUid":"d500-28"},"d500-31":{"renderedLength":3176,"gzipLength":928,"brotliLength":762,"mainUid":"d500-30"},"d500-33":{"renderedLength":726,"gzipLength":294,"brotliLength":252,"mainUid":"d500-32"},"d500-35":{"renderedLength":356,"gzipLength":233,"brotliLength":176,"mainUid":"d500-34"},"d500-37":{"renderedLength":145,"gzipLength":117,"brotliLength":116,"mainUid":"d500-36"},"d500-39":{"renderedLength":2119,"gzipLength":680,"brotliLength":565,"mainUid":"d500-38"},"d500-41":{"renderedLength":257,"gzipLength":158,"brotliLength":122,"mainUid":"d500-40"},"d500-43":{"renderedLength":1042,"gzipLength":377,"brotliLength":323,"mainUid":"d500-42"},"d500-45":{"renderedLength":1189,"gzipLength":399,"brotliLength":314,"mainUid":"d500-44"},"d500-47":{"renderedLength":191,"gzipLength":113,"brotliLength":89,"mainUid":"d500-46"},"d500-49":{"renderedLength":915,"gzipLength":393,"brotliLength":328,"mainUid":"d500-48"},"d500-51":{"renderedLength":1503,"gzipLength":487,"brotliLength":399,"mainUid":"d500-50"},"d500-53":{"renderedLength":799,"gzipLength":370,"brotliLength":330,"mainUid":"d500-52"},"d500-55":{"renderedLength":663,"gzipLength":346,"brotliLength":277,"mainUid":"d500-54"},"d500-57":{"renderedLength":362,"gzipLength":246,"brotliLength":185,"mainUid":"d500-56"},"d500-59":{"renderedLength":83,"gzipLength":97,"brotliLength":66,"mainUid":"d500-58"},"d500-61":{"renderedLength":344,"gzipLength":236,"brotliLength":186,"mainUid":"d500-60"},"d500-63":{"renderedLength":203,"gzipLength":136,"brotliLength":97,"mainUid":"d500-62"},"d500-65":{"renderedLength":82,"gzipLength":96,"brotliLength":66,"mainUid":"d500-64"},"d500-67":{"renderedLength":514,"gzipLength":227,"brotliLength":187,"mainUid":"d500-66"},"d500-69":{"renderedLength":294,"gzipLength":155,"brotliLength":114,"mainUid":"d500-68"},"d500-71":{"renderedLength":326,"gzipLength":176,"brotliLength":141,"mainUid":"d500-70"},"d500-73":{"renderedLength":1179,"gzipLength":450,"brotliLength":362,"mainUid":"d500-72"},"d500-75":{"renderedLength":252,"gzipLength":157,"brotliLength":116,"mainUid":"d500-74"},"d500-77":{"renderedLength":379,"gzipLength":264,"brotliLength":224,"mainUid":"d500-76"},"d500-79":{"renderedLength":628,"gzipLength":259,"brotliLength":219,"mainUid":"d500-78"},"d500-81":{"renderedLength":1667,"gzipLength":624,"brotliLength":519,"mainUid":"d500-80"},"d500-83":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"d500-82"}},"nodeMetas":{"d500-0":{"id":"/src/index.ts","moduleParts":{"index.js":"d500-1"},"imported":[{"uid":"d500-6"},{"uid":"d500-2"},{"uid":"d500-8"},{"uid":"d500-4"}],"importedBy":[],"isEntry":true},"d500-2":{"id":"/src/state.ts","moduleParts":{"state.js":"d500-3"},"imported":[{"uid":"d500-86"},{"uid":"d500-87"}],"importedBy":[{"uid":"d500-0"},{"uid":"d500-16"},{"uid":"d500-22"},{"uid":"d500-26"},{"uid":"d500-52"}]},"d500-4":{"id":"/src/content/dividerSidebarItem.ts","moduleParts":{"content/dividerSidebarItem.js":"d500-5"},"imported":[],"importedBy":[{"uid":"d500-0"}]},"d500-6":{"id":"/src/layout/withLayout.tsx","moduleParts":{"layout/withLayout.js":"d500-7"},"imported":[{"uid":"d500-84"},{"uid":"d500-85"},{"uid":"d500-12"},{"uid":"d500-14"},{"uid":"d500-16"},{"uid":"d500-10"},{"uid":"d500-18"}],"importedBy":[{"uid":"d500-0"}]},"d500-8":{"id":"/src/content/createPages.tsx","moduleParts":{"content/createPages.js":"d500-9"},"imported":[{"uid":"d500-84"},{"uid":"d500-85"},{"uid":"d500-22"},{"uid":"d500-20"}],"importedBy":[{"uid":"d500-0"}]},"d500-10":{"id":"/src/types.ts","moduleParts":{"types.js":"d500-11"},"imported":[],"importedBy":[{"uid":"d500-6"}]},"d500-12":{"id":"/src/datahooks/DataHooks.tsx","moduleParts":{"datahooks/DataHooks.js":"d500-13"},"imported":[{"uid":"d500-84"},{"uid":"d500-85"},{"uid":"d500-88"},{"uid":"d500-24"}],"importedBy":[{"uid":"d500-6"},{"uid":"d500-22"}]},"d500-14":{"id":"/src/datahooks/PermissionHooks.tsx","moduleParts":{"datahooks/PermissionHooks.js":"d500-15"},"imported":[{"uid":"d500-84"},{"uid":"d500-85"},{"uid":"d500-26"}],"importedBy":[{"uid":"d500-6"}]},"d500-16":{"id":"/src/datahooks/Permissions.tsx","moduleParts":{"datahooks/Permissions.js":"d500-17"},"imported":[{"uid":"d500-84"},{"uid":"d500-89"},{"uid":"d500-85"},{"uid":"d500-90"},{"uid":"d500-2"}],"importedBy":[{"uid":"d500-6"}]},"d500-18":{"id":"/src/layout/components/Layout.tsx","moduleParts":{"layout/components/Layout.js":"d500-19"},"imported":[{"uid":"d500-84"},{"uid":"d500-85"},{"uid":"d500-91"},{"uid":"d500-92"},{"uid":"d500-28"},{"uid":"d500-32"},{"uid":"d500-34"},{"uid":"d500-30"}],"importedBy":[{"uid":"d500-6"}]},"d500-20":{"id":"/src/content/types.ts","moduleParts":{"content/types.js":"d500-21"},"imported":[],"importedBy":[{"uid":"d500-8"},{"uid":"d500-42"},{"uid":"d500-44"}]},"d500-22":{"id":"/src/content/components/ContentComponent.tsx","moduleParts":{"content/components/ContentComponent.js":"d500-23"},"imported":[{"uid":"d500-84"},{"uid":"d500-85"},{"uid":"d500-93"},{"uid":"d500-90"},{"uid":"d500-92"},{"uid":"d500-91"},{"uid":"d500-12"},{"uid":"d500-2"},{"uid":"d500-36"},{"uid":"d500-40"},{"uid":"d500-42"},{"uid":"d500-44"},{"uid":"d500-38"}],"importedBy":[{"uid":"d500-8"}]},"d500-24":{"id":"/src/datahooks/ExecuteDataHook.tsx","moduleParts":{"datahooks/ExecuteDataHook.js":"d500-25"},"imported":[{"uid":"d500-84"}],"importedBy":[{"uid":"d500-12"}]},"d500-26":{"id":"/src/datahooks/ExecutePermissionHook.tsx","moduleParts":{"datahooks/ExecutePermissionHook.js":"d500-27"},"imported":[{"uid":"d500-84"},{"uid":"d500-90"},{"uid":"d500-2"}],"importedBy":[{"uid":"d500-14"}]},"d500-28":{"id":"/src/layout/moveItems.ts","moduleParts":{"layout/moveItems.js":"d500-29"},"imported":[{"uid":"d500-85"},{"uid":"d500-93"},{"uid":"d500-46"}],"importedBy":[{"uid":"d500-18"}]},"d500-30":{"id":"/src/layout/components/styles.module.css","moduleParts":{"layout/components/styles.module.css.js":"d500-31"},"imported":[{"uid":"d500-82"}],"importedBy":[{"uid":"d500-18"},{"uid":"d500-34"},{"uid":"d500-72"}]},"d500-32":{"id":"/src/layout/components/LayoutItemBar.tsx","moduleParts":{"layout/components/LayoutItemBar.js":"d500-33"},"imported":[{"uid":"d500-84"},{"uid":"d500-85"},{"uid":"d500-92"},{"uid":"d500-36"},{"uid":"d500-48"},{"uid":"d500-50"}],"importedBy":[{"uid":"d500-18"}]},"d500-34":{"id":"/src/layout/components/SecondaryMenuToggleItem.tsx","moduleParts":{"layout/components/SecondaryMenuToggleItem.js":"d500-35"},"imported":[{"uid":"d500-84"},{"uid":"d500-92"},{"uid":"d500-30"}],"importedBy":[{"uid":"d500-18"}]},"d500-36":{"id":"/src/utils.ts","moduleParts":{"utils.js":"d500-37"},"imported":[{"uid":"d500-93"}],"importedBy":[{"uid":"d500-22"},{"uid":"d500-32"},{"uid":"d500-50"}]},"d500-38":{"id":"/src/content/components/styles.module.css","moduleParts":{"content/components/styles.module.css.js":"d500-39"},"imported":[{"uid":"d500-82"}],"importedBy":[{"uid":"d500-22"},{"uid":"d500-42"}]},"d500-40":{"id":"/src/content/hooks/useBuildContentData.ts","moduleParts":{"content/hooks/useBuildContentData.js":"d500-41"},"imported":[{"uid":"d500-52"}],"importedBy":[{"uid":"d500-22"},{"uid":"d500-44"}]},"d500-42":{"id":"/src/content/components/Header.tsx","moduleParts":{"content/components/Header.js":"d500-43"},"imported":[{"uid":"d500-84"},{"uid":"d500-85"},{"uid":"d500-92"},{"uid":"d500-20"},{"uid":"d500-38"}],"importedBy":[{"uid":"d500-22"}]},"d500-44":{"id":"/src/content/components/SidebarItemWrapper.tsx","moduleParts":{"content/components/SidebarItemWrapper.js":"d500-45"},"imported":[{"uid":"d500-84"},{"uid":"d500-85"},{"uid":"d500-94"},{"uid":"d500-92"},{"uid":"d500-40"},{"uid":"d500-20"},{"uid":"d500-54"},{"uid":"d500-56"},{"uid":"d500-58"},{"uid":"d500-60"}],"importedBy":[{"uid":"d500-22"}]},"d500-46":{"id":"/src/layout/types.ts","moduleParts":{"layout/types.js":"d500-47"},"imported":[],"importedBy":[{"uid":"d500-28"},{"uid":"d500-50"}]},"d500-48":{"id":"/src/layout/utils.tsx","moduleParts":{"layout/utils.js":"d500-49"},"imported":[{"uid":"d500-84"},{"uid":"d500-88"},{"uid":"d500-92"},{"uid":"d500-62"}],"importedBy":[{"uid":"d500-32"},{"uid":"d500-72"},{"uid":"d500-76"}]},"d500-50":{"id":"/src/layout/components/LayoutItemWrapper.tsx","moduleParts":{"layout/components/LayoutItemWrapper.js":"d500-51"},"imported":[{"uid":"d500-84"},{"uid":"d500-85"},{"uid":"d500-94"},{"uid":"d500-92"},{"uid":"d500-52"},{"uid":"d500-36"},{"uid":"d500-46"},{"uid":"d500-64"},{"uid":"d500-72"},{"uid":"d500-74"},{"uid":"d500-76"}],"importedBy":[{"uid":"d500-32"}]},"d500-52":{"id":"/src/hooks/useBuildData.ts","moduleParts":{"hooks/useBuildData.js":"d500-53"},"imported":[{"uid":"d500-89"},{"uid":"d500-85"},{"uid":"d500-93"},{"uid":"d500-88"},{"uid":"d500-2"},{"uid":"d500-66"},{"uid":"d500-68"},{"uid":"d500-70"}],"importedBy":[{"uid":"d500-40"},{"uid":"d500-50"}]},"d500-54":{"id":"/src/content/components/ActionFormSidebarItemComponent.tsx","moduleParts":{"content/components/ActionFormSidebarItemComponent.js":"d500-55"},"imported":[{"uid":"d500-84"},{"uid":"d500-85"},{"uid":"d500-92"},{"uid":"d500-78"},{"uid":"d500-80"}],"importedBy":[{"uid":"d500-44"}]},"d500-56":{"id":"/src/content/components/ActionSidebarItemComponent.tsx","moduleParts":{"content/components/ActionSidebarItemComponent.js":"d500-57"},"imported":[{"uid":"d500-84"},{"uid":"d500-92"},{"uid":"d500-78"}],"importedBy":[{"uid":"d500-44"}]},"d500-58":{"id":"/src/content/components/CustomSidebarItemComponent.tsx","moduleParts":{"content/components/CustomSidebarItemComponent.js":"d500-59"},"imported":[{"uid":"d500-84"}],"importedBy":[{"uid":"d500-44"}]},"d500-60":{"id":"/src/content/components/PlainSidebarItem.tsx","moduleParts":{"content/components/PlainSidebarItem.js":"d500-61"},"imported":[{"uid":"d500-84"},{"uid":"d500-88"},{"uid":"d500-92"},{"uid":"d500-78"}],"importedBy":[{"uid":"d500-44"}]},"d500-62":{"id":"/src/commonItems.ts","moduleParts":{"commonItems.js":"d500-63"},"imported":[],"importedBy":[{"uid":"d500-48"},{"uid":"d500-66"}]},"d500-64":{"id":"/src/layout/components/CustomLayoutItemComponent.tsx","moduleParts":{"layout/components/CustomLayoutItemComponent.js":"d500-65"},"imported":[{"uid":"d500-84"}],"importedBy":[{"uid":"d500-50"}]},"d500-66":{"id":"/src/hooks/useIsActiveRoute.ts","moduleParts":{"hooks/useIsActiveRoute.js":"d500-67"},"imported":[{"uid":"d500-95"},{"uid":"d500-62"}],"importedBy":[{"uid":"d500-52"}]},"d500-68":{"id":"/src/hooks/useSelectPermission.ts","moduleParts":{"hooks/useSelectPermission.js":"d500-69"},"imported":[{"uid":"d500-93"}],"importedBy":[{"uid":"d500-52"}]},"d500-70":{"id":"/src/hooks/useSelectState.ts","moduleParts":{"hooks/useSelectState.js":"d500-71"},"imported":[{"uid":"d500-93"}],"importedBy":[{"uid":"d500-52"}]},"d500-72":{"id":"/src/layout/components/DropdownItem.tsx","moduleParts":{"layout/components/DropdownItem.js":"d500-73"},"imported":[{"uid":"d500-84"},{"uid":"d500-85"},{"uid":"d500-92"},{"uid":"d500-48"},{"uid":"d500-30"}],"importedBy":[{"uid":"d500-50"}]},"d500-74":{"id":"/src/layout/components/MenuItem.tsx","moduleParts":{"layout/components/MenuItem.js":"d500-75"},"imported":[{"uid":"d500-84"},{"uid":"d500-92"}],"importedBy":[{"uid":"d500-50"}]},"d500-76":{"id":"/src/layout/components/PlainItem.tsx","moduleParts":{"layout/components/PlainItem.js":"d500-77"},"imported":[{"uid":"d500-84"},{"uid":"d500-91"},{"uid":"d500-92"},{"uid":"d500-48"}],"importedBy":[{"uid":"d500-50"}]},"d500-78":{"id":"/src/content/utils.tsx","moduleParts":{"content/utils.js":"d500-79"},"imported":[{"uid":"d500-84"},{"uid":"d500-92"}],"importedBy":[{"uid":"d500-54"},{"uid":"d500-56"},{"uid":"d500-60"}]},"d500-80":{"id":"/src/content/components/ActionForm.tsx","moduleParts":{"content/components/ActionForm.js":"d500-81"},"imported":[{"uid":"d500-84"},{"uid":"d500-96"},{"uid":"d500-85"},{"uid":"d500-92"}],"importedBy":[{"uid":"d500-54"}]},"d500-82":{"id":"/home/artemis/GitHub/imperium/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"d500-83"},"imported":[],"importedBy":[{"uid":"d500-30"},{"uid":"d500-38"}]},"d500-84":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"d500-6"},{"uid":"d500-8"},{"uid":"d500-12"},{"uid":"d500-14"},{"uid":"d500-16"},{"uid":"d500-18"},{"uid":"d500-22"},{"uid":"d500-24"},{"uid":"d500-26"},{"uid":"d500-32"},{"uid":"d500-34"},{"uid":"d500-42"},{"uid":"d500-44"},{"uid":"d500-48"},{"uid":"d500-50"},{"uid":"d500-54"},{"uid":"d500-56"},{"uid":"d500-58"},{"uid":"d500-60"},{"uid":"d500-64"},{"uid":"d500-72"},{"uid":"d500-74"},{"uid":"d500-76"},{"uid":"d500-78"},{"uid":"d500-80"}],"isExternal":true},"d500-85":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"d500-6"},{"uid":"d500-8"},{"uid":"d500-12"},{"uid":"d500-14"},{"uid":"d500-16"},{"uid":"d500-18"},{"uid":"d500-22"},{"uid":"d500-28"},{"uid":"d500-32"},{"uid":"d500-42"},{"uid":"d500-44"},{"uid":"d500-50"},{"uid":"d500-52"},{"uid":"d500-54"},{"uid":"d500-72"},{"uid":"d500-80"}],"isExternal":true},"d500-86":{"id":"@imperium/state","moduleParts":{},"imported":[],"importedBy":[{"uid":"d500-2"}],"isExternal":true},"d500-87":{"id":"@reduxjs/toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"d500-2"}],"isExternal":true},"d500-88":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"d500-12"},{"uid":"d500-48"},{"uid":"d500-52"},{"uid":"d500-60"}],"isExternal":true},"d500-89":{"id":"@imperium/auth-client","moduleParts":{},"imported":[],"importedBy":[{"uid":"d500-16"},{"uid":"d500-52"}],"isExternal":true},"d500-90":{"id":"react-redux","moduleParts":{},"imported":[],"importedBy":[{"uid":"d500-16"},{"uid":"d500-22"},{"uid":"d500-26"}],"isExternal":true},"d500-91":{"id":"react-responsive","moduleParts":{},"imported":[],"importedBy":[{"uid":"d500-18"},{"uid":"d500-22"},{"uid":"d500-76"}],"isExternal":true},"d500-92":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"d500-18"},{"uid":"d500-22"},{"uid":"d500-32"},{"uid":"d500-34"},{"uid":"d500-42"},{"uid":"d500-44"},{"uid":"d500-48"},{"uid":"d500-50"},{"uid":"d500-54"},{"uid":"d500-56"},{"uid":"d500-60"},{"uid":"d500-72"},{"uid":"d500-74"},{"uid":"d500-76"},{"uid":"d500-78"},{"uid":"d500-80"}],"isExternal":true},"d500-93":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"d500-22"},{"uid":"d500-28"},{"uid":"d500-36"},{"uid":"d500-52"},{"uid":"d500-68"},{"uid":"d500-70"}],"isExternal":true},"d500-94":{"id":"mingo","moduleParts":{},"imported":[],"importedBy":[{"uid":"d500-44"},{"uid":"d500-50"}],"isExternal":true},"d500-95":{"id":"react-router","moduleParts":{},"imported":[],"importedBy":[{"uid":"d500-66"}],"isExternal":true},"d500-96":{"id":"@thx/controls","moduleParts":{},"imported":[],"importedBy":[{"uid":"d500-80"}],"isExternal":true}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
2673
2673
 
2674
2674
  const run = () => {
2675
2675
  const width = window.innerWidth;
package/dist/stats.txt ADDED
@@ -0,0 +1,92 @@
1
+ -----------------------------
2
+ Rollup File Analysis
3
+ -----------------------------
4
+ bundle size: 33.798 KB
5
+ original size: 53.307 KB
6
+ code reduction: 36.6 %
7
+ module count: 42
8
+
9
+ /src/content/components/ContentComponent.tsx
10
+ ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9.99 % (3.376 KB)
11
+ /src/layout/components/styles.module.css
12
+ ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9.4 % (3.176 KB)
13
+ /src/layout/components/Layout.tsx
14
+ ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.43 % (2.512 KB)
15
+ /src/content/components/styles.module.css
16
+ ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.27 % (2.119 KB)
17
+ /src/layout/withLayout.tsx
18
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.78 % (1.955 KB)
19
+ /src/content/components/ActionForm.tsx
20
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.93 % (1.667 KB)
21
+ /src/layout/components/LayoutItemWrapper.tsx
22
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.45 % (1.503 KB)
23
+ /src/layout/moveItems.ts
24
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.15 % (1.401 KB)
25
+ /src/content/components/SidebarItemWrapper.tsx
26
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.52 % (1.189 KB)
27
+ /src/layout/components/DropdownItem.tsx
28
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.49 % (1.179 KB)
29
+ /src/datahooks/DataHooks.tsx
30
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.13 % (1.058 KB)
31
+ /src/content/components/Header.tsx
32
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.08 % (1.042 KB)
33
+ /src/layout/utils.tsx
34
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.71 % (915 Bytes)
35
+ /src/datahooks/Permissions.tsx
36
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.39 % (808 Bytes)
37
+ /src/hooks/useBuildData.ts
38
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.36 % (799 Bytes)
39
+ /src/layout/components/LayoutItemBar.tsx
40
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.15 % (726 Bytes)
41
+ /src/content/components/ActionFormSidebarItemComponent.tsx
42
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.96 % (663 Bytes)
43
+ /src/content/createPages.tsx
44
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.92 % (650 Bytes)
45
+ /home/artemis/GitHub/imperium/node_modules/style-inject/dist/style-inject.es.js
46
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.88 % (636 Bytes)
47
+ /src/content/utils.tsx
48
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.86 % (628 Bytes)
49
+ /src/hooks/useIsActiveRoute.ts
50
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.52 % (514 Bytes)
51
+ /src/state.ts
52
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.45 % (489 Bytes)
53
+ /src/content/types.ts
54
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.15 % (388 Bytes)
55
+ /src/layout/components/PlainItem.tsx
56
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.12 % (379 Bytes)
57
+ /src/content/components/ActionSidebarItemComponent.tsx
58
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.07 % (362 Bytes)
59
+ /src/layout/components/SecondaryMenuToggleItem.tsx
60
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.05 % (356 Bytes)
61
+ /src/datahooks/ExecutePermissionHook.tsx
62
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.02 % (345 Bytes)
63
+ /src/content/components/PlainSidebarItem.tsx
64
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.02 % (344 Bytes)
65
+ /src/datahooks/PermissionHooks.tsx
66
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1 % (339 Bytes)
67
+ /src/hooks/useSelectState.ts
68
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.96 % (326 Bytes)
69
+ /src/hooks/useSelectPermission.ts
70
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.87 % (294 Bytes)
71
+ /src/content/hooks/useBuildContentData.ts
72
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.76 % (257 Bytes)
73
+ /src/layout/components/MenuItem.tsx
74
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.75 % (252 Bytes)
75
+ /src/commonItems.ts
76
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.6 % (203 Bytes)
77
+ /src/layout/types.ts
78
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.57 % (191 Bytes)
79
+ /src/utils.ts
80
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.43 % (145 Bytes)
81
+ /src/index.ts
82
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.43 % (144 Bytes)
83
+ /src/datahooks/ExecuteDataHook.tsx
84
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.36 % (123 Bytes)
85
+ /src/types.ts
86
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.36 % (121 Bytes)
87
+ /src/content/components/CustomSidebarItemComponent.tsx
88
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.25 % (83 Bytes)
89
+ /src/layout/components/CustomLayoutItemComponent.tsx
90
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.24 % (82 Bytes)
91
+ /src/content/dividerSidebarItem.ts
92
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.17 % (59 Bytes)
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import type { PermissionSelectorHook } from '../types';
3
+ interface StateHooksProps {
4
+ stateHooks: PermissionSelectorHook[];
5
+ }
6
+ export declare function StateHooks({ stateHooks }: StateHooksProps): JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare function useMobileLayout(): void;
@@ -2,12 +2,12 @@
2
2
  import type { SemanticICONS } from 'semantic-ui-react';
3
3
  import type { HorizontalPositionedItem, RouteItem, VisibilityItem, WeightedItem } from '../commonItems';
4
4
  import type { DataHookItem } from '../datahooks/types';
5
- import type { Data, PermissionSelector, PermissionSelectorHook } from '../types';
5
+ import type { Data, PermissionSelector, PermissionSelectorHook, StateSelectorHook } from '../types';
6
6
  /**
7
7
  * Describes a basic weighted, possibly visible item
8
8
  */
9
9
  export interface BaseLayoutItem extends WeightedItem, VisibilityItem {
10
- text?: string | ((data: Data) => string);
10
+ text: string | ((data: Data) => string);
11
11
  icon?: SemanticICONS | ((data: Data) => SemanticICONS);
12
12
  moveToKey?: string;
13
13
  }
@@ -35,6 +35,7 @@ export interface MenuLayoutItem extends BaseLayoutItem {
35
35
  export declare type LayoutItem = (BaseLayoutItem & RouteItem<Data>) | DropdownLayoutItem | MenuLayoutItem | CustomLayoutItem;
36
36
  export interface LayoutData {
37
37
  permissionSelectorHooks?: PermissionSelectorHook[];
38
+ stateSelectorHooks?: StateSelectorHook[];
38
39
  permissions?: PermissionSelector;
39
40
  dataHooks?: DataHookItem[];
40
41
  primaryMenu?: (LayoutItem & HorizontalPositionedItem)[];
@@ -20,5 +20,5 @@ export declare function linkParameters(item: BaseLayoutItem & RouteItem<Data>, d
20
20
  active?: undefined;
21
21
  to?: undefined;
22
22
  };
23
- export declare function getText(item: BaseLayoutItem, data: Data): string | undefined;
23
+ export declare function getText(item: BaseLayoutItem, data: Data): string;
24
24
  export declare function getIcon(item: BaseLayoutItem, data: Data): JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imperium/layout",
3
- "version": "13.0.4",
3
+ "version": "13.0.5",
4
4
  "description": "Imperium Layout package",
5
5
  "bugs": {
6
6
  "url": "https://github.com/darkadept/imperium/issues"
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "2227cccaea31566c670f91d27cfc55f36044165d"
63
+ "gitHead": "7b311304c366b945e15486ccd5b2c8c2c4dc3206"
64
64
  }